PageSourceSearch

https://melisoft.vn/_next/static/chunks/pages/users/verify-otp-acd8e1b71a1c5732.js

js melisoft.vn collected 2026-10-08 16:57:00 UTC 12,160 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6353],{71961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(79686))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},74253:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;t.Z=void 0;var i=o(r(10434)),s=o(r(38416)),a=o(r(93967)),c=n(r(67294)),l=r(31929);o(r(13594));var __rest=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};t.Z=function(e){var t=c.useContext(l.ConfigContext),r=t.getPrefixCls,n=t.direction,o=e.prefixCls,u=e.type,d=void 0===u?"horizontal":u,h=e.orientation,f=void 0===h?"center":h,_=e.orientationMargin,p=e.className,g=e.children,m=e.dashed,x=e.plain,v=__rest(e,["prefixCls","type","orientation","orientationMargin","className","children","dashed","plain"]),y=r("divider",o),j=f.length>0?"-".concat(f):f,S=!!g,w="left"===f&&null!=_,k="right"===f&&null!=_,L=(0,a.default)(y,"".concat(y,"-").concat(d),(0,s.default)((0,s.default)((0,s.default)((0,s.default)((0,s.default)((0,s.default)((0,s.default)({},"".concat(y,"-with-text"),S),"".concat(y,"-with-text").concat(j),S),"".concat(y,"-dashed"),!!m),"".concat(y,"-plain"),!!x),"".concat(y,"-rtl"),"rtl"===n),"".concat(y,"-no-default-orientation-margin-left"),w),"".concat(y,"-no-default-orientation-margin-right"),k),p),N=(0,i.default)((0,i.default)({},w&&{marginLeft:_}),k&&{marginRight:_});return c.createElement("div",(0,i.default)({className:L},v,{role:"separator"}),g&&"vertical"!==d&&c.createElement("span",{className:"".concat(y,"-inner-text"),style:N},g))}},5421:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/users/verify-otp",function(){return r(46519)}])},47310:function(e,t,r){"use strict";r.d(t,{u:function(){return HDiv}});var n=r(85893);let HDiv=e=>{let{children:t,onClick:r,...o}=e;return(0,n.jsx)("div",{className:"h-div-container",onClick:r,style:{display:"flex",flexDirection:"column",...o},children:t})}},80438:function(e,t,r){"use strict";r.d(t,{cg:function(){return HDivider}});var n=r(85893),o=r(74253),i=r(93967),s=r.n(i),a=r(66413),c=r.n(a);let HDivider=e=>{let{children:t,color:r,thickness:i,marginTop:a,marginBottom:l,dashed:u,width:d}=e;return(0,n.jsx)(o.Z,{className:s()({[c()["color-".concat(r)]]:!!r,[c()["thickness-".concat(i)]]:!!i}),style:{marginTop:a,marginBottom:l,width:d},dashed:u,children:t})};t.ZP=HDivider},41340:function(e,t,r){"use strict";r.d(t,{I:function(){return HParagraph}});var n=r(85893),o=r(53740),i=r(93967),s=r.n(i),a=r(35733),c=r.n(a);let{Paragraph:l}=o.default,HParagraph=e=>{let{children:t,color:r,fontSize:o,copyable:i,semiStrong:a,upperCase:u,style:d={},superStrong:h,...f}=e;return(0,n.jsx)(l,{className:s()({[c()["color-".concat(r)]]:!!r,[c().semistrong]:!!a,[c().uppercase]:!!u,[c().superstrong]:!!h}),copyable:i,style:{...d,fontSize:o},...f,children:t})}},46252:function(e,t,r){"use strict";r.d(t,{j:function(){return HText}});var n=r(85893),o=r(53740),i=r(93967),s=r.n(i),a=r(35733),c=r.n(a);let{Text:l}=o.default,HText=e=>{let{children:t,color:r,fontSize:o,strong:i,italic:a,underline:u,align:d,transform:h,ellipsis:f,onClick:_,style:p={}}=e;return(0,n.jsx)(l,{className:s()({[c()["color-".concat(r)]]:!!r}),style:{...p,fontSize:o,textAlign:d,textTransform:h,cursor:_?"pointer":"inherit"},strong:i,italic:a,underline:u,ellipsis:f,onClick:_,children:t})}},17775:function(e,t,r){"use strict";r.d(t,{r:function(){return Link}});var n=r(85893);r(67294);var o=r(41664),i=r.n(o),s=r(93967),a=r.n(s),c=r(20402);let Link=e=>{let{children:t,containerClassName:r="",childrenStyle:o,className:s,ariaLabel:l}=e||{},u=c.M.getCurrentCountry();return(0,n.jsx)("span",{className:a()("clickable-opacity",r),children:(0,n.jsx)(i(),{...e,locale:u,href:e.href,passHref:!0,legacyBehavior:!0,children:(0,n.jsx)("a",{style:o,hrefLang:u,"aria-label":l,className:s,children:t})})})}},36463:function(e,t,r){"use strict";var n=r(85893);r(67294);var o=r(80708);t.Z=e=>{let{name:t,width:r,height:i,cacheRequests:s=!0,...a}=e;return(r||i)&&t?(0,n.jsx)(o.Z,{loader:(0,n.jsx)("div",{style:{width:r,height:i}}),...a,cacheRequests:s,width:r,height:i,src:"/assets/svgs/".concat(t,".svg"),fetchOptions:{headers:{"Cache-Control":"public, max-age=86400, must-revalidate"}}}):(0,n.jsx)(n.Fragment,{})}},43418:function(e,t,r){"use strict";r.d(t,{D:function(){return ClientMainLogo},H:function(){return AdminLogo}});
1var n=r(85893),o=r(36463);let AdminLogo=()=>(0,n.jsx)("div",{className:"admin-logo",children:(0,n.jsx)(o.Z,{name:"melisoft",height:55})}),ClientMainLogo=e=>{let{height:t=56.04,...r}=e;return(0,n.jsx)(o.Z,{...r,stroke:"transparent",color:"white",name:"logo-with-text",height:t})}},95621:function(e,t,r){"use strict";r.d(t,{O:function(){return AuthenticationUserLayout},Z:function(){return p}});var n=r(85893),o=r(13850),i=r(5789),s=r(55673),a=r(93967),c=r.n(a),l=r(43418),u=r(10816),d=r(46252),h=r(17775),f=r(73885),_=r.n(f);let AuthenticationPanel=e=>{let{children:t}=e,r=(0,u.Oh)();return(0,n.jsxs)(s.Z,{gutter:[0,24],className:_()["authentication-panel"],children:[(0,n.jsxs)(i.Z,{xs:24,sm:24,md:12,className:c()(_()["side-wrapper"],_()["left-side"]),children:[(0,n.jsx)(h.r,{href:"/",children:(0,n.jsx)("span",{className:_().logo,children:(0,n.jsx)(l.D,{})})}),(0,n.jsx)("div",{className:_()["children-form-wrapper"],children:t})]}),(0,n.jsx)(i.Z,{xs:24,sm:24,md:12,className:c()(_()["side-wrapper"],_()["right-side"]),children:(0,n.jsx)(h.r,{href:"/",children:(0,n.jsx)("span",{className:_()["logo-text"],children:(0,n.jsx)(d.j,{color:"white",strong:!0,fontSize:r?24:14,children:"Realbox.io"})})})})]})},AuthenticationUserLayout=e=>{let{children:t}=e;return(0,o.$Y)("authentication-user"),(0,n.jsx)("div",{className:"ui-authentication-layout",children:(0,n.jsx)("div",{className:"ui-authentication-layout-children-wrap",children:(0,n.jsx)(AuthenticationPanel,{children:t})})})};var p=AuthenticationUserLayout},8902:function(e,t,r){"use strict";r.d(t,{$g:function(){return useOnLoginWithVerifySuccess},Sh:function(){return useOnLoginSuccess},U1:function(){return useSetCookieAuthentication}});var n=r(36808),o=r.n(n),i=r(11163),s=r(14416),a=r(78382),c=r(25449),l=r(92010);let useSetCookieAuthentication=()=>{let{setAuthenticated:e,setCurrentUser:t,setToken:r,setUserPermissions:n}=(0,a.aC)(),o=(0,s.I0)();return async i=>{let{user:s,accessToken:a,permissions:u=[]}=i||{};(0,c.U)(i,()=>{e(!0),t(s),r(a),n(u),o((0,l.qw)({permissions:u}))})}},useOnLoginSuccess=()=>{let{query:e}=(0,i.useRouter)(),t=useSetCookieAuthentication();return async r=>{await t(r);let n=e.redirect||"/";window.location.href=n}},useOnLoginWithVerifySuccess=()=>{let e=useOnLoginSuccess(),{push:t}=(0,i.useRouter)();return r=>{let{user:n,accessToken:i}=r;if(null==n?void 0:n.enabled2fa){o().set("h2LoginToken",i),t("/users/verify-otp");return}e(r)}}},10816:function(e,t,r){"use strict";r.d(t,{FD:function(){return useXlScreen},JZ:function(){return useSmScreen},Oh:function(){return useMdScreen}});var n=r(67294);let o={sm:576,md:820,lg:992,xl:1200,xxl:1600},useMediaQuery=e=>{let[t,r]=(0,n.useState)(!1),o=(0,n.useCallback)(e=>{e.matches?r(!0):r(!1)},[]);return(0,n.useEffect)(()=>{let t=window.matchMedia("(min-width: ".concat(e,"px)"));return t.addEventListener?t.addEventListener("change",o):t.addListener&&t.addListener(o),t.matches&&r(!0),()=>{t.removeEventListener?t.removeEventListener("change",o):t.removeListener&&t.removeListener(o)}},[]),t},useScreen=e=>useMediaQuery(o[e]),useSmScreen=()=>useScreen("sm"),useMdScreen=()=>useScreen("md"),useXlScreen=()=>useScreen("xl")},20402:function(e,t,r){"use strict";r.d(t,{M:function(){return o}});var n=r(11163);let o={getCurrentCountry:()=>{let{locale:e,locales:t,defaultLocale:r}=(0,n.useRouter)();return e||"en"},getCurrentLanguage:()=>{let{locale:e,locales:t,defaultLocale:r}=(0,n.useRouter)();return e||"en"},allCountries:["vn","en"],removeAccents:e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/đ/g,"d").replace(/Đ/g,"D")}},25449:function(e,t,r){"use strict";r.d(t,{U:function(){return onLoginSuccess}});var n=r(36808),o=r.n(n);let onLoginSuccess=(e,t)=>{let{user:r,accessToken:n,refreshToken:i,expiresIn:s=0}=e||{},a=new Date().getTime(),c=a+parseInt("".concat((s-60)*1e3));o().set("h2token",n),o().set("refreshToken",i),o().set("expiresIn",s),o().set("expiredAt","".concat(c)),o().set("h2user",JSON.stringify(r||"{}")),t&&t()}},46519:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return v},default:function(){return y}});var n=r(85893);r(67294);var o=r(95621),i=r(69470),s=r(36808),a=r.n(s),c=r(23200),l=r(10816),u=r(41340),d=r(47310),h=r(17775),f=r(80438),_=r(3957),p=r.n(_),g=r(51024),m=r(77937);let VerifyOtpSchema=e=>{let{t}=(0,i.$G)("translation");return[(0,m.VX)({Component:g.default,name:"otp",rowProps:{gutter:[{xs:15,md:20},{xs:15,md:20}]},colProps:{span:24},rules:[{required:!0,message:t("formErrorMessage.otp.required")}],componentProps:{placeholder:t("user.securityCode")}})]};var x=r(8902),verify_otp=()=>{let{t:e}=(0,i.$G)("translation"),t=(0,l.Oh)(),r=(0,x.Sh)();return(0,n.jsxs)("div",{className:p()["verify-otp"],children:[(0,n.jsx)(d.u,{marginBottom:t?15:20,children:(0,n.jsx)(u.I,{fontSize:t?40:24,semiStrong:!0,children:e("user.twoFactorAuthentication")})}),(0,n.jsx)(d.u,{marginBottom:t?20:15,children:(0,n.jsx)(u.I,{color:"lighter",fontSize:14,children:e("user.enterTheSecurityCodeSendToYourGoogleAuthenticationApp")})}),(0,n.jsx)(c._p,{nodeName:"verify-otp-authenticator",method:"post",schema:VerifyOtpSchema,hiddenValues:{token:a().get("h2LoginToken")},onGotSuccess:r,summitButtonStyleFull:!0,submitButtonLabel:e("user.verify"),errorMessage:e=>{let{error:t}=e;return{message:null==t?void 0:t.message}}}),(0,n.jsxs)("div",{className:p().footer,children:[(0,n.jsxs)(u.I,{color:"lighter",fontSize:12,children:[e("user.cantReceiveYourCode"),(0,n.jsx)("br",{}),"".concat(e("user.please")," "),(0,n.jsx)(h.r,{href:"/contact-us",children:e("user.ContactUs")})," ".concat(e("user.ifYoureLockedOut"))]}),(0,n.jsx)(f.ZP,{marginTop:t?25:20,marginBottom:t?20:15,color:"lighter"}),(0,n.jsx)("span",{className:p().cancel,children:(0,n.jsx)(h.r,{href:"/",children:e("user.cancel")})})]})]})};let VerifyOtpPage=e=>
1(0,n.jsx)(verify_otp,{...e});VerifyOtpPage.Layout=o.O;var v=!0,y=VerifyOtpPage},66413:function(e){e.exports={"color-lighter":"h-divider_color-lighter__pXaYv","color-darker":"h-divider_color-darker__i861s","color-bold":"h-divider_color-bold__W_rid","thickness-2":"h-divider_thickness-2__c5_lA","thickness-3":"h-divider_thickness-3__3P6k5"}},35733:function(e){e.exports={"color-base":"h-text_color-base__a2hN9","color-dark":"h-text_color-dark__6PXk3","color-darker":"h-text_color-darker__D4u8Z","color-light":"h-text_color-light__3E9VN","color-lighter":"h-text_color-lighter__7ewLn","color-lightest":"h-text_color-lightest__cXMsl","color-success":"h-text_color-success__MLVu6","color-danger":"h-text_color-danger__i9wSb","color-info":"h-text_color-info__JL1S8","color-primary":"h-text_color-primary__7n0yN","color-secondary":"h-text_color-secondary__ctYtd","color-white":"h-text_color-white__R5kOv","color-link":"h-text_color-link___RdB0",uppercase:"h-text_uppercase__i7QbN",semistrong:"h-text_semistrong__YTBx2",superstrong:"h-text_superstrong__oi4kx"}},73885:function(e){e.exports={"authentication-panel":"authentication-panel_authentication-panel__AQk5g","children-form-wrapper":"authentication-panel_children-form-wrapper__ZuomO","side-wrapper":"authentication-panel_side-wrapper__K4JJH","left-side":"authentication-panel_left-side__p6OdM","right-side":"authentication-panel_right-side__lVUgO",logo:"authentication-panel_logo__XCGlD","logo-text":"authentication-panel_logo-text__yu5M1"}},3957:function(e){e.exports={"verify-otp":"verify-otp_verify-otp__hTexc",footer:"verify-otp_footer__vrpU_",cancel:"verify-otp_cancel__sHhhq"}}},function(e){e.O(0,[3740,1214,1664,9774,2888,179],function(){return e(e.s=5421)}),_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.