{"version":3,"file":"Compatible_video.BCVpyPZI.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/9zNteyyn5twIsEooqT6M/htQ6grSSawGpFHYWaWwV/Compatible_video.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function MyVideo(props){const[isSafari,setIsSafari]=React.useState(false);React.useEffect(()=>{if(typeof window!==\"undefined\"){const ua=navigator.userAgent;const isSafariBrowser=/Safari/.test(ua)&&!/Chrome/.test(ua)&&!/Chromium/.test(ua);setIsSafari(isSafariBrowser);}},[]);const sharedStyle={width:\"100%\",height:\"100%\",objectFit:\"contain\",background:\"transparent\",display:\"block\",...props.style};return isSafari?/*#__PURE__*/_jsx(\"img\",{src:props.pngFallback,alt:\"Cloud\",style:sharedStyle}):/*#__PURE__*/_jsx(\"video\",{autoPlay:true,loop:true,muted:true,playsInline:true,style:sharedStyle,children:/*#__PURE__*/_jsx(\"source\",{src:props.webmFile,type:\"video/webm\"})});}MyVideo.defaultProps={webmFile:\"\",pngFallback:\"\"};addPropertyControls(MyVideo,{webmFile:{type:ControlType.File,title:\"WEBM\",allowedFileTypes:[\"webm\"]},pngFallback:{type:ControlType.File,title:\"PNG Fallback\",allowedFileTypes:[\"png\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"MyVideo\":{\"type\":\"reactComponent\",\"name\":\"MyVideo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Compatible_video.map"],"mappings":"sMAA2H,SAAgB,EAAQ,EAAM,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAe,GAAM,CAAC,MAAoB,CAAC,GAAU,IAAS,OAAY,CAAC,IAAM,EAAG,EAAU,UAA4F,EAA5D,SAAS,KAAK,EAAG,EAAE,CAAC,SAAS,KAAK,EAAG,EAAE,CAAC,WAAW,KAAK,EAAG,CAA6B,GAAI,EAAE,CAAC,CAAC,IAAM,EAAY,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,UAAU,WAAW,cAAc,QAAQ,QAAQ,GAAG,EAAM,MAAM,CAAC,OAAO,EAAsB,EAAK,MAAM,CAAC,IAAI,EAAM,YAAY,IAAI,QAAQ,MAAM,EAAY,CAAC,CAAc,EAAK,QAAQ,CAAC,SAAS,GAAK,KAAK,GAAK,MAAM,GAAK,YAAY,GAAK,MAAM,EAAY,SAAsB,EAAK,SAAS,CAAC,IAAI,EAAM,SAAS,KAAK,aAAa,CAAC,CAAC,CAAC,sBAAjvB,IAA4B,IAAoD,CAAmqB,EAAQ,aAAa,CAAC,SAAS,GAAG,YAAY,GAAG,CAAC,EAAoB,EAAQ,CAAC,SAAS,CAAC,KAAK,EAAY,KAAK,MAAM,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,KAAK,EAAY,KAAK,MAAM,eAAe,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC"}