{"version":3,"file":"LMFLVideoEmbed.Bs7lo49l.mjs","names":[],"sources":["https:/framerusercontent.com/modules/TUURNo4c3a999APtbooV/2L7LGe8vkA1RBlZS4UfG/LMFLVideoEmbed.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * LMFL Video Embed\n * Accepts a YouTube or Vimeo link (works with CMS \"Link\" fields).\n * Renders nothing when the link is empty, so it can sit on CMS pages safely.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function LMFLVideoEmbed(props){const{url,radius,title,style}=props;const src=toEmbedUrl(url);if(!src)return null;return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",position:\"relative\",aspectRatio:\"16 / 9\",borderRadius:radius,overflow:\"hidden\",background:\"#000\"},children:/*#__PURE__*/_jsx(\"iframe\",{src:src,title:title||\"Video\",loading:\"lazy\",allow:\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\",allowFullScreen:true,style:{position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",border:0}})});}function toEmbedUrl(raw){if(!raw||typeof raw!==\"string\")return null;const url=raw.trim();if(!url)return null;let m=url.match(/(?:youtube\\.com\\/(?:watch\\?(?:.*&)?v=|embed\\/|shorts\\/|live\\/)|youtu\\.be\\/)([A-Za-z0-9_-]{6,})/);if(m)return`https://www.youtube-nocookie.com/embed/${m[1]}?rel=0`;m=url.match(/vimeo\\.com\\/(?:video\\/)?(\\d+)/);if(m)return`https://player.vimeo.com/video/${m[1]}`;return null;}LMFLVideoEmbed.defaultProps={url:\"https://www.youtube.com/watch?v=sFNNlQApZ48\",radius:16,title:\"Video\"};addPropertyControls(LMFLVideoEmbed,{url:{type:ControlType.Link,title:\"Video link\"},title:{type:ControlType.String,title:\"Title\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:48,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LMFLVideoEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LMFLVideoEmbed.map"],"mappings":"4JAOG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,MAAI,SAAO,QAAM,SAAO,EAAY,EAAI,EAAW,CAAG,EAAsB,OAAhB,EAAoC,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,SAAS,WAAW,YAAY,SAAS,aAAa,EAAO,SAAS,SAAS,WAAW,MAAM,EAAE,SAAsB,EAAK,SAAS,CAAK,MAAI,MAAM,GAAO,QAAQ,QAAQ,OAAO,MAAM,sGAAsG,gBAAgB,GAAK,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,MAAM,OAAO,OAAO,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAhc,IAAkc,CAAC,SAAS,EAAW,EAAI,CAAC,GAAG,CAAC,GAAK,OAAO,GAAM,SAAS,OAAO,KAAK,IAAM,EAAI,EAAI,KAAK,EAAE,GAAG,CAAC,EAAI,OAAO,KAAK,IAAI,EAAE,EAAI,MAAM,gGAAgG,EAAqK,OAAhK,EAAQ,0CAA0C,EAAE,GAAG,SAAQ,EAAE,EAAI,MAAM,+BAA+B,EAAK,EAAQ,kCAAkC,EAAE,KAAY,KAAK,iBAPr6B,IAAoD,EAOk3B,EAAe,aAAa,CAAC,IAAI,8CAA8C,OAAO,GAAG,MAAM,OAAO,EAAE,EAAoB,EAAe,CAAC,IAAI,CAAC,KAAK,EAAY,KAAK,MAAM,YAAY,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC"}