{"version":3,"file":"ApplyFormAttributes.DTEggVJF.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/Kl3gpPqNwq7WhQUzQt63/OyX8JAQKlXQPJkTtUQFR/ApplyFormAttributes.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function applyRequiredAttributes(){React.useEffect(()=>{const fieldNames=[\"first_name\",\"last_name\",\"role\",\"company_name\",\"postal_code\",\"business_registration\",\"email\",\"about_company\"];fieldNames.forEach(name=>{const el=document.querySelector(`[name='${name}']`);if(el){el.setAttribute(\"data-required\",\"true\");}});const visibleStep=document.querySelector(\"[data-visible-step]\");if(visibleStep){visibleStep.setAttribute(\"data-step\",\"step\");}},[]);return{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withapplyRequiredAttributes(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...applyRequiredAttributes(props)});};}withapplyRequiredAttributes.displayName=\"applyRequiredAttributes\";\nexport const __FramerMetadata__ = {\"exports\":{\"applyRequiredAttributes\":{\"type\":\"override\",\"name\":\"applyRequiredAttributes\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withapplyRequiredAttributes\":{\"type\":\"reactHoc\",\"name\":\"withapplyRequiredAttributes\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ApplyFormAttributes.map"],"mappings":"oKAA2C,SAAgB,GAAyB,CAA2Z,OAA1Z,MAAM,cAAc,CAAkB,CAAC,aAAa,YAAY,OAAO,eAAe,cAAc,wBAAwB,QAAQ,gBAAgB,CAAY,QAAQ,GAAM,CAAC,IAAM,EAAG,SAAS,cAAc,UAAU,EAAK,IAAI,CAAI,GAAI,EAAG,aAAa,gBAAgB,OAAO,EAAI,CAAC,IAAM,EAAY,SAAS,cAAc,sBAAsB,CAAI,GAAa,EAAY,aAAa,YAAY,OAAO,EAAI,EAAE,CAAC,CAAO,EAAE,CAAqJ,SAAgB,EAA4B,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAwB,EAAM,CAAC,CAAC,mBAAlyB,IAA8gB,IAAmF,CAAqM,EAA4B,YAAY"}