1import{r as o,j as e}from"./app-BH0zvs3H.js";import{F as d,a as x}from"./ArrowRightCircleIcon-DitB3ILp.js";function f({schema:u,content:c,data:m}){const a=c?.slides??[],[r,l]=o.useState(0),n=()=>{l(t=>(t+1)%a.length)},i=()=>{l(t=>(t-1+a.length)%a.length)};return o.useEffect(()=>{const t=setInterval(n,6e3);return()=>clearInterval(t)},[]),e.jsx(e.Fragment,{children:e.jsxs("section",{className:"relative h-[80vh] overflow-hidden transition-[background-image] duration-1000 ease-in-out",children:[a.map((t,s)=>e.jsxs("div",{className:`absolute inset-0 transition-opacity duration-1000 ease-in-out ${s===r?"opacity-100 z-10":"opacity-0 z-0"}`,style:{backgroundImage:`url(${t.url})`,backgroundSize:"cover",backgroundPosition:"center"},children:[e.jsx("div",{className:"absolute inset-0 bg-black/40"}),e.jsxs("div",{className:"absolute top-1/2 container left-1/2 -translate-x-1/2 px-8 md:px-16 -translate-y-1/2 flex mx-auto",children:[e.jsxs("div",{className:"flex flex-col justify-center space-y-3 z-20 md:col-start-1",children:[e.jsx("button",{onClick:i,className:"p-2 w-fit mr-auto text-[#EAB803] bg-transparent rounded-full hover:scale-105 transition",children:e.jsx(d,{className:"w-12 h-12"})}),e.jsx("button",{onClick:n,className:"p-2 w-fit mr-auto text-[#EAB803] bg-transparent rounded-full hover:scale-105 transition",children:e.jsx(x,{className:"w-12 h-12"})})]}),e.jsxs("div",{className:"relative px-6 text-white max-w-4xl md:col-span-3 h-full flex flex-col justify-center",children:[e.jsx("h1",{dangerouslySetInnerHTML:{__html:t.title},className:"text-4xl md:text-6xl font-bold mb-4 drop-shadow-lg"}),e.jsx("p",{dangerouslySetInnerHTML:{__html:t.text},className:"text-lg md:text-2xl leading-relaxed drop-shadow-md"})]})]})]},t.id)),e.jsx("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 flex space-x-3 z-20",children:a.map((t,s)=>e.jsx("span",{onClick:()=>l(s),className:`h-3 w-3 rounded-full cursor-pointer transition-all duration-300 ${s===r?"bg-[#EAB803] scale-110":"bg-gray-300 opacity-70"}`},s))})]})})}export{f as default};
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.