This repository has been archived on 2026-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
ServerSpacebarOld/assets/public/client/94e3960124cc8c4b5e68.js
2025-12-08 18:44:58 +02:00

4 lines
2.5 KiB
JavaScript

"use strict";(this.webpackChunkdiscord_app=this.webpackChunkdiscord_app||[]).push([[54313],{95581:(n,e,t)=>{t.r(e);t.d(e,{default:()=>P});var i=t(785893),a=t(667294),o=t(202351),s=t(735885),c=t(734691),r=t(213276),u=t(19292);const l=(0,t(260561).B)({kind:"user",id:"2023-03_aa_user_segment_filter",label:"AA test to validate segmentation filter",defaultConfig:{isEnabled:!1},treatments:[{id:1,label:"AA test enabled. Noop on UI effect.",config:{isEnabled:!0}}]});var d=t(634698),f=t(153686),Z=t(396043),S=t(19585),p=t(223219),v=t(64234),h=t(282212),b=t(2590),g=t(473708);var E=a.forwardRef((function(){l.trackExposure({});var n=(0,o.e7)([v.Z],(function(){return v.Z.theme})),e=(0,o.e7)([v.Z],(function(){return v.Z.darkSidebar?b.BRd.DARK:void 0})),t=(0,o.cj)([p.Z],(function(){var n=p.Z.getSection(),e=p.Z.getSubsection(),t=p.Z.getProps();return{section:n,subsection:e,analyticsLocation:t.analyticsLocation,analyticsLocations:t.analyticsLocations}
})),E=t.section,P=t.subsection,_=t.analyticsLocation,k=t.analyticsLocations,m=(0,d.Z)(E),y=(0,d.Z)(P),T=(0,S.Z)(f.Z.USER_SETTINGS).AnalyticsLocationProvider;a.useEffect((function(){null!=E&&(E!==m||P!==y)&&function(n){var e=n.destinationPane,t=n.originPane,i=void 0===t?null:t,a=n.source,o=void 0===a?null:a,s=n.subsection,c=void 0===s?null:s,r=n.locationStack,u=void 0===r?null:r;Z.ZP.trackWithMetadata(b.rMx.SETTINGS_PANE_VIEWED,{settings_type:"user",origin_pane:i,destination_pane:e,location_stack:u,source:o,subsection:c})}({destinationPane:E,originPane:null!=m?m:null,source:_,subsection:P,locationStack:k})}),[E,m,P,y,_,k]);var A=(0,h.Z)(),L=a.useCallback((function(n){c.Z.setSection(n)}),[]);return(0,i.jsx)(T,{children:(0,i.jsx)(r.Z,{root:!0,page:b.ZY5.USER_SETTINGS,children:(0,i.jsx)(u.ZP,{theme:n,title:g.Z.Messages.USER_SETTINGS,sidebarTheme:e,section:E,onSetSection:L,onClose:s.xf,sections:A})})})}));const P=a.forwardRef((function(){var n=(0,o.e7)([p.Z],(function(){
return p.Z.getProps().analyticsLocations})),e=(0,S.Z)(n).AnalyticsLocationProvider;return(0,i.jsx)(e,{children:(0,i.jsx)(E,{})})}))},282212:(n,e,t)=>{t.d(e,{Z:()=>d});var i=t(202351),a=t(80317),o=t(846531),s=t(228667),c=t(499171),r=t(83435),u=t(223219),l=t(721110);function d(){var n=(0,r.Y)().length,e=(0,c.U)(),t=(0,a.U)().canUseAvatarDecorations,d=(0,s.G)(),f=(0,i.e7)([u.Z],(function(){return u.Z.getProps().impressionSource})),Z=(0,o.Z)(!0).hasClientThemes;return(0,l.Z)({unseenGiftCount:n,clipsEnabled:d,showPrepaidPaymentPastDueWarning:e,canUseAvatarDecorations:t,impressionSource:f,hasClientThemes:Z})}}}]);
//# sourceMappingURL=94e3960124cc8c4b5e68.js.map