1import{a as e}from"./CNC7AqOf.js";import{rt as t}from"./DBCZuFtn.js";import{An as n,Fn as r,Kn as i}from"./Cj3Ri-bZ.js";import{n as a,t as o}from"./C5KgTtL52.js";import{t as s}from"./DW3OcRNq2.js";import{l as c}from"./jHVO_sp_2.js";import{n as l}from"./DTbR38vj2.js";import{t as u}from"./_h4-IJJU2.js";import{d,i as f,n as p,o as m,r as h,t as g}from"./DqAwHJxc2.js";var _=e(a(),1),v=()=>{let[e,t]=(0,_.useState)(0);return(0,_.useCallback)(()=>t(e=>e+1),[t])},y=o(),b=(0,_.createContext)(null);function x(){let e=(0,_.useContext)(b);if(!e)throw Error(`PromoSlider components must be used within PromoSlider.Root`);return e}function S({children:e}){let[t,n]=(0,_.useState)(null),r=v(),i=(0,_.useRef)(m({playOnInit:!0,delay:6e3,stopOnMouseEnter:!1,stopOnFocusIn:!0,stopOnInteraction:!1}));return(0,_.useEffect)(()=>(window.addEventListener(`resize`,r),()=>window.removeEventListener(`resize`,r)),[r]),(0,y.jsx)(b.Provider,{value:{api:t,setApi:n,autoplayPlugin:i.current,forceUpdate:r},children:e})}function C(){let{t:e}=s([`common`]),{api:t,autoplayPlugin:r}=x();return(t?.scrollSnapList()??[]).length<=1?null:(0,y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,y.jsx)(n,{variant:`default`,icon:u,visuallyHideLabel:!0,onClick:()=>{t?.scrollPrev(),r.reset()},className:`w-10 h-10 rounded-full [&_svg]:size-5`,children:e(`gallery.previous`)}),(0,y.jsx)(n,{variant:`default`,icon:d,visuallyHideLabel:!0,onClick:()=>{t?.scrollNext(),r.reset()},className:`w-10 h-10 rounded-full [&_svg]:size-5`,children:e(`gallery.next`)})]})}function w({children:e}){let{setApi:t,autoplayPlugin:n,forceUpdate:r}=x();return(0,y.jsx)(g,{setApi:t,onChange:r,opts:{align:`start`,loop:!0},plugins:[n],children:e})}function T({item:e,titleClassName:a}){let o=c(),s=e.title||e.subtitle,u=e.cta?.text?.trim();return(0,y.jsx)(f,{className:`flex-[0_0_100%] md:flex-[0_0_50%] lg:flex-[0_0_33.33333%] pl-6 md:pl-8`,children:(0,y.jsxs)(`div`,{className:`dark group relative aspect-[3/4] rounded-lg group flex-shrink-0 border`,children:[(0,y.jsxs)(`div`,{className:`absolute inset-0 overflow-hidden rounded-lg`,children:[(0,y.jsx)(t,{width:500,src:e.image,alt:``,className:`w-full h-full object-cover transition-transform duration-500 ease-out group-hover:scale-105`}),s&&(0,y.jsx)(`div`,{className:`absolute inset-x-0 bottom-0 h-2/3 bg-gradient-to-t from-black/80 via-25% to-transparent pointer-events-none`}),s&&(0,y.jsxs)(`div`,{className:`absolute inset-x-0 bottom-0 p-6 pointer-events-none transition-all`,children:[e.subtitle&&(0,y.jsx)(`div`,{className:`font-semibold text-light text-balance leading-tight mb-2`,children:e.subt
1itle}),e.title&&(0,y.jsx)(`h3`,{className:l(`font-semibold font-heading text-2xl md:text-3xl lg:text-4xl leading-tight text-default text-pretty break-words`,a),children:e.title})]})]}),e.cta&&(0,y.jsx)(r,{to:i.fromLinkTarget(e.cta,o),className:l(`opacity-0 group-focus-within:outline-offset-4 absolute inset-0 flex items-center justify-center transition-opacity bg-black/50 backdrop-blur-xs rounded-lg`,u&&`group-hover:opacity-100 group-focus-within:opacity-100`),children:u&&(0,y.jsx)(n,{size:`xl`,variant:`default`,tabIndex:-1,children:u})})]})})}function E({children:e}){return(0,y.jsx)(p,{containerClassName:`px-4 -mx-4 py-2 -my-2 md:px-6 md:-mx-6`,className:`-ml-6 md:-ml-8`,children:e})}var D={Root:S,Navigation:C,Carousel:w,Slides:E,Slide:T,Dots:h};export{v as n,D as t};
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.