1import{r as m,j as e,i as x,I as i}from"./index-Ka-GkZ8r.js";import{P as n}from"./play-D7vt1i_n.js";function g({embedUrl:l,poster:s,label:a,className:o}){const[r,c]=m.useState(!1),t=d=>e.jsx("div",{className:x("relative w-full aspect-video rounded-lg overflow-hidden bg-black shadow-[0_24px_60px_-24px_rgba(26,60,64,0.5)] group",o),children:d});if(!l)return t(e.jsxs(e.Fragment,{children:[s&&e.jsx("div",{className:"absolute inset-0",children:e.jsx(i,{src:s,alt:"",fittingType:"fill",className:"w-full h-full"})}),e.jsx("div",{className:"absolute inset-0 bg-prana/40"}),e.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4",children:[e.jsx("div",{className:"w-20 h-20 rounded-full bg-white/90 flex items-center justify-center shadow-lg",children:e.jsx(n,{className:"w-8 h-8 text-prana ml-1",fill:"currentColor"})}),a&&e.jsx("span",{className:"font-nav text-[11px] tracking-[0.2em] text-ether/90",children:a})]})]}));if(s&&!r)return t(e.jsxs("button",{type:"button",onClick:()=>c(!0),className:"absolute inset-0 w-full h-full block text-left","aria-label":"Play promotional video",children:[e.jsx("div",{className:"absolute inset-0",children:e.jsx(i,{src:s,alt:"",fittingType:"fill",className:"w-full h-full"})}),e.jsx("div",{className:"absolute inset-0 bg-prana/30 group-hover:bg-prana/20 transition-colors"}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"w-20 h-20 rounded-full bg-white/90 flex items-center justify-center shadow-lg transition-transform group-hover:scale-105",children:e.jsx(n,{className:"w-8 h-8 text-prana ml-1",fill:"currentColor"})})})]}));const u=l.includes("?")?"&":"?",f=r?`${l}${u}autoplay=true`:l;return t(e.jsx("iframe",{src:f,title:a||"Promotional video",className:"absolute inset-0 w-full h-full",style:{border:0},allow:"accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,loading:"lazy"}))}export{g 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.