@prozilla-os/settings 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +203 -200
- package/dist/main.js.map +1 -1
- package/package.json +6 -6
package/dist/main.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('._SettingsContainer_13l5q_1{width:100%;height:100%;position:sticky;top:0;left:0}._Settings_13l5q_1{--tabs-width: 10rem;flex:1;display:flex;width:100%;height:100%;background-color:var(--background-color-2)}._Tabs_13l5q_37{display:flex;gap:.25rem;flex-direction:column;min-width:calc(var(--tabs-width) / 2);width:var(--tabs-width);height:100%;max-width:50%;padding:.5rem;margin:0;background-color:var(--background-color-2);resize:horizontal;overflow:hidden}._TabButton_13l5q_67{display:flex;gap:.5rem;align-items:center;width:100%;min-width:fit-content;padding:.75rem;border-radius:var(--border-radius-1);font-size:.875rem}._TabButton_13l5q_67._ActiveTab_13l5q_89{background-color:var(--background-color-0)}._TabButton_13l5q_67:not(._ActiveTab_13l5q_89):hover,._TabButton_13l5q_67:not(._ActiveTab_13l5q_89):focus-visible{background-color:color-mix(in srgb,var(--background-color-0) 50%,transparent)}._TabButton_13l5q_67>svg{height:1.35rem;aspect-ratio:1}._TabButton_13l5q_67>p{margin:0}._TabPanel_13l5q_125{flex:1;display:flex;flex-direction:column;align-content:flex-start;height:100%;padding:.5rem 1rem;background-color:var(--background-color-3);overflow:auto}._TabPanel_13l5q_125:not(._ActivePanel_13l5q_147){display:none}._Option_13l5q_155{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:start;width:100%;padding-bottom:1rem}._OptionList_13l5q_175{gap:.5rem}._OptionList_13l5q_175 ._Option_13l5q_155{padding-bottom:0}._OptionHorizontal_13l5q_191{flex-direction:row;justify-content:space-between}._Option_13l5q_155>._Label_13l5q_201{color:var(--foreground-color-0)}._Input_13l5q_209{display:flex;gap:.5rem;flex-wrap:wrap}._Input_13l5q_209>label{flex:1;display:flex}._ImageSelectContainer_13l5q_231{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:.5rem}._ImageSelect_13l5q_231{display:block;width:100%}._ImageSelect_13l5q_231>input{position:absolute;opacity:0;width:0;height:0}._ImageSelect_13l5q_231>input:hover+img,._ImageSelect_13l5q_231>input:focus-visible+img{filter:brightness(110%)}._ImageSelect_13l5q_231>input:checked+img{outline:.25em solid var(--foreground-color-0)}._ImageSelect_13l5q_231>img{width:100%;height:100%;border-radius:var(--border-radius-1);transition:filter .1s ease-in-out;cursor:pointer}._ButtonGroup_13l5q_301{display:flex;gap:1rem;flex-wrap:wrap;margin:.75rem 0}._ButtonGroup_13l5q_301 ._Button_13l5q_301{margin-bottom:0}._Button_13l5q_301{--normal-color: var(--background-color-0) !important;--hover-color: var(--background-color-1) !important;margin-bottom:.75rem!important;padding:.5rem 1rem;border-radius:var(--border-radius-1)}._ButtonDanger_13l5q_341{--text-color: var(--black-1) !important;--normal-color: var(--red-0) !important;--hover-color: var(--red-1) !important}._IconButton_13l5q_353{--color: var(--foreground-color-0);position:relative;height:1.25rem;width:auto;padding:0;background:none;border:none;outline:none;aspect-ratio:1;cursor:pointer}._IconButton_13l5q_353:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#fff0;border-radius:var(--border-radius-99);transform:scale(1);transform-origin:center;transition:all .2s ease-in-out}._IconButton_13l5q_353:hover:after,._IconButton_13l5q_353:focus-visible:after{background-color:#ffffff1a;transform:scale(1.5)}._IconButton_13l5q_353:disabled{--color: var(--foreground-color-2)}._IconButton_13l5q_353 svg{height:100%}._IconButton_13l5q_353 svg path{fill:var(--color);transition:fill .1s ease-in-out}._ProgressBarContainer_13l5q_445{width:100%;max-width:35rem}._ProgressBar_13l5q_445{width:100%!important}._ProgressBarLabels_13l5q_463{display:flex;justify-content:space-between;width:100%}._Option_13l5q_155>span._Label_13l5q_201{display:flex;gap:.5rem;align-items:center}._Icon_13l5q_353{display:inline-block;width:2rem;height:2rem}._Icon_13l5q_353 div{width:inherit;height:inherit}._Icon_13l5q_353 div>svg{width:inherit;height:inherit;object-fit:contain}._Dropdown_13l5q_521{width:auto;max-width:calc(60% - var(--gap));padding:.5rem 1rem;color:var(--text-color);background-color:var(--background-color-0);border:none;border-radius:var(--border-radius-1);outline:none;font-size:.875em}._Dropdown_13l5q_521>*{color:inherit;background-color:inherit;border:none;border-radius:var(--border-radius-1);outline:none;font-family:inherit;font-size:inherit}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
import { App as pt, AppsConfig as bt, useVirtualRoot as Pe, useWindowsManager as We, useSystemManager as me, useHistory as
|
|
2
|
+
import { App as pt, AppsConfig as bt, useVirtualRoot as Pe, useWindowsManager as We, useSystemManager as me, useHistory as It, useAlert as Ot, useWindowedModal as mt, useContextMenu as je, Actions as Fe, ClickAction as ie, Vector2 as be, Divider as At, VirtualRoot as Je, DialogBox as Ze, ModalsConfig as Qe, DirectoryList as Rt, CODE_EXTENSIONS as $t, utilStyles as K, WindowedModal as Bt, ImagePreview as qe, StorageManager as ue, VirtualFile as Lt, useSettingsManager as Ye, SettingsManager as we, THEMES as kt, Button as Se, IMAGE_EXTENSIONS as Dt, ProgressBar as Mt } from "@prozilla-os/core";
|
|
3
3
|
import { jsxs as E, jsx as s, Fragment as ht } from "react/jsx-runtime";
|
|
4
4
|
import { FontAwesomeIcon as X } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import { faTrash as et, faCircleInfo as yt, faCaretLeft as jt, faCaretRight as
|
|
6
|
-
import pe, { Children as vt, cloneElement as _e, useRef as Te, useId as
|
|
7
|
-
import { round as
|
|
8
|
-
const
|
|
9
|
-
SettingsContainer:
|
|
10
|
-
Settings:
|
|
11
|
-
Tabs:
|
|
12
|
-
TabButton:
|
|
13
|
-
ActiveTab:
|
|
14
|
-
TabPanel:
|
|
15
|
-
ActivePanel:
|
|
16
|
-
Option:
|
|
17
|
-
OptionList:
|
|
18
|
-
OptionHorizontal:
|
|
19
|
-
Label:
|
|
20
|
-
Input:
|
|
21
|
-
ImageSelectContainer:
|
|
22
|
-
ImageSelect:
|
|
23
|
-
ButtonGroup:
|
|
24
|
-
Button:
|
|
25
|
-
ButtonDanger:
|
|
26
|
-
IconButton:
|
|
27
|
-
ProgressBarContainer:
|
|
28
|
-
ProgressBar:
|
|
29
|
-
ProgressBarLabels:
|
|
30
|
-
Icon:
|
|
31
|
-
Dropdown:
|
|
5
|
+
import { faTrash as et, faCircleInfo as yt, faCaretLeft as jt, faCaretRight as Ft, faArrowUp as qt, faPlus as Ut, faSearch as zt, faCog as Wt, faHouse as Yt, faDesktop as Vt, faImage as Ht, faFileLines as Kt, faDownload as Gt, faThumbTack as Xt, faEllipsisVertical as Jt, faShapes as Zt, faPalette as Qt, faHardDrive as en } from "@fortawesome/free-solid-svg-icons";
|
|
6
|
+
import pe, { Children as vt, cloneElement as _e, useRef as Te, useId as tn, useState as te, useEffect as se, useCallback as nn } from "react";
|
|
7
|
+
import { round as Ae, removeFromArray as rn } from "@prozilla-os/shared";
|
|
8
|
+
const on = "_SettingsContainer_13l5q_1", an = "_Settings_13l5q_1", sn = "_Tabs_13l5q_37", ln = "_TabButton_13l5q_67", cn = "_ActiveTab_13l5q_89", un = "_TabPanel_13l5q_125", dn = "_ActivePanel_13l5q_147", fn = "_Option_13l5q_155", pn = "_OptionList_13l5q_175", bn = "_OptionHorizontal_13l5q_191", mn = "_Label_13l5q_201", hn = "_Input_13l5q_209", yn = "_ImageSelectContainer_13l5q_231", vn = "_ImageSelect_13l5q_231", gn = "_ButtonGroup_13l5q_301", _n = "_Button_13l5q_301", Tn = "_ButtonDanger_13l5q_341", En = "_IconButton_13l5q_353", wn = "_ProgressBarContainer_13l5q_445", Sn = "_ProgressBar_13l5q_445", xn = "_ProgressBarLabels_13l5q_463", Cn = "_Icon_13l5q_353", Pn = "_Dropdown_13l5q_521", S = {
|
|
9
|
+
SettingsContainer: on,
|
|
10
|
+
Settings: an,
|
|
11
|
+
Tabs: sn,
|
|
12
|
+
TabButton: ln,
|
|
13
|
+
ActiveTab: cn,
|
|
14
|
+
TabPanel: un,
|
|
15
|
+
ActivePanel: dn,
|
|
16
|
+
Option: fn,
|
|
17
|
+
OptionList: pn,
|
|
18
|
+
OptionHorizontal: bn,
|
|
19
|
+
Label: mn,
|
|
20
|
+
Input: hn,
|
|
21
|
+
ImageSelectContainer: yn,
|
|
22
|
+
ImageSelect: vn,
|
|
23
|
+
ButtonGroup: gn,
|
|
24
|
+
Button: _n,
|
|
25
|
+
ButtonDanger: Tn,
|
|
26
|
+
IconButton: En,
|
|
27
|
+
ProgressBarContainer: wn,
|
|
28
|
+
ProgressBar: Sn,
|
|
29
|
+
ProgressBarLabels: xn,
|
|
30
|
+
Icon: Cn,
|
|
31
|
+
Dropdown: Pn
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function Nn(e) {
|
|
34
34
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
35
35
|
}
|
|
36
36
|
var Ue = { exports: {} }, ve = { exports: {} }, D = {};
|
|
@@ -43,7 +43,7 @@ var Ue = { exports: {} }, ve = { exports: {} }, D = {};
|
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
45
|
var tt;
|
|
46
|
-
function
|
|
46
|
+
function In() {
|
|
47
47
|
if (tt) return D;
|
|
48
48
|
tt = 1;
|
|
49
49
|
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, y = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, P = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, F = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
|
|
@@ -108,7 +108,7 @@ function Nn() {
|
|
|
108
108
|
return typeof u == "string" || typeof u == "function" || u === r || u === y || u === a || u === l || u === C || u === k || typeof u == "object" && u !== null && (u.$$typeof === N || u.$$typeof === P || u.$$typeof === h || u.$$typeof === i || u.$$typeof === d || u.$$typeof === F || u.$$typeof === Y || u.$$typeof === Q || u.$$typeof === x);
|
|
109
109
|
}, D.typeOf = U, D;
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var M = {};
|
|
112
112
|
/** @license React v16.13.1
|
|
113
113
|
* react-is.development.js
|
|
114
114
|
*
|
|
@@ -118,7 +118,7 @@ var j = {};
|
|
|
118
118
|
* LICENSE file in the root directory of this source tree.
|
|
119
119
|
*/
|
|
120
120
|
var nt;
|
|
121
|
-
function
|
|
121
|
+
function On() {
|
|
122
122
|
return nt || (nt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
123
123
|
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, y = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, P = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, F = e ? Symbol.for("react.fundamental") : 60117, Y = e ? Symbol.for("react.responder") : 60118, Q = e ? Symbol.for("react.scope") : 60119;
|
|
124
124
|
function U(c) {
|
|
@@ -157,7 +157,7 @@ function In() {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
var u = v, ee = y, ne = i, le = h, ce = n, J = d, re = r, oe = N, m = P, p = t, g = a, w = l,
|
|
160
|
+
var u = v, ee = y, ne = i, le = h, ce = n, J = d, re = r, oe = N, m = P, p = t, g = a, w = l, j = C, V = !1;
|
|
161
161
|
function G(c) {
|
|
162
162
|
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(c) || q(c) === v;
|
|
163
163
|
}
|
|
@@ -167,7 +167,7 @@ function In() {
|
|
|
167
167
|
function f(c) {
|
|
168
168
|
return q(c) === i;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function A(c) {
|
|
171
171
|
return q(c) === h;
|
|
172
172
|
}
|
|
173
173
|
function O(c) {
|
|
@@ -176,7 +176,7 @@ function In() {
|
|
|
176
176
|
function _(c) {
|
|
177
177
|
return q(c) === d;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function R(c) {
|
|
180
180
|
return q(c) === r;
|
|
181
181
|
}
|
|
182
182
|
function T(c) {
|
|
@@ -197,21 +197,21 @@ function In() {
|
|
|
197
197
|
function W(c) {
|
|
198
198
|
return q(c) === C;
|
|
199
199
|
}
|
|
200
|
-
|
|
201
|
-
}()),
|
|
200
|
+
M.AsyncMode = u, M.ConcurrentMode = ee, M.ContextConsumer = ne, M.ContextProvider = le, M.Element = ce, M.ForwardRef = J, M.Fragment = re, M.Lazy = oe, M.Memo = m, M.Portal = p, M.Profiler = g, M.StrictMode = w, M.Suspense = j, M.isAsyncMode = G, M.isConcurrentMode = o, M.isContextConsumer = f, M.isContextProvider = A, M.isElement = O, M.isForwardRef = _, M.isFragment = R, M.isLazy = T, M.isMemo = I, M.isPortal = B, M.isProfiler = L, M.isStrictMode = $, M.isSuspense = W, M.isValidElementType = U, M.typeOf = q;
|
|
201
|
+
}()), M;
|
|
202
202
|
}
|
|
203
203
|
var rt;
|
|
204
204
|
function gt() {
|
|
205
|
-
return rt || (rt = 1, process.env.NODE_ENV === "production" ? ve.exports =
|
|
205
|
+
return rt || (rt = 1, process.env.NODE_ENV === "production" ? ve.exports = In() : ve.exports = On()), ve.exports;
|
|
206
206
|
}
|
|
207
207
|
/*
|
|
208
208
|
object-assign
|
|
209
209
|
(c) Sindre Sorhus
|
|
210
210
|
@license MIT
|
|
211
211
|
*/
|
|
212
|
-
var
|
|
213
|
-
function
|
|
214
|
-
if (ot) return
|
|
212
|
+
var Re, ot;
|
|
213
|
+
function An() {
|
|
214
|
+
if (ot) return Re;
|
|
215
215
|
ot = 1;
|
|
216
216
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
217
217
|
function r(a) {
|
|
@@ -241,7 +241,7 @@ function On() {
|
|
|
241
241
|
return !1;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
return
|
|
244
|
+
return Re = l() ? Object.assign : function(a, h) {
|
|
245
245
|
for (var i, v = r(a), y, d = 1; d < arguments.length; d++) {
|
|
246
246
|
i = Object(arguments[d]);
|
|
247
247
|
for (var C in i)
|
|
@@ -253,7 +253,7 @@ function On() {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
return v;
|
|
256
|
-
},
|
|
256
|
+
}, Re;
|
|
257
257
|
}
|
|
258
258
|
var $e, at;
|
|
259
259
|
function Ve() {
|
|
@@ -316,10 +316,10 @@ function Rn() {
|
|
|
316
316
|
}, Le = l, Le;
|
|
317
317
|
}
|
|
318
318
|
var ke, lt;
|
|
319
|
-
function
|
|
319
|
+
function $n() {
|
|
320
320
|
if (lt) return ke;
|
|
321
321
|
lt = 1;
|
|
322
|
-
var e = gt(), n =
|
|
322
|
+
var e = gt(), n = An(), t = Ve(), r = _t(), l = Rn(), a = function() {
|
|
323
323
|
};
|
|
324
324
|
process.env.NODE_ENV !== "production" && (a = function(i) {
|
|
325
325
|
var v = "Warning: " + i;
|
|
@@ -369,8 +369,8 @@ function An() {
|
|
|
369
369
|
x.prototype = Error.prototype;
|
|
370
370
|
function F(o) {
|
|
371
371
|
if (process.env.NODE_ENV !== "production")
|
|
372
|
-
var f = {},
|
|
373
|
-
function O(
|
|
372
|
+
var f = {}, A = 0;
|
|
373
|
+
function O(R, T, I, B, L, $, W) {
|
|
374
374
|
if (B = B || k, $ = $ || I, W !== t) {
|
|
375
375
|
if (v) {
|
|
376
376
|
var c = new Error(
|
|
@@ -380,23 +380,23 @@ function An() {
|
|
|
380
380
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
381
381
|
var Z = B + ":" + I;
|
|
382
382
|
!f[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
383
|
-
|
|
383
|
+
A < 3 && (a(
|
|
384
384
|
"You are manually calling a React.PropTypes validation function for the `" + $ + "` prop on `" + B + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
385
|
-
), f[Z] = !0,
|
|
385
|
+
), f[Z] = !0, A++);
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
return T[I] == null ?
|
|
388
|
+
return T[I] == null ? R ? T[I] === null ? new x("The " + L + " `" + $ + "` is marked as required " + ("in `" + B + "`, but its value is `null`.")) : new x("The " + L + " `" + $ + "` is marked as required in " + ("`" + B + "`, but its value is `undefined`.")) : null : o(T, I, B, L, $);
|
|
389
389
|
}
|
|
390
390
|
var _ = O.bind(null, !1);
|
|
391
391
|
return _.isRequired = O.bind(null, !0), _;
|
|
392
392
|
}
|
|
393
393
|
function Y(o) {
|
|
394
|
-
function f(
|
|
395
|
-
var B =
|
|
394
|
+
function f(A, O, _, R, T, I) {
|
|
395
|
+
var B = A[O], L = w(B);
|
|
396
396
|
if (L !== o) {
|
|
397
|
-
var $ =
|
|
397
|
+
var $ = j(B);
|
|
398
398
|
return new x(
|
|
399
|
-
"Invalid " +
|
|
399
|
+
"Invalid " + R + " `" + T + "` of type " + ("`" + $ + "` supplied to `" + _ + "`, expected ") + ("`" + o + "`."),
|
|
400
400
|
{ expectedType: o }
|
|
401
401
|
);
|
|
402
402
|
}
|
|
@@ -408,16 +408,16 @@ function An() {
|
|
|
408
408
|
return F(h);
|
|
409
409
|
}
|
|
410
410
|
function U(o) {
|
|
411
|
-
function f(
|
|
411
|
+
function f(A, O, _, R, T) {
|
|
412
412
|
if (typeof o != "function")
|
|
413
413
|
return new x("Property `" + T + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
414
|
-
var I =
|
|
414
|
+
var I = A[O];
|
|
415
415
|
if (!Array.isArray(I)) {
|
|
416
416
|
var B = w(I);
|
|
417
|
-
return new x("Invalid " +
|
|
417
|
+
return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected an array."));
|
|
418
418
|
}
|
|
419
419
|
for (var L = 0; L < I.length; L++) {
|
|
420
|
-
var $ = o(I, L, _,
|
|
420
|
+
var $ = o(I, L, _, R, T + "[" + L + "]", t);
|
|
421
421
|
if ($ instanceof Error)
|
|
422
422
|
return $;
|
|
423
423
|
}
|
|
@@ -426,32 +426,32 @@ function An() {
|
|
|
426
426
|
return F(f);
|
|
427
427
|
}
|
|
428
428
|
function q() {
|
|
429
|
-
function o(f,
|
|
430
|
-
var T = f[
|
|
429
|
+
function o(f, A, O, _, R) {
|
|
430
|
+
var T = f[A];
|
|
431
431
|
if (!i(T)) {
|
|
432
432
|
var I = w(T);
|
|
433
|
-
return new x("Invalid " + _ + " `" +
|
|
433
|
+
return new x("Invalid " + _ + " `" + R + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
434
434
|
}
|
|
435
435
|
return null;
|
|
436
436
|
}
|
|
437
437
|
return F(o);
|
|
438
438
|
}
|
|
439
439
|
function u() {
|
|
440
|
-
function o(f,
|
|
441
|
-
var T = f[
|
|
440
|
+
function o(f, A, O, _, R) {
|
|
441
|
+
var T = f[A];
|
|
442
442
|
if (!e.isValidElementType(T)) {
|
|
443
443
|
var I = w(T);
|
|
444
|
-
return new x("Invalid " + _ + " `" +
|
|
444
|
+
return new x("Invalid " + _ + " `" + R + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
445
445
|
}
|
|
446
446
|
return null;
|
|
447
447
|
}
|
|
448
448
|
return F(o);
|
|
449
449
|
}
|
|
450
450
|
function ee(o) {
|
|
451
|
-
function f(
|
|
452
|
-
if (!(
|
|
453
|
-
var I = o.name || k, B = G(
|
|
454
|
-
return new x("Invalid " +
|
|
451
|
+
function f(A, O, _, R, T) {
|
|
452
|
+
if (!(A[O] instanceof o)) {
|
|
453
|
+
var I = o.name || k, B = G(A[O]);
|
|
454
|
+
return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected ") + ("instance of `" + I + "`."));
|
|
455
455
|
}
|
|
456
456
|
return null;
|
|
457
457
|
}
|
|
@@ -462,28 +462,28 @@ function An() {
|
|
|
462
462
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
463
463
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
464
464
|
) : a("Invalid argument supplied to oneOf, expected an array.")), h;
|
|
465
|
-
function f(
|
|
466
|
-
for (var I =
|
|
465
|
+
function f(A, O, _, R, T) {
|
|
466
|
+
for (var I = A[O], B = 0; B < o.length; B++)
|
|
467
467
|
if (N(I, o[B]))
|
|
468
468
|
return null;
|
|
469
469
|
var L = JSON.stringify(o, function(W, c) {
|
|
470
|
-
var Z =
|
|
470
|
+
var Z = j(c);
|
|
471
471
|
return Z === "symbol" ? String(c) : c;
|
|
472
472
|
});
|
|
473
|
-
return new x("Invalid " +
|
|
473
|
+
return new x("Invalid " + R + " `" + T + "` of value `" + String(I) + "` " + ("supplied to `" + _ + "`, expected one of " + L + "."));
|
|
474
474
|
}
|
|
475
475
|
return F(f);
|
|
476
476
|
}
|
|
477
477
|
function le(o) {
|
|
478
|
-
function f(
|
|
478
|
+
function f(A, O, _, R, T) {
|
|
479
479
|
if (typeof o != "function")
|
|
480
480
|
return new x("Property `" + T + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
481
|
-
var I =
|
|
481
|
+
var I = A[O], B = w(I);
|
|
482
482
|
if (B !== "object")
|
|
483
|
-
return new x("Invalid " +
|
|
483
|
+
return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected an object."));
|
|
484
484
|
for (var L in I)
|
|
485
485
|
if (r(I, L)) {
|
|
486
|
-
var $ = o(I, L, _,
|
|
486
|
+
var $ = o(I, L, _, R, T + "." + L, t);
|
|
487
487
|
if ($ instanceof Error)
|
|
488
488
|
return $;
|
|
489
489
|
}
|
|
@@ -495,15 +495,15 @@ function An() {
|
|
|
495
495
|
if (!Array.isArray(o))
|
|
496
496
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), h;
|
|
497
497
|
for (var f = 0; f < o.length; f++) {
|
|
498
|
-
var
|
|
499
|
-
if (typeof
|
|
498
|
+
var A = o[f];
|
|
499
|
+
if (typeof A != "function")
|
|
500
500
|
return a(
|
|
501
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(
|
|
501
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(A) + " at index " + f + "."
|
|
502
502
|
), h;
|
|
503
503
|
}
|
|
504
|
-
function O(_,
|
|
504
|
+
function O(_, R, T, I, B) {
|
|
505
505
|
for (var L = [], $ = 0; $ < o.length; $++) {
|
|
506
|
-
var W = o[$], c = W(_,
|
|
506
|
+
var W = o[$], c = W(_, R, T, I, B, t);
|
|
507
507
|
if (c == null)
|
|
508
508
|
return null;
|
|
509
509
|
c.data && r(c.data, "expectedType") && L.push(c.data.expectedType);
|
|
@@ -514,26 +514,26 @@ function An() {
|
|
|
514
514
|
return F(O);
|
|
515
515
|
}
|
|
516
516
|
function J() {
|
|
517
|
-
function o(f,
|
|
518
|
-
return p(f[
|
|
517
|
+
function o(f, A, O, _, R) {
|
|
518
|
+
return p(f[A]) ? null : new x("Invalid " + _ + " `" + R + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
519
519
|
}
|
|
520
520
|
return F(o);
|
|
521
521
|
}
|
|
522
|
-
function re(o, f,
|
|
522
|
+
function re(o, f, A, O, _) {
|
|
523
523
|
return new x(
|
|
524
|
-
(o || "React class") + ": " + f + " type `" +
|
|
524
|
+
(o || "React class") + ": " + f + " type `" + A + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
525
525
|
);
|
|
526
526
|
}
|
|
527
527
|
function oe(o) {
|
|
528
|
-
function f(
|
|
529
|
-
var I =
|
|
528
|
+
function f(A, O, _, R, T) {
|
|
529
|
+
var I = A[O], B = w(I);
|
|
530
530
|
if (B !== "object")
|
|
531
|
-
return new x("Invalid " +
|
|
531
|
+
return new x("Invalid " + R + " `" + T + "` of type `" + B + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
532
532
|
for (var L in o) {
|
|
533
533
|
var $ = o[L];
|
|
534
534
|
if (typeof $ != "function")
|
|
535
|
-
return re(_,
|
|
536
|
-
var W = $(I, L, _,
|
|
535
|
+
return re(_, R, T, L, j($));
|
|
536
|
+
var W = $(I, L, _, R, T + "." + L, t);
|
|
537
537
|
if (W)
|
|
538
538
|
return W;
|
|
539
539
|
}
|
|
@@ -542,21 +542,21 @@ function An() {
|
|
|
542
542
|
return F(f);
|
|
543
543
|
}
|
|
544
544
|
function m(o) {
|
|
545
|
-
function f(
|
|
546
|
-
var I =
|
|
545
|
+
function f(A, O, _, R, T) {
|
|
546
|
+
var I = A[O], B = w(I);
|
|
547
547
|
if (B !== "object")
|
|
548
|
-
return new x("Invalid " +
|
|
549
|
-
var L = n({},
|
|
548
|
+
return new x("Invalid " + R + " `" + T + "` of type `" + B + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
549
|
+
var L = n({}, A[O], o);
|
|
550
550
|
for (var $ in L) {
|
|
551
551
|
var W = o[$];
|
|
552
552
|
if (r(o, $) && typeof W != "function")
|
|
553
|
-
return re(_,
|
|
553
|
+
return re(_, R, T, $, j(W));
|
|
554
554
|
if (!W)
|
|
555
555
|
return new x(
|
|
556
|
-
"Invalid " +
|
|
556
|
+
"Invalid " + R + " `" + T + "` key `" + $ + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(A[O], null, " ") + `
|
|
557
557
|
Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
558
558
|
);
|
|
559
|
-
var c = W(I, $, _,
|
|
559
|
+
var c = W(I, $, _, R, T + "." + $, t);
|
|
560
560
|
if (c)
|
|
561
561
|
return c;
|
|
562
562
|
}
|
|
@@ -579,13 +579,13 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
579
579
|
return !0;
|
|
580
580
|
var f = C(o);
|
|
581
581
|
if (f) {
|
|
582
|
-
var
|
|
582
|
+
var A = f.call(o), O;
|
|
583
583
|
if (f !== o.entries) {
|
|
584
|
-
for (; !(O =
|
|
584
|
+
for (; !(O = A.next()).done; )
|
|
585
585
|
if (!p(O.value))
|
|
586
586
|
return !1;
|
|
587
587
|
} else
|
|
588
|
-
for (; !(O =
|
|
588
|
+
for (; !(O = A.next()).done; ) {
|
|
589
589
|
var _ = O.value;
|
|
590
590
|
if (_ && !p(_[1]))
|
|
591
591
|
return !1;
|
|
@@ -604,7 +604,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
604
604
|
var f = typeof o;
|
|
605
605
|
return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : g(f, o) ? "symbol" : f;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function j(o) {
|
|
608
608
|
if (typeof o > "u" || o === null)
|
|
609
609
|
return "" + o;
|
|
610
610
|
var f = w(o);
|
|
@@ -617,7 +617,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
617
617
|
return f;
|
|
618
618
|
}
|
|
619
619
|
function V(o) {
|
|
620
|
-
var f =
|
|
620
|
+
var f = j(o);
|
|
621
621
|
switch (f) {
|
|
622
622
|
case "array":
|
|
623
623
|
case "object":
|
|
@@ -637,7 +637,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
637
637
|
}, ke;
|
|
638
638
|
}
|
|
639
639
|
var De, ct;
|
|
640
|
-
function
|
|
640
|
+
function Bn() {
|
|
641
641
|
if (ct) return De;
|
|
642
642
|
ct = 1;
|
|
643
643
|
var e = Ve();
|
|
@@ -685,21 +685,21 @@ function $n() {
|
|
|
685
685
|
}, De;
|
|
686
686
|
}
|
|
687
687
|
if (process.env.NODE_ENV !== "production") {
|
|
688
|
-
var
|
|
689
|
-
Ue.exports =
|
|
688
|
+
var Ln = gt(), kn = !0;
|
|
689
|
+
Ue.exports = $n()(Ln.isElement, kn);
|
|
690
690
|
} else
|
|
691
|
-
Ue.exports =
|
|
692
|
-
var
|
|
693
|
-
const b = /* @__PURE__ */
|
|
691
|
+
Ue.exports = Bn()();
|
|
692
|
+
var Dn = Ue.exports;
|
|
693
|
+
const b = /* @__PURE__ */ Nn(Dn);
|
|
694
694
|
function He(e) {
|
|
695
695
|
return (n) => !!n.type && n.type.tabsRole === e;
|
|
696
696
|
}
|
|
697
697
|
const he = He("Tab"), Ne = He("TabList"), Ie = He("TabPanel");
|
|
698
|
-
function
|
|
698
|
+
function Mn(e) {
|
|
699
699
|
return he(e) || Ne(e) || Ie(e);
|
|
700
700
|
}
|
|
701
701
|
function ze(e, n) {
|
|
702
|
-
return vt.map(e, (t) => t === null ? null :
|
|
702
|
+
return vt.map(e, (t) => t === null ? null : Mn(t) ? n(t) : t.props && t.props.children && typeof t.props.children == "object" ? _e(t, { ...t.props, children: ze(t.props.children, n) }) : t);
|
|
703
703
|
}
|
|
704
704
|
function xe(e, n) {
|
|
705
705
|
return vt.forEach(e, (t) => {
|
|
@@ -720,7 +720,7 @@ function jn(e, n, t, r, l) {
|
|
|
720
720
|
\`onSelect\` is required when \`selectedIndex\` is also set. Not doing so will make the tabs not do anything, as \`selectedIndex\` indicates that you want to handle the selected tab yourself.
|
|
721
721
|
If you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)), i;
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Fn(e, n, t, r, l) {
|
|
724
724
|
const a = e[n], h = l || n;
|
|
725
725
|
let i = null;
|
|
726
726
|
if (a != null && typeof a != "number")
|
|
@@ -759,7 +759,7 @@ function ae(e) {
|
|
|
759
759
|
return St(e) && e.getAttribute("aria-disabled") === "true";
|
|
760
760
|
}
|
|
761
761
|
let Ce;
|
|
762
|
-
function
|
|
762
|
+
function qn(e) {
|
|
763
763
|
const n = e || (typeof window < "u" ? window : void 0);
|
|
764
764
|
try {
|
|
765
765
|
Ce = !!(typeof n < "u" && n.document && n.document.activeElement);
|
|
@@ -767,7 +767,7 @@ function Fn(e) {
|
|
|
767
767
|
Ce = !1;
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
const
|
|
770
|
+
const Un = { className: "react-tabs", focus: !1 }, zn = process.env.NODE_ENV !== "production" ? { children: Tt, direction: b.oneOf(["rtl", "ltr"]), className: b.oneOfType([b.string, b.array, b.object]), disabledTabClassName: b.string, disableUpDownKeys: b.bool, disableLeftRightKeys: b.bool, domRef: b.func, focus: b.bool, forceRenderTabPanel: b.bool, onSelect: b.func.isRequired, selectedIndex: b.number.isRequired, selectedTabClassName: b.string, selectedTabPanelClassName: b.string, environment: b.object } : {}, xt = (e) => {
|
|
771
771
|
let n = Te([]), t = Te([]);
|
|
772
772
|
const r = Te();
|
|
773
773
|
function l(m, p) {
|
|
@@ -818,19 +818,19 @@ const qn = { className: "react-tabs", focus: !1 }, Un = process.env.NODE_ENV !==
|
|
|
818
818
|
}
|
|
819
819
|
function C() {
|
|
820
820
|
let m = 0;
|
|
821
|
-
const { children: p, disabledTabClassName: g, focus: w, forceRenderTabPanel:
|
|
821
|
+
const { children: p, disabledTabClassName: g, focus: w, forceRenderTabPanel: j, selectedIndex: V, selectedTabClassName: G, selectedTabPanelClassName: o, environment: f } = e;
|
|
822
822
|
t.current = t.current || [];
|
|
823
|
-
let
|
|
824
|
-
const O =
|
|
825
|
-
for (;
|
|
823
|
+
let A = t.current.length - y();
|
|
824
|
+
const O = tn();
|
|
825
|
+
for (; A++ < 0; )
|
|
826
826
|
t.current.push(`${O}${t.current.length}`);
|
|
827
827
|
return ze(p, (_) => {
|
|
828
|
-
let
|
|
828
|
+
let R = _;
|
|
829
829
|
if (Ne(_)) {
|
|
830
830
|
let T = 0, I = !1;
|
|
831
|
-
Ce == null &&
|
|
831
|
+
Ce == null && qn(f);
|
|
832
832
|
const B = f || (typeof window < "u" ? window : void 0);
|
|
833
|
-
Ce && B && (I = pe.Children.toArray(_.props.children).filter(he).some((L, $) => B.document.activeElement === d($))),
|
|
833
|
+
Ce && B && (I = pe.Children.toArray(_.props.children).filter(he).some((L, $) => B.document.activeElement === d($))), R = _e(_, { children: ze(_.props.children, (L) => {
|
|
834
834
|
const $ = `tabs-${T}`, W = V === T, c = { tabRef: (Z) => {
|
|
835
835
|
n.current[$] = Z;
|
|
836
836
|
}, id: t.current[T], selected: W, focus: W && (w || I) };
|
|
@@ -838,16 +838,16 @@ const qn = { className: "react-tabs", focus: !1 }, Un = process.env.NODE_ENV !==
|
|
|
838
838
|
}) });
|
|
839
839
|
} else if (Ie(_)) {
|
|
840
840
|
const T = { id: t.current[m], selected: V === m };
|
|
841
|
-
|
|
841
|
+
j && (T.forceRender = j), o && (T.selectedClassName = o), m++, R = _e(_, T);
|
|
842
842
|
}
|
|
843
|
-
return
|
|
843
|
+
return R;
|
|
844
844
|
});
|
|
845
845
|
}
|
|
846
846
|
function k(m) {
|
|
847
847
|
const { direction: p, disableUpDownKeys: g, disableLeftRightKeys: w } = e;
|
|
848
848
|
if (N(m.target)) {
|
|
849
|
-
let { selectedIndex:
|
|
850
|
-
(m.code === "Space" || m.keyCode === 32 || m.code === "Enter" || m.keyCode === 13) && (V = !0, G = !1, P(m)), !w && (m.keyCode === 37 || m.code === "ArrowLeft") || !g && (m.keyCode === 38 || m.code === "ArrowUp") ? (p === "rtl" ?
|
|
849
|
+
let { selectedIndex: j } = e, V = !1, G = !1;
|
|
850
|
+
(m.code === "Space" || m.keyCode === 32 || m.code === "Enter" || m.keyCode === 13) && (V = !0, G = !1, P(m)), !w && (m.keyCode === 37 || m.code === "ArrowLeft") || !g && (m.keyCode === 38 || m.code === "ArrowUp") ? (p === "rtl" ? j = a(j) : j = h(j), V = !0, G = !0) : !w && (m.keyCode === 39 || m.code === "ArrowRight") || !g && (m.keyCode === 40 || m.code === "ArrowDown") ? (p === "rtl" ? j = h(j) : j = a(j), V = !0, G = !0) : m.keyCode === 35 || m.code === "End" ? (j = v(), V = !0, G = !0) : (m.keyCode === 36 || m.code === "Home") && (j = i(), V = !0, G = !0), V && m.preventDefault(), G && l(j, m);
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
function P(m) {
|
|
@@ -873,17 +873,17 @@ const qn = { className: "react-tabs", focus: !1 }, Un = process.env.NODE_ENV !==
|
|
|
873
873
|
} while (p);
|
|
874
874
|
return !1;
|
|
875
875
|
}
|
|
876
|
-
const { children: x, className: F, disabledTabClassName: Y, domRef: Q, focus: U, forceRenderTabPanel: q, onSelect: u, selectedIndex: ee, selectedTabClassName: ne, selectedTabPanelClassName: le, environment: ce, disableUpDownKeys: J, disableLeftRightKeys: re, ...oe } = { ...
|
|
876
|
+
const { children: x, className: F, disabledTabClassName: Y, domRef: Q, focus: U, forceRenderTabPanel: q, onSelect: u, selectedIndex: ee, selectedTabClassName: ne, selectedTabPanelClassName: le, environment: ce, disableUpDownKeys: J, disableLeftRightKeys: re, ...oe } = { ...Un, ...e };
|
|
877
877
|
return pe.createElement("div", Object.assign({}, oe, { className: Oe(F), onClick: P, onKeyDown: k, ref: (m) => {
|
|
878
878
|
r.current = m, Q && Q(m);
|
|
879
879
|
}, "data-rttabs": !0 }), C());
|
|
880
880
|
};
|
|
881
|
-
xt.propTypes = process.env.NODE_ENV !== "production" ?
|
|
882
|
-
const
|
|
881
|
+
xt.propTypes = process.env.NODE_ENV !== "production" ? zn : {};
|
|
882
|
+
const Wn = 0, Ee = 1, Yn = process.env.NODE_ENV !== "production" ? { children: Tt, className: b.oneOfType([b.string, b.array, b.object]), defaultFocus: b.bool, defaultIndex: b.number, direction: b.oneOf(["rtl", "ltr"]), disabledTabClassName: b.string, disableUpDownKeys: b.bool, disableLeftRightKeys: b.bool, domRef: b.func, environment: b.object, focusTabOnClick: b.bool, forceRenderTabPanel: b.bool, onSelect: jn, selectedIndex: Fn, selectedTabClassName: b.string, selectedTabPanelClassName: b.string } : {}, Vn = { defaultFocus: !1, focusTabOnClick: !0, forceRenderTabPanel: !1, selectedIndex: null, defaultIndex: null, environment: null, disableUpDownKeys: !1, disableLeftRightKeys: !1 }, Ct = (e) => e.selectedIndex === null ? Ee : Wn, Hn = (e, n) => {
|
|
883
883
|
if (process.env.NODE_ENV !== "production" && n != null && n !== Ct(e))
|
|
884
884
|
throw new Error("Switching between controlled mode (by using `selectedIndex`) and uncontrolled mode is not supported in `Tabs`.\nFor more information about controlled and uncontrolled mode of react-tabs see https://github.com/reactjs/react-tabs#controlled-vs-uncontrolled-mode.");
|
|
885
885
|
}, Ke = (e) => {
|
|
886
|
-
const { children: n, defaultFocus: t, defaultIndex: r, focusTabOnClick: l, onSelect: a, ...h } = { ...
|
|
886
|
+
const { children: n, defaultFocus: t, defaultIndex: r, focusTabOnClick: l, onSelect: a, ...h } = { ...Vn, ...e }, [i, v] = te(t), [y] = te(Ct(h)), [d, C] = te(y === Ee ? r || 0 : null);
|
|
887
887
|
if (se(() => {
|
|
888
888
|
v(!1);
|
|
889
889
|
}, []), y === Ee) {
|
|
@@ -895,38 +895,38 @@ const zn = 0, Ee = 1, Wn = process.env.NODE_ENV !== "production" ? { children: T
|
|
|
895
895
|
}
|
|
896
896
|
}, [N]);
|
|
897
897
|
}
|
|
898
|
-
|
|
898
|
+
Hn(h, y);
|
|
899
899
|
const k = (N, x, F) => {
|
|
900
900
|
typeof a == "function" && a(N, x, F) === !1 || (l && v(!0), y === Ee && C(N));
|
|
901
901
|
};
|
|
902
902
|
let P = { ...e, ...h };
|
|
903
903
|
return P.focus = i, P.onSelect = k, d != null && (P.selectedIndex = d), delete P.defaultFocus, delete P.defaultIndex, delete P.focusTabOnClick, pe.createElement(xt, P, n);
|
|
904
904
|
};
|
|
905
|
-
Ke.propTypes = process.env.NODE_ENV !== "production" ?
|
|
905
|
+
Ke.propTypes = process.env.NODE_ENV !== "production" ? Yn : {};
|
|
906
906
|
Ke.tabsRole = "Tabs";
|
|
907
|
-
const
|
|
908
|
-
const { children: n, className: t, ...r } = { ...
|
|
907
|
+
const Kn = { className: "react-tabs__tab-list" }, Gn = process.env.NODE_ENV !== "production" ? { children: b.oneOfType([b.object, b.array]), className: b.oneOfType([b.string, b.array, b.object]) } : {}, Ge = (e) => {
|
|
908
|
+
const { children: n, className: t, ...r } = { ...Kn, ...e };
|
|
909
909
|
return pe.createElement("ul", Object.assign({}, r, { className: Oe(t), role: "tablist" }), n);
|
|
910
910
|
};
|
|
911
911
|
Ge.tabsRole = "TabList";
|
|
912
|
-
Ge.propTypes = process.env.NODE_ENV !== "production" ?
|
|
913
|
-
const
|
|
912
|
+
Ge.propTypes = process.env.NODE_ENV !== "production" ? Gn : {};
|
|
913
|
+
const Me = "react-tabs__tab", Xn = { className: Me, disabledClassName: `${Me}--disabled`, focus: !1, id: null, selected: !1, selectedClassName: `${Me}--selected` }, Jn = process.env.NODE_ENV !== "production" ? { children: b.oneOfType([b.array, b.object, b.string]), className: b.oneOfType([b.string, b.array, b.object]), disabled: b.bool, disabledClassName: b.string, focus: b.bool, id: b.string, selected: b.bool, selectedClassName: b.string, tabIndex: b.string, tabRef: b.func } : {}, de = (e) => {
|
|
914
914
|
let n = Te();
|
|
915
|
-
const { children: t, className: r, disabled: l, disabledClassName: a, focus: h, id: i, selected: v, selectedClassName: y, tabIndex: d, tabRef: C, ...k } = { ...
|
|
915
|
+
const { children: t, className: r, disabled: l, disabledClassName: a, focus: h, id: i, selected: v, selectedClassName: y, tabIndex: d, tabRef: C, ...k } = { ...Xn, ...e };
|
|
916
916
|
return se(() => {
|
|
917
917
|
v && h && n.current.focus();
|
|
918
918
|
}, [v, h]), pe.createElement("li", Object.assign({}, k, { className: Oe(r, { [y]: v, [a]: l }), ref: (P) => {
|
|
919
919
|
n.current = P, C && C(P);
|
|
920
920
|
}, role: "tab", id: `tab${i}`, "aria-selected": v ? "true" : "false", "aria-disabled": l ? "true" : "false", "aria-controls": `panel${i}`, tabIndex: d || (v ? "0" : null), "data-rttab": !0 }), t);
|
|
921
921
|
};
|
|
922
|
-
de.propTypes = process.env.NODE_ENV !== "production" ?
|
|
922
|
+
de.propTypes = process.env.NODE_ENV !== "production" ? Jn : {};
|
|
923
923
|
de.tabsRole = "Tab";
|
|
924
|
-
const dt = "react-tabs__tab-panel",
|
|
925
|
-
const { children: n, className: t, forceRender: r, id: l, selected: a, selectedClassName: h, ...i } = { ...
|
|
924
|
+
const dt = "react-tabs__tab-panel", Zn = { className: dt, forceRender: !1, selectedClassName: `${dt}--selected` }, Qn = process.env.NODE_ENV !== "production" ? { children: b.node, className: b.oneOfType([b.string, b.array, b.object]), forceRender: b.bool, id: b.string, selected: b.bool, selectedClassName: b.string } : {}, fe = (e) => {
|
|
925
|
+
const { children: n, className: t, forceRender: r, id: l, selected: a, selectedClassName: h, ...i } = { ...Zn, ...e };
|
|
926
926
|
return pe.createElement("div", Object.assign({}, i, { className: Oe(t, { [h]: a }), role: "tabpanel", id: `panel${l}`, "aria-labelledby": `tab${l}` }), r || a ? n : null);
|
|
927
927
|
};
|
|
928
928
|
fe.tabsRole = "TabPanel";
|
|
929
|
-
fe.propTypes = process.env.NODE_ENV !== "production" ?
|
|
929
|
+
fe.propTypes = process.env.NODE_ENV !== "production" ? Qn : {};
|
|
930
930
|
(function() {
|
|
931
931
|
try {
|
|
932
932
|
if (typeof document < "u") {
|
|
@@ -937,17 +937,17 @@ fe.propTypes = process.env.NODE_ENV !== "production" ? Zn : {};
|
|
|
937
937
|
console.error("vite-plugin-css-injected-by-js", n);
|
|
938
938
|
}
|
|
939
939
|
})();
|
|
940
|
-
const
|
|
941
|
-
FileExplorer:
|
|
942
|
-
Header:
|
|
943
|
-
IconButton:
|
|
944
|
-
PathInput:
|
|
945
|
-
Body:
|
|
946
|
-
Sidebar:
|
|
947
|
-
NavButton:
|
|
948
|
-
Main:
|
|
949
|
-
Footer:
|
|
950
|
-
Selector:
|
|
940
|
+
const er = "_FileExplorer_10w0u_1", tr = "_Header_10w0u_25", nr = "_IconButton_10w0u_45", rr = "_PathInput_10w0u_137", or = "_Body_10w0u_159", ar = "_Sidebar_10w0u_175", ir = "_NavButton_10w0u_203", sr = "_Main_10w0u_249", lr = "_Footer_10w0u_277", cr = "_Selector_10w0u_315", z = {
|
|
941
|
+
FileExplorer: er,
|
|
942
|
+
Header: tr,
|
|
943
|
+
IconButton: nr,
|
|
944
|
+
PathInput: rr,
|
|
945
|
+
Body: or,
|
|
946
|
+
Sidebar: ar,
|
|
947
|
+
NavButton: ir,
|
|
948
|
+
Main: sr,
|
|
949
|
+
Footer: lr,
|
|
950
|
+
Selector: cr
|
|
951
951
|
};
|
|
952
952
|
function ge({ onClick: e, icon: n, name: t }) {
|
|
953
953
|
return /* @__PURE__ */ E(
|
|
@@ -963,11 +963,11 @@ function ge({ onClick: e, icon: n, name: t }) {
|
|
|
963
963
|
}
|
|
964
964
|
);
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function ur({ directory: e }) {
|
|
967
967
|
const n = (t) => {
|
|
968
968
|
const r = t.target.files;
|
|
969
969
|
r != null && Array.from(r).forEach((l) => {
|
|
970
|
-
const { name: a, extension: h } =
|
|
970
|
+
const { name: a, extension: h } = Lt.splitId(l.name), i = new FileReader();
|
|
971
971
|
i.onload = (v) => {
|
|
972
972
|
const { result: y } = v.target;
|
|
973
973
|
e.createFile(a, h, (d) => {
|
|
@@ -987,23 +987,23 @@ function cr({ directory: e }) {
|
|
|
987
987
|
onChange: n
|
|
988
988
|
}
|
|
989
989
|
),
|
|
990
|
-
/* @__PURE__ */ s(X, { icon:
|
|
990
|
+
/* @__PURE__ */ s(X, { icon: Gt })
|
|
991
991
|
] });
|
|
992
992
|
}
|
|
993
993
|
const ft = {
|
|
994
994
|
NONE: 0,
|
|
995
995
|
SINGLE: 1,
|
|
996
996
|
MULTIPLE: 2
|
|
997
|
-
},
|
|
998
|
-
FileProperties:
|
|
999
|
-
Icon:
|
|
1000
|
-
Section:
|
|
1001
|
-
Line:
|
|
1002
|
-
AppIcon:
|
|
997
|
+
}, dr = "_FileProperties_s5har_1", fr = "_Icon_s5har_17", pr = "_Section_s5har_49", br = "_Line_s5har_91", mr = "_AppIcon_s5har_135", H = {
|
|
998
|
+
FileProperties: dr,
|
|
999
|
+
Icon: fr,
|
|
1000
|
+
Section: pr,
|
|
1001
|
+
Line: br,
|
|
1002
|
+
AppIcon: mr
|
|
1003
1003
|
};
|
|
1004
|
-
function
|
|
1004
|
+
function hr({ modal: e, params: n, file: t, ...r }) {
|
|
1005
1005
|
const { appsConfig: l } = me(), a = t.extension != null ? l.getAppByFileExtension(t.extension) : null;
|
|
1006
|
-
return /* @__PURE__ */ E(
|
|
1006
|
+
return /* @__PURE__ */ E(Bt, { className: H.FileProperties, modal: e, params: n, ...r, children: [
|
|
1007
1007
|
/* @__PURE__ */ E("span", { className: H.Section, children: [
|
|
1008
1008
|
/* @__PURE__ */ s(qe, { className: H.Icon, source: t.getIconUrl() }),
|
|
1009
1009
|
/* @__PURE__ */ s("p", { className: `${H.Line} ${K.TextBold}`, children: t.id })
|
|
@@ -1041,8 +1041,8 @@ function mr({ modal: e, params: n, file: t, ...r }) {
|
|
|
1041
1041
|
] }) })
|
|
1042
1042
|
] });
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
const h = r != null && t != null && t !== ft.NONE, i = Pe(), v = We(), { windowsConfig: y } = me(), [d, C] = te(i == null ? void 0 : i.navigate(n ?? "~")), [k, P] = te((d == null ? void 0 : d.path) ?? ""), [N] = te(!0), { history: x, stateIndex: F, pushState: Y, undo: Q, redo: U, undoAvailable: q, redoAvailable: u } =
|
|
1044
|
+
function yr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l, onSelectionFinish: a }) {
|
|
1045
|
+
const h = r != null && t != null && t !== ft.NONE, i = Pe(), v = We(), { windowsConfig: y } = me(), [d, C] = te(i == null ? void 0 : i.navigate(n ?? "~")), [k, P] = te((d == null ? void 0 : d.path) ?? ""), [N] = te(!0), { history: x, stateIndex: F, pushState: Y, undo: Q, redo: U, undoAvailable: q, redoAvailable: u } = It(d.path), { alert: ee } = Ot(), { openWindowedModal: ne } = mt(), { onContextMenu: le } = je({
|
|
1046
1046
|
Actions: (p) => /* @__PURE__ */ E(Fe, { ...p, children: [
|
|
1047
1047
|
/* @__PURE__ */ s(ie, { label: h ? "Select" : "Open", onTrigger: (g, w) => {
|
|
1048
1048
|
if (h) {
|
|
@@ -1059,21 +1059,21 @@ function hr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l,
|
|
|
1059
1059
|
title: `${w.id} ${y.titleSeparator} Properties`,
|
|
1060
1060
|
iconUrl: w.getIconUrl(),
|
|
1061
1061
|
size: new be(400, 500),
|
|
1062
|
-
Modal: (
|
|
1062
|
+
Modal: (j) => /* @__PURE__ */ s(hr, { file: w, ...j })
|
|
1063
1063
|
});
|
|
1064
1064
|
} })
|
|
1065
1065
|
] })
|
|
1066
|
-
}), { onContextMenu: ce } =
|
|
1066
|
+
}), { onContextMenu: ce } = je({
|
|
1067
1067
|
Actions: (p) => /* @__PURE__ */ E(Fe, { ...p, children: [
|
|
1068
1068
|
/* @__PURE__ */ s(ie, { label: "Open", onTrigger: (g, w) => {
|
|
1069
1069
|
J(w.linkedPath ?? w.name);
|
|
1070
1070
|
} }),
|
|
1071
|
-
/* @__PURE__ */ s(
|
|
1071
|
+
/* @__PURE__ */ s(At, {}),
|
|
1072
1072
|
/* @__PURE__ */ s(ie, { label: "Delete", icon: et, onTrigger: (g, w) => {
|
|
1073
1073
|
w.delete();
|
|
1074
1074
|
} })
|
|
1075
1075
|
] })
|
|
1076
|
-
}), J =
|
|
1076
|
+
}), J = nn((p, g = !1) => {
|
|
1077
1077
|
if (p == null)
|
|
1078
1078
|
return;
|
|
1079
1079
|
d == null && (g = !0);
|
|
@@ -1095,8 +1095,8 @@ function hr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l,
|
|
|
1095
1095
|
single: !0
|
|
1096
1096
|
});
|
|
1097
1097
|
};
|
|
1098
|
-
return i == null || i.on(Je.EVENT_NAMES.
|
|
1099
|
-
i == null || i.off(Je.EVENT_NAMES.
|
|
1098
|
+
return i == null || i.on(Je.EVENT_NAMES.error, p), () => {
|
|
1099
|
+
i == null || i.off(Je.EVENT_NAMES.error, p);
|
|
1100
1100
|
};
|
|
1101
1101
|
}, []);
|
|
1102
1102
|
const re = (p) => {
|
|
@@ -1111,13 +1111,13 @@ function hr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l,
|
|
|
1111
1111
|
title: "Error",
|
|
1112
1112
|
iconUrl: e == null ? void 0 : e.iconUrl,
|
|
1113
1113
|
size: new be(300, 150),
|
|
1114
|
-
Modal: (
|
|
1114
|
+
Modal: (j) => /* @__PURE__ */ E(Ze, { ...j, children: [
|
|
1115
1115
|
/* @__PURE__ */ E("p", { children: [
|
|
1116
1116
|
'Invalid path: "',
|
|
1117
1117
|
g,
|
|
1118
1118
|
'"'
|
|
1119
1119
|
] }),
|
|
1120
|
-
/* @__PURE__ */ s("button", { "data-type": Qe.DIALOG_CONTENT_TYPES.
|
|
1120
|
+
/* @__PURE__ */ s("button", { "data-type": Qe.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
|
|
1121
1121
|
] })
|
|
1122
1122
|
});
|
|
1123
1123
|
return;
|
|
@@ -1150,7 +1150,7 @@ function hr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l,
|
|
|
1150
1150
|
U();
|
|
1151
1151
|
},
|
|
1152
1152
|
disabled: !u,
|
|
1153
|
-
children: /* @__PURE__ */ s(X, { icon:
|
|
1153
|
+
children: /* @__PURE__ */ s(X, { icon: Ft })
|
|
1154
1154
|
}
|
|
1155
1155
|
),
|
|
1156
1156
|
/* @__PURE__ */ s(
|
|
@@ -1163,7 +1163,7 @@ function hr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l,
|
|
|
1163
1163
|
J("..");
|
|
1164
1164
|
},
|
|
1165
1165
|
disabled: d.isRoot != null && d.isRoot,
|
|
1166
|
-
children: /* @__PURE__ */ s(X, { icon:
|
|
1166
|
+
children: /* @__PURE__ */ s(X, { icon: qt })
|
|
1167
1167
|
}
|
|
1168
1168
|
),
|
|
1169
1169
|
/* @__PURE__ */ s(
|
|
@@ -1179,12 +1179,12 @@ function hr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l,
|
|
|
1179
1179
|
size: new be(300, 150),
|
|
1180
1180
|
Modal: (p) => /* @__PURE__ */ E(Ze, { ...p, children: [
|
|
1181
1181
|
/* @__PURE__ */ s("p", { children: "This folder is protected." }),
|
|
1182
|
-
/* @__PURE__ */ s("button", { "data-type": Qe.DIALOG_CONTENT_TYPES.
|
|
1182
|
+
/* @__PURE__ */ s("button", { "data-type": Qe.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
|
|
1183
1183
|
] })
|
|
1184
1184
|
});
|
|
1185
1185
|
},
|
|
1186
1186
|
disabled: !d.canBeEdited,
|
|
1187
|
-
children: /* @__PURE__ */ s(X, { icon:
|
|
1187
|
+
children: /* @__PURE__ */ s(X, { icon: Ut })
|
|
1188
1188
|
}
|
|
1189
1189
|
),
|
|
1190
1190
|
/* @__PURE__ */ s(
|
|
@@ -1200,24 +1200,24 @@ function hr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l,
|
|
|
1200
1200
|
placeholder: "Enter a path..."
|
|
1201
1201
|
}
|
|
1202
1202
|
),
|
|
1203
|
-
/* @__PURE__ */ s(
|
|
1204
|
-
/* @__PURE__ */ s("button", { title: "Search", tabIndex: 0, className: z.IconButton, children: /* @__PURE__ */ s(X, { icon:
|
|
1205
|
-
/* @__PURE__ */ s("button", { title: "Settings", tabIndex: 0, className: z.IconButton, children: /* @__PURE__ */ s(X, { icon:
|
|
1203
|
+
/* @__PURE__ */ s(ur, { directory: d }),
|
|
1204
|
+
/* @__PURE__ */ s("button", { title: "Search", tabIndex: 0, className: z.IconButton, children: /* @__PURE__ */ s(X, { icon: zt }) }),
|
|
1205
|
+
/* @__PURE__ */ s("button", { title: "Settings", tabIndex: 0, className: z.IconButton, children: /* @__PURE__ */ s(X, { icon: Wt }) })
|
|
1206
1206
|
] }),
|
|
1207
1207
|
/* @__PURE__ */ E("div", { className: z.Body, children: [
|
|
1208
1208
|
/* @__PURE__ */ E("div", { className: z.Sidebar, children: [
|
|
1209
1209
|
/* @__PURE__ */ s(ge, { name: "Home", onClick: () => {
|
|
1210
1210
|
J("~");
|
|
1211
|
-
}, icon:
|
|
1211
|
+
}, icon: Yt }),
|
|
1212
1212
|
/* @__PURE__ */ s(ge, { name: "Desktop", onClick: () => {
|
|
1213
1213
|
J("~/Desktop");
|
|
1214
|
-
}, icon:
|
|
1214
|
+
}, icon: Vt }),
|
|
1215
1215
|
/* @__PURE__ */ s(ge, { name: "Images", onClick: () => {
|
|
1216
1216
|
J("~/Pictures");
|
|
1217
|
-
}, icon:
|
|
1217
|
+
}, icon: Ht }),
|
|
1218
1218
|
/* @__PURE__ */ s(ge, { name: "Documents", onClick: () => {
|
|
1219
1219
|
J("~/Documents");
|
|
1220
|
-
}, icon:
|
|
1220
|
+
}, icon: Kt })
|
|
1221
1221
|
] }),
|
|
1222
1222
|
/* @__PURE__ */ s(
|
|
1223
1223
|
Rt,
|
|
@@ -1230,7 +1230,7 @@ function hr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l,
|
|
|
1230
1230
|
if (p.preventDefault(), h)
|
|
1231
1231
|
return void (a == null ? void 0 : a());
|
|
1232
1232
|
const w = {};
|
|
1233
|
-
(g.extension === "md" || g.extension != null &&
|
|
1233
|
+
(g.extension === "md" || g.extension != null && $t.includes(g.extension)) && (w.mode = "view"), v == null || v.openFile(g, w);
|
|
1234
1234
|
},
|
|
1235
1235
|
onOpenFolder: (p, g) => {
|
|
1236
1236
|
J(g.linkedPath ?? g.name);
|
|
@@ -1246,7 +1246,9 @@ function hr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l,
|
|
|
1246
1246
|
] });
|
|
1247
1247
|
}
|
|
1248
1248
|
var Pt = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Single = 1] = "Single", e[e.Multi = 2] = "Multi", e))(Pt || {});
|
|
1249
|
-
const
|
|
1249
|
+
const Nt = new pt("File Explorer", "file-explorer", yr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/file-explorer.svg").setRole(bt.APP_ROLES.fileExplorer).setCategory("Utilities & tools");
|
|
1250
|
+
Nt.setMetadata({ name: "@prozilla-os/file-explorer", version: "1.1.7", author: "Prozilla" });
|
|
1251
|
+
const vr = "~/Pictures/Wallpapers";
|
|
1250
1252
|
function gr() {
|
|
1251
1253
|
var k, P;
|
|
1252
1254
|
const { modalsConfig: e } = me(), n = Pe(), t = Ye(), [r, l] = te(0), [a, h] = te(null), i = t == null ? void 0 : t.getSettings(we.VIRTUAL_PATHS.desktop), v = t == null ? void 0 : t.getSettings(we.VIRTUAL_PATHS.theme), { openWindowedModal: y } = mt();
|
|
@@ -1265,7 +1267,7 @@ function gr() {
|
|
|
1265
1267
|
return /* @__PURE__ */ E(ht, { children: [
|
|
1266
1268
|
/* @__PURE__ */ E("div", { className: S.Option, children: [
|
|
1267
1269
|
/* @__PURE__ */ s("p", { className: S.Label, children: "Theme" }),
|
|
1268
|
-
/* @__PURE__ */ s("div", { className: S.Input, children: /* @__PURE__ */ s("select", { className: S.Dropdown, "aria-label": "theme", value: r, onChange: C, children: Object.entries(
|
|
1270
|
+
/* @__PURE__ */ s("div", { className: S.Input, children: /* @__PURE__ */ s("select", { className: S.Dropdown, "aria-label": "theme", value: r, onChange: C, children: Object.entries(kt).map(
|
|
1269
1271
|
([N, x]) => /* @__PURE__ */ s("option", { value: N, children: x }, N)
|
|
1270
1272
|
) }) })
|
|
1271
1273
|
] }),
|
|
@@ -1279,10 +1281,10 @@ function gr() {
|
|
|
1279
1281
|
y({
|
|
1280
1282
|
size: e.defaultFileSelectorSize,
|
|
1281
1283
|
Modal: (N) => /* @__PURE__ */ s(
|
|
1282
|
-
|
|
1284
|
+
Nt.WindowContent,
|
|
1283
1285
|
{
|
|
1284
1286
|
type: Pt.Single,
|
|
1285
|
-
allowedFormats:
|
|
1287
|
+
allowedFormats: Dt,
|
|
1286
1288
|
onFinish: (x) => {
|
|
1287
1289
|
x.source != null && (i == null || i.set("wallpaper", x.source));
|
|
1288
1290
|
},
|
|
@@ -1356,17 +1358,17 @@ function Tr() {
|
|
|
1356
1358
|
/* @__PURE__ */ E("div", { className: `${S.Option} ${S.ProgressBarContainer}`, children: [
|
|
1357
1359
|
/* @__PURE__ */ E("p", { className: S.Label, children: [
|
|
1358
1360
|
"Virtual Drive (",
|
|
1359
|
-
|
|
1361
|
+
Ae(r, 1),
|
|
1360
1362
|
" KB)"
|
|
1361
1363
|
] }),
|
|
1362
|
-
/* @__PURE__ */ s(
|
|
1364
|
+
/* @__PURE__ */ s(Mt, { fillPercentage: l / r * 100, className: S.ProgressBar }),
|
|
1363
1365
|
/* @__PURE__ */ E("span", { className: S.ProgressBarLabels, children: [
|
|
1364
1366
|
/* @__PURE__ */ E("p", { className: K.TextLight, children: [
|
|
1365
|
-
|
|
1367
|
+
Ae(l, 1),
|
|
1366
1368
|
" KB used"
|
|
1367
1369
|
] }),
|
|
1368
1370
|
/* @__PURE__ */ E("p", { className: K.TextLight, children: [
|
|
1369
|
-
|
|
1371
|
+
Ae(a, 1),
|
|
1370
1372
|
" KB free"
|
|
1371
1373
|
] })
|
|
1372
1374
|
] })
|
|
@@ -1387,12 +1389,12 @@ function Tr() {
|
|
|
1387
1389
|
] });
|
|
1388
1390
|
}
|
|
1389
1391
|
function Er({ app: e, pins: n, setPins: t }) {
|
|
1390
|
-
const r = n.includes(e.id), l = Ye(), a = We(), { onContextMenu: h } =
|
|
1392
|
+
const r = n.includes(e.id), l = Ye(), a = We(), { onContextMenu: h } = je({
|
|
1391
1393
|
Actions: (i) => /* @__PURE__ */ E(Fe, { ...i, children: [
|
|
1392
1394
|
/* @__PURE__ */ s(ie, { label: "Launch", icon: e.iconUrl, onTrigger: () => a == null ? void 0 : a.open(e.id) }),
|
|
1393
|
-
/* @__PURE__ */ s(ie, { label: r ? "Unpin from taskbar" : "Pin to taskbar", icon:
|
|
1395
|
+
/* @__PURE__ */ s(ie, { label: r ? "Unpin from taskbar" : "Pin to taskbar", icon: Xt, onTrigger: () => {
|
|
1394
1396
|
const v = [...n];
|
|
1395
|
-
r ?
|
|
1397
|
+
r ? rn(e.id, n) : v.push(e.id);
|
|
1396
1398
|
const y = l == null ? void 0 : l.getSettings(we.VIRTUAL_PATHS.taskbar);
|
|
1397
1399
|
y == null || y.set("pins", v.join(","));
|
|
1398
1400
|
} })
|
|
@@ -1403,7 +1405,7 @@ function Er({ app: e, pins: n, setPins: t }) {
|
|
|
1403
1405
|
/* @__PURE__ */ s(qe, { className: S.Icon, source: e.iconUrl }),
|
|
1404
1406
|
e.name
|
|
1405
1407
|
] }),
|
|
1406
|
-
/* @__PURE__ */ s("button", { className: S.IconButton, onClick: h, children: /* @__PURE__ */ s(X, { icon:
|
|
1408
|
+
/* @__PURE__ */ s("button", { className: S.IconButton, onClick: h, children: /* @__PURE__ */ s(X, { icon: Jt }) })
|
|
1407
1409
|
] });
|
|
1408
1410
|
}
|
|
1409
1411
|
function wr() {
|
|
@@ -1433,15 +1435,15 @@ function Sr({ tab: e }) {
|
|
|
1433
1435
|
children: [
|
|
1434
1436
|
/* @__PURE__ */ E(Ge, { className: S.Tabs, children: [
|
|
1435
1437
|
/* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
|
|
1436
|
-
/* @__PURE__ */ s(X, { icon:
|
|
1438
|
+
/* @__PURE__ */ s(X, { icon: Zt }),
|
|
1437
1439
|
/* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Apps" })
|
|
1438
1440
|
] }),
|
|
1439
1441
|
/* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
|
|
1440
|
-
/* @__PURE__ */ s(X, { icon:
|
|
1442
|
+
/* @__PURE__ */ s(X, { icon: Qt }),
|
|
1441
1443
|
/* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Appearance" })
|
|
1442
1444
|
] }),
|
|
1443
1445
|
/* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
|
|
1444
|
-
/* @__PURE__ */ s(X, { icon:
|
|
1446
|
+
/* @__PURE__ */ s(X, { icon: en }),
|
|
1445
1447
|
/* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Storage" })
|
|
1446
1448
|
] }),
|
|
1447
1449
|
/* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
|
|
@@ -1457,8 +1459,9 @@ function Sr({ tab: e }) {
|
|
|
1457
1459
|
}
|
|
1458
1460
|
) });
|
|
1459
1461
|
}
|
|
1460
|
-
const
|
|
1462
|
+
const xr = new pt("Settings", "settings", Sr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/settings.svg").setRole(bt.APP_ROLES.settings).setCategory("Personalization");
|
|
1463
|
+
xr.setMetadata({ name: "@prozilla-os/settings", version: "1.1.7", author: "Prozilla" });
|
|
1461
1464
|
export {
|
|
1462
|
-
|
|
1465
|
+
xr as settings
|
|
1463
1466
|
};
|
|
1464
1467
|
//# sourceMappingURL=main.js.map
|