1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[645],{88441:function(e,t,r){"use strict";var n=r(63366),i=r(87462),o=r(67294),s=r(90512),a=r(94780),l=r(70917),u=r(94581),c=r(98216),d=r(2734),f=r(90948),h=r(71657),g=r(28962),p=r(85893);const b=["className","color","value","valueBuffer","variant"];let m,x,v,y,j,F,w=e=>e;const C=(0,l.F4)(m||(m=w` 2 0% { 3 left: -35%; 4 right: 100%; 5 } 6 7 60% { 8 left: 100%; 9 right: -90%; 10 } 11 12 100% { 13 left: 100%; 14 right: -90%; 15 } 16`)),S=(0,l.F4)(x||(x=w` 17 0% { 18 left: -200%; 19 right: 100%; 20 } 21 22 60% { 23 left: 107%; 24 right: -8%; 25 } 26 27 100% { 28 left: 107%; 29 right: -8%; 30 } 31`)),Z=(0,l.F4)(v||(v=w` 32 0% { 33 opacity: 1; 34 background-position: 0 -23px; 35 } 36 37 60% { 38 opacity: 0; 39 background-position: 0 -23px; 40 } 41 42 100% { 43 opacity: 1; 44 background-position: -200px -23px; 45 } 46`)),k=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,u.$n)(e.palette[t].main,.62):(0,u._j)(e.palette[t].main,.5),I=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${(0,c.Z)(r.color)}`],t[r.variant]]}})((({ownerState:e,theme:t})=>(0,i.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:k(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),_=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${(0,c.Z)(r.color)}`]]}})((({ownerState:e,theme:t})=>{const r=k(t,e.color);return(0,i.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,l.iv)(y||(y=w` 47 animation: ${0} 3s infinite linear; 48 `),Z)),P=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${(0,c.Z)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,i.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,l.iv)(j||(j=w` 49 width: auto; 50 animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; 51 `),C))),E=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${(0,c.Z)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,i.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:k(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,l.iv)(F||(F=w` 52 width: auto; 53 animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; 54 `),S))),R=o.forwardRef((function(e,t){const r=(0,h.Z)({props:e,name:"MuiLinearProgress"}),{className:o,color:l="primary",value:u,valueBuffer:f,variant:m="indeterminate"}=r,x=(0,n.Z)(r,b),v=(0,i.Z)({},r,{color:l,variant:m}),y=(e=>{const{classes:t,variant:r,color:n}=e,i={root:["root",`color${(0,c.Z)(n)}`,r],dashed:["dashed",`dashedColor${(0,c.Z)(n)}`],bar1:["bar",`barColor${(0,c.Z)(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&`barColor${(0,c.Z)(n)}`,"buffer"===r&&`color${(0,c.Z)(n)}`,("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,a.Z)(i,g.E,t)})(v),j=(0,d.Z)(),F={},w={bar1:{},bar2:{}};if("determinate"===m||"buffer"===m)if(void 0!==u){F["aria-valuenow"]=Math.round(u),F["aria-valuemin"]=0,F["aria-valuemax"]=100;let e=u-100;"rtl"===j.direction&&(e=-e),w.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===m)if(void 0!==f){let e=(f||0)-100;"rtl"===j.direction&&(e=-e),w.bar2.transform=`translateX(${e}%)`}else 0;return(0,p.jsxs)(I,(0,i.Z)({className:(0,s.Z)(y.root,o),ownerState:v,role:"progressbar"},F,{ref:t},x,{children:["buffer"===m?(0,p.jsx)(_,{className:y.dashed,ownerState:v}):null,(0,p.jsx)(P,{className:y.bar1,ownerState:v,style:w.bar1}),"determinate"===m?null:(0,p.jsx)(E,{className:y.bar2,ownerState:v,style:w.bar2})]}))}));t.Z=R},28962:function(e,t,r){"use strict";r.d(t,{E:function(){return o}});var n=r(1588),i=r(34867);function o(e){return(0,i.Z)("MuiLinearProgress",e)}const s=(0,n.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);t.Z=s},53164:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/onboarding/1",function(){return r(81988)}])},91079:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});
54var n=r(14924),i=r(85893),o=r(25675),s=r.n(o),a=r(90948),l=r(11163),u=r(88441),c=r(28962),d=r(50456);function f(e){var t=e.progress,r=e.type,o=void 0===r?"normal":r,f=(0,l.useRouter)(),h=(0,a.ZP)(u.Z)((function(){var e;return e={height:2,width:"100%",borderRadius:8},(0,n.Z)(e,"&.".concat(c.Z.colorPrimary),{backgroundColor:"#EFF1F5"}),(0,n.Z)(e,"& .".concat(c.Z.bar),{backgroundColor:"#0088FF"}),e}));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{style:{width:"100%",height:82,display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,i.jsx)(d.Z,{smDown:!0,children:(0,i.jsx)(s(),{src:"white"==o?f.basePath+"/logo_tc_small_white.png":f.basePath+"/logo_tc_small.png",height:48,width:52,alt:"Tutor Circle"})}),(0,i.jsx)(d.Z,{smUp:!0,children:(0,i.jsx)(s(),{src:"white"==o?f.basePath+"/logo_tc_white.png":f.basePath+"/logo_tc.png",height:32,width:210,alt:"Tutor Circle"})})]}),(0,i.jsx)("div",{style:{marginBottom:32},children:t>=0?(0,i.jsx)(h,{variant:"determinate",value:t}):null})]})}},22006:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(26042),i=r(85893);function o(e){var t=e.label,r=e.style,o=e.onClick,s=e.disabled;return(0,i.jsx)("div",{style:(0,n.Z)({height:38,borderRadius:20,marginTop:16,marginRight:16,display:"flex",justifyContent:"center",alignItems:"center",cursor:s?"auto":"pointer"},r),onClick:s?null:o,children:(0,i.jsx)("span",{style:{fontSize:14,fontWeight:400,color:r.color?r.color:"#414042"},children:t})})}},43803:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(26042),i=r(85893),o=r(98456);function s(e){var t=e.style,r=e.label,s=e.onClick,a=e.disabled,l=e.isLoading,u=void 0!==l&&l;return(0,i.jsx)("div",{style:(0,n.Z)({width:"100%",height:52,borderRadius:8,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:a?"#0088FF66":"#0088FF",cursor:a||u?"auto":"pointer"},t),onClick:a||u?null:s,children:u?(0,i.jsx)(o.Z,{size:24,sx:{color:"white"}}):(0,i.jsx)("span",{style:{fontSize:14,color:"#FFFFFF",fontWeight:"bold"},children:r})})}},72940:function(e,t,r){"use strict";r.d(t,{G:function(){return s},N:function(){return o}});var n=r(90948),i=r(61903),o=(0,n.ZP)(i.Z)((function(e){return e.theme.unstable_sx({"& .MuiOutlinedInput-root.Mui-focused":{"& > fieldset":{borderColor:"#0088FF"}},"& .MuiOutlinedInput-root.Mui-error":{"& > fieldset":{borderColor:"#C94A4A"}},"& .MuiInputLabel-root.Mui-focused":{color:"#0088FF"},"& .MuiInputLabel-root.Mui-error":{color:"#C94A4A"},":hover":{"& .MuiInputLabel-root:not(.Mui-disabled)":{color:"#0088FF"},"& .MuiOutlinedInput-root:not(.Mui-disabled)":{"& > fieldset":{borderColor:"#0088FF"}},"& .MuiInputLabel-root.Mui-error":{color:"#C94A4A"},"& .MuiOutlinedInput-root.Mui-error":{"& > fieldset":{borderColor:"#C94A4A"}}}})})),s=(0,n.ZP)("span")((function(e){e.theme;return{fontSize:12,color:"#8E8E8E",fontWeight:400,width:"100%",paddingLeft:5,paddingRight:5,textAlign:"center"}}))},15885:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(85893),i=r(58703),o=r(67294),s=r(25675),a=r.n(s),l=r(11163);function u(e){var t=e.visible,r=e.onRequestClosed,s=e.type,u=void 0===s?"general":s,c=e.message,d=(0,l.useRouter)(),f=(0,o.useState)(""),h=f[0],g=f[1];return(0,o.useEffect)((function(){c&&c!=h&&g(c)}),[c]),(0,n.jsx)(i.Z,{open:t,autoHideDuration:6e3,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"12px 16px",borderRadius:8,backgroundColor:"white",boxShadow:"2px 4px 10px rgba(0, 0, 0, 0.25)"},children:["success"==u||"general"==u?(0,n.jsx)("div",{style:{marginRight:8,width:24,height:24,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)(a(),{src:d.basePath+"/icon_circle_tick_blue.png",width:24,height:24,alt:""})}):"error"==u?(0,n.jsx)("div",{style:{marginRight:8,width:24,height:24,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)(a(),{src:d.basePath+"/icon_circle_cross_red.png",width:24,height:24,alt:""})}):null,(0,n.jsx)("span",{style:{fontSize:14,color:"#414042"},children:h}),(0,n.jsx)("div",{style:{marginLeft:5,cursor:"pointer",width:24,height:24,display:"flex",justifyContent:"center",alignItems:"center"},onClick:r,children:(0,n.jsx)(a(),{src:d.basePath+"/icon_circle_cross_grey.png",width:16,height:16,alt:""})})]})})}},81988:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return E},default:function(){return R}});var n=r(14924),i=r(26042),o=r(69396),s=r(85893),a=r(67294),l=r(11163),u=r(25675),c=r.n(u),d=r(18629),f=r(5306),h=r(90948),g=r(74897),p=r(33299),b=r(30918),m=r(97051),x=r
54(43803),v=r(72940),y=r(91079),j=r(22006),F=r(15885),w=r(50246),C=r(89795),S=r(23073),Z=r(64555),k=r(75072),I=r(44801);function _(e){var t=e.visible,r=e.onRequestClosed,n=(0,g.$G)("common").t;(0,l.useRouter)();return(0,s.jsx)(d.Z,{open:t,onClose:r,style:{display:"flex"},children:(0,s.jsx)("div",{style:{flex:1,backgroundColor:"#0088FF",display:"flex",flexDirection:"column",alignItems:"center"},onClick:function(){return r()},children:(0,s.jsxs)(m.U,{children:[(0,s.jsx)(y.Z,{progress:-1,type:"white"}),(0,s.jsxs)("div",{style:{width:"100%",height:300,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[(0,s.jsx)("span",{style:{fontSize:16,color:"white",letterSpacing:"7.5%"},children:n("label-sign-up-welcome")}),(0,s.jsx)("span",{style:{fontSize:30,color:"white",fontWeight:"bold",marginTop:12},children:n("label-sign-up-setup")})]})]})})})}var P=(0,h.ZP)("div")((function(e){var t,r=e.theme;return t={position:"fixed",right:"5%",bottom:70,paddingTop:20,cursor:"pointer",zIndex:1},(0,n.Z)(t,r.breakpoints.up(480),{bottom:70}),(0,n.Z)(t,r.breakpoints.up(1300),{left:"90vw",right:"auto"}),(0,n.Z)(t,r.breakpoints.up(1450),{left:"80vw",right:"auto"}),t})),E=!0;function R(e){var t=function(){var e=!0;return""!=U&&""!=J||(e=!1),e},r=function(e){G(e)},n=function(e){e!==X&&u(),V(e)},u=function(){te(""),Q("")},d=function(e,t){try{if(t.inputValue)return e.filter((function(e){return e.searchStr.toUpperCase().includes(t.inputValue.toUpperCase())}))}catch(r){}return e},h=function(){var e="\u9999\u6e2f"==X?k.A3.filter((function(e){return"macau"!=e.type})):"\u6fb3\u9580"==X?k.A3.filter((function(e){return"macau"==e.type})):k.le;return(0,s.jsxs)("div",{style:{marginTop:24},children:[(0,s.jsxs)("span",{style:{fontSize:14,fontWeight:700,color:"#414042"},children:[" ",z("\u9999\u6e2f"==X||"\u6fb3\u9580"==X?"label-sign-up-region":"label-sign-up-country-or-city")]}),(0,s.jsx)("div",{style:{marginTop:16},children:(0,s.jsx)(f.Z,{fullWidth:!0,size:"small",options:e,getOptionLabel:function(e){return z(e.fullname)},value:e.find((function(e){return e.id===J}))||null,onChange:function(e,t){t?(Q(t.id),te(z(t.fullname))):u()},inputValue:ee,onInputChange:function(e,t){te(t)},filterOptions:d,disabled:pe,renderInput:function(e){return(0,s.jsx)(v.N,(0,o.Z)((0,i.Z)({},e),{fullWidth:!0,size:"small",margin:"none",InputProps:(0,o.Z)((0,i.Z)({},e.InputProps),{style:{height:48,fontSize:14,borderRadius:8}})}))}})}),""==J?(0,s.jsx)("span",{style:{fontSize:14,fontWeight:700,color:"red"},children:z("\u9999\u6e2f"==X?"err-district":"err-country")}):null]})},E=(0,l.useRouter)(),R=(0,g.$G)("common"),z=R.t,M=R.i18n,W=(0,p.useSession)(),$=W.data,T=W.status,L=(0,a.useState)(""),N=L[0],q=L[1],O=(0,a.useState)(""),B=O[0],A=O[1],D=(0,a.useState)(""),U=D[0],G=D[1],K=(0,a.useState)(""),X=K[0],V=K[1],H=(0,a.useState)(""),J=H[0],Q=H[1],Y=(0,a.useState)(""),ee=Y[0],te=Y[1],re=(0,a.useState)(""),ne=re[0],ie=re[1],oe=(0,a.useState)(""),se=oe[0],ae=oe[1],le=(0,a.useState)(""),ue=le[0],ce=le[1],de=(0,a.useState)(!0),fe=de[0],he=de[1],ge=(0,a.useState)(!1),pe=ge[0],be=ge[1];(0,a.useEffect)((function(){(0,S.qw)("ST_Onboarding_1"),q(localStorage.getItem(C.bv)?localStorage.getItem(C.bv):Z.bP),sessionStorage.getItem(C.SF)?(he(!1),A(sessionStorage.getItem(C.Kf)),G(sessionStorage.getItem(C.SF)),V(sessionStorage.getItem(C.ah)),Q(sessionStorage.getItem(C.Ey)),te(sessionStorage.getItem(C.Ey)?(0,I.vR)([sessionStorage.getItem(C.Ey)],!0,z):""),ae(sessionStorage.getItem(C._8))):setTimeout((function(){return he(!1)}),1500)}),[]);var me=(0,a.useRef)(!1);return(0,a.useEffect)((function(){"loading"==T||me.current||(me.current=!0,(0,w.eR)({},(function(e){e.error?"authenticated"==T&&((0,p.signOut)({redirect:!1}),E.push("/login")):"authenticated"!==T&&(0,p.signIn)("PHPLogin",{redirect:!1,username:"tc",password:e.message}).then((function(e){}))})))}),[T]),(0,s.jsxs)(b.Z,{header:(0,s.jsx)(s.Fragment,{}),footer:(0,s.jsx)(s.Fragment,{}),userType:N,children:[(0,s.jsx)(_,{visible:fe,onRequestClosed:function(){return he(!1)}}),(0,s.jsx)(F.Z,{type:"error",visible:""!==ue,onRequestClosed:function(){return ce("")},message:ue}),(0,s.jsxs)("div",{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",paddingBottom:100},children:[(0,s.jsxs)(m.U,{children:[(0,s.jsx)(y.Z,{progress:1}),(0,s.jsx)("span",{style:{fontSize:16,fontWeight:400,color:"#0088FF"},children:z("label-sign-up-welcome")}),(0,s.jsxs)("div",{style:{marginTop:32},children:[(0,s.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,s.jsx)("span",{style:{fontSize:14,fontWeight:700,color:"#414042"},children:z("label-sign-up-alias")}),(0,s.jsx)("span",{style:{fontSize:12,fontWeight:400,color:"#8E8E8E"},children:z("label-sign-up-optional")})]}),(0,s.jsx)(v.N,{fullWidth:!0,size:"small",margin:"none",InputProps:{style:{height:48,fontSize:14,borderRadius:8,marginTop:16}},value:B,onChange:function(e){A(e.target.value.slice(0,60))}})]}
54),(0,s.jsxs)("div",{style:{marginTop:24,display:"flex"},children:[(0,s.jsxs)("div",{style:{width:"50%"},children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{style:{fontSize:14,fontWeight:700,color:"#414042"},children:z("label-sign-up-sex")}),(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsx)(j.Z,{label:z("label-sign-up-male"),disabled:pe,style:{width:62,backgroundColor:"\u7537"==U?"#414042":"#EFF1F5",color:"\u7537"==U?"#FFFFFF":"#414042"},onClick:function(){return r("\u7537")}}),(0,s.jsx)(j.Z,{label:z("label-sign-up-female"),disabled:pe,style:{width:62,backgroundColor:"\u5973"==U?"#414042":"#EFF1F5",color:"\u5973"==U?"#FFFFFF":"#414042"},onClick:function(){return r("\u5973")}})]}),""==U?(0,s.jsx)("span",{style:{fontSize:14,fontWeight:700,color:"red"},children:z("err-sex")}):null]}),(0,s.jsxs)("div",{style:{marginTop:24},children:[(0,s.jsx)("span",{style:{fontSize:14,fontWeight:700,color:"#414042"},children:z("label-sign-up-residence")}),(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,alignItems:"flex-start"},children:[(0,s.jsx)(j.Z,{label:z("label-sign-up-hk"),style:{width:"70%",backgroundColor:"\u9999\u6e2f"==X?"#414042":"#EFF1F5",color:"\u9999\u6e2f"==X?"#FFFFFF":"#414042"},onClick:function(){return n("\u9999\u6e2f")}}),(0,s.jsx)(j.Z,{label:z("label-country-code-macau"),style:{width:"70%",backgroundColor:"\u6fb3\u9580"==X?"#414042":"#EFF1F5",color:"\u6fb3\u9580"==X?"#FFFFFF":"#414042"},onClick:function(){return n("\u6fb3\u9580")}}),(0,s.jsx)(j.Z,{label:z("label-sign-up-overseas"),style:{width:"70%",backgroundColor:"\u6d77\u5916"==X?"#414042":"#EFF1F5",color:"\u6d77\u5916"==X?"#FFFFFF":"#414042"},onClick:function(){return n("\u6d77\u5916")}})]}),""==X?(0,s.jsx)("span",{style:{fontSize:14,fontWeight:700,color:"red"},children:z("err-residence")}):null]})]}),(0,s.jsxs)("div",{style:{width:"50%"},children:[(0,s.jsx)("span",{style:{fontSize:14,fontWeight:700,color:"#414042"},children:z("label-sign-up-personal-picture")}),(0,s.jsx)("span",{style:{fontSize:12,fontWeight:400,color:"#8E8E8E"},children:z("label-sign-up-optional")}),(0,s.jsx)("br",{}),(0,s.jsx)("span",{style:{fontSize:10,fontWeight:400,color:"#8E8E8E"},children:z("label-sign-up-picture-remarks1")}),(0,s.jsx)("br",{}),(0,s.jsx)("span",{style:{fontSize:10,fontWeight:400,color:"#8E8E8E"},children:z("label-sign-up-picture-remarks2")}),(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,s.jsx)("label",{htmlFor:"profile_icon",children:(0,s.jsxs)("div",{style:{width:130,height:130,marginTop:16,marginRight:16},children:[(0,s.jsx)("input",{type:"file",id:"profile_icon",accept:".jpg, .png, .jpeg, .heic",hidden:!0,value:ne,onChange:function(e){if(e.target.files&&e.target.files.length>0){var t=e.target.files[0];if(t.type.startsWith("image/")){var r=$.user.id;(0,w.z7)(r,t,(function(n){if(n.error)ce(n.message?n.message:z("err-fail-to-upload"));else{ae(URL.createObjectURL(t)),ie(e.target.value);var i={type:2,tutorid:r};(0,w.Px)(i,(function(e){var t;e.error&&ce(null!==(t=e.message)&&void 0!==t?t:z("err-system"))}))}}))}else ce(z("err-not-photo"))}else ce(z("err-not-photo"))}}),se?(0,s.jsx)(c(),{src:se,height:130,width:130,alt:"Photo",objectFit:"contain"}):(0,s.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:240,backgroundColor:"#EFF1F5",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},children:(0,s.jsx)(c(),{src:E.basePath+"/icon_photo.png",height:32,width:32,alt:"Photo"})})]})}),se?(0,s.jsx)("div",{style:{cursor:pe?"auto":"pointer"},onClick:function(){return pe?null:void(se&&(0,w.eR)({},(function(e){if(e.error)ce(z("err-not-login"));else{var t={token:e.message,value:{person_icon_filename:"",person_icon_uploaded:0}};(0,w.$K)(t,(function(e){ae(""),ie("")}))}})))},children:(0,s.jsx)(c(),{src:E.basePath+"/icon_rubbishbin_grey.png",width:40,height:40})}):null]})]})]}),"\u9999\u6e2f"==X||"\u6fb3\u9580"==X?h():"\u6d77\u5916"==X?(0,s.jsxs)("div",{children:[" ",h()]}):null,(0,s.jsx)("div",{style:{marginTop:32,display:"block"},children:(0,s.jsx)(x.Z,{style:{width:160,height:44,float:"right"},label:z("label-sign-up-next"),disabled:!t(),onClick:function(){t()&&(0,w.eR)({},(function(e){if(e.error)ce(z("err-not-login"));else{var t={token:e.message,value:{sex:U,district:J,alias:B}};be(!0),(0,w.$K)(t,(function(e){be(!1),sessionStorage.setItem(C.Kf,B),sessionStorage.setItem(C.SF,U),sessionStorage.setItem(C.ah,X),sessionStorage.setItem(C.Ey,J),sessionStorage.setItem(C._8,se),e.error&&-2001!=e.errorCode?ce(z("ui-save-login-again")):E.push("/onboarding/2")}))}}))}})})]}),(0,s.jsx)(P,{onClick:function(){(0,S.qw)("CS_SRSTFilter_Whatsapp"),"en"==M.language?window.open("https://api.whatsapp.com/se
54nd/?phone=85264845161&text=I have issue on tutor login, please assist","_blank"):window.open("https://api.whatsapp.com/send/?phone=85264845161&text=\u6211\u4fc2\u5c0e\u5e2b,\u6709\u767b\u5165\u554f\u984c\u60f3\u4f60\u5e6b\u5e6b\u624b","_blank")},children:(0,s.jsx)("img",{src:E.basePath+"/icon_whatsapp.png",style:{width:50,height:50,borderRadius:13}})})]})]})}}},function(e){e.O(0,[3714,1551,760,3522,4799,9305,321,9894,6462,1903,8703,8648,5306,7635,918,9774,2888,179],(function(){return t=53164,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.