PageSourceSearch

https://www2.postkodlotteriet.se/sitevision/system-resource/f70cde…v-carousel-autoplay-260f634abf44db393058.js

js postkodlotteriet.se collected 2026-09-27 21:40:02 UTC 2,950 bytes, 2 lines download raw bytes

1"use strict";(this.webpackChunkenvision=this.webpackChunkenvision||[]).push([[211],{7452(n,t,e){e.d(t,{default:()=>i});const o={active:!0,breakpoints:{},delay:4e3,instant:!1,defaultInteraction:!0,stopOnLastSnap:!1,rootNode:null};function i(n={}){let t,e,r,u=!1,a=!1,s=null,l=null,c=0,f=!1,p=!1,d=!1,m=!1,g=!1,y=b;function v(){return!u&&(!a&&t.active)}function w(){if(v())if(h())p=!0;else{if(!f){f=!0;e.createEvent("autoplay:play",null).emit()}!function(){const{ownerWindow:n}=e.internalEngine().nodeHandler;if(!n)return;const t=(new Date).getTime(),o=e.createEvent("autoplay:timerset",{startTime:t});n.clearTimeout(c),c=n.setTimeout(S,D()),l=t,o.emit()}()}}function E(){if(v()){if(f){f=!1;e.createEvent("autoplay:stop",null).emit()}!function(){const{ownerWindow:n}=e.internalEngine().nodeHandler;if(!n)return;const t=(new Date).getTime(),o=e.createEvent("autoplay:timerstopped",{stopTime:t});n.clearTimeout(c),c=0,l=null,o.emit()}()}}function T(){if(h())return p=f,E();p&&w()}function h(){const{ownerDocument:n}=e.internalEngine().nodeHandler;return!!n&&"hidden"===n.visibilityState}function b(n,t,e){const o=t.type,i=e||o;"slidefocus"===i&&E(),"pointerdown"===i&&E()}function N(n,t,o){const i=t.type,r=o||i;"mouseenter"===r&&(m=!0),"mouseleave"===r&&(m=!1),"pointerdown"===r&&(g=!0),"pointerup"===r&&(g=!1);e.createEvent("autoplay:interaction",{interaction:r,originalEvent:t,isMouseOver:m,isPointerDown:g}).emit()}function S(){const{indexCurrent:n}=e.internalEngine(),o=n.clone().add(1).get(),i=e.snapList().length-1,r=t.stopOnLastSnap&&o===i,u=e.createEvent("autoplay:select",{targetSnap:e.canGoToNext()?o:0,sourceSnap:n.get()});if(e.canGoToNext()?e.goToNext(d):e.goTo(0,d),u.emit(),s=null,r)return E();w()}function D(){return s||r[e.selectedSnap()]}function O(){if(!v())return null;if(!l)return null;const n=(new Date).getTime()-l;return D()-n}return{name:"autoplay",options:n,init:function(s,l){e=s;const{mergeOptions:c,optionsAtMedia:f}=l,p=c(o,i.globalOptions),m=c(p,n);if(a=!1,t=f(m),u=e.internalEngine().isSsr,!v())return;if(e.snapList().length<=1)return;d=t.instant,r=function(n,t){const e=n.snapList();return"number"==typeof t?e.map(()=>t):t(e,n)}(e,t.delay),y=t.defaultInteraction?b:N;const{eventStore:g,nodeHandler:w}=e.internalEngine(),{ownerDocument:E}=w,h=function(n,t){const e=n.rootNode();return t&&t(e)||e}(e,t.rootNode);E&&g.add(E,"visibilitychange",T),e.on("pointerdown",y),e.on("pointerup",y),e.on("slidefocus",y),g.add(h,"mouseenter",n=>y(e,n,n.type)),g.add(h,"mouseleave",n=>y(e,n,n.type)),g.add(e.containerNode(),"focusout",n=>y(e,n,"slidefocusout"))},destroy:function(){v()&&(e.off("pointerdown",y).off("pointerup",y).off("slidefocus",y),E(),a=!0,f=!1)},play:function(n){d=null!=n?n:d,w()},stop:function(){f&&E()},reset:function(){f&&w(),s=null},pause:function(){f&&(s=O(),E())},isPlaying:function(){return f},timeUntilNext:O}}i.globalOptions=void 0}}]);
2//# sourceMappingURL=env-carousel-autoplay-260f634abf44db393058.js.map

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.