import{u as B,b as q,g as W,c as z,d as K,j as n,e as Q,C as V,f as G,h as J,k as X,l as Y,m as Z}from"./ui-library-Bi__0ZbQ.js";import{L as $}from"./react-vendor-DnK_KZAP.js";const ee={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function te(a,t){const e=a.scrollSnapList();return typeof t=="number"?e.map(()=>t):t(e,a)}function ne(a,t){const e=a.rootNode();return t&&t(e)||e}function b(a={}){let t,e,l,p,s=null,u=0,i=!1,f=!1,y=!1,d=!1;function E(o,m){e=o;const{mergeOptions:x,optionsAtMedia:j}=m,M=x(ee,b.globalOptions),R=x(M,a);if(t=j(R),e.scrollSnapList().length<=1)return;d=t.jump,l=!1,p=te(e,t.delay);const{eventStore:g,ownerDocument:U}=e.internalEngine(),N=!!e.internalEngine().options.watchDrag,S=ne(e,t.rootNode);g.add(U,"visibilitychange",T),N&&e.on("pointerDown",O),N&&!t.stopOnInteraction&&e.on("pointerUp",w),t.stopOnMouseEnter&&g.add(S,"mouseenter",_),t.stopOnMouseEnter&&!t.stopOnInteraction&&g.add(S,"mouseleave",H),t.stopOnFocusIn&&e.on("slideFocusStart",c),t.stopOnFocusIn&&!t.stopOnInteraction&&g.add(e.containerNode(),"focusout",r),t.playOnInit&&r()}function v(){e.off("pointerDown",O).off("pointerUp",w).off("slideFocusStart",c),c(),l=!0,i=!1}function I(){const{ownerWindow:o}=e.internalEngine();o.clearTimeout(u),u=o.setTimeout(P,p[e.selectedScrollSnap()]),s=new Date().getTime(),e.emit("autoplay:timerset")}function D(){const{ownerWindow:o}=e.internalEngine();o.clearTimeout(u),u=0,s=null,e.emit("autoplay:timerstopped")}function r(){if(!l){if(h()){y=!0;return}i||e.emit("autoplay:play"),I(),i=!0}}function c(){l||(i&&e.emit("autoplay:stop"),D(),i=!1)}function T(){if(h())return y=i,c();y&&r()}function h(){const{ownerDocument:o}=e.internalEngine();return o.visibilityState==="hidden"}function O(){f||c()}function w(){f||r()}function _(){f=!0,c()}function H(){f=!1,r()}function L(o){typeof o<"u"&&(d=o),r()}function k(){i&&c()}function A(){i&&r()}function F(){return i}function P(){const{index:o}=e.internalEngine(),m=o.clone().add(1).get(),x=e.scrollSnapList().length-1,j=t.stopOnLastSnap&&m===x;if(e.canScrollNext()?e.scrollNext(d):e.scrollTo(0,d),e.emit("autoplay:select"),j)return c();r()}function C(){if(!s)return null;const o=p[e.selectedScrollSnap()],m=new Date().getTime()-s;return o-m}return{name:"autoplay",options:a,init:E,destroy:v,play:L,stop:k,reset:A,isPlaying:F,timeUntilNext:C}}b.globalOptions=void 0;const oe=()=>{const a=B(l=>l.lang),{data:t,isPending:e}=q({queryKey:["partners",a],queryFn:()=>W(a),select:({data:l})=>l.data});return{data:t,isPending:e}},se=({className:a})=>{const[t]=z({loop:!0,align:"start"},[b({delay:2e3,stopOnInteraction:!1})]),{data:e}=oe(),{t:l}=K("home"),{title:p}=l("partners",{returnObjects:!0});return n.jsx("section",{className:Q("",a),children:n.jsxs(V,{className:"flex flex-col gap-10 relative w-full",children:[n.jsx("div",{className:"flex item-center justify-between",children:n.jsx("h2",{className:"h2",children:p})}),n.jsx("div",{ref:t,className:"embla overflow-hidden",children:n.jsx("div",{className:"embla__container flex",children:e==null?void 0:e.map((s,u)=>{var i,f;return s.link?n.jsx($,{target:"_blank",to:s.link,className:"bg-[#E0E6EB] flex embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center h-[128px] w-full",children:n.jsx("img",{src:(i=s==null?void 0:s.image)==null?void 0:i.path,alt:"logo",className:"object-contain"})},u):n.jsx("div",{className:"bg-[#E0E6EB] flex embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center h-[128px] w-full",children:n.jsx("img",{src:(f=s==null?void 0:s.image)==null?void 0:f.path,alt:"logo",className:"object-contain"})},u)})})})]})})};function re(){return n.jsxs("div",{className:"flex flex-col gap-20",children:[n.jsx(G,{}),n.jsx(J,{}),n.jsx(X,{}),n.jsx(Y,{}),n.jsx(se,{}),n.jsx(Z,{})]})}export{re as default};