kollapsminoriteten/wp-content/themes/blocksy/static/bundle/71.5d4727b5ec89aed5a8ea.js

1 line
23 KiB
JavaScript
Raw Permalink Normal View History

2026-03-31 11:30:59 +02:00
"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[71],{3071:function(t,e,n){n.d(e,{r:function(){return w}});var i=n(45),o=n(4705);const r=["style"];function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){(0,o.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u=function(){return"rtl"===document.querySelector("html").dir},d=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return null;if(t.getBoundingClientRect&&!t.firstElementChild)return t.getBoundingClientRect();e||(e=t);let{top:n,left:i,right:o,width:r,height:s}=t.getBoundingClientRect(),a=window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map(function(t){return parseFloat(t)});if(6!=a.length)return t.getBoundingClientRect();var l=a;let u=l[0]*l[3]-l[1]*l[2];return{width:r/l[0],height:s/l[3],left:(i*l[3]-n*l[2]+l[2]*l[5]-l[4]*l[3])/u,right:(o*l[3]-n*l[2]+l[2]*l[5]-l[4]*l[3])/u,top:(-i*l[1]+n*l[0]+l[4]*l[1]-l[0]*l[5])/u}},c=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},h=function(t){return t?t&&"[object Function]"==={}.toString.call(t)?t():t:null},p=function(t){if(!t.options.pillsContainerSelector)return;const e=t.options.pillsContainerSelector.querySelector(".active");e&&e.classList.remove("active"),t.options.pillsContainerSelector.children[t.state.previousCurrentIndex].classList.add("active"),t.options.pillsFlexyInstance&&function(t){const e=t.options.pillsFlexyInstance.flexy,n=h(e.sliderContainer);if(!n||!n.firstElementChild)return;const i=t.state.previousCurrentIndex,o=e.state.slideWidth,r=e.state.containerInnerWidth,s=e.state.positionX,l="vertical"===(e.options.orientation||"horizontal");if(o<=0||r<=0)return;if(Math.round(r/o)<=0)return;const c=n.children.length,p=d(n,h(e.options.nullifyTransformEl)),f=[...n.children].map(function(t){return d(t,h(e.options.nullifyTransformEl))}),m=[];for(let t=0;t<c;t++){const e=f[t];(l?e.bottom>p.top+5&&e.top<p.bottom-5:e.right>p.left+5&&e.left<p.right-5)&&m.push(t)}if(0===m.length)return;const g=m.map(function(t){return{i:t,pos:l?f[t].top:f[t].left}}).sort(function(t,e){return t.pos-e.pos}),v=g.findIndex(function(t){return t.i===i});if(-1===v){const t=g[0].i,n=g[g.length-1].i;let r;r=(i-n+c)%c<=(t-i+c)%c?1:-1;const d=o*r*(l?-1:u()?1:-1),h=Math.round(s/o)*o+d;return void(e.state=a(a({},e.state),{},{positionTarget:h}))}if(v===g.length-1){const t=o*(l?-1:u()?1:-1),n=Math.round(s/o)*o+t;return void(e.state=a(a({},e.state),{},{positionTarget:n}))}if(0===v){const t=-o*(l?-1:u()?1:-1),n=Math.round(s/o)*o+t;e.state=a(a({},e.state),{},{positionTarget:n})}}(t)};class f{constructor(t,e){var n=this;l(this,"options",{mountListeners:!0}),l(this,"flexyInstance",null),l(this,"navigate",function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right";const e=n.flexyInstance,i="left"===t?1:-1,o=e.state.slideWidth;let r=100*Math.round(100*e.state.positionX/o/100)*o/100+o*i;e.state=a(a({},e.state),{},{positionTarget:r})}),this.flexyInstance=t,this.options=a(a({},this.options),e),this.options.mountListeners&&this.mountArrowsListeners()}mountArrowsListeners(){var t=this;if(!this.options.mountListeners)return;const