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