Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/static/bundle/447.e19c6b24d0c44564c055.js
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[447],{8447:function(e,t,n){n.r(t),n.d(t,{handleClick:function(){return $},mount:function(){return N}});var o=n(4705);var r=!1;if("undefined"!=typeof window){var i={get passive(){r=!0}};window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}var c="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),a=[],l=!1,s=-1,u=void 0,d=void 0,f=function(e){return a.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})},g=function(e){var t=e||window.event;return!!f(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},m=function(){void 0!==d&&(document.body.style.paddingRight=d,d=void 0),void 0!==u&&(document.body.style.overflow=u,u=void 0)},v=function(e,t){if(e){if(!a.some(function(t){return t.targetElement===e})){var n={targetElement:e,options:t||{}};a=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(a),[n]),c?(e.ontouchstart=function(e){1===e.targetTouches.length&&(s=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-s;!f(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?g(e):e.stopPropagation())}(t,e)},l||(document.addEventListener("touchmove",g,r?{passive:!1}:void 0),l=!0)):function(e){if(void 0===d){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(d=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===u&&(u=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},p=n(9680),h=function(){(0,p.e)()?(c?(a.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),l&&(document.removeEventListener("touchmove",g,r?{passive:!1}:void 0),l=!1),s=-1):m(),a=[]):(document.body.style.overflow="",document.body.style.removeProperty("--scrollbar-width"))},y=function(e){if((0,p.e)())e&&v(e,{allowTouchMove:function(e){return!!e.closest(".select2-container")||!!e.closest(".flexy")}});else{let e=window.innerWidth-document.documentElement.clientWidth;e>0&&document.body.style.setProperty("--scrollbar-width",`${e}px`),document.body.style.overflow="hidden"}};const b=function(){return window.ctFrontend&&window.ctFrontend.scrollLockManager||(window.ctFrontend=window.ctFrontend||{},window.ctFrontend.scrollLockManager={enable:h,disable:y}),window.ctFrontend.scrollLockManager};var w=n(2151),L=n.n(w);const O=function(e){if(!e)return;const t=e.querySelector(".ct-toggle-dropdown-mobile");e.classList.contains("dropdown-active")?(t.setAttribute("aria-expanded","false"),t.setAttribute("aria-label",ct_localizations.expand_submenu),function(e,t){const n=e.querySelector("ul");requestAnimationFrame(function(){const e=n.getBoundingClientRect().height;n.style.height=`${e}px`,n.classList.add("is-animating"),requestAnimationFrame(function(){n.style.height="0px",k(n,function(){n.classList.remove("is-animating"),n.removeAttribute("style"),t()})})})}(e,function(){e.classList.toggle("dropdown-active"),[...e.querySelectorAll(".menu-item-has-children.dropdown-active, .page_item_has_children.dropdown-active")].map(function(e){return e.classList.remove("dropdown-active")})})):(t.setAttribute("aria-expanded","true"),t.setAttribute("aria-label",ct_localizations.collapse_submenu),[...e.parentNode.children].map(function(e){return e.classList.contains("dropdown-active")&&O(e)}),e.classList.toggle("dropdown-active"),function(e){const t=e.querySelector("ul");requestAnimationFrame(function(){const e=t.getBoundingClientRect().height;t.style.height="0px",t.classList.add("is-animating"),requestAnimationFrame(function(){t.style.height=`${e}px`,k(t,function(){t.classList.remove("is-animating"),t.removeAttribute("style")})})})}(e))};function k(e,t){const n=function(o){o.target===e&&(e.removeEventListener("transitionend",n),t())};e.addEventListener("transitionend",n)}var S=n(3793),_=n(1610);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}const A=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])",'input:enabled:not([readonly]):not([type="hidden"])',"a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"];let q=null;const C=function(e){if(!q)return;let t=[...q.querySelectorAll(A.join(","))];q.querySelector('[data-device="mobile"]')&&"mobile"!==(0,S.U)()&&(t=t.filter(function(e){return!e.closest('[data-device="mobile"]')}));const n=t[0],o=t[t.length-1];if("Tab"!==e.key&&9!==e.keyCode)return;let r=t.includes(document.activeElement);q.contains(document.activeElement)&&document.activeElement.scrollHeight>document.activeElement.clientHeight&&(r=!0),r||(n.focus(),e.preventDefault()),e.shiftKey?document.activeElement===n&&(o.focus(),e.preventDefault()):document.activeElement===o&&(n.focus(),e.preventDefault())},P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach(function(t){(0,o.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({focusOnMount:!0},t),q&&q!==e)return;const n=e.querySelectorAll(A.join(","));0!==n.length&&(q=e,document.addEventListener("keydown",C),t.focusOnMount&&!(0,_.C)()&&setTimeout(function(){n[0].focus()},200))},T=function(e){e.removeEventListener("keydown",C),q=null},j=function(){return window.ctFrontend&&window.ctFrontend.focusLockManager||(window.ctFrontend=window.ctFrontend||{},window.ctFrontend.focusLockManager={focusLockOn:P,focusLockOff:T}),window.ctFrontend.focusLockManager};var D=n(9280),F=n(6816);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){(0,o.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const R=function(e){if(!e.container)throw new Error("No container provided");return e.container.__overlay_settings__||{}},B=function(e){e.container.__overlay_settings__=null};let I=null;const W=function(e){const t=x({onClose:function(){},container:null,focus:!0},R(e));[...document.querySelectorAll(`[data-toggle-panel*="${t.container.id}"]`),...document.querySelectorAll(`[href*="${t.container.id}"]`)].map(function(e){e.setAttribute("aria-expanded","true")}),t.shouldBeInert&&(t.container.inert=!1,t.container.setAttribute("aria-modal","true")),t.focus&&setTimeout(function(){const e=t.container.querySelector("input");if(e){const t=e.value.length;e.setSelectionRange(t,t),e.focus()}},200),t.container.querySelector(".ct-panel-content")&&t.container.querySelector(".ct-panel-content").addEventListener("click",function(e){Array.from(t.container.querySelectorAll("select")).map(function(t){return t.selectr&&t.selectr.events.dismiss(e)})}),t.clickOutside&&t.container.querySelector(".ct-panel-content")&&t.container.addEventListener("click",t.handleContainerClick);const n=function(e){const{keyCode:o,target:r}=e;27===o&&(e.preventDefault(),document.body.hasAttribute("data-panel")&&U(t),document.removeEventListener("keyup",n))};document.addEventListener("keyup",n);let o=t.container&&t.container.querySelector(".ct-toggle-close");if(o&&(o.addEventListener("click",function(e){e.preventDefault(),U(t)},{once:!0}),o.hasEnterListener||(o.hasEnterListener=!0,o.addEventListener("keyup",function(e){13==e.keyCode&&(e.preventDefault(),U(t))}))),t.computeScrollContainer||t.container.querySelector(".ct-panel-content")){const e=t.computeScrollContainer?t.computeScrollContainer():t.container.querySelector(".ct-panel-content");if(b().disable(e),(0,p.e)()){const n=new MutationObserver(function(n){e.isConnected||(b().enable(),setTimeout(function(){document.body.hasAttribute("data-panel")&&b().disable(t.computeScrollContainer?t.computeScrollContainer():t.container.querySelector(".ct-panel-content"))},1e3))});n.observe(t.container,{childList:!0,subtree:!0}),t.container.__overlay_observer__=n}setTimeout(function(){j().focusLockOn(t.container.querySelector(".ct-panel-content").parentNode,{focusOnMount:!t.focus})})}"AbortController"in window&&(I=new AbortController),window.addEventListener("click",t.handleWindowClick,{capture:!0,signal:I?I.signal:void 0}),L().trigger("ct:modal:opened",t.container),L().trigger("blocksy:frontend:init"),[...t.container.querySelectorAll(".ct-toggle-dropdown-mobile")].map(function(e){!function(e){if(e.hasListener)return;e.hasListener=!0;let t=e.previousElementSibling.getAttribute("href");t&&"#"!==t||e.previousElementSibling.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),O(e.closest(".menu-item-has-children, .page_item_has_children"))}),e.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),O(e.closest(".menu-item-has-children, .page_item_has_children"))})}(e)})},U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=x({onClose:function(){},container:null},R(e));if(t=x({onlyUnmountEvents:!1,shouldFocusOriginalTrigger:!0},t),n.shouldBeInert&&(n.container.inert=!0,n.container.removeAttribute("aria-modal")),!document.body.hasAttribute("data-panel"))return n.container.classList.remove("active"),void n.onClose();[...document.querySelectorAll(`[data-toggle-panel*="${n.container.id}"]`),...document.querySelectorAll(`[href*="${n.container.id}"]`)].map(function(e,n){e.setAttribute("aria-expanded","false"),t.shouldFocusOriginalTrigger&&!(0,_.C)()&&(e.focusDisabled||setTimeout(function(){0===n&&e.focus()},50),e.focusDisabled=!1)}),t.onlyUnmountEvents?(b().enable(),j().focusLockOff(n.container.querySelector(".ct-panel-content").parentNode),B(n)):(document.body.dataset.panel="out",(0,D.u)(n.container,function(){document.body.removeAttribute("data-panel"),n.container.classList.remove("active"),b().enable(),j().focusLockOff(n.container.querySelector(".ct-panel-content").parentNode),B(n),L().trigger("ct:modal:closed",n.container)})),n.container.__overlay_observer__&&(n.container.__overlay_observer__.disconnect(),n.container.__overlay_observer__=null),I&&I.abort(),n.container.removeEventListener("click",n.handleContainerClick),n.onClose()},$=function(e,t){e&&e.preventDefault&&e.preventDefault(),t=x({onClose:function(){},container:null,focus:!1,clickOutside:!0,isModal:!1,computeScrollContainer:null,closeWhenLinkInside:!1,shouldBeInert:!!t.container.inert,handleContainerClick:function(e){const n=e.target.closest(".ct-panel-actions");let o=e.target.closest(".ct-panel-content"),r=[...t.container.querySelectorAll(".ct-panel-content")].indexOf(e.target)>-1,i=null;if(e.target.matches('[data-toggle-panel],[href*="modal"]')&&(i=e.target),!i&&e.target.closest('[data-toggle-panel],[href*="modal"]')&&(i=e.target.closest('[data-toggle-panel],[href*="modal"]')),i&&i.hasLazyLoadClickListener&&!i.matches("[data-button-state]"))return U(t),void setTimeout(function(){i.click()},650);t.isModal&&!r&&o||!t.isModal&&(r||o||n)||e.target.closest('[class*="select2-container"]')||!e.target.closest("body")||!e.target.closest(".ct-panel")||window.getSelection().toString().length>0||document.body.hasAttribute("data-panel")&&U(t)},handleWindowClick:function(e){setTimeout(function(){t.container.contains(e.target)||e.target===document.body||e.target.closest('[class*="select2-container"]')||!e.target.closest("body")||e.target.closest(".ct-popup")||document.body.hasAttribute("data-panel")&&U(t)})}},t),function(e){e.container.__overlay_settings__=e}(t),W(t),t.closeWhenLinkInside&&(t.container.hasListener||(t.container.hasListener=!0,t.container.addEventListener("click",function(e){if(!e.target)return;let n=e.target;if(e.target.closest("a")&&(n=e.target.closest("a")),!n.closest(".ct-panel"))return;if(!n.closest(".ct-panel").classList.contains("active"))return;if(!n.matches("a"))return;if(n.classList.contains("ct-overlay-skip"))return;const o=(0,F.o)(n);if(!(n.closest('nav[data-id*="menu"]')||n.closest('[data-id*="text"]')||n.closest('[data-id*="button"]')||o||n.closest(".widget_nav_menu")))return;const r=0===e.button,i=r&&(e.ctrlKey||e.metaKey);if(r&&i)return;let c="regular",a=new URL(location.href),l=null;try{l=new URL(n.getAttribute("href"),location.href)}catch(e){console.error("Error parsing URLs",e,n)}a&&l&&(a.hash="",l.hash="",a.toString()===l.toString()&&(c="hash-link")),o&&(c="modal"),"regular"===c&&U(t,{onlyUnmountEvents:!0,shouldFocusOriginalTrigger:!1}),"modal"===c&&(U(t,{shouldFocusOriginalTrigger:!1}),setTimeout(function(){n.click()},500)),"hash-link"===c&&U(t,{shouldFocusOriginalTrigger:!1})})))};L().on("ct:offcanvas:force-close",function(e){return U(e)}),window.addEventListener("pageshow",function(e){if(!event.persisted)return;document.body.hasAttribute("data-panel")&&document.body.removeAttribute("data-panel");const t=document.querySelector(".ct-panel.active");I&&(I.abort(),I=null),b().enable(),t&&(t.classList.remove("active"),j().focusLockOff(t.querySelector(".ct-panel-content").parentNode))});const N=function(e,t){let{event:n,focus:o=!1}=t;$(n,{isModal:!0,container:document.querySelector(e.dataset.togglePanel||e.hash),clickOutside:!0,focus:o})}},9280:function(e,t,n){function o(e,t){let n=null,o=!1;const r=function(){clearTimeout(n),e.removeEventListener("transitionend",i),o||(o=!0,t())},i=function(t){t.target===e&&r()},c=1e3*parseFloat(getComputedStyle(e).transitionDuration);e.addEventListener("transitionend",i),n=setTimeout(function(){r()},c)}n.d(t,{u:function(){return o}})},9680:function(e,t,n){n.d(t,{e:function(){return o}});const o=function(){return"undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)}}}]);