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