{"version":3,"file":"HeaderVideo.CfPCmsSx.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/1QCzVjFllnKOqmUzg2aG/42eRY9FfkDWZjEZkLUtA/HeaderVideo.js"],"sourcesContent":["// HeaderMedia.tsx\nimport{jsx as _jsx}from\"react/jsx-runtime\";const has=v=>typeof v===\"string\"&&v.trim()!==\"\";const isVideoURL=s=>/\\.(mp4|webm|mov)(\\?|$)/i.test(s);//\n// Attach to the VIDEO layer\n//\nexport function UseVideoWhenPresent(){return props=>{const src=String(props.src||\"\");const show=has(src)&&(String(props.srcType||\"\").includes(\"video\")||isVideoURL(src));return{// Hide the whole component if no real video — prevents the Framer ocean poster\nvisible:show,style:{position:\"relative\",zIndex:2,background:\"none\"}};};}//\n// Attach to the IMAGE layer\n//\nexport function UseImageWhenPresent(){return props=>{const src=String(props.src||\"\");const isImg=has(src)&&!isVideoURL(src);return isImg?{visible:true,style:{position:\"relative\",zIndex:1,background:\"none\"}}:{visible:false,style:{display:\"none\",pointerEvents:\"none\"}};};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withUseVideoWhenPresent(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...UseVideoWhenPresent(props)});};}withUseVideoWhenPresent.displayName=\"UseVideoWhenPresent\";export function withUseImageWhenPresent(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...UseImageWhenPresent(props)});};}withUseImageWhenPresent.displayName=\"UseImageWhenPresent\";\nexport const __FramerMetadata__ = {\"exports\":{\"withUseVideoWhenPresent\":{\"type\":\"reactHoc\",\"name\":\"withUseVideoWhenPresent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUseImageWhenPresent\":{\"type\":\"reactHoc\",\"name\":\"withUseImageWhenPresent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"UseVideoWhenPresent\":{\"type\":\"override\",\"name\":\"UseVideoWhenPresent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"UseImageWhenPresent\":{\"type\":\"override\",\"name\":\"UseImageWhenPresent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeaderVideo.map"],"mappings":"mKAIA,SAAgB,GAAqB,CAAC,MAAO,IAAO,CAAC,IAAM,EAAI,OAAO,EAAM,KAAK,GAAG,CAAqF,MAAM,CAC/K,QADgG,EAAI,EAAI,GAAG,OAAO,EAAM,SAAS,GAAG,CAAC,SAAS,QAAQ,EAAE,EAAW,EAAI,EAC1J,MAAM,CAAC,SAAS,WAAW,OAAO,EAAE,WAAW,OAAO,CAAC,EAGpE,SAAgB,GAAqB,CAAC,MAAO,IAAO,CAAC,IAAM,EAAI,OAAO,EAAM,KAAK,GAAG,CAAwC,OAA3B,EAAI,EAAI,EAAE,CAAC,EAAW,EAAI,CAAc,CAAC,QAAQ,GAAK,MAAM,CAAC,SAAS,WAAW,OAAO,EAAE,WAAW,OAAO,CAAC,CAAC,CAAC,QAAQ,GAAM,MAAM,CAAC,QAAQ,OAAO,cAAc,OAAO,CAAC,EAAuJ,SAAgB,EAAwB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAoB,EAAM,CAAC,CAAC,EAA8D,SAAgB,EAAwB,EAAE,CAAC,MAAO,KAAQ,EAA+BD,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAoB,EAAM,CAAC,CAAC,uBAPtyB,IAOmS,IAAmF,CAPhX,EAAI,GAAG,OAAO,GAAI,UAAU,EAAE,MAAM,GAAG,GAAS,EAAW,GAAG,0BAA0B,KAAK,EAAE,CAO8c,EAAwB,YAAY,sBAAmN,EAAwB,YAAY"}