PageSourceSearch

https://sff2-eddigital.vercel.app/_build/homepage-carousel-item-BUdoG9Sx.js

js sff2-eddigital.vercel.app collected 2026-10-03 07:42:12 UTC 4,600 bytes, 2 lines download raw bytes

1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{h as t}from"./routing-Bu0USvmv.js";import{t as n}from"./react-BQVaxoBa.js";import{t as r}from"./jsx-runtime-Brbx3b_0.js";import{t as i}from"./Button-D_2j_sIY.js";import{t as a}from"./proxy-C3pI9Mko.js";import{n as o}from"./tracking-B7eWE-E7.js";import{F as s,f as c,j as l,nt as u}from"./entry.client-CuSa_XCe.js";import{t as d}from"./TrailerOverlay-DBPsAHgy.js";import{n as f}from"./useSliderTimer-Chn5wC5y.js";var p=e(n()),m=r();function h(e){let[n,r]=(0,p.useState)(!1),h=s(900),[g]=t(`heading`),_=f(),v=null,y={onMouseEnter:()=>{_?.pause()},onMouseLeave:()=>{n||_?.start()}};(0,p.useEffect)(()=>(n&&_?.pause(),()=>{n&&_?.start()}),[n]);let b=``;if(e.type===`sizzle`&&(b=e.videoFile?.mediaItemUrl||``,h&&(b=e.mobileVideoFile?.mediaItemUrl??b)),e.type===`sizzle`&&b)g=`Sizzle Reel`,v=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a.video,{src:b,className:`absolute top-0 left-0 w-full h-full object-cover object-center`,playsInline:!0,muted:!n,autoPlay:!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onEnded:e=>{r(!1),_?.goNext(),n&&o(`Watched To End Unmuted`,{},e.currentTarget)}}),(0,m.jsx)(`div`,{className:`absolute z-[1] inset-0 bg-bg/5 text-fg`,children:(0,m.jsx)(a.div,{className:`w-grid mx-auto pt-8`,initial:{scale:.98},animate:{scale:1},exit:{scale:.98},transition:{duration:.3},children:(0,m.jsx)(`div`,{className:``,children:(0,m.jsx)(i,{shape:`icon`,variant:`ghost`,href:e.link?.url,target:e.link?.target,rightIcon:n?`unmuted`:`muted`,onClick:e=>{e.preventDefault(),r(e=>!e),o(`Unmute Video`,{},e.currentTarget)},...y})})})})]});else if(e.type===`custom`)v=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a.img,{srcSet:e.image?.srcSet,className:`absolute z-0 top-0 left-0 w-full h-full object-cover object-center`,sizes:`100vw`,initial:{opacity:0}
1,animate:{opacity:.9},exit:{opacity:0},transition:{duration:.8}}),(0,m.jsx)(`div`,{className:`absolute z-[1] inset-0 bg-bg/5 text-fg`,children:(0,m.jsxs)(a.div,{className:`w-grid mx-auto pt-8 [text-shadow:0_0_100px_rgba(0,0,0,0.9)]`,initial:{scale:.98},animate:{scale:1},exit:{scale:.98},transition:{duration:.3},children:[(0,m.jsx)(a.div,{variants:{hide:{opacity:0},show:{opacity:1}},children:(0,m.jsx)(u,{as:`div`,store:`heading`,placeholder:`Enter a heading`,className:`type-title-xxl w-[10em] mb-4`})}),(0,m.jsx)(a.div,{variants:{hide:{opacity:0},show:{opacity:1}},children:(0,m.jsx)(u,{as:`p`,store:`description`,placeholder:`Enter a description`,className:`type-body-l max-w-[30em] mb-6 text-balance`})}),(0,m.jsx)(a.div,{variants:{hide:{opacity:0},show:{opacity:1}},children:(0,m.jsx)(`div`,{className:``,children:!!e.link?.url&&(0,m.jsx)(i,{shape:`default`,variant:`primary`,href:e.link?.url,target:e.link?.target,...y,children:e.link?.title})})})]})})]});else if(e.type===`film`&&e.film){let t=e.film;l(t),v=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a.img,{srcSet:t.media?.thumb?.srcSet,className:`absolute z-0 top-0 left-0 w-full h-full object-cover object-center`,sizes:`100vw`,initial:{opacity:0}
1,animate:{opacity:.9},exit:{opacity:0},transition:{duration:.8}}),(0,m.jsx)(`div`,{className:`absolute z-[1] inset-0 bg-bg/5 text-fg`,children:(0,m.jsxs)(a.div,{className:`w-grid mx-auto pt-8`,initial:{scale:.98},animate:{scale:1},exit:{scale:.98},transition:{duration:.3},children:[(0,m.jsx)(a.div,{variants:{hide:{opacity:0},show:{opacity:1}},children:(0,m.jsx)(u,{as:`div`,store:`filmHeading`,defaultValue:t.title,className:`type-title-xxl w-[10em] mb-4`})}),(0,m.jsx)(a.div,{variants:{hide:{opacity:0},show:{opacity:1}},children:(0,m.jsx)(u,{as:`p`,store:`description`,defaultValue:t.excerpt,className:`type-body-l max-w-[30em] mb-6 text-balance`})}),(0,m.jsxs)(a.div,{...y,className:`flex gap-3 items-center`,variants:{hide:{opacity:0},show:{opacity:1}},children:[!!t.uri&&(0,m.jsx)(i,{shape:`default`,variant:`primary`,href:t.uri,children:(0,m.jsx)(u,{store:`filmLinkTitle`,defaultValue:`Book Tickets`,plainText:!0,disableLineBreaks:!0})}),e.film?.eventInfo?.trailer&&(0,m.jsx)(d,{videoId:e.film?.eventInfo?.trailer,filmUri:e.film.uri,children:(0,m.jsx)(i,{shape:`default`,variant:`ghost`,leftIcon:`play`,children:`Play Trailer`})},`trailer`),(0,m.jsx)(c,{film:e.film},`wishlist`)]})]})})]})}return(0,m.jsx)(a.div,{initial:`hide`,animate:`show`,exit:`hide`,transition:{staggerChildren:.06},className:`absolute isolate inset-0 flex items-center justify-center theme-dark overflow-hidden`,"data-mixpanel-slide":g,children:v})}h.displayName=`Block(homepage/homepage-carousel-item)`;export{h as default};
2//# sourceMappingURL=homepage-carousel-item-BUdoG9Sx.js.map

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.