1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5125],{26119:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/change-password",function(){return n(66083)}])},93224:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});let s={auth:"ÄÄng Nháºp / ÄÄng K\xfd",changePassword:"Äá»i Máºt Khẩu",crossMarketing:"Chương Tr\xecnh Marketing Ch\xe9o",dashboard:"Dashboard",dashboardAffiliate:"Dashboard Affiliate",feedback:"Feedback",mission:"Nhiá»m Vụ",notificationCenter:"Trung T\xe2m Th\xf4ng B\xe1o",payment:"Thanh To\xe1n",paymentSuccess:"Thanh To\xe1n Th\xe0nh C\xf4ng",policyAffiliate:"Ch\xednh S\xe1ch Affiliate",profile:"Th\xf4ng Tin Ngưá»i D\xf9ng",sampleContentAffiliate:"Mẫu Content Affiliate",study:"Kh\xf3a Há»c",suggestDevelopmentPlatform:"Gợi \xdd Ph\xe1t Triá»n Ná»n Tảng Affiliate",tutorial:"Hưá»ng Dẫn",upgrade:"N\xe2ng Cấp T\xe0i Khoản",yourTicket:"Trung T\xe2m Há» Trợ",registerFreeMentor:"ÄÄng K\xed Tham Gia Free Mentor",bookingFreeMentor:"Äặt Lá»ch Free Mentor",eLearningBundle:"E-Learning Bundle",freeSetup:"ÄÄng k\xfd Free Setup",freeMentor:"Äặt hẹn Free mentor",ambassadorOffer:"Ambassador Offer",historyEmail:"Lá»ch sá» email",home:"Trang chá»§",404:"404",blog:"Blog"}},15410:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var s=n(85893),r=n(91791),i=n(67294),o=n(85518);function a(){let[e,t]=(0,i.useState)(!1);(0,i.useEffect)(()=>{o.tq&&function(){if("undefined"==typeof navigator)return!1;let e=navigator.userAgent||navigator.vendor||window.opera;return/FBAN|FBAV|Instagram|Line|Zalo|ZaloWeb|TikTok|Bytedance|Messenger/i.test(e)}()&&(t(!0),document.body.style.overflow="hidden")},[]);let n=()=>{let e=window.location.href;if(o.Dt){let t="intent://".concat(e.replace(/^https?:\/\//,""),"#Intent;scheme=https;package=com.android.chrome;end");window.location.href=t}else o.gn?window.location.href="x-safari-".concat(e):window.open(e,"_blank")};return e?(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.1)",zIndex:9998,display:"flex",justifyContent:"center",alignItems:"center",backdropFilter:"blur(4px)",transition:"opacity 0.3s ease",pointerEvents:"none"}}),(0,s.jsxs)("div",{style:{position:"fixed",inset:0,backgroundColor:"#fff",zIndex:9999,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:24,textAlign:"center",height:"fit-content",top:"50%",transform:"translateY(-50%)",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.2)",borderRadius:16,overflow:"hidden",backdropFilter:"blur(10px)",width:"90vw",maxWidth:400,maxHeight:"500px",margin:"0 auto",color:"#111"},children:[(0,s.jsx)("img",{className:"max-w-[100px] object-contain",src:r.us,alt:"Logo",style:{width:"auto",height:60,marginBottom:16,borderRadius:0}}),(0,s.jsx)("h2",{style:{fontSize:24,marginBottom:12,lineHeight:1.2},children:"Trải nghiá»m tr\xean tr\xecnh duyá»t hiá»n tại chưa ÄÆ°á»£c tá»i ưu"}),(0,s.jsxs)("p",{style:{fontSize:16,marginBottom:24},children:["Vui l\xf2ng sá» dụng tr\xecnh duyá»t ",(0,s.jsx)("span",{className:"font-semibold",children:o.gn?"Safari":"Chrome"})," Äá» c\xf3 trải nghiá»m tá»t nhất vá» kh\xf3a há»c."]}),(0,s.jsx)("button",{onClick:n,className:"hd-regi-btn cursor-pointer active !block",children:(0,s.jsxs)("span",{className:"txt",children:["Tiếp tục vá»i ",o.gn?"Safari":"Chrome"]})})]})]}):null}},60673:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var s=n(85893),r=n(11163);n(67294);var i=n(26011),o=n(50552),a=n(78603),l=n(75851),c=n(5152),d=n.n(c),u=n(15410);let h=d()(()=>n.e(9077).then(n.bind(n,19077)).then(e=>null==e?void 0:e.Footer),{loadableGenerated:{webpack:()=>[19077]},ssr:!1}),f=e=>{let{children:t}=e,n=(0,r.useRouter)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.Z,{}),(0,s.jsxs)(i.p,{children:[(0,s.jsx)(l.h,{}),(0,s.jsx)("main",{className:"app-main main mt-[calc(var(--sz-hd)+2rem)]",children:(null==n?void 0:n.pathname.includes("auth"))||(null==n?void 0:n.pathname)=="/"||n.pathname.includes("home")?(0,s.jsx)(s.Fragment,{children:t}):(0,s.jsx)(a.r,{loading:null,persistor:o.Dj,children:t})}),(0,s.jsx)(h,{})]})]})};f.getLayout=e=>(0,s.jsx)(f,{children:e})},66083:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var s=n(85893),r=n(87536),i=n(16310),o=n(47533),a=n(88767),l=n(81957),c=n(28280),d=n(67294),u=n(95600),h=n(22920),f=n(99559),p=n(91791);let m=e=>{let{userInformation:t}=e,{isMobile:n}=(0,u.i)(),[m,x]=(0,d.useState)("password"),[g,b]=(0,d.useState)("eye-slash.svg"),v=()=>{"password"===m?x("text"):x("password"),"eye.svg"===g?b("eye-slash.svg"):b("eye.svg")},w=i.Ry({currentPassword:i.Z_().when([],()=>(null==t?void 0:t.need_update_password)!==!0?i.Z_().required("Máºt khẩu cÅ© l\xe0 bắt buá»c"):i.Z_().notRequired()),newPassword:i.Z_().required("Máºt khẩu l\xe0 bắt buá»c").min(8,"Máºt khẩu phải c\xf3 \xedt nhất 8 k\xfd tá»±").notOneOf([i.iH("currentPassword")],"Máºt khẩu má»i kh\xf4ng ÄÆ°á»£c giá»ng máºt khẩu cÅ©"),confirmPassword:i.Z_().oneOf([i.iH("newPassword")],"Máºt khẩu kh\xf4ng khá»p").required("Bạn cần nháºp lại máºt khẩu má»i")}).required(),{register:j,handleSubmit:y,formState:N,reset:k,setFocus:P}=(0,r.cI)({resolver:(0,o.X)(w)}),{errors:_}=N,T=(0,a.useQueryClient)(),{mutate:S,isLoading:C}=(0,a.useMutation)({mutationFn:async e=>(null==t?void 0:t.need_update_password)===!0?await l.SL.request(c.Wu,{password:null==e?void 0:e.newPassword}):await l.SL.request(c.oj,{currentPassword:null==e?void 0:e.currentPassword,newPassword:null==e?void 0:e.newPassword}),onSuccess(e){var t;k(),((null==e?void 0:null===(t=e.changeCustomerPassword)||void 0===t?void 0:t.email)||(null==e?void 0:e.createPassword)===!0)&&h.Am.success("Äá»i máºt khẩu th\xe0nh c\xf4ng"),T.refetchQueries(["DATA_USER"])}}),M=e=>{S(e)};return(0,d.useEffect)(()=>{P("currentPassword")},[P]),(0,s.jsx)(s.Fragment,{children:(null==t?void 0:t.email)===""?(0,s.jsx)(f.Z,{active:!0}):(0,s.jsxs)("form",{onSubmit:y(M),children:[(0,s.jsxs)("div",{className:"prf-form",children:[!n&&(0,s.jsx)("div",{className:"prf-left",children:(null==t?void 0:t.need_update_password)===!0?(0,s.jsx)("h2",{className:"prf-title",children:"Bá» sung máºt khẩu"}):(0,s.jsx)("h2",{className:"prf-title",children:"Thay Äá»i máºt khẩu"})}),(0,s.jsx)("div",{className:"prf-right",children:(0,s.jsxs)("div",{className:"f-list row",children:[(null==t?void 0:t.need_update_password)!==!0&&(0,s.jsxs)("div",{className:"f-item col",children:[(0,s.jsxs)("div",{className:"f-ip",children:[(0,s.jsx)("input",{type:m,...j("currentPassword"),placeholder:"Nháºp máºt khẩu hiá»n tại",className:"re-input",spellCheck:!1}),(0,s.jsx)("img",{onClick:v,src:p.PG+g,width:20,className:"icon c-filter-pri"}),(0,s.jsx)("span",{className:"f-label",children:"Máºt khẩu hiá»n tại:"})]}),_.currentPassword&&(0,s.jsx)("p",{className:"t12 c-error",children:_.currentPassword.message})]}),(0,s.jsxs)("div",{className:"f-item col",children:[(0,s.jsxs)("div",{className:"f-ip",children:[(0,s.jsx)("input",{type:m,...j("newPassword"),placeholder:"Nháºp máºt khẩu má»i",className:"re-input",spellCheck:!1}),(0,s.jsx)("img",{onClick:v,src:p.PG+g,width:20,className:"icon c-filter-pri"}),(0,s.jsx)("span",{className:"f-label",children:"Máºt khẩu má»i:"})]}),_.newPassword&&(0,s.jsx)("p",{className:"t12 c-error",children:_.newPassword.message})]}),(0,s.jsxs)("div",{className:"f-item col",children:[(0,s.jsxs)("div",{className:"f-ip",children:[(0,s.jsx)("input",{type:m,...j("confirmPassword"),placeholder:"X\xe1c nháºn máºt khẩu má»i",className:"re-input",spellCheck:!1}),(0,s.jsx)("img",{onClick:v,src:p.PG+g,width:20,className:"icon c-filter-pri"}),(0,s.jsx)("span",{className:"f-label",children:"X\xe1c nháºn máºt khẩu má»i:"})]}),_.confirmPassword&&(0,s.jsx)("p",{className:"t12 c-error",children:_.confirmPassword.message})]})]})})]}),C?(0,s.jsx)("div",{className:"btn --four btn-prf-sb form-btn",children:(0,s.jsx)("div",{className:"loading-custom --c-ln",children:(0,s.jsx)("span",{className:"loading-custom-inner"})})}):(0,s.jsx)("button",{className:"btn --four btn-prf-sb",type:"submit",children:(0,s.jsx)("span",{children:"Äá»I MẬT KHẨU"})})]})})};var x=n(66751),g=n(9473),b=n(50552),v=n(97577);let w=e=>{let{}=e,t=(0,g.v9)(b.eY),n=(0,g.v9)(v.RJ);return(0,s.jsx)("section",{className:"sec-prf",children:(0,s.jsx)("div",{className:"prf",children:(0,s.jsx)("div",{className:"relayout",children:(0,s.jsxs)("div",{className:"relayout-side row",children:[(0,s.jsx)("div",{className:"relayout-left col",children:(0,s.jsx)(x.Menu,{isLoggedIn:!1,classCustom:"mb-second",totalNewEmail:n})}),(0,s.jsx)("div",{className:"relayout-midle col",children:(0,s.jsxs)("div",{className:"relayout-container",children:[(0,s.jsx)("div",{className:"re-head --t-center",children:(null==t?void 0:t.need_update_password)===!0?(0,s.jsx)(x.TitleH1,{txt:"Bá» SUNG MẬT KHẨU"}):(0,s.jsx)(x.TitleH1,{txt:"THAY Äá»I MẬT KHẨU"})}),(0,s.jsx)("div",{className:"prf-main prf-change-pass",children:(0,s.jsx)("div",{className:"prf-block",children:(0,s.jsx)(m,{userInformation:t})})})]})}),(0,s.jsx)("div",{className:"relayout-right col"})]})})})})};var j=n(93224),y=n(60673);let N=()=>(0,s.jsx)(w,{});N.Layout=y.Z,N.displayName=j.q.changePassword;var k=N},78603:function(e,t,n){"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}
1function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{r:function(){return c}});var c=function(e){var t;function n(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n);for(var e,t,r,a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];return r=(e=(t=i(n)).call.apply(t,[this].concat(c)))&&("object"===s(e)||"function"==typeof e)?e:o(this),l(o(r),"state",{bootstrapped:!1}),l(o(r),"_unsubscribe",void 0),l(o(r),"handlePersistorState",function(){r.props.persistor.getState().bootstrapped&&(r.props.onBeforeLift?Promise.resolve(r.props.onBeforeLift()).finally(function(){return r.setState({bootstrapped:!0})}):r.setState({bootstrapped:!0}),r._unsubscribe&&r._unsubscribe())}),r}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e),r(n.prototype,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t&&r(n,t),n}(n(67294).PureComponent);l(c,"defaultProps",{children:null,loading:null})}},function(e){e.O(0,[296,5443,571,4090,2196,9679,4382,69,9052,6692,2117,6011,5851,9774,2888,179],function(){return e(e.s=26119)}),_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.