PageSourceSearch

http://www.shippop.com/_next/static/chunks/pages/login-4b106bcd09dbee8b1fec.js

js shippop.com collected 2026-10-02 03:38:28 UTC 15,525 bytes, 2 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[64],{O2ls:function(e,a,t){"use strict";t.r(a),t.d(a,"__N_SSP",(function(){return E}));var o=t("HALo"),r=t("q1tI"),i=t.n(r),n=t("kAHO"),s=t("1otr"),l=t("tr08"),c=t("lopY"),u=t("tRbT"),g=t("r9w1"),p=t("7SZd"),m=t("PsDL"),d=t("hlie"),_=t("I5UH"),f=t("aDE8"),b=t("5DBG"),w=t("BGAD"),N=t("8kWZ"),h=t("NKCw"),v=t("vDqi"),L=t.n(v),k=t("mOvS"),y=t.n(k),S=t("ZiQX"),O=t("pzzh"),j=t("VhrB"),B=t("20a2"),C=t("xm5f"),H=t("iuhU"),P=t("s0CE"),R=t.n(P),x=t("AmVM"),I=i.a.createElement,T=y()().publicRuntimeConfig,E=!0;a.default=function(e){var a=e.previousPath,t=e.isNew,v=Object(r.useState)(!1),k=v[0],y=v[1],P=Object(r.useState)(!1),E=P[0],D=P[1],U=Object(r.useState)(!1),W=U[0],A=U[1],M=Object(r.useState)(!1),q=M[0],F=M[1],G=Object(r.useState)("personal"),Q=G[0],X=G[1],z=Object(N.a)(),V=Object(r.useContext)(x.a).onRouting,Z=Object(h.b)(),J=Z.register,K=Z.handleSubmit,Y=Z.errors,$=Z.watch,ee=Object(O.a)(),ae=ee.renderSnackBar,te=ee.displaySnackBar,oe=Object(l.a)(),re=Object(c.a)(oe.breakpoints.down("sm")),ie=Object(C.b)("login-signup").t,ne=Object(B.useRouter)();Object(r.useEffect)((function(){localStorage.getItem("shp_user")&&(D(!0),te("info",ie("already-logged-in")),V("/"))}),[]),Object(r.useEffect)((function(){ne.isReady&&ne.query.error&&te("error",ie("login-error"))}),[ne.isReady]);var se=function(e){return e.includes("/confirmed-email")||e.includes("/confirm-email")||e.includes("/login")||e.includes("/register")||e.includes("/verify")||e.includes("/check-auth")||e.includes("/checkprice")?T.siteDomain:e},le=function(e,a){var t="".concat(T.memberService,"/forget-password"),o="".concat(T.siteDomain),r="".concat(T.siteDomain,"/check-auth?destUrl=").concat(encodeURIComponent(o));return"".concat(t,"?cbUrl=").concat(encodeURIComponent(r),"&email=").concat(e,"&isSetNewPassword=").concat(a?"true":"false","&lang=").concat(ne.locale)},ce=["B2B","B2B_SHOP"],ue=function(e,a,t){var o="".concat(T.memberService,"/sso/login/force-iframe?ssoToken=").concat(e),r=(T.appShippop||"").replace("://app.","://business.");
1if(("corporate"===Q||ce.includes(a))&&r.includes("://business."))return"".concat(o,"&cbUrl=").concat(encodeURIComponent("".concat(r,"/business-login-sso-token/")));var i=encodeURIComponent("".concat(T.siteDomain,"/check-auth?destUrl=").concat(t));return"".concat(o,"&cbUrl=").concat(i)},ge=K((function(e){var t=se(a);L.a.post("/api/auth/auth",e).then((function(e){if("success"!==e.data.status)switch(e.data.code){case"not_confirm":A(!0);break;case"inactive":te("error",ie("account-deleted"));break;case"facebook_reset_password":te("error",ie("log-in-with-facebook-please"));break;case"empty_and_reset_password":F(!0);break;case"wrong_email":te("error",ie("email-or-password-wrong"));break;case"not_found":te("error",ie("account-not-found"));break;case"wrong_password":case"wrong_password_b2b":te("error",ie("wrong-password"));break;default:te("error",ie("login-error"))}else{var a=e.data.payload,o=a.ssoToken,r=a.mem_type;window.location.replace(ue(o,r,t))}})).catch((function(e){te("error",ie("login-error"))}))})),pe={title:"\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a - SHIPPOP \u0e17\u0e33\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e31\u0e14\u0e2a\u0e48\u0e07\u0e1e\u0e31\u0e2a\u0e14\u0e38\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e07\u0e48\u0e32\u0e22",keywords:"\u0e2a\u0e48\u0e07\u0e1e\u0e31\u0e2a\u0e14\u0e38, \u0e2a\u0e48\u0e07\u0e02\u0e2d\u0e07, \u0e40\u0e0a\u0e47\u0e04\u0e04\u0e48\u0e32\u0e2a\u0e48\u0e07, \u0e40\u0e0a\u0e47\u0e04\u0e23\u0e32\u0e04\u0e32, \u0e40\u0e0a\u0e47\u0e04\u0e1e\u0e31\u0e2a\u0e14\u0e38",description:"\u0e40\u0e1b\u0e23\u0e35\u0e22\u0e1a\u0e40\u0e17\u0e35\u0e22\u0e1a\u0e23\u0e32\u0e04\u0e32\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e02\u0e2d\u0e07 \u0e40\u0e0a\u0e47\u0e04\u0e23\u0e32\u0e04\u0e32 \u0e40\u0e0a\u0e47\u0e04\u0e04\u0e48\u0e32\u0e2a\u0e48\u0e07 \u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e02\u0e19\u0e2a\u0e48\u0e07 \u0e2a\u0e48\u0e07\u0e1e\u0e31\u0e2a\u0e14\u0e38 \u0e08\u0e2d\u0e07\u0e02\u0e19\u0e2a\u0e48\u0e07\u0e41\u0e25\u0e30\u0e08\u0e48\u0e32\u0e22\u0e40\u0e07\u0e34\u0e19\u0e2d\u0e2d\u0e19\u0e44\u0e25\u0e19\u0e4c \u0e1b\u0e23\u0e34\u0e49\u0e19 \u0e41\u0e1b\u0e30 \u0e2a\u0e48\u0e07 \u0e23\u0e2d\u0e04\u0e19\u0e21\u0e32\u0e23\u0e31\u0e1a\u0e02\u0e2d\u0e07\u0e16\u0e36\u0e07\u0e2b\u0e19\u0e49\u0e32\u0e1a\u0e49\u0e32\u0e19"},me=function(e){return t?e:"".concat(e,"?old")},de=I(u.a,{container:!0,className:z.page},!re&&I(u.a,{item:!0,xs:12,md:5},I("img",{src:"/static/img/login-register/login.jpg",alt:"login cover",className:z.coverImg})),I(u.a,{item:!0,container:!0,xs:12,md:7,direction:"column",alignItems:"center",justify:"center",className:z.innerRightSection},I("h1",null,ie("login-shippop")),I("h2",null,ie("make-shipping-easy")),I("div",{className:z.btnsSection},I(u.a,{container:!0,className:z.socialLogin},I(u.a,{item:!0,xs:12,sm:12,className:Object(H.a)(z.padding1,re&&z.noPaddingX)},I("a",{href:"".concat(T.memberService,"/sso/login/facebook?isIframe=false&needSSOToken=true&cbUrl=").concat(encodeURIComponent("".concat(T.siteDomain,"/verify?destUrl=").concat(se(a))))},I(b.a,{variant:"outlined",className:z.loginBtn,fullWidth:!0,disabled:E},I("img",{src:"/static/img/login-register/fb-icon.svg",className:z.marginRight1}),ie("login-with")," Facebook")))),I(w.a,{width:"100%"},ie("or")),I("form",{className:z.inputsSection,onSubmit:ge},I(g.a,{label:ie("email"),name:"email",variant:"outlined",margin:"normal",fullWidth:!0,inputRef:J({required:!0,pattern:/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/}),error:Y.email,helperText:Y.email&&ie("error.please-fill-email-correctly"),placeholder:ie("email-p")}),I(g.a,{label:ie("password"),name:"password",variant:"outlined",margin:"normal",fullWidth:!0,type:k?"text":"password",InputProps:{endAdornment:I(p.a,{position:"end"},I(m.a,{onClick:function(){return y(!k)}},I(k?_.a:f.a,null)))},inputRef:J({required:!0}),error:Y.password,helperText:Y.password&&ie("error.please-fill-password"),placeholder:ie("password-p")}),I(d.a,{href:le($("email"),!1),target:"_blank",className:z.forgotPassword},ie("forgot-password")),W&&I(S.a,{severity:"error"},ie("confirm-first")," ",I(j.a,{href:$("email")?"/confirm-email?email=".concat($("email")):"/confirm-email",passHref:!0}
1,I("a",null,ie("here")))),q&&I(S.a,{severity:"error"},ie("please-reset-password"),I(d.a,{href:le($("email"),!0)},ie("here"))),I("div",{className:z.forgotLoginFiller}),I(b.a,{className:z.loginBtn,type:"submit",disabled:E},ie("login")),I("p",{className:z.toRegister},ie("if-not-member")," ",I(j.a,{href:me("/register"),passHref:!0},I(d.a,null,ie("signup"))),I("br",null),I(j.a,{href:me("/privacy"),passHref:!0},I(d.a,null,ie("policy")))," ",ie("and-our")," ",I(j.a,{href:me("/terms"),passHref:!0},I(d.a,null,ie("terms-of-service")))))))),_e=I("div",{className:R.a.page},I("div",{className:R.a.card},!re&&I("div",{className:R.a.left},I("div",{className:R.a.leftCopy},I("h1",{className:R.a.leftHeading},"\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e17\u0e38\u0e01\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07",I("br",null),I("span",null,"\u0e43\u0e2b\u0e49\u0e18\u0e38\u0e23\u0e01\u0e34\u0e08\u0e40\u0e14\u0e34\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e44\u0e14\u0e49\u0e07\u0e48\u0e32\u0e22\u0e02\u0e36\u0e49\u0e19")),I("p",{className:R.a.leftSub},"\u0e41\u0e1e\u0e25\u0e15\u0e1f\u0e2d\u0e23\u0e4c\u0e21\u0e08\u0e31\u0e14\u0e2a\u0e48\u0e07\u0e04\u0e23\u0e1a\u0e27\u0e07\u0e08\u0e23\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e17\u0e38\u0e01\u0e18\u0e38\u0e23\u0e01\u0e34\u0e08 \u0e40\u0e1b\u0e23\u0e35\u0e22\u0e1a\u0e40\u0e17\u0e35\u0e22\u0e1a\u0e23\u0e32\u0e04\u0e32 \u0e2a\u0e23\u0e49\u0e32\u0e07\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07 \u0e41\u0e25\u0e30\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e2a\u0e14\u0e38\u0e44\u0e14\u0e49\u0e43\u0e19\u0e17\u0e35\u0e48\u0e40\u0e14\u0e35\u0e22\u0e27"),I("ul",{className:R.a.bullets},[{title:"\u0e40\u0e1b\u0e23\u0e35\u0e22\u0e1a\u0e40\u0e17\u0e35\u0e22\u0e1a\u0e23\u0e32\u0e04\u0e32\u0e2b\u0e25\u0e32\u0e22\u0e02\u0e19\u0e2a\u0e48\u0e07",desc:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e40\u0e2b\u0e21\u0e32\u0e30\u0e01\u0e31\u0e1a\u0e18\u0e38\u0e23\u0e01\u0e34\u0e08\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13"},{title:"\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e2d\u0e2d\u0e40\u0e14\u0e2d\u0e23\u0e4c\u0e44\u0e14\u0e49\u0e2a\u0e30\u0e14\u0e27\u0e01",desc:"\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e17\u0e31\u0e49\u0e07\u0e43\u0e19\u0e41\u0e25\u0e30\u0e15\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28"},{title:"\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e43\u0e1a\u0e1b\u0e30\u0e2b\u0e19\u0e49\u0e32\u0e44\u0e14\u0e49\u0e17\u0e31\u0e19\u0e17\u0e35",desc:"\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e40\u0e23\u0e35\u0e22\u0e01\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e23\u0e31\u0e1a\u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e19\u0e33\u0e2a\u0e48\u0e07\u0e14\u0e49\u0e27\u0e22\u0e15\u0e31\u0e27\u0e40\u0e2d\u0e07"},{title:"\u0e15\u0e34\u0e14\u0e15\u0e32\u0e21\u0e17\u0e38\u0e01\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e2a\u0e48\u0e07",desc:"\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e2a\u0e16\u0e32\u0e19\u0e30\u0e1e\u0e31\u0e2a\u0e14\u0e38\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e2a\u0e30\u0e14\u0e27\u0e01"}].map((function(e){return I("li",{className:R.a.bullet,key:e.title},I("svg",{className:R.a.check,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},I("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})),I("div",null,I("p",{className:R.a.bulletTitle},e.title),I("p",{className:R.a.bulletDesc},e.desc)))})))),I("picture",{className:R.a.illustrationWrap},I("source",{srcSet:"/static/img/login-new/panel.webp",type:"image/webp"}),I("img",{className:R.a.illustration,src:"/static/img/login-new/panel.png",alt:"\u0e23\u0e16\u0e1a\u0e23\u0e23\u0e17\u0e38\u0e01\u0e2a\u0e48\u0e07\u0e1e\u0e31\u0e2a\u0e14\u0e38\u0e2b\u0e19\u0e49\u0e32\u0e04\u0e25\u0e31\u0e07\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e41\u0e25\u0e30\u0e2b\u0e21\u0e38\u0e14\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07 \u0e2a\u0e37\u0e48\u0e2d\u0e16\u0e36\u0e07\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e2a\u0e48\u0e07\u0e02\u0e2d\u0e07 SHIPPOP",width:941,height:1297,loading:"lazy",decoding:"async"}))),I("div",{className:R.a.right},I("h1",{className:R.a.rightHeading},"\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a ",I("span",null,"SHIPPOP")),I("p",{className:R.a.rightSub},"\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e2a\u0e48\u0e07\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e44\u0e14\u0e49\u0e07\u0e48\u0e32\u0e22 \u0e04\u0e23\u0e1a\u0e08\u0e1a\u0e43\u0e19\u0e17\u0e35\u0e48\u0e40\u0e14\u0e35\u0e22\u0e27"),I("div",{className:R.a.toggle,role:"tablist","aria-label":"\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e25\u0e39\u0e01\u0e04\u0e49\u0e32"},I("button",{type:"button",role:"tab","aria-selected":"personal"===Q,className:Object(H.a)(R.a.toggleBtn,"personal"===Q&&R.a.toggleBtnActive),onClick:function(){return X("personal")}},I("span",{className:R.a.toggleMain},"\u0e25\u0e39\u0e01\u0e04\u0e49\u0e32\u0e17\u0e31\u0e48\u0e27\u0e44\u0e1b"),I("span",{className:R.a.toggleSub},"QR / Credit Payment")),I("button",{type:"button",role:"tab","aria-selected":"corporate"===Q,className:Object(H.a)(R.a.toggleBtn,"corporate"===Q&&R.a.toggleBtnActive),onClick:function(){return X("corporate")}},I("span",{className:R.a.toggleMain},"\u0e25\u0e39\u0e01\u0e04\u0e49\u0e32\u0e2d\u0e07\u0e04\u0e4c\u0e01\u0e23"),I("span",{className:R.a.toggleSub},"Credit term \u0e15\u0e32\u0e21\u0e23\u0e2d\u0e1a\u0e27\u0e32\u0e07\u0e1a\u0e34\u0e25"))),I("form",{onSubmit:ge},I("div",{className:R.a.field},I("label",{className:R.a.label,htmlFor:"login-new-email"},"\u0e2d\u0e35\u0e40\u0e21\u0e25"),I("div",{className:R.a.inputWrap},I("input",{id:"login-new-email",name:"email",type:"email",className:Object(H.a)(R.a.input,Y.email&&R.a.inputError),placeholder:"[email protected]",ref:J({required:!0,pattern:/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/})}
1)),Y.email&&I("p",{className:R.a.errorText},ie("error.please-fill-email-correctly"))),I("div",{className:R.a.field},I("label",{className:R.a.label,htmlFor:"login-new-password"},"\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19"),I("div",{className:R.a.inputWrap},I("input",{id:"login-new-password",name:"password",type:k?"text":"password",className:Object(H.a)(R.a.input,Y.password&&R.a.inputError),placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",ref:J({required:!0})}),I("button",{type:"button",className:R.a.eyeBtn,onClick:function(){return y(!k)},"aria-label":k?"\u0e0b\u0e48\u0e2d\u0e19\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19":"\u0e41\u0e2a\u0e14\u0e07\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19"},I(k?_.a:f.a,null))),Y.password&&I("p",{className:R.a.errorText},ie("error.please-fill-password"))),I("div",{className:R.a.forgotRow},I(d.a,{href:le($("email"),!1),target:"_blank",className:R.a.forgotLink},ie("forgot-password"))),W&&I(S.a,{severity:"error",className:R.a.alert},ie("confirm-first")," ",I(j.a,{href:$("email")?"/confirm-email?email=".concat($("email")):"/confirm-email",passHref:!0},I("a",null,ie("here")))),q&&I(S.a,{severity:"error",className:R.a.alert},ie("please-reset-password"),I(d.a,{href:le($("email"),!0)},ie("here"))),I("button",{type:"submit",className:R.a.submit,disabled:E},ie("login"))),I("p",{className:R.a.footLinks},ie("if-not-member")," ",I(j.a,{href:"corporate"===Q?"/business":me("/register"),passHref:!0},I(d.a,null,ie("signup"))),I("br",null),I(j.a,{href:me("/privacy"),passHref:!0},I(d.a,null,ie("policy"))),I("span",{className:R.a.footSep},"\u2022"),I(j.a,{href:me("/terms"),passHref:!0},I(d.a,null,ie("terms-of-service")))))));return t?I(i.a.Fragment,null,I(s.a,pe,_e),ae()):I("div",{className:z.root},I(n.a,Object(o.a)({noFooter:!0,noFloatingButtons:!0},pe),de),ae())}},s0CE:function(e,a,t){e.exports={page:"LoginNew_page__2_cPa",card:"LoginNew_card__IXBy3",left:"LoginNew_left__1j4By",leftHeading:"LoginNew_leftHeading___7V87",leftSub:"LoginNew_leftSub__sJTup",bullets:"LoginNew_bullets__1VowK",bullet:"LoginNew_bullet__k4Wm8",check:"LoginNew_check__1iQ-i",bulletTitle:"LoginNew_bulletTitle__3vG_K",bulletDesc:"LoginNew_bulletDesc__1gZHH",illustrationWrap:"LoginNew_illustrationWrap__Nh6rs",illustration:"LoginNew_illustration__3XXYz",leftCopy:"LoginNew_leftCopy__3d70B",right:"LoginNew_right__2f6Mi",rightHeading:"LoginNew_rightHeading__2dzbU",rightSub:"LoginNew_rightSub__AICKz",toggle:"LoginNew_toggle__1EjyQ",toggleBtn:"LoginNew_toggleBtn__3Q_jD",toggleBtnActive:"LoginNew_toggleBtnActive__ZBIp7",toggleMain:"LoginNew_toggleMain__1SJ0P",toggleSub:"LoginNew_toggleSub__3_fO7",socialLine:"LoginNew_socialLine__1mLPG",field:"LoginNew_field__25WGY",label:"LoginNew_label__1VC_y",inputWrap:"LoginNew_inputWrap__QGMuA",input:"LoginNew_input__3jTNC",inputError:"LoginNew_inputError__3pVPK",eyeBtn:"LoginNew_eyeBtn__3vDc4",errorText:"LoginNew_errorText__1ZcGf",forgotRow:"LoginNew_forgotRow__1xMCr",forgotLink:"LoginNew_forgotLink__2Jbri",submit:"LoginNew_submit__11lt3",footLinks:"LoginNew_footLinks__xSQ1s",footSep:"LoginNew_footSep__1W6ce",alert:"LoginNew_alert__2_36C"}},u6Hu:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t("O2ls")}])}},[["u6Hu",0,1,3,2,4,5,6,7,8,9,10,11,12,13,14,15,23]]]);
2//# sourceMappingURL=login-4b106bcd09dbee8b1fec.js.map

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.