import{b as x,j as a}from"./admin-PjhPIC32.js";import{a as m,b as d,m as n}from"./index-B9H2J4vJ.js";function f({src:s,alt:e,line1:l,line2:r,heightClass:c="h-80"}){const t=x.useRef(null),{scrollYProgress:o}=m({target:t,offset:["start end","end start"]}),i=d(o,[0,1],["-20%","20%"]);return a.jsxs("section",{"data-loc":"client/src/components/ParallaxBanner.tsx:38",ref:t,className:`relative ${c} overflow-hidden`,"aria-label":e,children:[a.jsx(n.div,{"data-loc":"client/src/components/ParallaxBanner.tsx:44",className:"absolute inset-x-0 h-[140%]",style:{top:"-20%",y:i,willChange:"transform"},children:a.jsx("img",{"data-loc":"client/src/components/ParallaxBanner.tsx:48",src:s,alt:e,className:"w-full h-full object-cover",loading:"lazy"})}),a.jsx("div",{"data-loc":"client/src/components/ParallaxBanner.tsx:57",className:"parallax-banner-overlay absolute inset-0"}),a.jsx(n.div,{"data-loc":"client/src/components/ParallaxBanner.tsx:60",className:"absolute inset-0 flex items-center justify-center",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},children:a.jsxs("p",{"data-loc":"client/src/components/ParallaxBanner.tsx:67",className:"parallax-banner-text text-white text-center max-w-lg px-6",children:[l,a.jsx("br",{"data-loc":"client/src/components/ParallaxBanner.tsx:69"}),a.jsx("em",{"data-loc":"client/src/components/ParallaxBanner.tsx:70",className:"parallax-banner-em",children:r})]})})]})}export{f as P};