{"version":3,"file":"Sizzle_Reel_Video_Embed.CHDotSe3.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/YQZAHeouml1o56nyROQR/UG7cAgGIwL0Tt2Eo3Kl9/Sizzle_Reel_Video_Embed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState,useRef}from\"react\";export default function VimeoEmbed(){const[playing,setPlaying]=useState(false);const containerRef=useRef(null);const[imgWidth,setImgWidth]=useState(1280);useEffect(()=>{if(containerRef.current){const w=containerRef.current.offsetWidth;// Round up to nearest 200px to avoid too many unique requests\nsetImgWidth(Math.ceil(w/200)*200);}},[]);useEffect(()=>{const script=document.createElement(\"script\");script.src=\"https://player.vimeo.com/api/player.js\";document.body.appendChild(script);return()=>document.body.removeChild(script);},[]);return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{padding:\"56.25% 0 0 0\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"iframe\",{src:`https://player.vimeo.com/video/1173337261?badge=0&autopause=0&player_id=0&app_id=58479${playing?\"&autoplay=1\":\"\"}`,frameBorder:\"0\",allow:\"autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share\",referrerPolicy:\"strict-origin-when-cross-origin\",style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\"},title:\"VBC Sizzle Revised 8\"}),!playing&&/*#__PURE__*/_jsxs(\"div\",{onClick:()=>setPlaying(true),style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",cursor:\"pointer\"},children:[/*#__PURE__*/_jsx(\"img\",{src:`https://framerusercontent.com/images/alX1HkrS11qsQ4Da5YXKGvqF9Jo.png?width=${imgWidth}`,style:{width:\"100%\",height:\"100%\",objectFit:\"cover\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%, -50%)\",width:72,height:72,borderRadius:\"50%\",backgroundColor:\"rgba(0,0,0,0.6)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:0,height:0,borderTop:\"14px solid transparent\",borderBottom:\"14px solid transparent\",borderLeft:\"24px solid white\",marginLeft:6}})})]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"VimeoEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Sizzle_Reel_Video_Embed.map"],"mappings":"uIAAsG,SAAwB,GAAY,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAAO,EAAaC,EAAO,KAAK,CAAM,CAAC,EAAS,GAAaD,EAAS,KAAK,CACjB,OADkB,MAAc,CAAC,GAAG,EAAa,QAAQ,CAAC,IAAM,EAAE,EAAa,QAAQ,YACrU,EAAY,KAAK,KAAK,EAAE,IAAI,CAAC,IAAI,GAAI,EAAE,CAAC,CAAC,MAAc,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAuF,MAAtF,GAAO,IAAI,yCAAyC,SAAS,KAAK,YAAY,EAAO,KAAW,SAAS,KAAK,YAAY,EAAO,EAAG,EAAE,CAAC,CAAqB,EAAM,MAAM,CAAC,IAAI,EAAa,MAAM,CAAC,QAAQ,eAAe,SAAS,WAAW,CAAC,SAAS,CAAc,EAAK,SAAS,CAAC,IAAI,yFAAyF,EAAQ,cAAc,KAAK,YAAY,IAAI,MAAM,wFAAwF,eAAe,kCAAkC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,CAAC,MAAM,uBAAuB,CAAC,CAAC,CAAC,GAAsB,EAAM,MAAM,CAAC,YAAY,EAAW,GAAK,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,OAAO,UAAU,CAAC,SAAS,CAAc,EAAK,M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