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