{"version":3,"file":"TwoColumnVideos.ChbA-Mei.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/ZtoEohoRKQFMzePNTmSF/vgBL6sJFVMWUMCbVEtG0/TwoColumnVideos.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";function toEmbedUrl(url){const trimmed=(url||\"\").trim();if(!trimmed)return\"\";if(trimmed.includes(\"/embed/\"))return trimmed;const shortsMatch=trimmed.match(/youtube\\.com\\/shorts\\/([^?&/]+)/i);if(shortsMatch?.[1])return`https://www.youtube.com/embed/${shortsMatch[1]}`;const watchMatch=trimmed.match(/[?&]v=([^?&/]+)/i);if(watchMatch?.[1])return`https://www.youtube.com/embed/${watchMatch[1]}`;const shortLinkMatch=trimmed.match(/youtu\\.be\\/([^?&/]+)/i);if(shortLinkMatch?.[1])return`https://www.youtube.com/embed/${shortLinkMatch[1]}`;return trimmed;}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function TwoColumnVideos(props){const{firstUrl,secondUrl,gap}=props;const firstEmbed=useMemo(()=>toEmbedUrl(firstUrl),[firstUrl]);const secondEmbed=useMemo(()=>toEmbedUrl(secondUrl),[secondUrl]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",display:\"grid\",gridTemplateColumns:\"repeat(auto-fit, minmax(220px, 1fr))\",gap,background:\"transparent\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",aspectRatio:\"9 / 16\"},children:/*#__PURE__*/_jsx(\"iframe\",{src:firstEmbed,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:\"none\",background:\"transparent\"},allowFullScreen:true})}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",aspectRatio:\"9 / 16\"},children:/*#__PURE__*/_jsx(\"iframe\",{src:secondEmbed,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:\"none\",background:\"transparent\"},allowFullScreen:true})})]});}addPropertyControls(TwoColumnVideos,{firstUrl:{type:ControlType.String,title:\"First URL\",defaultValue:\"https://youtu.be/AclfrUQvi3Q\"},secondUrl:{type:ControlType.String,title:\"Second URL\",defaultValue:\"https://youtube.com/shorts/0oifM17vTSQ?feature=share\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:12,min:0,max:40,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TwoColumnVideos\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TwoColumnVideos.map"],"mappings":"iLAAwI,SAAS,EAAW,EAAI,CAAC,IAAM,GAAS,GAAK,GAAA,CAAI,KAAK,EAAE,GAAG,CAAC,EAAQ,MAAM,GAAG,GAAG,EAAQ,SAAS,SAAS,EAAE,OAAO,EAAQ,IAAM,EAAY,EAAQ,MAAM,kCAAkC,EAAE,GAAG,IAAc,GAAG,MAAM,iCAAiC,EAAY,KAAK,IAAM,EAAW,EAAQ,MAAM,kBAAkB,EAAE,GAAG,IAAa,GAAG,MAAM,iCAAiC,EAAW,KAAK,IAAM,EAAe,EAAQ,MAAM,uBAAuB,EAAoF,OAA/E,IAAiB,GAAS,iCAAiC,EAAe,KAAY,CAAQ,CAG1qB,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,WAAS,YAAU,OAAK,EAAY,EAAWA,MAAY,EAAW,CAAQ,EAAE,CAAC,CAAQ,CAAC,EAAQ,EAAYA,MAAY,EAAW,CAAS,EAAE,CAAC,CAAS,CAAC,EAAE,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,QAAQ,OAAO,oBAAoB,uCAA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