kollapsminoriteten/wp-content/themes/blocksy/static/bundle/447.6a62b75b9473b31f8406.js

1 line
14 KiB
JavaScript
Raw Permalink Normal View History

2026-03-31 11:30:59 +02:00
"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[447],{8447:function(e,t,n){n.d(t,{handleClick:function(){return $}});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)},p=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.")},v=n(9680),h=function(){(0,v.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,v.e)())e&&p(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",_(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}p