{"version":3,"file":"Input_Email.DFeNLE_a.mjs","names":["React.useState","__esmMin","init_npm_react_18_3_1","_e","init_jsx_runtime","c","p","addPropertyControls","ControlType","init_framer_DKgW_P28","InputField_Email","props","inputValue","setInputValue","value","isFocused","setIsFocused","inputClassName","validateEmail","email","validate","blockedCommaSeparatedDomains","blockedDomains","d","domain","placeholderColor","newValue","onChange","error","textColor","backgroundColor","focusBorderColor","borderColor","init_Input_Email"],"sources":["https:/framerusercontent.com/modules/zD3QHcCFsgkwxfLQubYV/OIQ1lAnY2DLxDnu7fsnI/Input_Email.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function InputField_Email(props){const{placeholder,value,onChange,blockedCommaSeparatedDomains,placeholderColor,textColor=\"#F7F8F8\",backgroundColor=\"rgba(255, 255, 255, 0.1)\",borderColor=\"rgba(255, 255, 255, 0.05)\",focusBorderColor=\"#0289FF\",name}=props;const[inputValue,setInputValue]=React.useState(value||\"\");const[isFocused,setIsFocused]=React.useState(false);const inputClassName=\"framer-input-\"+Math.floor(Math.random()*1e5);// Basic email format validation\nconst validateEmail=email=>{const emailRegex=/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;return emailRegex.test(email);};// Exact domain match validation (NO REGEX)\nconst validate=email=>{if(!validateEmail(email)){return\"Please enter a valid email address\";}if(blockedCommaSeparatedDomains){const blockedDomains=blockedCommaSeparatedDomains.split(\",\").map(d=>d.trim().toLowerCase()).filter(Boolean);const domain=email.split(\"@\")[1]?.toLowerCase();if(domain&&blockedDomains.includes(domain)){return\"Please enter your work email\";}}return\"\";};const handleBlur=()=>{setIsFocused(false);validate(inputValue);};const handleFocus=()=>setIsFocused(true);const handleChange=e=>{const newValue=e.target.value;setInputValue(newValue);onChange&&onChange(newValue);const error=validate(newValue);e.target.setCustomValidity(error);};return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .${inputClassName}::placeholder {\n                    color: ${placeholderColor};\n                    opacity: 1;\n                }\n            `}),/*#__PURE__*/_jsx(\"input\",{type:\"email\",name:name,placeholder:placeholder,value:inputValue,onChange:handleChange,onBlur:handleBlur,onFocus:handleFocus,className:inputClassName,required:true,style:{width:\"100%\",padding:\"11px 12px\",fontFamily:\"Manrope\",fontSize:\"14px\",fontWeight:\"regular\",lineHeight:\"1.2em\",color:textColor,borderRadius:\"6px\",background:backgroundColor,border:`1px solid ${isFocused?focusBorderColor:borderColor}`,outline:\"none\",transition:\"border 0.2s\"}})]});}addPropertyControls(InputField_Email,{name:{type:ControlType.String,defaultValue:\"email\"},placeholder:{type:ControlType.String,defaultValue:\"Enter your work email\"},blockedCommaSeparatedDomains:{type:ControlType.String,placeholder:\"Comma-separated domains (e.g. la.com,l33r.eu)\",defaultValue:\"\"},placeholderColor:{type:ControlType.Color,defaultValue:\"#999999\"},textColor:{type:ControlType.Color,defaultValue:\"#F7F8F8\"},backgroundColor:{type:ControlType.Color,defaultValue:\"rgba(255, 255, 255, 0.1)\"},borderColor:{type:ControlType.Color,defaultValue:\"rgba(255, 255, 255, 0.05)\"},focusBorderColor:{type:ControlType.Color,defaultValue:\"#0289FF\"},value:{type:ControlType.String,defaultValue:\"\",hidden:true}});InputField_Email.defaultProps={width:300,height:60};\nexport const __FramerMetadata__ = {\"exports\":{\"InputField_Email\":{\"type\":\"reactComponent\",\"name\":\"InputField_Email\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Input_Email.map"],"mappings":"A,kLAAyI,SAAgBU,EAAiB,EAAM,CAAC,GAAK,CAAC,cAAY,QAAM,WAAS,+BAA6B,mBAAiB,YAAU,UAAU,kBAAgB,2BAA2B,cAAY,4BAA4B,mBAAiB,UAAU,QAAMC,EAAW,CAACC,EAAWC,GAAeb,EAAec,GAA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