{"version":3,"file":"WidgetEmbed.O2X13Tli.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/IwBhPFrLnwODuu2h6uLn/JC3V7MLO7Us5z9NzdEP7/WidgetEmbed.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useRef}from\"react\";export default function WidgetEmbed(props){const{campaignKey}=props;const ref=useRef();const campaignLink=`https://gleam.io/${campaignKey}/`;useEffect(()=>{const gleamWidgetScript=document.createElement(\"script\");const body=document.getElementsByTagName(\"body\")[0];gleamWidgetScript.src=\"https://widget.gleamjs.io/e.js\";gleamWidgetScript.async=true;body.appendChild(gleamWidgetScript);},[ref.current]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,className:\"js-widgets-preview-frame\",\"data-widget-preview-selected\":campaignLink,children:/*#__PURE__*/_jsx(\"a\",{className:\"e-widget no-button\",href:campaignLink,rel:\"nofollow\"})});}addPropertyControls(WidgetEmbed,{campaignKey:{title:\"Campaign Key\",type:ControlType.String,defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WidgetEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WidgetEmbed.map"],"mappings":"6KAAmI,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,eAAa,EAAY,EAAIA,GAAQ,CAAO,EAAa,oBAAoB,EAAY,GAAwQ,OAArQ,MAAc,CAAC,IAAM,EAAkB,SAAS,cAAc,SAAS,CAAO,EAAK,SAAS,qBAAqB,OAAO,CAAC,GAAG,EAAkB,IAAI,iCAAiC,EAAkB,MAAM,GAAK,EAAK,YAAY,EAAkB,EAAG,CAAC,EAAI,QAAQ,CAAC,CAAqB,EAAK,MAAM,CAAK,MAAI,UAAU,2BAA2B,+BAA+B,EAAa,SAAsB,EAAK,IAAI,CAAC,UAAU,qBAAqB,KAAK,EAAa,IAAI,WAAW,CAAC,CAAC,CAAC,kBAAtsB,IAAoD,IAAoC,CAAgnB,EAAoB,EAAY,CAAC,YAAY,CAAC,MAAM,eAAe,KAAK,EAAY,OAAO,aAAa,GAAG,CAAC,CAAC"}