PageSourceSearch

https://advantage.bg/_next/static/chunks/710.29977765945628f8.js

js advantage.bg collected 2026-09-26 07:53:08 UTC 3,713 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[710],{80710:(e,n,t)=>{t.r(n),t.d(n,{Slider:()=>c});var o=t(95155),l=t(12115);let i=({slidesLength:e,selectedIndex:n,borderColor:t,activeColor:l,handleSlide:i,className:a})=>(0,o.jsx)("div",{className:`embla__dots flex justify-center ${a}`,children:[...Array(e)].map((e,a)=>(0,o.jsx)("button",{onClick:()=>i(a),className:`embla__dot ${a===n?"is-selected":""} 
2          relative before:absolute before:inset-[-15px] before:content-['']
3          border-2 ${t} rounded-full mx-1 mb-3 h-[18px] ${a===n?`w-[36px] ${l}`:"w-[18px]"}`,type:"button","aria-label":`Go to slide ${a+1}`},a))});var a=t(68072);let r={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function s(e={}){let n,t,o,l,i=null,a=0,c=!1,u=!1,p=!1,d=!1;function f(){if(!o){if(y()){p=!0;return}c||t.emit("autoplay:play");let{ownerWindow:e}=t.internalEngine();e.clearTimeout(a),a=e.setTimeout(v,l[t.selectedScrollSnap()]),i=new Date().getTime(),t.emit("autoplay:timerset"),c=!0}}function m(){if(!o){c&&t.emit("autoplay:stop");let{ownerWindow:e}=t.internalEngine();e.clearTimeout(a),a=0,i=null,t.emit("autoplay:timerstopped"),c=!1}}function b(){if(y())return p=c,m();p&&f()}function y(){let{ownerDocument:e}=t.internalEngine();return"hidden"===e.visibilityState}function S(){u||m()}function g(){u||f()}function x(){u=!0,m()}function h(){u=!1,f()}function v(){let{index:e}=t.internalEngine(),o=e.clone().add(1).get(),l=t.scrollSnapList().length-1,i=n.stopOnLastSnap&&o===l;if(t.canScrollNext()?t.scrollNext(d):t.scrollTo(0,d),t.emit("autoplay:select"),i)return m();f()}return{name:"autoplay",options:e,init:function(i,a){t=i;let{mergeOptions:c,optionsAtMedia:u}=a,p=c(r,s.globalOptions);if(n=u(c(p,e)),t.scrollSnapList().length<=1)return;d=n.jump,o=!1,l=function(e,n){let t=e.scrollSnapList();return"number"==typeof n?t.map(()=>n):n(t,e)}(t,n.delay);let{eventStore:y,ownerDocument:v}=t.internalEngine(),N=!!t.internalEngine().options.watchDrag,O=function(e,n){let t=e.rootNode();return n&&n(t)||t}(t,n.rootNode);y.add(v,"visibilitychange",b),N&&t.on("pointerDown",S),N&&!n.stopOnInteraction&&t.on("pointerUp",g),n.stopOnMouseEnter&&y.add(O,"mouseenter",x),n.stopOnMouseEnter&&!n.stopOnInteraction&&y.add(O,"mouseleave",h),n.stopOnFocusIn&&t.on("slideFocusStart",m),n.stopOnFocusIn&&!n.stopOnInteraction&&y.add(t.containerNode(),"focusout",f),n.playOnInit&&f()},destroy:function(){t.off("pointerDown",S).off("pointerUp",g).off("slideFocusStart",m),m(),o=!0,c=!1},play:function(e){void 0!==e&&(d=e),f()},stop:function(){c&&m()},reset:function(){c&&f()},isPlaying:function(){return c},timeUntilNext:function(){return i?l[t.selectedScrollSnap()]-(new Date().getTime()-i):null}}}function c({children:e,dotsSetup:n,additionalClasses:t,autoPlay:r,dotsClass:c}){let u=[];r&&(isNaN(parseInt(r))?console.error("Please provide a valid number for autoPlay prop in Slider component"):u.push(s({delay:r,stopOnInteraction:!1})));let[p,d]=(0,a.A)({containScroll:"keepSnaps",align:"start",loop:!0,draggable:!0,slidesToScroll:1},u),[f,m]=(0,l.useState)(0);return(0,l.useEffect)(()=>{if(d){let e=()=>{m(d.selectedScrollSnap())};d.on("select",e),e()}},[d]),(0,o.jsx)("div",{className:"max-w-[1440px] w-full",children:(0,o.jsxs)("div",{className:`embla overflow-hidden select-none ${t||""}`,ref:p,children:[(0,o.jsx)("div",{className:"embla__container flex",children:e}),(0,o.jsx)(i,{className:c,slidesLength:e.length,handleSlide:function(e){d.scrollTo(e)},selectedIndex:f,activeColor:n.activeColor,borderColor:n.borderColor})]})})}s.globalOptions=void 0}}]);
4//# sourceMappingURL=710.29977765945628f8.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.