1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[159],{"0tHD":function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/change-password",function(){return t("PWAl")}])},BOF4:function(e,a,t){"use strict";var s=t("evrj");function n(e){this.message=e}n.prototype=new Error,n.prototype.name="InvalidTokenError",e.exports=function(e,a){if("string"!==typeof e)throw new n("Invalid token specified");var t=!0===(a=a||{}).header?0:1;try{return JSON.parse(s(e.split(".")[t]))}catch(o){throw new n("Invalid token specified: "+o.message)}},e.exports.InvalidTokenError=n},PWAl:function(e,a,t){"use strict";t.r(a);var s=t("q1tI"),n=t.n(s),o=t("CafY"),l=t("BOF4"),c=t.n(l),r=t("nOHt"),i=t("yzAy"),d=t("4JyM"),m=t("s02U"),u=n.a.createElement,p=function(e){e.t,e.loading,e.setLodding;var a=Object(r.useRouter)().query.token;return u(n.a.Fragment,null,u("div",{className:"cancel-product "},u("form",{id:"forgot-form",onSubmit:function(e){var a=new FormData(e.target);e.preventDefault();var t=m.a.toJson(a);document.getElementById("password").value==document.getElementById("confirm_password").value?i.a.changePassword(t).then((function(e){e.data;d.Router.push("/login?success=true")})).catch((function(e){console.log(e.response)})):alert("\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48 \u0e41\u0e25\u0e30 \u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48 \u0e44\u0e21\u0e48\u0e15\u0e23\u0e07\u0e01\u0e31\u0e19")}},u("div",{className:"container"},u("input",{type:"hidden",name:"token",defaultValue:a||"",className:"form-control",id:"token"}),u(d.Link,{href:"/login"},u("img",{className:"img-fluid my-auto on-left",src:"/mobile/image/icon/icon-back.svg"})),u("h2",{className:"text-black "},"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19"),u("p",{className:"text-black "},"\u0e1a\u0e31\u0e0d\u0e0a\u0e35 \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e04\u0e37\u0e2d ",function(){try{return c()(a).email}catch(e){return null}}()," ",u("br",null),"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e23\u0e30\u0e1a\u0e38\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19"),u("div",{className:"info-creditcard-100 mt-3 mb-4"},u("input",{className:"effect-16",type:"password",id:"password",name:"password",placeholder:"",required:!0,minLength:"8",maxLength:"16",pattern:"(?=^.{8,}$)((?=.*\\d)|(?=.*\\W+))(?![.\\n])(?=.*[A-Z])(?=.*[a-z]).*$"}),u("label",null,"\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48",u("span",null,"*")),u("span",{className:"focus-border"})),u("div",{className:"info-creditcard-100 mt-3"},u("input",{className:"effect-16",type:"password",id:"confirm_password",name:"confirm_password",placeholder:"",required:!0,minLength:"8",maxLength:"16",pattern:"(?=^.{8,}$)((?=.*\\d)|(?=.*\\W+))(?![.\\n])(?=.*[A-Z])(?=.*[a-z]).*$"}),u("label",null,"\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48",u("span",null,"*")),u("span",{className:"focus-border"})),u("div",null,u("p",{className:"font-14"},"\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e17\u0e31\u0e49\u0e07\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e41\u0e25\u0e30\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23 8 - 16 \u0e15\u0e31\u0e27")),u("div",{className:"mt-3 pt-2"},u("button",{type:"submit",className:"btn btn-pink-submit h-40px mb-3"},u("h4",{className:"text-white m-auto "},"\u0e23\u0e35\u0e40\u0e0b\u0e47\u0e15\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19")))))))},f=t("ODXe"),g=n.a.createElement,v=function(e){var a=e.t,t=(e.loading,e.setLodding,Object(r.useRouter)().query.token);Object(s.useEffect)((function(){document.getElementsByClassName("main-layout")[0]&&(document.getElementsByClassName("main-layout")[0].style.backgroundColor="#F2F2F2")}),[]),Object(s.useEffect)((function(){$("#modal-success").on("hidden.bs.modal",(function(e){$("#modal-success").modal("hide"),setTimeout((function(){d.Router.push("/login?success=true")}),200)}))}),[]);var o=n.a.useState(["icon-hide-password.svg"]),l=Object(f.a)(o,2),u=(l[0],l[1],n.a.useState(["icon-hide-password.svg"])),p=Object(f.a)(u,2),v=p[0],w=p[1],N=n.a.useState(["icon-hide-password.svg"]),h=Object(f.a)(N,2),b=h[0],y=h[1];return g(n.a.Fragment,null,g("div",{className:"container"},g("div",{className:"row mb-4"},g("div",{className:"col-12"},g("div",{className:"text-center"},g("h3",null,"\u0e25\u0e37\u0e21\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48?")))),g("div",{className:"row justify-content-center"},g("div",{className:"col-xl-10 col-12 bg bg-white"},g("div",{className:"row mx-0 justify-content-center"},g("div",{className:"col-xl-10 col-12 px-0 mx-0"},g("form",{id:"forgot-form",onSubmit:function(e){var a=new FormData(e.target);e.preventDefault();var t=m.a.toJson(a);$("#password").val()==$("#confirm_password").val()?i.a.changePassword(t).then((function(e){e.data;
1$("#modal-success").modal("toggle")})).catch((function(e){console.log(e.response)})):alert("\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48 \u0e41\u0e25\u0e30 \u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48 \u0e44\u0e21\u0e48\u0e15\u0e23\u0e07\u0e01\u0e31\u0e19")}},g("div",{className:"row justify-content-center mx-0 px-0"},g("div",{className:"col-xl-12 col-12 mx-0 px-0"},g("div",{className:"text-center"},g("h4",null,"\u0e1a\u0e31\u0e0d\u0e0a\u0e35 \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e04\u0e37\u0e2d ",g("span",{className:"text-transform-none"},function(){try{return c()(t).email}catch(e){return""}}()," "),"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e23\u0e30\u0e1a\u0e38\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19")))),g("div",{className:"row justify-content-center mx-0 px-0"},g("div",{className:"col-xl-6 col-12 d-flex"},g("div",{className:"w-100"},g("div",{className:"form-group"},g("input",{type:"hidden",name:"token",defaultValue:t||"",className:"form-control",id:"token"}))))),g("div",{className:"row justify-content-center mx-0 px-0"},g("div",{className:"col-xl-6 col-lg-8 col-md-8 col-12 d-flex"},g("div",{className:"w-100"},g("div",{className:"form-group"},g("label",null,"\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48 ",g("span",{className:"text-pink"},"*")),g("div",{className:"position-relative"},g("input",{type:"password",id:"password",className:"form-control",name:"password",placeholder:a("placeholder_changepasswordfill"),minLength:"8",maxLength:"16",required:!0,pattern:"(?=^.{8,}$)((?=.*\\d)|(?=.*\\W+))(?![.\\n])(?=.*[A-Z])(?=.*[a-z]).*$"}),g("label",{className:"font-14"},"\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\u0e14\u0e49\u0e27\u0e22\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e41\u0e25\u0e30\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e40\u0e25\u0e47\u0e01\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e43\u0e2b\u0e0d\u0e48 8 - 16 \u0e15\u0e31\u0e27"),g("img",{src:"/icon/".concat(v),id:"toggle-password",alt:"",className:"toggle-password",onClick:function(){var e=document.getElementById("password");"password"===e.type?(e.type="text",w("icon-show-password.svg")):(e.type="password",w("icon-hide-password.svg"))}})))))),g("div",{className:"row justify-content-center mx-0 px-0"},g("div",{className:"col-xl-6 col-lg-8 col-md-8 col-12 d-flex"},g("div",{className:"w-100"},g("div",{className:"form-group"},g("label",null,"\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e43\u0e2b\u0e21\u0e48 ",g("span",{className:"text-pink"},"*")),g("div",{className:"position-relative"},g("input",{type:"password",id:"confirm_password",className:"form-control",name:"confirm_password",placeholder:a("placeholder_changepasswordfill"),minLength:"8",maxLength:"16",required:!0,pattern:"(?=^.{8,}$)((?=.*\\d)|(?=.*\\W+))(?![.\\n])(?=.*[A-Z])(?=.*[a-z]).*$"}),g("img",{src:"/icon/".concat(b),id:"toggle-password",alt:"",className:"toggle-password",onClick:function(){var e=document.getElementById("confirm_password");"password"===e.type?(e.type="text",y("icon-show-password.svg")):(e.type="password",y("icon-hide-password.svg"))}})))))),g("div",{className:"row justify-content-center mx-0 px-0 mt-4"},g("div",{className:"col-xl-6 col-lg-8 col-md-8 col-12"},g("div",null,g("div",{className:""},g("button",{className:"btn btn-primary w-100",type:"submit"},"\u0e23\u0e35\u0e40\u0e0b\u0e47\u0e15\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19"))))))))))),g("div",{className:"modal fade",id:"modal-success",tabIndex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true"},g("div",{className:"modal-dialog modal-dialog-centered",role:"document"},g("div",{className:"modal-content default-radius"},g("div",{claclassNames:"modal-body"},g("div",{className:"text-center py-5"},g("div",null,g("img",{src:"/icon/lock.svg",alt:"",className:""})),g("div",{className:"mt-4"},g("h4",{className:"text-pink"},"\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e41\u0e25\u0e49\u0e27")),g("div",{className:"mt-4"},g("p",null,"\u0e22\u0e34\u0e19\u0e14\u0e35\u0e15\u0e49\u0e2d\u0e19\u0e23\u0e3
11\u0e1a\u0e2a\u0e39\u0e48 CHULABOOK \u0e01\u0e25\u0e31\u0e1a\u0e44\u0e1b\u0e2b\u0e19\u0e49\u0e32\u0e2b\u0e25\u0e31\u0e01")),g("div",{className:"mt-5"},g("button",{type:"button",className:"btn btn-primary",onClick:function(){$("#modal-success").modal("hide"),setTimeout((function(){d.Router.push("/login?success=true")}),200)}},"\u0e15\u0e01\u0e25\u0e07"))))))),g("div",{className:"end-page"}))},w=t("pAy3"),N=n.a.createElement;a.default=Object(d.withTranslation)(["translations","mobile_translations"])((function(e){var a=e.t;Object(s.useEffect)((function(){document.getElementsByClassName("main-layout")[0]&&(document.getElementsByClassName("main-layout")[0].style.backgroundColor="#F2F2F2")}),[]);var t=Object(w.a)(992);return N(o.a,{className:"mb-5",title:"User | Change Password"},N(t?p:v,{t:a}))}))},evrj:function(e,a,t){var s=t("m4GZ");e.exports=function(e){var a=e.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(s(e).replace(/(.)/g,(function(e,a){var t=a.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(a)}catch(t){return s(a)}}},m4GZ:function(e,a){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function s(e){this.message=e}s.prototype=new Error,s.prototype.name="InvalidCharacterError",e.exports="undefined"!==typeof window&&window.atob&&window.atob.bind(window)||function(e){var a=String(e).replace(/=+$/,"");if(a.length%4==1)throw new s("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,l=0,c=0,r="";o=a.charAt(c++);~o&&(n=l%4?64*n+o:o,l++%4)?r+=String.fromCharCode(255&n>>(-2*l&6)):0)o=t.indexOf(o);return r}}},[["0tHD",0,2,1,3,5,4,6,7,8,9,10]]]);
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.