1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[465],{49938:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/change-pin",function(){return t(12159)}])},20250:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var s=t(64529),r=t(72673);let i=e=>{let{locale_ID:n,user_token:t,current_password:s,password:i,password_confirmation:a}=e;return(0,r.v)("/auth/change-password",{locale_ID:n,user_token:t,current_password:s,password:i,password_confirmation:a},"normal")},a=e=>{let{locale_ID:n,user_token:t,current_pin:s,new_pin:i,new_pin_confirmation:a}=e;return(0,r.v)("/auth/reset-pin",{locale_ID:n,user_token:t,current_pin:s,new_pin:i,new_pin_confirmation:a},"normal")},c=(0,s.Ue)((e,n)=>({changePassword:async(e,n,t)=>{let s=await i({locale_ID:e,user_token:n,current_password:t.current_password,password:t.password,password_confirmation:t.password_confirmation});return!1!=s},changePin:async(e,n,t)=>{let s=await a({locale_ID:e,user_token:n,current_pin:t.current_pin,new_pin:t.new_pin,new_pin_confirmation:t.new_pin_confirmation});return!1!=s}}));var o=c},12159:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return y}});var s=t(85893),r=t(65520),i=t(45360),a=t(71230),c=t(15746),o=t(38289),l=t(83622),p=t(85973),u=t(28783),d=t(41664),_=t.n(d),m=t(67294),h=t(20250),w=t(11163),f=t(47662);t(63311);var x=t(9008),j=t.n(x);let v=e=>{let{cmsContentData:n}=e,t=(0,p.q)(),d=(0,w.useRouter)(),{userInfo:x}=(0,f.a)(),[v,y]=(0,m.useState)(!1),[g]=r.Z.useForm(),{changePin:Z}=(0,h.Z)(e=>({changePin:e.changePin})),N=async e=>{y("changePin");let n=await Z(d.locale,x.access_token,e);
1n&&(i.ZP.success(t("change_pin_success")),g.resetFields()),y("false")};return(0,s.jsxs)(s.Fragment,{children:[n&&(0,s.jsxs)(j(),{children:[(null==n?void 0:n.cms_seo_title)&&(0,s.jsx)("title",{children:null==n?void 0:n.cms_seo_title}),(null==n?void 0:n.cms_seo_description)&&(0,s.jsx)("meta",{name:"description",content:null==n?void 0:n.cms_seo_description}),(null==n?void 0:n.cms_seo_robots)&&(0,s.jsx)("meta",{name:"robots",content:null==n?void 0:n.cms_seo_robots}),(null==n?void 0:n.cms_seo_keywords)&&(0,s.jsx)("meta",{name:"keywords",content:null==n?void 0:n.cms_seo_keywords}),(null==n?void 0:n.cms_seo_title)&&(0,s.jsx)("meta",{property:"og:title",content:null==n?void 0:n.cms_seo_title}),(null==n?void 0:n.cms_seo_description)&&(0,s.jsx)("meta",{property:"og:description",content:null==n?void 0:n.cms_seo_description})]}),(0,s.jsxs)(a.Z,{className:"py-3",children:[(0,s.jsxs)(c.Z,{span:24,className:"text-white text-[22px] font-semibold flex justify-center mt-3 mb-6",children:[t("change-pin"),(0,s.jsx)(_(),{prefetch:!1,href:"/profile",children:(0,s.jsx)(u.Z,{type:"icon-arrow-left",className:"text-white absolute text-[16px] top-[5px] left-[13px]"})})]}),(0,s.jsx)(c.Z,{span:24,className:"text-white flex justify-center mb-5",children:t("enter-new-pin")}),(0,s.jsx)(c.Z,{span:24,children:(0,s.jsxs)(r.Z,{layout:"vertical",onFinish:N,form:g,children:[(0,s.jsx)(r.Z.Item,{label:t("current_pin"),name:"current_pin",rules:[{required:!0}],className:"capitalize",children:(0,s.jsx)(o.Z.OTP,{formatter:e=>e.replace(/\D/g,""),inputMode:"numeric",type:"password",pattern:"\\d*"})}),(0,s.jsx)(r.Z.Item,{label:t("new_pin"),name:"new_pin",rules:[{required:!0}],className:"capitalize",children:(0,s.jsx)(o.Z.OTP,{formatter:e=>e.replace(/\D/g,""),inputMode:"numeric",type:"password",pattern:"\\d*"})}),(0,s.jsx)(r.Z.Item,{label:t("new_pin_confirmation"),name:"new_pin_confirmation",rules:[{required:!0}],className:"capitalize",children:(0,s.jsx)(o.Z.OTP,{formatter:e=>e.replace(/\D/g,""),inputMode:"numeric",type:"password",pattern:"\\d*"})}),(0,s.jsx)(r.Z.Item,{children:(0,s.jsx)(l.ZP,{type:"primary",size:"large",htmlType:"submit",className:"w-full h-full p-3 capitalize",loading:"changePassword"==v,children:t("Next")})})]})})]})]})};var y=!0;n.default=v},63311:function(e,n,t){"use strict";t(72673)}},function(e){e.O(0,[774,888,179],function(){return e(e.s=49938)}),_N_E=e.O()}]);
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.