Build 533169stable
Module 975616
5,048 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{e:()=>O}),n(321073);var r=n(627968),i=n(64700),s=n(919523),a=n(503698),o=n.n(a),l=n(311907),u=n(116833),c=n(397927),d=n(775602),_=n(989395),f=n(71855),p=n(867628),h=n(534409),m=n(614738),E=n(750506),g=n(869146),A=n(773669),I=n(544028),T=n(531685),S=n(837921),y=n(418842),v=n(611635),N=n(571247),C=n(985018);function R(e,t,n,r,a){let o=i.useContext(_.A),l=i.useCallback(()=>({i18n:{CANCEL:C.intl.string(C.t["ETE/oC"]),BACK:C.intl.string(C.t["13/7kX"]),NEXT:C.intl.string(C.t.PDTjLN),SUBMIT:C.intl.string(C.t.geKm7t),SPINNER_LOADING_LABEL:C.intl.string(C.t.ZTNur7),BUTTON_LOADING_STARTED_LABEL:C.intl.string(C.t.pfChQr),BUTTON_LOADING_FINISHED_LABEL:C.intl.string(C.t.SVParY),CLOSE_BUTTON_LABEL:C.intl.string(C.t.cpT0Cq),PLAY_BUTTON_LABEL:C.intl.string(C.t.RscU7I),PAUSE_BUTTON_LABEL:C.intl.string(C.t.ZcgDJX),NEW:C.intl.string(C.t.y2b7CA),BETA:C.intl.string(C.t.oW0eUd),EARLY_ACCESS:C.intl.string(C.t.EYxi0o),BILLING_TRIAL_FREE_TRIAL_TEXT:C.intl.string(C.t.IBYG5U),MODAL_DONT_SHOW_AGAIN:C.intl.string(N.default.m3Vfcs),LISTBOX_EMPTY_STATE:C.intl.string(N.default.db85vU),LISTBOX_EMPTY_STATE_WITH_QUERY:e=>C.intl.formatToPlainString(N.default.bPKiId,{query:e}),KEY_CTRL_A11Y_LABEL:C.intl.string(C.t.jm6v8i),KEY_CMD_A11Y_LABEL:C.intl.string(C.t.pYkiQq),KEY_ALT_A11Y_LABEL:C.intl.string(C.t.R2n7d3),KEY_OPTION_A11Y_LABEL:C.intl.string(C.t.FMYSJY),KEY_SHIFT:C.intl.string(C.t["L+jWo5"]),KEY_SHIFT_A11Y_LABEL:C.intl.string(C.t["q+/2+S"]),KEY_UP_A11Y_LABEL:C.intl.string(C.t.HxzHDb),KEY_DOWN_A11Y_LABEL:C.intl.string(C.t["a+iRlH"]),KEY_LEFT_A11Y_LABEL:C.intl.string(C.t.xFjIVC),KEY_RIGHT_A11Y_LABEL:C.intl.string(C.t["BT3jf/"]),KEY_PAGEUP:C.intl.string(C.t.VdCWGI),KEY_PAGEDOWN:C.intl.string(C.t.gpSh3U),KEY_ANY:C.intl.string(C.t.CkGpcV),KEY_ENTER:C.intl.string(C.t.SUweGy),KEY_ENTER_A11Y_LABEL:C.intl.string(C.t.yLNala),KEY_RETURN_A11Y_LABEL:C.intl.string(C.t.V7nPj0),KEY_ESCAPE:C.intl.string(C.t.cQmsQF),KEY_ESCAPE_A11Y_LABEL:C.intl.string(C.t["2qsw5/"]),KEY_BACKSPACE:C.intl.string(C.t["L+36+h"]),KEY_BACKSPACE_A11Y_LABEL:C.intl.string(C.t["9c/Ikv"]),KEY_DELETE_A11Y_LABEL:C.intl.string(C.t.BTFDmq),DATE_INPUT_OPEN_CALENDAR_LABEL:C.intl.string(N.default.I8kUqR),CALENDAR_PREVIOUS_MONTH_LABEL:C.intl.string(N.default.raS6yf),CALENDAR_NEXT_MONTH_LABEL:C.intl.string(N.default["/cp93l"]),INLINE_NOTICE_GENERIC_ERROR:C.intl.string(C.t["rTU7/z"]),STEP_INDICATOR:(e,t)=>C.intl.formatToPlainString(N.default["v2YSk/"],{stepNumber:e,stepCount:t}),SELECT_PLACEHOLDER:C.intl.string(N.default["A+pfVR"]),CLEAR_SELECTION:C.intl.string(N.default.JA5C7L),SELECTED_TAGS_HEADING:C.intl.string(N.default.VMNfsY),PERCENT_COMPLETE:e=>C.intl.formatToPlainString(N.default["2L/ygS"],{percent:e})},locale:a,theme:e,saturation:t,defaultLayerContext:E.uY,experiments:{enabledExperiments:n},trackImpression:o,isWindowFocused:()=>r,dynamicGraphicComponents:u.Q}),[e,t,n,o,r,a]),[c,d]=i.useState(l);return i.useLayoutEffect(()=>{function e(){d(l)}(0,s.waitForAllDefaultIntlMessagesLoaded)().then(e),C.intl.onLocaleChange(e)},[l]),c}function O(e){let{windowKey:t,themeOverride:n,children:s}=e,a=null!=t,[u]=i.useState(()=>S.Ay.getEnableHardwareAcceleration()),{locale:_,theme:E,focused:N,currentWindow:C,fontScale:O,fontScaleClass:b,keyboardModeEnabled:D,saturation:L,desaturateUserColors:w,useForcedColors:M,systemForcedColors:P,useReducedMotion:x,alwaysShowLinkDecorations:k,highContrastMode:U}=(0,l.cf)([A.default,d.A,I.A,g.A,T.A],()=>({locale:A.default.locale,theme:n??I.A.theme,focused:a?g.A.getWindowFocused(t):T.A.isFocused(),currentWindow:a?g.A.getWindow(t)??window:window,fontScale:d.A.fontScale,fontScaleClass:d.A.fontScaleClass,keyboardModeEnabled:d.A.keyboardModeEnabled,saturation:d.A.saturation,desaturateUserColors:d.A.desaturateUserColors,useForcedColors:d.A.useForcedColors,systemForcedColors:d.A.systemForcedColors,useReducedMotion:d.A.useReducedMotion,alwaysShowLinkDecorations:d.A.alwaysShowLinkDecorations,highContrastMode:d.A.isHighContrastModeEnabled})),G=(0,p.A)(C,__OVERLAY__||N),F=0;1!==L&&(F=(0,c.yVx)(F,c.ofu.REDUCE_SATURATION_ENABLED));let V=(0,y.C)(),B=(0,h.qK)("RootThemeContextProvider"),H=(0,h.k5)("RootThemeContextProvider"),j=(0,h.lV)("RootThemeContextProvider"),Y=(0,m.y)("RootThemeContextProvider"),W=(0,f.m2)({isPopoutWindow:a}),K=R(E,L,i.useMemo(()=>{let e=[];return B&&e.push("refresh-fast-follow-avatars"),H&&e.push("refresh-fast-follow-guild-bg"),j&&e.push("refresh-fast-follow-distinct-borders"),Y&&e.push("mana-toggle-inputs"),e},[B,H,j,Y]),N,_);return(0,r.jsx)(c.GE8,{value:K,children:(0,r.jsx)(c.eSm,{theme:E,flags:F,saturation:L,density:V,children:(0,r.jsx)(v.fs,{lang:_,theme:E,density:V,focused:N,fontScale:O,fontScaleClass:b,keyboardModeEnabled:D,mouseMode:G,saturation:L,desaturateUserColors:w,useForcedColors:M,systemForcedColors:P,useReducedMotion:x,alwaysShowLinkDecorations:k,hardwareAccelerationEnabled:u,highContrastMode:U,isPopoutWindow:a,rootClassName:o()(W,{"refresh-fast-follow-avatars":B,"refresh-fast-follow-guild-bg":H,"refresh-fast-follow-distinct-borders":j}),children:s})})})}}