{"version":3,"file":"Hubspot_styling_1.CmLFD6LK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/OQMvqpWTgqhN84DWaKOK/oqel7JGPK8TcOUDMftBi/Hubspot_styling_1.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const Hubspot_styling_1=({formId=\"fb055c3c-5780-44fa-973b-1a063228463a\"})=>{useEffect(()=>{// Load HubSpot script to render the form\nconst script=document.createElement(\"script\");script.src=\"https://js.hsforms.net/forms/v2.js\";document.body.appendChild(script);const style=document.createElement(\"style\");style.innerHTML=`\n            @font-face {\n                font-family: 'Greycliff';\n                src: url('https://dev.campfire3d.com/assets/fonts/medium.woff2') format('woff2');\n                font-weight: 500;\n                font-style: normal;\n            }\n            @font-face {\n                font-family: 'Greycliff';\n                src: url('https://dev.campfire3d.com/assets/fonts/demibold.woff2') format('woff2');\n                font-weight: 600;\n                font-style: normal;\n            }\n            @font-face {\n                font-family: 'Greycliff';\n                src: url('https://dev.campfire3d.com/assets/fonts/bold.woff2') format('woff2');\n                font-weight: 700;\n                font-style: normal;\n            }\n        `;document.head.appendChild(style);script.onload=()=>{if(window.hbspt){window.hbspt.forms.create({region:\"na1\",portalId:\"19894063\",formId,target:\"#hubspotForm\",onFormReady:()=>{const form=document.querySelector(\"#hubspotForm form\");if(form){form.style.fontFamily=\"'Greycliff', sans-serif\";// Apply styles to input fields (excluding buttons)\nconst textInputs=form.querySelectorAll(\"input:not([type='submit'])\");textInputs.forEach(input=>{input.style.backgroundColor=\"rgba(0, 0, 0, .2)\";input.style.borderRadius=\"10px\";input.style.border=\"1px solid hsla(0, 0%, 50%, .1)\";input.style.boxShadow=\"inset 1.46px 2.921px 2.921px -.73px rgba(0,0,0,.25),inset 0 -.73px .73px 0 hsla(0,0%,100%,.2)\";input.style.padding=\"10px\";input.style.fontSize=\"12px\";input.style.color=\"#fff\";});// Apply styles to textarea fields\nconst textareas=form.querySelectorAll(\"textarea\");textareas.forEach(textarea=>{textarea.style.backgroundColor=\"rgba(0, 0, 0, .2)\";textarea.style.borderRadius=\"10px\";textarea.style.border=\"1px solid hsla(0, 0%, 50%, .1)\";textarea.style.boxShadow=\"inset 1.46px 2.921px 2.921px -.73px rgba(0,0,0,.25),inset 0 -.73px .73px 0 hsla(0,0%,100%,.2)\";textarea.style.padding=\"10px\";textarea.style.fontSize=\"12px\";textarea.style.color=\"#fff\";textarea.style.resize=\"vertical\";});// Apply styles to error messages\nconst applyErrorStyles=()=>{const errorLists=form.querySelectorAll(\".hs-error-msg ul, .hs-error-msg li, .hs-error-msg div, .no-list, .hs-error-msgs, .inputs-list\");errorLists.forEach(errorList=>{errorList.style.listStyleType=\"none\";errorList.style.padding=\"0\";errorList.style.margin=\"0\";});const errorMessages=form.querySelectorAll(\".hs-error-msg li, .hs-error-msg span, .hs-error-msg p, .no-list, .hs-error-msgs, .inputs-list\");errorMessages.forEach(errorMessage=>{errorMessage.style.color=\"#B53333\";errorMessage.style.fontSize=\"12px\";errorMessage.style.marginTop=\"5px\";errorMessage.style.marginBottom=\"5px\";});};const observer=new MutationObserver(applyErrorStyles);observer.observe(form,{childList:true,subtree:true});// Labels\nconst labels=form.querySelectorAll(\"label\");labels.forEach(label=>{label.style.fontSize=\"14px\";label.style.fontWeight=\"500\";label.style.fontFamily=\"'Greycliff', Calibri\";label.style.color=\"#898b95\";label.style.marginBottom=\"8px\";label.style.display=\"block\";label.style.marginTop=\"10px\";});// Submit button\nconst button=form.querySelector(\"input[type='submit'], button\");if(button){button.style.backgroundColor=\"#F84536\";button.style.color=\"white\";button.style.marginTop=\"20px\";button.style.padding=\"12px 20px\";button.style.border=\"none\";button.style.fontWeight=\"600\";button.style.borderRadius=\"12px\";button.style.cursor=\"pointer\";button.style.fontFamily=\"'Greycliff', Calibri\";button.style.boxShadow=\"rgba(0, 0, 0, 0.15) 0px 0.706592px 0.706592px -0.625px, rgba(0, 0, 0, 0.145) 0px 1.80656px 1.80656px -1.25px, rgba(0, 0, 0, 0.137) 0px 3.62176px 3.62176px -1.875px, rgba(0, 0, 0, 0.125) 0px 6.8656px 6.8656px -2.5px, rgba(0, 0, 0, 0.106) 0px 13.6468px 13.6468px -3.125px, rgba(0, 0, 0, 0.05) 0px 30px 30px -3.75px\";button.onmouseover=()=>{button.style.backgroundColor=\"#FF6A5D\";};button.onmouseout=()=>{button.style.backgroundColor=\"#F84536\";};}// Privacy text\nconst privacyText=form.querySelector(\".hs-richtext p, .hs-richtext small\");if(privacyText){privacyText.style.fontSize=\"12px\";privacyText.style.fontWeight=\"500\";privacyText.style.color=\"#898b95\";privacyText.style.fontFamily=\"'Greycliff', Calibri\";privacyText.style.marginTop=\"10px\";privacyText.style.textAlign=\"center\";const link=privacyText.querySelector(\"a\");if(link){link.style.color=\"#F84536\";link.style.textDecoration=\"none\";}}}},onFormSubmit:()=>{setTimeout(()=>{const thankYouMessage=document.querySelector(\"#hubspotForm .submitted-message\");if(thankYouMessage){thankYouMessage.style.fontSize=\"14px\";thankYouMessage.style.fontWeight=\"600\";thankYouMessage.style.fontFamily=\"'Greycliff', Calibri\";thankYouMessage.style.color=\"#898b95\";thankYouMessage.style.textAlign=\"center\";}},500);}});}};return()=>{document.body.removeChild(script);};},[formId]);return /*#__PURE__*/_jsx(\"div\",{id:\"hubspotForm\"});};// Expose formId param in Framer\naddPropertyControls(Hubspot_styling_1,{formId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"fb055c3c-5780-44fa-973b-1a063228463a\",placeholder:\"HubSpot formId GUID\"}});export default Hubspot_styling_1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Hubspot_styling_1\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hubspot_styling_1.map"],"mappings":"iNAA2C,IAA6B,IAAoD,CAAM,GAAmB,CAAC,SAAO,2CAA2C,MAAc,CACt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