Build 555975stable
Module 976860
2,661 characters · in no known chunkDependencies
Required by (188)
547218138301101428390421094320344724502926446066834673196795670926789038068381009832978771992077950359718797491119357123071123213125484125820138617142662146088163050168088191701194195206778221950224536241188254316262763267889270045274541277370279871280041280598281079285406303174304476308528308726309010310419312625320989328100328296332456333369338249345942351425352043353428361597361845362680365225371158376374376728378570379842381969384048385648401155419534425663436405442679448109449571450117463325464792468689479026480084480178482644482857494921495544496092498470504599509963529942530789530951539895540462544036549384575429578839579735580296589877590114595244603647608401610101612200617986622168627318631670639245639288649308649813650993670735683271689035696943699609701273706341710637711950730852739848741046741231744753747926748975770101779669783420784578791105796415806911807780808166811611812633813730815846817649826181826789827641828162830215835835837057859040861283869362885437887073887909901472922068928529939599950344954784963169964395967198970672975858979186979523979604979807988672995198
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";let i,r,s;n.d(t,{EL:()=>A,JK:()=>T,MX:()=>C,PR:()=>S,SB:()=>v,TX:()=>p,UC:()=>y,aX:()=>R,bG:()=>I,m:()=>N,pX:()=>m,sY:()=>O,uh:()=>g}),n(321073),n(323874),n(14289),n(35956);var a=n(830845),o=n(626584),l=n(625494),u=n(824865),c=n(652215);let d=new o.A("Routing/Utils"),_=[c.dSh.DEVELOPER_PORTAL];__OVERLAY__?i=(0,a.sC)():(i=(0,a.zR)()).block((e,t)=>{if("POP"===t&&!p())return!1});let h=!1,f=i.listen((e,t)=>{"REPLACE"!==t&&(h=!0,f())});function p(){if(l._.hasSubscribers(c.jej.MODAL_CLOSE)){let{doesTopModalAllowNavigation:e}=n(192308);if(!e())return!1}return n(712687).A.close(),!0}function E(e,t){return!!("string"==typeof e&&_.some(t=>e.startsWith(t)))&&(d.log(`${t} - route to external path ${e}`),window.dispatchEvent(new Event("beforeunload")),window.location[t](e),!0)}function m(e,t){if(E(e,"assign"))return;d.log(`transitionTo - Transitioning to ${e}`);let n=t?.source,a=t?.sourceLocationStack;if(null==t)i.push(e);else{let n=new URL(e,`https:${window.GLOBAL_ENV.WEBAPP_ENDPOINT}`);i.push({pathname:n.pathname,search:n.search,hash:n.hash,...t})}r=n,s=a}function g(e,t,n,i){d.log(`transitionToGuild - Transitioning to ${JSON.stringify({guildId:e,channelId:t,messageId:n})}`),m(c.BVt.CHANNEL(e,t,n),i)}function A(){return null!=r&&u.n.has(r)}function I(e,t,n){E(e,"replace")||(d.log(`Replacing route with ${e}`),"string"==typeof e?i.replace(e,t):i.replace(e),r=n)}function T(){return i}function S(){return r}function y(){return s}function N(e){return null==e&&(e=i.location.pathname??""),!e.startsWith(c.BVt.HANDOFF)}function v(e){if(null==e&&(e=i.location.pathname??""),e.startsWith(c.BVt.LOGIN))return c.S3d.LOGIN;if(e.startsWith(c.BVt.REGISTER))return c.S3d.REGISTER;if(e.startsWith(c.BVt.INVITE("")))return c.S3d.INVITE;if(e.startsWith(c.BVt.VERIFY))return c.S3d.VERIFY;if(e.startsWith(c.BVt.DISABLE_EMAIL_NOTIFICATIONS))return c.S3d.DISABLE_EMAIL_NOTIFICATIONS;else if(e.startsWith(c.BVt.DISABLE_SERVER_HIGHLIGHT_NOTIFICATIONS))return c.S3d.DISABLE_SERVER_HIGHLIGHT_NOTIFICATIONS;else if(e.startsWith(c.BVt.REJECT_IP))return c.S3d.REJECT_IP;else if(e.startsWith(c.BVt.REJECT_MFA))return c.S3d.REJECT_MFA;else if(e.startsWith(c.BVt.AUTHORIZE_IP))return c.S3d.AUTHORIZE_IP;else if(e.startsWith(c.BVt.AUTHORIZE_PAYMENT))return c.S3d.AUTHORIZE_PAYMENT;else if(e.startsWith(c.BVt.RESET))return c.S3d.RESET;else if(e.startsWith(c.BVt.REPORT))return c.S3d.REPORT;else if(e.startsWith(c.BVt.REPORT_SECOND_LOOK))return c.S3d.REPORT_SECOND_LOOK;else if(e.startsWith(c.BVt.ACCOUNT_REVERT("")))return c.S3d.ACCOUNT_REVERT;return e}function C(){return h}function R(){p()&&(r=null,i.goBack())}function O(){p()&&(r=null,i.goForward())}}