1(this.webpackJsonpbrightics_ai=this.webpackJsonpbrightics_ai||[]).push([[55],{1154:function(e,t,c){},1219:function(e,t,c){"use strict";c.r(t),c.d(t,"default",(function(){return f}));var a=c(66),n=c(1),s=c(52),i=c(90),l=c(630),o=c(629),r=c(353),d=c(108),j=c(226),m=c(64),h=c(45),b=c(599),p=c(265),u=c(645),O=c(229),x=c(3),v=c(264),N=(c(1154),c(2));function f(){var e=Object(s.g)(),t=Object(h.d)(),c=Object(b.a)(),f=c.t,g=c.i18n,C=Object(h.e)((function(e){return e.authReducer.isAuth})),w=o.e({email:o.g().required("".concat(f("home.EmailRequired"))).email(f("home.emailInvalid")),name:o.g().trim().required("".concat(f("home.NameRequired"))),phone:o.g().required("".concat(f("home.PhoneRequired")))}),y=Object(l.a)({onSubmit:function(e){var c,a=new m.a,n=Object(O.a)(),s=e.phone.split("-").join("");a.forgetPassword({name:e.name,email:e.email,phoneNumber:s,country:null===(c=n.find((function(t){return t.id===e.areaCode})))||void 0===c?void 0:c.prefix}).pipe(Object(d.a)((function(e){return Object(r.a)(L(!0),q(null===e||void 0===e?void 0:e.message))})),Object(j.a)((function(e){return Object(r.a)(t(Object(x.d)({message:null===e||void 0===e?void 0:e.message,variant:"error"})))}))).subscribe()},initialValues:{email:"",name:"",phone:"",areaCode:0},validationSchema:w}),R=y.handleChange,T=y.handleSubmit,k=y.touched,P=y.errors,S=y.values,F=y.setFieldValue,W=y.validateForm,M=Object(n.useState)(""),E=Object(a.a)(M,2),A=E[0],q=E[1],B=Object(n.useState)(!1),D=Object(a.a)(B,2),I=D[0],L=D[1];return Object(n.useEffect)((function(){W()}),[W,g.language]),Object(n.useEffect)((function(){C&&e.push("/")}),[C,e]),Object(N.jsxs)("div",{className:"contW forget-password forget-id",children:[Object(N.jsx)("main",{role:"main",id:"contents",className:"mainContW bgGray02 pB80",children:Object(N.jsx)("form",{onSubmit:T,children:Object(N.jsxs)("section",{className:"container boxRelative mT60",children:[Object(N.jsx)("div",{className:"locationW",children:Object(N.jsxs)("ul",{className:"location",children:[Object(N.jsx)("li",{children:Object(N.jsx)(i.a,{to:"/",className:"txtGray01",children:"Home >\xa0"})}),Object(N.jsx)("li",{children:f("home.ForgotPassword")})]})}),Object(N.jsx)("h3",{className:"tit01",children:f("home.ForgotPassword")}),Object(N.jsx)("div",{className:"txt03 mT25",children:f("home.CheckInformation")}),Object(N.jsx)("div",{className:"contBox01 mT40 pL219 pR219",children:Object(N.jsxs)("div",{className:"tblW fs14",children:[Object(N.jsxs)("div",{className:"tblRow",children:[Object(N.jsxs)("div",{className:"tblCell width200 txtMedium",children:[f("home.Name")," ",Object(N.jsx)("span",{className:"txtRed",children:"*"})]}),Object(N.jsxs)("div",{className:"tblCell",children:[Object(N.jsx)("div",{className:"inputW",children:Object(N.jsxs)("div",{className:"inputTxt pwErrorCheck",children:[Object(N.jsx)("input",{type:"text",name:"name",className:"inputData",onChange:R,placeholder:f("home.InputYourName")}),k.name&&P.name&&Object(N.jsx)("p",{className:"errorMsg",children:P.name})]})}),Object(N.jsx)("p",{className:"errorMsg",children:k.name&&P.name})]})]}),Object(N.jsxs)("div",{className:"tblRow",children:[Object(N.jsxs)("div",{className:"tblCell pT24 width200 txtMedium",children:[f("home.Email")," ",Object(N.jsx)("span",{className:"txtRed",children:"*"})]}),Object(N.jsxs)("div",{className:"tblCell pT24",children:[Object(N.jsx)("div",{className:"inputW",children:Object(N.jsx)("div",{className:"inputTxt pwErrorCheck",children:Object(N.jsx)("input",{type:"email",name:"email",className:"inputData",onChange:R,placeholder:f("home.EnterTheEmailSignUp")})})}),k.email&&P.email&&Object(N.jsx)("p",{className:"errorMsg",children:P.email})]})]}),Object(N.jsxs)("div",{className:"tblRow",children:[Object(N.jsxs)("div",{className:"tblCell pT24 width200 txtMedium",children:[f("home.Phone")," ",Object(N.jsx)("span",{className:"txtRed",children:"*"})]}),Object(N.jsx)("div",{className:"tblCell pT24",children:Object(N.jsxs)("div",{className:"clearfix",children:[Object(N.jsx)("div",{className:"floatL",children:Object(N.jsx)("div",{className:"selectW disInBlock vAlignMiddle",children:Object(N.jsx)(p.a,{name:"areaCode",handleChange:F,libSelect:Object(O.a)(),itemSelected:S.areaCode})})}),Object(N.jsx)("div",{className:"floatR",children:Object(N.jsx)("div",{className:"inputW disInBlock mL6 vAlignMiddle ".concat(k.phone&&P.phone?"error":""),children:Object(N.jsxs)("div",{className:"inputTxt",children:[Object(N.jsx)(u.a,{name:"phone",value:S.phone,handleChange:F,placeholder:f("home.InputPhone")}),k.phone&&P.phone&&Object(N.jsx)("p",{className:"errorMsg",children:P.phone})]})})})]})})]})]})}),Object(N.jsx)("div",{className:"clearfix mT24",children:Object(N.jsxs)("div",{className:"floatR",children:[Object(N.jsx)("a",{className:"btnSecond02 btnSize01 pointer",onClick:function(){Object(v.a)({title:"".concat(f("dialog.confirm")),body:"".concat(f("dialog.cancelPopup"))}).then((function(){e.push("/login")}),(function(){}))},children:f("dialog.cancel")}),Object(N.jsx)("button",{type:"submit",className:"btnPrimary btnSize01 mL8 pointer",style:{border:"none"},children:f("home.ForgotPassword")})]})})]})})}),Object(N.jsxs)("div",{className:"popFixedWrap popPwFind ".concat(I?"open-popup":""),children:[Object(N.jsxs)("section",{className:"popWrap popFeedback",children:[Object(N.jsx)("button",{type:"button",className:"btnClose",onClick:function(){return L(!1)}}),Object(N.jsx)("div",{className:"popBody",style:{minHeight:248},children:Object(N.jsxs)("div",{className:"popCont",children:[Object(N.jsx)("div",{className:"popTit01",children:f("home.ForgotPassword")}),Object(N.jsx)("div",{className:"minH86",children:A}),Object(N.jsx)("div",{className:"mT16 txtR",children:Object(N.jsx)("button",{className:"btnPrimary btnSize03 pointer",onClick:function(){L(!1),e.push("/login")},children:f("home.ConFirm")})})]})})]}),Object(N.jsx)("div",{className:"dim ".concat(I?"open-popup open":"")})]})]})}},645:function(e,t,c){"use strict";c.d(t,"a",(function(){return l}));var a=c(1),n=c.n(a),s=c(10),i=c(2);function l(e){var t=e.name,c=e.handleChange,a=e.value,l=e.placeholder,o=e.classProp,r=/^[0-9-\b]+$/,d=/^[0-9\b]+$/;return Object(i.jsx)(n.a.Fragment,{children:Object(i.jsx)("input",{type:"tel",className:"inputData ".concat(o||""),value:Object(s.t)(a),placeholder:l,onChange:function(e){var a=e.target.value;if(r.test(a)||""===a){var n=Object(s.t)(a);c(t,n)}},onKeyDown:function(e){var t=e.key,c=e.which||e.keyCode;(e.ctrlKey?e.ctrlKey:17===c)&&["c","v","a","x","z"].includes(t)||["Tab","Backspace","ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(t)||d.test(t)||e.preventDefault()}})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.