{"version":3,"file":"FormAccessibility.BfGwWO0w.mjs","names":[],"sources":["https:/framerusercontent.com/modules/l0dXGDXbJMbCkMqBqlKO/nrw7ThUivH29vFALx01L/FormAccessibility.js"],"sourcesContent":["/**\n * Create a new code override file named FormAccessibility.tsx. Export exactly one Framer code override named withAccessibleField. It must be a higher-order component override for native form field layers. It must spread every existing prop unchanged (including refs, events, name, required, and form submission behavior) and add an `aria-label` based on the existing field name: Name -> \"Name\", Email -> \"Email\", Message -> \"Message\". It must have no visual effect and no wrappers. Use React-compatible typings suitable for Framer overrides. Do not create a code component; create only this override export.\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";export function withAccessibleField(Component){return /*#__PURE__*/forwardRef(function WithAccessibleField(props,ref){useEffect(()=>{if(typeof document===\"undefined\")return;const body=document.body;if(!body)return;const setAttrIfDifferent=(element,attribute,value)=>{if(!element)return;if(element.getAttribute(attribute)!==value){element.setAttribute(attribute,value);}};const applyAttributes=()=>{const nameInput=document.querySelector('input[name=\"Name\"]');const emailInput=document.querySelector('input[name=\"Email\"]');const messageTextarea=document.querySelector('textarea[name=\"Message\"]');const messageFallback=document.querySelector('[name=\"Message\"]');const messageControl=messageTextarea??messageFallback;setAttrIfDifferent(nameInput,\"aria-label\",\"Full name\");setAttrIfDifferent(nameInput,\"autocomplete\",\"name\");setAttrIfDifferent(emailInput,\"aria-label\",\"Work email address\");setAttrIfDifferent(emailInput,\"autocomplete\",\"email\");setAttrIfDifferent(messageControl,\"aria-label\",\"Service, site location and timing\");};applyAttributes();const rafId=window.requestAnimationFrame(()=>{applyAttributes();});const timeoutId=window.setTimeout(()=>{applyAttributes();},60);const observer=new MutationObserver(()=>{applyAttributes();});observer.observe(body,{childList:true,subtree:true,attributes:true});return()=>{observer.disconnect();window.cancelAnimationFrame(rafId);window.clearTimeout(timeoutId);};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});});}export function withInvincibleHomeLabel(Component){return /*#__PURE__*/forwardRef(function WithInvincibleHomeLabel(props,ref){return /*#__PURE__*/_jsx(Component,{ref:ref,...props,\"aria-label\":\"Invincible home\"});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withAccessibleField\":{\"type\":\"reactHoc\",\"name\":\"withAccessibleField\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withInvincibleHomeLabel\":{\"type\":\"reactHoc\",\"name\":\"withInvincibleHomeLabel\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormAccessibility.map"],"mappings":"uIAEsF,SAAgB,EAAoB,EAAU,CAAC,OAAoB,EAAW,SAA6B,EAAM,EAAI,CAA+wC,OAA9wC,MAAc,CAAC,GAAG,OAAO,SAAW,IAAY,OAAO,IAAM,EAAK,SAAS,KAAK,GAAG,CAAC,EAAK,OAAO,IAAM,GAAoB,EAAQ,EAAU,IAAQ,CAAK,GAAkB,EAAQ,aAAa,CAAS,IAAI,GAAO,EAAQ,aAAa,EAAU,CAAK,CAAG,EAAQ,MAAoB,CAAC,IAAM,EAAU,SAAS,cAAc,oBAAoB,EAAQ,EAAW,SAAS,cAAc,qBAAqB,EAAQ,EAAgB,SAAS,cAAc,0BAA0B,EAAQ,EAAgB,SAAS,cAAc,kBAAkB,EAAQ,EAAe,GAAiB,EAAgB,EAAmB,EAAU,aAAa,WAAW,EAAE,EAAmB,EAAU,eAAe,MAAM,EAAE,EAAmB,EAAW,aAAa,oBAAoB,EAAE,EAAmB,EAAW,eAAe,OAAO,EAAE,EAAmB,EAAe,aAAa,mCAAmC,CAAE,EAAE,EAAgB,EAAE,IAAM,EAAM,EAAO,0BAA0B,CAAC,EAAgB,CAAE,CAAC,EAAQ,EAAU,EAAO,eAAe,CAAC,EAAgB,CAAE,EAAE,EAAE,EAAQ,EAAS,IAAI,qBAAqB,CAAC,EAAgB,CAAE,CAAC,EAAuE,OAArE,EAAS,QAAQ,EAAK,CAAC,UAAU,GAAK,QAAQ,GAAK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