1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5650],{8750:function(s,e,r){"use strict";r.d(e,{Z:function(){return t}});r(7294);var a=r(5893);function t(s){var e=s.reverse,r=void 0!==e&&e;return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38",height:"38",viewBox:"0 0 38 38",children:(0,a.jsxs)("g",{id:"Group_127","data-name":"Group 127",transform:"translate(0.096 -0.214)",children:[(0,a.jsxs)("g",{id:"Ellipse_18","data-name":"Ellipse 18",transform:"translate(-0.096 0.214)",fill:r?"black":"white",stroke:"rgba(0,0,0,0)",strokeWidth:"1",children:[(0,a.jsx)("circle",{cx:"19",cy:"19",r:"19",stroke:"none"}),(0,a.jsx)("circle",{cx:"19",cy:"19",r:"18.5",fill:"none"})]}),(0,a.jsx)("path",{id:"Path_208","data-name":"Path 208",d:"M-113.356,1004.549l-7.5,7.233,7.5,6.564",transform:"translate(131.581 -992.398)",fill:"none",stroke:r?"white":"black",strokeLinecap:"round",strokeWidth:"2"}),(0,a.jsx)("path",{id:"Path_210","data-name":"Path 210",d:"M-118.748,1012.383h14.883",transform:"translate(130.653 -992.951)",fill:"none",stroke:r?"white":"black",strokeLinecap:"round",strokeWidth:"2"})]})})}},3144:function(s,e,r){"use strict";r.d(e,{Z:function(){return t}});r(7294);var a=r(5893);function t(){return(0,a.jsxs)("svg",{className:"password-icon-input",xmlns:"http://www.w3.org/2000/svg",width:"14.385",height:"19.18",viewBox:"0 0 14.385 19.18",children:[(0,a.jsx)("path",{id:"Path_8","data-name":"Path 8",d:"M65.985,411.193h-1.2v-1.6a5.594,5.594,0,1,0-11.188,0v1.6H52.4a.4.4,0,0,0-.4.4v9.99a1.6,1.6,0,0,0,1.6,1.6H64.787a1.6,1.6,0,0,0,1.6-1.6v-9.99A.4.4,0,0,0,65.985,411.193Zm-5.6,8.347a.4.4,0,0,1-.4.444h-1.6a.4.4,0,0,1-.4-.444l.252-2.267a1.58,1.58,0,0,1-.654-1.285,1.6,1.6,0,0,1,3.2,0,1.58,1.58,0,0,1-.654,1.285Zm2-8.347H56v-1.6a3.2,3.2,0,1,1,6.393,0v1.6Z",transform:"translate(-52 -404)",fill:"#FFFFFF"}),(0,a.jsx)("path",{id:"Path_8","data-name":"Path 8",d:"M65.985,411.193h-1.2v-1.6a5.594,5.594,0,1,0-11.188,0v1.6H52.4a.4.4,0,0,0-.4.4v9.99a1.6,1.6,0,0,0,1.6,1.6H64.787a1.6,1.6,0,0,0,1.6-1.6v-9.99A.4.4,0,0,0,65.985,411.193Zm-5.6,8.347a.4.4,0,0,1-.4.444h-1.6a.4.4,0,0,1-.4-.444l.252-2.267a1.58,1.58,0,0,1-.654-1.285,1.6,1.6,0,0,1,3.2,0,1.58,1.58,0,0,1-.654,1.285Zm2-8.347H56v-1.6a3.2,3.2,0,1,1,6.393,0v1.6Z",transform:"translate(-52 -404)",fill:"#FFFFFF"})]})}},6608:function(s,e,r){"use strict";var a=r(7294),t=r(5893);e.Z=a.memo((function(s){var e=s.children;return(0,t.jsx)("div",{className:"anima-container-center-horizontal",children:(0,t.jsx)("div",{className:"dashboard anima-screen container-center-horizontal min-vh-100",children:e})})}))},5530:function(s,e,r){"use strict";r.r(e);var a=r(2809),t=r(7294),n=r(7536),o=r(1163),i=r(8834),c=r(9501),l=r(9249),d=r(5890),m=r(6608),u=r(8750),f=r(3144),p=r(5893);function h(s,e){var r=Object.keys(s);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(s);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable}))),r.push.apply(r,a)}return r}function v(s){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){(0,a.Z)(s,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(r,e))}))}return s}e.default=function(){var s,e,r,a=(0,o.useRouter)(),h=(0,t.useState)(!1),w=h[0],j=h[1],x=(0,t.useState)(!1),N=x[0],g=x[1],b=(0,t.useState)(!1),_=b[0],y=b[1],P=c.Ry().shape({old_password:c.Z_().required("Old password is required"),new_password:c.Z_().required("New password is required"),confirm_password:c.Z_().required("Confirm password is required")}),k={resolver:(0,i.X)(P)},O=(0,n.cI)(k),Z=O.register,F=O.handleSubmit,C=O.formState,S=C.errors;return(0,p.jsx)(m.Z,{children:(0,p.jsxs)("div",{className:"main-panel cus-profile-page",children:[(0,p.jsx)("div",{className:"back-button",onClick:function(){a.back()},children:(0,p.jsx)(u.Z,{})}),(0,p.jsx)("div",{className:"container text-center pt-5 pb-3",children:(0,p.jsx)("h4",{className:"pt-2",children:"Update Password"})}),(0,p.jsx)("div",{className:"title-border"}),(0,p.jsx)("div",{className:"container text-center pt-3 pb-5",children:(0,p.jsx)("div",{className:"row justify-content-center m-3",children:(0,p.jsx)("div",{className:"flex-container",children:(0,p.jsxs)("form",{className:"form-signup w-50",onSubmit:F((function(s){var e=s.old_password,r=s.new_password;if(r===s.confirm_password)return d.W4.updatePassword({oldPassword:e,newPassword:r}).then((function(s){var e=s.success,r=s.errorMessage;e?(l.Am.success("New password set!"),a.push("/profile")):l.Am.error(r)}));l.Am.error("Password does not match")})),autoComplete:"off",children:[(0,p.jsxs)("div",{className:"form-group position-relative",children:[(0,p.jsx)("div",{className:"form-control-icon-left",children:(0,p.jsx)(f.Z,{})}),(0,p.jsx)("input",v(v({name:"old_password",type:w?"text":"password",placeholder:"Current Password",autoFocus:!0},Z("old_password")),{},{className:"form-control"})),(0,p.jsx)("div",{onClick:function(){return j(!w)},className:"form-control-icon-right",children:w?(0,p.jsx)("i",{className:"fa-regular fa-eye"}):(0,p.jsx)("i",{className:"fa-regular fa-eye-slash"})}),(0,p.jsx)("div",{className:"form-validation",children:(0,p.jsx)("div",{className:"form-error-messages justify-content-start",children:null===(s=S.old_password)||void 0===s?void 0:s.message})})]}),(0,p.jsxs)("div",{className:"form-group position-relative",children:[(0,p.jsx)("div",{className:"form-control-icon-left",children:(0,p.jsx)(f.Z,{})}),(0,p.jsx)("input",v(v({name:"new_password",type:N?"text":"password",placeholder:"New Password"},Z("new_password")),{},{className:"form-control"})),(0,p.jsx)("div",{onClick:function(){return g(!N)},className:"form-control-icon-right",children:N?(0,p.jsx)("i",{className:"fa-regular fa-eye"}):(0,p.jsx)("i",{className:"fa-regular fa-eye-slash"})}),(0,p.jsx)("div",{className:"form-validation",children:(0,p.jsx)("div",{className:"form-error-messages justify-content-start",children:null===(e=S.new_password)||void 0===e?void 0:e.message})})]}),(0,p.jsxs)("div",{className:"form-group position-relative",children:[(0,p.jsx)("div",{className:"form-control-icon-left",children:(0,p.jsx)(f.Z,{})}),(0,p.jsx)("input",v(v({name:"confirm_password",type:_?"text":"password",placeholder:"Confirm Password",autoFocus:!0},Z("confirm_password")),{},{className:"form-control"})),(0,p.jsx)("div",{onClick:function(){return y(!_)},className:"form-control-icon-right",children:_?(0,p.jsx)("i",{className:"fa-regular fa-eye"}):(0,p.jsx)("i",{className:"fa-regular fa-eye-slash"})}),(0,p.jsx)("div",{className:"form-validation",children:(0,p.jsx)("div",{className:"form-error-messages justify-content-start",children:null===(r=S.confirm_password)||void 0===r?void 0:r.message})})]}),(0,p.jsx)("div",{className:"form-group mt-3 mb-5",children:(0,p.jsxs)("button",{disabled:C.isSubmitting,className:"btn btn-signup cus-btn-black w-100",children:[C.isSubmitting&&(0,p.jsx)("span",{className:"spinner-border spinner-border-sm mr-1"}),"Update Password"]})})]})})})})]})})}},6780:function(s,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/update-password",function(){return r(5530)}])}},function(s){s.O(0,[3752,9774,2888,179],(function(){return e=6780,s(s.s=e);var e}));var e=s.O();_N_E=e}]);
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.