Build 545032stable
Module 885386
14,766 characters · in no known chunkDependencies
Required by (178)
2624106107162107631498315873433737962431364583747671502685118357375587037952283297917259207792650938579746998596104731112107112541115063125787130553142662146429147964149741166005175203176522182892188951189996201349209932215530224196228855233503251333254828256265256311256449258360264249266536267889277192281084290948294520306417308229315790319993326337340137348559350527365258371158376310399893404486413201415210418842434404436405442353444802445176451897451909455538461213467884472392474463480178480595481045481477485162487245493819501335501440503509504394515766528153529200530789541712554601560595563478565645567761568004570287576701578839580745587626590114606049607814619499628677632119657977659280674378685396685961686189700174704413720882725386726561731231744753745317747926751258760751762183775427775602777933792348805945806202810263811602813564814390815807817281827785830618831688834252856488863439878431883600885576903209904054907645915614922068923314928625930932931481938005953832960736970931972387977700983495985668986922990474995273
Lazily required by (0)none
Requires (18)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{Sf:()=>eY,n6:()=>el,X6:()=>eP,Iv:()=>e3,NF:()=>e5,j0:()=>tn,Pf:()=>ee,Vd:()=>e4,CY:()=>eD,NO:()=>V,D_:()=>v,pK:()=>tt,JI:()=>eG,HZ:()=>e2,vf:()=>eg,Vv:()=>e6,_8:()=>e7,HO:()=>ep,c3:()=>M,SY:()=>L,LJ:()=>ta,j7:()=>e_,JG:()=>ez,Yt:()=>tr,Q_:()=>eB,hH:()=>ef,he:()=>eC,FA:()=>ec,Hu:()=>ts,gs:()=>D,_6:()=>eL,Zd:()=>to,hD:()=>ex,ML:()=>R,pE:()=>eZ,UM:()=>en,NR:()=>P,e:()=>et,_Z:()=>eX,cU:()=>eA,T3:()=>G,WY:()=>ea,Zk:()=>e0,ns:()=>Q,vL:()=>ed,tz:()=>ev,on:()=>eN,b0:()=>W,Zt:()=>eo,dG:()=>eh,Jr:()=>B,xM:()=>X,dm:()=>eQ,zY:()=>te,KP:()=>eO,jW:()=>ek,eK:()=>b,m$:()=>eJ,YX:()=>es,Zr:()=>er,eh:()=>eH,uB:()=>J,wv:()=>Z,jP:()=>eb,tP:()=>Y,PZ:()=>e9,H1:()=>em,TA:()=>e1,Pw:()=>e$,Q$:()=>eM,rs:()=>eU,uh:()=>q,S0:()=>eW,Zp:()=>w,qN:()=>e8,iM:()=>j,Qr:()=>k,G2:()=>ew,l_:()=>eS,Yh:()=>eE,_z:()=>K,zS:()=>F,cj:()=>ey,$s:()=>eu,oz:()=>x,_3:()=>z,bm:()=>$,Qe:()=>eT,kt:()=>ej,JV:()=>U,Xi:()=>ti,Kg:()=>eI,SI:()=>O});var i=n(735438),r=n(923457),s=n(17928),a=n(873298),o=n(406935),l=n(52133),u=n(461012),c=n(207560),d=n(350503),_=n(228366),f=n(284016),h=n(594061),p=n(617617),E=n(355097);function m(e,t,n,i){let{delay:r=E.Sb.INFREQUENT_USER_ACTION,comparator:a=(e,t)=>e===t}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=()=>n(p.A.settings[e]?.[t]);return{getSetting:o,updateSetting:T(o,n=>h.wc.updateAsync(e,e=>{e[t]=i(n,e[t])},r)),useSetting:()=>(0,s.bG)([p.A],o,void 0,a)}}function g(e,t,n){let i=()=>{let i=f.A.getState()[t];return i?.settings[n]??e.getSetting()};return{getSetting:i,useSetting:()=>{let i=e.useSetting();return(0,s.bG)([f.A],()=>{let e=f.A.getState()[t];return e?.settings[n]})??i},updateSetting:T(i,i=>f.A.shouldSync(t)?e.updateSetting(i):(_.h.dispatch({type:"SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE",changes:{[t]:{settings:{[n]:i}}}}),Promise.resolve()))}}function A(e,t,n,i){let r=()=>n()??e.getSetting();return{getSetting:r,useSetting:()=>{let t=e.useSetting();return i()??t},updateSetting:T(r,n=>(_.h.dispatch({type:"USER_SETTINGS_OVERRIDE_CLEAR",settings:[t]}),e.updateSetting(n)))}}function I(e){let{baseSetting:t,isEligible:n,useIsEligible:i,eligibleDefault:r,ineligibleDefault:s,onUseDefault:a}=e;return{getSetting:()=>{let e=t.getSetting();return null!=e?e:(a?.(),n()?r():s)},useSetting:()=>{let e=t.useSetting(),n=i();return null!=e?e:(a?.(),n?r():s)},updateSetting:e=>t.updateSetting(e)}}function T(e,t){return function(n){return"function"==typeof n?t(n(e())):t(n)}}var S=n(397438),N=n(656402),y=n(652215),C=n(823894);let v=m("textAndImages","useLegacyChatInput",e=>e?.value??!1,e=>o._t.create({value:e})),O=m("textAndImages","useRichChatInput",e=>e?.value??!0,e=>o._t.create({value:e})),R=m("textAndImages","includeStickersInAutocomplete",e=>e?.value??!1,e=>o._t.create({value:e})),b=m("textAndImages","includeSoundmojiInAutocomplete",e=>e?.value??!0,e=>o._t.create({value:e})),D=m("textAndImages","renderSpoilers",e=>e?.value??y.P6Q.ON_CLICK,e=>o.hU.create({value:e})),L=m("textAndImages","useThreadSidebar",e=>e?.value??!0,e=>o._t.create({value:e}));m("notifications","showInAppNotifications",e=>e?.value??!0,e=>o._t.create({value:e}));let w=m("notifications","reactionNotifications",e=>e??a.Tz.NOTIFICATIONS_ENABLED,e=>e),M=m("notifications","enableGdmAllReactionNotifications",e=>null!=e&&void 0!==e.value?e.value:p.A.settings?.notifications?.reactionNotifications!==a.Tz.NOTIFICATIONS_DISABLED,e=>o._t.create({value:!!e}));m("notifications","customStatusPushNotifications",e=>e??a.DQ.STATUS_PUSH_UNSET,e=>e),m("notifications","enableSummaryReminderNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e})),m("notifications","enableVoiceActivityNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e}));let P=m("notifications","enableFriendOnlineNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e})),x=m("notifications","enableFriendAnniversaryNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e})),U=m("notifications","enableGameUpdateNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e})),k=m("notifications","enableServerTrendingNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e})),G=m("notifications","enableProfileUpdatesNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e}));m("notifications","enableFriendGamingActivityNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e}));let F=m("notifications","enableUpcomingServerEventNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e})),V=m("notifications","quietMode",e=>e?.value??!1,e=>o._t.create({value:!!e})),B=m("notifications","focusModeExpiresAtMs",e=>e??"0",e=>e),H=[],j=m("textAndImages","emojiPickerCollapsedSections",e=>e??H,e=>e),Y=m("textAndImages","stickerPickerCollapsedSections",e=>e??H,e=>e),W=m("textAndImages","soundboardPickerCollapsedSections",e=>e??H,e=>e),K=m("textAndImages","viewImageDescriptions",e=>e?.value??!1,e=>o._t.create({value:e})),z=m("textAndImages","showCommandSuggestions",e=>e?.value??!0,e=>o._t.create({value:e})),$=m("voiceAndVideo","alwaysPreviewVideo",e=>e?.value??!1,e=>o._t.create({value:e})),q=m("voiceAndVideo","disableStreamPreviews",e=>e?.value,e=>o._t.create({value:e})),Z=m("notifications","notifyFriendsOnGoLive",e=>e?.value,e=>o._t.create({value:e})),X="0",Q=m("notifications","notificationCenterAckedBeforeId",e=>e??X,e=>e),J=m("gameLibrary","installShortcutDesktop",e=>e?.value??!1,e=>o._t.create({value:e})),ee=m("gameLibrary","installShortcutStartMenu",e=>e?.value??!0,e=>o._t.create({value:e})),et=m("privacy","allowActivityPartyPrivacyFriends",e=>e?.value??!0,e=>o._t.create({value:e})),en=m("privacy","allowActivityPartyPrivacyVoiceChannel",e=>e?.value??!0,e=>o._t.create({value:e})),ei=[],er=m("privacy","messageRequestRestrictedGuildIds",e=>e??ei,e=>e),es=m("privacy","defaultMessageRequestRestricted",e=>e?.value,e=>o._t.create({value:e})),ea=m("privacy","nonSpamRetrainingOptIn",e=>e?.value,e=>null==e?void 0:o._t.create({value:e}));m("privacy","contactSyncEnabled",e=>e?.value??!1,e=>o._t.create({value:e}));let eo=m("privacy","defaultGuildsRestricted",e=>e??!1,e=>e),el=m("privacy","defaultGuildsRestrictedV2",e=>e?.value,e=>o._t.create({value:e})),eu=m("privacy","restrictedGuildIds",e=>e??[],e=>e);m("privacy","friendDiscoveryFlags",e=>e?.value??0,e=>o.ZQ.create({value:e}));let ec=m("privacy","friendSourceFlags",e=>e?.value??y.yKI,e=>o.ZQ.create({value:e})),ed=m("debug","rtcPanelShowVoiceStates",e=>e?.value??!1,e=>o._t.create({value:e})),e_=m("textAndImages","convertEmoticons",e=>e?.value??!0,e=>o._t.create({value:e})),ef=m("textAndImages","messageDisplayCompact",e=>e?.value??!1,e=>o._t.create({value:e})),eh=m("voiceAndVideo","soundboardSettings",e=>e,e=>e),ep=m("voiceAndVideo","soundmojiVolume",e=>e?.value??100,e=>o.uN.create({value:e})),eE=m("voiceAndVideo","streamNotificationsEnabled",e=>e?.value??!0,e=>o._t.create({value:e})),em=m("privacy","dropsOptedOut",e=>e?.value??!1,e=>o._t.create({value:e})),eg=m("privacy","quests3PDataOptedOut",e=>e?.value??!1,e=>o._t.create({value:e}));m("voiceAndVideo","nativePhoneIntegrationEnabled",e=>e?.value??!0,e=>o._t.create({value:e}));let eA=m("voiceAndVideo","afkTimeout",e=>e?.value??60,e=>o.ZQ.create({value:e})),eI=m("textAndImages","viewNsfwGuilds",e=>e?.value??!1,e=>o._t.create({value:e})),eT=m("textAndImages","viewNsfwCommands",e=>e?.value??!1,e=>o._t.create({value:e}));m("privacy","detectPlatformAccounts",e=>e?.value??!0,e=>o._t.create({value:e}));let eS=m("gameLibrary","disableGamesTab",e=>e?.value??!1,e=>o._t.create({value:e})),eN=m("textAndImages","enableTtsCommand",e=>e?.value??!0,e=>o._t.create({value:e})),ey=m("textAndImages","explicitContentFilter",e=>e?.value??N.Je.NON_FRIENDS,e=>o.ZQ.create({value:e}));m("textAndImages","dmSpamFilter",e=>e?.value??N.uH.NON_FRIENDS,e=>o.ZQ.create({value:e}));let eC=m("textAndImages","dmSpamFilterV2",e=>e??a.he.DEFAULT_UNSET,e=>e),ev=m("status","showCurrentGame",e=>e?.value??!0,e=>o._t.create({value:e}));m("privacy","recentGamesEnabled",e=>e?.value??!0,e=>o._t.create({value:e}));let eO=m("privacy","profileVisibility",e=>null==e||e===a.KP.UNSET?a.KP.FRIENDS_AND_ALL_GUILDS:e,e=>e),eR=new Set(Object.values(y.clD)),eb=m("status","status",e=>null!=e&&eR.has(e.value)?e.value:y.clD.UNKNOWN,e=>o.hU.create({value:e})),eD=m("status","statusExpiresAtMs",e=>e??"0",e=>e),eL=m("status","statusCreatedAtMs",e=>e,e=>e),ew=m("status","customStatus",e=>e,e=>e),eM=m("clips","allowVoiceRecording",e=>e?.value??!0,e=>o._t.create({value:e})),eP=g(m("textAndImages","inlineAttachmentMedia",e=>e?.value??!0,e=>o._t.create({value:e})),"text","inlineAttachmentMedia"),ex=g(m("textAndImages","inlineEmbedMedia",e=>e?.value??!0,e=>o._t.create({value:e})),"text","inlineEmbedMedia"),eU=g(m("textAndImages","renderEmbeds",e=>e?.value??!0,e=>o._t.create({value:e})),"text","renderEmbeds"),ek=g(m("textAndImages","renderReactions",e=>e?.value??!0,e=>o._t.create({value:e})),"text","renderReactions");g(m("textAndImages","defaultReactionEmoji",e=>{let{emojiId:t,emojiName:n,animated:i}=e??{};return{emojiId:t?.value,emojiName:n?.value,animated:i?.value,disableDoubleTap:e?.disableDoubleTap?.value??!1}},e=>{let{emojiId:t,emojiName:n,animated:i,disableDoubleTap:r}=e;return{emojiId:o.ol.create({value:t}),emojiName:o.hU.create({value:n}),animated:o._t.create({value:i}),disableDoubleTap:o._t.create({value:r})}},{comparator:l.A}),"text","defaultReactionEmoji");let eG=m("localization","timezoneOffset",e=>e?.value??null,e=>o.as.create({value:e??0})),eF=new Set([E.YP.AUTO,u.b.COZY,u.b.COMPACT]);m("appearance","channelListLayout",e=>null!=e&&eF.has(e.value)?e.value:u.b.COZY,e=>o.hU.create({value:e}));let eV=new Set([u.P.ALL,u.P.UNREADS,u.P.NONE]);m("appearance","messagePreviews",e=>null!=e&&eV.has(e.value)?e.value:u.P.ALL,e=>o.hU.create({value:e}));let eB=g(m("appearance","developerMode",e=>e??!1,e=>e),"appearance","developerMode"),eH=m("appearance","clientThemeSettings",e=>({backgroundGradientPresetId:e?.backgroundGradientPresetId?.value,customUserThemeSettings:e?.customUserThemeSettings!=null?{colors:e.customUserThemeSettings.colors,gradientColorStops:e.customUserThemeSettings.gradientColorStops,gradientAngle:e.customUserThemeSettings.gradientAngle,baseMix:e.customUserThemeSettings.baseMix}:void 0}),e=>({backgroundGradientPresetId:null!=e.backgroundGradientPresetId?o.ZQ.create({value:e.backgroundGradientPresetId}):void 0,customUserThemeSettings:null!=e.customUserThemeSettings?{colors:e.customUserThemeSettings.colors,gradientColorStops:e.customUserThemeSettings.gradientColorStops,gradientAngle:e.customUserThemeSettings.gradientAngle,baseMix:e.customUserThemeSettings.baseMix}:void 0}),{comparator:i.isEqual}),ej=A(g(m("textAndImages","gifAutoPlay",e=>e?.value??!0,e=>o._t.create({value:e})),"text","gifAutoPlay"),"gifAutoPlay",()=>S.A.getOverride("gifAutoPlay")?.value,()=>(0,s.bG)([S.A],()=>S.A.getOverride("gifAutoPlay")?.value)),eY=A(g(m("textAndImages","animateEmoji",e=>e?.value??!0,e=>o._t.create({value:e})),"text","animateEmoji"),"animateEmoji",()=>S.A.getOverride("animateEmoji")?.value,()=>(0,s.bG)([S.A],()=>S.A.getOverride("animateEmoji")?.value)),eW=A(g(m("textAndImages","animateStickers",e=>e?.value??C.BJ.ALWAYS_ANIMATE,e=>o.ZQ.create({value:e})),"text","animateStickers"),"animateStickers",()=>S.A.getOverride("animateStickers")?.value,()=>(0,s.bG)([S.A],()=>S.A.getOverride("animateStickers")?.value)),eK=[],ez=m("privacy","activityRestrictedGuildIds",e=>e??eK,e=>e),e$=m("privacy","activityRestrictedGuildIds",e=>e??eK,e=>e,{delay:E.Sb.FREQUENT_USER_ACTION}),eq=[],eZ=m("privacy","activityJoiningRestrictedGuildIds",e=>e??eq,e=>e);I({baseSetting:m("privacy","defaultGuildsActivityRestricted",e=>e,e=>e??a.AN.OFF),isEligible:()=>(0,c.To)(r.p.GUILD_ACTIVITY_STATUS),useIsEligible:()=>(0,c.yv)(r.p.GUILD_ACTIVITY_STATUS),ineligibleDefault:a.AN.OFF,eligibleDefault:()=>a.AN.ON_FOR_LARGE_GUILDS});let eX=I({baseSetting:m("privacy","defaultGuildsActivityRestrictedV2",e=>e===a.Qd.ACTIVITY_STATUS_UNSET?null:e,e=>e??a.Qd.ACTIVITY_STATUS_OFF),isEligible:()=>(0,c.To)(r.p.GUILD_ACTIVITY_STATUS),useIsEligible:()=>(0,c.yv)(r.p.GUILD_ACTIVITY_STATUS),ineligibleDefault:a.Qd.ACTIVITY_STATUS_OFF,eligibleDefault:()=>a.Qd.ACTIVITY_STATUS_ON_FOR_LARGE_GUILDS}),eQ=m("privacy","familyCenterEnabledV2",e=>e?.value,e=>o._t.create({value:e})),eJ=m("privacy","hideLegacyUsername",e=>e?.value??!1,e=>o._t.create({value:e})),e0=m("privacy","allowGameFriendDmsInDiscord",e=>e?.value??!0,e=>o._t.create({value:e})),e1=m("privacy","slayerSdkReceiveDmsInGame",e=>e??a.fL.SLAYER_SDK_RECEIVE_IN_GAME_DMS_UNSET,e=>e),e2=m("ads","alwaysDeliver",e=>e??!1,e=>e),e3=e=>{let{explicitContentGuilds:t,explicitContentFriendDm:n,explicitContentNonFriendDm:i}=e??{};return{explicitContentGuilds:t??a.TO.UNSET_EXPLICIT_CONTENT_REDACTION,explicitContentFriendDm:n??a.TO.UNSET_EXPLICIT_CONTENT_REDACTION,explicitContentNonFriendDm:i??a.TO.UNSET_EXPLICIT_CONTENT_REDACTION}},e6=e=>{let{explicitContentGuilds:t,explicitContentFriendDm:n,explicitContentNonFriendDm:i}=e;return{explicitContentGuilds:t??void 0,explicitContentFriendDm:n??void 0,explicitContentNonFriendDm:i??void 0}},e4=m("textAndImages","explicitContentSettings",e3,e6),e5=e=>{let{goreContentGuilds:t,goreContentFriendDm:n,goreContentNonFriendDm:i}=e??{};return{goreContentGuilds:t??a.TO.UNSET_EXPLICIT_CONTENT_REDACTION,goreContentFriendDm:n??a.TO.UNSET_EXPLICIT_CONTENT_REDACTION,goreContentNonFriendDm:i??a.TO.UNSET_EXPLICIT_CONTENT_REDACTION}},e7=e=>{let{goreContentGuilds:t,goreContentFriendDm:n,goreContentNonFriendDm:i}=e;return{goreContentGuilds:t??void 0,goreContentFriendDm:n??void 0,goreContentNonFriendDm:i??void 0}},e8=m("textAndImages","goreContentSettings",e5,e7);m("appearance","searchResultExactCountEnabled",e=>e?.value??!1,e=>o._t.create({value:e})),m("appearance","happeningNowCardsDisabled",e=>e?.value??!1,e=>o._t.create({value:e}));let e9=m("appearance","timestampHourCycle",e=>e??a.PZ.AUTO,e=>e),te=m("appearance","defaultGuildThemePreference",d.v,e=>e);m("appearance","launchPadMode",e=>e??a.Ar.LAUNCH_PAD_DISABLED,e=>e),m("appearance","swipeRightToLeftMode",e=>e??a.kW.SWIPE_RIGHT_TO_LEFT_UNSET,e=>e);let tt=m("userContent","lastReceivedChangelogId",e=>e??"0",e=>e),tn=m("safetySettings","ignoreProfileSpeedbumpDisabled",e=>e??!1,e=>e),ti=m("appearance","uiDensity",e=>e===a.NS.UNSET_UI_DENSITY?a.NS.DEFAULT:e??a.NS.DEFAULT,e=>e),tr=m("inAppFeedbackSettings","inAppFeedbackStates",e=>(0,i.mapValues)(e??{},e=>(0,i.mapValues)(e,e=>e?.value!=null?Number(e.value):void 0)),e=>(0,i.mapValues)(e,e=>(0,i.mapValues)(e,e=>o.ol.create({value:null!=e?String(e):void 0}))),{delay:E.Sb.AUTOMATED}),ts=m("textAndImages","isCrossDmSearchEnabled",e=>e?.value??!1,e=>o._t.create({value:e})),ta=m("notifications","enableDmReplyNudgeReminders",e=>e?.value??!0,e=>o._t.create({value:e})),to=m("privacy","hideFriendRequestNotes",e=>e?.value??!1,e=>o._t.create({value:e}))}