{"version":3,"file":"TallyForm.DiMuFN4F.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/2BHxPZ8YmghUk4iY05eO/9GUR0FwpOVAtBmwMlQNc/TallyForm.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{ControlType}from\"framer\";const tallyEmbedScript=\"https://tally.so/widgets/embed.js\";export default function TallyForm(props){const iframeRef=useRef(null);const formId=props.formId||\"XxEQGY\";const tallyConfig=\"alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1&formEventsForwarding=1\";let initialSrc=`https://tally.so/embed/${formId}?${tallyConfig}`;if(typeof window!==\"undefined\"&&window.location.search){initialSrc=`https://tally.so/embed/${formId}${window.location.search}&${tallyConfig}`;}useEffect(()=>{const loadTally=()=>{if(window.Tally){window.Tally.loadEmbeds();}else{const script=document.createElement(\"script\");script.src=tallyEmbedScript;script.onload=()=>{if(window.Tally){window.Tally.loadEmbeds();}};document.body.appendChild(script);}};loadTally();},[formId]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",minHeight:\"860px\",height:\"100%\"},children:/*#__PURE__*/_jsx(\"iframe\",{ref:iframeRef,src:initialSrc,\"data-tally-src\":initialSrc,loading:\"eager\",// @ts-ignore\nfetchpriority:\"high\",frameBorder:\"0\",marginHeight:0,marginWidth:0,title:\"Contacto Zapper\",scrolling:\"no\",style:{width:\"100%\",height:\"100%\",minHeight:\"860px\",border:\"none\",overflow:\"hidden\"}})});}TallyForm.propertyControls={formId:{type:ControlType.String,title:\"Tally Form ID\",defaultValue:\"XxEQGY\",placeholder:\"Ex: XxEQGY\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TallyForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TallyForm.map"],"mappings":"yLAA0K,SAAwB,EAAU,EAAM,CAAC,IAAM,EAAUA,EAAO,IAAI,EAAQ,EAAO,EAAM,QAAQ,SAAe,EAAY,yFAA6F,EAAW,0BAA0B,EAAO,GAAG,IAA0b,OAAla,IAAS,QAAa,EAAO,SAAS,SAAQ,EAAW,0BAA0B,IAAS,EAAO,SAAS,OAAO,GAAG,KAAe,MAAc,MAAqB,CAAC,GAAG,EAAO,MAAO,EAAO,MAAM,WAAW,MAAO,CAAC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,IAAI,EAAiB,EAAO,WAAW,CAAI,EAAO,OAAO,EAAO,MAAM,WAAW,CAAG,EAAE,SAAS,KAAK,YAAY,CAAM,CAAE,CAAC,EAAE,CAAU,CAAE,EAAE,CAAC,CAAM,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,UAAU,QAAQ,OAAO,MAAM,EAAE,SAAsB,EAAK,SAAS,CAAC,IAAI,EAAU,IAAI,EAAW,iBAAiB,EAAW,QAAQ,QACviC,cAAc,OAAO,YAAY,IAAI,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,UAAU,KAAK,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,QAAQ,OAAO,OAAO,SAAS,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAE,uBADxJ,IAAoC,IAAgC,EAAO,EAAiB,oCAC6D,EAAU,iBAAiB,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,gBAAgB,aAAa,SAAS,YAAY,YAAY,CAAC"}