{"version":3,"file":"EmailValidation_notblockdomain.48mthjfB.mjs","names":["React.forwardRef","__esmMin","init_npm_react_18_3_1","init_jsx_runtime","J","c","motion","useSVGTemplate","addPropertyControls","withCSS","init_framer_CcflMUCW","ControlType","cx","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_APAaAAUOu","props","rest","animated","color","width1","alpha","restProps","href","className","qxTvv_EBh","ezTt3ayMo","lschgej4H","style","withDomainBlocker","Component","input","event","parts","id","domain","BLOCKED_IDS","BLOCKED_DOMAINS","ERROR_MESSAGE","init_EmailValidation_notblockdomain"],"sources":["https:/framerusercontent.com/modules/tiqqxad36ZbuQh9iDdNg/oZ5UwWIetBksiOvQFqbk/APAaAAUOu.js","https:/framerusercontent.com/modules/Gxeq923gRT6bD7oQvNgm/CBnkAdqAhhexQejm74Pa/EmailValidation_notblockdomain.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 15 0 L 15 6.75 C 15 7.164 14.664 7.5 14.25 7.5 L 0.75 7.5 C 0.336 7.5 0 7.164 0 6.75 L 0 0 Z\" fill-opacity=\"var(--1m6trwb, 0)\" fill=\"var(--21h8s6, rgb(0, 0, 0))\" height=\"7.5px\" id=\"PqMs3kiLX\" transform=\"translate(4.5 12)\" width=\"15px\"/><path d=\"M 0.75 4.5 C 0.336 4.5 0 4.164 0 3.75 L 0 0.75 C 0 0.336 0.336 0 0.75 0 L 17.25 0 C 17.664 0 18 0.336 18 0.75 L 18 3.75 C 18 4.164 17.664 4.5 17.25 4.5 Z\" fill=\"transparent\" height=\"4.5px\" id=\"uGtPtPqzX\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(3 7.5)\" width=\"18px\"/><path d=\"M 15 0 L 15 6.75 C 15 7.164 14.664 7.5 14.25 7.5 L 0.75 7.5 C 0.336 7.5 0 7.164 0 6.75 L 0 0\" fill=\"transparent\" height=\"7.5px\" id=\"s4A8vEmVO\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(4.5 12)\" width=\"15px\"/><path d=\"M 0 0 L 0 12\" fill=\"transparent\" height=\"12px\" id=\"bbR_Q6vXQ\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(12 7.5)\" width=\"1px\"/><path d=\"M 4.574 0.676 C 5.45 1.552 5.501 3.026 4.574 3.847 C 2.989 5.25 0 5.25 0 5.25 C 0 5.25 0 2.262 1.406 0.676 C 2.225 -0.251 3.698 -0.199 4.574 0.676 Z\" fill=\"transparent\" height=\"5.25025538848633px\" id=\"ab1gz3hCU\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(12 2.25)\" width=\"5.250255388486309px\"/><path d=\"M 0.676 0.676 C -0.199 1.552 -0.251 3.026 0.676 3.847 C 2.262 5.25 5.25 5.25 5.25 5.25 C 5.25 5.25 5.25 2.262 3.844 0.676 C 3.026 -0.251 1.552 -0.199 0.676 0.676 Z\" fill=\"transparent\" height=\"5.25025538848633px\" id=\"xUIEvHvSL\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(6.75 2.25)\" width=\"5.2502553884863445px\"/></svg>';const getProps=({alpha,color,height,id,width,width1,...props})=>{return{...props,ezTt3ayMo:color??props.ezTt3ayMo??\"rgb(0, 0, 0)\",lschgej4H:width1??props.lschgej4H??1.5,qxTvv_EBh:alpha??props.qxTvv_EBh};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,ezTt3ayMo,lschgej4H,qxTvv_EBh,...restProps}=getProps(props);const href=useSVGTemplate(\"2155168161\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-TNf1w\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m6trwb\":qxTvv_EBh,\"--21h8s6\":ezTt3ayMo,\"--pgex8v\":lschgej4H,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-TNf1w { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"ezTt3ayMo\":\"color\",\"lschgej4H\":\"width1\",\"qxTvv_EBh\":\"alpha\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Gift\",\"color\":{\"type\":\"variable\",\"value\":\"21h8s6\"},\"set\":{\"localId\":\"vectorSet/NGVKdicsm\",\"id\":\"NGVKdicsm\",\"moduleId\":\"omX0gWFPqDwhaiWwf6ab\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-TNf1w\");Icon.displayName=\"Gift\";export default Icon;addPropertyControls(Icon,{ezTt3ayMo:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},lschgej4H:{defaultValue:1.5,displayStepper:true,hidden:false,max:6,min:0,step:.5,title:\"Width\",type:ControlType.Number},qxTvv_EBh:{defaultValue:0,displayStepper:true,hidden:false,max:1,min:0,step:.1,title:\"Alpha\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"ezTt3ayMo\\\":\\\"color\\\",\\\"lschgej4H\\\":\\\"width1\\\",\\\"qxTvv_EBh\\\":\\\"alpha\\\"}\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"24\",\"framerDisableUnlink\":\"true\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerVector\":\"{\\\"name\\\":\\\"Gift\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"21h8s6\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/NGVKdicsm\\\",\\\"id\\\":\\\"NGVKdicsm\\\",\\\"moduleId\\\":\\\"omX0gWFPqDwhaiWwf6ab\\\"}}\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"24\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";// 차단할 도메인\nconst BLOCKED_DOMAINS=[// \"gmail.com\",\n// \"naver.com\",\n// \"hanmail.net\",\n// \"daum.net\",\n// \"kakao.com\",\n// \"yahoo.com\",\n// \"hotmail.com\",\n\"d.com\"];// 차단할 ID\nconst BLOCKED_IDS=[\"abc\",\"abc123\",\"abc111\"];// 에러 메시지\nconst ERROR_MESSAGE=\"유효한 회사 이메일을 입력해주세요.\";export function withDomainBlocker(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onChange:event=>{const input=event.target;const value=input.value;// 이메일 주소를 @ 기준으로 분리\nconst parts=value.split(\"@\");// @ 뒤에 도메인이 입력된 경우 검사\nif(parts.length===2){const id=parts[0].toLowerCase();const domain=parts[1].toLowerCase()// 소문자로 변환하여 비교\n;if(BLOCKED_IDS.includes(id)||BLOCKED_DOMAINS.includes(domain)){// 차단된 ID, 도메인이면 유효성 에러 설정 (제출 불가)\ninput.setCustomValidity(ERROR_MESSAGE);}else{// 통과되면 에러 초기화\ninput.setCustomValidity(\"\");}}else{// 이메일 형식이 완성되지 않았을 때는 에러 초기화\ninput.setCustomValidity(\"\");}// Framer의 기본 동작 유지\nif(props.onChange)props.onChange(event);}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withDomainBlocker\":{\"type\":\"reactHoc\",\"name\":\"withDomainBlocker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EmailValidation_notblockdomain.map"],"mappings":"A,wSACgM,EAAK,0BAAgC,EAAkB,gBAAW,SAAS,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,GAAGqB,EAAU,MAAI,SAASA,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAUf,EAAO,OAAOQ,CAAI,EAAQ,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGQ,GAAMD,EAAM,OAAOE,EAAsB,gBAAKR,EAAU,CAAC,GAAGO,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,4oEAAkpE,GAAU,CAAC,QAAM,QAAM,SAAO,KAAG,QAAM,SAAO,GAAGD,MAAgB,CAA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