{"version":3,"file":"WebM_Player.C4eNF3PV.mjs","names":[],"sources":["https:/framerusercontent.com/modules/kUpXxZ0We3m24k7sru14/sBTSKYEUlUrcjWM9jcNc/WebM_Player.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function WebMPlayer(props){const{webmFile=\"\",objectFit=\"contain\",background=\"#FFFFFF\",cornerRadius=\"0px\",ariaLabel=\"WebM video\",playAudio=false}=props;const hasVideo=typeof webmFile===\"string\"&&webmFile.trim().length>0;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",background,borderRadius:cornerRadius,overflow:\"hidden\"},\"aria-label\":ariaLabel,children:hasVideo?/*#__PURE__*/_jsx(\"video\",{src:webmFile,autoPlay:true,loop:true,muted:!playAudio,playsInline:true,controls:false,disablePictureInPicture:true,style:{width:\"100%\",height:\"100%\",display:\"block\",objectFit,background},\"aria-label\":ariaLabel}):null});}addPropertyControls(WebMPlayer,{webmFile:{type:ControlType.File,title:\"WebM\",allowedFileTypes:[\"webm\"]},objectFit:{type:ControlType.Enum,title:\"Fit\",options:[\"contain\",\"cover\",\"fill\",\"none\",\"scale-down\"],optionTitles:[\"Contain\",\"Cover\",\"Fill\",\"None\",\"Scale Down\"],defaultValue:\"contain\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},cornerRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"0px\"},ariaLabel:{type:ControlType.String,title:\"Label\",defaultValue:\"WebM video\",placeholder:\"Accessible label\"},playAudio:{type:ControlType.Boolean,title:\"Play audio\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WebMPlayer\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-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