PageSourceSearch

https://www.pixartprinting.nl/js/init-initInfiniteScroll-js.e9ebee346d17ab8d6123.js

js pixartprinting.nl collected 2026-10-08 23:31:14 UTC 12,056 bytes, 1 lines download raw bytes

1export const __webpack_esm_id__=4321;export const __webpack_esm_ids__=[4321];export const __webpack_esm_modules__={16838(e,t,n){n.d(t,{A:()=>r});const r=e=>parseInt(e,10)},37677(e,t,n){n.d(t,{A:()=>r});const r=()=>{const e=document.documentElement,{clientWidth:t,clientHeight:n}=e;return{width:t,height:n}}},43167(e,t,n){n.d(t,{A:()=>o});n(98992),n(3949);var r=n(84408);function o(e){let t=0;e.forEach(e=>{const n=(0,r.A)(e);n>t&&(t=n)}),t>0&&e.forEach(e=>{e.style.height=`${t}px`})}},63126(e,t,n){n.d(t,{default:()=>v}),n.r(t);n(44114),n(98992),n(3949);var r=n(92294),o=n(43167),i=n(37677),a=n(76913),c=n(49120),u=n(84408),s=n(16838);const l=(e,t,n=8)=>{new r.A(e.querySelector(".keen-slider"),{slidesPerView:2,spacing:n,loop:!0,autoAdjustSlidesPerView:!1,breakpoints:{"(min-width: 577px)":{slidesPerView:t}},created(n){const r=(0,i.A)().width<577?2:t;e.querySelectorAll(".keen-slider__slide").length>r&&(e.querySelector(".prev").classList.remove("d-none"),e.querySelector(".next").classList.remove("d-none"),e.querySelector(".prev").addEventListener("click",()=>{n.prev()}),e.querySelector(".next").addEventListener("click",()=>{n.next()}))}})},d=()=>{(0,a.A)(".prod-6-slider-wrapper").forEach(e=>{const{opacity:t}=getComputedStyle(e);"1"!==t&&(e.style.opacity=1,l(e,6,20))}),(0,a.A)(".prod-5-slider-wrapper").forEach(e=>{const{opacity:t}=getComputedStyle(e);"1"!==t&&(e.style.opacity=1,l(e,5,20))}),(0,o.A)((0,a.A)(".keen-prod-list .card-body"));const e=(0,c.A)(".keen-prod-list .card-body");if(e){const t=(0,c.A)(".keen-prod-list .image-container"),n=(0,u.A)(e),r=(0,s.A)(getComputedStyle(e).marginBottom),o=((0,s.A)(getComputedStyle(t).marginBottom)+n+r)/2;(0,a.A)(".product-section").forEach(e=>{(0,a.A)(".keen-slider-arrow",e).forEach(e=>{e.style.marginTop=`-${o}px`})})}};var f=n(96560);var p=n(7374);const h=(e,t)=>{if(t.indexOf(e)>-1)return;const n=(0,c.A)("#infinite-scroll-mount"),r=(0,c.A)(".loader-container");r.classList.remove("d-none");const o=e+1;t.push(e),(async(e,t)=>{const{pageId:n}=window,r=`/view/load-content/?entry_id=${n}&offset=${e}&limit=${t}`,o=await axios.get(r);return o?.data})(o,1).then(e=>{r.classList.add("d-none"),null!==n&&e&&(0,p.A)(e.trim())&&(n.insertAdjacentHTML("beforeend",e),d(),h(o,t))})},v=()=>{(0,f.A)(()=>{d()});const e=[];document.addEventListener("scroll",()=>{const t=(0,a.A)(".content-block"),n=window.pageYOffset;t.forEach((t,r)=>{const o=((e,t)=>t+window.innerHeight>=e.getBoundingClientRect().top+t)(t,n);o&&h(r,e)})})}},76913(e,t,n){n.d(t,{A:()=>r});const r=(e,t=document)=>t.querySelectorAll(e)},84408(e,t,n){n.d(t,{A:()=>r});const r=e=>e?parseFloat(getComputedStyle(e,null).height.replace("px","")):0},92294(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return Array.prototype.slice.call(e)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return"function"==typeof e?u(e()):"string"==typeof e?u(t.querySelectorAll(e)):e instanceof HTMLElement!=0?[e]:e instanceof NodeList!=0?e:[]}function l(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,{A:()=>d}),Math.sign||(Math.sign=function(e){return(e>0)-(e<0)||+e});const d=function(e){var t,n,r,o,c,u,d,f,p,h,v,m,g,b,w,y,A,M,S,k,O,x,E,_,j,P,L,C,T,q,D,V,H,$,I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Y="data-keen-slider-moves",X="data-keen-slider-v",z=[],B=null,F=!1,W=!1,R=0,N=[];function U(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.addEventListener(t,n,r),z.push([e,t,n,r])}function G(e){if(M&&S===Q(e)&&ie()){var n=ee(e).x;if(!te(e)&&_)return K(e);_&&(xe(),k=n,_=!1),e.cancelable&&e.preventDefault();var r=k-n;j+=Math.abs(r),!P&&j>5&&(P=!0,t.setAttribute(Y,!0)),Ae(E(r,_e)*(ce()?-1:1),e.timeStamp),k=n}}function J(e){M||!ie()||function(e){return e.hasAttribute(y.preventEvent)}(e.target)||(M=!0,_=!0,S=Q(e),P=!1,j=0,te(e),de(),A=h,k=ee(e).x,Ae(0,e.timeStamp),re("dragStart"))}function K(e){M&&S===Q(e,!0)&&ie()&&(t.removeAttribute(Y),M=!1,function(){switch(re("beforeChange"),y.mode){case"free":!function(){if(0===g)return!(!Me(0)||ae())&&pe(h);var e=y.friction/Math.pow(Math.abs(g),-.5);he(Math.pow(g,2)/e*Math.sign(g),6*Math.abs(g/e),function(e){return 1-Math.pow(1-e,5)})}();break;case"free-snap":!function(){if(0===g)return pe(h);var e=y.friction/Math.pow(Math.abs(g),-.5),t=Math.pow(g,2)/e*Math.sign(g),n=6*Math.abs(g/e),r=(R+t)/(u/d);he((-1===v?Math.floor(r):Math.ceil(r))*(u/d)-R,n,function(e){return 1-Math.pow(1-e,5)})}();break;default:pe((1===d&&0!==v?A:h)+Math.sign(v))}}(),re("dragEnd"))}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?function(e){return e.changedTouches}(e):Z(e);return t?t[0]?t[0].identifier:"error":"default"}function Z(e){return e.targetTouches}function ee(e){var t=Z(e);return{x:se()?t?t[0].screenY:e.pageY:t?t[0].screenX:e.pageX,timestamp:e.timeStamp}}function te(e){var t=Z(e);if(!t)return!0;var n=t[0],r=se()?n.clientY:n.clientX,o=se()?n.clientX:n.clientY,i=void 0!==O&&void 0!==x&&Math.abs(x-o)<=Math.abs(O-r);return O=r,x=o,i}function ne(e){ie()&&M&&e.preventDefault()}function re(e){y[e]&&y[e](_e)}function oe(){return y.centered}function ie(){return void 0!==n?n:y.controls}function ae(){return y.loop&&r>1}function ce(){return y.rtl}function ue(){return!y.loop&&y.rubberband}function se(){return!!y.vertical}function le(){L=window.requestAnimationFrame(fe)}function de(){L&&(window.cancelAnimationFrame(L),L=null),C=null}function fe(e){C||(C=e);var t=e-C,n=function(e){return T*D(e/q)-V}(t);if(t>=q)return Ae(T-V,!1),$?$():void re("afterChange");var r=Me(n);if(0===r||ae()||ue()||H){if(0!==r&&ue()&&!H)return function(){if(de(),0===g)return pe(h,!0);var e=.04/Math.pow(Math.abs(g),-.5),t=Math.pow(g,2)/e*Math.sign(g),n=function(e){return--e*e*e+1},r=g;he(t,3*Math.abs(r/e),n,!0,function(){he(Oe(ke(h)),500,n,!0)})}();V+=n,Ae(n,!1),le()}else Ae(n-r,!1)}function pe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y.duration;he(Oe(e=ke(e,arguments.length>3&&void 0!==arguments[3]&&arguments[3],arguments.length>4&&void 0!==arguments[4]&&arguments[4])),n,function(e){return 1+--e*e*e*e*e},t)}function he(e,t,n,r,o){de(),T=e,V=0,q=t,D=n,H=r,$=o,C=null,le()}function ve(n){var r=s(e);r.length&&(t=r[0],be(n),U(window,"orientationchange",we),U(window,"resize",function(){return be()}),U(t,"dragstart",function(e){ie()&&e.preventDefault()}),U(t,"mousedown",J),U(y.cancelOnLeave?t:window,"mousemove",G),y.cancelOnLeave&&U(t,"mouseleave",K),U(window,"mouseup",K),U(t,"touchstart",J,{passive:!0}),U(t,"touchmove",G,{passive:!1}),U(t,"touchend",K,{passive:!0}),U(t,"touchcancel",K,{passive:!0}),U(window,"wheel",ne,{passive:!1}),re("mounted"))}function me(){var e,t=I.breakpoints||[];for(var n in t)window.matchMedia(n).matches&&(e=n);if(e===B)return!0;var r=(B=e)?t[B]:I;r.breakpoints&&B&&delete r.breakpoints,y=i(i(i({},Ee),I),r),F=!0,p=null,re("optionsChanged"),ge()}function ge(e,t){e&&(I=e),t&&(B=null),ye(),ve(t)}function be(e){var n=window.innerWidth;if(me()&&(n!==p||e)){p=n;var i=y.slides;"number"==typeof i?(c=null,r=i):(c=s(i,t),r=c?c.length:0);var a=y.dragSpeed;E="function"==typeof a?a:function(e){return e*a},u=se()?t.offsetHeight:t.offsetWidth,d=function(e){if("function"==typeof e)return e();var t=y.autoAdjustSlidesPerView;t||(r=Math.max(e,r));var n=ae()&&t?r-1:r;return l(e,1,Math.max(n,1))}(y.slidesPerView),f=l(y.spacing,0,u/(d-1)-1),u+=f,o=oe()?(u/2-u/d/2)/u:0,c&&c.forEac
1h(function(e){var t="calc(".concat(100/d,"% - ").concat(f/d*(d-1),"px)");se()?(e.style["min-height"]=t,e.style["max-height"]=t):(e.style["min-width"]=t,e.style["max-width"]=t)});var v=!W||F&&y.resetSlide?y.initial:h;(function(e){re("beforeChange"),Ae(Oe(e),!1),re("afterChange")})(ae()?v:Se(v)),se()&&t.setAttribute(X,!0),F=!1}}function we(e){be(),setTimeout(be,500),setTimeout(be,2e3)}function ye(){z.forEach(function(e){e[0].removeEventListener(e[1],e[2],e[3])}),z=[],function(){if(c){var e=["transform","-webkit-transform"];e=[].concat(a(e),se?["min-height","max-height"]:["min-width","max-width"]),c.forEach(function(t){e.forEach(function(e){t.style.removeProperty(e)})})}}(),t&&t.hasAttribute(X)&&t.removeAttribute(X),re("destroyed")}function Ae(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(function(e,t){clearTimeout(m);var n=Math.sign(e);if(n!==v&&xe(),v=n,N.push({distance:e,time:t}),m=setTimeout(function(){N=[],g=0},50),(N=N.slice(-6)).length<=1||0===v)return g=0;var r=N.slice(0,-1).reduce(function(e,t){return e+t.distance},0),o=N[N.length-1].time,i=N[0].time;g=l(r/(o-i),-10,10)})(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now()),t&&(e=function(e){if(ae())return e;var t,n=Me(e);return ue()?0===n?e:e*(t=n/u,(1-Math.abs(t))*(1-Math.abs(t))):e-n}(e)),R+=e,function(){w=ae()?R%(u*r/d)/(u*r/d):R/(u*r/d),function(){var e=Math.round(R/(u/d));e!==h&&(!ae()&&(e<0||e>r-1)||(h=e,re("slideChanged")))}();for(var e=[],t=0;t<r;t++){var n=(1/r*t-(w<0&&ae()?w+1:w))*r/d+o;ae()&&(n+=n>(r-1)/d?-r/d:n<-r/d+1?r/d:0);var i=1/d,a=n+i,s=a<i?a/i:a>1?1-(a-1)*d/1:1;e.push({portion:s<0||s>1?0:s,distance:ce()?-1*n+1-i:n})}b=e,c&&c.forEach(function(e,t){var n=b[t].distance*u-t*(u/d-f/d-f/d*(d-1)),r=se()?0:n,o=se()?n:0,i="translate3d(".concat(r,"px, ").concat(o,"px, 0)");e.style.transform=i,e.style["-webkit-transform"]=i}),re("move")}()}function Me(e){var t=u*(r-1*(oe()?1:d))/d,n=R+e;return n>t?n-t:n<0?n:0}function Se(e){return l(e,0,r-1-(oe()?0:d-1))}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return ae()?t?function(e,t){var n=(h%r+r)%r,o=n<(e=(e%r+r)%r)?-n-r+e:-(n-e),i=n>e?r-n+e:e-n,a=t?Math.abs(o)<=i?o:i:e<n?o:i;return h+a}(e,n):e:Se(e)}function Oe(e){return-(-u/d*e+R)}function xe(){N=[]}var Ee={autoAdjustSlidesPerView:!0,centered:!1,breakpoints:null,controls:!0,dragSpeed:1,friction:.0025,loop:!1,initial:0,duration:500,preventEvent:"data-keen-slider-pe",slides:".keen-slider__slide",vertical:!1,resetSlide:!1,slidesPerView:1,spacing:0,mode:"snap",rtl:!1,rubberband:!0,cancelOnLeave:!0},_e={controls:function(e){n=e},destroy:ye,refresh:function(e){ge(e,!0)},next:function(){pe(h+1,!0)},prev:function(){pe(h-1,!0)},moveToSlide:function(e,t){pe(e,!0,t)},moveToSlideRelative:function(e){pe(e,!0,arguments.length>2?arguments[2]:void 0,!0,arguments.length>1&&void 0!==arguments[1]&&arguments[1])},resize:function(){be(!0)},details:function(){return function(){var e=Math.abs(w),t=R<0?1-e:e;return{direction:v,progressTrack:t,progressSlides:t*r/(r-1),positions:b,position:R,speed:g,relativeSlide:(h%r+r)%r,absoluteSlide:h,size:r,slidesPerView:d,widthOrHeight:u}}()},options:function(){var e=i({},y);return delete e.breakpoints,e}};return me(),W=!0,re("created"),_e}}};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.