{"version":3,"file":"Active_Form_Code_4_Avalon.BhHsJsxw.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useRef"],"sources":["https:/framerusercontent.com/modules/sn3kFeOAS2vnDEbB9klI/KguKJz2kIw6pimaQJByM/AnimatedMesh.js","https:/framerusercontent.com/modules/4hjRgKZNsgNqao04AATL/1oM1zWkTYyI6tqmoHPpN/v35Qvi901.js","https:/framerusercontent.com/modules/znrAC9RTnHo4nISVEgLW/TzCJJWF8lnkH5jImgb9F/Active_Form_Code_4_Avalon.js"],"sourcesContent":["import{defineShader,ControlType}from\"framer\";export default defineShader({title:\"Mesh\",resolutionScale:\"consistent\",fragment:`\n// === PCG hash - https://www.jcgt.org/published/0009/03/02/\nuvec3 hash3(uvec3 v) {\n    v = v * 1664525u + 1013904223u;\n    v.x += v.y * v.z;\n    v.y += v.z * v.x;\n    v.z += v.x * v.y;\n    v ^= v >> 16u;\n    v.x += v.y * v.z;\n    v.y += v.z * v.x;\n    v.z += v.x * v.y;\n    return v;\n}\n\nvec3 seedRandom(float seedVal) {\n    uvec3 s = uvec3(\n        floatBitsToUint(seedVal),\n        floatBitsToUint(seedVal * 1.5 + 7.31),\n        floatBitsToUint(seedVal * 2.7 + 13.37)\n    );\n    s = hash3(s);\n    return vec3(s) / float(0xFFFFFFFFu);\n}\n\nvoid main() {\n    vec2 r = u_resolution;\n    vec2 I = gl_FragCoord.xy;\n    float t = u_time * u_speed;\n    vec3 w, p;\n    vec4 o = vec4(0.0);\n\n    vec3 seedA = seedRandom(u_seed);\n    vec3 seedB = seedRandom(u_seed + 100.0);\n\n    float seedAngle = seedA.x * 6.2831;\n    mat2 seedRot = mat2(cos(seedAngle), -sin(seedAngle), sin(seedAngle), cos(seedAngle));\n\n    vec3 seedPhase = seedB * 6.2831;\n\n    float a = radians(u_tilt);\n    mat3 rot = mat3(\n        1.0, 0.0, 0.0,\n        0.0, cos(a), sin(a),\n        0.0, -sin(a), cos(a)\n    );\n\n    float z = 0.0;\n    float d = 0.1;\n    \n    vec4 offset = vec4(0.0);\n\n    for (float i = 0.0; i < 30.0; i++) {\n        vec3 rd = (vec3(I, 0.0) * 2.0 - r.xyy) / r.y * u_zoom;\n        p = z * (rot * rd) + vec3(1.0, u_cameraHeight, 1.0);\n        w = p;\n\n        vec3 nw = w;\n        nw.xz = seedRot * nw.xz;\n\n        float f;\n        for (f = 2.0; f <= 3.0; f++)\n            nw += sin(nw.zxy * f + t + seedPhase) / f;\n\n        w = mix(p, nw, 1.0);\n\n        d = 0.1 * (p.y + 3.0);\n        z += d;\n\n        vec4 surface = mix(p, w, u_amplitude).y + offset;\n        vec4 fw = max(fwidth(surface), 0.0001);\n        vec4 pixelDist = abs(surface) / fw;\n        float lw = u_lineWidth * u_pixelRatio;\n        vec4 acc = smoothstep(lw + u_lineBlur, lw, pixelDist) * u_lightIntensity * d;\n        o += acc;\n    }\n\n    vec4 raw = tanh(o);\n\n    if (u_backgroundColor.a > 0.0) {\n    float lineAlpha = raw.a * u_lineColor.a;\n    vec3 col = mix(u_backgroundColor.rgb, u_lineColor.rgb, lineAlpha);\n    fragColor = vec4(col, u_backgroundColor.a);\n    } else {\n        fragColor = vec4(raw.rgb * u_lineColor.rgb, raw.a * u_lineColor.a);\n    }\n}\n`,propertyControls:{backgroundColor:{type:ControlType.Color,title:\"Fill\",defaultValue:\"#000000\"},lineColor:{type:ControlType.Color,title:\"Line Color\",defaultValue:\"#FFFFFF\"},lineWidth:{type:ControlType.Number,title:\"Line Width\",defaultValue:.1,min:.1,max:4,step:.1,displayStepper:true},lineBlur:{type:ControlType.Number,title:\"Line Blur\",defaultValue:2,min:1,max:4,step:.1,displayStepper:true},seed:{type:ControlType.Number,title:\"Seed\",defaultValue:200,min:0,max:1e3,step:1},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:.5,min:0,max:5,step:.1},amplitude:{type:ControlType.Number,title:\"Amplitude\",defaultValue:.2,min:0,max:1,step:.01},tilt:{type:ControlType.Number,title:\"Tilt\",defaultValue:-32,min:-180,max:180,step:1},zoom:{type:ControlType.Number,title:\"Zoom\",defaultValue:.35,min:.1,max:1,step:.01},cameraHeight:{type:ControlType.Number,title:\"Height\",defaultValue:2,min:0,max:3.5,step:.1},lightIntensity:{type:ControlType.Number,title:\"Brightness\",defaultValue:3,min:.1,max:10,step:.1}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"shader\",\"name\":null,\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnimatedMesh.map","// Generated by Framer (eaac66a)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,SmartComponentScopedContainer,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import CookieBanner from\"https://framerusercontent.com/modules/GbX8S6ghmyszcS2GLR2F/7p40RDrpC9PBWkQoJaco/Cookies.js\";const CookieBannerFonts=getFonts(CookieBanner);const cycleOrder=[\"St5Pc6HDP\",\"exaT6Iugx\"];const serializationHash=\"framer-GNKtm\";const variantClassNames={exaT6Iugx:\"framer-v-162oxc9\",St5Pc6HDP:\"framer-v-jl5vpu\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1.1,skewX:0,skewY:0,transition:transition1};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={Dark:\"exaT6Iugx\",Light:\"St5Pc6HDP\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"St5Pc6HDP\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"St5Pc6HDP\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-jl5vpu\",className,classNames),\"data-framer-name\":\"Light\",layoutDependency:layoutDependency,layoutId:\"St5Pc6HDP\",ref:refBinding,style:{...style},...addPropertyOverrides({exaT6Iugx:{\"data-framer-name\":\"Dark\"}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(SmartComponentScopedContainer,{className:\"framer-98tyxl-container\",isAuthoredByUser:true,isModuleExternal:true,layoutDependency:layoutDependency,layoutId:\"vKAR9ntjQ-container\",nodeId:\"vKAR9ntjQ\",rendersWithMotion:true,scopeId:\"v35Qvi901\",whileHover:animation,children:/*#__PURE__*/_jsx(CookieBanner,{banner:{animation:{scale:1,transition:{damping:60,delay:0,mass:1,stiffness:500,type:\"spring\"},x:0,y:10},containerWidth:0,inset:20,insetBottom:20,insetLeft:20,insetPerSide:false,insetRight:20,insetTop:20,padding:20,paddingBottom:20,paddingLeft:20,paddingPerSide:false,paddingRight:20,paddingTop:20,position:\"bottom-right\",style:{backdrop:\"rgba(0, 0, 0, 0.1)\",border:{color:\"rgba(0, 0, 0, 0.05)\",radius:14,width:1},colorBody:\"rgb(68, 68, 68)\",colorTitle:\"rgb(0, 0, 0)\",fill:\"rgb(255, 255, 255)\",fontBody:{},fontTitle:{},link:\"rgb(153, 153, 153)\"},width:400,zIndex:10},button:{borderRadius:8,direction:\"row\",fluid:true,font:{},hoverOpacity:.6,labels:{accept:\"Accept\",acceptAll:\"Accept all\",confirm:\"Okay\",customize:\"Customize\",reject:\"Reject\",rejectAll:\"Reject all\",save:\"Save Preferences\"},padding:10,paddingBottom:10,paddingLeft:10,paddingPerSide:false,paddingRight:10,paddingTop:10,primary:{color:\"rgb(255, 255, 255)\",fill:\"rgb(0, 0, 0)\"},secondary:{color:\"rgb(68, 68, 68)\",fill:\"rgb(238, 238, 238)\"},tapOpacity:.4},content:{euBlocking:false,euDefaults:{analytics:false,marketing:false,necessary:true,preferences:false},euDescription:\"This website uses cookies and other tracking technologies to improve your browsing experience for the following purposes: to enable basic functionality of the website, to provide a better experience on the website, to measure your interest in our products and services and to personalize marketing interactions, to deliver ads that are more relevant to you.\",euPolicy:{label:\"Cookie Policy\",link:\"https://clearcom.com/Cookies-Policy\",prefix:\"Read our\"},euShowReject:true,euTitle:\"We Use Cookies\",euType:\"advanced\",isEU:false,worldBlocking:false,worldDefaults:{analytics:true,marketing:true,necessary:true,preferences:true},worldDescription:\"This website uses cookies and other tracking technologies to improve your browsing experience for the following purposes: to enable basic functionality of the website, to provide a better experience on the website, to measure your interest in our products and services and to personalize marketing interactions, to deliver ads that are more relevant to you.\",worldPolicy:{label:\"Cookie Policy\",link:\"https://clearcom.com/Cookies-Policy\",prefix:\"Read our\"},worldShowReject:true,worldTitle:\"We Use Cookies\",worldType:\"advanced\"},gtmId:\"GTM-T7PMWS5P\",height:\"100%\",id:\"vKAR9ntjQ\",layoutId:\"vKAR9ntjQ\",options:{analytics:{description:\"Enables tracking of performance.\",title:\"Analytics\"},marketing:{description:\"Enables ads personalization and tracking.\",title:\"Marketing\"},necessary:{description:\"Enables security and basic functionality.\",optional:true,title:\"Necessary\"},preferences:{description:\"Enables personalized content and settings.\",title:\"Preferences\"},preview:true,style:{background:\"rgba(255, 0, 0, 0.02)\",border:{color:\"rgba(0, 0, 0, 0.02)\",radius:8,width:0},fontBody:{fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',fontStyle:\"normal\",fontWeight:400},fontTitle:{fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',fontStyle:\"normal\",fontWeight:400},padding:12,paddingBottom:12,paddingLeft:12,paddingPerSide:false,paddingRight:12,paddingTop:12,toggleColor:\"rgb(0, 0, 0)\",toggleColorInactive:\"rgba(0, 0, 0, 0.1)\"}},preview:false,trigger:{color:\"var(--token-c0e82f73-96ac-412f-8045-f71ea7a39a33, rgb(246, 249, 251))\",iconSize:24,iconType:\"default\",text:\"Cookie Settings\",textFont:{},type:\"icon\"},width:\"100%\",...addPropertyOverrides({exaT6Iugx:{trigger:{color:\"var(--token-e278b6ce-5454-46fa-bfde-689600765c42, rgb(0, 0, 0))\",iconSize:24,iconType:\"default\",text:\"Cookie Settings\",textFont:{},type:\"icon\"}}},baseVariant,gestureVariant)})})})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-GNKtm.framer-1tdp36f, .framer-GNKtm .framer-1tdp36f { display: block; }\",\".framer-GNKtm.framer-jl5vpu { align-content: center; align-items: center; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: flex-end; overflow: var(--overflow-clip-fallback, clip); padding: 20px; position: relative; width: 1180px; }\",\".framer-GNKtm .framer-98tyxl-container { flex: none; height: auto; position: relative; width: auto; will-change: var(--framer-will-change-effect-override, transform); }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 64\n * @framerIntrinsicWidth 1180\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"exaT6Iugx\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const Framerv35Qvi901=withCSS(Component,css,\"framer-GNKtm\");export default Framerv35Qvi901;Framerv35Qvi901.displayName=\"Cookie-Bannner-Stack\";Framerv35Qvi901.defaultProps={height:64,width:1180};addPropertyControls(Framerv35Qvi901,{variant:{options:[\"St5Pc6HDP\",\"exaT6Iugx\"],optionTitles:[\"Light\",\"Dark\"],title:\"Variant\",type:ControlType.Enum}});addFonts(Framerv35Qvi901,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...CookieBannerFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerv35Qvi901\",\"slots\":[],\"annotations\":{\"framerAutoSizeImages\":\"true\",\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicHeight\":\"64\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"exaT6Iugx\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerIntrinsicWidth\":\"1180\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./v35Qvi901.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";function loadScriptOnce(src){return new Promise((resolve,reject)=>{const existing=document.querySelector(`script[src=\"${src}\"]`);if(existing){if(existing.dataset.loaded===\"true\")return resolve();existing.addEventListener(\"load\",()=>resolve());existing.addEventListener(\"error\",()=>reject(new Error(`Failed to load ${src}`)));return;}const s=document.createElement(\"script\");s.src=src;s.async=true;s.defer=true;s.addEventListener(\"load\",()=>{s.dataset.loaded=\"true\";resolve();});s.addEventListener(\"error\",()=>reject(new Error(`Failed to load ${src}`)));document.body.appendChild(s);});}function qs(selector){return document.querySelector(selector);}function norm(s){return(s||\"\").replace(/\\s+/g,\" \").trim().toLowerCase();}export default function D365FormWithRecaptcha(){const mountedRef=useRef(false);// === YOUR NEW FORM ===\nconst FORM_ID=\"6d5a9cef-ed3f-f111-88b5-002248227c0f\";// === PRODUCT INTEREST AUTO-SELECT ===\nconst PRODUCT_INTEREST_LABEL=\"Avalon\"// <-- change if you ever need another product\n;const USA=\"United States of America\";const countryFieldSel=\"input#e0f42bfb-aa27-4f6e-9bd3-984977daf2b5\";const stateFieldSel=\"input#c0f0d01f-c1fa-4a10-923a-9eba4cb957f3\";const zipFieldSel=\"input#address1_postalcode-1717698037205\";function setFieldVisibilityAndRequired(inputSel,editorBlockType,visible,required){const input=qs(inputSel);if(!input)return;const wrapper=input.closest(`div[data-editorblocktype='${editorBlockType}']`);if(!wrapper)return;if(visible){wrapper.removeAttribute(\"data-hide\");wrapper.style.display=\"\";}else{wrapper.setAttribute(\"data-hide\",\"hide\");wrapper.style.display=\"none\";}if(required){input.required=true;input.setAttribute(\"aria-required\",\"true\");}else{input.required=false;input.setAttribute(\"aria-required\",\"false\");}}function onCountryChange(){const country=qs(countryFieldSel)?.value??\"\";const isUSA=country===USA;setFieldVisibilityAndRequired(stateFieldSel,\"LookupFormField\",isUSA,isUSA);}function onStateCountryChange(){const country=qs(countryFieldSel)?.value??\"\";const state=qs(stateFieldSel)?.value??\"\";const isUSA=country===USA;const showZip=isUSA&&[\"california\",\"nevada\"].includes(state.toLowerCase());setFieldVisibilityAndRequired(zipFieldSel,\"TextFormField\",showZip,showZip);}/**\n     * Tries to set Product Interest to \"Avalon\" even if the field is hidden.\n     * Works for:\n     *  - checkbox/radio list (most common for multi-select)\n     *  - select dropdown\n     *  - hidden/text single input fallback\n     */function forceSelectProductInterest(labelToSelect){const wanted=norm(labelToSelect);// 1) Checkbox / radio group: look for inputs with id containing \"syn_productinterest\"\nconst interestInputs=Array.from(document.querySelectorAll(`input[id*=\"syn_productinterest\"], input[name*=\"syn_productinterest\"]`)).filter(i=>i.type===\"checkbox\"||i.type===\"radio\");for(const input of interestInputs){const lab=document.querySelector(`label[for=\"${CSS.escape(input.id)}\"]`);const labText=norm(lab?.textContent??\"\");if(labText.includes(wanted)){input.checked=true;input.dispatchEvent(new Event(\"input\",{bubbles:true}));input.dispatchEvent(new Event(\"change\",{bubbles:true}));return true;}}// 2) Select dropdown\nconst selects=Array.from(document.querySelectorAll(`select[id*=\"syn_productinterest\"], select[name*=\"syn_productinterest\"]`));for(const sel of selects){const opt=Array.from(sel.options).find(o=>norm(o.textContent||\"\").includes(wanted));if(opt){sel.value=opt.value;sel.dispatchEvent(new Event(\"input\",{bubbles:true}));sel.dispatchEvent(new Event(\"change\",{bubbles:true}));return true;}}// 3) Hidden/text input fallback (only works if backend accepts label text as value)\nconst singleInputs=Array.from(document.querySelectorAll(`input[id*=\"syn_productinterest\"], input[name*=\"syn_productinterest\"]`)).filter(i=>i.type===\"hidden\"||i.type===\"text\");for(const i of singleInputs){i.value=labelToSelect;i.dispatchEvent(new Event(\"input\",{bubbles:true}));i.dispatchEvent(new Event(\"change\",{bubbles:true}));return true;}return false;}function forceSelectProductInterestWithRetries(){let tries=0;const maxTries=10;const tick=()=>{tries++;const ok=forceSelectProductInterest(PRODUCT_INTEREST_LABEL);if(ok||tries>=maxTries)return;setTimeout(tick,250);};tick();}useEffect(()=>{if(mountedRef.current)return;mountedRef.current=true;const d365Src=\"https://formui-usa1.mkt.dynamics.com/usa/FormLoader/FormLoader.bundle.js\";loadScriptOnce(d365Src).catch(console.error);const afterFormLoad=()=>{// ✅ NEW: auto-select Avalon from the hidden Product Interest field\nforceSelectProductInterestWithRetries();const country=qs(countryFieldSel);const state=qs(stateFieldSel);country?.addEventListener(\"change\",()=>{onCountryChange();onStateCountryChange();});state?.addEventListener(\"change\",onStateCountryChange);onCountryChange();onStateCountryChange();};const onSubmit=e=>{// Form submission handler\n};document.addEventListener(\"d365mkt-afterformload\",afterFormLoad);document.addEventListener(\"d365mkt-formsubmit\",onSubmit);return()=>{document.removeEventListener(\"d365mkt-afterformload\",afterFormLoad);document.removeEventListener(\"d365mkt-formsubmit\",onSubmit);};},[]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\"},children:/*#__PURE__*/_jsx(\"div\",{\"data-form-id\":FORM_ID,\"data-form-api-url\":\"https://public-usa.mkt.dynamics.com/api/v1.0/orgs/50cc984a-7ba5-48f1-886b-39990980bfd5/landingpageforms\",\"data-cached-form-url\":`https://assets-usa.mkt.dynamics.com/50cc984a-7ba5-48f1-886b-39990980bfd5/digitalassets/forms/${FORM_ID}`})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"D365FormWithRecaptcha\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Active_Form_Code_4_Avalon.map"],"mappings":"kaAA6C,GAAe,EAAa,CAAC,MAAM,OAAO,gBAAgB,aAAa,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA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