1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5859],{59326:function(e,n,t){"use strict";var c,s=t(50959);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}var i=(0,s.forwardRef)(function(e,n){return s.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",ref:n},e),c||(c=s.createElement("g",{fill:"currentColor"},s.createElement("path",{d:"M9.963 4.716c.034-.93.295-1.747.777-2.43.485-.685 1.286-1.173 2.383-1.45l.022.102v.177c0 .4-.097.86-.289 1.365-.2.49-.515.95-.932 1.365-.39.366-.751.609-1.07.718-.105.032-.25.063-.424.09q-.233.038-.467.063"}),s.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"M10.146 6.095C8.907 6.095 8.047 5 6.826 5c-1.222 0-3.74 1.123-3.74 5s2.236 6.375 2.486 6.667.828 1.041 1.724 1.041c.895 0 1.876-.712 2.85-.712s2.2.712 3 .712 1.129-.326 1.673-.889c.545-.562 1.583-2.28 1.946-3.31-.597-.356-2.18-1.321-2.18-3.509q0-2.188 1.598-3.635Q15.133 5 13.75 5c-1.385 0-2.366 1.095-3.604 1.095Z"}))))});n.Z=i},68782:function(e,n,t){"use strict";var c,s=t(50959);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}var i=(0,s.forwardRef)(function(e,n){return s.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",viewBox:"0 0 24 24",ref:n},e),c||(c=s.createElement("path",{fill:"currentColor",d:"M12 2C6.477 2 2 6.59 2 12.253c0 4.531 2.865 8.373 6.839 9.73.5.095.683-.223.683-.496 0-.245-.009-.894-.013-1.755-2.782.62-3.369-1.372-3.369-1.372-.455-1.187-1.11-1.503-1.11-1.503-.908-.636.069-.623.069-.623 1.004.073 1.532 1.058 1.532 1.058.892 1.567 2.341 1.114 2.91.852.09-.665.349-1.114.635-1.37-2.221-.26-4.556-1.14-4.556-5.073 0-1.121.39-2.038 1.03-2.756-.104-.26-.447-1.31.098-2.73 0 0 .84-.276 2.75 1.053A9.3 9.3 0 0 1 12 6.92c.85.004 1.706.118 2.505.348 1.909-1.329 2.748-1.053 2.748-1.053.546 1.42.203 2.47.1 2.73.64.718 1.028 1.635 1.028 2.756 0 3.943-2.34 4.81-4.57 5.065.359.319.679.948.679 1.91 0 1.38-.012 2.494-.012 2.833 0 .276.18.596.688.495C19.139 20.622 22 16.782 22 12.253 22 6.59 17.523 2 12 2"})))});n.Z=i},26174:function(e,n,t){"use strict";var c,s,r=t(50959);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}var a=(0,r.forwardRef)(function(e,n){return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 13 12",ref:n},e),c||(c=r.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"M1.5 8.625c0 .621.504 1.125 1.125 1.125h7.75c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-7.75c-.621 0-1.125.504-1.125 1.125v5.25Z"})),s||(s=r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M2 2.625 6.5 6 11 2.625"})))});n.Z=a},80957:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/console/account-center/account",function(){return t(82825)}])},82825:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return ef},default:function(){return ey}});var c,s,r=t(11527),i=t(59326),a=t(68782),o=t(49869),l=t(2979),u=t(26174),d=t(77640),m=t(50959);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}var v=(0,m.forwardRef)(function(e,n){return m.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",ref:n},e),c||(c=m.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.167,d:"M1.75 7.002v3.936c0 .724.588 1.312 1.313 1.312h7.874c.725 0 1.313-.588 1.313-1.312V7M9.625 4.375 7 1.75 4.375 4.375M6.997 9.333V1.75"})))});function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}var p=(0,m.forwardRef)(function(e,n){return m.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:n},e),s||(s=m.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8M21 22a9 9 0 1 0-18 0"})))}),A=t(78975),g=t(23308),j=t(76935),N=t(94027),f=t(89849),y=t(42974),S=t(8525),w=t(31263),b=t(10422),C=t(24704),k=t(53369),E=t.n(k),_=t(87082),P=t(73294),D=t(34533),O=t(21601);let{t:T}=D.Z,L=e=>{let{onDestroy:n,userName:t}=e,[c,s]=(0,m.useState)(!1),[i,a]=(0,m.useState)(t),[o,l]=(0,m.useState)(!1),{mutate:u}=(0,C.kY)(),d=/^[a-zA-Z][a-zA-Z0-9_]{5,15}$/,h=async()=>
1{l(!0);let e=await (0,w.DL)({userName:i});if(l(!1),e&&e.error){let{error:n}=e;if(n.code){let e=(0,P.LC)(n.code,T);e&&O.y.error(e)}return}O.y.success(T("console:AccountAndSecurity.Account.SaveSuccess")),u("/v1/accounts"),n()},v=e=>{a(e.target.value),d.test(e.target.value)?s(!1):s(!0)};return(0,r.jsx)(S.Z,{title:T("console:AccountAndSecurity.Account.Dialog.ChangeUsername"),onClose:n,children:(0,r.jsxs)("div",{className:E().content,children:[(0,r.jsx)("div",{className:"title",children:T("console:AccountAndSecurity.Account.Dialog.NewUsername")}),(0,r.jsx)("input",{type:"text",onChange:v,value:i,className:"".concat(c?"error":"")}),(0,r.jsx)("div",{className:"tips ".concat(c?"show":"noshow"),children:T("console:AccountAndSecurity.Account.Dialog.NewUsernameError")}),(0,r.jsxs)("div",{className:"btn",children:[(0,r.jsx)("button",{className:"left",onClick:n,children:T("console:App.Cancel")}),(0,r.jsx)(_.f,{className:"right ".concat(!c&&i?"":"gray"),onClick:h,loading:o,children:T("console:App.Confirm")})]})]})})},Z=e=>new Promise(n=>{let t=document.createElement("div");document.body.appendChild(t);let c=()=>{let e=b.unmountComponentAtNode(t);e&&t.parentNode&&t.parentNode.removeChild(t),n()};b.render(m.createElement(L,{...e,onDestroy:c}),t)});var R=t(17366),M=t(44478),U=t(46161),I=t.n(U);let{t:z}=D.Z,G=e=>{let[n,t]=e.split("@");return n&&t?"".concat(n.slice(0,3),"****@").concat(t):e},F=e=>{let{email:n,onDestroy:t}=e,[c,s]=(0,m.useState)(""),[i,a]=(0,m.useState)(!1),[o,l]=(0,m.useState)(!1),[u,d]=(0,m.useState)(60),[h,v]=(0,m.useState)(!1),[x,p]=(0,m.useState)(!1),A=(0,m.useRef)(),g=(0,m.useRef)(!1),j=(0,m.useRef)(!1),{mutate:N}=(0,C.kY)(),f=(0,m.useCallback)(()=>t(!1),[t]),y=(0,m.useCallback)(()=>{A.current&&(clearInterval(A.current),A.current=void 0)},[]),b=(0,m.useCallback)(()=>{y(),d(60),g.current=!0,l(!0),A.current=setInterval(()=>{d(e=>e-1)},1e3)},[y]),k=(0,m.useCallback)(async()=>{if(g.current||j.current)return;j.current=!0,v(!0);let e=await (0,w.UD)({email:n});if(null==e?void 0:e.error){j.current=!1,v(!1),f();return}if(null==e?void 0:e.used){j.current=!1,v(!1),O.y.warning(z("console:AccountAndSecurity.Account.Dialog.NewEmailError1")),f();return}let t=await (0,w.Z3)({email:n});if(j.current=!1,v(!1),null==t?void 0:t.error){var c;let e=(null===(c=t.error)||void 0===c?void 0:c.code)||"";(0,P.LC)(e,z)&&O.y.warning((0,P.LC)(e,z)),f();return}b()},[f,n,b]),E=e=>{s(e.target.value),a(!e.target.value)},D=async()=>{if(!c){a(!0);return}p(!0);let e=await (0,w.oq)({email:n,validationCode:c});if(p(!1),null==e?void 0:e.error){var s;let n=(null===(s=e.error)||void 0===s?void 0:s.code)||"";(0,P.LC)(n,z)&&O.y.error((0,P.LC)(n,z));return}await N("/v1/accounts"),t(!0)},T=e=>{"Enter"===e.key&&D()};return(0,m.useEffect)(()=>(k(),y),[y,k]),(0,m.useEffect)(()=>{u<=0&&(y(),g.current=!1,l(!1),d(60))},[y,u]),(0,r.jsx)(S.Z,{title:z("console:AccountAndSecurity.Security.Dialog.VerifyIdentity"),onClose:f,className:I().dialog,children:(0,r.jsxs)("div",{className:I().content,children:[(0,r.jsx)("div",{className:"description",children:z("console:AccountAndSecurity.Account.Dialog.CompleteEmailDescription",{email:G(n)})}),(0,r.jsxs)("div",{className:"verify-row",children:[(0,r.jsx)("input",{type:"text",value:c,onChange:E,onKeyDown:T,className:"".concat(i?"error":""),placeholder:z("console:AccountAndSecurity.Account.Dialog.EnterCodeError1")}),(0,r.jsx)("button",{className:"resend ".concat(o||h?"disabled":""),onClick:k,children:o?z("console:AccountAndSecurity.Account.Dialog.Resend",{time:u}):z("console:AccountAndSecurity.Account.Dialog.ResendCode")})]}),(0,r.jsx)("div",{className:"tips ".concat(i?"show":"noshow"),children:z("console:AccountAndSecurity.Account.Dialog.EnterCodeError1")}),(0,r.jsx)(_.f,{className:"confirm ".concat(c?"":"gray"),onClick:D,loading:x,children:z("console:App.Confirm")})]})})},H=e=>new Promise(n=>{let t=document.createElement("div");document.body.appendChild(t);let c=(0,M.createRoot)(t);c.render(m.createElement(F,{...e,onDestroy:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c.unmount(),t.parentNode&&t.parentNode.removeChild(t),n(e)}}))});var V=t(23315),W=t(13060),$=t(98610),B=t(58012),q=t(70109),J=t(63457),K=t(87827),Q=t(20276),Y=t(14692),X=t(65223),ee=t(78894),en=t(25384),et=t(8826),ec=t(17888),es=t.n(ec),er=t(87),ei=t.n(er),ea=t(25654),eo=t(15481),el=t.n(eo),eu=t(49348),ed=t(63833),em=t.
1n(ed);es().extend(ei());let eh={scopes:["User.Read"]},ev=new ee.Lx({auth:{clientId:"db7aca58-a870-44b7-ad4e-8c47871f216c",authority:"https://login.microsoftonline.com/common",navigateToLoginRequestUrl:!0},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback(e,n,t){}}}}),ex=()=>{let{t:e}=(0,ea.$G)(),[n,t]=(0,m.useState)(),[c,s]=(0,m.useState)(),[i,a]=(0,m.useState)(),[o,l]=(0,m.useState)(),{data:u,mutate:d,isLoading:h}=(0,w.mA)(),[x,p]=(0,m.useState)(!1),[A,j]=(0,m.useState)(),[N,y]=(0,m.useState)(u&&u.language),{locale:S}=u||{locale:"en-US"},b=(0,m.useMemo)(()=>({industryOption:P.Qu[S],roleOption:P.n[S]}),[S]);(0,m.useEffect)(()=>{let{extractInfo:e}=u||{};u&&y(u.language),e&&(s(null==e?void 0:e.firstName),l(null==e?void 0:e.company),a(null==e?void 0:e.lastName),t("ja-JP"!==S?null==e?void 0:e.profession:null==e?void 0:e.property))},[u]);let C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!!/^[^\W\d_]{0,50}$/.test(e)},k=async()=>{if(!C(c)){j(e("console:AccountAndSecurity.Account.ErrorTip"));return}j(void 0),p(!0);let t={firstName:c,company:o,lastName:i,profession:n};"ja-JP"===S&&(t.property=n,t.profession=void 0);let[s,r]=await Promise.all([(0,w.ps)(t),(0,w.$0)({language:N})]);p(!1);let a=s&&s.error||r&&r.error;if(a)return;let l=e("console:AccountAndSecurity.Account.SaveSuccess");O.y.success(l),d()},E=async n=>{let[t]=n.target.files,c=t.name.split(".");if(0>["png","jpg","jpeg"].indexOf(c[c.length-1])){O.y.warning(e("console:AccountAndSecurity.Account.TypeTip"));return}if(t.size/1024>500){O.y.warning(e("console:AccountAndSecurity.Account.SizeTip"));return}let{fileUrl:s}=await (0,w.x4)(t);s&&(await (0,w.Mc)({avatar:s}),d())},D=async e=>{y(e)};return(0,r.jsx)(f.V_,{className:"top-box p-0",children:(0,r.jsxs)("div",{className:"top max-w-[1200px] p-8",children:[(0,r.jsx)(J.C,{visible:h}),(0,r.jsx)(f.TH,{className:"mb-8",children:e("console:AccountAndSecurity.Account.MyProfile")}),(0,r.jsxs)("div",{className:"user_photo",children:[(0,r.jsx)(g.Z,{size:80,className:"photo"}),(0,r.jsx)("input",{type:"file",id:"avatar_picker",style:{display:"none"},onChange:E,multiple:!1,accept:".png,.jpg,.jpeg"}),(0,r.jsxs)("label",{className:"upload",htmlFor:"avatar_picker",children:[(0,r.jsx)(v,{className:"size-[14px] text-ink","aria-hidden":!0}),e("console:AccountAndSecurity.Account.UploadPhoto")]})]}),(0,r.jsxs)("div",{className:"message",children:[(0,r.jsxs)("div",{className:"item fullname",children:[(0,r.jsx)("div",{className:"title",children:e("console:AccountAndSecurity.Account.FirstName")}),(0,r.jsx)("input",{type:"text",className:"input",value:c,onInput:e=>{s(e.target.value)}}),A&&(0,r.jsx)("div",{className:"error",children:A})]}),(0,r.jsxs)("div",{className:"item lastname",children:[(0,r.jsx)("div",{className:"title",children:e("console:AccountAndSecurity.Account.LastName")}),(0,r.jsx)("input",{type:"text",className:"input",value:i,onInput:e=>{a(e.target.value)}}),A&&(0,r.jsx)("div",{className:"error",children:A})]}),(0,r.jsxs)("div",{className:"item language",children:[(0,r.jsx)("div",{className:"title",children:e("console:Language.preferred.title")}),(0,r.jsx)(q.Ph,{value:N,onSelect:D,options:[{label:"English",value:"en-US"},{label:"æ¥æ¬èª",value:"ja-JP"},{label:"Espa\xf1ol",value:"es-ES"},{label:"Deutsch",value:"de-DE"},{label:"Fran\xe7ais",value:"fr-FR"},{label:"Italiano",value:"it-IT"},{label:"íêµì´",value:"ko-KR"}],style:{width:"100%",height:"48px"}})]}),(0,r.jsxs)("div",{className:"item company",children:[(0,r.jsx)("div",{className:"title",children:e("console:AccountAndSecurity.Account.CompanyName")}),(0,r.jsx)("input",{type:"text",className:"input",value:o,onInput:e=>{l(e.target.value)}})]}),(0,r.jsxs)("div",{className:"item role",children:[(0,r.jsx)("div",{className:"title",children:e("console:AccountAndSecurity.Account.CurrentRole")}),(0,r.jsx)(q.Ph,{value:n,onSelect:t,options:b.roleOption,style:{width:"100%",height:"48px"}})]})]}),(0,r.jsx)(_.f,{className:"save_btn",onClick:k,loading:x,children:e("console:AccountAndSecurity.Account.SaveChanges")}
1)]})})},ep=()=>{var e,n;let{i18n:t,t:c}=(0,ea.$G)(),{instance:s}=(0,en.Fp)(),{data:o,mutate:l}=(0,w.mA)(),[d,h]=(0,m.useState)(!1),v=null!==(n=null==o?void 0:o.bindingAccounts)&&void 0!==n?n:[],x=v.find(e=>{let{loginType:n}=e;return n===Q.TC.Google}),A=v.find(e=>{let{loginType:n}=e;return n===Q.TC.Microsoft}),g=v.find(e=>{let{loginType:n}=e;return n===Q.TC.apple}),j=v.find(e=>{let{loginType:n}=e;return n===Q.TC.GitHub}),[N,S]=(v.find(e=>{let{loginType:n}=e;return n===Q.TC.Line}),null==o||null===(e=o.email)||void 0===e||e.trim(),(0,m.useState)("")),b=N.trim(),C=/^.+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(b);c("console:AccountAndSecurity.Account.Dialog.NewEmailError"),(0,m.useEffect)(()=>{o&&h(o.accountLevel===Q.IA.EnterpriseChild)},[o]);let k=async()=>{let e=await (0,w.gc)();e&&e.error||l()},E=async()=>{try{let e=await s.loginPopup({...eh,redirectUri:window.location.href});e&&e.idToken&&(await (0,w.xP)({idToken:e.idToken}),l())}catch(e){}},_=async()=>{let e=await (0,w.C9)();e&&e.error||l()},D=async()=>{let e=await (0,w.NO)();e&&e.error||l()},T=()=>{window.location.assign((0,X.eh)({authUrl:K.Zv,clientId:"Octoparse",language:"fr-FR",returnUrl:window.location.href}))},L=async()=>{let e=await (0,w.Ie)();e&&e.error||l()},R=async()=>{var e;if(!o)return;if(null===(e=o.email)||void 0===e?void 0:e.trim()){(0,B.q)({nextDialog:y.v});return}O.y.warning(c("console:AccountAndSecurity.Account.Dialog.NewEmailError"));let n=await (0,y.w)();n&&l()};return(0,r.jsx)(f.V_,{className:"bottom-box p-0",children:(0,r.jsxs)("div",{className:"bottom max-w-[1200px] p-8",children:[(0,r.jsx)(f.TH,{className:"mb-8",children:c("console:AccountAndSecurity.Account.SignInOptions")}),!d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"item email",children:[(0,r.jsx)(u.Z,{className:"size-6 text-[#595959]","aria-hidden":!0}),(0,r.jsxs)("div",{className:"tip",children:[(0,r.jsx)("div",{className:"name",children:c("console:AccountAndSecurity.Account.Email")}),(0,r.jsx)("div",{className:"dec",children:c("console:AccountAndSecurity.Account.EmailDescription")})]}),(0,r.jsx)("div",{className:"user_msg",children:null==o?void 0:o.email}),(0,r.jsx)("div",{className:"btn",onClick:R,children:c("console:AccountAndSecurity.Account.Edit")})]}),(0,r.jsxs)("div",{className:"item google",children:[(0,r.jsx)(el(),{src:"/static/google.svg",alt:"",width:24,height:24}),(0,r.jsxs)("div",{className:"tip",children:[(0,r.jsx)("div",{className:"name",children:c("console:AccountAndSecurity.Account.Google")}),(0,r.jsx)("div",{className:"dec",children:c("console:AccountAndSecurity.Account.GoogleDescription")})]}),x&&(0,r.jsxs)("div",{className:"user_msg",children:[null==x?void 0:x.nickName,null==x?void 0:x.loginName]}),x?(0,r.jsx)("div",{className:"unlink",onClick:k,children:c("console:AccountAndSecurity.Account.Unlink")}):(0,r.jsx)(et.rg,{clientId:P.Cx,children:(0,r.jsx)("div",{children:(0,r.jsx)(et.kZ,{theme:"outline",type:"icon",onSuccess:async e=>{(null==e?void 0:e.credential)&&(await (0,w.mK)({idToken:e.credential}),l())},logo_alignment:void 0,locale:t.language})})})]}),(0,r.jsxs)("div",{className:"item google",children:[(0,r.jsx)(el(),{src:"/static/microsoft.svg",alt:"",width:24,height:24}),(0,r.jsxs)("div",{className:"tip",children:[(0,r.jsx)("div",{className:"name",children:c("console:AccountAndSecurity.Account.Microsoft")}),(0,r.jsx)("div",{className:"dec",children:c("console:AccountAndSecurity.Account.MicrosoftDescription")})]}),A&&(0,r.jsxs)("div",{className:"user_msg",children:[null==A?void 0:A.nickName,null==A?void 0:A.loginName]}),A?(0,r.jsx)("div",{className:"unlink",onClick:_,children:c("console:AccountAndSecurity.Account.Unlink")}):(0,r.jsx)("div",{className:"microsoft",children:(0,r.jsx)(el(),{src:"/static/microsoft.svg",alt:"",width:19,height:19,onClick:E})})]}),(0,r.jsxs)("div",{className:"item google",children:[(0,r.jsx)(i.Z,{className:"size-6 text-[#333]","aria-hidden":!0}),(0,r.jsxs)("div",{className:"tip",children:[(0,r.jsx)("div",{className:"name",children:c("console:AccountAndSecurity.Account.Apple")}),(0,r.jsx)("div",{className:"dec",children:c("console:AccountAndSecurity.Account.AppleDescription")})]}),g&&(0,r.jsxs)("div",{className:"user_msg",children:[null==g?void 0:g.nickName,null==g?void 0:g.loginName]}),g?(0,r.jsx)("div",{className:"unlink",onClick:D,children:c("console:AccountAndSecurity.Account.Unlink")}):(0,r.jsx)("div",{className:"microsoft",children:(0,r.jsx)(eu.ZP,{authOptions:{clientId:"octoparse.com",scope:"name email",redirectURI:"".concat(K.o6,"/console/account-center/account"),state:"octoparse",usePopup:!0},buttonExtraChildren:"Sign in with Apple",onSuccess:async e=>{let n=JSON.stringify(e),{authorization:t}=JSON.parse(n);await (0,w.xE)({idToken:t.id_token}),l()},onError:e=>console.error(e),uiType:"dark",render:e=>(0,r.jsx)("button",{...e,children:(0,r.jsx)("div",{className:"microsoft",children:(0,r.jsx)(i.Z,{className:"size-[19px] text-[#333]","aria-hidden":!0})})})})})]}),(0,r.jsxs)("div",{className:"item github",children:[(0,r.jsx)(a.Z,{className:"size-6 text-[#24292f]","aria-hidden":!0}),(0,r.jsxs)("div",{className:"tip",children:[(0,r.jsx)("div",{className:"name",children:"GitHub"}),(0,r.jsx)("div",{className:"dec",children:c("console:AccountAndSecurity.Account.GitHubDescription")})]}),j&&(0,r.jsx)("div",{className:"user_msg",children:j.loginName}),j?(0,r.jsx)("div",{className:"unlink",onClick:L,children:c("console:AccountAndSecurity.Account.Unlink")}):(0,r.jsx)("button",{"aria-label":"GitHub",className:"microsoft",onClick:T,title:"GitHub",type:"button",children:(0,r.jsx)(a.Z,{className:"size-[19px] text-[#24292f]","aria-hidden":!0})})]}),!1]}),(0,r.jsxs)("div",{className:"item username",children:[(0,r.jsx)(p,{className:"size-6 text-[#595959]","aria-hidden":!0}),(0,r.jsxs)("div",{className:"tip",children:[(0,r.jsx)("div",{className:"name",children:c("console:AccountAndSecurity.Account.Username")}),(0,r.jsx)("div",{className:"dec",children:c("console:AccountAndSecurity.Account.UsernameDescription")})]}),(0,r.jsx)("div",{className:"user_msg",children:null==o?void 0:o.userName}),!d&&(0,r.jsx)("div",{className:"btn",onClick:()=>Z({userName:(null==o?void 0:o.userName)||""}),children:c("console:AccountAndSecurity.Account.Edit")})]})]})})},eA=()=>{let{t:e}=(0,ea.$G)(),{data:n}=(0,w.mA)(),{requireBoundEmail:t}=(0,Y.x)(),c=()=>O.y.warning(e("console:AccountAndSecurity.Account.Dialog.NewEmailError")),s=async()=>{let e=await t({onBeforeEmailDialog:c});e&&(0,B.q)({nextDialog:R.W})},i=async()=>{let e=await t({onBeforeEmailDialog:c});e&&(0,V.K)()};return(0,r.jsx)(f.V_,{className:"password-box p-0",children:(0,r.jsxs)("div",{className:"password max-w-[1200px] p-8",children:[(0,r.jsx)(f.TH,{className:"mb-8",children:e("console:AccountAndSecurity.Security.Password")}),(0,r.jsxs)("div",{className:"content",children:[(0,r.jsxs)("div",{className:"left-content",children:[(0,r.jsx)(o.Z,{className:"size-6 text-[#595959]","aria-hidden":!0}),(0,r.jsx)("div",{className:"cur_pwd",children:e("console:AccountAndSecurity.Security.CurrentPassword")})]}),(0,r.jsx)("div",{className:"".concat((null==n?void 0:n.passwordSet)?"pwd":e("
1console:AccountAndSecurity.Security.NotSet")),children:(null==n?void 0:n.passwordSet)?"â¢â¢â¢â¢â¢â¢â¢â¢":e("console:AccountAndSecurity.Security.NotSet")}),(null==n?void 0:n.passwordSet)?(0,r.jsx)("button",{className:"btn",onClick:s,children:e("console:AccountAndSecurity.Security.Edit")}):(0,r.jsx)("button",{className:"btn",onClick:i,children:e("console:AccountAndSecurity.Security.CreatePassword")})]})]})})},eg=()=>{let{t:e}=(0,ea.$G)(),[n,t]=(0,m.useState)(1),{data:c=[],isLoading:s}=(0,w.bT)(),i=e=>/undefind|darwin|Mac/i.test(e)?d.Z:/win/i.test(e)?A.Z:l.Z,a=e=>/undefind|darwin|Mac/i.test(e)?"MAC":/win/i.test(e)?"Windows":/Android/i.test(e)?"APP-Android":/iOS/i.test(e)?" APP-iOS":"Windows";return(0,r.jsx)(f.V_,{className:"device_manage-box p-0",children:(0,r.jsxs)("div",{className:"device_manage max-w-[1200px] p-8",children:[(0,r.jsx)(J.C,{visible:s}),(0,r.jsx)(f.TH,{className:"mb-2",children:e("console:AccountAndSecurity.Security.DeviceManagement")}),(0,r.jsx)("div",{className:"title_tips",children:e("console:AccountAndSecurity.Security.DeviceManagementDescription")}),(null==c?void 0:c.length)<=0&&!s&&(0,r.jsx)("div",{className:"empty",children:e("console:Overview.RecentTransactions.Table.NoRecordFound")}),(0,r.jsx)("div",{className:"device_list",children:null==c?void 0:c.map((t,s)=>{let{ipAddress:o,ip:l,clientType:u,isOnline:d,loginTime:m,os:h}=t;if(s>n)return;let v=i(h);return(0,r.jsxs)("div",{className:"item",style:{borderBottom:c.length<=2&&s===c.length-1?"none":""},children:[(0,r.jsxs)("div",{className:"item_left",children:[(0,r.jsx)("div",{className:"light ".concat(d?"":"dark")}),(0,r.jsx)(v,{className:"size-12","aria-hidden":!0}),(0,r.jsxs)("div",{className:"message",children:[(0,r.jsx)("div",{className:"name",children:a(h)}),(0,r.jsxs)("div",{className:"time",children:[P.yl[u]," \xb7 ",es()(m).locale("en").fromNow()]}),(0,r.jsxs)("div",{className:"IP",children:[o," ",l]})]})]}),d&&(0,r.jsx)("div",{className:"current",children:e("console:AccountAndSecurity.Security.CurrentDevice")})]},l)})}),c.length>2&&n<5&&(0,r.jsx)("div",{className:"see_more",onClick:()=>t(e=>e+4),children:e("console:AccountAndSecurity.Security.SeeMoreRecords")})]})})},ej=()=>{let{t:e}=(0,ea.$G)(),{data:n}=(0,w.mA)(),t=async()=>{if(null==n?void 0:n.isOnSubscription){(0,$.a)();return}(0,W.h)()};return(0,r.jsx)(f.V_,{className:"delete-box p-0",children:(0,r.jsxs)("div",{className:"delete max-w-[1200px] p-8",children:[(0,r.jsx)("div",{className:"title",children:e("console:AccountAndSecurity.Security.DeleteAccount")}),(0,r.jsx)("div",{className:"dec",children:e("console:AccountAndSecurity.Security.DeleteAccountDescription")}),(0,r.jsx)("button",{className:"btn",onClick:t,children:e("console:AccountAndSecurity.Security.DeleteYourAccount")})]})})},eN=()=>{let[e,n]=(0,m.useState)(!1),{data:t}=(0,w.mA)();return(0,m.useEffect)(()=>{t&&n(t.accountLevel===Q.IA.EnterpriseChild)},[t]),(0,r.jsx)(en.rL,{instance:ev,children:(0,r.jsxs)(f.yl,{className:em().container,children:[(0,r.jsx)(ex,{}),(0,r.jsx)(ep,{}),(0,r.jsx)(eA,{}),(0,r.jsx)(eg,{}),!e&&(0,r.jsx)(ej,{})]})})};eN.consolePage=(0,N.G)({title:"console:AccountAndSecurity.Menu.Account",group:"accountAndSecurity",order:10}),eN.getLayout=j.G;var ef=!0,ey=eN},65223:function(e,n,t){"use strict";t.d(n,{DF:function(){return r},QF:function(){return i},eh:function(){return s}});let c=e=>globalThis.btoa(e),s=e=>{let{authUrl:n,clientId:t,language:s,returnUrl:r}=e,i=new URL("/api/github/bind-redirect",n);return i.searchParams.set("lang",s),i.searchParams.set("returnUrl",c(r)),i.searchParams.set("from","website"),i.searchParams.set("clientId",t),i.toString()},r=e=>{let{authUrl:n,clientId:t,language:s,returnUrl:r}=e,i=new URL("/api/github/redirect",n);return i.searchParams.set("lang",s),i.searchParams.set("returnUrl",c(r)),i.searchParams.set("from","client"),i.searchParams.set("clientId",t),i.searchParams.set("serverTransfer","true"),i.toString()},i=e=>{if(!e.startsWith("#"))return{credential:"",error:""};let n=new URLSearchParams(e.replace(/^#/,""));return{credential:n.get("credential")||"",error:n.get("error")||n.get("error_description")||""}}},53369:function(e){e.exports={content:"changeName_content__ohWDi"}},46161:function(e){e.exports={dialog:"completeEmailVerify_dialog__apd5I",content:"completeEmailVerify_content__iiKWi"}},63833:function(e){e.exports={container:"account_container__l_6f4",currentRoleMenu:"account_currentRoleMenu__58Srq"}}},function(e){e.O(0,[6841,5989,8827,7587,7811,6919,835,6935,2953,6341,9774,2888,179],function(){return e(e.s=80957)}),_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.