import{q as s,hU as l,r as n,hV as I,em as k,hW as T,v as d,a7 as B,R as f,L as R,O as E,gT as F,T as x,hX as C,fy as D,B as S,I as V}from"./index-cf5e149d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="9a24d3b2-3f8b-4198-bb06-5c141e237ecc",e._sentryDebugIdIdentifier="sentry-dbid-9a24d3b2-3f8b-4198-bb06-5c141e237ecc")}catch{}})();const L="/static/battles-545dba98.mp4",P="/static/rewards-e82c8dde.mp4",M="/static/boxes-51b98185.mp4",_="/static/battles-poster-171d86a7.webp",j="/static/rewards-poster-4586de70.webp",z="/static/boxes-poster-6336f66b.webp";function u(e){const{poster:i,video:b,title:h,subtitle:m,linkText:w,linkTo:v,...y}=e,o=n.useRef(null),r=I(k()?o:null,{rootMargin:"-40% 0% -40% 0%",threshold:[0]}),[g,a]=T(),c=n.useRef(!1);return n.useEffect(()=>{c.current=a;const t=o.current;t&&a&&t.play()},[a]),n.useEffect(()=>{const t=o.current;if(!t)return;const p=()=>{c.current||t.pause()};return t.addEventListener("ended",p),()=>{t.removeEventListener("ended",p)}},[]),n.useEffect(()=>{const t=o.current;!r||!t||(c.current=r==null?void 0:r.isIntersecting,r.isIntersecting&&t.play())},[r]),d(B,{ref:g,direction:"column",...y,children:[d(f,{as:R,to:v,h:{base:"220px",mdlg:"448px"},pos:"relative",borderRadius:"20px",overflow:"hidden",sx:E(),isolation:"isolate",children:[s(F,{ref:o,w:"100%",h:"100%",pos:"absolute",objectFit:"cover",src:b+"#t=0.1",loop:!0,maxLoop:1/0}),d(f,{p:"24px",pos:"relative",zIndex:2,children:[s(x,{variant:{base:"title",smx:"subheader"},color:C.colors.palette.white,children:h}),s(D,{children:s(S,{rightIcon:s(V,{type:"arrow-right"}),variant:"tertiary",size:"md",mt:{base:"12px",smx:"16px"},children:w})})]})]}),s(x,{variant:{base:"small",smx:"caption"},mt:{base:"8px",smx:"32px"},color:"text.secondary",children:m})]})}function O(e){return s(u,{...e,poster:_,video:L,title:"Box Battles",subtitle:"Compete with others on who gets a better unbox drop.",linkText:"Browse battles",linkTo:l.battles.to})}function U(e){return s(u,{...e,poster:j,video:P,title:"Rewards",subtitle:"Check your progress and claim new membership rewards.",linkText:"Discover Membership Rewards",linkTo:l.rewards.to})}function q(e){return s(u,{...e,poster:z,video:M,title:"Mystery Boxes",subtitle:"Unbox authentic products in real-time for up to 95% off.",linkText:"View Boxes",linkTo:l.boxes.to})}export{O as F,q as a,U as b}; //# sourceMappingURL=feature-card-8ac7390a.js.map