Module 885386

14,767 characters · in no known chunk
Dependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{Sf:()=>eW,n6:()=>eo,X6:()=>eP,Iv:()=>e3,NF:()=>e5,j0:()=>tn,Pf:()=>J,Vd:()=>e4,CY:()=>eb,NO:()=>V,D_:()=>O,pK:()=>tt,JI:()=>ek,HZ:()=>e2,vf:()=>em,Vv:()=>e6,_8:()=>e7,HO:()=>ef,SY:()=>D,j7:()=>ed,JG:()=>e$,Yt:()=>tr,Q_:()=>eF,hH:()=>e_,he:()=>eC,FA:()=>eu,Hu:()=>ts,gs:()=>L,_6:()=>eL,l$:()=>eB,Zd:()=>ta,hD:()=>eM,pE:()=>eZ,UM:()=>et,NR:()=>M,e:()=>ee,_Z:()=>eX,T3:()=>k,cU:()=>eg,ML:()=>v,WY:()=>es,Zk:()=>e0,vL:()=>ec,hV:()=>Z,tz:()=>ey,on:()=>eS,b0:()=>W,Zt:()=>ea,gY:()=>P,Jr:()=>F,Sy:()=>X,dG:()=>eh,dm:()=>eQ,zY:()=>te,KP:()=>eO,jW:()=>eU,eK:()=>b,m$:()=>eJ,YX:()=>er,Zr:()=>ei,eh:()=>eH,uB:()=>Q,wv:()=>q,jP:()=>ev,tP:()=>j,PZ:()=>e9,H1:()=>ep,TA:()=>e1,Pw:()=>ez,Q$:()=>ew,rs:()=>ex,uh:()=>z,S0:()=>eY,Zp:()=>w,qN:()=>e8,iM:()=>H,Qr:()=>U,G2:()=>eD,l_:()=>eT,Yh:()=>eE,_z:()=>Y,zS:()=>G,cj:()=>eN,$s:()=>el,oz:()=>x,_3:()=>K,bm:()=>$,Qe:()=>eI,kt:()=>ej,Xi:()=>ti,Kg:()=>eA,SI:()=>R});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),h=n(284016),f=n(594061),E=n(617617),p=n(355097);function m(e,t,n,i){let{delay:r=p.Sb.INFREQUENT_USER_ACTION,comparator:a=(e,t)=>e===t}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=()=>n(E.A.settings[e]?.[t]);return{getSetting:o,updateSetting:T(o,n=>f.wc.updateAsync(e,e=>{e[t]=i(n,e[t])},r)),useSetting:()=>(0,s.bG)([E.A],o,void 0,a)}}function g(e,t,n){let i=()=>{let i=h.A.getState()[t];return i?.settings[n]??e.getSetting()};return{getSetting:i,useSetting:()=>{let i=e.useSetting();return(0,s.bG)([h.A],()=>{let e=h.A.getState()[t];return e?.settings[n]})??i},updateSetting:T(i,function(i){return h.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){function r(){return 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(750714),C=n(652215),y=n(823894);let O=m("textAndImages","useLegacyChatInput",e=>e?.value??!1,e=>o._t.create({value:e})),R=m("textAndImages","useRichChatInput",e=>e?.value??!0,e=>o._t.create({value:e})),v=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})),L=m("textAndImages","renderSpoilers",e=>e?.value??C.P6Q.ON_CLICK,e=>o.hU.create({value:e})),D=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("notifications","customStatusPushNotifications",e=>e??a.DQ.STATUS_PUSH_UNSET,e=>e),m("notifications","enableSummaryReminderNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e}));let P=m("notifications","enableScreenDowntimeScheduleNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e}));m("notifications","enableVoiceActivityNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e}));let M=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","enableServerTrendingNotifications",e=>e?.value??!0,e=>o._t.create({value:!!e})),k=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 G=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})),F=m("notifications","focusModeExpiresAtMs",e=>e??"0",e=>e),B=[],H=m("textAndImages","emojiPickerCollapsedSections",e=>e??B,e=>e),j=m("textAndImages","stickerPickerCollapsedSections",e=>e??B,e=>e),W=m("textAndImages","soundboardPickerCollapsedSections",e=>e??B,e=>e),Y=m("textAndImages","viewImageDescriptions",e=>e?.value??!1,e=>o._t.create({value:e})),K=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})),z=m("voiceAndVideo","disableStreamPreviews",e=>e?.value,e=>o._t.create({value:e})),q=m("notifications","notifyFriendsOnGoLive",e=>e?.value,e=>o._t.create({value:e})),Z=m("notifications","notifyFriendsOnComeOnline",e=>e?.value??!0,e=>o._t.create({value:e})),X=m("notifications","notifyFriendsOnProfileUpdate",e=>e?.value??!0,e=>o._t.create({value:e}));m("notifications","notificationCenterAckedBeforeId",e=>e??"0",e=>e);let Q=m("gameLibrary","installShortcutDesktop",e=>e?.value??!1,e=>o._t.create({value:e})),J=m("gameLibrary","installShortcutStartMenu",e=>e?.value??!0,e=>o._t.create({value:e})),ee=m("privacy","allowActivityPartyPrivacyFriends",e=>e?.value??!0,e=>o._t.create({value:e})),et=m("privacy","allowActivityPartyPrivacyVoiceChannel",e=>e?.value??!0,e=>o._t.create({value:e})),en=[],ei=m("privacy","messageRequestRestrictedGuildIds",e=>e??en,e=>e),er=m("privacy","defaultMessageRequestRestricted",e=>e?.value,e=>o._t.create({value:e})),es=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 ea=m("privacy","defaultGuildsRestricted",e=>e??!1,e=>e),eo=m("privacy","defaultGuildsRestrictedV2",e=>e?.value,e=>o._t.create({value:e})),el=m("privacy","restrictedGuildIds",e=>e??[],e=>e);m("privacy","friendDiscoveryFlags",e=>e?.value??0,e=>o.ZQ.create({value:e}));let eu=m("privacy","friendSourceFlags",e=>e?.value??C.yKI,e=>o.ZQ.create({value:e})),ec=m("debug","rtcPanelShowVoiceStates",e=>e?.value??!1,e=>o._t.create({value:e})),ed=m("textAndImages","convertEmoticons",e=>e?.value??!0,e=>o._t.create({value:e})),e_=m("textAndImages","messageDisplayCompact",e=>e?.value??!1,e=>o._t.create({value:e})),eh=m("voiceAndVideo","soundboardSettings",e=>e,e=>e),ef=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})),ep=m("privacy","dropsOptedOut",e=>e?.value??!1,e=>o._t.create({value:e})),em=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 eg=m("voiceAndVideo","afkTimeout",e=>e?.value??60,e=>o.ZQ.create({value:e})),eA=m("textAndImages","viewNsfwGuilds",e=>e?.value??!1,e=>o._t.create({value:e})),eI=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 eT=m("gameLibrary","disableGamesTab",e=>e?.value??!1,e=>o._t.create({value:e})),eS=m("textAndImages","enableTtsCommand",e=>e?.value??!0,e=>o._t.create({value:e})),eN=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),ey=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(C.clD)),ev=m("status","status",e=>null!=e&&eR.has(e.value)?e.value:C.clD.UNKNOWN,e=>o.hU.create({value:e})),eb=m("status","statusExpiresAtMs",e=>e??"0",e=>e),eL=m("status","statusCreatedAtMs",e=>e,e=>e),eD=m("status","customStatus",e=>e,e=>e),ew=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"),eM=g(m("textAndImages","inlineEmbedMedia",e=>e?.value??!0,e=>o._t.create({value:e})),"text","inlineEmbedMedia"),ex=g(m("textAndImages","renderEmbeds",e=>e?.value??!0,e=>o._t.create({value:e})),"text","renderEmbeds"),eU=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 ek=m("localization","timezoneOffset",e=>e?.value??null,e=>o.as.create({value:e??0})),eG=new Set([p.YP.AUTO,u.b.COZY,u.b.COMPACT]);m("appearance","channelListLayout",e=>null!=e&&eG.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 eF=g(m("appearance","developerMode",e=>e??!1,e=>e),"appearance","developerMode"),eB=m("appearance","darkSidebar",e=>e??!1,e=>e),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)),eW=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)),eY=A(g(m("textAndImages","animateStickers",e=>e?.value??y.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=[],e$=m("privacy","activityRestrictedGuildIds",e=>e??eK,e=>e),ez=m("privacy","activityRestrictedGuildIds",e=>e??eK,e=>e,{delay:p.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);function 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}}function e6(e){let{explicitContentGuilds:t,explicitContentFriendDm:n,explicitContentNonFriendDm:i}=e;return{explicitContentGuilds:t??void 0,explicitContentFriendDm:n??void 0,explicitContentNonFriendDm:i??void 0}}let e4=m("textAndImages","explicitContentSettings",e3,e6);function 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}}function e7(e){let{goreContentGuilds:t,goreContentFriendDm:n,goreContentNonFriendDm:i}=e;return{goreContentGuilds:t??void 0,goreContentFriendDm:n??void 0,goreContentNonFriendDm:i??void 0}}let 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:p.Sb.AUTOMATED}),ts=m("textAndImages","isCrossDmSearchEnabled",e=>e?.value??!1,e=>o._t.create({value:e})),ta=m("privacy","hideFriendRequestNotes",e=>e?.value??!1,e=>o._t.create({value:e}))}