PageSourceSearch

https://btani.edu.vn/learn/_next/static/chunks/pages/change-password-94ed6f853544faef.js

js btani.edu.vn collected 2026-10-08 11:29:39 UTC 11,829 bytes, 1 lines download raw bytes

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.