(this.webpackChunkdiscord_app=this.webpackChunkdiscord_app||[]).push([[65494],{148267:(e,t,r)=>{e.exports=r.p+"0f4d1ff76624bb45a3fee4189279ee92.svg"},359074:(e,t,r)=>{e.exports=r.p+"375217725f8ad1df6310e6738a7306e4.svg"},396679:(e,t,r)=>{e.exports=r.p+"a5844a7e2342caa1029833d27d976e99.svg"},250287:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(785893),o=(r(667294),r(701614)),s=r(528180),a=r(558820),i=r(488462),l=r(473708),c=r(913957),u=r.n(c),f=r(518280),d=r.n(f);const p=function(e){var t=e.title,c=e.onVerify,f=e.authBoxClassName,p=e.captchaService,h=void 0===p?o.hP.RECAPTCHA:p,m=e.sitekey;return(0,n.jsxs)(a.ZP,{className:f,children:[(0,n.jsx)("img",{alt:"",src:r(148267),className:d().marginBottom20}),null!=t?(0,n.jsx)(a.Dx,{className:d().marginBottom8,children:t}):null,(0,n.jsx)(a.DK,{className:d().marginBottom40,children:l.Z.Messages.BEEP_BOOP}),(0,n.jsx)("div",{className:u().flexCenter,children:(0,n.jsx)(s.Z,{onVerify:c,theme:i.BR.DARK,captchaService:h,sitekey:m})})]})}}, 144936:(e,t,r)=>{"use strict";r.d(t,{Z:()=>P});var n=r(785893),o=r(667294),s=r(294184),a=r.n(s),i=r(517563),l=r(289283),c=r(202351),u=r(744564),f=r(84441),d=r(645106),p=r(845882),h=r(686874),m=r(736818),v=r(558820),g=r(930948),b=r(2590),y=r(473708),x=r(518280),S=r.n(x);function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t,r,n,o,s,a){try{var i=e[s](a),l=i.value}catch(e){r(e);return}i.done?t(l):Promise.resolve(l).then(n,o)}function N(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var s=e.apply(t,r);function a(e){O(s,n,o,a,i,"next",e)}function i(e){O(s,n,o,a,i,"throw",e)}a(void 0)}))}}function j(e){j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return j(e)}function E(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?C(e):t}function A(e,t){A=Object.setPrototypeOf||function(e,t){e.__proto__=t;return e};return A(e,t)} var T=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})));return!0}catch(e){return!1}}();return function(){var r,n=j(e);if(t){var o=j(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return E(this,r)}}var w=function(e,t){var r,n,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(s){return function(i){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;(n=0, o)&&(s=[2&s[0],o.value]);switch(s[0]){case 0:case 1:o=s;break;case 4:a.label++;return{value:s[1],done:!1};case 5:a.label++;n=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]{"use strict";r.d(t,{Z:()=>o});var n=r(517563);function o(e){var t=null!=e.hash&&""!==e.hash?(0,n.parse)(e.hash):null;if(null!=(null==t?void 0:t.token))return t.token;var r=null!=e.search&&""!==e.search?(0,n.parse)(e.search):null;return null!=(null==r?void 0:r.token)?r.token:null}},153081:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(785893),o=(r(667294),r(707961)),s=r(836485),a=r(107364),i=r(558820),l=r(473708),c=r(810436),u=r.n(c),f=r(518280),d=r.n(f);function p(e){var t=e.title,r=e.subtitle,c=e.error,f=e.onSubmit,p=e.onCancel;return(0,n.jsxs)(a.Z,{direction:a.Z.Direction.VERTICAL,children:[(0,n.jsx)(i.Dx,{className:d().marginBottom8,children:t}),(0,n.jsx)(i.DK,{className:u().subTitle, children:r}),(0,n.jsxs)("div",{children:[(0,n.jsx)(s.Z,{inputClassName:u().codeInput,onSubmit:f}),null!=c?(0,n.jsx)(o.xvT,{className:u().error,variant:"text-sm/normal",children:c}):null]}),null!=p&&(0,n.jsx)(o.zxk,{className:u().button,onClick:p,color:o.zxk.Colors.PRIMARY,children:l.Z.Messages.CANCEL})]})}},349979:(e,t,r)=>{"use strict";r.d(t,{W:()=>n,Z:()=>T});var n,o=r(785893),s=r(667294),a=r(294184),i=r.n(a),l=r(202351),c=r(707961),u=r(84441),f=r(971402),d=r(722406),p=r(736818),h=r(793461),m=r(473903),v=r(186440),g=r(652591),b=r(749565),y=r(196644),x=r(873553),S=r(22724),C=r(2590),O=r(473708),N=r(347277),j=r.n(N);function E(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r;return e}!function(e){e[e.LOGIN_REQUIRED=0]="LOGIN_REQUIRED";e[e.SWITCHED=1]="SWITCHED";e[e.REMOVED=2]="REMOVED"}(n||(n={}));function A(e){var t=e.actionText,r=e.user,s=e.onAction,a=(0,l.cj)([m.default,h.Z,p.default],(function(){return{ currentUser:m.default.getCurrentUser(),hidePrivateData:h.Z.hidePersonalInformation,isAuthenticated:p.default.isAuthenticated()}})),S=a.currentUser,N=a.hidePrivateData,A=a.isAuthenticated,T=new d.Z(r),_=A&&(null==S?void 0:S.id)===T.id,w=r.tokenStatus===x.q.INVALID,I=N||T.isPomelo()?null:"#".concat(T.discriminator),P=null;_?P=(0,o.jsx)(c.xvT,{variant:"text-sm/semibold",className:j().hintText,color:"text-positive",children:O.Z.Messages.SWITCH_ACCOUNTS_ACTIVE_ACCOUNT}):w&&(P=(0,o.jsx)(c.xvT,{variant:"text-sm/semibold",className:j().hintText,color:"text-danger",children:O.Z.Messages.SWITCH_ACCOUNTS_INVALID_TOKEN}));return(0,o.jsx)("div",{className:j().accountCard,children:(0,o.jsxs)("div",{className:j().userDetails,children:[(0,o.jsx)(c.qEK,{src:T.getAvatarURL(void 0,40),size:c.EFr.SIZE_40,"aria-label":r.username}),(0,o.jsxs)("div",{className:i()(j().usernameSection,E({},j().hasActionMaxWidth,!_)),children:[(0,o.jsxs)("div",{className:j().username,children:[(0,o.jsx)(c.xvT,{ variant:"text-md/semibold",color:"header-primary",className:j().textOverflow,children:b.ZP.getUserTag(T,{mode:"username",identifiable:N?"never":"always"})}),(0,o.jsx)(c.xvT,{color:"header-secondary",variant:"text-sm/normal",children:I})]}),P]}),(0,o.jsxs)("div",{className:j().userActions,children:[!_&&(0,o.jsx)(c.zxk,{onClick:function(){if(w)s(n.LOGIN_REQUIRED,r.id);else{g.default.track(C.rMx.MULTI_ACCOUNT_SWITCH_ATTEMPT,{location:{section:C.jXE.MANAGE_ACCOUNTS_MODAL}});y.yD(r.id);s(n.SWITCHED,r.id)}},color:c.zxk.Colors.PRIMARY,children:w?O.Z.Messages.SWITCH_ACCOUNTS_ACTION_LOG_IN:t}),(0,o.jsx)(c.zxk,{className:j().userActionMenu,onClick:function(e){(0,f.vq)(e,(function(e){var t=e.onSelect;return(0,o.jsx)(c.v2r,{"aria-label":O.Z.Messages.SWITCH_ACCOUNTS_MANAGE_ACCOUNT,navId:"manage-multi-account",onClose:f.Zy,onSelect:t,children:(0,o.jsx)(c.sNh,{id:"remove-account",label:O.Z.Messages.SWITCH_ACCOUNTS_REMOVE_ACCOUNT,action:function(){!function(){u.Z.logout(null,r.id).finally((function(){ y.Zd(r.id)}));var e={};null!=S?e.section=C.jXE.MANAGE_ACCOUNTS_MODAL:e.page=C.Usc.LOGIN;g.default.track(C.rMx.MULTI_ACCOUNT_ACCOUNT_REMOVE,{location:e});s(n.REMOVED,r.id)}();null!=t&&t()},color:"danger"})})}))},size:c.zxk.Sizes.ICON,look:c.zxk.Looks.BLANK,color:c.zxk.Colors.WHITE,"aria-label":O.Z.Messages.MORE_OPTIONS,children:(0,o.jsx)(v.Z,{className:j().overflowMenuIcon})})]})]})})}function T(e){var t=e.actionText,r=e.onAction,n=(0,S.L)(),a=n.isLoading,i=n.multiAccountUsers;return(0,o.jsx)("div",{className:j().list,children:a?(0,o.jsx)(c.$jN,{}):i.map((function(e,n){return(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)(A,{user:e,actionText:t,onAction:r},e.id),i.length-1!==n&&(0,o.jsx)("div",{role:"separator",className:j().separator})]},e.id)}))})}},53540:(e,t,r)=>{"use strict";r.d(t,{Nz:()=>n,o9:()=>s});var n;!function(e){e.PHONE="phone";e.EMAIL="email"}(n||(n={}));var o=/^[-() \d]+$/;function s(e,t){return e===n.PHONE?!(r=t,r.startsWith("+")):e!==n.EMAIL&&(!(t.length<3)&&o.test(t));var r }},78501:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n=r(785893),o=r(667294),s=r(294184),a=r.n(s),i=r(707961),l=r(443812),c=r(53540),u=r(248088),f=r(202351),d=r(316878),p=r(426797),h=r(376845),m=r(33031),v=r.n(m);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r