{"version":3,"file":"Email_validation.DBvij5XK.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText","__legacyOverrideHOC_DataObserverContext","_jsx","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/Uk9IfxseSScoON2b0jex/sUBU8cG9dllQoNYoYjUr/WRVhbfPz2.js","https:/framerusercontent.com/modules/2lDo7dE84GVT5l5OverX/PQ7ULp8O3WHXV7dFeeij/Botton_validation.js","https:/framerusercontent.com/modules/zYT5YkkLJXHVYgWLndRU/BMCkRLbemx0AkcmdSP3G/Email_validation.js"],"sourcesContent":["// Generated by Framer (ed8dc63)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={g0jg8sH_2:{hover:true,pressed:true}};const cycleOrder=[\"g0jg8sH_2\",\"JBfXnOjOK\",\"W0GNtdP66\",\"aYUtv1UxM\",\"pdy88yqBS\",\"dcUNsfZzE\"];const serializationHash=\"framer-mUNdu\";const variantClassNames={aYUtv1UxM:\"framer-v-pi5fqn\",dcUNsfZzE:\"framer-v-13u1c2e\",g0jg8sH_2:\"framer-v-ko98jp\",JBfXnOjOK:\"framer-v-1jybq3l\",pdy88yqBS:\"framer-v-te0mjw\",W0GNtdP66:\"framer-v-ogmh1h\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const vGcjiKZ7z=undefined;const transition1={delay:0,duration:.4,ease:[.12,.23,.5,1],type:\"tween\"};const transition2={delay:0,duration:.5,ease:[.12,.23,.5,1],type:\"tween\"};const transition3={delay:0,duration:1,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const transformTemplate1=(_,t)=>`translateX(-50%) ${t}`;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 Variants=motion.create(React.Fragment);const humanReadableVariantMap={Default:\"g0jg8sH_2\",Disabled:\"W0GNtdP66\",Error:\"pdy88yqBS\",Loading:\"JBfXnOjOK\",Phone:\"dcUNsfZzE\",Success:\"aYUtv1UxM\"};const getProps=({click,height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"g0jg8sH_2\",vGcjiKZ7z:click??props.vGcjiKZ7z};};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,vGcjiKZ7z,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"g0jg8sH_2\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTapjtmhf9=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(vGcjiKZ7z){const res=await vGcjiKZ7z(...args);if(res===false)return false;}setVariant(\"aYUtv1UxM\");});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"JBfXnOjOK\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"JBfXnOjOK\")return true;return false;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,...addPropertyOverrides({\"g0jg8sH_2-hover\":{value:transition2}},baseVariant,gestureVariant),children:/*#__PURE__*/_jsxs(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-ko98jp\",className,classNames),\"data-border\":true,\"data-framer-name\":\"Default\",\"data-highlight\":true,\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"g0jg8sH_2\",onTap:onTapjtmhf9,ref:refBinding,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"var(--token-00994827-5da3-4a86-bc66-07d7423e73d1, rgb(140, 69, 255))\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"var(--token-873fb35c-2084-47f0-9254-cb5d8b65f475, rgb(255, 255, 255))\",borderBottomLeftRadius:999,borderBottomRightRadius:999,borderTopLeftRadius:999,borderTopRightRadius:999,boxShadow:\"none\",opacity:1,...style},variants:{\"g0jg8sH_2-hover\":{\"--border-color\":\"var(--token-873fb35c-2084-47f0-9254-cb5d8b65f475, rgb(255, 255, 255))\",backgroundColor:\"var(--token-00994827-5da3-4a86-bc66-07d7423e73d1, rgb(140, 69, 255))\",boxShadow:\"none\",opacity:1},\"g0jg8sH_2-pressed\":{boxShadow:\"none\",opacity:1},aYUtv1UxM:{opacity:1},dcUNsfZzE:{boxShadow:\"none\",opacity:1},pdy88yqBS:{\"--border-color\":\"var(--token-3f7ab7b0-88eb-47f2-ab4d-dd4761361ee0, rgb(255, 34, 68))\",boxShadow:\"-12px 0px 21px -3px var(--token-3a5ebd19-1975-41f4-a3b4-f278efe98054, rgb(255, 34, 68)), -7px 0px 10px -5px rgb(255, 56, 132)\",opacity:1},W0GNtdP66:{opacity:.5}},...addPropertyOverrides({\"g0jg8sH_2-hover\":{\"data-framer-name\":undefined},\"g0jg8sH_2-pressed\":{\"data-framer-name\":undefined},aYUtv1UxM:{\"data-framer-name\":\"Success\"},dcUNsfZzE:{\"data-framer-name\":\"Phone\"},JBfXnOjOK:{\"data-framer-name\":\"Loading\"},pdy88yqBS:{\"data-framer-name\":\"Error\"},W0GNtdP66:{\"data-framer-name\":\"Disabled\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-440020f8-b9e1-49ea-9687-1ea12b43b3de, rgb(0, 0, 0)))\"},children:\"Scarica report\"})}),className:\"framer-a6htrz\",fonts:[\"Inter-SemiBold\"],layoutDependency:layoutDependency,layoutId:\"c_fzXRzfn\",style:{\"--extracted-r6o4lv\":\"var(--token-440020f8-b9e1-49ea-9687-1ea12b43b3de, rgb(0, 0, 0))\"},variants:{\"g0jg8sH_2-hover\":{\"--extracted-r6o4lv\":\"var(--token-873fb35c-2084-47f0-9254-cb5d8b65f475, rgb(255, 255, 255))\"},pdy88yqBS:{\"--extracted-r6o4lv\":\"var(--token-3f7ab7b0-88eb-47f2-ab4d-dd4761361ee0, rgb(255, 34, 68))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({\"g0jg8sH_2-hover\":{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-873fb35c-2084-47f0-9254-cb5d8b65f475, rgb(255, 255, 255)))\"},children:\"Scarica report\"})})},aYUtv1UxM:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7UG9wcGlucy1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Poppins\", \"Poppins Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-440020f8-b9e1-49ea-9687-1ea12b43b3de, rgb(0, 0, 0)))\"},children:\"Grazie\"})}),fonts:[\"FS;Poppins-semibold\"]},pdy88yqBS:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"RlM7UG9wcGlucy1zZW1pYm9sZA==\",\"--framer-font-family\":'\"Poppins\", \"Poppins Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-3f7ab7b0-88eb-47f2-ab4d-dd4761361ee0, rgb(255, 34, 68)))\"},children:\"Someting went wrong\"})}),fonts:[\"FS;Poppins-semibold\"]}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-yma8r\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"kJUVCyVLA\",style:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition3,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-ewntxq\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"z4hx4OOIs\",style:{backgroundColor:\"var(--token-d87dc5f7-2638-4b77-9368-a8568c56fcca, rgb(38, 38, 38))\"},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-1kho7jq\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"qyzxLu6nI\",style:{backgroundColor:\"var(--token-9a7303fe-2324-4aa1-bbd4-e1f1d449de82, rgba(255, 255, 255, 0.12))\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-mUNdu.framer-11lx9g0, .framer-mUNdu .framer-11lx9g0 { display: block; }\",\".framer-mUNdu.framer-ko98jp { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: 40px; justify-content: center; overflow: visible; padding: 6px 6px 6px 16px; position: relative; width: 240px; }\",\".framer-mUNdu .framer-a6htrz { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-mUNdu .framer-yma8r { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: var(--framer-aspect-ratio-supported, 20px); overflow: hidden; position: relative; width: 20px; }\",\".framer-mUNdu .framer-ewntxq { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-mUNdu .framer-1kho7jq { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 9px); left: 50%; overflow: visible; position: absolute; top: 0px; width: 10px; }\",\".framer-mUNdu.framer-v-1jybq3l .framer-1kho7jq { height: var(--framer-aspect-ratio-supported, 10px); }\",'.framer-mUNdu[data-border=\"true\"]::after, .framer-mUNdu [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; corner-shape: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 40\n * @framerIntrinsicWidth 240\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"JBfXnOjOK\":{\"layout\":[\"fixed\",\"fixed\"]},\"W0GNtdP66\":{\"layout\":[\"fixed\",\"fixed\"]},\"aYUtv1UxM\":{\"layout\":[\"fixed\",\"fixed\"]},\"pdy88yqBS\":{\"layout\":[\"fixed\",\"fixed\"]},\"dcUNsfZzE\":{\"layout\":[\"fixed\",\"fixed\"]},\"hz8DfGzvl\":{\"layout\":[\"fixed\",\"fixed\"]},\"z9I1UjKM6\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"vGcjiKZ7z\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerWRVhbfPz2=withCSS(Component,css,\"framer-mUNdu\");export default FramerWRVhbfPz2;FramerWRVhbfPz2.displayName=\"Submit Button 3\";FramerWRVhbfPz2.defaultProps={height:40,width:240};addPropertyControls(FramerWRVhbfPz2,{variant:{options:[\"g0jg8sH_2\",\"JBfXnOjOK\",\"W0GNtdP66\",\"aYUtv1UxM\",\"pdy88yqBS\",\"dcUNsfZzE\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\",\"Phone\"],title:\"Variant\",type:ControlType.Enum},vGcjiKZ7z:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerWRVhbfPz2,[{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/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{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/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{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/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{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/yDtI2UI8XcEg1W2je9XPN3Noo.woff2\",weight:\"600\"},{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/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"},{cssFamilyName:\"Poppins\",source:\"fontshare\",style:\"normal\",uiFamilyName:\"Poppins\",url:\"https://framerusercontent.com/third-party-assets/fontshare/wf/E6J4GS76KHNRRUWODFCFOX2JRKNRSFVY/3GYVT5S4AH7VMPASDDKOTIPV6P3WJXGI/24R4YOH3G2SFDSTCNHOVGYEX3DMRC3CE.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerWRVhbfPz2\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"40\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicWidth\":\"240\",\"framerContractVersion\":\"1\",\"framerAutoSizeImages\":\"true\",\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"JBfXnOjOK\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"W0GNtdP66\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"aYUtv1UxM\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"pdy88yqBS\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"dcUNsfZzE\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"hz8DfGzvl\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"z9I1UjKM6\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerVariables\":\"{\\\"vGcjiKZ7z\\\":\\\"click\\\"}\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WRVhbfPz2.map","import{jsx as _jsx}from\"react/jsx-runtime\";// Override per il bottone Invia - si collega all'override EmailValidation\nexport const ValidateFormSubmit=props=>{const validateBusinessEmail=email=>{const personalDomains=[// Google\n\"gmail.com\",\"googlemail.com\",// Microsoft\n\"hotmail.com\",\"hotmail.it\",\"outlook.com\",\"outlook.it\",\"live.com\",\"live.it\",\"msn.com\",// Yahoo\n\"yahoo.com\",\"yahoo.it\",\"yahoo.co.uk\",\"ymail.com\",\"rocketmail.com\",// Apple\n\"icloud.com\",\"me.com\",\"mac.com\",// AOL\n\"aol.com\",\"aol.it\",// Providers italiani\n\"libero.it\",\"virgilio.it\",\"tiscali.it\",\"alice.it\",\"tin.it\",\"fastwebnet.it\",\"email.it\",// Privacy-focused\n\"protonmail.com\",\"protonmail.ch\",\"pm.me\",\"tutanota.com\",\"tutanota.de\",// Internazionali\n\"yandex.com\",\"yandex.ru\",\"mail.ru\",\"rambler.ru\",\"web.de\",\"gmx.de\",\"gmx.com\",\"t-online.de\",\"orange.fr\",\"laposte.net\",\"free.fr\",// Altri comuni\n\"zoho.com\",\"mail.com\",\"inbox.com\",\"hey.com\",// Temporanei/usa e getta\n\"10minutemail.com\",\"guerrillamail.com\",\"tempmail.org\"];const emailRegex=/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;if(!emailRegex.test(email))return false;const domain=email.split(\"@\")[1]?.toLowerCase();return!personalDomains.includes(domain);};const handleSubmit=event=>{// Cerca il campo email nel DOM (compatibile con Framer)\nconst emailSelectors=['input[type=\"email\"]','input[placeholder*=\"email\" i]','input[placeholder*=\"Email\"]','input[placeholder*=\"aziendale\" i]'];let emailInput=null;for(const selector of emailSelectors){emailInput=document.querySelector(selector);if(emailInput)break;}if(emailInput){const email=emailInput.value.trim();// Controlla se il campo è vuoto\nif(!email){event.preventDefault();event.stopPropagation();alert(\"Per favore inserisci un indirizzo email prima di inviare.\");emailInput.focus();return false;}// Controlla se l'email è aziendale\nif(!validateBusinessEmail(email)){event.preventDefault();event.stopPropagation();alert(\"❌ Email non valida!\\n\\nPer favore inserisci un indirizzo email aziendale valido.\\n\\nEmail personali (Gmail, Yahoo, Hotmail, ecc.) non sono accettate.\");emailInput.focus();emailInput.style.borderColor=\"#ff4444\";emailInput.style.backgroundColor=\"rgba(255, 68, 68, 0.1)\";return false;}}// ✅ CONTROLLO reCAPTCHA\nconst recaptchaResponse=window.grecaptcha?.getResponse();if(!recaptchaResponse){event.preventDefault();event.stopPropagation();alert(\"Per favore completa la verifica 'Non sono un robot' prima di inviare.\");return false;}// Se tutto è OK, procedi con l'invio normale\nif(props.onClick){return props.onClick(event);}};return{...props,onClick:handleSubmit};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withValidateFormSubmit(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ValidateFormSubmit(props)});};}withValidateFormSubmit.displayName=\"ValidateFormSubmit\";\nexport const __FramerMetadata__ = {\"exports\":{\"ValidateFormSubmit\":{\"type\":\"override\",\"name\":\"ValidateFormSubmit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withValidateFormSubmit\":{\"type\":\"reactHoc\",\"name\":\"withValidateFormSubmit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Botton_validation.map","import{jsx as _jsx}from\"react/jsx-runtime\";// Override per validazione email aziendale\nexport const EmailValidation=props=>{const validateBusinessEmail=email=>{// Lista completa di domini email personali da escludere\nconst personalDomains=[// Google\n\"gmail.com\",\"googlemail.com\",// Microsoft\n\"hotmail.com\",\"hotmail.it\",\"outlook.com\",\"outlook.it\",\"live.com\",\"live.it\",\"msn.com\",// Yahoo\n\"yahoo.com\",\"yahoo.it\",\"yahoo.co.uk\",\"ymail.com\",\"rocketmail.com\",// Apple\n\"icloud.com\",\"me.com\",\"mac.com\",// AOL\n\"aol.com\",\"aol.it\",// Providers italiani\n\"libero.it\",\"virgilio.it\",\"tiscali.it\",\"alice.it\",\"tin.it\",\"fastwebnet.it\",\"email.it\",// Privacy-focused\n\"protonmail.com\",\"protonmail.ch\",\"pm.me\",\"tutanota.com\",\"tutanota.de\",// Internazionali\n\"yandex.com\",\"yandex.ru\",\"mail.ru\",\"rambler.ru\",\"web.de\",\"gmx.de\",\"gmx.com\",\"t-online.de\",\"orange.fr\",\"laposte.net\",\"free.fr\",// Altri comuni\n\"zoho.com\",\"mail.com\",\"inbox.com\",\"hey.com\",// Temporanei/usa e getta\n\"10minutemail.com\",\"guerrillamail.com\",\"tempmail.org\"];const emailRegex=/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;if(!emailRegex.test(email))return false;const domain=email.split(\"@\")[1]?.toLowerCase();return!personalDomains.includes(domain);};const handleEmailChange=event=>{const email=event.target.value;const isValid=email===\"\"||validateBusinessEmail(email);// Chiama la funzione onChange originale se presente\nif(props.onChange){props.onChange(event);}// Migliora la visibilità del testo e gestisce la validazione\nconst inputElement=event.target;// Assicura che il testo dell'input sia sempre visibile (non il label)\nif(inputElement.tagName===\"INPUT\"){inputElement.style.color=\"#ffffff\"// Solo per l'input, non per il label\n;}if(!isValid&&email!==\"\"){inputElement.style.borderColor=\"#ff4444\";inputElement.style.backgroundColor=\"rgba(255, 68, 68, 0.1)\"// Rosso trasparente\n;}else{inputElement.style.borderColor=\"\";inputElement.style.backgroundColor=\"\";}};const handleFocus=event=>{// Assicura visibilità del testo quando si clicca nel campo (solo input)\nconst inputElement=event.target;if(inputElement.tagName===\"INPUT\"){inputElement.style.color=\"#ffffff\";}// Chiama la funzione onFocus originale se presente\nif(props.onFocus){props.onFocus(event);}};const handleBlur=event=>{const email=event.target.value;if(email&&!validateBusinessEmail(email)){alert(\"Per favore inserisci un indirizzo email aziendale valido.\");}// Chiama la funzione onBlur originale se presente\nif(props.onBlur){props.onBlur(event);}};return{...props,onChange:handleEmailChange,onFocus:handleFocus,onBlur:handleBlur,placeholder:props.placeholder||\"Inserisci la tua email aziendale\"};};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withEmailValidation(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...EmailValidation(props)});};}withEmailValidation.displayName=\"EmailValidation\";\nexport const __FramerMetadata__ = {\"exports\":{\"EmailValidation\":{\"type\":\"override\",\"name\":\"EmailValidation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withEmailValidation\":{\"type\":\"reactHoc\",\"name\":\"withEmailValidation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Email_validation.map"],"mappings":"oaACgwB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,uDAA/2B,IAAoK,IAAkE,IAA4B,CAAgC,EAAgB,EAAO,EAAO,IAAI,CAAO,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,QAAQ,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,kBAAkB,CAAwN,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC,KAAK,QAAQ,CAAO,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC,KAAK,QAAQ,CAAO,EAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,C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