"use strict";(this.webpackChunkdiscord_app=this.webpackChunkdiscord_app||[]).push([["22454"],{150063:function(e,t,n){n.d(t,{Y:()=>r});var i=n(570140);function r(e){i.Z.dispatch({type:"APP_VIEW_SET_HOME_LINK",link:e})}},941129:function(e,t,n){n.d(t,{S:()=>r,u:()=>l});let i=(0,n(818083).B)({kind:"user",id:"2023-01_consumer_education_launch",label:"Safety Consumer Education Launch - Block/Mute",defaultConfig:{bucket:0,enabled:!1},treatments:[{id:1,label:"Mute",config:{bucket:1,enabled:!0}},{id:2,label:"Block",config:{bucket:2,enabled:!0}}]});function r(){return i.useExperiment({location:"b85a21_1"},{autoTrackExposure:!0}).enabled}function l(){return i.useExperiment({location:"b85a21_2"},{autoTrackExposure:!1}).bucket}},82892:function(e,t,n){n.d(t,{x:()=>s});var i=n(512722),r=n.n(i),l=n(442837),o=n(594174);let s=()=>{let e=(0,l.e7)([o.default],()=>o.default.getCurrentUser());return r()(null!=e,"user has to be signed in before accessing shop"),e}},956472:function(e,t,n){n.d(t,{Ip:()=>f,T4:()=>c,oQ:()=>g,oo:()=>h}),n(539854);var i=n(932563),r=n(822857),l=n(594174),o=n(74538),s=n(215023),a=n(981631);let u=e=>{var t,n,i,r;let{product:l,isPremiumUser:o}=e;return null!=(r=null==(i=l.prices[o?a.tuJ.PREMIUM_TIER_2:a.tuJ.DEFAULT])||null==(n=i.countryPrices)||null==(t=n.prices)?void 0:t.slice(0,2))?r:[]},c=e=>{var t;let{product:n,isPremiumUser:i}=e;return null!=(t=u({product:n,isPremiumUser:i}).find(e=>e.currency===a.pKx.DISCORD_ORB))?t:null},d=e=>{let{product:t,isPremiumUser:n}=e,i=u({product:t,isPremiumUser:n}),{enabled:l}=(0,r.CE)({location:"getShopBasePricingData"}),o=l?i.find(e=>e.currency===a.pKx.DISCORD_ORB):void 0,s=i.find(e=>e.currency!==a.pKx.DISCORD_ORB),c=1===i.length&&null!=o;return{orbPrice:o,fiatPrice:s,isOrbExclusive:c}},h=e=>{let{product:t,isPremiumUser:n,tab:i}=e,{orbPrice:r,fiatPrice:l,isOrbExclusive:o}=d({product:t,isPremiumUser:n}),a=[];return i===s.AW.ORBS?null!=r&&(a=[r]):(null!=l&&a.push(l),null!=r&&a.push(r)),{orbPrice:r,fiatPrice:l,isOrbExclusive:o,displayPrices:a}},p=e=>{var t;let{hasSufficientOrbs:n,orbPrice:i,fiatPrice:r,isOrbExclusive:l}=e,o=[];null!=i&&null!=r?n?o.push(i,r):o.push(r,i):null!=i?o.push(i):null!=r&&o.push(r);let s=o.length>0&&(null==(t=o[0])?void 0:t.currency)===a.pKx.DISCORD_ORB;return{checkoutEligiblePrices:o,isOrbExclusive:l,hasSufficientOrbs:n,shouldCheckoutWithOrbs:s}},g=e=>{let{product:t}=e,n=(0,i.zl)(),r=l.default.getCurrentUser(),{orbPrice:s,fiatPrice:a,isOrbExclusive:u}=d({product:t,isPremiumUser:o.ZP.canUseCollectibles(r)}),c=null!=s&&null!=n&&n>=s.amount,{shouldCheckoutWithOrbs:h}=p({orbPrice:s,fiatPrice:a,isOrbExclusive:u,hasSufficientOrbs:c});return h};function f(e){let{product:t,isPremiumUser:n,tab:r}=e,{orbPrice:l,fiatPrice:o,isOrbExclusive:s,displayPrices:a}=h({product:t,isPremiumUser:n,tab:r}),u=(0,i.V_)(null!=l?l.amount:null);return function(e){for(var t=1;ti});let i=(0,n(818083).B)({kind:"user",id:"2023-06_guild_boosting_legacy_pricing_fix_experiment",label:"Guild Boosting Legacy Pricing Fix Experiment",defaultConfig:{enabled:!1},treatments:[{id:1,label:"Use Invoice Preview for Boost Pricing",config:{enabled:!0}}]})},562511:function(e,t,n){n.d(t,{A2:()=>f,S3:()=>g});var i=n(73800),r=n(442837),l=n(704215),o=n(570140),s=n(645041),a=n(271383),u=n(430824),c=n(594174),d=n(731722),h=n(864133),p=n(981631);function g(e){let t=function(e){let t=(0,s.FT)(l.C.ADOPT_CLAN_IDENTITY_NOTICE,null!=e?e:p.lds);return(0,r.e7)([u.Z,c.default,a.ZP],()=>{var t,n;if(null===e)return!1;let i=u.Z.getGuild(e);if(void 0===i||!(0,d.up)(i)||null==i.profile||null===i.profile.tag)return!1;let r=c.default.getCurrentUser();if(void 0===r||(null==(t=r.primaryGuild)?void 0:t.identityGuildId)===i.id&&(null==(n=r.primaryGuild)?void 0:n.tag)===i.profile.tag)return!1;let l=a.ZP.getMember(e,r.id);return null!=l&&!l.isPending},[e])&&!t}(e);return!function(e){let t=(0,s.FT)(l.C.ADOPT_CLAN_IDENTITY_NOTICE,null!=e?e:p.lds),n=(0,r.e7)([h.Z],()=>null===e?null:h.Z.getGuildLastSeenInfo(e)),a=(0,r.e7)([c.default],()=>{var e;return null==(e=c.default.getCurrentUser())?void 0:e.primaryGuild}),d=(0,r.e7)([u.Z],()=>{var t,n;return null==(n=u.Z.getGuild(e))||null==(t=n.profile)?void 0:t.tag});if(i.useEffect(()=>{t&&null===n&&null!=e&&null!=d&&o.Z.dispatch({type:"GUILD_TAG_CHANGED_COACHMARK_SEEN",guildId:e,lastSeenInfo:{tag:d}})},[e,d,t,n]),null==d||(null==a?void 0:a.identityGuildId)===e&&(null==a?void 0:a.tag)===d)return!1;let g=(null==a?void 0:a.identityGuildId)===e&&(null==a?void 0:a.tag)===null,f=null===n||(null==n?void 0:n.tag)===d;return g&&!f&&t}(e)?t?"available":null:"changed"}function f(e){return null!==g(e)}},291533:function(e,t,n){n.d(t,{G:()=>h});var i=n(442837),r=n(704215),l=n(243778),o=n(999382),s=n(667105),a=n(819640),u=n(562511),c=n(46140);let d=12633==n.j?18e4:null;function h(e){let t=(0,u.A2)(e),n=(0,i.e7)([o.Z],()=>o.Z.isOpen()),h=(0,i.e7)([a.Z],()=>a.Z.hasLayers()),p=(0,s.Ws)({location:c.dr.QUESTS_BAR});return(0,l.bf)(t&&!n&&!h&&p?r.z.GUILD_TAG_AVAILABLE_COACHMARK:null,{cooldownDurationMs:d})}},50697:function(e,t,n){n.d(t,{m:()=>u});var i=n(442837),r=n(440051),l=n(695346),o=n(314897),s=n(709054),a=n(7093);let u=()=>{let{showNewHelpTooltip:e}=r.Y.useExperiment({location:"useCanSeeExpiringStatusCoachmark"},{autoTrackExposure:!1}),t=l.Cr.useSetting(),n=(0,a.Z)(e=>e.isOpen),u=(0,i.e7)([o.default],()=>o.default.getId());return!((null!=u?s.default.extractTimestamp(u):0)>new Date("2025-02-01").getTime())&&!n&&e&&null!=t&&"0"!==t}},7093:function(e,t,n){n.d(t,{Z:()=>i});let i=(0,n(97519).U)(()=>({isOpen:null,shouldRenderTenureLevelUp:!1}))},440051:function(e,t,n){n.d(t,{Y:()=>i});let i=(0,n(818083).B)({kind:"user",id:"2025-01_expiring_status_v2",label:"Expiring status Experiment V2",defaultConfig:{showTempStatusOptions:!1,expiringStatusProfileFeedback:!1,hasNewStrings:!1,hasDefaultClickOption:!1,showNewHelpTooltip:!1,hasButtonStyling:!1},treatments:[{id:1,label:"Allow expiring status with profile feedback",config:{showTempStatusOptions:!0,expiringStatusProfileFeedback:!0,hasNewStrings:!0,hasDefaultClickOption:!1,showNewHelpTooltip:!1,hasButtonStyling:!1}},{id:2,label:"Default click expiry and tooltip",config:{showTempStatusOptions:!0,expiringStatusProfileFeedback:!0,hasNewStrings:!0,hasDefaultClickOption:!0,showNewHelpTooltip:!0,hasButtonStyling:!1}},{id:3,label:"New button inline option styling",config:{showTempStatusOptions:!0,expiringStatusProfileFeedback:!0,hasNewStrings:!0,hasDefaultClickOption:!0,showNewHelpTooltip:!1,hasButtonStyling:!0}}]})},955204:function(e,t,n){n.d(t,{EP:()=>a,F7:()=>d,LG:()=>u,hn:()=>s,oX:()=>c});var i,r,l=n(641033),o=n(388032),s=((i={})[i.ENABLE_POGGERMODE=0]="ENABLE_POGGERMODE",i[i.DISABLE_POGGERMODE=1]="DISABLE_POGGERMODE",i[i.PING_SOMEONE=2]="PING_SOMEONE",i[i.PING_ME=3]="PING_ME",i[i.COMBO_MULTI_LEVEL_1=4]="COMBO_MULTI_LEVEL_1",i[i.COMBO_MULTI_LEVEL_2=5]="COMBO_MULTI_LEVEL_2",i[i.COMBO_MULTI_LEVEL_3=6]="COMBO_MULTI_LEVEL_3",i[i.COMBO_MULTI_LEVEL_4=7]="COMBO_MULTI_LEVEL_4",i[i.TOTAL_SCORE_LEVEL_1=8]="TOTAL_SCORE_LEVEL_1",i[i.TOTAL_SCORE_LEVEL_2=9]="TOTAL_SCORE_LEVEL_2",i[i.TOTAL_SCORE_LEVEL_3=10]="TOTAL_SCORE_LEVEL_3",i[i.TOTAL_SCORE_LEVEL_4=11]="TOTAL_SCORE_LEVEL_4",i[i.TOTAL_SCORE_LEVEL_5=12]="TOTAL_SCORE_LEVEL_5",i[i.VISITOR_100=13]="VISITOR_100",i[i.CUSTOMIZE_CONFETTI=14]="CUSTOMIZE_CONFETTI",i[i.MORE=15]="MORE",i[i.COMBO_VALUE_LEVEL_1=16]="COMBO_VALUE_LEVEL_1",i[i.COMBO_VALUE_LEVEL_2=17]="COMBO_VALUE_LEVEL_2",i[i.COMBO_VALUE_LEVEL_3=18]="COMBO_VALUE_LEVEL_3",i[i.COMBO_VALUE_LEVEL_4=19]="COMBO_VALUE_LEVEL_4",i),a=((r={})[r.COMMON=0]="COMMON",r[r.UNCOMMON=1]="UNCOMMON",r[r.RARE=2]="RARE",r[r.EPIC=3]="EPIC",r[r.LEGENDARY=4]="LEGENDARY",r);let u={0:{id:0,name:()=>o.intl.string(o.t.CRLcOz),description:()=>o.intl.string(o.t["9+4/CA"]),rarity:0,hideDescriptionUntilUnlock:!1},1:{id:1,name:()=>o.intl.string(o.t.PlhJTk),description:()=>o.intl.string(o.t["+QxFMj"]),rarity:1,hideDescriptionUntilUnlock:!1},13:{id:13,name:()=>o.intl.string(o.t["+91bDw"]),description:()=>o.intl.string(o.t["6ZakdX"]),rarity:4,hideDescriptionUntilUnlock:!0,onAction:()=>{window.open("https://www.youtube.com/watch?v=dQw4w9WgXcQ","_blank")}},14:{id:14,name:()=>o.intl.string(o.t.OdenKS),description:()=>o.intl.string(o.t["06/08P"]),rarity:0,hideDescriptionUntilUnlock:!1},15:{id:15,name:()=>o.intl.string(o.t["C88+vr"]),description:()=>o.intl.string(o.t.w4SYND),rarity:1,hideDescriptionUntilUnlock:!1},2:{id:2,name:()=>o.intl.string(o.t["7q1avL"]),description:()=>o.intl.string(o.t.XwAgCA),rarity:0,hideDescriptionUntilUnlock:!1},3:{id:3,name:()=>o.intl.formatToMarkdownString(o.t.NgKcOj,{}),description:()=>o.intl.string(o.t.jmzQrK),rarity:1,hideDescriptionUntilUnlock:!1},4:{id:4,name:()=>o.intl.string(o.t.q3ekQ0),description:()=>o.intl.string(o.t.KDk6IC),rarity:0,hideDescriptionUntilUnlock:!1,checkUnlock:e=>e.multiplier>=2},5:{id:5,name:()=>o.intl.string(o.t.k6Nlxc),description:()=>o.intl.string(o.t["A4Bi5+"]),rarity:1,hideDescriptionUntilUnlock:!1,checkUnlock:e=>e.multiplier>=4},6:{id:6,name:()=>o.intl.string(o.t["EPQN5+"]),description:()=>o.intl.string(o.t["NS/Qvb"]),rarity:2,hideDescriptionUntilUnlock:!1,checkUnlock:e=>e.multiplier>=5},7:{id:7,name:()=>o.intl.string(o.t["H/xC9v"]),description:()=>o.intl.string(o.t.NECb4u),rarity:2,hideDescriptionUntilUnlock:!1,checkUnlock:e=>e.multiplier>=7},8:{id:8,name:()=>o.intl.string(o.t["24aD8v"]),description:()=>o.intl.string(o.t.YtKoSU),rarity:3,hideDescriptionUntilUnlock:!0,checkUnlock:e=>430===(0,l.Eo)(e)},9:{id:9,name:()=>o.intl.string(o.t["vZm48/"]),description:()=>o.intl.string(o.t.QKxjeX),rarity:3,hideDescriptionUntilUnlock:!0,checkUnlock:e=>555===(0,l.Eo)(e)},10:{id:10,name:()=>o.intl.string(o.t.SxLn19),description:()=>o.intl.string(o.t["7tuql5"]),rarity:3,hideDescriptionUntilUnlock:!0,checkUnlock:e=>898===(0,l.Eo)(e)},11:{id:11,name:()=>o.intl.string(o.t.hK1RPj),description:()=>o.intl.string(o.t.okzLOT),rarity:4,hideDescriptionUntilUnlock:!0,checkUnlock:e=>1337===(0,l.Eo)(e)},12:{id:12,name:()=>o.intl.string(o.t.Pa8olZ),description:()=>o.intl.string(o.t.KSzHjo),rarity:4,hideDescriptionUntilUnlock:!0,checkUnlock:e=>2048===(0,l.Eo)(e)},16:{id:16,name:()=>o.intl.string(o.t.lXhhWV),description:()=>o.intl.string(o.t.OxvobG),rarity:2,hideDescriptionUntilUnlock:!0,checkUnlock:e=>64===e.value},17:{id:17,name:()=>o.intl.string(o.t.M4ErfH),description:()=>o.intl.string(o.t["sjzx+/"]),rarity:3,hideDescriptionUntilUnlock:!0,checkUnlock:e=>88===e.value},18:{id:18,name:()=>o.intl.string(o.t.RawXaG),description:()=>o.intl.string(o.t.iOsWLy),rarity:3,hideDescriptionUntilUnlock:!0,checkUnlock:e=>99===e.value},19:{id:19,name:()=>o.intl.string(o.t.irv64O),description:()=>o.intl.string(o.t.shGZw8),rarity:4,hideDescriptionUntilUnlock:!0,checkUnlock:e=>113===e.value}};function c(e){return u[e]}let d=e=>{switch(e){case 0:return{color:"#1ABC9C"};case 1:return{color:"#3498DB"};case 2:return{color:"#9B59B6"};case 3:return{color:"#E91E63"};case 4:return{color:"#E67E22"}}}},818765:function(e,t,n){n.d(t,{Z:()=>T}),n(388685),n(539854);var i=n(570140),r=n(317770),l=n(460181),o=n(474873),s=n(314897),a=n(19780),u=n(944486),c=n(111583),d=n(351780),h=n(843693),p=n(981631);let g=(0,l.uk)("poggermode_applause",o.Z.getSoundpack()),f=!1,E=!1,_=[],m=null,O=()=>{f||(g.loop(),f=!0)},b=()=>{g.stop(),f=!1},C=()=>{let e=d.Z.isEnabled(),t=d.Z.comboSoundsEnabled;return!!e&&!!t&&null!=u.Z.getChannelId()},v=()=>{if(0===_.length||!C()||E)return;E=!0;let[e,t]=_[_.length-1];(0,l.GN)(e,t),m=setTimeout(y,1e3)},y=()=>{_.pop(),E=!1,v()},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=a.Z.isConnected();_.push([e,t*(n?.1:1)]),v()};class k extends r.Z{_initialize(){h.ZP.addChangeListener(this.startAudio),i.Z.subscribe("RTC_CONNECTION_STATE",this.setVolume),i.Z.subscribe("TYPING_STOP",this.stopAudio),i.Z.subscribe("TYPING_STOP_LOCAL",this.stopAudio),i.Z.subscribe("CHANNEL_SELECT",this.stopAudio),i.Z.subscribe("POGGERMODE_SETTINGS_UPDATE",this.stopAudio)}_terminate(){h.ZP.removeChangeListener(this.startAudio),i.Z.unsubscribe("RTC_CONNECTION_STATE",this.setVolume),i.Z.unsubscribe("TYPING_STOP",this.stopAudio),i.Z.unsubscribe("TYPING_STOP_LOCAL",this.stopAudio),i.Z.unsubscribe("CHANNEL_SELECT",this.stopAudio),i.Z.unsubscribe("POGGERMODE_SETTINGS_UPDATE",this.stopAudio),clearTimeout(m)}setVolume(e){let{state:t}=e;t===p.hes.RTC_CONNECTED?g.volume=.1:g.volume=1}handleTypingStop(e){let{userId:t}=e;s.default.getId()===t&&b()}stopAudio(){b()}startAudio(){var e;if(!C())return;let t=u.Z.getChannelId();if(null==t)return;let n=s.default.getId(),i=c.Z.isTyping(t,n),r=h.ZP.getUserCombo(n,t),l=null!=(e=null==r?void 0:r.multiplier)?e:1;i&&l>=7?O():b()}playAchievementUnlockSound(){C()&&L("poggermode_achievement_unlock")}}let T=new k},510273:function(e,t,n){n.d(t,{Z:()=>p}),n(953529);var i=n(255367),r=n(73800),l=n(120356),o=n.n(l),s=n(481060),a=n(955204),u=n(818765),c=n(674680),d=n(127058);let h=e=>{let{color:t}=e;return(0,i.jsxs)("svg",{width:"48",height:"28",viewBox:"0 0 55 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("rect",{x:"10.1968",y:"7",width:"14.4203",height:"14.4203",transform:"rotate(45 10.1968 7)",className:d.__invalid_toastBG}),(0,i.jsx)("rect",{x:"27.3936",y:"0.59021",width:"23.4851",height:"23.4851",transform:"rotate(45 27.3936 0.59021)",className:d.__invalid_toastBG}),(0,i.jsx)("rect",{x:"44.5903",y:"7",width:"14.4203",height:"14.4203",transform:"rotate(45 44.5903 7)",className:d.__invalid_toastBG}),(0,i.jsx)("rect",{x:"10.1968",y:"13",width:"6",height:"6",transform:"rotate(45 10.1968 13)",fill:t}),(0,i.jsx)("path",{d:"M27.3936 4.39355L34.1233 16.2873L27.3936 28.1811L20.6638 16.2873L27.3936 4.39355Z",fill:t}),(0,i.jsx)("rect",{x:"44.5903",y:"13",width:"6",height:"6",transform:"rotate(45 44.5903 13)",fill:t})]})};function p(e){let{achievement:t,unlocked:n}=e,{name:l,description:p,rarity:g,hideDescriptionUntilUnlock:f,onAction:E}=t,{color:_}=(0,a.F7)(g);r.useEffect(()=>{let e=setTimeout(()=>{u.Z.playAchievementUnlockSound()},50);return()=>{clearTimeout(e)}},[]);let m=null!=E&&n,O=m?s.P3F:"div";return(0,i.jsxs)(O,{className:o()(d.container,m&&d.actionable),onClick:()=>{m&&E()},children:[(0,i.jsx)("div",{className:d.iconContainer,children:(0,i.jsx)(c.Z,{achievementId:t.id,size:c.Z.Sizes.SIZE_40,unlocked:n})}),(0,i.jsxs)("div",{className:d.__invalid_nameContainer,children:[(0,i.jsx)(s.Text,{variant:"text-md/semibold",color:"header-primary",children:l()}),(0,i.jsx)(s.Text,{variant:"text-xs/medium",color:"header-secondary",children:f&&!n?"?????":p()})]}),(0,i.jsx)("div",{className:d.flair,children:(0,i.jsx)(h,{color:_})})]})}},674680:function(e,t,n){n.d(t,{Z:()=>f});var i=n(255367);n(73800);var r=n(780384),l=n(481060),o=n(410030),s=n(44315),a=n(889901),u=n(955204),c=n(231338),d=n(835115);function h(e){for(var t=1;ts});var i=n(442837),r=n(276444),l=n(912244),o=n(232076);let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{enabled:n,eligibleToFetch:s}=(0,l.N)(e);(0,o.B)(e,!s||t);let a=(0,i.e7)([r.Z],()=>r.Z.getIsEligibleToSendReferrals());return n&&a}},900683:function(e,t,n){n.d(t,{Z:()=>d,e:()=>c});var i=n(255367);n(73800);var r=n(120356),l=n.n(r),o=n(481060),s=n(388032),a=n(978862),u=n(531599);function c(){return(0,i.jsxs)("div",{className:l()(a.upsellFooter,a.reverseTrialUpsellContainer),children:[(0,i.jsx)("img",{src:u.Z,alt:"reverse trial unlock",className:a.unlockIcon}),(0,i.jsx)(o.Text,{variant:"text-sm/medium",className:a.upsellText,children:s.intl.format(s.t.f5VHKi,{})})]})}function d(e){let{text:t,color:n}=e;return(0,i.jsxs)("div",{className:a.upsellFooter,children:[(0,i.jsx)(o.SrA,{size:"md",className:a.upsellFooterIcon,color:n}),(0,i.jsx)("div",{children:t})]})}},304445:function(e,t,n){n.d(t,{Z:()=>c}),n(388685),n(415506);var i=n(572299),r=n(38618),l=n(905423),o=n(622143),s=n(703656),a=n(981631);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let c=new class{initialize(){this.cleanup(),this.unlistenHistory=(0,s.s1)().listen(this.handleRouteChange);let{pathname:e}=(0,s.s1)().location;l.Z.getState().resetPath(e),this.unlistenKeyboardChange=l.Z.subscribe(this.handleKeybindRouteChange),r.Z.addChangeListener(this.handleConnectionChange)}executeRouteRewrites(e,t){if(this.routeChangeCount+=1,this.routeChangeCount<10)for(let n of this.rewrites){let r=(0,s.s1)().location.pathname,l=n(e,t);if(null!=l)return(0,i.n)({message:"RouteManager.handleRouteChange: A route rewrite is replacing the current route",data:{replacePath:l.path,previousPath:r}}),(0,s.dL)(l.path,l.state),!0}else throw Error("RouteManager: Something has gone horribly wrong with rewrites");return!1}cleanup(){var e,t;null==(e=this.unlistenHistory)||e.call(this),this.unlistenHistory=void 0,null==(t=this.unlistenKeyboardChange)||t.call(this),this.unlistenKeyboardChange=void 0,r.Z.removeChangeListener(this.handleConnectionChange)}addRouteChangeListener(e){return null!=this.unlistenHistory&&e((0,s.s1)().location,"REPLACE"),this.listeners.add(e),()=>this.removeRouteChangeListener(e)}addRouteRewriter(e){if(null!=this.unlistenHistory){let t=e((0,s.s1)().location,(0,s.s1)().action);null!=t&&(0,s.dL)(t.path,t.state)}return this.rewrites.add(e),()=>this.removeRouteRewriter(e)}removeRouteChangeListener(e){this.listeners.delete(e)}removeRouteRewriter(e){this.rewrites.delete(e)}getHistory(){return(0,s.s1)()}constructor(){u(this,"unlistenHistory",void 0),u(this,"unlistenKeyboardChange",void 0),u(this,"rewrites",new Set),u(this,"listeners",new Set),u(this,"routeChangeCount",0),u(this,"timer",-1),u(this,"connected",!1),u(this,"handleConnectionChange",()=>{let e=r.Z.isConnected(),t=e&&!this.connected;this.connected=e,t&&(this.routeChangeCount=0,this.executeRouteRewrites((0,s.s1)().location,"REPLACE"))}),u(this,"handleRouteChange",(e,t)=>{if(this.executeRouteRewrites(e,t))return;if(!(0,o.r)(e))return void(0,s.dL)(a.Z5c.ME);let n=l.Z.getState();for(let i of(n.basePath!==e.pathname&&n.resetPath(e.pathname),this.listeners))try{i(e,t)}catch(e){console.warn("RouteManager.listen: A route listener has caused an error",e.message)}this.routeChangeCount=0}),u(this,"handleKeybindRouteChange",e=>{let{path:t}=e;-1!==this.timer&&clearTimeout(this.timer),null!=t&&(this.timer=setTimeout(this.flushRoute,200))}),u(this,"flushRoute",()=>{clearTimeout(this.timer);let e=l.Z.getState();null!=e.path&&(0,s.uL)(e.path)})}}},622143:function(e,t,n){n.d(t,{r:()=>i});function i(e){return!0}},19199:function(e,t,n){n.d(t,{D:()=>a});var i=n(399606),r=n(941129),l=n(594174),o=n(51144),s=n(335865);let a=()=>{let e=(0,r.S)(),t=(0,i.e7)([l.default],()=>l.default.getCurrentUser()),n=(0,s.y)();return e&&!(0,o.EO)(t)&&n}},921801:function(e,t,n){n.d(t,{F:()=>r}),n(73800);var i=n(991346);let r=e=>{var t;let{setting:n,children:r}=e,l=(0,i.Pt)(),o=(0,i.Gj)(n),s=l[n];return null!=s.predicate&&(null==(t=s.predicate)?void 0:t.call(s))!==!0||o.size>0&&!o.has(n)?null:r}},3957:function(e,t,n){n.d(t,{a:()=>o});var i=n(73800),r=n(996073);let l={block:"center"};function o(e){let t=i.useRef(null);return(0,r.Z)(t,e,l,400),t}},279743:function(e,t,n){n.d(t,{Z:()=>f}),n(388685);var i=n(255367),r=n(73800),l=n(120356),o=n.n(l),s=n(264738),a=n(748780),u=n(481060),c=n(442837),d=n(607070),h=n(663389),p=n(834166);function g(e){let{children:t,className:n,onFlashEnd:l,animationDelay:c=500}=e,h=u.TVs.colors.TEXT_LINK,g=(0,u.dQu)(h).spring({opacity:0}),f=(0,u.dQu)(h).spring({opacity:.1}),E=(0,u.dQu)(h).spring({opacity:0}),_=(0,u.dQu)(h).spring({opacity:1}),[m,O]=(0,u.q_F)(()=>({from:{backgroundColor:g,borderColor:g}}),"animate-never"),b={startColor:g,handleRest:e=>{e.finished&&(null==l||l())},endColor:E,targetBorderColor:_,targetColor:f,animationDelay:c},C=r.useRef(b);return r.useEffect(()=>{C.current=b}),r.useEffect(()=>{let{startColor:e,handleRest:t,endColor:n,targetBorderColor:i,targetColor:r,animationDelay:l}=C.current,{useReducedMotion:o}=d.Z,s=200*!o;O({reset:!0,immediate:!1,to:{backgroundColor:e,borderColor:e},config:{duration:s,easing:a.Z.Easing.ease}}),O({delay:l,immediate:o,to:[{backgroundColor:r,borderColor:i}],config:{duration:s,easing:a.Z.Easing.ease}}),O({delay:l+200+200,immediate:o,to:[{backgroundColor:n,borderColor:n}],config:{duration:s,easing:a.Z.Easing.ease},onRest:t})},[O]),(0,i.jsx)(s.animated.div,{style:m,className:o()(p.settingsItemHighlight,n),children:t})}function f(e){let{children:t,scrollPosition:n,animationDelay:l}=e,o=(0,c.e7)([h.Z],()=>h.Z.getScrollPosition()===n),[s,a]=r.useState(!1);return(r.useEffect(()=>{o&&a(!0)},[o]),s)?(0,i.jsx)(g,{animationDelay:l,onFlashEnd:()=>a(!1),children:t}):t}},879815:function(e,t,n){n.d(t,{Z:()=>s});var i=n(442837),r=n(314897),l=n(131951),o=n(979651);function s(e){return(0,i.cj)([o.Z,l.Z,r.default],()=>(function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Z,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.Z,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.default,a=null!=e?n.getVoiceState(e.getGuildId(),s.getId()):null;return{selfDeaf:i.isSelfDeaf(),deaf:null!=(t=null==a?void 0:a.deaf)&&t}})(e,o.Z,l.Z,r.default),[e])}},932563:function(e,t,n){n.d(t,{V_:()=>o,cR:()=>l,zl:()=>s});var i=n(442837),r=n(479766);function l(){return(0,i.e7)([r.Z],()=>r.Z.balance)}function o(e){return(0,i.e7)([r.Z],()=>{var t;return null!=e&&(null!=(t=r.Z.balance)?t:0)>=e})}function s(){return r.Z.getCurrentBalance()}},822857:function(e,t,n){n.d(t,{CE:()=>u,WX:()=>c,hl:()=>d});var i=n(211242),r=n(594174),l=n(603077),o=n(278401),s=n(907584);let a=e=>{let t=r.default.getCurrentUser();return!(null!=t&&t.isStaff())&&!l.Z.getCurrentConfig(e).enabled},u=e=>a(e)?{enabled:!1}:{enabled:s.Z.getCurrentConfig(e).enabled},c=e=>{let t=s.Z.useExperiment(e);return a(e)?{enabled:!1}:{enabled:t.enabled}},d=e=>{let t=(0,i.Q)(),{enabled:n}=c(e),r=o.Z.useExperiment(e);return t?{enabled:!1}:{enabled:n&&r.enabled}}},960919:function(e,t,n){n.d(t,{Z:()=>d});var i=n(255367),r=n(120356),l=n.n(r),o=n(780384),s=n(410030),a=n(865184);let u=n(17702),c=n(647894),d=e=>{let{customSize:t,shouldUseThemeColor:n=!1,loading:r,className:d}=e,h=(0,s.ZP)(),p=n&&(0,o.ap)(h)?c:u;return(0,i.jsx)("img",{className:l()(a.orbIconSVG,d,{[a.loading]:r}),src:p,alt:"",style:void 0!==t?{height:t}:void 0})}},543936:function(e,t,n){n.d(t,{x:()=>l}),n(388685);var i=n(73800),r=n(960048);class l extends i.PureComponent{componentDidCatch(e,t){r.Z.captureException(e,{tags:{app_context:"virtual_currency",source:this.props.errorSource},extra:{info:t}}),this.setState({error:e,info:t})}render(){return null!=this.state.error?null!=this.props.renderCustomErrorComponent?this.props.renderCustomErrorComponent():null:this.props.children}constructor(...e){var t,n;super(...e),n={error:null,info:null},(t="state")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n}}},275388:function(e,t,n){n.d(t,{q:()=>c,r:()=>u});var i=n(255367),r=n(772848),l=n(481060),o=n(396639),s=n(981631);let a="orb-checkout-payment-modal-key",u=()=>(0,l.VXO)(a),c=e=>{var{skuId:t,analyticsLocations:u=[],analyticsSourceLocation:c,onCloseCallback:d,onCheckoutSuccess:h}=e,p=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},l=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["skuId","analyticsLocations","analyticsSourceLocation","onCloseCallback","onCheckoutSuccess"]);let g=!1,f=(0,r.Z)();return(0,l.ZDy)(async()=>{let{default:e}=await Promise.resolve().then(n.bind(n,396639));return n=>{var r,l;return(0,i.jsx)(e,(r=function(e){for(var t=1;t{g||h(e),g=!0}},p,n),l=l={loadId:f},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n.push.apply(n,i)}return n})(Object(l)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(l,e))}),r))}},{onCloseCallback:d,onCloseRequest(){g||(0,o._Y)(s.rMx.PAYMENT_FLOW_CANCELED,{loadId:f,skuId:t,analyticsLocations:u,analyticsSourceLocation:c}),(0,l.Mr3)(a)},modalKey:a})}},531599:function(e,t,n){n.d(t,{Z:()=>i});let i="https://cdn.discordapp.com/assets/content/0253ce7b3c383fba5cadfd162724ef1769e45a69203a87698bf89d6b87a53acd.svg"}}]); //# sourceMappingURL=44f584d4b322a436.js.map