@blockbite/ui 2.0.9 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AutocompleteDropdown.d.ts +2 -1
- package/dist/Badge.d.ts +2 -1
- package/dist/BitePreview.d.ts +2 -1
- package/dist/Button.d.ts +2 -1
- package/dist/ButtonToggle.d.ts +1 -0
- package/dist/Chapter.d.ts +2 -1
- package/dist/ChapterDivider.d.ts +2 -1
- package/dist/Checkbox.d.ts +2 -1
- package/dist/DisappearingMessage.d.ts +2 -1
- package/dist/DropdownPicker.d.ts +2 -1
- package/dist/EmptyState.d.ts +2 -1
- package/dist/FloatingPanel.d.ts +2 -1
- package/dist/FocalPointControl.d.ts +1 -0
- package/dist/Icon.d.ts +2 -1
- package/dist/LinkPicker.d.ts +2 -1
- package/dist/MediaPicker.d.ts +2 -1
- package/dist/MetricsControl.d.ts +1 -0
- package/dist/Modal.d.ts +1 -0
- package/dist/NewWindowPortal.d.ts +2 -1
- package/dist/Notice.d.ts +2 -1
- package/dist/PasswordInput.d.ts +2 -1
- package/dist/Popover.d.ts +1 -0
- package/dist/ProjectsNavigation.d.ts +14 -0
- package/dist/RangeSlider.d.ts +1 -0
- package/dist/ResponsiveImage.d.ts +2 -1
- package/dist/ResponsiveVideo.d.ts +2 -1
- package/dist/ScrollList.d.ts +1 -0
- package/dist/SectionList.d.ts +2 -1
- package/dist/SelectControlWrapper.d.ts +2 -1
- package/dist/SingleBlockTypeAppender.d.ts +2 -1
- package/dist/SlideIn.d.ts +2 -1
- package/dist/Spinner.d.ts +2 -1
- package/dist/Tabs.d.ts +7 -6
- package/dist/Tag.d.ts +2 -1
- package/dist/TextControl.d.ts +2 -1
- package/dist/TextControlLabel.d.ts +2 -1
- package/dist/ToggleGroup.d.ts +1 -0
- package/dist/ToggleSwitch.d.ts +2 -1
- package/dist/Wrap.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3577 -49
- package/dist/index.js.map +1 -1
- package/dist/ui.css +1 -66
- package/dist/vite.svg +1 -0
- package/package.json +14 -11
- package/dist/AutocompleteDropdown.js +0 -24
- package/dist/AutocompleteDropdown.js.map +0 -1
- package/dist/Badge.js +0 -6
- package/dist/Badge.js.map +0 -1
- package/dist/BitePreview.js +0 -52
- package/dist/BitePreview.js.map +0 -1
- package/dist/Button.js +0 -9
- package/dist/Button.js.map +0 -1
- package/dist/ButtonToggle.js +0 -44
- package/dist/ButtonToggle.js.map +0 -1
- package/dist/Chapter.js +0 -7
- package/dist/Chapter.js.map +0 -1
- package/dist/ChapterDivider.js +0 -6
- package/dist/ChapterDivider.js.map +0 -1
- package/dist/Checkbox.js +0 -12
- package/dist/Checkbox.js.map +0 -1
- package/dist/DisappearingMessage.js +0 -28
- package/dist/DisappearingMessage.js.map +0 -1
- package/dist/DropdownPicker.js +0 -36
- package/dist/DropdownPicker.js.map +0 -1
- package/dist/EmptyState.js +0 -17
- package/dist/EmptyState.js.map +0 -1
- package/dist/FloatingPanel.js +0 -32
- package/dist/FloatingPanel.js.map +0 -1
- package/dist/FocalPointControl.js +0 -31
- package/dist/FocalPointControl.js.map +0 -1
- package/dist/Icon.js +0 -8
- package/dist/Icon.js.map +0 -1
- package/dist/LinkPicker.js +0 -50
- package/dist/LinkPicker.js.map +0 -1
- package/dist/MediaPicker.js +0 -96
- package/dist/MediaPicker.js.map +0 -1
- package/dist/MetricsControl.js +0 -93
- package/dist/MetricsControl.js.map +0 -1
- package/dist/Modal.js +0 -76
- package/dist/Modal.js.map +0 -1
- package/dist/NewWindowPortal.js +0 -54
- package/dist/NewWindowPortal.js.map +0 -1
- package/dist/Notice.js +0 -10
- package/dist/Notice.js.map +0 -1
- package/dist/PasswordInput.js +0 -23
- package/dist/PasswordInput.js.map +0 -1
- package/dist/Popover.js +0 -23
- package/dist/Popover.js.map +0 -1
- package/dist/RangeSlider.js +0 -38
- package/dist/RangeSlider.js.map +0 -1
- package/dist/ResponsiveImage.js +0 -14
- package/dist/ResponsiveImage.js.map +0 -1
- package/dist/ResponsiveVideo.js +0 -8
- package/dist/ResponsiveVideo.js.map +0 -1
- package/dist/ScrollList.js +0 -9
- package/dist/ScrollList.js.map +0 -1
- package/dist/SectionList.js +0 -61
- package/dist/SectionList.js.map +0 -1
- package/dist/SelectControlWrapper.js +0 -18
- package/dist/SelectControlWrapper.js.map +0 -1
- package/dist/SingleBlockTypeAppender.js +0 -18
- package/dist/SingleBlockTypeAppender.js.map +0 -1
- package/dist/SlideIn.js +0 -17
- package/dist/SlideIn.js.map +0 -1
- package/dist/Spinner.js +0 -17
- package/dist/Spinner.js.map +0 -1
- package/dist/Tabs.js +0 -54
- package/dist/Tabs.js.map +0 -1
- package/dist/Tag.js +0 -6
- package/dist/Tag.js.map +0 -1
- package/dist/TextControl.js +0 -17
- package/dist/TextControl.js.map +0 -1
- package/dist/TextControlLabel.js +0 -8
- package/dist/TextControlLabel.js.map +0 -1
- package/dist/ToggleGroup.js +0 -16
- package/dist/ToggleGroup.js.map +0 -1
- package/dist/ToggleSwitch.js +0 -17
- package/dist/ToggleSwitch.js.map +0 -1
- package/dist/Wrap.js +0 -8
- package/dist/Wrap.js.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,49 +1,3577 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
import { Pencil1 as It, ChevronDown as vn, Cross2 as mn, Tailwind as hn, Percentage as yn, Grid as bn, Desktop as gn, Slider as xn, ColumnSpacing as _n, Plus as Cn, Trash as wn } from "@blockbite/icons";
|
|
2
|
+
import { Button as ve, Dropdown as jn, TextControl as Xr, CheckboxControl as En, DropdownMenu as Rn, FocalPointPicker as kn, PanelRow as Tn, Popover as Sn, RangeControl as On, Modal as Pn, Notice as Nn, __experimentalInputControl as An, __experimentalInputControlSuffixWrapper as In, SelectControl as $n, Spinner as Dn, TabPanel as Fn, __experimentalToggleGroupControl as Ln, __experimentalToggleGroupControlOptionIcon as Mn, __experimentalToggleGroupControlOption as Wn, ToggleControl as Un } from "@wordpress/components";
|
|
3
|
+
import { memo as Zr, useState as L, useEffect as H, useCallback as $t, useRef as Tr, createPortal as Dt, forwardRef as Vn, createContext as Ft, useContext as Qr, Children as jr, isValidElement as Er, useMemo as Bn } from "@wordpress/element";
|
|
4
|
+
import Yn from "@wordpress/api-fetch";
|
|
5
|
+
import { __ as Le } from "@wordpress/i18n";
|
|
6
|
+
import { MediaUploadCheck as Kr, MediaUpload as Rt } from "@wordpress/block-editor";
|
|
7
|
+
import { SVG as zn, Path as qn } from "@wordpress/primitives";
|
|
8
|
+
import { createBlock as Gn } from "@wordpress/blocks";
|
|
9
|
+
function Hn(o) {
|
|
10
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
11
|
+
}
|
|
12
|
+
var Rr = { exports: {} }, tr = {}, kr = { exports: {} }, I = {};
|
|
13
|
+
/**
|
|
14
|
+
* @license React
|
|
15
|
+
* react.production.min.js
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
var kt;
|
|
23
|
+
function Kn() {
|
|
24
|
+
if (kt) return I;
|
|
25
|
+
kt = 1;
|
|
26
|
+
var o = Symbol.for("react.element"), a = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), v = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), p = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), _ = Symbol.iterator;
|
|
27
|
+
function M(s) {
|
|
28
|
+
return s === null || typeof s != "object" ? null : (s = _ && s[_] || s["@@iterator"], typeof s == "function" ? s : null);
|
|
29
|
+
}
|
|
30
|
+
var P = { isMounted: function() {
|
|
31
|
+
return !1;
|
|
32
|
+
}, enqueueForceUpdate: function() {
|
|
33
|
+
}, enqueueReplaceState: function() {
|
|
34
|
+
}, enqueueSetState: function() {
|
|
35
|
+
} }, j = Object.assign, ee = {};
|
|
36
|
+
function U(s, g, O) {
|
|
37
|
+
this.props = s, this.context = g, this.refs = ee, this.updater = O || P;
|
|
38
|
+
}
|
|
39
|
+
U.prototype.isReactComponent = {}, U.prototype.setState = function(s, g) {
|
|
40
|
+
if (typeof s != "object" && typeof s != "function" && s != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
41
|
+
this.updater.enqueueSetState(this, s, g, "setState");
|
|
42
|
+
}, U.prototype.forceUpdate = function(s) {
|
|
43
|
+
this.updater.enqueueForceUpdate(this, s, "forceUpdate");
|
|
44
|
+
};
|
|
45
|
+
function A() {
|
|
46
|
+
}
|
|
47
|
+
A.prototype = U.prototype;
|
|
48
|
+
function q(s, g, O) {
|
|
49
|
+
this.props = s, this.context = g, this.refs = ee, this.updater = O || P;
|
|
50
|
+
}
|
|
51
|
+
var Ce = q.prototype = new A();
|
|
52
|
+
Ce.constructor = q, j(Ce, U.prototype), Ce.isPureReactComponent = !0;
|
|
53
|
+
var me = Array.isArray, ae = Object.prototype.hasOwnProperty, ce = { current: null }, be = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
54
|
+
function _e(s, g, O) {
|
|
55
|
+
var W, $ = {}, K = null, J = null;
|
|
56
|
+
if (g != null) for (W in g.ref !== void 0 && (J = g.ref), g.key !== void 0 && (K = "" + g.key), g) ae.call(g, W) && !be.hasOwnProperty(W) && ($[W] = g[W]);
|
|
57
|
+
var Y = arguments.length - 2;
|
|
58
|
+
if (Y === 1) $.children = O;
|
|
59
|
+
else if (1 < Y) {
|
|
60
|
+
for (var V = Array(Y), se = 0; se < Y; se++) V[se] = arguments[se + 2];
|
|
61
|
+
$.children = V;
|
|
62
|
+
}
|
|
63
|
+
if (s && s.defaultProps) for (W in Y = s.defaultProps, Y) $[W] === void 0 && ($[W] = Y[W]);
|
|
64
|
+
return { $$typeof: o, type: s, key: K, ref: J, props: $, _owner: ce.current };
|
|
65
|
+
}
|
|
66
|
+
function ke(s, g) {
|
|
67
|
+
return { $$typeof: o, type: s.type, key: g, ref: s.ref, props: s.props, _owner: s._owner };
|
|
68
|
+
}
|
|
69
|
+
function Te(s) {
|
|
70
|
+
return typeof s == "object" && s !== null && s.$$typeof === o;
|
|
71
|
+
}
|
|
72
|
+
function Ke(s) {
|
|
73
|
+
var g = { "=": "=0", ":": "=2" };
|
|
74
|
+
return "$" + s.replace(/[=:]/g, function(O) {
|
|
75
|
+
return g[O];
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
var Se = /\/+/g;
|
|
79
|
+
function pe(s, g) {
|
|
80
|
+
return typeof s == "object" && s !== null && s.key != null ? Ke("" + s.key) : g.toString(36);
|
|
81
|
+
}
|
|
82
|
+
function fe(s, g, O, W, $) {
|
|
83
|
+
var K = typeof s;
|
|
84
|
+
(K === "undefined" || K === "boolean") && (s = null);
|
|
85
|
+
var J = !1;
|
|
86
|
+
if (s === null) J = !0;
|
|
87
|
+
else switch (K) {
|
|
88
|
+
case "string":
|
|
89
|
+
case "number":
|
|
90
|
+
J = !0;
|
|
91
|
+
break;
|
|
92
|
+
case "object":
|
|
93
|
+
switch (s.$$typeof) {
|
|
94
|
+
case o:
|
|
95
|
+
case a:
|
|
96
|
+
J = !0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (J) return J = s, $ = $(J), s = W === "" ? "." + pe(J, 0) : W, me($) ? (O = "", s != null && (O = s.replace(Se, "$&/") + "/"), fe($, g, O, "", function(se) {
|
|
100
|
+
return se;
|
|
101
|
+
})) : $ != null && (Te($) && ($ = ke($, O + (!$.key || J && J.key === $.key ? "" : ("" + $.key).replace(Se, "$&/") + "/") + s)), g.push($)), 1;
|
|
102
|
+
if (J = 0, W = W === "" ? "." : W + ":", me(s)) for (var Y = 0; Y < s.length; Y++) {
|
|
103
|
+
K = s[Y];
|
|
104
|
+
var V = W + pe(K, Y);
|
|
105
|
+
J += fe(K, g, O, V, $);
|
|
106
|
+
}
|
|
107
|
+
else if (V = M(s), typeof V == "function") for (s = V.call(s), Y = 0; !(K = s.next()).done; ) K = K.value, V = W + pe(K, Y++), J += fe(K, g, O, V, $);
|
|
108
|
+
else if (K === "object") throw g = String(s), Error("Objects are not valid as a React child (found: " + (g === "[object Object]" ? "object with keys {" + Object.keys(s).join(", ") + "}" : g) + "). If you meant to render a collection of children, use an array instead.");
|
|
109
|
+
return J;
|
|
110
|
+
}
|
|
111
|
+
function ie(s, g, O) {
|
|
112
|
+
if (s == null) return s;
|
|
113
|
+
var W = [], $ = 0;
|
|
114
|
+
return fe(s, W, "", "", function(K) {
|
|
115
|
+
return g.call(O, K, $++);
|
|
116
|
+
}), W;
|
|
117
|
+
}
|
|
118
|
+
function he(s) {
|
|
119
|
+
if (s._status === -1) {
|
|
120
|
+
var g = s._result;
|
|
121
|
+
g = g(), g.then(function(O) {
|
|
122
|
+
(s._status === 0 || s._status === -1) && (s._status = 1, s._result = O);
|
|
123
|
+
}, function(O) {
|
|
124
|
+
(s._status === 0 || s._status === -1) && (s._status = 2, s._result = O);
|
|
125
|
+
}), s._status === -1 && (s._status = 0, s._result = g);
|
|
126
|
+
}
|
|
127
|
+
if (s._status === 1) return s._result.default;
|
|
128
|
+
throw s._result;
|
|
129
|
+
}
|
|
130
|
+
var E = { current: null }, ge = { transition: null }, Oe = { ReactCurrentDispatcher: E, ReactCurrentBatchConfig: ge, ReactCurrentOwner: ce };
|
|
131
|
+
return I.Children = { map: ie, forEach: function(s, g, O) {
|
|
132
|
+
ie(s, function() {
|
|
133
|
+
g.apply(this, arguments);
|
|
134
|
+
}, O);
|
|
135
|
+
}, count: function(s) {
|
|
136
|
+
var g = 0;
|
|
137
|
+
return ie(s, function() {
|
|
138
|
+
g++;
|
|
139
|
+
}), g;
|
|
140
|
+
}, toArray: function(s) {
|
|
141
|
+
return ie(s, function(g) {
|
|
142
|
+
return g;
|
|
143
|
+
}) || [];
|
|
144
|
+
}, only: function(s) {
|
|
145
|
+
if (!Te(s)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
146
|
+
return s;
|
|
147
|
+
} }, I.Component = U, I.Fragment = l, I.Profiler = d, I.PureComponent = q, I.StrictMode = u, I.Suspense = b, I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Oe, I.cloneElement = function(s, g, O) {
|
|
148
|
+
if (s == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + s + ".");
|
|
149
|
+
var W = j({}, s.props), $ = s.key, K = s.ref, J = s._owner;
|
|
150
|
+
if (g != null) {
|
|
151
|
+
if (g.ref !== void 0 && (K = g.ref, J = ce.current), g.key !== void 0 && ($ = "" + g.key), s.type && s.type.defaultProps) var Y = s.type.defaultProps;
|
|
152
|
+
for (V in g) ae.call(g, V) && !be.hasOwnProperty(V) && (W[V] = g[V] === void 0 && Y !== void 0 ? Y[V] : g[V]);
|
|
153
|
+
}
|
|
154
|
+
var V = arguments.length - 2;
|
|
155
|
+
if (V === 1) W.children = O;
|
|
156
|
+
else if (1 < V) {
|
|
157
|
+
Y = Array(V);
|
|
158
|
+
for (var se = 0; se < V; se++) Y[se] = arguments[se + 2];
|
|
159
|
+
W.children = Y;
|
|
160
|
+
}
|
|
161
|
+
return { $$typeof: o, type: s.type, key: $, ref: K, props: W, _owner: J };
|
|
162
|
+
}, I.createContext = function(s) {
|
|
163
|
+
return s = { $$typeof: v, _currentValue: s, _currentValue2: s, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, s.Provider = { $$typeof: f, _context: s }, s.Consumer = s;
|
|
164
|
+
}, I.createElement = _e, I.createFactory = function(s) {
|
|
165
|
+
var g = _e.bind(null, s);
|
|
166
|
+
return g.type = s, g;
|
|
167
|
+
}, I.createRef = function() {
|
|
168
|
+
return { current: null };
|
|
169
|
+
}, I.forwardRef = function(s) {
|
|
170
|
+
return { $$typeof: h, render: s };
|
|
171
|
+
}, I.isValidElement = Te, I.lazy = function(s) {
|
|
172
|
+
return { $$typeof: C, _payload: { _status: -1, _result: s }, _init: he };
|
|
173
|
+
}, I.memo = function(s, g) {
|
|
174
|
+
return { $$typeof: p, type: s, compare: g === void 0 ? null : g };
|
|
175
|
+
}, I.startTransition = function(s) {
|
|
176
|
+
var g = ge.transition;
|
|
177
|
+
ge.transition = {};
|
|
178
|
+
try {
|
|
179
|
+
s();
|
|
180
|
+
} finally {
|
|
181
|
+
ge.transition = g;
|
|
182
|
+
}
|
|
183
|
+
}, I.unstable_act = function() {
|
|
184
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
185
|
+
}, I.useCallback = function(s, g) {
|
|
186
|
+
return E.current.useCallback(s, g);
|
|
187
|
+
}, I.useContext = function(s) {
|
|
188
|
+
return E.current.useContext(s);
|
|
189
|
+
}, I.useDebugValue = function() {
|
|
190
|
+
}, I.useDeferredValue = function(s) {
|
|
191
|
+
return E.current.useDeferredValue(s);
|
|
192
|
+
}, I.useEffect = function(s, g) {
|
|
193
|
+
return E.current.useEffect(s, g);
|
|
194
|
+
}, I.useId = function() {
|
|
195
|
+
return E.current.useId();
|
|
196
|
+
}, I.useImperativeHandle = function(s, g, O) {
|
|
197
|
+
return E.current.useImperativeHandle(s, g, O);
|
|
198
|
+
}, I.useInsertionEffect = function(s, g) {
|
|
199
|
+
return E.current.useInsertionEffect(s, g);
|
|
200
|
+
}, I.useLayoutEffect = function(s, g) {
|
|
201
|
+
return E.current.useLayoutEffect(s, g);
|
|
202
|
+
}, I.useMemo = function(s, g) {
|
|
203
|
+
return E.current.useMemo(s, g);
|
|
204
|
+
}, I.useReducer = function(s, g, O) {
|
|
205
|
+
return E.current.useReducer(s, g, O);
|
|
206
|
+
}, I.useRef = function(s) {
|
|
207
|
+
return E.current.useRef(s);
|
|
208
|
+
}, I.useState = function(s) {
|
|
209
|
+
return E.current.useState(s);
|
|
210
|
+
}, I.useSyncExternalStore = function(s, g, O) {
|
|
211
|
+
return E.current.useSyncExternalStore(s, g, O);
|
|
212
|
+
}, I.useTransition = function() {
|
|
213
|
+
return E.current.useTransition();
|
|
214
|
+
}, I.version = "18.2.0", I;
|
|
215
|
+
}
|
|
216
|
+
var ar = { exports: {} };
|
|
217
|
+
/**
|
|
218
|
+
* @license React
|
|
219
|
+
* react.development.js
|
|
220
|
+
*
|
|
221
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the MIT license found in the
|
|
224
|
+
* LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/
|
|
226
|
+
ar.exports;
|
|
227
|
+
var Tt;
|
|
228
|
+
function Jn() {
|
|
229
|
+
return Tt || (Tt = 1, function(o, a) {
|
|
230
|
+
process.env.NODE_ENV !== "production" && function() {
|
|
231
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
232
|
+
var l = "18.2.0", u = Symbol.for("react.element"), d = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), p = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), ee = Symbol.for("react.offscreen"), U = Symbol.iterator, A = "@@iterator";
|
|
233
|
+
function q(e) {
|
|
234
|
+
if (e === null || typeof e != "object")
|
|
235
|
+
return null;
|
|
236
|
+
var r = U && e[U] || e[A];
|
|
237
|
+
return typeof r == "function" ? r : null;
|
|
238
|
+
}
|
|
239
|
+
var Ce = {
|
|
240
|
+
/**
|
|
241
|
+
* @internal
|
|
242
|
+
* @type {ReactComponent}
|
|
243
|
+
*/
|
|
244
|
+
current: null
|
|
245
|
+
}, me = {
|
|
246
|
+
transition: null
|
|
247
|
+
}, ae = {
|
|
248
|
+
current: null,
|
|
249
|
+
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
250
|
+
isBatchingLegacy: !1,
|
|
251
|
+
didScheduleLegacyUpdate: !1
|
|
252
|
+
}, ce = {
|
|
253
|
+
/**
|
|
254
|
+
* @internal
|
|
255
|
+
* @type {ReactComponent}
|
|
256
|
+
*/
|
|
257
|
+
current: null
|
|
258
|
+
}, be = {}, _e = null;
|
|
259
|
+
function ke(e) {
|
|
260
|
+
_e = e;
|
|
261
|
+
}
|
|
262
|
+
be.setExtraStackFrame = function(e) {
|
|
263
|
+
_e = e;
|
|
264
|
+
}, be.getCurrentStack = null, be.getStackAddendum = function() {
|
|
265
|
+
var e = "";
|
|
266
|
+
_e && (e += _e);
|
|
267
|
+
var r = be.getCurrentStack;
|
|
268
|
+
return r && (e += r() || ""), e;
|
|
269
|
+
};
|
|
270
|
+
var Te = !1, Ke = !1, Se = !1, pe = !1, fe = !1, ie = {
|
|
271
|
+
ReactCurrentDispatcher: Ce,
|
|
272
|
+
ReactCurrentBatchConfig: me,
|
|
273
|
+
ReactCurrentOwner: ce
|
|
274
|
+
};
|
|
275
|
+
ie.ReactDebugCurrentFrame = be, ie.ReactCurrentActQueue = ae;
|
|
276
|
+
function he(e) {
|
|
277
|
+
{
|
|
278
|
+
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
|
|
279
|
+
i[c - 1] = arguments[c];
|
|
280
|
+
ge("warn", e, i);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
function E(e) {
|
|
284
|
+
{
|
|
285
|
+
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
|
|
286
|
+
i[c - 1] = arguments[c];
|
|
287
|
+
ge("error", e, i);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
function ge(e, r, i) {
|
|
291
|
+
{
|
|
292
|
+
var c = ie.ReactDebugCurrentFrame, y = c.getStackAddendum();
|
|
293
|
+
y !== "" && (r += "%s", i = i.concat([y]));
|
|
294
|
+
var R = i.map(function(w) {
|
|
295
|
+
return String(w);
|
|
296
|
+
});
|
|
297
|
+
R.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, R);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
var Oe = {};
|
|
301
|
+
function s(e, r) {
|
|
302
|
+
{
|
|
303
|
+
var i = e.constructor, c = i && (i.displayName || i.name) || "ReactClass", y = c + "." + r;
|
|
304
|
+
if (Oe[y])
|
|
305
|
+
return;
|
|
306
|
+
E("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", r, c), Oe[y] = !0;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
var g = {
|
|
310
|
+
/**
|
|
311
|
+
* Checks whether or not this composite component is mounted.
|
|
312
|
+
* @param {ReactClass} publicInstance The instance we want to test.
|
|
313
|
+
* @return {boolean} True if mounted, false otherwise.
|
|
314
|
+
* @protected
|
|
315
|
+
* @final
|
|
316
|
+
*/
|
|
317
|
+
isMounted: function(e) {
|
|
318
|
+
return !1;
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
* Forces an update. This should only be invoked when it is known with
|
|
322
|
+
* certainty that we are **not** in a DOM transaction.
|
|
323
|
+
*
|
|
324
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
325
|
+
* component's state has changed but `setState` was not called.
|
|
326
|
+
*
|
|
327
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
328
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
329
|
+
*
|
|
330
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
331
|
+
* @param {?function} callback Called after component is updated.
|
|
332
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
333
|
+
* @internal
|
|
334
|
+
*/
|
|
335
|
+
enqueueForceUpdate: function(e, r, i) {
|
|
336
|
+
s(e, "forceUpdate");
|
|
337
|
+
},
|
|
338
|
+
/**
|
|
339
|
+
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
340
|
+
* You should treat `this.state` as immutable.
|
|
341
|
+
*
|
|
342
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
343
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
344
|
+
*
|
|
345
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
346
|
+
* @param {object} completeState Next state.
|
|
347
|
+
* @param {?function} callback Called after component is updated.
|
|
348
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
349
|
+
* @internal
|
|
350
|
+
*/
|
|
351
|
+
enqueueReplaceState: function(e, r, i, c) {
|
|
352
|
+
s(e, "replaceState");
|
|
353
|
+
},
|
|
354
|
+
/**
|
|
355
|
+
* Sets a subset of the state. This only exists because _pendingState is
|
|
356
|
+
* internal. This provides a merging strategy that is not available to deep
|
|
357
|
+
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
358
|
+
* during the merge.
|
|
359
|
+
*
|
|
360
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
361
|
+
* @param {object} partialState Next partial state to be merged with state.
|
|
362
|
+
* @param {?function} callback Called after component is updated.
|
|
363
|
+
* @param {?string} Name of the calling function in the public API.
|
|
364
|
+
* @internal
|
|
365
|
+
*/
|
|
366
|
+
enqueueSetState: function(e, r, i, c) {
|
|
367
|
+
s(e, "setState");
|
|
368
|
+
}
|
|
369
|
+
}, O = Object.assign, W = {};
|
|
370
|
+
Object.freeze(W);
|
|
371
|
+
function $(e, r, i) {
|
|
372
|
+
this.props = e, this.context = r, this.refs = W, this.updater = i || g;
|
|
373
|
+
}
|
|
374
|
+
$.prototype.isReactComponent = {}, $.prototype.setState = function(e, r) {
|
|
375
|
+
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
376
|
+
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
377
|
+
this.updater.enqueueSetState(this, e, r, "setState");
|
|
378
|
+
}, $.prototype.forceUpdate = function(e) {
|
|
379
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
380
|
+
};
|
|
381
|
+
{
|
|
382
|
+
var K = {
|
|
383
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
384
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
385
|
+
}, J = function(e, r) {
|
|
386
|
+
Object.defineProperty($.prototype, e, {
|
|
387
|
+
get: function() {
|
|
388
|
+
he("%s(...) is deprecated in plain JavaScript React classes. %s", r[0], r[1]);
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
};
|
|
392
|
+
for (var Y in K)
|
|
393
|
+
K.hasOwnProperty(Y) && J(Y, K[Y]);
|
|
394
|
+
}
|
|
395
|
+
function V() {
|
|
396
|
+
}
|
|
397
|
+
V.prototype = $.prototype;
|
|
398
|
+
function se(e, r, i) {
|
|
399
|
+
this.props = e, this.context = r, this.refs = W, this.updater = i || g;
|
|
400
|
+
}
|
|
401
|
+
var we = se.prototype = new V();
|
|
402
|
+
we.constructor = se, O(we, $.prototype), we.isPureReactComponent = !0;
|
|
403
|
+
function Sr() {
|
|
404
|
+
var e = {
|
|
405
|
+
current: null
|
|
406
|
+
};
|
|
407
|
+
return Object.seal(e), e;
|
|
408
|
+
}
|
|
409
|
+
var or = Array.isArray;
|
|
410
|
+
function Me(e) {
|
|
411
|
+
return or(e);
|
|
412
|
+
}
|
|
413
|
+
function Or(e) {
|
|
414
|
+
{
|
|
415
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
416
|
+
return i;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
function We(e) {
|
|
420
|
+
try {
|
|
421
|
+
return Pe(e), !1;
|
|
422
|
+
} catch {
|
|
423
|
+
return !0;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
function Pe(e) {
|
|
427
|
+
return "" + e;
|
|
428
|
+
}
|
|
429
|
+
function Ne(e) {
|
|
430
|
+
if (We(e))
|
|
431
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Or(e)), Pe(e);
|
|
432
|
+
}
|
|
433
|
+
function sr(e, r, i) {
|
|
434
|
+
var c = e.displayName;
|
|
435
|
+
if (c)
|
|
436
|
+
return c;
|
|
437
|
+
var y = r.displayName || r.name || "";
|
|
438
|
+
return y !== "" ? i + "(" + y + ")" : i;
|
|
439
|
+
}
|
|
440
|
+
function Ae(e) {
|
|
441
|
+
return e.displayName || "Context";
|
|
442
|
+
}
|
|
443
|
+
function xe(e) {
|
|
444
|
+
if (e == null)
|
|
445
|
+
return null;
|
|
446
|
+
if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
447
|
+
return e.displayName || e.name || null;
|
|
448
|
+
if (typeof e == "string")
|
|
449
|
+
return e;
|
|
450
|
+
switch (e) {
|
|
451
|
+
case f:
|
|
452
|
+
return "Fragment";
|
|
453
|
+
case d:
|
|
454
|
+
return "Portal";
|
|
455
|
+
case h:
|
|
456
|
+
return "Profiler";
|
|
457
|
+
case v:
|
|
458
|
+
return "StrictMode";
|
|
459
|
+
case _:
|
|
460
|
+
return "Suspense";
|
|
461
|
+
case M:
|
|
462
|
+
return "SuspenseList";
|
|
463
|
+
}
|
|
464
|
+
if (typeof e == "object")
|
|
465
|
+
switch (e.$$typeof) {
|
|
466
|
+
case p:
|
|
467
|
+
var r = e;
|
|
468
|
+
return Ae(r) + ".Consumer";
|
|
469
|
+
case b:
|
|
470
|
+
var i = e;
|
|
471
|
+
return Ae(i._context) + ".Provider";
|
|
472
|
+
case C:
|
|
473
|
+
return sr(e, e.render, "ForwardRef");
|
|
474
|
+
case P:
|
|
475
|
+
var c = e.displayName || null;
|
|
476
|
+
return c !== null ? c : xe(e.type) || "Memo";
|
|
477
|
+
case j: {
|
|
478
|
+
var y = e, R = y._payload, w = y._init;
|
|
479
|
+
try {
|
|
480
|
+
return xe(w(R));
|
|
481
|
+
} catch {
|
|
482
|
+
return null;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
return null;
|
|
487
|
+
}
|
|
488
|
+
var Ie = Object.prototype.hasOwnProperty, Ue = {
|
|
489
|
+
key: !0,
|
|
490
|
+
ref: !0,
|
|
491
|
+
__self: !0,
|
|
492
|
+
__source: !0
|
|
493
|
+
}, ir, lr, Ve;
|
|
494
|
+
Ve = {};
|
|
495
|
+
function Je(e) {
|
|
496
|
+
if (Ie.call(e, "ref")) {
|
|
497
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
498
|
+
if (r && r.isReactWarning)
|
|
499
|
+
return !1;
|
|
500
|
+
}
|
|
501
|
+
return e.ref !== void 0;
|
|
502
|
+
}
|
|
503
|
+
function Xe(e) {
|
|
504
|
+
if (Ie.call(e, "key")) {
|
|
505
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
506
|
+
if (r && r.isReactWarning)
|
|
507
|
+
return !1;
|
|
508
|
+
}
|
|
509
|
+
return e.key !== void 0;
|
|
510
|
+
}
|
|
511
|
+
function Pr(e, r) {
|
|
512
|
+
var i = function() {
|
|
513
|
+
ir || (ir = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
514
|
+
};
|
|
515
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
516
|
+
get: i,
|
|
517
|
+
configurable: !0
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
function ur(e, r) {
|
|
521
|
+
var i = function() {
|
|
522
|
+
lr || (lr = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
523
|
+
};
|
|
524
|
+
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
525
|
+
get: i,
|
|
526
|
+
configurable: !0
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
function cr(e) {
|
|
530
|
+
if (typeof e.ref == "string" && ce.current && e.__self && ce.current.stateNode !== e.__self) {
|
|
531
|
+
var r = xe(ce.current.type);
|
|
532
|
+
Ve[r] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', r, e.ref), Ve[r] = !0);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
var Ze = function(e, r, i, c, y, R, w) {
|
|
536
|
+
var S = {
|
|
537
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
538
|
+
$$typeof: u,
|
|
539
|
+
// Built-in properties that belong on the element
|
|
540
|
+
type: e,
|
|
541
|
+
key: r,
|
|
542
|
+
ref: i,
|
|
543
|
+
props: w,
|
|
544
|
+
// Record the component responsible for creating this element.
|
|
545
|
+
_owner: R
|
|
546
|
+
};
|
|
547
|
+
return S._store = {}, Object.defineProperty(S._store, "validated", {
|
|
548
|
+
configurable: !1,
|
|
549
|
+
enumerable: !1,
|
|
550
|
+
writable: !0,
|
|
551
|
+
value: !1
|
|
552
|
+
}), Object.defineProperty(S, "_self", {
|
|
553
|
+
configurable: !1,
|
|
554
|
+
enumerable: !1,
|
|
555
|
+
writable: !1,
|
|
556
|
+
value: c
|
|
557
|
+
}), Object.defineProperty(S, "_source", {
|
|
558
|
+
configurable: !1,
|
|
559
|
+
enumerable: !1,
|
|
560
|
+
writable: !1,
|
|
561
|
+
value: y
|
|
562
|
+
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
563
|
+
};
|
|
564
|
+
function Nr(e, r, i) {
|
|
565
|
+
var c, y = {}, R = null, w = null, S = null, F = null;
|
|
566
|
+
if (r != null) {
|
|
567
|
+
Je(r) && (w = r.ref, cr(r)), Xe(r) && (Ne(r.key), R = "" + r.key), S = r.__self === void 0 ? null : r.__self, F = r.__source === void 0 ? null : r.__source;
|
|
568
|
+
for (c in r)
|
|
569
|
+
Ie.call(r, c) && !Ue.hasOwnProperty(c) && (y[c] = r[c]);
|
|
570
|
+
}
|
|
571
|
+
var G = arguments.length - 2;
|
|
572
|
+
if (G === 1)
|
|
573
|
+
y.children = i;
|
|
574
|
+
else if (G > 1) {
|
|
575
|
+
for (var X = Array(G), Z = 0; Z < G; Z++)
|
|
576
|
+
X[Z] = arguments[Z + 2];
|
|
577
|
+
Object.freeze && Object.freeze(X), y.children = X;
|
|
578
|
+
}
|
|
579
|
+
if (e && e.defaultProps) {
|
|
580
|
+
var te = e.defaultProps;
|
|
581
|
+
for (c in te)
|
|
582
|
+
y[c] === void 0 && (y[c] = te[c]);
|
|
583
|
+
}
|
|
584
|
+
if (R || w) {
|
|
585
|
+
var oe = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
586
|
+
R && Pr(y, oe), w && ur(y, oe);
|
|
587
|
+
}
|
|
588
|
+
return Ze(e, R, w, S, F, ce.current, y);
|
|
589
|
+
}
|
|
590
|
+
function Ar(e, r) {
|
|
591
|
+
var i = Ze(e.type, r, e.ref, e._self, e._source, e._owner, e.props);
|
|
592
|
+
return i;
|
|
593
|
+
}
|
|
594
|
+
function Ir(e, r, i) {
|
|
595
|
+
if (e == null)
|
|
596
|
+
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
597
|
+
var c, y = O({}, e.props), R = e.key, w = e.ref, S = e._self, F = e._source, G = e._owner;
|
|
598
|
+
if (r != null) {
|
|
599
|
+
Je(r) && (w = r.ref, G = ce.current), Xe(r) && (Ne(r.key), R = "" + r.key);
|
|
600
|
+
var X;
|
|
601
|
+
e.type && e.type.defaultProps && (X = e.type.defaultProps);
|
|
602
|
+
for (c in r)
|
|
603
|
+
Ie.call(r, c) && !Ue.hasOwnProperty(c) && (r[c] === void 0 && X !== void 0 ? y[c] = X[c] : y[c] = r[c]);
|
|
604
|
+
}
|
|
605
|
+
var Z = arguments.length - 2;
|
|
606
|
+
if (Z === 1)
|
|
607
|
+
y.children = i;
|
|
608
|
+
else if (Z > 1) {
|
|
609
|
+
for (var te = Array(Z), oe = 0; oe < Z; oe++)
|
|
610
|
+
te[oe] = arguments[oe + 2];
|
|
611
|
+
y.children = te;
|
|
612
|
+
}
|
|
613
|
+
return Ze(e.type, R, w, S, F, G, y);
|
|
614
|
+
}
|
|
615
|
+
function je(e) {
|
|
616
|
+
return typeof e == "object" && e !== null && e.$$typeof === u;
|
|
617
|
+
}
|
|
618
|
+
var fr = ".", $r = ":";
|
|
619
|
+
function Qe(e) {
|
|
620
|
+
var r = /[=:]/g, i = {
|
|
621
|
+
"=": "=0",
|
|
622
|
+
":": "=2"
|
|
623
|
+
}, c = e.replace(r, function(y) {
|
|
624
|
+
return i[y];
|
|
625
|
+
});
|
|
626
|
+
return "$" + c;
|
|
627
|
+
}
|
|
628
|
+
var er = !1, Ee = /\/+/g;
|
|
629
|
+
function Be(e) {
|
|
630
|
+
return e.replace(Ee, "$&/");
|
|
631
|
+
}
|
|
632
|
+
function $e(e, r) {
|
|
633
|
+
return typeof e == "object" && e !== null && e.key != null ? (Ne(e.key), Qe("" + e.key)) : r.toString(36);
|
|
634
|
+
}
|
|
635
|
+
function De(e, r, i, c, y) {
|
|
636
|
+
var R = typeof e;
|
|
637
|
+
(R === "undefined" || R === "boolean") && (e = null);
|
|
638
|
+
var w = !1;
|
|
639
|
+
if (e === null)
|
|
640
|
+
w = !0;
|
|
641
|
+
else
|
|
642
|
+
switch (R) {
|
|
643
|
+
case "string":
|
|
644
|
+
case "number":
|
|
645
|
+
w = !0;
|
|
646
|
+
break;
|
|
647
|
+
case "object":
|
|
648
|
+
switch (e.$$typeof) {
|
|
649
|
+
case u:
|
|
650
|
+
case d:
|
|
651
|
+
w = !0;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
if (w) {
|
|
655
|
+
var S = e, F = y(S), G = c === "" ? fr + $e(S, 0) : c;
|
|
656
|
+
if (Me(F)) {
|
|
657
|
+
var X = "";
|
|
658
|
+
G != null && (X = Be(G) + "/"), De(F, r, X, "", function(pn) {
|
|
659
|
+
return pn;
|
|
660
|
+
});
|
|
661
|
+
} else F != null && (je(F) && (F.key && (!S || S.key !== F.key) && Ne(F.key), F = Ar(
|
|
662
|
+
F,
|
|
663
|
+
// Keep both the (mapped) and old keys if they differ, just as
|
|
664
|
+
// traverseAllChildren used to do for objects as children
|
|
665
|
+
i + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
666
|
+
(F.key && (!S || S.key !== F.key) ? (
|
|
667
|
+
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
668
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
669
|
+
Be("" + F.key) + "/"
|
|
670
|
+
) : "") + G
|
|
671
|
+
)), r.push(F));
|
|
672
|
+
return 1;
|
|
673
|
+
}
|
|
674
|
+
var Z, te, oe = 0, ue = c === "" ? fr : c + $r;
|
|
675
|
+
if (Me(e))
|
|
676
|
+
for (var wr = 0; wr < e.length; wr++)
|
|
677
|
+
Z = e[wr], te = ue + $e(Z, wr), oe += De(Z, r, i, te, y);
|
|
678
|
+
else {
|
|
679
|
+
var Hr = q(e);
|
|
680
|
+
if (typeof Hr == "function") {
|
|
681
|
+
var wt = e;
|
|
682
|
+
Hr === wt.entries && (er || he("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), er = !0);
|
|
683
|
+
for (var fn = Hr.call(wt), jt, dn = 0; !(jt = fn.next()).done; )
|
|
684
|
+
Z = jt.value, te = ue + $e(Z, dn++), oe += De(Z, r, i, te, y);
|
|
685
|
+
} else if (R === "object") {
|
|
686
|
+
var Et = String(e);
|
|
687
|
+
throw new Error("Objects are not valid as a React child (found: " + (Et === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Et) + "). If you meant to render a collection of children, use an array instead.");
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
return oe;
|
|
691
|
+
}
|
|
692
|
+
function Ye(e, r, i) {
|
|
693
|
+
if (e == null)
|
|
694
|
+
return e;
|
|
695
|
+
var c = [], y = 0;
|
|
696
|
+
return De(e, c, "", "", function(R) {
|
|
697
|
+
return r.call(i, R, y++);
|
|
698
|
+
}), c;
|
|
699
|
+
}
|
|
700
|
+
function dr(e) {
|
|
701
|
+
var r = 0;
|
|
702
|
+
return Ye(e, function() {
|
|
703
|
+
r++;
|
|
704
|
+
}), r;
|
|
705
|
+
}
|
|
706
|
+
function Dr(e, r, i) {
|
|
707
|
+
Ye(e, function() {
|
|
708
|
+
r.apply(this, arguments);
|
|
709
|
+
}, i);
|
|
710
|
+
}
|
|
711
|
+
function pr(e) {
|
|
712
|
+
return Ye(e, function(r) {
|
|
713
|
+
return r;
|
|
714
|
+
}) || [];
|
|
715
|
+
}
|
|
716
|
+
function vr(e) {
|
|
717
|
+
if (!je(e))
|
|
718
|
+
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
719
|
+
return e;
|
|
720
|
+
}
|
|
721
|
+
function Fr(e) {
|
|
722
|
+
var r = {
|
|
723
|
+
$$typeof: p,
|
|
724
|
+
// As a workaround to support multiple concurrent renderers, we categorize
|
|
725
|
+
// some renderers as primary and others as secondary. We only expect
|
|
726
|
+
// there to be two concurrent renderers at most: React Native (primary) and
|
|
727
|
+
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
728
|
+
// Secondary renderers store their context values on separate fields.
|
|
729
|
+
_currentValue: e,
|
|
730
|
+
_currentValue2: e,
|
|
731
|
+
// Used to track how many concurrent renderers this context currently
|
|
732
|
+
// supports within in a single renderer. Such as parallel server rendering.
|
|
733
|
+
_threadCount: 0,
|
|
734
|
+
// These are circular
|
|
735
|
+
Provider: null,
|
|
736
|
+
Consumer: null,
|
|
737
|
+
// Add these to use same hidden class in VM as ServerContext
|
|
738
|
+
_defaultValue: null,
|
|
739
|
+
_globalName: null
|
|
740
|
+
};
|
|
741
|
+
r.Provider = {
|
|
742
|
+
$$typeof: b,
|
|
743
|
+
_context: r
|
|
744
|
+
};
|
|
745
|
+
var i = !1, c = !1, y = !1;
|
|
746
|
+
{
|
|
747
|
+
var R = {
|
|
748
|
+
$$typeof: p,
|
|
749
|
+
_context: r
|
|
750
|
+
};
|
|
751
|
+
Object.defineProperties(R, {
|
|
752
|
+
Provider: {
|
|
753
|
+
get: function() {
|
|
754
|
+
return c || (c = !0, E("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), r.Provider;
|
|
755
|
+
},
|
|
756
|
+
set: function(w) {
|
|
757
|
+
r.Provider = w;
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
_currentValue: {
|
|
761
|
+
get: function() {
|
|
762
|
+
return r._currentValue;
|
|
763
|
+
},
|
|
764
|
+
set: function(w) {
|
|
765
|
+
r._currentValue = w;
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
_currentValue2: {
|
|
769
|
+
get: function() {
|
|
770
|
+
return r._currentValue2;
|
|
771
|
+
},
|
|
772
|
+
set: function(w) {
|
|
773
|
+
r._currentValue2 = w;
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
_threadCount: {
|
|
777
|
+
get: function() {
|
|
778
|
+
return r._threadCount;
|
|
779
|
+
},
|
|
780
|
+
set: function(w) {
|
|
781
|
+
r._threadCount = w;
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
Consumer: {
|
|
785
|
+
get: function() {
|
|
786
|
+
return i || (i = !0, E("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), r.Consumer;
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
displayName: {
|
|
790
|
+
get: function() {
|
|
791
|
+
return r.displayName;
|
|
792
|
+
},
|
|
793
|
+
set: function(w) {
|
|
794
|
+
y || (he("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", w), y = !0);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}), r.Consumer = R;
|
|
798
|
+
}
|
|
799
|
+
return r._currentRenderer = null, r._currentRenderer2 = null, r;
|
|
800
|
+
}
|
|
801
|
+
var Fe = -1, ze = 0, mr = 1, Lr = 2;
|
|
802
|
+
function Mr(e) {
|
|
803
|
+
if (e._status === Fe) {
|
|
804
|
+
var r = e._result, i = r();
|
|
805
|
+
if (i.then(function(R) {
|
|
806
|
+
if (e._status === ze || e._status === Fe) {
|
|
807
|
+
var w = e;
|
|
808
|
+
w._status = mr, w._result = R;
|
|
809
|
+
}
|
|
810
|
+
}, function(R) {
|
|
811
|
+
if (e._status === ze || e._status === Fe) {
|
|
812
|
+
var w = e;
|
|
813
|
+
w._status = Lr, w._result = R;
|
|
814
|
+
}
|
|
815
|
+
}), e._status === Fe) {
|
|
816
|
+
var c = e;
|
|
817
|
+
c._status = ze, c._result = i;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
if (e._status === mr) {
|
|
821
|
+
var y = e._result;
|
|
822
|
+
return y === void 0 && E(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
823
|
+
|
|
824
|
+
Your code should look like:
|
|
825
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
826
|
+
|
|
827
|
+
Did you accidentally put curly braces around the import?`, y), "default" in y || E(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
828
|
+
|
|
829
|
+
Your code should look like:
|
|
830
|
+
const MyComponent = lazy(() => import('./MyComponent'))`, y), y.default;
|
|
831
|
+
} else
|
|
832
|
+
throw e._result;
|
|
833
|
+
}
|
|
834
|
+
function Wr(e) {
|
|
835
|
+
var r = {
|
|
836
|
+
// We use these fields to store the result.
|
|
837
|
+
_status: Fe,
|
|
838
|
+
_result: e
|
|
839
|
+
}, i = {
|
|
840
|
+
$$typeof: j,
|
|
841
|
+
_payload: r,
|
|
842
|
+
_init: Mr
|
|
843
|
+
};
|
|
844
|
+
{
|
|
845
|
+
var c, y;
|
|
846
|
+
Object.defineProperties(i, {
|
|
847
|
+
defaultProps: {
|
|
848
|
+
configurable: !0,
|
|
849
|
+
get: function() {
|
|
850
|
+
return c;
|
|
851
|
+
},
|
|
852
|
+
set: function(R) {
|
|
853
|
+
E("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), c = R, Object.defineProperty(i, "defaultProps", {
|
|
854
|
+
enumerable: !0
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
propTypes: {
|
|
859
|
+
configurable: !0,
|
|
860
|
+
get: function() {
|
|
861
|
+
return y;
|
|
862
|
+
},
|
|
863
|
+
set: function(R) {
|
|
864
|
+
E("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), y = R, Object.defineProperty(i, "propTypes", {
|
|
865
|
+
enumerable: !0
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
return i;
|
|
872
|
+
}
|
|
873
|
+
function t(e) {
|
|
874
|
+
e != null && e.$$typeof === P ? E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? E("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && E("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
875
|
+
var r = {
|
|
876
|
+
$$typeof: C,
|
|
877
|
+
render: e
|
|
878
|
+
};
|
|
879
|
+
{
|
|
880
|
+
var i;
|
|
881
|
+
Object.defineProperty(r, "displayName", {
|
|
882
|
+
enumerable: !1,
|
|
883
|
+
configurable: !0,
|
|
884
|
+
get: function() {
|
|
885
|
+
return i;
|
|
886
|
+
},
|
|
887
|
+
set: function(c) {
|
|
888
|
+
i = c, !e.name && !e.displayName && (e.displayName = c);
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
return r;
|
|
893
|
+
}
|
|
894
|
+
var m;
|
|
895
|
+
m = Symbol.for("react.module.reference");
|
|
896
|
+
function x(e) {
|
|
897
|
+
return !!(typeof e == "string" || typeof e == "function" || e === f || e === h || fe || e === v || e === _ || e === M || pe || e === ee || Te || Ke || Se || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === P || e.$$typeof === b || e.$$typeof === p || e.$$typeof === C || // This needs to include all possible module reference object
|
|
898
|
+
// types supported by any Flight configuration anywhere since
|
|
899
|
+
// we don't know which Flight build this will end up being used
|
|
900
|
+
// with.
|
|
901
|
+
e.$$typeof === m || e.getModuleId !== void 0));
|
|
902
|
+
}
|
|
903
|
+
function k(e, r) {
|
|
904
|
+
x(e) || E("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
905
|
+
var i = {
|
|
906
|
+
$$typeof: P,
|
|
907
|
+
type: e,
|
|
908
|
+
compare: r === void 0 ? null : r
|
|
909
|
+
};
|
|
910
|
+
{
|
|
911
|
+
var c;
|
|
912
|
+
Object.defineProperty(i, "displayName", {
|
|
913
|
+
enumerable: !1,
|
|
914
|
+
configurable: !0,
|
|
915
|
+
get: function() {
|
|
916
|
+
return c;
|
|
917
|
+
},
|
|
918
|
+
set: function(y) {
|
|
919
|
+
c = y, !e.name && !e.displayName && (e.displayName = y);
|
|
920
|
+
}
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
return i;
|
|
924
|
+
}
|
|
925
|
+
function T() {
|
|
926
|
+
var e = Ce.current;
|
|
927
|
+
return e === null && E(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
928
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
929
|
+
2. You might be breaking the Rules of Hooks
|
|
930
|
+
3. You might have more than one copy of React in the same app
|
|
931
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
|
|
932
|
+
}
|
|
933
|
+
function B(e) {
|
|
934
|
+
var r = T();
|
|
935
|
+
if (e._context !== void 0) {
|
|
936
|
+
var i = e._context;
|
|
937
|
+
i.Consumer === e ? E("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : i.Provider === e && E("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
938
|
+
}
|
|
939
|
+
return r.useContext(e);
|
|
940
|
+
}
|
|
941
|
+
function D(e) {
|
|
942
|
+
var r = T();
|
|
943
|
+
return r.useState(e);
|
|
944
|
+
}
|
|
945
|
+
function N(e, r, i) {
|
|
946
|
+
var c = T();
|
|
947
|
+
return c.useReducer(e, r, i);
|
|
948
|
+
}
|
|
949
|
+
function le(e) {
|
|
950
|
+
var r = T();
|
|
951
|
+
return r.useRef(e);
|
|
952
|
+
}
|
|
953
|
+
function re(e, r) {
|
|
954
|
+
var i = T();
|
|
955
|
+
return i.useEffect(e, r);
|
|
956
|
+
}
|
|
957
|
+
function ne(e, r) {
|
|
958
|
+
var i = T();
|
|
959
|
+
return i.useInsertionEffect(e, r);
|
|
960
|
+
}
|
|
961
|
+
function de(e, r) {
|
|
962
|
+
var i = T();
|
|
963
|
+
return i.useLayoutEffect(e, r);
|
|
964
|
+
}
|
|
965
|
+
function Re(e, r) {
|
|
966
|
+
var i = T();
|
|
967
|
+
return i.useCallback(e, r);
|
|
968
|
+
}
|
|
969
|
+
function hr(e, r) {
|
|
970
|
+
var i = T();
|
|
971
|
+
return i.useMemo(e, r);
|
|
972
|
+
}
|
|
973
|
+
function ye(e, r, i) {
|
|
974
|
+
var c = T();
|
|
975
|
+
return c.useImperativeHandle(e, r, i);
|
|
976
|
+
}
|
|
977
|
+
function Wt(e, r) {
|
|
978
|
+
{
|
|
979
|
+
var i = T();
|
|
980
|
+
return i.useDebugValue(e, r);
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
function Ut() {
|
|
984
|
+
var e = T();
|
|
985
|
+
return e.useTransition();
|
|
986
|
+
}
|
|
987
|
+
function Vt(e) {
|
|
988
|
+
var r = T();
|
|
989
|
+
return r.useDeferredValue(e);
|
|
990
|
+
}
|
|
991
|
+
function Bt() {
|
|
992
|
+
var e = T();
|
|
993
|
+
return e.useId();
|
|
994
|
+
}
|
|
995
|
+
function Yt(e, r, i) {
|
|
996
|
+
var c = T();
|
|
997
|
+
return c.useSyncExternalStore(e, r, i);
|
|
998
|
+
}
|
|
999
|
+
var rr = 0, nt, at, ot, st, it, lt, ut;
|
|
1000
|
+
function ct() {
|
|
1001
|
+
}
|
|
1002
|
+
ct.__reactDisabledLog = !0;
|
|
1003
|
+
function zt() {
|
|
1004
|
+
{
|
|
1005
|
+
if (rr === 0) {
|
|
1006
|
+
nt = console.log, at = console.info, ot = console.warn, st = console.error, it = console.group, lt = console.groupCollapsed, ut = console.groupEnd;
|
|
1007
|
+
var e = {
|
|
1008
|
+
configurable: !0,
|
|
1009
|
+
enumerable: !0,
|
|
1010
|
+
value: ct,
|
|
1011
|
+
writable: !0
|
|
1012
|
+
};
|
|
1013
|
+
Object.defineProperties(console, {
|
|
1014
|
+
info: e,
|
|
1015
|
+
log: e,
|
|
1016
|
+
warn: e,
|
|
1017
|
+
error: e,
|
|
1018
|
+
group: e,
|
|
1019
|
+
groupCollapsed: e,
|
|
1020
|
+
groupEnd: e
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
rr++;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
function qt() {
|
|
1027
|
+
{
|
|
1028
|
+
if (rr--, rr === 0) {
|
|
1029
|
+
var e = {
|
|
1030
|
+
configurable: !0,
|
|
1031
|
+
enumerable: !0,
|
|
1032
|
+
writable: !0
|
|
1033
|
+
};
|
|
1034
|
+
Object.defineProperties(console, {
|
|
1035
|
+
log: O({}, e, {
|
|
1036
|
+
value: nt
|
|
1037
|
+
}),
|
|
1038
|
+
info: O({}, e, {
|
|
1039
|
+
value: at
|
|
1040
|
+
}),
|
|
1041
|
+
warn: O({}, e, {
|
|
1042
|
+
value: ot
|
|
1043
|
+
}),
|
|
1044
|
+
error: O({}, e, {
|
|
1045
|
+
value: st
|
|
1046
|
+
}),
|
|
1047
|
+
group: O({}, e, {
|
|
1048
|
+
value: it
|
|
1049
|
+
}),
|
|
1050
|
+
groupCollapsed: O({}, e, {
|
|
1051
|
+
value: lt
|
|
1052
|
+
}),
|
|
1053
|
+
groupEnd: O({}, e, {
|
|
1054
|
+
value: ut
|
|
1055
|
+
})
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
rr < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
var Ur = ie.ReactCurrentDispatcher, Vr;
|
|
1062
|
+
function yr(e, r, i) {
|
|
1063
|
+
{
|
|
1064
|
+
if (Vr === void 0)
|
|
1065
|
+
try {
|
|
1066
|
+
throw Error();
|
|
1067
|
+
} catch (y) {
|
|
1068
|
+
var c = y.stack.trim().match(/\n( *(at )?)/);
|
|
1069
|
+
Vr = c && c[1] || "";
|
|
1070
|
+
}
|
|
1071
|
+
return `
|
|
1072
|
+
` + Vr + e;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
var Br = !1, br;
|
|
1076
|
+
{
|
|
1077
|
+
var Gt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1078
|
+
br = new Gt();
|
|
1079
|
+
}
|
|
1080
|
+
function ft(e, r) {
|
|
1081
|
+
if (!e || Br)
|
|
1082
|
+
return "";
|
|
1083
|
+
{
|
|
1084
|
+
var i = br.get(e);
|
|
1085
|
+
if (i !== void 0)
|
|
1086
|
+
return i;
|
|
1087
|
+
}
|
|
1088
|
+
var c;
|
|
1089
|
+
Br = !0;
|
|
1090
|
+
var y = Error.prepareStackTrace;
|
|
1091
|
+
Error.prepareStackTrace = void 0;
|
|
1092
|
+
var R;
|
|
1093
|
+
R = Ur.current, Ur.current = null, zt();
|
|
1094
|
+
try {
|
|
1095
|
+
if (r) {
|
|
1096
|
+
var w = function() {
|
|
1097
|
+
throw Error();
|
|
1098
|
+
};
|
|
1099
|
+
if (Object.defineProperty(w.prototype, "props", {
|
|
1100
|
+
set: function() {
|
|
1101
|
+
throw Error();
|
|
1102
|
+
}
|
|
1103
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1104
|
+
try {
|
|
1105
|
+
Reflect.construct(w, []);
|
|
1106
|
+
} catch (ue) {
|
|
1107
|
+
c = ue;
|
|
1108
|
+
}
|
|
1109
|
+
Reflect.construct(e, [], w);
|
|
1110
|
+
} else {
|
|
1111
|
+
try {
|
|
1112
|
+
w.call();
|
|
1113
|
+
} catch (ue) {
|
|
1114
|
+
c = ue;
|
|
1115
|
+
}
|
|
1116
|
+
e.call(w.prototype);
|
|
1117
|
+
}
|
|
1118
|
+
} else {
|
|
1119
|
+
try {
|
|
1120
|
+
throw Error();
|
|
1121
|
+
} catch (ue) {
|
|
1122
|
+
c = ue;
|
|
1123
|
+
}
|
|
1124
|
+
e();
|
|
1125
|
+
}
|
|
1126
|
+
} catch (ue) {
|
|
1127
|
+
if (ue && c && typeof ue.stack == "string") {
|
|
1128
|
+
for (var S = ue.stack.split(`
|
|
1129
|
+
`), F = c.stack.split(`
|
|
1130
|
+
`), G = S.length - 1, X = F.length - 1; G >= 1 && X >= 0 && S[G] !== F[X]; )
|
|
1131
|
+
X--;
|
|
1132
|
+
for (; G >= 1 && X >= 0; G--, X--)
|
|
1133
|
+
if (S[G] !== F[X]) {
|
|
1134
|
+
if (G !== 1 || X !== 1)
|
|
1135
|
+
do
|
|
1136
|
+
if (G--, X--, X < 0 || S[G] !== F[X]) {
|
|
1137
|
+
var Z = `
|
|
1138
|
+
` + S[G].replace(" at new ", " at ");
|
|
1139
|
+
return e.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", e.displayName)), typeof e == "function" && br.set(e, Z), Z;
|
|
1140
|
+
}
|
|
1141
|
+
while (G >= 1 && X >= 0);
|
|
1142
|
+
break;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
} finally {
|
|
1146
|
+
Br = !1, Ur.current = R, qt(), Error.prepareStackTrace = y;
|
|
1147
|
+
}
|
|
1148
|
+
var te = e ? e.displayName || e.name : "", oe = te ? yr(te) : "";
|
|
1149
|
+
return typeof e == "function" && br.set(e, oe), oe;
|
|
1150
|
+
}
|
|
1151
|
+
function Ht(e, r, i) {
|
|
1152
|
+
return ft(e, !1);
|
|
1153
|
+
}
|
|
1154
|
+
function Kt(e) {
|
|
1155
|
+
var r = e.prototype;
|
|
1156
|
+
return !!(r && r.isReactComponent);
|
|
1157
|
+
}
|
|
1158
|
+
function gr(e, r, i) {
|
|
1159
|
+
if (e == null)
|
|
1160
|
+
return "";
|
|
1161
|
+
if (typeof e == "function")
|
|
1162
|
+
return ft(e, Kt(e));
|
|
1163
|
+
if (typeof e == "string")
|
|
1164
|
+
return yr(e);
|
|
1165
|
+
switch (e) {
|
|
1166
|
+
case _:
|
|
1167
|
+
return yr("Suspense");
|
|
1168
|
+
case M:
|
|
1169
|
+
return yr("SuspenseList");
|
|
1170
|
+
}
|
|
1171
|
+
if (typeof e == "object")
|
|
1172
|
+
switch (e.$$typeof) {
|
|
1173
|
+
case C:
|
|
1174
|
+
return Ht(e.render);
|
|
1175
|
+
case P:
|
|
1176
|
+
return gr(e.type, r, i);
|
|
1177
|
+
case j: {
|
|
1178
|
+
var c = e, y = c._payload, R = c._init;
|
|
1179
|
+
try {
|
|
1180
|
+
return gr(R(y), r, i);
|
|
1181
|
+
} catch {
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
return "";
|
|
1186
|
+
}
|
|
1187
|
+
var dt = {}, pt = ie.ReactDebugCurrentFrame;
|
|
1188
|
+
function xr(e) {
|
|
1189
|
+
if (e) {
|
|
1190
|
+
var r = e._owner, i = gr(e.type, e._source, r ? r.type : null);
|
|
1191
|
+
pt.setExtraStackFrame(i);
|
|
1192
|
+
} else
|
|
1193
|
+
pt.setExtraStackFrame(null);
|
|
1194
|
+
}
|
|
1195
|
+
function Jt(e, r, i, c, y) {
|
|
1196
|
+
{
|
|
1197
|
+
var R = Function.call.bind(Ie);
|
|
1198
|
+
for (var w in e)
|
|
1199
|
+
if (R(e, w)) {
|
|
1200
|
+
var S = void 0;
|
|
1201
|
+
try {
|
|
1202
|
+
if (typeof e[w] != "function") {
|
|
1203
|
+
var F = Error((c || "React class") + ": " + i + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1204
|
+
throw F.name = "Invariant Violation", F;
|
|
1205
|
+
}
|
|
1206
|
+
S = e[w](r, w, c, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1207
|
+
} catch (G) {
|
|
1208
|
+
S = G;
|
|
1209
|
+
}
|
|
1210
|
+
S && !(S instanceof Error) && (xr(y), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", i, w, typeof S), xr(null)), S instanceof Error && !(S.message in dt) && (dt[S.message] = !0, xr(y), E("Failed %s type: %s", i, S.message), xr(null));
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
function qe(e) {
|
|
1215
|
+
if (e) {
|
|
1216
|
+
var r = e._owner, i = gr(e.type, e._source, r ? r.type : null);
|
|
1217
|
+
ke(i);
|
|
1218
|
+
} else
|
|
1219
|
+
ke(null);
|
|
1220
|
+
}
|
|
1221
|
+
var Yr;
|
|
1222
|
+
Yr = !1;
|
|
1223
|
+
function vt() {
|
|
1224
|
+
if (ce.current) {
|
|
1225
|
+
var e = xe(ce.current.type);
|
|
1226
|
+
if (e)
|
|
1227
|
+
return `
|
|
1228
|
+
|
|
1229
|
+
Check the render method of \`` + e + "`.";
|
|
1230
|
+
}
|
|
1231
|
+
return "";
|
|
1232
|
+
}
|
|
1233
|
+
function Xt(e) {
|
|
1234
|
+
if (e !== void 0) {
|
|
1235
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
|
|
1236
|
+
return `
|
|
1237
|
+
|
|
1238
|
+
Check your code at ` + r + ":" + i + ".";
|
|
1239
|
+
}
|
|
1240
|
+
return "";
|
|
1241
|
+
}
|
|
1242
|
+
function Zt(e) {
|
|
1243
|
+
return e != null ? Xt(e.__source) : "";
|
|
1244
|
+
}
|
|
1245
|
+
var mt = {};
|
|
1246
|
+
function Qt(e) {
|
|
1247
|
+
var r = vt();
|
|
1248
|
+
if (!r) {
|
|
1249
|
+
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
1250
|
+
i && (r = `
|
|
1251
|
+
|
|
1252
|
+
Check the top-level render call using <` + i + ">.");
|
|
1253
|
+
}
|
|
1254
|
+
return r;
|
|
1255
|
+
}
|
|
1256
|
+
function ht(e, r) {
|
|
1257
|
+
if (!(!e._store || e._store.validated || e.key != null)) {
|
|
1258
|
+
e._store.validated = !0;
|
|
1259
|
+
var i = Qt(r);
|
|
1260
|
+
if (!mt[i]) {
|
|
1261
|
+
mt[i] = !0;
|
|
1262
|
+
var c = "";
|
|
1263
|
+
e && e._owner && e._owner !== ce.current && (c = " It was passed a child from " + xe(e._owner.type) + "."), qe(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, c), qe(null);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
function yt(e, r) {
|
|
1268
|
+
if (typeof e == "object") {
|
|
1269
|
+
if (Me(e))
|
|
1270
|
+
for (var i = 0; i < e.length; i++) {
|
|
1271
|
+
var c = e[i];
|
|
1272
|
+
je(c) && ht(c, r);
|
|
1273
|
+
}
|
|
1274
|
+
else if (je(e))
|
|
1275
|
+
e._store && (e._store.validated = !0);
|
|
1276
|
+
else if (e) {
|
|
1277
|
+
var y = q(e);
|
|
1278
|
+
if (typeof y == "function" && y !== e.entries)
|
|
1279
|
+
for (var R = y.call(e), w; !(w = R.next()).done; )
|
|
1280
|
+
je(w.value) && ht(w.value, r);
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
function bt(e) {
|
|
1285
|
+
{
|
|
1286
|
+
var r = e.type;
|
|
1287
|
+
if (r == null || typeof r == "string")
|
|
1288
|
+
return;
|
|
1289
|
+
var i;
|
|
1290
|
+
if (typeof r == "function")
|
|
1291
|
+
i = r.propTypes;
|
|
1292
|
+
else if (typeof r == "object" && (r.$$typeof === C || // Note: Memo only checks outer props here.
|
|
1293
|
+
// Inner props are checked in the reconciler.
|
|
1294
|
+
r.$$typeof === P))
|
|
1295
|
+
i = r.propTypes;
|
|
1296
|
+
else
|
|
1297
|
+
return;
|
|
1298
|
+
if (i) {
|
|
1299
|
+
var c = xe(r);
|
|
1300
|
+
Jt(i, e.props, "prop", c, e);
|
|
1301
|
+
} else if (r.PropTypes !== void 0 && !Yr) {
|
|
1302
|
+
Yr = !0;
|
|
1303
|
+
var y = xe(r);
|
|
1304
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
|
|
1305
|
+
}
|
|
1306
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
function en(e) {
|
|
1310
|
+
{
|
|
1311
|
+
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
1312
|
+
var c = r[i];
|
|
1313
|
+
if (c !== "children" && c !== "key") {
|
|
1314
|
+
qe(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), qe(null);
|
|
1315
|
+
break;
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
e.ref !== null && (qe(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), qe(null));
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
function gt(e, r, i) {
|
|
1322
|
+
var c = x(e);
|
|
1323
|
+
if (!c) {
|
|
1324
|
+
var y = "";
|
|
1325
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1326
|
+
var R = Zt(r);
|
|
1327
|
+
R ? y += R : y += vt();
|
|
1328
|
+
var w;
|
|
1329
|
+
e === null ? w = "null" : Me(e) ? w = "array" : e !== void 0 && e.$$typeof === u ? (w = "<" + (xe(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, y);
|
|
1330
|
+
}
|
|
1331
|
+
var S = Nr.apply(this, arguments);
|
|
1332
|
+
if (S == null)
|
|
1333
|
+
return S;
|
|
1334
|
+
if (c)
|
|
1335
|
+
for (var F = 2; F < arguments.length; F++)
|
|
1336
|
+
yt(arguments[F], e);
|
|
1337
|
+
return e === f ? en(S) : bt(S), S;
|
|
1338
|
+
}
|
|
1339
|
+
var xt = !1;
|
|
1340
|
+
function rn(e) {
|
|
1341
|
+
var r = gt.bind(null, e);
|
|
1342
|
+
return r.type = e, xt || (xt = !0, he("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(r, "type", {
|
|
1343
|
+
enumerable: !1,
|
|
1344
|
+
get: function() {
|
|
1345
|
+
return he("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
1346
|
+
value: e
|
|
1347
|
+
}), e;
|
|
1348
|
+
}
|
|
1349
|
+
}), r;
|
|
1350
|
+
}
|
|
1351
|
+
function tn(e, r, i) {
|
|
1352
|
+
for (var c = Ir.apply(this, arguments), y = 2; y < arguments.length; y++)
|
|
1353
|
+
yt(arguments[y], c.type);
|
|
1354
|
+
return bt(c), c;
|
|
1355
|
+
}
|
|
1356
|
+
function nn(e, r) {
|
|
1357
|
+
var i = me.transition;
|
|
1358
|
+
me.transition = {};
|
|
1359
|
+
var c = me.transition;
|
|
1360
|
+
me.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1361
|
+
try {
|
|
1362
|
+
e();
|
|
1363
|
+
} finally {
|
|
1364
|
+
if (me.transition = i, i === null && c._updatedFibers) {
|
|
1365
|
+
var y = c._updatedFibers.size;
|
|
1366
|
+
y > 10 && he("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), c._updatedFibers.clear();
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
var _t = !1, _r = null;
|
|
1371
|
+
function an(e) {
|
|
1372
|
+
if (_r === null)
|
|
1373
|
+
try {
|
|
1374
|
+
var r = ("require" + Math.random()).slice(0, 7), i = o && o[r];
|
|
1375
|
+
_r = i.call(o, "timers").setImmediate;
|
|
1376
|
+
} catch {
|
|
1377
|
+
_r = function(y) {
|
|
1378
|
+
_t === !1 && (_t = !0, typeof MessageChannel > "u" && E("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
1379
|
+
var R = new MessageChannel();
|
|
1380
|
+
R.port1.onmessage = y, R.port2.postMessage(void 0);
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
return _r(e);
|
|
1384
|
+
}
|
|
1385
|
+
var Ge = 0, Ct = !1;
|
|
1386
|
+
function on(e) {
|
|
1387
|
+
{
|
|
1388
|
+
var r = Ge;
|
|
1389
|
+
Ge++, ae.current === null && (ae.current = []);
|
|
1390
|
+
var i = ae.isBatchingLegacy, c;
|
|
1391
|
+
try {
|
|
1392
|
+
if (ae.isBatchingLegacy = !0, c = e(), !i && ae.didScheduleLegacyUpdate) {
|
|
1393
|
+
var y = ae.current;
|
|
1394
|
+
y !== null && (ae.didScheduleLegacyUpdate = !1, Gr(y));
|
|
1395
|
+
}
|
|
1396
|
+
} catch (te) {
|
|
1397
|
+
throw Cr(r), te;
|
|
1398
|
+
} finally {
|
|
1399
|
+
ae.isBatchingLegacy = i;
|
|
1400
|
+
}
|
|
1401
|
+
if (c !== null && typeof c == "object" && typeof c.then == "function") {
|
|
1402
|
+
var R = c, w = !1, S = {
|
|
1403
|
+
then: function(te, oe) {
|
|
1404
|
+
w = !0, R.then(function(ue) {
|
|
1405
|
+
Cr(r), Ge === 0 ? zr(ue, te, oe) : te(ue);
|
|
1406
|
+
}, function(ue) {
|
|
1407
|
+
Cr(r), oe(ue);
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
return !Ct && typeof Promise < "u" && Promise.resolve().then(function() {
|
|
1412
|
+
}).then(function() {
|
|
1413
|
+
w || (Ct = !0, E("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
1414
|
+
}), S;
|
|
1415
|
+
} else {
|
|
1416
|
+
var F = c;
|
|
1417
|
+
if (Cr(r), Ge === 0) {
|
|
1418
|
+
var G = ae.current;
|
|
1419
|
+
G !== null && (Gr(G), ae.current = null);
|
|
1420
|
+
var X = {
|
|
1421
|
+
then: function(te, oe) {
|
|
1422
|
+
ae.current === null ? (ae.current = [], zr(F, te, oe)) : te(F);
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
return X;
|
|
1426
|
+
} else {
|
|
1427
|
+
var Z = {
|
|
1428
|
+
then: function(te, oe) {
|
|
1429
|
+
te(F);
|
|
1430
|
+
}
|
|
1431
|
+
};
|
|
1432
|
+
return Z;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
function Cr(e) {
|
|
1438
|
+
e !== Ge - 1 && E("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Ge = e;
|
|
1439
|
+
}
|
|
1440
|
+
function zr(e, r, i) {
|
|
1441
|
+
{
|
|
1442
|
+
var c = ae.current;
|
|
1443
|
+
if (c !== null)
|
|
1444
|
+
try {
|
|
1445
|
+
Gr(c), an(function() {
|
|
1446
|
+
c.length === 0 ? (ae.current = null, r(e)) : zr(e, r, i);
|
|
1447
|
+
});
|
|
1448
|
+
} catch (y) {
|
|
1449
|
+
i(y);
|
|
1450
|
+
}
|
|
1451
|
+
else
|
|
1452
|
+
r(e);
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
var qr = !1;
|
|
1456
|
+
function Gr(e) {
|
|
1457
|
+
if (!qr) {
|
|
1458
|
+
qr = !0;
|
|
1459
|
+
var r = 0;
|
|
1460
|
+
try {
|
|
1461
|
+
for (; r < e.length; r++) {
|
|
1462
|
+
var i = e[r];
|
|
1463
|
+
do
|
|
1464
|
+
i = i(!0);
|
|
1465
|
+
while (i !== null);
|
|
1466
|
+
}
|
|
1467
|
+
e.length = 0;
|
|
1468
|
+
} catch (c) {
|
|
1469
|
+
throw e = e.slice(r + 1), c;
|
|
1470
|
+
} finally {
|
|
1471
|
+
qr = !1;
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
var sn = gt, ln = tn, un = rn, cn = {
|
|
1476
|
+
map: Ye,
|
|
1477
|
+
forEach: Dr,
|
|
1478
|
+
count: dr,
|
|
1479
|
+
toArray: pr,
|
|
1480
|
+
only: vr
|
|
1481
|
+
};
|
|
1482
|
+
a.Children = cn, a.Component = $, a.Fragment = f, a.Profiler = h, a.PureComponent = se, a.StrictMode = v, a.Suspense = _, a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ie, a.cloneElement = ln, a.createContext = Fr, a.createElement = sn, a.createFactory = un, a.createRef = Sr, a.forwardRef = t, a.isValidElement = je, a.lazy = Wr, a.memo = k, a.startTransition = nn, a.unstable_act = on, a.useCallback = Re, a.useContext = B, a.useDebugValue = Wt, a.useDeferredValue = Vt, a.useEffect = re, a.useId = Bt, a.useImperativeHandle = ye, a.useInsertionEffect = ne, a.useLayoutEffect = de, a.useMemo = hr, a.useReducer = N, a.useRef = le, a.useState = D, a.useSyncExternalStore = Yt, a.useTransition = Ut, a.version = l, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1483
|
+
}();
|
|
1484
|
+
}(ar, ar.exports)), ar.exports;
|
|
1485
|
+
}
|
|
1486
|
+
var St;
|
|
1487
|
+
function et() {
|
|
1488
|
+
return St || (St = 1, process.env.NODE_ENV === "production" ? kr.exports = Kn() : kr.exports = Jn()), kr.exports;
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* @license React
|
|
1492
|
+
* react-jsx-runtime.production.min.js
|
|
1493
|
+
*
|
|
1494
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1495
|
+
*
|
|
1496
|
+
* This source code is licensed under the MIT license found in the
|
|
1497
|
+
* LICENSE file in the root directory of this source tree.
|
|
1498
|
+
*/
|
|
1499
|
+
var Ot;
|
|
1500
|
+
function Xn() {
|
|
1501
|
+
if (Ot) return tr;
|
|
1502
|
+
Ot = 1;
|
|
1503
|
+
var o = et(), a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, d = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1504
|
+
function v(h, b, p) {
|
|
1505
|
+
var C, _ = {}, M = null, P = null;
|
|
1506
|
+
p !== void 0 && (M = "" + p), b.key !== void 0 && (M = "" + b.key), b.ref !== void 0 && (P = b.ref);
|
|
1507
|
+
for (C in b) u.call(b, C) && !f.hasOwnProperty(C) && (_[C] = b[C]);
|
|
1508
|
+
if (h && h.defaultProps) for (C in b = h.defaultProps, b) _[C] === void 0 && (_[C] = b[C]);
|
|
1509
|
+
return { $$typeof: a, type: h, key: M, ref: P, props: _, _owner: d.current };
|
|
1510
|
+
}
|
|
1511
|
+
return tr.Fragment = l, tr.jsx = v, tr.jsxs = v, tr;
|
|
1512
|
+
}
|
|
1513
|
+
var nr = {};
|
|
1514
|
+
/**
|
|
1515
|
+
* @license React
|
|
1516
|
+
* react-jsx-runtime.development.js
|
|
1517
|
+
*
|
|
1518
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1519
|
+
*
|
|
1520
|
+
* This source code is licensed under the MIT license found in the
|
|
1521
|
+
* LICENSE file in the root directory of this source tree.
|
|
1522
|
+
*/
|
|
1523
|
+
var Pt;
|
|
1524
|
+
function Zn() {
|
|
1525
|
+
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1526
|
+
var o = et(), a = Symbol.for("react.element"), l = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), h = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), j = Symbol.iterator, ee = "@@iterator";
|
|
1527
|
+
function U(t) {
|
|
1528
|
+
if (t === null || typeof t != "object")
|
|
1529
|
+
return null;
|
|
1530
|
+
var m = j && t[j] || t[ee];
|
|
1531
|
+
return typeof m == "function" ? m : null;
|
|
1532
|
+
}
|
|
1533
|
+
var A = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1534
|
+
function q(t) {
|
|
1535
|
+
{
|
|
1536
|
+
for (var m = arguments.length, x = new Array(m > 1 ? m - 1 : 0), k = 1; k < m; k++)
|
|
1537
|
+
x[k - 1] = arguments[k];
|
|
1538
|
+
Ce("error", t, x);
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
function Ce(t, m, x) {
|
|
1542
|
+
{
|
|
1543
|
+
var k = A.ReactDebugCurrentFrame, T = k.getStackAddendum();
|
|
1544
|
+
T !== "" && (m += "%s", x = x.concat([T]));
|
|
1545
|
+
var B = x.map(function(D) {
|
|
1546
|
+
return String(D);
|
|
1547
|
+
});
|
|
1548
|
+
B.unshift("Warning: " + m), Function.prototype.apply.call(console[t], console, B);
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
var me = !1, ae = !1, ce = !1, be = !1, _e = !1, ke;
|
|
1552
|
+
ke = Symbol.for("react.module.reference");
|
|
1553
|
+
function Te(t) {
|
|
1554
|
+
return !!(typeof t == "string" || typeof t == "function" || t === u || t === f || _e || t === d || t === p || t === C || be || t === P || me || ae || ce || typeof t == "object" && t !== null && (t.$$typeof === M || t.$$typeof === _ || t.$$typeof === v || t.$$typeof === h || t.$$typeof === b || // This needs to include all possible module reference object
|
|
1555
|
+
// types supported by any Flight configuration anywhere since
|
|
1556
|
+
// we don't know which Flight build this will end up being used
|
|
1557
|
+
// with.
|
|
1558
|
+
t.$$typeof === ke || t.getModuleId !== void 0));
|
|
1559
|
+
}
|
|
1560
|
+
function Ke(t, m, x) {
|
|
1561
|
+
var k = t.displayName;
|
|
1562
|
+
if (k)
|
|
1563
|
+
return k;
|
|
1564
|
+
var T = m.displayName || m.name || "";
|
|
1565
|
+
return T !== "" ? x + "(" + T + ")" : x;
|
|
1566
|
+
}
|
|
1567
|
+
function Se(t) {
|
|
1568
|
+
return t.displayName || "Context";
|
|
1569
|
+
}
|
|
1570
|
+
function pe(t) {
|
|
1571
|
+
if (t == null)
|
|
1572
|
+
return null;
|
|
1573
|
+
if (typeof t.tag == "number" && q("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
1574
|
+
return t.displayName || t.name || null;
|
|
1575
|
+
if (typeof t == "string")
|
|
1576
|
+
return t;
|
|
1577
|
+
switch (t) {
|
|
1578
|
+
case u:
|
|
1579
|
+
return "Fragment";
|
|
1580
|
+
case l:
|
|
1581
|
+
return "Portal";
|
|
1582
|
+
case f:
|
|
1583
|
+
return "Profiler";
|
|
1584
|
+
case d:
|
|
1585
|
+
return "StrictMode";
|
|
1586
|
+
case p:
|
|
1587
|
+
return "Suspense";
|
|
1588
|
+
case C:
|
|
1589
|
+
return "SuspenseList";
|
|
1590
|
+
}
|
|
1591
|
+
if (typeof t == "object")
|
|
1592
|
+
switch (t.$$typeof) {
|
|
1593
|
+
case h:
|
|
1594
|
+
var m = t;
|
|
1595
|
+
return Se(m) + ".Consumer";
|
|
1596
|
+
case v:
|
|
1597
|
+
var x = t;
|
|
1598
|
+
return Se(x._context) + ".Provider";
|
|
1599
|
+
case b:
|
|
1600
|
+
return Ke(t, t.render, "ForwardRef");
|
|
1601
|
+
case _:
|
|
1602
|
+
var k = t.displayName || null;
|
|
1603
|
+
return k !== null ? k : pe(t.type) || "Memo";
|
|
1604
|
+
case M: {
|
|
1605
|
+
var T = t, B = T._payload, D = T._init;
|
|
1606
|
+
try {
|
|
1607
|
+
return pe(D(B));
|
|
1608
|
+
} catch {
|
|
1609
|
+
return null;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
return null;
|
|
1614
|
+
}
|
|
1615
|
+
var fe = Object.assign, ie = 0, he, E, ge, Oe, s, g, O;
|
|
1616
|
+
function W() {
|
|
1617
|
+
}
|
|
1618
|
+
W.__reactDisabledLog = !0;
|
|
1619
|
+
function $() {
|
|
1620
|
+
{
|
|
1621
|
+
if (ie === 0) {
|
|
1622
|
+
he = console.log, E = console.info, ge = console.warn, Oe = console.error, s = console.group, g = console.groupCollapsed, O = console.groupEnd;
|
|
1623
|
+
var t = {
|
|
1624
|
+
configurable: !0,
|
|
1625
|
+
enumerable: !0,
|
|
1626
|
+
value: W,
|
|
1627
|
+
writable: !0
|
|
1628
|
+
};
|
|
1629
|
+
Object.defineProperties(console, {
|
|
1630
|
+
info: t,
|
|
1631
|
+
log: t,
|
|
1632
|
+
warn: t,
|
|
1633
|
+
error: t,
|
|
1634
|
+
group: t,
|
|
1635
|
+
groupCollapsed: t,
|
|
1636
|
+
groupEnd: t
|
|
1637
|
+
});
|
|
1638
|
+
}
|
|
1639
|
+
ie++;
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
function K() {
|
|
1643
|
+
{
|
|
1644
|
+
if (ie--, ie === 0) {
|
|
1645
|
+
var t = {
|
|
1646
|
+
configurable: !0,
|
|
1647
|
+
enumerable: !0,
|
|
1648
|
+
writable: !0
|
|
1649
|
+
};
|
|
1650
|
+
Object.defineProperties(console, {
|
|
1651
|
+
log: fe({}, t, {
|
|
1652
|
+
value: he
|
|
1653
|
+
}),
|
|
1654
|
+
info: fe({}, t, {
|
|
1655
|
+
value: E
|
|
1656
|
+
}),
|
|
1657
|
+
warn: fe({}, t, {
|
|
1658
|
+
value: ge
|
|
1659
|
+
}),
|
|
1660
|
+
error: fe({}, t, {
|
|
1661
|
+
value: Oe
|
|
1662
|
+
}),
|
|
1663
|
+
group: fe({}, t, {
|
|
1664
|
+
value: s
|
|
1665
|
+
}),
|
|
1666
|
+
groupCollapsed: fe({}, t, {
|
|
1667
|
+
value: g
|
|
1668
|
+
}),
|
|
1669
|
+
groupEnd: fe({}, t, {
|
|
1670
|
+
value: O
|
|
1671
|
+
})
|
|
1672
|
+
});
|
|
1673
|
+
}
|
|
1674
|
+
ie < 0 && q("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
var J = A.ReactCurrentDispatcher, Y;
|
|
1678
|
+
function V(t, m, x) {
|
|
1679
|
+
{
|
|
1680
|
+
if (Y === void 0)
|
|
1681
|
+
try {
|
|
1682
|
+
throw Error();
|
|
1683
|
+
} catch (T) {
|
|
1684
|
+
var k = T.stack.trim().match(/\n( *(at )?)/);
|
|
1685
|
+
Y = k && k[1] || "";
|
|
1686
|
+
}
|
|
1687
|
+
return `
|
|
1688
|
+
` + Y + t;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
var se = !1, we;
|
|
1692
|
+
{
|
|
1693
|
+
var Sr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1694
|
+
we = new Sr();
|
|
1695
|
+
}
|
|
1696
|
+
function or(t, m) {
|
|
1697
|
+
if (!t || se)
|
|
1698
|
+
return "";
|
|
1699
|
+
{
|
|
1700
|
+
var x = we.get(t);
|
|
1701
|
+
if (x !== void 0)
|
|
1702
|
+
return x;
|
|
1703
|
+
}
|
|
1704
|
+
var k;
|
|
1705
|
+
se = !0;
|
|
1706
|
+
var T = Error.prepareStackTrace;
|
|
1707
|
+
Error.prepareStackTrace = void 0;
|
|
1708
|
+
var B;
|
|
1709
|
+
B = J.current, J.current = null, $();
|
|
1710
|
+
try {
|
|
1711
|
+
if (m) {
|
|
1712
|
+
var D = function() {
|
|
1713
|
+
throw Error();
|
|
1714
|
+
};
|
|
1715
|
+
if (Object.defineProperty(D.prototype, "props", {
|
|
1716
|
+
set: function() {
|
|
1717
|
+
throw Error();
|
|
1718
|
+
}
|
|
1719
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1720
|
+
try {
|
|
1721
|
+
Reflect.construct(D, []);
|
|
1722
|
+
} catch (ye) {
|
|
1723
|
+
k = ye;
|
|
1724
|
+
}
|
|
1725
|
+
Reflect.construct(t, [], D);
|
|
1726
|
+
} else {
|
|
1727
|
+
try {
|
|
1728
|
+
D.call();
|
|
1729
|
+
} catch (ye) {
|
|
1730
|
+
k = ye;
|
|
1731
|
+
}
|
|
1732
|
+
t.call(D.prototype);
|
|
1733
|
+
}
|
|
1734
|
+
} else {
|
|
1735
|
+
try {
|
|
1736
|
+
throw Error();
|
|
1737
|
+
} catch (ye) {
|
|
1738
|
+
k = ye;
|
|
1739
|
+
}
|
|
1740
|
+
t();
|
|
1741
|
+
}
|
|
1742
|
+
} catch (ye) {
|
|
1743
|
+
if (ye && k && typeof ye.stack == "string") {
|
|
1744
|
+
for (var N = ye.stack.split(`
|
|
1745
|
+
`), le = k.stack.split(`
|
|
1746
|
+
`), re = N.length - 1, ne = le.length - 1; re >= 1 && ne >= 0 && N[re] !== le[ne]; )
|
|
1747
|
+
ne--;
|
|
1748
|
+
for (; re >= 1 && ne >= 0; re--, ne--)
|
|
1749
|
+
if (N[re] !== le[ne]) {
|
|
1750
|
+
if (re !== 1 || ne !== 1)
|
|
1751
|
+
do
|
|
1752
|
+
if (re--, ne--, ne < 0 || N[re] !== le[ne]) {
|
|
1753
|
+
var de = `
|
|
1754
|
+
` + N[re].replace(" at new ", " at ");
|
|
1755
|
+
return t.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", t.displayName)), typeof t == "function" && we.set(t, de), de;
|
|
1756
|
+
}
|
|
1757
|
+
while (re >= 1 && ne >= 0);
|
|
1758
|
+
break;
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
} finally {
|
|
1762
|
+
se = !1, J.current = B, K(), Error.prepareStackTrace = T;
|
|
1763
|
+
}
|
|
1764
|
+
var Re = t ? t.displayName || t.name : "", hr = Re ? V(Re) : "";
|
|
1765
|
+
return typeof t == "function" && we.set(t, hr), hr;
|
|
1766
|
+
}
|
|
1767
|
+
function Me(t, m, x) {
|
|
1768
|
+
return or(t, !1);
|
|
1769
|
+
}
|
|
1770
|
+
function Or(t) {
|
|
1771
|
+
var m = t.prototype;
|
|
1772
|
+
return !!(m && m.isReactComponent);
|
|
1773
|
+
}
|
|
1774
|
+
function We(t, m, x) {
|
|
1775
|
+
if (t == null)
|
|
1776
|
+
return "";
|
|
1777
|
+
if (typeof t == "function")
|
|
1778
|
+
return or(t, Or(t));
|
|
1779
|
+
if (typeof t == "string")
|
|
1780
|
+
return V(t);
|
|
1781
|
+
switch (t) {
|
|
1782
|
+
case p:
|
|
1783
|
+
return V("Suspense");
|
|
1784
|
+
case C:
|
|
1785
|
+
return V("SuspenseList");
|
|
1786
|
+
}
|
|
1787
|
+
if (typeof t == "object")
|
|
1788
|
+
switch (t.$$typeof) {
|
|
1789
|
+
case b:
|
|
1790
|
+
return Me(t.render);
|
|
1791
|
+
case _:
|
|
1792
|
+
return We(t.type, m, x);
|
|
1793
|
+
case M: {
|
|
1794
|
+
var k = t, T = k._payload, B = k._init;
|
|
1795
|
+
try {
|
|
1796
|
+
return We(B(T), m, x);
|
|
1797
|
+
} catch {
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
return "";
|
|
1802
|
+
}
|
|
1803
|
+
var Pe = Object.prototype.hasOwnProperty, Ne = {}, sr = A.ReactDebugCurrentFrame;
|
|
1804
|
+
function Ae(t) {
|
|
1805
|
+
if (t) {
|
|
1806
|
+
var m = t._owner, x = We(t.type, t._source, m ? m.type : null);
|
|
1807
|
+
sr.setExtraStackFrame(x);
|
|
1808
|
+
} else
|
|
1809
|
+
sr.setExtraStackFrame(null);
|
|
1810
|
+
}
|
|
1811
|
+
function xe(t, m, x, k, T) {
|
|
1812
|
+
{
|
|
1813
|
+
var B = Function.call.bind(Pe);
|
|
1814
|
+
for (var D in t)
|
|
1815
|
+
if (B(t, D)) {
|
|
1816
|
+
var N = void 0;
|
|
1817
|
+
try {
|
|
1818
|
+
if (typeof t[D] != "function") {
|
|
1819
|
+
var le = Error((k || "React class") + ": " + x + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1820
|
+
throw le.name = "Invariant Violation", le;
|
|
1821
|
+
}
|
|
1822
|
+
N = t[D](m, D, k, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1823
|
+
} catch (re) {
|
|
1824
|
+
N = re;
|
|
1825
|
+
}
|
|
1826
|
+
N && !(N instanceof Error) && (Ae(T), q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", k || "React class", x, D, typeof N), Ae(null)), N instanceof Error && !(N.message in Ne) && (Ne[N.message] = !0, Ae(T), q("Failed %s type: %s", x, N.message), Ae(null));
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
var Ie = Array.isArray;
|
|
1831
|
+
function Ue(t) {
|
|
1832
|
+
return Ie(t);
|
|
1833
|
+
}
|
|
1834
|
+
function ir(t) {
|
|
1835
|
+
{
|
|
1836
|
+
var m = typeof Symbol == "function" && Symbol.toStringTag, x = m && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
1837
|
+
return x;
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
function lr(t) {
|
|
1841
|
+
try {
|
|
1842
|
+
return Ve(t), !1;
|
|
1843
|
+
} catch {
|
|
1844
|
+
return !0;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
function Ve(t) {
|
|
1848
|
+
return "" + t;
|
|
1849
|
+
}
|
|
1850
|
+
function Je(t) {
|
|
1851
|
+
if (lr(t))
|
|
1852
|
+
return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(t)), Ve(t);
|
|
1853
|
+
}
|
|
1854
|
+
var Xe = A.ReactCurrentOwner, Pr = {
|
|
1855
|
+
key: !0,
|
|
1856
|
+
ref: !0,
|
|
1857
|
+
__self: !0,
|
|
1858
|
+
__source: !0
|
|
1859
|
+
}, ur, cr;
|
|
1860
|
+
function Ze(t) {
|
|
1861
|
+
if (Pe.call(t, "ref")) {
|
|
1862
|
+
var m = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
1863
|
+
if (m && m.isReactWarning)
|
|
1864
|
+
return !1;
|
|
1865
|
+
}
|
|
1866
|
+
return t.ref !== void 0;
|
|
1867
|
+
}
|
|
1868
|
+
function Nr(t) {
|
|
1869
|
+
if (Pe.call(t, "key")) {
|
|
1870
|
+
var m = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
1871
|
+
if (m && m.isReactWarning)
|
|
1872
|
+
return !1;
|
|
1873
|
+
}
|
|
1874
|
+
return t.key !== void 0;
|
|
1875
|
+
}
|
|
1876
|
+
function Ar(t, m) {
|
|
1877
|
+
typeof t.ref == "string" && Xe.current;
|
|
1878
|
+
}
|
|
1879
|
+
function Ir(t, m) {
|
|
1880
|
+
{
|
|
1881
|
+
var x = function() {
|
|
1882
|
+
ur || (ur = !0, q("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
1883
|
+
};
|
|
1884
|
+
x.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
1885
|
+
get: x,
|
|
1886
|
+
configurable: !0
|
|
1887
|
+
});
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
function je(t, m) {
|
|
1891
|
+
{
|
|
1892
|
+
var x = function() {
|
|
1893
|
+
cr || (cr = !0, q("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
1894
|
+
};
|
|
1895
|
+
x.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
1896
|
+
get: x,
|
|
1897
|
+
configurable: !0
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
var fr = function(t, m, x, k, T, B, D) {
|
|
1902
|
+
var N = {
|
|
1903
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
1904
|
+
$$typeof: a,
|
|
1905
|
+
// Built-in properties that belong on the element
|
|
1906
|
+
type: t,
|
|
1907
|
+
key: m,
|
|
1908
|
+
ref: x,
|
|
1909
|
+
props: D,
|
|
1910
|
+
// Record the component responsible for creating this element.
|
|
1911
|
+
_owner: B
|
|
1912
|
+
};
|
|
1913
|
+
return N._store = {}, Object.defineProperty(N._store, "validated", {
|
|
1914
|
+
configurable: !1,
|
|
1915
|
+
enumerable: !1,
|
|
1916
|
+
writable: !0,
|
|
1917
|
+
value: !1
|
|
1918
|
+
}), Object.defineProperty(N, "_self", {
|
|
1919
|
+
configurable: !1,
|
|
1920
|
+
enumerable: !1,
|
|
1921
|
+
writable: !1,
|
|
1922
|
+
value: k
|
|
1923
|
+
}), Object.defineProperty(N, "_source", {
|
|
1924
|
+
configurable: !1,
|
|
1925
|
+
enumerable: !1,
|
|
1926
|
+
writable: !1,
|
|
1927
|
+
value: T
|
|
1928
|
+
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
1929
|
+
};
|
|
1930
|
+
function $r(t, m, x, k, T) {
|
|
1931
|
+
{
|
|
1932
|
+
var B, D = {}, N = null, le = null;
|
|
1933
|
+
x !== void 0 && (Je(x), N = "" + x), Nr(m) && (Je(m.key), N = "" + m.key), Ze(m) && (le = m.ref, Ar(m, T));
|
|
1934
|
+
for (B in m)
|
|
1935
|
+
Pe.call(m, B) && !Pr.hasOwnProperty(B) && (D[B] = m[B]);
|
|
1936
|
+
if (t && t.defaultProps) {
|
|
1937
|
+
var re = t.defaultProps;
|
|
1938
|
+
for (B in re)
|
|
1939
|
+
D[B] === void 0 && (D[B] = re[B]);
|
|
1940
|
+
}
|
|
1941
|
+
if (N || le) {
|
|
1942
|
+
var ne = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
1943
|
+
N && Ir(D, ne), le && je(D, ne);
|
|
1944
|
+
}
|
|
1945
|
+
return fr(t, N, le, T, k, Xe.current, D);
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
var Qe = A.ReactCurrentOwner, er = A.ReactDebugCurrentFrame;
|
|
1949
|
+
function Ee(t) {
|
|
1950
|
+
if (t) {
|
|
1951
|
+
var m = t._owner, x = We(t.type, t._source, m ? m.type : null);
|
|
1952
|
+
er.setExtraStackFrame(x);
|
|
1953
|
+
} else
|
|
1954
|
+
er.setExtraStackFrame(null);
|
|
1955
|
+
}
|
|
1956
|
+
var Be;
|
|
1957
|
+
Be = !1;
|
|
1958
|
+
function $e(t) {
|
|
1959
|
+
return typeof t == "object" && t !== null && t.$$typeof === a;
|
|
1960
|
+
}
|
|
1961
|
+
function De() {
|
|
1962
|
+
{
|
|
1963
|
+
if (Qe.current) {
|
|
1964
|
+
var t = pe(Qe.current.type);
|
|
1965
|
+
if (t)
|
|
1966
|
+
return `
|
|
1967
|
+
|
|
1968
|
+
Check the render method of \`` + t + "`.";
|
|
1969
|
+
}
|
|
1970
|
+
return "";
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
function Ye(t) {
|
|
1974
|
+
return "";
|
|
1975
|
+
}
|
|
1976
|
+
var dr = {};
|
|
1977
|
+
function Dr(t) {
|
|
1978
|
+
{
|
|
1979
|
+
var m = De();
|
|
1980
|
+
if (!m) {
|
|
1981
|
+
var x = typeof t == "string" ? t : t.displayName || t.name;
|
|
1982
|
+
x && (m = `
|
|
1983
|
+
|
|
1984
|
+
Check the top-level render call using <` + x + ">.");
|
|
1985
|
+
}
|
|
1986
|
+
return m;
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
function pr(t, m) {
|
|
1990
|
+
{
|
|
1991
|
+
if (!t._store || t._store.validated || t.key != null)
|
|
1992
|
+
return;
|
|
1993
|
+
t._store.validated = !0;
|
|
1994
|
+
var x = Dr(m);
|
|
1995
|
+
if (dr[x])
|
|
1996
|
+
return;
|
|
1997
|
+
dr[x] = !0;
|
|
1998
|
+
var k = "";
|
|
1999
|
+
t && t._owner && t._owner !== Qe.current && (k = " It was passed a child from " + pe(t._owner.type) + "."), Ee(t), q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, k), Ee(null);
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
function vr(t, m) {
|
|
2003
|
+
{
|
|
2004
|
+
if (typeof t != "object")
|
|
2005
|
+
return;
|
|
2006
|
+
if (Ue(t))
|
|
2007
|
+
for (var x = 0; x < t.length; x++) {
|
|
2008
|
+
var k = t[x];
|
|
2009
|
+
$e(k) && pr(k, m);
|
|
2010
|
+
}
|
|
2011
|
+
else if ($e(t))
|
|
2012
|
+
t._store && (t._store.validated = !0);
|
|
2013
|
+
else if (t) {
|
|
2014
|
+
var T = U(t);
|
|
2015
|
+
if (typeof T == "function" && T !== t.entries)
|
|
2016
|
+
for (var B = T.call(t), D; !(D = B.next()).done; )
|
|
2017
|
+
$e(D.value) && pr(D.value, m);
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
function Fr(t) {
|
|
2022
|
+
{
|
|
2023
|
+
var m = t.type;
|
|
2024
|
+
if (m == null || typeof m == "string")
|
|
2025
|
+
return;
|
|
2026
|
+
var x;
|
|
2027
|
+
if (typeof m == "function")
|
|
2028
|
+
x = m.propTypes;
|
|
2029
|
+
else if (typeof m == "object" && (m.$$typeof === b || // Note: Memo only checks outer props here.
|
|
2030
|
+
// Inner props are checked in the reconciler.
|
|
2031
|
+
m.$$typeof === _))
|
|
2032
|
+
x = m.propTypes;
|
|
2033
|
+
else
|
|
2034
|
+
return;
|
|
2035
|
+
if (x) {
|
|
2036
|
+
var k = pe(m);
|
|
2037
|
+
xe(x, t.props, "prop", k, t);
|
|
2038
|
+
} else if (m.PropTypes !== void 0 && !Be) {
|
|
2039
|
+
Be = !0;
|
|
2040
|
+
var T = pe(m);
|
|
2041
|
+
q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
|
|
2042
|
+
}
|
|
2043
|
+
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
function Fe(t) {
|
|
2047
|
+
{
|
|
2048
|
+
for (var m = Object.keys(t.props), x = 0; x < m.length; x++) {
|
|
2049
|
+
var k = m[x];
|
|
2050
|
+
if (k !== "children" && k !== "key") {
|
|
2051
|
+
Ee(t), q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), Ee(null);
|
|
2052
|
+
break;
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
t.ref !== null && (Ee(t), q("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
function ze(t, m, x, k, T, B) {
|
|
2059
|
+
{
|
|
2060
|
+
var D = Te(t);
|
|
2061
|
+
if (!D) {
|
|
2062
|
+
var N = "";
|
|
2063
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2064
|
+
var le = Ye();
|
|
2065
|
+
le ? N += le : N += De();
|
|
2066
|
+
var re;
|
|
2067
|
+
t === null ? re = "null" : Ue(t) ? re = "array" : t !== void 0 && t.$$typeof === a ? (re = "<" + (pe(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : re = typeof t, q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", re, N);
|
|
2068
|
+
}
|
|
2069
|
+
var ne = $r(t, m, x, T, B);
|
|
2070
|
+
if (ne == null)
|
|
2071
|
+
return ne;
|
|
2072
|
+
if (D) {
|
|
2073
|
+
var de = m.children;
|
|
2074
|
+
if (de !== void 0)
|
|
2075
|
+
if (k)
|
|
2076
|
+
if (Ue(de)) {
|
|
2077
|
+
for (var Re = 0; Re < de.length; Re++)
|
|
2078
|
+
vr(de[Re], t);
|
|
2079
|
+
Object.freeze && Object.freeze(de);
|
|
2080
|
+
} else
|
|
2081
|
+
q("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2082
|
+
else
|
|
2083
|
+
vr(de, t);
|
|
2084
|
+
}
|
|
2085
|
+
return t === u ? Fe(ne) : Fr(ne), ne;
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
function mr(t, m, x) {
|
|
2089
|
+
return ze(t, m, x, !0);
|
|
2090
|
+
}
|
|
2091
|
+
function Lr(t, m, x) {
|
|
2092
|
+
return ze(t, m, x, !1);
|
|
2093
|
+
}
|
|
2094
|
+
var Mr = Lr, Wr = mr;
|
|
2095
|
+
nr.Fragment = u, nr.jsx = Mr, nr.jsxs = Wr;
|
|
2096
|
+
}()), nr;
|
|
2097
|
+
}
|
|
2098
|
+
var Nt;
|
|
2099
|
+
function Qn() {
|
|
2100
|
+
return Nt || (Nt = 1, process.env.NODE_ENV === "production" ? Rr.exports = Xn() : Rr.exports = Zn()), Rr.exports;
|
|
2101
|
+
}
|
|
2102
|
+
var n = Qn();
|
|
2103
|
+
et();
|
|
2104
|
+
var Jr = { exports: {} };
|
|
2105
|
+
/*!
|
|
2106
|
+
Copyright (c) 2018 Jed Watson.
|
|
2107
|
+
Licensed under the MIT License (MIT), see
|
|
2108
|
+
http://jedwatson.github.io/classnames
|
|
2109
|
+
*/
|
|
2110
|
+
var At;
|
|
2111
|
+
function ea() {
|
|
2112
|
+
return At || (At = 1, function(o) {
|
|
2113
|
+
(function() {
|
|
2114
|
+
var a = {}.hasOwnProperty;
|
|
2115
|
+
function l() {
|
|
2116
|
+
for (var f = "", v = 0; v < arguments.length; v++) {
|
|
2117
|
+
var h = arguments[v];
|
|
2118
|
+
h && (f = d(f, u(h)));
|
|
2119
|
+
}
|
|
2120
|
+
return f;
|
|
2121
|
+
}
|
|
2122
|
+
function u(f) {
|
|
2123
|
+
if (typeof f == "string" || typeof f == "number")
|
|
2124
|
+
return f;
|
|
2125
|
+
if (typeof f != "object")
|
|
2126
|
+
return "";
|
|
2127
|
+
if (Array.isArray(f))
|
|
2128
|
+
return l.apply(null, f);
|
|
2129
|
+
if (f.toString !== Object.prototype.toString && !f.toString.toString().includes("[native code]"))
|
|
2130
|
+
return f.toString();
|
|
2131
|
+
var v = "";
|
|
2132
|
+
for (var h in f)
|
|
2133
|
+
a.call(f, h) && f[h] && (v = d(v, h));
|
|
2134
|
+
return v;
|
|
2135
|
+
}
|
|
2136
|
+
function d(f, v) {
|
|
2137
|
+
return v ? f ? f + " " + v : f + v : f;
|
|
2138
|
+
}
|
|
2139
|
+
o.exports ? (l.default = l, o.exports = l) : window.classNames = l;
|
|
2140
|
+
})();
|
|
2141
|
+
}(Jr)), Jr.exports;
|
|
2142
|
+
}
|
|
2143
|
+
var ra = ea();
|
|
2144
|
+
const z = /* @__PURE__ */ Hn(ra), Q = ({
|
|
2145
|
+
children: o,
|
|
2146
|
+
className: a,
|
|
2147
|
+
important: l = !1,
|
|
2148
|
+
onClick: u
|
|
2149
|
+
}) => l ? /* @__PURE__ */ n.jsx("div", { className: "bb_", onClick: u, children: /* @__PURE__ */ n.jsx("div", { className: a, children: o }) }) : /* @__PURE__ */ n.jsx("div", { className: a, children: o }), He = ({ icon: o, className: a = "" }) => o ? /* @__PURE__ */ n.jsxs(Q, { className: "blockbite--icon", children: [
|
|
2150
|
+
/* @__PURE__ */ n.jsx(o, { className: a }),
|
|
2151
|
+
" "
|
|
2152
|
+
] }) : null, ta = Zr(
|
|
2153
|
+
({
|
|
2154
|
+
children: o,
|
|
2155
|
+
className: a,
|
|
2156
|
+
value: l,
|
|
2157
|
+
variant: u = "secondary",
|
|
2158
|
+
defaultPressed: d,
|
|
2159
|
+
onPressedChange: f,
|
|
2160
|
+
icon: v,
|
|
2161
|
+
size: h = "compact",
|
|
2162
|
+
display: b = "auto",
|
|
2163
|
+
label: p
|
|
2164
|
+
}) => {
|
|
2165
|
+
const [C, _] = L(!1);
|
|
2166
|
+
H(() => {
|
|
2167
|
+
_(d === l);
|
|
2168
|
+
}, [d]);
|
|
2169
|
+
const M = $t(() => {
|
|
2170
|
+
_((P) => !P), f(l);
|
|
2171
|
+
}, [C, f]);
|
|
2172
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2173
|
+
ve,
|
|
2174
|
+
{
|
|
2175
|
+
"aria-label": p,
|
|
2176
|
+
className: z(a, "blockbite-ui__button--default"),
|
|
2177
|
+
value: l,
|
|
2178
|
+
size: h,
|
|
2179
|
+
label: p,
|
|
2180
|
+
variant: u,
|
|
2181
|
+
showTooltip: !0,
|
|
2182
|
+
isPressed: C,
|
|
2183
|
+
onClick: M,
|
|
2184
|
+
children: [
|
|
2185
|
+
v && /* @__PURE__ */ n.jsx(He, { icon: v }),
|
|
2186
|
+
b !== "icon" ? o : null,
|
|
2187
|
+
p && !o && b !== "icon" ? /* @__PURE__ */ n.jsx("span", { children: p }) : null
|
|
2188
|
+
]
|
|
2189
|
+
}
|
|
2190
|
+
);
|
|
2191
|
+
}
|
|
2192
|
+
), na = Zr(
|
|
2193
|
+
({
|
|
2194
|
+
className: o,
|
|
2195
|
+
defaultPressed: a = "",
|
|
2196
|
+
toggle: l = !0,
|
|
2197
|
+
display: u = "auto",
|
|
2198
|
+
options: d,
|
|
2199
|
+
size: f = "compact",
|
|
2200
|
+
tabs: v = !1,
|
|
2201
|
+
variant: h = "secondary",
|
|
2202
|
+
stretch: b = !1,
|
|
2203
|
+
onPressedChange: p
|
|
2204
|
+
}) => {
|
|
2205
|
+
const [C, _] = L(a);
|
|
2206
|
+
H(() => {
|
|
2207
|
+
_(a);
|
|
2208
|
+
}, [a]);
|
|
2209
|
+
const M = $t(
|
|
2210
|
+
(j) => {
|
|
2211
|
+
const ee = l && C === j ? "" : j;
|
|
2212
|
+
_(ee), p?.(ee);
|
|
2213
|
+
},
|
|
2214
|
+
[C, p, l]
|
|
2215
|
+
), P = (j) => u === "icon" && j?.icon ? /* @__PURE__ */ n.jsx(He, { icon: j.icon }) : u === "label" ? /* @__PURE__ */ n.jsx("span", { children: j.label }) : /* @__PURE__ */ n.jsxs("span", { className: "flex items-center justify-center gap-1", children: [
|
|
2216
|
+
j.icon && /* @__PURE__ */ n.jsx(He, { icon: j.icon }),
|
|
2217
|
+
/* @__PURE__ */ n.jsx("span", { children: j.label })
|
|
2218
|
+
] });
|
|
2219
|
+
return /* @__PURE__ */ n.jsx(
|
|
2220
|
+
Q,
|
|
2221
|
+
{
|
|
2222
|
+
className: z(
|
|
2223
|
+
"blockbite-ui__button-group flex flex-wrap gap-1",
|
|
2224
|
+
o,
|
|
2225
|
+
v ? "blockbite-ui__button-group--tabs" : ""
|
|
2226
|
+
),
|
|
2227
|
+
children: d.map((j, ee) => /* @__PURE__ */ n.jsxs(
|
|
2228
|
+
ve,
|
|
2229
|
+
{
|
|
2230
|
+
className: z("blockbite-ui__button--default", {
|
|
2231
|
+
grow: b,
|
|
2232
|
+
"justify-center": b
|
|
2233
|
+
}),
|
|
2234
|
+
"aria-label": j.label,
|
|
2235
|
+
showTooltip: !0,
|
|
2236
|
+
value: j.value,
|
|
2237
|
+
size: f,
|
|
2238
|
+
label: j?.tooltip || j.label,
|
|
2239
|
+
variant: h,
|
|
2240
|
+
isPressed: C === j.value,
|
|
2241
|
+
onClick: () => M(j.value),
|
|
2242
|
+
children: [
|
|
2243
|
+
P(j),
|
|
2244
|
+
j.children && j.children
|
|
2245
|
+
]
|
|
2246
|
+
},
|
|
2247
|
+
`ButtonToggleGroup__${j.value}__${j.label}__${ee}`
|
|
2248
|
+
))
|
|
2249
|
+
}
|
|
2250
|
+
);
|
|
2251
|
+
}
|
|
2252
|
+
);
|
|
2253
|
+
function Ra({
|
|
2254
|
+
defaultValue: o,
|
|
2255
|
+
options: a,
|
|
2256
|
+
swatch: l,
|
|
2257
|
+
onPressedChange: u
|
|
2258
|
+
}) {
|
|
2259
|
+
const [d, f] = L(""), [v, h] = L([]);
|
|
2260
|
+
return H(() => {
|
|
2261
|
+
h(
|
|
2262
|
+
a.filter(
|
|
2263
|
+
(b) => b.label.toLowerCase().includes(d.toLowerCase())
|
|
2264
|
+
)
|
|
2265
|
+
);
|
|
2266
|
+
}, [d, a]), H(() => {
|
|
2267
|
+
f(""), h(a);
|
|
2268
|
+
}, [o, a]), /* @__PURE__ */ n.jsx(
|
|
2269
|
+
jn,
|
|
2270
|
+
{
|
|
2271
|
+
className: "option-panel-dropdown",
|
|
2272
|
+
contentClassName: "option-panel-dropdown-content",
|
|
2273
|
+
popoverProps: { placement: "bottom-start" },
|
|
2274
|
+
renderToggle: ({ isOpen: b, onToggle: p }) => /* @__PURE__ */ n.jsx(Q, { important: !0, children: /* @__PURE__ */ n.jsx(
|
|
2275
|
+
ve,
|
|
2276
|
+
{
|
|
2277
|
+
variant: "secondary",
|
|
2278
|
+
size: "small",
|
|
2279
|
+
onClick: p,
|
|
2280
|
+
"aria-expanded": b,
|
|
2281
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1 !bg-transparent !p-0 !text-[11px] !text-current", children: [
|
|
2282
|
+
l && /* @__PURE__ */ n.jsx(
|
|
2283
|
+
"div",
|
|
2284
|
+
{
|
|
2285
|
+
className: z(
|
|
2286
|
+
`h-3 w-3 rounded-full bg-${o}`
|
|
2287
|
+
)
|
|
2288
|
+
}
|
|
2289
|
+
),
|
|
2290
|
+
/* @__PURE__ */ n.jsx("span", { children: o || "Select option…" }),
|
|
2291
|
+
/* @__PURE__ */ n.jsx(It, {})
|
|
2292
|
+
] })
|
|
2293
|
+
}
|
|
2294
|
+
) }),
|
|
2295
|
+
renderContent: () => /* @__PURE__ */ n.jsx(Q, { important: !0, children: /* @__PURE__ */ n.jsxs("div", { className: "w-52", children: [
|
|
2296
|
+
/* @__PURE__ */ n.jsx(
|
|
2297
|
+
Xr,
|
|
2298
|
+
{
|
|
2299
|
+
label: "Search options",
|
|
2300
|
+
value: d,
|
|
2301
|
+
onChange: (b) => f(b),
|
|
2302
|
+
autoComplete: "off"
|
|
2303
|
+
}
|
|
2304
|
+
),
|
|
2305
|
+
/* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-1 !bg-transparent !p-0 !pt-2", children: [
|
|
2306
|
+
v.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "!text-gray-medium col-span-2 pb-2 text-center !text-[11px]", children: "No options found." }),
|
|
2307
|
+
v.map((b, p) => /* @__PURE__ */ n.jsxs(
|
|
2308
|
+
ta,
|
|
2309
|
+
{
|
|
2310
|
+
className: z({
|
|
2311
|
+
"bg-primary": b.value
|
|
2312
|
+
}),
|
|
2313
|
+
size: "small",
|
|
2314
|
+
value: b.value.toString(),
|
|
2315
|
+
defaultPressed: o,
|
|
2316
|
+
onPressedChange: (C) => {
|
|
2317
|
+
u(C ? b.value : "");
|
|
2318
|
+
},
|
|
2319
|
+
children: [
|
|
2320
|
+
l && /* @__PURE__ */ n.jsx(
|
|
2321
|
+
"div",
|
|
2322
|
+
{
|
|
2323
|
+
className: z(
|
|
2324
|
+
`mr-3 h-3 w-3 rounded-full bg-${b.value}`
|
|
2325
|
+
)
|
|
2326
|
+
}
|
|
2327
|
+
),
|
|
2328
|
+
b.label
|
|
2329
|
+
]
|
|
2330
|
+
},
|
|
2331
|
+
`ButtonToggle__${b.value}___${p}`
|
|
2332
|
+
))
|
|
2333
|
+
] })
|
|
2334
|
+
] }) })
|
|
2335
|
+
}
|
|
2336
|
+
);
|
|
2337
|
+
}
|
|
2338
|
+
const ka = ({ children: o, className: a, onClick: l }) => /* @__PURE__ */ n.jsx(
|
|
2339
|
+
"div",
|
|
2340
|
+
{
|
|
2341
|
+
onClick: l,
|
|
2342
|
+
className: z(
|
|
2343
|
+
a,
|
|
2344
|
+
"inline-flex items-center rounded-full bg-blue-100 px-2.5 py-0.5 text-xs font-medium text-blue-800"
|
|
2345
|
+
),
|
|
2346
|
+
children: o
|
|
2347
|
+
}
|
|
2348
|
+
), Ta = ({ htmlContent: o, cssContent: a, frontendAssets: l }) => {
|
|
2349
|
+
const u = Tr(null), [d, f] = L(null);
|
|
2350
|
+
return H(() => {
|
|
2351
|
+
const v = u.current;
|
|
2352
|
+
return v && (v.onload = () => {
|
|
2353
|
+
const h = v.contentDocument || v.contentWindow.document;
|
|
2354
|
+
if (h) {
|
|
2355
|
+
f(h.body);
|
|
2356
|
+
const b = h.createElement("style");
|
|
2357
|
+
b.innerHTML = a, h.head.appendChild(b), l.forEach(({ type: p, id: C, url: _ }) => {
|
|
2358
|
+
const M = document.getElementById(C);
|
|
2359
|
+
if (M) {
|
|
2360
|
+
const P = document.adoptNode(
|
|
2361
|
+
M.cloneNode(!0)
|
|
2362
|
+
);
|
|
2363
|
+
h.head.appendChild(P);
|
|
2364
|
+
} else {
|
|
2365
|
+
const P = h.createElement(
|
|
2366
|
+
p === "script" ? "script" : "link"
|
|
2367
|
+
);
|
|
2368
|
+
P.id = C, p === "script" ? (P.src = _, P.async = !0) : (P.rel = "stylesheet", P.href = _), h.head.appendChild(P);
|
|
2369
|
+
}
|
|
2370
|
+
});
|
|
2371
|
+
}
|
|
2372
|
+
}), () => {
|
|
2373
|
+
v && (v.onload = null);
|
|
2374
|
+
};
|
|
2375
|
+
}, [o, a, l]), /* @__PURE__ */ n.jsxs(
|
|
2376
|
+
"div",
|
|
2377
|
+
{
|
|
2378
|
+
className: "render-preview-container",
|
|
2379
|
+
style: { width: "100%", minHeight: "100%" },
|
|
2380
|
+
children: [
|
|
2381
|
+
/* @__PURE__ */ n.jsx(
|
|
2382
|
+
"iframe",
|
|
2383
|
+
{
|
|
2384
|
+
ref: u,
|
|
2385
|
+
title: "Preview",
|
|
2386
|
+
className: "editor-styles-wrapper",
|
|
2387
|
+
width: "100%",
|
|
2388
|
+
height: "100%"
|
|
2389
|
+
}
|
|
2390
|
+
),
|
|
2391
|
+
d && Dt(
|
|
2392
|
+
/* @__PURE__ */ n.jsx("div", { className: "b_", children: /* @__PURE__ */ n.jsx(
|
|
2393
|
+
"div",
|
|
2394
|
+
{
|
|
2395
|
+
className: "b_utils",
|
|
2396
|
+
dangerouslySetInnerHTML: { __html: o }
|
|
2397
|
+
}
|
|
2398
|
+
) }),
|
|
2399
|
+
d
|
|
2400
|
+
)
|
|
2401
|
+
]
|
|
2402
|
+
}
|
|
2403
|
+
);
|
|
2404
|
+
}, Sa = ({
|
|
2405
|
+
children: o,
|
|
2406
|
+
size: a = "default",
|
|
2407
|
+
label: l,
|
|
2408
|
+
className: u,
|
|
2409
|
+
onClick: d,
|
|
2410
|
+
variant: f = "primary",
|
|
2411
|
+
display: v = "auto",
|
|
2412
|
+
icon: h,
|
|
2413
|
+
disabled: b = !1
|
|
2414
|
+
}) => {
|
|
2415
|
+
const p = v === "icon" || v === "icon-lg";
|
|
2416
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2417
|
+
ve,
|
|
2418
|
+
{
|
|
2419
|
+
size: a,
|
|
2420
|
+
variant: f,
|
|
2421
|
+
label: l,
|
|
2422
|
+
showTooltip: !0,
|
|
2423
|
+
disabled: b,
|
|
2424
|
+
className: z(
|
|
2425
|
+
u,
|
|
2426
|
+
"blockbite-ui__button",
|
|
2427
|
+
"flex items-center justify-center gap-1",
|
|
2428
|
+
{ "is-primary": f === "primary" },
|
|
2429
|
+
{ "is-secondary": f === "secondary" },
|
|
2430
|
+
{ "is-link": f === "link" },
|
|
2431
|
+
{ "is-tertiary": f === "tertiary" },
|
|
2432
|
+
{ "is-icon": v === "icon" }
|
|
2433
|
+
),
|
|
2434
|
+
onClick: d,
|
|
2435
|
+
children: [
|
|
2436
|
+
h && /* @__PURE__ */ n.jsx(
|
|
2437
|
+
He,
|
|
2438
|
+
{
|
|
2439
|
+
icon: h,
|
|
2440
|
+
className: z({ "h-4 w-4": v === "icon-lg" })
|
|
2441
|
+
}
|
|
2442
|
+
),
|
|
2443
|
+
p ? null : o,
|
|
2444
|
+
l && !o && !p ? /* @__PURE__ */ n.jsx("span", { children: l }) : null
|
|
2445
|
+
]
|
|
2446
|
+
}
|
|
2447
|
+
);
|
|
2448
|
+
}, Oa = ({ children: o, title: a }) => /* @__PURE__ */ n.jsxs(
|
|
2449
|
+
Q,
|
|
2450
|
+
{
|
|
2451
|
+
className: z(
|
|
2452
|
+
"text-gray-medium my-2 flex items-center gap-1 text-[12px] font-medium",
|
|
2453
|
+
z
|
|
2454
|
+
),
|
|
2455
|
+
children: [
|
|
2456
|
+
a && /* @__PURE__ */ n.jsx(Q, { className: "font-medium", children: a }),
|
|
2457
|
+
o
|
|
2458
|
+
]
|
|
2459
|
+
}
|
|
2460
|
+
), Pa = ({
|
|
2461
|
+
id: o = "",
|
|
2462
|
+
title: a,
|
|
2463
|
+
className: l,
|
|
2464
|
+
help: u
|
|
2465
|
+
}) => /* @__PURE__ */ n.jsxs("div", { ...o ? { id: o } : null, className: z("mb-4", l), children: [
|
|
2466
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-wrap items-center gap-2", children: [
|
|
2467
|
+
/* @__PURE__ */ n.jsx("small", { className: "shrink-1 text-[12px]", children: a }),
|
|
2468
|
+
/* @__PURE__ */ n.jsx("span", { className: "h-[1px] w-full bg-easy" })
|
|
2469
|
+
] }),
|
|
2470
|
+
u && /* @__PURE__ */ n.jsx("small", { className: "w-full shrink-0 text-[12px]", children: u })
|
|
2471
|
+
] }), Na = ({ label: o, help: a, defaultChecked: l }) => {
|
|
2472
|
+
const [u, d] = L(l);
|
|
2473
|
+
return H(() => {
|
|
2474
|
+
d(l);
|
|
2475
|
+
}, [l]), /* @__PURE__ */ n.jsx(Q, { className: "blockbite-ui__checkbox mx-1 flex items-center gap-2", children: /* @__PURE__ */ n.jsx(
|
|
2476
|
+
En,
|
|
2477
|
+
{
|
|
2478
|
+
label: o,
|
|
2479
|
+
help: a,
|
|
2480
|
+
checked: u,
|
|
2481
|
+
onChange: d
|
|
2482
|
+
}
|
|
2483
|
+
) });
|
|
2484
|
+
}, Aa = ({
|
|
2485
|
+
duration: o = 3e3,
|
|
2486
|
+
children: a,
|
|
2487
|
+
trigger: l
|
|
2488
|
+
}) => {
|
|
2489
|
+
const [u, d] = L(!1), f = Tr(!1);
|
|
2490
|
+
return H(() => {
|
|
2491
|
+
f.current = !0;
|
|
2492
|
+
}, []), H(() => {
|
|
2493
|
+
let v = null;
|
|
2494
|
+
return l && !f.current ? (d(!0), v = setTimeout(() => {
|
|
2495
|
+
d(!1);
|
|
2496
|
+
}, o)) : f.current = !1, () => {
|
|
2497
|
+
clearTimeout(v);
|
|
2498
|
+
};
|
|
2499
|
+
}, [l, o]), u && /* @__PURE__ */ n.jsx(n.Fragment, { children: a });
|
|
2500
|
+
}, aa = ({
|
|
2501
|
+
label: o,
|
|
2502
|
+
className: a,
|
|
2503
|
+
defaultValue: l,
|
|
2504
|
+
defaultIcon: u = vn,
|
|
2505
|
+
onPressedChange: d,
|
|
2506
|
+
options: f
|
|
2507
|
+
}) => {
|
|
2508
|
+
const [v, h] = L(null);
|
|
2509
|
+
H(() => {
|
|
2510
|
+
h(l);
|
|
2511
|
+
}, [l]);
|
|
2512
|
+
const b = [
|
|
2513
|
+
...f.map((p) => ({
|
|
2514
|
+
icon: p.icon,
|
|
2515
|
+
label: p.label,
|
|
2516
|
+
title: p.label,
|
|
2517
|
+
value: p.value,
|
|
2518
|
+
onClick: () => {
|
|
2519
|
+
h(p.value), d(p.value);
|
|
2520
|
+
}
|
|
2521
|
+
})),
|
|
2522
|
+
{
|
|
2523
|
+
icon: /* @__PURE__ */ n.jsx(He, { icon: u }),
|
|
2524
|
+
title: "Reset",
|
|
2525
|
+
value: "reset",
|
|
2526
|
+
onClick: () => {
|
|
2527
|
+
h("reset"), d("reset");
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
];
|
|
2531
|
+
return /* @__PURE__ */ n.jsx(
|
|
2532
|
+
Rn,
|
|
2533
|
+
{
|
|
2534
|
+
controls: b,
|
|
2535
|
+
className: z(
|
|
2536
|
+
"blockbite-ui__dropdown-picker border-primary border",
|
|
2537
|
+
a
|
|
2538
|
+
),
|
|
2539
|
+
icon: f.find((p) => p.value === v)?.icon || /* @__PURE__ */ n.jsx(He, { icon: u }),
|
|
2540
|
+
label: o || "Select"
|
|
2541
|
+
}
|
|
2542
|
+
);
|
|
2543
|
+
};
|
|
2544
|
+
function Ia({
|
|
2545
|
+
icon: o,
|
|
2546
|
+
title: a,
|
|
2547
|
+
description: l,
|
|
2548
|
+
children: u = null,
|
|
2549
|
+
...d
|
|
2550
|
+
}) {
|
|
2551
|
+
return /* @__PURE__ */ n.jsx("div", { ...d, children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full w-full flex-col items-center justify-center text-center !font-sans", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-sm", children: [
|
|
2552
|
+
o && /* @__PURE__ */ n.jsx("div", { className: "mx-auto !text-gray-400", children: o }),
|
|
2553
|
+
/* @__PURE__ */ n.jsx("h3", { className: "text-gray-medium mt-2 !font-sans text-sm font-medium", children: a }),
|
|
2554
|
+
/* @__PURE__ */ n.jsx("p", { className: "mt-1 !font-sans text-sm !text-gray-500", children: l }),
|
|
2555
|
+
u && /* @__PURE__ */ n.jsx("div", { className: "mt-4", children: u })
|
|
2556
|
+
] }) }) });
|
|
2557
|
+
}
|
|
2558
|
+
function $a({
|
|
2559
|
+
children: o
|
|
2560
|
+
}) {
|
|
2561
|
+
const a = Tr(null), [l, u] = L({ x: 100, y: 100 }), [d, f] = L(!1), [v, h] = L({ x: 0, y: 0 });
|
|
2562
|
+
H(() => {
|
|
2563
|
+
const p = (_) => {
|
|
2564
|
+
d && u({
|
|
2565
|
+
x: _.clientX - v.x,
|
|
2566
|
+
y: _.clientY - v.y
|
|
2567
|
+
});
|
|
2568
|
+
}, C = () => f(!1);
|
|
2569
|
+
return window.addEventListener("mousemove", p), window.addEventListener("mouseup", C), () => {
|
|
2570
|
+
window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", C);
|
|
2571
|
+
};
|
|
2572
|
+
}, [d, v]);
|
|
2573
|
+
const b = (p) => {
|
|
2574
|
+
const C = a.current.getBoundingClientRect();
|
|
2575
|
+
h({ x: p.clientX - C.left, y: p.clientY - C.top }), f(!0);
|
|
2576
|
+
};
|
|
2577
|
+
return /* @__PURE__ */ n.jsx("div", { className: "bb_", children: /* @__PURE__ */ n.jsxs(
|
|
2578
|
+
"div",
|
|
2579
|
+
{
|
|
2580
|
+
ref: a,
|
|
2581
|
+
className: "fixed bg-white shadow-xl rounded-2xl p-4 w-[400px] h-[550px] z-[9999]",
|
|
2582
|
+
style: { left: l.x, top: l.y },
|
|
2583
|
+
children: [
|
|
2584
|
+
o,
|
|
2585
|
+
/* @__PURE__ */ n.jsx(
|
|
2586
|
+
"div",
|
|
2587
|
+
{
|
|
2588
|
+
className: "absolute top-1 right-1 cursor-move w-5 h-5 bg-gray-300 rounded",
|
|
2589
|
+
onMouseDown: b
|
|
2590
|
+
}
|
|
2591
|
+
)
|
|
2592
|
+
]
|
|
2593
|
+
}
|
|
2594
|
+
) });
|
|
2595
|
+
}
|
|
2596
|
+
const Da = ({
|
|
2597
|
+
defaultValue: o,
|
|
2598
|
+
onValueChange: a,
|
|
2599
|
+
url: l
|
|
2600
|
+
}) => {
|
|
2601
|
+
const [u, d] = L({
|
|
2602
|
+
x: 0.5,
|
|
2603
|
+
y: 0.5
|
|
2604
|
+
});
|
|
2605
|
+
return H(() => {
|
|
2606
|
+
a(
|
|
2607
|
+
`[${(u.x * 100).toFixed(2)}%_${(u.y * 100).toFixed(
|
|
2608
|
+
2
|
|
2609
|
+
)}%]`
|
|
2610
|
+
);
|
|
2611
|
+
}, [u]), H(() => {
|
|
2612
|
+
if (o.includes("%")) {
|
|
2613
|
+
const [f, v] = o.replace("[", "").replace("%]", "").split("_").map((h) => parseFloat(h) / 100);
|
|
2614
|
+
d({
|
|
2615
|
+
x: f,
|
|
2616
|
+
y: v
|
|
2617
|
+
});
|
|
2618
|
+
}
|
|
2619
|
+
}, [o]), /* @__PURE__ */ n.jsx(Q, { className: "relative flex flex-col", children: /* @__PURE__ */ n.jsx(
|
|
2620
|
+
kn,
|
|
2621
|
+
{
|
|
2622
|
+
url: l,
|
|
2623
|
+
value: u,
|
|
2624
|
+
onDrag: (f) => d(f),
|
|
2625
|
+
onChange: (f) => d(f)
|
|
2626
|
+
}
|
|
2627
|
+
) });
|
|
2628
|
+
};
|
|
2629
|
+
function Fa(o) {
|
|
2630
|
+
const [a, l] = L(""), [u, d] = L([]), [f, v] = L({
|
|
2631
|
+
url: "",
|
|
2632
|
+
title: ""
|
|
2633
|
+
});
|
|
2634
|
+
return H(() => {
|
|
2635
|
+
a !== "" && (d(null), Yn({
|
|
2636
|
+
path: `/blockbite/v1/block-helpers/get-links/${a}`
|
|
2637
|
+
}).then(
|
|
2638
|
+
(h) => {
|
|
2639
|
+
h?.length ? d([...h]) : d([]);
|
|
2640
|
+
}
|
|
2641
|
+
));
|
|
2642
|
+
}, [a]), H(() => {
|
|
2643
|
+
f.url !== "" && o.parentCallback(f);
|
|
2644
|
+
}, [f]), /* @__PURE__ */ n.jsxs(Q, { className: "blockbite--editor-linkwrap", children: [
|
|
2645
|
+
/* @__PURE__ */ n.jsx(
|
|
2646
|
+
Xr,
|
|
2647
|
+
{
|
|
2648
|
+
label: Le("Search link", "blockbitelinks"),
|
|
2649
|
+
value: a,
|
|
2650
|
+
placeholder: "Example: About",
|
|
2651
|
+
onChange: (h) => l(h),
|
|
2652
|
+
help: Le("Type a post, page, title", "blockbitelinks")
|
|
2653
|
+
}
|
|
2654
|
+
),
|
|
2655
|
+
a ? /* @__PURE__ */ n.jsx("div", { className: "blockbite--editor-linklist", children: /* @__PURE__ */ n.jsx(
|
|
2656
|
+
oa,
|
|
2657
|
+
{
|
|
2658
|
+
links: u,
|
|
2659
|
+
onActiveLink: (h) => [
|
|
2660
|
+
v({ ...h }),
|
|
2661
|
+
l("")
|
|
2662
|
+
]
|
|
2663
|
+
}
|
|
2664
|
+
) }) : null
|
|
2665
|
+
] });
|
|
2666
|
+
}
|
|
2667
|
+
function oa({ links: o, onActiveLink: a }) {
|
|
2668
|
+
if (o === null)
|
|
2669
|
+
return /* @__PURE__ */ n.jsx("p", { children: "Loading..." });
|
|
2670
|
+
if (o.length === 0)
|
|
2671
|
+
return /* @__PURE__ */ n.jsx("p", { children: "No Results" });
|
|
2672
|
+
const l = o.map((u) => /* @__PURE__ */ n.jsx(Q, { children: /* @__PURE__ */ n.jsxs(
|
|
2673
|
+
"span",
|
|
2674
|
+
{
|
|
2675
|
+
className: "blockbite--editor-link",
|
|
2676
|
+
onClick: () => a(u),
|
|
2677
|
+
children: [
|
|
2678
|
+
/* @__PURE__ */ n.jsx("span", { children: u.title }),
|
|
2679
|
+
/* @__PURE__ */ n.jsx("span", { className: "blockbite--preview-link", children: u.url }),
|
|
2680
|
+
/* @__PURE__ */ n.jsx("span", { className: "blockbite--preview-link", children: u.post_type })
|
|
2681
|
+
]
|
|
2682
|
+
}
|
|
2683
|
+
) }, u.id));
|
|
2684
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: l });
|
|
2685
|
+
}
|
|
2686
|
+
function La({ mediaProps: o, mediaCallback: a }) {
|
|
2687
|
+
const l = [
|
|
2688
|
+
"image",
|
|
2689
|
+
"video",
|
|
2690
|
+
"image/svg+xml",
|
|
2691
|
+
"svg",
|
|
2692
|
+
"text/plain",
|
|
2693
|
+
"application/json"
|
|
2694
|
+
], [u, d] = L({
|
|
2695
|
+
id: null,
|
|
2696
|
+
url: "",
|
|
2697
|
+
sizes: [],
|
|
2698
|
+
alt: "",
|
|
2699
|
+
type: "",
|
|
2700
|
+
width: 0,
|
|
2701
|
+
height: 0
|
|
2702
|
+
});
|
|
2703
|
+
H(() => {
|
|
2704
|
+
o && d({ ...o });
|
|
2705
|
+
}, [o]);
|
|
2706
|
+
const f = () => {
|
|
2707
|
+
a({ ...{
|
|
2708
|
+
mediaId: 0,
|
|
2709
|
+
mediaUrl: ""
|
|
2710
|
+
} });
|
|
2711
|
+
}, v = (h) => {
|
|
2712
|
+
const b = {
|
|
2713
|
+
thumbnail: null,
|
|
2714
|
+
medium: null,
|
|
2715
|
+
large: null
|
|
2716
|
+
};
|
|
2717
|
+
h?.sizes && Object.keys(h.sizes).map((C) => {
|
|
2718
|
+
const _ = h.sizes[C];
|
|
2719
|
+
return (C === "thumbnail" || _.width < 768 || _.height < 768) && (b.thumbnail = _.url), (C === "medium" || _.width > 1024 && _.width < 1024 || _.height < 1536 && _.height > 1536) && (b.medium = _.url), (C === "large" || _.width > 1536 || _.height > 1536) && (b.large = _.url), null;
|
|
2720
|
+
}), h.url.endsWith(".json") && (h.type = "lottie"), h.url.endsWith(".svg") && (h.type = "svg");
|
|
2721
|
+
const p = {
|
|
2722
|
+
id: h.id,
|
|
2723
|
+
url: h.url,
|
|
2724
|
+
sizes: b,
|
|
2725
|
+
alt: h.alt,
|
|
2726
|
+
type: h.type,
|
|
2727
|
+
width: h.width,
|
|
2728
|
+
height: h.height
|
|
2729
|
+
};
|
|
2730
|
+
a({ ...p });
|
|
2731
|
+
};
|
|
2732
|
+
return /* @__PURE__ */ n.jsxs(Tn, { children: [
|
|
2733
|
+
u.id !== null && /* @__PURE__ */ n.jsx(Kr, { children: /* @__PURE__ */ n.jsx(
|
|
2734
|
+
Rt,
|
|
2735
|
+
{
|
|
2736
|
+
onSelect: v,
|
|
2737
|
+
value: u.id,
|
|
2738
|
+
allowedTypes: l,
|
|
2739
|
+
render: ({ open: h }) => /* @__PURE__ */ n.jsxs(
|
|
2740
|
+
ve,
|
|
2741
|
+
{
|
|
2742
|
+
className: u.id === 0 ? "editor-post-featured-image__toggle" : "editor-post-featured-image__preview",
|
|
2743
|
+
onClick: h,
|
|
2744
|
+
children: [
|
|
2745
|
+
u.id === 0 && Le("Choose Media", "blockbite"),
|
|
2746
|
+
u.id && u.type === "image" ? /* @__PURE__ */ n.jsx("div", { className: "blockbite--editor-visual-image", children: /* @__PURE__ */ n.jsx(
|
|
2747
|
+
"img",
|
|
2748
|
+
{
|
|
2749
|
+
alt: u.alt ? u.alt : Le("Image", "blockbite"),
|
|
2750
|
+
src: u.url
|
|
2751
|
+
}
|
|
2752
|
+
) }) : "Add media"
|
|
2753
|
+
]
|
|
2754
|
+
}
|
|
2755
|
+
)
|
|
2756
|
+
}
|
|
2757
|
+
) }),
|
|
2758
|
+
u.id !== 0 && /* @__PURE__ */ n.jsx(Kr, { children: /* @__PURE__ */ n.jsx(
|
|
2759
|
+
Rt,
|
|
2760
|
+
{
|
|
2761
|
+
title: Le("Replace media", "blockbite"),
|
|
2762
|
+
value: u.id,
|
|
2763
|
+
onSelect: v,
|
|
2764
|
+
allowedTypes: l,
|
|
2765
|
+
render: ({ open: h }) => /* @__PURE__ */ n.jsx(ve, { onClick: h, children: Le("Replace media", "blockbite") })
|
|
2766
|
+
}
|
|
2767
|
+
) }),
|
|
2768
|
+
u.id !== 0 && /* @__PURE__ */ n.jsx(Kr, { children: /* @__PURE__ */ n.jsx(ve, { onClick: () => f(), isDestructive: !0, children: Le("Remove media", "blockbite") }) })
|
|
2769
|
+
] });
|
|
2770
|
+
}
|
|
2771
|
+
const sa = ({
|
|
2772
|
+
children: o,
|
|
2773
|
+
className: a,
|
|
2774
|
+
position: l,
|
|
2775
|
+
visible: u,
|
|
2776
|
+
onClick: d,
|
|
2777
|
+
onVisibleChange: f
|
|
2778
|
+
}) => {
|
|
2779
|
+
const [v, h] = L(!!u);
|
|
2780
|
+
H(() => {
|
|
2781
|
+
u !== void 0 && h(u);
|
|
2782
|
+
}, [u]);
|
|
2783
|
+
const b = () => {
|
|
2784
|
+
const p = !v;
|
|
2785
|
+
h(p), f && f(p);
|
|
2786
|
+
};
|
|
2787
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: v && /* @__PURE__ */ n.jsx(
|
|
2788
|
+
Sn,
|
|
2789
|
+
{
|
|
2790
|
+
position: l,
|
|
2791
|
+
className: "blockbite-ui__popover bb_",
|
|
2792
|
+
onClick: d,
|
|
2793
|
+
onFocusOutside: () => {
|
|
2794
|
+
h(!1), f && f(!1);
|
|
2795
|
+
},
|
|
2796
|
+
children: /* @__PURE__ */ n.jsx("div", { className: a, children: /* @__PURE__ */ n.jsxs("div", { className: "relative h-full w-full p-4", children: [
|
|
2797
|
+
/* @__PURE__ */ n.jsx(
|
|
2798
|
+
ve,
|
|
2799
|
+
{
|
|
2800
|
+
onClick: b,
|
|
2801
|
+
size: "small",
|
|
2802
|
+
className: "close-button absolute right-0 top-0",
|
|
2803
|
+
children: /* @__PURE__ */ n.jsx(mn, {})
|
|
2804
|
+
}
|
|
2805
|
+
),
|
|
2806
|
+
o
|
|
2807
|
+
] }) })
|
|
2808
|
+
}
|
|
2809
|
+
) });
|
|
2810
|
+
}, ia = ({
|
|
2811
|
+
defaultValue: o,
|
|
2812
|
+
label: a,
|
|
2813
|
+
min: l = 0,
|
|
2814
|
+
max: u = 2e3,
|
|
2815
|
+
withInputField: d = !1,
|
|
2816
|
+
onValueChange: f,
|
|
2817
|
+
gridMode: v = !1,
|
|
2818
|
+
showTooltip: h = !1,
|
|
2819
|
+
...b
|
|
2820
|
+
}) => {
|
|
2821
|
+
const [p] = L(0), [C, _] = L(0);
|
|
2822
|
+
H(() => {
|
|
2823
|
+
_(Math.round(parseInt(o) / (v ? 16 : 1)));
|
|
2824
|
+
}, [o]);
|
|
2825
|
+
function M(P) {
|
|
2826
|
+
const j = P * (v ? 16 : 1);
|
|
2827
|
+
f(j.toString());
|
|
2828
|
+
}
|
|
2829
|
+
return /* @__PURE__ */ n.jsxs(Q, { className: "flex min-w-[240px] flex-col", children: [
|
|
2830
|
+
/* @__PURE__ */ n.jsx(
|
|
2831
|
+
On,
|
|
2832
|
+
{
|
|
2833
|
+
label: a,
|
|
2834
|
+
value: C,
|
|
2835
|
+
min: l,
|
|
2836
|
+
max: u,
|
|
2837
|
+
showTooltip: h,
|
|
2838
|
+
withInputField: d,
|
|
2839
|
+
onChange: (P) => {
|
|
2840
|
+
_(P), M(P);
|
|
2841
|
+
},
|
|
2842
|
+
resetFallbackValue: p,
|
|
2843
|
+
...b
|
|
2844
|
+
}
|
|
2845
|
+
),
|
|
2846
|
+
/* @__PURE__ */ n.jsxs("span", { children: [
|
|
2847
|
+
v ? `${C * 16}px` : null,
|
|
2848
|
+
" "
|
|
2849
|
+
] })
|
|
2850
|
+
] });
|
|
2851
|
+
}, rt = Vn(
|
|
2852
|
+
({
|
|
2853
|
+
onClick: o,
|
|
2854
|
+
onChange: a,
|
|
2855
|
+
className: l,
|
|
2856
|
+
defaultValue: u,
|
|
2857
|
+
children: d,
|
|
2858
|
+
inputClassName: f,
|
|
2859
|
+
readOnly: v,
|
|
2860
|
+
placeholder: h,
|
|
2861
|
+
onBlur: b,
|
|
2862
|
+
type: p = "text",
|
|
2863
|
+
label: C,
|
|
2864
|
+
helper: _ = ""
|
|
2865
|
+
}, M) => {
|
|
2866
|
+
const P = `text-control-${Math.random().toString(36).substring(2, 15)}`;
|
|
2867
|
+
return /* @__PURE__ */ n.jsxs(Q, { className: z("flex items-center p-0", l), children: [
|
|
2868
|
+
C ? /* @__PURE__ */ n.jsx("label", { htmlFor: P, className: "text-primary !m-0 !mb-0 !mr-2", children: C }) : null,
|
|
2869
|
+
/* @__PURE__ */ n.jsx(
|
|
2870
|
+
"input",
|
|
2871
|
+
{
|
|
2872
|
+
id: P,
|
|
2873
|
+
className: z(
|
|
2874
|
+
"border-primary !m-0 !mb-0 h-[32px] !rounded-none border border-opacity-70 focus:outline-none focus:ring-0",
|
|
2875
|
+
f
|
|
2876
|
+
),
|
|
2877
|
+
type: p,
|
|
2878
|
+
value: u,
|
|
2879
|
+
placeholder: h,
|
|
2880
|
+
onFocus: () => o && o(),
|
|
2881
|
+
onBlur: (j) => {
|
|
2882
|
+
o && o(), b && b(j.target.value);
|
|
2883
|
+
},
|
|
2884
|
+
onChange: (j) => a && a(j.target.value),
|
|
2885
|
+
readOnly: v,
|
|
2886
|
+
ref: M
|
|
2887
|
+
}
|
|
2888
|
+
),
|
|
2889
|
+
/* @__PURE__ */ n.jsx("span", { children: d }),
|
|
2890
|
+
_ && /* @__PURE__ */ n.jsx("p", { className: "text-primary !m-0 !mb-0 text-xs", children: _ })
|
|
2891
|
+
] });
|
|
2892
|
+
}
|
|
2893
|
+
);
|
|
2894
|
+
rt.displayName = "TextControl";
|
|
2895
|
+
const Ma = ({
|
|
2896
|
+
defaultUnit: o,
|
|
2897
|
+
defaultValue: a,
|
|
2898
|
+
onValueChange: l,
|
|
2899
|
+
onUnitChange: u,
|
|
2900
|
+
inputClassName: d = "w-[75px]"
|
|
2901
|
+
}) => {
|
|
2902
|
+
const [f, v] = L(!1), [h, b] = L([]), [p, C] = L(o), [_, M] = L(""), [P, j] = L(a);
|
|
2903
|
+
H(() => {
|
|
2904
|
+
o && C(o), a && M(a.toString());
|
|
2905
|
+
}, [o, a]), H(() => {
|
|
2906
|
+
!f && p === "arbitrary" && j(_);
|
|
2907
|
+
}, [f]);
|
|
2908
|
+
const ee = (A) => {
|
|
2909
|
+
if (A !== "arbitrary" && bb?.codex?.units?.spacing?.[A]) {
|
|
2910
|
+
const q = bb.codex.units.spacing[A];
|
|
2911
|
+
b(
|
|
2912
|
+
Array.isArray(q) ? q : Object.keys(q)
|
|
2913
|
+
);
|
|
2914
|
+
} else
|
|
2915
|
+
b([]);
|
|
2916
|
+
v(!0);
|
|
2917
|
+
}, U = [
|
|
2918
|
+
{
|
|
2919
|
+
icon: /* @__PURE__ */ n.jsx(hn, {}),
|
|
2920
|
+
label: "Tailwind CSS Units",
|
|
2921
|
+
value: "native"
|
|
2922
|
+
},
|
|
2923
|
+
{ icon: /* @__PURE__ */ n.jsx(yn, {}), label: "Percentage Units", value: "percent" },
|
|
2924
|
+
{ icon: /* @__PURE__ */ n.jsx(bn, {}), label: "Grid Units", value: "grid" },
|
|
2925
|
+
{ icon: /* @__PURE__ */ n.jsx(gn, {}), label: "Screen Units", value: "screen" },
|
|
2926
|
+
{ icon: /* @__PURE__ */ n.jsx(xn, {}), label: "Pixel Units", value: "arbitrary" },
|
|
2927
|
+
{ icon: /* @__PURE__ */ n.jsx(_n, {}), label: "Fluid Units", value: "fluid" }
|
|
2928
|
+
];
|
|
2929
|
+
return /* @__PURE__ */ n.jsx(Q, { className: "relative flex flex-col items-baseline", children: /* @__PURE__ */ n.jsxs(
|
|
2930
|
+
rt,
|
|
2931
|
+
{
|
|
2932
|
+
inputClassName: d,
|
|
2933
|
+
defaultValue: (
|
|
2934
|
+
// Remove the "b_" prefix for grid units
|
|
2935
|
+
p === "grid" ? _.replace("b_", "") : _
|
|
2936
|
+
),
|
|
2937
|
+
onClick: () => p !== "arbitrary" && ee(p),
|
|
2938
|
+
onChange: (A) => {
|
|
2939
|
+
M(A), l(A);
|
|
2940
|
+
},
|
|
2941
|
+
readOnly: p !== "arbitrary",
|
|
2942
|
+
children: [
|
|
2943
|
+
/* @__PURE__ */ n.jsx(
|
|
2944
|
+
sa,
|
|
2945
|
+
{
|
|
2946
|
+
visible: f,
|
|
2947
|
+
position: "bottom left",
|
|
2948
|
+
className: "w-[300px] bg-white shadow-sm",
|
|
2949
|
+
onVisibleChange: v,
|
|
2950
|
+
children: p === "arbitrary" ? /* @__PURE__ */ n.jsx(
|
|
2951
|
+
ia,
|
|
2952
|
+
{
|
|
2953
|
+
defaultValue: _,
|
|
2954
|
+
label: "Pixel Value",
|
|
2955
|
+
min: 0,
|
|
2956
|
+
max: 100,
|
|
2957
|
+
gridMode: !0,
|
|
2958
|
+
showTooltip: !1,
|
|
2959
|
+
allowReset: !0,
|
|
2960
|
+
resetFallbackValue: isNaN(P.toString()) ? 0 : Number(P) / 16,
|
|
2961
|
+
onValueChange: (A) => {
|
|
2962
|
+
M(A), l(A);
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
) : /* @__PURE__ */ n.jsx(
|
|
2966
|
+
na,
|
|
2967
|
+
{
|
|
2968
|
+
className: "mt-4",
|
|
2969
|
+
options: h.map((A) => ({
|
|
2970
|
+
value: A,
|
|
2971
|
+
label: p === "grid" ? A.toString().replace("b_", "") : A,
|
|
2972
|
+
onClick: () => {
|
|
2973
|
+
M(A), l(A);
|
|
2974
|
+
}
|
|
2975
|
+
})),
|
|
2976
|
+
size: "small",
|
|
2977
|
+
defaultPressed: _?.toString() || "",
|
|
2978
|
+
onPressedChange: (A) => {
|
|
2979
|
+
M(A), l(A);
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
)
|
|
2983
|
+
}
|
|
2984
|
+
),
|
|
2985
|
+
/* @__PURE__ */ n.jsx(
|
|
2986
|
+
aa,
|
|
2987
|
+
{
|
|
2988
|
+
className: "h-[32px]",
|
|
2989
|
+
defaultValue: p,
|
|
2990
|
+
options: U,
|
|
2991
|
+
onPressedChange: (A) => {
|
|
2992
|
+
A === "reset" ? (M(""), l(""), v(!1)) : (C(A), u(A), ee(A));
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
)
|
|
2996
|
+
]
|
|
2997
|
+
}
|
|
2998
|
+
) });
|
|
2999
|
+
}, Lt = Ft(null), Mt = () => {
|
|
3000
|
+
const o = Qr(Lt);
|
|
3001
|
+
if (!o)
|
|
3002
|
+
throw new Error("useModalContext must be used within a ModalProvider");
|
|
3003
|
+
return o;
|
|
3004
|
+
}, Wa = ({
|
|
3005
|
+
children: o,
|
|
3006
|
+
defaultOpen: a,
|
|
3007
|
+
onOpenChange: l,
|
|
3008
|
+
title: u,
|
|
3009
|
+
className: d
|
|
3010
|
+
}) => {
|
|
3011
|
+
const [f, v] = L(!1);
|
|
3012
|
+
H(() => {
|
|
3013
|
+
v(a);
|
|
3014
|
+
}, [a]);
|
|
3015
|
+
const h = () => v(!0), b = () => v(!1);
|
|
3016
|
+
return H(() => {
|
|
3017
|
+
l(f);
|
|
3018
|
+
}, [f, l]), /* @__PURE__ */ n.jsxs(Lt.Provider, { value: { closeModal: b, openModal: h }, children: [
|
|
3019
|
+
jr.map(o, (p) => Er(p) && p.type === fa ? p : null),
|
|
3020
|
+
f && /* @__PURE__ */ n.jsx(
|
|
3021
|
+
Pn,
|
|
3022
|
+
{
|
|
3023
|
+
className: z("blockbite-ui__modal bb_", d),
|
|
3024
|
+
onRequestClose: b,
|
|
3025
|
+
title: u,
|
|
3026
|
+
children: /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
3027
|
+
jr.map(o, (p) => Er(p) && p.type === la ? p : null),
|
|
3028
|
+
jr.map(o, (p) => Er(p) && p.type === ca ? p : null),
|
|
3029
|
+
jr.map(o, (p) => Er(p) && p.type === ua ? p : null)
|
|
3030
|
+
] })
|
|
3031
|
+
}
|
|
3032
|
+
)
|
|
3033
|
+
] });
|
|
3034
|
+
}, la = ({ children: o, className: a = "", ...l }) => /* @__PURE__ */ n.jsx(
|
|
3035
|
+
"div",
|
|
3036
|
+
{
|
|
3037
|
+
className: z(
|
|
3038
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
3039
|
+
a
|
|
3040
|
+
),
|
|
3041
|
+
...l,
|
|
3042
|
+
children: o
|
|
3043
|
+
}
|
|
3044
|
+
), ua = ({ children: o, className: a = "", ...l }) => /* @__PURE__ */ n.jsx(
|
|
3045
|
+
"div",
|
|
3046
|
+
{
|
|
3047
|
+
className: z(
|
|
3048
|
+
"border-gray-light fixed bottom-0 left-0 right-0 flex h-[4rem] flex-row items-center justify-end space-x-2 border-t bg-white px-4",
|
|
3049
|
+
a
|
|
3050
|
+
),
|
|
3051
|
+
...l,
|
|
3052
|
+
children: o
|
|
3053
|
+
}
|
|
3054
|
+
), ca = ({ children: o, className: a = "", ...l }) => /* @__PURE__ */ n.jsx(
|
|
3055
|
+
"div",
|
|
3056
|
+
{
|
|
3057
|
+
className: z("text-gray-medium px-4 pb-4 text-sm", a),
|
|
3058
|
+
...l,
|
|
3059
|
+
children: o
|
|
3060
|
+
}
|
|
3061
|
+
), Ua = ({ children: o }) => {
|
|
3062
|
+
const { closeModal: a } = Mt();
|
|
3063
|
+
return /* @__PURE__ */ n.jsx("div", { onClick: a, className: "cursor-pointer", children: o });
|
|
3064
|
+
}, fa = ({ children: o }) => {
|
|
3065
|
+
const { openModal: a } = Mt();
|
|
3066
|
+
return /* @__PURE__ */ n.jsx("div", { onClick: a, className: "cursor-pointer", children: o });
|
|
3067
|
+
};
|
|
3068
|
+
function da(o, a) {
|
|
3069
|
+
Array.from(o.styleSheets).forEach((l) => {
|
|
3070
|
+
try {
|
|
3071
|
+
if (l.cssRules) {
|
|
3072
|
+
const u = a.createElement("style");
|
|
3073
|
+
Array.from(l.cssRules).forEach((d) => {
|
|
3074
|
+
u.appendChild(a.createTextNode(d.cssText));
|
|
3075
|
+
}), a.head.appendChild(u);
|
|
3076
|
+
} else if (l.href) {
|
|
3077
|
+
const u = a.createElement("link");
|
|
3078
|
+
u.rel = "stylesheet", u.href = l.href, a.head.appendChild(u);
|
|
3079
|
+
}
|
|
3080
|
+
} catch (u) {
|
|
3081
|
+
if (l.href) {
|
|
3082
|
+
const d = a.createElement("link");
|
|
3083
|
+
d.rel = "stylesheet", d.href = l.href, a.head.appendChild(d);
|
|
3084
|
+
} else
|
|
3085
|
+
console.warn("Error copying styles:", u);
|
|
3086
|
+
}
|
|
3087
|
+
});
|
|
3088
|
+
}
|
|
3089
|
+
const Va = ({
|
|
3090
|
+
windowInstance: o,
|
|
3091
|
+
onClose: a,
|
|
3092
|
+
children: l
|
|
3093
|
+
}) => {
|
|
3094
|
+
const u = Bn(() => document.createElement("div"), []);
|
|
3095
|
+
return H(() => {
|
|
3096
|
+
const d = o;
|
|
3097
|
+
d.document.body.innerHTML = "", d.document.body.appendChild(u), d.document.body.classList.add("bb_"), da(document, d.document), d.document.title = document.title || "Blockbite Editor";
|
|
3098
|
+
const f = () => {
|
|
3099
|
+
setTimeout(a, 100);
|
|
3100
|
+
};
|
|
3101
|
+
return d.addEventListener("beforeunload", f), () => {
|
|
3102
|
+
d.removeEventListener("beforeunload", f);
|
|
3103
|
+
};
|
|
3104
|
+
}, [o]), Dt(l, u);
|
|
3105
|
+
}, Ba = ({
|
|
3106
|
+
children: o,
|
|
3107
|
+
status: a = "success",
|
|
3108
|
+
className: l
|
|
3109
|
+
}) => {
|
|
3110
|
+
const [u, d] = L(!0);
|
|
3111
|
+
return /* @__PURE__ */ n.jsx(Q, { onClick: () => d(!1), children: u && /* @__PURE__ */ n.jsx(
|
|
3112
|
+
Nn,
|
|
3113
|
+
{
|
|
3114
|
+
status: a,
|
|
3115
|
+
className: z(l),
|
|
3116
|
+
onRemove: () => d(!1),
|
|
3117
|
+
children: o
|
|
3118
|
+
}
|
|
3119
|
+
) });
|
|
3120
|
+
}, Ya = ({
|
|
3121
|
+
label: o,
|
|
3122
|
+
value: a,
|
|
3123
|
+
onChange: l,
|
|
3124
|
+
...u
|
|
3125
|
+
}) => {
|
|
3126
|
+
const [d, f] = L(!1);
|
|
3127
|
+
return /* @__PURE__ */ n.jsx(
|
|
3128
|
+
An,
|
|
3129
|
+
{
|
|
3130
|
+
label: o,
|
|
3131
|
+
value: a,
|
|
3132
|
+
type: d ? "text" : "password",
|
|
3133
|
+
suffix: /* @__PURE__ */ n.jsx(In, { variant: "control", children: /* @__PURE__ */ n.jsx(
|
|
3134
|
+
ve,
|
|
3135
|
+
{
|
|
3136
|
+
icon: /* @__PURE__ */ n.jsx(zn, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx(
|
|
3137
|
+
qn,
|
|
3138
|
+
{
|
|
3139
|
+
d: d ? "M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z" : "M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z"
|
|
3140
|
+
}
|
|
3141
|
+
) }),
|
|
3142
|
+
label: "Show password",
|
|
3143
|
+
onClick: () => f((v) => !v),
|
|
3144
|
+
size: "small"
|
|
3145
|
+
}
|
|
3146
|
+
) }),
|
|
3147
|
+
onChange: l,
|
|
3148
|
+
...u
|
|
3149
|
+
}
|
|
3150
|
+
);
|
|
3151
|
+
}, za = ({
|
|
3152
|
+
items: o,
|
|
3153
|
+
activeId: a,
|
|
3154
|
+
onSelect: l,
|
|
3155
|
+
className: u
|
|
3156
|
+
}) => /* @__PURE__ */ n.jsx(Q, { important: !0, className: u, children: /* @__PURE__ */ n.jsx("div", { className: "w-[200px] overflow-y-auto border-r border-gray-200 gap-2", children: o.map((d) => /* @__PURE__ */ n.jsxs(
|
|
3157
|
+
"div",
|
|
3158
|
+
{
|
|
3159
|
+
onClick: () => l(d.id),
|
|
3160
|
+
className: `cursor-pointer p-2 border-l-4 flex gap-2 items-center ${a === d.id ? "border-blue-500 bg-gray-100" : "border-transparent"}`,
|
|
3161
|
+
children: [
|
|
3162
|
+
/* @__PURE__ */ n.jsx("span", { className: "rounded bg-slate-300 w-12 h-12 flex items-center justify-center text-2xl font-bold text-white", children: d.name.charAt(0).toUpperCase() }),
|
|
3163
|
+
/* @__PURE__ */ n.jsx("p", { className: "text-sm text-center mt-1", children: d.name })
|
|
3164
|
+
]
|
|
3165
|
+
},
|
|
3166
|
+
d.id
|
|
3167
|
+
)) }) });
|
|
3168
|
+
function qa(o) {
|
|
3169
|
+
const { media: a, mediaClass: l } = o, { url: u, alt: d, sizes: f } = a;
|
|
3170
|
+
if (f === void 0)
|
|
3171
|
+
return /* @__PURE__ */ n.jsx("img", { src: u, alt: d, className: `bf_media ${l}` });
|
|
3172
|
+
const { thumbnail: v, medium: h, large: b } = f, p = v || u, C = h || u, _ = b || u;
|
|
3173
|
+
return /* @__PURE__ */ n.jsxs("picture", { className: "bf_responsive-media", children: [
|
|
3174
|
+
p ? /* @__PURE__ */ n.jsx(
|
|
3175
|
+
"source",
|
|
3176
|
+
{
|
|
3177
|
+
media: "(max-width: 768px)",
|
|
3178
|
+
srcSet: p,
|
|
3179
|
+
className: `bf_media ${l}`
|
|
3180
|
+
}
|
|
3181
|
+
) : null,
|
|
3182
|
+
C ? /* @__PURE__ */ n.jsx(
|
|
3183
|
+
"source",
|
|
3184
|
+
{
|
|
3185
|
+
media: "(min-width: 1024px)",
|
|
3186
|
+
srcSet: C,
|
|
3187
|
+
className: `bf_media ${l}`
|
|
3188
|
+
}
|
|
3189
|
+
) : null,
|
|
3190
|
+
_ ? /* @__PURE__ */ n.jsx(
|
|
3191
|
+
"source",
|
|
3192
|
+
{
|
|
3193
|
+
media: "(min-width: 1536px)",
|
|
3194
|
+
srcSet: _,
|
|
3195
|
+
className: `bf_media ${l}`
|
|
3196
|
+
}
|
|
3197
|
+
) : null,
|
|
3198
|
+
C ? /* @__PURE__ */ n.jsx("img", { src: C, alt: d, className: `bf_media ${l}` }) : null
|
|
3199
|
+
] });
|
|
3200
|
+
}
|
|
3201
|
+
function Ga(o) {
|
|
3202
|
+
const { media: a, mediaClass: l } = o, { url: u } = a, d = u;
|
|
3203
|
+
return /* @__PURE__ */ n.jsx(
|
|
3204
|
+
"video",
|
|
3205
|
+
{
|
|
3206
|
+
className: `bf_responsive-media ${l}`,
|
|
3207
|
+
preload: "none",
|
|
3208
|
+
playsInline: !0,
|
|
3209
|
+
controls: !0,
|
|
3210
|
+
autoPlay: !0,
|
|
3211
|
+
muted: !0,
|
|
3212
|
+
loop: !0,
|
|
3213
|
+
children: /* @__PURE__ */ n.jsx("source", { src: d, type: "video/mp4" })
|
|
3214
|
+
}
|
|
3215
|
+
);
|
|
3216
|
+
}
|
|
3217
|
+
const Ha = ({
|
|
3218
|
+
children: o,
|
|
3219
|
+
className: a = "",
|
|
3220
|
+
height: l = "large"
|
|
3221
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
3222
|
+
Q,
|
|
3223
|
+
{
|
|
3224
|
+
className: z("scrollbar relative overflow-y-scroll", a, {
|
|
3225
|
+
"h-[400px]": l === "large",
|
|
3226
|
+
"h-[300px]": l === "medium",
|
|
3227
|
+
"h-[200px]": l === "small"
|
|
3228
|
+
}),
|
|
3229
|
+
children: o
|
|
3230
|
+
}
|
|
3231
|
+
), Ka = ({
|
|
3232
|
+
sections: o,
|
|
3233
|
+
setSections: a,
|
|
3234
|
+
activeSection: l,
|
|
3235
|
+
setActiveSection: u,
|
|
3236
|
+
Update: d,
|
|
3237
|
+
newSection: f,
|
|
3238
|
+
setCode: v,
|
|
3239
|
+
addons: h
|
|
3240
|
+
}) => {
|
|
3241
|
+
const [b, p] = L({
|
|
3242
|
+
id: "",
|
|
3243
|
+
name: ""
|
|
3244
|
+
}), C = Tr(null), _ = () => {
|
|
3245
|
+
const j = { ...f() };
|
|
3246
|
+
a([...o, j]);
|
|
3247
|
+
}, M = () => {
|
|
3248
|
+
if (!l || o.length === 0) return;
|
|
3249
|
+
const j = o.filter(
|
|
3250
|
+
(U) => U.id !== l
|
|
3251
|
+
);
|
|
3252
|
+
let ee = null;
|
|
3253
|
+
if (j.length > 0) {
|
|
3254
|
+
const U = o.findIndex((q) => q.id === l), A = Math.min(U, j.length - 1);
|
|
3255
|
+
ee = j[A]?.id || j[0]?.id;
|
|
3256
|
+
} else {
|
|
3257
|
+
const U = { ...f() };
|
|
3258
|
+
j.push(U), ee = U.id;
|
|
3259
|
+
}
|
|
3260
|
+
a(j), u(ee), v(j.find((U) => U.id === ee)?.code || "");
|
|
3261
|
+
}, P = (j) => {
|
|
3262
|
+
a(
|
|
3263
|
+
(ee) => ee.map(
|
|
3264
|
+
(U) => U.id === b.id ? { ...U, name: j } : U
|
|
3265
|
+
)
|
|
3266
|
+
), p({
|
|
3267
|
+
id: "",
|
|
3268
|
+
name: ""
|
|
3269
|
+
});
|
|
3270
|
+
};
|
|
3271
|
+
return /* @__PURE__ */ n.jsxs(Q, { important: !0, className: "w-[200px] border-r", children: [
|
|
3272
|
+
/* @__PURE__ */ n.jsxs("ul", { className: "h-[calc(100%-80px)] divide-y overflow-auto", children: [
|
|
3273
|
+
h,
|
|
3274
|
+
/* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("ul", { className: "divide-y border-b", children: o.map((j, ee) => /* @__PURE__ */ n.jsxs(
|
|
3275
|
+
"li",
|
|
3276
|
+
{
|
|
3277
|
+
className: "relative m-0",
|
|
3278
|
+
children: [
|
|
3279
|
+
/* @__PURE__ */ n.jsx(
|
|
3280
|
+
"button",
|
|
3281
|
+
{
|
|
3282
|
+
className: z(
|
|
3283
|
+
"text-gray-medium w-full truncate bg-opacity-50 px-3 py-2 text-left text-sm/6 font-semibold hover:bg-easy hover:text-wordpress",
|
|
3284
|
+
{
|
|
3285
|
+
"bg-easy": j.id === l
|
|
3286
|
+
}
|
|
3287
|
+
),
|
|
3288
|
+
onClick: () => {
|
|
3289
|
+
u(j.id), d(l, j.id);
|
|
3290
|
+
},
|
|
3291
|
+
onDoubleClick: () => {
|
|
3292
|
+
p({
|
|
3293
|
+
id: j.id,
|
|
3294
|
+
name: j.name
|
|
3295
|
+
});
|
|
3296
|
+
},
|
|
3297
|
+
children: j.name
|
|
3298
|
+
}
|
|
3299
|
+
),
|
|
3300
|
+
b.id === j.id && /* @__PURE__ */ n.jsx(
|
|
3301
|
+
rt,
|
|
3302
|
+
{
|
|
3303
|
+
className: "absolute left-0 top-0 h-full w-full",
|
|
3304
|
+
defaultValue: b.name,
|
|
3305
|
+
onChange: (U) => p({
|
|
3306
|
+
...b,
|
|
3307
|
+
name: U
|
|
3308
|
+
}),
|
|
3309
|
+
ref: C,
|
|
3310
|
+
onBlur: (U) => P(U)
|
|
3311
|
+
}
|
|
3312
|
+
)
|
|
3313
|
+
]
|
|
3314
|
+
},
|
|
3315
|
+
`section__${ee}__${j?.id}`
|
|
3316
|
+
)) }) })
|
|
3317
|
+
] }),
|
|
3318
|
+
/* @__PURE__ */ n.jsxs(Q, { className: "flex justify-center gap-2 p-2", children: [
|
|
3319
|
+
/* @__PURE__ */ n.jsx(
|
|
3320
|
+
ve,
|
|
3321
|
+
{
|
|
3322
|
+
onClick: _,
|
|
3323
|
+
icon: /* @__PURE__ */ n.jsx(Cn, {}),
|
|
3324
|
+
variant: "tertiary",
|
|
3325
|
+
size: "compact",
|
|
3326
|
+
children: "Add"
|
|
3327
|
+
}
|
|
3328
|
+
),
|
|
3329
|
+
/* @__PURE__ */ n.jsx(
|
|
3330
|
+
ve,
|
|
3331
|
+
{
|
|
3332
|
+
onClick: M,
|
|
3333
|
+
icon: /* @__PURE__ */ n.jsx(wn, {}),
|
|
3334
|
+
variant: "tertiary",
|
|
3335
|
+
size: "compact",
|
|
3336
|
+
children: "Remove"
|
|
3337
|
+
}
|
|
3338
|
+
)
|
|
3339
|
+
] })
|
|
3340
|
+
] });
|
|
3341
|
+
}, Ja = ({
|
|
3342
|
+
onChange: o,
|
|
3343
|
+
className: a,
|
|
3344
|
+
defaultValue: l,
|
|
3345
|
+
options: u,
|
|
3346
|
+
label: d = ""
|
|
3347
|
+
}) => {
|
|
3348
|
+
const [f, v] = L("");
|
|
3349
|
+
H(() => {
|
|
3350
|
+
v(l);
|
|
3351
|
+
}, []);
|
|
3352
|
+
const h = (b) => {
|
|
3353
|
+
v(b), o && o(b);
|
|
3354
|
+
};
|
|
3355
|
+
return /* @__PURE__ */ n.jsxs("div", { className: a, children: [
|
|
3356
|
+
u && u.length > 0 && /* @__PURE__ */ n.jsx(
|
|
3357
|
+
$n,
|
|
3358
|
+
{
|
|
3359
|
+
label: d || "",
|
|
3360
|
+
value: f || "",
|
|
3361
|
+
onChange: h,
|
|
3362
|
+
options: [{ value: "", label: "Select an option" }, ...u]
|
|
3363
|
+
}
|
|
3364
|
+
),
|
|
3365
|
+
!u && /* @__PURE__ */ n.jsx("p", { children: "No options available" })
|
|
3366
|
+
] });
|
|
3367
|
+
}, { select: pa, dispatch: va } = wp.data, Xa = ({
|
|
3368
|
+
buttonText: o = "Add block"
|
|
3369
|
+
}) => {
|
|
3370
|
+
const a = () => {
|
|
3371
|
+
const l = pa("core/block-editor").getSelectedBlock(), { clientId: u, innerBlocks: d } = l, f = d[d.length - 1], v = Gn(
|
|
3372
|
+
f.name,
|
|
3373
|
+
f.attributes,
|
|
3374
|
+
f.innerBlocks
|
|
3375
|
+
);
|
|
3376
|
+
va("core/block-editor").insertBlocks(v, 0, u);
|
|
3377
|
+
};
|
|
3378
|
+
return /* @__PURE__ */ n.jsx(ve, { variant: "primary", onClick: () => a(), children: o });
|
|
3379
|
+
}, Za = ({ children: o, watch: a, className: l }) => {
|
|
3380
|
+
const [u, d] = L(0);
|
|
3381
|
+
return H(() => {
|
|
3382
|
+
setTimeout(() => {
|
|
3383
|
+
d(1);
|
|
3384
|
+
}, 250);
|
|
3385
|
+
}, [a]), /* @__PURE__ */ n.jsx(
|
|
3386
|
+
Q,
|
|
3387
|
+
{
|
|
3388
|
+
className: z(
|
|
3389
|
+
l,
|
|
3390
|
+
"duration-50 transform transition-all ease-in-out",
|
|
3391
|
+
{
|
|
3392
|
+
"translate-x-0": u === 1,
|
|
3393
|
+
"-translate-x-full": u === 0
|
|
3394
|
+
}
|
|
3395
|
+
),
|
|
3396
|
+
children: o
|
|
3397
|
+
}
|
|
3398
|
+
);
|
|
3399
|
+
}, Qa = ({ className: o, defaultValue: a }) => {
|
|
3400
|
+
const [l, u] = L(!1);
|
|
3401
|
+
return H(() => {
|
|
3402
|
+
setTimeout(() => {
|
|
3403
|
+
u(!1);
|
|
3404
|
+
}, 500), a && u(!0);
|
|
3405
|
+
}, [l, a]), l && /* @__PURE__ */ n.jsx(Dn, { className: z(o) });
|
|
3406
|
+
}, tt = Ft(null), ma = ({
|
|
3407
|
+
children: o,
|
|
3408
|
+
defaultValue: a,
|
|
3409
|
+
value: l,
|
|
3410
|
+
onValueChange: u,
|
|
3411
|
+
...d
|
|
3412
|
+
}) => {
|
|
3413
|
+
const f = l !== void 0, [v, h] = L(a || ""), C = {
|
|
3414
|
+
activeTab: f ? l : v,
|
|
3415
|
+
setActiveTab: (_) => {
|
|
3416
|
+
f || h(_), u && u(_);
|
|
3417
|
+
}
|
|
3418
|
+
};
|
|
3419
|
+
return /* @__PURE__ */ n.jsx(tt.Provider, { value: C, children: /* @__PURE__ */ n.jsx(Q, { important: !0, className: d.className, children: o }) });
|
|
3420
|
+
}, ha = ({
|
|
3421
|
+
options: o,
|
|
3422
|
+
children: a,
|
|
3423
|
+
className: l,
|
|
3424
|
+
onValueChange: u
|
|
3425
|
+
}) => {
|
|
3426
|
+
const d = Qr(tt), f = u || d?.setActiveTab;
|
|
3427
|
+
return /* @__PURE__ */ n.jsx(
|
|
3428
|
+
Fn,
|
|
3429
|
+
{
|
|
3430
|
+
className: z("tabs-list", l),
|
|
3431
|
+
tabs: o,
|
|
3432
|
+
onSelect: (v) => {
|
|
3433
|
+
f(v);
|
|
3434
|
+
},
|
|
3435
|
+
children: () => a
|
|
3436
|
+
}
|
|
3437
|
+
);
|
|
3438
|
+
}, ya = ({
|
|
3439
|
+
value: o,
|
|
3440
|
+
children: a,
|
|
3441
|
+
className: l
|
|
3442
|
+
}) => Qr(tt)?.activeTab === o ? /* @__PURE__ */ n.jsx(Q, { className: l, children: a }) : null, eo = {
|
|
3443
|
+
Wrapper: ma,
|
|
3444
|
+
List: ha,
|
|
3445
|
+
Content: ya
|
|
3446
|
+
}, ro = ({
|
|
3447
|
+
children: o,
|
|
3448
|
+
onClick: a,
|
|
3449
|
+
color: l = "blue",
|
|
3450
|
+
className: u
|
|
3451
|
+
}) => /* @__PURE__ */ n.jsx("button", { onClick: a, children: /* @__PURE__ */ n.jsx("div", { color: l, className: z(u), children: o }) }), to = ({
|
|
3452
|
+
onChange: o,
|
|
3453
|
+
defaultValue: a,
|
|
3454
|
+
children: l
|
|
3455
|
+
}) => /* @__PURE__ */ n.jsxs(Q, { className: "blockbite-ui__text-control-label flex items-center", children: [
|
|
3456
|
+
/* @__PURE__ */ n.jsxs("span", { className: "outline-b-2 relative block -outline-offset-2 outline-black", children: [
|
|
3457
|
+
/* @__PURE__ */ n.jsx(Xr, { type: "text", value: a, onChange: o }),
|
|
3458
|
+
/* @__PURE__ */ n.jsx(It, { className: "absolute right-1 top-2" })
|
|
3459
|
+
] }),
|
|
3460
|
+
" ",
|
|
3461
|
+
l
|
|
3462
|
+
] }), no = Zr(
|
|
3463
|
+
({
|
|
3464
|
+
className: o,
|
|
3465
|
+
options: a,
|
|
3466
|
+
defaultPressed: l,
|
|
3467
|
+
display: u = "label",
|
|
3468
|
+
label: d = !1,
|
|
3469
|
+
onPressedChange: f
|
|
3470
|
+
}) => {
|
|
3471
|
+
const [v, h] = L(""), b = (p) => {
|
|
3472
|
+
f(p);
|
|
3473
|
+
};
|
|
3474
|
+
return H(() => {
|
|
3475
|
+
h(l);
|
|
3476
|
+
}, [l]), /* @__PURE__ */ n.jsx(Q, { className: z(o), children: /* @__PURE__ */ n.jsx(
|
|
3477
|
+
Ln,
|
|
3478
|
+
{
|
|
3479
|
+
isBlock: !0,
|
|
3480
|
+
value: v,
|
|
3481
|
+
label: typeof d == "string" ? d : "",
|
|
3482
|
+
children: a.map(
|
|
3483
|
+
(p) => u === "icon" ? /* @__PURE__ */ n.jsx(
|
|
3484
|
+
Mn,
|
|
3485
|
+
{
|
|
3486
|
+
icon: p.icon,
|
|
3487
|
+
label: p.label,
|
|
3488
|
+
value: p.value,
|
|
3489
|
+
onClick: () => b(p.value)
|
|
3490
|
+
},
|
|
3491
|
+
`ToggleGroupControlIcon-${p.value}`
|
|
3492
|
+
) : /* @__PURE__ */ n.jsx(
|
|
3493
|
+
Wn,
|
|
3494
|
+
{
|
|
3495
|
+
value: p.value,
|
|
3496
|
+
label: p.label,
|
|
3497
|
+
onClick: () => b(p.value)
|
|
3498
|
+
},
|
|
3499
|
+
`ToggleGroupControlOption-${p.value}`
|
|
3500
|
+
)
|
|
3501
|
+
)
|
|
3502
|
+
}
|
|
3503
|
+
) });
|
|
3504
|
+
}
|
|
3505
|
+
), ao = ({
|
|
3506
|
+
label: o,
|
|
3507
|
+
className: a,
|
|
3508
|
+
onChange: l,
|
|
3509
|
+
checked: u = !1
|
|
3510
|
+
// Default to false if undefined, so it's always controlled
|
|
3511
|
+
}) => {
|
|
3512
|
+
const [d, f] = L(u);
|
|
3513
|
+
return H(() => {
|
|
3514
|
+
f(u);
|
|
3515
|
+
}, [u]), /* @__PURE__ */ n.jsx(Q, { className: z(a, "flex items-center gap-2"), children: /* @__PURE__ */ n.jsx(
|
|
3516
|
+
Un,
|
|
3517
|
+
{
|
|
3518
|
+
checked: d,
|
|
3519
|
+
label: o,
|
|
3520
|
+
onChange: (v) => {
|
|
3521
|
+
f(v), l && l(v);
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
) });
|
|
3525
|
+
};
|
|
3526
|
+
export {
|
|
3527
|
+
Ra as AutocompleteDropdown,
|
|
3528
|
+
ka as Badge,
|
|
3529
|
+
Ta as BitePreview,
|
|
3530
|
+
Sa as Button,
|
|
3531
|
+
ta as ButtonToggle,
|
|
3532
|
+
na as ButtonToggleGroup,
|
|
3533
|
+
Oa as Chapter,
|
|
3534
|
+
Pa as ChapterDivider,
|
|
3535
|
+
Na as Checkbox,
|
|
3536
|
+
Aa as DisappearingMessage,
|
|
3537
|
+
aa as DropdownPicker,
|
|
3538
|
+
Ia as EmptyState,
|
|
3539
|
+
$a as FloatingPanel,
|
|
3540
|
+
Da as FocalPointControl,
|
|
3541
|
+
He as Icon,
|
|
3542
|
+
Fa as LinkPicker,
|
|
3543
|
+
La as MediaPicker,
|
|
3544
|
+
Ma as MetricsControl,
|
|
3545
|
+
Wa as Modal,
|
|
3546
|
+
Ua as ModalClose,
|
|
3547
|
+
ca as ModalContent,
|
|
3548
|
+
ua as ModalFooter,
|
|
3549
|
+
la as ModalHeader,
|
|
3550
|
+
fa as ModalTrigger,
|
|
3551
|
+
Va as NewWindowPortal,
|
|
3552
|
+
Ba as Notice,
|
|
3553
|
+
Ya as PasswordInput,
|
|
3554
|
+
sa as Popover,
|
|
3555
|
+
za as ProjectsNavigation,
|
|
3556
|
+
ia as RangeSlider,
|
|
3557
|
+
qa as ResponsiveImage,
|
|
3558
|
+
Ga as ResponsiveVideo,
|
|
3559
|
+
Ha as ScrollList,
|
|
3560
|
+
Ka as SectionList,
|
|
3561
|
+
Ja as SelectControlWrapper,
|
|
3562
|
+
Xa as SingleBlockTypeAppender,
|
|
3563
|
+
Za as SlideIn,
|
|
3564
|
+
Qa as Spinner,
|
|
3565
|
+
eo as Tabs,
|
|
3566
|
+
ya as TabsContent,
|
|
3567
|
+
ha as TabsList,
|
|
3568
|
+
ma as TabsWrapper,
|
|
3569
|
+
ro as Tag,
|
|
3570
|
+
rt as TextControl,
|
|
3571
|
+
to as TextControlLabel,
|
|
3572
|
+
no as ToggleGroup,
|
|
3573
|
+
ao as ToggleSwitch,
|
|
3574
|
+
Q as Wrap,
|
|
3575
|
+
Mt as useModalContext
|
|
3576
|
+
};
|
|
3577
|
+
//# sourceMappingURL=index.js.map
|