{"version":3,"file":"YouTubeCaseStudyPlayer.BvH960VK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/0Ed96gHtrR4awQqeW424/qfvji5d5Boe35W89lnDn/YouTubeCaseStudyPlayer.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function getVideoId(value){const match=value.match(/(?:youtu\\.be\\/|youtube\\.com\\/(?:watch\\?v=|embed\\/|shorts\\/))([A-Za-z0-9_-]{11})/);return match?.[1]??value.replace(/[^A-Za-z0-9_-]/g,\"\").slice(0,11);}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function YouTubeCaseStudyPlayer(props){const{video=\"https://www.youtube.com/watch?v=3d9yqiG2sY4\",title=\"Featured project film\",style}=props;const videoId=getVideoId(video);const src=`https://www.youtube.com/embed/${videoId}?rel=0&modestbranding=1&playsinline=1`;return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background:\"#000\"},children:/*#__PURE__*/_jsx(\"iframe\",{src:src,title:title,loading:\"lazy\",allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\",allowFullScreen:true,referrerPolicy:\"strict-origin-when-cross-origin\",style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:0}})});}addPropertyControls(YouTubeCaseStudyPlayer,{video:{type:ControlType.String,title:\"YouTube URL\",defaultValue:\"https://www.youtube.com/watch?v=3d9yqiG2sY4\"},title:{type:ControlType.String,title:\"Player Title\",defaultValue:\"Featured project film\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"YouTubeCaseStudyPlayer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./YouTubeCaseStudyPlayer.map"],"mappings":"4JAA+F,SAAS,EAAW,EAAM,CAA4G,OAA/F,EAAM,MAAM,iFAA8F,CAAC,GAAG,IAAI,EAAM,QAAQ,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAE,CAGrS,SAAwB,EAAuB,EAAM,CAAC,GAAK,CAAC,QAAM,8CAA8C,QAAM,wBAAwB,SAAO,EAA4C,EAAI,iCAA5B,EAAW,CAAwD,EAAE,uCAAuC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,WAAW,MAAM,EAAE,SAAsB,EAAK,SAAS,CAAK,MAAU,QAAM,QAAQ,OAAO,MAAM,sGAAsG,gBAAgB,GAAK,eAAe,kCAAkC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,MAAM,OAAO,OAAO,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,iBAHxrB,IAAoD,EAGqoB,EAAoB,EAAuB,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,6CAA6C,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,eAAe,aAAa,uBAAuB,CAAC,CAAC"}