{"version":3,"file":"Transparent_Video.DS-RFrn1.mjs","names":[],"sources":["https:/framerusercontent.com/modules/A7RErkOACsg4ry84nwhC/oaZcCvZixEsU8GAyco4H/Transparent_Video.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Transparent_Video(props){useEffect(()=>{const player=document.getElementById(`player-${props.id}`);player.src=supportsHEVCAlpha()?props.hevcVideo:props.webmVideo;},[]);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"video\",{style:videoStyle,id:`player-${props.id}`,loop:true,muted:true,autoPlay:true,playsInline:true})});}const containerStyle={height:\"100%\",display:\"flex\"};const videoStyle={width:\"100%\",height:\"100%\"};const supportsHEVCAlpha=()=>{const navigator=window.navigator;const ua=navigator.userAgent.toLowerCase();const hasMediaCapabilities=!!(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo);const isSafari=ua.indexOf(\"safari\")!=-1&&!(ua.indexOf(\"chrome\")!=-1)&&ua.indexOf(\"version/\")!=-1;return isSafari&&hasMediaCapabilities;};addPropertyControls(Transparent_Video,{id:{title:\"ID\",type:ControlType.String},webmVideo:{type:ControlType.File,allowedFileTypes:[\"webm\"]},hevcVideo:{type:ControlType.File,allowedFileTypes:[\"mov\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Transparent_Video\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Transparent_Video.map"],"mappings":"wLAMG,SAAwB,EAAkB,EAAM,CAAgJ,OAA/I,MAAc,CAAC,IAAM,EAAO,SAAS,eAAe,UAAU,EAAM,KAAK,CAAC,EAAO,IAAI,GAAmB,CAAC,EAAM,UAAU,EAAM,WAAY,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,EAAe,SAAsB,EAAK,QAAQ,CAAC,MAAM,EAAW,GAAG,UAAU,EAAM,KAAK,KAAK,GAAK,MAAM,GAAK,SAAS,GAAK,YAAY,GAAK,CAAC,CAAC,CAAC,4BANjV,IAAoD,IAA6B,CAMwQ,EAAe,CAAC,OAAO,OAAO,QAAQ,OAAO,CAAO,EAAW,CAAC,MAAM,OAAO,OAAO,OAAO,CAAO,MAAsB,CAAC,IAAM,EAAU,EAAO,UAAgB,EAAG,EAAU,UAAU,aAAa,CAAO,EAAqB,CAAC,EAAE,EAAU,mBAAmB,EAAU,kBAAkB,cAA+G,OAAlF,EAAG,QAAQ,SAAS,EAAE,IAAM,EAAG,QAAQ,SAAS,EAAE,IAAK,EAAG,QAAQ,WAAW,EAAE,IAAoB,GAAuB,EAAoB,EAAkB,CAAC,GAAG,CAAC,MAAM,KAAK,KAAK,EAAY,OAAO,CAAC,UAAU,CAAC,KAAK,EAAY,KAAK,iBAAiB,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,KAAK,EAAY,KAAK,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC"}