{"version":3,"file":"HeroDeferredVideo.BiujFtsm.mjs","names":["localizedValues","React.useContext","React.useMemo","React.Fragment","useRef","React.useId","Image1","useRef","useState","useCallback","useMemo"],"sources":["https:/framerusercontent.com/modules/KC2WYPhBgBlS3r6IoNQs/jDPYCvAzZ1BwjAgHBozl/femeXV5qr-0.js","https:/framerusercontent.com/modules/KC2WYPhBgBlS3r6IoNQs/jDPYCvAzZ1BwjAgHBozl/femeXV5qr.js","https:/framerusercontent.com/modules/xIwkY2SO51X61ZT61pTv/G11ktYmEvXzuFIBEXOk3/femeXV5qr.js","https:/framerusercontent.com/modules/8lNWF9vpAvHhED62dHrw/FMmxbyOMSUxdZP5Sjv1t/HeroDeferredVideo.js"],"sourcesContent":["export const v0=\"SnapCube GO WebApp with mobile photo booth for brand events featuring donation and giveaway functions for interactive lead generation.\";export const v1=\"SnapCube GO WebApp with mobile photo booth for brand events featuring donation and giveaway functions for interactive lead generation.\";export const v2=\"SnapCube GO WebApp with mobile photo booth for brand events featuring donation and giveaway functions for interactive lead generation.\";export const v3=\"SnapCube GO WebApp with mobile photo booth for brand events featuring donation and giveaway functions for interactive lead generation.\";export const v4=\"SnapCube GO WebApp with mobile photo booth for brand events featuring donation and giveaway functions for interactive lead generation.\";\nexport const __FramerMetadata__ = {\"exports\":{\"v2\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"v3\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"v4\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"v0\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"v1\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (b16259d)\nimport*as localizedValues from\"./femeXV5qr-0.js\";const valuesByLocaleId={hjHI2nuxC:localizedValues};export default function getLocalizedValue(key,locale){while(locale){const values=valuesByLocaleId[locale.id];if(values){const value=values[key];if(value)return value;}locale=locale.fallback;}}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (b16259d)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getLoadingLazyAtYPosition,Image as Image1,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import getLocalizedValue from\"https://framerusercontent.com/modules/KC2WYPhBgBlS3r6IoNQs/jDPYCvAzZ1BwjAgHBozl/femeXV5qr.js\";const cycleOrder=[\"To5_s_QjO\",\"A1l1zgNs3\",\"l1oEbT5R0\",\"jAjiHpiwx\",\"iMhNxFPXB\"];const serializationHash=\"framer-c5Ly2\";const variantClassNames={A1l1zgNs3:\"framer-v-de1kjh\",iMhNxFPXB:\"framer-v-14ml5ly\",jAjiHpiwx:\"framer-v-16ry62g\",l1oEbT5R0:\"framer-v-1osq0q3\",To5_s_QjO:\"framer-v-17c82tw\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={\"Variant 1\":\"To5_s_QjO\",\"Variant 2\":\"A1l1zgNs3\",\"Variant 3\":\"l1oEbT5R0\",\"Variant 4\":\"jAjiHpiwx\",\"Variant 5\":\"iMhNxFPXB\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"To5_s_QjO\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"To5_s_QjO\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-17c82tw\",className,classNames),\"data-framer-name\":\"Variant 1\",layoutDependency:layoutDependency,layoutId:\"To5_s_QjO\",ref:refBinding,style:{...style},...addPropertyOverrides({A1l1zgNs3:{\"data-framer-name\":\"Variant 2\"},iMhNxFPXB:{\"data-framer-name\":\"Variant 5\"},jAjiHpiwx:{\"data-framer-name\":\"Variant 4\"},l1oEbT5R0:{\"data-framer-name\":\"Variant 3\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(Image1,{background:{alt:getLocalizedValue(\"v0\",activeLocale)??\"Besuchergruppe nutzt ein SnapCube Fotomodul und betrachtet das aufgenommene Gruppenfoto auf dem Bildschirm.\",fit:\"fill\",intrinsicHeight:1270,intrinsicWidth:1920,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),pixelHeight:1270,pixelWidth:1920,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/35T4cgYKbp54AiRk4M58FHptE.webp?width=1920&height=1270\",srcSet:\"https://framerusercontent.com/images/35T4cgYKbp54AiRk4M58FHptE.webp?scale-down-to=512&width=1920&height=1270 512w,https://framerusercontent.com/images/35T4cgYKbp54AiRk4M58FHptE.webp?scale-down-to=1024&width=1920&height=1270 1024w,https://framerusercontent.com/images/35T4cgYKbp54AiRk4M58FHptE.webp?width=1920&height=1270 1920w\"},className:\"framer-1uizcb6\",\"data-framer-name\":\"img 01\",layoutDependency:layoutDependency,layoutId:\"O7ElHl7f1\",style:{borderBottomLeftRadius:24,borderBottomRightRadius:24,borderTopLeftRadius:24,borderTopRightRadius:24,opacity:1},variants:{A1l1zgNs3:{opacity:0},iMhNxFPXB:{opacity:0},jAjiHpiwx:{opacity:0},l1oEbT5R0:{opacity:0}},...addPropertyOverrides({A1l1zgNs3:{background:{alt:getLocalizedValue(\"v0\",activeLocale)??\"Besuchergruppe nutzt ein SnapCube Fotomodul und betrachtet das aufgenommene Gruppenfoto auf dem Bildschirm.\",fit:\"fill\",intrinsicHeight:2e3,intrinsicWidth:3e3,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),pixelHeight:1270,pixelWidth:1920,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/35T4cgYKbp54AiRk4M58FHptE.webp?width=1920&height=1270\",srcSet:\"https://framerusercontent.com/images/35T4cgYKbp54AiRk4M58FHptE.webp?scale-down-to=512&width=1920&height=1270 512w,https://framerusercontent.com/images/35T4cgYKbp54AiRk4M58FHptE.webp?scale-down-to=1024&width=1920&height=1270 1024w,https://framerusercontent.com/images/35T4cgYKbp54AiRk4M58FHptE.webp?width=1920&height=1270 1920w\"}}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsx(Image1,{background:{alt:getLocalizedValue(\"v1\",activeLocale)??\"Mehrere SnapCube Fotomodule im Event-Einsatz zur interaktiven Leadgenerierung und Fotoerstellung.\",fit:\"fill\",intrinsicHeight:2e3,intrinsicWidth:3e3,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),pixelHeight:2e3,pixelWidth:3e3,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/VvdbG0KeavKXR7Jh6WAeGKnNvQ.webp?width=3000&height=2000\",srcSet:\"https://framerusercontent.com/images/VvdbG0KeavKXR7Jh6WAeGKnNvQ.webp?scale-down-to=512&width=3000&height=2000 512w,https://framerusercontent.com/images/VvdbG0KeavKXR7Jh6WAeGKnNvQ.webp?scale-down-to=1024&width=3000&height=2000 1024w,https://framerusercontent.com/images/VvdbG0KeavKXR7Jh6WAeGKnNvQ.webp?scale-down-to=2048&width=3000&height=2000 2048w,https://framerusercontent.com/images/VvdbG0KeavKXR7Jh6WAeGKnNvQ.webp?width=3000&height=2000 3000w\"},className:\"framer-vop62v\",\"data-framer-name\":\"img 02\",layoutDependency:layoutDependency,layoutId:\"vAgVxfF6M\",style:{borderBottomLeftRadius:24,borderBottomRightRadius:24,borderTopLeftRadius:24,borderTopRightRadius:24,opacity:1},variants:{iMhNxFPXB:{opacity:0},jAjiHpiwx:{opacity:0},l1oEbT5R0:{opacity:0}}}),/*#__PURE__*/_jsx(Image1,{background:{alt:getLocalizedValue(\"v2\",activeLocale)??\"Zwei Teilnehmerinnen nutzen ein SnapCube Fotomodul vor einer gebrandeten Erlebnisfl\\xe4che mit digitalem Hintergrund.\",fit:\"fill\",intrinsicHeight:1102,intrinsicWidth:1652,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),pixelHeight:1102,pixelWidth:1652,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/NAYNLx2Sahns21NPWPw1d5M8UVY.webp?width=1652&height=1102\",srcSet:\"https://framerusercontent.com/images/NAYNLx2Sahns21NPWPw1d5M8UVY.webp?scale-down-to=512&width=1652&height=1102 512w,https://framerusercontent.com/images/NAYNLx2Sahns21NPWPw1d5M8UVY.webp?scale-down-to=1024&width=1652&height=1102 1024w,https://framerusercontent.com/images/NAYNLx2Sahns21NPWPw1d5M8UVY.webp?width=1652&height=1102 1652w\"},className:\"framer-2pzcl3\",\"data-framer-name\":\"img 03\",layoutDependency:layoutDependency,layoutId:\"GTy45Zurt\",style:{borderBottomLeftRadius:24,borderBottomRightRadius:24,borderTopLeftRadius:24,borderTopRightRadius:24,opacity:1},variants:{iMhNxFPXB:{opacity:0},jAjiHpiwx:{opacity:0}}}),/*#__PURE__*/_jsx(Image1,{background:{alt:getLocalizedValue(\"v3\",activeLocale)??\"Nutzer w\\xe4hlt Optionen auf einem Touchscreen-Interface eines SnapCube Moduls.\",fit:\"fill\",intrinsicHeight:1150,intrinsicWidth:2048,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),pixelHeight:1150,pixelWidth:2048,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/ZfkhtN5oxVKTidKc1L0TGZtzIO8.webp?width=2048&height=1150\",srcSet:\"https://framerusercontent.com/images/ZfkhtN5oxVKTidKc1L0TGZtzIO8.webp?scale-down-to=512&width=2048&height=1150 512w,https://framerusercontent.com/images/ZfkhtN5oxVKTidKc1L0TGZtzIO8.webp?scale-down-to=1024&width=2048&height=1150 1024w,https://framerusercontent.com/images/ZfkhtN5oxVKTidKc1L0TGZtzIO8.webp?width=2048&height=1150 2048w\"},className:\"framer-3wxfz8\",\"data-framer-name\":\"img 04\",layoutDependency:layoutDependency,layoutId:\"d77JlKLRq\",style:{borderBottomLeftRadius:24,borderBottomRightRadius:24,borderTopLeftRadius:24,borderTopRightRadius:24,opacity:1},variants:{iMhNxFPXB:{opacity:0}}}),/*#__PURE__*/_jsx(Image1,{background:{alt:getLocalizedValue(\"v4\",activeLocale)??\"Besucher betrachten eine gro\\xdffl\\xe4chige „Wall of Fame“ mit Eventfotos bei einer Veranstaltung.\",fit:\"fill\",intrinsicHeight:1286,intrinsicWidth:1929,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0),pixelHeight:1286,pixelWidth:1929,sizes:componentViewport?.width||\"100vw\",src:\"https://framerusercontent.com/images/krztdDy6tmXu5s1tQCmkvnceYMs.webp?width=1929&height=1286\",srcSet:\"https://framerusercontent.com/images/krztdDy6tmXu5s1tQCmkvnceYMs.webp?scale-down-to=512&width=1929&height=1286 512w,https://framerusercontent.com/images/krztdDy6tmXu5s1tQCmkvnceYMs.webp?scale-down-to=1024&width=1929&height=1286 1024w,https://framerusercontent.com/images/krztdDy6tmXu5s1tQCmkvnceYMs.webp?width=1929&height=1286 1929w\"},className:\"framer-d0y2b5\",\"data-framer-name\":\"img 05\",layoutDependency:layoutDependency,layoutId:\"u6zAWxep3\",style:{borderBottomLeftRadius:24,borderBottomRightRadius:24,borderTopLeftRadius:24,borderTopRightRadius:24}})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-c5Ly2.framer-d6r8h5, .framer-c5Ly2 .framer-d6r8h5 { display: block; }\",\".framer-c5Ly2.framer-17c82tw { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: 376px; justify-content: center; overflow: var(--overflow-clip-fallback, clip); padding: 0px; position: relative; width: 568px; }\",\".framer-c5Ly2 .framer-1uizcb6 { bottom: 0px; flex: none; gap: 0px; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; z-index: 5; }\",\".framer-c5Ly2 .framer-vop62v { bottom: 0px; flex: none; gap: 0px; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; z-index: 4; }\",\".framer-c5Ly2 .framer-2pzcl3 { bottom: 0px; flex: none; gap: 0px; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; z-index: 3; }\",\".framer-c5Ly2 .framer-3wxfz8 { bottom: 0px; flex: none; gap: 0px; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; z-index: 2; }\",\".framer-c5Ly2 .framer-d0y2b5 { bottom: 0px; flex: none; gap: 0px; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; z-index: 1; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 376\n * @framerIntrinsicWidth 568\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"A1l1zgNs3\":{\"layout\":[\"fixed\",\"fixed\"]},\"l1oEbT5R0\":{\"layout\":[\"fixed\",\"fixed\"]},\"jAjiHpiwx\":{\"layout\":[\"fixed\",\"fixed\"]},\"iMhNxFPXB\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerfemeXV5qr=withCSS(Component,css,\"framer-c5Ly2\");export default FramerfemeXV5qr;FramerfemeXV5qr.displayName=\"Hero Sticky IMG item\";FramerfemeXV5qr.defaultProps={height:376,width:568};addPropertyControls(FramerfemeXV5qr,{variant:{options:[\"To5_s_QjO\",\"A1l1zgNs3\",\"l1oEbT5R0\",\"jAjiHpiwx\",\"iMhNxFPXB\"],optionTitles:[\"Variant 1\",\"Variant 2\",\"Variant 3\",\"Variant 4\",\"Variant 5\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerfemeXV5qr,[{explicitInter:true,fonts:[]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerfemeXV5qr\",\"slots\":[],\"annotations\":{\"framerDisplayContentsDiv\":\"false\",\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"A1l1zgNs3\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"l1oEbT5R0\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"jAjiHpiwx\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"iMhNxFPXB\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerColorSyntax\":\"true\",\"framerIntrinsicHeight\":\"376\",\"framerIntrinsicWidth\":\"568\",\"framerComponentViewportWidth\":\"true\",\"framerAutoSizeImages\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./femeXV5qr.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{startTransition,useCallback,useEffect,useMemo,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 675\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function HeroDeferredVideo(props){const{posterUrl={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"},altText=\"\",videoUrl=\"https://res.cloudinary.com/snapkit/video/upload/f_mp4,vc_h264,w_1280,q_auto:good,so_0/v1759218213/SnapCube%20Framer/p2ifaftwhfsvaasaotya.mp4\",fallbackDelayMs=5e3,aspectRatio=\"\",debug=false,style}=props;const posterSrc=typeof posterUrl===\"string\"?posterUrl:posterUrl?.src;const posterSrcSet=typeof posterUrl===\"string\"?undefined:posterUrl?.srcSet;const posterAlt=altText||(typeof posterUrl===\"string\"?\"\":posterUrl?.alt)||\"\";const isStatic=useIsStaticRenderer();const rootRef=useRef(null);const mountRef=useRef(null);const enabledRef=useRef(false);const timeoutIdRef=useRef(null);const[showVideo,setShowVideo]=useState(false);const[videoStarted,setVideoStarted]=useState(false);const enableVideo=useCallback(reason=>{if(enabledRef.current)return;enabledRef.current=true;const g=typeof globalThis!==\"undefined\"?globalThis:undefined;if(g&&timeoutIdRef.current!=null){g.clearTimeout(timeoutIdRef.current);timeoutIdRef.current=null;}if(debug&&typeof console!==\"undefined\"){console.log(\"[HeroDeferredVideo] enableVideo:\",reason);}startTransition(()=>setShowVideo(true));},[debug]);useEffect(()=>{if(isStatic)return;if(typeof window===\"undefined\")return;if(showVideo)return;const onFirstInteraction=e=>{enableVideo(`interaction:${e.type}`);};const opts={passive:true};window.addEventListener(\"scroll\",onFirstInteraction,opts);window.addEventListener(\"touchstart\",onFirstInteraction,opts);window.addEventListener(\"pointerdown\",onFirstInteraction,opts);window.addEventListener(\"keydown\",onFirstInteraction);const g=typeof globalThis!==\"undefined\"?globalThis:undefined;if(g){timeoutIdRef.current=g.setTimeout(()=>{enableVideo(\"fallback-timeout\");},Math.max(0,fallbackDelayMs));}return()=>{window.removeEventListener(\"scroll\",onFirstInteraction,opts);window.removeEventListener(\"touchstart\",onFirstInteraction,opts);window.removeEventListener(\"pointerdown\",onFirstInteraction,opts);window.removeEventListener(\"keydown\",onFirstInteraction);if(g&&timeoutIdRef.current!=null){g.clearTimeout(timeoutIdRef.current);timeoutIdRef.current=null;}};},[enableVideo,fallbackDelayMs,isStatic,showVideo]);// Create <video> dynamically ONLY after showVideo\nuseEffect(()=>{if(isStatic)return;if(typeof window===\"undefined\")return;if(!showVideo)return;if(!mountRef.current)return;if(!videoUrl)return;const mount=mountRef.current;mount.innerHTML=\"\";const v=document.createElement(\"video\");v.muted=true;v.playsInline=true;v.loop=true;v.preload=\"none\";v.setAttribute(\"playsinline\",\"\");v.setAttribute(\"preload\",\"none\");v.style.position=\"absolute\";v.style.inset=\"0\";v.style.width=\"100%\";v.style.height=\"100%\";v.style.objectFit=\"cover\";v.style.display=\"block\";v.style.opacity=\"0\";v.style.transition=\"opacity 300ms ease\";const onPlaying=()=>{startTransition(()=>setVideoStarted(true));v.style.opacity=\"1\";if(debug&&typeof console!==\"undefined\"){console.log(\"[HeroDeferredVideo] playing, currentSrc:\",v.currentSrc);}};v.addEventListener(\"playing\",onPlaying,{once:true});mount.appendChild(v);const assignSrcAndPlay=()=>{if(!v.isConnected)return;if(debug&&typeof console!==\"undefined\"){console.log(\"[HeroDeferredVideo] assigning src\");}v.src=videoUrl;try{v.load();}catch{}try{v.play().catch(()=>{});}catch{}};// Ensure poster can finalize LCP before src assignment\nif(typeof window.requestAnimationFrame===\"function\"){window.requestAnimationFrame(()=>{window.setTimeout(assignSrcAndPlay,0);});}else{window.setTimeout(assignSrcAndPlay,0);}return()=>{try{v.pause();}catch{}try{v.removeAttribute(\"src\");v.load();}catch{}try{v.remove();}catch{}};},[debug,isStatic,showVideo,videoUrl]);const posterStyle=useMemo(()=>{return{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",objectFit:\"cover\",opacity:videoStarted?0:1,transition:\"opacity 300ms ease\",willChange:\"opacity\",display:\"block\",pointerEvents:\"none\"};},[videoStarted]);return /*#__PURE__*/_jsxs(\"div\",{ref:rootRef,style:{position:\"relative\",width:\"100%\",height:\"100vh\",overflow:\"hidden\",...aspectRatio?{aspectRatio}:null,...style},children:[/*#__PURE__*/_jsx(\"div\",{ref:mountRef,style:{position:\"absolute\",inset:0},\"aria-hidden\":altText?undefined:true}),/*#__PURE__*/_jsx(\"img\",{src:posterSrc,srcSet:posterSrcSet,alt:posterAlt,style:posterStyle,draggable:false,loading:\"eager\",fetchPriority:\"high\",decoding:\"async\"})]});}addPropertyControls(HeroDeferredVideo,{videoUrl:{type:ControlType.String,title:\"Video URL\",defaultValue:\"https://res.cloudinary.com/snapkit/video/upload/f_mp4,vc_h264,w_1280,q_auto:good,so_0/v1759218213/SnapCube%20Framer/p2ifaftwhfsvaasaotya.mp4\"},posterUrl:{type:ControlType.ResponsiveImage,title:\"Poster\"},aspectRatio:{type:ControlType.String,title:\"Aspect Ratio\",defaultValue:\"\",placeholder:'e.g. \"16 / 9\"'},fallbackDelayMs:{type:ControlType.Number,title:\"Fallback Delay (ms)\",defaultValue:5e3,min:0,max:3e4,step:250},altText:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"Hero video poster\"},debug:{type:ControlType.Boolean,title:\"Debug\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeroDeferredVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"675\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"1200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeroDeferredVideo.map"],"mappings":"4eAAa,EAAG,yIAAsJ,EAAG,yIAAsJ,EAAG,yIAAsJ,EAAG,yIAAsJ,EAAG,yIACvmB,EAAqB,CAAC,QAAU,CAAC,GAAK,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,IAAI,CAAC,CAAC,GAAK,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,IAAI,CAAC,CAAC,GAAK,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,IAAI,CAAC,CAAC,GAAK,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,IAAI,CAAC,CAAC,GAAK,CAAC,KAAO,WAAW,YAAc,CAAC,sBAAwB,IAAI,CAAC,CAAC,mBAAqB,CAAC,KAAO,WAAW,CAAC,CAAA,ICA5U,SAAwB,EAAkB,EAAI,EAAO,CAAC,KAAM,GAAO,CAAC,IAAM,EAAO,EAAiB,EAAO,IAAI,GAAG,EAAO,CAAC,IAAM,EAAM,EAAO,GAAK,GAAG,EAAM,OAAO,EAAO,EAAO,EAAO,+BAAxO,CAAM,EAAiB,CAAC,UAAUA,EAAgB,ICA+oB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,0CAAj2B,IAAqK,I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