@arkyn/components 1.3.12 → 1.3.14
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 +1300 -1644
- package/dist/bundle.umd.cjs +12 -17
- package/dist/components/Input/CpfCpnjInput/getConfig.d.ts +122 -123
- package/dist/components/Input/CpfCpnjInput/getConfig.d.ts.map +1 -1
- package/dist/components/Input/CurrencyInput/getConfig.d.ts +121 -122
- package/dist/components/Input/CurrencyInput/getConfig.d.ts.map +1 -1
- package/dist/components/Input/MaskInput/getConfig.d.ts +124 -125
- package/dist/components/Input/MaskInput/getConfig.d.ts.map +1 -1
- package/dist/components/Input/SimpleInput/getConfig.d.ts +124 -125
- package/dist/components/Input/SimpleInput/getConfig.d.ts.map +1 -1
- package/dist/components/Modal/Container/index.d.ts +0 -1
- package/dist/components/Modal/Container/index.d.ts.map +1 -1
- package/dist/components/Select/getConfig.d.ts +122 -123
- package/dist/components/Select/getConfig.d.ts.map +1 -1
- package/dist/config/buildBadgeConfig.d.ts +100 -101
- package/dist/config/buildBadgeConfig.d.ts.map +1 -1
- package/dist/config/buildBreadcrumLinkConfig.d.ts +107 -108
- package/dist/config/buildBreadcrumLinkConfig.d.ts.map +1 -1
- package/dist/config/buildBreadcrumbConfig.d.ts +101 -102
- package/dist/config/buildBreadcrumbConfig.d.ts.map +1 -1
- package/dist/config/buildButtonConfig.d.ts +109 -110
- package/dist/config/buildButtonConfig.d.ts.map +1 -1
- package/dist/config/buildFormLabelConfig.d.ts +103 -104
- package/dist/config/buildFormLabelConfig.d.ts.map +1 -1
- package/dist/context/ModalContext.d.ts +0 -1
- package/dist/context/ModalContext.d.ts.map +1 -1
- package/dist/context/ToastContext.d.ts +0 -1
- package/dist/context/ToastContext.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import
|
2
|
-
import { Loader2 as
|
3
|
-
import { useActionData as
|
4
|
-
import { InputMask as
|
5
|
-
import { AnimatePresence as
|
6
|
-
import
|
7
|
-
var
|
1
|
+
import f, { createContext as qe, useRef as $e, useId as At, useContext as Be, useState as pe, forwardRef as Wt, useEffect as mt } from "react";
|
2
|
+
import { Loader2 as je, Check as Et, ChevronDown as Vt, ChevronRight as pt, X as Yt } from "lucide-react";
|
3
|
+
import { useActionData as kt, useLocation as St, Link as Ut } from "@remix-run/react";
|
4
|
+
import { InputMask as Ht } from "@react-input/mask";
|
5
|
+
import { AnimatePresence as Kt, motion as gt } from "framer-motion";
|
6
|
+
import Jt from "react-dom";
|
7
|
+
var at = { exports: {} }, Le = {};
|
8
8
|
/**
|
9
9
|
* @license React
|
10
10
|
* react-jsx-runtime.production.min.js
|
@@ -14,25 +14,21 @@ var Dt = { 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
|
18
|
-
function
|
19
|
-
if (
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
for (
|
27
|
-
|
28
|
-
if (c && c.defaultProps)
|
29
|
-
for (y in p = c.defaultProps, p)
|
30
|
-
_[y] === void 0 && (_[y] = p[y]);
|
31
|
-
return { $$typeof: n, type: c, key: N, ref: b, props: _, _owner: l.current };
|
17
|
+
var vt;
|
18
|
+
function Xt() {
|
19
|
+
if (vt) return Le;
|
20
|
+
vt = 1;
|
21
|
+
var t = f, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, l = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
22
|
+
function h(s, d, p) {
|
23
|
+
var g, w = {}, a = null, v = null;
|
24
|
+
p !== void 0 && (a = "" + p), d.key !== void 0 && (a = "" + d.key), d.ref !== void 0 && (v = d.ref);
|
25
|
+
for (g in d) o.call(d, g) && !c.hasOwnProperty(g) && (w[g] = d[g]);
|
26
|
+
if (s && s.defaultProps) for (g in d = s.defaultProps, d) w[g] === void 0 && (w[g] = d[g]);
|
27
|
+
return { $$typeof: r, type: s, key: a, ref: v, props: w, _owner: l.current };
|
32
28
|
}
|
33
|
-
return
|
29
|
+
return Le.Fragment = n, Le.jsx = h, Le.jsxs = h, Le;
|
34
30
|
}
|
35
|
-
var
|
31
|
+
var Me = {};
|
36
32
|
/**
|
37
33
|
* @license React
|
38
34
|
* react-jsx-runtime.development.js
|
@@ -42,91 +38,91 @@ var ft = {};
|
|
42
38
|
* This source code is licensed under the MIT license found in the
|
43
39
|
* LICENSE file in the root directory of this source tree.
|
44
40
|
*/
|
45
|
-
var
|
46
|
-
function
|
47
|
-
return
|
48
|
-
var
|
49
|
-
function
|
50
|
-
if (
|
41
|
+
var bt;
|
42
|
+
function qt() {
|
43
|
+
return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
|
44
|
+
var t = f, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), s = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), a = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), I = Symbol.iterator, j = "@@iterator";
|
45
|
+
function P(e) {
|
46
|
+
if (e === null || typeof e != "object")
|
51
47
|
return null;
|
52
|
-
var
|
53
|
-
return typeof
|
48
|
+
var i = I && e[I] || e[j];
|
49
|
+
return typeof i == "function" ? i : null;
|
54
50
|
}
|
55
|
-
var
|
56
|
-
function
|
51
|
+
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
52
|
+
function y(e) {
|
57
53
|
{
|
58
|
-
for (var
|
59
|
-
|
60
|
-
|
54
|
+
for (var i = arguments.length, m = new Array(i > 1 ? i - 1 : 0), x = 1; x < i; x++)
|
55
|
+
m[x - 1] = arguments[x];
|
56
|
+
H("error", e, m);
|
61
57
|
}
|
62
58
|
}
|
63
|
-
function
|
59
|
+
function H(e, i, m) {
|
64
60
|
{
|
65
|
-
var
|
66
|
-
|
67
|
-
var
|
68
|
-
return String(
|
61
|
+
var x = b.ReactDebugCurrentFrame, F = x.getStackAddendum();
|
62
|
+
F !== "" && (i += "%s", m = m.concat([F]));
|
63
|
+
var V = m.map(function($) {
|
64
|
+
return String($);
|
69
65
|
});
|
70
|
-
|
66
|
+
V.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, V);
|
71
67
|
}
|
72
68
|
}
|
73
|
-
var
|
74
|
-
|
75
|
-
function
|
76
|
-
return !!(typeof
|
69
|
+
var L = !1, R = !1, A = !1, U = !1, M = !1, J;
|
70
|
+
J = Symbol.for("react.module.reference");
|
71
|
+
function X(e) {
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === c || M || e === l || e === p || e === g || U || e === v || L || R || A || typeof e == "object" && e !== null && (e.$$typeof === a || e.$$typeof === w || e.$$typeof === h || e.$$typeof === s || e.$$typeof === d || // This needs to include all possible module reference object
|
77
73
|
// types supported by any Flight configuration anywhere since
|
78
74
|
// we don't know which Flight build this will end up being used
|
79
75
|
// with.
|
80
|
-
|
76
|
+
e.$$typeof === J || e.getModuleId !== void 0));
|
81
77
|
}
|
82
|
-
function
|
83
|
-
var
|
84
|
-
if (
|
85
|
-
return
|
86
|
-
var
|
87
|
-
return
|
78
|
+
function O(e, i, m) {
|
79
|
+
var x = e.displayName;
|
80
|
+
if (x)
|
81
|
+
return x;
|
82
|
+
var F = i.displayName || i.name || "";
|
83
|
+
return F !== "" ? m + "(" + F + ")" : m;
|
88
84
|
}
|
89
|
-
function
|
90
|
-
return
|
85
|
+
function G(e) {
|
86
|
+
return e.displayName || "Context";
|
91
87
|
}
|
92
|
-
function
|
93
|
-
if (
|
88
|
+
function C(e) {
|
89
|
+
if (e == null)
|
94
90
|
return null;
|
95
|
-
if (typeof
|
96
|
-
return
|
97
|
-
if (typeof
|
98
|
-
return
|
99
|
-
switch (
|
100
|
-
case
|
91
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
92
|
+
return e.displayName || e.name || null;
|
93
|
+
if (typeof e == "string")
|
94
|
+
return e;
|
95
|
+
switch (e) {
|
96
|
+
case o:
|
101
97
|
return "Fragment";
|
102
|
-
case
|
98
|
+
case n:
|
103
99
|
return "Portal";
|
104
|
-
case
|
100
|
+
case c:
|
105
101
|
return "Profiler";
|
106
102
|
case l:
|
107
103
|
return "StrictMode";
|
108
|
-
case
|
104
|
+
case p:
|
109
105
|
return "Suspense";
|
110
|
-
case
|
106
|
+
case g:
|
111
107
|
return "SuspenseList";
|
112
108
|
}
|
113
|
-
if (typeof
|
114
|
-
switch (
|
115
|
-
case
|
116
|
-
var
|
117
|
-
return
|
109
|
+
if (typeof e == "object")
|
110
|
+
switch (e.$$typeof) {
|
111
|
+
case s:
|
112
|
+
var i = e;
|
113
|
+
return G(i) + ".Consumer";
|
118
114
|
case h:
|
119
|
-
var
|
120
|
-
return
|
121
|
-
case
|
122
|
-
return
|
123
|
-
case
|
124
|
-
var
|
125
|
-
return
|
126
|
-
case
|
127
|
-
var
|
115
|
+
var m = e;
|
116
|
+
return G(m._context) + ".Provider";
|
117
|
+
case d:
|
118
|
+
return O(e, e.render, "ForwardRef");
|
119
|
+
case w:
|
120
|
+
var x = e.displayName || null;
|
121
|
+
return x !== null ? x : C(e.type) || "Memo";
|
122
|
+
case a: {
|
123
|
+
var F = e, V = F._payload, $ = F._init;
|
128
124
|
try {
|
129
|
-
return
|
125
|
+
return C($(V));
|
130
126
|
} catch {
|
131
127
|
return null;
|
132
128
|
}
|
@@ -134,2095 +130,1755 @@ function An() {
|
|
134
130
|
}
|
135
131
|
return null;
|
136
132
|
}
|
137
|
-
var
|
138
|
-
function
|
133
|
+
var K = Object.assign, z = 0, W, Z, N, Q, de, _, S;
|
134
|
+
function E() {
|
139
135
|
}
|
140
|
-
|
141
|
-
function
|
136
|
+
E.__reactDisabledLog = !0;
|
137
|
+
function re() {
|
142
138
|
{
|
143
|
-
if (
|
144
|
-
|
145
|
-
var
|
139
|
+
if (z === 0) {
|
140
|
+
W = console.log, Z = console.info, N = console.warn, Q = console.error, de = console.group, _ = console.groupCollapsed, S = console.groupEnd;
|
141
|
+
var e = {
|
146
142
|
configurable: !0,
|
147
143
|
enumerable: !0,
|
148
|
-
value:
|
144
|
+
value: E,
|
149
145
|
writable: !0
|
150
146
|
};
|
151
147
|
Object.defineProperties(console, {
|
152
|
-
info:
|
153
|
-
log:
|
154
|
-
warn:
|
155
|
-
error:
|
156
|
-
group:
|
157
|
-
groupCollapsed:
|
158
|
-
groupEnd:
|
148
|
+
info: e,
|
149
|
+
log: e,
|
150
|
+
warn: e,
|
151
|
+
error: e,
|
152
|
+
group: e,
|
153
|
+
groupCollapsed: e,
|
154
|
+
groupEnd: e
|
159
155
|
});
|
160
156
|
}
|
161
|
-
|
157
|
+
z++;
|
162
158
|
}
|
163
159
|
}
|
164
|
-
function
|
160
|
+
function ee() {
|
165
161
|
{
|
166
|
-
if (
|
167
|
-
var
|
162
|
+
if (z--, z === 0) {
|
163
|
+
var e = {
|
168
164
|
configurable: !0,
|
169
165
|
enumerable: !0,
|
170
166
|
writable: !0
|
171
167
|
};
|
172
168
|
Object.defineProperties(console, {
|
173
|
-
log:
|
174
|
-
value:
|
175
|
-
}),
|
176
|
-
info: R({}, r, {
|
177
|
-
value: ie
|
169
|
+
log: K({}, e, {
|
170
|
+
value: W
|
178
171
|
}),
|
179
|
-
|
172
|
+
info: K({}, e, {
|
180
173
|
value: Z
|
181
174
|
}),
|
182
|
-
|
183
|
-
value:
|
175
|
+
warn: K({}, e, {
|
176
|
+
value: N
|
184
177
|
}),
|
185
|
-
|
186
|
-
value:
|
178
|
+
error: K({}, e, {
|
179
|
+
value: Q
|
187
180
|
}),
|
188
|
-
|
189
|
-
value:
|
181
|
+
group: K({}, e, {
|
182
|
+
value: de
|
190
183
|
}),
|
191
|
-
|
192
|
-
value:
|
184
|
+
groupCollapsed: K({}, e, {
|
185
|
+
value: _
|
186
|
+
}),
|
187
|
+
groupEnd: K({}, e, {
|
188
|
+
value: S
|
193
189
|
})
|
194
190
|
});
|
195
191
|
}
|
196
|
-
|
192
|
+
z < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
197
193
|
}
|
198
194
|
}
|
199
|
-
var
|
200
|
-
function
|
195
|
+
var Y = b.ReactCurrentDispatcher, ne;
|
196
|
+
function oe(e, i, m) {
|
201
197
|
{
|
202
|
-
if (
|
198
|
+
if (ne === void 0)
|
203
199
|
try {
|
204
200
|
throw Error();
|
205
|
-
} catch (
|
206
|
-
var
|
207
|
-
|
201
|
+
} catch (F) {
|
202
|
+
var x = F.stack.trim().match(/\n( *(at )?)/);
|
203
|
+
ne = x && x[1] || "";
|
208
204
|
}
|
209
205
|
return `
|
210
|
-
` +
|
206
|
+
` + ne + e;
|
211
207
|
}
|
212
208
|
}
|
213
|
-
var
|
209
|
+
var be = !1, ge;
|
214
210
|
{
|
215
|
-
var
|
216
|
-
|
211
|
+
var Ge = typeof WeakMap == "function" ? WeakMap : Map;
|
212
|
+
ge = new Ge();
|
217
213
|
}
|
218
|
-
function
|
219
|
-
if (!
|
214
|
+
function Ne(e, i) {
|
215
|
+
if (!e || be)
|
220
216
|
return "";
|
221
217
|
{
|
222
|
-
var
|
223
|
-
if (
|
224
|
-
return
|
218
|
+
var m = ge.get(e);
|
219
|
+
if (m !== void 0)
|
220
|
+
return m;
|
225
221
|
}
|
226
|
-
var
|
227
|
-
|
228
|
-
var
|
222
|
+
var x;
|
223
|
+
be = !0;
|
224
|
+
var F = Error.prepareStackTrace;
|
229
225
|
Error.prepareStackTrace = void 0;
|
230
|
-
var
|
231
|
-
|
226
|
+
var V;
|
227
|
+
V = Y.current, Y.current = null, re();
|
232
228
|
try {
|
233
|
-
if (
|
234
|
-
var
|
229
|
+
if (i) {
|
230
|
+
var $ = function() {
|
235
231
|
throw Error();
|
236
232
|
};
|
237
|
-
if (Object.defineProperty(
|
233
|
+
if (Object.defineProperty($.prototype, "props", {
|
238
234
|
set: function() {
|
239
235
|
throw Error();
|
240
236
|
}
|
241
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
242
238
|
try {
|
243
|
-
Reflect.construct(
|
244
|
-
} catch (
|
245
|
-
|
239
|
+
Reflect.construct($, []);
|
240
|
+
} catch (ce) {
|
241
|
+
x = ce;
|
246
242
|
}
|
247
|
-
Reflect.construct(
|
243
|
+
Reflect.construct(e, [], $);
|
248
244
|
} else {
|
249
245
|
try {
|
250
|
-
|
251
|
-
} catch (
|
252
|
-
|
246
|
+
$.call();
|
247
|
+
} catch (ce) {
|
248
|
+
x = ce;
|
253
249
|
}
|
254
|
-
|
250
|
+
e.call($.prototype);
|
255
251
|
}
|
256
252
|
} else {
|
257
253
|
try {
|
258
254
|
throw Error();
|
259
|
-
} catch (
|
260
|
-
|
255
|
+
} catch (ce) {
|
256
|
+
x = ce;
|
261
257
|
}
|
262
|
-
|
258
|
+
e();
|
263
259
|
}
|
264
|
-
} catch (
|
265
|
-
if (
|
266
|
-
for (var
|
267
|
-
`),
|
268
|
-
`),
|
269
|
-
|
270
|
-
for (;
|
271
|
-
if (
|
272
|
-
if (
|
260
|
+
} catch (ce) {
|
261
|
+
if (ce && x && typeof ce.stack == "string") {
|
262
|
+
for (var T = ce.stack.split(`
|
263
|
+
`), ie = x.stack.split(`
|
264
|
+
`), q = T.length - 1, te = ie.length - 1; q >= 1 && te >= 0 && T[q] !== ie[te]; )
|
265
|
+
te--;
|
266
|
+
for (; q >= 1 && te >= 0; q--, te--)
|
267
|
+
if (T[q] !== ie[te]) {
|
268
|
+
if (q !== 1 || te !== 1)
|
273
269
|
do
|
274
|
-
if (
|
275
|
-
var
|
276
|
-
` +
|
277
|
-
return
|
270
|
+
if (q--, te--, te < 0 || T[q] !== ie[te]) {
|
271
|
+
var me = `
|
272
|
+
` + T[q].replace(" at new ", " at ");
|
273
|
+
return e.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", e.displayName)), typeof e == "function" && ge.set(e, me), me;
|
278
274
|
}
|
279
|
-
while (
|
275
|
+
while (q >= 1 && te >= 0);
|
280
276
|
break;
|
281
277
|
}
|
282
278
|
}
|
283
279
|
} finally {
|
284
|
-
|
280
|
+
be = !1, Y.current = V, ee(), Error.prepareStackTrace = F;
|
285
281
|
}
|
286
|
-
var
|
287
|
-
return typeof
|
282
|
+
var Te = e ? e.displayName || e.name : "", Ce = Te ? oe(Te) : "";
|
283
|
+
return typeof e == "function" && ge.set(e, Ce), Ce;
|
288
284
|
}
|
289
|
-
function
|
290
|
-
return
|
285
|
+
function Ze(e, i, m) {
|
286
|
+
return Ne(e, !1);
|
291
287
|
}
|
292
|
-
function
|
293
|
-
var
|
294
|
-
return !!(
|
288
|
+
function De(e) {
|
289
|
+
var i = e.prototype;
|
290
|
+
return !!(i && i.isReactComponent);
|
295
291
|
}
|
296
|
-
function
|
297
|
-
if (
|
292
|
+
function Se(e, i, m) {
|
293
|
+
if (e == null)
|
298
294
|
return "";
|
299
|
-
if (typeof
|
300
|
-
return
|
301
|
-
if (typeof
|
302
|
-
return
|
303
|
-
switch (
|
304
|
-
case
|
305
|
-
return
|
306
|
-
case
|
307
|
-
return
|
295
|
+
if (typeof e == "function")
|
296
|
+
return Ne(e, De(e));
|
297
|
+
if (typeof e == "string")
|
298
|
+
return oe(e);
|
299
|
+
switch (e) {
|
300
|
+
case p:
|
301
|
+
return oe("Suspense");
|
302
|
+
case g:
|
303
|
+
return oe("SuspenseList");
|
308
304
|
}
|
309
|
-
if (typeof
|
310
|
-
switch (
|
311
|
-
case
|
312
|
-
return
|
313
|
-
case
|
314
|
-
return
|
315
|
-
case
|
316
|
-
var
|
305
|
+
if (typeof e == "object")
|
306
|
+
switch (e.$$typeof) {
|
307
|
+
case d:
|
308
|
+
return Ze(e.render);
|
309
|
+
case w:
|
310
|
+
return Se(e.type, i, m);
|
311
|
+
case a: {
|
312
|
+
var x = e, F = x._payload, V = x._init;
|
317
313
|
try {
|
318
|
-
return
|
314
|
+
return Se(V(F), i, m);
|
319
315
|
} catch {
|
320
316
|
}
|
321
317
|
}
|
322
318
|
}
|
323
319
|
return "";
|
324
320
|
}
|
325
|
-
var
|
326
|
-
function
|
327
|
-
if (
|
328
|
-
var
|
329
|
-
|
321
|
+
var fe = Object.prototype.hasOwnProperty, Ae = {}, We = b.ReactDebugCurrentFrame;
|
322
|
+
function ae(e) {
|
323
|
+
if (e) {
|
324
|
+
var i = e._owner, m = Se(e.type, e._source, i ? i.type : null);
|
325
|
+
We.setExtraStackFrame(m);
|
330
326
|
} else
|
331
|
-
|
327
|
+
We.setExtraStackFrame(null);
|
332
328
|
}
|
333
|
-
function
|
329
|
+
function xe(e, i, m, x, F) {
|
334
330
|
{
|
335
|
-
var
|
336
|
-
for (var
|
337
|
-
if (
|
338
|
-
var
|
331
|
+
var V = Function.call.bind(fe);
|
332
|
+
for (var $ in e)
|
333
|
+
if (V(e, $)) {
|
334
|
+
var T = void 0;
|
339
335
|
try {
|
340
|
-
if (typeof
|
341
|
-
var
|
342
|
-
throw
|
336
|
+
if (typeof e[$] != "function") {
|
337
|
+
var ie = Error((x || "React class") + ": " + m + " type `" + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[$] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
338
|
+
throw ie.name = "Invariant Violation", ie;
|
343
339
|
}
|
344
|
-
|
345
|
-
} catch (
|
346
|
-
|
340
|
+
T = e[$](i, $, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
341
|
+
} catch (q) {
|
342
|
+
T = q;
|
347
343
|
}
|
348
|
-
|
344
|
+
T && !(T instanceof Error) && (ae(F), y("%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).", x || "React class", m, $, typeof T), ae(null)), T instanceof Error && !(T.message in Ae) && (Ae[T.message] = !0, ae(F), y("Failed %s type: %s", m, T.message), ae(null));
|
349
345
|
}
|
350
346
|
}
|
351
347
|
}
|
352
|
-
var
|
353
|
-
function
|
354
|
-
return
|
348
|
+
var Qe = Array.isArray;
|
349
|
+
function Ie(e) {
|
350
|
+
return Qe(e);
|
355
351
|
}
|
356
|
-
function
|
352
|
+
function Re(e) {
|
357
353
|
{
|
358
|
-
var
|
359
|
-
return
|
354
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, m = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
355
|
+
return m;
|
360
356
|
}
|
361
357
|
}
|
362
|
-
function
|
358
|
+
function et(e) {
|
363
359
|
try {
|
364
|
-
return
|
360
|
+
return Pe(e), !1;
|
365
361
|
} catch {
|
366
362
|
return !0;
|
367
363
|
}
|
368
364
|
}
|
369
|
-
function
|
370
|
-
return "" +
|
365
|
+
function Pe(e) {
|
366
|
+
return "" + e;
|
371
367
|
}
|
372
|
-
function
|
373
|
-
if (
|
374
|
-
return
|
368
|
+
function _e(e) {
|
369
|
+
if (et(e))
|
370
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Re(e)), Pe(e);
|
375
371
|
}
|
376
|
-
var
|
372
|
+
var he = b.ReactCurrentOwner, Ve = {
|
377
373
|
key: !0,
|
378
374
|
ref: !0,
|
379
375
|
__self: !0,
|
380
376
|
__source: !0
|
381
|
-
},
|
382
|
-
|
383
|
-
function
|
384
|
-
if (
|
385
|
-
var
|
386
|
-
if (
|
377
|
+
}, ye, Oe, ze;
|
378
|
+
ze = {};
|
379
|
+
function Ye(e) {
|
380
|
+
if (fe.call(e, "ref")) {
|
381
|
+
var i = Object.getOwnPropertyDescriptor(e, "ref").get;
|
382
|
+
if (i && i.isReactWarning)
|
387
383
|
return !1;
|
388
384
|
}
|
389
|
-
return
|
385
|
+
return e.ref !== void 0;
|
390
386
|
}
|
391
|
-
function
|
392
|
-
if (
|
393
|
-
var
|
394
|
-
if (
|
387
|
+
function Ue(e) {
|
388
|
+
if (fe.call(e, "key")) {
|
389
|
+
var i = Object.getOwnPropertyDescriptor(e, "key").get;
|
390
|
+
if (i && i.isReactWarning)
|
395
391
|
return !1;
|
396
392
|
}
|
397
|
-
return
|
393
|
+
return e.key !== void 0;
|
398
394
|
}
|
399
|
-
function
|
400
|
-
if (typeof
|
401
|
-
var
|
402
|
-
|
395
|
+
function tt(e, i) {
|
396
|
+
if (typeof e.ref == "string" && he.current && i && he.current.stateNode !== i) {
|
397
|
+
var m = C(he.current.type);
|
398
|
+
ze[m] || (y('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', C(he.current.type), e.ref), ze[m] = !0);
|
403
399
|
}
|
404
400
|
}
|
405
|
-
function
|
401
|
+
function Fe(e, i) {
|
406
402
|
{
|
407
|
-
var
|
408
|
-
|
403
|
+
var m = function() {
|
404
|
+
ye || (ye = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
409
405
|
};
|
410
|
-
|
411
|
-
get:
|
406
|
+
m.isReactWarning = !0, Object.defineProperty(e, "key", {
|
407
|
+
get: m,
|
412
408
|
configurable: !0
|
413
409
|
});
|
414
410
|
}
|
415
411
|
}
|
416
|
-
function
|
412
|
+
function ve(e, i) {
|
417
413
|
{
|
418
|
-
var
|
419
|
-
|
414
|
+
var m = function() {
|
415
|
+
Oe || (Oe = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
|
420
416
|
};
|
421
|
-
|
422
|
-
get:
|
417
|
+
m.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
418
|
+
get: m,
|
423
419
|
configurable: !0
|
424
420
|
});
|
425
421
|
}
|
426
422
|
}
|
427
|
-
var
|
428
|
-
var
|
423
|
+
var rt = function(e, i, m, x, F, V, $) {
|
424
|
+
var T = {
|
429
425
|
// This tag allows us to uniquely identify this as a React Element
|
430
|
-
$$typeof:
|
426
|
+
$$typeof: r,
|
431
427
|
// Built-in properties that belong on the element
|
432
|
-
type:
|
433
|
-
key:
|
434
|
-
ref:
|
435
|
-
props:
|
428
|
+
type: e,
|
429
|
+
key: i,
|
430
|
+
ref: m,
|
431
|
+
props: $,
|
436
432
|
// Record the component responsible for creating this element.
|
437
|
-
_owner:
|
433
|
+
_owner: V
|
438
434
|
};
|
439
|
-
return
|
435
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
440
436
|
configurable: !1,
|
441
437
|
enumerable: !1,
|
442
438
|
writable: !0,
|
443
439
|
value: !1
|
444
|
-
}), Object.defineProperty(
|
440
|
+
}), Object.defineProperty(T, "_self", {
|
445
441
|
configurable: !1,
|
446
442
|
enumerable: !1,
|
447
443
|
writable: !1,
|
448
|
-
value:
|
449
|
-
}), Object.defineProperty(
|
444
|
+
value: x
|
445
|
+
}), Object.defineProperty(T, "_source", {
|
450
446
|
configurable: !1,
|
451
447
|
enumerable: !1,
|
452
448
|
writable: !1,
|
453
|
-
value:
|
454
|
-
}), Object.freeze && (Object.freeze(
|
449
|
+
value: F
|
450
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
455
451
|
};
|
456
|
-
function
|
452
|
+
function k(e, i, m, x, F) {
|
457
453
|
{
|
458
|
-
var
|
459
|
-
|
460
|
-
for (
|
461
|
-
|
462
|
-
if (
|
463
|
-
var
|
464
|
-
for (
|
465
|
-
|
454
|
+
var V, $ = {}, T = null, ie = null;
|
455
|
+
m !== void 0 && (_e(m), T = "" + m), Ue(i) && (_e(i.key), T = "" + i.key), Ye(i) && (ie = i.ref, tt(i, F));
|
456
|
+
for (V in i)
|
457
|
+
fe.call(i, V) && !Ve.hasOwnProperty(V) && ($[V] = i[V]);
|
458
|
+
if (e && e.defaultProps) {
|
459
|
+
var q = e.defaultProps;
|
460
|
+
for (V in q)
|
461
|
+
$[V] === void 0 && ($[V] = q[V]);
|
466
462
|
}
|
467
|
-
if (
|
468
|
-
var
|
469
|
-
|
463
|
+
if (T || ie) {
|
464
|
+
var te = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
465
|
+
T && Fe($, te), ie && ve($, te);
|
470
466
|
}
|
471
|
-
return
|
467
|
+
return rt(e, T, ie, F, x, he.current, $);
|
472
468
|
}
|
473
469
|
}
|
474
|
-
var
|
475
|
-
function
|
476
|
-
if (
|
477
|
-
var
|
478
|
-
|
470
|
+
var B = b.ReactCurrentOwner, D = b.ReactDebugCurrentFrame;
|
471
|
+
function se(e) {
|
472
|
+
if (e) {
|
473
|
+
var i = e._owner, m = Se(e.type, e._source, i ? i.type : null);
|
474
|
+
D.setExtraStackFrame(m);
|
479
475
|
} else
|
480
|
-
|
476
|
+
D.setExtraStackFrame(null);
|
481
477
|
}
|
482
|
-
var
|
483
|
-
|
484
|
-
function
|
485
|
-
return typeof
|
478
|
+
var le;
|
479
|
+
le = !1;
|
480
|
+
function we(e) {
|
481
|
+
return typeof e == "object" && e !== null && e.$$typeof === r;
|
486
482
|
}
|
487
|
-
function
|
483
|
+
function He() {
|
488
484
|
{
|
489
|
-
if (
|
490
|
-
var
|
491
|
-
if (
|
485
|
+
if (B.current) {
|
486
|
+
var e = C(B.current.type);
|
487
|
+
if (e)
|
492
488
|
return `
|
493
489
|
|
494
|
-
Check the render method of \`` +
|
490
|
+
Check the render method of \`` + e + "`.";
|
495
491
|
}
|
496
492
|
return "";
|
497
493
|
}
|
498
494
|
}
|
499
|
-
function
|
495
|
+
function $t(e) {
|
500
496
|
{
|
501
|
-
if (
|
502
|
-
var
|
497
|
+
if (e !== void 0) {
|
498
|
+
var i = e.fileName.replace(/^.*[\\\/]/, ""), m = e.lineNumber;
|
503
499
|
return `
|
504
500
|
|
505
|
-
Check your code at ` +
|
501
|
+
Check your code at ` + i + ":" + m + ".";
|
506
502
|
}
|
507
503
|
return "";
|
508
504
|
}
|
509
505
|
}
|
510
|
-
var
|
511
|
-
function
|
506
|
+
var ct = {};
|
507
|
+
function It(e) {
|
512
508
|
{
|
513
|
-
var
|
514
|
-
if (!
|
515
|
-
var
|
516
|
-
|
509
|
+
var i = He();
|
510
|
+
if (!i) {
|
511
|
+
var m = typeof e == "string" ? e : e.displayName || e.name;
|
512
|
+
m && (i = `
|
517
513
|
|
518
|
-
Check the top-level render call using <` +
|
514
|
+
Check the top-level render call using <` + m + ">.");
|
519
515
|
}
|
520
|
-
return
|
516
|
+
return i;
|
521
517
|
}
|
522
518
|
}
|
523
|
-
function
|
519
|
+
function ut(e, i) {
|
524
520
|
{
|
525
|
-
if (!
|
521
|
+
if (!e._store || e._store.validated || e.key != null)
|
526
522
|
return;
|
527
|
-
|
528
|
-
var
|
529
|
-
if (
|
523
|
+
e._store.validated = !0;
|
524
|
+
var m = It(i);
|
525
|
+
if (ct[m])
|
530
526
|
return;
|
531
|
-
|
532
|
-
var
|
533
|
-
|
527
|
+
ct[m] = !0;
|
528
|
+
var x = "";
|
529
|
+
e && e._owner && e._owner !== B.current && (x = " It was passed a child from " + C(e._owner.type) + "."), se(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), se(null);
|
534
530
|
}
|
535
531
|
}
|
536
|
-
function
|
532
|
+
function dt(e, i) {
|
537
533
|
{
|
538
|
-
if (typeof
|
534
|
+
if (typeof e != "object")
|
539
535
|
return;
|
540
|
-
if (
|
541
|
-
for (var
|
542
|
-
var
|
543
|
-
|
536
|
+
if (Ie(e))
|
537
|
+
for (var m = 0; m < e.length; m++) {
|
538
|
+
var x = e[m];
|
539
|
+
we(x) && ut(x, i);
|
544
540
|
}
|
545
|
-
else if (
|
546
|
-
|
547
|
-
else if (
|
548
|
-
var
|
549
|
-
if (typeof
|
550
|
-
for (var
|
551
|
-
|
541
|
+
else if (we(e))
|
542
|
+
e._store && (e._store.validated = !0);
|
543
|
+
else if (e) {
|
544
|
+
var F = P(e);
|
545
|
+
if (typeof F == "function" && F !== e.entries)
|
546
|
+
for (var V = F.call(e), $; !($ = V.next()).done; )
|
547
|
+
we($.value) && ut($.value, i);
|
552
548
|
}
|
553
549
|
}
|
554
550
|
}
|
555
|
-
function
|
551
|
+
function Pt(e) {
|
556
552
|
{
|
557
|
-
var
|
558
|
-
if (
|
553
|
+
var i = e.type;
|
554
|
+
if (i == null || typeof i == "string")
|
559
555
|
return;
|
560
|
-
var
|
561
|
-
if (typeof
|
562
|
-
|
563
|
-
else if (typeof
|
556
|
+
var m;
|
557
|
+
if (typeof i == "function")
|
558
|
+
m = i.propTypes;
|
559
|
+
else if (typeof i == "object" && (i.$$typeof === d || // Note: Memo only checks outer props here.
|
564
560
|
// Inner props are checked in the reconciler.
|
565
|
-
|
566
|
-
|
561
|
+
i.$$typeof === w))
|
562
|
+
m = i.propTypes;
|
567
563
|
else
|
568
564
|
return;
|
569
|
-
if (
|
570
|
-
var
|
571
|
-
|
572
|
-
} else if (
|
573
|
-
|
574
|
-
var
|
575
|
-
|
565
|
+
if (m) {
|
566
|
+
var x = C(i);
|
567
|
+
xe(m, e.props, "prop", x, e);
|
568
|
+
} else if (i.PropTypes !== void 0 && !le) {
|
569
|
+
le = !0;
|
570
|
+
var F = C(i);
|
571
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown");
|
576
572
|
}
|
577
|
-
typeof
|
573
|
+
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
578
574
|
}
|
579
575
|
}
|
580
|
-
function
|
576
|
+
function Ot(e) {
|
581
577
|
{
|
582
|
-
for (var
|
583
|
-
var
|
584
|
-
if (
|
585
|
-
|
578
|
+
for (var i = Object.keys(e.props), m = 0; m < i.length; m++) {
|
579
|
+
var x = i[m];
|
580
|
+
if (x !== "children" && x !== "key") {
|
581
|
+
se(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), se(null);
|
586
582
|
break;
|
587
583
|
}
|
588
584
|
}
|
589
|
-
|
585
|
+
e.ref !== null && (se(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), se(null));
|
590
586
|
}
|
591
587
|
}
|
592
|
-
var
|
593
|
-
function
|
588
|
+
var ft = {};
|
589
|
+
function ht(e, i, m, x, F, V) {
|
594
590
|
{
|
595
|
-
var
|
596
|
-
if (
|
597
|
-
var
|
598
|
-
(
|
599
|
-
var
|
600
|
-
|
601
|
-
var
|
602
|
-
|
591
|
+
var $ = X(e);
|
592
|
+
if (!$) {
|
593
|
+
var T = "";
|
594
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
595
|
+
var ie = $t(F);
|
596
|
+
ie ? T += ie : T += He();
|
597
|
+
var q;
|
598
|
+
e === null ? q = "null" : Ie(e) ? q = "array" : e !== void 0 && e.$$typeof === r ? (q = "<" + (C(e.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : q = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, T);
|
603
599
|
}
|
604
|
-
var
|
605
|
-
if (
|
606
|
-
return
|
607
|
-
if (
|
608
|
-
var
|
609
|
-
if (
|
610
|
-
if (
|
611
|
-
if (
|
612
|
-
for (var
|
613
|
-
|
614
|
-
Object.freeze && Object.freeze(
|
600
|
+
var te = k(e, i, m, F, V);
|
601
|
+
if (te == null)
|
602
|
+
return te;
|
603
|
+
if ($) {
|
604
|
+
var me = i.children;
|
605
|
+
if (me !== void 0)
|
606
|
+
if (x)
|
607
|
+
if (Ie(me)) {
|
608
|
+
for (var Te = 0; Te < me.length; Te++)
|
609
|
+
dt(me[Te], e);
|
610
|
+
Object.freeze && Object.freeze(me);
|
615
611
|
} else
|
616
|
-
|
612
|
+
y("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
613
|
else
|
618
|
-
|
614
|
+
dt(me, e);
|
619
615
|
}
|
620
|
-
if (
|
621
|
-
var
|
622
|
-
return
|
623
|
-
}),
|
624
|
-
if (!
|
625
|
-
var
|
626
|
-
|
616
|
+
if (fe.call(i, "key")) {
|
617
|
+
var Ce = C(e), ce = Object.keys(i).filter(function(Dt) {
|
618
|
+
return Dt !== "key";
|
619
|
+
}), nt = ce.length > 0 ? "{key: someKey, " + ce.join(": ..., ") + ": ...}" : "{key: someKey}";
|
620
|
+
if (!ft[Ce + nt]) {
|
621
|
+
var Bt = ce.length > 0 ? "{" + ce.join(": ..., ") + ": ...}" : "{}";
|
622
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
627
623
|
let props = %s;
|
628
624
|
<%s {...props} />
|
629
625
|
React keys must be passed directly to JSX without using spread:
|
630
626
|
let props = %s;
|
631
|
-
<%s key={someKey} {...props} />`,
|
627
|
+
<%s key={someKey} {...props} />`, nt, Ce, Bt, Ce), ft[Ce + nt] = !0;
|
632
628
|
}
|
633
629
|
}
|
634
|
-
return
|
630
|
+
return e === o ? Ot(te) : Pt(te), te;
|
635
631
|
}
|
636
632
|
}
|
637
|
-
function
|
638
|
-
return
|
633
|
+
function zt(e, i, m) {
|
634
|
+
return ht(e, i, m, !0);
|
639
635
|
}
|
640
|
-
function
|
641
|
-
return
|
636
|
+
function Ft(e, i, m) {
|
637
|
+
return ht(e, i, m, !1);
|
642
638
|
}
|
643
|
-
var
|
644
|
-
|
645
|
-
}()),
|
639
|
+
var Lt = Ft, Mt = zt;
|
640
|
+
Me.Fragment = o, Me.jsx = Lt, Me.jsxs = Mt;
|
641
|
+
}()), Me;
|
646
642
|
}
|
647
|
-
process.env.NODE_ENV === "production" ?
|
648
|
-
var
|
649
|
-
function
|
650
|
-
return
|
643
|
+
process.env.NODE_ENV === "production" ? at.exports = Xt() : at.exports = qt();
|
644
|
+
var u = at.exports;
|
645
|
+
function Xe(t, r) {
|
646
|
+
return r ? /* @__PURE__ */ u.jsx(r, { size: t, strokeWidth: 2.5 }) : /* @__PURE__ */ u.jsx(u.Fragment, {});
|
651
647
|
}
|
652
|
-
function
|
648
|
+
function Gt(t) {
|
653
649
|
const {
|
654
|
-
variant:
|
655
|
-
scheme:
|
656
|
-
size:
|
650
|
+
variant: r = "ghost",
|
651
|
+
scheme: n = "primary",
|
652
|
+
size: o = "md",
|
657
653
|
leftIcon: l,
|
658
|
-
rightIcon:
|
654
|
+
rightIcon: c,
|
659
655
|
className: h = "",
|
660
|
-
children:
|
661
|
-
...
|
662
|
-
} =
|
656
|
+
children: s,
|
657
|
+
...d
|
658
|
+
} = t, g = { md: 12, lg: 14 }[o];
|
663
659
|
return {
|
664
|
-
className: `arkyn_badge ${
|
665
|
-
children:
|
666
|
-
leftIcon:
|
667
|
-
rightIcon:
|
668
|
-
...
|
660
|
+
className: `arkyn_badge ${r} ${n} ${o} ${h}`.trim(),
|
661
|
+
children: s,
|
662
|
+
leftIcon: Xe(g, l),
|
663
|
+
rightIcon: Xe(g, c),
|
664
|
+
...d
|
669
665
|
};
|
670
666
|
}
|
671
|
-
function
|
672
|
-
const { leftIcon:
|
673
|
-
return /* @__PURE__ */
|
667
|
+
function Gr(t) {
|
668
|
+
const { leftIcon: r, children: n, rightIcon: o, ...l } = Gt(t);
|
669
|
+
return /* @__PURE__ */ u.jsxs("div", { ...l, children: [
|
670
|
+
r,
|
674
671
|
n,
|
675
|
-
|
676
|
-
s
|
672
|
+
o
|
677
673
|
] });
|
678
674
|
}
|
679
|
-
function
|
675
|
+
function Zr(t) {
|
680
676
|
const {
|
681
|
-
className:
|
682
|
-
orientation:
|
683
|
-
...
|
684
|
-
} =
|
685
|
-
return /* @__PURE__ */
|
677
|
+
className: r,
|
678
|
+
orientation: n = "horizontal",
|
679
|
+
...o
|
680
|
+
} = t, l = `arkyn_divider ${n} ${r}`;
|
681
|
+
return /* @__PURE__ */ u.jsx("div", { className: l, ...o });
|
686
682
|
}
|
687
|
-
function
|
688
|
-
const
|
689
|
-
return /* @__PURE__ */
|
683
|
+
function Qr({ className: t, ...r }) {
|
684
|
+
const n = "arkyn_skeleton " + t;
|
685
|
+
return /* @__PURE__ */ u.jsx("div", { className: n.trim(), ...r });
|
690
686
|
}
|
691
|
-
function
|
687
|
+
function Zt(t) {
|
692
688
|
const {
|
693
|
-
isLoading:
|
694
|
-
scheme:
|
695
|
-
variant:
|
689
|
+
isLoading: r = !1,
|
690
|
+
scheme: n = "primary",
|
691
|
+
variant: o = "solid",
|
696
692
|
loadingText: l,
|
697
|
-
size:
|
693
|
+
size: c = "md",
|
698
694
|
leftIcon: h,
|
699
|
-
rightIcon:
|
700
|
-
disabled:
|
701
|
-
className:
|
702
|
-
children:
|
703
|
-
...
|
704
|
-
} =
|
695
|
+
rightIcon: s,
|
696
|
+
disabled: d,
|
697
|
+
className: p = "",
|
698
|
+
children: g,
|
699
|
+
...w
|
700
|
+
} = t, v = { xs: 12, sm: 16, md: 20, lg: 24 }[c];
|
705
701
|
return {
|
706
|
-
className: `arkyn_button loading_text_${!!l} ${
|
702
|
+
className: `arkyn_button loading_text_${!!l} ${o} ${n} ${c} loading_${r} ${p}`.trim(),
|
707
703
|
loadingText: l,
|
708
|
-
children:
|
709
|
-
iconSize:
|
710
|
-
disabled:
|
711
|
-
leftIcon:
|
712
|
-
rightIcon:
|
713
|
-
...
|
704
|
+
children: g,
|
705
|
+
iconSize: v,
|
706
|
+
disabled: d || r,
|
707
|
+
leftIcon: Xe(v, h),
|
708
|
+
rightIcon: Xe(v, s),
|
709
|
+
...w
|
714
710
|
};
|
715
711
|
}
|
716
|
-
function
|
717
|
-
const { leftIcon:
|
718
|
-
return /* @__PURE__ */
|
719
|
-
/* @__PURE__ */
|
720
|
-
/* @__PURE__ */
|
721
|
-
|
712
|
+
function en(t) {
|
713
|
+
const { leftIcon: r, rightIcon: n, iconSize: o, children: l, loadingText: c, ...h } = Zt(t);
|
714
|
+
return /* @__PURE__ */ u.jsxs("button", { ...h, children: [
|
715
|
+
/* @__PURE__ */ u.jsxs("div", { className: "spinner", children: [
|
716
|
+
/* @__PURE__ */ u.jsx(je, { size: o, strokeWidth: 2.5 }),
|
717
|
+
c && c
|
722
718
|
] }),
|
723
|
-
/* @__PURE__ */
|
724
|
-
|
719
|
+
/* @__PURE__ */ u.jsxs("div", { className: "content", children: [
|
720
|
+
r,
|
725
721
|
l,
|
726
|
-
|
722
|
+
n
|
727
723
|
] })
|
728
724
|
] });
|
729
725
|
}
|
730
|
-
const
|
731
|
-
function
|
732
|
-
var
|
733
|
-
const
|
734
|
-
return /* @__PURE__ */
|
726
|
+
const Ct = qe({});
|
727
|
+
function tn({ children: t, ...r }) {
|
728
|
+
var s, d;
|
729
|
+
const n = kt(), o = $e(null), l = ((s = o.current) == null ? void 0 : s.name) || "", c = ((d = n == null ? void 0 : n.fieldErrors) == null ? void 0 : d[l]) || null, h = At();
|
730
|
+
return /* @__PURE__ */ u.jsx(Ct.Provider, { value: { error: c, id: h, inputRef: o }, children: /* @__PURE__ */ u.jsx("section", { className: "arkyn_form_controller", ...r, children: t }) });
|
735
731
|
}
|
736
|
-
function
|
737
|
-
return
|
732
|
+
function ke() {
|
733
|
+
return Be(Ct);
|
738
734
|
}
|
739
|
-
function
|
735
|
+
function rn(t) {
|
740
736
|
const {
|
741
|
-
name:
|
742
|
-
className:
|
743
|
-
size:
|
737
|
+
name: r,
|
738
|
+
className: n = "",
|
739
|
+
size: o = "md",
|
744
740
|
isError: l,
|
745
|
-
defaultChecked:
|
741
|
+
defaultChecked: c = !1,
|
746
742
|
checked: h = null,
|
747
|
-
onCheck:
|
748
|
-
value:
|
749
|
-
...
|
750
|
-
} =
|
751
|
-
function
|
752
|
-
const
|
753
|
-
|
743
|
+
onCheck: s,
|
744
|
+
value: d,
|
745
|
+
...p
|
746
|
+
} = t, { id: g, inputRef: w, error: a } = ke(), v = l || !!a, [I, j] = pe(c || !1), P = typeof h == "boolean" ? h : I, b = `arkyn_checkbox ${o} ${v ? "error" : ""} ${P ? "checked" : ""} ${n}`;
|
747
|
+
function y() {
|
748
|
+
const H = I;
|
749
|
+
j(!H), s && s(H ? "" : d || "checked");
|
754
750
|
}
|
755
|
-
return /* @__PURE__ */
|
756
|
-
/* @__PURE__ */
|
751
|
+
return /* @__PURE__ */ u.jsxs("div", { id: g, className: b, onClick: y, ...p, children: [
|
752
|
+
/* @__PURE__ */ u.jsx(
|
757
753
|
"input",
|
758
754
|
{
|
759
755
|
type: "hidden",
|
760
|
-
name:
|
761
|
-
ref:
|
762
|
-
value:
|
756
|
+
name: r,
|
757
|
+
ref: w,
|
758
|
+
value: P ? d || "checked" : ""
|
763
759
|
}
|
764
760
|
),
|
765
|
-
/* @__PURE__ */
|
761
|
+
/* @__PURE__ */ u.jsx(Et, {})
|
766
762
|
] });
|
767
763
|
}
|
768
|
-
function
|
769
|
-
const { error:
|
770
|
-
return
|
764
|
+
function nn({ children: t }) {
|
765
|
+
const { error: r } = ke();
|
766
|
+
return t ? /* @__PURE__ */ u.jsx("strong", { className: "arkyn_form_error", children: t }) : r ? /* @__PURE__ */ u.jsx("strong", { className: "arkyn_form_error", children: r }) : /* @__PURE__ */ u.jsx(u.Fragment, {});
|
771
767
|
}
|
772
|
-
function
|
773
|
-
const { showAsterisk:
|
768
|
+
function Qt(t) {
|
769
|
+
const { showAsterisk: r = !1, className: n = "", ...o } = t;
|
774
770
|
return {
|
775
|
-
className: `arkyn_form_label ${
|
776
|
-
...
|
771
|
+
className: `arkyn_form_label ${r ? "show-asterisk" : ""} ${n}`.trim(),
|
772
|
+
...o
|
777
773
|
};
|
778
774
|
}
|
779
|
-
function
|
780
|
-
const { id:
|
781
|
-
return /* @__PURE__ */
|
775
|
+
function an(t) {
|
776
|
+
const { id: r } = ke();
|
777
|
+
return /* @__PURE__ */ u.jsx("label", { ...Qt(t), htmlFor: r });
|
782
778
|
}
|
783
|
-
const
|
779
|
+
const yt = {
|
784
780
|
xs: 12,
|
785
781
|
sm: 16,
|
786
782
|
md: 20,
|
787
783
|
lg: 24
|
788
784
|
};
|
789
|
-
function
|
785
|
+
function sn(t) {
|
790
786
|
const {
|
791
|
-
isLoading:
|
792
|
-
scheme:
|
793
|
-
variant:
|
787
|
+
isLoading: r = !1,
|
788
|
+
scheme: n = "primary",
|
789
|
+
variant: o = "solid",
|
794
790
|
size: l = "md",
|
795
|
-
icon:
|
791
|
+
icon: c,
|
796
792
|
disabled: h,
|
797
|
-
className:
|
798
|
-
...
|
799
|
-
} =
|
800
|
-
return /* @__PURE__ */
|
793
|
+
className: s = "",
|
794
|
+
...d
|
795
|
+
} = t, p = `arkyn_icon_button ${o} ${n} ${l} loading_${r} ${s}`;
|
796
|
+
return /* @__PURE__ */ u.jsxs(
|
801
797
|
"button",
|
802
798
|
{
|
803
|
-
disabled: h ||
|
804
|
-
className:
|
805
|
-
...
|
799
|
+
disabled: h || r,
|
800
|
+
className: p.trim(),
|
801
|
+
...d,
|
806
802
|
children: [
|
807
|
-
/* @__PURE__ */
|
808
|
-
/* @__PURE__ */
|
803
|
+
/* @__PURE__ */ u.jsx("div", { className: "spinner", children: /* @__PURE__ */ u.jsx(je, { size: yt[l], strokeWidth: 2.5 }) }),
|
804
|
+
/* @__PURE__ */ u.jsx("div", { className: "content " + l, children: /* @__PURE__ */ u.jsx(c, { size: yt[l], strokeWidth: 2.5 }) })
|
809
805
|
]
|
810
806
|
}
|
811
807
|
);
|
812
808
|
}
|
813
|
-
function
|
814
|
-
if (!
|
815
|
-
|
816
|
-
|
817
|
-
|
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 }) });
|
809
|
+
function Ee(t, r, n) {
|
810
|
+
if (!t) return /* @__PURE__ */ u.jsx(u.Fragment, {});
|
811
|
+
if (typeof t == "string") return /* @__PURE__ */ u.jsx("p", { className: n, children: t });
|
812
|
+
const o = t;
|
813
|
+
return /* @__PURE__ */ u.jsx("p", { className: n, children: /* @__PURE__ */ u.jsx(o, { color: "var(--secondary-600)", size: r, strokeWidth: 2.5 }) });
|
820
814
|
}
|
821
|
-
function
|
822
|
-
return
|
815
|
+
function ot(t) {
|
816
|
+
return t && t.replace(/[^0-9]/g, "");
|
823
817
|
}
|
824
|
-
function
|
825
|
-
let
|
826
|
-
return Array.from(
|
827
|
-
|
828
|
-
}),
|
818
|
+
function jt(t, r) {
|
819
|
+
let n = "", o = 0;
|
820
|
+
return Array.from(t).forEach((l, c) => {
|
821
|
+
r[c + o].match(/[0-9]/) || (n += r[c + o], o++), n += l;
|
822
|
+
}), n;
|
829
823
|
}
|
830
|
-
function
|
831
|
-
return
|
824
|
+
function Nt(t) {
|
825
|
+
return t.length > 11 ? "CNPJ" : "CPF";
|
832
826
|
}
|
833
|
-
const
|
827
|
+
const it = {
|
834
828
|
CPF: "999.999.999-999",
|
835
829
|
CNPJ: "99.999.999/9999-99"
|
836
|
-
},
|
837
|
-
function
|
830
|
+
}, Rt = ot(it.CNPJ).length;
|
831
|
+
function er(t, r) {
|
838
832
|
const {
|
839
|
-
isLoading:
|
840
|
-
isError:
|
833
|
+
isLoading: n,
|
834
|
+
isError: o,
|
841
835
|
size: l = "md",
|
842
|
-
className:
|
836
|
+
className: c = "",
|
843
837
|
variant: h = "solid",
|
844
|
-
prefix:
|
845
|
-
sufix:
|
846
|
-
leftIcon:
|
847
|
-
rightIcon:
|
848
|
-
disabled:
|
849
|
-
defaultValue:
|
850
|
-
readOnly:
|
851
|
-
onFocus:
|
852
|
-
onBlur:
|
853
|
-
title:
|
854
|
-
style:
|
855
|
-
onChange:
|
856
|
-
...
|
857
|
-
} =
|
858
|
-
function
|
859
|
-
let
|
860
|
-
const
|
861
|
-
if (!(
|
862
|
-
return
|
838
|
+
prefix: s,
|
839
|
+
sufix: d,
|
840
|
+
leftIcon: p,
|
841
|
+
rightIcon: g,
|
842
|
+
disabled: w,
|
843
|
+
defaultValue: a,
|
844
|
+
readOnly: v,
|
845
|
+
onFocus: I,
|
846
|
+
onBlur: j,
|
847
|
+
title: P,
|
848
|
+
style: b,
|
849
|
+
onChange: y,
|
850
|
+
...H
|
851
|
+
} = t;
|
852
|
+
function L(K) {
|
853
|
+
let z = ot(K);
|
854
|
+
const W = Nt(z);
|
855
|
+
if (!(z.length > Rt))
|
856
|
+
return z = jt(z, it[W]), z;
|
863
857
|
}
|
864
|
-
const
|
858
|
+
const R = g ? "right" : "left", O = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || v || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, C = { md: 20, lg: 20 }[l];
|
865
859
|
return {
|
866
|
-
isLoading:
|
867
|
-
className:
|
868
|
-
prefix:
|
869
|
-
sufix:
|
870
|
-
LeftIcon:
|
871
|
-
RightIcon:
|
872
|
-
defaultValue:
|
873
|
-
disabled:
|
874
|
-
readOnly:
|
875
|
-
onFocus:
|
876
|
-
onBlur:
|
877
|
-
title:
|
878
|
-
style:
|
879
|
-
onChange:
|
880
|
-
loadingPosition:
|
881
|
-
iconSize:
|
882
|
-
Spinner: /* @__PURE__ */
|
883
|
-
...
|
860
|
+
isLoading: n,
|
861
|
+
className: O,
|
862
|
+
prefix: Ee(s, C, "prefix"),
|
863
|
+
sufix: Ee(d, C, "sufix"),
|
864
|
+
LeftIcon: p,
|
865
|
+
RightIcon: g,
|
866
|
+
defaultValue: L(a || ""),
|
867
|
+
disabled: w,
|
868
|
+
readOnly: v,
|
869
|
+
onFocus: I,
|
870
|
+
onBlur: j,
|
871
|
+
title: P,
|
872
|
+
style: b,
|
873
|
+
onChange: y,
|
874
|
+
loadingPosition: R,
|
875
|
+
iconSize: C,
|
876
|
+
Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: C, strokeWidth: 2.5 }),
|
877
|
+
...H
|
884
878
|
};
|
885
879
|
}
|
886
|
-
function
|
887
|
-
const [
|
888
|
-
disabled:
|
889
|
-
title:
|
890
|
-
style:
|
891
|
-
className:
|
892
|
-
prefix:
|
893
|
-
sufix:
|
894
|
-
iconSize:
|
895
|
-
loadingPosition:
|
896
|
-
isLoading:
|
897
|
-
LeftIcon:
|
898
|
-
readOnly:
|
899
|
-
onFocus:
|
900
|
-
onBlur:
|
901
|
-
RightIcon:
|
902
|
-
Spinner:
|
903
|
-
onChange:
|
904
|
-
value:
|
905
|
-
defaultValue:
|
906
|
-
...
|
907
|
-
} =
|
908
|
-
function
|
909
|
-
|
880
|
+
function tr(t) {
|
881
|
+
const [r, n] = pe(!1), o = $e(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
|
882
|
+
disabled: p,
|
883
|
+
title: g,
|
884
|
+
style: w,
|
885
|
+
className: a,
|
886
|
+
prefix: v,
|
887
|
+
sufix: I,
|
888
|
+
iconSize: j,
|
889
|
+
loadingPosition: P,
|
890
|
+
isLoading: b,
|
891
|
+
LeftIcon: y,
|
892
|
+
readOnly: H,
|
893
|
+
onFocus: L,
|
894
|
+
onBlur: R,
|
895
|
+
RightIcon: A,
|
896
|
+
Spinner: U,
|
897
|
+
onChange: M,
|
898
|
+
value: J,
|
899
|
+
defaultValue: X,
|
900
|
+
...O
|
901
|
+
} = er({ ...t, id: c, isError: d }, r), [G, C] = pe(X), K = y && !b, z = A && !b, W = P === "left" && b, Z = P === "right" && b;
|
902
|
+
function N() {
|
903
|
+
p || !(s != null && s.current) || (n(!0), s.current.focus());
|
910
904
|
}
|
911
|
-
function
|
912
|
-
let
|
913
|
-
const
|
914
|
-
|
905
|
+
function Q(S) {
|
906
|
+
let E = ot(S.target.value);
|
907
|
+
const re = Nt(E);
|
908
|
+
E.length > Rt || (E = jt(E, it[re]), S.target.value = E, C(E), M && M(S));
|
915
909
|
}
|
916
|
-
function
|
917
|
-
|
910
|
+
function de(S) {
|
911
|
+
n(!0), L && L(S);
|
918
912
|
}
|
919
|
-
function
|
920
|
-
|
913
|
+
function _(S) {
|
914
|
+
n(!1), R && R(S);
|
921
915
|
}
|
922
|
-
return /* @__PURE__ */
|
916
|
+
return /* @__PURE__ */ u.jsxs(
|
923
917
|
"section",
|
924
918
|
{
|
925
|
-
title:
|
926
|
-
style:
|
927
|
-
onClick:
|
928
|
-
className:
|
919
|
+
title: g,
|
920
|
+
style: w,
|
921
|
+
onClick: N,
|
922
|
+
className: a,
|
929
923
|
children: [
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
/* @__PURE__ */
|
924
|
+
v,
|
925
|
+
W && U,
|
926
|
+
K && /* @__PURE__ */ u.jsx(y, { size: j, strokeWidth: 2.5 }),
|
927
|
+
/* @__PURE__ */ u.jsx(
|
934
928
|
"input",
|
935
929
|
{
|
936
|
-
disabled:
|
937
|
-
readOnly:
|
938
|
-
ref:
|
939
|
-
value:
|
940
|
-
onFocus:
|
941
|
-
onChange:
|
942
|
-
onBlur:
|
943
|
-
...
|
930
|
+
disabled: p || b,
|
931
|
+
readOnly: H,
|
932
|
+
ref: s,
|
933
|
+
value: J || G,
|
934
|
+
onFocus: de,
|
935
|
+
onChange: Q,
|
936
|
+
onBlur: _,
|
937
|
+
...O
|
944
938
|
}
|
945
939
|
),
|
946
|
-
|
947
|
-
|
948
|
-
|
940
|
+
z && /* @__PURE__ */ u.jsx(A, { size: j, strokeWidth: 2.5 }),
|
941
|
+
Z && U,
|
942
|
+
I
|
949
943
|
]
|
950
944
|
}
|
951
945
|
);
|
952
946
|
}
|
953
|
-
function
|
947
|
+
function rr(t, r) {
|
954
948
|
const {
|
955
|
-
isLoading:
|
956
|
-
isError:
|
949
|
+
isLoading: n,
|
950
|
+
isError: o,
|
957
951
|
size: l = "md",
|
958
|
-
className:
|
952
|
+
className: c = "",
|
959
953
|
variant: h = "solid",
|
960
|
-
prefix:
|
961
|
-
sufix:
|
962
|
-
leftIcon:
|
963
|
-
rightIcon:
|
964
|
-
disabled:
|
965
|
-
readOnly:
|
966
|
-
onFocus:
|
967
|
-
onBlur:
|
968
|
-
title:
|
969
|
-
style:
|
970
|
-
showCents:
|
971
|
-
max:
|
972
|
-
onChange:
|
973
|
-
...
|
974
|
-
} =
|
954
|
+
prefix: s,
|
955
|
+
sufix: d,
|
956
|
+
leftIcon: p,
|
957
|
+
rightIcon: g,
|
958
|
+
disabled: w,
|
959
|
+
readOnly: a,
|
960
|
+
onFocus: v,
|
961
|
+
onBlur: I,
|
962
|
+
title: j,
|
963
|
+
style: P,
|
964
|
+
showCents: b = !1,
|
965
|
+
max: y = 1e9,
|
966
|
+
onChange: H,
|
967
|
+
...L
|
968
|
+
} = t, R = g ? "right" : "left", O = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || a || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, C = { md: 20, lg: 20 }[l];
|
975
969
|
return {
|
976
|
-
isLoading:
|
977
|
-
className:
|
978
|
-
prefix:
|
979
|
-
sufix:
|
980
|
-
LeftIcon:
|
981
|
-
RightIcon:
|
982
|
-
disabled:
|
983
|
-
readOnly:
|
984
|
-
onFocus:
|
985
|
-
onBlur:
|
986
|
-
title:
|
987
|
-
style:
|
988
|
-
max:
|
989
|
-
onChange:
|
990
|
-
showCents:
|
991
|
-
loadingPosition:
|
992
|
-
iconSize:
|
993
|
-
Spinner: /* @__PURE__ */
|
994
|
-
...
|
970
|
+
isLoading: n,
|
971
|
+
className: O,
|
972
|
+
prefix: Ee(s, C, "prefix"),
|
973
|
+
sufix: Ee(d, C, "sufix"),
|
974
|
+
LeftIcon: p,
|
975
|
+
RightIcon: g,
|
976
|
+
disabled: w,
|
977
|
+
readOnly: a,
|
978
|
+
onFocus: v,
|
979
|
+
onBlur: I,
|
980
|
+
title: j,
|
981
|
+
style: P,
|
982
|
+
max: y,
|
983
|
+
onChange: H,
|
984
|
+
showCents: b,
|
985
|
+
loadingPosition: R,
|
986
|
+
iconSize: C,
|
987
|
+
Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: C, strokeWidth: 2.5 }),
|
988
|
+
...L
|
995
989
|
};
|
996
990
|
}
|
997
|
-
const
|
998
|
-
function
|
999
|
-
if (
|
1000
|
-
|
1001
|
-
const a = (e / 100).toLocaleString("pt-BR", {
|
991
|
+
const nr = /^[1-9]{1}$/, ar = /^[0-9]{1}$/, xt = 8;
|
992
|
+
function sr(t, r) {
|
993
|
+
if (t === 0) return "";
|
994
|
+
const n = (t / 100).toLocaleString("pt-BR", {
|
1002
995
|
style: "currency",
|
1003
996
|
currency: "BRL"
|
1004
997
|
});
|
1005
|
-
return
|
998
|
+
return r ? n : n.replace("R$", "").trim();
|
1006
999
|
}
|
1007
|
-
function
|
1008
|
-
const { currencyValue:
|
1009
|
-
if (
|
1000
|
+
function or(t) {
|
1001
|
+
const { currencyValue: r, event: n, max: o, setCurrencyValue: l } = t, { key: c, keyCode: h } = n;
|
1002
|
+
if (r === 0 && !nr.test(c) || r !== 0 && !ar.test(c) && h !== xt)
|
1010
1003
|
return;
|
1011
|
-
const
|
1012
|
-
let
|
1013
|
-
if (h !==
|
1014
|
-
const
|
1015
|
-
|
1004
|
+
const s = r.toString();
|
1005
|
+
let d;
|
1006
|
+
if (h !== xt) {
|
1007
|
+
const p = r === 0 ? c : `${s}${c}`;
|
1008
|
+
d = Number.parseInt(p, 10);
|
1016
1009
|
} else {
|
1017
|
-
const
|
1018
|
-
|
1010
|
+
const p = s.slice(0, -1);
|
1011
|
+
d = p === "" ? 0 : Number.parseInt(p, 10);
|
1019
1012
|
}
|
1020
|
-
|
1013
|
+
d > Number(o) || l(d);
|
1021
1014
|
}
|
1022
|
-
function
|
1023
|
-
const [
|
1024
|
-
disabled:
|
1025
|
-
title:
|
1026
|
-
style:
|
1027
|
-
className:
|
1028
|
-
prefix:
|
1029
|
-
sufix:
|
1030
|
-
iconSize:
|
1031
|
-
loadingPosition:
|
1032
|
-
isLoading:
|
1033
|
-
LeftIcon:
|
1034
|
-
readOnly:
|
1035
|
-
onFocus:
|
1036
|
-
onBlur:
|
1037
|
-
RightIcon:
|
1038
|
-
Spinner:
|
1039
|
-
value:
|
1040
|
-
max:
|
1041
|
-
onKeyDown:
|
1042
|
-
onChange:
|
1043
|
-
showCents:
|
1044
|
-
defaultValue:
|
1045
|
-
...
|
1046
|
-
} =
|
1047
|
-
function
|
1048
|
-
|
1015
|
+
function ir(t) {
|
1016
|
+
const [r, n] = pe(!1), o = $e(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
|
1017
|
+
disabled: p,
|
1018
|
+
title: g,
|
1019
|
+
style: w,
|
1020
|
+
className: a,
|
1021
|
+
prefix: v,
|
1022
|
+
sufix: I,
|
1023
|
+
iconSize: j,
|
1024
|
+
loadingPosition: P,
|
1025
|
+
isLoading: b,
|
1026
|
+
LeftIcon: y,
|
1027
|
+
readOnly: H,
|
1028
|
+
onFocus: L,
|
1029
|
+
onBlur: R,
|
1030
|
+
RightIcon: A,
|
1031
|
+
Spinner: U,
|
1032
|
+
value: M,
|
1033
|
+
max: J,
|
1034
|
+
onKeyDown: X,
|
1035
|
+
onChange: O,
|
1036
|
+
showCents: G,
|
1037
|
+
defaultValue: C,
|
1038
|
+
...K
|
1039
|
+
} = rr({ ...t, id: c, isError: d }, r), [z, W] = pe(C * 100 || 0), Z = y && !b, N = A && !b, Q = P === "left" && b, de = P === "right" && b;
|
1040
|
+
function _() {
|
1041
|
+
p || !(s != null && s.current) || (n(!0), s.current.focus());
|
1049
1042
|
}
|
1050
|
-
function
|
1051
|
-
|
1043
|
+
function S(ee) {
|
1044
|
+
or({ currencyValue: z, event: ee, max: J, setCurrencyValue: W }), O && O(z / 100), X && X(ee);
|
1052
1045
|
}
|
1053
|
-
function
|
1054
|
-
|
1046
|
+
function E(ee) {
|
1047
|
+
n(!0), L && L(ee);
|
1055
1048
|
}
|
1056
|
-
function
|
1057
|
-
|
1049
|
+
function re(ee) {
|
1050
|
+
n(!1), R && R(ee);
|
1058
1051
|
}
|
1059
|
-
return /* @__PURE__ */
|
1052
|
+
return /* @__PURE__ */ u.jsxs(
|
1060
1053
|
"section",
|
1061
1054
|
{
|
1062
|
-
title:
|
1063
|
-
style:
|
1064
|
-
onClick:
|
1065
|
-
className:
|
1055
|
+
title: g,
|
1056
|
+
style: w,
|
1057
|
+
onClick: _,
|
1058
|
+
className: a,
|
1066
1059
|
children: [
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
/* @__PURE__ */
|
1060
|
+
v,
|
1061
|
+
Q && U,
|
1062
|
+
Z && /* @__PURE__ */ u.jsx(y, { size: j, strokeWidth: 2.5 }),
|
1063
|
+
/* @__PURE__ */ u.jsx(
|
1071
1064
|
"input",
|
1072
1065
|
{
|
1073
|
-
value:
|
1074
|
-
onKeyDown:
|
1075
|
-
disabled:
|
1076
|
-
readOnly:
|
1077
|
-
ref:
|
1078
|
-
onFocus:
|
1079
|
-
onBlur:
|
1066
|
+
value: sr(M || z, G),
|
1067
|
+
onKeyDown: S,
|
1068
|
+
disabled: p || b,
|
1069
|
+
readOnly: H,
|
1070
|
+
ref: s,
|
1071
|
+
onFocus: E,
|
1072
|
+
onBlur: re,
|
1080
1073
|
onChange: () => {
|
1081
1074
|
},
|
1082
|
-
...
|
1075
|
+
...K
|
1083
1076
|
}
|
1084
1077
|
),
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1078
|
+
de && U,
|
1079
|
+
N && /* @__PURE__ */ u.jsx(A, { size: j, strokeWidth: 2.5 }),
|
1080
|
+
I
|
1088
1081
|
]
|
1089
1082
|
}
|
1090
1083
|
);
|
1091
1084
|
}
|
1092
|
-
function
|
1085
|
+
function lr(t, r) {
|
1093
1086
|
const {
|
1094
|
-
isLoading:
|
1095
|
-
isError:
|
1087
|
+
isLoading: n,
|
1088
|
+
isError: o,
|
1096
1089
|
size: l = "md",
|
1097
|
-
className:
|
1090
|
+
className: c = "",
|
1098
1091
|
variant: h = "solid",
|
1099
|
-
prefix:
|
1100
|
-
sufix:
|
1101
|
-
leftIcon:
|
1102
|
-
rightIcon:
|
1103
|
-
disabled:
|
1104
|
-
readOnly:
|
1105
|
-
onFocus:
|
1106
|
-
onBlur:
|
1107
|
-
title:
|
1108
|
-
style:
|
1109
|
-
onChange:
|
1110
|
-
showMask:
|
1111
|
-
type:
|
1112
|
-
...
|
1113
|
-
} =
|
1092
|
+
prefix: s,
|
1093
|
+
sufix: d,
|
1094
|
+
leftIcon: p,
|
1095
|
+
rightIcon: g,
|
1096
|
+
disabled: w,
|
1097
|
+
readOnly: a,
|
1098
|
+
onFocus: v,
|
1099
|
+
onBlur: I,
|
1100
|
+
title: j,
|
1101
|
+
style: P,
|
1102
|
+
onChange: b,
|
1103
|
+
showMask: y = !1,
|
1104
|
+
type: H,
|
1105
|
+
...L
|
1106
|
+
} = t, R = g ? "right" : "left", O = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || a || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, C = { md: 20, lg: 20 }[l];
|
1114
1107
|
return {
|
1115
|
-
isLoading:
|
1116
|
-
className:
|
1117
|
-
prefix:
|
1118
|
-
sufix:
|
1119
|
-
LeftIcon:
|
1120
|
-
RightIcon:
|
1121
|
-
disabled:
|
1122
|
-
readOnly:
|
1123
|
-
onFocus:
|
1124
|
-
onBlur:
|
1125
|
-
title:
|
1126
|
-
style:
|
1127
|
-
onChange:
|
1128
|
-
loadingPosition:
|
1129
|
-
iconSize:
|
1130
|
-
showMask:
|
1131
|
-
Spinner: /* @__PURE__ */
|
1132
|
-
...
|
1108
|
+
isLoading: n,
|
1109
|
+
className: O,
|
1110
|
+
prefix: Ee(s, C, "prefix"),
|
1111
|
+
sufix: Ee(d, C, "sufix"),
|
1112
|
+
LeftIcon: p,
|
1113
|
+
RightIcon: g,
|
1114
|
+
disabled: w,
|
1115
|
+
readOnly: a,
|
1116
|
+
onFocus: v,
|
1117
|
+
onBlur: I,
|
1118
|
+
title: j,
|
1119
|
+
style: P,
|
1120
|
+
onChange: b,
|
1121
|
+
loadingPosition: R,
|
1122
|
+
iconSize: C,
|
1123
|
+
showMask: y,
|
1124
|
+
Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: C, strokeWidth: 2.5 }),
|
1125
|
+
...L
|
1133
1126
|
};
|
1134
1127
|
}
|
1135
|
-
const
|
1136
|
-
function
|
1137
|
-
const [
|
1138
|
-
disabled:
|
1139
|
-
title:
|
1140
|
-
style:
|
1141
|
-
className:
|
1142
|
-
prefix:
|
1143
|
-
sufix:
|
1144
|
-
iconSize:
|
1145
|
-
loadingPosition:
|
1146
|
-
isLoading:
|
1147
|
-
LeftIcon:
|
1148
|
-
readOnly:
|
1149
|
-
onFocus:
|
1150
|
-
onBlur:
|
1151
|
-
RightIcon:
|
1152
|
-
Spinner:
|
1153
|
-
...
|
1154
|
-
} =
|
1155
|
-
function
|
1156
|
-
|
1128
|
+
const cr = Wt((t, r) => /* @__PURE__ */ u.jsx("input", { ref: r, ...t }));
|
1129
|
+
function ur(t) {
|
1130
|
+
const [r, n] = pe(!1), o = $e(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
|
1131
|
+
disabled: p,
|
1132
|
+
title: g,
|
1133
|
+
style: w,
|
1134
|
+
className: a,
|
1135
|
+
prefix: v,
|
1136
|
+
sufix: I,
|
1137
|
+
iconSize: j,
|
1138
|
+
loadingPosition: P,
|
1139
|
+
isLoading: b,
|
1140
|
+
LeftIcon: y,
|
1141
|
+
readOnly: H,
|
1142
|
+
onFocus: L,
|
1143
|
+
onBlur: R,
|
1144
|
+
RightIcon: A,
|
1145
|
+
Spinner: U,
|
1146
|
+
...M
|
1147
|
+
} = lr({ ...t, id: c, isError: d }, r), J = y && !b, X = A && !b, O = P === "left" && b, G = P === "right" && b;
|
1148
|
+
function C() {
|
1149
|
+
p || !(s != null && s.current) || (n(!0), s.current.focus());
|
1157
1150
|
}
|
1158
|
-
function
|
1159
|
-
|
1151
|
+
function K(W) {
|
1152
|
+
n(!0), L && L(W);
|
1160
1153
|
}
|
1161
|
-
function
|
1162
|
-
|
1154
|
+
function z(W) {
|
1155
|
+
n(!1), R && R(W);
|
1163
1156
|
}
|
1164
|
-
return /* @__PURE__ */
|
1157
|
+
return /* @__PURE__ */ u.jsxs(
|
1165
1158
|
"section",
|
1166
1159
|
{
|
1167
|
-
title:
|
1168
|
-
style:
|
1169
|
-
onClick:
|
1170
|
-
className:
|
1160
|
+
title: g,
|
1161
|
+
style: w,
|
1162
|
+
onClick: C,
|
1163
|
+
className: a,
|
1171
1164
|
children: [
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
/* @__PURE__ */
|
1176
|
-
|
1165
|
+
v,
|
1166
|
+
O && U,
|
1167
|
+
J && /* @__PURE__ */ u.jsx(y, { size: j, strokeWidth: 2.5 }),
|
1168
|
+
/* @__PURE__ */ u.jsx(
|
1169
|
+
Ht,
|
1177
1170
|
{
|
1178
|
-
component:
|
1179
|
-
ref:
|
1180
|
-
onFocus:
|
1181
|
-
onBlur:
|
1182
|
-
...
|
1171
|
+
component: cr,
|
1172
|
+
ref: s,
|
1173
|
+
onFocus: K,
|
1174
|
+
onBlur: z,
|
1175
|
+
...M
|
1183
1176
|
}
|
1184
1177
|
),
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1178
|
+
X && /* @__PURE__ */ u.jsx(A, { size: j, strokeWidth: 2.5 }),
|
1179
|
+
G && U,
|
1180
|
+
I
|
1188
1181
|
]
|
1189
1182
|
}
|
1190
1183
|
);
|
1191
1184
|
}
|
1192
|
-
function
|
1185
|
+
function dr(t, r) {
|
1193
1186
|
const {
|
1194
|
-
isLoading:
|
1195
|
-
isError:
|
1187
|
+
isLoading: n,
|
1188
|
+
isError: o,
|
1196
1189
|
size: l = "md",
|
1197
|
-
className:
|
1190
|
+
className: c = "",
|
1198
1191
|
variant: h = "solid",
|
1199
|
-
prefix:
|
1200
|
-
sufix:
|
1201
|
-
leftIcon:
|
1202
|
-
rightIcon:
|
1203
|
-
disabled:
|
1204
|
-
readOnly:
|
1205
|
-
onFocus:
|
1206
|
-
onBlur:
|
1207
|
-
title:
|
1208
|
-
style:
|
1209
|
-
onChange:
|
1210
|
-
...
|
1211
|
-
} =
|
1192
|
+
prefix: s,
|
1193
|
+
sufix: d,
|
1194
|
+
leftIcon: p,
|
1195
|
+
rightIcon: g,
|
1196
|
+
disabled: w,
|
1197
|
+
readOnly: a,
|
1198
|
+
onFocus: v,
|
1199
|
+
onBlur: I,
|
1200
|
+
title: j,
|
1201
|
+
style: P,
|
1202
|
+
onChange: b,
|
1203
|
+
...y
|
1204
|
+
} = t, H = g ? "right" : "left", J = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || a || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, O = { md: 20, lg: 20 }[l];
|
1212
1205
|
return {
|
1213
|
-
isLoading:
|
1214
|
-
className:
|
1215
|
-
prefix:
|
1216
|
-
sufix:
|
1217
|
-
LeftIcon:
|
1218
|
-
RightIcon:
|
1219
|
-
disabled:
|
1220
|
-
readOnly:
|
1221
|
-
onFocus:
|
1222
|
-
onBlur:
|
1223
|
-
title:
|
1224
|
-
style:
|
1225
|
-
onChange:
|
1226
|
-
loadingPosition:
|
1227
|
-
iconSize:
|
1228
|
-
Spinner: /* @__PURE__ */
|
1229
|
-
...
|
1206
|
+
isLoading: n,
|
1207
|
+
className: J,
|
1208
|
+
prefix: Ee(s, O, "prefix"),
|
1209
|
+
sufix: Ee(d, O, "sufix"),
|
1210
|
+
LeftIcon: p,
|
1211
|
+
RightIcon: g,
|
1212
|
+
disabled: w,
|
1213
|
+
readOnly: a,
|
1214
|
+
onFocus: v,
|
1215
|
+
onBlur: I,
|
1216
|
+
title: j,
|
1217
|
+
style: P,
|
1218
|
+
onChange: b,
|
1219
|
+
loadingPosition: H,
|
1220
|
+
iconSize: O,
|
1221
|
+
Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: O, strokeWidth: 2.5 }),
|
1222
|
+
...y
|
1230
1223
|
};
|
1231
1224
|
}
|
1232
|
-
function
|
1233
|
-
const [
|
1234
|
-
disabled:
|
1235
|
-
title:
|
1236
|
-
style:
|
1237
|
-
className:
|
1238
|
-
prefix:
|
1239
|
-
sufix:
|
1240
|
-
iconSize:
|
1241
|
-
loadingPosition:
|
1242
|
-
isLoading:
|
1243
|
-
LeftIcon:
|
1244
|
-
readOnly:
|
1245
|
-
onFocus:
|
1246
|
-
onBlur:
|
1247
|
-
RightIcon:
|
1248
|
-
type:
|
1249
|
-
Spinner:
|
1250
|
-
...
|
1251
|
-
} =
|
1252
|
-
function
|
1253
|
-
|
1225
|
+
function fr(t) {
|
1226
|
+
const [r, n] = pe(!1), o = $e(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
|
1227
|
+
disabled: p,
|
1228
|
+
title: g,
|
1229
|
+
style: w,
|
1230
|
+
className: a,
|
1231
|
+
prefix: v,
|
1232
|
+
sufix: I,
|
1233
|
+
iconSize: j,
|
1234
|
+
loadingPosition: P,
|
1235
|
+
isLoading: b,
|
1236
|
+
LeftIcon: y,
|
1237
|
+
readOnly: H,
|
1238
|
+
onFocus: L,
|
1239
|
+
onBlur: R,
|
1240
|
+
RightIcon: A,
|
1241
|
+
type: U,
|
1242
|
+
Spinner: M,
|
1243
|
+
...J
|
1244
|
+
} = dr({ ...t, id: c, isError: d }, r), X = y && !b, O = A && !b, G = P === "left" && b, C = P === "right" && b;
|
1245
|
+
function K() {
|
1246
|
+
p || !(s != null && s.current) || (n(!0), s.current.focus());
|
1254
1247
|
}
|
1255
|
-
function
|
1256
|
-
|
1248
|
+
function z(Z) {
|
1249
|
+
n(!0), L && L(Z);
|
1257
1250
|
}
|
1258
|
-
function
|
1259
|
-
|
1251
|
+
function W(Z) {
|
1252
|
+
n(!1), R && R(Z);
|
1260
1253
|
}
|
1261
|
-
return
|
1254
|
+
return U === "hidden" ? /* @__PURE__ */ u.jsx("input", { type: "hidden", ref: s, ...J }) : /* @__PURE__ */ u.jsxs(
|
1262
1255
|
"section",
|
1263
1256
|
{
|
1264
|
-
title:
|
1265
|
-
style:
|
1266
|
-
onClick:
|
1267
|
-
className:
|
1257
|
+
title: g,
|
1258
|
+
style: w,
|
1259
|
+
onClick: K,
|
1260
|
+
className: a,
|
1268
1261
|
children: [
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
/* @__PURE__ */
|
1262
|
+
v,
|
1263
|
+
G && M,
|
1264
|
+
X && /* @__PURE__ */ u.jsx(y, { size: j, strokeWidth: 2.5 }),
|
1265
|
+
/* @__PURE__ */ u.jsx(
|
1273
1266
|
"input",
|
1274
1267
|
{
|
1275
|
-
disabled:
|
1276
|
-
readOnly:
|
1277
|
-
ref:
|
1278
|
-
onFocus:
|
1279
|
-
onBlur:
|
1280
|
-
type:
|
1281
|
-
...
|
1268
|
+
disabled: p || b,
|
1269
|
+
readOnly: H,
|
1270
|
+
ref: s,
|
1271
|
+
onFocus: z,
|
1272
|
+
onBlur: W,
|
1273
|
+
type: U,
|
1274
|
+
...J
|
1282
1275
|
}
|
1283
1276
|
),
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1277
|
+
O && /* @__PURE__ */ u.jsx(A, { size: j, strokeWidth: 2.5 }),
|
1278
|
+
C && M,
|
1279
|
+
I
|
1287
1280
|
]
|
1288
1281
|
}
|
1289
1282
|
);
|
1290
1283
|
}
|
1291
|
-
function
|
1292
|
-
return
|
1284
|
+
function on(t) {
|
1285
|
+
return t.type === "currency" ? /* @__PURE__ */ u.jsx(ir, { ...t }) : t.type === "masked" ? /* @__PURE__ */ u.jsx(ur, { ...t }) : t.type === "cpf-cnpj" ? /* @__PURE__ */ u.jsx(tr, { ...t }) : /* @__PURE__ */ u.jsx(fr, { ...t });
|
1293
1286
|
}
|
1294
|
-
function
|
1295
|
-
if (!
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
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 }) });
|
1287
|
+
function hr(t, r, n) {
|
1288
|
+
if (!t) return /* @__PURE__ */ u.jsx(u.Fragment, {});
|
1289
|
+
if (typeof t == "string") return /* @__PURE__ */ u.jsx("p", { className: n, children: t });
|
1290
|
+
const o = t;
|
1291
|
+
return /* @__PURE__ */ u.jsx("p", { className: n, children: /* @__PURE__ */ u.jsx(o, { color: "var(--secondary-600)", size: r, strokeWidth: 2.5 }) });
|
1301
1292
|
}
|
1302
|
-
function
|
1293
|
+
function mr(t, r) {
|
1303
1294
|
const {
|
1304
|
-
isLoading:
|
1305
|
-
isError:
|
1295
|
+
isLoading: n,
|
1296
|
+
isError: o,
|
1306
1297
|
size: l = "md",
|
1307
|
-
className:
|
1298
|
+
className: c = "",
|
1308
1299
|
variant: h = "solid",
|
1309
|
-
prefix:
|
1310
|
-
leftIcon:
|
1311
|
-
disabled:
|
1312
|
-
readOnly:
|
1313
|
-
onFocus:
|
1314
|
-
onBlur:
|
1315
|
-
title:
|
1316
|
-
style:
|
1317
|
-
isSearchable:
|
1318
|
-
closeOnSelect:
|
1319
|
-
...
|
1320
|
-
} =
|
1300
|
+
prefix: s,
|
1301
|
+
leftIcon: d,
|
1302
|
+
disabled: p,
|
1303
|
+
readOnly: g,
|
1304
|
+
onFocus: w,
|
1305
|
+
onBlur: a,
|
1306
|
+
title: v,
|
1307
|
+
style: I,
|
1308
|
+
isSearchable: j = !1,
|
1309
|
+
closeOnSelect: P = !0,
|
1310
|
+
...b
|
1311
|
+
} = t, A = `arkyn_select ${s ? "hasPrefix" : ""} ${h} ${l} ${p || g || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, M = { md: 20, lg: 20 }[l];
|
1321
1312
|
return {
|
1322
|
-
isLoading:
|
1323
|
-
className:
|
1324
|
-
prefix:
|
1325
|
-
LeftIcon:
|
1326
|
-
disabled:
|
1327
|
-
readOnly:
|
1328
|
-
onFocus:
|
1329
|
-
onBlur:
|
1330
|
-
title:
|
1331
|
-
closeOnSelect:
|
1332
|
-
style:
|
1333
|
-
isSearchable:
|
1334
|
-
iconSize:
|
1335
|
-
Spinner: /* @__PURE__ */
|
1336
|
-
...
|
1313
|
+
isLoading: n,
|
1314
|
+
className: A,
|
1315
|
+
prefix: hr(s, M, "prefix"),
|
1316
|
+
LeftIcon: d,
|
1317
|
+
disabled: p,
|
1318
|
+
readOnly: g,
|
1319
|
+
onFocus: w,
|
1320
|
+
onBlur: a,
|
1321
|
+
title: v,
|
1322
|
+
closeOnSelect: P,
|
1323
|
+
style: I,
|
1324
|
+
isSearchable: j,
|
1325
|
+
iconSize: M,
|
1326
|
+
Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: M, strokeWidth: 2.5 }),
|
1327
|
+
...b
|
1337
1328
|
};
|
1338
1329
|
}
|
1339
|
-
function
|
1340
|
-
var
|
1341
|
-
const [
|
1342
|
-
disabled:
|
1343
|
-
title:
|
1344
|
-
style:
|
1345
|
-
className:
|
1346
|
-
prefix:
|
1347
|
-
iconSize:
|
1348
|
-
isLoading:
|
1349
|
-
LeftIcon:
|
1350
|
-
value:
|
1351
|
-
defaultValue:
|
1352
|
-
readOnly:
|
1353
|
-
onFocus:
|
1354
|
-
onBlur:
|
1355
|
-
Spinner:
|
1356
|
-
name:
|
1357
|
-
isSearchable:
|
1358
|
-
placeholder:
|
1359
|
-
onSelect:
|
1360
|
-
options:
|
1361
|
-
optionMaxHeight:
|
1362
|
-
closeOnSelect:
|
1363
|
-
...
|
1364
|
-
} =
|
1365
|
-
function
|
1366
|
-
|
1330
|
+
function ln(t) {
|
1331
|
+
var Y;
|
1332
|
+
const [r, n] = pe(!1), { inputRef: o, id: l, error: c } = ke(), h = $e(null), s = o || h, d = t.isError || !!c, {
|
1333
|
+
disabled: p,
|
1334
|
+
title: g,
|
1335
|
+
style: w,
|
1336
|
+
className: a,
|
1337
|
+
prefix: v,
|
1338
|
+
iconSize: I,
|
1339
|
+
isLoading: j,
|
1340
|
+
LeftIcon: P,
|
1341
|
+
value: b = null,
|
1342
|
+
defaultValue: y = "",
|
1343
|
+
readOnly: H,
|
1344
|
+
onFocus: L,
|
1345
|
+
onBlur: R,
|
1346
|
+
Spinner: A,
|
1347
|
+
name: U,
|
1348
|
+
isSearchable: M,
|
1349
|
+
placeholder: J,
|
1350
|
+
onSelect: X,
|
1351
|
+
options: O,
|
1352
|
+
optionMaxHeight: G,
|
1353
|
+
closeOnSelect: C,
|
1354
|
+
...K
|
1355
|
+
} = mr({ ...t, id: l, isError: d }, r), [z, W] = pe(y), [Z, N] = pe("");
|
1356
|
+
function Q() {
|
1357
|
+
p || !(s != null && s.current) || (n(!0), s.current.focus());
|
1367
1358
|
}
|
1368
|
-
function
|
1369
|
-
|
1359
|
+
function de(ne) {
|
1360
|
+
n(!0), L && L(ne);
|
1370
1361
|
}
|
1371
|
-
function
|
1372
|
-
|
1362
|
+
function _() {
|
1363
|
+
n(!1), R && s.current && s.current.blur();
|
1373
1364
|
}
|
1374
|
-
const
|
1375
|
-
if (
|
1376
|
-
if (!
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
if (
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
if (n && !O)
|
1389
|
-
return !1;
|
1390
|
-
}
|
1391
|
-
}, te = z.filter((ue) => V ? ue.label.toLowerCase().includes(ie.toLowerCase()) : !0);
|
1392
|
-
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
1393
|
-
/* @__PURE__ */ m.jsxs(
|
1365
|
+
const S = typeof b == "string" ? b : z, E = ((Y = O.find((ne) => ne.value === S)) == null ? void 0 : Y.label) || "", re = () => {
|
1366
|
+
if (M) {
|
1367
|
+
if (!r && E) return !0;
|
1368
|
+
if (!r && !E || r) return !1;
|
1369
|
+
}
|
1370
|
+
if (!M) {
|
1371
|
+
if (!r && E) return !0;
|
1372
|
+
if (!r && !E) return !1;
|
1373
|
+
if (r && E) return !0;
|
1374
|
+
if (r && !E) return !1;
|
1375
|
+
}
|
1376
|
+
}, ee = O.filter((ne) => M ? ne.label.toLowerCase().includes(Z.toLowerCase()) : !0);
|
1377
|
+
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
1378
|
+
/* @__PURE__ */ u.jsxs(
|
1394
1379
|
"section",
|
1395
1380
|
{
|
1396
|
-
title:
|
1397
|
-
style:
|
1398
|
-
onClick:
|
1399
|
-
className: `${
|
1381
|
+
title: g,
|
1382
|
+
style: w,
|
1383
|
+
onClick: Q,
|
1384
|
+
className: `${a} placeholder_dark_${re()}`,
|
1400
1385
|
children: [
|
1401
|
-
|
1402
|
-
|
1403
|
-
/* @__PURE__ */
|
1386
|
+
v,
|
1387
|
+
P && /* @__PURE__ */ u.jsx(P, { size: I, strokeWidth: 2.5 }),
|
1388
|
+
/* @__PURE__ */ u.jsx(
|
1404
1389
|
"input",
|
1405
1390
|
{
|
1406
|
-
disabled:
|
1407
|
-
readOnly: !
|
1408
|
-
value:
|
1409
|
-
placeholder:
|
1410
|
-
onFocus:
|
1411
|
-
onBlur: () =>
|
1412
|
-
...
|
1413
|
-
onChange: (
|
1391
|
+
disabled: p || j,
|
1392
|
+
readOnly: !M,
|
1393
|
+
value: Z || "",
|
1394
|
+
placeholder: E || J,
|
1395
|
+
onFocus: de,
|
1396
|
+
onBlur: () => N(""),
|
1397
|
+
...K,
|
1398
|
+
onChange: (ne) => N(ne.target.value)
|
1414
1399
|
}
|
1415
1400
|
),
|
1416
|
-
/* @__PURE__ */
|
1401
|
+
/* @__PURE__ */ u.jsx(
|
1417
1402
|
"input",
|
1418
1403
|
{
|
1419
1404
|
type: "hidden",
|
1420
|
-
ref:
|
1421
|
-
name:
|
1422
|
-
value:
|
1405
|
+
ref: s,
|
1406
|
+
name: U,
|
1407
|
+
value: S || "",
|
1423
1408
|
readOnly: !0
|
1424
1409
|
}
|
1425
1410
|
),
|
1426
|
-
|
1411
|
+
r && /* @__PURE__ */ u.jsxs(
|
1427
1412
|
"ul",
|
1428
1413
|
{
|
1429
1414
|
className: "arkyn_select_content",
|
1430
|
-
style: { overflow: "auto", maxHeight:
|
1415
|
+
style: { overflow: "auto", maxHeight: G },
|
1431
1416
|
children: [
|
1432
|
-
|
1417
|
+
ee.map(({ label: ne, value: oe }) => /* @__PURE__ */ u.jsxs(
|
1433
1418
|
"li",
|
1434
1419
|
{
|
1435
|
-
className:
|
1420
|
+
className: S === oe ? "active" : "",
|
1436
1421
|
onClick: () => {
|
1437
|
-
|
1422
|
+
W(z !== oe ? oe : ""), X && X({ label: ne, value: oe }), C && setTimeout(() => _(), 100);
|
1438
1423
|
},
|
1439
1424
|
children: [
|
1440
|
-
|
1425
|
+
ne,
|
1441
1426
|
" ",
|
1442
|
-
/* @__PURE__ */
|
1427
|
+
/* @__PURE__ */ u.jsx(Et, {})
|
1443
1428
|
]
|
1444
1429
|
},
|
1445
|
-
|
1430
|
+
oe
|
1446
1431
|
)),
|
1447
|
-
|
1432
|
+
ee.length <= 0 && /* @__PURE__ */ u.jsx("p", { children: "Sem opções disponíveis" })
|
1448
1433
|
]
|
1449
1434
|
}
|
1450
1435
|
),
|
1451
|
-
!
|
1452
|
-
|
1436
|
+
!j && /* @__PURE__ */ u.jsx(
|
1437
|
+
Vt,
|
1453
1438
|
{
|
1454
1439
|
className: "arkyn_select_arrow",
|
1455
|
-
size:
|
1440
|
+
size: I,
|
1456
1441
|
strokeWidth: 2.5
|
1457
1442
|
}
|
1458
1443
|
),
|
1459
|
-
|
1444
|
+
j && A
|
1460
1445
|
]
|
1461
1446
|
}
|
1462
1447
|
),
|
1463
|
-
|
1448
|
+
r && /* @__PURE__ */ u.jsx("aside", { className: "arkyn_select_overlay", onClick: _ })
|
1464
1449
|
] });
|
1465
1450
|
}
|
1466
|
-
function
|
1467
|
-
const { className:
|
1468
|
-
return { className: `arkyn_breadcrumb ${
|
1451
|
+
function pr(t) {
|
1452
|
+
const { className: r = "", ...n } = t;
|
1453
|
+
return { className: `arkyn_breadcrumb ${r}`.trim(), ...n };
|
1469
1454
|
}
|
1470
|
-
function
|
1471
|
-
const { pathname:
|
1472
|
-
className:
|
1473
|
-
disabled:
|
1455
|
+
function gr(t) {
|
1456
|
+
const { pathname: r } = St(), {
|
1457
|
+
className: n = "",
|
1458
|
+
disabled: o = !1,
|
1474
1459
|
to: l,
|
1475
|
-
...
|
1476
|
-
} =
|
1460
|
+
...c
|
1461
|
+
} = t, h = r === l ? "active" : "inactive", s = `arkyn_breadcrumb_link ${h} ${n}`;
|
1477
1462
|
return {
|
1478
1463
|
to: l,
|
1479
|
-
className:
|
1480
|
-
disabled:
|
1481
|
-
...
|
1464
|
+
className: s.trim(),
|
1465
|
+
disabled: o || h === "active",
|
1466
|
+
...c
|
1482
1467
|
};
|
1483
1468
|
}
|
1484
|
-
function
|
1485
|
-
const { className:
|
1486
|
-
return /* @__PURE__ */
|
1469
|
+
function cn(t) {
|
1470
|
+
const { className: r, ...n } = pr(t);
|
1471
|
+
return /* @__PURE__ */ u.jsx("nav", { className: r, ...n });
|
1487
1472
|
}
|
1488
|
-
function
|
1489
|
-
const { children:
|
1490
|
-
return
|
1491
|
-
/* @__PURE__ */
|
1492
|
-
|
1493
|
-
] }) : /* @__PURE__ */
|
1494
|
-
/* @__PURE__ */
|
1495
|
-
|
1473
|
+
function un(t) {
|
1474
|
+
const { children: r, className: n, disabled: o, ...l } = gr(t);
|
1475
|
+
return o ? /* @__PURE__ */ u.jsxs("p", { className: n, children: [
|
1476
|
+
/* @__PURE__ */ u.jsx(pt, { size: 14, strokeWidth: 2.5 }),
|
1477
|
+
r
|
1478
|
+
] }) : /* @__PURE__ */ u.jsxs(Ut, { className: n, ...l, children: [
|
1479
|
+
/* @__PURE__ */ u.jsx(pt, { size: 14, strokeWidth: 2.5 }),
|
1480
|
+
r
|
1496
1481
|
] });
|
1497
1482
|
}
|
1498
|
-
const
|
1499
|
-
function
|
1483
|
+
const _t = qe({});
|
1484
|
+
function vr(t) {
|
1500
1485
|
const {
|
1501
|
-
isVisibled:
|
1502
|
-
makeInvisible:
|
1503
|
-
children:
|
1486
|
+
isVisibled: r,
|
1487
|
+
makeInvisible: n,
|
1488
|
+
children: o,
|
1504
1489
|
className: l = "",
|
1505
|
-
...
|
1506
|
-
} =
|
1507
|
-
return /* @__PURE__ */
|
1508
|
-
/* @__PURE__ */
|
1509
|
-
|
1490
|
+
...c
|
1491
|
+
} = t, s = `arkyn_modal_container ${r ? "visible" : ""} ${l}`;
|
1492
|
+
return /* @__PURE__ */ u.jsx(_t.Provider, { value: { makeInvisible: n }, children: /* @__PURE__ */ u.jsx(Kt, { children: r && /* @__PURE__ */ u.jsxs("aside", { className: s.trim(), ...c, children: [
|
1493
|
+
/* @__PURE__ */ u.jsx(
|
1494
|
+
gt.div,
|
1510
1495
|
{
|
1511
1496
|
className: "overlay",
|
1512
1497
|
transition: { duration: 0.15, ease: "easeOut" },
|
1513
1498
|
initial: { opacity: 0 },
|
1514
1499
|
animate: { opacity: 1 },
|
1515
1500
|
exit: { opacity: 0 },
|
1516
|
-
onClick:
|
1501
|
+
onClick: n
|
1517
1502
|
}
|
1518
1503
|
),
|
1519
|
-
/* @__PURE__ */
|
1520
|
-
|
1504
|
+
/* @__PURE__ */ u.jsx(
|
1505
|
+
gt.div,
|
1521
1506
|
{
|
1522
1507
|
className: "content",
|
1523
1508
|
transition: { duration: 0.15, ease: "easeOut" },
|
1524
1509
|
initial: { opacity: 0, scale: 0.75 },
|
1525
1510
|
animate: { opacity: 1, scale: 1 },
|
1526
1511
|
exit: { opacity: 0, scale: 0 },
|
1527
|
-
children:
|
1512
|
+
children: o
|
1528
1513
|
}
|
1529
1514
|
)
|
1530
1515
|
] }) }) });
|
1531
1516
|
}
|
1532
|
-
function
|
1533
|
-
const { alignment:
|
1534
|
-
return /* @__PURE__ */
|
1517
|
+
function br(t) {
|
1518
|
+
const { alignment: r = "right", className: n, ...o } = t, l = `arkyn_modal_footer ${r} ${n}`;
|
1519
|
+
return /* @__PURE__ */ u.jsx("footer", { className: l.trim(), ...o });
|
1535
1520
|
}
|
1536
|
-
function
|
1537
|
-
const { showCloseButton:
|
1538
|
-
return /* @__PURE__ */
|
1539
|
-
|
1540
|
-
/* @__PURE__ */
|
1521
|
+
function yr(t) {
|
1522
|
+
const { showCloseButton: r, className: n, children: o, ...l } = t, { makeInvisible: c } = Be(_t), s = `arkyn_modal_header ${r ? "show-close" : ""} ${n}`;
|
1523
|
+
return /* @__PURE__ */ u.jsxs("header", { className: s.trim(), ...l, children: [
|
1524
|
+
o,
|
1525
|
+
/* @__PURE__ */ u.jsx("button", { type: "button", onClick: c, children: /* @__PURE__ */ u.jsx(Yt, { size: 24 }) })
|
1541
1526
|
] });
|
1542
1527
|
}
|
1543
|
-
const
|
1544
|
-
function
|
1528
|
+
const dn = { Container: vr, Header: yr, Footer: br };
|
1529
|
+
function fn(t) {
|
1545
1530
|
const {
|
1546
|
-
text:
|
1547
|
-
size:
|
1548
|
-
children:
|
1531
|
+
text: r,
|
1532
|
+
size: n = "lg",
|
1533
|
+
children: o,
|
1549
1534
|
orientation: l = "top",
|
1550
|
-
className:
|
1535
|
+
className: c,
|
1551
1536
|
...h
|
1552
|
-
} =
|
1553
|
-
return /* @__PURE__ */
|
1537
|
+
} = t;
|
1538
|
+
return /* @__PURE__ */ u.jsxs(
|
1554
1539
|
"div",
|
1555
1540
|
{
|
1556
|
-
className: `arkyn_tooltip ${
|
1541
|
+
className: `arkyn_tooltip ${n} ${l} ${c}`,
|
1557
1542
|
...h,
|
1558
1543
|
children: [
|
1559
|
-
|
1560
|
-
/* @__PURE__ */
|
1544
|
+
o,
|
1545
|
+
/* @__PURE__ */ u.jsx("div", { className: "arkyn_tooltip_text", children: r })
|
1561
1546
|
]
|
1562
1547
|
}
|
1563
1548
|
);
|
1564
1549
|
}
|
1565
|
-
const
|
1566
|
-
function
|
1567
|
-
const
|
1568
|
-
if (Object.entries(
|
1550
|
+
const lt = qe({}), Tt = qe({});
|
1551
|
+
function xr() {
|
1552
|
+
const t = Be(Tt);
|
1553
|
+
if (Object.entries(t).length === 0)
|
1569
1554
|
throw new Error("useToast must be used within a Provider");
|
1570
|
-
return
|
1555
|
+
return t;
|
1571
1556
|
}
|
1572
|
-
function
|
1573
|
-
const
|
1574
|
-
|
1575
|
-
const l =
|
1576
|
-
l &&
|
1577
|
-
}, [
|
1578
|
-
typeof (
|
1579
|
-
}, [
|
1557
|
+
function hn() {
|
1558
|
+
const t = kt(), { closeModal: r } = Be(lt), { successToast: n, errorToast: o } = xr();
|
1559
|
+
mt(() => {
|
1560
|
+
const l = t == null ? void 0 : t.closeModalKey;
|
1561
|
+
l && r(l);
|
1562
|
+
}, [t]), mt(() => {
|
1563
|
+
typeof (t == null ? void 0 : t.message) == "string" && typeof (t == null ? void 0 : t.success) == "boolean" && (t != null && t.success ? n(t == null ? void 0 : t.message) : o(t == null ? void 0 : t.message));
|
1564
|
+
}, [t]);
|
1580
1565
|
}
|
1581
|
-
function
|
1582
|
-
const
|
1583
|
-
if (Object.entries(
|
1566
|
+
function mn(t) {
|
1567
|
+
const r = Be(lt);
|
1568
|
+
if (Object.entries(r).length === 0)
|
1584
1569
|
throw new Error("useModal must be used within a Provider");
|
1585
|
-
if (
|
1570
|
+
if (t) {
|
1586
1571
|
const {
|
1587
|
-
modalData:
|
1588
|
-
modalIsOpen:
|
1572
|
+
modalData: n,
|
1573
|
+
modalIsOpen: o,
|
1589
1574
|
openModal: l,
|
1590
|
-
closeModal:
|
1591
|
-
} =
|
1592
|
-
return { modalIsOpen: h, modalData:
|
1575
|
+
closeModal: c
|
1576
|
+
} = r, h = o(t), s = n(t);
|
1577
|
+
return { modalIsOpen: h, modalData: s, openModal: (g) => l(t, g == null ? void 0 : g.data), closeModal: () => c(t) };
|
1593
1578
|
} else
|
1594
|
-
return
|
1579
|
+
return r;
|
1595
1580
|
}
|
1596
|
-
function
|
1597
|
-
const
|
1598
|
-
Object.entries(
|
1599
|
-
|
1581
|
+
function pn(t = "") {
|
1582
|
+
const r = St(), n = new URLSearchParams(r.search), o = t ? `${t}:` : "", l = (c) => {
|
1583
|
+
Object.entries(c).forEach(([h, s]) => {
|
1584
|
+
s === void 0 ? n.delete(`${o}${h}`) : n.set(`${o}${h}`, String(s));
|
1600
1585
|
});
|
1601
1586
|
};
|
1602
1587
|
return {
|
1603
|
-
getParam: (
|
1604
|
-
getScopedSearch: (
|
1605
|
-
l(
|
1606
|
-
let h =
|
1588
|
+
getParam: (c) => n.get(`${o}${c}`),
|
1589
|
+
getScopedSearch: (c) => {
|
1590
|
+
l(c);
|
1591
|
+
let h = n.toString();
|
1607
1592
|
return h && (h = "?" + h), h;
|
1608
1593
|
}
|
1609
1594
|
};
|
1610
1595
|
}
|
1611
|
-
function
|
1612
|
-
const { children:
|
1613
|
-
function l(
|
1614
|
-
return !!
|
1596
|
+
function gn(t) {
|
1597
|
+
const { children: r = !1 } = t, [n, o] = pe([]);
|
1598
|
+
function l(d) {
|
1599
|
+
return !!n.some((p) => p.key === d);
|
1615
1600
|
}
|
1616
|
-
function
|
1617
|
-
var
|
1618
|
-
return (
|
1601
|
+
function c(d) {
|
1602
|
+
var p;
|
1603
|
+
return (p = n.find((g) => g.key === d)) == null ? void 0 : p.data;
|
1619
1604
|
}
|
1620
|
-
function h(
|
1621
|
-
const
|
1622
|
-
|
1605
|
+
function h(d, p) {
|
1606
|
+
const g = l(d);
|
1607
|
+
o(g ? (w) => [...w.filter((v) => v.key !== d), { key: d, data: p }] : [...n, { key: d, data: p }]);
|
1623
1608
|
}
|
1624
|
-
function
|
1625
|
-
|
1609
|
+
function s(d) {
|
1610
|
+
o(n.filter((p) => p.key !== d));
|
1626
1611
|
}
|
1627
|
-
return /* @__PURE__ */
|
1628
|
-
|
1612
|
+
return /* @__PURE__ */ u.jsx(
|
1613
|
+
lt.Provider,
|
1629
1614
|
{
|
1630
|
-
value: { modalIsOpen: l, modalData:
|
1631
|
-
children:
|
1615
|
+
value: { modalIsOpen: l, modalData: c, openModal: h, closeModal: s },
|
1616
|
+
children: r
|
1632
1617
|
}
|
1633
1618
|
);
|
1634
1619
|
}
|
1635
|
-
var
|
1636
|
-
|
1637
|
-
return e;
|
1638
|
-
});
|
1639
|
-
Re || (Re = function(e) {
|
1640
|
-
return e;
|
1641
|
-
});
|
1642
|
-
zt || (zt = function(e, n, a) {
|
1643
|
-
return e.apply(n, a);
|
1644
|
-
});
|
1645
|
-
$t || ($t = function(e, n) {
|
1646
|
-
return new e(...n);
|
1647
|
-
});
|
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) {
|
1651
|
-
for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
|
1652
|
-
s[l - 1] = arguments[l];
|
1653
|
-
return zt(e, n, s);
|
1654
|
-
};
|
1655
|
-
}
|
1656
|
-
function ir(e) {
|
1657
|
-
return function() {
|
1658
|
-
for (var n = arguments.length, a = new Array(n), s = 0; s < n; s++)
|
1659
|
-
a[s] = arguments[s];
|
1660
|
-
return $t(e, a);
|
1661
|
-
};
|
1662
|
-
}
|
1663
|
-
function B(e, n) {
|
1664
|
-
let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Nt;
|
1665
|
-
Jt && Jt(e, null);
|
1666
|
-
let s = n.length;
|
1667
|
-
for (; s--; ) {
|
1668
|
-
let l = n[s];
|
1669
|
-
if (typeof l == "string") {
|
1670
|
-
let u = a(l);
|
1671
|
-
u !== l && (nr(n) || (n[s] = u), l = u);
|
1672
|
-
}
|
1673
|
-
e[l] = !0;
|
1674
|
-
}
|
1675
|
-
return e;
|
1676
|
-
}
|
1677
|
-
function lr(e) {
|
1678
|
-
for (let n = 0; n < e.length; n++)
|
1679
|
-
Pe(e, n) || (e[n] = null);
|
1680
|
-
return e;
|
1681
|
-
}
|
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;
|
1687
|
-
}
|
1688
|
-
function Et(e, n) {
|
1689
|
-
for (; e !== null; ) {
|
1690
|
-
let s = ar(e, n);
|
1691
|
-
if (s) {
|
1692
|
-
if (s.get)
|
1693
|
-
return _e(s.get);
|
1694
|
-
if (typeof s.value == "function")
|
1695
|
-
return _e(s.value);
|
1696
|
-
}
|
1697
|
-
e = rr(e);
|
1698
|
-
}
|
1699
|
-
function a() {
|
1700
|
-
return null;
|
1701
|
-
}
|
1702
|
-
return a;
|
1703
|
-
}
|
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() {
|
1705
|
-
return typeof window > "u" ? null : window;
|
1706
|
-
}, xr = function(e, n) {
|
1707
|
-
if (typeof e != "object" || typeof e.createPolicy != "function")
|
1708
|
-
return null;
|
1709
|
-
let a = null, s = "data-tt-policy-suffix";
|
1710
|
-
n && n.hasAttribute(s) && (a = n.getAttribute(s));
|
1711
|
-
let l = "dompurify" + (a ? "#" + a : "");
|
1712
|
-
try {
|
1713
|
-
return e.createPolicy(l, { createHTML(u) {
|
1714
|
-
return u;
|
1715
|
-
}, createScriptURL(u) {
|
1716
|
-
return u;
|
1717
|
-
} });
|
1718
|
-
} catch {
|
1719
|
-
return console.warn("TrustedTypes policy " + l + " could not be created."), null;
|
1720
|
-
}
|
1721
|
-
};
|
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");
|
1727
|
-
if (typeof h == "function") {
|
1728
|
-
let t = a.createElement("template");
|
1729
|
-
t.content && t.content.ownerDocument && (a = t.content.ownerDocument);
|
1730
|
-
}
|
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;
|
1735
|
-
}, tt = function() {
|
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")
|
1740
|
-
throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
1741
|
-
if (typeof t.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
1742
|
-
throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
1743
|
-
L = t.TRUSTED_TYPES_POLICY, W = L.createHTML("");
|
1744
|
-
} else
|
1745
|
-
L === void 0 && (L = xr(b, l)), L !== null && typeof W == "string" && (W = L.createHTML(""));
|
1746
|
-
xe && xe(t), be = t;
|
1747
|
-
}
|
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);
|
1750
|
-
(!f || !f.tagName) && (f = { namespaceURI: ze, tagName: "template" });
|
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 });
|
1755
|
-
try {
|
1756
|
-
t.parentNode.removeChild(t);
|
1757
|
-
} catch {
|
1758
|
-
t.remove();
|
1759
|
-
}
|
1760
|
-
}, nt = function(t, f) {
|
1761
|
-
try {
|
1762
|
-
mt(n.removed, { attribute: f.getAttributeNode(t), from: f });
|
1763
|
-
} catch {
|
1764
|
-
mt(n.removed, { attribute: null, from: f });
|
1765
|
-
}
|
1766
|
-
if (f.removeAttribute(t), t === "is" && !x[t])
|
1767
|
-
if (oe || he)
|
1768
|
-
try {
|
1769
|
-
Ve(f);
|
1770
|
-
} catch {
|
1771
|
-
}
|
1772
|
-
else
|
1773
|
-
try {
|
1774
|
-
f.setAttribute(t, "");
|
1775
|
-
} catch {
|
1776
|
-
}
|
1777
|
-
}, ut = function(t) {
|
1778
|
-
let f = null, i = null;
|
1779
|
-
if (qe)
|
1780
|
-
t = "<remove></remove>" + t;
|
1781
|
-
else {
|
1782
|
-
let I = Qt(t, /^[\r\n\t ]+/);
|
1783
|
-
i = I && I[0];
|
1784
|
-
}
|
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)
|
1788
|
-
try {
|
1789
|
-
f = new N().parseFromString(C, Q);
|
1790
|
-
} catch {
|
1791
|
-
}
|
1792
|
-
if (!f || !f.documentElement) {
|
1793
|
-
f = D.createDocument(ze, "template", null);
|
1794
|
-
try {
|
1795
|
-
f.documentElement.innerHTML = Ye ? W : C;
|
1796
|
-
} catch {
|
1797
|
-
}
|
1798
|
-
}
|
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);
|
1810
|
-
});
|
1811
|
-
}, r = function(t) {
|
1812
|
-
let f = null;
|
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;
|
1818
|
-
if (!G[i] || te[i]) {
|
1819
|
-
if (!te[i] && g(i) && (j.tagNameCheck instanceof RegExp && Te(j.tagNameCheck, i) || j.tagNameCheck instanceof Function && j.tagNameCheck(i)))
|
1820
|
-
return !1;
|
1821
|
-
if (Be && !Le[i]) {
|
1822
|
-
let C = E(t) || t.parentNode, M = w(t) || t.childNodes;
|
1823
|
-
if (M && C) {
|
1824
|
-
let I = M.length;
|
1825
|
-
for (let ce = I - 1; ce >= 0; --ce)
|
1826
|
-
C.insertBefore(A(M[ce], !0), U(t));
|
1827
|
-
}
|
1828
|
-
}
|
1829
|
-
return Ve(t), !0;
|
1830
|
-
}
|
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) {
|
1835
|
-
if (Je && (f === "id" || f === "name") && (i in a || i in st))
|
1836
|
-
return !1;
|
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))))
|
1840
|
-
return !1;
|
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)
|
1842
|
-
return !1;
|
1843
|
-
}
|
1844
|
-
return !0;
|
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;
|
1850
|
-
if (!f)
|
1851
|
-
return;
|
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))
|
1856
|
-
continue;
|
1857
|
-
if (!we && Te(/\/>/i, q)) {
|
1858
|
-
nt(I, t);
|
1859
|
-
continue;
|
1860
|
-
}
|
1861
|
-
Ae && wt([z, ae, k], (xt) => {
|
1862
|
-
q = pt(q, xt, " ");
|
1863
|
-
});
|
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)) {
|
1868
|
-
case "TrustedHTML": {
|
1869
|
-
q = L.createHTML(q);
|
1870
|
-
break;
|
1871
|
-
}
|
1872
|
-
case "TrustedScriptURL": {
|
1873
|
-
q = L.createScriptURL(q);
|
1874
|
-
break;
|
1875
|
-
}
|
1876
|
-
}
|
1877
|
-
try {
|
1878
|
-
ce ? t.setAttributeNS(ce, I, q) : t.setAttribute(I, q), Zt(n.removed);
|
1879
|
-
} catch {
|
1880
|
-
}
|
1881
|
-
}
|
1882
|
-
}
|
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));
|
1888
|
-
Oe("afterSanitizeShadowDOM", f, null);
|
1889
|
-
};
|
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")
|
1895
|
-
throw ht("dirty is not a string, aborting");
|
1896
|
-
} else
|
1897
|
-
throw ht("toString is not a function");
|
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])
|
1904
|
-
throw ht("root node is forbidden and cannot be sanitized in-place");
|
1905
|
-
}
|
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);
|
1908
|
-
else {
|
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 : "";
|
1913
|
-
}
|
1914
|
-
i && qe && Ve(i.firstChild);
|
1915
|
-
let ce = yt(Se ? t : i);
|
1916
|
-
for (; M = ce.nextNode(); )
|
1917
|
-
r(M) || (M.content instanceof u && H(M.content), T(M));
|
1918
|
-
if (Se)
|
1919
|
-
return t;
|
1920
|
-
if (oe) {
|
1921
|
-
if (he)
|
1922
|
-
for (I = ee.call(i.ownerDocument); i.firstChild; )
|
1923
|
-
I.appendChild(i.firstChild);
|
1924
|
-
else
|
1925
|
-
I = i;
|
1926
|
-
return (x.shadowroot || x.shadowrootmode) && (I = re.call(s, I, !0)), I;
|
1927
|
-
}
|
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() {
|
1937
|
-
be = null, Xe = !1;
|
1938
|
-
}, n.isValidAttribute = function(t, f, i) {
|
1939
|
-
be || tt({});
|
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;
|
1952
|
-
}
|
1953
|
-
var wr = xn(), Er = (e) => {
|
1954
|
-
switch (e) {
|
1620
|
+
var wr = (t) => {
|
1621
|
+
switch (t) {
|
1955
1622
|
case "success":
|
1956
|
-
return
|
1623
|
+
return Sr;
|
1957
1624
|
case "info":
|
1958
|
-
return
|
1625
|
+
return jr;
|
1959
1626
|
case "warning":
|
1960
|
-
return Nr;
|
1961
|
-
case "error":
|
1962
1627
|
return Cr;
|
1628
|
+
case "error":
|
1629
|
+
return Nr;
|
1963
1630
|
default:
|
1964
1631
|
return null;
|
1965
1632
|
}
|
1966
|
-
},
|
1967
|
-
let [
|
1968
|
-
return
|
1969
|
-
let
|
1970
|
-
|
1633
|
+
}, Er = Array(12).fill(0), kr = ({ visible: t }) => f.createElement("div", { className: "sonner-loading-wrapper", "data-visible": t }, f.createElement("div", { className: "sonner-spinner" }, Er.map((r, n) => f.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${n}` })))), Sr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, f.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" })), Cr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, f.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" })), jr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, f.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" })), Nr = f.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, f.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 = () => {
|
1634
|
+
let [t, r] = f.useState(document.hidden);
|
1635
|
+
return f.useEffect(() => {
|
1636
|
+
let n = () => {
|
1637
|
+
r(document.hidden);
|
1971
1638
|
};
|
1972
|
-
return document.addEventListener("visibilitychange",
|
1973
|
-
}, []),
|
1974
|
-
},
|
1639
|
+
return document.addEventListener("visibilitychange", n), () => window.removeEventListener("visibilitychange", n);
|
1640
|
+
}, []), t;
|
1641
|
+
}, st = 1, _r = class {
|
1975
1642
|
constructor() {
|
1976
|
-
this.subscribe = (
|
1977
|
-
let
|
1978
|
-
this.subscribers.splice(
|
1979
|
-
}), this.publish = (
|
1980
|
-
this.subscribers.forEach((
|
1981
|
-
}, this.addToast = (
|
1982
|
-
this.publish(
|
1983
|
-
}, this.create = (
|
1984
|
-
var
|
1985
|
-
let { message:
|
1986
|
-
return
|
1987
|
-
}, this.dismiss = (
|
1988
|
-
this.subscribers.forEach((
|
1989
|
-
}), this.subscribers.forEach((
|
1990
|
-
if (!
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
if (u && typeof u.ok == "boolean" && !u.ok) {
|
1643
|
+
this.subscribe = (t) => (this.subscribers.push(t), () => {
|
1644
|
+
let r = this.subscribers.indexOf(t);
|
1645
|
+
this.subscribers.splice(r, 1);
|
1646
|
+
}), this.publish = (t) => {
|
1647
|
+
this.subscribers.forEach((r) => r(t));
|
1648
|
+
}, this.addToast = (t) => {
|
1649
|
+
this.publish(t), this.toasts = [...this.toasts, t];
|
1650
|
+
}, this.create = (t) => {
|
1651
|
+
var r;
|
1652
|
+
let { message: n, ...o } = t, l = typeof (t == null ? void 0 : t.id) == "number" || ((r = t.id) == null ? void 0 : r.length) > 0 ? t.id : st++, c = this.toasts.find((s) => s.id === l), h = t.dismissible === void 0 ? !0 : t.dismissible;
|
1653
|
+
return c ? this.toasts = this.toasts.map((s) => s.id === l ? (this.publish({ ...s, ...t, id: l, title: n }), { ...s, ...t, id: l, dismissible: h, title: n }) : s) : this.addToast({ title: n, ...o, dismissible: h, id: l }), l;
|
1654
|
+
}, this.dismiss = (t) => (t || this.toasts.forEach((r) => {
|
1655
|
+
this.subscribers.forEach((n) => n({ id: r.id, dismiss: !0 }));
|
1656
|
+
}), this.subscribers.forEach((r) => r({ id: t, dismiss: !0 })), t), this.message = (t, r) => this.create({ ...r, message: t }), this.error = (t, r) => this.create({ ...r, message: t, type: "error" }), this.success = (t, r) => this.create({ ...r, type: "success", message: t }), this.info = (t, r) => this.create({ ...r, type: "info", message: t }), this.warning = (t, r) => this.create({ ...r, type: "warning", message: t }), this.loading = (t, r) => this.create({ ...r, type: "loading", message: t }), this.promise = (t, r) => {
|
1657
|
+
if (!r) return;
|
1658
|
+
let n;
|
1659
|
+
r.loading !== void 0 && (n = this.create({ ...r, promise: t, type: "loading", message: r.loading, description: typeof r.description != "function" ? r.description : void 0 }));
|
1660
|
+
let o = t instanceof Promise ? t : t(), l = n !== void 0;
|
1661
|
+
return o.then(async (c) => {
|
1662
|
+
if ($r(c) && !c.ok) {
|
1997
1663
|
l = !1;
|
1998
|
-
let h = typeof
|
1999
|
-
this.create({ id:
|
2000
|
-
} else if (
|
1664
|
+
let h = typeof r.error == "function" ? await r.error(`HTTP error! status: ${c.status}`) : r.error, s = typeof r.description == "function" ? await r.description(`HTTP error! status: ${c.status}`) : r.description;
|
1665
|
+
this.create({ id: n, type: "error", message: h, description: s });
|
1666
|
+
} else if (r.success !== void 0) {
|
2001
1667
|
l = !1;
|
2002
|
-
let h = typeof
|
2003
|
-
this.create({ id:
|
1668
|
+
let h = typeof r.success == "function" ? await r.success(c) : r.success, s = typeof r.description == "function" ? await r.description(c) : r.description;
|
1669
|
+
this.create({ id: n, type: "success", message: h, description: s });
|
2004
1670
|
}
|
2005
|
-
}).catch((
|
2006
|
-
if (
|
1671
|
+
}).catch(async (c) => {
|
1672
|
+
if (r.error !== void 0) {
|
2007
1673
|
l = !1;
|
2008
|
-
let h = typeof
|
2009
|
-
this.create({ id:
|
1674
|
+
let h = typeof r.error == "function" ? await r.error(c) : r.error, s = typeof r.description == "function" ? await r.description(c) : r.description;
|
1675
|
+
this.create({ id: n, type: "error", message: h, description: s });
|
2010
1676
|
}
|
2011
1677
|
}).finally(() => {
|
2012
|
-
var
|
2013
|
-
l && (this.dismiss(
|
2014
|
-
}),
|
2015
|
-
}, this.custom = (
|
2016
|
-
let
|
2017
|
-
return this.create({ jsx:
|
1678
|
+
var c;
|
1679
|
+
l && (this.dismiss(n), n = void 0), (c = r.finally) == null || c.call(r);
|
1680
|
+
}), n;
|
1681
|
+
}, this.custom = (t, r) => {
|
1682
|
+
let n = (r == null ? void 0 : r.id) || st++;
|
1683
|
+
return this.create({ jsx: t(n), id: n, ...r }), n;
|
2018
1684
|
}, this.subscribers = [], this.toasts = [];
|
2019
1685
|
}
|
2020
|
-
},
|
2021
|
-
let
|
2022
|
-
return
|
2023
|
-
},
|
2024
|
-
function Or(
|
2025
|
-
if (!
|
2026
|
-
|
2027
|
-
|
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));
|
1686
|
+
}, ue = new _r(), Tr = (t, r) => {
|
1687
|
+
let n = (r == null ? void 0 : r.id) || st++;
|
1688
|
+
return ue.addToast({ title: t, ...r, id: n }), n;
|
1689
|
+
}, $r = (t) => t && typeof t == "object" && "ok" in t && typeof t.ok == "boolean" && "status" in t && typeof t.status == "number", Ir = Tr, Pr = () => ue.toasts, Ke = Object.assign(Ir, { success: ue.success, info: ue.info, warning: ue.warning, error: ue.error, custom: ue.custom, message: ue.message, promise: ue.promise, dismiss: ue.dismiss, loading: ue.loading }, { getHistory: Pr });
|
1690
|
+
function Or(t, { insertAt: r } = {}) {
|
1691
|
+
if (!t || typeof document > "u") return;
|
1692
|
+
let n = document.head || document.getElementsByTagName("head")[0], o = document.createElement("style");
|
1693
|
+
o.type = "text/css", r === "top" && n.firstChild ? n.insertBefore(o, n.firstChild) : n.appendChild(o), o.styleSheet ? o.styleSheet.cssText = t : o.appendChild(document.createTextNode(t));
|
2029
1694
|
}
|
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%)}
|
1695
|
+
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%)}
|
2031
1696
|
`);
|
2032
|
-
function
|
2033
|
-
return
|
1697
|
+
function Je(t) {
|
1698
|
+
return t.label !== void 0;
|
2034
1699
|
}
|
2035
|
-
var
|
2036
|
-
function
|
2037
|
-
return
|
1700
|
+
var zr = 3, Fr = "32px", Lr = 4e3, Mr = 356, Br = 14, Dr = 20, Ar = 200;
|
1701
|
+
function Wr(...t) {
|
1702
|
+
return t.filter(Boolean).join(" ");
|
2038
1703
|
}
|
2039
|
-
var
|
2040
|
-
var
|
2041
|
-
let { invert:
|
2042
|
-
var
|
2043
|
-
return (
|
2044
|
-
}, [
|
2045
|
-
|
2046
|
-
|
2047
|
-
}, []),
|
2048
|
-
if (!
|
2049
|
-
|
2050
|
-
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2054
|
-
|
2055
|
-
|
2056
|
-
|
2057
|
-
|
2058
|
-
|
2059
|
-
|
2060
|
-
|
2061
|
-
|
2062
|
-
|
2063
|
-
|
2064
|
-
|
2065
|
-
|
2066
|
-
let Q = (/* @__PURE__ */ new Date()).getTime() - Se.current;
|
2067
|
-
se = se - Q;
|
1704
|
+
var Vr = (t) => {
|
1705
|
+
var r, n, o, l, c, h, s, d, p, g;
|
1706
|
+
let { invert: w, toast: a, unstyled: v, interacting: I, setHeights: j, visibleToasts: P, heights: b, index: y, toasts: H, expanded: L, removeToast: R, defaultRichColors: A, closeButton: U, style: M, cancelButtonStyle: J, actionButtonStyle: X, className: O = "", descriptionClassName: G = "", duration: C, position: K, gap: z, loadingIcon: W, expandByDefault: Z, classNames: N, icons: Q, closeButtonAriaLabel: de = "Close toast", pauseWhenPageIsHidden: _, cn: S } = t, [E, re] = f.useState(!1), [ee, Y] = f.useState(!1), [ne, oe] = f.useState(!1), [be, ge] = f.useState(!1), [Ge, Ne] = f.useState(0), [Ze, De] = f.useState(0), Se = f.useRef(null), fe = f.useRef(null), Ae = y === 0, We = y + 1 <= P, ae = a.type, xe = a.dismissible !== !1, Qe = a.className || "", Ie = a.descriptionClassName || "", Re = f.useMemo(() => b.findIndex((k) => k.toastId === a.id) || 0, [b, a.id]), et = f.useMemo(() => {
|
1707
|
+
var k;
|
1708
|
+
return (k = a.closeButton) != null ? k : U;
|
1709
|
+
}, [a.closeButton, U]), Pe = f.useMemo(() => a.duration || C || Lr, [a.duration, C]), _e = f.useRef(0), he = f.useRef(0), Ve = f.useRef(0), ye = f.useRef(null), [Oe, ze] = K.split("-"), Ye = f.useMemo(() => b.reduce((k, B, D) => D >= Re ? k : k + B.height, 0), [b, Re]), Ue = Rr(), tt = a.invert || w, Fe = ae === "loading";
|
1710
|
+
he.current = f.useMemo(() => Re * z + Ye, [Re, Ye]), f.useEffect(() => {
|
1711
|
+
re(!0);
|
1712
|
+
}, []), f.useLayoutEffect(() => {
|
1713
|
+
if (!E) return;
|
1714
|
+
let k = fe.current, B = k.style.height;
|
1715
|
+
k.style.height = "auto";
|
1716
|
+
let D = k.getBoundingClientRect().height;
|
1717
|
+
k.style.height = B, De(D), j((se) => se.find((le) => le.toastId === a.id) ? se.map((le) => le.toastId === a.id ? { ...le, height: D } : le) : [{ toastId: a.id, height: D, position: a.position }, ...se]);
|
1718
|
+
}, [E, a.title, a.description, j, a.id]);
|
1719
|
+
let ve = f.useCallback(() => {
|
1720
|
+
Y(!0), Ne(he.current), j((k) => k.filter((B) => B.toastId !== a.id)), setTimeout(() => {
|
1721
|
+
R(a);
|
1722
|
+
}, Ar);
|
1723
|
+
}, [a, R, j, he]);
|
1724
|
+
f.useEffect(() => {
|
1725
|
+
if (a.promise && ae === "loading" || a.duration === 1 / 0 || a.type === "loading") return;
|
1726
|
+
let k, B = Pe;
|
1727
|
+
return L || I || _ && Ue ? (() => {
|
1728
|
+
if (Ve.current < _e.current) {
|
1729
|
+
let D = (/* @__PURE__ */ new Date()).getTime() - _e.current;
|
1730
|
+
B = B - D;
|
2068
1731
|
}
|
2069
|
-
|
2070
|
-
})() :
|
2071
|
-
var
|
2072
|
-
(
|
2073
|
-
},
|
2074
|
-
}, [
|
2075
|
-
let
|
2076
|
-
if (
|
2077
|
-
let
|
2078
|
-
return
|
2079
|
-
}
|
2080
|
-
}, [
|
2081
|
-
|
2082
|
-
}, [
|
2083
|
-
function
|
2084
|
-
return
|
2085
|
-
}
|
2086
|
-
function Ye(S) {
|
2087
|
-
return { __html: wr.sanitize(S) };
|
1732
|
+
Ve.current = (/* @__PURE__ */ new Date()).getTime();
|
1733
|
+
})() : B !== 1 / 0 && (_e.current = (/* @__PURE__ */ new Date()).getTime(), k = setTimeout(() => {
|
1734
|
+
var D;
|
1735
|
+
(D = a.onAutoClose) == null || D.call(a, a), ve();
|
1736
|
+
}, B)), () => clearTimeout(k);
|
1737
|
+
}, [L, I, Z, a, Pe, ve, a.promise, ae, _, Ue]), f.useEffect(() => {
|
1738
|
+
let k = fe.current;
|
1739
|
+
if (k) {
|
1740
|
+
let B = k.getBoundingClientRect().height;
|
1741
|
+
return De(B), j((D) => [{ toastId: a.id, height: B, position: a.position }, ...D]), () => j((D) => D.filter((se) => se.toastId !== a.id));
|
1742
|
+
}
|
1743
|
+
}, [j, a.id]), f.useEffect(() => {
|
1744
|
+
a.delete && ve();
|
1745
|
+
}, [ve, a.delete]);
|
1746
|
+
function rt() {
|
1747
|
+
return Q != null && Q.loading ? f.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, Q.loading) : W ? f.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, W) : f.createElement(kr, { visible: ae === "loading" });
|
2088
1748
|
}
|
2089
|
-
return
|
2090
|
-
|
1749
|
+
return f.createElement("li", { "aria-live": a.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: fe, className: S(O, Qe, N == null ? void 0 : N.toast, (r = a == null ? void 0 : a.classNames) == null ? void 0 : r.toast, N == null ? void 0 : N.default, N == null ? void 0 : N[ae], (n = a == null ? void 0 : a.classNames) == null ? void 0 : n[ae]), "data-sonner-toast": "", "data-rich-colors": (o = a.richColors) != null ? o : A, "data-styled": !(a.jsx || a.unstyled || v), "data-mounted": E, "data-promise": !!a.promise, "data-removed": ee, "data-visible": We, "data-y-position": Oe, "data-x-position": ze, "data-index": y, "data-front": Ae, "data-swiping": ne, "data-dismissible": xe, "data-type": ae, "data-invert": tt, "data-swipe-out": be, "data-expanded": !!(L || Z && E), style: { "--index": y, "--toasts-before": y, "--z-index": H.length - y, "--offset": `${ee ? Ge : he.current}px`, "--initial-height": Z ? "auto" : `${Ze}px`, ...M, ...a.style }, onPointerDown: (k) => {
|
1750
|
+
Fe || !xe || (Se.current = /* @__PURE__ */ new Date(), Ne(he.current), k.target.setPointerCapture(k.pointerId), k.target.tagName !== "BUTTON" && (oe(!0), ye.current = { x: k.clientX, y: k.clientY }));
|
2091
1751
|
}, onPointerUp: () => {
|
2092
|
-
var
|
2093
|
-
if (
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
de(ye.current), (Q = o.onDismiss) == null || Q.call(o, o), fe(), K(!0);
|
1752
|
+
var k, B, D, se;
|
1753
|
+
if (be || !xe) return;
|
1754
|
+
ye.current = null;
|
1755
|
+
let le = Number(((k = fe.current) == null ? void 0 : k.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), we = (/* @__PURE__ */ new Date()).getTime() - ((B = Se.current) == null ? void 0 : B.getTime()), He = Math.abs(le) / we;
|
1756
|
+
if (Math.abs(le) >= Dr || He > 0.11) {
|
1757
|
+
Ne(he.current), (D = a.onDismiss) == null || D.call(a, a), ve(), ge(!0);
|
2099
1758
|
return;
|
2100
1759
|
}
|
2101
|
-
(
|
2102
|
-
}, onPointerMove: (
|
2103
|
-
var
|
2104
|
-
if (!
|
2105
|
-
|
2106
|
-
|
2107
|
-
|
2108
|
-
} }, ot && !o.jsx ? v.createElement("button", { "aria-label": J, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !he ? () => {
|
1760
|
+
(se = fe.current) == null || se.style.setProperty("--swipe-amount", "0px"), oe(!1);
|
1761
|
+
}, onPointerMove: (k) => {
|
1762
|
+
var B;
|
1763
|
+
if (!ye.current || !xe) return;
|
1764
|
+
let D = k.clientY - ye.current.y, se = k.clientX - ye.current.x, le = (Oe === "top" ? Math.min : Math.max)(0, D), we = k.pointerType === "touch" ? 10 : 2;
|
1765
|
+
Math.abs(le) > we ? (B = fe.current) == null || B.style.setProperty("--swipe-amount", `${D}px`) : Math.abs(se) > we && (ye.current = null);
|
1766
|
+
} }, et && !a.jsx ? f.createElement("button", { "aria-label": de, "data-disabled": Fe, "data-close-button": !0, onClick: Fe || !xe ? () => {
|
2109
1767
|
} : () => {
|
2110
|
-
var
|
2111
|
-
|
2112
|
-
}, className:
|
2113
|
-
|
2114
|
-
|
2115
|
-
|
2116
|
-
|
1768
|
+
var k;
|
1769
|
+
ve(), (k = a.onDismiss) == null || k.call(a, a);
|
1770
|
+
}, className: S(N == null ? void 0 : N.closeButton, (l = a == null ? void 0 : a.classNames) == null ? void 0 : l.closeButton) }, f.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" }, f.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), f.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, a.jsx || f.isValidElement(a.title) ? a.jsx || a.title : f.createElement(f.Fragment, null, ae || a.icon || a.promise ? f.createElement("div", { "data-icon": "", className: S(N == null ? void 0 : N.icon, (c = a == null ? void 0 : a.classNames) == null ? void 0 : c.icon) }, a.promise || a.type === "loading" && !a.icon ? a.icon || rt() : null, a.type !== "loading" ? a.icon || (Q == null ? void 0 : Q[ae]) || wr(ae) : null) : null, f.createElement("div", { "data-content": "", className: S(N == null ? void 0 : N.content, (h = a == null ? void 0 : a.classNames) == null ? void 0 : h.content) }, f.createElement("div", { "data-title": "", className: S(N == null ? void 0 : N.title, (s = a == null ? void 0 : a.classNames) == null ? void 0 : s.title) }, a.title), a.description ? f.createElement("div", { "data-description": "", className: S(G, Ie, N == null ? void 0 : N.description, (d = a == null ? void 0 : a.classNames) == null ? void 0 : d.description) }, a.description) : null), f.isValidElement(a.cancel) ? a.cancel : a.cancel && Je(a.cancel) ? f.createElement("button", { "data-button": !0, "data-cancel": !0, style: a.cancelButtonStyle || J, onClick: (k) => {
|
1771
|
+
var B, D;
|
1772
|
+
Je(a.cancel) && xe && ((D = (B = a.cancel).onClick) == null || D.call(B, k), ve());
|
1773
|
+
}, className: S(N == null ? void 0 : N.cancelButton, (p = a == null ? void 0 : a.classNames) == null ? void 0 : p.cancelButton) }, a.cancel.label) : null, f.isValidElement(a.action) ? a.action : a.action && Je(a.action) ? f.createElement("button", { "data-button": !0, "data-action": !0, style: a.actionButtonStyle || X, onClick: (k) => {
|
1774
|
+
var B, D;
|
1775
|
+
Je(a.action) && (k.defaultPrevented || ((D = (B = a.action).onClick) == null || D.call(B, k), ve()));
|
1776
|
+
}, className: S(N == null ? void 0 : N.actionButton, (g = a == null ? void 0 : a.classNames) == null ? void 0 : g.actionButton) }, a.action.label) : null));
|
2117
1777
|
};
|
2118
|
-
function
|
2119
|
-
if (typeof window > "u" || typeof document > "u")
|
2120
|
-
|
2121
|
-
|
2122
|
-
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
1778
|
+
function wt() {
|
1779
|
+
if (typeof window > "u" || typeof document > "u") return "ltr";
|
1780
|
+
let t = document.documentElement.getAttribute("dir");
|
1781
|
+
return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
|
2123
1782
|
}
|
2124
|
-
var
|
2125
|
-
let { invert:
|
2126
|
-
|
2127
|
-
|
2128
|
-
|
1783
|
+
var Yr = (t) => {
|
1784
|
+
let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: l, closeButton: c, className: h, offset: s, theme: d = "light", richColors: p, duration: g, style: w, visibleToasts: a = zr, toastOptions: v, dir: I = wt(), gap: j = Br, loadingIcon: P, icons: b, containerAriaLabel: y = "Notifications", pauseWhenPageIsHidden: H, cn: L = Wr } = t, [R, A] = f.useState([]), U = f.useMemo(() => Array.from(new Set([n].concat(R.filter((_) => _.position).map((_) => _.position)))), [R, n]), [M, J] = f.useState([]), [X, O] = f.useState(!1), [G, C] = f.useState(!1), [K, z] = f.useState(d !== "system" ? d : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), W = f.useRef(null), Z = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), N = f.useRef(null), Q = f.useRef(!1), de = f.useCallback((_) => {
|
1785
|
+
var S;
|
1786
|
+
(S = R.find((E) => E.id === _.id)) != null && S.delete || ue.dismiss(_.id), A((E) => E.filter(({ id: re }) => re !== _.id));
|
1787
|
+
}, [R]);
|
1788
|
+
return f.useEffect(() => ue.subscribe((_) => {
|
1789
|
+
if (_.dismiss) {
|
1790
|
+
A((S) => S.map((E) => E.id === _.id ? { ...E, delete: !0 } : E));
|
2129
1791
|
return;
|
2130
1792
|
}
|
2131
1793
|
setTimeout(() => {
|
2132
|
-
|
2133
|
-
|
2134
|
-
let
|
2135
|
-
return
|
1794
|
+
Jt.flushSync(() => {
|
1795
|
+
A((S) => {
|
1796
|
+
let E = S.findIndex((re) => re.id === _.id);
|
1797
|
+
return E !== -1 ? [...S.slice(0, E), { ...S[E], ..._ }, ...S.slice(E + 1)] : [_, ...S];
|
2136
1798
|
});
|
2137
1799
|
});
|
2138
1800
|
});
|
2139
|
-
}), []),
|
2140
|
-
if (
|
2141
|
-
|
1801
|
+
}), []), f.useEffect(() => {
|
1802
|
+
if (d !== "system") {
|
1803
|
+
z(d);
|
2142
1804
|
return;
|
2143
1805
|
}
|
2144
|
-
|
2145
|
-
|
1806
|
+
d === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? z("dark") : z("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: _ }) => {
|
1807
|
+
z(_ ? "dark" : "light");
|
2146
1808
|
});
|
2147
|
-
}, [
|
2148
|
-
|
2149
|
-
}, [
|
2150
|
-
let
|
2151
|
-
var
|
2152
|
-
|
1809
|
+
}, [d]), f.useEffect(() => {
|
1810
|
+
R.length <= 1 && O(!1);
|
1811
|
+
}, [R]), f.useEffect(() => {
|
1812
|
+
let _ = (S) => {
|
1813
|
+
var E, re;
|
1814
|
+
o.every((ee) => S[ee] || S.code === ee) && (O(!0), (E = W.current) == null || E.focus()), S.code === "Escape" && (document.activeElement === W.current || (re = W.current) != null && re.contains(document.activeElement)) && O(!1);
|
2153
1815
|
};
|
2154
|
-
return document.addEventListener("keydown",
|
2155
|
-
}, [
|
2156
|
-
if (
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
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 });
|
1816
|
+
return document.addEventListener("keydown", _), () => document.removeEventListener("keydown", _);
|
1817
|
+
}, [o]), f.useEffect(() => {
|
1818
|
+
if (W.current) return () => {
|
1819
|
+
N.current && (N.current.focus({ preventScroll: !0 }), N.current = null, Q.current = !1);
|
1820
|
+
};
|
1821
|
+
}, [W.current]), R.length ? f.createElement("section", { "aria-label": `${y} ${Z}`, tabIndex: -1 }, U.map((_, S) => {
|
1822
|
+
var E;
|
1823
|
+
let [re, ee] = _.split("-");
|
1824
|
+
return f.createElement("ol", { key: _, dir: I === "auto" ? wt() : I, tabIndex: -1, ref: W, className: h, "data-sonner-toaster": !0, "data-theme": K, "data-y-position": re, "data-x-position": ee, style: { "--front-toast-height": `${((E = M[0]) == null ? void 0 : E.height) || 0}px`, "--offset": typeof s == "number" ? `${s}px` : s || Fr, "--width": `${Mr}px`, "--gap": `${j}px`, ...w }, onBlur: (Y) => {
|
1825
|
+
Q.current && !Y.currentTarget.contains(Y.relatedTarget) && (Q.current = !1, N.current && (N.current.focus({ preventScroll: !0 }), N.current = null));
|
1826
|
+
}, onFocus: (Y) => {
|
1827
|
+
Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || Q.current || (Q.current = !0, N.current = Y.relatedTarget);
|
1828
|
+
}, onMouseEnter: () => O(!0), onMouseMove: () => O(!0), onMouseLeave: () => {
|
1829
|
+
G || O(!1);
|
1830
|
+
}, onPointerDown: (Y) => {
|
1831
|
+
Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || C(!0);
|
1832
|
+
}, onPointerUp: () => C(!1) }, R.filter((Y) => !Y.position && S === 0 || Y.position === _).map((Y, ne) => {
|
1833
|
+
var oe, be;
|
1834
|
+
return f.createElement(Vr, { key: Y.id, icons: b, index: ne, toast: Y, defaultRichColors: p, duration: (oe = v == null ? void 0 : v.duration) != null ? oe : g, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: r, visibleToasts: a, closeButton: (be = v == null ? void 0 : v.closeButton) != null ? be : c, interacting: G, position: _, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: de, toasts: R.filter((ge) => ge.position == Y.position), heights: M.filter((ge) => ge.position == Y.position), setHeights: J, expandByDefault: l, gap: j, loadingIcon: P, expanded: X, pauseWhenPageIsHidden: H, cn: L });
|
2174
1835
|
}));
|
2175
1836
|
})) : null;
|
2176
1837
|
};
|
2177
|
-
|
2178
|
-
|
2179
|
-
|
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 *)
|
2181
|
-
*/
|
2182
|
-
function ha({ children: e }) {
|
2183
|
-
function n(u) {
|
2184
|
-
Tt.success(u);
|
1838
|
+
function vn({ children: t }) {
|
1839
|
+
function r(c) {
|
1840
|
+
Ke.success(c);
|
2185
1841
|
}
|
2186
|
-
function
|
2187
|
-
|
1842
|
+
function n(c) {
|
1843
|
+
Ke.info(c);
|
2188
1844
|
}
|
2189
|
-
function
|
2190
|
-
|
1845
|
+
function o(c) {
|
1846
|
+
Ke.error(c);
|
2191
1847
|
}
|
2192
|
-
function l(
|
2193
|
-
|
1848
|
+
function l(c) {
|
1849
|
+
Ke.warning(c);
|
2194
1850
|
}
|
2195
|
-
return /* @__PURE__ */
|
2196
|
-
|
1851
|
+
return /* @__PURE__ */ u.jsxs(
|
1852
|
+
Tt.Provider,
|
2197
1853
|
{
|
2198
|
-
value: { errorToast:
|
1854
|
+
value: { errorToast: o, warningToast: l, successToast: r, infoToast: n },
|
2199
1855
|
children: [
|
2200
|
-
/* @__PURE__ */
|
2201
|
-
|
1856
|
+
/* @__PURE__ */ u.jsx(Yr, { richColors: !0 }),
|
1857
|
+
t
|
2202
1858
|
]
|
2203
1859
|
}
|
2204
1860
|
);
|
2205
1861
|
}
|
2206
1862
|
export {
|
2207
|
-
|
2208
|
-
|
2209
|
-
|
2210
|
-
|
2211
|
-
|
2212
|
-
|
2213
|
-
|
2214
|
-
|
2215
|
-
|
2216
|
-
|
2217
|
-
|
2218
|
-
|
2219
|
-
|
2220
|
-
|
2221
|
-
|
2222
|
-
|
2223
|
-
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
2227
|
-
|
1863
|
+
Gr as Badge,
|
1864
|
+
cn as Breadcrumb,
|
1865
|
+
un as BreadcrumbLink,
|
1866
|
+
en as Button,
|
1867
|
+
rn as Checkbox,
|
1868
|
+
Zr as Divider,
|
1869
|
+
tn as FormController,
|
1870
|
+
nn as FormError,
|
1871
|
+
an as FormLabel,
|
1872
|
+
sn as IconButton,
|
1873
|
+
on as Input,
|
1874
|
+
dn as Modal,
|
1875
|
+
gn as ModalProvider,
|
1876
|
+
ln as Select,
|
1877
|
+
Qr as Skeleton,
|
1878
|
+
vn as ToastProvider,
|
1879
|
+
fn as Tooltip,
|
1880
|
+
hn as useAutomation,
|
1881
|
+
mn as useModal,
|
1882
|
+
pn as useScopedParams,
|
1883
|
+
xr as useToast
|
2228
1884
|
};
|