@arkyn/components 1.3.9 → 1.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +801 -797
- package/dist/bundle.umd.cjs +12 -12
- package/dist/components/Input/CpfCpnjInput/getConfig.d.ts +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Select/getConfig.d.ts +1 -0
- package/dist/components/Select/getConfig.d.ts.map +1 -1
- package/dist/components/Select/getConfig.js +2 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +2 -1
- package/dist/hooks/useAutomation.d.ts.map +1 -1
- package/dist/hooks/useAutomation.js +12 -0
- package/package.json +1 -1
- package/src/components/Input/index.tsx +1 -1
- package/src/components/Select/getConfig.tsx +2 -0
- package/src/components/Select/index.tsx +2 -0
- package/src/hooks/useAutomation.ts +13 -0
package/dist/bundle.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import v, { createContext as Ct, useRef as at, useId as
|
2
|
-
import { Loader2 as Qe, Check as
|
3
|
-
import { useActionData as
|
1
|
+
import v, { createContext as Ct, useRef as at, useId as En, useContext as gt, useState as Me, forwardRef as Sn, useEffect as Ht } from "react";
|
2
|
+
import { Loader2 as Qe, Check as sn, ChevronDown as Tn, ChevronRight as Yt, X as _n } from "lucide-react";
|
3
|
+
import { useActionData as ln, useLocation as cn, Link as Nn } from "@remix-run/react";
|
4
4
|
import { InputMask as kn } from "@react-input/mask";
|
5
|
-
import { AnimatePresence as Cn, motion as
|
5
|
+
import { AnimatePresence as Cn, motion as Vt } from "framer-motion";
|
6
6
|
import Rn from "react-dom";
|
7
|
-
var
|
7
|
+
var Dt = { exports: {} }, dt = {};
|
8
8
|
/**
|
9
9
|
* @license React
|
10
10
|
* react-jsx-runtime.production.min.js
|
@@ -14,12 +14,12 @@ var Mt = { exports: {} }, dt = {};
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
16
16
|
*/
|
17
|
-
var
|
17
|
+
var Gt;
|
18
18
|
function In() {
|
19
|
-
if (
|
19
|
+
if (Gt)
|
20
20
|
return dt;
|
21
|
-
|
22
|
-
var
|
21
|
+
Gt = 1;
|
22
|
+
var e = v, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
23
23
|
function h(c, p, o) {
|
24
24
|
var y, _ = {}, N = null, b = null;
|
25
25
|
o !== void 0 && (N = "" + o), p.key !== void 0 && (N = "" + p.key), p.ref !== void 0 && (b = p.ref);
|
@@ -28,7 +28,7 @@ function In() {
|
|
28
28
|
if (c && c.defaultProps)
|
29
29
|
for (y in p = c.defaultProps, p)
|
30
30
|
_[y] === void 0 && (_[y] = p[y]);
|
31
|
-
return { $$typeof:
|
31
|
+
return { $$typeof: n, type: c, key: N, ref: b, props: _, _owner: l.current };
|
32
32
|
}
|
33
33
|
return dt.Fragment = a, dt.jsx = h, dt.jsxs = h, dt;
|
34
34
|
}
|
@@ -42,17 +42,17 @@ var ft = {};
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
44
44
|
*/
|
45
|
-
var
|
45
|
+
var Kt;
|
46
46
|
function An() {
|
47
|
-
return
|
48
|
-
var
|
47
|
+
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
48
|
+
var e = v, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), P = Symbol.iterator, A = "@@iterator";
|
49
49
|
function U(r) {
|
50
50
|
if (r === null || typeof r != "object")
|
51
51
|
return null;
|
52
|
-
var d =
|
52
|
+
var d = P && r[P] || r[A];
|
53
53
|
return typeof d == "function" ? d : null;
|
54
54
|
}
|
55
|
-
var w =
|
55
|
+
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
56
56
|
function E(r) {
|
57
57
|
{
|
58
58
|
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), T = 1; T < d; T++)
|
@@ -62,29 +62,29 @@ function An() {
|
|
62
62
|
}
|
63
63
|
function L(r, d, g) {
|
64
64
|
{
|
65
|
-
var T = w.ReactDebugCurrentFrame,
|
66
|
-
|
67
|
-
var
|
65
|
+
var T = w.ReactDebugCurrentFrame, H = T.getStackAddendum();
|
66
|
+
H !== "" && (d += "%s", g = g.concat([H]));
|
67
|
+
var t = g.map(function(f) {
|
68
68
|
return String(f);
|
69
69
|
});
|
70
|
-
|
70
|
+
t.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, t);
|
71
71
|
}
|
72
72
|
}
|
73
|
-
var
|
73
|
+
var W = !1, D = !1, X = !1, ee = !1, V = !1, re;
|
74
74
|
re = Symbol.for("react.module.reference");
|
75
|
-
function
|
76
|
-
return !!(typeof r == "string" || typeof r == "function" || r === s || r === u ||
|
75
|
+
function Y(r) {
|
76
|
+
return !!(typeof r == "string" || typeof r == "function" || r === s || r === u || V || r === l || r === o || r === y || ee || r === b || W || D || X || typeof r == "object" && r !== null && (r.$$typeof === N || r.$$typeof === _ || r.$$typeof === h || r.$$typeof === c || r.$$typeof === p || // This needs to include all possible module reference object
|
77
77
|
// types supported by any Flight configuration anywhere since
|
78
78
|
// we don't know which Flight build this will end up being used
|
79
79
|
// with.
|
80
80
|
r.$$typeof === re || r.getModuleId !== void 0));
|
81
81
|
}
|
82
|
-
function
|
82
|
+
function z(r, d, g) {
|
83
83
|
var T = r.displayName;
|
84
84
|
if (T)
|
85
85
|
return T;
|
86
|
-
var
|
87
|
-
return
|
86
|
+
var H = d.displayName || d.name || "";
|
87
|
+
return H !== "" ? g + "(" + H + ")" : g;
|
88
88
|
}
|
89
89
|
function ae(r) {
|
90
90
|
return r.displayName || "Context";
|
@@ -119,14 +119,14 @@ function An() {
|
|
119
119
|
var g = r;
|
120
120
|
return ae(g._context) + ".Provider";
|
121
121
|
case p:
|
122
|
-
return
|
122
|
+
return z(r, r.render, "ForwardRef");
|
123
123
|
case _:
|
124
124
|
var T = r.displayName || null;
|
125
125
|
return T !== null ? T : k(r.type) || "Memo";
|
126
126
|
case N: {
|
127
|
-
var
|
127
|
+
var H = r, t = H._payload, f = H._init;
|
128
128
|
try {
|
129
|
-
return k(f(
|
129
|
+
return k(f(t));
|
130
130
|
} catch {
|
131
131
|
return null;
|
132
132
|
}
|
@@ -134,18 +134,18 @@ function An() {
|
|
134
134
|
}
|
135
135
|
return null;
|
136
136
|
}
|
137
|
-
var
|
138
|
-
function
|
137
|
+
var R = Object.assign, $ = 0, J, ie, Z, le, G, F, x;
|
138
|
+
function O() {
|
139
139
|
}
|
140
|
-
|
141
|
-
function
|
140
|
+
O.__reactDisabledLog = !0;
|
141
|
+
function j() {
|
142
142
|
{
|
143
|
-
if (
|
144
|
-
J = console.log, ie = console.info,
|
143
|
+
if ($ === 0) {
|
144
|
+
J = console.log, ie = console.info, Z = console.warn, le = console.error, G = console.group, F = console.groupCollapsed, x = console.groupEnd;
|
145
145
|
var r = {
|
146
146
|
configurable: !0,
|
147
147
|
enumerable: !0,
|
148
|
-
value:
|
148
|
+
value: O,
|
149
149
|
writable: !0
|
150
150
|
};
|
151
151
|
Object.defineProperties(console, {
|
@@ -158,56 +158,56 @@ function An() {
|
|
158
158
|
groupEnd: r
|
159
159
|
});
|
160
160
|
}
|
161
|
-
|
161
|
+
$++;
|
162
162
|
}
|
163
163
|
}
|
164
164
|
function te() {
|
165
165
|
{
|
166
|
-
if (
|
166
|
+
if ($--, $ === 0) {
|
167
167
|
var r = {
|
168
168
|
configurable: !0,
|
169
169
|
enumerable: !0,
|
170
170
|
writable: !0
|
171
171
|
};
|
172
172
|
Object.defineProperties(console, {
|
173
|
-
log:
|
173
|
+
log: R({}, r, {
|
174
174
|
value: J
|
175
175
|
}),
|
176
|
-
info:
|
176
|
+
info: R({}, r, {
|
177
177
|
value: ie
|
178
178
|
}),
|
179
|
-
warn:
|
180
|
-
value:
|
179
|
+
warn: R({}, r, {
|
180
|
+
value: Z
|
181
181
|
}),
|
182
|
-
error:
|
182
|
+
error: R({}, r, {
|
183
183
|
value: le
|
184
184
|
}),
|
185
|
-
group:
|
185
|
+
group: R({}, r, {
|
186
186
|
value: G
|
187
187
|
}),
|
188
|
-
groupCollapsed:
|
189
|
-
value:
|
188
|
+
groupCollapsed: R({}, r, {
|
189
|
+
value: F
|
190
190
|
}),
|
191
|
-
groupEnd:
|
191
|
+
groupEnd: R({}, r, {
|
192
192
|
value: x
|
193
193
|
})
|
194
194
|
});
|
195
195
|
}
|
196
|
-
|
196
|
+
$ < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
197
197
|
}
|
198
198
|
}
|
199
|
-
var
|
200
|
-
function
|
199
|
+
var K = w.ReactCurrentDispatcher, ue;
|
200
|
+
function de(r, d, g) {
|
201
201
|
{
|
202
|
-
if (
|
202
|
+
if (ue === void 0)
|
203
203
|
try {
|
204
204
|
throw Error();
|
205
|
-
} catch (
|
206
|
-
var T =
|
207
|
-
|
205
|
+
} catch (H) {
|
206
|
+
var T = H.stack.trim().match(/\n( *(at )?)/);
|
207
|
+
ue = T && T[1] || "";
|
208
208
|
}
|
209
209
|
return `
|
210
|
-
` +
|
210
|
+
` + ue + r;
|
211
211
|
}
|
212
212
|
}
|
213
213
|
var Ie = !1, we;
|
@@ -215,7 +215,7 @@ function An() {
|
|
215
215
|
var Ae = typeof WeakMap == "function" ? WeakMap : Map;
|
216
216
|
we = new Ae();
|
217
217
|
}
|
218
|
-
function
|
218
|
+
function pe(r, d) {
|
219
219
|
if (!r || Ie)
|
220
220
|
return "";
|
221
221
|
{
|
@@ -225,10 +225,10 @@ function An() {
|
|
225
225
|
}
|
226
226
|
var T;
|
227
227
|
Ie = !0;
|
228
|
-
var
|
228
|
+
var H = Error.prepareStackTrace;
|
229
229
|
Error.prepareStackTrace = void 0;
|
230
|
-
var
|
231
|
-
|
230
|
+
var t;
|
231
|
+
t = K.current, K.current = null, j();
|
232
232
|
try {
|
233
233
|
if (d) {
|
234
234
|
var f = function() {
|
@@ -241,53 +241,53 @@ function An() {
|
|
241
241
|
}), typeof Reflect == "object" && Reflect.construct) {
|
242
242
|
try {
|
243
243
|
Reflect.construct(f, []);
|
244
|
-
} catch (
|
245
|
-
T =
|
244
|
+
} catch (q) {
|
245
|
+
T = q;
|
246
246
|
}
|
247
247
|
Reflect.construct(r, [], f);
|
248
248
|
} else {
|
249
249
|
try {
|
250
250
|
f.call();
|
251
|
-
} catch (
|
252
|
-
T =
|
251
|
+
} catch (q) {
|
252
|
+
T = q;
|
253
253
|
}
|
254
254
|
r.call(f.prototype);
|
255
255
|
}
|
256
256
|
} else {
|
257
257
|
try {
|
258
258
|
throw Error();
|
259
|
-
} catch (
|
260
|
-
T =
|
259
|
+
} catch (q) {
|
260
|
+
T = q;
|
261
261
|
}
|
262
262
|
r();
|
263
263
|
}
|
264
|
-
} catch (
|
265
|
-
if (
|
266
|
-
for (var i =
|
267
|
-
`),
|
268
|
-
`),
|
264
|
+
} catch (q) {
|
265
|
+
if (q && T && typeof q.stack == "string") {
|
266
|
+
for (var i = q.stack.split(`
|
267
|
+
`), C = T.stack.split(`
|
268
|
+
`), M = i.length - 1, I = C.length - 1; M >= 1 && I >= 0 && i[M] !== C[I]; )
|
269
269
|
I--;
|
270
|
-
for (;
|
271
|
-
if (i[
|
272
|
-
if (
|
270
|
+
for (; M >= 1 && I >= 0; M--, I--)
|
271
|
+
if (i[M] !== C[I]) {
|
272
|
+
if (M !== 1 || I !== 1)
|
273
273
|
do
|
274
|
-
if (
|
274
|
+
if (M--, I--, I < 0 || i[M] !== C[I]) {
|
275
275
|
var ce = `
|
276
|
-
` + i[
|
276
|
+
` + i[M].replace(" at new ", " at ");
|
277
277
|
return r.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, ce), ce;
|
278
278
|
}
|
279
|
-
while (
|
279
|
+
while (M >= 1 && I >= 0);
|
280
280
|
break;
|
281
281
|
}
|
282
282
|
}
|
283
283
|
} finally {
|
284
|
-
Ie = !1,
|
284
|
+
Ie = !1, K.current = t, te(), Error.prepareStackTrace = H;
|
285
285
|
}
|
286
|
-
var
|
287
|
-
return typeof r == "function" && we.set(r,
|
286
|
+
var ve = r ? r.displayName || r.name : "", me = ve ? de(ve) : "";
|
287
|
+
return typeof r == "function" && we.set(r, me), me;
|
288
288
|
}
|
289
289
|
function Xe(r, d, g) {
|
290
|
-
return
|
290
|
+
return pe(r, !1);
|
291
291
|
}
|
292
292
|
function qe(r) {
|
293
293
|
var d = r.prototype;
|
@@ -297,14 +297,14 @@ function An() {
|
|
297
297
|
if (r == null)
|
298
298
|
return "";
|
299
299
|
if (typeof r == "function")
|
300
|
-
return
|
300
|
+
return pe(r, qe(r));
|
301
301
|
if (typeof r == "string")
|
302
|
-
return
|
302
|
+
return de(r);
|
303
303
|
switch (r) {
|
304
304
|
case o:
|
305
|
-
return
|
305
|
+
return de("Suspense");
|
306
306
|
case y:
|
307
|
-
return
|
307
|
+
return de("SuspenseList");
|
308
308
|
}
|
309
309
|
if (typeof r == "object")
|
310
310
|
switch (r.$$typeof) {
|
@@ -313,16 +313,16 @@ function An() {
|
|
313
313
|
case _:
|
314
314
|
return oe(r.type, d, g);
|
315
315
|
case N: {
|
316
|
-
var T = r,
|
316
|
+
var T = r, H = T._payload, t = T._init;
|
317
317
|
try {
|
318
|
-
return oe(
|
318
|
+
return oe(t(H), d, g);
|
319
319
|
} catch {
|
320
320
|
}
|
321
321
|
}
|
322
322
|
}
|
323
323
|
return "";
|
324
324
|
}
|
325
|
-
var
|
325
|
+
var he = Object.prototype.hasOwnProperty, $e = {}, Je = w.ReactDebugCurrentFrame;
|
326
326
|
function Ne(r) {
|
327
327
|
if (r) {
|
328
328
|
var d = r._owner, g = oe(r.type, r._source, d ? d.type : null);
|
@@ -330,22 +330,22 @@ function An() {
|
|
330
330
|
} else
|
331
331
|
Je.setExtraStackFrame(null);
|
332
332
|
}
|
333
|
-
function ot(r, d, g, T,
|
333
|
+
function ot(r, d, g, T, H) {
|
334
334
|
{
|
335
|
-
var
|
335
|
+
var t = Function.call.bind(he);
|
336
336
|
for (var f in r)
|
337
|
-
if (
|
337
|
+
if (t(r, f)) {
|
338
338
|
var i = void 0;
|
339
339
|
try {
|
340
340
|
if (typeof r[f] != "function") {
|
341
|
-
var
|
342
|
-
throw
|
341
|
+
var C = Error((T || "React class") + ": " + g + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
342
|
+
throw C.name = "Invariant Violation", C;
|
343
343
|
}
|
344
344
|
i = r[f](d, f, T, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
345
|
-
} catch (
|
346
|
-
i =
|
345
|
+
} catch (M) {
|
346
|
+
i = M;
|
347
347
|
}
|
348
|
-
i && !(i instanceof Error) && (Ne(
|
348
|
+
i && !(i instanceof Error) && (Ne(H), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", g, f, typeof i), Ne(null)), i instanceof Error && !(i.message in $e) && ($e[i.message] = !0, Ne(H), E("Failed %s type: %s", g, i.message), Ne(null));
|
349
349
|
}
|
350
350
|
}
|
351
351
|
}
|
@@ -373,15 +373,15 @@ function An() {
|
|
373
373
|
if (Le(r))
|
374
374
|
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(r)), ke(r);
|
375
375
|
}
|
376
|
-
var
|
376
|
+
var De = w.ReactCurrentOwner, We = {
|
377
377
|
key: !0,
|
378
378
|
ref: !0,
|
379
379
|
__self: !0,
|
380
380
|
__source: !0
|
381
381
|
}, He, Fe, Ce;
|
382
382
|
Ce = {};
|
383
|
-
function
|
384
|
-
if (
|
383
|
+
function fe(r) {
|
384
|
+
if (he.call(r, "ref")) {
|
385
385
|
var d = Object.getOwnPropertyDescriptor(r, "ref").get;
|
386
386
|
if (d && d.isReactWarning)
|
387
387
|
return !1;
|
@@ -389,7 +389,7 @@ function An() {
|
|
389
389
|
return r.ref !== void 0;
|
390
390
|
}
|
391
391
|
function ze(r) {
|
392
|
-
if (
|
392
|
+
if (he.call(r, "key")) {
|
393
393
|
var d = Object.getOwnPropertyDescriptor(r, "key").get;
|
394
394
|
if (d && d.isReactWarning)
|
395
395
|
return !1;
|
@@ -397,9 +397,9 @@ function An() {
|
|
397
397
|
return r.key !== void 0;
|
398
398
|
}
|
399
399
|
function Ye(r, d) {
|
400
|
-
if (typeof r.ref == "string" &&
|
401
|
-
var g = k(
|
402
|
-
Ce[g] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(
|
400
|
+
if (typeof r.ref == "string" && De.current && d && De.current.stateNode !== d) {
|
401
|
+
var g = k(De.current.type);
|
402
|
+
Ce[g] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(De.current.type), r.ref), Ce[g] = !0);
|
403
403
|
}
|
404
404
|
}
|
405
405
|
function S(r, d) {
|
@@ -424,17 +424,17 @@ function An() {
|
|
424
424
|
});
|
425
425
|
}
|
426
426
|
}
|
427
|
-
var
|
427
|
+
var Q = function(r, d, g, T, H, t, f) {
|
428
428
|
var i = {
|
429
429
|
// This tag allows us to uniquely identify this as a React Element
|
430
|
-
$$typeof:
|
430
|
+
$$typeof: n,
|
431
431
|
// Built-in properties that belong on the element
|
432
432
|
type: r,
|
433
433
|
key: d,
|
434
434
|
ref: g,
|
435
435
|
props: f,
|
436
436
|
// Record the component responsible for creating this element.
|
437
|
-
_owner:
|
437
|
+
_owner: t
|
438
438
|
};
|
439
439
|
return i._store = {}, Object.defineProperty(i._store, "validated", {
|
440
440
|
configurable: !1,
|
@@ -450,28 +450,28 @@ function An() {
|
|
450
450
|
configurable: !1,
|
451
451
|
enumerable: !1,
|
452
452
|
writable: !1,
|
453
|
-
value:
|
453
|
+
value: H
|
454
454
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
455
455
|
};
|
456
|
-
function Ee(r, d, g, T,
|
456
|
+
function Ee(r, d, g, T, H) {
|
457
457
|
{
|
458
|
-
var
|
459
|
-
g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key),
|
460
|
-
for (
|
461
|
-
|
458
|
+
var t, f = {}, i = null, C = null;
|
459
|
+
g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), fe(d) && (C = d.ref, Ye(d, H));
|
460
|
+
for (t in d)
|
461
|
+
he.call(d, t) && !We.hasOwnProperty(t) && (f[t] = d[t]);
|
462
462
|
if (r && r.defaultProps) {
|
463
|
-
var
|
464
|
-
for (
|
465
|
-
f[
|
463
|
+
var M = r.defaultProps;
|
464
|
+
for (t in M)
|
465
|
+
f[t] === void 0 && (f[t] = M[t]);
|
466
466
|
}
|
467
|
-
if (i ||
|
467
|
+
if (i || C) {
|
468
468
|
var I = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
469
|
-
i && S(f, I),
|
469
|
+
i && S(f, I), C && se(f, I);
|
470
470
|
}
|
471
|
-
return
|
471
|
+
return Q(r, i, C, H, T, De.current, f);
|
472
472
|
}
|
473
473
|
}
|
474
|
-
var
|
474
|
+
var ge = w.ReactCurrentOwner, ne = w.ReactDebugCurrentFrame;
|
475
475
|
function be(r) {
|
476
476
|
if (r) {
|
477
477
|
var d = r._owner, g = oe(r.type, r._source, d ? d.type : null);
|
@@ -482,12 +482,12 @@ function An() {
|
|
482
482
|
var st;
|
483
483
|
st = !1;
|
484
484
|
function et(r) {
|
485
|
-
return typeof r == "object" && r !== null && r.$$typeof ===
|
485
|
+
return typeof r == "object" && r !== null && r.$$typeof === n;
|
486
486
|
}
|
487
487
|
function tt() {
|
488
488
|
{
|
489
|
-
if (
|
490
|
-
var r = k(
|
489
|
+
if (ge.current) {
|
490
|
+
var r = k(ge.current.type);
|
491
491
|
if (r)
|
492
492
|
return `
|
493
493
|
|
@@ -530,7 +530,7 @@ Check the top-level render call using <` + g + ">.");
|
|
530
530
|
return;
|
531
531
|
it[g] = !0;
|
532
532
|
var T = "";
|
533
|
-
r && r._owner && r._owner !==
|
533
|
+
r && r._owner && r._owner !== ge.current && (T = " It was passed a child from " + k(r._owner.type) + "."), be(r), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, T), be(null);
|
534
534
|
}
|
535
535
|
}
|
536
536
|
function ct(r, d) {
|
@@ -545,9 +545,9 @@ Check the top-level render call using <` + g + ">.");
|
|
545
545
|
else if (et(r))
|
546
546
|
r._store && (r._store.validated = !0);
|
547
547
|
else if (r) {
|
548
|
-
var
|
549
|
-
if (typeof
|
550
|
-
for (var
|
548
|
+
var H = U(r);
|
549
|
+
if (typeof H == "function" && H !== r.entries)
|
550
|
+
for (var t = H.call(r), f; !(f = t.next()).done; )
|
551
551
|
et(f.value) && lt(f.value, d);
|
552
552
|
}
|
553
553
|
}
|
@@ -571,8 +571,8 @@ Check the top-level render call using <` + g + ">.");
|
|
571
571
|
ot(g, r.props, "prop", T, r);
|
572
572
|
} else if (d.PropTypes !== void 0 && !st) {
|
573
573
|
st = !0;
|
574
|
-
var
|
575
|
-
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
574
|
+
var H = k(d);
|
575
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", H || "Unknown");
|
576
576
|
}
|
577
577
|
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
578
578
|
}
|
@@ -590,18 +590,18 @@ Check the top-level render call using <` + g + ">.");
|
|
590
590
|
}
|
591
591
|
}
|
592
592
|
var nt = {};
|
593
|
-
function ut(r, d, g, T,
|
593
|
+
function ut(r, d, g, T, H, t) {
|
594
594
|
{
|
595
|
-
var f =
|
595
|
+
var f = Y(r);
|
596
596
|
if (!f) {
|
597
597
|
var i = "";
|
598
598
|
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
599
|
-
var
|
600
|
-
|
601
|
-
var
|
602
|
-
r === null ?
|
599
|
+
var C = vt(H);
|
600
|
+
C ? i += C : i += tt();
|
601
|
+
var M;
|
602
|
+
r === null ? M = "null" : Se(r) ? M = "array" : r !== void 0 && r.$$typeof === n ? (M = "<" + (k(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : M = typeof r, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, i);
|
603
603
|
}
|
604
|
-
var I = Ee(r, d, g,
|
604
|
+
var I = Ee(r, d, g, H, t);
|
605
605
|
if (I == null)
|
606
606
|
return I;
|
607
607
|
if (f) {
|
@@ -609,26 +609,26 @@ Check the top-level render call using <` + g + ">.");
|
|
609
609
|
if (ce !== void 0)
|
610
610
|
if (T)
|
611
611
|
if (Se(ce)) {
|
612
|
-
for (var
|
613
|
-
ct(ce[
|
612
|
+
for (var ve = 0; ve < ce.length; ve++)
|
613
|
+
ct(ce[ve], r);
|
614
614
|
Object.freeze && Object.freeze(ce);
|
615
615
|
} else
|
616
616
|
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
617
617
|
else
|
618
618
|
ct(ce, r);
|
619
619
|
}
|
620
|
-
if (
|
621
|
-
var
|
622
|
-
return
|
623
|
-
}), rt =
|
624
|
-
if (!nt[
|
625
|
-
var xt =
|
620
|
+
if (he.call(d, "key")) {
|
621
|
+
var me = k(r), q = Object.keys(d).filter(function(wn) {
|
622
|
+
return wn !== "key";
|
623
|
+
}), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
624
|
+
if (!nt[me + rt]) {
|
625
|
+
var xt = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
|
626
626
|
E(`A props object containing a "key" prop is being spread into JSX:
|
627
627
|
let props = %s;
|
628
628
|
<%s {...props} />
|
629
629
|
React keys must be passed directly to JSX without using spread:
|
630
630
|
let props = %s;
|
631
|
-
<%s key={someKey} {...props} />`, rt,
|
631
|
+
<%s key={someKey} {...props} />`, rt, me, xt, me), nt[me + rt] = !0;
|
632
632
|
}
|
633
633
|
}
|
634
634
|
return r === s ? Ve(I) : It(I), I;
|
@@ -644,14 +644,14 @@ React keys must be passed directly to JSX without using spread:
|
|
644
644
|
ft.Fragment = s, ft.jsx = bt, ft.jsxs = Oe;
|
645
645
|
}()), ft;
|
646
646
|
}
|
647
|
-
process.env.NODE_ENV === "production" ?
|
648
|
-
var m =
|
649
|
-
function kt(
|
650
|
-
return
|
647
|
+
process.env.NODE_ENV === "production" ? Dt.exports = In() : Dt.exports = An();
|
648
|
+
var m = Dt.exports;
|
649
|
+
function kt(e, n) {
|
650
|
+
return n ? /* @__PURE__ */ m.jsx(n, { size: e, strokeWidth: 2.5 }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
|
651
651
|
}
|
652
|
-
function Ln(
|
652
|
+
function Ln(e) {
|
653
653
|
const {
|
654
|
-
variant:
|
654
|
+
variant: n = "ghost",
|
655
655
|
scheme: a = "primary",
|
656
656
|
size: s = "md",
|
657
657
|
leftIcon: l,
|
@@ -659,38 +659,38 @@ function Ln(n) {
|
|
659
659
|
className: h = "",
|
660
660
|
children: c,
|
661
661
|
...p
|
662
|
-
} =
|
662
|
+
} = e, y = { md: 12, lg: 14 }[s];
|
663
663
|
return {
|
664
|
-
className: `arkyn_badge ${
|
664
|
+
className: `arkyn_badge ${n} ${a} ${s} ${h}`.trim(),
|
665
665
|
children: c,
|
666
666
|
leftIcon: kt(y, l),
|
667
667
|
rightIcon: kt(y, u),
|
668
668
|
...p
|
669
669
|
};
|
670
670
|
}
|
671
|
-
function
|
672
|
-
const { leftIcon:
|
671
|
+
function qr(e) {
|
672
|
+
const { leftIcon: n, children: a, rightIcon: s, ...l } = Ln(e);
|
673
673
|
return /* @__PURE__ */ m.jsxs("div", { ...l, children: [
|
674
|
-
|
674
|
+
n,
|
675
675
|
a,
|
676
676
|
s
|
677
677
|
] });
|
678
678
|
}
|
679
|
-
function
|
679
|
+
function Jr(e) {
|
680
680
|
const {
|
681
|
-
className:
|
681
|
+
className: n,
|
682
682
|
orientation: a = "horizontal",
|
683
683
|
...s
|
684
|
-
} =
|
684
|
+
} = e, l = `arkyn_divider ${a} ${n}`;
|
685
685
|
return /* @__PURE__ */ m.jsx("div", { className: l, ...s });
|
686
686
|
}
|
687
|
-
function
|
688
|
-
const a = "arkyn_skeleton " +
|
689
|
-
return /* @__PURE__ */ m.jsx("div", { className: a.trim(), ...
|
687
|
+
function Zr({ className: e, ...n }) {
|
688
|
+
const a = "arkyn_skeleton " + e;
|
689
|
+
return /* @__PURE__ */ m.jsx("div", { className: a.trim(), ...n });
|
690
690
|
}
|
691
|
-
function On(
|
691
|
+
function On(e) {
|
692
692
|
const {
|
693
|
-
isLoading:
|
693
|
+
isLoading: n = !1,
|
694
694
|
scheme: a = "primary",
|
695
695
|
variant: s = "solid",
|
696
696
|
loadingText: l,
|
@@ -701,44 +701,44 @@ function On(n) {
|
|
701
701
|
className: o = "",
|
702
702
|
children: y,
|
703
703
|
..._
|
704
|
-
} =
|
704
|
+
} = e, b = { xs: 12, sm: 16, md: 20, lg: 24 }[u];
|
705
705
|
return {
|
706
|
-
className: `arkyn_button loading_text_${!!l} ${s} ${a} ${u} loading_${
|
706
|
+
className: `arkyn_button loading_text_${!!l} ${s} ${a} ${u} loading_${n} ${o}`.trim(),
|
707
707
|
loadingText: l,
|
708
708
|
children: y,
|
709
709
|
iconSize: b,
|
710
|
-
disabled: p ||
|
710
|
+
disabled: p || n,
|
711
711
|
leftIcon: kt(b, h),
|
712
712
|
rightIcon: kt(b, c),
|
713
713
|
..._
|
714
714
|
};
|
715
715
|
}
|
716
|
-
function
|
717
|
-
const { leftIcon:
|
716
|
+
function Qr(e) {
|
717
|
+
const { leftIcon: n, rightIcon: a, iconSize: s, children: l, loadingText: u, ...h } = On(e);
|
718
718
|
return /* @__PURE__ */ m.jsxs("button", { ...h, children: [
|
719
719
|
/* @__PURE__ */ m.jsxs("div", { className: "spinner", children: [
|
720
720
|
/* @__PURE__ */ m.jsx(Qe, { size: s, strokeWidth: 2.5 }),
|
721
721
|
u && u
|
722
722
|
] }),
|
723
723
|
/* @__PURE__ */ m.jsxs("div", { className: "content", children: [
|
724
|
-
|
724
|
+
n,
|
725
725
|
l,
|
726
726
|
a
|
727
727
|
] })
|
728
728
|
] });
|
729
729
|
}
|
730
|
-
const
|
731
|
-
function
|
730
|
+
const un = Ct({});
|
731
|
+
function ea({ children: e, ...n }) {
|
732
732
|
var c, p;
|
733
|
-
const a =
|
734
|
-
return /* @__PURE__ */ m.jsx(
|
733
|
+
const a = ln(), s = at(null), l = ((c = s.current) == null ? void 0 : c.name) || "", u = ((p = a == null ? void 0 : a.fieldErrors) == null ? void 0 : p[l]) || null, h = En();
|
734
|
+
return /* @__PURE__ */ m.jsx(un.Provider, { value: { error: u, id: h, inputRef: s }, children: /* @__PURE__ */ m.jsx("section", { className: "arkyn_form_controller", ...n, children: e }) });
|
735
735
|
}
|
736
736
|
function Ke() {
|
737
|
-
return gt(
|
737
|
+
return gt(un);
|
738
738
|
}
|
739
|
-
function
|
739
|
+
function ta(e) {
|
740
740
|
const {
|
741
|
-
name:
|
741
|
+
name: n,
|
742
742
|
className: a = "",
|
743
743
|
size: s = "md",
|
744
744
|
isError: l,
|
@@ -747,9 +747,9 @@ function ea(n) {
|
|
747
747
|
onCheck: c,
|
748
748
|
value: p,
|
749
749
|
...o
|
750
|
-
} =
|
750
|
+
} = e, { id: y, inputRef: _, error: N } = Ke(), b = l || !!N, [P, A] = Me(u || !1), U = typeof h == "boolean" ? h : P, w = `arkyn_checkbox ${s} ${b ? "error" : ""} ${U ? "checked" : ""} ${a}`;
|
751
751
|
function E() {
|
752
|
-
const L =
|
752
|
+
const L = P;
|
753
753
|
A(!L), c && c(L ? "" : p || "checked");
|
754
754
|
}
|
755
755
|
return /* @__PURE__ */ m.jsxs("div", { id: y, className: w, onClick: E, ...o, children: [
|
@@ -757,38 +757,38 @@ function ea(n) {
|
|
757
757
|
"input",
|
758
758
|
{
|
759
759
|
type: "hidden",
|
760
|
-
name:
|
760
|
+
name: n,
|
761
761
|
ref: _,
|
762
762
|
value: U ? p || "checked" : ""
|
763
763
|
}
|
764
764
|
),
|
765
|
-
/* @__PURE__ */ m.jsx(
|
765
|
+
/* @__PURE__ */ m.jsx(sn, {})
|
766
766
|
] });
|
767
767
|
}
|
768
|
-
function
|
769
|
-
const { error:
|
770
|
-
return
|
768
|
+
function na({ children: e }) {
|
769
|
+
const { error: n } = Ke();
|
770
|
+
return e ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: e }) : n ? /* @__PURE__ */ m.jsx("strong", { className: "arkyn_form_error", children: n }) : /* @__PURE__ */ m.jsx(m.Fragment, {});
|
771
771
|
}
|
772
|
-
function Pn(
|
773
|
-
const { showAsterisk:
|
772
|
+
function Pn(e) {
|
773
|
+
const { showAsterisk: n = !1, className: a = "", ...s } = e;
|
774
774
|
return {
|
775
|
-
className: `arkyn_form_label ${
|
775
|
+
className: `arkyn_form_label ${n ? "show-asterisk" : ""} ${a}`.trim(),
|
776
776
|
...s
|
777
777
|
};
|
778
778
|
}
|
779
|
-
function
|
780
|
-
const { id:
|
781
|
-
return /* @__PURE__ */ m.jsx("label", { ...Pn(
|
779
|
+
function ra(e) {
|
780
|
+
const { id: n } = Ke();
|
781
|
+
return /* @__PURE__ */ m.jsx("label", { ...Pn(e), htmlFor: n });
|
782
782
|
}
|
783
|
-
const
|
783
|
+
const Xt = {
|
784
784
|
xs: 12,
|
785
785
|
sm: 16,
|
786
786
|
md: 20,
|
787
787
|
lg: 24
|
788
788
|
};
|
789
|
-
function
|
789
|
+
function aa(e) {
|
790
790
|
const {
|
791
|
-
isLoading:
|
791
|
+
isLoading: n = !1,
|
792
792
|
scheme: a = "primary",
|
793
793
|
variant: s = "solid",
|
794
794
|
size: l = "md",
|
@@ -796,45 +796,45 @@ function ra(n) {
|
|
796
796
|
disabled: h,
|
797
797
|
className: c = "",
|
798
798
|
...p
|
799
|
-
} =
|
799
|
+
} = e, o = `arkyn_icon_button ${s} ${a} ${l} loading_${n} ${c}`;
|
800
800
|
return /* @__PURE__ */ m.jsxs(
|
801
801
|
"button",
|
802
802
|
{
|
803
|
-
disabled: h ||
|
803
|
+
disabled: h || n,
|
804
804
|
className: o.trim(),
|
805
805
|
...p,
|
806
806
|
children: [
|
807
|
-
/* @__PURE__ */ m.jsx("div", { className: "spinner", children: /* @__PURE__ */ m.jsx(Qe, { size:
|
808
|
-
/* @__PURE__ */ m.jsx("div", { className: "content " + l, children: /* @__PURE__ */ m.jsx(u, { size:
|
807
|
+
/* @__PURE__ */ m.jsx("div", { className: "spinner", children: /* @__PURE__ */ m.jsx(Qe, { size: Xt[l], strokeWidth: 2.5 }) }),
|
808
|
+
/* @__PURE__ */ m.jsx("div", { className: "content " + l, children: /* @__PURE__ */ m.jsx(u, { size: Xt[l], strokeWidth: 2.5 }) })
|
809
809
|
]
|
810
810
|
}
|
811
811
|
);
|
812
812
|
}
|
813
|
-
function Ge(
|
814
|
-
if (!
|
813
|
+
function Ge(e, n, a) {
|
814
|
+
if (!e)
|
815
815
|
return /* @__PURE__ */ m.jsx(m.Fragment, {});
|
816
|
-
if (typeof
|
817
|
-
return /* @__PURE__ */ m.jsx("p", { className: a, children:
|
818
|
-
const s =
|
819
|
-
return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size:
|
816
|
+
if (typeof e == "string")
|
817
|
+
return /* @__PURE__ */ m.jsx("p", { className: a, children: e });
|
818
|
+
const s = e;
|
819
|
+
return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: n, strokeWidth: 2.5 }) });
|
820
820
|
}
|
821
|
-
function Bt(
|
822
|
-
return
|
821
|
+
function Bt(e) {
|
822
|
+
return e && e.replace(/[^0-9]/g, "");
|
823
823
|
}
|
824
|
-
function
|
824
|
+
function dn(e, n) {
|
825
825
|
let a = "", s = 0;
|
826
|
-
return Array.from(
|
827
|
-
|
826
|
+
return Array.from(e).forEach((l, u) => {
|
827
|
+
n[u + s].match(/[0-9]/) || (a += n[u + s], s++), a += l;
|
828
828
|
}), a;
|
829
829
|
}
|
830
|
-
function
|
831
|
-
return
|
830
|
+
function fn(e) {
|
831
|
+
return e.length > 11 ? "CNPJ" : "CPF";
|
832
832
|
}
|
833
833
|
const Ut = {
|
834
834
|
CPF: "999.999.999-999",
|
835
835
|
CNPJ: "99.999.999/9999-99"
|
836
|
-
},
|
837
|
-
function jn(
|
836
|
+
}, mn = Bt(Ut.CNPJ).length;
|
837
|
+
function jn(e, n) {
|
838
838
|
const {
|
839
839
|
isLoading: a,
|
840
840
|
isError: s,
|
@@ -848,31 +848,31 @@ function jn(n, t) {
|
|
848
848
|
disabled: _,
|
849
849
|
defaultValue: N,
|
850
850
|
readOnly: b,
|
851
|
-
onFocus:
|
851
|
+
onFocus: P,
|
852
852
|
onBlur: A,
|
853
853
|
title: U,
|
854
854
|
style: w,
|
855
855
|
onChange: E,
|
856
856
|
...L
|
857
|
-
} =
|
858
|
-
function
|
859
|
-
let
|
860
|
-
const J =
|
861
|
-
if (!(
|
862
|
-
return
|
857
|
+
} = e;
|
858
|
+
function W(R) {
|
859
|
+
let $ = Bt(R);
|
860
|
+
const J = fn($);
|
861
|
+
if (!($.length > mn))
|
862
|
+
return $ = dn($, Ut[J]), $;
|
863
863
|
}
|
864
|
-
const D = y ? "right" : "left",
|
864
|
+
const D = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
|
865
865
|
return {
|
866
866
|
isLoading: a,
|
867
|
-
className:
|
867
|
+
className: z,
|
868
868
|
prefix: Ge(c, k, "prefix"),
|
869
869
|
sufix: Ge(p, k, "sufix"),
|
870
870
|
LeftIcon: o,
|
871
871
|
RightIcon: y,
|
872
|
-
defaultValue:
|
872
|
+
defaultValue: W(N || ""),
|
873
873
|
disabled: _,
|
874
874
|
readOnly: b,
|
875
|
-
onFocus:
|
875
|
+
onFocus: P,
|
876
876
|
onBlur: A,
|
877
877
|
title: U,
|
878
878
|
style: w,
|
@@ -883,40 +883,40 @@ function jn(n, t) {
|
|
883
883
|
...L
|
884
884
|
};
|
885
885
|
}
|
886
|
-
function
|
887
|
-
const [
|
886
|
+
function Mn(e) {
|
887
|
+
const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
|
888
888
|
disabled: o,
|
889
889
|
title: y,
|
890
890
|
style: _,
|
891
891
|
className: N,
|
892
892
|
prefix: b,
|
893
|
-
sufix:
|
893
|
+
sufix: P,
|
894
894
|
iconSize: A,
|
895
895
|
loadingPosition: U,
|
896
896
|
isLoading: w,
|
897
897
|
LeftIcon: E,
|
898
898
|
readOnly: L,
|
899
|
-
onFocus:
|
899
|
+
onFocus: W,
|
900
900
|
onBlur: D,
|
901
|
-
RightIcon:
|
902
|
-
Spinner:
|
903
|
-
onChange:
|
901
|
+
RightIcon: X,
|
902
|
+
Spinner: ee,
|
903
|
+
onChange: V,
|
904
904
|
value: re,
|
905
|
-
defaultValue:
|
906
|
-
|
907
|
-
} = jn({ ...
|
908
|
-
function
|
905
|
+
defaultValue: Y,
|
906
|
+
...z
|
907
|
+
} = jn({ ...e, id: u, isError: p }, n), [ae, k] = Me(Y), R = E && !w, $ = X && !w, J = U === "left" && w, ie = U === "right" && w;
|
908
|
+
function Z() {
|
909
909
|
o || !(c != null && c.current) || (a(!0), c.current.focus());
|
910
910
|
}
|
911
911
|
function le(x) {
|
912
|
-
let
|
913
|
-
const
|
914
|
-
|
912
|
+
let O = Bt(x.target.value);
|
913
|
+
const j = fn(O);
|
914
|
+
O.length > mn || (O = dn(O, Ut[j]), x.target.value = O, k(O), V && V(x));
|
915
915
|
}
|
916
916
|
function G(x) {
|
917
|
-
a(!0),
|
917
|
+
a(!0), W && W(x);
|
918
918
|
}
|
919
|
-
function
|
919
|
+
function F(x) {
|
920
920
|
a(!1), D && D(x);
|
921
921
|
}
|
922
922
|
return /* @__PURE__ */ m.jsxs(
|
@@ -924,12 +924,12 @@ function Dn(n) {
|
|
924
924
|
{
|
925
925
|
title: y,
|
926
926
|
style: _,
|
927
|
-
onClick:
|
927
|
+
onClick: Z,
|
928
928
|
className: N,
|
929
929
|
children: [
|
930
930
|
b,
|
931
|
-
J &&
|
932
|
-
|
931
|
+
J && ee,
|
932
|
+
R && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
|
933
933
|
/* @__PURE__ */ m.jsx(
|
934
934
|
"input",
|
935
935
|
{
|
@@ -939,18 +939,18 @@ function Dn(n) {
|
|
939
939
|
value: re || ae,
|
940
940
|
onFocus: G,
|
941
941
|
onChange: le,
|
942
|
-
onBlur:
|
943
|
-
|
942
|
+
onBlur: F,
|
943
|
+
...z
|
944
944
|
}
|
945
945
|
),
|
946
|
-
|
947
|
-
ie &&
|
948
|
-
|
946
|
+
$ && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
|
947
|
+
ie && ee,
|
948
|
+
P
|
949
949
|
]
|
950
950
|
}
|
951
951
|
);
|
952
952
|
}
|
953
|
-
function
|
953
|
+
function Dn(e, n) {
|
954
954
|
const {
|
955
955
|
isLoading: a,
|
956
956
|
isError: s,
|
@@ -964,17 +964,17 @@ function Mn(n, t) {
|
|
964
964
|
disabled: _,
|
965
965
|
readOnly: N,
|
966
966
|
onFocus: b,
|
967
|
-
onBlur:
|
967
|
+
onBlur: P,
|
968
968
|
title: A,
|
969
969
|
style: U,
|
970
970
|
showCents: w = !1,
|
971
971
|
max: E = 1e9,
|
972
972
|
onChange: L,
|
973
|
-
...
|
974
|
-
} =
|
973
|
+
...W
|
974
|
+
} = e, D = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
|
975
975
|
return {
|
976
976
|
isLoading: a,
|
977
|
-
className:
|
977
|
+
className: z,
|
978
978
|
prefix: Ge(c, k, "prefix"),
|
979
979
|
sufix: Ge(p, k, "sufix"),
|
980
980
|
LeftIcon: o,
|
@@ -982,7 +982,7 @@ function Mn(n, t) {
|
|
982
982
|
disabled: _,
|
983
983
|
readOnly: N,
|
984
984
|
onFocus: b,
|
985
|
-
onBlur:
|
985
|
+
onBlur: P,
|
986
986
|
title: A,
|
987
987
|
style: U,
|
988
988
|
max: E,
|
@@ -991,27 +991,27 @@ function Mn(n, t) {
|
|
991
991
|
loadingPosition: D,
|
992
992
|
iconSize: k,
|
993
993
|
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
|
994
|
-
...
|
994
|
+
...W
|
995
995
|
};
|
996
996
|
}
|
997
|
-
const zn = /^[1-9]{1}$/, $n = /^[0-9]{1}$/,
|
998
|
-
function Fn(
|
999
|
-
if (
|
997
|
+
const zn = /^[1-9]{1}$/, $n = /^[0-9]{1}$/, qt = 8;
|
998
|
+
function Fn(e, n) {
|
999
|
+
if (e === 0)
|
1000
1000
|
return "";
|
1001
|
-
const a = (
|
1001
|
+
const a = (e / 100).toLocaleString("pt-BR", {
|
1002
1002
|
style: "currency",
|
1003
1003
|
currency: "BRL"
|
1004
1004
|
});
|
1005
|
-
return
|
1005
|
+
return n ? a : a.replace("R$", "").trim();
|
1006
1006
|
}
|
1007
|
-
function Bn(
|
1008
|
-
const { currencyValue:
|
1009
|
-
if (
|
1007
|
+
function Bn(e) {
|
1008
|
+
const { currencyValue: n, event: a, max: s, setCurrencyValue: l } = e, { key: u, keyCode: h } = a;
|
1009
|
+
if (n === 0 && !zn.test(u) || n !== 0 && !$n.test(u) && h !== qt)
|
1010
1010
|
return;
|
1011
|
-
const c =
|
1011
|
+
const c = n.toString();
|
1012
1012
|
let p;
|
1013
|
-
if (h !==
|
1014
|
-
const o =
|
1013
|
+
if (h !== qt) {
|
1014
|
+
const o = n === 0 ? u : `${c}${u}`;
|
1015
1015
|
p = Number.parseInt(o, 10);
|
1016
1016
|
} else {
|
1017
1017
|
const o = c.slice(0, -1);
|
@@ -1019,41 +1019,41 @@ function Bn(n) {
|
|
1019
1019
|
}
|
1020
1020
|
p > Number(s) || l(p);
|
1021
1021
|
}
|
1022
|
-
function Un(
|
1023
|
-
const [
|
1022
|
+
function Un(e) {
|
1023
|
+
const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
|
1024
1024
|
disabled: o,
|
1025
1025
|
title: y,
|
1026
1026
|
style: _,
|
1027
1027
|
className: N,
|
1028
1028
|
prefix: b,
|
1029
|
-
sufix:
|
1029
|
+
sufix: P,
|
1030
1030
|
iconSize: A,
|
1031
1031
|
loadingPosition: U,
|
1032
1032
|
isLoading: w,
|
1033
1033
|
LeftIcon: E,
|
1034
1034
|
readOnly: L,
|
1035
|
-
onFocus:
|
1035
|
+
onFocus: W,
|
1036
1036
|
onBlur: D,
|
1037
|
-
RightIcon:
|
1038
|
-
Spinner:
|
1039
|
-
value:
|
1037
|
+
RightIcon: X,
|
1038
|
+
Spinner: ee,
|
1039
|
+
value: V,
|
1040
1040
|
max: re,
|
1041
|
-
onKeyDown:
|
1042
|
-
onChange:
|
1041
|
+
onKeyDown: Y,
|
1042
|
+
onChange: z,
|
1043
1043
|
showCents: ae,
|
1044
1044
|
defaultValue: k,
|
1045
|
-
...
|
1046
|
-
} =
|
1047
|
-
function
|
1045
|
+
...R
|
1046
|
+
} = Dn({ ...e, id: u, isError: p }, n), [$, J] = Me(k * 100 || 0), ie = E && !w, Z = X && !w, le = U === "left" && w, G = U === "right" && w;
|
1047
|
+
function F() {
|
1048
1048
|
o || !(c != null && c.current) || (a(!0), c.current.focus());
|
1049
1049
|
}
|
1050
1050
|
function x(te) {
|
1051
|
-
Bn({ currencyValue:
|
1051
|
+
Bn({ currencyValue: $, event: te, max: re, setCurrencyValue: J }), z && z($ / 100), Y && Y(te);
|
1052
1052
|
}
|
1053
|
-
function
|
1054
|
-
a(!0),
|
1053
|
+
function O(te) {
|
1054
|
+
a(!0), W && W(te);
|
1055
1055
|
}
|
1056
|
-
function
|
1056
|
+
function j(te) {
|
1057
1057
|
a(!1), D && D(te);
|
1058
1058
|
}
|
1059
1059
|
return /* @__PURE__ */ m.jsxs(
|
@@ -1061,35 +1061,35 @@ function Un(n) {
|
|
1061
1061
|
{
|
1062
1062
|
title: y,
|
1063
1063
|
style: _,
|
1064
|
-
onClick:
|
1064
|
+
onClick: F,
|
1065
1065
|
className: N,
|
1066
1066
|
children: [
|
1067
1067
|
b,
|
1068
|
-
le &&
|
1068
|
+
le && ee,
|
1069
1069
|
ie && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
|
1070
1070
|
/* @__PURE__ */ m.jsx(
|
1071
1071
|
"input",
|
1072
1072
|
{
|
1073
|
-
value: Fn(
|
1073
|
+
value: Fn(V || $, ae),
|
1074
1074
|
onKeyDown: x,
|
1075
1075
|
disabled: o || w,
|
1076
1076
|
readOnly: L,
|
1077
1077
|
ref: c,
|
1078
|
-
onFocus:
|
1079
|
-
onBlur:
|
1078
|
+
onFocus: O,
|
1079
|
+
onBlur: j,
|
1080
1080
|
onChange: () => {
|
1081
1081
|
},
|
1082
|
-
...
|
1082
|
+
...R
|
1083
1083
|
}
|
1084
1084
|
),
|
1085
|
-
G &&
|
1086
|
-
|
1087
|
-
|
1085
|
+
G && ee,
|
1086
|
+
Z && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
|
1087
|
+
P
|
1088
1088
|
]
|
1089
1089
|
}
|
1090
1090
|
);
|
1091
1091
|
}
|
1092
|
-
function Wn(
|
1092
|
+
function Wn(e, n) {
|
1093
1093
|
const {
|
1094
1094
|
isLoading: a,
|
1095
1095
|
isError: s,
|
@@ -1103,17 +1103,17 @@ function Wn(n, t) {
|
|
1103
1103
|
disabled: _,
|
1104
1104
|
readOnly: N,
|
1105
1105
|
onFocus: b,
|
1106
|
-
onBlur:
|
1106
|
+
onBlur: P,
|
1107
1107
|
title: A,
|
1108
1108
|
style: U,
|
1109
1109
|
onChange: w,
|
1110
1110
|
showMask: E = !1,
|
1111
1111
|
type: L,
|
1112
|
-
...
|
1113
|
-
} =
|
1112
|
+
...W
|
1113
|
+
} = e, D = y ? "right" : "left", z = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, k = { md: 20, lg: 20 }[l];
|
1114
1114
|
return {
|
1115
1115
|
isLoading: a,
|
1116
|
-
className:
|
1116
|
+
className: z,
|
1117
1117
|
prefix: Ge(c, k, "prefix"),
|
1118
1118
|
sufix: Ge(p, k, "sufix"),
|
1119
1119
|
LeftIcon: o,
|
@@ -1121,7 +1121,7 @@ function Wn(n, t) {
|
|
1121
1121
|
disabled: _,
|
1122
1122
|
readOnly: N,
|
1123
1123
|
onFocus: b,
|
1124
|
-
onBlur:
|
1124
|
+
onBlur: P,
|
1125
1125
|
title: A,
|
1126
1126
|
style: U,
|
1127
1127
|
onChange: w,
|
@@ -1129,36 +1129,36 @@ function Wn(n, t) {
|
|
1129
1129
|
iconSize: k,
|
1130
1130
|
showMask: E,
|
1131
1131
|
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: k, strokeWidth: 2.5 }),
|
1132
|
-
...
|
1132
|
+
...W
|
1133
1133
|
};
|
1134
1134
|
}
|
1135
|
-
const Hn =
|
1136
|
-
function Yn(
|
1137
|
-
const [
|
1135
|
+
const Hn = Sn((e, n) => /* @__PURE__ */ m.jsx("input", { ref: n, ...e }));
|
1136
|
+
function Yn(e) {
|
1137
|
+
const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
|
1138
1138
|
disabled: o,
|
1139
1139
|
title: y,
|
1140
1140
|
style: _,
|
1141
1141
|
className: N,
|
1142
1142
|
prefix: b,
|
1143
|
-
sufix:
|
1143
|
+
sufix: P,
|
1144
1144
|
iconSize: A,
|
1145
1145
|
loadingPosition: U,
|
1146
1146
|
isLoading: w,
|
1147
1147
|
LeftIcon: E,
|
1148
1148
|
readOnly: L,
|
1149
|
-
onFocus:
|
1149
|
+
onFocus: W,
|
1150
1150
|
onBlur: D,
|
1151
|
-
RightIcon:
|
1152
|
-
Spinner:
|
1153
|
-
...
|
1154
|
-
} = Wn({ ...
|
1151
|
+
RightIcon: X,
|
1152
|
+
Spinner: ee,
|
1153
|
+
...V
|
1154
|
+
} = Wn({ ...e, id: u, isError: p }, n), re = E && !w, Y = X && !w, z = U === "left" && w, ae = U === "right" && w;
|
1155
1155
|
function k() {
|
1156
1156
|
o || !(c != null && c.current) || (a(!0), c.current.focus());
|
1157
1157
|
}
|
1158
|
-
function
|
1159
|
-
a(!0),
|
1158
|
+
function R(J) {
|
1159
|
+
a(!0), W && W(J);
|
1160
1160
|
}
|
1161
|
-
function
|
1161
|
+
function $(J) {
|
1162
1162
|
a(!1), D && D(J);
|
1163
1163
|
}
|
1164
1164
|
return /* @__PURE__ */ m.jsxs(
|
@@ -1170,26 +1170,26 @@ function Yn(n) {
|
|
1170
1170
|
className: N,
|
1171
1171
|
children: [
|
1172
1172
|
b,
|
1173
|
-
|
1173
|
+
z && ee,
|
1174
1174
|
re && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
|
1175
1175
|
/* @__PURE__ */ m.jsx(
|
1176
1176
|
kn,
|
1177
1177
|
{
|
1178
1178
|
component: Hn,
|
1179
1179
|
ref: c,
|
1180
|
-
onFocus:
|
1181
|
-
onBlur:
|
1182
|
-
...
|
1180
|
+
onFocus: R,
|
1181
|
+
onBlur: $,
|
1182
|
+
...V
|
1183
1183
|
}
|
1184
1184
|
),
|
1185
|
-
|
1186
|
-
ae &&
|
1187
|
-
|
1185
|
+
Y && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
|
1186
|
+
ae && ee,
|
1187
|
+
P
|
1188
1188
|
]
|
1189
1189
|
}
|
1190
1190
|
);
|
1191
1191
|
}
|
1192
|
-
function Vn(
|
1192
|
+
function Vn(e, n) {
|
1193
1193
|
const {
|
1194
1194
|
isLoading: a,
|
1195
1195
|
isError: s,
|
@@ -1203,103 +1203,103 @@ function Vn(n, t) {
|
|
1203
1203
|
disabled: _,
|
1204
1204
|
readOnly: N,
|
1205
1205
|
onFocus: b,
|
1206
|
-
onBlur:
|
1206
|
+
onBlur: P,
|
1207
1207
|
title: A,
|
1208
1208
|
style: U,
|
1209
1209
|
onChange: w,
|
1210
1210
|
...E
|
1211
|
-
} =
|
1211
|
+
} = e, L = y ? "right" : "left", re = `arkyn_input ${c ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${_ || N || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, z = { md: 20, lg: 20 }[l];
|
1212
1212
|
return {
|
1213
1213
|
isLoading: a,
|
1214
1214
|
className: re,
|
1215
|
-
prefix: Ge(c,
|
1216
|
-
sufix: Ge(p,
|
1215
|
+
prefix: Ge(c, z, "prefix"),
|
1216
|
+
sufix: Ge(p, z, "sufix"),
|
1217
1217
|
LeftIcon: o,
|
1218
1218
|
RightIcon: y,
|
1219
1219
|
disabled: _,
|
1220
1220
|
readOnly: N,
|
1221
1221
|
onFocus: b,
|
1222
|
-
onBlur:
|
1222
|
+
onBlur: P,
|
1223
1223
|
title: A,
|
1224
1224
|
style: U,
|
1225
1225
|
onChange: w,
|
1226
1226
|
loadingPosition: L,
|
1227
|
-
iconSize:
|
1228
|
-
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size:
|
1227
|
+
iconSize: z,
|
1228
|
+
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: z, strokeWidth: 2.5 }),
|
1229
1229
|
...E
|
1230
1230
|
};
|
1231
1231
|
}
|
1232
|
-
function Gn(
|
1233
|
-
const [
|
1232
|
+
function Gn(e) {
|
1233
|
+
const [n, a] = Me(!1), s = at(null), { inputRef: l, id: u, error: h } = Ke(), c = l || s, p = e.isError || !!h, {
|
1234
1234
|
disabled: o,
|
1235
1235
|
title: y,
|
1236
1236
|
style: _,
|
1237
1237
|
className: N,
|
1238
1238
|
prefix: b,
|
1239
|
-
sufix:
|
1239
|
+
sufix: P,
|
1240
1240
|
iconSize: A,
|
1241
1241
|
loadingPosition: U,
|
1242
1242
|
isLoading: w,
|
1243
1243
|
LeftIcon: E,
|
1244
1244
|
readOnly: L,
|
1245
|
-
onFocus:
|
1245
|
+
onFocus: W,
|
1246
1246
|
onBlur: D,
|
1247
|
-
RightIcon:
|
1248
|
-
type:
|
1249
|
-
Spinner:
|
1247
|
+
RightIcon: X,
|
1248
|
+
type: ee,
|
1249
|
+
Spinner: V,
|
1250
1250
|
...re
|
1251
|
-
} = Vn({ ...
|
1252
|
-
function
|
1251
|
+
} = Vn({ ...e, id: u, isError: p }, n), Y = E && !w, z = X && !w, ae = U === "left" && w, k = U === "right" && w;
|
1252
|
+
function R() {
|
1253
1253
|
o || !(c != null && c.current) || (a(!0), c.current.focus());
|
1254
1254
|
}
|
1255
|
-
function
|
1256
|
-
a(!0),
|
1255
|
+
function $(ie) {
|
1256
|
+
a(!0), W && W(ie);
|
1257
1257
|
}
|
1258
1258
|
function J(ie) {
|
1259
1259
|
a(!1), D && D(ie);
|
1260
1260
|
}
|
1261
|
-
return
|
1261
|
+
return ee === "hidden" ? /* @__PURE__ */ m.jsx("input", { type: "hidden", ref: c, ...re }) : /* @__PURE__ */ m.jsxs(
|
1262
1262
|
"section",
|
1263
1263
|
{
|
1264
1264
|
title: y,
|
1265
1265
|
style: _,
|
1266
|
-
onClick:
|
1266
|
+
onClick: R,
|
1267
1267
|
className: N,
|
1268
1268
|
children: [
|
1269
1269
|
b,
|
1270
|
-
ae &&
|
1271
|
-
|
1270
|
+
ae && V,
|
1271
|
+
Y && /* @__PURE__ */ m.jsx(E, { size: A, strokeWidth: 2.5 }),
|
1272
1272
|
/* @__PURE__ */ m.jsx(
|
1273
1273
|
"input",
|
1274
1274
|
{
|
1275
1275
|
disabled: o || w,
|
1276
1276
|
readOnly: L,
|
1277
1277
|
ref: c,
|
1278
|
-
onFocus:
|
1278
|
+
onFocus: $,
|
1279
1279
|
onBlur: J,
|
1280
|
-
type:
|
1280
|
+
type: ee,
|
1281
1281
|
...re
|
1282
1282
|
}
|
1283
1283
|
),
|
1284
|
-
|
1285
|
-
k &&
|
1286
|
-
|
1284
|
+
z && /* @__PURE__ */ m.jsx(X, { size: A, strokeWidth: 2.5 }),
|
1285
|
+
k && V,
|
1286
|
+
P
|
1287
1287
|
]
|
1288
1288
|
}
|
1289
1289
|
);
|
1290
1290
|
}
|
1291
|
-
function
|
1292
|
-
return
|
1291
|
+
function oa(e) {
|
1292
|
+
return e.type === "currency" ? /* @__PURE__ */ m.jsx(Un, { ...e }) : e.type === "masked" ? /* @__PURE__ */ m.jsx(Yn, { ...e }) : e.type === "cpf-cnpj" ? /* @__PURE__ */ m.jsx(Mn, { ...e }) : /* @__PURE__ */ m.jsx(Gn, { ...e });
|
1293
1293
|
}
|
1294
|
-
function Kn(
|
1295
|
-
if (!
|
1294
|
+
function Kn(e, n, a) {
|
1295
|
+
if (!e)
|
1296
1296
|
return /* @__PURE__ */ m.jsx(m.Fragment, {});
|
1297
|
-
if (typeof
|
1298
|
-
return /* @__PURE__ */ m.jsx("p", { className: a, children:
|
1299
|
-
const s =
|
1300
|
-
return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size:
|
1297
|
+
if (typeof e == "string")
|
1298
|
+
return /* @__PURE__ */ m.jsx("p", { className: a, children: e });
|
1299
|
+
const s = e;
|
1300
|
+
return /* @__PURE__ */ m.jsx("p", { className: a, children: /* @__PURE__ */ m.jsx(s, { color: "var(--secondary-600)", size: n, strokeWidth: 2.5 }) });
|
1301
1301
|
}
|
1302
|
-
function Xn(
|
1302
|
+
function Xn(e, n) {
|
1303
1303
|
const {
|
1304
1304
|
isLoading: a,
|
1305
1305
|
isError: s,
|
@@ -1313,101 +1313,104 @@ function Xn(n, t) {
|
|
1313
1313
|
onFocus: _,
|
1314
1314
|
onBlur: N,
|
1315
1315
|
title: b,
|
1316
|
-
style:
|
1316
|
+
style: P,
|
1317
1317
|
isSearchable: A = !1,
|
1318
|
-
|
1319
|
-
|
1318
|
+
closeOnSelect: U = !0,
|
1319
|
+
...w
|
1320
|
+
} = e, X = `arkyn_select ${c ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${n ? "focused" : ""} ${u}`, V = { md: 20, lg: 20 }[l];
|
1320
1321
|
return {
|
1321
1322
|
isLoading: a,
|
1322
|
-
className:
|
1323
|
-
prefix: Kn(c,
|
1323
|
+
className: X,
|
1324
|
+
prefix: Kn(c, V, "prefix"),
|
1324
1325
|
LeftIcon: p,
|
1325
1326
|
disabled: o,
|
1326
1327
|
readOnly: y,
|
1327
1328
|
onFocus: _,
|
1328
1329
|
onBlur: N,
|
1329
1330
|
title: b,
|
1330
|
-
|
1331
|
+
closeOnSelect: U,
|
1332
|
+
style: P,
|
1331
1333
|
isSearchable: A,
|
1332
|
-
iconSize:
|
1333
|
-
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size:
|
1334
|
-
...
|
1334
|
+
iconSize: V,
|
1335
|
+
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: V, strokeWidth: 2.5 }),
|
1336
|
+
...w
|
1335
1337
|
};
|
1336
1338
|
}
|
1337
|
-
function
|
1338
|
-
var
|
1339
|
-
const [
|
1339
|
+
function sa(e) {
|
1340
|
+
var K;
|
1341
|
+
const [n, a] = Me(!1), { inputRef: s, id: l, error: u } = Ke(), h = at(null), c = s || h, p = e.isError || !!u, {
|
1340
1342
|
disabled: o,
|
1341
1343
|
title: y,
|
1342
1344
|
style: _,
|
1343
1345
|
className: N,
|
1344
1346
|
prefix: b,
|
1345
|
-
iconSize:
|
1347
|
+
iconSize: P,
|
1346
1348
|
isLoading: A,
|
1347
1349
|
LeftIcon: U,
|
1348
1350
|
value: w = null,
|
1349
1351
|
defaultValue: E = "",
|
1350
1352
|
readOnly: L,
|
1351
|
-
onFocus:
|
1353
|
+
onFocus: W,
|
1352
1354
|
onBlur: D,
|
1353
|
-
Spinner:
|
1354
|
-
name:
|
1355
|
-
isSearchable:
|
1355
|
+
Spinner: X,
|
1356
|
+
name: ee,
|
1357
|
+
isSearchable: V,
|
1356
1358
|
placeholder: re,
|
1357
|
-
onSelect:
|
1358
|
-
options:
|
1359
|
+
onSelect: Y,
|
1360
|
+
options: z,
|
1359
1361
|
optionMaxHeight: ae,
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1362
|
+
closeOnSelect: k,
|
1363
|
+
...R
|
1364
|
+
} = Xn({ ...e, id: l, isError: p }, n), [$, J] = Me(E), [ie, Z] = Me("");
|
1365
|
+
function le() {
|
1363
1366
|
o || !(c != null && c.current) || (a(!0), c.current.focus());
|
1364
1367
|
}
|
1365
|
-
function
|
1366
|
-
a(!0),
|
1368
|
+
function G(ue) {
|
1369
|
+
a(!0), W && W(ue);
|
1367
1370
|
}
|
1368
|
-
function
|
1371
|
+
function F() {
|
1369
1372
|
a(!1), D && c.current && c.current.blur();
|
1370
1373
|
}
|
1371
|
-
const
|
1372
|
-
if (
|
1373
|
-
if (!
|
1374
|
+
const x = typeof w == "string" ? w : $, O = ((K = z.find((ue) => ue.value === x)) == null ? void 0 : K.label) || "", j = () => {
|
1375
|
+
if (V) {
|
1376
|
+
if (!n && O)
|
1374
1377
|
return !0;
|
1375
|
-
if (!
|
1378
|
+
if (!n && !O || n)
|
1376
1379
|
return !1;
|
1377
1380
|
}
|
1378
|
-
if (!
|
1379
|
-
if (!
|
1381
|
+
if (!V) {
|
1382
|
+
if (!n && O)
|
1380
1383
|
return !0;
|
1381
|
-
if (!
|
1384
|
+
if (!n && !O)
|
1382
1385
|
return !1;
|
1383
|
-
if (
|
1386
|
+
if (n && O)
|
1384
1387
|
return !0;
|
1385
|
-
if (
|
1388
|
+
if (n && !O)
|
1386
1389
|
return !1;
|
1387
1390
|
}
|
1388
|
-
},
|
1391
|
+
}, te = z.filter((ue) => V ? ue.label.toLowerCase().includes(ie.toLowerCase()) : !0);
|
1389
1392
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
1390
1393
|
/* @__PURE__ */ m.jsxs(
|
1391
1394
|
"section",
|
1392
1395
|
{
|
1393
1396
|
title: y,
|
1394
1397
|
style: _,
|
1395
|
-
onClick:
|
1396
|
-
className: `${N} placeholder_dark_${
|
1398
|
+
onClick: le,
|
1399
|
+
className: `${N} placeholder_dark_${j()}`,
|
1397
1400
|
children: [
|
1398
1401
|
b,
|
1399
|
-
U && /* @__PURE__ */ m.jsx(U, { size:
|
1402
|
+
U && /* @__PURE__ */ m.jsx(U, { size: P, strokeWidth: 2.5 }),
|
1400
1403
|
/* @__PURE__ */ m.jsx(
|
1401
1404
|
"input",
|
1402
1405
|
{
|
1403
1406
|
disabled: o || A,
|
1404
|
-
readOnly: !
|
1405
|
-
value:
|
1406
|
-
placeholder:
|
1407
|
-
onFocus:
|
1408
|
-
onBlur: () =>
|
1409
|
-
...
|
1410
|
-
onChange: (
|
1407
|
+
readOnly: !V,
|
1408
|
+
value: ie || "",
|
1409
|
+
placeholder: O || re,
|
1410
|
+
onFocus: G,
|
1411
|
+
onBlur: () => Z(""),
|
1412
|
+
...R,
|
1413
|
+
onChange: (ue) => Z(ue.target.value)
|
1411
1414
|
}
|
1412
1415
|
),
|
1413
1416
|
/* @__PURE__ */ m.jsx(
|
@@ -1415,33 +1418,33 @@ function oa(n) {
|
|
1415
1418
|
{
|
1416
1419
|
type: "hidden",
|
1417
1420
|
ref: c,
|
1418
|
-
name:
|
1419
|
-
value:
|
1421
|
+
name: ee,
|
1422
|
+
value: x || "",
|
1420
1423
|
readOnly: !0
|
1421
1424
|
}
|
1422
1425
|
),
|
1423
|
-
|
1426
|
+
n && /* @__PURE__ */ m.jsxs(
|
1424
1427
|
"ul",
|
1425
1428
|
{
|
1426
1429
|
className: "arkyn_select_content",
|
1427
1430
|
style: { overflow: "auto", maxHeight: ae },
|
1428
1431
|
children: [
|
1429
|
-
|
1432
|
+
te.map(({ label: ue, value: de }) => /* @__PURE__ */ m.jsxs(
|
1430
1433
|
"li",
|
1431
1434
|
{
|
1432
|
-
className:
|
1435
|
+
className: x === de ? "active" : "",
|
1433
1436
|
onClick: () => {
|
1434
|
-
|
1437
|
+
J($ !== de ? de : ""), Y && Y({ label: ue, value: de }), k && setTimeout(() => F(), 100);
|
1435
1438
|
},
|
1436
1439
|
children: [
|
1437
|
-
|
1440
|
+
ue,
|
1438
1441
|
" ",
|
1439
|
-
/* @__PURE__ */ m.jsx(
|
1442
|
+
/* @__PURE__ */ m.jsx(sn, {})
|
1440
1443
|
]
|
1441
1444
|
},
|
1442
|
-
|
1445
|
+
de
|
1443
1446
|
)),
|
1444
|
-
|
1447
|
+
te.length <= 0 && /* @__PURE__ */ m.jsx("p", { children: "Sem opções disponíveis" })
|
1445
1448
|
]
|
1446
1449
|
}
|
1447
1450
|
),
|
@@ -1449,28 +1452,28 @@ function oa(n) {
|
|
1449
1452
|
Tn,
|
1450
1453
|
{
|
1451
1454
|
className: "arkyn_select_arrow",
|
1452
|
-
size:
|
1455
|
+
size: P,
|
1453
1456
|
strokeWidth: 2.5
|
1454
1457
|
}
|
1455
1458
|
),
|
1456
|
-
A &&
|
1459
|
+
A && X
|
1457
1460
|
]
|
1458
1461
|
}
|
1459
1462
|
),
|
1460
|
-
|
1463
|
+
n && /* @__PURE__ */ m.jsx("aside", { className: "arkyn_select_overlay", onClick: F })
|
1461
1464
|
] });
|
1462
1465
|
}
|
1463
|
-
function qn(
|
1464
|
-
const { className:
|
1465
|
-
return { className: `arkyn_breadcrumb ${
|
1466
|
+
function qn(e) {
|
1467
|
+
const { className: n = "", ...a } = e;
|
1468
|
+
return { className: `arkyn_breadcrumb ${n}`.trim(), ...a };
|
1466
1469
|
}
|
1467
|
-
function Jn(
|
1468
|
-
const { pathname:
|
1470
|
+
function Jn(e) {
|
1471
|
+
const { pathname: n } = cn(), {
|
1469
1472
|
className: a = "",
|
1470
1473
|
disabled: s = !1,
|
1471
1474
|
to: l,
|
1472
1475
|
...u
|
1473
|
-
} =
|
1476
|
+
} = e, h = n === l ? "active" : "inactive", c = `arkyn_breadcrumb_link ${h} ${a}`;
|
1474
1477
|
return {
|
1475
1478
|
to: l,
|
1476
1479
|
className: c.trim(),
|
@@ -1478,32 +1481,32 @@ function Jn(n) {
|
|
1478
1481
|
...u
|
1479
1482
|
};
|
1480
1483
|
}
|
1481
|
-
function
|
1482
|
-
const { className:
|
1483
|
-
return /* @__PURE__ */ m.jsx("nav", { className:
|
1484
|
+
function ia(e) {
|
1485
|
+
const { className: n, ...a } = qn(e);
|
1486
|
+
return /* @__PURE__ */ m.jsx("nav", { className: n, ...a });
|
1484
1487
|
}
|
1485
|
-
function
|
1486
|
-
const { children:
|
1488
|
+
function la(e) {
|
1489
|
+
const { children: n, className: a, disabled: s, ...l } = Jn(e);
|
1487
1490
|
return s ? /* @__PURE__ */ m.jsxs("p", { className: a, children: [
|
1488
|
-
/* @__PURE__ */ m.jsx(
|
1489
|
-
|
1491
|
+
/* @__PURE__ */ m.jsx(Yt, { size: 14, strokeWidth: 2.5 }),
|
1492
|
+
n
|
1490
1493
|
] }) : /* @__PURE__ */ m.jsxs(Nn, { className: a, ...l, children: [
|
1491
|
-
/* @__PURE__ */ m.jsx(
|
1492
|
-
|
1494
|
+
/* @__PURE__ */ m.jsx(Yt, { size: 14, strokeWidth: 2.5 }),
|
1495
|
+
n
|
1493
1496
|
] });
|
1494
1497
|
}
|
1495
|
-
const
|
1496
|
-
function Zn(
|
1498
|
+
const pn = Ct({});
|
1499
|
+
function Zn(e) {
|
1497
1500
|
const {
|
1498
|
-
isVisibled:
|
1501
|
+
isVisibled: n,
|
1499
1502
|
makeInvisible: a,
|
1500
1503
|
children: s,
|
1501
1504
|
className: l = "",
|
1502
1505
|
...u
|
1503
|
-
} =
|
1504
|
-
return /* @__PURE__ */ m.jsx(
|
1506
|
+
} = e, c = `arkyn_modal_container ${n ? "visible" : ""} ${l}`;
|
1507
|
+
return /* @__PURE__ */ m.jsx(pn.Provider, { value: { makeInvisible: a }, children: /* @__PURE__ */ m.jsx(Cn, { children: n && /* @__PURE__ */ m.jsxs("aside", { className: c.trim(), ...u, children: [
|
1505
1508
|
/* @__PURE__ */ m.jsx(
|
1506
|
-
|
1509
|
+
Vt.div,
|
1507
1510
|
{
|
1508
1511
|
className: "overlay",
|
1509
1512
|
transition: { duration: 0.15, ease: "easeOut" },
|
@@ -1514,7 +1517,7 @@ function Zn(n) {
|
|
1514
1517
|
}
|
1515
1518
|
),
|
1516
1519
|
/* @__PURE__ */ m.jsx(
|
1517
|
-
|
1520
|
+
Vt.div,
|
1518
1521
|
{
|
1519
1522
|
className: "content",
|
1520
1523
|
transition: { duration: 0.15, ease: "easeOut" },
|
@@ -1526,27 +1529,27 @@ function Zn(n) {
|
|
1526
1529
|
)
|
1527
1530
|
] }) }) });
|
1528
1531
|
}
|
1529
|
-
function Qn(
|
1530
|
-
const { alignment:
|
1532
|
+
function Qn(e) {
|
1533
|
+
const { alignment: n = "right", className: a, ...s } = e, l = `arkyn_modal_footer ${n} ${a}`;
|
1531
1534
|
return /* @__PURE__ */ m.jsx("footer", { className: l.trim(), ...s });
|
1532
1535
|
}
|
1533
|
-
function er(
|
1534
|
-
const { showCloseButton:
|
1536
|
+
function er(e) {
|
1537
|
+
const { showCloseButton: n, className: a, children: s, ...l } = e, { makeInvisible: u } = gt(pn), c = `arkyn_modal_header ${n ? "show-close" : ""} ${a}`;
|
1535
1538
|
return /* @__PURE__ */ m.jsxs("header", { className: c.trim(), ...l, children: [
|
1536
1539
|
s,
|
1537
1540
|
/* @__PURE__ */ m.jsx("button", { type: "button", onClick: u, children: /* @__PURE__ */ m.jsx(_n, { size: 24 }) })
|
1538
1541
|
] });
|
1539
1542
|
}
|
1540
|
-
const
|
1541
|
-
function
|
1543
|
+
const ca = { Container: Zn, Header: er, Footer: Qn };
|
1544
|
+
function ua(e) {
|
1542
1545
|
const {
|
1543
|
-
text:
|
1546
|
+
text: n,
|
1544
1547
|
size: a = "lg",
|
1545
1548
|
children: s,
|
1546
1549
|
orientation: l = "top",
|
1547
1550
|
className: u,
|
1548
1551
|
...h
|
1549
|
-
} =
|
1552
|
+
} = e;
|
1550
1553
|
return /* @__PURE__ */ m.jsxs(
|
1551
1554
|
"div",
|
1552
1555
|
{
|
@@ -1554,36 +1557,44 @@ function ca(n) {
|
|
1554
1557
|
...h,
|
1555
1558
|
children: [
|
1556
1559
|
s,
|
1557
|
-
/* @__PURE__ */ m.jsx("div", { className: "arkyn_tooltip_text", children:
|
1560
|
+
/* @__PURE__ */ m.jsx("div", { className: "arkyn_tooltip_text", children: n })
|
1558
1561
|
]
|
1559
1562
|
}
|
1560
1563
|
);
|
1561
1564
|
}
|
1562
|
-
const Wt = Ct({});
|
1563
|
-
function
|
1564
|
-
const
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
}, [n]);
|
1565
|
+
const Wt = Ct({}), hn = Ct({});
|
1566
|
+
function tr() {
|
1567
|
+
const e = gt(hn);
|
1568
|
+
if (Object.entries(e).length === 0)
|
1569
|
+
throw new Error("useToast must be used within a Provider");
|
1570
|
+
return e;
|
1569
1571
|
}
|
1570
|
-
function da(
|
1571
|
-
const
|
1572
|
-
|
1572
|
+
function da() {
|
1573
|
+
const e = ln(), { closeModal: n } = gt(Wt), { successToast: a, errorToast: s } = tr();
|
1574
|
+
Ht(() => {
|
1575
|
+
const l = e == null ? void 0 : e.closeModalKey;
|
1576
|
+
l && n(l);
|
1577
|
+
}, [e]), Ht(() => {
|
1578
|
+
typeof (e == null ? void 0 : e.message) == "string" && typeof (e == null ? void 0 : e.success) == "boolean" && (e != null && e.success ? a(e == null ? void 0 : e.message) : s(e == null ? void 0 : e.message));
|
1579
|
+
}, [e]);
|
1580
|
+
}
|
1581
|
+
function fa(e) {
|
1582
|
+
const n = gt(Wt);
|
1583
|
+
if (Object.entries(n).length === 0)
|
1573
1584
|
throw new Error("useModal must be used within a Provider");
|
1574
|
-
if (
|
1585
|
+
if (e) {
|
1575
1586
|
const {
|
1576
1587
|
modalData: a,
|
1577
1588
|
modalIsOpen: s,
|
1578
1589
|
openModal: l,
|
1579
1590
|
closeModal: u
|
1580
|
-
} =
|
1581
|
-
return { modalIsOpen: h, modalData: c, openModal: (y) => l(
|
1591
|
+
} = n, h = s(e), c = a(e);
|
1592
|
+
return { modalIsOpen: h, modalData: c, openModal: (y) => l(e, y == null ? void 0 : y.data), closeModal: () => u(e) };
|
1582
1593
|
} else
|
1583
|
-
return
|
1594
|
+
return n;
|
1584
1595
|
}
|
1585
|
-
function
|
1586
|
-
const
|
1596
|
+
function ma(e = "") {
|
1597
|
+
const n = cn(), a = new URLSearchParams(n.search), s = e ? `${e}:` : "", l = (u) => {
|
1587
1598
|
Object.entries(u).forEach(([h, c]) => {
|
1588
1599
|
c === void 0 ? a.delete(`${s}${h}`) : a.set(`${s}${h}`, String(c));
|
1589
1600
|
});
|
@@ -1597,15 +1608,8 @@ function fa(n = "") {
|
|
1597
1608
|
}
|
1598
1609
|
};
|
1599
1610
|
}
|
1600
|
-
|
1601
|
-
|
1602
|
-
const n = gt(pn);
|
1603
|
-
if (Object.entries(n).length === 0)
|
1604
|
-
throw new Error("useToast must be used within a Provider");
|
1605
|
-
return n;
|
1606
|
-
}
|
1607
|
-
function pa(n) {
|
1608
|
-
const { children: t = !1 } = n, [a, s] = De([]);
|
1611
|
+
function pa(e) {
|
1612
|
+
const { children: n = !1 } = e, [a, s] = Me([]);
|
1609
1613
|
function l(p) {
|
1610
1614
|
return !!a.some((o) => o.key === p);
|
1611
1615
|
}
|
@@ -1624,89 +1628,89 @@ function pa(n) {
|
|
1624
1628
|
Wt.Provider,
|
1625
1629
|
{
|
1626
1630
|
value: { modalIsOpen: l, modalData: u, openModal: h, closeModal: c },
|
1627
|
-
children:
|
1631
|
+
children: n
|
1628
1632
|
}
|
1629
1633
|
);
|
1630
1634
|
}
|
1631
|
-
var { entries:
|
1632
|
-
xe || (xe = function(
|
1633
|
-
return
|
1635
|
+
var { entries: gn, setPrototypeOf: Jt, isFrozen: nr, getPrototypeOf: rr, getOwnPropertyDescriptor: ar } = Object, { freeze: xe, seal: Re, create: vn } = Object, { apply: zt, construct: $t } = typeof Reflect < "u" && Reflect;
|
1636
|
+
xe || (xe = function(e) {
|
1637
|
+
return e;
|
1634
1638
|
});
|
1635
|
-
Re || (Re = function(
|
1636
|
-
return
|
1639
|
+
Re || (Re = function(e) {
|
1640
|
+
return e;
|
1637
1641
|
});
|
1638
|
-
zt || (zt = function(
|
1639
|
-
return
|
1642
|
+
zt || (zt = function(e, n, a) {
|
1643
|
+
return e.apply(n, a);
|
1640
1644
|
});
|
1641
|
-
$t || ($t = function(
|
1642
|
-
return new
|
1645
|
+
$t || ($t = function(e, n) {
|
1646
|
+
return new e(...n);
|
1643
1647
|
});
|
1644
|
-
var wt = _e(Array.prototype.forEach),
|
1645
|
-
function _e(
|
1646
|
-
return function(
|
1648
|
+
var wt = _e(Array.prototype.forEach), Zt = _e(Array.prototype.pop), mt = _e(Array.prototype.push), Nt = _e(String.prototype.toLowerCase), Lt = _e(String.prototype.toString), Qt = _e(String.prototype.match), pt = _e(String.prototype.replace), or = _e(String.prototype.indexOf), sr = _e(String.prototype.trim), Pe = _e(Object.prototype.hasOwnProperty), Te = _e(RegExp.prototype.test), ht = ir(TypeError);
|
1649
|
+
function _e(e) {
|
1650
|
+
return function(n) {
|
1647
1651
|
for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
|
1648
1652
|
s[l - 1] = arguments[l];
|
1649
|
-
return zt(
|
1653
|
+
return zt(e, n, s);
|
1650
1654
|
};
|
1651
1655
|
}
|
1652
|
-
function
|
1656
|
+
function ir(e) {
|
1653
1657
|
return function() {
|
1654
|
-
for (var
|
1658
|
+
for (var n = arguments.length, a = new Array(n), s = 0; s < n; s++)
|
1655
1659
|
a[s] = arguments[s];
|
1656
|
-
return $t(
|
1660
|
+
return $t(e, a);
|
1657
1661
|
};
|
1658
1662
|
}
|
1659
|
-
function B(
|
1663
|
+
function B(e, n) {
|
1660
1664
|
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Nt;
|
1661
|
-
|
1662
|
-
let s =
|
1665
|
+
Jt && Jt(e, null);
|
1666
|
+
let s = n.length;
|
1663
1667
|
for (; s--; ) {
|
1664
|
-
let l =
|
1668
|
+
let l = n[s];
|
1665
1669
|
if (typeof l == "string") {
|
1666
1670
|
let u = a(l);
|
1667
|
-
u !== l && (
|
1671
|
+
u !== l && (nr(n) || (n[s] = u), l = u);
|
1668
1672
|
}
|
1669
|
-
|
1673
|
+
e[l] = !0;
|
1670
1674
|
}
|
1671
|
-
return
|
1675
|
+
return e;
|
1672
1676
|
}
|
1673
|
-
function
|
1674
|
-
for (let
|
1675
|
-
Pe(
|
1676
|
-
return
|
1677
|
+
function lr(e) {
|
1678
|
+
for (let n = 0; n < e.length; n++)
|
1679
|
+
Pe(e, n) || (e[n] = null);
|
1680
|
+
return e;
|
1677
1681
|
}
|
1678
|
-
function Ze(
|
1679
|
-
let
|
1680
|
-
for (let [a, s] of
|
1681
|
-
Pe(
|
1682
|
-
return
|
1682
|
+
function Ze(e) {
|
1683
|
+
let n = vn(null);
|
1684
|
+
for (let [a, s] of gn(e))
|
1685
|
+
Pe(e, a) && (Array.isArray(s) ? n[a] = lr(s) : s && typeof s == "object" && s.constructor === Object ? n[a] = Ze(s) : n[a] = s);
|
1686
|
+
return n;
|
1683
1687
|
}
|
1684
|
-
function Et(
|
1685
|
-
for (;
|
1686
|
-
let s =
|
1688
|
+
function Et(e, n) {
|
1689
|
+
for (; e !== null; ) {
|
1690
|
+
let s = ar(e, n);
|
1687
1691
|
if (s) {
|
1688
1692
|
if (s.get)
|
1689
1693
|
return _e(s.get);
|
1690
1694
|
if (typeof s.value == "function")
|
1691
1695
|
return _e(s.value);
|
1692
1696
|
}
|
1693
|
-
|
1697
|
+
e = rr(e);
|
1694
1698
|
}
|
1695
1699
|
function a() {
|
1696
1700
|
return null;
|
1697
1701
|
}
|
1698
1702
|
return a;
|
1699
1703
|
}
|
1700
|
-
var
|
1704
|
+
var en = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ot = xe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = xe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), cr = xe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jt = xe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ur = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), tn = xe(["#text"]), nn = xe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Mt = xe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), rn = xe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), St = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), dr = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), fr = Re(/<%[\w\W]*|[\w\W]*%>/gm), mr = Re(/\${[\w\W]*}/gm), pr = Re(/^data-[\-\w.\u00B7-\uFFFF]/), hr = Re(/^aria-[\-\w]+$/), yn = Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), gr = Re(/^(?:\w+script|data):/i), vr = Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), bn = Re(/^html$/i), yr = Re(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i), an = Object.freeze({ __proto__: null, MUSTACHE_EXPR: dr, ERB_EXPR: fr, TMPLIT_EXPR: mr, DATA_ATTR: pr, ARIA_ATTR: hr, IS_ALLOWED_URI: yn, IS_SCRIPT_OR_DATA: gr, ATTR_WHITESPACE: vr, DOCTYPE_NAME: bn, CUSTOM_ELEMENT: yr }), br = function() {
|
1701
1705
|
return typeof window > "u" ? null : window;
|
1702
|
-
},
|
1703
|
-
if (typeof
|
1706
|
+
}, xr = function(e, n) {
|
1707
|
+
if (typeof e != "object" || typeof e.createPolicy != "function")
|
1704
1708
|
return null;
|
1705
1709
|
let a = null, s = "data-tt-policy-suffix";
|
1706
|
-
|
1710
|
+
n && n.hasAttribute(s) && (a = n.getAttribute(s));
|
1707
1711
|
let l = "dompurify" + (a ? "#" + a : "");
|
1708
1712
|
try {
|
1709
|
-
return
|
1713
|
+
return e.createPolicy(l, { createHTML(u) {
|
1710
1714
|
return u;
|
1711
1715
|
}, createScriptURL(u) {
|
1712
1716
|
return u;
|
@@ -1715,343 +1719,343 @@ var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud
|
|
1715
1719
|
return console.warn("TrustedTypes policy " + l + " could not be created."), null;
|
1716
1720
|
}
|
1717
1721
|
};
|
1718
|
-
function
|
1719
|
-
let
|
1720
|
-
if (
|
1721
|
-
return
|
1722
|
-
let { document: a } =
|
1722
|
+
function xn() {
|
1723
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : br(), n = (t) => xn(t);
|
1724
|
+
if (n.version = "3.0.10", n.removed = [], !e || !e.document || e.document.nodeType !== 9)
|
1725
|
+
return n.isSupported = !1, n;
|
1726
|
+
let { document: a } = e, s = a, l = s.currentScript, { DocumentFragment: u, HTMLTemplateElement: h, Node: c, Element: p, NodeFilter: o, NamedNodeMap: y = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: _, DOMParser: N, trustedTypes: b } = e, P = p.prototype, A = Et(P, "cloneNode"), U = Et(P, "nextSibling"), w = Et(P, "childNodes"), E = Et(P, "parentNode");
|
1723
1727
|
if (typeof h == "function") {
|
1724
|
-
let
|
1725
|
-
|
1728
|
+
let t = a.createElement("template");
|
1729
|
+
t.content && t.content.ownerDocument && (a = t.content.ownerDocument);
|
1726
1730
|
}
|
1727
|
-
let L,
|
1728
|
-
|
1729
|
-
let { MUSTACHE_EXPR:
|
1730
|
-
return
|
1731
|
+
let L, W = "", { implementation: D, createNodeIterator: X, createDocumentFragment: ee, getElementsByTagName: V } = a, { importNode: re } = s, Y = {};
|
1732
|
+
n.isSupported = typeof gn == "function" && typeof E == "function" && D && D.createHTMLDocument !== void 0;
|
1733
|
+
let { MUSTACHE_EXPR: z, ERB_EXPR: ae, TMPLIT_EXPR: k, DATA_ATTR: R, ARIA_ATTR: $, IS_SCRIPT_OR_DATA: J, ATTR_WHITESPACE: ie, CUSTOM_ELEMENT: Z } = an, { IS_ALLOWED_URI: le } = an, G = null, F = B({}, [...en, ...Ot, ...Pt, ...jt, ...tn]), x = null, O = B({}, [...nn, ...Mt, ...rn, ...St]), j = Object.seal(vn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), te = null, K = null, ue = !0, de = !0, Ie = !1, we = !0, Ae = !1, pe = !1, Xe = !1, qe = !1, oe = !1, he = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = B({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, De = B({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = B({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", fe = "http://www.w3.org/1999/xhtml", ze = fe, Ye = !1, S = null, se = B({}, [Fe, Ce, fe], Lt), Q = null, Ee = ["application/xhtml+xml", "text/html"], ge = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(t) {
|
1734
|
+
return t instanceof RegExp || t instanceof Function;
|
1731
1735
|
}, tt = function() {
|
1732
|
-
let
|
1733
|
-
if (!(be && be ===
|
1734
|
-
if ((!
|
1735
|
-
if (typeof
|
1736
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1737
|
+
if (!(be && be === t)) {
|
1738
|
+
if ((!t || typeof t != "object") && (t = {}), t = Ze(t), Q = Ee.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? ge : t.PARSER_MEDIA_TYPE, ne = Q === "application/xhtml+xml" ? Lt : Nt, G = Pe(t, "ALLOWED_TAGS") ? B({}, t.ALLOWED_TAGS, ne) : F, x = Pe(t, "ALLOWED_ATTR") ? B({}, t.ALLOWED_ATTR, ne) : O, S = Pe(t, "ALLOWED_NAMESPACES") ? B({}, t.ALLOWED_NAMESPACES, Lt) : se, We = Pe(t, "ADD_URI_SAFE_ATTR") ? B(Ze(He), t.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(t, "ADD_DATA_URI_TAGS") ? B(Ze(De), t.ADD_DATA_URI_TAGS, ne) : De, Le = Pe(t, "FORBID_CONTENTS") ? B({}, t.FORBID_CONTENTS, ne) : ke, te = Pe(t, "FORBID_TAGS") ? B({}, t.FORBID_TAGS, ne) : {}, K = Pe(t, "FORBID_ATTR") ? B({}, t.FORBID_ATTR, ne) : {}, ye = Pe(t, "USE_PROFILES") ? t.USE_PROFILES : !1, ue = t.ALLOW_ARIA_ATTR !== !1, de = t.ALLOW_DATA_ATTR !== !1, Ie = t.ALLOW_UNKNOWN_PROTOCOLS || !1, we = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = t.SAFE_FOR_TEMPLATES || !1, pe = t.WHOLE_DOCUMENT || !1, oe = t.RETURN_DOM || !1, he = t.RETURN_DOM_FRAGMENT || !1, $e = t.RETURN_TRUSTED_TYPE || !1, qe = t.FORCE_BODY || !1, Je = t.SANITIZE_DOM !== !1, Ne = t.SANITIZE_NAMED_PROPS || !1, Be = t.KEEP_CONTENT !== !1, Se = t.IN_PLACE || !1, le = t.ALLOWED_URI_REGEXP || yn, ze = t.NAMESPACE || fe, j = t.CUSTOM_ELEMENT_HANDLING || {}, t.CUSTOM_ELEMENT_HANDLING && et(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = t.CUSTOM_ELEMENT_HANDLING.tagNameCheck), t.CUSTOM_ELEMENT_HANDLING && et(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), t.CUSTOM_ELEMENT_HANDLING && typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (de = !1), he && (oe = !0), ye && (G = B({}, tn), x = [], ye.html === !0 && (B(G, en), B(x, nn)), ye.svg === !0 && (B(G, Ot), B(x, Mt), B(x, St)), ye.svgFilters === !0 && (B(G, Pt), B(x, Mt), B(x, St)), ye.mathMl === !0 && (B(G, jt), B(x, rn), B(x, St))), t.ADD_TAGS && (G === F && (G = Ze(G)), B(G, t.ADD_TAGS, ne)), t.ADD_ATTR && (x === O && (x = Ze(x)), B(x, t.ADD_ATTR, ne)), t.ADD_URI_SAFE_ATTR && B(We, t.ADD_URI_SAFE_ATTR, ne), t.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), B(Le, t.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), pe && B(G, ["html", "head", "body"]), G.table && (B(G, ["tbody"]), delete te.tbody), t.TRUSTED_TYPES_POLICY) {
|
1739
|
+
if (typeof t.TRUSTED_TYPES_POLICY.createHTML != "function")
|
1736
1740
|
throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
1737
|
-
if (typeof
|
1741
|
+
if (typeof t.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
1738
1742
|
throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
1739
|
-
L =
|
1743
|
+
L = t.TRUSTED_TYPES_POLICY, W = L.createHTML("");
|
1740
1744
|
} else
|
1741
|
-
L === void 0 && (L =
|
1742
|
-
xe && xe(
|
1745
|
+
L === void 0 && (L = xr(b, l)), L !== null && typeof W == "string" && (W = L.createHTML(""));
|
1746
|
+
xe && xe(t), be = t;
|
1743
1747
|
}
|
1744
|
-
}, vt = B({}, ["mi", "mo", "mn", "ms", "mtext"]), it = B({}, ["foreignobject", "desc", "title", "annotation-xml"]), Rt = B({}, ["title", "style", "font", "a", "script"]), lt = B({}, [...Ot, ...Pt, ...
|
1745
|
-
let f = E(
|
1748
|
+
}, vt = B({}, ["mi", "mo", "mn", "ms", "mtext"]), it = B({}, ["foreignobject", "desc", "title", "annotation-xml"]), Rt = B({}, ["title", "style", "font", "a", "script"]), lt = B({}, [...Ot, ...Pt, ...cr]), ct = B({}, [...jt, ...ur]), It = function(t) {
|
1749
|
+
let f = E(t);
|
1746
1750
|
(!f || !f.tagName) && (f = { namespaceURI: ze, tagName: "template" });
|
1747
|
-
let i = Nt(
|
1748
|
-
return S[
|
1749
|
-
}, Ve = function(
|
1750
|
-
mt(
|
1751
|
+
let i = Nt(t.tagName), C = Nt(f.tagName);
|
1752
|
+
return S[t.namespaceURI] ? t.namespaceURI === Ce ? f.namespaceURI === fe ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (C === "annotation-xml" || vt[C]) : !!lt[i] : t.namespaceURI === Fe ? f.namespaceURI === fe ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[C] : !!ct[i] : t.namespaceURI === fe ? f.namespaceURI === Ce && !it[C] || f.namespaceURI === Fe && !vt[C] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Q === "application/xhtml+xml" && S[t.namespaceURI]) : !1;
|
1753
|
+
}, Ve = function(t) {
|
1754
|
+
mt(n.removed, { element: t });
|
1751
1755
|
try {
|
1752
|
-
|
1756
|
+
t.parentNode.removeChild(t);
|
1753
1757
|
} catch {
|
1754
|
-
|
1758
|
+
t.remove();
|
1755
1759
|
}
|
1756
|
-
}, nt = function(
|
1760
|
+
}, nt = function(t, f) {
|
1757
1761
|
try {
|
1758
|
-
mt(
|
1762
|
+
mt(n.removed, { attribute: f.getAttributeNode(t), from: f });
|
1759
1763
|
} catch {
|
1760
|
-
mt(
|
1764
|
+
mt(n.removed, { attribute: null, from: f });
|
1761
1765
|
}
|
1762
|
-
if (f.removeAttribute(
|
1763
|
-
if (oe ||
|
1766
|
+
if (f.removeAttribute(t), t === "is" && !x[t])
|
1767
|
+
if (oe || he)
|
1764
1768
|
try {
|
1765
1769
|
Ve(f);
|
1766
1770
|
} catch {
|
1767
1771
|
}
|
1768
1772
|
else
|
1769
1773
|
try {
|
1770
|
-
f.setAttribute(
|
1774
|
+
f.setAttribute(t, "");
|
1771
1775
|
} catch {
|
1772
1776
|
}
|
1773
|
-
}, ut = function(
|
1777
|
+
}, ut = function(t) {
|
1774
1778
|
let f = null, i = null;
|
1775
1779
|
if (qe)
|
1776
|
-
|
1780
|
+
t = "<remove></remove>" + t;
|
1777
1781
|
else {
|
1778
|
-
let I =
|
1782
|
+
let I = Qt(t, /^[\r\n\t ]+/);
|
1779
1783
|
i = I && I[0];
|
1780
1784
|
}
|
1781
|
-
|
1782
|
-
let
|
1783
|
-
if (ze ===
|
1785
|
+
Q === "application/xhtml+xml" && ze === fe && (t = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + t + "</body></html>");
|
1786
|
+
let C = L ? L.createHTML(t) : t;
|
1787
|
+
if (ze === fe)
|
1784
1788
|
try {
|
1785
|
-
f = new N().parseFromString(
|
1789
|
+
f = new N().parseFromString(C, Q);
|
1786
1790
|
} catch {
|
1787
1791
|
}
|
1788
1792
|
if (!f || !f.documentElement) {
|
1789
1793
|
f = D.createDocument(ze, "template", null);
|
1790
1794
|
try {
|
1791
|
-
f.documentElement.innerHTML = Ye ?
|
1795
|
+
f.documentElement.innerHTML = Ye ? W : C;
|
1792
1796
|
} catch {
|
1793
1797
|
}
|
1794
1798
|
}
|
1795
|
-
let
|
1796
|
-
return
|
1797
|
-
}, yt = function(
|
1798
|
-
return
|
1799
|
-
}, At = function(
|
1800
|
-
return
|
1801
|
-
}, bt = function(
|
1802
|
-
return typeof c == "function" &&
|
1803
|
-
}, Oe = function(
|
1804
|
-
|
1805
|
-
|
1799
|
+
let M = f.body || f.documentElement;
|
1800
|
+
return t && i && M.insertBefore(a.createTextNode(i), M.childNodes[0] || null), ze === fe ? V.call(f, pe ? "html" : "body")[0] : pe ? f.documentElement : M;
|
1801
|
+
}, yt = function(t) {
|
1802
|
+
return X.call(t.ownerDocument || t, t, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
|
1803
|
+
}, At = function(t) {
|
1804
|
+
return t instanceof _ && (typeof t.nodeName != "string" || typeof t.textContent != "string" || typeof t.removeChild != "function" || !(t.attributes instanceof y) || typeof t.removeAttribute != "function" || typeof t.setAttribute != "function" || typeof t.namespaceURI != "string" || typeof t.insertBefore != "function" || typeof t.hasChildNodes != "function");
|
1805
|
+
}, bt = function(t) {
|
1806
|
+
return typeof c == "function" && t instanceof c;
|
1807
|
+
}, Oe = function(t, f, i) {
|
1808
|
+
Y[t] && wt(Y[t], (C) => {
|
1809
|
+
C.call(n, f, i, be);
|
1806
1810
|
});
|
1807
|
-
}, r = function(
|
1811
|
+
}, r = function(t) {
|
1808
1812
|
let f = null;
|
1809
|
-
if (Oe("beforeSanitizeElements",
|
1810
|
-
return Ve(
|
1811
|
-
let i = ne(
|
1812
|
-
if (Oe("uponSanitizeElement",
|
1813
|
-
return Ve(
|
1813
|
+
if (Oe("beforeSanitizeElements", t, null), At(t))
|
1814
|
+
return Ve(t), !0;
|
1815
|
+
let i = ne(t.nodeName);
|
1816
|
+
if (Oe("uponSanitizeElement", t, { tagName: i, allowedTags: G }), t.hasChildNodes() && !bt(t.firstElementChild) && Te(/<[/\w]/g, t.innerHTML) && Te(/<[/\w]/g, t.textContent))
|
1817
|
+
return Ve(t), !0;
|
1814
1818
|
if (!G[i] || te[i]) {
|
1815
|
-
if (!te[i] && g(i) && (
|
1819
|
+
if (!te[i] && g(i) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i)))
|
1816
1820
|
return !1;
|
1817
1821
|
if (Be && !Le[i]) {
|
1818
|
-
let
|
1819
|
-
if (
|
1820
|
-
let I =
|
1822
|
+
let C = E(t) || t.parentNode, M = w(t) || t.childNodes;
|
1823
|
+
if (M && C) {
|
1824
|
+
let I = M.length;
|
1821
1825
|
for (let ce = I - 1; ce >= 0; --ce)
|
1822
|
-
|
1826
|
+
C.insertBefore(A(M[ce], !0), U(t));
|
1823
1827
|
}
|
1824
1828
|
}
|
1825
|
-
return Ve(
|
1829
|
+
return Ve(t), !0;
|
1826
1830
|
}
|
1827
|
-
return
|
1828
|
-
f = pt(f,
|
1829
|
-
}),
|
1830
|
-
}, d = function(
|
1831
|
+
return t instanceof p && !It(t) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, t.innerHTML) ? (Ve(t), !0) : (Ae && t.nodeType === 3 && (f = t.textContent, wt([z, ae, k], (C) => {
|
1832
|
+
f = pt(f, C, " ");
|
1833
|
+
}), t.textContent !== f && (mt(n.removed, { element: t.cloneNode() }), t.textContent = f)), Oe("afterSanitizeElements", t, null), !1);
|
1834
|
+
}, d = function(t, f, i) {
|
1831
1835
|
if (Je && (f === "id" || f === "name") && (i in a || i in st))
|
1832
1836
|
return !1;
|
1833
|
-
if (!(
|
1834
|
-
if (!x[f] ||
|
1835
|
-
if (!(g(
|
1837
|
+
if (!(de && !K[f] && Te(R, f)) && !(ue && Te($, f))) {
|
1838
|
+
if (!x[f] || K[f]) {
|
1839
|
+
if (!(g(t) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, t) || j.tagNameCheck instanceof Function && j.tagNameCheck(t)) && (j.attributeNameCheck instanceof RegExp && Te(j.attributeNameCheck, f) || j.attributeNameCheck instanceof Function && j.attributeNameCheck(f)) || f === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i))))
|
1836
1840
|
return !1;
|
1837
|
-
} else if (!We[f] && !Te(le, pt(i, ie, "")) && !((f === "src" || f === "xlink:href" || f === "href") &&
|
1841
|
+
} else if (!We[f] && !Te(le, pt(i, ie, "")) && !((f === "src" || f === "xlink:href" || f === "href") && t !== "script" && or(i, "data:") === 0 && Ue[t]) && !(Ie && !Te(J, pt(i, ie, ""))) && i)
|
1838
1842
|
return !1;
|
1839
1843
|
}
|
1840
1844
|
return !0;
|
1841
|
-
}, g = function(
|
1842
|
-
return
|
1843
|
-
}, T = function(
|
1844
|
-
Oe("beforeSanitizeAttributes",
|
1845
|
-
let { attributes: f } =
|
1845
|
+
}, g = function(t) {
|
1846
|
+
return t !== "annotation-xml" && Qt(t, Z);
|
1847
|
+
}, T = function(t) {
|
1848
|
+
Oe("beforeSanitizeAttributes", t, null);
|
1849
|
+
let { attributes: f } = t;
|
1846
1850
|
if (!f)
|
1847
1851
|
return;
|
1848
|
-
let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x },
|
1849
|
-
for (;
|
1850
|
-
let
|
1851
|
-
if (i.attrName =
|
1852
|
+
let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, C = f.length;
|
1853
|
+
for (; C--; ) {
|
1854
|
+
let M = f[C], { name: I, namespaceURI: ce, value: ve } = M, me = ne(I), q = I === "value" ? ve : sr(ve);
|
1855
|
+
if (i.attrName = me, i.attrValue = q, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", t, i), q = i.attrValue, i.forceKeepAttr || (nt(I, t), !i.keepAttr))
|
1852
1856
|
continue;
|
1853
|
-
if (!we && Te(/\/>/i,
|
1854
|
-
nt(I,
|
1857
|
+
if (!we && Te(/\/>/i, q)) {
|
1858
|
+
nt(I, t);
|
1855
1859
|
continue;
|
1856
1860
|
}
|
1857
|
-
Ae && wt([
|
1858
|
-
|
1861
|
+
Ae && wt([z, ae, k], (xt) => {
|
1862
|
+
q = pt(q, xt, " ");
|
1859
1863
|
});
|
1860
|
-
let rt = ne(
|
1861
|
-
if (d(rt,
|
1862
|
-
if (Ne && (
|
1863
|
-
switch (b.getAttributeType(rt,
|
1864
|
+
let rt = ne(t.nodeName);
|
1865
|
+
if (d(rt, me, q)) {
|
1866
|
+
if (Ne && (me === "id" || me === "name") && (nt(I, t), q = ot + q), L && typeof b == "object" && typeof b.getAttributeType == "function" && !ce)
|
1867
|
+
switch (b.getAttributeType(rt, me)) {
|
1864
1868
|
case "TrustedHTML": {
|
1865
|
-
|
1869
|
+
q = L.createHTML(q);
|
1866
1870
|
break;
|
1867
1871
|
}
|
1868
1872
|
case "TrustedScriptURL": {
|
1869
|
-
|
1873
|
+
q = L.createScriptURL(q);
|
1870
1874
|
break;
|
1871
1875
|
}
|
1872
1876
|
}
|
1873
1877
|
try {
|
1874
|
-
ce ?
|
1878
|
+
ce ? t.setAttributeNS(ce, I, q) : t.setAttribute(I, q), Zt(n.removed);
|
1875
1879
|
} catch {
|
1876
1880
|
}
|
1877
1881
|
}
|
1878
1882
|
}
|
1879
|
-
Oe("afterSanitizeAttributes",
|
1880
|
-
},
|
1881
|
-
let i = null,
|
1882
|
-
for (Oe("beforeSanitizeShadowDOM", f, null); i =
|
1883
|
-
Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof u &&
|
1883
|
+
Oe("afterSanitizeAttributes", t, null);
|
1884
|
+
}, H = function t(f) {
|
1885
|
+
let i = null, C = yt(f);
|
1886
|
+
for (Oe("beforeSanitizeShadowDOM", f, null); i = C.nextNode(); )
|
1887
|
+
Oe("uponSanitizeShadowNode", i, null), !r(i) && (i.content instanceof u && t(i.content), T(i));
|
1884
1888
|
Oe("afterSanitizeShadowDOM", f, null);
|
1885
1889
|
};
|
1886
|
-
return
|
1887
|
-
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null,
|
1888
|
-
if (Ye = !
|
1889
|
-
if (typeof
|
1890
|
-
if (
|
1890
|
+
return n.sanitize = function(t) {
|
1891
|
+
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, C = null, M = null, I = null;
|
1892
|
+
if (Ye = !t, Ye && (t = "<!-->"), typeof t != "string" && !bt(t))
|
1893
|
+
if (typeof t.toString == "function") {
|
1894
|
+
if (t = t.toString(), typeof t != "string")
|
1891
1895
|
throw ht("dirty is not a string, aborting");
|
1892
1896
|
} else
|
1893
1897
|
throw ht("toString is not a function");
|
1894
|
-
if (!
|
1895
|
-
return
|
1896
|
-
if (Xe || tt(f),
|
1897
|
-
if (
|
1898
|
-
let
|
1899
|
-
if (!G[
|
1898
|
+
if (!n.isSupported)
|
1899
|
+
return t;
|
1900
|
+
if (Xe || tt(f), n.removed = [], typeof t == "string" && (Se = !1), Se) {
|
1901
|
+
if (t.nodeName) {
|
1902
|
+
let me = ne(t.nodeName);
|
1903
|
+
if (!G[me] || te[me])
|
1900
1904
|
throw ht("root node is forbidden and cannot be sanitized in-place");
|
1901
1905
|
}
|
1902
|
-
} else if (
|
1903
|
-
i = ut("<!---->"),
|
1906
|
+
} else if (t instanceof c)
|
1907
|
+
i = ut("<!---->"), C = i.ownerDocument.importNode(t, !0), C.nodeType === 1 && C.nodeName === "BODY" || C.nodeName === "HTML" ? i = C : i.appendChild(C);
|
1904
1908
|
else {
|
1905
|
-
if (!oe && !Ae && !
|
1906
|
-
return L && $e ? L.createHTML(
|
1907
|
-
if (i = ut(
|
1908
|
-
return oe ? null : $e ?
|
1909
|
+
if (!oe && !Ae && !pe && t.indexOf("<") === -1)
|
1910
|
+
return L && $e ? L.createHTML(t) : t;
|
1911
|
+
if (i = ut(t), !i)
|
1912
|
+
return oe ? null : $e ? W : "";
|
1909
1913
|
}
|
1910
1914
|
i && qe && Ve(i.firstChild);
|
1911
|
-
let ce = yt(Se ?
|
1912
|
-
for (;
|
1913
|
-
r(
|
1915
|
+
let ce = yt(Se ? t : i);
|
1916
|
+
for (; M = ce.nextNode(); )
|
1917
|
+
r(M) || (M.content instanceof u && H(M.content), T(M));
|
1914
1918
|
if (Se)
|
1915
|
-
return
|
1919
|
+
return t;
|
1916
1920
|
if (oe) {
|
1917
|
-
if (
|
1918
|
-
for (I =
|
1921
|
+
if (he)
|
1922
|
+
for (I = ee.call(i.ownerDocument); i.firstChild; )
|
1919
1923
|
I.appendChild(i.firstChild);
|
1920
1924
|
else
|
1921
1925
|
I = i;
|
1922
1926
|
return (x.shadowroot || x.shadowrootmode) && (I = re.call(s, I, !0)), I;
|
1923
1927
|
}
|
1924
|
-
let
|
1925
|
-
return
|
1926
|
-
` +
|
1927
|
-
|
1928
|
-
}), L && $e ? L.createHTML(
|
1929
|
-
},
|
1930
|
-
let
|
1931
|
-
tt(
|
1932
|
-
},
|
1928
|
+
let ve = pe ? i.outerHTML : i.innerHTML;
|
1929
|
+
return pe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(bn, i.ownerDocument.doctype.name) && (ve = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
|
1930
|
+
` + ve), Ae && wt([z, ae, k], (me) => {
|
1931
|
+
ve = pt(ve, me, " ");
|
1932
|
+
}), L && $e ? L.createHTML(ve) : ve;
|
1933
|
+
}, n.setConfig = function() {
|
1934
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1935
|
+
tt(t), Xe = !0;
|
1936
|
+
}, n.clearConfig = function() {
|
1933
1937
|
be = null, Xe = !1;
|
1934
|
-
},
|
1938
|
+
}, n.isValidAttribute = function(t, f, i) {
|
1935
1939
|
be || tt({});
|
1936
|
-
let
|
1937
|
-
return d(
|
1938
|
-
},
|
1939
|
-
typeof f == "function" && (
|
1940
|
-
},
|
1941
|
-
if (
|
1942
|
-
return
|
1943
|
-
},
|
1944
|
-
|
1945
|
-
},
|
1946
|
-
|
1947
|
-
},
|
1940
|
+
let C = ne(t), M = ne(f);
|
1941
|
+
return d(C, M, i);
|
1942
|
+
}, n.addHook = function(t, f) {
|
1943
|
+
typeof f == "function" && (Y[t] = Y[t] || [], mt(Y[t], f));
|
1944
|
+
}, n.removeHook = function(t) {
|
1945
|
+
if (Y[t])
|
1946
|
+
return Zt(Y[t]);
|
1947
|
+
}, n.removeHooks = function(t) {
|
1948
|
+
Y[t] && (Y[t] = []);
|
1949
|
+
}, n.removeAllHooks = function() {
|
1950
|
+
Y = {};
|
1951
|
+
}, n;
|
1948
1952
|
}
|
1949
|
-
var
|
1950
|
-
switch (
|
1953
|
+
var wr = xn(), Er = (e) => {
|
1954
|
+
switch (e) {
|
1951
1955
|
case "success":
|
1952
|
-
return
|
1956
|
+
return _r;
|
1953
1957
|
case "info":
|
1954
|
-
return
|
1958
|
+
return kr;
|
1955
1959
|
case "warning":
|
1956
|
-
return
|
1960
|
+
return Nr;
|
1957
1961
|
case "error":
|
1958
|
-
return
|
1962
|
+
return Cr;
|
1959
1963
|
default:
|
1960
1964
|
return null;
|
1961
1965
|
}
|
1962
|
-
},
|
1963
|
-
let [
|
1966
|
+
}, Sr = Array(12).fill(0), Tr = ({ visible: e }) => v.createElement("div", { className: "sonner-loading-wrapper", "data-visible": e }, v.createElement("div", { className: "sonner-spinner" }, Sr.map((n, a) => v.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${a}` })))), _r = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), Nr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), kr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), Cr = v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, v.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Rr = () => {
|
1967
|
+
let [e, n] = v.useState(!1);
|
1964
1968
|
return v.useEffect(() => {
|
1965
1969
|
let a = () => {
|
1966
|
-
|
1970
|
+
n(document.hidden);
|
1967
1971
|
};
|
1968
1972
|
return document.addEventListener("visibilitychange", a), () => window.removeEventListener("visibilitychange", a);
|
1969
|
-
}, []),
|
1970
|
-
}, Ft = 1,
|
1973
|
+
}, []), e;
|
1974
|
+
}, Ft = 1, Ir = class {
|
1971
1975
|
constructor() {
|
1972
|
-
this.subscribe = (
|
1973
|
-
let
|
1974
|
-
this.subscribers.splice(
|
1975
|
-
}), this.publish = (
|
1976
|
-
this.subscribers.forEach((
|
1977
|
-
}, this.addToast = (
|
1978
|
-
this.publish(
|
1979
|
-
}, this.create = (
|
1980
|
-
var
|
1981
|
-
let { message: a, ...s } =
|
1982
|
-
return u ? this.toasts = this.toasts.map((c) => c.id === l ? (this.publish({ ...c, ...
|
1983
|
-
}, this.dismiss = (
|
1984
|
-
this.subscribers.forEach((a) => a({ id:
|
1985
|
-
}), this.subscribers.forEach((
|
1986
|
-
if (!
|
1976
|
+
this.subscribe = (e) => (this.subscribers.push(e), () => {
|
1977
|
+
let n = this.subscribers.indexOf(e);
|
1978
|
+
this.subscribers.splice(n, 1);
|
1979
|
+
}), this.publish = (e) => {
|
1980
|
+
this.subscribers.forEach((n) => n(e));
|
1981
|
+
}, this.addToast = (e) => {
|
1982
|
+
this.publish(e), this.toasts = [...this.toasts, e];
|
1983
|
+
}, this.create = (e) => {
|
1984
|
+
var n;
|
1985
|
+
let { message: a, ...s } = e, l = typeof (e == null ? void 0 : e.id) == "number" || ((n = e.id) == null ? void 0 : n.length) > 0 ? e.id : Ft++, u = this.toasts.find((c) => c.id === l), h = e.dismissible === void 0 ? !0 : e.dismissible;
|
1986
|
+
return u ? this.toasts = this.toasts.map((c) => c.id === l ? (this.publish({ ...c, ...e, id: l, title: a }), { ...c, ...e, id: l, dismissible: h, title: a }) : c) : this.addToast({ title: a, ...s, dismissible: h, id: l }), l;
|
1987
|
+
}, this.dismiss = (e) => (e || this.toasts.forEach((n) => {
|
1988
|
+
this.subscribers.forEach((a) => a({ id: n.id, dismiss: !0 }));
|
1989
|
+
}), this.subscribers.forEach((n) => n({ id: e, dismiss: !0 })), e), this.message = (e, n) => this.create({ ...n, message: e }), this.error = (e, n) => this.create({ ...n, message: e, type: "error" }), this.success = (e, n) => this.create({ ...n, type: "success", message: e }), this.info = (e, n) => this.create({ ...n, type: "info", message: e }), this.warning = (e, n) => this.create({ ...n, type: "warning", message: e }), this.loading = (e, n) => this.create({ ...n, type: "loading", message: e }), this.promise = (e, n) => {
|
1990
|
+
if (!n)
|
1987
1991
|
return;
|
1988
1992
|
let a;
|
1989
|
-
|
1990
|
-
let s =
|
1993
|
+
n.loading !== void 0 && (a = this.create({ ...n, promise: e, type: "loading", message: n.loading, description: typeof n.description != "function" ? n.description : void 0 }));
|
1994
|
+
let s = e instanceof Promise ? e : e(), l = a !== void 0;
|
1991
1995
|
return s.then((u) => {
|
1992
1996
|
if (u && typeof u.ok == "boolean" && !u.ok) {
|
1993
1997
|
l = !1;
|
1994
|
-
let h = typeof
|
1998
|
+
let h = typeof n.error == "function" ? n.error(`HTTP error! status: ${u.status}`) : n.error, c = typeof n.description == "function" ? n.description(`HTTP error! status: ${u.status}`) : n.description;
|
1995
1999
|
this.create({ id: a, type: "error", message: h, description: c });
|
1996
|
-
} else if (
|
2000
|
+
} else if (n.success !== void 0) {
|
1997
2001
|
l = !1;
|
1998
|
-
let h = typeof
|
2002
|
+
let h = typeof n.success == "function" ? n.success(u) : n.success, c = typeof n.description == "function" ? n.description(u) : n.description;
|
1999
2003
|
this.create({ id: a, type: "success", message: h, description: c });
|
2000
2004
|
}
|
2001
2005
|
}).catch((u) => {
|
2002
|
-
if (
|
2006
|
+
if (n.error !== void 0) {
|
2003
2007
|
l = !1;
|
2004
|
-
let h = typeof
|
2008
|
+
let h = typeof n.error == "function" ? n.error(u) : n.error, c = typeof n.description == "function" ? n.description(u) : n.description;
|
2005
2009
|
this.create({ id: a, type: "error", message: h, description: c });
|
2006
2010
|
}
|
2007
2011
|
}).finally(() => {
|
2008
2012
|
var u;
|
2009
|
-
l && (this.dismiss(a), a = void 0), (u =
|
2013
|
+
l && (this.dismiss(a), a = void 0), (u = n.finally) == null || u.call(n);
|
2010
2014
|
}), a;
|
2011
|
-
}, this.custom = (
|
2012
|
-
let a = (
|
2013
|
-
return this.create({ jsx:
|
2015
|
+
}, this.custom = (e, n) => {
|
2016
|
+
let a = (n == null ? void 0 : n.id) || Ft++;
|
2017
|
+
return this.create({ jsx: e(a), id: a, ...n }), a;
|
2014
2018
|
}, this.subscribers = [], this.toasts = [];
|
2015
2019
|
}
|
2016
|
-
}, je = new
|
2017
|
-
let a = (
|
2018
|
-
return je.addToast({ title:
|
2019
|
-
},
|
2020
|
-
function
|
2021
|
-
if (!
|
2020
|
+
}, je = new Ir(), Ar = (e, n) => {
|
2021
|
+
let a = (n == null ? void 0 : n.id) || Ft++;
|
2022
|
+
return je.addToast({ title: e, ...n, id: a }), a;
|
2023
|
+
}, Lr = Ar, Tt = Object.assign(Lr, { success: je.success, info: je.info, warning: je.warning, error: je.error, custom: je.custom, message: je.message, promise: je.promise, dismiss: je.dismiss, loading: je.loading });
|
2024
|
+
function Or(e, { insertAt: n } = {}) {
|
2025
|
+
if (!e || typeof document > "u")
|
2022
2026
|
return;
|
2023
2027
|
let a = document.head || document.getElementsByTagName("head")[0], s = document.createElement("style");
|
2024
|
-
s.type = "text/css",
|
2028
|
+
s.type = "text/css", n === "top" && a.firstChild ? a.insertBefore(s, a.firstChild) : a.appendChild(s), s.styleSheet ? s.styleSheet.cssText = e : s.appendChild(document.createTextNode(e));
|
2025
2029
|
}
|
2026
|
-
Lr(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
2030
|
+
Or(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
2027
2031
|
`);
|
2028
|
-
function _t(
|
2029
|
-
return
|
2032
|
+
function _t(e) {
|
2033
|
+
return e.label !== void 0 && typeof e.onClick == "function";
|
2030
2034
|
}
|
2031
|
-
var
|
2032
|
-
function
|
2033
|
-
return
|
2035
|
+
var Pr = 3, jr = "32px", Mr = 4e3, Dr = 356, zr = 14, $r = 20, Fr = 200;
|
2036
|
+
function Br(...e) {
|
2037
|
+
return e.filter(Boolean).join(" ");
|
2034
2038
|
}
|
2035
|
-
var
|
2036
|
-
var
|
2037
|
-
let { invert: p, toast: o, unstyled: y, interacting: _, setHeights: N, visibleToasts: b, heights:
|
2039
|
+
var Ur = (e) => {
|
2040
|
+
var n, a, s, l, u, h, c;
|
2041
|
+
let { invert: p, toast: o, unstyled: y, interacting: _, setHeights: N, visibleToasts: b, heights: P, index: A, toasts: U, expanded: w, removeToast: E, closeButton: L, style: W, cancelButtonStyle: D, actionButtonStyle: X, className: ee = "", descriptionClassName: V = "", duration: re, position: Y, gap: z, loadingIcon: ae, expandByDefault: k, classNames: R, icons: $, closeButtonAriaLabel: J = "Close toast", pauseWhenPageIsHidden: ie, cn: Z } = e, [le, G] = v.useState(!1), [F, x] = v.useState(!1), [O, j] = v.useState(!1), [te, K] = v.useState(!1), [ue, de] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), pe = v.useRef(null), Xe = A === 0, qe = A + 1 <= b, oe = o.type, he = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => P.findIndex((S) => S.toastId === o.id) || 0, [P, o.id]), ot = v.useMemo(() => {
|
2038
2042
|
var S;
|
2039
2043
|
return (S = o.closeButton) != null ? S : L;
|
2040
|
-
}, [o.closeButton, L]), Be = v.useMemo(() => o.duration || re ||
|
2041
|
-
ye.current = v.useMemo(() => Ne *
|
2044
|
+
}, [o.closeButton, L]), Be = v.useMemo(() => o.duration || re || Mr, [o.duration, re]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, De] = Y.split("-"), We = v.useMemo(() => P.reduce((S, se, Q) => Q >= Ne ? S : S + se.height, 0), [P, Ne]), He = Rr(), Fe = o.invert || p, Ce = oe === "loading";
|
2045
|
+
ye.current = v.useMemo(() => Ne * z + We, [Ne, We]), v.useEffect(() => {
|
2042
2046
|
G(!0);
|
2043
2047
|
}, []), v.useLayoutEffect(() => {
|
2044
2048
|
if (!le)
|
2045
2049
|
return;
|
2046
|
-
let S =
|
2050
|
+
let S = pe.current, se = S.style.height;
|
2047
2051
|
S.style.height = "auto";
|
2048
|
-
let
|
2049
|
-
S.style.height = se, we(
|
2052
|
+
let Q = S.getBoundingClientRect().height;
|
2053
|
+
S.style.height = se, we(Q), N((Ee) => Ee.find((ge) => ge.toastId === o.id) ? Ee.map((ge) => ge.toastId === o.id ? { ...ge, height: Q } : ge) : [{ toastId: o.id, height: Q, position: o.position }, ...Ee]);
|
2050
2054
|
}, [le, o.title, o.description, N, o.id]);
|
2051
|
-
let
|
2052
|
-
x(!0),
|
2055
|
+
let fe = v.useCallback(() => {
|
2056
|
+
x(!0), de(ye.current), N((S) => S.filter((se) => se.toastId !== o.id)), setTimeout(() => {
|
2053
2057
|
E(o);
|
2054
|
-
},
|
2058
|
+
}, Fr);
|
2055
2059
|
}, [o, E, N, ye]);
|
2056
2060
|
v.useEffect(() => {
|
2057
2061
|
if (o.promise && oe === "loading" || o.duration === 1 / 0 || o.type === "loading")
|
@@ -2059,114 +2063,114 @@ var Br = (n) => {
|
|
2059
2063
|
let S, se = Be;
|
2060
2064
|
return w || _ || ie && He ? (() => {
|
2061
2065
|
if (Le.current < Se.current) {
|
2062
|
-
let
|
2063
|
-
se = se -
|
2066
|
+
let Q = (/* @__PURE__ */ new Date()).getTime() - Se.current;
|
2067
|
+
se = se - Q;
|
2064
2068
|
}
|
2065
2069
|
Le.current = (/* @__PURE__ */ new Date()).getTime();
|
2066
2070
|
})() : se !== 1 / 0 && (Se.current = (/* @__PURE__ */ new Date()).getTime(), S = setTimeout(() => {
|
2067
|
-
var
|
2068
|
-
(
|
2071
|
+
var Q;
|
2072
|
+
(Q = o.onAutoClose) == null || Q.call(o, o), fe();
|
2069
2073
|
}, se)), () => clearTimeout(S);
|
2070
|
-
}, [w, _, k, o, Be,
|
2071
|
-
let S =
|
2074
|
+
}, [w, _, k, o, Be, fe, o.promise, oe, ie, He]), v.useEffect(() => {
|
2075
|
+
let S = pe.current;
|
2072
2076
|
if (S) {
|
2073
2077
|
let se = S.getBoundingClientRect().height;
|
2074
|
-
return we(se), N((
|
2078
|
+
return we(se), N((Q) => [{ toastId: o.id, height: se, position: o.position }, ...Q]), () => N((Q) => Q.filter((Ee) => Ee.toastId !== o.id));
|
2075
2079
|
}
|
2076
2080
|
}, [N, o.id]), v.useEffect(() => {
|
2077
|
-
o.delete &&
|
2078
|
-
}, [
|
2081
|
+
o.delete && fe();
|
2082
|
+
}, [fe, o.delete]);
|
2079
2083
|
function ze() {
|
2080
|
-
return
|
2084
|
+
return $ != null && $.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, $.loading) : ae ? v.createElement("div", { className: "sonner-loader", "data-visible": oe === "loading" }, ae) : v.createElement(Tr, { visible: oe === "loading" });
|
2081
2085
|
}
|
2082
2086
|
function Ye(S) {
|
2083
|
-
return { __html:
|
2087
|
+
return { __html: wr.sanitize(S) };
|
2084
2088
|
}
|
2085
|
-
return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref:
|
2086
|
-
Ce || !
|
2089
|
+
return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: pe, className: Z(ee, $e, R == null ? void 0 : R.toast, (n = o == null ? void 0 : o.classNames) == null ? void 0 : n.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[oe], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[oe]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": le, "data-promise": !!o.promise, "data-removed": F, "data-visible": qe, "data-y-position": Ue, "data-x-position": De, "data-index": A, "data-front": Xe, "data-swiping": O, "data-dismissible": he, "data-type": oe, "data-invert": Fe, "data-swipe-out": te, "data-expanded": !!(w || k && le), style: { "--index": A, "--toasts-before": A, "--z-index": U.length - A, "--offset": `${F ? ue : ye.current}px`, "--initial-height": k ? "auto" : `${Ie}px`, ...W, ...o.style }, onPointerDown: (S) => {
|
2090
|
+
Ce || !he || (Ae.current = /* @__PURE__ */ new Date(), de(ye.current), S.target.setPointerCapture(S.pointerId), S.target.tagName !== "BUTTON" && (j(!0), ke.current = { x: S.clientX, y: S.clientY }));
|
2087
2091
|
}, onPointerUp: () => {
|
2088
|
-
var S, se,
|
2089
|
-
if (te || !
|
2092
|
+
var S, se, Q, Ee;
|
2093
|
+
if (te || !he)
|
2090
2094
|
return;
|
2091
2095
|
ke.current = null;
|
2092
|
-
let
|
2093
|
-
if (Math.abs(
|
2094
|
-
|
2096
|
+
let ge = Number(((S = pe.current) == null ? void 0 : S.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ne = (/* @__PURE__ */ new Date()).getTime() - ((se = Ae.current) == null ? void 0 : se.getTime()), be = Math.abs(ge) / ne;
|
2097
|
+
if (Math.abs(ge) >= $r || be > 0.11) {
|
2098
|
+
de(ye.current), (Q = o.onDismiss) == null || Q.call(o, o), fe(), K(!0);
|
2095
2099
|
return;
|
2096
2100
|
}
|
2097
|
-
(Ee =
|
2101
|
+
(Ee = pe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), j(!1);
|
2098
2102
|
}, onPointerMove: (S) => {
|
2099
2103
|
var se;
|
2100
|
-
if (!ke.current || !
|
2104
|
+
if (!ke.current || !he)
|
2101
2105
|
return;
|
2102
|
-
let
|
2103
|
-
Math.abs(
|
2104
|
-
} }, ot && !o.jsx ? v.createElement("button", { "aria-label": J, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !
|
2106
|
+
let Q = S.clientY - ke.current.y, Ee = S.clientX - ke.current.x, ge = (Ue === "top" ? Math.min : Math.max)(0, Q), ne = S.pointerType === "touch" ? 10 : 2;
|
2107
|
+
Math.abs(ge) > ne ? (se = pe.current) == null || se.style.setProperty("--swipe-amount", `${Q}px`) : Math.abs(Ee) > ne && (ke.current = null);
|
2108
|
+
} }, ot && !o.jsx ? v.createElement("button", { "aria-label": J, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !he ? () => {
|
2105
2109
|
} : () => {
|
2106
2110
|
var S;
|
2107
|
-
|
2108
|
-
}, className:
|
2109
|
-
_t(o.cancel) &&
|
2110
|
-
}, className:
|
2111
|
-
_t(o.action) && (o.action.onClick(S), !S.defaultPrevented &&
|
2112
|
-
}, className:
|
2111
|
+
fe(), (S = o.onDismiss) == null || S.call(o, o);
|
2112
|
+
}, className: Z(R == null ? void 0 : R.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, oe || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: Z(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || ($ == null ? void 0 : $[oe]) || Er(oe) : null) : null, v.createElement("div", { "data-content": "", className: Z(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: Z(R == null ? void 0 : R.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: Z(V, Je, R == null ? void 0 : R.description, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || D, onClick: (S) => {
|
2113
|
+
_t(o.cancel) && he && (fe(), o.cancel.onClick(S));
|
2114
|
+
}, className: Z(R == null ? void 0 : R.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, v.isValidElement(o.action) ? o.action : o.action && _t(o.action) ? v.createElement("button", { "data-button": "", style: o.actionButtonStyle || X, onClick: (S) => {
|
2115
|
+
_t(o.action) && (o.action.onClick(S), !S.defaultPrevented && fe());
|
2116
|
+
}, className: Z(R == null ? void 0 : R.actionButton, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.actionButton) }, o.action.label) : null));
|
2113
2117
|
};
|
2114
|
-
function
|
2118
|
+
function on() {
|
2115
2119
|
if (typeof window > "u" || typeof document > "u")
|
2116
2120
|
return "ltr";
|
2117
|
-
let
|
2118
|
-
return
|
2121
|
+
let e = document.documentElement.getAttribute("dir");
|
2122
|
+
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
2119
2123
|
}
|
2120
|
-
var
|
2121
|
-
let { invert:
|
2122
|
-
return v.useEffect(() => je.subscribe((
|
2123
|
-
if (
|
2124
|
-
|
2124
|
+
var Wr = (e) => {
|
2125
|
+
let { invert: n, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: u, className: h, offset: c, theme: p = "light", richColors: o, duration: y, style: _, visibleToasts: N = Pr, toastOptions: b, dir: P = on(), gap: A = zr, loadingIcon: U, icons: w, containerAriaLabel: E = "Notifications", pauseWhenPageIsHidden: L, cn: W = Br } = e, [D, X] = v.useState([]), ee = v.useMemo(() => Array.from(new Set([a].concat(D.filter((F) => F.position).map((F) => F.position)))), [D, a]), [V, re] = v.useState([]), [Y, z] = v.useState(!1), [ae, k] = v.useState(!1), [R, $] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = v.useRef(null), ie = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), Z = v.useRef(null), le = v.useRef(!1), G = v.useCallback((F) => X((x) => x.filter(({ id: O }) => O !== F.id)), []);
|
2126
|
+
return v.useEffect(() => je.subscribe((F) => {
|
2127
|
+
if (F.dismiss) {
|
2128
|
+
X((x) => x.map((O) => O.id === F.id ? { ...O, delete: !0 } : O));
|
2125
2129
|
return;
|
2126
2130
|
}
|
2127
2131
|
setTimeout(() => {
|
2128
2132
|
Rn.flushSync(() => {
|
2129
|
-
|
2130
|
-
let
|
2131
|
-
return
|
2133
|
+
X((x) => {
|
2134
|
+
let O = x.findIndex((j) => j.id === F.id);
|
2135
|
+
return O !== -1 ? [...x.slice(0, O), { ...x[O], ...F }, ...x.slice(O + 1)] : [F, ...x];
|
2132
2136
|
});
|
2133
2137
|
});
|
2134
2138
|
});
|
2135
2139
|
}), []), v.useEffect(() => {
|
2136
2140
|
if (p !== "system") {
|
2137
|
-
|
2141
|
+
$(p);
|
2138
2142
|
return;
|
2139
2143
|
}
|
2140
|
-
p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ?
|
2141
|
-
F
|
2144
|
+
p === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? $("dark") : $("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: F }) => {
|
2145
|
+
$(F ? "dark" : "light");
|
2142
2146
|
});
|
2143
2147
|
}, [p]), v.useEffect(() => {
|
2144
|
-
D.length <= 1 &&
|
2148
|
+
D.length <= 1 && z(!1);
|
2145
2149
|
}, [D]), v.useEffect(() => {
|
2146
|
-
let
|
2147
|
-
var
|
2148
|
-
s.every((te) => x[te] || x.code === te) && (
|
2150
|
+
let F = (x) => {
|
2151
|
+
var O, j;
|
2152
|
+
s.every((te) => x[te] || x.code === te) && (z(!0), (O = J.current) == null || O.focus()), x.code === "Escape" && (document.activeElement === J.current || (j = J.current) != null && j.contains(document.activeElement)) && z(!1);
|
2149
2153
|
};
|
2150
|
-
return document.addEventListener("keydown",
|
2154
|
+
return document.addEventListener("keydown", F), () => document.removeEventListener("keydown", F);
|
2151
2155
|
}, [s]), v.useEffect(() => {
|
2152
2156
|
if (J.current)
|
2153
2157
|
return () => {
|
2154
|
-
|
2158
|
+
Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null, le.current = !1);
|
2155
2159
|
};
|
2156
|
-
}, [J.current]), D.length ? v.createElement("section", { "aria-label": `${E} ${ie}`, tabIndex: -1 },
|
2157
|
-
var
|
2158
|
-
let [
|
2159
|
-
return v.createElement("ol", { key:
|
2160
|
-
le.current && !
|
2161
|
-
}, onFocus: (
|
2162
|
-
|
2163
|
-
}, onMouseEnter: () =>
|
2164
|
-
ae ||
|
2165
|
-
}, onPointerDown: (
|
2166
|
-
|
2167
|
-
}, onPointerUp: () => k(!1) }, D.filter((
|
2168
|
-
var
|
2169
|
-
return v.createElement(
|
2160
|
+
}, [J.current]), D.length ? v.createElement("section", { "aria-label": `${E} ${ie}`, tabIndex: -1 }, ee.map((F, x) => {
|
2161
|
+
var O;
|
2162
|
+
let [j, te] = F.split("-");
|
2163
|
+
return v.createElement("ol", { key: F, dir: P === "auto" ? on() : P, tabIndex: -1, ref: J, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": j, "data-x-position": te, style: { "--front-toast-height": `${((O = V[0]) == null ? void 0 : O.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || jr, "--width": `${Dr}px`, "--gap": `${A}px`, ..._ }, onBlur: (K) => {
|
2164
|
+
le.current && !K.currentTarget.contains(K.relatedTarget) && (le.current = !1, Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null));
|
2165
|
+
}, onFocus: (K) => {
|
2166
|
+
K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || le.current || (le.current = !0, Z.current = K.relatedTarget);
|
2167
|
+
}, onMouseEnter: () => z(!0), onMouseMove: () => z(!0), onMouseLeave: () => {
|
2168
|
+
ae || z(!1);
|
2169
|
+
}, onPointerDown: (K) => {
|
2170
|
+
K.target instanceof HTMLElement && K.target.dataset.dismissible === "false" || k(!0);
|
2171
|
+
}, onPointerUp: () => k(!1) }, D.filter((K) => !K.position && x === 0 || K.position === F).map((K, ue) => {
|
2172
|
+
var de, Ie;
|
2173
|
+
return v.createElement(Ur, { key: K.id, icons: w, index: ue, toast: K, duration: (de = b == null ? void 0 : b.duration) != null ? de : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: n, visibleToasts: N, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : u, interacting: ae, position: F, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: D.filter((we) => we.position == K.position), heights: V.filter((we) => we.position == K.position), setHeights: re, expandByDefault: l, gap: A, loadingIcon: U, expanded: Y, pauseWhenPageIsHidden: L, cn: W });
|
2170
2174
|
}));
|
2171
2175
|
})) : null;
|
2172
2176
|
};
|
@@ -2175,8 +2179,8 @@ var Ur = (n) => {
|
|
2175
2179
|
dompurify/dist/purify.es.mjs:
|
2176
2180
|
(*! @license DOMPurify 3.0.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.10/LICENSE *)
|
2177
2181
|
*/
|
2178
|
-
function ha({ children:
|
2179
|
-
function
|
2182
|
+
function ha({ children: e }) {
|
2183
|
+
function n(u) {
|
2180
2184
|
Tt.success(u);
|
2181
2185
|
}
|
2182
2186
|
function a(u) {
|
@@ -2189,36 +2193,36 @@ function ha({ children: n }) {
|
|
2189
2193
|
Tt.warning(u);
|
2190
2194
|
}
|
2191
2195
|
return /* @__PURE__ */ m.jsxs(
|
2192
|
-
|
2196
|
+
hn.Provider,
|
2193
2197
|
{
|
2194
|
-
value: { errorToast: s, warningToast: l, successToast:
|
2198
|
+
value: { errorToast: s, warningToast: l, successToast: n, infoToast: a },
|
2195
2199
|
children: [
|
2196
|
-
/* @__PURE__ */ m.jsx(
|
2197
|
-
|
2200
|
+
/* @__PURE__ */ m.jsx(Wr, { richColors: !0 }),
|
2201
|
+
e
|
2198
2202
|
]
|
2199
2203
|
}
|
2200
2204
|
);
|
2201
2205
|
}
|
2202
2206
|
export {
|
2203
|
-
|
2204
|
-
|
2205
|
-
|
2206
|
-
|
2207
|
-
|
2208
|
-
|
2209
|
-
|
2210
|
-
|
2211
|
-
|
2212
|
-
|
2213
|
-
|
2214
|
-
|
2207
|
+
qr as Badge,
|
2208
|
+
ia as Breadcrumb,
|
2209
|
+
la as BreadcrumbLink,
|
2210
|
+
Qr as Button,
|
2211
|
+
ta as Checkbox,
|
2212
|
+
Jr as Divider,
|
2213
|
+
ea as FormController,
|
2214
|
+
na as FormError,
|
2215
|
+
ra as FormLabel,
|
2216
|
+
aa as IconButton,
|
2217
|
+
oa as Input,
|
2218
|
+
ca as Modal,
|
2215
2219
|
pa as ModalProvider,
|
2216
|
-
|
2217
|
-
|
2220
|
+
sa as Select,
|
2221
|
+
Zr as Skeleton,
|
2218
2222
|
ha as ToastProvider,
|
2219
|
-
|
2220
|
-
|
2221
|
-
|
2222
|
-
|
2223
|
-
|
2223
|
+
ua as Tooltip,
|
2224
|
+
da as useAutomation,
|
2225
|
+
fa as useModal,
|
2226
|
+
ma as useScopedParams,
|
2227
|
+
tr as useToast
|
2224
2228
|
};
|