{"version":3,"file":"LeadTruffle_Code.Dgsend_B.mjs","names":["React.useRef"],"sources":["https:/framerusercontent.com/modules/40pQgd5iXmFKGkt7Zxg5/SmE7hFs8QyL4qCx1Uz22/LeadTruffle_Code.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export default function LeadFormWidget(){const containerRef=React.useRef(null);React.useEffect(()=>{// Create the external script tag\nconst script=document.createElement(\"script\");script.src=\"https://embeds-v1.leadtruffle.com/jsform/jsform-widget.js\";script.async=true;script.onload=()=>{if(window.TJSFormWidget&&containerRef.current){window.TJSFormWidget.initialize({companyId:\"90def81d-f2e1-46aa-80f1-0e333415237c\",targetElement:\"#lead-form-container\"});}};document.head.appendChild(script);// Optional cleanup\nreturn()=>{// Remove the script if needed\nscript.remove();// Clear container content on unmount\nif(containerRef.current){containerRef.current.innerHTML=\"\";}};},[]);return /*#__PURE__*/_jsx(\"div\",{id:\"lead-form-container\",ref:containerRef});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LeadFormWidget\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LeadTruffle_Code.map"],"mappings":"uIAAuE,SAAwB,GAAgB,CAAC,IAAM,EAAaA,EAAa,KAAK,CAIjF,OAJkF,MAAoB,CAC1K,IAAM,EAAO,SAAS,cAAc,SAAS,CAC7C,MAD8C,GAAO,IAAI,4DAA4D,EAAO,MAAM,GAAK,EAAO,WAAW,CAAI,EAAO,eAAe,EAAa,SAAS,EAAO,cAAc,WAAW,CAAC,UAAU,uCAAuC,cAAc,uBAAuB,CAAC,EAAI,SAAS,KAAK,YAAY,EAAO,KAC5V,CACV,EAAO,QAAQ,CACZ,EAAa,UAAS,EAAa,QAAQ,UAAU,MAAQ,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAC,GAAG,sBAAsB,IAAI,EAAa,CAAC,sBAJpG,IAA4B"}