Build 589089stable
Module 773669
815 characters · in no known chunkDependencies
Required by (97)
37382211858703612996748071532990369903699462103531118982135314159273174530191711203779232835258360258599264322319820321191328968350172356645370997385430397313424170426190434404448429460760463398488358497685498480509614514547521790531913540737545152559260561573563608577593578434580630590180612400631576636254638421639245655758673809693879710969720882742077742424743987753031754744768463780907832163834135839534845012846966860839862772869362872233883600916260927815939538939981942262946228956123961349962008962644963402965660966833975571977850980390993046993748995142996254
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>A});var i=n(17928),r=n(228366),a=n(724066),s=n(77729),l=n(617617),o=n(375708);async function d(){if(s.A?.app?.getPreferredSystemLanguages!=null){let e=await s.A.app.getPreferredSystemLanguages().then(e=>e[0]);if(null!=e&&""!==e)return e}return o.systemLocale}let c=o.intl.currentLocale,u=o.systemLocale;function _(){let e=l.A.settings.localization?.locale?.value;return null!=e&&""!==e&&e!==c&&(c=e,(0,a.Av)(c),!0)}d().then(e=>{u=e});class E extends i.Ay.Store{static displayName="LocaleStore";initialize(){this.waitFor(l.A),_(),(0,a.Av)(c)}get locale(){return c}get systemLocale(){return u}}let A=new E(r.h,{OVERLAY_INITIALIZE:_,CACHE_LOADED:_,CONNECTION_OPEN:_,USER_SETTINGS_PROTO_UPDATE:_,USER_SETTINGS_LOCALE_OVERRIDE:function(e){c=e.locale,(0,a.Av)(c)}})}