@arkyn/components 1.2.2 → 1.2.4
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 +479 -458
- package/dist/bundle.umd.cjs +10 -10
- package/dist/components/Form/FormError/index.d.ts.map +1 -1
- package/dist/components/Form/FormError/index.js +4 -2
- package/dist/components/Skeleton/index.d.ts +5 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Skeleton/index.js +7 -0
- package/dist/hooks/useScopedParams.d.ts +7 -0
- package/dist/hooks/useScopedParams.d.ts.map +1 -0
- package/dist/hooks/useScopedParams.js +27 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Form/FormError/index.tsx +2 -1
- package/src/components/Skeleton/index.tsx +9 -0
- package/src/components/Skeleton/styles.css +18 -0
- package/src/hooks/useScopedParams.ts +31 -0
- package/src/index.ts +4 -0
package/dist/bundle.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import Xe, { createContext as He, useRef as ge, useId as
|
1
|
+
import Xe, { createContext as He, useRef as ge, useId as $r, useContext as Ze, useState as ue } from "react";
|
2
2
|
import { Loader2 as le, ChevronRight as Me, X as Pr } from "lucide-react";
|
3
|
-
import { useActionData as wr, useLocation as
|
3
|
+
import { useActionData as wr, useLocation as Qe, Link as Ir } from "@remix-run/react";
|
4
4
|
import { InputMask as Tr } from "@react-input/mask";
|
5
5
|
import { AnimatePresence as Or, motion as Ue } from "framer-motion";
|
6
6
|
var ke = { exports: {} }, oe = {};
|
@@ -18,18 +18,18 @@ function Fr() {
|
|
18
18
|
if (Ke)
|
19
19
|
return oe;
|
20
20
|
Ke = 1;
|
21
|
-
var n = Xe,
|
22
|
-
function
|
23
|
-
var g, x = {},
|
24
|
-
m !== void 0 && (
|
25
|
-
for (g in
|
26
|
-
|
27
|
-
if (
|
28
|
-
for (g in
|
29
|
-
x[g] === void 0 && (x[g] =
|
30
|
-
return { $$typeof:
|
21
|
+
var n = Xe, s = Symbol.for("react.element"), t = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, c = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
22
|
+
function d(l, h, m) {
|
23
|
+
var g, x = {}, S = null, k = null;
|
24
|
+
m !== void 0 && (S = "" + m), h.key !== void 0 && (S = "" + h.key), h.ref !== void 0 && (k = h.ref);
|
25
|
+
for (g in h)
|
26
|
+
i.call(h, g) && !u.hasOwnProperty(g) && (x[g] = h[g]);
|
27
|
+
if (l && l.defaultProps)
|
28
|
+
for (g in h = l.defaultProps, h)
|
29
|
+
x[g] === void 0 && (x[g] = h[g]);
|
30
|
+
return { $$typeof: s, type: l, key: S, ref: k, props: x, _owner: c.current };
|
31
31
|
}
|
32
|
-
return oe.Fragment =
|
32
|
+
return oe.Fragment = t, oe.jsx = d, oe.jsxs = d, oe;
|
33
33
|
}
|
34
34
|
var ce = {};
|
35
35
|
/**
|
@@ -44,51 +44,51 @@ var ce = {};
|
|
44
44
|
var Je;
|
45
45
|
function Lr() {
|
46
46
|
return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() {
|
47
|
-
var n = Xe,
|
47
|
+
var n = Xe, s = Symbol.for("react.element"), t = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), l = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), P = Symbol.iterator, T = "@@iterator";
|
48
48
|
function O(e) {
|
49
49
|
if (e === null || typeof e != "object")
|
50
50
|
return null;
|
51
|
-
var r =
|
51
|
+
var r = P && e[P] || e[T];
|
52
52
|
return typeof r == "function" ? r : null;
|
53
53
|
}
|
54
54
|
var R = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
55
55
|
function y(e) {
|
56
56
|
{
|
57
|
-
for (var r = arguments.length,
|
58
|
-
|
59
|
-
|
57
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++)
|
58
|
+
a[f - 1] = arguments[f];
|
59
|
+
C("error", e, a);
|
60
60
|
}
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function C(e, r, a) {
|
63
63
|
{
|
64
|
-
var
|
65
|
-
b !== "" && (r += "%s",
|
66
|
-
var _ =
|
64
|
+
var f = R.ReactDebugCurrentFrame, b = f.getStackAddendum();
|
65
|
+
b !== "" && (r += "%s", a = a.concat([b]));
|
66
|
+
var _ = a.map(function(p) {
|
67
67
|
return String(p);
|
68
68
|
});
|
69
69
|
_.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
|
70
70
|
}
|
71
71
|
}
|
72
|
-
var F = !1, W = !1, z = !1, D = !1, B = !1,
|
73
|
-
|
72
|
+
var F = !1, W = !1, z = !1, D = !1, B = !1, w;
|
73
|
+
w = Symbol.for("react.module.reference");
|
74
74
|
function M(e) {
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === u || B || e === c || e === m || e === g || D || e === k || F || W || z || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === x || e.$$typeof === d || e.$$typeof === l || e.$$typeof === h || // This needs to include all possible module reference object
|
76
76
|
// types supported by any Flight configuration anywhere since
|
77
77
|
// we don't know which Flight build this will end up being used
|
78
78
|
// with.
|
79
|
-
e.$$typeof ===
|
79
|
+
e.$$typeof === w || e.getModuleId !== void 0));
|
80
80
|
}
|
81
|
-
function
|
82
|
-
var
|
83
|
-
if (
|
84
|
-
return
|
81
|
+
function $(e, r, a) {
|
82
|
+
var f = e.displayName;
|
83
|
+
if (f)
|
84
|
+
return f;
|
85
85
|
var b = r.displayName || r.name || "";
|
86
|
-
return b !== "" ?
|
86
|
+
return b !== "" ? a + "(" + b + ")" : a;
|
87
87
|
}
|
88
88
|
function G(e) {
|
89
89
|
return e.displayName || "Context";
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function E(e) {
|
92
92
|
if (e == null)
|
93
93
|
return null;
|
94
94
|
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")
|
@@ -96,11 +96,11 @@ function Lr() {
|
|
96
96
|
if (typeof e == "string")
|
97
97
|
return e;
|
98
98
|
switch (e) {
|
99
|
-
case o:
|
100
|
-
return "Fragment";
|
101
99
|
case i:
|
100
|
+
return "Fragment";
|
101
|
+
case t:
|
102
102
|
return "Portal";
|
103
|
-
case
|
103
|
+
case u:
|
104
104
|
return "Profiler";
|
105
105
|
case c:
|
106
106
|
return "StrictMode";
|
@@ -111,21 +111,21 @@ function Lr() {
|
|
111
111
|
}
|
112
112
|
if (typeof e == "object")
|
113
113
|
switch (e.$$typeof) {
|
114
|
-
case
|
114
|
+
case l:
|
115
115
|
var r = e;
|
116
116
|
return G(r) + ".Consumer";
|
117
|
-
case h:
|
118
|
-
var s = e;
|
119
|
-
return G(s._context) + ".Provider";
|
120
117
|
case d:
|
121
|
-
|
118
|
+
var a = e;
|
119
|
+
return G(a._context) + ".Provider";
|
120
|
+
case h:
|
121
|
+
return $(e, e.render, "ForwardRef");
|
122
122
|
case x:
|
123
|
-
var
|
124
|
-
return
|
125
|
-
case
|
123
|
+
var f = e.displayName || null;
|
124
|
+
return f !== null ? f : E(e.type) || "Memo";
|
125
|
+
case S: {
|
126
126
|
var b = e, _ = b._payload, p = b._init;
|
127
127
|
try {
|
128
|
-
return
|
128
|
+
return E(p(_));
|
129
129
|
} catch {
|
130
130
|
return null;
|
131
131
|
}
|
@@ -160,7 +160,7 @@ function Lr() {
|
|
160
160
|
U++;
|
161
161
|
}
|
162
162
|
}
|
163
|
-
function
|
163
|
+
function $e() {
|
164
164
|
{
|
165
165
|
if (U--, U === 0) {
|
166
166
|
var e = {
|
@@ -196,14 +196,14 @@ function Lr() {
|
|
196
196
|
}
|
197
197
|
}
|
198
198
|
var ye = R.ReactCurrentDispatcher, be;
|
199
|
-
function de(e, r,
|
199
|
+
function de(e, r, a) {
|
200
200
|
{
|
201
201
|
if (be === void 0)
|
202
202
|
try {
|
203
203
|
throw Error();
|
204
204
|
} catch (b) {
|
205
|
-
var
|
206
|
-
be =
|
205
|
+
var f = b.stack.trim().match(/\n( *(at )?)/);
|
206
|
+
be = f && f[1] || "";
|
207
207
|
}
|
208
208
|
return `
|
209
209
|
` + be + e;
|
@@ -211,18 +211,18 @@ function Lr() {
|
|
211
211
|
}
|
212
212
|
var xe = !1, he;
|
213
213
|
{
|
214
|
-
var
|
215
|
-
he = new
|
214
|
+
var sr = typeof WeakMap == "function" ? WeakMap : Map;
|
215
|
+
he = new sr();
|
216
216
|
}
|
217
|
-
function
|
217
|
+
function Pe(e, r) {
|
218
218
|
if (!e || xe)
|
219
219
|
return "";
|
220
220
|
{
|
221
|
-
var
|
222
|
-
if (
|
223
|
-
return
|
221
|
+
var a = he.get(e);
|
222
|
+
if (a !== void 0)
|
223
|
+
return a;
|
224
224
|
}
|
225
|
-
var
|
225
|
+
var f;
|
226
226
|
xe = !0;
|
227
227
|
var b = Error.prepareStackTrace;
|
228
228
|
Error.prepareStackTrace = void 0;
|
@@ -241,14 +241,14 @@ function Lr() {
|
|
241
241
|
try {
|
242
242
|
Reflect.construct(p, []);
|
243
243
|
} catch (L) {
|
244
|
-
|
244
|
+
f = L;
|
245
245
|
}
|
246
246
|
Reflect.construct(e, [], p);
|
247
247
|
} else {
|
248
248
|
try {
|
249
249
|
p.call();
|
250
250
|
} catch (L) {
|
251
|
-
|
251
|
+
f = L;
|
252
252
|
}
|
253
253
|
e.call(p.prototype);
|
254
254
|
}
|
@@ -256,14 +256,14 @@ function Lr() {
|
|
256
256
|
try {
|
257
257
|
throw Error();
|
258
258
|
} catch (L) {
|
259
|
-
|
259
|
+
f = L;
|
260
260
|
}
|
261
261
|
e();
|
262
262
|
}
|
263
263
|
} catch (L) {
|
264
|
-
if (L &&
|
264
|
+
if (L && f && typeof L.stack == "string") {
|
265
265
|
for (var v = L.stack.split(`
|
266
|
-
`), I =
|
266
|
+
`), I = f.stack.split(`
|
267
267
|
`), j = v.length - 1, N = I.length - 1; j >= 1 && N >= 0 && v[j] !== I[N]; )
|
268
268
|
N--;
|
269
269
|
for (; j >= 1 && N >= 0; j--, N--)
|
@@ -280,23 +280,23 @@ function Lr() {
|
|
280
280
|
}
|
281
281
|
}
|
282
282
|
} finally {
|
283
|
-
xe = !1, ye.current = _,
|
283
|
+
xe = !1, ye.current = _, $e(), Error.prepareStackTrace = b;
|
284
284
|
}
|
285
285
|
var te = e ? e.displayName || e.name : "", X = te ? de(te) : "";
|
286
286
|
return typeof e == "function" && he.set(e, X), X;
|
287
287
|
}
|
288
|
-
function
|
289
|
-
return
|
288
|
+
function ar(e, r, a) {
|
289
|
+
return Pe(e, !1);
|
290
290
|
}
|
291
291
|
function ir(e) {
|
292
292
|
var r = e.prototype;
|
293
293
|
return !!(r && r.isReactComponent);
|
294
294
|
}
|
295
|
-
function me(e, r,
|
295
|
+
function me(e, r, a) {
|
296
296
|
if (e == null)
|
297
297
|
return "";
|
298
298
|
if (typeof e == "function")
|
299
|
-
return
|
299
|
+
return Pe(e, ir(e));
|
300
300
|
if (typeof e == "string")
|
301
301
|
return de(e);
|
302
302
|
switch (e) {
|
@@ -307,58 +307,58 @@ function Lr() {
|
|
307
307
|
}
|
308
308
|
if (typeof e == "object")
|
309
309
|
switch (e.$$typeof) {
|
310
|
-
case
|
311
|
-
return
|
310
|
+
case h:
|
311
|
+
return ar(e.render);
|
312
312
|
case x:
|
313
|
-
return me(e.type, r,
|
314
|
-
case
|
315
|
-
var
|
313
|
+
return me(e.type, r, a);
|
314
|
+
case S: {
|
315
|
+
var f = e, b = f._payload, _ = f._init;
|
316
316
|
try {
|
317
|
-
return me(_(b), r,
|
317
|
+
return me(_(b), r, a);
|
318
318
|
} catch {
|
319
319
|
}
|
320
320
|
}
|
321
321
|
}
|
322
322
|
return "";
|
323
323
|
}
|
324
|
-
var
|
324
|
+
var ae = Object.prototype.hasOwnProperty, we = {}, Ie = R.ReactDebugCurrentFrame;
|
325
325
|
function ve(e) {
|
326
326
|
if (e) {
|
327
|
-
var r = e._owner,
|
328
|
-
Ie.setExtraStackFrame(
|
327
|
+
var r = e._owner, a = me(e.type, e._source, r ? r.type : null);
|
328
|
+
Ie.setExtraStackFrame(a);
|
329
329
|
} else
|
330
330
|
Ie.setExtraStackFrame(null);
|
331
331
|
}
|
332
|
-
function
|
332
|
+
function or(e, r, a, f, b) {
|
333
333
|
{
|
334
|
-
var _ = Function.call.bind(
|
334
|
+
var _ = Function.call.bind(ae);
|
335
335
|
for (var p in e)
|
336
336
|
if (_(e, p)) {
|
337
337
|
var v = void 0;
|
338
338
|
try {
|
339
339
|
if (typeof e[p] != "function") {
|
340
|
-
var I = Error((
|
340
|
+
var I = Error((f || "React class") + ": " + a + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
341
341
|
throw I.name = "Invariant Violation", I;
|
342
342
|
}
|
343
|
-
v = e[p](r, p,
|
343
|
+
v = e[p](r, p, f, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
344
344
|
} catch (j) {
|
345
345
|
v = j;
|
346
346
|
}
|
347
|
-
v && !(v instanceof Error) && (ve(b), 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).",
|
347
|
+
v && !(v instanceof Error) && (ve(b), 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).", f || "React class", a, p, typeof v), ve(null)), v instanceof Error && !(v.message in we) && (we[v.message] = !0, ve(b), y("Failed %s type: %s", a, v.message), ve(null));
|
348
348
|
}
|
349
349
|
}
|
350
350
|
}
|
351
|
-
var
|
351
|
+
var cr = Array.isArray;
|
352
352
|
function _e(e) {
|
353
|
-
return
|
353
|
+
return cr(e);
|
354
354
|
}
|
355
|
-
function
|
355
|
+
function ur(e) {
|
356
356
|
{
|
357
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
358
|
-
return
|
357
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
358
|
+
return a;
|
359
359
|
}
|
360
360
|
}
|
361
|
-
function
|
361
|
+
function lr(e) {
|
362
362
|
try {
|
363
363
|
return Te(e), !1;
|
364
364
|
} catch {
|
@@ -369,68 +369,68 @@ function Lr() {
|
|
369
369
|
return "" + e;
|
370
370
|
}
|
371
371
|
function Oe(e) {
|
372
|
-
if (
|
373
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
372
|
+
if (lr(e))
|
373
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ur(e)), Te(e);
|
374
374
|
}
|
375
|
-
var
|
375
|
+
var ie = R.ReactCurrentOwner, fr = {
|
376
376
|
key: !0,
|
377
377
|
ref: !0,
|
378
378
|
__self: !0,
|
379
379
|
__source: !0
|
380
380
|
}, Fe, Le, Re;
|
381
381
|
Re = {};
|
382
|
-
function
|
383
|
-
if (
|
382
|
+
function dr(e) {
|
383
|
+
if (ae.call(e, "ref")) {
|
384
384
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
385
385
|
if (r && r.isReactWarning)
|
386
386
|
return !1;
|
387
387
|
}
|
388
388
|
return e.ref !== void 0;
|
389
389
|
}
|
390
|
-
function
|
391
|
-
if (
|
390
|
+
function hr(e) {
|
391
|
+
if (ae.call(e, "key")) {
|
392
392
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
393
393
|
if (r && r.isReactWarning)
|
394
394
|
return !1;
|
395
395
|
}
|
396
396
|
return e.key !== void 0;
|
397
397
|
}
|
398
|
-
function
|
399
|
-
if (typeof e.ref == "string" &&
|
400
|
-
var
|
401
|
-
Re[
|
398
|
+
function mr(e, r) {
|
399
|
+
if (typeof e.ref == "string" && ie.current && r && ie.current.stateNode !== r) {
|
400
|
+
var a = E(ie.current.type);
|
401
|
+
Re[a] || (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', E(ie.current.type), e.ref), Re[a] = !0);
|
402
402
|
}
|
403
403
|
}
|
404
|
-
function
|
404
|
+
function vr(e, r) {
|
405
405
|
{
|
406
|
-
var
|
406
|
+
var a = function() {
|
407
407
|
Fe || (Fe = !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)", r));
|
408
408
|
};
|
409
|
-
|
410
|
-
get:
|
409
|
+
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
410
|
+
get: a,
|
411
411
|
configurable: !0
|
412
412
|
});
|
413
413
|
}
|
414
414
|
}
|
415
|
-
function
|
415
|
+
function pr(e, r) {
|
416
416
|
{
|
417
|
-
var
|
417
|
+
var a = function() {
|
418
418
|
Le || (Le = !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)", r));
|
419
419
|
};
|
420
|
-
|
421
|
-
get:
|
420
|
+
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
421
|
+
get: a,
|
422
422
|
configurable: !0
|
423
423
|
});
|
424
424
|
}
|
425
425
|
}
|
426
|
-
var
|
426
|
+
var gr = function(e, r, a, f, b, _, p) {
|
427
427
|
var v = {
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
429
|
-
$$typeof:
|
429
|
+
$$typeof: s,
|
430
430
|
// Built-in properties that belong on the element
|
431
431
|
type: e,
|
432
432
|
key: r,
|
433
|
-
ref:
|
433
|
+
ref: a,
|
434
434
|
props: p,
|
435
435
|
// Record the component responsible for creating this element.
|
436
436
|
_owner: _
|
@@ -444,7 +444,7 @@ function Lr() {
|
|
444
444
|
configurable: !1,
|
445
445
|
enumerable: !1,
|
446
446
|
writable: !1,
|
447
|
-
value:
|
447
|
+
value: f
|
448
448
|
}), Object.defineProperty(v, "_source", {
|
449
449
|
configurable: !1,
|
450
450
|
enumerable: !1,
|
@@ -452,12 +452,12 @@ function Lr() {
|
|
452
452
|
value: b
|
453
453
|
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
454
454
|
};
|
455
|
-
function
|
455
|
+
function yr(e, r, a, f, b) {
|
456
456
|
{
|
457
457
|
var _, p = {}, v = null, I = null;
|
458
|
-
|
458
|
+
a !== void 0 && (Oe(a), v = "" + a), hr(r) && (Oe(r.key), v = "" + r.key), dr(r) && (I = r.ref, mr(r, b));
|
459
459
|
for (_ in r)
|
460
|
-
|
460
|
+
ae.call(r, _) && !fr.hasOwnProperty(_) && (p[_] = r[_]);
|
461
461
|
if (e && e.defaultProps) {
|
462
462
|
var j = e.defaultProps;
|
463
463
|
for (_ in j)
|
@@ -465,28 +465,28 @@ function Lr() {
|
|
465
465
|
}
|
466
466
|
if (v || I) {
|
467
467
|
var N = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
468
|
-
v &&
|
468
|
+
v && vr(p, N), I && pr(p, N);
|
469
469
|
}
|
470
|
-
return
|
470
|
+
return gr(e, v, I, b, f, ie.current, p);
|
471
471
|
}
|
472
472
|
}
|
473
|
-
var
|
473
|
+
var Se = R.ReactCurrentOwner, ze = R.ReactDebugCurrentFrame;
|
474
474
|
function ne(e) {
|
475
475
|
if (e) {
|
476
|
-
var r = e._owner,
|
477
|
-
ze.setExtraStackFrame(
|
476
|
+
var r = e._owner, a = me(e.type, e._source, r ? r.type : null);
|
477
|
+
ze.setExtraStackFrame(a);
|
478
478
|
} else
|
479
479
|
ze.setExtraStackFrame(null);
|
480
480
|
}
|
481
|
-
var
|
482
|
-
|
483
|
-
function
|
484
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
481
|
+
var Ee;
|
482
|
+
Ee = !1;
|
483
|
+
function Ce(e) {
|
484
|
+
return typeof e == "object" && e !== null && e.$$typeof === s;
|
485
485
|
}
|
486
486
|
function De() {
|
487
487
|
{
|
488
|
-
if (
|
489
|
-
var e =
|
488
|
+
if (Se.current) {
|
489
|
+
var e = E(Se.current.type);
|
490
490
|
if (e)
|
491
491
|
return `
|
492
492
|
|
@@ -495,26 +495,26 @@ Check the render method of \`` + e + "`.";
|
|
495
495
|
return "";
|
496
496
|
}
|
497
497
|
}
|
498
|
-
function
|
498
|
+
function br(e) {
|
499
499
|
{
|
500
500
|
if (e !== void 0) {
|
501
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""),
|
501
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
|
502
502
|
return `
|
503
503
|
|
504
|
-
Check your code at ` + r + ":" +
|
504
|
+
Check your code at ` + r + ":" + a + ".";
|
505
505
|
}
|
506
506
|
return "";
|
507
507
|
}
|
508
508
|
}
|
509
509
|
var Ae = {};
|
510
|
-
function
|
510
|
+
function xr(e) {
|
511
511
|
{
|
512
512
|
var r = De();
|
513
513
|
if (!r) {
|
514
|
-
var
|
515
|
-
|
514
|
+
var a = typeof e == "string" ? e : e.displayName || e.name;
|
515
|
+
a && (r = `
|
516
516
|
|
517
|
-
Check the top-level render call using <` +
|
517
|
+
Check the top-level render call using <` + a + ">.");
|
518
518
|
}
|
519
519
|
return r;
|
520
520
|
}
|
@@ -524,12 +524,12 @@ Check the top-level render call using <` + s + ">.");
|
|
524
524
|
if (!e._store || e._store.validated || e.key != null)
|
525
525
|
return;
|
526
526
|
e._store.validated = !0;
|
527
|
-
var
|
528
|
-
if (Ae[
|
527
|
+
var a = xr(r);
|
528
|
+
if (Ae[a])
|
529
529
|
return;
|
530
|
-
Ae[
|
531
|
-
var
|
532
|
-
e && e._owner && e._owner !==
|
530
|
+
Ae[a] = !0;
|
531
|
+
var f = "";
|
532
|
+
e && e._owner && e._owner !== Se.current && (f = " It was passed a child from " + E(e._owner.type) + "."), ne(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.', a, f), ne(null);
|
533
533
|
}
|
534
534
|
}
|
535
535
|
function Be(e, r) {
|
@@ -537,51 +537,51 @@ Check the top-level render call using <` + s + ">.");
|
|
537
537
|
if (typeof e != "object")
|
538
538
|
return;
|
539
539
|
if (_e(e))
|
540
|
-
for (var
|
541
|
-
var
|
542
|
-
|
540
|
+
for (var a = 0; a < e.length; a++) {
|
541
|
+
var f = e[a];
|
542
|
+
Ce(f) && We(f, r);
|
543
543
|
}
|
544
|
-
else if (
|
544
|
+
else if (Ce(e))
|
545
545
|
e._store && (e._store.validated = !0);
|
546
546
|
else if (e) {
|
547
547
|
var b = O(e);
|
548
548
|
if (typeof b == "function" && b !== e.entries)
|
549
549
|
for (var _ = b.call(e), p; !(p = _.next()).done; )
|
550
|
-
|
550
|
+
Ce(p.value) && We(p.value, r);
|
551
551
|
}
|
552
552
|
}
|
553
553
|
}
|
554
|
-
function
|
554
|
+
function _r(e) {
|
555
555
|
{
|
556
556
|
var r = e.type;
|
557
557
|
if (r == null || typeof r == "string")
|
558
558
|
return;
|
559
|
-
var
|
559
|
+
var a;
|
560
560
|
if (typeof r == "function")
|
561
|
-
|
562
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
561
|
+
a = r.propTypes;
|
562
|
+
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
|
563
563
|
// Inner props are checked in the reconciler.
|
564
564
|
r.$$typeof === x))
|
565
|
-
|
565
|
+
a = r.propTypes;
|
566
566
|
else
|
567
567
|
return;
|
568
|
-
if (
|
569
|
-
var
|
570
|
-
|
571
|
-
} else if (r.PropTypes !== void 0 && !
|
572
|
-
|
573
|
-
var b =
|
568
|
+
if (a) {
|
569
|
+
var f = E(r);
|
570
|
+
or(a, e.props, "prop", f, e);
|
571
|
+
} else if (r.PropTypes !== void 0 && !Ee) {
|
572
|
+
Ee = !0;
|
573
|
+
var b = E(r);
|
574
574
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
|
575
575
|
}
|
576
576
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
577
577
|
}
|
578
578
|
}
|
579
|
-
function
|
579
|
+
function Rr(e) {
|
580
580
|
{
|
581
|
-
for (var r = Object.keys(e.props),
|
582
|
-
var
|
583
|
-
if (
|
584
|
-
ne(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
581
|
+
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
|
582
|
+
var f = r[a];
|
583
|
+
if (f !== "children" && f !== "key") {
|
584
|
+
ne(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), ne(null);
|
585
585
|
break;
|
586
586
|
}
|
587
587
|
}
|
@@ -589,24 +589,24 @@ Check the top-level render call using <` + s + ">.");
|
|
589
589
|
}
|
590
590
|
}
|
591
591
|
var Ve = {};
|
592
|
-
function Ye(e, r,
|
592
|
+
function Ye(e, r, a, f, b, _) {
|
593
593
|
{
|
594
594
|
var p = M(e);
|
595
595
|
if (!p) {
|
596
596
|
var v = "";
|
597
597
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
598
|
-
var I =
|
598
|
+
var I = br(b);
|
599
599
|
I ? v += I : v += De();
|
600
600
|
var j;
|
601
|
-
e === null ? j = "null" : _e(e) ? j = "array" : e !== void 0 && e.$$typeof ===
|
601
|
+
e === null ? j = "null" : _e(e) ? j = "array" : e !== void 0 && e.$$typeof === s ? (j = "<" + (E(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : j = 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", j, v);
|
602
602
|
}
|
603
|
-
var N =
|
603
|
+
var N = yr(e, r, a, b, _);
|
604
604
|
if (N == null)
|
605
605
|
return N;
|
606
606
|
if (p) {
|
607
607
|
var Y = r.children;
|
608
608
|
if (Y !== void 0)
|
609
|
-
if (
|
609
|
+
if (f)
|
610
610
|
if (_e(Y)) {
|
611
611
|
for (var te = 0; te < Y.length; te++)
|
612
612
|
Be(Y[te], e);
|
@@ -616,135 +616,139 @@ Check the top-level render call using <` + s + ">.");
|
|
616
616
|
else
|
617
617
|
Be(Y, e);
|
618
618
|
}
|
619
|
-
if (
|
620
|
-
var X =
|
621
|
-
return
|
619
|
+
if (ae.call(r, "key")) {
|
620
|
+
var X = E(e), L = Object.keys(r).filter(function(Nr) {
|
621
|
+
return Nr !== "key";
|
622
622
|
}), je = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
|
623
623
|
if (!Ve[X + je]) {
|
624
|
-
var
|
624
|
+
var kr = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
|
625
625
|
y(`A props object containing a "key" prop is being spread into JSX:
|
626
626
|
let props = %s;
|
627
627
|
<%s {...props} />
|
628
628
|
React keys must be passed directly to JSX without using spread:
|
629
629
|
let props = %s;
|
630
|
-
<%s key={someKey} {...props} />`, je, X,
|
630
|
+
<%s key={someKey} {...props} />`, je, X, kr, X), Ve[X + je] = !0;
|
631
631
|
}
|
632
632
|
}
|
633
|
-
return e ===
|
633
|
+
return e === i ? Rr(N) : _r(N), N;
|
634
634
|
}
|
635
635
|
}
|
636
|
-
function
|
637
|
-
return Ye(e, r,
|
636
|
+
function Sr(e, r, a) {
|
637
|
+
return Ye(e, r, a, !0);
|
638
638
|
}
|
639
|
-
function Er(e, r,
|
640
|
-
return Ye(e, r,
|
639
|
+
function Er(e, r, a) {
|
640
|
+
return Ye(e, r, a, !1);
|
641
641
|
}
|
642
|
-
var Cr = Er,
|
643
|
-
ce.Fragment =
|
642
|
+
var Cr = Er, jr = Sr;
|
643
|
+
ce.Fragment = i, ce.jsx = Cr, ce.jsxs = jr;
|
644
644
|
}()), ce;
|
645
645
|
}
|
646
646
|
process.env.NODE_ENV === "production" ? ke.exports = Fr() : ke.exports = Lr();
|
647
|
-
var
|
648
|
-
function pe(n,
|
649
|
-
return
|
647
|
+
var o = ke.exports;
|
648
|
+
function pe(n, s) {
|
649
|
+
return s ? /* @__PURE__ */ o.jsx(s, { size: n, strokeWidth: 2.5 }) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
650
650
|
}
|
651
651
|
function zr(n) {
|
652
652
|
const {
|
653
|
-
variant:
|
654
|
-
scheme:
|
655
|
-
size:
|
653
|
+
variant: s = "ghost",
|
654
|
+
scheme: t = "primary",
|
655
|
+
size: i = "md",
|
656
656
|
leftIcon: c,
|
657
|
-
rightIcon:
|
658
|
-
className:
|
659
|
-
children:
|
660
|
-
...
|
661
|
-
} = n, g = { md: 12, lg: 14 }[
|
657
|
+
rightIcon: u,
|
658
|
+
className: d = "",
|
659
|
+
children: l,
|
660
|
+
...h
|
661
|
+
} = n, g = { md: 12, lg: 14 }[i];
|
662
662
|
return {
|
663
|
-
className: `arkyn_badge ${
|
664
|
-
children:
|
663
|
+
className: `arkyn_badge ${s} ${t} ${i} ${d}`.trim(),
|
664
|
+
children: l,
|
665
665
|
leftIcon: pe(g, c),
|
666
|
-
rightIcon: pe(g,
|
667
|
-
...
|
666
|
+
rightIcon: pe(g, u),
|
667
|
+
...h
|
668
668
|
};
|
669
669
|
}
|
670
670
|
function ln(n) {
|
671
|
-
const { leftIcon:
|
672
|
-
return /* @__PURE__ */
|
671
|
+
const { leftIcon: s, children: t, rightIcon: i, ...c } = zr(n);
|
672
|
+
return /* @__PURE__ */ o.jsxs("div", { ...c, children: [
|
673
|
+
s,
|
673
674
|
t,
|
674
|
-
i
|
675
|
-
o
|
675
|
+
i
|
676
676
|
] });
|
677
677
|
}
|
678
678
|
function fn(n) {
|
679
679
|
const {
|
680
|
-
className:
|
681
|
-
orientation:
|
682
|
-
...
|
683
|
-
} = n, c = `arkyn_divider ${
|
684
|
-
return /* @__PURE__ */
|
680
|
+
className: s,
|
681
|
+
orientation: t = "horizontal",
|
682
|
+
...i
|
683
|
+
} = n, c = `arkyn_divider ${t} ${s}`;
|
684
|
+
return /* @__PURE__ */ o.jsx("div", { className: c, ...i });
|
685
|
+
}
|
686
|
+
function dn({ className: n, ...s }) {
|
687
|
+
const t = "arkyn_skeleton " + n;
|
688
|
+
return /* @__PURE__ */ o.jsx("div", { className: t.trim(), ...s });
|
685
689
|
}
|
686
690
|
function Dr(n) {
|
687
691
|
const {
|
688
|
-
isLoading:
|
689
|
-
scheme:
|
690
|
-
variant:
|
692
|
+
isLoading: s = !1,
|
693
|
+
scheme: t = "primary",
|
694
|
+
variant: i = "solid",
|
691
695
|
loadingText: c,
|
692
|
-
size:
|
693
|
-
leftIcon:
|
694
|
-
rightIcon:
|
695
|
-
disabled:
|
696
|
+
size: u = "md",
|
697
|
+
leftIcon: d,
|
698
|
+
rightIcon: l,
|
699
|
+
disabled: h,
|
696
700
|
className: m = "",
|
697
701
|
children: g,
|
698
702
|
...x
|
699
|
-
} = n, k = { xs: 12, sm: 16, md: 20, lg: 24 }[
|
703
|
+
} = n, k = { xs: 12, sm: 16, md: 20, lg: 24 }[u];
|
700
704
|
return {
|
701
|
-
className: `arkyn_button loading_text_${!!c} ${
|
705
|
+
className: `arkyn_button loading_text_${!!c} ${i} ${t} ${u} loading_${s} ${m}`.trim(),
|
702
706
|
loadingText: c,
|
703
707
|
children: g,
|
704
708
|
iconSize: k,
|
705
|
-
disabled:
|
706
|
-
leftIcon: pe(k,
|
707
|
-
rightIcon: pe(k,
|
709
|
+
disabled: h || s,
|
710
|
+
leftIcon: pe(k, d),
|
711
|
+
rightIcon: pe(k, l),
|
708
712
|
...x
|
709
713
|
};
|
710
714
|
}
|
711
|
-
function
|
712
|
-
const { leftIcon:
|
713
|
-
return /* @__PURE__ */
|
714
|
-
/* @__PURE__ */
|
715
|
-
/* @__PURE__ */
|
716
|
-
|
715
|
+
function hn(n) {
|
716
|
+
const { leftIcon: s, rightIcon: t, iconSize: i, children: c, loadingText: u, ...d } = Dr(n);
|
717
|
+
return /* @__PURE__ */ o.jsxs("button", { ...d, children: [
|
718
|
+
/* @__PURE__ */ o.jsxs("div", { className: "spinner", children: [
|
719
|
+
/* @__PURE__ */ o.jsx(le, { size: i, strokeWidth: 2.5 }),
|
720
|
+
u && u
|
717
721
|
] }),
|
718
|
-
/* @__PURE__ */
|
719
|
-
|
722
|
+
/* @__PURE__ */ o.jsxs("div", { className: "content", children: [
|
723
|
+
s,
|
720
724
|
c,
|
721
|
-
|
725
|
+
t
|
722
726
|
] })
|
723
727
|
] });
|
724
728
|
}
|
725
|
-
const
|
726
|
-
function
|
727
|
-
var
|
728
|
-
const
|
729
|
-
return /* @__PURE__ */
|
729
|
+
const er = He({});
|
730
|
+
function mn({ children: n, ...s }) {
|
731
|
+
var l, h;
|
732
|
+
const t = wr(), i = ge(null), c = ((l = i.current) == null ? void 0 : l.name) || "", u = ((h = t == null ? void 0 : t.fieldErrors) == null ? void 0 : h[c]) || null, d = $r();
|
733
|
+
return /* @__PURE__ */ o.jsx(er.Provider, { value: { error: u, id: d, inputRef: i }, children: /* @__PURE__ */ o.jsx("section", { className: "arkyn_form_controller", ...s, children: n }) });
|
730
734
|
}
|
731
735
|
function fe() {
|
732
|
-
return Ze(
|
736
|
+
return Ze(er);
|
733
737
|
}
|
734
|
-
function
|
735
|
-
const { error:
|
736
|
-
return
|
738
|
+
function vn({ children: n }) {
|
739
|
+
const { error: s } = fe();
|
740
|
+
return n ? /* @__PURE__ */ o.jsx("strong", { className: "arkyn_form_error", children: n }) : s ? /* @__PURE__ */ o.jsx("strong", { className: "arkyn_form_error", children: s }) : /* @__PURE__ */ o.jsx(o.Fragment, {});
|
737
741
|
}
|
738
742
|
function Ar(n) {
|
739
|
-
const { showAsterisk:
|
743
|
+
const { showAsterisk: s = !1, className: t = "", ...i } = n;
|
740
744
|
return {
|
741
|
-
className: `arkyn_form_label ${
|
742
|
-
...
|
745
|
+
className: `arkyn_form_label ${s ? "show-asterisk" : ""} ${t}`.trim(),
|
746
|
+
...i
|
743
747
|
};
|
744
748
|
}
|
745
|
-
function
|
746
|
-
const { id:
|
747
|
-
return /* @__PURE__ */
|
749
|
+
function pn(n) {
|
750
|
+
const { id: s } = fe();
|
751
|
+
return /* @__PURE__ */ o.jsx("label", { ...Ar(n), htmlFor: s });
|
748
752
|
}
|
749
753
|
const qe = {
|
750
754
|
xs: 12,
|
@@ -752,285 +756,285 @@ const qe = {
|
|
752
756
|
md: 20,
|
753
757
|
lg: 24
|
754
758
|
};
|
755
|
-
function
|
759
|
+
function gn(n) {
|
756
760
|
const {
|
757
|
-
isLoading:
|
758
|
-
scheme:
|
759
|
-
variant:
|
761
|
+
isLoading: s = !1,
|
762
|
+
scheme: t = "primary",
|
763
|
+
variant: i = "solid",
|
760
764
|
size: c = "md",
|
761
|
-
icon:
|
762
|
-
disabled:
|
763
|
-
className:
|
764
|
-
...
|
765
|
-
} = n, m = `arkyn_icon_button ${
|
766
|
-
return /* @__PURE__ */
|
765
|
+
icon: u,
|
766
|
+
disabled: d,
|
767
|
+
className: l = "",
|
768
|
+
...h
|
769
|
+
} = n, m = `arkyn_icon_button ${i} ${t} ${c} loading_${s} ${l}`;
|
770
|
+
return /* @__PURE__ */ o.jsxs(
|
767
771
|
"button",
|
768
772
|
{
|
769
|
-
disabled:
|
773
|
+
disabled: d || s,
|
770
774
|
className: m.trim(),
|
771
|
-
...
|
775
|
+
...h,
|
772
776
|
children: [
|
773
|
-
/* @__PURE__ */
|
774
|
-
/* @__PURE__ */
|
777
|
+
/* @__PURE__ */ o.jsx("div", { className: "spinner", children: /* @__PURE__ */ o.jsx(le, { size: qe[c], strokeWidth: 2.5 }) }),
|
778
|
+
/* @__PURE__ */ o.jsx("div", { className: "content " + c, children: /* @__PURE__ */ o.jsx(u, { size: qe[c], strokeWidth: 2.5 }) })
|
775
779
|
]
|
776
780
|
}
|
777
781
|
);
|
778
782
|
}
|
779
|
-
function se(n,
|
783
|
+
function se(n, s, t) {
|
780
784
|
if (!n)
|
781
|
-
return /* @__PURE__ */
|
785
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, {});
|
782
786
|
if (typeof n == "string")
|
783
|
-
return /* @__PURE__ */
|
784
|
-
const
|
785
|
-
return /* @__PURE__ */
|
787
|
+
return /* @__PURE__ */ o.jsx("p", { className: t, children: n });
|
788
|
+
const i = n;
|
789
|
+
return /* @__PURE__ */ o.jsx("p", { className: t, children: /* @__PURE__ */ o.jsx(i, { color: "var(--secondary-600)", size: s, strokeWidth: 2.5 }) });
|
786
790
|
}
|
787
|
-
function Wr(n,
|
791
|
+
function Wr(n, s) {
|
788
792
|
const {
|
789
|
-
isLoading:
|
790
|
-
isError:
|
793
|
+
isLoading: t,
|
794
|
+
isError: i,
|
791
795
|
size: c = "md",
|
792
|
-
className:
|
793
|
-
variant:
|
794
|
-
prefix:
|
795
|
-
sufix:
|
796
|
+
className: u = "",
|
797
|
+
variant: d = "solid",
|
798
|
+
prefix: l,
|
799
|
+
sufix: h,
|
796
800
|
leftIcon: m,
|
797
801
|
rightIcon: g,
|
798
802
|
disabled: x,
|
799
|
-
readOnly:
|
803
|
+
readOnly: S,
|
800
804
|
onFocus: k,
|
801
|
-
onBlur:
|
805
|
+
onBlur: P,
|
802
806
|
title: T,
|
803
807
|
style: O,
|
804
808
|
onChange: R,
|
805
809
|
...y
|
806
|
-
} = n,
|
810
|
+
} = n, C = g ? "right" : "left", w = `arkyn_input ${l ? "hasPrefix" : ""} ${h ? "hasSufix" : ""} ${d} ${c} ${x || S || t ? "opacity" : ""} ${i ? "errored" : ""} ${s ? "focused" : ""} ${u}`, $ = { md: 20, lg: 20 }[c];
|
807
811
|
return {
|
808
|
-
isLoading:
|
809
|
-
className:
|
810
|
-
prefix: se(
|
811
|
-
sufix: se(
|
812
|
+
isLoading: t,
|
813
|
+
className: w,
|
814
|
+
prefix: se(l, $, "prefix"),
|
815
|
+
sufix: se(h, $, "sufix"),
|
812
816
|
LeftIcon: m,
|
813
817
|
RightIcon: g,
|
814
818
|
disabled: x,
|
815
|
-
readOnly:
|
819
|
+
readOnly: S,
|
816
820
|
onFocus: k,
|
817
|
-
onBlur:
|
821
|
+
onBlur: P,
|
818
822
|
title: T,
|
819
823
|
style: O,
|
820
824
|
onChange: R,
|
821
|
-
loadingPosition:
|
822
|
-
iconSize:
|
823
|
-
Spinner: /* @__PURE__ */
|
825
|
+
loadingPosition: C,
|
826
|
+
iconSize: $,
|
827
|
+
Spinner: /* @__PURE__ */ o.jsx(le, { className: "spinner", size: $, strokeWidth: 2.5 }),
|
824
828
|
...y
|
825
829
|
};
|
826
830
|
}
|
827
831
|
function Ne(n) {
|
828
832
|
return n && n.replace(/[^0-9]/g, "");
|
829
833
|
}
|
830
|
-
function Br(n,
|
831
|
-
let
|
832
|
-
return Array.from(n).forEach((c,
|
833
|
-
|
834
|
-
}),
|
834
|
+
function Br(n, s) {
|
835
|
+
let t = "", i = 0;
|
836
|
+
return Array.from(n).forEach((c, u) => {
|
837
|
+
s[u + i].match(/[0-9]/) || (t += s[u + i], i++), t += c;
|
838
|
+
}), t;
|
835
839
|
}
|
836
840
|
function Vr(n) {
|
837
841
|
return n.length > 11 ? "CNPJ" : "CPF";
|
838
842
|
}
|
839
|
-
const
|
843
|
+
const rr = {
|
840
844
|
CPF: "999.999.999-999",
|
841
845
|
CNPJ: "99.999.999/9999-99"
|
842
|
-
}, Yr = Ne(
|
846
|
+
}, Yr = Ne(rr.CNPJ).length;
|
843
847
|
function Mr(n) {
|
844
|
-
const [
|
848
|
+
const [s, t] = ue(!1), [i, c] = ue(
|
845
849
|
Ne((n == null ? void 0 : n.defaultValue) || "")
|
846
|
-
),
|
850
|
+
), u = ge(null), { inputRef: d, id: l, error: h } = fe(), m = d || u, g = n.isError || !!h, {
|
847
851
|
disabled: x,
|
848
|
-
title:
|
852
|
+
title: S,
|
849
853
|
style: k,
|
850
|
-
className:
|
854
|
+
className: P,
|
851
855
|
prefix: T,
|
852
856
|
sufix: O,
|
853
857
|
iconSize: R,
|
854
858
|
loadingPosition: y,
|
855
|
-
isLoading:
|
859
|
+
isLoading: C,
|
856
860
|
LeftIcon: F,
|
857
861
|
readOnly: W,
|
858
862
|
onFocus: z,
|
859
863
|
onBlur: D,
|
860
864
|
RightIcon: B,
|
861
|
-
Spinner:
|
865
|
+
Spinner: w,
|
862
866
|
onChange: M,
|
863
|
-
value:
|
867
|
+
value: $,
|
864
868
|
defaultValue: G = "",
|
865
|
-
...
|
866
|
-
} = Wr({ ...n, id:
|
869
|
+
...E
|
870
|
+
} = Wr({ ...n, id: l, isError: g }, s), A = F && !C, U = B && !C, J = y === "left" && C, H = y === "right" && C;
|
867
871
|
function Z() {
|
868
|
-
x || !(m != null && m.current) || (
|
872
|
+
x || !(m != null && m.current) || (t(!0), m.current.focus());
|
869
873
|
}
|
870
874
|
function Q(V) {
|
871
875
|
let K = Ne(V.target.value);
|
872
876
|
const q = Vr(K);
|
873
|
-
K.length > Yr || (K = Br(K,
|
877
|
+
K.length > Yr || (K = Br(K, rr[q]), V.target.value = K, c(K), M && M(V));
|
874
878
|
}
|
875
879
|
function ee(V) {
|
876
|
-
|
880
|
+
t(!0), z && z(V);
|
877
881
|
}
|
878
882
|
function re(V) {
|
879
|
-
|
883
|
+
t(!1), D && D(V);
|
880
884
|
}
|
881
|
-
return /* @__PURE__ */
|
885
|
+
return /* @__PURE__ */ o.jsxs(
|
882
886
|
"section",
|
883
887
|
{
|
884
|
-
title:
|
888
|
+
title: S,
|
885
889
|
style: k,
|
886
890
|
onClick: Z,
|
887
|
-
className:
|
891
|
+
className: P,
|
888
892
|
children: [
|
889
893
|
T,
|
890
|
-
J &&
|
891
|
-
A && /* @__PURE__ */
|
892
|
-
/* @__PURE__ */
|
894
|
+
J && w,
|
895
|
+
A && /* @__PURE__ */ o.jsx(F, { size: R, strokeWidth: 2.5 }),
|
896
|
+
/* @__PURE__ */ o.jsx(
|
893
897
|
"input",
|
894
898
|
{
|
895
|
-
disabled: x ||
|
899
|
+
disabled: x || C,
|
896
900
|
readOnly: W,
|
897
901
|
ref: m,
|
898
|
-
value:
|
902
|
+
value: $ || i,
|
899
903
|
onFocus: ee,
|
900
904
|
onChange: Q,
|
901
905
|
onBlur: re,
|
902
|
-
...
|
906
|
+
...E
|
903
907
|
}
|
904
908
|
),
|
905
|
-
U && /* @__PURE__ */
|
906
|
-
H &&
|
909
|
+
U && /* @__PURE__ */ o.jsx(B, { size: R, strokeWidth: 2.5 }),
|
910
|
+
H && w,
|
907
911
|
O
|
908
912
|
]
|
909
913
|
}
|
910
914
|
);
|
911
915
|
}
|
912
|
-
function Ur(n,
|
916
|
+
function Ur(n, s) {
|
913
917
|
const {
|
914
|
-
isLoading:
|
915
|
-
isError:
|
918
|
+
isLoading: t,
|
919
|
+
isError: i,
|
916
920
|
size: c = "md",
|
917
|
-
className:
|
918
|
-
variant:
|
919
|
-
prefix:
|
920
|
-
sufix:
|
921
|
+
className: u = "",
|
922
|
+
variant: d = "solid",
|
923
|
+
prefix: l,
|
924
|
+
sufix: h,
|
921
925
|
leftIcon: m,
|
922
926
|
rightIcon: g,
|
923
927
|
disabled: x,
|
924
|
-
readOnly:
|
928
|
+
readOnly: S,
|
925
929
|
onFocus: k,
|
926
|
-
onBlur:
|
930
|
+
onBlur: P,
|
927
931
|
title: T,
|
928
932
|
style: O,
|
929
933
|
showCents: R = !1,
|
930
934
|
max: y = 1e9,
|
931
|
-
onChange:
|
935
|
+
onChange: C,
|
932
936
|
...F
|
933
|
-
} = n, W = g ? "right" : "left",
|
937
|
+
} = n, W = g ? "right" : "left", $ = `arkyn_input ${l ? "hasPrefix" : ""} ${h ? "hasSufix" : ""} ${d} ${c} ${x || S || t ? "opacity" : ""} ${i ? "errored" : ""} ${s ? "focused" : ""} ${u}`, E = { md: 20, lg: 20 }[c];
|
934
938
|
return {
|
935
|
-
isLoading:
|
936
|
-
className:
|
937
|
-
prefix: se(
|
938
|
-
sufix: se(
|
939
|
+
isLoading: t,
|
940
|
+
className: $,
|
941
|
+
prefix: se(l, E, "prefix"),
|
942
|
+
sufix: se(h, E, "sufix"),
|
939
943
|
LeftIcon: m,
|
940
944
|
RightIcon: g,
|
941
945
|
disabled: x,
|
942
|
-
readOnly:
|
946
|
+
readOnly: S,
|
943
947
|
onFocus: k,
|
944
|
-
onBlur:
|
948
|
+
onBlur: P,
|
945
949
|
title: T,
|
946
950
|
style: O,
|
947
951
|
max: y,
|
948
|
-
onChange:
|
952
|
+
onChange: C,
|
949
953
|
showCents: R,
|
950
954
|
loadingPosition: W,
|
951
|
-
iconSize:
|
952
|
-
Spinner: /* @__PURE__ */
|
955
|
+
iconSize: E,
|
956
|
+
Spinner: /* @__PURE__ */ o.jsx(le, { className: "spinner", size: E, strokeWidth: 2.5 }),
|
953
957
|
...F
|
954
958
|
};
|
955
959
|
}
|
956
960
|
const Kr = /^[1-9]{1}$/, Jr = /^[0-9]{1}$/, Ge = 8;
|
957
|
-
function qr(n,
|
961
|
+
function qr(n, s) {
|
958
962
|
if (n === 0)
|
959
963
|
return "";
|
960
|
-
const
|
964
|
+
const t = (n / 100).toLocaleString("pt-BR", {
|
961
965
|
style: "currency",
|
962
966
|
currency: "BRL"
|
963
967
|
});
|
964
|
-
return
|
968
|
+
return s ? t : t.replace("R$", "").trim();
|
965
969
|
}
|
966
970
|
function Gr(n) {
|
967
|
-
const { currencyValue:
|
968
|
-
if (
|
971
|
+
const { currencyValue: s, event: t, max: i, setCurrencyValue: c } = n, { key: u, keyCode: d } = t;
|
972
|
+
if (s === 0 && !Kr.test(u) || s !== 0 && !Jr.test(u) && d !== Ge)
|
969
973
|
return;
|
970
|
-
const
|
971
|
-
let
|
972
|
-
if (
|
973
|
-
const m =
|
974
|
-
|
974
|
+
const l = s.toString();
|
975
|
+
let h;
|
976
|
+
if (d !== Ge) {
|
977
|
+
const m = s === 0 ? u : `${l}${u}`;
|
978
|
+
h = Number.parseInt(m, 10);
|
975
979
|
} else {
|
976
|
-
const m =
|
977
|
-
|
980
|
+
const m = l.slice(0, -1);
|
981
|
+
h = m === "" ? 0 : Number.parseInt(m, 10);
|
978
982
|
}
|
979
|
-
|
983
|
+
h > Number(i) || c(h);
|
980
984
|
}
|
981
985
|
function Xr(n) {
|
982
|
-
const [
|
986
|
+
const [s, t] = ue(!1), [i, c] = ue(n.defaultValue || 0), u = ge(null), { inputRef: d, id: l, error: h } = fe(), m = d || u, g = n.isError || !!h, {
|
983
987
|
disabled: x,
|
984
|
-
title:
|
988
|
+
title: S,
|
985
989
|
style: k,
|
986
|
-
className:
|
990
|
+
className: P,
|
987
991
|
prefix: T,
|
988
992
|
sufix: O,
|
989
993
|
iconSize: R,
|
990
994
|
loadingPosition: y,
|
991
|
-
isLoading:
|
995
|
+
isLoading: C,
|
992
996
|
LeftIcon: F,
|
993
997
|
readOnly: W,
|
994
998
|
onFocus: z,
|
995
999
|
onBlur: D,
|
996
1000
|
RightIcon: B,
|
997
|
-
Spinner:
|
1001
|
+
Spinner: w,
|
998
1002
|
value: M,
|
999
|
-
max:
|
1003
|
+
max: $,
|
1000
1004
|
onKeyDown: G,
|
1001
|
-
onChange:
|
1005
|
+
onChange: E,
|
1002
1006
|
showCents: A,
|
1003
1007
|
...U
|
1004
|
-
} = Ur({ ...n, id:
|
1008
|
+
} = Ur({ ...n, id: l, isError: g }, s), J = F && !C, H = B && !C, Z = y === "left" && C, Q = y === "right" && C;
|
1005
1009
|
function ee() {
|
1006
|
-
x || !(m != null && m.current) || (
|
1010
|
+
x || !(m != null && m.current) || (t(!0), m.current.focus());
|
1007
1011
|
}
|
1008
1012
|
function re(q) {
|
1009
|
-
Gr({ currencyValue:
|
1013
|
+
Gr({ currencyValue: i, event: q, max: $, setCurrencyValue: c }), E && E(i), G && G(q);
|
1010
1014
|
}
|
1011
1015
|
function V(q) {
|
1012
|
-
|
1016
|
+
t(!0), z && z(q);
|
1013
1017
|
}
|
1014
1018
|
function K(q) {
|
1015
|
-
|
1019
|
+
t(!1), D && D(q);
|
1016
1020
|
}
|
1017
|
-
return /* @__PURE__ */
|
1021
|
+
return /* @__PURE__ */ o.jsxs(
|
1018
1022
|
"section",
|
1019
1023
|
{
|
1020
|
-
title:
|
1024
|
+
title: S,
|
1021
1025
|
style: k,
|
1022
1026
|
onClick: ee,
|
1023
|
-
className:
|
1027
|
+
className: P,
|
1024
1028
|
children: [
|
1025
1029
|
T,
|
1026
|
-
Z &&
|
1027
|
-
J && /* @__PURE__ */
|
1028
|
-
/* @__PURE__ */
|
1030
|
+
Z && w,
|
1031
|
+
J && /* @__PURE__ */ o.jsx(F, { size: R, strokeWidth: 2.5 }),
|
1032
|
+
/* @__PURE__ */ o.jsx(
|
1029
1033
|
"input",
|
1030
1034
|
{
|
1031
|
-
value: qr(M ||
|
1035
|
+
value: qr(M || i, A),
|
1032
1036
|
onKeyDown: re,
|
1033
|
-
disabled: x ||
|
1037
|
+
disabled: x || C,
|
1034
1038
|
readOnly: W,
|
1035
1039
|
ref: m,
|
1036
1040
|
onFocus: V,
|
@@ -1040,106 +1044,106 @@ function Xr(n) {
|
|
1040
1044
|
...U
|
1041
1045
|
}
|
1042
1046
|
),
|
1043
|
-
Q &&
|
1044
|
-
H && /* @__PURE__ */
|
1047
|
+
Q && w,
|
1048
|
+
H && /* @__PURE__ */ o.jsx(B, { size: R, strokeWidth: 2.5 }),
|
1045
1049
|
O
|
1046
1050
|
]
|
1047
1051
|
}
|
1048
1052
|
);
|
1049
1053
|
}
|
1050
|
-
function Hr(n,
|
1054
|
+
function Hr(n, s) {
|
1051
1055
|
const {
|
1052
|
-
isLoading:
|
1053
|
-
isError:
|
1056
|
+
isLoading: t,
|
1057
|
+
isError: i,
|
1054
1058
|
size: c = "md",
|
1055
|
-
className:
|
1056
|
-
variant:
|
1057
|
-
prefix:
|
1058
|
-
sufix:
|
1059
|
+
className: u = "",
|
1060
|
+
variant: d = "solid",
|
1061
|
+
prefix: l,
|
1062
|
+
sufix: h,
|
1059
1063
|
leftIcon: m,
|
1060
1064
|
rightIcon: g,
|
1061
1065
|
disabled: x,
|
1062
|
-
readOnly:
|
1066
|
+
readOnly: S,
|
1063
1067
|
onFocus: k,
|
1064
|
-
onBlur:
|
1068
|
+
onBlur: P,
|
1065
1069
|
title: T,
|
1066
1070
|
style: O,
|
1067
1071
|
onChange: R,
|
1068
1072
|
...y
|
1069
|
-
} = n,
|
1073
|
+
} = n, C = g ? "right" : "left", w = `arkyn_input ${l ? "hasPrefix" : ""} ${h ? "hasSufix" : ""} ${d} ${c} ${x || S || t ? "opacity" : ""} ${i ? "errored" : ""} ${s ? "focused" : ""} ${u}`, $ = { md: 20, lg: 20 }[c];
|
1070
1074
|
return {
|
1071
|
-
isLoading:
|
1072
|
-
className:
|
1073
|
-
prefix: se(
|
1074
|
-
sufix: se(
|
1075
|
+
isLoading: t,
|
1076
|
+
className: w,
|
1077
|
+
prefix: se(l, $, "prefix"),
|
1078
|
+
sufix: se(h, $, "sufix"),
|
1075
1079
|
LeftIcon: m,
|
1076
1080
|
RightIcon: g,
|
1077
1081
|
disabled: x,
|
1078
|
-
readOnly:
|
1082
|
+
readOnly: S,
|
1079
1083
|
onFocus: k,
|
1080
|
-
onBlur:
|
1084
|
+
onBlur: P,
|
1081
1085
|
title: T,
|
1082
1086
|
style: O,
|
1083
1087
|
onChange: R,
|
1084
|
-
loadingPosition:
|
1085
|
-
iconSize:
|
1086
|
-
Spinner: /* @__PURE__ */
|
1088
|
+
loadingPosition: C,
|
1089
|
+
iconSize: $,
|
1090
|
+
Spinner: /* @__PURE__ */ o.jsx(le, { className: "spinner", size: $, strokeWidth: 2.5 }),
|
1087
1091
|
...y
|
1088
1092
|
};
|
1089
1093
|
}
|
1090
|
-
function
|
1091
|
-
const [
|
1094
|
+
function nr(n) {
|
1095
|
+
const [s, t] = ue(!1), i = ge(null), { inputRef: c, id: u, error: d } = fe(), l = c || i, h = n.isError || !!d, {
|
1092
1096
|
disabled: m,
|
1093
1097
|
title: g,
|
1094
1098
|
style: x,
|
1095
|
-
className:
|
1099
|
+
className: S,
|
1096
1100
|
prefix: k,
|
1097
|
-
sufix:
|
1101
|
+
sufix: P,
|
1098
1102
|
iconSize: T,
|
1099
1103
|
loadingPosition: O,
|
1100
1104
|
isLoading: R,
|
1101
1105
|
LeftIcon: y,
|
1102
|
-
readOnly:
|
1106
|
+
readOnly: C,
|
1103
1107
|
onFocus: F,
|
1104
1108
|
onBlur: W,
|
1105
1109
|
RightIcon: z,
|
1106
1110
|
Spinner: D,
|
1107
1111
|
...B
|
1108
|
-
} = Hr({ ...n, id:
|
1109
|
-
function
|
1110
|
-
m || !(
|
1112
|
+
} = Hr({ ...n, id: u, isError: h }, s), w = y && !R, M = z && !R, $ = O === "left" && R, G = O === "right" && R;
|
1113
|
+
function E() {
|
1114
|
+
m || !(l != null && l.current) || (t(!0), l.current.focus());
|
1111
1115
|
}
|
1112
1116
|
function A(J) {
|
1113
|
-
|
1117
|
+
t(!0), F && F(J);
|
1114
1118
|
}
|
1115
1119
|
function U(J) {
|
1116
|
-
|
1120
|
+
t(!1), W && W(J);
|
1117
1121
|
}
|
1118
|
-
return /* @__PURE__ */
|
1122
|
+
return /* @__PURE__ */ o.jsxs(
|
1119
1123
|
"section",
|
1120
1124
|
{
|
1121
1125
|
title: g,
|
1122
1126
|
style: x,
|
1123
|
-
onClick:
|
1124
|
-
className:
|
1127
|
+
onClick: E,
|
1128
|
+
className: S,
|
1125
1129
|
children: [
|
1126
1130
|
k,
|
1127
|
-
|
1128
|
-
|
1129
|
-
/* @__PURE__ */
|
1131
|
+
$ && D,
|
1132
|
+
w && /* @__PURE__ */ o.jsx(y, { size: T, strokeWidth: 2.5 }),
|
1133
|
+
/* @__PURE__ */ o.jsx(
|
1130
1134
|
"input",
|
1131
1135
|
{
|
1132
1136
|
disabled: m || R,
|
1133
|
-
readOnly:
|
1134
|
-
ref:
|
1137
|
+
readOnly: C,
|
1138
|
+
ref: l,
|
1135
1139
|
onFocus: A,
|
1136
1140
|
onBlur: U,
|
1137
1141
|
...B
|
1138
1142
|
}
|
1139
1143
|
),
|
1140
|
-
M && /* @__PURE__ */
|
1144
|
+
M && /* @__PURE__ */ o.jsx(z, { size: T, strokeWidth: 2.5 }),
|
1141
1145
|
G && D,
|
1142
|
-
|
1146
|
+
P
|
1143
1147
|
]
|
1144
1148
|
}
|
1145
1149
|
);
|
@@ -1155,55 +1159,55 @@ function Zr(n) {
|
|
1155
1159
|
// {prefix}
|
1156
1160
|
// {showLeftSpinner && Spinner}
|
1157
1161
|
// {showLeftIcon && <LeftIcon size={iconSize} strokeWidth={2.5} />}
|
1158
|
-
/* @__PURE__ */
|
1162
|
+
/* @__PURE__ */ o.jsx(Tr, { component: nr, ...n, type: "text" })
|
1159
1163
|
);
|
1160
1164
|
}
|
1161
|
-
function
|
1162
|
-
return n.type === "currency" ? /* @__PURE__ */
|
1165
|
+
function yn(n) {
|
1166
|
+
return n.type === "currency" ? /* @__PURE__ */ o.jsx(Xr, { ...n }) : n.type === "masked" ? /* @__PURE__ */ o.jsx(Zr, { ...n }) : n.type === "cpf-cpnj" ? /* @__PURE__ */ o.jsx(Mr, { ...n }) : /* @__PURE__ */ o.jsx(nr, { ...n });
|
1163
1167
|
}
|
1164
1168
|
function Qr(n) {
|
1165
|
-
const { className:
|
1166
|
-
return { className: `arkyn_breadcrumb ${
|
1169
|
+
const { className: s = "", ...t } = n;
|
1170
|
+
return { className: `arkyn_breadcrumb ${s}`.trim(), ...t };
|
1167
1171
|
}
|
1168
1172
|
function en(n) {
|
1169
|
-
const { pathname:
|
1170
|
-
className:
|
1171
|
-
disabled:
|
1173
|
+
const { pathname: s } = Qe(), {
|
1174
|
+
className: t = "",
|
1175
|
+
disabled: i = !1,
|
1172
1176
|
to: c,
|
1173
|
-
...
|
1174
|
-
} = n,
|
1177
|
+
...u
|
1178
|
+
} = n, d = s === c ? "active" : "inactive", l = `arkyn_breadcrumb_link ${d} ${t}`;
|
1175
1179
|
return {
|
1176
1180
|
to: c,
|
1177
|
-
className:
|
1178
|
-
disabled:
|
1179
|
-
...
|
1181
|
+
className: l.trim(),
|
1182
|
+
disabled: i || d === "active",
|
1183
|
+
...u
|
1180
1184
|
};
|
1181
1185
|
}
|
1182
|
-
function yn(n) {
|
1183
|
-
const { className: t, ...i } = Qr(n);
|
1184
|
-
return /* @__PURE__ */ a.jsx("nav", { className: t, ...i });
|
1185
|
-
}
|
1186
1186
|
function bn(n) {
|
1187
|
-
const {
|
1188
|
-
return
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1187
|
+
const { className: s, ...t } = Qr(n);
|
1188
|
+
return /* @__PURE__ */ o.jsx("nav", { className: s, ...t });
|
1189
|
+
}
|
1190
|
+
function xn(n) {
|
1191
|
+
const { children: s, className: t, disabled: i, ...c } = en(n);
|
1192
|
+
return i ? /* @__PURE__ */ o.jsxs("p", { className: t, children: [
|
1193
|
+
/* @__PURE__ */ o.jsx(Me, { size: 14, strokeWidth: 2.5 }),
|
1194
|
+
s
|
1195
|
+
] }) : /* @__PURE__ */ o.jsxs(Ir, { className: t, ...c, children: [
|
1196
|
+
/* @__PURE__ */ o.jsx(Me, { size: 14, strokeWidth: 2.5 }),
|
1197
|
+
s
|
1194
1198
|
] });
|
1195
1199
|
}
|
1196
|
-
const
|
1200
|
+
const tr = He({});
|
1197
1201
|
function rn(n) {
|
1198
1202
|
const {
|
1199
|
-
isVisibled:
|
1200
|
-
makeInvisible:
|
1201
|
-
children:
|
1203
|
+
isVisibled: s,
|
1204
|
+
makeInvisible: t,
|
1205
|
+
children: i,
|
1202
1206
|
className: c = "",
|
1203
|
-
...
|
1204
|
-
} = n,
|
1205
|
-
return /* @__PURE__ */
|
1206
|
-
/* @__PURE__ */
|
1207
|
+
...u
|
1208
|
+
} = n, l = `arkyn_modal_container ${s ? "visible" : ""} ${c}`;
|
1209
|
+
return /* @__PURE__ */ o.jsx(tr.Provider, { value: { makeInvisible: t }, children: /* @__PURE__ */ o.jsx(Or, { children: s && /* @__PURE__ */ o.jsxs("aside", { className: l.trim(), ...u, children: [
|
1210
|
+
/* @__PURE__ */ o.jsx(
|
1207
1211
|
Ue.div,
|
1208
1212
|
{
|
1209
1213
|
className: "overlay",
|
@@ -1211,10 +1215,10 @@ function rn(n) {
|
|
1211
1215
|
initial: { opacity: 0 },
|
1212
1216
|
animate: { opacity: 1 },
|
1213
1217
|
exit: { opacity: 0 },
|
1214
|
-
onClick:
|
1218
|
+
onClick: t
|
1215
1219
|
}
|
1216
1220
|
),
|
1217
|
-
/* @__PURE__ */
|
1221
|
+
/* @__PURE__ */ o.jsx(
|
1218
1222
|
Ue.div,
|
1219
1223
|
{
|
1220
1224
|
className: "content",
|
@@ -1222,55 +1226,72 @@ function rn(n) {
|
|
1222
1226
|
initial: { opacity: 0, scale: 0.75 },
|
1223
1227
|
animate: { opacity: 1, scale: 1 },
|
1224
1228
|
exit: { opacity: 0, scale: 0 },
|
1225
|
-
children:
|
1229
|
+
children: i
|
1226
1230
|
}
|
1227
1231
|
)
|
1228
1232
|
] }) }) });
|
1229
1233
|
}
|
1230
1234
|
function nn(n) {
|
1231
|
-
const { alignment:
|
1232
|
-
return /* @__PURE__ */
|
1235
|
+
const { alignment: s = "right", className: t, ...i } = n, c = `arkyn_modal_footer ${s} ${t}`;
|
1236
|
+
return /* @__PURE__ */ o.jsx("footer", { className: c.trim(), ...i });
|
1233
1237
|
}
|
1234
1238
|
function tn(n) {
|
1235
|
-
const { showCloseButton:
|
1236
|
-
return /* @__PURE__ */
|
1237
|
-
|
1238
|
-
/* @__PURE__ */
|
1239
|
+
const { showCloseButton: s, className: t, children: i, ...c } = n, { makeInvisible: u } = Ze(tr), l = `arkyn_modal_header ${s ? "show-close" : ""} ${t}`;
|
1240
|
+
return /* @__PURE__ */ o.jsxs("header", { className: l.trim(), ...c, children: [
|
1241
|
+
i,
|
1242
|
+
/* @__PURE__ */ o.jsx("button", { type: "button", onClick: u, children: /* @__PURE__ */ o.jsx(Pr, { size: 24 }) })
|
1239
1243
|
] });
|
1240
1244
|
}
|
1241
|
-
const
|
1242
|
-
function
|
1245
|
+
const _n = { Container: rn, Header: tn, Footer: nn };
|
1246
|
+
function Rn(n) {
|
1243
1247
|
const {
|
1244
|
-
text:
|
1245
|
-
size:
|
1246
|
-
children:
|
1248
|
+
text: s,
|
1249
|
+
size: t = "lg",
|
1250
|
+
children: i,
|
1247
1251
|
orientation: c = "top",
|
1248
|
-
className:
|
1249
|
-
...
|
1252
|
+
className: u,
|
1253
|
+
...d
|
1250
1254
|
} = n;
|
1251
|
-
return /* @__PURE__ */
|
1255
|
+
return /* @__PURE__ */ o.jsxs(
|
1252
1256
|
"div",
|
1253
1257
|
{
|
1254
|
-
className: `arkyn_tooltip ${
|
1255
|
-
...
|
1258
|
+
className: `arkyn_tooltip ${t} ${c} ${u}`,
|
1259
|
+
...d,
|
1256
1260
|
children: [
|
1257
|
-
|
1258
|
-
/* @__PURE__ */
|
1261
|
+
i,
|
1262
|
+
/* @__PURE__ */ o.jsx("div", { className: "arkyn_tooltip_text", children: s })
|
1259
1263
|
]
|
1260
1264
|
}
|
1261
1265
|
);
|
1262
1266
|
}
|
1267
|
+
function Sn(n = "") {
|
1268
|
+
const s = Qe(), t = new URLSearchParams(s.search), i = n ? `${n}:` : "", c = (u) => {
|
1269
|
+
Object.entries(u).forEach(([d, l]) => {
|
1270
|
+
l === void 0 ? t.delete(`${i}${d}`) : t.set(`${i}${d}`, String(l));
|
1271
|
+
});
|
1272
|
+
};
|
1273
|
+
return {
|
1274
|
+
getParam: (u) => t.get(`${i}${u}`),
|
1275
|
+
getScopedSearch: (u) => {
|
1276
|
+
c(u);
|
1277
|
+
let d = t.toString();
|
1278
|
+
return d && (d = "?" + d), d;
|
1279
|
+
}
|
1280
|
+
};
|
1281
|
+
}
|
1263
1282
|
export {
|
1264
1283
|
ln as Badge,
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1284
|
+
bn as Breadcrumb,
|
1285
|
+
xn as BreadcrumbLink,
|
1286
|
+
hn as Button,
|
1268
1287
|
fn as Divider,
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1288
|
+
mn as FormController,
|
1289
|
+
vn as FormError,
|
1290
|
+
pn as FormLabel,
|
1291
|
+
gn as IconButton,
|
1292
|
+
yn as Input,
|
1293
|
+
_n as Modal,
|
1294
|
+
dn as Skeleton,
|
1295
|
+
Rn as Tooltip,
|
1296
|
+
Sn as useScopedParams
|
1276
1297
|
};
|