@prozilla-os/settings 1.1.10 → 1.1.11
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 +787 -951
- package/dist/main.js.map +1 -1
- package/package.json +5 -5
- package/dist/chunks/minimal-l0sNRNKZ.js +0 -2
- package/dist/chunks/minimal-l0sNRNKZ.js.map +0 -1
package/dist/main.js
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('
|
|
2
|
-
import { App as
|
|
3
|
-
import { jsxs as
|
|
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 bt, AppsConfig as mt, useVirtualRoot as Pe, useWindowsManager as We, useSystemManager as me, useHistory as Ot, useAlert as At, useWindowedModal as ht, useContextMenu as je, Actions as Fe, ClickAction as ie, Vector2 as be, Divider as Rt, VirtualRoot as Je, DialogBox as Ze, ModalsConfig as Qe, DirectoryList as $t, CODE_EXTENSIONS as Bt, utilStyles as K, WindowedModal as Lt, ImagePreview as qe, StorageManager as ue, VirtualFile as kt, useSettingsManager as Ye, SettingsManager as we, Button as Se, IMAGE_EXTENSIONS as Dt, ProgressBar as Mt } from "@prozilla-os/core";
|
|
3
|
+
import { jsxs as E, jsx as s, Fragment as yt } from "react/jsx-runtime";
|
|
4
4
|
import { FontAwesomeIcon as X } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import { faTrash as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
5
|
+
import { faTrash as et, faCircleInfo as vt, 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 gt, cloneElement as _e, useRef as Te, useId as tn, useState as te, useEffect as se, useCallback as nn } from "react";
|
|
7
|
+
import { Theme as tt } from "@prozilla-os/skins";
|
|
8
|
+
import { round as Ae, removeFromArray as rn } from "@prozilla-os/shared";
|
|
9
|
+
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
10
|
SettingsContainer: on,
|
|
10
|
-
Settings:
|
|
11
|
-
Tabs:
|
|
12
|
-
TabButton:
|
|
13
|
-
ActiveTab:
|
|
11
|
+
Settings: an,
|
|
12
|
+
Tabs: sn,
|
|
13
|
+
TabButton: ln,
|
|
14
|
+
ActiveTab: cn,
|
|
14
15
|
TabPanel: un,
|
|
15
|
-
ActivePanel:
|
|
16
|
-
Option:
|
|
17
|
-
OptionList:
|
|
18
|
-
OptionHorizontal:
|
|
19
|
-
Label:
|
|
20
|
-
Input:
|
|
16
|
+
ActivePanel: dn,
|
|
17
|
+
Option: fn,
|
|
18
|
+
OptionList: pn,
|
|
19
|
+
OptionHorizontal: bn,
|
|
20
|
+
Label: mn,
|
|
21
|
+
Input: hn,
|
|
21
22
|
ImageSelectContainer: yn,
|
|
22
|
-
ImageSelect:
|
|
23
|
-
ButtonGroup:
|
|
24
|
-
Button:
|
|
25
|
-
ButtonDanger:
|
|
23
|
+
ImageSelect: vn,
|
|
24
|
+
ButtonGroup: gn,
|
|
25
|
+
Button: _n,
|
|
26
|
+
ButtonDanger: Tn,
|
|
26
27
|
IconButton: En,
|
|
27
|
-
ProgressBarContainer:
|
|
28
|
-
ProgressBar:
|
|
29
|
-
ProgressBarLabels:
|
|
30
|
-
Icon:
|
|
31
|
-
Dropdown:
|
|
28
|
+
ProgressBarContainer: wn,
|
|
29
|
+
ProgressBar: Sn,
|
|
30
|
+
ProgressBarLabels: xn,
|
|
31
|
+
Icon: Cn,
|
|
32
|
+
Dropdown: Pn
|
|
32
33
|
};
|
|
33
|
-
function
|
|
34
|
+
function Nn(e) {
|
|
34
35
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
35
36
|
}
|
|
36
|
-
var
|
|
37
|
+
var Ue = { exports: {} }, ve = { exports: {} }, D = {};
|
|
37
38
|
/** @license React v16.13.1
|
|
38
39
|
* react-is.production.min.js
|
|
39
40
|
*
|
|
@@ -42,32 +43,32 @@ var Ye = { exports: {} }, ye = { exports: {} }, D = {};
|
|
|
42
43
|
* This source code is licensed under the MIT license found in the
|
|
43
44
|
* LICENSE file in the root directory of this source tree.
|
|
44
45
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
if (
|
|
48
|
-
|
|
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,
|
|
50
|
-
function
|
|
51
|
-
if (typeof
|
|
52
|
-
var ee =
|
|
46
|
+
var nt;
|
|
47
|
+
function In() {
|
|
48
|
+
if (nt) return D;
|
|
49
|
+
nt = 1;
|
|
50
|
+
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;
|
|
51
|
+
function U(u) {
|
|
52
|
+
if (typeof u == "object" && u !== null) {
|
|
53
|
+
var ee = u.$$typeof;
|
|
53
54
|
switch (ee) {
|
|
54
55
|
case n:
|
|
55
|
-
switch (
|
|
56
|
+
switch (u = u.type, u) {
|
|
56
57
|
case v:
|
|
57
|
-
case
|
|
58
|
+
case y:
|
|
58
59
|
case r:
|
|
59
60
|
case a:
|
|
60
61
|
case l:
|
|
61
|
-
case
|
|
62
|
-
return
|
|
62
|
+
case C:
|
|
63
|
+
return u;
|
|
63
64
|
default:
|
|
64
|
-
switch (
|
|
65
|
-
case
|
|
65
|
+
switch (u = u && u.$$typeof, u) {
|
|
66
|
+
case i:
|
|
66
67
|
case d:
|
|
68
|
+
case N:
|
|
67
69
|
case P:
|
|
68
|
-
case
|
|
69
|
-
|
|
70
|
-
return p;
|
|
70
|
+
case h:
|
|
71
|
+
return u;
|
|
71
72
|
default:
|
|
72
73
|
return ee;
|
|
73
74
|
}
|
|
@@ -77,36 +78,36 @@ function kn() {
|
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
81
|
+
function q(u) {
|
|
82
|
+
return U(u) === y;
|
|
82
83
|
}
|
|
83
|
-
return D.AsyncMode = v, D.ConcurrentMode =
|
|
84
|
-
return
|
|
85
|
-
}, D.isConcurrentMode =
|
|
86
|
-
return
|
|
87
|
-
}, D.isContextProvider = function(
|
|
88
|
-
return
|
|
89
|
-
}, D.isElement = function(
|
|
90
|
-
return typeof
|
|
91
|
-
}, D.isForwardRef = function(
|
|
92
|
-
return
|
|
93
|
-
}, D.isFragment = function(
|
|
94
|
-
return
|
|
95
|
-
}, D.isLazy = function(
|
|
96
|
-
return
|
|
97
|
-
}, D.isMemo = function(
|
|
98
|
-
return
|
|
99
|
-
}, D.isPortal = function(
|
|
100
|
-
return
|
|
101
|
-
}, D.isProfiler = function(
|
|
102
|
-
return
|
|
103
|
-
}, D.isStrictMode = function(
|
|
104
|
-
return
|
|
105
|
-
}, D.isSuspense = function(
|
|
106
|
-
return
|
|
107
|
-
}, D.isValidElementType = function(
|
|
108
|
-
return typeof
|
|
109
|
-
}, D.typeOf =
|
|
84
|
+
return D.AsyncMode = v, D.ConcurrentMode = y, D.ContextConsumer = i, D.ContextProvider = h, D.Element = n, D.ForwardRef = d, D.Fragment = r, D.Lazy = N, D.Memo = P, D.Portal = t, D.Profiler = a, D.StrictMode = l, D.Suspense = C, D.isAsyncMode = function(u) {
|
|
85
|
+
return q(u) || U(u) === v;
|
|
86
|
+
}, D.isConcurrentMode = q, D.isContextConsumer = function(u) {
|
|
87
|
+
return U(u) === i;
|
|
88
|
+
}, D.isContextProvider = function(u) {
|
|
89
|
+
return U(u) === h;
|
|
90
|
+
}, D.isElement = function(u) {
|
|
91
|
+
return typeof u == "object" && u !== null && u.$$typeof === n;
|
|
92
|
+
}, D.isForwardRef = function(u) {
|
|
93
|
+
return U(u) === d;
|
|
94
|
+
}, D.isFragment = function(u) {
|
|
95
|
+
return U(u) === r;
|
|
96
|
+
}, D.isLazy = function(u) {
|
|
97
|
+
return U(u) === N;
|
|
98
|
+
}, D.isMemo = function(u) {
|
|
99
|
+
return U(u) === P;
|
|
100
|
+
}, D.isPortal = function(u) {
|
|
101
|
+
return U(u) === t;
|
|
102
|
+
}, D.isProfiler = function(u) {
|
|
103
|
+
return U(u) === a;
|
|
104
|
+
}, D.isStrictMode = function(u) {
|
|
105
|
+
return U(u) === l;
|
|
106
|
+
}, D.isSuspense = function(u) {
|
|
107
|
+
return U(u) === C;
|
|
108
|
+
}, D.isValidElementType = function(u) {
|
|
109
|
+
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);
|
|
110
|
+
}, D.typeOf = U, D;
|
|
110
111
|
}
|
|
111
112
|
var M = {};
|
|
112
113
|
/** @license React v16.13.1
|
|
@@ -117,37 +118,37 @@ var M = {};
|
|
|
117
118
|
* This source code is licensed under the MIT license found in the
|
|
118
119
|
* LICENSE file in the root directory of this source tree.
|
|
119
120
|
*/
|
|
120
|
-
var
|
|
121
|
-
function
|
|
122
|
-
return
|
|
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,
|
|
124
|
-
function
|
|
121
|
+
var rt;
|
|
122
|
+
function On() {
|
|
123
|
+
return rt || (rt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
124
|
+
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;
|
|
125
|
+
function U(c) {
|
|
125
126
|
return typeof c == "string" || typeof c == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
126
|
-
c === r || c ===
|
|
127
|
+
c === r || c === y || c === a || c === l || c === C || c === k || typeof c == "object" && c !== null && (c.$$typeof === N || c.$$typeof === P || c.$$typeof === h || c.$$typeof === i || c.$$typeof === d || c.$$typeof === F || c.$$typeof === Y || c.$$typeof === Q || c.$$typeof === x);
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
+
function q(c) {
|
|
129
130
|
if (typeof c == "object" && c !== null) {
|
|
130
131
|
var Z = c.$$typeof;
|
|
131
132
|
switch (Z) {
|
|
132
133
|
case n:
|
|
133
|
-
var
|
|
134
|
-
switch (
|
|
134
|
+
var ye = c.type;
|
|
135
|
+
switch (ye) {
|
|
135
136
|
case v:
|
|
136
|
-
case
|
|
137
|
+
case y:
|
|
137
138
|
case r:
|
|
138
139
|
case a:
|
|
139
140
|
case l:
|
|
140
|
-
case
|
|
141
|
-
return
|
|
141
|
+
case C:
|
|
142
|
+
return ye;
|
|
142
143
|
default:
|
|
143
|
-
var
|
|
144
|
-
switch (
|
|
145
|
-
case
|
|
144
|
+
var Xe = ye && ye.$$typeof;
|
|
145
|
+
switch (Xe) {
|
|
146
|
+
case i:
|
|
146
147
|
case d:
|
|
148
|
+
case N:
|
|
147
149
|
case P:
|
|
148
|
-
case
|
|
149
|
-
|
|
150
|
-
return Qe;
|
|
150
|
+
case h:
|
|
151
|
+
return Xe;
|
|
151
152
|
default:
|
|
152
153
|
return Z;
|
|
153
154
|
}
|
|
@@ -157,62 +158,62 @@ function An() {
|
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
|
-
var
|
|
161
|
+
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
162
|
function G(c) {
|
|
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.")),
|
|
163
|
+
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
164
|
}
|
|
164
|
-
function
|
|
165
|
-
return
|
|
165
|
+
function o(c) {
|
|
166
|
+
return q(c) === y;
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
-
return
|
|
168
|
+
function f(c) {
|
|
169
|
+
return q(c) === i;
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
-
return
|
|
171
|
+
function A(c) {
|
|
172
|
+
return q(c) === h;
|
|
172
173
|
}
|
|
173
174
|
function O(c) {
|
|
174
175
|
return typeof c == "object" && c !== null && c.$$typeof === n;
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
177
|
+
function _(c) {
|
|
178
|
+
return q(c) === d;
|
|
178
179
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
180
|
+
function R(c) {
|
|
181
|
+
return q(c) === r;
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
183
|
+
function T(c) {
|
|
184
|
+
return q(c) === N;
|
|
184
185
|
}
|
|
185
|
-
function
|
|
186
|
-
return
|
|
186
|
+
function I(c) {
|
|
187
|
+
return q(c) === P;
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
-
return
|
|
189
|
+
function B(c) {
|
|
190
|
+
return q(c) === t;
|
|
190
191
|
}
|
|
191
192
|
function L(c) {
|
|
192
|
-
return
|
|
193
|
+
return q(c) === a;
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
195
|
+
function $(c) {
|
|
196
|
+
return q(c) === l;
|
|
196
197
|
}
|
|
197
198
|
function W(c) {
|
|
198
|
-
return
|
|
199
|
+
return q(c) === C;
|
|
199
200
|
}
|
|
200
|
-
M.AsyncMode =
|
|
201
|
+
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
202
|
}()), M;
|
|
202
203
|
}
|
|
203
204
|
var ot;
|
|
204
|
-
function
|
|
205
|
-
return ot || (ot = 1, process.env.NODE_ENV === "production" ?
|
|
205
|
+
function _t() {
|
|
206
|
+
return ot || (ot = 1, process.env.NODE_ENV === "production" ? ve.exports = In() : ve.exports = On()), ve.exports;
|
|
206
207
|
}
|
|
207
208
|
/*
|
|
208
209
|
object-assign
|
|
209
210
|
(c) Sindre Sorhus
|
|
210
211
|
@license MIT
|
|
211
212
|
*/
|
|
212
|
-
var
|
|
213
|
-
function
|
|
214
|
-
if (
|
|
215
|
-
|
|
213
|
+
var Re, at;
|
|
214
|
+
function An() {
|
|
215
|
+
if (at) return Re;
|
|
216
|
+
at = 1;
|
|
216
217
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
217
218
|
function r(a) {
|
|
218
219
|
if (a == null)
|
|
@@ -226,86 +227,86 @@ function Rn() {
|
|
|
226
227
|
var a = new String("abc");
|
|
227
228
|
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
228
229
|
return !1;
|
|
229
|
-
for (var
|
|
230
|
-
|
|
231
|
-
var v = Object.getOwnPropertyNames(
|
|
232
|
-
return
|
|
230
|
+
for (var h = {}, i = 0; i < 10; i++)
|
|
231
|
+
h["_" + String.fromCharCode(i)] = i;
|
|
232
|
+
var v = Object.getOwnPropertyNames(h).map(function(d) {
|
|
233
|
+
return h[d];
|
|
233
234
|
});
|
|
234
235
|
if (v.join("") !== "0123456789")
|
|
235
236
|
return !1;
|
|
236
|
-
var
|
|
237
|
+
var y = {};
|
|
237
238
|
return "abcdefghijklmnopqrst".split("").forEach(function(d) {
|
|
238
|
-
|
|
239
|
-
}), Object.keys(Object.assign({},
|
|
239
|
+
y[d] = d;
|
|
240
|
+
}), Object.keys(Object.assign({}, y)).join("") === "abcdefghijklmnopqrst";
|
|
240
241
|
} catch {
|
|
241
242
|
return !1;
|
|
242
243
|
}
|
|
243
244
|
}
|
|
244
|
-
return
|
|
245
|
-
for (var
|
|
246
|
-
|
|
247
|
-
for (var
|
|
248
|
-
n.call(
|
|
245
|
+
return Re = l() ? Object.assign : function(a, h) {
|
|
246
|
+
for (var i, v = r(a), y, d = 1; d < arguments.length; d++) {
|
|
247
|
+
i = Object(arguments[d]);
|
|
248
|
+
for (var C in i)
|
|
249
|
+
n.call(i, C) && (v[C] = i[C]);
|
|
249
250
|
if (e) {
|
|
250
|
-
|
|
251
|
-
for (var
|
|
252
|
-
t.call(
|
|
251
|
+
y = e(i);
|
|
252
|
+
for (var k = 0; k < y.length; k++)
|
|
253
|
+
t.call(i, y[k]) && (v[y[k]] = i[y[k]]);
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
256
|
return v;
|
|
256
|
-
},
|
|
257
|
+
}, Re;
|
|
257
258
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
260
|
-
if (
|
|
261
|
-
|
|
259
|
+
var $e, it;
|
|
260
|
+
function Ve() {
|
|
261
|
+
if (it) return $e;
|
|
262
|
+
it = 1;
|
|
262
263
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
263
|
-
return
|
|
264
|
+
return $e = e, $e;
|
|
264
265
|
}
|
|
265
|
-
var
|
|
266
|
-
function
|
|
267
|
-
return
|
|
266
|
+
var Be, st;
|
|
267
|
+
function Tt() {
|
|
268
|
+
return st || (st = 1, Be = Function.call.bind(Object.prototype.hasOwnProperty)), Be;
|
|
268
269
|
}
|
|
269
|
-
var
|
|
270
|
-
function
|
|
271
|
-
if (
|
|
272
|
-
|
|
270
|
+
var Le, lt;
|
|
271
|
+
function Rn() {
|
|
272
|
+
if (lt) return Le;
|
|
273
|
+
lt = 1;
|
|
273
274
|
var e = function() {
|
|
274
275
|
};
|
|
275
276
|
if (process.env.NODE_ENV !== "production") {
|
|
276
|
-
var n =
|
|
277
|
+
var n = Ve(), t = {}, r = Tt();
|
|
277
278
|
e = function(a) {
|
|
278
|
-
var
|
|
279
|
-
typeof console < "u" && console.error(
|
|
279
|
+
var h = "Warning: " + a;
|
|
280
|
+
typeof console < "u" && console.error(h);
|
|
280
281
|
try {
|
|
281
|
-
throw new Error(
|
|
282
|
+
throw new Error(h);
|
|
282
283
|
} catch {
|
|
283
284
|
}
|
|
284
285
|
};
|
|
285
286
|
}
|
|
286
|
-
function l(a,
|
|
287
|
+
function l(a, h, i, v, y) {
|
|
287
288
|
if (process.env.NODE_ENV !== "production") {
|
|
288
289
|
for (var d in a)
|
|
289
290
|
if (r(a, d)) {
|
|
290
|
-
var
|
|
291
|
+
var C;
|
|
291
292
|
try {
|
|
292
293
|
if (typeof a[d] != "function") {
|
|
293
|
-
var
|
|
294
|
-
(v || "React class") + ": " +
|
|
294
|
+
var k = Error(
|
|
295
|
+
(v || "React class") + ": " + i + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
295
296
|
);
|
|
296
|
-
throw
|
|
297
|
+
throw k.name = "Invariant Violation", k;
|
|
297
298
|
}
|
|
298
|
-
|
|
299
|
-
} catch (
|
|
300
|
-
|
|
299
|
+
C = a[d](h, d, v, i, null, n);
|
|
300
|
+
} catch (N) {
|
|
301
|
+
C = N;
|
|
301
302
|
}
|
|
302
|
-
if (
|
|
303
|
-
(v || "React class") + ": type specification of " +
|
|
304
|
-
),
|
|
305
|
-
t[
|
|
306
|
-
var
|
|
303
|
+
if (C && !(C instanceof Error) && e(
|
|
304
|
+
(v || "React class") + ": type specification of " + i + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof C + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
305
|
+
), C instanceof Error && !(C.message in t)) {
|
|
306
|
+
t[C.message] = !0;
|
|
307
|
+
var P = y ? y() : "";
|
|
307
308
|
e(
|
|
308
|
-
"Failed " +
|
|
309
|
+
"Failed " + i + " type: " + C.message + (P ?? "")
|
|
309
310
|
);
|
|
310
311
|
}
|
|
311
312
|
}
|
|
@@ -313,33 +314,33 @@ function $n() {
|
|
|
313
314
|
}
|
|
314
315
|
return l.resetWarningCache = function() {
|
|
315
316
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
316
|
-
},
|
|
317
|
+
}, Le = l, Le;
|
|
317
318
|
}
|
|
318
|
-
var
|
|
319
|
-
function
|
|
320
|
-
if (
|
|
321
|
-
|
|
322
|
-
var e =
|
|
319
|
+
var ke, ct;
|
|
320
|
+
function $n() {
|
|
321
|
+
if (ct) return ke;
|
|
322
|
+
ct = 1;
|
|
323
|
+
var e = _t(), n = An(), t = Ve(), r = Tt(), l = Rn(), a = function() {
|
|
323
324
|
};
|
|
324
|
-
process.env.NODE_ENV !== "production" && (a = function(
|
|
325
|
-
var v = "Warning: " +
|
|
325
|
+
process.env.NODE_ENV !== "production" && (a = function(i) {
|
|
326
|
+
var v = "Warning: " + i;
|
|
326
327
|
typeof console < "u" && console.error(v);
|
|
327
328
|
try {
|
|
328
329
|
throw new Error(v);
|
|
329
330
|
} catch {
|
|
330
331
|
}
|
|
331
332
|
});
|
|
332
|
-
function
|
|
333
|
+
function h() {
|
|
333
334
|
return null;
|
|
334
335
|
}
|
|
335
|
-
return
|
|
336
|
-
var
|
|
337
|
-
function
|
|
338
|
-
var
|
|
339
|
-
if (typeof
|
|
340
|
-
return
|
|
336
|
+
return ke = function(i, v) {
|
|
337
|
+
var y = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
338
|
+
function C(o) {
|
|
339
|
+
var f = o && (y && o[y] || o[d]);
|
|
340
|
+
if (typeof f == "function")
|
|
341
|
+
return f;
|
|
341
342
|
}
|
|
342
|
-
var
|
|
343
|
+
var k = "<<anonymous>>", P = {
|
|
343
344
|
array: Y("array"),
|
|
344
345
|
bigint: Y("bigint"),
|
|
345
346
|
bool: Y("boolean"),
|
|
@@ -349,245 +350,245 @@ function Ln() {
|
|
|
349
350
|
string: Y("string"),
|
|
350
351
|
symbol: Y("symbol"),
|
|
351
352
|
any: Q(),
|
|
352
|
-
arrayOf:
|
|
353
|
-
element:
|
|
354
|
-
elementType:
|
|
353
|
+
arrayOf: U,
|
|
354
|
+
element: q(),
|
|
355
|
+
elementType: u(),
|
|
355
356
|
instanceOf: ee,
|
|
356
357
|
node: J(),
|
|
357
|
-
objectOf:
|
|
358
|
-
oneOf:
|
|
359
|
-
oneOfType:
|
|
360
|
-
shape:
|
|
361
|
-
exact:
|
|
358
|
+
objectOf: le,
|
|
359
|
+
oneOf: ne,
|
|
360
|
+
oneOfType: ce,
|
|
361
|
+
shape: oe,
|
|
362
|
+
exact: m
|
|
362
363
|
};
|
|
363
|
-
function
|
|
364
|
-
return
|
|
364
|
+
function N(o, f) {
|
|
365
|
+
return o === f ? o !== 0 || 1 / o === 1 / f : o !== o && f !== f;
|
|
365
366
|
}
|
|
366
|
-
function
|
|
367
|
-
this.message =
|
|
367
|
+
function x(o, f) {
|
|
368
|
+
this.message = o, this.data = f && typeof f == "object" ? f : {}, this.stack = "";
|
|
368
369
|
}
|
|
369
|
-
|
|
370
|
-
function
|
|
370
|
+
x.prototype = Error.prototype;
|
|
371
|
+
function F(o) {
|
|
371
372
|
if (process.env.NODE_ENV !== "production")
|
|
372
|
-
var
|
|
373
|
-
function O(
|
|
374
|
-
if (
|
|
373
|
+
var f = {}, A = 0;
|
|
374
|
+
function O(R, T, I, B, L, $, W) {
|
|
375
|
+
if (B = B || k, $ = $ || I, W !== t) {
|
|
375
376
|
if (v) {
|
|
376
377
|
var c = new Error(
|
|
377
378
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
378
379
|
);
|
|
379
380
|
throw c.name = "Invariant Violation", c;
|
|
380
381
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
381
|
-
var Z =
|
|
382
|
-
!
|
|
383
|
-
|
|
384
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
385
|
-
),
|
|
382
|
+
var Z = B + ":" + I;
|
|
383
|
+
!f[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
384
|
+
A < 3 && (a(
|
|
385
|
+
"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."
|
|
386
|
+
), f[Z] = !0, A++);
|
|
386
387
|
}
|
|
387
388
|
}
|
|
388
|
-
return
|
|
389
|
+
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
390
|
}
|
|
390
|
-
var
|
|
391
|
-
return
|
|
391
|
+
var _ = O.bind(null, !1);
|
|
392
|
+
return _.isRequired = O.bind(null, !0), _;
|
|
392
393
|
}
|
|
393
|
-
function Y(
|
|
394
|
-
function
|
|
395
|
-
var
|
|
396
|
-
if (L !==
|
|
397
|
-
var
|
|
398
|
-
return new
|
|
399
|
-
"Invalid " +
|
|
400
|
-
{ expectedType:
|
|
394
|
+
function Y(o) {
|
|
395
|
+
function f(A, O, _, R, T, I) {
|
|
396
|
+
var B = A[O], L = w(B);
|
|
397
|
+
if (L !== o) {
|
|
398
|
+
var $ = j(B);
|
|
399
|
+
return new x(
|
|
400
|
+
"Invalid " + R + " `" + T + "` of type " + ("`" + $ + "` supplied to `" + _ + "`, expected ") + ("`" + o + "`."),
|
|
401
|
+
{ expectedType: o }
|
|
401
402
|
);
|
|
402
403
|
}
|
|
403
404
|
return null;
|
|
404
405
|
}
|
|
405
|
-
return
|
|
406
|
+
return F(f);
|
|
406
407
|
}
|
|
407
408
|
function Q() {
|
|
408
|
-
return
|
|
409
|
+
return F(h);
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
-
function
|
|
412
|
-
if (typeof
|
|
413
|
-
return new
|
|
414
|
-
var
|
|
415
|
-
if (!Array.isArray(
|
|
416
|
-
var
|
|
417
|
-
return new
|
|
411
|
+
function U(o) {
|
|
412
|
+
function f(A, O, _, R, T) {
|
|
413
|
+
if (typeof o != "function")
|
|
414
|
+
return new x("Property `" + T + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
415
|
+
var I = A[O];
|
|
416
|
+
if (!Array.isArray(I)) {
|
|
417
|
+
var B = w(I);
|
|
418
|
+
return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected an array."));
|
|
418
419
|
}
|
|
419
|
-
for (var L = 0; L <
|
|
420
|
-
var
|
|
421
|
-
if (
|
|
422
|
-
return
|
|
420
|
+
for (var L = 0; L < I.length; L++) {
|
|
421
|
+
var $ = o(I, L, _, R, T + "[" + L + "]", t);
|
|
422
|
+
if ($ instanceof Error)
|
|
423
|
+
return $;
|
|
423
424
|
}
|
|
424
425
|
return null;
|
|
425
426
|
}
|
|
426
|
-
return
|
|
427
|
+
return F(f);
|
|
427
428
|
}
|
|
428
|
-
function
|
|
429
|
-
function
|
|
430
|
-
var
|
|
431
|
-
if (!
|
|
432
|
-
var
|
|
433
|
-
return new
|
|
429
|
+
function q() {
|
|
430
|
+
function o(f, A, O, _, R) {
|
|
431
|
+
var T = f[A];
|
|
432
|
+
if (!i(T)) {
|
|
433
|
+
var I = w(T);
|
|
434
|
+
return new x("Invalid " + _ + " `" + R + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
434
435
|
}
|
|
435
436
|
return null;
|
|
436
437
|
}
|
|
437
|
-
return
|
|
438
|
+
return F(o);
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
-
function
|
|
441
|
-
var
|
|
442
|
-
if (!e.isValidElementType(
|
|
443
|
-
var
|
|
444
|
-
return new
|
|
440
|
+
function u() {
|
|
441
|
+
function o(f, A, O, _, R) {
|
|
442
|
+
var T = f[A];
|
|
443
|
+
if (!e.isValidElementType(T)) {
|
|
444
|
+
var I = w(T);
|
|
445
|
+
return new x("Invalid " + _ + " `" + R + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
445
446
|
}
|
|
446
447
|
return null;
|
|
447
448
|
}
|
|
448
|
-
return
|
|
449
|
+
return F(o);
|
|
449
450
|
}
|
|
450
|
-
function ee(
|
|
451
|
-
function
|
|
452
|
-
if (!(
|
|
453
|
-
var
|
|
454
|
-
return new
|
|
451
|
+
function ee(o) {
|
|
452
|
+
function f(A, O, _, R, T) {
|
|
453
|
+
if (!(A[O] instanceof o)) {
|
|
454
|
+
var I = o.name || k, B = G(A[O]);
|
|
455
|
+
return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected ") + ("instance of `" + I + "`."));
|
|
455
456
|
}
|
|
456
457
|
return null;
|
|
457
458
|
}
|
|
458
|
-
return
|
|
459
|
+
return F(f);
|
|
459
460
|
}
|
|
460
|
-
function
|
|
461
|
-
if (!Array.isArray(
|
|
461
|
+
function ne(o) {
|
|
462
|
+
if (!Array.isArray(o))
|
|
462
463
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
463
464
|
"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
|
-
) : a("Invalid argument supplied to oneOf, expected an array.")),
|
|
465
|
-
function
|
|
466
|
-
for (var
|
|
467
|
-
if (
|
|
465
|
+
) : a("Invalid argument supplied to oneOf, expected an array.")), h;
|
|
466
|
+
function f(A, O, _, R, T) {
|
|
467
|
+
for (var I = A[O], B = 0; B < o.length; B++)
|
|
468
|
+
if (N(I, o[B]))
|
|
468
469
|
return null;
|
|
469
|
-
var L = JSON.stringify(
|
|
470
|
+
var L = JSON.stringify(o, function(W, c) {
|
|
470
471
|
var Z = j(c);
|
|
471
472
|
return Z === "symbol" ? String(c) : c;
|
|
472
473
|
});
|
|
473
|
-
return new
|
|
474
|
+
return new x("Invalid " + R + " `" + T + "` of value `" + String(I) + "` " + ("supplied to `" + _ + "`, expected one of " + L + "."));
|
|
474
475
|
}
|
|
475
|
-
return
|
|
476
|
+
return F(f);
|
|
476
477
|
}
|
|
477
|
-
function
|
|
478
|
-
function
|
|
479
|
-
if (typeof
|
|
480
|
-
return new
|
|
481
|
-
var
|
|
482
|
-
if (
|
|
483
|
-
return new
|
|
484
|
-
for (var L in
|
|
485
|
-
if (r(
|
|
486
|
-
var
|
|
487
|
-
if (
|
|
488
|
-
return
|
|
478
|
+
function le(o) {
|
|
479
|
+
function f(A, O, _, R, T) {
|
|
480
|
+
if (typeof o != "function")
|
|
481
|
+
return new x("Property `" + T + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
482
|
+
var I = A[O], B = w(I);
|
|
483
|
+
if (B !== "object")
|
|
484
|
+
return new x("Invalid " + R + " `" + T + "` of type " + ("`" + B + "` supplied to `" + _ + "`, expected an object."));
|
|
485
|
+
for (var L in I)
|
|
486
|
+
if (r(I, L)) {
|
|
487
|
+
var $ = o(I, L, _, R, T + "." + L, t);
|
|
488
|
+
if ($ instanceof Error)
|
|
489
|
+
return $;
|
|
489
490
|
}
|
|
490
491
|
return null;
|
|
491
492
|
}
|
|
492
|
-
return
|
|
493
|
+
return F(f);
|
|
493
494
|
}
|
|
494
|
-
function
|
|
495
|
-
if (!Array.isArray(
|
|
496
|
-
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
497
|
-
for (var
|
|
498
|
-
var
|
|
499
|
-
if (typeof
|
|
495
|
+
function ce(o) {
|
|
496
|
+
if (!Array.isArray(o))
|
|
497
|
+
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), h;
|
|
498
|
+
for (var f = 0; f < o.length; f++) {
|
|
499
|
+
var A = o[f];
|
|
500
|
+
if (typeof A != "function")
|
|
500
501
|
return a(
|
|
501
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(
|
|
502
|
-
),
|
|
502
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(A) + " at index " + f + "."
|
|
503
|
+
), h;
|
|
503
504
|
}
|
|
504
|
-
function O(
|
|
505
|
-
for (var L = [],
|
|
506
|
-
var W =
|
|
505
|
+
function O(_, R, T, I, B) {
|
|
506
|
+
for (var L = [], $ = 0; $ < o.length; $++) {
|
|
507
|
+
var W = o[$], c = W(_, R, T, I, B, t);
|
|
507
508
|
if (c == null)
|
|
508
509
|
return null;
|
|
509
510
|
c.data && r(c.data, "expectedType") && L.push(c.data.expectedType);
|
|
510
511
|
}
|
|
511
512
|
var Z = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
|
|
512
|
-
return new
|
|
513
|
+
return new x("Invalid " + I + " `" + B + "` supplied to " + ("`" + T + "`" + Z + "."));
|
|
513
514
|
}
|
|
514
|
-
return
|
|
515
|
+
return F(O);
|
|
515
516
|
}
|
|
516
517
|
function J() {
|
|
517
|
-
function
|
|
518
|
-
return f
|
|
518
|
+
function o(f, A, O, _, R) {
|
|
519
|
+
return p(f[A]) ? null : new x("Invalid " + _ + " `" + R + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
519
520
|
}
|
|
520
|
-
return
|
|
521
|
+
return F(o);
|
|
521
522
|
}
|
|
522
|
-
function
|
|
523
|
-
return new
|
|
524
|
-
(
|
|
523
|
+
function re(o, f, A, O, _) {
|
|
524
|
+
return new x(
|
|
525
|
+
(o || "React class") + ": " + f + " type `" + A + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
525
526
|
);
|
|
526
527
|
}
|
|
527
|
-
function
|
|
528
|
-
function
|
|
529
|
-
var
|
|
530
|
-
if (
|
|
531
|
-
return new
|
|
532
|
-
for (var L in
|
|
533
|
-
var
|
|
534
|
-
if (typeof
|
|
535
|
-
return
|
|
536
|
-
var W =
|
|
528
|
+
function oe(o) {
|
|
529
|
+
function f(A, O, _, R, T) {
|
|
530
|
+
var I = A[O], B = w(I);
|
|
531
|
+
if (B !== "object")
|
|
532
|
+
return new x("Invalid " + R + " `" + T + "` of type `" + B + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
533
|
+
for (var L in o) {
|
|
534
|
+
var $ = o[L];
|
|
535
|
+
if (typeof $ != "function")
|
|
536
|
+
return re(_, R, T, L, j($));
|
|
537
|
+
var W = $(I, L, _, R, T + "." + L, t);
|
|
537
538
|
if (W)
|
|
538
539
|
return W;
|
|
539
540
|
}
|
|
540
541
|
return null;
|
|
541
542
|
}
|
|
542
|
-
return
|
|
543
|
+
return F(f);
|
|
543
544
|
}
|
|
544
|
-
function
|
|
545
|
-
function
|
|
546
|
-
var
|
|
547
|
-
if (
|
|
548
|
-
return new
|
|
549
|
-
var L = n({},
|
|
550
|
-
for (var
|
|
551
|
-
var W =
|
|
552
|
-
if (r(
|
|
553
|
-
return
|
|
545
|
+
function m(o) {
|
|
546
|
+
function f(A, O, _, R, T) {
|
|
547
|
+
var I = A[O], B = w(I);
|
|
548
|
+
if (B !== "object")
|
|
549
|
+
return new x("Invalid " + R + " `" + T + "` of type `" + B + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
550
|
+
var L = n({}, A[O], o);
|
|
551
|
+
for (var $ in L) {
|
|
552
|
+
var W = o[$];
|
|
553
|
+
if (r(o, $) && typeof W != "function")
|
|
554
|
+
return re(_, R, T, $, j(W));
|
|
554
555
|
if (!W)
|
|
555
|
-
return new
|
|
556
|
-
"Invalid " +
|
|
557
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
556
|
+
return new x(
|
|
557
|
+
"Invalid " + R + " `" + T + "` key `" + $ + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(A[O], null, " ") + `
|
|
558
|
+
Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
558
559
|
);
|
|
559
|
-
var c = W(
|
|
560
|
+
var c = W(I, $, _, R, T + "." + $, t);
|
|
560
561
|
if (c)
|
|
561
562
|
return c;
|
|
562
563
|
}
|
|
563
564
|
return null;
|
|
564
565
|
}
|
|
565
|
-
return
|
|
566
|
+
return F(f);
|
|
566
567
|
}
|
|
567
|
-
function
|
|
568
|
-
switch (typeof
|
|
568
|
+
function p(o) {
|
|
569
|
+
switch (typeof o) {
|
|
569
570
|
case "number":
|
|
570
571
|
case "string":
|
|
571
572
|
case "undefined":
|
|
572
573
|
return !0;
|
|
573
574
|
case "boolean":
|
|
574
|
-
return !
|
|
575
|
+
return !o;
|
|
575
576
|
case "object":
|
|
576
|
-
if (Array.isArray(
|
|
577
|
-
return
|
|
578
|
-
if (
|
|
577
|
+
if (Array.isArray(o))
|
|
578
|
+
return o.every(p);
|
|
579
|
+
if (o === null || i(o))
|
|
579
580
|
return !0;
|
|
580
|
-
var
|
|
581
|
-
if (
|
|
582
|
-
var
|
|
583
|
-
if (
|
|
584
|
-
for (; !(O =
|
|
585
|
-
if (!
|
|
581
|
+
var f = C(o);
|
|
582
|
+
if (f) {
|
|
583
|
+
var A = f.call(o), O;
|
|
584
|
+
if (f !== o.entries) {
|
|
585
|
+
for (; !(O = A.next()).done; )
|
|
586
|
+
if (!p(O.value))
|
|
586
587
|
return !1;
|
|
587
588
|
} else
|
|
588
|
-
for (; !(O =
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
589
|
+
for (; !(O = A.next()).done; ) {
|
|
590
|
+
var _ = O.value;
|
|
591
|
+
if (_ && !p(_[1]))
|
|
591
592
|
return !1;
|
|
592
593
|
}
|
|
593
594
|
} else
|
|
@@ -597,61 +598,61 @@ Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
|
597
598
|
return !1;
|
|
598
599
|
}
|
|
599
600
|
}
|
|
600
|
-
function
|
|
601
|
-
return
|
|
601
|
+
function g(o, f) {
|
|
602
|
+
return o === "symbol" ? !0 : f ? f["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && f instanceof Symbol : !1;
|
|
602
603
|
}
|
|
603
|
-
function
|
|
604
|
-
var
|
|
605
|
-
return Array.isArray(
|
|
604
|
+
function w(o) {
|
|
605
|
+
var f = typeof o;
|
|
606
|
+
return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : g(f, o) ? "symbol" : f;
|
|
606
607
|
}
|
|
607
|
-
function j(
|
|
608
|
-
if (typeof
|
|
609
|
-
return "" +
|
|
610
|
-
var
|
|
611
|
-
if (
|
|
612
|
-
if (
|
|
608
|
+
function j(o) {
|
|
609
|
+
if (typeof o > "u" || o === null)
|
|
610
|
+
return "" + o;
|
|
611
|
+
var f = w(o);
|
|
612
|
+
if (f === "object") {
|
|
613
|
+
if (o instanceof Date)
|
|
613
614
|
return "date";
|
|
614
|
-
if (
|
|
615
|
+
if (o instanceof RegExp)
|
|
615
616
|
return "regexp";
|
|
616
617
|
}
|
|
617
|
-
return
|
|
618
|
+
return f;
|
|
618
619
|
}
|
|
619
|
-
function V(
|
|
620
|
-
var
|
|
621
|
-
switch (
|
|
620
|
+
function V(o) {
|
|
621
|
+
var f = j(o);
|
|
622
|
+
switch (f) {
|
|
622
623
|
case "array":
|
|
623
624
|
case "object":
|
|
624
|
-
return "an " +
|
|
625
|
+
return "an " + f;
|
|
625
626
|
case "boolean":
|
|
626
627
|
case "date":
|
|
627
628
|
case "regexp":
|
|
628
|
-
return "a " +
|
|
629
|
+
return "a " + f;
|
|
629
630
|
default:
|
|
630
|
-
return
|
|
631
|
+
return f;
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
|
-
function G(
|
|
634
|
-
return !
|
|
634
|
+
function G(o) {
|
|
635
|
+
return !o.constructor || !o.constructor.name ? k : o.constructor.name;
|
|
635
636
|
}
|
|
636
|
-
return
|
|
637
|
-
},
|
|
637
|
+
return P.checkPropTypes = l, P.resetWarningCache = l.resetWarningCache, P.PropTypes = P, P;
|
|
638
|
+
}, ke;
|
|
638
639
|
}
|
|
639
|
-
var
|
|
640
|
+
var De, ut;
|
|
640
641
|
function Bn() {
|
|
641
|
-
if (ut) return
|
|
642
|
+
if (ut) return De;
|
|
642
643
|
ut = 1;
|
|
643
|
-
var e =
|
|
644
|
+
var e = Ve();
|
|
644
645
|
function n() {
|
|
645
646
|
}
|
|
646
647
|
function t() {
|
|
647
648
|
}
|
|
648
|
-
return t.resetWarningCache = n,
|
|
649
|
-
function r(
|
|
650
|
-
if (
|
|
651
|
-
var
|
|
649
|
+
return t.resetWarningCache = n, De = function() {
|
|
650
|
+
function r(h, i, v, y, d, C) {
|
|
651
|
+
if (C !== e) {
|
|
652
|
+
var k = new Error(
|
|
652
653
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
653
654
|
);
|
|
654
|
-
throw
|
|
655
|
+
throw k.name = "Invariant Violation", k;
|
|
655
656
|
}
|
|
656
657
|
}
|
|
657
658
|
r.isRequired = r;
|
|
@@ -682,84 +683,84 @@ function Bn() {
|
|
|
682
683
|
resetWarningCache: n
|
|
683
684
|
};
|
|
684
685
|
return a.PropTypes = a, a;
|
|
685
|
-
},
|
|
686
|
+
}, De;
|
|
686
687
|
}
|
|
687
688
|
if (process.env.NODE_ENV !== "production") {
|
|
688
|
-
var
|
|
689
|
-
|
|
689
|
+
var Ln = _t(), kn = !0;
|
|
690
|
+
Ue.exports = $n()(Ln.isElement, kn);
|
|
690
691
|
} else
|
|
691
|
-
|
|
692
|
-
var
|
|
693
|
-
const
|
|
694
|
-
function
|
|
692
|
+
Ue.exports = Bn()();
|
|
693
|
+
var Dn = Ue.exports;
|
|
694
|
+
const b = /* @__PURE__ */ Nn(Dn);
|
|
695
|
+
function He(e) {
|
|
695
696
|
return (n) => !!n.type && n.type.tabsRole === e;
|
|
696
697
|
}
|
|
697
|
-
const he =
|
|
698
|
-
function
|
|
699
|
-
return he(e) ||
|
|
698
|
+
const he = He("Tab"), Ne = He("TabList"), Ie = He("TabPanel");
|
|
699
|
+
function Mn(e) {
|
|
700
|
+
return he(e) || Ne(e) || Ie(e);
|
|
700
701
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
702
|
+
function ze(e, n) {
|
|
703
|
+
return gt.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
704
|
}
|
|
704
|
-
function
|
|
705
|
-
return
|
|
706
|
-
t !== null && (he(t) ||
|
|
705
|
+
function xe(e, n) {
|
|
706
|
+
return gt.forEach(e, (t) => {
|
|
707
|
+
t !== null && (he(t) || Ie(t) ? n(t) : t.props && t.props.children && typeof t.props.children == "object" && (Ne(t) && n(t), xe(t.props.children, n)));
|
|
707
708
|
});
|
|
708
709
|
}
|
|
709
710
|
function Et(e, n, t) {
|
|
710
|
-
let r, l = 0, a = 0,
|
|
711
|
-
const
|
|
712
|
-
return
|
|
713
|
-
|
|
711
|
+
let r, l = 0, a = 0, h = !1;
|
|
712
|
+
const i = [], v = e[n];
|
|
713
|
+
return xe(v, (y) => {
|
|
714
|
+
Ne(y) && (y.props && y.props.children && typeof y.props.children == "object" && xe(y.props.children, (d) => i.push(d)), h && (r = new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")), h = !0), he(y) ? ((!h || i.indexOf(y) === -1) && (r = new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")), l++) : Ie(y) && a++;
|
|
714
715
|
}), !r && l !== a && (r = new Error(`There should be an equal number of 'Tab' and 'TabPanel' in \`${t}\`. Received ${l} 'Tab' and ${a} 'TabPanel'.`)), r;
|
|
715
716
|
}
|
|
716
|
-
function
|
|
717
|
-
const a = e[n],
|
|
718
|
-
let
|
|
719
|
-
return a && typeof a != "function" ?
|
|
717
|
+
function jn(e, n, t, r, l) {
|
|
718
|
+
const a = e[n], h = l || n;
|
|
719
|
+
let i = null;
|
|
720
|
+
return a && typeof a != "function" ? i = new Error(`Invalid ${r} \`${h}\` of type \`${typeof a}\` supplied to \`${t}\`, expected \`function\`.`) : e.selectedIndex != null && a == null && (i = new Error(`The ${r} \`${h}\` is marked as required in \`${t}\`, but its value is \`undefined\` or \`null\`.
|
|
720
721
|
\`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
|
-
If you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)),
|
|
722
|
+
If you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)), i;
|
|
722
723
|
}
|
|
723
|
-
function
|
|
724
|
-
const a = e[n],
|
|
725
|
-
let
|
|
724
|
+
function Fn(e, n, t, r, l) {
|
|
725
|
+
const a = e[n], h = l || n;
|
|
726
|
+
let i = null;
|
|
726
727
|
if (a != null && typeof a != "number")
|
|
727
|
-
|
|
728
|
+
i = new Error(`Invalid ${r} \`${h}\` of type \`${typeof a}\` supplied to \`${t}\`, expected \`number\`.`);
|
|
728
729
|
else if (e.defaultIndex != null && a != null)
|
|
729
|
-
return new Error(`The ${r} \`${
|
|
730
|
-
Either remove \`${
|
|
731
|
-
return
|
|
730
|
+
return new Error(`The ${r} \`${h}\` cannot be used together with \`defaultIndex\` in \`${t}\`.
|
|
731
|
+
Either remove \`${h}\` to let \`${t}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);
|
|
732
|
+
return i;
|
|
732
733
|
}
|
|
733
|
-
function
|
|
734
|
+
function wt(e) {
|
|
734
735
|
var n, t, r = "";
|
|
735
736
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
736
737
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
737
738
|
var l = e.length;
|
|
738
|
-
for (n = 0; n < l; n++) e[n] && (t =
|
|
739
|
+
for (n = 0; n < l; n++) e[n] && (t = wt(e[n])) && (r && (r += " "), r += t);
|
|
739
740
|
} else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
740
741
|
return r;
|
|
741
742
|
}
|
|
742
|
-
function
|
|
743
|
-
for (var e, n, t = 0, r = "", l = arguments.length; t < l; t++) (e = arguments[t]) && (n =
|
|
743
|
+
function Oe() {
|
|
744
|
+
for (var e, n, t = 0, r = "", l = arguments.length; t < l; t++) (e = arguments[t]) && (n = wt(e)) && (r && (r += " "), r += n);
|
|
744
745
|
return r;
|
|
745
746
|
}
|
|
746
|
-
function
|
|
747
|
+
function St(e) {
|
|
747
748
|
let n = 0;
|
|
748
|
-
return
|
|
749
|
+
return xe(e, (t) => {
|
|
749
750
|
he(t) && n++;
|
|
750
751
|
}), n;
|
|
751
752
|
}
|
|
752
|
-
function
|
|
753
|
+
function xt(e) {
|
|
753
754
|
return e && "getAttribute" in e;
|
|
754
755
|
}
|
|
755
|
-
function
|
|
756
|
-
return
|
|
756
|
+
function dt(e) {
|
|
757
|
+
return xt(e) && e.getAttribute("data-rttab");
|
|
757
758
|
}
|
|
758
|
-
function
|
|
759
|
-
return
|
|
759
|
+
function ae(e) {
|
|
760
|
+
return xt(e) && e.getAttribute("aria-disabled") === "true";
|
|
760
761
|
}
|
|
761
762
|
let Ce;
|
|
762
|
-
function
|
|
763
|
+
function qn(e) {
|
|
763
764
|
const n = e || (typeof window < "u" ? window : void 0);
|
|
764
765
|
try {
|
|
765
766
|
Ce = !!(typeof n < "u" && n.document && n.document.activeElement);
|
|
@@ -767,166 +768,166 @@ function Un(e) {
|
|
|
767
768
|
Ce = !1;
|
|
768
769
|
}
|
|
769
770
|
}
|
|
770
|
-
const
|
|
771
|
+
const Un = { className: "react-tabs", focus: !1 }, zn = process.env.NODE_ENV !== "production" ? { children: Et, 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 } : {}, Ct = (e) => {
|
|
771
772
|
let n = Te([]), t = Te([]);
|
|
772
773
|
const r = Te();
|
|
773
|
-
function l(
|
|
774
|
-
if (
|
|
775
|
-
const { onSelect:
|
|
776
|
-
|
|
774
|
+
function l(m, p) {
|
|
775
|
+
if (m < 0 || m >= y()) return;
|
|
776
|
+
const { onSelect: g, selectedIndex: w } = e;
|
|
777
|
+
g(m, w, p);
|
|
777
778
|
}
|
|
778
|
-
function a(
|
|
779
|
-
const
|
|
780
|
-
for (let
|
|
781
|
-
if (!
|
|
782
|
-
return
|
|
783
|
-
for (let
|
|
784
|
-
if (!
|
|
785
|
-
return
|
|
786
|
-
return
|
|
779
|
+
function a(m) {
|
|
780
|
+
const p = y();
|
|
781
|
+
for (let g = m + 1; g < p; g++)
|
|
782
|
+
if (!ae(d(g)))
|
|
783
|
+
return g;
|
|
784
|
+
for (let g = 0; g < m; g++)
|
|
785
|
+
if (!ae(d(g)))
|
|
786
|
+
return g;
|
|
787
|
+
return m;
|
|
787
788
|
}
|
|
788
|
-
function
|
|
789
|
-
let
|
|
790
|
-
for (;
|
|
791
|
-
if (!
|
|
792
|
-
return
|
|
793
|
-
for (
|
|
794
|
-
if (!
|
|
795
|
-
return
|
|
796
|
-
return
|
|
789
|
+
function h(m) {
|
|
790
|
+
let p = m;
|
|
791
|
+
for (; p--; )
|
|
792
|
+
if (!ae(d(p)))
|
|
793
|
+
return p;
|
|
794
|
+
for (p = y(); p-- > m; )
|
|
795
|
+
if (!ae(d(p)))
|
|
796
|
+
return p;
|
|
797
|
+
return m;
|
|
797
798
|
}
|
|
798
|
-
function
|
|
799
|
-
const
|
|
800
|
-
for (let
|
|
801
|
-
if (!
|
|
802
|
-
return
|
|
799
|
+
function i() {
|
|
800
|
+
const m = y();
|
|
801
|
+
for (let p = 0; p < m; p++)
|
|
802
|
+
if (!ae(d(p)))
|
|
803
|
+
return p;
|
|
803
804
|
return null;
|
|
804
805
|
}
|
|
805
806
|
function v() {
|
|
806
|
-
let
|
|
807
|
-
for (;
|
|
808
|
-
if (!
|
|
809
|
-
return
|
|
807
|
+
let m = y();
|
|
808
|
+
for (; m--; )
|
|
809
|
+
if (!ae(d(m)))
|
|
810
|
+
return m;
|
|
810
811
|
return null;
|
|
811
812
|
}
|
|
812
|
-
function
|
|
813
|
-
const { children:
|
|
814
|
-
return
|
|
813
|
+
function y() {
|
|
814
|
+
const { children: m } = e;
|
|
815
|
+
return St(m);
|
|
815
816
|
}
|
|
816
|
-
function d(
|
|
817
|
-
return n.current[`tabs-${
|
|
817
|
+
function d(m) {
|
|
818
|
+
return n.current[`tabs-${m}`];
|
|
818
819
|
}
|
|
819
|
-
function
|
|
820
|
-
let
|
|
821
|
-
const { children:
|
|
820
|
+
function C() {
|
|
821
|
+
let m = 0;
|
|
822
|
+
const { children: p, disabledTabClassName: g, focus: w, forceRenderTabPanel: j, selectedIndex: V, selectedTabClassName: G, selectedTabPanelClassName: o, environment: f } = e;
|
|
822
823
|
t.current = t.current || [];
|
|
823
|
-
let
|
|
824
|
-
const O =
|
|
825
|
-
for (;
|
|
824
|
+
let A = t.current.length - y();
|
|
825
|
+
const O = tn();
|
|
826
|
+
for (; A++ < 0; )
|
|
826
827
|
t.current.push(`${O}${t.current.length}`);
|
|
827
|
-
return
|
|
828
|
-
let
|
|
829
|
-
if (
|
|
830
|
-
let
|
|
831
|
-
Ce == null &&
|
|
832
|
-
const
|
|
833
|
-
Ce &&
|
|
834
|
-
const
|
|
835
|
-
n.current[
|
|
836
|
-
}, id: t.current[
|
|
837
|
-
return G && (c.selectedClassName = G),
|
|
828
|
+
return ze(p, (_) => {
|
|
829
|
+
let R = _;
|
|
830
|
+
if (Ne(_)) {
|
|
831
|
+
let T = 0, I = !1;
|
|
832
|
+
Ce == null && qn(f);
|
|
833
|
+
const B = f || (typeof window < "u" ? window : void 0);
|
|
834
|
+
Ce && B && (I = pe.Children.toArray(_.props.children).filter(he).some((L, $) => B.document.activeElement === d($))), R = _e(_, { children: ze(_.props.children, (L) => {
|
|
835
|
+
const $ = `tabs-${T}`, W = V === T, c = { tabRef: (Z) => {
|
|
836
|
+
n.current[$] = Z;
|
|
837
|
+
}, id: t.current[T], selected: W, focus: W && (w || I) };
|
|
838
|
+
return G && (c.selectedClassName = G), g && (c.disabledClassName = g), T++, _e(L, c);
|
|
838
839
|
}) });
|
|
839
|
-
} else if (
|
|
840
|
-
const
|
|
841
|
-
j && (
|
|
840
|
+
} else if (Ie(_)) {
|
|
841
|
+
const T = { id: t.current[m], selected: V === m };
|
|
842
|
+
j && (T.forceRender = j), o && (T.selectedClassName = o), m++, R = _e(_, T);
|
|
842
843
|
}
|
|
843
|
-
return
|
|
844
|
+
return R;
|
|
844
845
|
});
|
|
845
846
|
}
|
|
846
|
-
function
|
|
847
|
-
const { direction:
|
|
848
|
-
if (
|
|
847
|
+
function k(m) {
|
|
848
|
+
const { direction: p, disableUpDownKeys: g, disableLeftRightKeys: w } = e;
|
|
849
|
+
if (N(m.target)) {
|
|
849
850
|
let { selectedIndex: j } = e, V = !1, G = !1;
|
|
850
|
-
(
|
|
851
|
+
(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
852
|
}
|
|
852
853
|
}
|
|
853
|
-
function
|
|
854
|
-
let
|
|
854
|
+
function P(m) {
|
|
855
|
+
let p = m.target;
|
|
855
856
|
do
|
|
856
|
-
if (
|
|
857
|
-
if (
|
|
857
|
+
if (N(p)) {
|
|
858
|
+
if (ae(p))
|
|
858
859
|
return;
|
|
859
|
-
const
|
|
860
|
-
l(
|
|
860
|
+
const g = [].slice.call(p.parentNode.children).filter(dt).indexOf(p);
|
|
861
|
+
l(g, m);
|
|
861
862
|
return;
|
|
862
863
|
}
|
|
863
|
-
while ((
|
|
864
|
+
while ((p = p.parentNode) != null);
|
|
864
865
|
}
|
|
865
|
-
function
|
|
866
|
-
if (!
|
|
866
|
+
function N(m) {
|
|
867
|
+
if (!dt(m))
|
|
867
868
|
return !1;
|
|
868
|
-
let
|
|
869
|
+
let p = m.parentElement;
|
|
869
870
|
do {
|
|
870
|
-
if (
|
|
871
|
-
if (
|
|
872
|
-
|
|
873
|
-
} while (
|
|
871
|
+
if (p === r.current) return !0;
|
|
872
|
+
if (p.getAttribute("data-rttabs")) break;
|
|
873
|
+
p = p.parentElement;
|
|
874
|
+
} while (p);
|
|
874
875
|
return !1;
|
|
875
876
|
}
|
|
876
|
-
const { children:
|
|
877
|
-
return
|
|
878
|
-
r.current =
|
|
879
|
-
}, "data-rttabs": !0 }),
|
|
877
|
+
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 };
|
|
878
|
+
return pe.createElement("div", Object.assign({}, oe, { className: Oe(F), onClick: P, onKeyDown: k, ref: (m) => {
|
|
879
|
+
r.current = m, Q && Q(m);
|
|
880
|
+
}, "data-rttabs": !0 }), C());
|
|
880
881
|
};
|
|
881
|
-
|
|
882
|
-
const
|
|
883
|
-
if (process.env.NODE_ENV !== "production" && n != null && n !==
|
|
882
|
+
Ct.propTypes = process.env.NODE_ENV !== "production" ? zn : {};
|
|
883
|
+
const Wn = 0, Ee = 1, Yn = process.env.NODE_ENV !== "production" ? { children: Et, 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 }, Pt = (e) => e.selectedIndex === null ? Ee : Wn, Hn = (e, n) => {
|
|
884
|
+
if (process.env.NODE_ENV !== "production" && n != null && n !== Pt(e))
|
|
884
885
|
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
|
-
},
|
|
886
|
-
const { children: n, defaultFocus: t, defaultIndex: r, focusTabOnClick: l, onSelect: a, ...
|
|
887
|
-
if (
|
|
886
|
+
}, Ke = (e) => {
|
|
887
|
+
const { children: n, defaultFocus: t, defaultIndex: r, focusTabOnClick: l, onSelect: a, ...h } = { ...Vn, ...e }, [i, v] = te(t), [y] = te(Pt(h)), [d, C] = te(y === Ee ? r || 0 : null);
|
|
888
|
+
if (se(() => {
|
|
888
889
|
v(!1);
|
|
889
|
-
}, []),
|
|
890
|
-
const
|
|
891
|
-
|
|
890
|
+
}, []), y === Ee) {
|
|
891
|
+
const N = St(n);
|
|
892
|
+
se(() => {
|
|
892
893
|
if (d != null) {
|
|
893
|
-
const
|
|
894
|
-
|
|
894
|
+
const x = Math.max(0, N - 1);
|
|
895
|
+
C(Math.min(d, x));
|
|
895
896
|
}
|
|
896
|
-
}, [
|
|
897
|
+
}, [N]);
|
|
897
898
|
}
|
|
898
|
-
|
|
899
|
-
const
|
|
900
|
-
typeof a == "function" && a(
|
|
899
|
+
Hn(h, y);
|
|
900
|
+
const k = (N, x, F) => {
|
|
901
|
+
typeof a == "function" && a(N, x, F) === !1 || (l && v(!0), y === Ee && C(N));
|
|
901
902
|
};
|
|
902
|
-
let
|
|
903
|
-
return
|
|
903
|
+
let P = { ...e, ...h };
|
|
904
|
+
return P.focus = i, P.onSelect = k, d != null && (P.selectedIndex = d), delete P.defaultFocus, delete P.defaultIndex, delete P.focusTabOnClick, pe.createElement(Ct, P, n);
|
|
904
905
|
};
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
const
|
|
908
|
-
const { children: n, className: t, ...r } = { ...
|
|
909
|
-
return
|
|
906
|
+
Ke.propTypes = process.env.NODE_ENV !== "production" ? Yn : {};
|
|
907
|
+
Ke.tabsRole = "Tabs";
|
|
908
|
+
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) => {
|
|
909
|
+
const { children: n, className: t, ...r } = { ...Kn, ...e };
|
|
910
|
+
return pe.createElement("ul", Object.assign({}, r, { className: Oe(t), role: "tablist" }), n);
|
|
910
911
|
};
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
const
|
|
912
|
+
Ge.tabsRole = "TabList";
|
|
913
|
+
Ge.propTypes = process.env.NODE_ENV !== "production" ? Gn : {};
|
|
914
|
+
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
915
|
let n = Te();
|
|
915
|
-
const { children: t, className: r, disabled: l, disabledClassName: a, focus:
|
|
916
|
-
return
|
|
917
|
-
v &&
|
|
918
|
-
}, [v,
|
|
919
|
-
n.current =
|
|
920
|
-
}, role: "tab", id: `tab${
|
|
916
|
+
const { children: t, className: r, disabled: l, disabledClassName: a, focus: h, id: i, selected: v, selectedClassName: y, tabIndex: d, tabRef: C, ...k } = { ...Xn, ...e };
|
|
917
|
+
return se(() => {
|
|
918
|
+
v && h && n.current.focus();
|
|
919
|
+
}, [v, h]), pe.createElement("li", Object.assign({}, k, { className: Oe(r, { [y]: v, [a]: l }), ref: (P) => {
|
|
920
|
+
n.current = P, C && C(P);
|
|
921
|
+
}, 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
922
|
};
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
const
|
|
925
|
-
const { children: n, className: t, forceRender: r, id: l, selected: a, selectedClassName:
|
|
926
|
-
return
|
|
923
|
+
de.propTypes = process.env.NODE_ENV !== "production" ? Jn : {};
|
|
924
|
+
de.tabsRole = "Tab";
|
|
925
|
+
const ft = "react-tabs__tab-panel", Zn = { className: ft, forceRender: !1, selectedClassName: `${ft}--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) => {
|
|
926
|
+
const { children: n, className: t, forceRender: r, id: l, selected: a, selectedClassName: h, ...i } = { ...Zn, ...e };
|
|
927
|
+
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
928
|
};
|
|
928
929
|
fe.tabsRole = "TabPanel";
|
|
929
|
-
fe.propTypes = process.env.NODE_ENV !== "production" ?
|
|
930
|
+
fe.propTypes = process.env.NODE_ENV !== "production" ? Qn : {};
|
|
930
931
|
(function() {
|
|
931
932
|
try {
|
|
932
933
|
if (typeof document < "u") {
|
|
@@ -937,27 +938,27 @@ fe.propTypes = process.env.NODE_ENV !== "production" ? tr : {};
|
|
|
937
938
|
console.error("vite-plugin-css-injected-by-js", n);
|
|
938
939
|
}
|
|
939
940
|
})();
|
|
940
|
-
const
|
|
941
|
-
FileExplorer:
|
|
942
|
-
Header:
|
|
943
|
-
IconButton:
|
|
944
|
-
PathInput:
|
|
941
|
+
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 = {
|
|
942
|
+
FileExplorer: er,
|
|
943
|
+
Header: tr,
|
|
944
|
+
IconButton: nr,
|
|
945
|
+
PathInput: rr,
|
|
945
946
|
Body: or,
|
|
946
|
-
Sidebar:
|
|
947
|
-
NavButton:
|
|
948
|
-
Main:
|
|
949
|
-
Footer:
|
|
950
|
-
Selector:
|
|
947
|
+
Sidebar: ar,
|
|
948
|
+
NavButton: ir,
|
|
949
|
+
Main: sr,
|
|
950
|
+
Footer: lr,
|
|
951
|
+
Selector: cr
|
|
951
952
|
};
|
|
952
|
-
function
|
|
953
|
-
return /* @__PURE__ */
|
|
953
|
+
function ge({ onClick: e, icon: n, name: t }) {
|
|
954
|
+
return /* @__PURE__ */ E(
|
|
954
955
|
"button",
|
|
955
956
|
{
|
|
956
957
|
tabIndex: 0,
|
|
957
|
-
className: `${
|
|
958
|
+
className: `${z.NavButton} ${K.TextSemibold}`,
|
|
958
959
|
onClick: e,
|
|
959
960
|
children: [
|
|
960
|
-
/* @__PURE__ */
|
|
961
|
+
/* @__PURE__ */ s(X, { icon: n }),
|
|
961
962
|
t
|
|
962
963
|
]
|
|
963
964
|
}
|
|
@@ -967,17 +968,17 @@ function ur({ directory: e }) {
|
|
|
967
968
|
const n = (t) => {
|
|
968
969
|
const r = t.target.files;
|
|
969
970
|
r != null && Array.from(r).forEach((l) => {
|
|
970
|
-
const { name: a, extension:
|
|
971
|
-
|
|
972
|
-
const { result:
|
|
973
|
-
e.createFile(a,
|
|
974
|
-
d.setSource(
|
|
971
|
+
const { name: a, extension: h } = kt.splitId(l.name), i = new FileReader();
|
|
972
|
+
i.onload = (v) => {
|
|
973
|
+
const { result: y } = v.target;
|
|
974
|
+
e.createFile(a, h, (d) => {
|
|
975
|
+
d.setSource(y);
|
|
975
976
|
});
|
|
976
|
-
},
|
|
977
|
+
}, i.readAsDataURL(l);
|
|
977
978
|
});
|
|
978
979
|
};
|
|
979
|
-
return /* @__PURE__ */
|
|
980
|
-
/* @__PURE__ */
|
|
980
|
+
return /* @__PURE__ */ E("label", { title: "Import", tabIndex: 0, className: z.IconButton, children: [
|
|
981
|
+
/* @__PURE__ */ s(
|
|
981
982
|
"input",
|
|
982
983
|
{
|
|
983
984
|
type: "file",
|
|
@@ -987,473 +988,308 @@ function ur({ directory: e }) {
|
|
|
987
988
|
onChange: n
|
|
988
989
|
}
|
|
989
990
|
),
|
|
990
|
-
/* @__PURE__ */
|
|
991
|
+
/* @__PURE__ */ s(X, { icon: Gt })
|
|
991
992
|
] });
|
|
992
993
|
}
|
|
993
|
-
const
|
|
994
|
+
const pt = {
|
|
994
995
|
NONE: 0,
|
|
995
996
|
SINGLE: 1,
|
|
996
997
|
MULTIPLE: 2
|
|
997
|
-
},
|
|
998
|
-
FileProperties:
|
|
999
|
-
Icon:
|
|
1000
|
-
Section:
|
|
1001
|
-
Line:
|
|
1002
|
-
AppIcon:
|
|
998
|
+
}, dr = "_FileProperties_s5har_1", fr = "_Icon_s5har_17", pr = "_Section_s5har_49", br = "_Line_s5har_91", mr = "_AppIcon_s5har_135", H = {
|
|
999
|
+
FileProperties: dr,
|
|
1000
|
+
Icon: fr,
|
|
1001
|
+
Section: pr,
|
|
1002
|
+
Line: br,
|
|
1003
|
+
AppIcon: mr
|
|
1003
1004
|
};
|
|
1004
|
-
function
|
|
1005
|
-
const { appsConfig: l } =
|
|
1006
|
-
return /* @__PURE__ */
|
|
1007
|
-
/* @__PURE__ */
|
|
1008
|
-
/* @__PURE__ */
|
|
1009
|
-
/* @__PURE__ */
|
|
1005
|
+
function hr({ modal: e, params: n, file: t, ...r }) {
|
|
1006
|
+
const { appsConfig: l } = me(), a = t.extension != null ? l.getAppByFileExtension(t.extension) : null;
|
|
1007
|
+
return /* @__PURE__ */ E(Lt, { className: H.FileProperties, modal: e, params: n, ...r, children: [
|
|
1008
|
+
/* @__PURE__ */ E("span", { className: H.Section, children: [
|
|
1009
|
+
/* @__PURE__ */ s(qe, { className: H.Icon, source: t.getIconUrl() }),
|
|
1010
|
+
/* @__PURE__ */ s("p", { className: `${H.Line} ${K.TextBold}`, children: t.id })
|
|
1010
1011
|
] }),
|
|
1011
|
-
/* @__PURE__ */
|
|
1012
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ E("span", { className: H.Section, children: [
|
|
1013
|
+
/* @__PURE__ */ E("p", { className: H.Line, children: [
|
|
1013
1014
|
"Type: ",
|
|
1014
1015
|
t.getType()
|
|
1015
1016
|
] }),
|
|
1016
|
-
a != null && /* @__PURE__ */
|
|
1017
|
+
a != null && /* @__PURE__ */ E("span", { className: H.Line, children: [
|
|
1017
1018
|
"Opens with:",
|
|
1018
|
-
/* @__PURE__ */
|
|
1019
|
+
/* @__PURE__ */ s(qe, { className: H.AppIcon, source: a.iconUrl ?? "" }),
|
|
1019
1020
|
a.name
|
|
1020
1021
|
] })
|
|
1021
1022
|
] }),
|
|
1022
|
-
/* @__PURE__ */
|
|
1023
|
-
/* @__PURE__ */
|
|
1023
|
+
/* @__PURE__ */ E("span", { className: H.Section, children: [
|
|
1024
|
+
/* @__PURE__ */ E("p", { className: H.Line, children: [
|
|
1024
1025
|
"Location: ",
|
|
1025
1026
|
t.path
|
|
1026
1027
|
] }),
|
|
1027
|
-
/* @__PURE__ */
|
|
1028
|
+
/* @__PURE__ */ E("p", { className: H.Line, children: [
|
|
1028
1029
|
"Size: ",
|
|
1029
|
-
|
|
1030
|
+
ue.getByteSize(t.source ?? t.content),
|
|
1030
1031
|
" bytes"
|
|
1031
1032
|
] }),
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ E("p", { className: H.Line, children: [
|
|
1033
1034
|
"Size on drive: ",
|
|
1034
|
-
|
|
1035
|
+
ue.getByteSize(t.toString()),
|
|
1035
1036
|
" bytes"
|
|
1036
1037
|
] })
|
|
1037
1038
|
] }),
|
|
1038
|
-
/* @__PURE__ */
|
|
1039
|
+
/* @__PURE__ */ s("span", { className: H.Section, children: /* @__PURE__ */ E("p", { className: H.Line, children: [
|
|
1039
1040
|
"Attributes: ",
|
|
1040
1041
|
t.isProtected ? "Protected" : "N/A"
|
|
1041
1042
|
] }) })
|
|
1042
1043
|
] });
|
|
1043
1044
|
}
|
|
1044
1045
|
function yr({ app: e, path: n, selectorMode: t, Footer: r, onSelectionChange: l, onSelectionFinish: a }) {
|
|
1045
|
-
const
|
|
1046
|
-
Actions: (
|
|
1047
|
-
/* @__PURE__ */
|
|
1048
|
-
if (
|
|
1049
|
-
l == null || l({ files: [
|
|
1046
|
+
const h = r != null && t != null && t !== pt.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 } = Ot(d.path), { alert: ee } = At(), { openWindowedModal: ne } = ht(), { onContextMenu: le } = je({
|
|
1047
|
+
Actions: (p) => /* @__PURE__ */ E(Fe, { ...p, children: [
|
|
1048
|
+
/* @__PURE__ */ s(ie, { label: h ? "Select" : "Open", onTrigger: (g, w) => {
|
|
1049
|
+
if (h) {
|
|
1050
|
+
l == null || l({ files: [w.id], directory: d }), a == null || a();
|
|
1050
1051
|
return;
|
|
1051
1052
|
}
|
|
1052
|
-
v != null &&
|
|
1053
|
+
v != null && w.open(v);
|
|
1053
1054
|
} }),
|
|
1054
|
-
/* @__PURE__ */
|
|
1055
|
-
|
|
1055
|
+
/* @__PURE__ */ s(ie, { label: "Delete", icon: et, onTrigger: (g, w) => {
|
|
1056
|
+
w.delete();
|
|
1056
1057
|
} }),
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
|
|
1059
|
-
title: `${
|
|
1060
|
-
iconUrl:
|
|
1058
|
+
/* @__PURE__ */ s(ie, { label: "Properties", icon: vt, onTrigger: (g, w) => {
|
|
1059
|
+
ne({
|
|
1060
|
+
title: `${w.id} ${y.titleSeparator} Properties`,
|
|
1061
|
+
iconUrl: w.getIconUrl(),
|
|
1061
1062
|
size: new be(400, 500),
|
|
1062
|
-
Modal: (j) => /* @__PURE__ */
|
|
1063
|
+
Modal: (j) => /* @__PURE__ */ s(hr, { file: w, ...j })
|
|
1063
1064
|
});
|
|
1064
1065
|
} })
|
|
1065
1066
|
] })
|
|
1066
|
-
}), { onContextMenu:
|
|
1067
|
-
Actions: (
|
|
1068
|
-
/* @__PURE__ */
|
|
1069
|
-
J(
|
|
1067
|
+
}), { onContextMenu: ce } = je({
|
|
1068
|
+
Actions: (p) => /* @__PURE__ */ E(Fe, { ...p, children: [
|
|
1069
|
+
/* @__PURE__ */ s(ie, { label: "Open", onTrigger: (g, w) => {
|
|
1070
|
+
J(w.linkedPath ?? w.name);
|
|
1070
1071
|
} }),
|
|
1071
|
-
/* @__PURE__ */
|
|
1072
|
-
/* @__PURE__ */
|
|
1073
|
-
|
|
1072
|
+
/* @__PURE__ */ s(Rt, {}),
|
|
1073
|
+
/* @__PURE__ */ s(ie, { label: "Delete", icon: et, onTrigger: (g, w) => {
|
|
1074
|
+
w.delete();
|
|
1074
1075
|
} })
|
|
1075
1076
|
] })
|
|
1076
|
-
}), J =
|
|
1077
|
-
if (
|
|
1077
|
+
}), J = nn((p, g = !1) => {
|
|
1078
|
+
if (p == null)
|
|
1078
1079
|
return;
|
|
1079
|
-
d == null && (
|
|
1080
|
-
const
|
|
1081
|
-
|
|
1082
|
-
}, [d, Y,
|
|
1083
|
-
|
|
1084
|
-
if (
|
|
1080
|
+
d == null && (g = !0);
|
|
1081
|
+
const w = g ? i == null ? void 0 : i.navigate(p) : d.navigate(p);
|
|
1082
|
+
w != null && (C(w), P(w.root ? "/" : w.path), Y(w.path));
|
|
1083
|
+
}, [d, Y, i]);
|
|
1084
|
+
se(() => {
|
|
1085
|
+
if (x.length === 0)
|
|
1085
1086
|
return;
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1088
|
-
}, [
|
|
1089
|
-
const
|
|
1087
|
+
const p = x[F], g = i == null ? void 0 : i.navigate(p);
|
|
1088
|
+
g != null && (C(g), P(g.root ? "/" : g.path));
|
|
1089
|
+
}, [x, F, i]), se(() => {
|
|
1090
|
+
const p = (g) => {
|
|
1090
1091
|
ee({
|
|
1091
|
-
title:
|
|
1092
|
+
title: g.message,
|
|
1092
1093
|
text: "You have exceeded the virtual drive capacity. Files and folders will not be saved until more storage is freed.",
|
|
1093
1094
|
iconUrl: e == null ? void 0 : e.iconUrl,
|
|
1094
1095
|
size: new be(300, 200),
|
|
1095
1096
|
single: !0
|
|
1096
1097
|
});
|
|
1097
1098
|
};
|
|
1098
|
-
return
|
|
1099
|
-
|
|
1099
|
+
return i == null || i.on(Je.EVENT_NAMES.error, p), () => {
|
|
1100
|
+
i == null || i.off(Je.EVENT_NAMES.error, p);
|
|
1100
1101
|
};
|
|
1101
1102
|
}, []);
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1104
|
-
},
|
|
1105
|
-
let
|
|
1106
|
-
if (
|
|
1107
|
-
|
|
1108
|
-
const
|
|
1109
|
-
if (
|
|
1110
|
-
|
|
1103
|
+
const re = (p) => {
|
|
1104
|
+
P(p.target.value);
|
|
1105
|
+
}, oe = (p) => {
|
|
1106
|
+
let g = p.target.value;
|
|
1107
|
+
if (p.key === "Enter") {
|
|
1108
|
+
g === "" && (g = "~");
|
|
1109
|
+
const w = i == null ? void 0 : i.navigate(g);
|
|
1110
|
+
if (w == null) {
|
|
1111
|
+
ne({
|
|
1111
1112
|
title: "Error",
|
|
1112
1113
|
iconUrl: e == null ? void 0 : e.iconUrl,
|
|
1113
1114
|
size: new be(300, 150),
|
|
1114
|
-
Modal: (j) => /* @__PURE__ */
|
|
1115
|
-
/* @__PURE__ */
|
|
1115
|
+
Modal: (j) => /* @__PURE__ */ E(Ze, { ...j, children: [
|
|
1116
|
+
/* @__PURE__ */ E("p", { children: [
|
|
1116
1117
|
'Invalid path: "',
|
|
1117
|
-
|
|
1118
|
+
g,
|
|
1118
1119
|
'"'
|
|
1119
1120
|
] }),
|
|
1120
|
-
/* @__PURE__ */
|
|
1121
|
+
/* @__PURE__ */ s("button", { "data-type": Qe.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
|
|
1121
1122
|
] })
|
|
1122
1123
|
});
|
|
1123
1124
|
return;
|
|
1124
1125
|
}
|
|
1125
|
-
|
|
1126
|
+
C(w), P(w.root ? "/" : w.path);
|
|
1126
1127
|
}
|
|
1127
|
-
},
|
|
1128
|
-
return /* @__PURE__ */
|
|
1129
|
-
/* @__PURE__ */
|
|
1130
|
-
/* @__PURE__ */
|
|
1128
|
+
}, m = d.getItemCount(N);
|
|
1129
|
+
return /* @__PURE__ */ E("div", { className: h ? `${z.FileExplorer} ${z.Selector}` : z.FileExplorer, children: [
|
|
1130
|
+
/* @__PURE__ */ E("div", { className: z.Header, children: [
|
|
1131
|
+
/* @__PURE__ */ s(
|
|
1131
1132
|
"button",
|
|
1132
1133
|
{
|
|
1133
1134
|
title: "Back",
|
|
1134
1135
|
tabIndex: 0,
|
|
1135
|
-
className:
|
|
1136
|
+
className: z.IconButton,
|
|
1136
1137
|
onClick: () => {
|
|
1137
1138
|
Q();
|
|
1138
1139
|
},
|
|
1139
|
-
disabled: !
|
|
1140
|
-
children: /* @__PURE__ */
|
|
1140
|
+
disabled: !q,
|
|
1141
|
+
children: /* @__PURE__ */ s(X, { icon: jt })
|
|
1141
1142
|
}
|
|
1142
1143
|
),
|
|
1143
|
-
/* @__PURE__ */
|
|
1144
|
+
/* @__PURE__ */ s(
|
|
1144
1145
|
"button",
|
|
1145
1146
|
{
|
|
1146
1147
|
title: "Forward",
|
|
1147
1148
|
tabIndex: 0,
|
|
1148
|
-
className:
|
|
1149
|
+
className: z.IconButton,
|
|
1149
1150
|
onClick: () => {
|
|
1150
|
-
|
|
1151
|
+
U();
|
|
1151
1152
|
},
|
|
1152
|
-
disabled: !
|
|
1153
|
-
children: /* @__PURE__ */
|
|
1153
|
+
disabled: !u,
|
|
1154
|
+
children: /* @__PURE__ */ s(X, { icon: Ft })
|
|
1154
1155
|
}
|
|
1155
1156
|
),
|
|
1156
|
-
/* @__PURE__ */
|
|
1157
|
+
/* @__PURE__ */ s(
|
|
1157
1158
|
"button",
|
|
1158
1159
|
{
|
|
1159
1160
|
title: "Up",
|
|
1160
1161
|
tabIndex: 0,
|
|
1161
|
-
className:
|
|
1162
|
+
className: z.IconButton,
|
|
1162
1163
|
onClick: () => {
|
|
1163
1164
|
J("..");
|
|
1164
1165
|
},
|
|
1165
1166
|
disabled: d.isRoot != null && d.isRoot,
|
|
1166
|
-
children: /* @__PURE__ */
|
|
1167
|
+
children: /* @__PURE__ */ s(X, { icon: qt })
|
|
1167
1168
|
}
|
|
1168
1169
|
),
|
|
1169
|
-
/* @__PURE__ */
|
|
1170
|
+
/* @__PURE__ */ s(
|
|
1170
1171
|
"button",
|
|
1171
1172
|
{
|
|
1172
1173
|
title: "New",
|
|
1173
1174
|
tabIndex: 0,
|
|
1174
|
-
className:
|
|
1175
|
+
className: z.IconButton,
|
|
1175
1176
|
onClick: () => {
|
|
1176
|
-
|
|
1177
|
+
ne({
|
|
1177
1178
|
title: "Error",
|
|
1178
1179
|
iconUrl: e == null ? void 0 : e.iconUrl,
|
|
1179
1180
|
size: new be(300, 150),
|
|
1180
|
-
Modal: (
|
|
1181
|
-
/* @__PURE__ */
|
|
1182
|
-
/* @__PURE__ */
|
|
1181
|
+
Modal: (p) => /* @__PURE__ */ E(Ze, { ...p, children: [
|
|
1182
|
+
/* @__PURE__ */ s("p", { children: "This folder is protected." }),
|
|
1183
|
+
/* @__PURE__ */ s("button", { "data-type": Qe.DIALOG_CONTENT_TYPES.closeButton, children: "Ok" })
|
|
1183
1184
|
] })
|
|
1184
1185
|
});
|
|
1185
1186
|
},
|
|
1186
1187
|
disabled: !d.canBeEdited,
|
|
1187
|
-
children: /* @__PURE__ */
|
|
1188
|
+
children: /* @__PURE__ */ s(X, { icon: Ut })
|
|
1188
1189
|
}
|
|
1189
1190
|
),
|
|
1190
|
-
/* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ s(
|
|
1191
1192
|
"input",
|
|
1192
1193
|
{
|
|
1193
|
-
value:
|
|
1194
|
+
value: k,
|
|
1194
1195
|
type: "text",
|
|
1195
1196
|
"aria-label": "Path",
|
|
1196
|
-
className:
|
|
1197
|
+
className: z.PathInput,
|
|
1197
1198
|
tabIndex: 0,
|
|
1198
|
-
onChange:
|
|
1199
|
-
onKeyDown:
|
|
1199
|
+
onChange: re,
|
|
1200
|
+
onKeyDown: oe,
|
|
1200
1201
|
placeholder: "Enter a path..."
|
|
1201
1202
|
}
|
|
1202
1203
|
),
|
|
1203
|
-
/* @__PURE__ */
|
|
1204
|
-
/* @__PURE__ */
|
|
1205
|
-
/* @__PURE__ */
|
|
1204
|
+
/* @__PURE__ */ s(ur, { directory: d }),
|
|
1205
|
+
/* @__PURE__ */ s("button", { title: "Search", tabIndex: 0, className: z.IconButton, children: /* @__PURE__ */ s(X, { icon: zt }) }),
|
|
1206
|
+
/* @__PURE__ */ s("button", { title: "Settings", tabIndex: 0, className: z.IconButton, children: /* @__PURE__ */ s(X, { icon: Wt }) })
|
|
1206
1207
|
] }),
|
|
1207
|
-
/* @__PURE__ */
|
|
1208
|
-
/* @__PURE__ */
|
|
1209
|
-
/* @__PURE__ */
|
|
1208
|
+
/* @__PURE__ */ E("div", { className: z.Body, children: [
|
|
1209
|
+
/* @__PURE__ */ E("div", { className: z.Sidebar, children: [
|
|
1210
|
+
/* @__PURE__ */ s(ge, { name: "Home", onClick: () => {
|
|
1210
1211
|
J("~");
|
|
1211
|
-
}, icon:
|
|
1212
|
-
/* @__PURE__ */
|
|
1212
|
+
}, icon: Yt }),
|
|
1213
|
+
/* @__PURE__ */ s(ge, { name: "Desktop", onClick: () => {
|
|
1213
1214
|
J("~/Desktop");
|
|
1214
|
-
}, icon:
|
|
1215
|
-
/* @__PURE__ */
|
|
1215
|
+
}, icon: Vt }),
|
|
1216
|
+
/* @__PURE__ */ s(ge, { name: "Images", onClick: () => {
|
|
1216
1217
|
J("~/Pictures");
|
|
1217
|
-
}, icon:
|
|
1218
|
-
/* @__PURE__ */
|
|
1218
|
+
}, icon: Ht }),
|
|
1219
|
+
/* @__PURE__ */ s(ge, { name: "Documents", onClick: () => {
|
|
1219
1220
|
J("~/Documents");
|
|
1220
|
-
}, icon:
|
|
1221
|
+
}, icon: Kt })
|
|
1221
1222
|
] }),
|
|
1222
|
-
/* @__PURE__ */
|
|
1223
|
-
|
|
1223
|
+
/* @__PURE__ */ s(
|
|
1224
|
+
$t,
|
|
1224
1225
|
{
|
|
1225
1226
|
directory: d,
|
|
1226
1227
|
id: "main",
|
|
1227
|
-
className:
|
|
1228
|
-
showHidden:
|
|
1229
|
-
onOpenFile: (
|
|
1230
|
-
if (
|
|
1228
|
+
className: z.Main,
|
|
1229
|
+
showHidden: N,
|
|
1230
|
+
onOpenFile: (p, g) => {
|
|
1231
|
+
if (p.preventDefault(), h)
|
|
1231
1232
|
return void (a == null ? void 0 : a());
|
|
1232
|
-
const
|
|
1233
|
-
(
|
|
1233
|
+
const w = {};
|
|
1234
|
+
(g.extension === "md" || g.extension != null && Bt.includes(g.extension)) && (w.mode = "view"), v == null || v.openFile(g, w);
|
|
1234
1235
|
},
|
|
1235
|
-
onOpenFolder: (
|
|
1236
|
-
J(
|
|
1236
|
+
onOpenFolder: (p, g) => {
|
|
1237
|
+
J(g.linkedPath ?? g.name);
|
|
1237
1238
|
},
|
|
1238
|
-
onContextMenuFile:
|
|
1239
|
-
onContextMenuFolder:
|
|
1240
|
-
allowMultiSelect: t !==
|
|
1239
|
+
onContextMenuFile: le,
|
|
1240
|
+
onContextMenuFolder: ce,
|
|
1241
|
+
allowMultiSelect: t !== pt.SINGLE,
|
|
1241
1242
|
onSelectionChange: l
|
|
1242
1243
|
}
|
|
1243
1244
|
)
|
|
1244
1245
|
] }),
|
|
1245
|
-
|
|
1246
|
+
h ? /* @__PURE__ */ s("div", { className: z.Footer, children: /* @__PURE__ */ s(r, {}) }) : /* @__PURE__ */ s("span", { className: z.Footer, children: /* @__PURE__ */ s("p", { className: K.TextLight, children: m === 1 ? m + " item" : m + " items" }) })
|
|
1246
1247
|
] });
|
|
1247
1248
|
}
|
|
1248
|
-
var
|
|
1249
|
-
const
|
|
1250
|
-
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
"https://os.prozilla.dev/assets/wallpapers/vibrant-wallpaper-purple-yellow.png",
|
|
1259
|
-
"https://os.prozilla.dev/assets/wallpapers/abstract-wallpaper-mesh-gradient-cyan.png",
|
|
1260
|
-
"https://os.prozilla.dev/assets/wallpapers/colorful-abstract-wallpaper-blue-red-green.png",
|
|
1261
|
-
"https://os.prozilla.dev/assets/wallpapers/mesh-gradient-wallpaper-red-purple.png",
|
|
1262
|
-
"https://os.prozilla.dev/assets/wallpapers/colorful-mesh-gradient-red-green.png",
|
|
1263
|
-
"https://os.prozilla.dev/assets/wallpapers/flame-abstract-wallpaper-orange.png",
|
|
1264
|
-
"https://os.prozilla.dev/assets/wallpapers/wave-abstract-wallpaper-teal.png",
|
|
1265
|
-
"https://os.prozilla.dev/assets/wallpapers/abstract-wallpaper-gradient-blue-dark.png",
|
|
1266
|
-
"https://os.prozilla.dev/assets/wallpapers/abstract-wallpaper-gradient-red.png"
|
|
1267
|
-
], this.defaultWallpaper = n.defaultWallpaper ?? "https://os.prozilla.dev/assets/wallpapers/vibrant-wallpaper-blue-purple-red.png", this.fileIcons = n.fileIcons ?? {
|
|
1268
|
-
generic: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file.svg",
|
|
1269
|
-
text: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-text.svg",
|
|
1270
|
-
info: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-info.svg",
|
|
1271
|
-
code: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-code.svg",
|
|
1272
|
-
external: "https://os.prozilla.dev/assets/apps/file-explorer/icons/file-external.svg"
|
|
1273
|
-
}, this.folderIcons = n.folderIcons ?? {
|
|
1274
|
-
generic: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder.svg",
|
|
1275
|
-
images: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder-images.svg",
|
|
1276
|
-
text: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder-text.svg",
|
|
1277
|
-
link: "https://os.prozilla.dev/assets/apps/file-explorer/icons/folder-link.svg"
|
|
1278
|
-
}, this.loadStyleSheet = n.loadStyleSheet, this.defaultTheme = n.defaultTheme;
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
new Re({
|
|
1282
|
-
appIcons: {
|
|
1283
|
-
"ball-maze": "/assets/skins/mac/apps/icons/ball-maze.svg",
|
|
1284
|
-
browser: "/assets/skins/mac/apps/icons/browser.svg",
|
|
1285
|
-
calculator: "/assets/skins/mac/apps/icons/calculator.svg",
|
|
1286
|
-
"file-explorer": "/assets/skins/mac/apps/icons/file-explorer.svg",
|
|
1287
|
-
"media-viewer": "/assets/skins/mac/apps/icons/media-viewer.svg",
|
|
1288
|
-
minesweeper: "/assets/skins/mac/apps/icons/minesweeper.svg",
|
|
1289
|
-
settings: "/assets/skins/mac/apps/icons/settings.svg",
|
|
1290
|
-
terminal: "/assets/skins/mac/apps/icons/terminal.svg",
|
|
1291
|
-
"text-editor": "/assets/skins/mac/apps/icons/text-editor.svg",
|
|
1292
|
-
wordle: "/assets/skins/mac/apps/icons/wordle.svg"
|
|
1293
|
-
},
|
|
1294
|
-
appNames: {
|
|
1295
|
-
browser: "Safari",
|
|
1296
|
-
calculator: "Calculator",
|
|
1297
|
-
"file-explorer": "Finder",
|
|
1298
|
-
"media-viewer": "Photos",
|
|
1299
|
-
terminal: "Terminal",
|
|
1300
|
-
"text-editor": "Notes"
|
|
1301
|
-
},
|
|
1302
|
-
wallpapers: [
|
|
1303
|
-
"/assets/skins/mac/wallpapers/macos-monterey.jpg"
|
|
1304
|
-
],
|
|
1305
|
-
defaultWallpaper: "/assets/skins/mac/wallpapers/macos-monterey.jpg",
|
|
1306
|
-
fileIcons: {
|
|
1307
|
-
generic: "/assets/skins/mac/apps/file-explorer/file.svg"
|
|
1308
|
-
},
|
|
1309
|
-
folderIcons: {
|
|
1310
|
-
generic: "/assets/skins/mac/apps/file-explorer/folder.svg"
|
|
1311
|
-
},
|
|
1312
|
-
loadStyleSheet: () => {
|
|
1313
|
-
Promise.resolve({ });
|
|
1314
|
-
}
|
|
1315
|
-
});
|
|
1316
|
-
new Re({
|
|
1317
|
-
appIcons: {
|
|
1318
|
-
browser: "/assets/skins/minimal/apps/icons/browser.svg",
|
|
1319
|
-
calculator: "/assets/skins/minimal/apps/icons/calculator.svg",
|
|
1320
|
-
"file-explorer": "/assets/skins/minimal/apps/icons/file-explorer.svg",
|
|
1321
|
-
"media-viewer": "/assets/skins/minimal/apps/icons/media-viewer.svg",
|
|
1322
|
-
settings: "/assets/skins/minimal/apps/icons/settings.svg",
|
|
1323
|
-
terminal: "/assets/skins/minimal/apps/icons/terminal.svg",
|
|
1324
|
-
"text-editor": "/assets/skins/minimal/apps/icons/text-editor.svg",
|
|
1325
|
-
"ball-maze": "/assets/skins/minimal/apps/icons/ball-maze.svg",
|
|
1326
|
-
minesweeper: "/assets/skins/minimal/apps/icons/minesweeper.svg",
|
|
1327
|
-
wordle: "/assets/skins/minimal/apps/icons/wordle.svg",
|
|
1328
|
-
"logic-sim": "/assets/skins/minimal/apps/icons/logic-sim.svg"
|
|
1329
|
-
},
|
|
1330
|
-
defaultWallpaper: "/assets/wallpapers/abstract-wallpaper-mesh-gradient-cyan.png",
|
|
1331
|
-
fileIcons: {
|
|
1332
|
-
generic: "/assets/skins/minimal/apps/file-explorer/file.svg"
|
|
1333
|
-
},
|
|
1334
|
-
folderIcons: {
|
|
1335
|
-
generic: "/assets/skins/minimal/apps/file-explorer/folder.svg"
|
|
1336
|
-
},
|
|
1337
|
-
loadStyleSheet: () => {
|
|
1338
|
-
import(
|
|
1339
|
-
/*'./chunks/minimal-Be8X8qbA.js'*/
|
|
1340
|
-
"./chunks/minimal-l0sNRNKZ.js"
|
|
1341
|
-
);
|
|
1342
|
-
}
|
|
1343
|
-
});
|
|
1344
|
-
new Re({
|
|
1345
|
-
appIcons: {
|
|
1346
|
-
"ball-maze": "/assets/skins/pixel/apps/icons/ball-maze.png",
|
|
1347
|
-
browser: "/assets/skins/pixel/apps/icons/browser.png",
|
|
1348
|
-
calculator: "/assets/skins/pixel/apps/icons/calculator.png",
|
|
1349
|
-
"file-explorer": "/assets/skins/pixel/apps/icons/file-explorer.png",
|
|
1350
|
-
"logic-sim": "/assets/skins/pixel/apps/icons/logic-sim.png",
|
|
1351
|
-
"media-viewer": "/assets/skins/pixel/apps/icons/media-viewer.png",
|
|
1352
|
-
minesweeper: "/assets/skins/pixel/apps/icons/minesweeper.png",
|
|
1353
|
-
settings: "/assets/skins/pixel/apps/icons/settings.png",
|
|
1354
|
-
terminal: "/assets/skins/pixel/apps/icons/terminal.png",
|
|
1355
|
-
"text-editor": "/assets/skins/pixel/apps/icons/text-editor.png",
|
|
1356
|
-
wordle: "/assets/skins/pixel/apps/icons/wordle.png"
|
|
1357
|
-
},
|
|
1358
|
-
wallpapers: [
|
|
1359
|
-
"/assets/skins/pixel/wallpapers/vibrant-wallpaper-blue-purple-red.png",
|
|
1360
|
-
"/assets/skins/pixel/wallpapers/abstract-mesh-gradient-orange-red-purple.png",
|
|
1361
|
-
"/assets/skins/pixel/wallpapers/vibrant-wallpaper-purple-yellow.png",
|
|
1362
|
-
"/assets/skins/pixel/wallpapers/abstract-wallpaper-mesh-gradient-cyan.png",
|
|
1363
|
-
"/assets/skins/pixel/wallpapers/colorful-abstract-wallpaper-blue-red-green.png",
|
|
1364
|
-
"/assets/skins/pixel/wallpapers/mesh-gradient-wallpaper-red-purple.png",
|
|
1365
|
-
"/assets/skins/pixel/wallpapers/colorful-mesh-gradient-red-green.png",
|
|
1366
|
-
"/assets/skins/pixel/wallpapers/flame-abstract-wallpaper-orange.png",
|
|
1367
|
-
"/assets/skins/pixel/wallpapers/wave-abstract-wallpaper-teal.png"
|
|
1368
|
-
],
|
|
1369
|
-
defaultWallpaper: "/assets/skins/pixel/wallpapers/vibrant-wallpaper-blue-purple-red.png",
|
|
1370
|
-
fileIcons: {
|
|
1371
|
-
generic: "/assets/skins/pixel/apps/file-explorer/file.png"
|
|
1372
|
-
},
|
|
1373
|
-
folderIcons: {
|
|
1374
|
-
generic: "/assets/skins/pixel/apps/file-explorer/folder.png"
|
|
1375
|
-
},
|
|
1376
|
-
loadStyleSheet: () => {
|
|
1377
|
-
Promise.resolve({ });
|
|
1378
|
-
}
|
|
1379
|
-
});
|
|
1380
|
-
var Pe = /* @__PURE__ */ ((e) => (e[e.Dark = 0] = "Dark", e[e.Light = 1] = "Light", e[e.Cherry = 2] = "Cherry", e[e.Mango = 3] = "Mango", e[e.Aqua = 4] = "Aqua", e[e.Grape = 5] = "Grape", e))(Pe || {});
|
|
1381
|
-
new Re({
|
|
1382
|
-
systemIcon: "/assets/skins/windows95/system-icon.png",
|
|
1383
|
-
appIcons: {
|
|
1384
|
-
browser: "/assets/skins/windows95/apps/icons/browser.svg",
|
|
1385
|
-
calculator: "/assets/skins/windows95/apps/icons/calculator.svg",
|
|
1386
|
-
"file-explorer": "/assets/skins/windows95/apps/icons/file-explorer.svg",
|
|
1387
|
-
"media-viewer": "/assets/skins/windows95/apps/icons/media-viewer.svg",
|
|
1388
|
-
minesweeper: "/assets/skins/windows95/apps/icons/minesweeper.svg",
|
|
1389
|
-
settings: "/assets/skins/windows95/apps/icons/settings.svg",
|
|
1390
|
-
terminal: "/assets/skins/windows95/apps/icons/terminal.svg",
|
|
1391
|
-
"text-editor": "/assets/skins/windows95/apps/icons/text-editor.svg"
|
|
1392
|
-
},
|
|
1393
|
-
appNames: {
|
|
1394
|
-
browser: "Internet Explorer",
|
|
1395
|
-
calculator: "Calculator",
|
|
1396
|
-
"file-explorer": "Windows Explorer",
|
|
1397
|
-
"media-viewer": "Imaging",
|
|
1398
|
-
terminal: "MS-DOS Prompt",
|
|
1399
|
-
"text-editor": "Notepad"
|
|
1400
|
-
},
|
|
1401
|
-
wallpapers: [
|
|
1402
|
-
"/assets/skins/windows95/wallpapers/default.png",
|
|
1403
|
-
"/assets/skins/windows95/wallpapers/clouds.png"
|
|
1404
|
-
],
|
|
1405
|
-
defaultWallpaper: "/assets/skins/windows95/wallpapers/default.png",
|
|
1406
|
-
fileIcons: {
|
|
1407
|
-
generic: "/assets/skins/windows95/apps/file-explorer/file.svg"
|
|
1408
|
-
},
|
|
1409
|
-
folderIcons: {
|
|
1410
|
-
generic: "/assets/skins/windows95/apps/file-explorer/folder.svg"
|
|
1411
|
-
},
|
|
1412
|
-
defaultTheme: Pe.Light,
|
|
1413
|
-
loadStyleSheet: () => {
|
|
1414
|
-
Promise.resolve({});
|
|
1415
|
-
}
|
|
1416
|
-
});
|
|
1417
|
-
function xr() {
|
|
1418
|
-
var B, C;
|
|
1419
|
-
const { modalsConfig: e } = ge(), n = Ne(), t = Ke(), [r, l] = ne(Pe.Dark), [a, g] = ne(null), o = t == null ? void 0 : t.getSettings(Ee.VIRTUAL_PATHS.desktop), v = t == null ? void 0 : t.getSettings(Ee.VIRTUAL_PATHS.theme), { openWindowedModal: h } = vt();
|
|
1420
|
-
le(() => {
|
|
1421
|
-
o == null || o.get("wallpaper", g), v == null || v.get("theme", (P) => {
|
|
1422
|
-
l(parseInt(P));
|
|
1249
|
+
var Nt = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Single = 1] = "Single", e[e.Multi = 2] = "Multi", e))(Nt || {});
|
|
1250
|
+
const It = new bt("File Explorer", "file-explorer", yr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/file-explorer.svg").setRole(mt.APP_ROLES.fileExplorer).setCategory("Utilities & tools");
|
|
1251
|
+
It.setMetadata({ name: "@prozilla-os/file-explorer", version: "1.1.10", author: "Prozilla" });
|
|
1252
|
+
const vr = "~/Pictures/Wallpapers";
|
|
1253
|
+
function gr() {
|
|
1254
|
+
var k, P;
|
|
1255
|
+
const { modalsConfig: e } = me(), n = Pe(), t = Ye(), [r, l] = te(tt.Dark), [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 } = ht();
|
|
1256
|
+
se(() => {
|
|
1257
|
+
i == null || i.get("wallpaper", h), v == null || v.get("theme", (N) => {
|
|
1258
|
+
l(parseInt(N));
|
|
1423
1259
|
});
|
|
1424
|
-
}, [
|
|
1425
|
-
const d = (
|
|
1426
|
-
const
|
|
1427
|
-
|
|
1428
|
-
},
|
|
1429
|
-
const
|
|
1430
|
-
v == null || v.set("theme",
|
|
1260
|
+
}, [i, v]);
|
|
1261
|
+
const d = (N) => {
|
|
1262
|
+
const x = N.target.value;
|
|
1263
|
+
i == null || i.set("wallpaper", x);
|
|
1264
|
+
}, C = (N) => {
|
|
1265
|
+
const x = N.target.value;
|
|
1266
|
+
v == null || v.set("theme", x);
|
|
1431
1267
|
};
|
|
1432
|
-
return /* @__PURE__ */
|
|
1433
|
-
/* @__PURE__ */
|
|
1434
|
-
/* @__PURE__ */
|
|
1435
|
-
/* @__PURE__ */
|
|
1436
|
-
([
|
|
1268
|
+
return /* @__PURE__ */ E(yt, { children: [
|
|
1269
|
+
/* @__PURE__ */ E("div", { className: S.Option, children: [
|
|
1270
|
+
/* @__PURE__ */ s("p", { className: S.Label, children: "Theme" }),
|
|
1271
|
+
/* @__PURE__ */ s("div", { className: S.Input, children: /* @__PURE__ */ s("select", { className: S.Dropdown, "aria-label": "theme", value: r, onChange: C, children: Object.entries(tt).map(
|
|
1272
|
+
([N, x]) => /* @__PURE__ */ s("option", { value: N, children: x }, N)
|
|
1437
1273
|
) }) })
|
|
1438
1274
|
] }),
|
|
1439
|
-
/* @__PURE__ */
|
|
1440
|
-
/* @__PURE__ */
|
|
1441
|
-
/* @__PURE__ */
|
|
1275
|
+
/* @__PURE__ */ E("div", { className: S.Option, children: [
|
|
1276
|
+
/* @__PURE__ */ s("p", { className: S.Label, children: "Wallpaper" }),
|
|
1277
|
+
/* @__PURE__ */ s(
|
|
1442
1278
|
Se,
|
|
1443
1279
|
{
|
|
1444
|
-
className: `${
|
|
1280
|
+
className: `${S.Button} ${K.TextBold}`,
|
|
1445
1281
|
onClick: () => {
|
|
1446
|
-
|
|
1282
|
+
y({
|
|
1447
1283
|
size: e.defaultFileSelectorSize,
|
|
1448
|
-
Modal: (
|
|
1449
|
-
|
|
1284
|
+
Modal: (N) => /* @__PURE__ */ s(
|
|
1285
|
+
It.WindowContent,
|
|
1450
1286
|
{
|
|
1451
|
-
type:
|
|
1452
|
-
allowedFormats:
|
|
1453
|
-
onFinish: (
|
|
1454
|
-
|
|
1287
|
+
type: Nt.Single,
|
|
1288
|
+
allowedFormats: Dt,
|
|
1289
|
+
onFinish: (x) => {
|
|
1290
|
+
x.source != null && (i == null || i.set("wallpaper", x.source));
|
|
1455
1291
|
},
|
|
1456
|
-
...
|
|
1292
|
+
...N
|
|
1457
1293
|
}
|
|
1458
1294
|
)
|
|
1459
1295
|
});
|
|
@@ -1461,41 +1297,41 @@ function xr() {
|
|
|
1461
1297
|
children: "Browse"
|
|
1462
1298
|
}
|
|
1463
1299
|
),
|
|
1464
|
-
/* @__PURE__ */
|
|
1465
|
-
({ id:
|
|
1466
|
-
/* @__PURE__ */
|
|
1300
|
+
/* @__PURE__ */ s("div", { className: `${S.Input} ${S.ImageSelectContainer}`, children: (P = (k = n == null ? void 0 : n.navigate(vr)) == null ? void 0 : k.getFiles()) == null ? void 0 : P.map(
|
|
1301
|
+
({ id: N, source: x }) => /* @__PURE__ */ E("label", { className: S.ImageSelect, children: [
|
|
1302
|
+
/* @__PURE__ */ s(
|
|
1467
1303
|
"input",
|
|
1468
1304
|
{
|
|
1469
1305
|
type: "radio",
|
|
1470
|
-
value:
|
|
1306
|
+
value: x ?? "",
|
|
1471
1307
|
"aria-label": "Wallpaper image",
|
|
1472
|
-
checked:
|
|
1308
|
+
checked: x === a,
|
|
1473
1309
|
onChange: d,
|
|
1474
1310
|
tabIndex: 0
|
|
1475
1311
|
}
|
|
1476
1312
|
),
|
|
1477
|
-
/* @__PURE__ */
|
|
1478
|
-
] },
|
|
1313
|
+
/* @__PURE__ */ s("img", { src: x ?? "", alt: N, draggable: "false" })
|
|
1314
|
+
] }, N)
|
|
1479
1315
|
) })
|
|
1480
1316
|
] })
|
|
1481
1317
|
] });
|
|
1482
1318
|
}
|
|
1483
|
-
function
|
|
1484
|
-
const { systemName: e } =
|
|
1485
|
-
return /* @__PURE__ */
|
|
1486
|
-
/* @__PURE__ */
|
|
1319
|
+
function _r() {
|
|
1320
|
+
const { systemName: e } = me(), n = We(), t = Pe();
|
|
1321
|
+
return /* @__PURE__ */ E("div", { className: S.Option, children: [
|
|
1322
|
+
/* @__PURE__ */ E("p", { className: S.Label, children: [
|
|
1487
1323
|
"About ",
|
|
1488
1324
|
e
|
|
1489
1325
|
] }),
|
|
1490
|
-
/* @__PURE__ */
|
|
1326
|
+
/* @__PURE__ */ E("p", { className: K.TextLight, children: [
|
|
1491
1327
|
e,
|
|
1492
1328
|
" is a web-based operating system inspired by Ubuntu Linux and Windows made with React.js by Prozilla."
|
|
1493
1329
|
] }),
|
|
1494
|
-
/* @__PURE__ */
|
|
1495
|
-
/* @__PURE__ */
|
|
1330
|
+
/* @__PURE__ */ E("div", { className: S.ButtonGroup, children: [
|
|
1331
|
+
/* @__PURE__ */ s(
|
|
1496
1332
|
Se,
|
|
1497
1333
|
{
|
|
1498
|
-
className: `${
|
|
1334
|
+
className: `${S.Button} ${K.TextBold}`,
|
|
1499
1335
|
onClick: (r) => {
|
|
1500
1336
|
r.preventDefault(), n == null || n.open("text-editor", {
|
|
1501
1337
|
mode: "view",
|
|
@@ -1506,10 +1342,10 @@ function Er() {
|
|
|
1506
1342
|
children: "Open Info.md"
|
|
1507
1343
|
}
|
|
1508
1344
|
),
|
|
1509
|
-
/* @__PURE__ */
|
|
1345
|
+
/* @__PURE__ */ s(
|
|
1510
1346
|
Se,
|
|
1511
1347
|
{
|
|
1512
|
-
className: `${
|
|
1348
|
+
className: `${S.Button} ${K.TextBold}`,
|
|
1513
1349
|
href: "https://github.com/prozilla-os/ProzillaOS",
|
|
1514
1350
|
children: "View source"
|
|
1515
1351
|
}
|
|
@@ -1517,33 +1353,33 @@ function Er() {
|
|
|
1517
1353
|
] })
|
|
1518
1354
|
] });
|
|
1519
1355
|
}
|
|
1520
|
-
function
|
|
1521
|
-
const e =
|
|
1522
|
-
return /* @__PURE__ */
|
|
1523
|
-
/* @__PURE__ */
|
|
1524
|
-
/* @__PURE__ */
|
|
1356
|
+
function Tr() {
|
|
1357
|
+
const e = Pe(), n = ue.MAX_BYTES, t = ue.getByteSize((e == null ? void 0 : e.toString()) ?? ""), r = ue.byteToKilobyte(n), l = ue.byteToKilobyte(t), a = r - l;
|
|
1358
|
+
return /* @__PURE__ */ E(yt, { children: [
|
|
1359
|
+
/* @__PURE__ */ E("div", { className: `${S.Option} ${S.ProgressBarContainer}`, children: [
|
|
1360
|
+
/* @__PURE__ */ E("p", { className: S.Label, children: [
|
|
1525
1361
|
"Virtual Drive (",
|
|
1526
|
-
|
|
1362
|
+
Ae(r, 1),
|
|
1527
1363
|
" KB)"
|
|
1528
1364
|
] }),
|
|
1529
|
-
/* @__PURE__ */
|
|
1530
|
-
/* @__PURE__ */
|
|
1531
|
-
/* @__PURE__ */
|
|
1532
|
-
|
|
1365
|
+
/* @__PURE__ */ s(Mt, { fillPercentage: l / r * 100, className: S.ProgressBar }),
|
|
1366
|
+
/* @__PURE__ */ E("span", { className: S.ProgressBarLabels, children: [
|
|
1367
|
+
/* @__PURE__ */ E("p", { className: K.TextLight, children: [
|
|
1368
|
+
Ae(l, 1),
|
|
1533
1369
|
" KB used"
|
|
1534
1370
|
] }),
|
|
1535
|
-
/* @__PURE__ */
|
|
1536
|
-
|
|
1371
|
+
/* @__PURE__ */ E("p", { className: K.TextLight, children: [
|
|
1372
|
+
Ae(a, 1),
|
|
1537
1373
|
" KB free"
|
|
1538
1374
|
] })
|
|
1539
1375
|
] })
|
|
1540
1376
|
] }),
|
|
1541
|
-
/* @__PURE__ */
|
|
1542
|
-
/* @__PURE__ */
|
|
1543
|
-
/* @__PURE__ */
|
|
1377
|
+
/* @__PURE__ */ E("div", { className: S.Option, children: [
|
|
1378
|
+
/* @__PURE__ */ s("p", { className: S.Label, children: "Manage data" }),
|
|
1379
|
+
/* @__PURE__ */ s(
|
|
1544
1380
|
Se,
|
|
1545
1381
|
{
|
|
1546
|
-
className: `${
|
|
1382
|
+
className: `${S.Button} ${S.ButtonDanger} ${K.TextBold}`,
|
|
1547
1383
|
onClick: () => {
|
|
1548
1384
|
e == null || e.reset();
|
|
1549
1385
|
},
|
|
@@ -1553,80 +1389,80 @@ function Sr() {
|
|
|
1553
1389
|
] })
|
|
1554
1390
|
] });
|
|
1555
1391
|
}
|
|
1556
|
-
function
|
|
1557
|
-
const r = n.includes(e.id), l =
|
|
1558
|
-
Actions: (
|
|
1559
|
-
/* @__PURE__ */
|
|
1560
|
-
/* @__PURE__ */
|
|
1392
|
+
function Er({ app: e, pins: n, setPins: t }) {
|
|
1393
|
+
const r = n.includes(e.id), l = Ye(), a = We(), { onContextMenu: h } = je({
|
|
1394
|
+
Actions: (i) => /* @__PURE__ */ E(Fe, { ...i, children: [
|
|
1395
|
+
/* @__PURE__ */ s(ie, { label: "Launch", icon: e.iconUrl, onTrigger: () => a == null ? void 0 : a.open(e.id) }),
|
|
1396
|
+
/* @__PURE__ */ s(ie, { label: r ? "Unpin from taskbar" : "Pin to taskbar", icon: Xt, onTrigger: () => {
|
|
1561
1397
|
const v = [...n];
|
|
1562
|
-
r ?
|
|
1563
|
-
const
|
|
1564
|
-
|
|
1398
|
+
r ? rn(e.id, n) : v.push(e.id);
|
|
1399
|
+
const y = l == null ? void 0 : l.getSettings(we.VIRTUAL_PATHS.taskbar);
|
|
1400
|
+
y == null || y.set("pins", v.join(","));
|
|
1565
1401
|
} })
|
|
1566
1402
|
] })
|
|
1567
1403
|
});
|
|
1568
|
-
return /* @__PURE__ */
|
|
1569
|
-
/* @__PURE__ */
|
|
1570
|
-
/* @__PURE__ */
|
|
1404
|
+
return /* @__PURE__ */ E("div", { className: `${S.Option} ${S.OptionHorizontal}`, children: [
|
|
1405
|
+
/* @__PURE__ */ E("span", { className: S.Label, children: [
|
|
1406
|
+
/* @__PURE__ */ s(qe, { className: S.Icon, source: e.iconUrl }),
|
|
1571
1407
|
e.name
|
|
1572
1408
|
] }),
|
|
1573
|
-
/* @__PURE__ */
|
|
1409
|
+
/* @__PURE__ */ s("button", { className: S.IconButton, onClick: h, children: /* @__PURE__ */ s(X, { icon: Jt }) })
|
|
1574
1410
|
] });
|
|
1575
1411
|
}
|
|
1576
|
-
function
|
|
1577
|
-
const { appsConfig: e } =
|
|
1578
|
-
return
|
|
1579
|
-
const l = n == null ? void 0 : n.getSettings(
|
|
1412
|
+
function wr() {
|
|
1413
|
+
const { appsConfig: e } = me(), n = Ye(), [t, r] = te([]);
|
|
1414
|
+
return se(() => {
|
|
1415
|
+
const l = n == null ? void 0 : n.getSettings(we.VIRTUAL_PATHS.taskbar);
|
|
1580
1416
|
l == null || l.get("pins", (a) => {
|
|
1581
1417
|
r(a.split(","));
|
|
1582
1418
|
});
|
|
1583
|
-
}, [n]), /* @__PURE__ */
|
|
1584
|
-
/* @__PURE__ */
|
|
1419
|
+
}, [n]), /* @__PURE__ */ E("div", { className: `${S.Option} ${S.OptionList}`, children: [
|
|
1420
|
+
/* @__PURE__ */ s("p", { className: S.Label, children: "Apps" }),
|
|
1585
1421
|
e.apps.sort(
|
|
1586
1422
|
(l, a) => l.name.toLowerCase().localeCompare(a.name.toLowerCase())
|
|
1587
1423
|
).map(
|
|
1588
|
-
(l) => /* @__PURE__ */
|
|
1424
|
+
(l) => /* @__PURE__ */ s(Er, { app: l, pins: t, setPins: r }, l.id)
|
|
1589
1425
|
)
|
|
1590
1426
|
] });
|
|
1591
1427
|
}
|
|
1592
|
-
function
|
|
1593
|
-
return /* @__PURE__ */
|
|
1594
|
-
|
|
1428
|
+
function Sr({ tab: e }) {
|
|
1429
|
+
return /* @__PURE__ */ s("div", { className: S.SettingsContainer, children: /* @__PURE__ */ E(
|
|
1430
|
+
Ke,
|
|
1595
1431
|
{
|
|
1596
1432
|
defaultIndex: e ?? 0,
|
|
1597
|
-
className:
|
|
1598
|
-
selectedTabClassName:
|
|
1599
|
-
selectedTabPanelClassName:
|
|
1433
|
+
className: S.Settings,
|
|
1434
|
+
selectedTabClassName: S.ActiveTab,
|
|
1435
|
+
selectedTabPanelClassName: S.ActivePanel,
|
|
1600
1436
|
children: [
|
|
1601
|
-
/* @__PURE__ */
|
|
1602
|
-
/* @__PURE__ */
|
|
1603
|
-
/* @__PURE__ */
|
|
1604
|
-
/* @__PURE__ */
|
|
1437
|
+
/* @__PURE__ */ E(Ge, { className: S.Tabs, children: [
|
|
1438
|
+
/* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
|
|
1439
|
+
/* @__PURE__ */ s(X, { icon: Zt }),
|
|
1440
|
+
/* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Apps" })
|
|
1605
1441
|
] }),
|
|
1606
|
-
/* @__PURE__ */
|
|
1607
|
-
/* @__PURE__ */
|
|
1608
|
-
/* @__PURE__ */
|
|
1442
|
+
/* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
|
|
1443
|
+
/* @__PURE__ */ s(X, { icon: Qt }),
|
|
1444
|
+
/* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Appearance" })
|
|
1609
1445
|
] }),
|
|
1610
|
-
/* @__PURE__ */
|
|
1611
|
-
/* @__PURE__ */
|
|
1612
|
-
/* @__PURE__ */
|
|
1446
|
+
/* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
|
|
1447
|
+
/* @__PURE__ */ s(X, { icon: en }),
|
|
1448
|
+
/* @__PURE__ */ s("p", { className: K.TextSemibold, children: "Storage" })
|
|
1613
1449
|
] }),
|
|
1614
|
-
/* @__PURE__ */
|
|
1615
|
-
/* @__PURE__ */
|
|
1616
|
-
/* @__PURE__ */
|
|
1450
|
+
/* @__PURE__ */ E(de, { className: S.TabButton, tabIndex: "0", children: [
|
|
1451
|
+
/* @__PURE__ */ s(X, { icon: vt }),
|
|
1452
|
+
/* @__PURE__ */ s("p", { className: K.TextSemibold, children: "About" })
|
|
1617
1453
|
] })
|
|
1618
1454
|
] }),
|
|
1619
|
-
/* @__PURE__ */
|
|
1620
|
-
/* @__PURE__ */
|
|
1621
|
-
/* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */
|
|
1455
|
+
/* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(wr, {}) }),
|
|
1456
|
+
/* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(gr, {}) }),
|
|
1457
|
+
/* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(Tr, {}) }),
|
|
1458
|
+
/* @__PURE__ */ s(fe, { className: S.TabPanel, children: /* @__PURE__ */ s(_r, {}) })
|
|
1623
1459
|
]
|
|
1624
1460
|
}
|
|
1625
1461
|
) });
|
|
1626
1462
|
}
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1463
|
+
const xr = new bt("Settings", "settings", Sr).setIconUrl("https://os.prozilla.dev/assets/apps/icons/settings.svg").setRole(mt.APP_ROLES.settings).setCategory("Personalization");
|
|
1464
|
+
xr.setMetadata({ name: "@prozilla-os/settings", version: "1.1.10", author: "Prozilla" });
|
|
1629
1465
|
export {
|
|
1630
|
-
|
|
1466
|
+
xr as settings
|
|
1631
1467
|
};
|
|
1632
1468
|
//# sourceMappingURL=main.js.map
|