{"version":3,"file":"OA_Video.CfDBP8tx.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ypZ1l1O0D293Ih2pE5FS/VwNL73jEqYgDIrBKg1Bx/OA_Video.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicHeight 480\n */export default function YouTubeVideo(props){// Map ratio selection to padding percentage\nconst ratioMap={\"16:9\":\"56.25%\",\"4:3\":\"75%\",\"1:1\":\"100%\",\"9:16\":\"177.78%\"};const paddingTop=ratioMap[props.ratio]||\"56.25%\";const videoUrl=`https://www.youtube.com/embed/${props.videoId}?autoplay=${props.autoPlay?1:0}&mute=${props.muted?1:0}&loop=${props.loop?1:0}&playlist=${props.loop?props.videoId:\"\"}&controls=${props.controls?1:0}&rel=0&playsinline=1`;return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",width:\"100%\",paddingTop,overflow:\"hidden\",borderRadius:props.radius},children:/*#__PURE__*/_jsx(\"iframe\",{src:videoUrl,title:\"YouTube Video\",frameBorder:\"0\",allow:\"autoplay; encrypted-media\",allowFullScreen:true,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",borderRadius:props.radius}})});}YouTubeVideo.displayName=\"YouTube Video\";addPropertyControls(YouTubeVideo,{videoId:{type:ControlType.String,title:\"Video ID\",defaultValue:\"dQw4w9WgXcQ\"},autoPlay:{type:ControlType.Boolean,title:\"Auto Play\",defaultValue:true},muted:{type:ControlType.Boolean,title:\"Muted\",defaultValue:true},loop:{type:ControlType.Boolean,title:\"Loop\",defaultValue:false},controls:{type:ControlType.Boolean,title:\"Show Controls\",defaultValue:false},ratio:{type:ControlType.Enum,title:\"Aspect Ratio\",options:[\"16:9\",\"4:3\",\"1:1\",\"9:16\"],optionTitles:[\"16:9 (Widescreen)\",\"4:3 (Classic)\",\"1:1 (Square)\",\"9:16 (Vertical)\"],defaultValue:\"16:9\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:50,defaultValue:0,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"YouTubeVideo\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"480\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OA_Video.map"],"mappings":"4JAIG,SAAwB,EAAa,EAAM,CAC6B,IAAM,EAAlE,CAAC,OAAO,SAAS,MAAM,MAAM,MAAM,OAAO,OAAO,UAAU,CAA2B,EAAM,QAAQ,SAAe,EAAS,iCAAiC,EAAM,QAAQ,YAAY,EAAM,SAAS,EAAE,EAAE,QAAQ,EAAM,MAAM,EAAE,EAAE,QAAQ,EAAM,KAAK,EAAE,EAAE,YAAY,EAAM,KAAK,EAAM,QAAQ,GAAG,YAAY,EAAM,SAAS,EAAE,EAAE,sBAAsB,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,MAAM,OAAO,aAAW,SAAS,SAAS,aAAa,EAAM,OAAO,CAAC,SAAsB,EAAK,SAAS,CAAC,IAAI,EAAS,MAAM,gBAAgB,YAAY,IAAI,MAAM,4BAA4B,gBAAgB,GAAK,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,aAAa,EAAM,OAAO,CAAC,CAAC,CAAC,CAAC,kBALzrB,IAAoD,CAKuoB,EAAa,YAAY,gBAAgB,EAAoB,EAAa,CAAC,QAAQ,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,cAAc,CAAC,SAAS,CAAC,KAAK,EAAY,QAAQ,MAAM,YAAY,aAAa,GAAK,CAAC,MAAM,CAAC,KAAK,EAAY,QAAQ,MAAM,QAAQ,aAAa,GAA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