1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3344],{41120:function(e,t,n){"use strict";var o=n(87462),r=n(22148),i=n(90953);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.Z)(e,(0,o.Z)({defaultTheme:i.Z},t))}},35356:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var o=n(50029),r=n(59499),i=n(87794),s=n.n(i),a=n(41120),l=n(24338),d=n(62734),c=n(51118),u=n(65194),f=n(70445),p=n(28665),m=n(284),g=n(95830),b=n(19779),x=n(67294),h=n(98388),w=n(58022),Z=n(85893);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=(0,a.Z)((function(e){var t,n,o,i,s,a,l,d,c;return{container:(0,r.Z)({width:"100%",height:"auto",backgroundImage:"url(/engineerzone.png)",backgroundRepeat:"no-repeat",backgroundSize:"cover",display:"flex",flexDirection:"column",margin:"0 auto",padding:"3%"},e.breakpoints.down("769"),{width:"100%"}),containerContent:(t={display:"flex",flexDirection:"column",width:"35%",padding:"3%"},(0,r.Z)(t,e.breakpoints.down("1100"),{width:"50%"}),(0,r.Z)(t,e.breakpoints.down("400"),{width:"95%"}),(0,r.Z)(t,"margin","0 auto"),t),title:(0,r.Z)({width:"100%",height:"auto",padding:"0 7.5%",margin:"1% 0"},e.breakpoints.down("769"),{width:"90%"}),subtitle:(n={borderLeftColor:"#F5B750",borderLeftStyle:"solid",borderLeftWidth:7,fontSize:26,color:"#344450",fontWeight:"bold",padding:"2% 3%",margin:"1% 0"},(0,r.Z)(n,e.breakpoints.down("1100"),{borderLeftWidth:5,fontSize:22}),(0,r.Z)(n,e.breakpoints.down("769"),{borderLeftWidth:3,fontSize:18}),n),inputLabel:(0,r.Z)({color:"#344450",fontSize:20,fontWeight:"bold",marginBottom:"3%"},e.breakpoints.down("769"),{fontSize:15}),root:(0,r.Z)({"& .MuiInputBase-input":{color:"#344450"},"& label.Mui-focused":{color:"#F5B750"},"& .MuiInput-underline:after":{borderBottomColor:"#F5B750"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"#344450"},"&:hover fieldset":{borderColor:"#344450"},"&.Mui-focused fieldset":{borderColor:"#F5B750"}},width:"100%",margin:"auto",marginBottom:40},e.breakpoints.down("769"),{marginBottom:20}),rootAR:(0,r.Z)({"& label":{transformOrigin:"top left",right:20,left:"auto","&.Mui-focused":{right:3}},"& legend":{textAlign:"right"},"& .MuiInputBase-input":{color:"#344450"},"& label.Mui-focused":{color:"#F5B750"},"& .MuiInput-underline:after":{borderBottomColor:"#F5B750"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"#344450"},"&:hover fieldset":{borderColor:"#344450"},"&.Mui-focused fieldset":{borderColor:"#F5B750"}},width:"100%",margin:"auto",marginBottom:40},e.breakpoints.down("769"),{marginBottom:20}),multilineColor:(o={padding:"0 2%",color:"#344450",fontSize:16},(0,r.Z)(o,e.breakpoints.down("1100"),{fontSize:14}),(0,r.Z)(o,e.breakpoints.down("769"),{fontSize:12}),o),button:(i={backgroundColor:"#344450",color:"#FFFFFF",padding:"3% 6%",margin:"3% 0",fontSize:15,"&:hover":{backgroundColor:"#F5B750"}},(0,r.Z)(i,e.breakpoints.down("1100"),{fontSize:12}),(0,r.Z)(i,e.breakpoints.down("769"),{fontSize:10}),i),linkPage:(s={color:"#344450",width:"fit-content",fontSize:15,fontWeight:"bold"},(0,r.Z)(s,e.breakpoints.down("1100"),{fontSize:12}),(0,r.Z)(s,e.breakpoints.down("769"),{fontSize:10}),s),linkPageHover:{cursor:"pointer","&:hover":{color:"#F5B750"},textDecoration:"underline"},introSentence:(0,r.Z)({color:"#344450",fontSize:24,fontWeight:"bold",textAlign:"center",marginTop:"2%"},e.breakpoints.down("769"),{fontSize:16}),errorText:(a={color:"red",width:"fit-content",fontWeight:"bold",margin:"0 auto",fontSize:20},(0,r.Z)(a,e.breakpoints.down("1100"),{fontSize:18}),(0,r.Z)(a,e.breakpoints.down("769"),{fontSize:16}
1),a),boxSendCode:(l={border:"2px solid #F5B750",width:"50%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"center",margin:"1%",padding:"2%"},(0,r.Z)(l,e.breakpoints.down("769"),{width:"90%"}),(0,r.Z)(l,e.breakpoints.down("1250"),{width:"70%"}),l),sendby:(0,r.Z)({color:"#344450",fontSize:20,fontWeight:"bold"},e.breakpoints.down("769"),{fontSize:16}),buttonsBox:(d={width:"100%",display:"flex",justifyContent:"space-around",marginTop:"3%"},(0,r.Z)(d,e.breakpoints.down("769"),{flexDirection:"column",width:"fit-content"}),(0,r.Z)(d,"gap",5),d),buttonSend:(c={backgroundColor:"#344450",color:"#FFFFFF",minWidth:100,fontSize:16,padding:"2% 4%","&:hover":{backgroundColor:"#F5B750"}},(0,r.Z)(c,e.breakpoints.down("1100"),{fontSize:14}),(0,r.Z)(c,e.breakpoints.down("769"),{fontSize:14,margin:"2%",height:50}),(0,r.Z)(c,"textTransform","none"),c)}}));function S(){var e=k(),t=(0,w.Z)().t,n="ar"===(0,x.useContext)(p.Z).session.lang,i=(0,x.useState)({request:"",sentCode:"",engId:"",code:"",newPass:"",conPass:"",showNewPass:!1,showConPass:!1,isWrongEmail:!1}),a=i[0],j=i[1];function S(e){j((function(t){return v(v({},t),e)}))}function C(){return(C=(0,o.Z)(s().mark((function e(t){var n,o,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=a.engId,o={email:n},e.next=5,(0,b.QQ)({api:"auth/forgotpassword",reqBody:o});case 5:"success"==(r=e.sent).status?S({request:r.response}):S({isWrongEmail:!0});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return N.apply(this,arguments)}function N(){return(N=(0,o.Z)(s().mark((function e(t){var n,o,r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.engId,o=a.request.reqId,r={method:t,engId:n,reqId:o},e.next=4,(0,b.QQ)({api:"auth/sendResetPasswordCode",reqBody:r});case 4:i=e.sent,S({sentCode:i.status});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,Z.jsxs)("div",{className:"".concat(g.EQ," mb-5"),children:[(0,Z.jsx)(u.Z,{title:t("forgotPassword"),description:t("forgotPassword")}),(0,Z.jsxs)("div",{className:(0,h.m6)(g._N,"flex items-center justify-center flex-col"),children:["success"!=a.sentCode&&(0,Z.jsx)(f.Z,{center:!0,bold:!0,sectionTitle:!0,text:"success"!=a.sentCode?t("forgotPassword"):null}),(0,Z.jsx)("div",{className:" flex items-center justify-center flex-col",children:a.request.reqId?"success"!=a.sentCode?(0,Z.jsxs)("div",{className:e.boxSendCode,children:[(0,Z.jsx)("div",{className:e.sendby,children:t("pleaseChooseResetPasswordMethod")}),(0,Z.jsxs)("div",{className:e.buttonsBox,children:[(0,Z.jsx)(l.Z,{type:"button",className:e.buttonSend,onClick:function(){return y("email")},title:"".concat(t("email")," : ").concat(a.request.email.replace(/X/g,"x"))}),(0,Z.jsx)(l.Z,{type:"button",className:e.buttonSend,onClick:function(){return y("phoneNumber")},title:"".concat(t("sms")," : ").concat(a.request.phoneNumber.replace(/X/g,"x"))})]})]}):(0,Z.jsx)(m.Z,{route:"resetPassword"}):(0,Z.jsxs)("form",{onSubmit:function(e){return C.apply(this,arguments)},className:"w-full flex flex-col items-center gap-5 mt-5",children:[(0,Z.jsx)(d.Z,{required:!0,name:"engId",value:a.engId,direction:n?"rtl":"ltr",className:"input w-full",leftIconName:"ic:baseline-engineering",onChange:function(e){return function(e){var t=e.target,n=t.name,o=t.value;S((0,r.Z)({},n,o)),a.isWrongEmail&&S({isWrongEmail:!1})}({target:{name:e.target.name,value:(0,b.Un)(e.target.value)}})},placeholder:t("engineerId")}),a.isWrongEmail&&(0,Z.jsx)(f.Z,{text:t("userDoesNotExists"),className:"text-red w-fit mx-auto font-JR"}),(0,Z.jsx)("div",{className:"w-full",children:(0,Z.jsx)(l.Z,{className:"w-full",title:t("send"),type:"submit"})}),(0,Z.jsxs)("div",{className:"w-full",children:[(0,Z.jsxs)("div",{className:"flex flex-wrap flex-row justify-start",children:[(0,Z.jsx)(f.Z,{text:t("resetCodeReceived"),className:"text-oeaMain text-input md:text-infoText"}),(0,Z.jsx)(c.Z,{href:"/confirmEnroll",as:"/confirmEnroll",children:(0,Z.jsx)("a",{children:(0,Z.jsx)(f.Z,{className:"text-oeaMain hover:text-orange underline text-input md:text-infoText font-bold ml-2",text:t("resetPassword")})})})]}),(0,Z.jsx)("div",{className:"flex mt-2",children:(0,Z.jsxs)("div",{className:"flex flex-row justify-start",children:[(0,Z.jsx)(f.Z,{text:t("rememberedPassword"),className:"text-oeaMain text-input md:text-infoText "}),(0,Z.jsx)(c.Z,{href:"/signin",as:"/signin",children:(0,Z.jsx)("a",{children:(0,Z.jsx)(f.Z,{className:"text-oeaMain mx-2 hover:text-orange underline text-input md:text-infoText font-bold",text:t("signIn")})})})]})})]})]})})]})]})}S.options={allow:["guest"],redirectTo:{href:"/",as:"/"}}},62275:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/forgotPassword",function(){return n(35356)}])}},function(e){e.O(0,[2962,7296,9774,2888,179],(function(){return t=62275,e(e.s=t);var t}));var t=e.O();_N_E=t}]); 2//# sourceMappingURL=forgotPassword-5ab5073bca09d962.js.map
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.