dotfiles/.config/spicetify/Extracted/Raw/xpui/xpui-routes-web-settings.js

2 lines
2.5 KiB
JavaScript
Executable File

"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[9439],{63196:(e,s,t)=>{t.r(s),t.d(s,{default:()=>$});var n=t(59496),a=t(36844),l=t(3802),i=t(59602),g=t(43713),r=t(41836),c=t(38800),o=t(4637);const d=()=>(0,a.W6)(r.JI)?(0,o.jsxs)(i.Q,{filterMatchQuery:l.ag.get("settings.display"),children:[(0,o.jsx)(g.q,{children:l.ag.get("settings.display")}),(0,o.jsx)(c.$,{})]}):null;var u=t(63082);const p="sp_locale";var h=t(37180),j=t(19154),x=t(14786),f=t(70786),y=t(4965),k=t(48954),v=t(5181),m=t(90585);const b=()=>{const e=(0,n.useRef)(l.ag.getLocale()),[s,t]=(0,n.useState)(e.current);return(0,o.jsxs)(i.Q,{filterMatchQuery:l.ag.get("desktop.settings.language"),children:[(0,o.jsx)(g.q,{children:l.ag.get("desktop.settings.language")}),(0,o.jsxs)(k.Z,{filterMatchQuery:l.ag.get("desktop.settings.selectLanguage"),children:[(0,o.jsx)(m.M,{children:(0,o.jsx)(y.D,{htmlFor:"desktop.settings.selectLanguage",children:l.ag.get("desktop.settings.selectLanguage")})}),(0,o.jsx)(v.m,{children:(0,o.jsxs)(f.v,{dir:"auto",value:s,id:"desktop.settings.selectLanguage",onSelect:e=>{if("system-language"===e)return t(e),void(0,h.kT)(p,document,(0,x.J)("open.spotify.com"));t(e),(0,h.pC)({name:p,value:e,domain:(0,x.J)("open.spotify.com"),days:365})},children:[(0,h.vQ)(p)&&(0,o.jsx)("option",{value:"system-language",children:`System Default Language (${l.ag.get("web.settings.systemDefaultLanguage")})`}),j.ge.map((e=>(0,o.jsx)("option",{value:e,children:`${j.k1[e].displayName} (${j.k1[e].displayNameEn})`},e)))]})}),e.current!==s&&(0,o.jsx)("div",{children:(0,o.jsx)(u.P,{onClick:()=>{window.location.reload()},children:l.ag.get("error.reload")})})]})]})};var Q=t(42495),w=t(18566);function L(){return(0,a.W6)(Q.Ro,{loadingValue:!1})?(0,o.jsxs)(i.Q,{filterMatchQuery:l.ag.get("desktop.settings.playback"),children:[(0,o.jsx)(g.q,{children:l.ag.get("desktop.settings.playback")}),(0,o.jsx)(w.Z,{})]}):null}var M=t(60315);const R=()=>(0,a.W6)(r.AJ,{loadingValue:!1})?(0,o.jsxs)(i.Q,{filterMatchQuery:l.ag.get("desktop.settings.social"),children:[(0,o.jsx)(g.q,{children:l.ag.get("desktop.settings.social")}),(0,o.jsx)(M.A,{})]}):null;var q=t(43988),C=t(14725),J=t(51269),W=t(84721);const $=()=>{const e=(0,n.useRef)(null),s=(0,a.W6)(r.yA,{loadingValue:!1});return(0,o.jsxs)(J.T,{outerRef:e,children:[(0,o.jsx)(W.b,{containerRef:e}),(0,o.jsx)(b,{}),s&&(0,o.jsx)(C.H,{children:(0,o.jsx)(q.v,{})}),(0,o.jsx)(d,{}),(0,o.jsx)(L,{}),(0,o.jsx)(R,{})]})}}}]);
//# sourceMappingURL=xpui-routes-web-settings.js.map