{"version":3,"file":"Style_Override_Forms.e_3TLJds.mjs","names":["defaultEmptyStateStyle","React.useState","React.useRef","p"],"sources":["https:/framerusercontent.com/modules/cuQH4dmpDnV8YK1mSgQX/tTLhbOFToDhKcwOVmn8E/useFontControls.js","https:/framerusercontent.com/modules/afBE9Yx1W6bY5q32qPxe/AAh30yXzt1DUsOi1YwUY/useRenderTarget.js","https:/framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/Pk7RhKpPAlu4xr8tiZYq/index.js","https:/framer.com/m/framer/default-utils.js@^0.43.0","https:/framerusercontent.com/modules/ZORE1BBUY4n4vHC0WFDH/bnwaYkSw2e4q5eLH4jPK/styles.js","https:/framer.com/m/framer/integrations-styles.js@0.2.0","https:/framerusercontent.com/modules/uGQZtcsxBzvxqsgxQ0Tz/x1uX2pQ17kYOWs5UPyT3/Hubspot.js","https:/framerusercontent.com/modules/tuz0zfkXHJwonrdgOoLI/UF11EmyHjbtQerQGjdo8/Style_Override_Forms.js"],"sourcesContent":["// @ts-ignore\nimport { fontStore } from \"framer\";\nimport { useEffect } from \"react\";\n// @ts-ignore\nimport { fontStack } from \"https://framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js\";\nconst fontWeights = {\n    100: \"Thin\",\n    200: \"Extra-light\",\n    300: \"Light\",\n    400: \"Regular\",\n    500: \"Medium\",\n    600: \"Semi-bold\",\n    700: \"Bold\",\n    800: \"Extra-bold\",\n    900: \"Black\"\n};\nexport function useFontControls(props) {\n    const { fontFamily , fontSize , fontWeight , font  } = props;\n    const fontWeightName = fontWeights[fontWeight];\n    const customFontStack = `\"${fontFamily} ${fontWeightName}\", \"${fontFamily}\", ${fontStack}`;\n    const fontFamilyStyle = fontFamily ? {\n        fontSize,\n        fontWeight,\n        fontFamily: customFontStack\n    } : {\n        fontSize,\n        fontWeight\n    };\n    const fetchCustomFonts = async ()=>{\n        await fontStore.loadWebFontsFromSelectors([\n            `CUSTOM;${fontFamily}`,\n            `CUSTOM;${fontFamily} ${fontWeightName}`,\n            `GF;${fontFamily}-${fontWeightName.toLowerCase()}`, \n        ]).catch((e)=>console.error(e)\n        );\n    };\n    useEffect(()=>{\n        if (font) fetchCustomFonts();\n    }, [\n        font,\n        fontFamily,\n        fontWeight\n    ]);\n    return fontFamilyStyle;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useFontControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useFontControls.map","import { useMemo } from \"react\";\nimport { RenderTarget } from \"framer\";\nexport function useRenderTarget() {\n    const currentRenderTarget = useMemo(()=>RenderTarget.current()\n    , []);\n    return currentRenderTarget;\n}\nexport function useIsInPreview() {\n    const inPreview = useMemo(()=>RenderTarget.current() === RenderTarget.preview\n    , []);\n    return inPreview;\n}\n\nexport const __FramerMetadata__ = {\"exports\":{\"useIsInPreview\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRenderTarget\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./useRenderTarget.map","import { defaultEvents, localeOptions, fontControls, fontSizeOptions, emptyStateStyle, containerStyles, fontStack } from \"https://framerusercontent.com/modules/VTUDdizacRHpwbkOamr7/AykinQJbgwl92LvMGZwu/constants.js\";\nimport { useOnEnter, useOnExit } from \"https://framerusercontent.com/modules/D4TWeLfcxT6Tysr2BlYg/iZjmqdxVx1EOiM3k1FaW/useOnNavigationTargetChange.js\";\nimport { useConstant } from \"https://framerusercontent.com/modules/ExNgrA7EJTKUPpH6vIlN/eiOrSJ2Ab5M9jPCvVwUz/useConstant.js\";\nimport { colorTokentoValue, colorFromToken } from \"https://framerusercontent.com/modules/D2Lz5CmnNVPZFFiZXalt/QaCzPbriZBfXWZIIycFI/colorFromToken.js\";\nimport { isMotionValue } from \"https://framerusercontent.com/modules/3mKFSGQqKHV82uOV1eBc/5fbRLvOpxZC0JOXugvwm/isMotionValue.js\";\nimport { useUniqueClassName, randomID } from \"https://framerusercontent.com/modules/xDiQsqBGXzmMsv7AlEVy/uhunpMiNsbXxzjlXsg1y/useUniqueClassName.js\";\nimport { getVariantControls } from \"https://framerusercontent.com/modules/ETACN5BJyFTSo0VVDJfu/NHRqowOiXkF9UwOzczF7/variantUtils.js\";\nimport { useIsBrowserSafari } from \"https://framerusercontent.com/modules/eMBrwoqQK7h6mEeGQUH8/GuplvPJVjmxpk9zqOTcb/isBrowser.js\";\nimport { useMultiOnChange, useOnChange } from \"https://framerusercontent.com/modules/v9AWX2URmiYsHf7GbctE/XxKAZ9KlhWqf5x1JMyyF/useOnChange.js\";\nimport { mstoMinAndSec, secondsToMinutes } from \"https://framerusercontent.com/modules/4zHZnO5JojN1PrIbu2jm/revv9QCWpkh8lPzi2jje/time.js\";\nimport { useAutoMotionValue } from \"https://framerusercontent.com/modules/kNDwabfjDEb3vUxkQlZS/fSIr3AOAYbGlfSPgXpYu/useAutoMotionValue.js\";\nimport { useFontControls } from \"https://framerusercontent.com/modules/cuQH4dmpDnV8YK1mSgQX/tTLhbOFToDhKcwOVmn8E/useFontControls.js\";\nimport { useRenderTarget, useIsInPreview } from \"https://framerusercontent.com/modules/afBE9Yx1W6bY5q32qPxe/AAh30yXzt1DUsOi1YwUY/useRenderTarget.js\";\nimport { useControlledState } from \"https://framerusercontent.com/modules/zGkoP8tPDCkoBzMdt5uq/0zFSjxIYliHxrQQnryFX/useControlledState.js\";\nimport { usePadding, useRadius, paddingControl, borderRadiusControl } from \"https://framerusercontent.com/modules/5SM58HxZHxjjv7aLMOgQ/WXz9i6mVki0bBCrKdqB3/propUtils.js\";\nimport { detectAutoSizingAxis } from \"https://framerusercontent.com/modules/8CkHAZatUz1UR8jNTcfD/HwbnIAZlUmQ2oTpcLkaH/detectAutoSizingAxis.js\";\nexport { useOnEnter, useOnExit, defaultEvents, isMotionValue, colorFromToken, colorTokentoValue, localeOptions, fontControls, fontSizeOptions, emptyStateStyle, containerStyles, fontStack, useUniqueClassName, getVariantControls, useIsBrowserSafari, randomID, useConstant, useMultiOnChange, useOnChange, usePadding, useRadius, paddingControl, borderRadiusControl, mstoMinAndSec, useFontControls, secondsToMinutes, useAutoMotionValue, useRenderTarget, useIsInPreview, useControlledState, detectAutoSizingAxis,  };\n\nexport const __FramerMetadata__ = {\"exports\":{\"fontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"mstoMinAndSec\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorTokentoValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFontControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useUniqueClassName\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"paddingControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"localeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontStack\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"detectAutoSizingAxis\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRenderTarget\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnEnter\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"emptyStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsBrowserSafari\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getVariantControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useAutoMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomID\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnExit\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIsInPreview\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useRadius\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"usePadding\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useMultiOnChange\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fontSizeOptions\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useConstant\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isMotionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useOnChange\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useControlledState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"borderRadiusControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"colorFromToken\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"secondsToMinutes\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}","/*\n * index (framer/default-utils@0.43.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/Pk7RhKpPAlu4xr8tiZYq/index.js\"\n","import{containerStyles,emptyStateStyle as defaultEmptyStateStyle}from\"https://framer.com/m/framer/default-utils.js@^0.43.0\";export const emptyStateStyle={...containerStyles,...defaultEmptyStateStyle,textAlign:\"center\",padding:15,width:200,height:100,overflow:\"hidden\"};export const neutralStateStyle={...emptyStateStyle,color:\"#09f\",background:\"rgb(0, 153, 255, 0.1)\",borderColor:\"#09f\"};export const stateTitleStyle={fontSize:12,fontWeight:600,margin:0};export const stateParagraphStyle={fontSize:12,maxWidth:200,lineHeight:1.4,margin:\"5px 0 0 0\"};\nexport const __FramerMetadata__ = {\"exports\":{\"neutralStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"stateTitleStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"emptyStateStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"stateParagraphStyle\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./styles.map","/*\n * styles (framer/integrations-styles@0.2.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/ZORE1BBUY4n4vHC0WFDH/bnwaYkSw2e4q5eLH4jPK/styles.js\"\n","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useTracking}from\"framer\";import{emptyStateStyle,stateParagraphStyle,stateTitleStyle}from\"https://framer.com/m/framer/integrations-styles.js@0.2.0\";// Poll for 5 minutes ...\nfunction poll(f,delay=200,count=5*60*5,i=0){if(i>count){console.error(\"poll max attempts\",f);return;}if(!f()){console.log(\"poll\",delay,count,i);setTimeout(()=>{poll(f,delay,count,i+1);},delay);}}function EmptyState({title,description}){return /*#__PURE__*/_jsxs(\"div\",{style:{...emptyStateStyle,width:\"100%\",height:\"100%\"},children:[/*#__PURE__*/_jsx(\"h1\",{style:stateTitleStyle,children:title}),/*#__PURE__*/_jsx(\"p\",{style:stateParagraphStyle,children:description})]});}/**\n * Return the actual instance id of the HubSpot form.\n *\n * window.hbspt.forms.create returns a totally different instanceId\n * from the one in the success event. This ugly code below grabs the\n * actual instance id from the iframe src. Hopefully this doesn’t break.\n */function getActualInstanceId(div){const url=div.querySelector(\"iframe\")?.getAttribute(\"src\");return url?new URL(url).searchParams.get(\"_hsInstanceId\"):null;}/**\n * HUBSPOT\n *\n * @framerIntrinsicWidth 480\n * @framerIntrinsicHeight 300\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function HubSpotForm({portalId,formId,advanced,region,trackingId}){const[isScriptLoaded,setIsScriptLoaded]=React.useState(()=>Boolean(typeof window!==\"undefined\"&&window.hbspt));const ref=React.useRef(null);const track=useTracking();// Tracking setup\nReact.useEffect(()=>{if(!portalId||!formId||!trackingId)return;function onFormSubmissionSuccess(event){if(!ref.current)return;// Because the events are global, we need to compare\n// instanceId to know which instance it is comes from.\nif(getActualInstanceId(ref.current)!==event.detail.instanceId)return;if(trackingId)track(trackingId);}// https://developers.hubspot.com/docs/guides/api/marketing/forms/global-form-events#form-events$0\ndocument.addEventListener(\"hs-form-event:on-submission:success\",onFormSubmissionSuccess);return()=>document.removeEventListener(\"hs-form-event:on-submission:success\",onFormSubmissionSuccess);},[trackingId,formId,portalId]);// Load the hubspot script\nReact.useEffect(()=>{if(!region)return;if(isScriptLoaded||typeof window===\"undefined\")return;if(window.hbspt)return setIsScriptLoaded(true);const script=document.createElement(\"script\");script.src=`https://js-${region}.hsforms.net/forms/shell.js`;script.async=true;script.onload=()=>poll(()=>{if(window.hbspt){setIsScriptLoaded(true);return true;}});document.body.appendChild(script);},[isScriptLoaded,region]);React.useEffect(()=>{if(!portalId||!formId)return;if(!isScriptLoaded||!ref.current||typeof window===\"undefined\")return;const element=document.createElement(\"div\");const randomId=Math.random().toString(36).substr(2,8);const elementId=`hubspot_form_${randomId}`;element.setAttribute(\"id\",elementId);element.style.width=\"100%\";element.style.height=\"100%\";ref.current.appendChild(element);window.hbspt.forms.create({region,portalId,formId,target:`#${elementId}`});return()=>{if(ref.current)ref.current.removeChild(element);};},[isScriptLoaded,portalId,formId]);if(!portalId||!formId||!region){return /*#__PURE__*/_jsx(EmptyState,{title:\"Hubspot\",description:\"Set a portal ID and form in the Properties.\"});}return /*#__PURE__*/_jsx(\"div\",{style:{display:\"contents\"},ref:ref});}addPropertyControls(HubSpotForm,{portalId:{title:\"Portal\",type:ControlType.String,placeholder:\"25276298\",// defaultValue: \"25276298\",\ndescription:\"Create a [Hubspot](https://www.hubspot.com/) account, add a new form and copy your portal ID. [Learn more…](https://www.framer.com/plugins/hubspot/)\"},formId:{title:\"Form\",type:ControlType.String,placeholder:\"e7167571-4bc4-4c2c-bfdc-a0a8dbfd22f1\"},trackingId:{title:\"Tracking\",type:ControlType.TrackingId,placeholder:\"ID\"},advanced:{title:\"Advanced\",type:ControlType.Boolean,enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:false},region:{title:\"Region\",type:ControlType.String,placeholder:\"eu1\",defaultValue:\"eu1\",hidden:({advanced})=>!advanced}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HubSpotForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"300\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"480\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hubspot.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// Label styles\nconst LABEL_FONT_SIZE=\"1rem\";const LABEL_LINE_HEIGHT=\"1.5\";const LABEL_FONT_WEIGHT=\"400\";const LABEL_MARGIN_BOTTOM=\"0.5rem\";// Input & Select styles\nconst INPUT_BORDER=\"1px solid #ccc\";const INPUT_BORDER_RADIUS=\"0.375rem\";const INPUT_BACKGROUND_COLOR=\"#fff\";const INPUT_TEXT_COLOR=\"#000\";const INPUT_FONT_SIZE=\"1rem\";const INPUT_LINE_HEIGHT=\"1.5\";const INPUT_MIN_HEIGHT=\"3rem\";const INPUT_MARGIN=\"0 0 1rem 0\";const INPUT_PADDING=\"0.75rem 1rem\";const INPUT_WIDTH=\"100%\";// Textarea styles\nconst TEXTAREA_BORDER=\"1px solid #ccc\";const TEXTAREA_BORDER_RADIUS=\"0.375rem\";const TEXTAREA_BACKGROUND_COLOR=\"#fff\";const TEXTAREA_TEXT_COLOR=\"#000\";const TEXTAREA_FONT_SIZE=\"1rem\";const TEXTAREA_LINE_HEIGHT=\"1.5\";const TEXTAREA_MIN_HEIGHT=\"15rem\";const TEXTAREA_MARGIN=\"0 0 1rem 0\";const TEXTAREA_PADDING=\"0.75rem 1rem\";const TEXTAREA_FONT_WEIGHT=\"400\";const TEXTAREA_WIDTH=\"100%\";// Checkbox styles\nconst CHECKBOX_WIDTH=\"auto\";const CHECKBOX_MIN_HEIGHT=\"auto\";const CHECKBOX_MARGIN=\"0 0.5rem 0 0\";const CHECKBOX_PADDING=\"0\";const CHECKBOX_ACCENT_COLOR=\"#000\";// Focus states\nconst FOCUS_BORDER_COLOR=\"#666\";// Button/Submit styles\nconst BUTTON_COLOR=\"#fff\";const BUTTON_BACKGROUND=\"#000\";const BUTTON_BORDER=\"1px solid #000\";const BUTTON_BORDER_RADIUS=\"0.375rem\";const BUTTON_PADDING=\"0.75rem 1.5rem\";const BUTTON_MARGIN_TOP=\"1.5rem\";const BUTTON_GAP=\"1rem\";const BUTTON_HOVER_BACKGROUND=\"#333\";const BUTTON_ACTIVE_BACKGROUND=\"#555\";// Link styles\nconst LINK_COLOR=\"#000\";const LINK_HOVER_COLOR=\"#666\";const LINK_TRANSITION_DURATION=\"0.15s\";// Paragraph styles\nconst PARAGRAPH_COLOR=\"#666\";// Wrapper/Container styles\nconst WRAPPER_WIDTH=\"100%\";export function embedFormStyles(Component){return props=>{useEffect(()=>{// Function to apply styles\nconst applyStyles=()=>{// Find the element with id=\"embed-form\"\nconst formContainer=document.getElementById(\"embed-form\");if(formContainer){// Apply form block styles to the container\nconst container=formContainer;container.style.width=WRAPPER_WIDTH;container.style.display=\"flex\";container.style.flexFlow=\"column\";container.style.justifyContent=\"flex-start\";container.style.alignSelf=\"stretch\";container.style.alignItems=\"stretch\";// Style all labels\nconst labels=formContainer.querySelectorAll(\"label\");labels.forEach(label=>{const el=label;el.style.fontSize=LABEL_FONT_SIZE;el.style.lineHeight=LABEL_LINE_HEIGHT;el.style.fontWeight=LABEL_FONT_WEIGHT;el.style.marginBottom=LABEL_MARGIN_BOTTOM;});// Style all inputs (except checkbox and submit)\nconst inputs=formContainer.querySelectorAll('input:not([type=\"checkbox\"]):not([type=\"submit\"])');inputs.forEach(input=>{const el=input;el.style.border=INPUT_BORDER;el.style.borderRadius=INPUT_BORDER_RADIUS;el.style.backgroundColor=INPUT_BACKGROUND_COLOR;el.style.color=INPUT_TEXT_COLOR;el.style.fontSize=INPUT_FONT_SIZE;el.style.lineHeight=INPUT_LINE_HEIGHT;el.style.minHeight=INPUT_MIN_HEIGHT;el.style.margin=INPUT_MARGIN;el.style.padding=INPUT_PADDING;el.style.width=INPUT_WIDTH;});// Style all select elements\nconst selects=formContainer.querySelectorAll(\"select\");selects.forEach(select=>{const el=select;el.style.border=INPUT_BORDER;el.style.borderRadius=INPUT_BORDER_RADIUS;el.style.backgroundColor=INPUT_BACKGROUND_COLOR;el.style.color=INPUT_TEXT_COLOR;el.style.fontSize=INPUT_FONT_SIZE;el.style.lineHeight=INPUT_LINE_HEIGHT;el.style.minHeight=INPUT_MIN_HEIGHT;el.style.margin=INPUT_MARGIN;el.style.padding=INPUT_PADDING;el.style.width=INPUT_WIDTH;});// Style all textareas\nconst textareas=formContainer.querySelectorAll(\"textarea\");textareas.forEach(textarea=>{const el=textarea;el.style.border=TEXTAREA_BORDER;el.style.borderRadius=TEXTAREA_BORDER_RADIUS;el.style.backgroundColor=TEXTAREA_BACKGROUND_COLOR;el.style.color=TEXTAREA_TEXT_COLOR;el.style.fontSize=TEXTAREA_FONT_SIZE;el.style.lineHeight=TEXTAREA_LINE_HEIGHT;el.style.minHeight=TEXTAREA_MIN_HEIGHT;el.style.margin=TEXTAREA_MARGIN;el.style.padding=TEXTAREA_PADDING;el.style.fontWeight=TEXTAREA_FONT_WEIGHT;el.style.width=TEXTAREA_WIDTH;});// Style checkboxes\nconst checkboxes=formContainer.querySelectorAll('input[type=\"checkbox\"]');checkboxes.forEach(checkbox=>{const el=checkbox;el.style.width=CHECKBOX_WIDTH;el.style.minHeight=CHECKBOX_MIN_HEIGHT;el.style.margin=CHECKBOX_MARGIN;el.style.padding=CHECKBOX_PADDING;el.style.display=\"inline-block\";el.style.verticalAlign=\"middle\";// @ts-ignore - accentColor is valid but TypeScript may not recognize it\nel.style.accentColor=CHECKBOX_ACCENT_COLOR;});// Style submit buttons and regular buttons\nconst buttons=formContainer.querySelectorAll('input[type=\"submit\"], button');buttons.forEach(button=>{const el=button;el.style.color=BUTTON_COLOR;el.style.textAlign=\"center\";el.style.background=BUTTON_BACKGROUND;el.style.border=BUTTON_BORDER;el.style.borderRadius=BUTTON_BORDER_RADIUS;el.style.padding=BUTTON_PADDING;el.style.marginTop=BUTTON_MARGIN_TOP;el.style.columnGap=BUTTON_GAP;el.style.rowGap=BUTTON_GAP;el.style.flexDirection=\"row\";el.style.justifyContent=\"center\";el.style.alignItems=\"center\";el.style.display=\"flex\";el.style.textDecoration=\"none\";el.style.transition=\"all 0.3s\";el.style.cursor=\"pointer\";});// Style links\nconst links=formContainer.querySelectorAll(\"a\");links.forEach(link=>{const el=link;el.style.color=LINK_COLOR;el.style.transitionProperty=\"color\";el.style.transitionDuration=LINK_TRANSITION_DURATION;el.style.transitionTimingFunction=\"ease\";});// Style paragraphs\nconst paragraphs=formContainer.querySelectorAll(\"p\");paragraphs.forEach(p=>{const el=p;el.style.color=PARAGRAPH_COLOR;});// Style lists\nconst lists=formContainer.querySelectorAll(\"ul, ol, li\");lists.forEach(list=>{const el=list;el.style.paddingLeft=\"0\";});// Style fieldsets\nconst fieldsets=formContainer.querySelectorAll(\"fieldset\");fieldsets.forEach(fieldset=>{const el=fieldset;el.style.width=\"100%\";el.style.setProperty(\"max-width\",\"none\",\"important\");});// Add focus, hover, and active event listeners\nconst focusableElements=formContainer.querySelectorAll(\"input, select, textarea\");focusableElements.forEach(element=>{element.addEventListener(\"focus\",function(){this.style.borderColor=FOCUS_BORDER_COLOR;});element.addEventListener(\"blur\",function(){if(this.type===\"checkbox\")return;this.style.borderColor=INPUT_BORDER.split(\" \").pop()||\"\";});});buttons.forEach(button=>{button.addEventListener(\"mouseenter\",function(){this.style.background=BUTTON_HOVER_BACKGROUND;});button.addEventListener(\"mouseleave\",function(){this.style.background=BUTTON_BACKGROUND;});button.addEventListener(\"mousedown\",function(){this.style.background=BUTTON_ACTIVE_BACKGROUND;});button.addEventListener(\"mouseup\",function(){this.style.background=BUTTON_HOVER_BACKGROUND;});});links.forEach(link=>{link.addEventListener(\"mouseenter\",function(){this.style.color=LINK_HOVER_COLOR;});link.addEventListener(\"mouseleave\",function(){this.style.color=LINK_COLOR;});});}};// Try to apply styles immediately\napplyStyles();// Set up a MutationObserver to watch for the form being added to the DOM\nconst observer=new MutationObserver(()=>{const form=document.querySelector(\"#embed-form form\");if(form){applyStyles();observer.disconnect()// Stop observing once we've found and styled the form\n;}});// Start observing the entire document for changes\nobserver.observe(document.body,{childList:true,subtree:true});// Also set up a timeout as a fallback\nconst timeoutId=setTimeout(()=>{applyStyles();},1e3);// Cleanup\nreturn()=>{observer.disconnect();clearTimeout(timeoutId);};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"embedFormStyles\":{\"type\":\"reactHoc\",\"name\":\"embedFormStyles\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Style_Override_Forms.map"],"mappings":"4XACmC,IACD,IAEuF,kBCJzF,IACM,kBCDkL,KACjE,KAC1B,KACyB,KACrB,KACoB,KAChB,KACH,KACa,KAEJ,KACN,KACgB,KACV,KAC+B,4CEd9C,CAAa,EAAgB,CAAC,GAAG,GAAgB,GAAGA,GAAuB,UAAU,SAAS,QAAQ,GAAG,MAAM,IAAI,OAAO,IAAI,SAAS,SAAS,CAAoD,CAAnB,GAAG,EA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