pesona-ui 0.1.0
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/README.md +69 -0
- package/dist/index.d.ts +629 -0
- package/dist/pesona-ui.cjs.js +23 -0
- package/dist/pesona-ui.css +1 -0
- package/dist/pesona-ui.es.js +3879 -0
- package/package.json +70 -0
|
@@ -0,0 +1,3879 @@
|
|
|
1
|
+
import O, { useEffect as $, useState as D, useRef as I, useMemo as ge, forwardRef as K, useImperativeHandle as ct, useCallback as X } from "react";
|
|
2
|
+
import _e, { createPortal as dt } from "react-dom";
|
|
3
|
+
function jt(e) {
|
|
4
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
|
+
}
|
|
6
|
+
var me = { exports: {} }, ae = {};
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react-jsx-runtime.production.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
var Me;
|
|
17
|
+
function Et() {
|
|
18
|
+
if (Me) return ae;
|
|
19
|
+
Me = 1;
|
|
20
|
+
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
21
|
+
function n(a, l, d) {
|
|
22
|
+
var m = null;
|
|
23
|
+
if (d !== void 0 && (m = "" + d), l.key !== void 0 && (m = "" + l.key), "key" in l) {
|
|
24
|
+
d = {};
|
|
25
|
+
for (var c in l)
|
|
26
|
+
c !== "key" && (d[c] = l[c]);
|
|
27
|
+
} else d = l;
|
|
28
|
+
return l = d.ref, {
|
|
29
|
+
$$typeof: e,
|
|
30
|
+
type: a,
|
|
31
|
+
key: m,
|
|
32
|
+
ref: l !== void 0 ? l : null,
|
|
33
|
+
props: d
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return ae.Fragment = r, ae.jsx = n, ae.jsxs = n, ae;
|
|
37
|
+
}
|
|
38
|
+
var ie = {};
|
|
39
|
+
/**
|
|
40
|
+
* @license React
|
|
41
|
+
* react-jsx-runtime.development.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/
|
|
48
|
+
var Ie;
|
|
49
|
+
function Nt() {
|
|
50
|
+
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
|
+
function e(x) {
|
|
52
|
+
if (x == null) return null;
|
|
53
|
+
if (typeof x == "function")
|
|
54
|
+
return x.$$typeof === P ? null : x.displayName || x.name || null;
|
|
55
|
+
if (typeof x == "string") return x;
|
|
56
|
+
switch (x) {
|
|
57
|
+
case p:
|
|
58
|
+
return "Fragment";
|
|
59
|
+
case w:
|
|
60
|
+
return "Profiler";
|
|
61
|
+
case b:
|
|
62
|
+
return "StrictMode";
|
|
63
|
+
case s:
|
|
64
|
+
return "Suspense";
|
|
65
|
+
case h:
|
|
66
|
+
return "SuspenseList";
|
|
67
|
+
case k:
|
|
68
|
+
return "Activity";
|
|
69
|
+
}
|
|
70
|
+
if (typeof x == "object")
|
|
71
|
+
switch (typeof x.tag == "number" && console.error(
|
|
72
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
73
|
+
), x.$$typeof) {
|
|
74
|
+
case N:
|
|
75
|
+
return "Portal";
|
|
76
|
+
case R:
|
|
77
|
+
return (x.displayName || "Context") + ".Provider";
|
|
78
|
+
case y:
|
|
79
|
+
return (x._context.displayName || "Context") + ".Consumer";
|
|
80
|
+
case A:
|
|
81
|
+
var _ = x.render;
|
|
82
|
+
return x = x.displayName, x || (x = _.displayName || _.name || "", x = x !== "" ? "ForwardRef(" + x + ")" : "ForwardRef"), x;
|
|
83
|
+
case v:
|
|
84
|
+
return _ = x.displayName || null, _ !== null ? _ : e(x.type) || "Memo";
|
|
85
|
+
case j:
|
|
86
|
+
_ = x._payload, x = x._init;
|
|
87
|
+
try {
|
|
88
|
+
return e(x(_));
|
|
89
|
+
} catch {
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
function r(x) {
|
|
95
|
+
return "" + x;
|
|
96
|
+
}
|
|
97
|
+
function n(x) {
|
|
98
|
+
try {
|
|
99
|
+
r(x);
|
|
100
|
+
var _ = !1;
|
|
101
|
+
} catch {
|
|
102
|
+
_ = !0;
|
|
103
|
+
}
|
|
104
|
+
if (_) {
|
|
105
|
+
_ = console;
|
|
106
|
+
var M = _.error, z = typeof Symbol == "function" && Symbol.toStringTag && x[Symbol.toStringTag] || x.constructor.name || "Object";
|
|
107
|
+
return M.call(
|
|
108
|
+
_,
|
|
109
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
110
|
+
z
|
|
111
|
+
), r(x);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function a(x) {
|
|
115
|
+
if (x === p) return "<>";
|
|
116
|
+
if (typeof x == "object" && x !== null && x.$$typeof === j)
|
|
117
|
+
return "<...>";
|
|
118
|
+
try {
|
|
119
|
+
var _ = e(x);
|
|
120
|
+
return _ ? "<" + _ + ">" : "<...>";
|
|
121
|
+
} catch {
|
|
122
|
+
return "<...>";
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
function l() {
|
|
126
|
+
var x = H.A;
|
|
127
|
+
return x === null ? null : x.getOwner();
|
|
128
|
+
}
|
|
129
|
+
function d() {
|
|
130
|
+
return Error("react-stack-top-frame");
|
|
131
|
+
}
|
|
132
|
+
function m(x) {
|
|
133
|
+
if (W.call(x, "key")) {
|
|
134
|
+
var _ = Object.getOwnPropertyDescriptor(x, "key").get;
|
|
135
|
+
if (_ && _.isReactWarning) return !1;
|
|
136
|
+
}
|
|
137
|
+
return x.key !== void 0;
|
|
138
|
+
}
|
|
139
|
+
function c(x, _) {
|
|
140
|
+
function M() {
|
|
141
|
+
V || (V = !0, console.error(
|
|
142
|
+
"%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://react.dev/link/special-props)",
|
|
143
|
+
_
|
|
144
|
+
));
|
|
145
|
+
}
|
|
146
|
+
M.isReactWarning = !0, Object.defineProperty(x, "key", {
|
|
147
|
+
get: M,
|
|
148
|
+
configurable: !0
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function i() {
|
|
152
|
+
var x = e(this.type);
|
|
153
|
+
return fe[x] || (fe[x] = !0, console.error(
|
|
154
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
155
|
+
)), x = this.props.ref, x !== void 0 ? x : null;
|
|
156
|
+
}
|
|
157
|
+
function o(x, _, M, z, Y, G, ye, je) {
|
|
158
|
+
return M = G.ref, x = {
|
|
159
|
+
$$typeof: E,
|
|
160
|
+
type: x,
|
|
161
|
+
key: _,
|
|
162
|
+
props: G,
|
|
163
|
+
_owner: Y
|
|
164
|
+
}, (M !== void 0 ? M : null) !== null ? Object.defineProperty(x, "ref", {
|
|
165
|
+
enumerable: !1,
|
|
166
|
+
get: i
|
|
167
|
+
}) : Object.defineProperty(x, "ref", { enumerable: !1, value: null }), x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
168
|
+
configurable: !1,
|
|
169
|
+
enumerable: !1,
|
|
170
|
+
writable: !0,
|
|
171
|
+
value: 0
|
|
172
|
+
}), Object.defineProperty(x, "_debugInfo", {
|
|
173
|
+
configurable: !1,
|
|
174
|
+
enumerable: !1,
|
|
175
|
+
writable: !0,
|
|
176
|
+
value: null
|
|
177
|
+
}), Object.defineProperty(x, "_debugStack", {
|
|
178
|
+
configurable: !1,
|
|
179
|
+
enumerable: !1,
|
|
180
|
+
writable: !0,
|
|
181
|
+
value: ye
|
|
182
|
+
}), Object.defineProperty(x, "_debugTask", {
|
|
183
|
+
configurable: !1,
|
|
184
|
+
enumerable: !1,
|
|
185
|
+
writable: !0,
|
|
186
|
+
value: je
|
|
187
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
188
|
+
}
|
|
189
|
+
function u(x, _, M, z, Y, G, ye, je) {
|
|
190
|
+
var B = _.children;
|
|
191
|
+
if (B !== void 0)
|
|
192
|
+
if (z)
|
|
193
|
+
if (S(B)) {
|
|
194
|
+
for (z = 0; z < B.length; z++)
|
|
195
|
+
f(B[z]);
|
|
196
|
+
Object.freeze && Object.freeze(B);
|
|
197
|
+
} else
|
|
198
|
+
console.error(
|
|
199
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
|
+
);
|
|
201
|
+
else f(B);
|
|
202
|
+
if (W.call(_, "key")) {
|
|
203
|
+
B = e(x);
|
|
204
|
+
var ee = Object.keys(_).filter(function(yt) {
|
|
205
|
+
return yt !== "key";
|
|
206
|
+
});
|
|
207
|
+
z = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", De[B + z] || (ee = 0 < ee.length ? "{" + ee.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
209
|
+
let props = %s;
|
|
210
|
+
<%s {...props} />
|
|
211
|
+
React keys must be passed directly to JSX without using spread:
|
|
212
|
+
let props = %s;
|
|
213
|
+
<%s key={someKey} {...props} />`,
|
|
214
|
+
z,
|
|
215
|
+
B,
|
|
216
|
+
ee,
|
|
217
|
+
B
|
|
218
|
+
), De[B + z] = !0);
|
|
219
|
+
}
|
|
220
|
+
if (B = null, M !== void 0 && (n(M), B = "" + M), m(_) && (n(_.key), B = "" + _.key), "key" in _) {
|
|
221
|
+
M = {};
|
|
222
|
+
for (var Ee in _)
|
|
223
|
+
Ee !== "key" && (M[Ee] = _[Ee]);
|
|
224
|
+
} else M = _;
|
|
225
|
+
return B && c(
|
|
226
|
+
M,
|
|
227
|
+
typeof x == "function" ? x.displayName || x.name || "Unknown" : x
|
|
228
|
+
), o(
|
|
229
|
+
x,
|
|
230
|
+
B,
|
|
231
|
+
G,
|
|
232
|
+
Y,
|
|
233
|
+
l(),
|
|
234
|
+
M,
|
|
235
|
+
ye,
|
|
236
|
+
je
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
function f(x) {
|
|
240
|
+
typeof x == "object" && x !== null && x.$$typeof === E && x._store && (x._store.validated = 1);
|
|
241
|
+
}
|
|
242
|
+
var g = O, E = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), R = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), H = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, S = Array.isArray, C = console.createTask ? console.createTask : function() {
|
|
243
|
+
return null;
|
|
244
|
+
};
|
|
245
|
+
g = {
|
|
246
|
+
react_stack_bottom_frame: function(x) {
|
|
247
|
+
return x();
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
var V, fe = {}, Ae = g.react_stack_bottom_frame.bind(
|
|
251
|
+
g,
|
|
252
|
+
d
|
|
253
|
+
)(), Pe = C(a(d)), De = {};
|
|
254
|
+
ie.Fragment = p, ie.jsx = function(x, _, M, z, Y) {
|
|
255
|
+
var G = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
256
|
+
return u(
|
|
257
|
+
x,
|
|
258
|
+
_,
|
|
259
|
+
M,
|
|
260
|
+
!1,
|
|
261
|
+
z,
|
|
262
|
+
Y,
|
|
263
|
+
G ? Error("react-stack-top-frame") : Ae,
|
|
264
|
+
G ? C(a(x)) : Pe
|
|
265
|
+
);
|
|
266
|
+
}, ie.jsxs = function(x, _, M, z, Y) {
|
|
267
|
+
var G = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
268
|
+
return u(
|
|
269
|
+
x,
|
|
270
|
+
_,
|
|
271
|
+
M,
|
|
272
|
+
!0,
|
|
273
|
+
z,
|
|
274
|
+
Y,
|
|
275
|
+
G ? Error("react-stack-top-frame") : Ae,
|
|
276
|
+
G ? C(a(x)) : Pe
|
|
277
|
+
);
|
|
278
|
+
};
|
|
279
|
+
}()), ie;
|
|
280
|
+
}
|
|
281
|
+
var Le;
|
|
282
|
+
function wt() {
|
|
283
|
+
return Le || (Le = 1, process.env.NODE_ENV === "production" ? me.exports = Et() : me.exports = Nt()), me.exports;
|
|
284
|
+
}
|
|
285
|
+
var t = wt();
|
|
286
|
+
const q = ({ type: e = "button", className: r, children: n, ...a }) => /* @__PURE__ */ t.jsx("button", { type: e === "submit" ? "submit" : "button", className: r, ...a, children: n }), Br = ({ children: e, className: r }) => /* @__PURE__ */ t.jsx("div", { className: `card-header ${r}`, children: e }), Vr = ({ children: e, className: r = "", ...n }) => /* @__PURE__ */ t.jsx("div", { className: `card-body ${r}`, ...n, children: e }), Ur = ({ children: e, className: r = "" }) => /* @__PURE__ */ t.jsx("div", { className: `card-footer ${r}`, children: e }), qr = ({ children: e, className: r = "", ...n }) => /* @__PURE__ */ t.jsx("div", { className: `card ${r}`, ...n, children: e }), Gr = () => /* @__PURE__ */ t.jsx("div", { className: "spinner", children: /* @__PURE__ */ t.jsx(
|
|
287
|
+
"svg",
|
|
288
|
+
{
|
|
289
|
+
className: "spinner-icon",
|
|
290
|
+
width: "30px",
|
|
291
|
+
height: "30px",
|
|
292
|
+
viewBox: "0 0 66 66",
|
|
293
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
294
|
+
children: /* @__PURE__ */ t.jsx("circle", { className: "path", fill: "none", strokeWidth: "6", strokeLinecap: "round", cx: "33", cy: "33", r: "30" })
|
|
295
|
+
}
|
|
296
|
+
) }), Q = (e, r) => {
|
|
297
|
+
$(() => {
|
|
298
|
+
if (!Array.isArray(e) || e.length === 0)
|
|
299
|
+
return;
|
|
300
|
+
const n = (a) => {
|
|
301
|
+
e.every((d) => d.current && !d.current.contains(a.target)) && r();
|
|
302
|
+
};
|
|
303
|
+
return document.addEventListener("mousedown", n), () => {
|
|
304
|
+
document.removeEventListener("mousedown", n);
|
|
305
|
+
};
|
|
306
|
+
}, [e, r]);
|
|
307
|
+
}, Wr = ({
|
|
308
|
+
children: e,
|
|
309
|
+
items: r,
|
|
310
|
+
position: n = "bottom-left",
|
|
311
|
+
className: a = ""
|
|
312
|
+
}) => {
|
|
313
|
+
const [l, d] = D(!1), [m, c] = D({ top: 0, left: 0 }), i = I(null), o = I(null);
|
|
314
|
+
return Q([i, o], () => {
|
|
315
|
+
d(!1);
|
|
316
|
+
}), $(() => {
|
|
317
|
+
if (l && i.current && o.current) {
|
|
318
|
+
const u = i.current.getBoundingClientRect(), f = o.current.getBoundingClientRect(), { scrollX: g, scrollY: E } = window;
|
|
319
|
+
let N = 0, p = 0;
|
|
320
|
+
switch (n) {
|
|
321
|
+
case "bottom-left":
|
|
322
|
+
N = u.bottom, p = u.left;
|
|
323
|
+
break;
|
|
324
|
+
case "bottom-right":
|
|
325
|
+
N = u.bottom, p = u.right - f.width;
|
|
326
|
+
break;
|
|
327
|
+
case "top-left":
|
|
328
|
+
N = u.top - f.height, p = u.left;
|
|
329
|
+
break;
|
|
330
|
+
case "top-right":
|
|
331
|
+
N = u.top - f.height, p = u.right - f.width;
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
c({
|
|
335
|
+
top: Math.round(N + E),
|
|
336
|
+
left: Math.round(p + g)
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
}, [l, n]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
340
|
+
/* @__PURE__ */ t.jsx("div", { ref: i, onClick: () => d(!l), children: e }),
|
|
341
|
+
l && _e.createPortal(
|
|
342
|
+
/* @__PURE__ */ t.jsx(
|
|
343
|
+
"div",
|
|
344
|
+
{
|
|
345
|
+
ref: o,
|
|
346
|
+
style: {
|
|
347
|
+
position: "absolute",
|
|
348
|
+
top: `${m.top}px`,
|
|
349
|
+
left: `${m.left}px`
|
|
350
|
+
},
|
|
351
|
+
className: `dropdown-menu ${n} ${a}`,
|
|
352
|
+
children: r.map((u, f) => /* @__PURE__ */ t.jsxs(
|
|
353
|
+
"div",
|
|
354
|
+
{
|
|
355
|
+
className: `dropdown-menu-item ${u.className}`,
|
|
356
|
+
onClick: () => {
|
|
357
|
+
u.onClick(), d(!1);
|
|
358
|
+
},
|
|
359
|
+
children: [
|
|
360
|
+
u.icon && u.icon,
|
|
361
|
+
" ",
|
|
362
|
+
u.label
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
f
|
|
366
|
+
))
|
|
367
|
+
}
|
|
368
|
+
),
|
|
369
|
+
document.body
|
|
370
|
+
)
|
|
371
|
+
] });
|
|
372
|
+
}, Yr = ({ children: e, className: r = "", position: n = "bottom-left" }) => {
|
|
373
|
+
const [a, l] = D(!1), d = I(null), m = I(null), c = I(`dropdown-${Math.random().toString(36).substr(2, 9)}`), i = () => {
|
|
374
|
+
l(!a);
|
|
375
|
+
};
|
|
376
|
+
return Q([d, m], () => {
|
|
377
|
+
l(!1);
|
|
378
|
+
}), /* @__PURE__ */ t.jsx("div", { className: `dropdown ${r}`, ref: d, id: c.current, children: O.Children.map(e, (o) => O.isValidElement(o) ? O.cloneElement(o, {
|
|
379
|
+
toggleDropdown: i,
|
|
380
|
+
isOpen: a,
|
|
381
|
+
position: n,
|
|
382
|
+
contentRef: m,
|
|
383
|
+
dropdownId: c.current
|
|
384
|
+
}) : o) });
|
|
385
|
+
}, Xr = ({
|
|
386
|
+
children: e,
|
|
387
|
+
className: r = "",
|
|
388
|
+
toggleDropdown: n,
|
|
389
|
+
dropdownId: a
|
|
390
|
+
}) => /* @__PURE__ */ t.jsx("div", { className: `dropdown-toggle ${r}`, onClick: n, "data-dropdown-id": a, children: e }), Jr = ({
|
|
391
|
+
children: e,
|
|
392
|
+
className: r = "",
|
|
393
|
+
isOpen: n = !1,
|
|
394
|
+
position: a = "bottom-left",
|
|
395
|
+
contentRef: l,
|
|
396
|
+
dropdownId: d
|
|
397
|
+
}) => {
|
|
398
|
+
const [m, c] = D({ top: 0, left: 0 });
|
|
399
|
+
return $(() => {
|
|
400
|
+
if (n && l?.current) {
|
|
401
|
+
const i = document.querySelector(`[data-dropdown-id="${d}"]`);
|
|
402
|
+
if (i) {
|
|
403
|
+
const o = i.getBoundingClientRect(), u = l.current.getBoundingClientRect(), { scrollX: f, scrollY: g } = window;
|
|
404
|
+
let E = 0, N = 0;
|
|
405
|
+
switch (a) {
|
|
406
|
+
case "bottom-left":
|
|
407
|
+
E = o.bottom, N = o.left;
|
|
408
|
+
break;
|
|
409
|
+
case "bottom-right":
|
|
410
|
+
E = o.bottom, N = o.right - u.width;
|
|
411
|
+
break;
|
|
412
|
+
case "top-left":
|
|
413
|
+
E = o.top - u.height, N = o.left;
|
|
414
|
+
break;
|
|
415
|
+
case "top-right":
|
|
416
|
+
E = o.top - u.height, N = o.right - u.width;
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
c({
|
|
420
|
+
top: Math.round(E + g),
|
|
421
|
+
left: Math.round(N + f)
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}, [n, a, l, d]), n ? dt(
|
|
426
|
+
/* @__PURE__ */ t.jsx(
|
|
427
|
+
"div",
|
|
428
|
+
{
|
|
429
|
+
ref: l,
|
|
430
|
+
style: {
|
|
431
|
+
position: "absolute",
|
|
432
|
+
top: `${m.top}px`,
|
|
433
|
+
left: `${m.left}px`
|
|
434
|
+
},
|
|
435
|
+
className: `dropdown-content ${a} ${r}`,
|
|
436
|
+
children: e
|
|
437
|
+
}
|
|
438
|
+
),
|
|
439
|
+
document.body
|
|
440
|
+
) : null;
|
|
441
|
+
}, Zr = ({ className: e, text: r }) => /* @__PURE__ */ t.jsx("span", { className: e, children: r }), Kr = ({ children: e, className: r = "", ...n }) => /* @__PURE__ */ t.jsx("div", { className: `box ${r}`, ...n, children: e }), $e = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }), Ct = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }), Qr = ({
|
|
442
|
+
className: e = "",
|
|
443
|
+
navClassName: r = "",
|
|
444
|
+
contentClassName: n = "",
|
|
445
|
+
children: a,
|
|
446
|
+
activeTab: l,
|
|
447
|
+
handleActiveTab: d,
|
|
448
|
+
customHeader: m
|
|
449
|
+
}) => {
|
|
450
|
+
const { tabs: c, groups: i } = ge(() => {
|
|
451
|
+
const u = [], f = [];
|
|
452
|
+
return O.Children.forEach(a, (g) => {
|
|
453
|
+
if (O.isValidElement(g)) {
|
|
454
|
+
if (g.type === Ct) {
|
|
455
|
+
const E = [], N = g.props;
|
|
456
|
+
O.Children.forEach(N.children, (p) => {
|
|
457
|
+
O.isValidElement(p) && p.type === $e && (u.push({
|
|
458
|
+
title: p.props.title,
|
|
459
|
+
icon: p.props.icon,
|
|
460
|
+
children: p.props.children
|
|
461
|
+
}), E.push(u.length - 1));
|
|
462
|
+
}), f.push({
|
|
463
|
+
title: N.title,
|
|
464
|
+
tabIndices: E
|
|
465
|
+
});
|
|
466
|
+
} else if (g.type === $e) {
|
|
467
|
+
const E = g.props;
|
|
468
|
+
u.push({
|
|
469
|
+
title: E.title,
|
|
470
|
+
icon: E.icon,
|
|
471
|
+
children: E.children
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}), { tabs: u, groups: f };
|
|
476
|
+
}, [a]);
|
|
477
|
+
$(() => {
|
|
478
|
+
c.length > 0 && (l < 0 || l >= c.length) && d(0);
|
|
479
|
+
}, [c.length, l, d]);
|
|
480
|
+
const o = (u, f) => /* @__PURE__ */ t.jsxs(
|
|
481
|
+
"div",
|
|
482
|
+
{
|
|
483
|
+
className: `tab-item ${f === l ? "active" : ""}`,
|
|
484
|
+
onClick: () => d(f),
|
|
485
|
+
role: "button",
|
|
486
|
+
tabIndex: 0,
|
|
487
|
+
onKeyDown: (g) => {
|
|
488
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), d(f));
|
|
489
|
+
},
|
|
490
|
+
children: [
|
|
491
|
+
u.icon && /* @__PURE__ */ t.jsx("span", { className: "tab-icon", children: u.icon }),
|
|
492
|
+
/* @__PURE__ */ t.jsx("span", { className: "tab-title", children: u.title })
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
`tab-nav-${f}`
|
|
496
|
+
);
|
|
497
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `card tabs ${e}`, children: [
|
|
498
|
+
/* @__PURE__ */ t.jsxs("div", { className: `card-header ${r}`, children: [
|
|
499
|
+
m,
|
|
500
|
+
/* @__PURE__ */ t.jsx("div", { className: "nav-tabs", role: "tablist", children: i.length > 0 ? i.map((u) => /* @__PURE__ */ t.jsxs(O.Fragment, { children: [
|
|
501
|
+
/* @__PURE__ */ t.jsx("legend", { className: "tab-item-legend", children: u.title }),
|
|
502
|
+
u.tabIndices.map((f) => o(c[f], f))
|
|
503
|
+
] }, `group-${u.title}`)) : c.map((u, f) => o(u, f)) })
|
|
504
|
+
] }),
|
|
505
|
+
/* @__PURE__ */ t.jsx("div", { className: `card-body ${n}`, children: /* @__PURE__ */ t.jsx("div", { className: "tab-content", children: /* @__PURE__ */ t.jsx("div", { className: "tab-panel", children: c[l] ? /* @__PURE__ */ t.jsx("div", { children: c[l].children }, `tab-content-${l}`) : /* @__PURE__ */ t.jsx("div", { children: "No content available" }) }) }) })
|
|
506
|
+
] });
|
|
507
|
+
};
|
|
508
|
+
var ut = {
|
|
509
|
+
color: void 0,
|
|
510
|
+
size: void 0,
|
|
511
|
+
className: void 0,
|
|
512
|
+
style: void 0,
|
|
513
|
+
attr: void 0
|
|
514
|
+
}, Fe = O.createContext && /* @__PURE__ */ O.createContext(ut), Rt = ["attr", "size", "title"];
|
|
515
|
+
function Tt(e, r) {
|
|
516
|
+
if (e == null) return {};
|
|
517
|
+
var n = _t(e, r), a, l;
|
|
518
|
+
if (Object.getOwnPropertySymbols) {
|
|
519
|
+
var d = Object.getOwnPropertySymbols(e);
|
|
520
|
+
for (l = 0; l < d.length; l++)
|
|
521
|
+
a = d[l], !(r.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (n[a] = e[a]);
|
|
522
|
+
}
|
|
523
|
+
return n;
|
|
524
|
+
}
|
|
525
|
+
function _t(e, r) {
|
|
526
|
+
if (e == null) return {};
|
|
527
|
+
var n = {};
|
|
528
|
+
for (var a in e)
|
|
529
|
+
if (Object.prototype.hasOwnProperty.call(e, a)) {
|
|
530
|
+
if (r.indexOf(a) >= 0) continue;
|
|
531
|
+
n[a] = e[a];
|
|
532
|
+
}
|
|
533
|
+
return n;
|
|
534
|
+
}
|
|
535
|
+
function xe() {
|
|
536
|
+
return xe = Object.assign ? Object.assign.bind() : function(e) {
|
|
537
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
538
|
+
var n = arguments[r];
|
|
539
|
+
for (var a in n)
|
|
540
|
+
Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
541
|
+
}
|
|
542
|
+
return e;
|
|
543
|
+
}, xe.apply(this, arguments);
|
|
544
|
+
}
|
|
545
|
+
function He(e, r) {
|
|
546
|
+
var n = Object.keys(e);
|
|
547
|
+
if (Object.getOwnPropertySymbols) {
|
|
548
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
549
|
+
r && (a = a.filter(function(l) {
|
|
550
|
+
return Object.getOwnPropertyDescriptor(e, l).enumerable;
|
|
551
|
+
})), n.push.apply(n, a);
|
|
552
|
+
}
|
|
553
|
+
return n;
|
|
554
|
+
}
|
|
555
|
+
function be(e) {
|
|
556
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
557
|
+
var n = arguments[r] != null ? arguments[r] : {};
|
|
558
|
+
r % 2 ? He(Object(n), !0).forEach(function(a) {
|
|
559
|
+
kt(e, a, n[a]);
|
|
560
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : He(Object(n)).forEach(function(a) {
|
|
561
|
+
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
return e;
|
|
565
|
+
}
|
|
566
|
+
function kt(e, r, n) {
|
|
567
|
+
return r = St(r), r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
568
|
+
}
|
|
569
|
+
function St(e) {
|
|
570
|
+
var r = Ot(e, "string");
|
|
571
|
+
return typeof r == "symbol" ? r : r + "";
|
|
572
|
+
}
|
|
573
|
+
function Ot(e, r) {
|
|
574
|
+
if (typeof e != "object" || !e) return e;
|
|
575
|
+
var n = e[Symbol.toPrimitive];
|
|
576
|
+
if (n !== void 0) {
|
|
577
|
+
var a = n.call(e, r);
|
|
578
|
+
if (typeof a != "object") return a;
|
|
579
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
580
|
+
}
|
|
581
|
+
return (r === "string" ? String : Number)(e);
|
|
582
|
+
}
|
|
583
|
+
function ht(e) {
|
|
584
|
+
return e && e.map((r, n) => /* @__PURE__ */ O.createElement(r.tag, be({
|
|
585
|
+
key: n
|
|
586
|
+
}, r.attr), ht(r.child)));
|
|
587
|
+
}
|
|
588
|
+
function L(e) {
|
|
589
|
+
return (r) => /* @__PURE__ */ O.createElement(At, xe({
|
|
590
|
+
attr: be({}, e.attr)
|
|
591
|
+
}, r), ht(e.child));
|
|
592
|
+
}
|
|
593
|
+
function At(e) {
|
|
594
|
+
var r = (n) => {
|
|
595
|
+
var {
|
|
596
|
+
attr: a,
|
|
597
|
+
size: l,
|
|
598
|
+
title: d
|
|
599
|
+
} = e, m = Tt(e, Rt), c = l || n.size || "1em", i;
|
|
600
|
+
return n.className && (i = n.className), e.className && (i = (i ? i + " " : "") + e.className), /* @__PURE__ */ O.createElement("svg", xe({
|
|
601
|
+
stroke: "currentColor",
|
|
602
|
+
fill: "currentColor",
|
|
603
|
+
strokeWidth: "0"
|
|
604
|
+
}, n.attr, a, m, {
|
|
605
|
+
className: i,
|
|
606
|
+
style: be(be({
|
|
607
|
+
color: e.color || n.color
|
|
608
|
+
}, n.style), e.style),
|
|
609
|
+
height: c,
|
|
610
|
+
width: c,
|
|
611
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
612
|
+
}), d && /* @__PURE__ */ O.createElement("title", null, d), e.children);
|
|
613
|
+
};
|
|
614
|
+
return Fe !== void 0 ? /* @__PURE__ */ O.createElement(Fe.Consumer, null, (n) => r(n)) : r(ut);
|
|
615
|
+
}
|
|
616
|
+
function Pt(e) {
|
|
617
|
+
return L({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "20 6 9 17 4 12" }, child: [] }] })(e);
|
|
618
|
+
}
|
|
619
|
+
function ke(e) {
|
|
620
|
+
return L({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "6 9 12 15 18 9" }, child: [] }] })(e);
|
|
621
|
+
}
|
|
622
|
+
function Dt(e) {
|
|
623
|
+
return L({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "15 18 9 12 15 6" }, child: [] }] })(e);
|
|
624
|
+
}
|
|
625
|
+
function Mt(e) {
|
|
626
|
+
return L({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "9 18 15 12 9 6" }, child: [] }] })(e);
|
|
627
|
+
}
|
|
628
|
+
function It(e) {
|
|
629
|
+
return L({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polygon", attr: { points: "19 20 9 12 19 4 19 20" }, child: [] }, { tag: "line", attr: { x1: "5", y1: "19", x2: "5", y2: "5" }, child: [] }] })(e);
|
|
630
|
+
}
|
|
631
|
+
function Lt(e) {
|
|
632
|
+
return L({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polygon", attr: { points: "5 4 15 12 5 20 5 4" }, child: [] }, { tag: "line", attr: { x1: "19", y1: "5", x2: "19", y2: "19" }, child: [] }] })(e);
|
|
633
|
+
}
|
|
634
|
+
function $t(e) {
|
|
635
|
+
return L({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "3 6 5 6 21 6" }, child: [] }, { tag: "path", attr: { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }, child: [] }] })(e);
|
|
636
|
+
}
|
|
637
|
+
function Ft(e) {
|
|
638
|
+
return L({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "18", y1: "6", x2: "6", y2: "18" }, child: [] }, { tag: "line", attr: { x1: "6", y1: "6", x2: "18", y2: "18" }, child: [] }] })(e);
|
|
639
|
+
}
|
|
640
|
+
var oe = {}, te = {}, pe = {}, J = {}, Z = {}, Ne = {}, ze;
|
|
641
|
+
function ft() {
|
|
642
|
+
return ze || (ze = 1, function(e) {
|
|
643
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
|
|
644
|
+
var r;
|
|
645
|
+
(function(a) {
|
|
646
|
+
a.Root = "root", a.Text = "text", a.Directive = "directive", a.Comment = "comment", a.Script = "script", a.Style = "style", a.Tag = "tag", a.CDATA = "cdata", a.Doctype = "doctype";
|
|
647
|
+
})(r = e.ElementType || (e.ElementType = {}));
|
|
648
|
+
function n(a) {
|
|
649
|
+
return a.type === r.Tag || a.type === r.Script || a.type === r.Style;
|
|
650
|
+
}
|
|
651
|
+
e.isTag = n, e.Root = r.Root, e.Text = r.Text, e.Directive = r.Directive, e.Comment = r.Comment, e.Script = r.Script, e.Style = r.Style, e.Tag = r.Tag, e.CDATA = r.CDATA, e.Doctype = r.Doctype;
|
|
652
|
+
}(Ne)), Ne;
|
|
653
|
+
}
|
|
654
|
+
var T = {}, Be;
|
|
655
|
+
function Ve() {
|
|
656
|
+
if (Be) return T;
|
|
657
|
+
Be = 1;
|
|
658
|
+
var e = T && T.__extends || /* @__PURE__ */ function() {
|
|
659
|
+
var s = function(h, v) {
|
|
660
|
+
return s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(j, k) {
|
|
661
|
+
j.__proto__ = k;
|
|
662
|
+
} || function(j, k) {
|
|
663
|
+
for (var P in k) Object.prototype.hasOwnProperty.call(k, P) && (j[P] = k[P]);
|
|
664
|
+
}, s(h, v);
|
|
665
|
+
};
|
|
666
|
+
return function(h, v) {
|
|
667
|
+
if (typeof v != "function" && v !== null)
|
|
668
|
+
throw new TypeError("Class extends value " + String(v) + " is not a constructor or null");
|
|
669
|
+
s(h, v);
|
|
670
|
+
function j() {
|
|
671
|
+
this.constructor = h;
|
|
672
|
+
}
|
|
673
|
+
h.prototype = v === null ? Object.create(v) : (j.prototype = v.prototype, new j());
|
|
674
|
+
};
|
|
675
|
+
}(), r = T && T.__assign || function() {
|
|
676
|
+
return r = Object.assign || function(s) {
|
|
677
|
+
for (var h, v = 1, j = arguments.length; v < j; v++) {
|
|
678
|
+
h = arguments[v];
|
|
679
|
+
for (var k in h) Object.prototype.hasOwnProperty.call(h, k) && (s[k] = h[k]);
|
|
680
|
+
}
|
|
681
|
+
return s;
|
|
682
|
+
}, r.apply(this, arguments);
|
|
683
|
+
};
|
|
684
|
+
Object.defineProperty(T, "__esModule", { value: !0 }), T.cloneNode = T.hasChildren = T.isDocument = T.isDirective = T.isComment = T.isText = T.isCDATA = T.isTag = T.Element = T.Document = T.CDATA = T.NodeWithChildren = T.ProcessingInstruction = T.Comment = T.Text = T.DataNode = T.Node = void 0;
|
|
685
|
+
var n = /* @__PURE__ */ ft(), a = (
|
|
686
|
+
/** @class */
|
|
687
|
+
function() {
|
|
688
|
+
function s() {
|
|
689
|
+
this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
|
|
690
|
+
}
|
|
691
|
+
return Object.defineProperty(s.prototype, "parentNode", {
|
|
692
|
+
// Read-write aliases for properties
|
|
693
|
+
/**
|
|
694
|
+
* Same as {@link parent}.
|
|
695
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
696
|
+
*/
|
|
697
|
+
get: function() {
|
|
698
|
+
return this.parent;
|
|
699
|
+
},
|
|
700
|
+
set: function(h) {
|
|
701
|
+
this.parent = h;
|
|
702
|
+
},
|
|
703
|
+
enumerable: !1,
|
|
704
|
+
configurable: !0
|
|
705
|
+
}), Object.defineProperty(s.prototype, "previousSibling", {
|
|
706
|
+
/**
|
|
707
|
+
* Same as {@link prev}.
|
|
708
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
709
|
+
*/
|
|
710
|
+
get: function() {
|
|
711
|
+
return this.prev;
|
|
712
|
+
},
|
|
713
|
+
set: function(h) {
|
|
714
|
+
this.prev = h;
|
|
715
|
+
},
|
|
716
|
+
enumerable: !1,
|
|
717
|
+
configurable: !0
|
|
718
|
+
}), Object.defineProperty(s.prototype, "nextSibling", {
|
|
719
|
+
/**
|
|
720
|
+
* Same as {@link next}.
|
|
721
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
722
|
+
*/
|
|
723
|
+
get: function() {
|
|
724
|
+
return this.next;
|
|
725
|
+
},
|
|
726
|
+
set: function(h) {
|
|
727
|
+
this.next = h;
|
|
728
|
+
},
|
|
729
|
+
enumerable: !1,
|
|
730
|
+
configurable: !0
|
|
731
|
+
}), s.prototype.cloneNode = function(h) {
|
|
732
|
+
return h === void 0 && (h = !1), R(this, h);
|
|
733
|
+
}, s;
|
|
734
|
+
}()
|
|
735
|
+
);
|
|
736
|
+
T.Node = a;
|
|
737
|
+
var l = (
|
|
738
|
+
/** @class */
|
|
739
|
+
function(s) {
|
|
740
|
+
e(h, s);
|
|
741
|
+
function h(v) {
|
|
742
|
+
var j = s.call(this) || this;
|
|
743
|
+
return j.data = v, j;
|
|
744
|
+
}
|
|
745
|
+
return Object.defineProperty(h.prototype, "nodeValue", {
|
|
746
|
+
/**
|
|
747
|
+
* Same as {@link data}.
|
|
748
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
749
|
+
*/
|
|
750
|
+
get: function() {
|
|
751
|
+
return this.data;
|
|
752
|
+
},
|
|
753
|
+
set: function(v) {
|
|
754
|
+
this.data = v;
|
|
755
|
+
},
|
|
756
|
+
enumerable: !1,
|
|
757
|
+
configurable: !0
|
|
758
|
+
}), h;
|
|
759
|
+
}(a)
|
|
760
|
+
);
|
|
761
|
+
T.DataNode = l;
|
|
762
|
+
var d = (
|
|
763
|
+
/** @class */
|
|
764
|
+
function(s) {
|
|
765
|
+
e(h, s);
|
|
766
|
+
function h() {
|
|
767
|
+
var v = s !== null && s.apply(this, arguments) || this;
|
|
768
|
+
return v.type = n.ElementType.Text, v;
|
|
769
|
+
}
|
|
770
|
+
return Object.defineProperty(h.prototype, "nodeType", {
|
|
771
|
+
get: function() {
|
|
772
|
+
return 3;
|
|
773
|
+
},
|
|
774
|
+
enumerable: !1,
|
|
775
|
+
configurable: !0
|
|
776
|
+
}), h;
|
|
777
|
+
}(l)
|
|
778
|
+
);
|
|
779
|
+
T.Text = d;
|
|
780
|
+
var m = (
|
|
781
|
+
/** @class */
|
|
782
|
+
function(s) {
|
|
783
|
+
e(h, s);
|
|
784
|
+
function h() {
|
|
785
|
+
var v = s !== null && s.apply(this, arguments) || this;
|
|
786
|
+
return v.type = n.ElementType.Comment, v;
|
|
787
|
+
}
|
|
788
|
+
return Object.defineProperty(h.prototype, "nodeType", {
|
|
789
|
+
get: function() {
|
|
790
|
+
return 8;
|
|
791
|
+
},
|
|
792
|
+
enumerable: !1,
|
|
793
|
+
configurable: !0
|
|
794
|
+
}), h;
|
|
795
|
+
}(l)
|
|
796
|
+
);
|
|
797
|
+
T.Comment = m;
|
|
798
|
+
var c = (
|
|
799
|
+
/** @class */
|
|
800
|
+
function(s) {
|
|
801
|
+
e(h, s);
|
|
802
|
+
function h(v, j) {
|
|
803
|
+
var k = s.call(this, j) || this;
|
|
804
|
+
return k.name = v, k.type = n.ElementType.Directive, k;
|
|
805
|
+
}
|
|
806
|
+
return Object.defineProperty(h.prototype, "nodeType", {
|
|
807
|
+
get: function() {
|
|
808
|
+
return 1;
|
|
809
|
+
},
|
|
810
|
+
enumerable: !1,
|
|
811
|
+
configurable: !0
|
|
812
|
+
}), h;
|
|
813
|
+
}(l)
|
|
814
|
+
);
|
|
815
|
+
T.ProcessingInstruction = c;
|
|
816
|
+
var i = (
|
|
817
|
+
/** @class */
|
|
818
|
+
function(s) {
|
|
819
|
+
e(h, s);
|
|
820
|
+
function h(v) {
|
|
821
|
+
var j = s.call(this) || this;
|
|
822
|
+
return j.children = v, j;
|
|
823
|
+
}
|
|
824
|
+
return Object.defineProperty(h.prototype, "firstChild", {
|
|
825
|
+
// Aliases
|
|
826
|
+
/** First child of the node. */
|
|
827
|
+
get: function() {
|
|
828
|
+
var v;
|
|
829
|
+
return (v = this.children[0]) !== null && v !== void 0 ? v : null;
|
|
830
|
+
},
|
|
831
|
+
enumerable: !1,
|
|
832
|
+
configurable: !0
|
|
833
|
+
}), Object.defineProperty(h.prototype, "lastChild", {
|
|
834
|
+
/** Last child of the node. */
|
|
835
|
+
get: function() {
|
|
836
|
+
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
|
|
837
|
+
},
|
|
838
|
+
enumerable: !1,
|
|
839
|
+
configurable: !0
|
|
840
|
+
}), Object.defineProperty(h.prototype, "childNodes", {
|
|
841
|
+
/**
|
|
842
|
+
* Same as {@link children}.
|
|
843
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
844
|
+
*/
|
|
845
|
+
get: function() {
|
|
846
|
+
return this.children;
|
|
847
|
+
},
|
|
848
|
+
set: function(v) {
|
|
849
|
+
this.children = v;
|
|
850
|
+
},
|
|
851
|
+
enumerable: !1,
|
|
852
|
+
configurable: !0
|
|
853
|
+
}), h;
|
|
854
|
+
}(a)
|
|
855
|
+
);
|
|
856
|
+
T.NodeWithChildren = i;
|
|
857
|
+
var o = (
|
|
858
|
+
/** @class */
|
|
859
|
+
function(s) {
|
|
860
|
+
e(h, s);
|
|
861
|
+
function h() {
|
|
862
|
+
var v = s !== null && s.apply(this, arguments) || this;
|
|
863
|
+
return v.type = n.ElementType.CDATA, v;
|
|
864
|
+
}
|
|
865
|
+
return Object.defineProperty(h.prototype, "nodeType", {
|
|
866
|
+
get: function() {
|
|
867
|
+
return 4;
|
|
868
|
+
},
|
|
869
|
+
enumerable: !1,
|
|
870
|
+
configurable: !0
|
|
871
|
+
}), h;
|
|
872
|
+
}(i)
|
|
873
|
+
);
|
|
874
|
+
T.CDATA = o;
|
|
875
|
+
var u = (
|
|
876
|
+
/** @class */
|
|
877
|
+
function(s) {
|
|
878
|
+
e(h, s);
|
|
879
|
+
function h() {
|
|
880
|
+
var v = s !== null && s.apply(this, arguments) || this;
|
|
881
|
+
return v.type = n.ElementType.Root, v;
|
|
882
|
+
}
|
|
883
|
+
return Object.defineProperty(h.prototype, "nodeType", {
|
|
884
|
+
get: function() {
|
|
885
|
+
return 9;
|
|
886
|
+
},
|
|
887
|
+
enumerable: !1,
|
|
888
|
+
configurable: !0
|
|
889
|
+
}), h;
|
|
890
|
+
}(i)
|
|
891
|
+
);
|
|
892
|
+
T.Document = u;
|
|
893
|
+
var f = (
|
|
894
|
+
/** @class */
|
|
895
|
+
function(s) {
|
|
896
|
+
e(h, s);
|
|
897
|
+
function h(v, j, k, P) {
|
|
898
|
+
k === void 0 && (k = []), P === void 0 && (P = v === "script" ? n.ElementType.Script : v === "style" ? n.ElementType.Style : n.ElementType.Tag);
|
|
899
|
+
var H = s.call(this, k) || this;
|
|
900
|
+
return H.name = v, H.attribs = j, H.type = P, H;
|
|
901
|
+
}
|
|
902
|
+
return Object.defineProperty(h.prototype, "nodeType", {
|
|
903
|
+
get: function() {
|
|
904
|
+
return 1;
|
|
905
|
+
},
|
|
906
|
+
enumerable: !1,
|
|
907
|
+
configurable: !0
|
|
908
|
+
}), Object.defineProperty(h.prototype, "tagName", {
|
|
909
|
+
// DOM Level 1 aliases
|
|
910
|
+
/**
|
|
911
|
+
* Same as {@link name}.
|
|
912
|
+
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
913
|
+
*/
|
|
914
|
+
get: function() {
|
|
915
|
+
return this.name;
|
|
916
|
+
},
|
|
917
|
+
set: function(v) {
|
|
918
|
+
this.name = v;
|
|
919
|
+
},
|
|
920
|
+
enumerable: !1,
|
|
921
|
+
configurable: !0
|
|
922
|
+
}), Object.defineProperty(h.prototype, "attributes", {
|
|
923
|
+
get: function() {
|
|
924
|
+
var v = this;
|
|
925
|
+
return Object.keys(this.attribs).map(function(j) {
|
|
926
|
+
var k, P;
|
|
927
|
+
return {
|
|
928
|
+
name: j,
|
|
929
|
+
value: v.attribs[j],
|
|
930
|
+
namespace: (k = v["x-attribsNamespace"]) === null || k === void 0 ? void 0 : k[j],
|
|
931
|
+
prefix: (P = v["x-attribsPrefix"]) === null || P === void 0 ? void 0 : P[j]
|
|
932
|
+
};
|
|
933
|
+
});
|
|
934
|
+
},
|
|
935
|
+
enumerable: !1,
|
|
936
|
+
configurable: !0
|
|
937
|
+
}), h;
|
|
938
|
+
}(i)
|
|
939
|
+
);
|
|
940
|
+
T.Element = f;
|
|
941
|
+
function g(s) {
|
|
942
|
+
return (0, n.isTag)(s);
|
|
943
|
+
}
|
|
944
|
+
T.isTag = g;
|
|
945
|
+
function E(s) {
|
|
946
|
+
return s.type === n.ElementType.CDATA;
|
|
947
|
+
}
|
|
948
|
+
T.isCDATA = E;
|
|
949
|
+
function N(s) {
|
|
950
|
+
return s.type === n.ElementType.Text;
|
|
951
|
+
}
|
|
952
|
+
T.isText = N;
|
|
953
|
+
function p(s) {
|
|
954
|
+
return s.type === n.ElementType.Comment;
|
|
955
|
+
}
|
|
956
|
+
T.isComment = p;
|
|
957
|
+
function b(s) {
|
|
958
|
+
return s.type === n.ElementType.Directive;
|
|
959
|
+
}
|
|
960
|
+
T.isDirective = b;
|
|
961
|
+
function w(s) {
|
|
962
|
+
return s.type === n.ElementType.Root;
|
|
963
|
+
}
|
|
964
|
+
T.isDocument = w;
|
|
965
|
+
function y(s) {
|
|
966
|
+
return Object.prototype.hasOwnProperty.call(s, "children");
|
|
967
|
+
}
|
|
968
|
+
T.hasChildren = y;
|
|
969
|
+
function R(s, h) {
|
|
970
|
+
h === void 0 && (h = !1);
|
|
971
|
+
var v;
|
|
972
|
+
if (N(s))
|
|
973
|
+
v = new d(s.data);
|
|
974
|
+
else if (p(s))
|
|
975
|
+
v = new m(s.data);
|
|
976
|
+
else if (g(s)) {
|
|
977
|
+
var j = h ? A(s.children) : [], k = new f(s.name, r({}, s.attribs), j);
|
|
978
|
+
j.forEach(function(S) {
|
|
979
|
+
return S.parent = k;
|
|
980
|
+
}), s.namespace != null && (k.namespace = s.namespace), s["x-attribsNamespace"] && (k["x-attribsNamespace"] = r({}, s["x-attribsNamespace"])), s["x-attribsPrefix"] && (k["x-attribsPrefix"] = r({}, s["x-attribsPrefix"])), v = k;
|
|
981
|
+
} else if (E(s)) {
|
|
982
|
+
var j = h ? A(s.children) : [], P = new o(j);
|
|
983
|
+
j.forEach(function(C) {
|
|
984
|
+
return C.parent = P;
|
|
985
|
+
}), v = P;
|
|
986
|
+
} else if (w(s)) {
|
|
987
|
+
var j = h ? A(s.children) : [], H = new u(j);
|
|
988
|
+
j.forEach(function(C) {
|
|
989
|
+
return C.parent = H;
|
|
990
|
+
}), s["x-mode"] && (H["x-mode"] = s["x-mode"]), v = H;
|
|
991
|
+
} else if (b(s)) {
|
|
992
|
+
var W = new c(s.name, s.data);
|
|
993
|
+
s["x-name"] != null && (W["x-name"] = s["x-name"], W["x-publicId"] = s["x-publicId"], W["x-systemId"] = s["x-systemId"]), v = W;
|
|
994
|
+
} else
|
|
995
|
+
throw new Error("Not implemented yet: ".concat(s.type));
|
|
996
|
+
return v.startIndex = s.startIndex, v.endIndex = s.endIndex, s.sourceCodeLocation != null && (v.sourceCodeLocation = s.sourceCodeLocation), v;
|
|
997
|
+
}
|
|
998
|
+
T.cloneNode = R;
|
|
999
|
+
function A(s) {
|
|
1000
|
+
for (var h = s.map(function(j) {
|
|
1001
|
+
return R(j, !0);
|
|
1002
|
+
}), v = 1; v < h.length; v++)
|
|
1003
|
+
h[v].prev = h[v - 1], h[v - 1].next = h[v];
|
|
1004
|
+
return h;
|
|
1005
|
+
}
|
|
1006
|
+
return T;
|
|
1007
|
+
}
|
|
1008
|
+
var Ue;
|
|
1009
|
+
function mt() {
|
|
1010
|
+
return Ue || (Ue = 1, function(e) {
|
|
1011
|
+
var r = Z && Z.__createBinding || (Object.create ? function(c, i, o, u) {
|
|
1012
|
+
u === void 0 && (u = o);
|
|
1013
|
+
var f = Object.getOwnPropertyDescriptor(i, o);
|
|
1014
|
+
(!f || ("get" in f ? !i.__esModule : f.writable || f.configurable)) && (f = { enumerable: !0, get: function() {
|
|
1015
|
+
return i[o];
|
|
1016
|
+
} }), Object.defineProperty(c, u, f);
|
|
1017
|
+
} : function(c, i, o, u) {
|
|
1018
|
+
u === void 0 && (u = o), c[u] = i[o];
|
|
1019
|
+
}), n = Z && Z.__exportStar || function(c, i) {
|
|
1020
|
+
for (var o in c) o !== "default" && !Object.prototype.hasOwnProperty.call(i, o) && r(i, c, o);
|
|
1021
|
+
};
|
|
1022
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
|
|
1023
|
+
var a = /* @__PURE__ */ ft(), l = /* @__PURE__ */ Ve();
|
|
1024
|
+
n(/* @__PURE__ */ Ve(), e);
|
|
1025
|
+
var d = {
|
|
1026
|
+
withStartIndices: !1,
|
|
1027
|
+
withEndIndices: !1,
|
|
1028
|
+
xmlMode: !1
|
|
1029
|
+
}, m = (
|
|
1030
|
+
/** @class */
|
|
1031
|
+
function() {
|
|
1032
|
+
function c(i, o, u) {
|
|
1033
|
+
this.dom = [], this.root = new l.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof o == "function" && (u = o, o = d), typeof i == "object" && (o = i, i = void 0), this.callback = i ?? null, this.options = o ?? d, this.elementCB = u ?? null;
|
|
1034
|
+
}
|
|
1035
|
+
return c.prototype.onparserinit = function(i) {
|
|
1036
|
+
this.parser = i;
|
|
1037
|
+
}, c.prototype.onreset = function() {
|
|
1038
|
+
this.dom = [], this.root = new l.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
|
|
1039
|
+
}, c.prototype.onend = function() {
|
|
1040
|
+
this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
|
|
1041
|
+
}, c.prototype.onerror = function(i) {
|
|
1042
|
+
this.handleCallback(i);
|
|
1043
|
+
}, c.prototype.onclosetag = function() {
|
|
1044
|
+
this.lastNode = null;
|
|
1045
|
+
var i = this.tagStack.pop();
|
|
1046
|
+
this.options.withEndIndices && (i.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(i);
|
|
1047
|
+
}, c.prototype.onopentag = function(i, o) {
|
|
1048
|
+
var u = this.options.xmlMode ? a.ElementType.Tag : void 0, f = new l.Element(i, o, void 0, u);
|
|
1049
|
+
this.addNode(f), this.tagStack.push(f);
|
|
1050
|
+
}, c.prototype.ontext = function(i) {
|
|
1051
|
+
var o = this.lastNode;
|
|
1052
|
+
if (o && o.type === a.ElementType.Text)
|
|
1053
|
+
o.data += i, this.options.withEndIndices && (o.endIndex = this.parser.endIndex);
|
|
1054
|
+
else {
|
|
1055
|
+
var u = new l.Text(i);
|
|
1056
|
+
this.addNode(u), this.lastNode = u;
|
|
1057
|
+
}
|
|
1058
|
+
}, c.prototype.oncomment = function(i) {
|
|
1059
|
+
if (this.lastNode && this.lastNode.type === a.ElementType.Comment) {
|
|
1060
|
+
this.lastNode.data += i;
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
var o = new l.Comment(i);
|
|
1064
|
+
this.addNode(o), this.lastNode = o;
|
|
1065
|
+
}, c.prototype.oncommentend = function() {
|
|
1066
|
+
this.lastNode = null;
|
|
1067
|
+
}, c.prototype.oncdatastart = function() {
|
|
1068
|
+
var i = new l.Text(""), o = new l.CDATA([i]);
|
|
1069
|
+
this.addNode(o), i.parent = o, this.lastNode = i;
|
|
1070
|
+
}, c.prototype.oncdataend = function() {
|
|
1071
|
+
this.lastNode = null;
|
|
1072
|
+
}, c.prototype.onprocessinginstruction = function(i, o) {
|
|
1073
|
+
var u = new l.ProcessingInstruction(i, o);
|
|
1074
|
+
this.addNode(u);
|
|
1075
|
+
}, c.prototype.handleCallback = function(i) {
|
|
1076
|
+
if (typeof this.callback == "function")
|
|
1077
|
+
this.callback(i, this.dom);
|
|
1078
|
+
else if (i)
|
|
1079
|
+
throw i;
|
|
1080
|
+
}, c.prototype.addNode = function(i) {
|
|
1081
|
+
var o = this.tagStack[this.tagStack.length - 1], u = o.children[o.children.length - 1];
|
|
1082
|
+
this.options.withStartIndices && (i.startIndex = this.parser.startIndex), this.options.withEndIndices && (i.endIndex = this.parser.endIndex), o.children.push(i), u && (i.prev = u, u.next = i), i.parent = o, this.lastNode = null;
|
|
1083
|
+
}, c;
|
|
1084
|
+
}()
|
|
1085
|
+
);
|
|
1086
|
+
e.DomHandler = m, e.default = m;
|
|
1087
|
+
}(Z)), Z;
|
|
1088
|
+
}
|
|
1089
|
+
var we = {}, qe;
|
|
1090
|
+
function Ht() {
|
|
1091
|
+
return qe || (qe = 1, function(e) {
|
|
1092
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = e.CARRIAGE_RETURN_PLACEHOLDER = e.CARRIAGE_RETURN_REGEX = e.CARRIAGE_RETURN = e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = [
|
|
1093
|
+
"animateMotion",
|
|
1094
|
+
"animateTransform",
|
|
1095
|
+
"clipPath",
|
|
1096
|
+
"feBlend",
|
|
1097
|
+
"feColorMatrix",
|
|
1098
|
+
"feComponentTransfer",
|
|
1099
|
+
"feComposite",
|
|
1100
|
+
"feConvolveMatrix",
|
|
1101
|
+
"feDiffuseLighting",
|
|
1102
|
+
"feDisplacementMap",
|
|
1103
|
+
"feDropShadow",
|
|
1104
|
+
"feFlood",
|
|
1105
|
+
"feFuncA",
|
|
1106
|
+
"feFuncB",
|
|
1107
|
+
"feFuncG",
|
|
1108
|
+
"feFuncR",
|
|
1109
|
+
"feGaussianBlur",
|
|
1110
|
+
"feImage",
|
|
1111
|
+
"feMerge",
|
|
1112
|
+
"feMergeNode",
|
|
1113
|
+
"feMorphology",
|
|
1114
|
+
"feOffset",
|
|
1115
|
+
"fePointLight",
|
|
1116
|
+
"feSpecularLighting",
|
|
1117
|
+
"feSpotLight",
|
|
1118
|
+
"feTile",
|
|
1119
|
+
"feTurbulence",
|
|
1120
|
+
"foreignObject",
|
|
1121
|
+
"linearGradient",
|
|
1122
|
+
"radialGradient",
|
|
1123
|
+
"textPath"
|
|
1124
|
+
], e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(r, n) {
|
|
1125
|
+
return r[n.toLowerCase()] = n, r;
|
|
1126
|
+
}, {}), e.CARRIAGE_RETURN = "\r", e.CARRIAGE_RETURN_REGEX = new RegExp(e.CARRIAGE_RETURN, "g"), e.CARRIAGE_RETURN_PLACEHOLDER = "__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(), "__"), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER, "g");
|
|
1127
|
+
}(we)), we;
|
|
1128
|
+
}
|
|
1129
|
+
var Ge;
|
|
1130
|
+
function pt() {
|
|
1131
|
+
if (Ge) return J;
|
|
1132
|
+
Ge = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.formatAttributes = a, J.escapeSpecialCharacters = d, J.revertEscapedCharacters = m, J.formatDOM = c;
|
|
1133
|
+
var e = /* @__PURE__ */ mt(), r = Ht();
|
|
1134
|
+
function n(i) {
|
|
1135
|
+
return r.CASE_SENSITIVE_TAG_NAMES_MAP[i];
|
|
1136
|
+
}
|
|
1137
|
+
function a(i) {
|
|
1138
|
+
for (var o = {}, u = 0, f = i.length; u < f; u++) {
|
|
1139
|
+
var g = i[u];
|
|
1140
|
+
o[g.name] = g.value;
|
|
1141
|
+
}
|
|
1142
|
+
return o;
|
|
1143
|
+
}
|
|
1144
|
+
function l(i) {
|
|
1145
|
+
i = i.toLowerCase();
|
|
1146
|
+
var o = n(i);
|
|
1147
|
+
return o || i;
|
|
1148
|
+
}
|
|
1149
|
+
function d(i) {
|
|
1150
|
+
return i.replace(r.CARRIAGE_RETURN_REGEX, r.CARRIAGE_RETURN_PLACEHOLDER);
|
|
1151
|
+
}
|
|
1152
|
+
function m(i) {
|
|
1153
|
+
return i.replace(r.CARRIAGE_RETURN_PLACEHOLDER_REGEX, r.CARRIAGE_RETURN);
|
|
1154
|
+
}
|
|
1155
|
+
function c(i, o, u) {
|
|
1156
|
+
o === void 0 && (o = null);
|
|
1157
|
+
for (var f = [], g, E = 0, N = i.length; E < N; E++) {
|
|
1158
|
+
var p = i[E];
|
|
1159
|
+
switch (p.nodeType) {
|
|
1160
|
+
case 1: {
|
|
1161
|
+
var b = l(p.nodeName);
|
|
1162
|
+
g = new e.Element(b, a(p.attributes)), g.children = c(
|
|
1163
|
+
// template children are on content
|
|
1164
|
+
b === "template" ? p.content.childNodes : p.childNodes,
|
|
1165
|
+
g
|
|
1166
|
+
);
|
|
1167
|
+
break;
|
|
1168
|
+
}
|
|
1169
|
+
case 3:
|
|
1170
|
+
g = new e.Text(m(p.nodeValue));
|
|
1171
|
+
break;
|
|
1172
|
+
case 8:
|
|
1173
|
+
g = new e.Comment(p.nodeValue);
|
|
1174
|
+
break;
|
|
1175
|
+
default:
|
|
1176
|
+
continue;
|
|
1177
|
+
}
|
|
1178
|
+
var w = f[E - 1] || null;
|
|
1179
|
+
w && (w.next = g), g.parent = o, g.prev = w, g.next = null, f.push(g);
|
|
1180
|
+
}
|
|
1181
|
+
return u && (g = new e.ProcessingInstruction(u.substring(0, u.indexOf(" ")).toLowerCase(), u), g.next = f[0] || null, g.parent = o, f.unshift(g), f[1] && (f[1].prev = f[0])), f;
|
|
1182
|
+
}
|
|
1183
|
+
return J;
|
|
1184
|
+
}
|
|
1185
|
+
var We;
|
|
1186
|
+
function zt() {
|
|
1187
|
+
if (We) return pe;
|
|
1188
|
+
We = 1, Object.defineProperty(pe, "__esModule", { value: !0 }), pe.default = p;
|
|
1189
|
+
var e = pt(), r = "html", n = "head", a = "body", l = /<([a-zA-Z]+[0-9]?)/, d = /<head[^]*>/i, m = /<body[^]*>/i, c = function(b, w) {
|
|
1190
|
+
throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
|
|
1191
|
+
}, i = function(b, w) {
|
|
1192
|
+
throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
|
|
1193
|
+
}, o = typeof window == "object" && window.DOMParser;
|
|
1194
|
+
if (typeof o == "function") {
|
|
1195
|
+
var u = new o(), f = "text/html";
|
|
1196
|
+
i = function(b, w) {
|
|
1197
|
+
return w && (b = "<".concat(w, ">").concat(b, "</").concat(w, ">")), u.parseFromString(b, f);
|
|
1198
|
+
}, c = i;
|
|
1199
|
+
}
|
|
1200
|
+
if (typeof document == "object" && document.implementation) {
|
|
1201
|
+
var g = document.implementation.createHTMLDocument();
|
|
1202
|
+
c = function(b, w) {
|
|
1203
|
+
if (w) {
|
|
1204
|
+
var y = g.documentElement.querySelector(w);
|
|
1205
|
+
return y && (y.innerHTML = b), g;
|
|
1206
|
+
}
|
|
1207
|
+
return g.documentElement.innerHTML = b, g;
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
var E = typeof document == "object" && document.createElement("template"), N;
|
|
1211
|
+
E && E.content && (N = function(b) {
|
|
1212
|
+
return E.innerHTML = b, E.content.childNodes;
|
|
1213
|
+
});
|
|
1214
|
+
function p(b) {
|
|
1215
|
+
var w, y;
|
|
1216
|
+
b = (0, e.escapeSpecialCharacters)(b);
|
|
1217
|
+
var R = b.match(l), A = R && R[1] ? R[1].toLowerCase() : "";
|
|
1218
|
+
switch (A) {
|
|
1219
|
+
case r: {
|
|
1220
|
+
var s = i(b);
|
|
1221
|
+
if (!d.test(b)) {
|
|
1222
|
+
var h = s.querySelector(n);
|
|
1223
|
+
(w = h?.parentNode) === null || w === void 0 || w.removeChild(h);
|
|
1224
|
+
}
|
|
1225
|
+
if (!m.test(b)) {
|
|
1226
|
+
var h = s.querySelector(a);
|
|
1227
|
+
(y = h?.parentNode) === null || y === void 0 || y.removeChild(h);
|
|
1228
|
+
}
|
|
1229
|
+
return s.querySelectorAll(r);
|
|
1230
|
+
}
|
|
1231
|
+
case n:
|
|
1232
|
+
case a: {
|
|
1233
|
+
var v = c(b).querySelectorAll(A);
|
|
1234
|
+
return m.test(b) && d.test(b) ? v[0].parentNode.childNodes : v;
|
|
1235
|
+
}
|
|
1236
|
+
// low-level tag or text
|
|
1237
|
+
default: {
|
|
1238
|
+
if (N)
|
|
1239
|
+
return N(b);
|
|
1240
|
+
var h = c(b, a).querySelector(a);
|
|
1241
|
+
return h.childNodes;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
return pe;
|
|
1246
|
+
}
|
|
1247
|
+
var Ye;
|
|
1248
|
+
function Bt() {
|
|
1249
|
+
if (Ye) return te;
|
|
1250
|
+
Ye = 1;
|
|
1251
|
+
var e = te && te.__importDefault || function(d) {
|
|
1252
|
+
return d && d.__esModule ? d : { default: d };
|
|
1253
|
+
};
|
|
1254
|
+
Object.defineProperty(te, "__esModule", { value: !0 }), te.default = l;
|
|
1255
|
+
var r = e(zt()), n = pt(), a = /<(![a-zA-Z\s]+)>/;
|
|
1256
|
+
function l(d) {
|
|
1257
|
+
if (typeof d != "string")
|
|
1258
|
+
throw new TypeError("First argument must be a string");
|
|
1259
|
+
if (!d)
|
|
1260
|
+
return [];
|
|
1261
|
+
var m = d.match(a), c = m ? m[1] : void 0;
|
|
1262
|
+
return (0, n.formatDOM)((0, r.default)(d), null, c);
|
|
1263
|
+
}
|
|
1264
|
+
return te;
|
|
1265
|
+
}
|
|
1266
|
+
var ve = {}, U = {}, se = {}, Xe;
|
|
1267
|
+
function Vt() {
|
|
1268
|
+
if (Xe) return se;
|
|
1269
|
+
Xe = 1;
|
|
1270
|
+
var e = 0;
|
|
1271
|
+
se.SAME = e;
|
|
1272
|
+
var r = 1;
|
|
1273
|
+
return se.CAMELCASE = r, se.possibleStandardNames = {
|
|
1274
|
+
accept: 0,
|
|
1275
|
+
acceptCharset: 1,
|
|
1276
|
+
"accept-charset": "acceptCharset",
|
|
1277
|
+
accessKey: 1,
|
|
1278
|
+
action: 0,
|
|
1279
|
+
allowFullScreen: 1,
|
|
1280
|
+
alt: 0,
|
|
1281
|
+
as: 0,
|
|
1282
|
+
async: 0,
|
|
1283
|
+
autoCapitalize: 1,
|
|
1284
|
+
autoComplete: 1,
|
|
1285
|
+
autoCorrect: 1,
|
|
1286
|
+
autoFocus: 1,
|
|
1287
|
+
autoPlay: 1,
|
|
1288
|
+
autoSave: 1,
|
|
1289
|
+
capture: 0,
|
|
1290
|
+
cellPadding: 1,
|
|
1291
|
+
cellSpacing: 1,
|
|
1292
|
+
challenge: 0,
|
|
1293
|
+
charSet: 1,
|
|
1294
|
+
checked: 0,
|
|
1295
|
+
children: 0,
|
|
1296
|
+
cite: 0,
|
|
1297
|
+
class: "className",
|
|
1298
|
+
classID: 1,
|
|
1299
|
+
className: 1,
|
|
1300
|
+
cols: 0,
|
|
1301
|
+
colSpan: 1,
|
|
1302
|
+
content: 0,
|
|
1303
|
+
contentEditable: 1,
|
|
1304
|
+
contextMenu: 1,
|
|
1305
|
+
controls: 0,
|
|
1306
|
+
controlsList: 1,
|
|
1307
|
+
coords: 0,
|
|
1308
|
+
crossOrigin: 1,
|
|
1309
|
+
dangerouslySetInnerHTML: 1,
|
|
1310
|
+
data: 0,
|
|
1311
|
+
dateTime: 1,
|
|
1312
|
+
default: 0,
|
|
1313
|
+
defaultChecked: 1,
|
|
1314
|
+
defaultValue: 1,
|
|
1315
|
+
defer: 0,
|
|
1316
|
+
dir: 0,
|
|
1317
|
+
disabled: 0,
|
|
1318
|
+
disablePictureInPicture: 1,
|
|
1319
|
+
disableRemotePlayback: 1,
|
|
1320
|
+
download: 0,
|
|
1321
|
+
draggable: 0,
|
|
1322
|
+
encType: 1,
|
|
1323
|
+
enterKeyHint: 1,
|
|
1324
|
+
for: "htmlFor",
|
|
1325
|
+
form: 0,
|
|
1326
|
+
formMethod: 1,
|
|
1327
|
+
formAction: 1,
|
|
1328
|
+
formEncType: 1,
|
|
1329
|
+
formNoValidate: 1,
|
|
1330
|
+
formTarget: 1,
|
|
1331
|
+
frameBorder: 1,
|
|
1332
|
+
headers: 0,
|
|
1333
|
+
height: 0,
|
|
1334
|
+
hidden: 0,
|
|
1335
|
+
high: 0,
|
|
1336
|
+
href: 0,
|
|
1337
|
+
hrefLang: 1,
|
|
1338
|
+
htmlFor: 1,
|
|
1339
|
+
httpEquiv: 1,
|
|
1340
|
+
"http-equiv": "httpEquiv",
|
|
1341
|
+
icon: 0,
|
|
1342
|
+
id: 0,
|
|
1343
|
+
innerHTML: 1,
|
|
1344
|
+
inputMode: 1,
|
|
1345
|
+
integrity: 0,
|
|
1346
|
+
is: 0,
|
|
1347
|
+
itemID: 1,
|
|
1348
|
+
itemProp: 1,
|
|
1349
|
+
itemRef: 1,
|
|
1350
|
+
itemScope: 1,
|
|
1351
|
+
itemType: 1,
|
|
1352
|
+
keyParams: 1,
|
|
1353
|
+
keyType: 1,
|
|
1354
|
+
kind: 0,
|
|
1355
|
+
label: 0,
|
|
1356
|
+
lang: 0,
|
|
1357
|
+
list: 0,
|
|
1358
|
+
loop: 0,
|
|
1359
|
+
low: 0,
|
|
1360
|
+
manifest: 0,
|
|
1361
|
+
marginWidth: 1,
|
|
1362
|
+
marginHeight: 1,
|
|
1363
|
+
max: 0,
|
|
1364
|
+
maxLength: 1,
|
|
1365
|
+
media: 0,
|
|
1366
|
+
mediaGroup: 1,
|
|
1367
|
+
method: 0,
|
|
1368
|
+
min: 0,
|
|
1369
|
+
minLength: 1,
|
|
1370
|
+
multiple: 0,
|
|
1371
|
+
muted: 0,
|
|
1372
|
+
name: 0,
|
|
1373
|
+
noModule: 1,
|
|
1374
|
+
nonce: 0,
|
|
1375
|
+
noValidate: 1,
|
|
1376
|
+
open: 0,
|
|
1377
|
+
optimum: 0,
|
|
1378
|
+
pattern: 0,
|
|
1379
|
+
placeholder: 0,
|
|
1380
|
+
playsInline: 1,
|
|
1381
|
+
poster: 0,
|
|
1382
|
+
preload: 0,
|
|
1383
|
+
profile: 0,
|
|
1384
|
+
radioGroup: 1,
|
|
1385
|
+
readOnly: 1,
|
|
1386
|
+
referrerPolicy: 1,
|
|
1387
|
+
rel: 0,
|
|
1388
|
+
required: 0,
|
|
1389
|
+
reversed: 0,
|
|
1390
|
+
role: 0,
|
|
1391
|
+
rows: 0,
|
|
1392
|
+
rowSpan: 1,
|
|
1393
|
+
sandbox: 0,
|
|
1394
|
+
scope: 0,
|
|
1395
|
+
scoped: 0,
|
|
1396
|
+
scrolling: 0,
|
|
1397
|
+
seamless: 0,
|
|
1398
|
+
selected: 0,
|
|
1399
|
+
shape: 0,
|
|
1400
|
+
size: 0,
|
|
1401
|
+
sizes: 0,
|
|
1402
|
+
span: 0,
|
|
1403
|
+
spellCheck: 1,
|
|
1404
|
+
src: 0,
|
|
1405
|
+
srcDoc: 1,
|
|
1406
|
+
srcLang: 1,
|
|
1407
|
+
srcSet: 1,
|
|
1408
|
+
start: 0,
|
|
1409
|
+
step: 0,
|
|
1410
|
+
style: 0,
|
|
1411
|
+
summary: 0,
|
|
1412
|
+
tabIndex: 1,
|
|
1413
|
+
target: 0,
|
|
1414
|
+
title: 0,
|
|
1415
|
+
type: 0,
|
|
1416
|
+
useMap: 1,
|
|
1417
|
+
value: 0,
|
|
1418
|
+
width: 0,
|
|
1419
|
+
wmode: 0,
|
|
1420
|
+
wrap: 0,
|
|
1421
|
+
about: 0,
|
|
1422
|
+
accentHeight: 1,
|
|
1423
|
+
"accent-height": "accentHeight",
|
|
1424
|
+
accumulate: 0,
|
|
1425
|
+
additive: 0,
|
|
1426
|
+
alignmentBaseline: 1,
|
|
1427
|
+
"alignment-baseline": "alignmentBaseline",
|
|
1428
|
+
allowReorder: 1,
|
|
1429
|
+
alphabetic: 0,
|
|
1430
|
+
amplitude: 0,
|
|
1431
|
+
arabicForm: 1,
|
|
1432
|
+
"arabic-form": "arabicForm",
|
|
1433
|
+
ascent: 0,
|
|
1434
|
+
attributeName: 1,
|
|
1435
|
+
attributeType: 1,
|
|
1436
|
+
autoReverse: 1,
|
|
1437
|
+
azimuth: 0,
|
|
1438
|
+
baseFrequency: 1,
|
|
1439
|
+
baselineShift: 1,
|
|
1440
|
+
"baseline-shift": "baselineShift",
|
|
1441
|
+
baseProfile: 1,
|
|
1442
|
+
bbox: 0,
|
|
1443
|
+
begin: 0,
|
|
1444
|
+
bias: 0,
|
|
1445
|
+
by: 0,
|
|
1446
|
+
calcMode: 1,
|
|
1447
|
+
capHeight: 1,
|
|
1448
|
+
"cap-height": "capHeight",
|
|
1449
|
+
clip: 0,
|
|
1450
|
+
clipPath: 1,
|
|
1451
|
+
"clip-path": "clipPath",
|
|
1452
|
+
clipPathUnits: 1,
|
|
1453
|
+
clipRule: 1,
|
|
1454
|
+
"clip-rule": "clipRule",
|
|
1455
|
+
color: 0,
|
|
1456
|
+
colorInterpolation: 1,
|
|
1457
|
+
"color-interpolation": "colorInterpolation",
|
|
1458
|
+
colorInterpolationFilters: 1,
|
|
1459
|
+
"color-interpolation-filters": "colorInterpolationFilters",
|
|
1460
|
+
colorProfile: 1,
|
|
1461
|
+
"color-profile": "colorProfile",
|
|
1462
|
+
colorRendering: 1,
|
|
1463
|
+
"color-rendering": "colorRendering",
|
|
1464
|
+
contentScriptType: 1,
|
|
1465
|
+
contentStyleType: 1,
|
|
1466
|
+
cursor: 0,
|
|
1467
|
+
cx: 0,
|
|
1468
|
+
cy: 0,
|
|
1469
|
+
d: 0,
|
|
1470
|
+
datatype: 0,
|
|
1471
|
+
decelerate: 0,
|
|
1472
|
+
descent: 0,
|
|
1473
|
+
diffuseConstant: 1,
|
|
1474
|
+
direction: 0,
|
|
1475
|
+
display: 0,
|
|
1476
|
+
divisor: 0,
|
|
1477
|
+
dominantBaseline: 1,
|
|
1478
|
+
"dominant-baseline": "dominantBaseline",
|
|
1479
|
+
dur: 0,
|
|
1480
|
+
dx: 0,
|
|
1481
|
+
dy: 0,
|
|
1482
|
+
edgeMode: 1,
|
|
1483
|
+
elevation: 0,
|
|
1484
|
+
enableBackground: 1,
|
|
1485
|
+
"enable-background": "enableBackground",
|
|
1486
|
+
end: 0,
|
|
1487
|
+
exponent: 0,
|
|
1488
|
+
externalResourcesRequired: 1,
|
|
1489
|
+
fill: 0,
|
|
1490
|
+
fillOpacity: 1,
|
|
1491
|
+
"fill-opacity": "fillOpacity",
|
|
1492
|
+
fillRule: 1,
|
|
1493
|
+
"fill-rule": "fillRule",
|
|
1494
|
+
filter: 0,
|
|
1495
|
+
filterRes: 1,
|
|
1496
|
+
filterUnits: 1,
|
|
1497
|
+
floodOpacity: 1,
|
|
1498
|
+
"flood-opacity": "floodOpacity",
|
|
1499
|
+
floodColor: 1,
|
|
1500
|
+
"flood-color": "floodColor",
|
|
1501
|
+
focusable: 0,
|
|
1502
|
+
fontFamily: 1,
|
|
1503
|
+
"font-family": "fontFamily",
|
|
1504
|
+
fontSize: 1,
|
|
1505
|
+
"font-size": "fontSize",
|
|
1506
|
+
fontSizeAdjust: 1,
|
|
1507
|
+
"font-size-adjust": "fontSizeAdjust",
|
|
1508
|
+
fontStretch: 1,
|
|
1509
|
+
"font-stretch": "fontStretch",
|
|
1510
|
+
fontStyle: 1,
|
|
1511
|
+
"font-style": "fontStyle",
|
|
1512
|
+
fontVariant: 1,
|
|
1513
|
+
"font-variant": "fontVariant",
|
|
1514
|
+
fontWeight: 1,
|
|
1515
|
+
"font-weight": "fontWeight",
|
|
1516
|
+
format: 0,
|
|
1517
|
+
from: 0,
|
|
1518
|
+
fx: 0,
|
|
1519
|
+
fy: 0,
|
|
1520
|
+
g1: 0,
|
|
1521
|
+
g2: 0,
|
|
1522
|
+
glyphName: 1,
|
|
1523
|
+
"glyph-name": "glyphName",
|
|
1524
|
+
glyphOrientationHorizontal: 1,
|
|
1525
|
+
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
1526
|
+
glyphOrientationVertical: 1,
|
|
1527
|
+
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
1528
|
+
glyphRef: 1,
|
|
1529
|
+
gradientTransform: 1,
|
|
1530
|
+
gradientUnits: 1,
|
|
1531
|
+
hanging: 0,
|
|
1532
|
+
horizAdvX: 1,
|
|
1533
|
+
"horiz-adv-x": "horizAdvX",
|
|
1534
|
+
horizOriginX: 1,
|
|
1535
|
+
"horiz-origin-x": "horizOriginX",
|
|
1536
|
+
ideographic: 0,
|
|
1537
|
+
imageRendering: 1,
|
|
1538
|
+
"image-rendering": "imageRendering",
|
|
1539
|
+
in2: 0,
|
|
1540
|
+
in: 0,
|
|
1541
|
+
inlist: 0,
|
|
1542
|
+
intercept: 0,
|
|
1543
|
+
k1: 0,
|
|
1544
|
+
k2: 0,
|
|
1545
|
+
k3: 0,
|
|
1546
|
+
k4: 0,
|
|
1547
|
+
k: 0,
|
|
1548
|
+
kernelMatrix: 1,
|
|
1549
|
+
kernelUnitLength: 1,
|
|
1550
|
+
kerning: 0,
|
|
1551
|
+
keyPoints: 1,
|
|
1552
|
+
keySplines: 1,
|
|
1553
|
+
keyTimes: 1,
|
|
1554
|
+
lengthAdjust: 1,
|
|
1555
|
+
letterSpacing: 1,
|
|
1556
|
+
"letter-spacing": "letterSpacing",
|
|
1557
|
+
lightingColor: 1,
|
|
1558
|
+
"lighting-color": "lightingColor",
|
|
1559
|
+
limitingConeAngle: 1,
|
|
1560
|
+
local: 0,
|
|
1561
|
+
markerEnd: 1,
|
|
1562
|
+
"marker-end": "markerEnd",
|
|
1563
|
+
markerHeight: 1,
|
|
1564
|
+
markerMid: 1,
|
|
1565
|
+
"marker-mid": "markerMid",
|
|
1566
|
+
markerStart: 1,
|
|
1567
|
+
"marker-start": "markerStart",
|
|
1568
|
+
markerUnits: 1,
|
|
1569
|
+
markerWidth: 1,
|
|
1570
|
+
mask: 0,
|
|
1571
|
+
maskContentUnits: 1,
|
|
1572
|
+
maskUnits: 1,
|
|
1573
|
+
mathematical: 0,
|
|
1574
|
+
mode: 0,
|
|
1575
|
+
numOctaves: 1,
|
|
1576
|
+
offset: 0,
|
|
1577
|
+
opacity: 0,
|
|
1578
|
+
operator: 0,
|
|
1579
|
+
order: 0,
|
|
1580
|
+
orient: 0,
|
|
1581
|
+
orientation: 0,
|
|
1582
|
+
origin: 0,
|
|
1583
|
+
overflow: 0,
|
|
1584
|
+
overlinePosition: 1,
|
|
1585
|
+
"overline-position": "overlinePosition",
|
|
1586
|
+
overlineThickness: 1,
|
|
1587
|
+
"overline-thickness": "overlineThickness",
|
|
1588
|
+
paintOrder: 1,
|
|
1589
|
+
"paint-order": "paintOrder",
|
|
1590
|
+
panose1: 0,
|
|
1591
|
+
"panose-1": "panose1",
|
|
1592
|
+
pathLength: 1,
|
|
1593
|
+
patternContentUnits: 1,
|
|
1594
|
+
patternTransform: 1,
|
|
1595
|
+
patternUnits: 1,
|
|
1596
|
+
pointerEvents: 1,
|
|
1597
|
+
"pointer-events": "pointerEvents",
|
|
1598
|
+
points: 0,
|
|
1599
|
+
pointsAtX: 1,
|
|
1600
|
+
pointsAtY: 1,
|
|
1601
|
+
pointsAtZ: 1,
|
|
1602
|
+
prefix: 0,
|
|
1603
|
+
preserveAlpha: 1,
|
|
1604
|
+
preserveAspectRatio: 1,
|
|
1605
|
+
primitiveUnits: 1,
|
|
1606
|
+
property: 0,
|
|
1607
|
+
r: 0,
|
|
1608
|
+
radius: 0,
|
|
1609
|
+
refX: 1,
|
|
1610
|
+
refY: 1,
|
|
1611
|
+
renderingIntent: 1,
|
|
1612
|
+
"rendering-intent": "renderingIntent",
|
|
1613
|
+
repeatCount: 1,
|
|
1614
|
+
repeatDur: 1,
|
|
1615
|
+
requiredExtensions: 1,
|
|
1616
|
+
requiredFeatures: 1,
|
|
1617
|
+
resource: 0,
|
|
1618
|
+
restart: 0,
|
|
1619
|
+
result: 0,
|
|
1620
|
+
results: 0,
|
|
1621
|
+
rotate: 0,
|
|
1622
|
+
rx: 0,
|
|
1623
|
+
ry: 0,
|
|
1624
|
+
scale: 0,
|
|
1625
|
+
security: 0,
|
|
1626
|
+
seed: 0,
|
|
1627
|
+
shapeRendering: 1,
|
|
1628
|
+
"shape-rendering": "shapeRendering",
|
|
1629
|
+
slope: 0,
|
|
1630
|
+
spacing: 0,
|
|
1631
|
+
specularConstant: 1,
|
|
1632
|
+
specularExponent: 1,
|
|
1633
|
+
speed: 0,
|
|
1634
|
+
spreadMethod: 1,
|
|
1635
|
+
startOffset: 1,
|
|
1636
|
+
stdDeviation: 1,
|
|
1637
|
+
stemh: 0,
|
|
1638
|
+
stemv: 0,
|
|
1639
|
+
stitchTiles: 1,
|
|
1640
|
+
stopColor: 1,
|
|
1641
|
+
"stop-color": "stopColor",
|
|
1642
|
+
stopOpacity: 1,
|
|
1643
|
+
"stop-opacity": "stopOpacity",
|
|
1644
|
+
strikethroughPosition: 1,
|
|
1645
|
+
"strikethrough-position": "strikethroughPosition",
|
|
1646
|
+
strikethroughThickness: 1,
|
|
1647
|
+
"strikethrough-thickness": "strikethroughThickness",
|
|
1648
|
+
string: 0,
|
|
1649
|
+
stroke: 0,
|
|
1650
|
+
strokeDasharray: 1,
|
|
1651
|
+
"stroke-dasharray": "strokeDasharray",
|
|
1652
|
+
strokeDashoffset: 1,
|
|
1653
|
+
"stroke-dashoffset": "strokeDashoffset",
|
|
1654
|
+
strokeLinecap: 1,
|
|
1655
|
+
"stroke-linecap": "strokeLinecap",
|
|
1656
|
+
strokeLinejoin: 1,
|
|
1657
|
+
"stroke-linejoin": "strokeLinejoin",
|
|
1658
|
+
strokeMiterlimit: 1,
|
|
1659
|
+
"stroke-miterlimit": "strokeMiterlimit",
|
|
1660
|
+
strokeWidth: 1,
|
|
1661
|
+
"stroke-width": "strokeWidth",
|
|
1662
|
+
strokeOpacity: 1,
|
|
1663
|
+
"stroke-opacity": "strokeOpacity",
|
|
1664
|
+
suppressContentEditableWarning: 1,
|
|
1665
|
+
suppressHydrationWarning: 1,
|
|
1666
|
+
surfaceScale: 1,
|
|
1667
|
+
systemLanguage: 1,
|
|
1668
|
+
tableValues: 1,
|
|
1669
|
+
targetX: 1,
|
|
1670
|
+
targetY: 1,
|
|
1671
|
+
textAnchor: 1,
|
|
1672
|
+
"text-anchor": "textAnchor",
|
|
1673
|
+
textDecoration: 1,
|
|
1674
|
+
"text-decoration": "textDecoration",
|
|
1675
|
+
textLength: 1,
|
|
1676
|
+
textRendering: 1,
|
|
1677
|
+
"text-rendering": "textRendering",
|
|
1678
|
+
to: 0,
|
|
1679
|
+
transform: 0,
|
|
1680
|
+
typeof: 0,
|
|
1681
|
+
u1: 0,
|
|
1682
|
+
u2: 0,
|
|
1683
|
+
underlinePosition: 1,
|
|
1684
|
+
"underline-position": "underlinePosition",
|
|
1685
|
+
underlineThickness: 1,
|
|
1686
|
+
"underline-thickness": "underlineThickness",
|
|
1687
|
+
unicode: 0,
|
|
1688
|
+
unicodeBidi: 1,
|
|
1689
|
+
"unicode-bidi": "unicodeBidi",
|
|
1690
|
+
unicodeRange: 1,
|
|
1691
|
+
"unicode-range": "unicodeRange",
|
|
1692
|
+
unitsPerEm: 1,
|
|
1693
|
+
"units-per-em": "unitsPerEm",
|
|
1694
|
+
unselectable: 0,
|
|
1695
|
+
vAlphabetic: 1,
|
|
1696
|
+
"v-alphabetic": "vAlphabetic",
|
|
1697
|
+
values: 0,
|
|
1698
|
+
vectorEffect: 1,
|
|
1699
|
+
"vector-effect": "vectorEffect",
|
|
1700
|
+
version: 0,
|
|
1701
|
+
vertAdvY: 1,
|
|
1702
|
+
"vert-adv-y": "vertAdvY",
|
|
1703
|
+
vertOriginX: 1,
|
|
1704
|
+
"vert-origin-x": "vertOriginX",
|
|
1705
|
+
vertOriginY: 1,
|
|
1706
|
+
"vert-origin-y": "vertOriginY",
|
|
1707
|
+
vHanging: 1,
|
|
1708
|
+
"v-hanging": "vHanging",
|
|
1709
|
+
vIdeographic: 1,
|
|
1710
|
+
"v-ideographic": "vIdeographic",
|
|
1711
|
+
viewBox: 1,
|
|
1712
|
+
viewTarget: 1,
|
|
1713
|
+
visibility: 0,
|
|
1714
|
+
vMathematical: 1,
|
|
1715
|
+
"v-mathematical": "vMathematical",
|
|
1716
|
+
vocab: 0,
|
|
1717
|
+
widths: 0,
|
|
1718
|
+
wordSpacing: 1,
|
|
1719
|
+
"word-spacing": "wordSpacing",
|
|
1720
|
+
writingMode: 1,
|
|
1721
|
+
"writing-mode": "writingMode",
|
|
1722
|
+
x1: 0,
|
|
1723
|
+
x2: 0,
|
|
1724
|
+
x: 0,
|
|
1725
|
+
xChannelSelector: 1,
|
|
1726
|
+
xHeight: 1,
|
|
1727
|
+
"x-height": "xHeight",
|
|
1728
|
+
xlinkActuate: 1,
|
|
1729
|
+
"xlink:actuate": "xlinkActuate",
|
|
1730
|
+
xlinkArcrole: 1,
|
|
1731
|
+
"xlink:arcrole": "xlinkArcrole",
|
|
1732
|
+
xlinkHref: 1,
|
|
1733
|
+
"xlink:href": "xlinkHref",
|
|
1734
|
+
xlinkRole: 1,
|
|
1735
|
+
"xlink:role": "xlinkRole",
|
|
1736
|
+
xlinkShow: 1,
|
|
1737
|
+
"xlink:show": "xlinkShow",
|
|
1738
|
+
xlinkTitle: 1,
|
|
1739
|
+
"xlink:title": "xlinkTitle",
|
|
1740
|
+
xlinkType: 1,
|
|
1741
|
+
"xlink:type": "xlinkType",
|
|
1742
|
+
xmlBase: 1,
|
|
1743
|
+
"xml:base": "xmlBase",
|
|
1744
|
+
xmlLang: 1,
|
|
1745
|
+
"xml:lang": "xmlLang",
|
|
1746
|
+
xmlns: 0,
|
|
1747
|
+
"xml:space": "xmlSpace",
|
|
1748
|
+
xmlnsXlink: 1,
|
|
1749
|
+
"xmlns:xlink": "xmlnsXlink",
|
|
1750
|
+
xmlSpace: 1,
|
|
1751
|
+
y1: 0,
|
|
1752
|
+
y2: 0,
|
|
1753
|
+
y: 0,
|
|
1754
|
+
yChannelSelector: 1,
|
|
1755
|
+
z: 0,
|
|
1756
|
+
zoomAndPan: 1
|
|
1757
|
+
}, se;
|
|
1758
|
+
}
|
|
1759
|
+
var Je;
|
|
1760
|
+
function Ut() {
|
|
1761
|
+
if (Je) return U;
|
|
1762
|
+
Je = 1;
|
|
1763
|
+
const e = 0, r = 1, n = 2, a = 3, l = 4, d = 5, m = 6;
|
|
1764
|
+
function c(s) {
|
|
1765
|
+
return o.hasOwnProperty(s) ? o[s] : null;
|
|
1766
|
+
}
|
|
1767
|
+
function i(s, h, v, j, k, P, H) {
|
|
1768
|
+
this.acceptsBooleans = h === n || h === a || h === l, this.attributeName = j, this.attributeNamespace = k, this.mustUseProperty = v, this.propertyName = s, this.type = h, this.sanitizeURL = P, this.removeEmptyString = H;
|
|
1769
|
+
}
|
|
1770
|
+
const o = {};
|
|
1771
|
+
[
|
|
1772
|
+
"children",
|
|
1773
|
+
"dangerouslySetInnerHTML",
|
|
1774
|
+
// TODO: This prevents the assignment of defaultValue to regular
|
|
1775
|
+
// elements (not just inputs). Now that ReactDOMInput assigns to the
|
|
1776
|
+
// defaultValue property -- do we need this?
|
|
1777
|
+
"defaultValue",
|
|
1778
|
+
"defaultChecked",
|
|
1779
|
+
"innerHTML",
|
|
1780
|
+
"suppressContentEditableWarning",
|
|
1781
|
+
"suppressHydrationWarning",
|
|
1782
|
+
"style"
|
|
1783
|
+
].forEach((s) => {
|
|
1784
|
+
o[s] = new i(
|
|
1785
|
+
s,
|
|
1786
|
+
e,
|
|
1787
|
+
!1,
|
|
1788
|
+
// mustUseProperty
|
|
1789
|
+
s,
|
|
1790
|
+
// attributeName
|
|
1791
|
+
null,
|
|
1792
|
+
// attributeNamespace
|
|
1793
|
+
!1,
|
|
1794
|
+
// sanitizeURL
|
|
1795
|
+
!1
|
|
1796
|
+
// removeEmptyString
|
|
1797
|
+
);
|
|
1798
|
+
}), [
|
|
1799
|
+
["acceptCharset", "accept-charset"],
|
|
1800
|
+
["className", "class"],
|
|
1801
|
+
["htmlFor", "for"],
|
|
1802
|
+
["httpEquiv", "http-equiv"]
|
|
1803
|
+
].forEach(([s, h]) => {
|
|
1804
|
+
o[s] = new i(
|
|
1805
|
+
s,
|
|
1806
|
+
r,
|
|
1807
|
+
!1,
|
|
1808
|
+
// mustUseProperty
|
|
1809
|
+
h,
|
|
1810
|
+
// attributeName
|
|
1811
|
+
null,
|
|
1812
|
+
// attributeNamespace
|
|
1813
|
+
!1,
|
|
1814
|
+
// sanitizeURL
|
|
1815
|
+
!1
|
|
1816
|
+
// removeEmptyString
|
|
1817
|
+
);
|
|
1818
|
+
}), ["contentEditable", "draggable", "spellCheck", "value"].forEach((s) => {
|
|
1819
|
+
o[s] = new i(
|
|
1820
|
+
s,
|
|
1821
|
+
n,
|
|
1822
|
+
!1,
|
|
1823
|
+
// mustUseProperty
|
|
1824
|
+
s.toLowerCase(),
|
|
1825
|
+
// attributeName
|
|
1826
|
+
null,
|
|
1827
|
+
// attributeNamespace
|
|
1828
|
+
!1,
|
|
1829
|
+
// sanitizeURL
|
|
1830
|
+
!1
|
|
1831
|
+
// removeEmptyString
|
|
1832
|
+
);
|
|
1833
|
+
}), [
|
|
1834
|
+
"autoReverse",
|
|
1835
|
+
"externalResourcesRequired",
|
|
1836
|
+
"focusable",
|
|
1837
|
+
"preserveAlpha"
|
|
1838
|
+
].forEach((s) => {
|
|
1839
|
+
o[s] = new i(
|
|
1840
|
+
s,
|
|
1841
|
+
n,
|
|
1842
|
+
!1,
|
|
1843
|
+
// mustUseProperty
|
|
1844
|
+
s,
|
|
1845
|
+
// attributeName
|
|
1846
|
+
null,
|
|
1847
|
+
// attributeNamespace
|
|
1848
|
+
!1,
|
|
1849
|
+
// sanitizeURL
|
|
1850
|
+
!1
|
|
1851
|
+
// removeEmptyString
|
|
1852
|
+
);
|
|
1853
|
+
}), [
|
|
1854
|
+
"allowFullScreen",
|
|
1855
|
+
"async",
|
|
1856
|
+
// Note: there is a special case that prevents it from being written to the DOM
|
|
1857
|
+
// on the client side because the browsers are inconsistent. Instead we call focus().
|
|
1858
|
+
"autoFocus",
|
|
1859
|
+
"autoPlay",
|
|
1860
|
+
"controls",
|
|
1861
|
+
"default",
|
|
1862
|
+
"defer",
|
|
1863
|
+
"disabled",
|
|
1864
|
+
"disablePictureInPicture",
|
|
1865
|
+
"disableRemotePlayback",
|
|
1866
|
+
"formNoValidate",
|
|
1867
|
+
"hidden",
|
|
1868
|
+
"loop",
|
|
1869
|
+
"noModule",
|
|
1870
|
+
"noValidate",
|
|
1871
|
+
"open",
|
|
1872
|
+
"playsInline",
|
|
1873
|
+
"readOnly",
|
|
1874
|
+
"required",
|
|
1875
|
+
"reversed",
|
|
1876
|
+
"scoped",
|
|
1877
|
+
"seamless",
|
|
1878
|
+
// Microdata
|
|
1879
|
+
"itemScope"
|
|
1880
|
+
].forEach((s) => {
|
|
1881
|
+
o[s] = new i(
|
|
1882
|
+
s,
|
|
1883
|
+
a,
|
|
1884
|
+
!1,
|
|
1885
|
+
// mustUseProperty
|
|
1886
|
+
s.toLowerCase(),
|
|
1887
|
+
// attributeName
|
|
1888
|
+
null,
|
|
1889
|
+
// attributeNamespace
|
|
1890
|
+
!1,
|
|
1891
|
+
// sanitizeURL
|
|
1892
|
+
!1
|
|
1893
|
+
// removeEmptyString
|
|
1894
|
+
);
|
|
1895
|
+
}), [
|
|
1896
|
+
"checked",
|
|
1897
|
+
// Note: `option.selected` is not updated if `select.multiple` is
|
|
1898
|
+
// disabled with `removeAttribute`. We have special logic for handling this.
|
|
1899
|
+
"multiple",
|
|
1900
|
+
"muted",
|
|
1901
|
+
"selected"
|
|
1902
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
1903
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
1904
|
+
// instead in the assignment below.
|
|
1905
|
+
].forEach((s) => {
|
|
1906
|
+
o[s] = new i(
|
|
1907
|
+
s,
|
|
1908
|
+
a,
|
|
1909
|
+
!0,
|
|
1910
|
+
// mustUseProperty
|
|
1911
|
+
s,
|
|
1912
|
+
// attributeName
|
|
1913
|
+
null,
|
|
1914
|
+
// attributeNamespace
|
|
1915
|
+
!1,
|
|
1916
|
+
// sanitizeURL
|
|
1917
|
+
!1
|
|
1918
|
+
// removeEmptyString
|
|
1919
|
+
);
|
|
1920
|
+
}), [
|
|
1921
|
+
"capture",
|
|
1922
|
+
"download"
|
|
1923
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
1924
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
1925
|
+
// instead in the assignment below.
|
|
1926
|
+
].forEach((s) => {
|
|
1927
|
+
o[s] = new i(
|
|
1928
|
+
s,
|
|
1929
|
+
l,
|
|
1930
|
+
!1,
|
|
1931
|
+
// mustUseProperty
|
|
1932
|
+
s,
|
|
1933
|
+
// attributeName
|
|
1934
|
+
null,
|
|
1935
|
+
// attributeNamespace
|
|
1936
|
+
!1,
|
|
1937
|
+
// sanitizeURL
|
|
1938
|
+
!1
|
|
1939
|
+
// removeEmptyString
|
|
1940
|
+
);
|
|
1941
|
+
}), [
|
|
1942
|
+
"cols",
|
|
1943
|
+
"rows",
|
|
1944
|
+
"size",
|
|
1945
|
+
"span"
|
|
1946
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
1947
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
1948
|
+
// instead in the assignment below.
|
|
1949
|
+
].forEach((s) => {
|
|
1950
|
+
o[s] = new i(
|
|
1951
|
+
s,
|
|
1952
|
+
m,
|
|
1953
|
+
!1,
|
|
1954
|
+
// mustUseProperty
|
|
1955
|
+
s,
|
|
1956
|
+
// attributeName
|
|
1957
|
+
null,
|
|
1958
|
+
// attributeNamespace
|
|
1959
|
+
!1,
|
|
1960
|
+
// sanitizeURL
|
|
1961
|
+
!1
|
|
1962
|
+
// removeEmptyString
|
|
1963
|
+
);
|
|
1964
|
+
}), ["rowSpan", "start"].forEach((s) => {
|
|
1965
|
+
o[s] = new i(
|
|
1966
|
+
s,
|
|
1967
|
+
d,
|
|
1968
|
+
!1,
|
|
1969
|
+
// mustUseProperty
|
|
1970
|
+
s.toLowerCase(),
|
|
1971
|
+
// attributeName
|
|
1972
|
+
null,
|
|
1973
|
+
// attributeNamespace
|
|
1974
|
+
!1,
|
|
1975
|
+
// sanitizeURL
|
|
1976
|
+
!1
|
|
1977
|
+
// removeEmptyString
|
|
1978
|
+
);
|
|
1979
|
+
});
|
|
1980
|
+
const f = /[\-\:]([a-z])/g, g = (s) => s[1].toUpperCase();
|
|
1981
|
+
[
|
|
1982
|
+
"accent-height",
|
|
1983
|
+
"alignment-baseline",
|
|
1984
|
+
"arabic-form",
|
|
1985
|
+
"baseline-shift",
|
|
1986
|
+
"cap-height",
|
|
1987
|
+
"clip-path",
|
|
1988
|
+
"clip-rule",
|
|
1989
|
+
"color-interpolation",
|
|
1990
|
+
"color-interpolation-filters",
|
|
1991
|
+
"color-profile",
|
|
1992
|
+
"color-rendering",
|
|
1993
|
+
"dominant-baseline",
|
|
1994
|
+
"enable-background",
|
|
1995
|
+
"fill-opacity",
|
|
1996
|
+
"fill-rule",
|
|
1997
|
+
"flood-color",
|
|
1998
|
+
"flood-opacity",
|
|
1999
|
+
"font-family",
|
|
2000
|
+
"font-size",
|
|
2001
|
+
"font-size-adjust",
|
|
2002
|
+
"font-stretch",
|
|
2003
|
+
"font-style",
|
|
2004
|
+
"font-variant",
|
|
2005
|
+
"font-weight",
|
|
2006
|
+
"glyph-name",
|
|
2007
|
+
"glyph-orientation-horizontal",
|
|
2008
|
+
"glyph-orientation-vertical",
|
|
2009
|
+
"horiz-adv-x",
|
|
2010
|
+
"horiz-origin-x",
|
|
2011
|
+
"image-rendering",
|
|
2012
|
+
"letter-spacing",
|
|
2013
|
+
"lighting-color",
|
|
2014
|
+
"marker-end",
|
|
2015
|
+
"marker-mid",
|
|
2016
|
+
"marker-start",
|
|
2017
|
+
"overline-position",
|
|
2018
|
+
"overline-thickness",
|
|
2019
|
+
"paint-order",
|
|
2020
|
+
"panose-1",
|
|
2021
|
+
"pointer-events",
|
|
2022
|
+
"rendering-intent",
|
|
2023
|
+
"shape-rendering",
|
|
2024
|
+
"stop-color",
|
|
2025
|
+
"stop-opacity",
|
|
2026
|
+
"strikethrough-position",
|
|
2027
|
+
"strikethrough-thickness",
|
|
2028
|
+
"stroke-dasharray",
|
|
2029
|
+
"stroke-dashoffset",
|
|
2030
|
+
"stroke-linecap",
|
|
2031
|
+
"stroke-linejoin",
|
|
2032
|
+
"stroke-miterlimit",
|
|
2033
|
+
"stroke-opacity",
|
|
2034
|
+
"stroke-width",
|
|
2035
|
+
"text-anchor",
|
|
2036
|
+
"text-decoration",
|
|
2037
|
+
"text-rendering",
|
|
2038
|
+
"underline-position",
|
|
2039
|
+
"underline-thickness",
|
|
2040
|
+
"unicode-bidi",
|
|
2041
|
+
"unicode-range",
|
|
2042
|
+
"units-per-em",
|
|
2043
|
+
"v-alphabetic",
|
|
2044
|
+
"v-hanging",
|
|
2045
|
+
"v-ideographic",
|
|
2046
|
+
"v-mathematical",
|
|
2047
|
+
"vector-effect",
|
|
2048
|
+
"vert-adv-y",
|
|
2049
|
+
"vert-origin-x",
|
|
2050
|
+
"vert-origin-y",
|
|
2051
|
+
"word-spacing",
|
|
2052
|
+
"writing-mode",
|
|
2053
|
+
"xmlns:xlink",
|
|
2054
|
+
"x-height"
|
|
2055
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
2056
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
2057
|
+
// instead in the assignment below.
|
|
2058
|
+
].forEach((s) => {
|
|
2059
|
+
const h = s.replace(f, g);
|
|
2060
|
+
o[h] = new i(
|
|
2061
|
+
h,
|
|
2062
|
+
r,
|
|
2063
|
+
!1,
|
|
2064
|
+
// mustUseProperty
|
|
2065
|
+
s,
|
|
2066
|
+
null,
|
|
2067
|
+
// attributeNamespace
|
|
2068
|
+
!1,
|
|
2069
|
+
// sanitizeURL
|
|
2070
|
+
!1
|
|
2071
|
+
// removeEmptyString
|
|
2072
|
+
);
|
|
2073
|
+
}), [
|
|
2074
|
+
"xlink:actuate",
|
|
2075
|
+
"xlink:arcrole",
|
|
2076
|
+
"xlink:role",
|
|
2077
|
+
"xlink:show",
|
|
2078
|
+
"xlink:title",
|
|
2079
|
+
"xlink:type"
|
|
2080
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
2081
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
2082
|
+
// instead in the assignment below.
|
|
2083
|
+
].forEach((s) => {
|
|
2084
|
+
const h = s.replace(f, g);
|
|
2085
|
+
o[h] = new i(
|
|
2086
|
+
h,
|
|
2087
|
+
r,
|
|
2088
|
+
!1,
|
|
2089
|
+
// mustUseProperty
|
|
2090
|
+
s,
|
|
2091
|
+
"http://www.w3.org/1999/xlink",
|
|
2092
|
+
!1,
|
|
2093
|
+
// sanitizeURL
|
|
2094
|
+
!1
|
|
2095
|
+
// removeEmptyString
|
|
2096
|
+
);
|
|
2097
|
+
}), [
|
|
2098
|
+
"xml:base",
|
|
2099
|
+
"xml:lang",
|
|
2100
|
+
"xml:space"
|
|
2101
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
2102
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
2103
|
+
// instead in the assignment below.
|
|
2104
|
+
].forEach((s) => {
|
|
2105
|
+
const h = s.replace(f, g);
|
|
2106
|
+
o[h] = new i(
|
|
2107
|
+
h,
|
|
2108
|
+
r,
|
|
2109
|
+
!1,
|
|
2110
|
+
// mustUseProperty
|
|
2111
|
+
s,
|
|
2112
|
+
"http://www.w3.org/XML/1998/namespace",
|
|
2113
|
+
!1,
|
|
2114
|
+
// sanitizeURL
|
|
2115
|
+
!1
|
|
2116
|
+
// removeEmptyString
|
|
2117
|
+
);
|
|
2118
|
+
}), ["tabIndex", "crossOrigin"].forEach((s) => {
|
|
2119
|
+
o[s] = new i(
|
|
2120
|
+
s,
|
|
2121
|
+
r,
|
|
2122
|
+
!1,
|
|
2123
|
+
// mustUseProperty
|
|
2124
|
+
s.toLowerCase(),
|
|
2125
|
+
// attributeName
|
|
2126
|
+
null,
|
|
2127
|
+
// attributeNamespace
|
|
2128
|
+
!1,
|
|
2129
|
+
// sanitizeURL
|
|
2130
|
+
!1
|
|
2131
|
+
// removeEmptyString
|
|
2132
|
+
);
|
|
2133
|
+
});
|
|
2134
|
+
const E = "xlinkHref";
|
|
2135
|
+
o[E] = new i(
|
|
2136
|
+
"xlinkHref",
|
|
2137
|
+
r,
|
|
2138
|
+
!1,
|
|
2139
|
+
// mustUseProperty
|
|
2140
|
+
"xlink:href",
|
|
2141
|
+
"http://www.w3.org/1999/xlink",
|
|
2142
|
+
!0,
|
|
2143
|
+
// sanitizeURL
|
|
2144
|
+
!1
|
|
2145
|
+
// removeEmptyString
|
|
2146
|
+
), ["src", "href", "action", "formAction"].forEach((s) => {
|
|
2147
|
+
o[s] = new i(
|
|
2148
|
+
s,
|
|
2149
|
+
r,
|
|
2150
|
+
!1,
|
|
2151
|
+
// mustUseProperty
|
|
2152
|
+
s.toLowerCase(),
|
|
2153
|
+
// attributeName
|
|
2154
|
+
null,
|
|
2155
|
+
// attributeNamespace
|
|
2156
|
+
!0,
|
|
2157
|
+
// sanitizeURL
|
|
2158
|
+
!0
|
|
2159
|
+
// removeEmptyString
|
|
2160
|
+
);
|
|
2161
|
+
});
|
|
2162
|
+
const {
|
|
2163
|
+
CAMELCASE: N,
|
|
2164
|
+
SAME: p,
|
|
2165
|
+
possibleStandardNames: b
|
|
2166
|
+
} = Vt(), y = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD" + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", R = RegExp.prototype.test.bind(
|
|
2167
|
+
// eslint-disable-next-line no-misleading-character-class
|
|
2168
|
+
new RegExp("^(data|aria)-[" + y + "]*$")
|
|
2169
|
+
), A = Object.keys(
|
|
2170
|
+
b
|
|
2171
|
+
).reduce((s, h) => {
|
|
2172
|
+
const v = b[h];
|
|
2173
|
+
return v === p ? s[h] = h : v === N ? s[h.toLowerCase()] = h : s[h] = v, s;
|
|
2174
|
+
}, {});
|
|
2175
|
+
return U.BOOLEAN = a, U.BOOLEANISH_STRING = n, U.NUMERIC = d, U.OVERLOADED_BOOLEAN = l, U.POSITIVE_NUMERIC = m, U.RESERVED = e, U.STRING = r, U.getPropertyInfo = c, U.isCustomAttribute = R, U.possibleStandardNames = A, U;
|
|
2176
|
+
}
|
|
2177
|
+
var le = {}, re = {}, Ce, Ze;
|
|
2178
|
+
function qt() {
|
|
2179
|
+
if (Ze) return Ce;
|
|
2180
|
+
Ze = 1;
|
|
2181
|
+
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, r = /\n/g, n = /^\s*/, a = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, l = /^:\s*/, d = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, m = /^[;\s]*/, c = /^\s+|\s+$/g, i = `
|
|
2182
|
+
`, o = "/", u = "*", f = "", g = "comment", E = "declaration";
|
|
2183
|
+
Ce = function(p, b) {
|
|
2184
|
+
if (typeof p != "string")
|
|
2185
|
+
throw new TypeError("First argument must be a string");
|
|
2186
|
+
if (!p) return [];
|
|
2187
|
+
b = b || {};
|
|
2188
|
+
var w = 1, y = 1;
|
|
2189
|
+
function R(S) {
|
|
2190
|
+
var C = S.match(r);
|
|
2191
|
+
C && (w += C.length);
|
|
2192
|
+
var V = S.lastIndexOf(i);
|
|
2193
|
+
y = ~V ? S.length - V : y + S.length;
|
|
2194
|
+
}
|
|
2195
|
+
function A() {
|
|
2196
|
+
var S = { line: w, column: y };
|
|
2197
|
+
return function(C) {
|
|
2198
|
+
return C.position = new s(S), j(), C;
|
|
2199
|
+
};
|
|
2200
|
+
}
|
|
2201
|
+
function s(S) {
|
|
2202
|
+
this.start = S, this.end = { line: w, column: y }, this.source = b.source;
|
|
2203
|
+
}
|
|
2204
|
+
s.prototype.content = p;
|
|
2205
|
+
function h(S) {
|
|
2206
|
+
var C = new Error(
|
|
2207
|
+
b.source + ":" + w + ":" + y + ": " + S
|
|
2208
|
+
);
|
|
2209
|
+
if (C.reason = S, C.filename = b.source, C.line = w, C.column = y, C.source = p, !b.silent) throw C;
|
|
2210
|
+
}
|
|
2211
|
+
function v(S) {
|
|
2212
|
+
var C = S.exec(p);
|
|
2213
|
+
if (C) {
|
|
2214
|
+
var V = C[0];
|
|
2215
|
+
return R(V), p = p.slice(V.length), C;
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
function j() {
|
|
2219
|
+
v(n);
|
|
2220
|
+
}
|
|
2221
|
+
function k(S) {
|
|
2222
|
+
var C;
|
|
2223
|
+
for (S = S || []; C = P(); )
|
|
2224
|
+
C !== !1 && S.push(C);
|
|
2225
|
+
return S;
|
|
2226
|
+
}
|
|
2227
|
+
function P() {
|
|
2228
|
+
var S = A();
|
|
2229
|
+
if (!(o != p.charAt(0) || u != p.charAt(1))) {
|
|
2230
|
+
for (var C = 2; f != p.charAt(C) && (u != p.charAt(C) || o != p.charAt(C + 1)); )
|
|
2231
|
+
++C;
|
|
2232
|
+
if (C += 2, f === p.charAt(C - 1))
|
|
2233
|
+
return h("End of comment missing");
|
|
2234
|
+
var V = p.slice(2, C - 2);
|
|
2235
|
+
return y += 2, R(V), p = p.slice(C), y += 2, S({
|
|
2236
|
+
type: g,
|
|
2237
|
+
comment: V
|
|
2238
|
+
});
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
function H() {
|
|
2242
|
+
var S = A(), C = v(a);
|
|
2243
|
+
if (C) {
|
|
2244
|
+
if (P(), !v(l)) return h("property missing ':'");
|
|
2245
|
+
var V = v(d), fe = S({
|
|
2246
|
+
type: E,
|
|
2247
|
+
property: N(C[0].replace(e, f)),
|
|
2248
|
+
value: V ? N(V[0].replace(e, f)) : f
|
|
2249
|
+
});
|
|
2250
|
+
return v(m), fe;
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
function W() {
|
|
2254
|
+
var S = [];
|
|
2255
|
+
k(S);
|
|
2256
|
+
for (var C; C = H(); )
|
|
2257
|
+
C !== !1 && (S.push(C), k(S));
|
|
2258
|
+
return S;
|
|
2259
|
+
}
|
|
2260
|
+
return j(), W();
|
|
2261
|
+
};
|
|
2262
|
+
function N(p) {
|
|
2263
|
+
return p ? p.replace(c, f) : f;
|
|
2264
|
+
}
|
|
2265
|
+
return Ce;
|
|
2266
|
+
}
|
|
2267
|
+
var Ke;
|
|
2268
|
+
function Gt() {
|
|
2269
|
+
if (Ke) return re;
|
|
2270
|
+
Ke = 1;
|
|
2271
|
+
var e = re && re.__importDefault || function(a) {
|
|
2272
|
+
return a && a.__esModule ? a : { default: a };
|
|
2273
|
+
};
|
|
2274
|
+
Object.defineProperty(re, "__esModule", { value: !0 }), re.default = n;
|
|
2275
|
+
var r = e(qt());
|
|
2276
|
+
function n(a, l) {
|
|
2277
|
+
var d = null;
|
|
2278
|
+
if (!a || typeof a != "string")
|
|
2279
|
+
return d;
|
|
2280
|
+
var m = (0, r.default)(a), c = typeof l == "function";
|
|
2281
|
+
return m.forEach(function(i) {
|
|
2282
|
+
if (i.type === "declaration") {
|
|
2283
|
+
var o = i.property, u = i.value;
|
|
2284
|
+
c ? l(o, u, i) : u && (d = d || {}, d[o] = u);
|
|
2285
|
+
}
|
|
2286
|
+
}), d;
|
|
2287
|
+
}
|
|
2288
|
+
return re;
|
|
2289
|
+
}
|
|
2290
|
+
var ce = {}, Qe;
|
|
2291
|
+
function Wt() {
|
|
2292
|
+
if (Qe) return ce;
|
|
2293
|
+
Qe = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.camelCase = void 0;
|
|
2294
|
+
var e = /^--[a-zA-Z0-9_-]+$/, r = /-([a-z])/g, n = /^[^-]+$/, a = /^-(webkit|moz|ms|o|khtml)-/, l = /^-(ms)-/, d = function(o) {
|
|
2295
|
+
return !o || n.test(o) || e.test(o);
|
|
2296
|
+
}, m = function(o, u) {
|
|
2297
|
+
return u.toUpperCase();
|
|
2298
|
+
}, c = function(o, u) {
|
|
2299
|
+
return "".concat(u, "-");
|
|
2300
|
+
}, i = function(o, u) {
|
|
2301
|
+
return u === void 0 && (u = {}), d(o) ? o : (o = o.toLowerCase(), u.reactCompat ? o = o.replace(l, c) : o = o.replace(a, c), o.replace(r, m));
|
|
2302
|
+
};
|
|
2303
|
+
return ce.camelCase = i, ce;
|
|
2304
|
+
}
|
|
2305
|
+
var de, et;
|
|
2306
|
+
function Yt() {
|
|
2307
|
+
if (et) return de;
|
|
2308
|
+
et = 1;
|
|
2309
|
+
var e = de && de.__importDefault || function(l) {
|
|
2310
|
+
return l && l.__esModule ? l : { default: l };
|
|
2311
|
+
}, r = e(Gt()), n = Wt();
|
|
2312
|
+
function a(l, d) {
|
|
2313
|
+
var m = {};
|
|
2314
|
+
return !l || typeof l != "string" || (0, r.default)(l, function(c, i) {
|
|
2315
|
+
c && i && (m[(0, n.camelCase)(c, d)] = i);
|
|
2316
|
+
}), m;
|
|
2317
|
+
}
|
|
2318
|
+
return a.default = a, de = a, de;
|
|
2319
|
+
}
|
|
2320
|
+
var tt;
|
|
2321
|
+
function vt() {
|
|
2322
|
+
return tt || (tt = 1, function(e) {
|
|
2323
|
+
var r = le && le.__importDefault || function(u) {
|
|
2324
|
+
return u && u.__esModule ? u : { default: u };
|
|
2325
|
+
};
|
|
2326
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.returnFirstArg = e.canTextBeChildOfNode = e.ELEMENTS_WITH_NO_TEXT_CHILDREN = e.PRESERVE_CUSTOM_ATTRIBUTES = void 0, e.isCustomComponent = d, e.setStyleProp = c;
|
|
2327
|
+
var n = O, a = r(Yt()), l = /* @__PURE__ */ new Set([
|
|
2328
|
+
"annotation-xml",
|
|
2329
|
+
"color-profile",
|
|
2330
|
+
"font-face",
|
|
2331
|
+
"font-face-src",
|
|
2332
|
+
"font-face-uri",
|
|
2333
|
+
"font-face-format",
|
|
2334
|
+
"font-face-name",
|
|
2335
|
+
"missing-glyph"
|
|
2336
|
+
]);
|
|
2337
|
+
function d(u, f) {
|
|
2338
|
+
return u.includes("-") ? !l.has(u) : !!(f && typeof f.is == "string");
|
|
2339
|
+
}
|
|
2340
|
+
var m = {
|
|
2341
|
+
reactCompat: !0
|
|
2342
|
+
};
|
|
2343
|
+
function c(u, f) {
|
|
2344
|
+
if (typeof u == "string") {
|
|
2345
|
+
if (!u.trim()) {
|
|
2346
|
+
f.style = {};
|
|
2347
|
+
return;
|
|
2348
|
+
}
|
|
2349
|
+
try {
|
|
2350
|
+
f.style = (0, a.default)(u, m);
|
|
2351
|
+
} catch {
|
|
2352
|
+
f.style = {};
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
e.PRESERVE_CUSTOM_ATTRIBUTES = Number(n.version.split(".")[0]) >= 16, e.ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
|
|
2357
|
+
"tr",
|
|
2358
|
+
"tbody",
|
|
2359
|
+
"thead",
|
|
2360
|
+
"tfoot",
|
|
2361
|
+
"colgroup",
|
|
2362
|
+
"table",
|
|
2363
|
+
"head",
|
|
2364
|
+
"html",
|
|
2365
|
+
"frameset"
|
|
2366
|
+
]);
|
|
2367
|
+
var i = function(u) {
|
|
2368
|
+
return !e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(u.name);
|
|
2369
|
+
};
|
|
2370
|
+
e.canTextBeChildOfNode = i;
|
|
2371
|
+
var o = function(u) {
|
|
2372
|
+
return u;
|
|
2373
|
+
};
|
|
2374
|
+
e.returnFirstArg = o;
|
|
2375
|
+
}(le)), le;
|
|
2376
|
+
}
|
|
2377
|
+
var rt;
|
|
2378
|
+
function gt() {
|
|
2379
|
+
if (rt) return ve;
|
|
2380
|
+
rt = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.default = d;
|
|
2381
|
+
var e = Ut(), r = vt(), n = ["checked", "value"], a = ["input", "select", "textarea"], l = {
|
|
2382
|
+
reset: !0,
|
|
2383
|
+
submit: !0
|
|
2384
|
+
};
|
|
2385
|
+
function d(c, i) {
|
|
2386
|
+
c === void 0 && (c = {});
|
|
2387
|
+
var o = {}, u = !!(c.type && l[c.type]);
|
|
2388
|
+
for (var f in c) {
|
|
2389
|
+
var g = c[f];
|
|
2390
|
+
if ((0, e.isCustomAttribute)(f)) {
|
|
2391
|
+
o[f] = g;
|
|
2392
|
+
continue;
|
|
2393
|
+
}
|
|
2394
|
+
var E = f.toLowerCase(), N = m(E);
|
|
2395
|
+
if (N) {
|
|
2396
|
+
var p = (0, e.getPropertyInfo)(N);
|
|
2397
|
+
switch (n.includes(N) && a.includes(i) && !u && (N = m("default" + E)), o[N] = g, p && p.type) {
|
|
2398
|
+
case e.BOOLEAN:
|
|
2399
|
+
o[N] = !0;
|
|
2400
|
+
break;
|
|
2401
|
+
case e.OVERLOADED_BOOLEAN:
|
|
2402
|
+
g === "" && (o[N] = !0);
|
|
2403
|
+
break;
|
|
2404
|
+
}
|
|
2405
|
+
continue;
|
|
2406
|
+
}
|
|
2407
|
+
r.PRESERVE_CUSTOM_ATTRIBUTES && (o[f] = g);
|
|
2408
|
+
}
|
|
2409
|
+
return (0, r.setStyleProp)(c.style, o), o;
|
|
2410
|
+
}
|
|
2411
|
+
function m(c) {
|
|
2412
|
+
return e.possibleStandardNames[c];
|
|
2413
|
+
}
|
|
2414
|
+
return ve;
|
|
2415
|
+
}
|
|
2416
|
+
var ne = {}, nt;
|
|
2417
|
+
function Xt() {
|
|
2418
|
+
if (nt) return ne;
|
|
2419
|
+
nt = 1;
|
|
2420
|
+
var e = ne && ne.__importDefault || function(c) {
|
|
2421
|
+
return c && c.__esModule ? c : { default: c };
|
|
2422
|
+
};
|
|
2423
|
+
Object.defineProperty(ne, "__esModule", { value: !0 }), ne.default = d;
|
|
2424
|
+
var r = O, n = e(gt()), a = vt(), l = {
|
|
2425
|
+
cloneElement: r.cloneElement,
|
|
2426
|
+
createElement: r.createElement,
|
|
2427
|
+
isValidElement: r.isValidElement
|
|
2428
|
+
};
|
|
2429
|
+
function d(c, i) {
|
|
2430
|
+
i === void 0 && (i = {});
|
|
2431
|
+
for (var o = [], u = typeof i.replace == "function", f = i.transform || a.returnFirstArg, g = i.library || l, E = g.cloneElement, N = g.createElement, p = g.isValidElement, b = c.length, w = 0; w < b; w++) {
|
|
2432
|
+
var y = c[w];
|
|
2433
|
+
if (u) {
|
|
2434
|
+
var R = i.replace(y, w);
|
|
2435
|
+
if (p(R)) {
|
|
2436
|
+
b > 1 && (R = E(R, {
|
|
2437
|
+
key: R.key || w
|
|
2438
|
+
})), o.push(f(R, y, w));
|
|
2439
|
+
continue;
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
if (y.type === "text") {
|
|
2443
|
+
var A = !y.data.trim().length;
|
|
2444
|
+
if (A && y.parent && !(0, a.canTextBeChildOfNode)(y.parent) || i.trim && A)
|
|
2445
|
+
continue;
|
|
2446
|
+
o.push(f(y.data, y, w));
|
|
2447
|
+
continue;
|
|
2448
|
+
}
|
|
2449
|
+
var s = y, h = {};
|
|
2450
|
+
m(s) ? ((0, a.setStyleProp)(s.attribs.style, s.attribs), h = s.attribs) : s.attribs && (h = (0, n.default)(s.attribs, s.name));
|
|
2451
|
+
var v = void 0;
|
|
2452
|
+
switch (y.type) {
|
|
2453
|
+
case "script":
|
|
2454
|
+
case "style":
|
|
2455
|
+
y.children[0] && (h.dangerouslySetInnerHTML = {
|
|
2456
|
+
__html: y.children[0].data
|
|
2457
|
+
});
|
|
2458
|
+
break;
|
|
2459
|
+
case "tag":
|
|
2460
|
+
y.name === "textarea" && y.children[0] ? h.defaultValue = y.children[0].data : y.children && y.children.length && (v = d(y.children, i));
|
|
2461
|
+
break;
|
|
2462
|
+
// skip all other cases (e.g., comment)
|
|
2463
|
+
default:
|
|
2464
|
+
continue;
|
|
2465
|
+
}
|
|
2466
|
+
b > 1 && (h.key = w), o.push(f(N(y.name, h, v), y, w));
|
|
2467
|
+
}
|
|
2468
|
+
return o.length === 1 ? o[0] : o;
|
|
2469
|
+
}
|
|
2470
|
+
function m(c) {
|
|
2471
|
+
return a.PRESERVE_CUSTOM_ATTRIBUTES && c.type === "tag" && (0, a.isCustomComponent)(c.name, c.attribs);
|
|
2472
|
+
}
|
|
2473
|
+
return ne;
|
|
2474
|
+
}
|
|
2475
|
+
var at;
|
|
2476
|
+
function Jt() {
|
|
2477
|
+
return at || (at = 1, function(e) {
|
|
2478
|
+
var r = oe && oe.__importDefault || function(i) {
|
|
2479
|
+
return i && i.__esModule ? i : { default: i };
|
|
2480
|
+
};
|
|
2481
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.htmlToDOM = e.domToReact = e.attributesToProps = e.Text = e.ProcessingInstruction = e.Element = e.Comment = void 0, e.default = c;
|
|
2482
|
+
var n = r(Bt());
|
|
2483
|
+
e.htmlToDOM = n.default;
|
|
2484
|
+
var a = r(gt());
|
|
2485
|
+
e.attributesToProps = a.default;
|
|
2486
|
+
var l = r(Xt());
|
|
2487
|
+
e.domToReact = l.default;
|
|
2488
|
+
var d = /* @__PURE__ */ mt();
|
|
2489
|
+
Object.defineProperty(e, "Comment", { enumerable: !0, get: function() {
|
|
2490
|
+
return d.Comment;
|
|
2491
|
+
} }), Object.defineProperty(e, "Element", { enumerable: !0, get: function() {
|
|
2492
|
+
return d.Element;
|
|
2493
|
+
} }), Object.defineProperty(e, "ProcessingInstruction", { enumerable: !0, get: function() {
|
|
2494
|
+
return d.ProcessingInstruction;
|
|
2495
|
+
} }), Object.defineProperty(e, "Text", { enumerable: !0, get: function() {
|
|
2496
|
+
return d.Text;
|
|
2497
|
+
} });
|
|
2498
|
+
var m = { lowerCaseAttributeNames: !1 };
|
|
2499
|
+
function c(i, o) {
|
|
2500
|
+
if (typeof i != "string")
|
|
2501
|
+
throw new TypeError("First argument must be a string");
|
|
2502
|
+
return i ? (0, l.default)((0, n.default)(i, o?.htmlparser2 || m), o) : [];
|
|
2503
|
+
}
|
|
2504
|
+
}(oe)), oe;
|
|
2505
|
+
}
|
|
2506
|
+
var Zt = Jt();
|
|
2507
|
+
const it = /* @__PURE__ */ jt(Zt), Kt = it.default || it, en = ({ type: e, text: r }) => {
|
|
2508
|
+
const [n, a] = D(!0), l = I(null), d = I(null), m = () => {
|
|
2509
|
+
d.current && (d.current.style.transition = "opacity 0.4s", d.current.style.opacity = "0"), l.current = window.setTimeout(() => {
|
|
2510
|
+
a(!n);
|
|
2511
|
+
}, 500);
|
|
2512
|
+
};
|
|
2513
|
+
return $(() => () => {
|
|
2514
|
+
l.current && clearTimeout(l.current);
|
|
2515
|
+
}, []), n ? /* @__PURE__ */ t.jsxs("div", { ref: d, className: `alert ${e}`, role: "alert", children: [
|
|
2516
|
+
/* @__PURE__ */ t.jsx("p", { children: Kt(r) }),
|
|
2517
|
+
/* @__PURE__ */ t.jsx("button", { className: "close", type: "button", "data-toggle": "close", onClick: m, children: /* @__PURE__ */ t.jsx(Ft, {}) })
|
|
2518
|
+
] }) : null;
|
|
2519
|
+
};
|
|
2520
|
+
function Qt(e) {
|
|
2521
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z" }, child: [] }] })(e);
|
|
2522
|
+
}
|
|
2523
|
+
function er(e) {
|
|
2524
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" }, child: [] }] })(e);
|
|
2525
|
+
}
|
|
2526
|
+
function tr(e) {
|
|
2527
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 0 1 7.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z" }, child: [] }] })(e);
|
|
2528
|
+
}
|
|
2529
|
+
function rr(e) {
|
|
2530
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z" }, child: [] }] })(e);
|
|
2531
|
+
}
|
|
2532
|
+
function nr(e) {
|
|
2533
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z" }, child: [] }] })(e);
|
|
2534
|
+
}
|
|
2535
|
+
function ar(e) {
|
|
2536
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z" }, child: [] }] })(e);
|
|
2537
|
+
}
|
|
2538
|
+
function ir(e) {
|
|
2539
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z" }, child: [] }] })(e);
|
|
2540
|
+
}
|
|
2541
|
+
function or(e) {
|
|
2542
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z" }, child: [] }] })(e);
|
|
2543
|
+
}
|
|
2544
|
+
function sr(e) {
|
|
2545
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z" }, child: [] }] })(e);
|
|
2546
|
+
}
|
|
2547
|
+
function lr(e) {
|
|
2548
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z" }, child: [] }] })(e);
|
|
2549
|
+
}
|
|
2550
|
+
function cr(e) {
|
|
2551
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }, child: [] }] })(e);
|
|
2552
|
+
}
|
|
2553
|
+
function dr(e) {
|
|
2554
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(e);
|
|
2555
|
+
}
|
|
2556
|
+
function ur(e) {
|
|
2557
|
+
return L({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M24 24H0V0h24v24z", opacity: ".87" }, child: [] }, { tag: "path", attr: { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z" }, child: [] }] })(e);
|
|
2558
|
+
}
|
|
2559
|
+
const tn = ({ message: e, onCancel: r, onConfirm: n }) => /* @__PURE__ */ t.jsx("div", { className: "modal", tabIndex: -1, role: "dialog", children: /* @__PURE__ */ t.jsx("div", { className: "modal-dialog modal-sm", role: "document", children: /* @__PURE__ */ t.jsxs("div", { className: "card", children: [
|
|
2560
|
+
/* @__PURE__ */ t.jsxs("div", { className: "card-header bg-danger sm", children: [
|
|
2561
|
+
/* @__PURE__ */ t.jsxs("div", { className: "card-header-title", children: [
|
|
2562
|
+
/* @__PURE__ */ t.jsx(er, { className: "icon" }),
|
|
2563
|
+
/* @__PURE__ */ t.jsx("span", { children: "Confirmation" })
|
|
2564
|
+
] }),
|
|
2565
|
+
/* @__PURE__ */ t.jsx("div", { className: "tools", onClick: r, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx(dr, { className: "icon" }) })
|
|
2566
|
+
] }),
|
|
2567
|
+
/* @__PURE__ */ t.jsx("div", { className: "card-body", children: /* @__PURE__ */ t.jsx("p", { children: e }) }),
|
|
2568
|
+
/* @__PURE__ */ t.jsxs("div", { className: "card-footer", children: [
|
|
2569
|
+
/* @__PURE__ */ t.jsx("button", { type: "button", className: "btn btn-secondary", onClick: r, children: "Cancel" }),
|
|
2570
|
+
/* @__PURE__ */ t.jsx("button", { type: "button", className: "btn btn-primary", onClick: n, children: "Confirm" })
|
|
2571
|
+
] })
|
|
2572
|
+
] }) }) }), rn = ({ type: e, title: r, text: n }) => /* @__PURE__ */ t.jsxs("div", { className: `callout ${e}`, children: [
|
|
2573
|
+
r && /* @__PURE__ */ t.jsx("h5", { children: r }),
|
|
2574
|
+
typeof n == "string" ? /* @__PURE__ */ t.jsx("p", { children: n }) : n
|
|
2575
|
+
] }), Re = ({
|
|
2576
|
+
children: e,
|
|
2577
|
+
text: r,
|
|
2578
|
+
position: n = "top",
|
|
2579
|
+
className: a = "",
|
|
2580
|
+
offset: l = 5
|
|
2581
|
+
}) => {
|
|
2582
|
+
const [d, m] = D(!1), [c, i] = D({ top: 0, left: 0 }), o = I(null), u = I(null);
|
|
2583
|
+
return $(() => {
|
|
2584
|
+
if (d && o.current && u.current) {
|
|
2585
|
+
const f = o.current.getBoundingClientRect(), g = u.current.getBoundingClientRect(), { scrollX: E, scrollY: N } = window;
|
|
2586
|
+
let p = 0, b = 0;
|
|
2587
|
+
switch (n) {
|
|
2588
|
+
case "top":
|
|
2589
|
+
p = f.top - g.height - l, b = f.left + (f.width - g.width) / 2;
|
|
2590
|
+
break;
|
|
2591
|
+
case "bottom":
|
|
2592
|
+
p = f.bottom + l, b = f.left + (f.width - g.width) / 2;
|
|
2593
|
+
break;
|
|
2594
|
+
case "left":
|
|
2595
|
+
p = f.top + (f.height - g.height) / 2, b = f.left - g.width - l;
|
|
2596
|
+
break;
|
|
2597
|
+
case "right":
|
|
2598
|
+
p = f.top + (f.height - g.height) / 2, b = f.right + l;
|
|
2599
|
+
break;
|
|
2600
|
+
}
|
|
2601
|
+
i({
|
|
2602
|
+
top: Math.round(p + N),
|
|
2603
|
+
left: Math.round(b + E)
|
|
2604
|
+
});
|
|
2605
|
+
}
|
|
2606
|
+
}, [d, n, l]), /* @__PURE__ */ t.jsxs("div", { ref: o, onMouseEnter: () => m(!0), onMouseLeave: () => m(!1), children: [
|
|
2607
|
+
e,
|
|
2608
|
+
d && _e.createPortal(
|
|
2609
|
+
/* @__PURE__ */ t.jsx(
|
|
2610
|
+
"div",
|
|
2611
|
+
{
|
|
2612
|
+
ref: u,
|
|
2613
|
+
style: {
|
|
2614
|
+
position: "absolute",
|
|
2615
|
+
top: `${c.top}px`,
|
|
2616
|
+
left: `${c.left}px`
|
|
2617
|
+
},
|
|
2618
|
+
className: `tooltip ${n} ${a}`,
|
|
2619
|
+
children: r
|
|
2620
|
+
}
|
|
2621
|
+
),
|
|
2622
|
+
document.body
|
|
2623
|
+
)
|
|
2624
|
+
] });
|
|
2625
|
+
}, nn = ({ className: e, children: r, text: n }) => {
|
|
2626
|
+
const [a, l] = D(!1), [d, m] = D({ top: 0, left: 0 }), c = I(null), i = I(null);
|
|
2627
|
+
Q([c, i], () => {
|
|
2628
|
+
l(!1);
|
|
2629
|
+
}), $(() => {
|
|
2630
|
+
if (a && c.current && i.current) {
|
|
2631
|
+
const u = c.current.getBoundingClientRect(), f = i.current.getBoundingClientRect(), { scrollX: g, scrollY: E } = window;
|
|
2632
|
+
let N = 0, p = 0;
|
|
2633
|
+
e.includes("top") ? (N = u.top - f.height - 10, p = u.left + (u.width - f.width) / 2) : e.includes("bottom") ? (N = u.bottom + 10, p = u.left + (u.width - f.width) / 2) : e.includes("left") ? (N = u.top + (u.height - f.height) / 2, p = u.left - f.width - 10) : e.includes("right") && (N = u.top + (u.height - f.height) / 2, p = u.right + 10), m({
|
|
2634
|
+
top: Math.round(N + E),
|
|
2635
|
+
left: Math.round(p + g)
|
|
2636
|
+
});
|
|
2637
|
+
}
|
|
2638
|
+
}, [a, e]);
|
|
2639
|
+
function o() {
|
|
2640
|
+
l(!a);
|
|
2641
|
+
}
|
|
2642
|
+
return /* @__PURE__ */ t.jsxs("div", { ref: c, onClick: o, children: [
|
|
2643
|
+
r,
|
|
2644
|
+
a && _e.createPortal(
|
|
2645
|
+
/* @__PURE__ */ t.jsxs(
|
|
2646
|
+
"div",
|
|
2647
|
+
{
|
|
2648
|
+
ref: i,
|
|
2649
|
+
className: `popover ${e}`,
|
|
2650
|
+
role: "tooltip",
|
|
2651
|
+
style: {
|
|
2652
|
+
position: "absolute",
|
|
2653
|
+
top: `${d.top}px`,
|
|
2654
|
+
left: `${d.left}px`
|
|
2655
|
+
},
|
|
2656
|
+
children: [
|
|
2657
|
+
/* @__PURE__ */ t.jsx("div", { className: "arrow" }),
|
|
2658
|
+
/* @__PURE__ */ t.jsx("div", { className: "popover-content", children: n })
|
|
2659
|
+
]
|
|
2660
|
+
}
|
|
2661
|
+
),
|
|
2662
|
+
document.body
|
|
2663
|
+
)
|
|
2664
|
+
] });
|
|
2665
|
+
}, an = ({ children: e, className: r = "", ...n }) => /* @__PURE__ */ t.jsx("div", { className: `modal-header ${r}`, ...n, children: e }), on = ({ children: e, className: r = "", ...n }) => /* @__PURE__ */ t.jsx("div", { className: `modal-body ${r}`, ...n, children: e }), sn = ({ children: e, className: r = "", ...n }) => /* @__PURE__ */ t.jsx("div", { className: `modal-footer ${r}`, ...n, children: e }), ln = ({ children: e, className: r = "", ...n }) => ($(() => (document.body.style.overflow = "hidden", () => {
|
|
2666
|
+
document.body.style.overflow = "";
|
|
2667
|
+
}), []), dt(
|
|
2668
|
+
/* @__PURE__ */ t.jsx("div", { className: "modal", ...n, children: /* @__PURE__ */ t.jsx("div", { className: `modal-dialog ${r}`, children: e }) }),
|
|
2669
|
+
document.body
|
|
2670
|
+
)), cn = ({ defaultIndex: e = 0, children: r }) => {
|
|
2671
|
+
const [n, a] = D(e), l = (d) => {
|
|
2672
|
+
a(d === n ? null : d);
|
|
2673
|
+
};
|
|
2674
|
+
return /* @__PURE__ */ t.jsx("div", { className: "panel-group", children: O.Children.map(r, (d, m) => O.cloneElement(d, {
|
|
2675
|
+
isOpen: n === m,
|
|
2676
|
+
onClick: () => l(m)
|
|
2677
|
+
})) });
|
|
2678
|
+
}, dn = ({
|
|
2679
|
+
title: e,
|
|
2680
|
+
titleIcon: r,
|
|
2681
|
+
children: n,
|
|
2682
|
+
isOpen: a = !1,
|
|
2683
|
+
onClick: l
|
|
2684
|
+
}) => {
|
|
2685
|
+
const d = O.Children.toArray(n).find(
|
|
2686
|
+
(c) => c.type === hr
|
|
2687
|
+
), m = O.Children.toArray(n).find(
|
|
2688
|
+
(c) => c.type === fr
|
|
2689
|
+
);
|
|
2690
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "card mb-10", children: [
|
|
2691
|
+
/* @__PURE__ */ t.jsxs("div", { className: "card-header", role: "button", tabIndex: 0, onClick: l, onKeyDown: l, children: [
|
|
2692
|
+
/* @__PURE__ */ t.jsxs("div", { className: "card-header-title", children: [
|
|
2693
|
+
r,
|
|
2694
|
+
" ",
|
|
2695
|
+
e
|
|
2696
|
+
] }),
|
|
2697
|
+
/* @__PURE__ */ t.jsx("div", { className: "tools", children: /* @__PURE__ */ t.jsx(ur, { className: `menu-caret ${a ? "active" : ""}` }) })
|
|
2698
|
+
] }),
|
|
2699
|
+
a && /* @__PURE__ */ t.jsxs("div", { className: "panel active", children: [
|
|
2700
|
+
d,
|
|
2701
|
+
m
|
|
2702
|
+
] })
|
|
2703
|
+
] });
|
|
2704
|
+
}, hr = ({ className: e = "", children: r }) => /* @__PURE__ */ t.jsx("div", { className: `card-body ${e}`, children: r }), fr = ({ className: e = "", children: r }) => /* @__PURE__ */ t.jsx("div", { className: `card-footer ${e}`, children: r }), un = ({ size: e = 40, className: r = "", color: n }) => /* @__PURE__ */ t.jsx(
|
|
2705
|
+
"span",
|
|
2706
|
+
{
|
|
2707
|
+
className: `circular-progress ${r} ${n ? `brand-${n}` : ""}`,
|
|
2708
|
+
style: { width: `${e}px`, height: `${e}px` }
|
|
2709
|
+
}
|
|
2710
|
+
), hn = ({
|
|
2711
|
+
showLabel: e = !1,
|
|
2712
|
+
progress: r = 0,
|
|
2713
|
+
className: n = "",
|
|
2714
|
+
color: a
|
|
2715
|
+
}) => {
|
|
2716
|
+
const l = n.includes("indeterminate");
|
|
2717
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `linear-progress ${n}`, children: [
|
|
2718
|
+
/* @__PURE__ */ t.jsx("div", { className: `progress-bar ${a ? `brand-${a}` : ""}`, children: /* @__PURE__ */ t.jsx("span", { className: "progress", style: { width: `${r}%` } }) }),
|
|
2719
|
+
e && !l && /* @__PURE__ */ t.jsxs("span", { className: "progress-label", children: [
|
|
2720
|
+
r,
|
|
2721
|
+
"%"
|
|
2722
|
+
] })
|
|
2723
|
+
] });
|
|
2724
|
+
}, fn = ({
|
|
2725
|
+
progress: e = 0,
|
|
2726
|
+
size: r = 40,
|
|
2727
|
+
className: n = "",
|
|
2728
|
+
color: a,
|
|
2729
|
+
strokeWidth: l = 4
|
|
2730
|
+
}) => {
|
|
2731
|
+
const [d, m] = D(0);
|
|
2732
|
+
return $(() => {
|
|
2733
|
+
if (d < e) {
|
|
2734
|
+
const c = setTimeout(() => {
|
|
2735
|
+
m(d + 1);
|
|
2736
|
+
}, 10);
|
|
2737
|
+
return () => clearTimeout(c);
|
|
2738
|
+
}
|
|
2739
|
+
}, [d, e]), /* @__PURE__ */ t.jsxs("div", { className: `circular-progress-with-label ${n}`, children: [
|
|
2740
|
+
/* @__PURE__ */ t.jsx(
|
|
2741
|
+
"span",
|
|
2742
|
+
{
|
|
2743
|
+
className: `progress ${a ? `brand-${a}` : ""}`,
|
|
2744
|
+
style: {
|
|
2745
|
+
width: `${r}px`,
|
|
2746
|
+
height: `${r}px`,
|
|
2747
|
+
borderWidth: `${l}px`,
|
|
2748
|
+
background: a ? `radial-gradient(closest-side, var(--secondary-bg) 79%, transparent 80% 100%), conic-gradient(var(--brand-${a}) ${d}%, var(--primary-bg) 0)` : `radial-gradient(closest-side, var(--secondary-bg) 79%, transparent 80% 100%), conic-gradient(#888 ${d}%, var(--primary-bg) 0)`
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
),
|
|
2752
|
+
/* @__PURE__ */ t.jsxs("span", { className: "progress-label", children: [
|
|
2753
|
+
d,
|
|
2754
|
+
"%"
|
|
2755
|
+
] })
|
|
2756
|
+
] });
|
|
2757
|
+
}, F = [];
|
|
2758
|
+
for (let e = 0; e < 256; ++e)
|
|
2759
|
+
F.push((e + 256).toString(16).slice(1));
|
|
2760
|
+
function mr(e, r = 0) {
|
|
2761
|
+
return (F[e[r + 0]] + F[e[r + 1]] + F[e[r + 2]] + F[e[r + 3]] + "-" + F[e[r + 4]] + F[e[r + 5]] + "-" + F[e[r + 6]] + F[e[r + 7]] + "-" + F[e[r + 8]] + F[e[r + 9]] + "-" + F[e[r + 10]] + F[e[r + 11]] + F[e[r + 12]] + F[e[r + 13]] + F[e[r + 14]] + F[e[r + 15]]).toLowerCase();
|
|
2762
|
+
}
|
|
2763
|
+
let Te;
|
|
2764
|
+
const pr = new Uint8Array(16);
|
|
2765
|
+
function vr() {
|
|
2766
|
+
if (!Te) {
|
|
2767
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
2768
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2769
|
+
Te = crypto.getRandomValues.bind(crypto);
|
|
2770
|
+
}
|
|
2771
|
+
return Te(pr);
|
|
2772
|
+
}
|
|
2773
|
+
const gr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ot = { randomUUID: gr };
|
|
2774
|
+
function Se(e, r, n) {
|
|
2775
|
+
if (ot.randomUUID && !e)
|
|
2776
|
+
return ot.randomUUID();
|
|
2777
|
+
e = e || {};
|
|
2778
|
+
const a = e.random ?? e.rng?.() ?? vr();
|
|
2779
|
+
if (a.length < 16)
|
|
2780
|
+
throw new Error("Random bytes length must be >= 16");
|
|
2781
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, mr(a);
|
|
2782
|
+
}
|
|
2783
|
+
const xt = K(
|
|
2784
|
+
({ name: e, label: r, message: n, error: a, checked: l = !1, onChange: d, ...m }, c) => {
|
|
2785
|
+
const i = Se(), o = (u) => {
|
|
2786
|
+
d(u);
|
|
2787
|
+
};
|
|
2788
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2789
|
+
/* @__PURE__ */ t.jsxs("label", { className: "custom-checkbox", htmlFor: i, children: [
|
|
2790
|
+
/* @__PURE__ */ t.jsx(
|
|
2791
|
+
"input",
|
|
2792
|
+
{
|
|
2793
|
+
className: "form-control",
|
|
2794
|
+
type: "checkbox",
|
|
2795
|
+
id: i,
|
|
2796
|
+
name: e,
|
|
2797
|
+
ref: c,
|
|
2798
|
+
role: "checkbox",
|
|
2799
|
+
checked: l,
|
|
2800
|
+
onChange: o,
|
|
2801
|
+
...m
|
|
2802
|
+
}
|
|
2803
|
+
),
|
|
2804
|
+
/* @__PURE__ */ t.jsx("span", { className: "checkmark" }),
|
|
2805
|
+
r && /* @__PURE__ */ t.jsx("span", { className: m.required ? "required" : "", children: r })
|
|
2806
|
+
] }),
|
|
2807
|
+
a ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: a }) : n && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: n })
|
|
2808
|
+
] });
|
|
2809
|
+
}
|
|
2810
|
+
);
|
|
2811
|
+
xt.displayName = "Checkbox";
|
|
2812
|
+
const xr = ({ className: e = "", children: r }) => /* @__PURE__ */ t.jsx("ul", { className: `block-list ${e}`, children: r }), br = ({ children: e }) => /* @__PURE__ */ t.jsx("li", { children: e }), mn = ({ children: e }) => /* @__PURE__ */ t.jsx("div", { className: "form", children: e }), pn = ({ className: e = "", children: r }) => /* @__PURE__ */ t.jsx("div", { className: `form-group ${e}`, children: r }), yr = ({ className: e = "", children: r }) => /* @__PURE__ */ t.jsx("div", { className: `form-checkbox ${e}`, children: r }), vn = ({ className: e = "", children: r }) => /* @__PURE__ */ t.jsx("div", { className: `form-radio ${e}`, children: r }), jr = K(
|
|
2813
|
+
({ name: e, label: r, error: n, checked: a = !1, onChange: l, ...d }, m) => {
|
|
2814
|
+
const c = Se(), i = (o) => {
|
|
2815
|
+
l(o);
|
|
2816
|
+
};
|
|
2817
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(xr, { className: `${n ? "has-error" : ""}`, children: /* @__PURE__ */ t.jsxs(br, { children: [
|
|
2818
|
+
/* @__PURE__ */ t.jsx("div", { className: "d-flex align-items-center", children: /* @__PURE__ */ t.jsx(yr, { className: `${n ? "has-error" : ""}`, children: /* @__PURE__ */ t.jsxs("label", { className: "custom-checkbox", htmlFor: c, children: [
|
|
2819
|
+
/* @__PURE__ */ t.jsx(
|
|
2820
|
+
"input",
|
|
2821
|
+
{
|
|
2822
|
+
className: "form-control",
|
|
2823
|
+
type: "checkbox",
|
|
2824
|
+
id: c,
|
|
2825
|
+
name: e,
|
|
2826
|
+
ref: m,
|
|
2827
|
+
role: "checkbox",
|
|
2828
|
+
checked: a,
|
|
2829
|
+
onChange: i,
|
|
2830
|
+
...d
|
|
2831
|
+
}
|
|
2832
|
+
),
|
|
2833
|
+
/* @__PURE__ */ t.jsx("span", { className: "checkmark" })
|
|
2834
|
+
] }) }) }),
|
|
2835
|
+
/* @__PURE__ */ t.jsx("div", { className: "d-flex align-items-center pl-10", children: /* @__PURE__ */ t.jsx("p", { className: `mb-0 ${n ? "text-danger" : ""}`, children: r && /* @__PURE__ */ t.jsx("span", { className: d.required ? "required" : "", children: r }) }) })
|
|
2836
|
+
] }) }) });
|
|
2837
|
+
}
|
|
2838
|
+
);
|
|
2839
|
+
jr.displayName = "CheckboxAgreement";
|
|
2840
|
+
const Er = (e) => {
|
|
2841
|
+
const [r, n] = D(!1);
|
|
2842
|
+
return $(() => {
|
|
2843
|
+
const a = () => {
|
|
2844
|
+
if (!e.current) return;
|
|
2845
|
+
const { top: d, height: m } = e.current.getBoundingClientRect(), c = window.innerHeight;
|
|
2846
|
+
n(d + m > c);
|
|
2847
|
+
};
|
|
2848
|
+
a();
|
|
2849
|
+
const l = () => {
|
|
2850
|
+
a();
|
|
2851
|
+
};
|
|
2852
|
+
return window.addEventListener("resize", l), () => {
|
|
2853
|
+
window.removeEventListener("resize", l);
|
|
2854
|
+
};
|
|
2855
|
+
}, [e]), r;
|
|
2856
|
+
}, Nr = (e) => {
|
|
2857
|
+
const [r, n, a] = e.toLocaleDateString("id-ID", {
|
|
2858
|
+
timeZone: "Asia/Jakarta",
|
|
2859
|
+
year: "numeric",
|
|
2860
|
+
month: "2-digit",
|
|
2861
|
+
day: "2-digit"
|
|
2862
|
+
}).split("/");
|
|
2863
|
+
return `${a}-${n}-${r}`;
|
|
2864
|
+
}, he = (e, r) => Array.from({ length: e }, (n, a) => r(a)), st = (e, r) => {
|
|
2865
|
+
const n = new Date(r, e, 1).getDay(), a = new Date(r, e + 1, 0).getDate(), l = he(n, () => ({ value: "", label: "" })), d = he(a, (m) => ({
|
|
2866
|
+
value: (m + 1).toString(),
|
|
2867
|
+
label: (m + 1).toString()
|
|
2868
|
+
}));
|
|
2869
|
+
return [...l, ...d];
|
|
2870
|
+
}, wr = (e, r) => {
|
|
2871
|
+
const n = new Date(r, e + 1, 0).getDate();
|
|
2872
|
+
return he(n, (a) => ({
|
|
2873
|
+
value: (a + 1).toString(),
|
|
2874
|
+
label: (a + 1).toString()
|
|
2875
|
+
}));
|
|
2876
|
+
}, Cr = (e = "id-ID") => he(12, (r) => ({
|
|
2877
|
+
value: (r + 1).toString(),
|
|
2878
|
+
label: new Date(2024, r, 1).toLocaleString(e, { month: "long" })
|
|
2879
|
+
})), Rr = () => {
|
|
2880
|
+
const e = (/* @__PURE__ */ new Date()).getFullYear();
|
|
2881
|
+
return he(81, (r) => {
|
|
2882
|
+
const n = e - 60 + r;
|
|
2883
|
+
return { value: n.toString(), label: n.toString() };
|
|
2884
|
+
});
|
|
2885
|
+
}, Tr = (e) => {
|
|
2886
|
+
const r = new Date(e);
|
|
2887
|
+
return r instanceof Date && !isNaN(r.getTime());
|
|
2888
|
+
}, _r = ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], kr = (e) => {
|
|
2889
|
+
const [r, n] = D(e);
|
|
2890
|
+
return {
|
|
2891
|
+
selectedDate: r,
|
|
2892
|
+
handlePrevMonth: () => {
|
|
2893
|
+
const c = new Date(r);
|
|
2894
|
+
c.setMonth(r.getMonth() - 1), n(c);
|
|
2895
|
+
},
|
|
2896
|
+
handleNextMonth: () => {
|
|
2897
|
+
const c = new Date(r);
|
|
2898
|
+
c.setMonth(r.getMonth() + 1), n(c);
|
|
2899
|
+
},
|
|
2900
|
+
handleDateClick: (c, i, o, u) => {
|
|
2901
|
+
const f = /* @__PURE__ */ new Date(o + "-" + (parseInt(i, 10) + 1) + "-" + c);
|
|
2902
|
+
n(f), u(Nr(f));
|
|
2903
|
+
},
|
|
2904
|
+
isSelectedDate: (c, i, o) => parseInt(o, 10) === e.getFullYear() && parseInt(i, 10) === e.getMonth() + 1 && parseInt(c, 10) === e.getDate()
|
|
2905
|
+
};
|
|
2906
|
+
}, Sr = ({ onSelect: e, defaultDate: r }) => {
|
|
2907
|
+
const n = I(null), a = Er(n), l = Tr(r) ? new Date(r) : /* @__PURE__ */ new Date(), { selectedDate: d, handlePrevMonth: m, handleNextMonth: c, handleDateClick: i, isSelectedDate: o } = kr(l), [u, f] = D(
|
|
2908
|
+
st(l.getMonth(), l.getFullYear())
|
|
2909
|
+
);
|
|
2910
|
+
$(() => {
|
|
2911
|
+
f(st(d.getMonth(), d.getFullYear()));
|
|
2912
|
+
}, [d]);
|
|
2913
|
+
const g = (E, N) => u.map(
|
|
2914
|
+
(p, b) => p.value !== "" ? /* @__PURE__ */ t.jsx(
|
|
2915
|
+
"div",
|
|
2916
|
+
{
|
|
2917
|
+
className: `calendar-day ${o(p.value, E + 1, N) ? "selected-date" : ""}`,
|
|
2918
|
+
onClick: () => i(p.value, E, N, e),
|
|
2919
|
+
children: p.label
|
|
2920
|
+
},
|
|
2921
|
+
`day-${b}`
|
|
2922
|
+
) : /* @__PURE__ */ t.jsx("div", { className: "calendar-day empty" }, `day-${b}`)
|
|
2923
|
+
);
|
|
2924
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `date-picker ${a ? "position-top" : ""}`, ref: n, children: [
|
|
2925
|
+
/* @__PURE__ */ t.jsxs("div", { className: "calendar-nav", children: [
|
|
2926
|
+
/* @__PURE__ */ t.jsx("button", { type: "button", className: "btn btn-rounded", onClick: m, children: /* @__PURE__ */ t.jsx(lr, {}) }),
|
|
2927
|
+
/* @__PURE__ */ t.jsxs("span", { children: [
|
|
2928
|
+
d.toLocaleString("default", { month: "long" }),
|
|
2929
|
+
" ",
|
|
2930
|
+
d.getFullYear()
|
|
2931
|
+
] }),
|
|
2932
|
+
/* @__PURE__ */ t.jsx("button", { type: "button", className: "btn btn-rounded", onClick: c, children: /* @__PURE__ */ t.jsx(cr, {}) })
|
|
2933
|
+
] }),
|
|
2934
|
+
/* @__PURE__ */ t.jsxs("div", { className: "calendar", children: [
|
|
2935
|
+
/* @__PURE__ */ t.jsx("div", { className: "calendar-header", children: _r.map((E, N) => /* @__PURE__ */ t.jsx("div", { className: "calendar-day-name", children: E }, `day-${N}`)) }),
|
|
2936
|
+
/* @__PURE__ */ t.jsx("div", { className: "calendar-body", children: g(d.getMonth().toString(), d.getFullYear().toString()) })
|
|
2937
|
+
] })
|
|
2938
|
+
] });
|
|
2939
|
+
}, Oe = (e, r) => {
|
|
2940
|
+
$(() => {
|
|
2941
|
+
if (e && r.current) {
|
|
2942
|
+
const n = r.current.getBoundingClientRect(), a = window.innerHeight;
|
|
2943
|
+
n.bottom > a ? r.current.classList.add("position-top") : r.current.classList.remove("position-top");
|
|
2944
|
+
const l = r.current.querySelector(".option.selected");
|
|
2945
|
+
l && l.scrollIntoView({ block: "nearest" });
|
|
2946
|
+
}
|
|
2947
|
+
}, [e, r]);
|
|
2948
|
+
}, ue = K((e, r) => {
|
|
2949
|
+
const {
|
|
2950
|
+
name: n,
|
|
2951
|
+
label: a,
|
|
2952
|
+
message: l,
|
|
2953
|
+
selectLabel: d = "Select an option",
|
|
2954
|
+
size: m = "md",
|
|
2955
|
+
floatingLabel: c = !1,
|
|
2956
|
+
error: i,
|
|
2957
|
+
options: o,
|
|
2958
|
+
value: u = "",
|
|
2959
|
+
onChange: f,
|
|
2960
|
+
onBlur: g,
|
|
2961
|
+
required: E,
|
|
2962
|
+
disabled: N
|
|
2963
|
+
} = e, [p, b] = D(!1), w = I(null), y = I(null), R = I(null), A = o.find((h) => h.value === u)?.label ?? d;
|
|
2964
|
+
ct(r, () => R.current), $(() => b(!1), []), Q([w], () => {
|
|
2965
|
+
b(!1), R.current?.blur();
|
|
2966
|
+
}), Oe(p, y);
|
|
2967
|
+
const s = (h) => {
|
|
2968
|
+
const v = o.find((P) => P.value === h);
|
|
2969
|
+
if (!v) return;
|
|
2970
|
+
const j = v.value;
|
|
2971
|
+
if (f?.({
|
|
2972
|
+
target: {
|
|
2973
|
+
name: n,
|
|
2974
|
+
value: j,
|
|
2975
|
+
type: "select-one"
|
|
2976
|
+
},
|
|
2977
|
+
currentTarget: {
|
|
2978
|
+
name: n,
|
|
2979
|
+
value: j
|
|
2980
|
+
}
|
|
2981
|
+
}), R.current) {
|
|
2982
|
+
R.current.value = String(j);
|
|
2983
|
+
const P = new CustomEvent("change", {
|
|
2984
|
+
bubbles: !0,
|
|
2985
|
+
detail: { originalValue: j }
|
|
2986
|
+
});
|
|
2987
|
+
R.current.dispatchEvent(P);
|
|
2988
|
+
}
|
|
2989
|
+
b(!1);
|
|
2990
|
+
};
|
|
2991
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2992
|
+
/* @__PURE__ */ t.jsxs(
|
|
2993
|
+
"select",
|
|
2994
|
+
{
|
|
2995
|
+
ref: R,
|
|
2996
|
+
name: n,
|
|
2997
|
+
value: u != null && !Number.isNaN(u) ? u : "",
|
|
2998
|
+
onChange: f,
|
|
2999
|
+
onBlur: g,
|
|
3000
|
+
required: E,
|
|
3001
|
+
disabled: N,
|
|
3002
|
+
style: { position: "absolute", left: "-9999px" },
|
|
3003
|
+
tabIndex: -1,
|
|
3004
|
+
children: [
|
|
3005
|
+
/* @__PURE__ */ t.jsx("option", { value: "", children: "Select an option" }),
|
|
3006
|
+
o.map((h) => /* @__PURE__ */ t.jsx("option", { value: String(h.value), children: h.label }, h.value))
|
|
3007
|
+
]
|
|
3008
|
+
}
|
|
3009
|
+
),
|
|
3010
|
+
a && !c && /* @__PURE__ */ t.jsxs("label", { htmlFor: n, children: [
|
|
3011
|
+
a,
|
|
3012
|
+
" ",
|
|
3013
|
+
E && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3014
|
+
] }),
|
|
3015
|
+
/* @__PURE__ */ t.jsxs("div", { className: `dropdown-select-container ${m}`, ref: w, children: [
|
|
3016
|
+
/* @__PURE__ */ t.jsxs(
|
|
3017
|
+
"div",
|
|
3018
|
+
{
|
|
3019
|
+
className: `dropdown-header ${p ? "open" : ""} ${N ? "disabled" : ""}`,
|
|
3020
|
+
onClick: () => !N && b(!p),
|
|
3021
|
+
"aria-haspopup": "listbox",
|
|
3022
|
+
"aria-expanded": p,
|
|
3023
|
+
children: [
|
|
3024
|
+
/* @__PURE__ */ t.jsx("span", { className: "label", children: A }),
|
|
3025
|
+
/* @__PURE__ */ t.jsx(ke, { className: "arrow" })
|
|
3026
|
+
]
|
|
3027
|
+
}
|
|
3028
|
+
),
|
|
3029
|
+
p && /* @__PURE__ */ t.jsx("div", { className: "dropdown-options scrollbar", ref: y, role: "listbox", children: o.map((h) => /* @__PURE__ */ t.jsx(
|
|
3030
|
+
"div",
|
|
3031
|
+
{
|
|
3032
|
+
className: `option ${h.value === u ? "selected" : ""}`,
|
|
3033
|
+
onClick: () => s(h.value),
|
|
3034
|
+
role: "option",
|
|
3035
|
+
"aria-selected": h.value === u,
|
|
3036
|
+
children: h.label
|
|
3037
|
+
},
|
|
3038
|
+
h.value
|
|
3039
|
+
)) })
|
|
3040
|
+
] }),
|
|
3041
|
+
a && c && /* @__PURE__ */ t.jsxs("label", { htmlFor: n, children: [
|
|
3042
|
+
a,
|
|
3043
|
+
" ",
|
|
3044
|
+
E && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3045
|
+
] }),
|
|
3046
|
+
i ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: i }) : l && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: l })
|
|
3047
|
+
] });
|
|
3048
|
+
});
|
|
3049
|
+
ue.displayName = "Select";
|
|
3050
|
+
const Or = O.forwardRef(
|
|
3051
|
+
({ name: e, label: r, message: n, floatingLabel: a, locale: l = "id", error: d, value: m, ...c }, i) => {
|
|
3052
|
+
const o = (y) => {
|
|
3053
|
+
if (!y) return /* @__PURE__ */ new Date();
|
|
3054
|
+
const R = new Date(y);
|
|
3055
|
+
return isNaN(R.getTime()) ? /* @__PURE__ */ new Date() : R;
|
|
3056
|
+
}, u = o(m), [f, g] = D({
|
|
3057
|
+
day: u.getDate(),
|
|
3058
|
+
month: u.getMonth() + 1,
|
|
3059
|
+
year: u.getFullYear()
|
|
3060
|
+
});
|
|
3061
|
+
$(() => {
|
|
3062
|
+
if (m) {
|
|
3063
|
+
const y = o(m);
|
|
3064
|
+
g({
|
|
3065
|
+
day: y.getDate(),
|
|
3066
|
+
month: y.getMonth() + 1,
|
|
3067
|
+
year: y.getFullYear()
|
|
3068
|
+
});
|
|
3069
|
+
}
|
|
3070
|
+
}, [m]), $(() => {
|
|
3071
|
+
const y = new Date(f.year, f.month, 0).getDate();
|
|
3072
|
+
f.day > y && g((R) => ({ ...R, day: y }));
|
|
3073
|
+
}, [f.month, f.year]);
|
|
3074
|
+
const E = (y, R) => {
|
|
3075
|
+
const A = parseInt(R, 10);
|
|
3076
|
+
if (isNaN(A)) return;
|
|
3077
|
+
const s = { ...f, [y]: A };
|
|
3078
|
+
if (g(s), c.onChange) {
|
|
3079
|
+
const h = `${s.year}-${String(s.month).padStart(2, "0")}-${String(s.day).padStart(2, "0")}`;
|
|
3080
|
+
c.onChange({
|
|
3081
|
+
target: {
|
|
3082
|
+
name: e,
|
|
3083
|
+
value: h
|
|
3084
|
+
}
|
|
3085
|
+
});
|
|
3086
|
+
}
|
|
3087
|
+
}, N = ge(
|
|
3088
|
+
() => wr(f.month - 1, f.year),
|
|
3089
|
+
[f.month, f.year]
|
|
3090
|
+
), p = ge(() => Cr(l), [l]), b = ge(() => Rr(), []), w = /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3091
|
+
r,
|
|
3092
|
+
" ",
|
|
3093
|
+
c.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3094
|
+
] });
|
|
3095
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3096
|
+
!a && w,
|
|
3097
|
+
/* @__PURE__ */ t.jsxs("div", { className: "row", ref: i, children: [
|
|
3098
|
+
/* @__PURE__ */ t.jsx("div", { className: "col-md-3", children: /* @__PURE__ */ t.jsx(
|
|
3099
|
+
ue,
|
|
3100
|
+
{
|
|
3101
|
+
name: `${e}-day`,
|
|
3102
|
+
disabled: c.disabled,
|
|
3103
|
+
options: N,
|
|
3104
|
+
value: f.day.toString(),
|
|
3105
|
+
onChange: (y) => E("day", y.target.value),
|
|
3106
|
+
"aria-label": "Day"
|
|
3107
|
+
}
|
|
3108
|
+
) }),
|
|
3109
|
+
/* @__PURE__ */ t.jsx("div", { className: "col-md-5", children: /* @__PURE__ */ t.jsx(
|
|
3110
|
+
ue,
|
|
3111
|
+
{
|
|
3112
|
+
name: `${e}-month`,
|
|
3113
|
+
disabled: c.disabled,
|
|
3114
|
+
options: p,
|
|
3115
|
+
value: f.month.toString(),
|
|
3116
|
+
onChange: (y) => E("month", y.target.value),
|
|
3117
|
+
"aria-label": "Month"
|
|
3118
|
+
}
|
|
3119
|
+
) }),
|
|
3120
|
+
/* @__PURE__ */ t.jsx("div", { className: "col-md-4", children: /* @__PURE__ */ t.jsx(
|
|
3121
|
+
ue,
|
|
3122
|
+
{
|
|
3123
|
+
name: `${e}-year`,
|
|
3124
|
+
disabled: c.disabled,
|
|
3125
|
+
options: b,
|
|
3126
|
+
value: f.year.toString(),
|
|
3127
|
+
onChange: (y) => E("year", y.target.value),
|
|
3128
|
+
"aria-label": "Year"
|
|
3129
|
+
}
|
|
3130
|
+
) })
|
|
3131
|
+
] }),
|
|
3132
|
+
a && w,
|
|
3133
|
+
d ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: d }) : n && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: n })
|
|
3134
|
+
] });
|
|
3135
|
+
}
|
|
3136
|
+
);
|
|
3137
|
+
Or.displayName = "DropdownDatePicker";
|
|
3138
|
+
const gn = ({ type: e = "text", className: r, ...n }) => /* @__PURE__ */ t.jsx("input", { type: e, className: `clear ${r}`, ...n }), bt = O.forwardRef(
|
|
3139
|
+
({ className: e, name: r, label: n, message: a, floatingLabel: l, error: d, ...m }, c) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3140
|
+
!l && n && /* @__PURE__ */ t.jsxs("label", { htmlFor: r, children: [
|
|
3141
|
+
n,
|
|
3142
|
+
" ",
|
|
3143
|
+
m.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3144
|
+
] }),
|
|
3145
|
+
/* @__PURE__ */ t.jsx(
|
|
3146
|
+
"input",
|
|
3147
|
+
{
|
|
3148
|
+
type: "text",
|
|
3149
|
+
className: `form-control ${e}`,
|
|
3150
|
+
id: r,
|
|
3151
|
+
name: r,
|
|
3152
|
+
placeholder: l ? "" : " ",
|
|
3153
|
+
ref: c,
|
|
3154
|
+
...m
|
|
3155
|
+
}
|
|
3156
|
+
),
|
|
3157
|
+
l && n && /* @__PURE__ */ t.jsxs("label", { htmlFor: r, children: [
|
|
3158
|
+
n,
|
|
3159
|
+
" ",
|
|
3160
|
+
m.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3161
|
+
] }),
|
|
3162
|
+
d ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: d }) : a && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: a })
|
|
3163
|
+
] })
|
|
3164
|
+
), xn = O.forwardRef(
|
|
3165
|
+
({
|
|
3166
|
+
className: e,
|
|
3167
|
+
name: r,
|
|
3168
|
+
label: n,
|
|
3169
|
+
message: a,
|
|
3170
|
+
floatingLabel: l,
|
|
3171
|
+
error: d,
|
|
3172
|
+
actionIcon: m,
|
|
3173
|
+
actionButtonLabel: c,
|
|
3174
|
+
actionButtonHandler: i,
|
|
3175
|
+
...o
|
|
3176
|
+
}, u) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3177
|
+
!l && n && /* @__PURE__ */ t.jsxs("label", { htmlFor: r, children: [
|
|
3178
|
+
n,
|
|
3179
|
+
" ",
|
|
3180
|
+
o.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3181
|
+
] }),
|
|
3182
|
+
/* @__PURE__ */ t.jsxs("div", { className: "input-group-icon", children: [
|
|
3183
|
+
/* @__PURE__ */ t.jsx(
|
|
3184
|
+
"input",
|
|
3185
|
+
{
|
|
3186
|
+
type: "text",
|
|
3187
|
+
className: `form-control pr-35 ${e}`,
|
|
3188
|
+
id: r,
|
|
3189
|
+
name: r,
|
|
3190
|
+
placeholder: l ? "" : " ",
|
|
3191
|
+
ref: u,
|
|
3192
|
+
...o
|
|
3193
|
+
}
|
|
3194
|
+
),
|
|
3195
|
+
m && /* @__PURE__ */ t.jsx(
|
|
3196
|
+
q,
|
|
3197
|
+
{
|
|
3198
|
+
role: "button",
|
|
3199
|
+
className: "icon",
|
|
3200
|
+
onClick: i,
|
|
3201
|
+
tabIndex: 0,
|
|
3202
|
+
"aria-label": c,
|
|
3203
|
+
disabled: o.disabled,
|
|
3204
|
+
children: m
|
|
3205
|
+
}
|
|
3206
|
+
)
|
|
3207
|
+
] }),
|
|
3208
|
+
l && n && /* @__PURE__ */ t.jsxs("label", { htmlFor: r, children: [
|
|
3209
|
+
n,
|
|
3210
|
+
" ",
|
|
3211
|
+
o.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3212
|
+
] }),
|
|
3213
|
+
d ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: d }) : a && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: a })
|
|
3214
|
+
] })
|
|
3215
|
+
), Ar = O.forwardRef(
|
|
3216
|
+
({ name: e, label: r, message: n, floatingLabel: a, value: l = "", error: d, ...m }, c) => {
|
|
3217
|
+
const [i, o] = D(!1), [u, f] = D(l ?? ""), g = I(null);
|
|
3218
|
+
O.useEffect(() => {
|
|
3219
|
+
f(l);
|
|
3220
|
+
}, [l]);
|
|
3221
|
+
const E = (p) => {
|
|
3222
|
+
p.stopPropagation(), o((b) => !b);
|
|
3223
|
+
}, N = (p) => {
|
|
3224
|
+
f(p), o(!1), m.onChange && m.onChange({
|
|
3225
|
+
target: { name: e, value: p }
|
|
3226
|
+
});
|
|
3227
|
+
};
|
|
3228
|
+
return Q([g], () => {
|
|
3229
|
+
o(!1);
|
|
3230
|
+
}), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3231
|
+
!a && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3232
|
+
r,
|
|
3233
|
+
" ",
|
|
3234
|
+
m.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3235
|
+
] }),
|
|
3236
|
+
/* @__PURE__ */ t.jsxs("div", { className: "input-group-icon", children: [
|
|
3237
|
+
/* @__PURE__ */ t.jsx(
|
|
3238
|
+
bt,
|
|
3239
|
+
{
|
|
3240
|
+
type: "text",
|
|
3241
|
+
className: "form-control",
|
|
3242
|
+
id: e,
|
|
3243
|
+
name: e,
|
|
3244
|
+
placeholder: a ? "" : " ",
|
|
3245
|
+
ref: c,
|
|
3246
|
+
value: u,
|
|
3247
|
+
...m
|
|
3248
|
+
}
|
|
3249
|
+
),
|
|
3250
|
+
/* @__PURE__ */ t.jsx(
|
|
3251
|
+
q,
|
|
3252
|
+
{
|
|
3253
|
+
role: "button",
|
|
3254
|
+
className: "icon",
|
|
3255
|
+
onClick: E,
|
|
3256
|
+
tabIndex: 0,
|
|
3257
|
+
"aria-label": "Open date picker",
|
|
3258
|
+
disabled: m.disabled,
|
|
3259
|
+
children: /* @__PURE__ */ t.jsx(Qt, {})
|
|
3260
|
+
}
|
|
3261
|
+
),
|
|
3262
|
+
i && /* @__PURE__ */ t.jsx("div", { ref: g, children: /* @__PURE__ */ t.jsx(Sr, { onSelect: N, defaultDate: u }) })
|
|
3263
|
+
] }),
|
|
3264
|
+
a && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3265
|
+
r,
|
|
3266
|
+
" ",
|
|
3267
|
+
m.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3268
|
+
] }),
|
|
3269
|
+
d ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: d }) : n && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: n })
|
|
3270
|
+
] });
|
|
3271
|
+
}
|
|
3272
|
+
);
|
|
3273
|
+
Ar.displayName = "InputDate";
|
|
3274
|
+
const Pr = K(
|
|
3275
|
+
({ name: e, label: r, message: n, accept: a, error: l, onChange: d, ...m }, c) => {
|
|
3276
|
+
const i = (o) => {
|
|
3277
|
+
d && d(o);
|
|
3278
|
+
};
|
|
3279
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "form-group", children: [
|
|
3280
|
+
r && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3281
|
+
r,
|
|
3282
|
+
" ",
|
|
3283
|
+
m.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3284
|
+
] }),
|
|
3285
|
+
/* @__PURE__ */ t.jsx(
|
|
3286
|
+
"input",
|
|
3287
|
+
{
|
|
3288
|
+
type: "file",
|
|
3289
|
+
className: "form-control",
|
|
3290
|
+
id: e,
|
|
3291
|
+
name: e,
|
|
3292
|
+
accept: a,
|
|
3293
|
+
onChange: i,
|
|
3294
|
+
ref: c,
|
|
3295
|
+
...m
|
|
3296
|
+
}
|
|
3297
|
+
),
|
|
3298
|
+
l ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: l }) : n && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: n })
|
|
3299
|
+
] });
|
|
3300
|
+
}
|
|
3301
|
+
);
|
|
3302
|
+
Pr.displayName = "InputFile";
|
|
3303
|
+
const bn = () => /* @__PURE__ */ t.jsx("div", { children: "InputImageSize" }), Dr = O.forwardRef(
|
|
3304
|
+
({ name: e, label: r, message: n, floatingLabel: a, error: l, ...d }, m) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3305
|
+
!a && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3306
|
+
r,
|
|
3307
|
+
" ",
|
|
3308
|
+
d.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3309
|
+
] }),
|
|
3310
|
+
/* @__PURE__ */ t.jsx(
|
|
3311
|
+
"textarea",
|
|
3312
|
+
{
|
|
3313
|
+
className: "form-control",
|
|
3314
|
+
id: e,
|
|
3315
|
+
name: e,
|
|
3316
|
+
placeholder: a ? "" : " ",
|
|
3317
|
+
ref: m,
|
|
3318
|
+
...d
|
|
3319
|
+
}
|
|
3320
|
+
),
|
|
3321
|
+
a && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3322
|
+
r,
|
|
3323
|
+
" ",
|
|
3324
|
+
d.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3325
|
+
] }),
|
|
3326
|
+
l ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: l }) : n && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: n })
|
|
3327
|
+
] })
|
|
3328
|
+
);
|
|
3329
|
+
Dr.displayName = "InputTextArea";
|
|
3330
|
+
const lt = [
|
|
3331
|
+
{ name: "bold", label: "Bold", icon: /* @__PURE__ */ t.jsx(nr, { className: "icon" }) },
|
|
3332
|
+
{ name: "italic", label: "Italic", icon: /* @__PURE__ */ t.jsx(ar, { className: "icon" }) },
|
|
3333
|
+
{ name: "underline", label: "Underline", icon: /* @__PURE__ */ t.jsx(sr, { className: "icon" }) },
|
|
3334
|
+
{ name: "insertUnorderedList", label: "Bullet List", icon: /* @__PURE__ */ t.jsx(ir, { className: "icon" }) },
|
|
3335
|
+
{ name: "insertOrderedList", label: "Number List", icon: /* @__PURE__ */ t.jsx(or, { className: "icon" }) }
|
|
3336
|
+
], Mr = K(
|
|
3337
|
+
({ name: e, label: r, message: n, floatingLabel: a, error: l, value: d, ...m }, c) => {
|
|
3338
|
+
const i = I(null), [o, u] = D([""]), [f, g] = D(0), [E, N] = D({
|
|
3339
|
+
bold: !1,
|
|
3340
|
+
italic: !1,
|
|
3341
|
+
underline: !1,
|
|
3342
|
+
insertUnorderedList: !1,
|
|
3343
|
+
insertOrderedList: !1
|
|
3344
|
+
}), p = X(() => {
|
|
3345
|
+
if (document.activeElement === i.current) {
|
|
3346
|
+
const h = { ...E };
|
|
3347
|
+
lt.forEach(({ name: v }) => {
|
|
3348
|
+
h[v] = document.queryCommandState(v);
|
|
3349
|
+
}), N(h);
|
|
3350
|
+
}
|
|
3351
|
+
}, [E]), b = X(() => {
|
|
3352
|
+
if (i.current) {
|
|
3353
|
+
const h = i.current.innerHTML, v = o[f];
|
|
3354
|
+
if (h !== v) {
|
|
3355
|
+
const j = o.slice(0, f + 1);
|
|
3356
|
+
j.push(h), u(j), g(j.length - 1);
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
}, [o, f]), w = X(() => {
|
|
3360
|
+
m.onChange && i.current && m.onChange({
|
|
3361
|
+
target: { name: e, value: i.current.innerHTML }
|
|
3362
|
+
});
|
|
3363
|
+
}, [e, m]);
|
|
3364
|
+
$(() => {
|
|
3365
|
+
i.current && d !== void 0 && i.current.innerHTML !== d && (i.current.innerHTML = d, u([d]), g(0));
|
|
3366
|
+
}, [d]), $(() => {
|
|
3367
|
+
const h = () => p();
|
|
3368
|
+
return document.addEventListener("selectionchange", h), () => document.removeEventListener("selectionchange", h);
|
|
3369
|
+
}, [p]);
|
|
3370
|
+
const y = X(
|
|
3371
|
+
(h, v = !1, j = "") => {
|
|
3372
|
+
document.execCommand(h, v, j), p(), b(), w();
|
|
3373
|
+
},
|
|
3374
|
+
[p, b, w]
|
|
3375
|
+
), R = X(() => {
|
|
3376
|
+
if (f > 0) {
|
|
3377
|
+
const h = f - 1;
|
|
3378
|
+
g(h), i.current && o[h] && (i.current.innerHTML = o[h], w());
|
|
3379
|
+
}
|
|
3380
|
+
}, [f, o, w]), A = X(() => {
|
|
3381
|
+
if (f < o.length - 1) {
|
|
3382
|
+
const h = f + 1;
|
|
3383
|
+
g(h), i.current && o[h] && (i.current.innerHTML = o[h], w());
|
|
3384
|
+
}
|
|
3385
|
+
}, [f, o, w]), s = X(() => {
|
|
3386
|
+
p(), b(), w();
|
|
3387
|
+
}, [p, b, w]);
|
|
3388
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "wysiwyg-container", children: [
|
|
3389
|
+
!a && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3390
|
+
r,
|
|
3391
|
+
" ",
|
|
3392
|
+
m.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3393
|
+
] }),
|
|
3394
|
+
/* @__PURE__ */ t.jsxs("div", { className: "ps-editor", ref: c, children: [
|
|
3395
|
+
/* @__PURE__ */ t.jsxs("div", { className: "editor-toolbar", children: [
|
|
3396
|
+
/* @__PURE__ */ t.jsx(Re, { text: "Undo", children: /* @__PURE__ */ t.jsx(q, { className: "toolbar-btn", onClick: R, disabled: f <= 0, children: /* @__PURE__ */ t.jsx(rr, { className: "icon" }) }) }),
|
|
3397
|
+
/* @__PURE__ */ t.jsx(Re, { text: "Redo", children: /* @__PURE__ */ t.jsx(
|
|
3398
|
+
q,
|
|
3399
|
+
{
|
|
3400
|
+
className: "toolbar-btn",
|
|
3401
|
+
onClick: A,
|
|
3402
|
+
disabled: f >= o.length - 1,
|
|
3403
|
+
children: /* @__PURE__ */ t.jsx(tr, { className: "icon" })
|
|
3404
|
+
}
|
|
3405
|
+
) }),
|
|
3406
|
+
lt.map(({ name: h, label: v, icon: j }) => /* @__PURE__ */ t.jsx(Re, { text: v, children: /* @__PURE__ */ t.jsx(
|
|
3407
|
+
q,
|
|
3408
|
+
{
|
|
3409
|
+
className: `toolbar-btn ${E[h] ? "active" : ""}`,
|
|
3410
|
+
onClick: () => y(h),
|
|
3411
|
+
children: j
|
|
3412
|
+
}
|
|
3413
|
+
) }, h))
|
|
3414
|
+
] }),
|
|
3415
|
+
/* @__PURE__ */ t.jsx(
|
|
3416
|
+
"div",
|
|
3417
|
+
{
|
|
3418
|
+
className: "editor-content",
|
|
3419
|
+
contentEditable: !0,
|
|
3420
|
+
ref: i,
|
|
3421
|
+
onInput: s,
|
|
3422
|
+
onFocus: p,
|
|
3423
|
+
suppressContentEditableWarning: !0,
|
|
3424
|
+
id: e
|
|
3425
|
+
}
|
|
3426
|
+
)
|
|
3427
|
+
] }),
|
|
3428
|
+
a && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3429
|
+
r,
|
|
3430
|
+
" ",
|
|
3431
|
+
l && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3432
|
+
] }),
|
|
3433
|
+
l ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: l }) : n && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: n })
|
|
3434
|
+
] });
|
|
3435
|
+
}
|
|
3436
|
+
);
|
|
3437
|
+
Mr.displayName = "InputWysiwyg";
|
|
3438
|
+
const yn = O.forwardRef(
|
|
3439
|
+
({ name: e, label: r, message: n, options: a, error: l, ...d }, m) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3440
|
+
r && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3441
|
+
r,
|
|
3442
|
+
" ",
|
|
3443
|
+
d.required && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3444
|
+
] }),
|
|
3445
|
+
/* @__PURE__ */ t.jsx("div", { className: "form-control", children: a.map((c) => {
|
|
3446
|
+
const i = `${Se()}-${c.value}`;
|
|
3447
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
3448
|
+
/* @__PURE__ */ t.jsx(
|
|
3449
|
+
"input",
|
|
3450
|
+
{
|
|
3451
|
+
type: "radio",
|
|
3452
|
+
id: i,
|
|
3453
|
+
name: e,
|
|
3454
|
+
value: c.value,
|
|
3455
|
+
ref: m,
|
|
3456
|
+
...d
|
|
3457
|
+
}
|
|
3458
|
+
),
|
|
3459
|
+
/* @__PURE__ */ t.jsx("label", { htmlFor: i, children: c.label })
|
|
3460
|
+
] }, c.value);
|
|
3461
|
+
}) }),
|
|
3462
|
+
l ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: l }) : n && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: n })
|
|
3463
|
+
] })
|
|
3464
|
+
), Ir = O.forwardRef(
|
|
3465
|
+
({ name: e, label: r, message: n, size: a = "md", options: l, selectedValue: d, error: m, required: c, ...i }, o) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3466
|
+
r && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3467
|
+
r,
|
|
3468
|
+
" ",
|
|
3469
|
+
c && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3470
|
+
] }),
|
|
3471
|
+
/* @__PURE__ */ t.jsx("div", { className: "btn-group", "data-toggle": "buttons", children: l.map((u) => {
|
|
3472
|
+
const f = u.value.toString() === d?.toString();
|
|
3473
|
+
return /* @__PURE__ */ t.jsxs(
|
|
3474
|
+
"label",
|
|
3475
|
+
{
|
|
3476
|
+
className: `btn auto btn-default btn-${a} ${f ? "active" : ""}`,
|
|
3477
|
+
children: [
|
|
3478
|
+
/* @__PURE__ */ t.jsx(
|
|
3479
|
+
"input",
|
|
3480
|
+
{
|
|
3481
|
+
type: "radio",
|
|
3482
|
+
id: u.value.toString(),
|
|
3483
|
+
name: e,
|
|
3484
|
+
value: u.value.toString(),
|
|
3485
|
+
ref: o,
|
|
3486
|
+
...i
|
|
3487
|
+
}
|
|
3488
|
+
),
|
|
3489
|
+
/* @__PURE__ */ t.jsx("span", { children: u.label })
|
|
3490
|
+
]
|
|
3491
|
+
},
|
|
3492
|
+
u.value.toString()
|
|
3493
|
+
);
|
|
3494
|
+
}) }),
|
|
3495
|
+
m ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: m }) : n && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: n })
|
|
3496
|
+
] })
|
|
3497
|
+
);
|
|
3498
|
+
Ir.displayName = "RadioButtonGroup";
|
|
3499
|
+
const Lr = K(
|
|
3500
|
+
({
|
|
3501
|
+
name: e,
|
|
3502
|
+
label: r,
|
|
3503
|
+
message: n,
|
|
3504
|
+
selectLabel: a,
|
|
3505
|
+
floatingLabel: l = !1,
|
|
3506
|
+
error: d,
|
|
3507
|
+
options: m,
|
|
3508
|
+
value: c = [],
|
|
3509
|
+
onChange: i,
|
|
3510
|
+
required: o,
|
|
3511
|
+
disabled: u,
|
|
3512
|
+
className: f
|
|
3513
|
+
}, g) => {
|
|
3514
|
+
const [E, N] = D(!1), [p, b] = D(c), w = I(null), y = I(null);
|
|
3515
|
+
$(() => {
|
|
3516
|
+
JSON.stringify(c) !== JSON.stringify(p) && b(c);
|
|
3517
|
+
}, [p, c]);
|
|
3518
|
+
const R = (s) => {
|
|
3519
|
+
const h = p.includes(s) ? p.filter((v) => v !== s) : [...p, s];
|
|
3520
|
+
b(h), i && i({
|
|
3521
|
+
target: { name: e, value: h }
|
|
3522
|
+
});
|
|
3523
|
+
};
|
|
3524
|
+
Q([w], () => {
|
|
3525
|
+
N(!1);
|
|
3526
|
+
}), Oe(E, y);
|
|
3527
|
+
const A = p.map((s) => m.find((h) => h.value === s)?.label).filter(Boolean).join(", ");
|
|
3528
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3529
|
+
r && !l && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3530
|
+
r,
|
|
3531
|
+
" ",
|
|
3532
|
+
o && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3533
|
+
] }),
|
|
3534
|
+
/* @__PURE__ */ t.jsxs("div", { className: `dropdown-select-container ${f || ""}`, ref: w, children: [
|
|
3535
|
+
/* @__PURE__ */ t.jsxs(
|
|
3536
|
+
"div",
|
|
3537
|
+
{
|
|
3538
|
+
className: `dropdown-header ${E ? "open" : ""} ${u ? "disabled" : ""}`,
|
|
3539
|
+
onClick: () => !u && N(!E),
|
|
3540
|
+
ref: g,
|
|
3541
|
+
children: [
|
|
3542
|
+
/* @__PURE__ */ t.jsx("span", { className: "label", children: A || a || "Select an option" }),
|
|
3543
|
+
/* @__PURE__ */ t.jsx(ke, { className: `arrow ${E ? "open" : ""}` })
|
|
3544
|
+
]
|
|
3545
|
+
}
|
|
3546
|
+
),
|
|
3547
|
+
E && !u && /* @__PURE__ */ t.jsx("div", { className: "dropdown-options scrollbar", ref: y, role: "listbox", children: m?.map((s) => /* @__PURE__ */ t.jsx(
|
|
3548
|
+
"div",
|
|
3549
|
+
{
|
|
3550
|
+
className: `option ${p.includes(s.value) ? "selected" : ""}`,
|
|
3551
|
+
children: /* @__PURE__ */ t.jsx(
|
|
3552
|
+
xt,
|
|
3553
|
+
{
|
|
3554
|
+
name: s.value.toString(),
|
|
3555
|
+
label: s.label,
|
|
3556
|
+
checked: p.includes(s.value),
|
|
3557
|
+
onChange: () => R(s.value)
|
|
3558
|
+
}
|
|
3559
|
+
)
|
|
3560
|
+
},
|
|
3561
|
+
s.value
|
|
3562
|
+
)) })
|
|
3563
|
+
] }),
|
|
3564
|
+
r && l && /* @__PURE__ */ t.jsxs("label", { htmlFor: e, children: [
|
|
3565
|
+
r,
|
|
3566
|
+
" ",
|
|
3567
|
+
o && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3568
|
+
] }),
|
|
3569
|
+
d ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: d }) : n && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: n })
|
|
3570
|
+
] });
|
|
3571
|
+
}
|
|
3572
|
+
);
|
|
3573
|
+
Lr.displayName = "SelectMultiple";
|
|
3574
|
+
const $r = K((e, r) => {
|
|
3575
|
+
const {
|
|
3576
|
+
name: n,
|
|
3577
|
+
label: a,
|
|
3578
|
+
message: l,
|
|
3579
|
+
selectLabel: d = "Select an option",
|
|
3580
|
+
size: m = "md",
|
|
3581
|
+
floatingLabel: c = !1,
|
|
3582
|
+
error: i,
|
|
3583
|
+
options: o = [],
|
|
3584
|
+
value: u = "",
|
|
3585
|
+
onChange: f,
|
|
3586
|
+
required: g,
|
|
3587
|
+
disabled: E,
|
|
3588
|
+
selectSearch: N = "",
|
|
3589
|
+
setSelectSearch: p,
|
|
3590
|
+
isLoading: b = !1
|
|
3591
|
+
} = e, [w, y] = D(!1), R = I(null), A = I(null), s = I(null);
|
|
3592
|
+
ct(r, () => s.current), Q([R], () => y(!1)), Oe(w, A);
|
|
3593
|
+
const h = u ? o.find((j) => j.value === u)?.label : d, v = (j) => {
|
|
3594
|
+
f?.({
|
|
3595
|
+
target: {
|
|
3596
|
+
name: n,
|
|
3597
|
+
value: j
|
|
3598
|
+
}
|
|
3599
|
+
}), s.current && (s.current.value = String(j), s.current.dispatchEvent(new Event("change", { bubbles: !0 }))), y(!1);
|
|
3600
|
+
};
|
|
3601
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3602
|
+
/* @__PURE__ */ t.jsxs(
|
|
3603
|
+
"select",
|
|
3604
|
+
{
|
|
3605
|
+
ref: s,
|
|
3606
|
+
name: n,
|
|
3607
|
+
value: u,
|
|
3608
|
+
onChange: f,
|
|
3609
|
+
style: { position: "absolute", left: "-9999px" },
|
|
3610
|
+
tabIndex: -1,
|
|
3611
|
+
children: [
|
|
3612
|
+
/* @__PURE__ */ t.jsx("option", { value: "", children: "Select an option" }),
|
|
3613
|
+
o.map((j) => /* @__PURE__ */ t.jsx("option", { value: j.value, children: j.label }, j.value))
|
|
3614
|
+
]
|
|
3615
|
+
}
|
|
3616
|
+
),
|
|
3617
|
+
a && !c && /* @__PURE__ */ t.jsxs("label", { htmlFor: n, children: [
|
|
3618
|
+
a,
|
|
3619
|
+
" ",
|
|
3620
|
+
g && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3621
|
+
] }),
|
|
3622
|
+
/* @__PURE__ */ t.jsxs("div", { className: `dropdown-select-container ${m}`, ref: R, children: [
|
|
3623
|
+
/* @__PURE__ */ t.jsxs(
|
|
3624
|
+
"div",
|
|
3625
|
+
{
|
|
3626
|
+
className: `dropdown-header ${w ? "open" : ""} ${E ? "disabled" : ""}`,
|
|
3627
|
+
onClick: () => !E && y(!w),
|
|
3628
|
+
"aria-haspopup": "listbox",
|
|
3629
|
+
"aria-expanded": w,
|
|
3630
|
+
children: [
|
|
3631
|
+
/* @__PURE__ */ t.jsx("span", { className: "label", children: h }),
|
|
3632
|
+
/* @__PURE__ */ t.jsx(ke, { className: "arrow" })
|
|
3633
|
+
]
|
|
3634
|
+
}
|
|
3635
|
+
),
|
|
3636
|
+
w && /* @__PURE__ */ t.jsxs("div", { className: "dropdown-options scrollbar", ref: A, role: "listbox", children: [
|
|
3637
|
+
/* @__PURE__ */ t.jsx("div", { className: "search-input", children: /* @__PURE__ */ t.jsx(
|
|
3638
|
+
bt,
|
|
3639
|
+
{
|
|
3640
|
+
name: "search",
|
|
3641
|
+
placeholder: "Ketik untuk mencari..",
|
|
3642
|
+
type: "search",
|
|
3643
|
+
autoFocus: !0,
|
|
3644
|
+
value: N,
|
|
3645
|
+
onChange: (j) => p?.(j.currentTarget.value)
|
|
3646
|
+
}
|
|
3647
|
+
) }),
|
|
3648
|
+
b ? /* @__PURE__ */ t.jsx("div", { className: "p-10 text-center", children: "Loading options..." }) : o.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "p-10 text-center", children: "Tidak ada hasil ditemukan" }) : o.map((j) => /* @__PURE__ */ t.jsx(
|
|
3649
|
+
"div",
|
|
3650
|
+
{
|
|
3651
|
+
className: `option ${u === j.value ? "selected" : ""}`,
|
|
3652
|
+
onClick: () => v(j.value),
|
|
3653
|
+
role: "option",
|
|
3654
|
+
"aria-selected": u === j.value,
|
|
3655
|
+
children: j.label
|
|
3656
|
+
},
|
|
3657
|
+
j.value
|
|
3658
|
+
))
|
|
3659
|
+
] })
|
|
3660
|
+
] }),
|
|
3661
|
+
a && c && /* @__PURE__ */ t.jsxs("label", { htmlFor: n, children: [
|
|
3662
|
+
a,
|
|
3663
|
+
" ",
|
|
3664
|
+
g && /* @__PURE__ */ t.jsx("span", { className: "text-danger", children: "*" })
|
|
3665
|
+
] }),
|
|
3666
|
+
i ? /* @__PURE__ */ t.jsx("small", { className: "form-message text-danger", children: i }) : l && /* @__PURE__ */ t.jsx("small", { className: "form-message text-muted", children: l })
|
|
3667
|
+
] });
|
|
3668
|
+
});
|
|
3669
|
+
$r.displayName = "SelectWithSearch";
|
|
3670
|
+
const Fr = O.forwardRef(
|
|
3671
|
+
({ name: e, className: r = "", error: n, checked: a = !1, onChange: l, ...d }, m) => {
|
|
3672
|
+
const c = (i) => {
|
|
3673
|
+
l && l(i);
|
|
3674
|
+
};
|
|
3675
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("label", { className: `switch ${r} ${n ? "has-error" : ""}`, children: [
|
|
3676
|
+
/* @__PURE__ */ t.jsx(
|
|
3677
|
+
"input",
|
|
3678
|
+
{
|
|
3679
|
+
type: "checkbox",
|
|
3680
|
+
id: e,
|
|
3681
|
+
name: e,
|
|
3682
|
+
ref: m,
|
|
3683
|
+
checked: a,
|
|
3684
|
+
onChange: c,
|
|
3685
|
+
disabled: d.disabled,
|
|
3686
|
+
...d
|
|
3687
|
+
}
|
|
3688
|
+
),
|
|
3689
|
+
/* @__PURE__ */ t.jsx("span", { className: "slider round" })
|
|
3690
|
+
] }) });
|
|
3691
|
+
}
|
|
3692
|
+
);
|
|
3693
|
+
Fr.displayName = "Switch";
|
|
3694
|
+
const jn = ({ progress: e, visible: r }) => r ? /* @__PURE__ */ t.jsx("div", { className: "loading-bar-container", children: /* @__PURE__ */ t.jsx("div", { className: "loading-bar", style: { width: `${e}%`, transition: "width 300ms ease-in-out" } }) }) : null, En = ({ children: e, className: r = "", view: n = "list", gridColumn: a = 1 }) => /* @__PURE__ */ t.jsx(
|
|
3695
|
+
"div",
|
|
3696
|
+
{
|
|
3697
|
+
className: `divcard-table ${n === "grid" ? "grid-mode" : ""} ${r}`,
|
|
3698
|
+
style: n === "grid" ? { gridTemplateColumns: `repeat(${a}, 1fr)` } : {},
|
|
3699
|
+
children: e
|
|
3700
|
+
}
|
|
3701
|
+
), Nn = ({ children: e }) => /* @__PURE__ */ t.jsx("div", { className: "table-row header", children: e }), wn = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }), Cn = ({ children: e, className: r = "", isActive: n = !1 }) => /* @__PURE__ */ t.jsx("div", { className: `table-row ${n ? "active" : ""} ${r}`, children: e }), Rn = ({ children: e, className: r = "", hideOnGrid: n = !1 }) => /* @__PURE__ */ t.jsx("div", { className: `cell ${n ? "hide-ongrid" : ""} ${r}`, children: e }), Tn = ({ children: e }) => /* @__PURE__ */ t.jsx("div", { className: "table-row footer", children: e }), _n = ({ children: e, className: r = "" }) => /* @__PURE__ */ t.jsx("table", { className: r, children: e }), kn = ({ children: e, className: r = "" }) => /* @__PURE__ */ t.jsx("thead", { className: r, children: e }), Sn = ({ children: e, className: r = "" }) => /* @__PURE__ */ t.jsx("tbody", { className: r, children: e }), On = ({ children: e, className: r = "", ...n }) => /* @__PURE__ */ t.jsx("tr", { className: r, ...n, children: e }), An = ({
|
|
3702
|
+
children: e,
|
|
3703
|
+
header: r = !1,
|
|
3704
|
+
className: n = "",
|
|
3705
|
+
colSpan: a,
|
|
3706
|
+
style: l
|
|
3707
|
+
}) => {
|
|
3708
|
+
const d = r ? "th" : "td", m = {
|
|
3709
|
+
className: n,
|
|
3710
|
+
colSpan: a,
|
|
3711
|
+
style: l
|
|
3712
|
+
};
|
|
3713
|
+
return /* @__PURE__ */ t.jsx(d, { ...m, children: e });
|
|
3714
|
+
}, Pn = ({ children: e, className: r = "" }) => /* @__PURE__ */ t.jsx("tfoot", { className: r, children: e }), Dn = ({
|
|
3715
|
+
count: e,
|
|
3716
|
+
handleMultipleDelete: r
|
|
3717
|
+
}) => /* @__PURE__ */ t.jsxs("div", { className: "selected-toolbar", children: [
|
|
3718
|
+
/* @__PURE__ */ t.jsx(q, { className: "btn-icon btn-danger", onClick: r, children: /* @__PURE__ */ t.jsx($t, {}) }),
|
|
3719
|
+
/* @__PURE__ */ t.jsxs("p", { children: [
|
|
3720
|
+
e,
|
|
3721
|
+
" item selected"
|
|
3722
|
+
] })
|
|
3723
|
+
] }), Mn = ({
|
|
3724
|
+
startIndex: e,
|
|
3725
|
+
endIndex: r,
|
|
3726
|
+
currentPage: n,
|
|
3727
|
+
totalData: a,
|
|
3728
|
+
itemsPerPage: l,
|
|
3729
|
+
setItemsPerPage: d,
|
|
3730
|
+
setCurrentPage: m,
|
|
3731
|
+
totalPages: c,
|
|
3732
|
+
showPerPage: i = !0
|
|
3733
|
+
}) => /* @__PURE__ */ t.jsxs("div", { className: "pagination-toolbar", children: [
|
|
3734
|
+
i && /* @__PURE__ */ t.jsxs("div", { className: "pagination-select", children: [
|
|
3735
|
+
/* @__PURE__ */ t.jsx("p", { children: "Baris per halaman:" }),
|
|
3736
|
+
/* @__PURE__ */ t.jsx(
|
|
3737
|
+
ue,
|
|
3738
|
+
{
|
|
3739
|
+
name: "row_perpage",
|
|
3740
|
+
size: "sm",
|
|
3741
|
+
options: [
|
|
3742
|
+
{ value: "10", label: "10" },
|
|
3743
|
+
{ value: "20", label: "20" },
|
|
3744
|
+
{ value: "30", label: "30" },
|
|
3745
|
+
{ value: "50", label: "50" }
|
|
3746
|
+
],
|
|
3747
|
+
value: l.toString(),
|
|
3748
|
+
onChange: (o) => {
|
|
3749
|
+
d(Number(o.target.value)), m(1);
|
|
3750
|
+
}
|
|
3751
|
+
}
|
|
3752
|
+
)
|
|
3753
|
+
] }),
|
|
3754
|
+
/* @__PURE__ */ t.jsx("div", { className: "pagination-nav", children: ` ${e + 1} - ${Math.min(r, a)} dari ${a}` }),
|
|
3755
|
+
/* @__PURE__ */ t.jsx("div", { className: "pagination-button", children: /* @__PURE__ */ t.jsxs("div", { className: "btn-group", children: [
|
|
3756
|
+
/* @__PURE__ */ t.jsx(
|
|
3757
|
+
q,
|
|
3758
|
+
{
|
|
3759
|
+
className: "btn-icon btn-info",
|
|
3760
|
+
onClick: () => m(1),
|
|
3761
|
+
disabled: n <= 1,
|
|
3762
|
+
children: /* @__PURE__ */ t.jsx(It, {})
|
|
3763
|
+
}
|
|
3764
|
+
),
|
|
3765
|
+
/* @__PURE__ */ t.jsx(
|
|
3766
|
+
q,
|
|
3767
|
+
{
|
|
3768
|
+
className: "btn-icon btn-info",
|
|
3769
|
+
onClick: () => m(n - 1),
|
|
3770
|
+
disabled: n <= 1,
|
|
3771
|
+
children: /* @__PURE__ */ t.jsx(Dt, {})
|
|
3772
|
+
}
|
|
3773
|
+
),
|
|
3774
|
+
/* @__PURE__ */ t.jsx(
|
|
3775
|
+
q,
|
|
3776
|
+
{
|
|
3777
|
+
className: "btn-icon btn-info",
|
|
3778
|
+
onClick: () => m(Math.min(n + 1, c)),
|
|
3779
|
+
disabled: n >= c,
|
|
3780
|
+
children: /* @__PURE__ */ t.jsx(Mt, {})
|
|
3781
|
+
}
|
|
3782
|
+
),
|
|
3783
|
+
/* @__PURE__ */ t.jsx(
|
|
3784
|
+
q,
|
|
3785
|
+
{
|
|
3786
|
+
className: "btn-icon btn-info",
|
|
3787
|
+
onClick: () => m(c),
|
|
3788
|
+
disabled: n >= c,
|
|
3789
|
+
children: /* @__PURE__ */ t.jsx(Lt, {})
|
|
3790
|
+
}
|
|
3791
|
+
)
|
|
3792
|
+
] }) })
|
|
3793
|
+
] }), In = ({
|
|
3794
|
+
count: e,
|
|
3795
|
+
selectedItem: r,
|
|
3796
|
+
selectedRows: n
|
|
3797
|
+
}) => /* @__PURE__ */ t.jsxs("div", { className: "selected-toolbar-block", style: { borderRadius: "0 0 4px 0" }, children: [
|
|
3798
|
+
/* @__PURE__ */ t.jsxs("span", { children: [
|
|
3799
|
+
e,
|
|
3800
|
+
" item selected"
|
|
3801
|
+
] }),
|
|
3802
|
+
/* @__PURE__ */ t.jsxs(q, { className: "btn btn-primary", onClick: () => r(n), children: [
|
|
3803
|
+
/* @__PURE__ */ t.jsx(Pt, {}),
|
|
3804
|
+
" Gunakan"
|
|
3805
|
+
] })
|
|
3806
|
+
] });
|
|
3807
|
+
export {
|
|
3808
|
+
cn as Accordion,
|
|
3809
|
+
dn as AccordionSection,
|
|
3810
|
+
hr as AccordionSectionBody,
|
|
3811
|
+
fr as AccordionSectionFooter,
|
|
3812
|
+
en as Alert,
|
|
3813
|
+
Zr as Badge,
|
|
3814
|
+
Kr as Box,
|
|
3815
|
+
q as Button,
|
|
3816
|
+
rn as Callout,
|
|
3817
|
+
qr as Card,
|
|
3818
|
+
Vr as CardBody,
|
|
3819
|
+
Ur as CardFooter,
|
|
3820
|
+
Br as CardHeader,
|
|
3821
|
+
xt as Checkbox,
|
|
3822
|
+
jr as CheckboxAgreement,
|
|
3823
|
+
un as CircularProgress,
|
|
3824
|
+
fn as CircularProgressWithLabel,
|
|
3825
|
+
gn as ClearInput,
|
|
3826
|
+
tn as ConfirmationAlert,
|
|
3827
|
+
Sr as DatePicker,
|
|
3828
|
+
En as DivTable,
|
|
3829
|
+
wn as DivTableBody,
|
|
3830
|
+
Rn as DivTableCell,
|
|
3831
|
+
Tn as DivTableFooter,
|
|
3832
|
+
Nn as DivTableHeader,
|
|
3833
|
+
Cn as DivTableRow,
|
|
3834
|
+
Yr as Dropdown,
|
|
3835
|
+
Jr as DropdownContent,
|
|
3836
|
+
Or as DropdownDatePicker,
|
|
3837
|
+
Wr as DropdownMenu,
|
|
3838
|
+
Xr as DropdownToggle,
|
|
3839
|
+
yr as FormCheckbox,
|
|
3840
|
+
mn as FormContainer,
|
|
3841
|
+
pn as FormGroup,
|
|
3842
|
+
vn as FormRadio,
|
|
3843
|
+
bt as Input,
|
|
3844
|
+
Ar as InputDate,
|
|
3845
|
+
Pr as InputFile,
|
|
3846
|
+
bn as InputImageSize,
|
|
3847
|
+
Dr as InputTextArea,
|
|
3848
|
+
xn as InputWithAction,
|
|
3849
|
+
Mr as InputWysiwyg,
|
|
3850
|
+
hn as LinearProgress,
|
|
3851
|
+
br as ListItem,
|
|
3852
|
+
xr as ListView,
|
|
3853
|
+
jn as LoadingBar,
|
|
3854
|
+
ln as Modal,
|
|
3855
|
+
on as ModalBody,
|
|
3856
|
+
sn as ModalFooter,
|
|
3857
|
+
an as ModalHeader,
|
|
3858
|
+
nn as Popover,
|
|
3859
|
+
yn as Radio,
|
|
3860
|
+
Ir as RadioButtonGroup,
|
|
3861
|
+
ue as Select,
|
|
3862
|
+
Lr as SelectMultiple,
|
|
3863
|
+
$r as SelectWithSearch,
|
|
3864
|
+
Gr as Spinner,
|
|
3865
|
+
Fr as Switch,
|
|
3866
|
+
$e as Tab,
|
|
3867
|
+
Ct as TabGroup,
|
|
3868
|
+
_n as Table,
|
|
3869
|
+
Sn as TableBody,
|
|
3870
|
+
An as TableCell,
|
|
3871
|
+
Dn as TableDeleteSelectedItems,
|
|
3872
|
+
Pn as TableFooter,
|
|
3873
|
+
kn as TableHeader,
|
|
3874
|
+
Mn as TablePaginating,
|
|
3875
|
+
In as TablePickSelectedItems,
|
|
3876
|
+
On as TableRow,
|
|
3877
|
+
Qr as Tabs,
|
|
3878
|
+
Re as Tooltip
|
|
3879
|
+
};
|