Build 545032stable
Module 976860
2,661 characters · in no known chunkDependencies
Required by (185)
5472181383052682107628390432034472450292644606683467319680857092678903806838100983297877199172592077950359718797491102581119357123071123213125484125787125820142662146088163050166978168088194195201349206778221950224536254316254472262763263419267889270045274541279871280041280598285406287790303174308528308726309010310419312625320989327664332456337092338249345942351425352043353428361845365225365347371158376374376728378570381969384048401155404486419534425663432222436405440210448109449054449571450117461007463325464792467884468689474463479026480178482644482857494921495544496092498470501440509963529942530789530951539895540462544036549384575429578839579735580296589877590114595244601623603647608401610101612200617986622168622207627318631670639245639288649308649813650993670735683271699609701273706341710637711950730852741231744753747926748975770101783420784578796415806911807780811611812633815846817649826181826789828162830215835835837057849380859040865949878431880682885437887073887909891812901472919760922068928529946430950344954784963169967198970672976526979186979604979807995198
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:()=>v,PR:()=>S,SB:()=>C,TX:()=>p,UC:()=>N,aX:()=>O,bG:()=>I,m:()=>y,pX:()=>m,sY:()=>R,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 f=!1,h=i.listen((e,t)=>{"REPLACE"!==t&&(f=!0,h())});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 N(){return s}function y(e){return null==e&&(e=i.location.pathname??""),!e.startsWith(c.BVt.HANDOFF)}function C(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 v(){return f}function O(){p()&&(r=null,i.goBack())}function R(){p()&&(r=null,i.goForward())}}