{"version":3,"file":"EmbedLink.DB2xQ4rt.mjs","names":[],"sources":["https:/framerusercontent.com/modules/15t0cgxejmKEgJZWOfRB/cqMSoSZZYJBdtaHBquPg/EmbedLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import Embed from\"https://framerusercontent.com/modules/o1PI5S8YtkA5bP5g4dFz/9zLIz4fn80IR9zpOx18Q/Embed.js\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */function IframeComponent({url=\"\"}){if(!url)return null;return /*#__PURE__*/_jsx(\"iframe\",{src:url,loading:\"lazy\",fetchPriority:\"auto\",referrerPolicy:\"no-referrer\",sandbox:\"allow-same-origin allow-scripts allow-fullscreen allow-downloads allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-storage-access-by-user-activation allow-top-navigation-by-user-activation\",allow:\"fullscreen; autoplay; encrypted-media; picture-in-picture\",allowFullScreen:true,style:{width:\"100%\",height:\"100%\",border:\"none\"}});}export default function EmbedLink(props){const{link,tag}=props;if(tag===\"video\"){return /*#__PURE__*/_jsx(\"video\",{style:{width:\"100%\",height:\"100%\"},src:link,loop:true,muted:true,autoPlay:true,playsInline:true,controlsList:\"nodownload\",children:/*#__PURE__*/_jsx(\"source\",{src:link,type:\"video/mp4\"})});}else if(tag===\"custom_iframe\"){return /*#__PURE__*/_jsx(IframeComponent,{type:\"url\",url:link});}return /*#__PURE__*/_jsx(Embed,{type:\"url\",url:link});}EmbedLink.displayName=\"Embed Link\";addPropertyControls(EmbedLink,{link:{type:ControlType.Link},tag:{title:\"Tag\",type:ControlType.Enum,displaySegmentedControl:true,segmentedControlDirection:\"vertical\",options:[\"iframe\",\"video\",\"custom_iframe\"],optionTitles:[\"Iframe\",\"Video\",\"Custom Iframe\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EmbedLink\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EmbedLink.map"],"mappings":"6MAGG,SAAS,EAAgB,CAAC,MAAI,IAAI,CAAqB,OAAhB,EAAoC,EAAK,SAAS,CAAC,IAAI,EAAI,QAAQ,OAAO,cAAc,OAAO,eAAe,cAAc,QAAQ,qRAAqR,MAAM,4DAA4D,gBAAgB,GAAK,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,MAAM,CAAC,CAAC,EAAthB,IAAwhB,CAAC,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,EAAwV,OAA/U,IAAM,QAA6B,EAAK,QAAQ,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,EAAE,IAAI,EAAK,KAAK,GAAK,MAAM,GAAK,SAAS,GAAK,YAAY,GAAK,aAAa,aAAa,SAAsB,EAAK,SAAS,CAAC,IAAI,EAAK,KAAK,WAAW,CAAC,CAAC,CAAC,EAAsD,EAA3C,IAAM,gBAA0C,EAAiE,EAAjD,CAAC,KAAK,MAAM,IAAI,CAAI,CAAC,CAAyD,iBAH3+B,IAAoD,IAA4G,EAG40B,EAAU,YAAY,aAAa,EAAoB,EAAU,CAAC,KAAK,CAAC,KAAK,EAAY,IAAI,EAAE,IAAI,CAAC,MAAM,MAAM,KAAK,EAAY,KAAK,wBAAwB,GAAK,0BAA0B,WAAW,QAAQ,CAAC,SAAS,QAAQ,eAAe,EAAE,aAAa,CAAC,SAAS,QAAQ,eAAe,CAAC,CAAC,CAAC"}