@arkyn/components 1.3.60 → 1.3.62
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +451 -450
- package/dist/bundle.umd.cjs +9 -9
- package/dist/components/Select/getConfig.d.ts.map +1 -1
- package/dist/components/Select/getConfig.js +1 -4
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +8 -29
- package/dist/components/Tabs/TabButton/index.d.ts.map +1 -1
- package/dist/components/Tabs/TabButton/index.js +2 -2
- package/package.json +1 -1
- package/src/components/Select/getConfig.tsx +0 -2
- package/src/components/Select/index.tsx +5 -33
- package/src/components/Tabs/TabButton/index.tsx +8 -2
package/dist/bundle.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import p, { createContext as Ie, useRef as
|
1
|
+
import p, { createContext as Ie, useRef as Ce, useId as Kt, useContext as Ee, useState as ce, forwardRef as Xt, useLayoutEffect as Jt, useEffect as pt } from "react";
|
2
2
|
import { Loader2 as Se, Check as Ct, ChevronDown as qt, ChevronRight as at, ChevronLeft as Gt, Ellipsis as gt, X as Nt, Info as vt, AlertCircle as Zt, XCircle as Qt, CheckCircle2 as en } from "lucide-react";
|
3
3
|
import { useActionData as _t, useLocation as jt, Link as tn, useNavigate as nn } from "@remix-run/react";
|
4
4
|
import { InputMask as rn } from "@react-input/mask";
|
5
5
|
import { AnimatePresence as Et, motion as Ae } from "framer-motion";
|
6
6
|
import an from "react-dom";
|
7
|
-
var st = { exports: {} },
|
7
|
+
var st = { exports: {} }, Me = {};
|
8
8
|
/**
|
9
9
|
* @license React
|
10
10
|
* react-jsx-runtime.production.min.js
|
@@ -16,7 +16,7 @@ var st = { exports: {} }, Be = {};
|
|
16
16
|
*/
|
17
17
|
var bt;
|
18
18
|
function sn() {
|
19
|
-
if (bt) return
|
19
|
+
if (bt) return Me;
|
20
20
|
bt = 1;
|
21
21
|
var e = p, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
22
22
|
function f(c, u, m) {
|
@@ -26,9 +26,9 @@ function sn() {
|
|
26
26
|
if (c && c.defaultProps) for (h in u = c.defaultProps, u) b[h] === void 0 && (b[h] = u[h]);
|
27
27
|
return { $$typeof: n, type: c, key: a, ref: v, props: b, _owner: i.current };
|
28
28
|
}
|
29
|
-
return
|
29
|
+
return Me.Fragment = r, Me.jsx = f, Me.jsxs = f, Me;
|
30
30
|
}
|
31
|
-
var
|
31
|
+
var Be = {};
|
32
32
|
/**
|
33
33
|
* @license React
|
34
34
|
* react-jsx-runtime.development.js
|
@@ -41,11 +41,11 @@ var Me = {};
|
|
41
41
|
var yt;
|
42
42
|
function on() {
|
43
43
|
return yt || (yt = 1, process.env.NODE_ENV !== "production" && function() {
|
44
|
-
var e = p, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), a = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"),
|
44
|
+
var e = p, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), a = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), _ = Symbol.iterator, x = "@@iterator";
|
45
45
|
function C(t) {
|
46
46
|
if (t === null || typeof t != "object")
|
47
47
|
return null;
|
48
|
-
var d =
|
48
|
+
var d = _ && t[_] || t[x];
|
49
49
|
return typeof d == "function" ? d : null;
|
50
50
|
}
|
51
51
|
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
@@ -53,27 +53,27 @@ function on() {
|
|
53
53
|
{
|
54
54
|
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), k = 1; k < d; k++)
|
55
55
|
g[k - 1] = arguments[k];
|
56
|
-
|
56
|
+
Y("error", t, g);
|
57
57
|
}
|
58
58
|
}
|
59
|
-
function
|
59
|
+
function Y(t, d, g) {
|
60
60
|
{
|
61
61
|
var k = y.ReactDebugCurrentFrame, D = k.getStackAddendum();
|
62
62
|
D !== "" && (d += "%s", g = g.concat([D]));
|
63
|
-
var
|
63
|
+
var V = g.map(function(I) {
|
64
64
|
return String(I);
|
65
65
|
});
|
66
|
-
|
66
|
+
V.unshift("Warning: " + d), Function.prototype.apply.call(console[t], console, V);
|
67
67
|
}
|
68
68
|
}
|
69
|
-
var z = !1, R = !1, A = !1, L = !1,
|
70
|
-
|
71
|
-
function
|
72
|
-
return !!(typeof t == "string" || typeof t == "function" || t === o || t === l ||
|
69
|
+
var z = !1, R = !1, A = !1, L = !1, J = !1, K;
|
70
|
+
K = Symbol.for("react.module.reference");
|
71
|
+
function H(t) {
|
72
|
+
return !!(typeof t == "string" || typeof t == "function" || t === o || t === l || J || t === i || t === m || t === h || L || t === v || z || R || A || typeof t == "object" && t !== null && (t.$$typeof === a || t.$$typeof === b || t.$$typeof === f || t.$$typeof === c || t.$$typeof === u || // This needs to include all possible module reference object
|
73
73
|
// types supported by any Flight configuration anywhere since
|
74
74
|
// we don't know which Flight build this will end up being used
|
75
75
|
// with.
|
76
|
-
t.$$typeof ===
|
76
|
+
t.$$typeof === K || t.getModuleId !== void 0));
|
77
77
|
}
|
78
78
|
function O(t, d, g) {
|
79
79
|
var k = t.displayName;
|
@@ -82,10 +82,10 @@ function on() {
|
|
82
82
|
var D = d.displayName || d.name || "";
|
83
83
|
return D !== "" ? g + "(" + D + ")" : g;
|
84
84
|
}
|
85
|
-
function
|
85
|
+
function Q(t) {
|
86
86
|
return t.displayName || "Context";
|
87
87
|
}
|
88
|
-
function
|
88
|
+
function j(t) {
|
89
89
|
if (t == null)
|
90
90
|
return null;
|
91
91
|
if (typeof t.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
@@ -110,19 +110,19 @@ function on() {
|
|
110
110
|
switch (t.$$typeof) {
|
111
111
|
case c:
|
112
112
|
var d = t;
|
113
|
-
return
|
113
|
+
return Q(d) + ".Consumer";
|
114
114
|
case f:
|
115
115
|
var g = t;
|
116
|
-
return
|
116
|
+
return Q(g._context) + ".Provider";
|
117
117
|
case u:
|
118
118
|
return O(t, t.render, "ForwardRef");
|
119
119
|
case b:
|
120
120
|
var k = t.displayName || null;
|
121
|
-
return k !== null ? k :
|
121
|
+
return k !== null ? k : j(t.type) || "Memo";
|
122
122
|
case a: {
|
123
|
-
var D = t,
|
123
|
+
var D = t, V = D._payload, I = D._init;
|
124
124
|
try {
|
125
|
-
return
|
125
|
+
return j(I(V));
|
126
126
|
} catch {
|
127
127
|
return null;
|
128
128
|
}
|
@@ -130,18 +130,18 @@ function on() {
|
|
130
130
|
}
|
131
131
|
return null;
|
132
132
|
}
|
133
|
-
var
|
134
|
-
function
|
133
|
+
var q = Object.assign, F = 0, U, ne, $, ee, oe, S, E;
|
134
|
+
function P() {
|
135
135
|
}
|
136
|
-
|
137
|
-
function
|
136
|
+
P.__reactDisabledLog = !0;
|
137
|
+
function X() {
|
138
138
|
{
|
139
139
|
if (F === 0) {
|
140
|
-
|
140
|
+
U = console.log, ne = console.info, $ = console.warn, ee = console.error, oe = console.group, S = console.groupCollapsed, E = console.groupEnd;
|
141
141
|
var t = {
|
142
142
|
configurable: !0,
|
143
143
|
enumerable: !0,
|
144
|
-
value:
|
144
|
+
value: P,
|
145
145
|
writable: !0
|
146
146
|
};
|
147
147
|
Object.defineProperties(console, {
|
@@ -157,7 +157,7 @@ function on() {
|
|
157
157
|
F++;
|
158
158
|
}
|
159
159
|
}
|
160
|
-
function
|
160
|
+
function G() {
|
161
161
|
{
|
162
162
|
if (F--, F === 0) {
|
163
163
|
var t = {
|
@@ -166,65 +166,65 @@ function on() {
|
|
166
166
|
writable: !0
|
167
167
|
};
|
168
168
|
Object.defineProperties(console, {
|
169
|
-
log:
|
170
|
-
value:
|
169
|
+
log: q({}, t, {
|
170
|
+
value: U
|
171
171
|
}),
|
172
|
-
info:
|
173
|
-
value:
|
172
|
+
info: q({}, t, {
|
173
|
+
value: ne
|
174
174
|
}),
|
175
|
-
warn:
|
175
|
+
warn: q({}, t, {
|
176
176
|
value: $
|
177
177
|
}),
|
178
|
-
error:
|
179
|
-
value:
|
178
|
+
error: q({}, t, {
|
179
|
+
value: ee
|
180
180
|
}),
|
181
|
-
group:
|
182
|
-
value:
|
181
|
+
group: q({}, t, {
|
182
|
+
value: oe
|
183
183
|
}),
|
184
|
-
groupCollapsed:
|
185
|
-
value:
|
184
|
+
groupCollapsed: q({}, t, {
|
185
|
+
value: S
|
186
186
|
}),
|
187
|
-
groupEnd:
|
188
|
-
value:
|
187
|
+
groupEnd: q({}, t, {
|
188
|
+
value: E
|
189
189
|
})
|
190
190
|
});
|
191
191
|
}
|
192
192
|
F < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
193
193
|
}
|
194
194
|
}
|
195
|
-
var
|
196
|
-
function
|
195
|
+
var W = y.ReactCurrentDispatcher, Ne;
|
196
|
+
function me(t, d, g) {
|
197
197
|
{
|
198
|
-
if (
|
198
|
+
if (Ne === void 0)
|
199
199
|
try {
|
200
200
|
throw Error();
|
201
201
|
} catch (D) {
|
202
202
|
var k = D.stack.trim().match(/\n( *(at )?)/);
|
203
|
-
|
203
|
+
Ne = k && k[1] || "";
|
204
204
|
}
|
205
205
|
return `
|
206
|
-
` +
|
206
|
+
` + Ne + t;
|
207
207
|
}
|
208
208
|
}
|
209
|
-
var
|
209
|
+
var ve = !1, pe;
|
210
210
|
{
|
211
211
|
var Ge = typeof WeakMap == "function" ? WeakMap : Map;
|
212
|
-
|
212
|
+
pe = new Ge();
|
213
213
|
}
|
214
214
|
function Re(t, d) {
|
215
|
-
if (!t ||
|
215
|
+
if (!t || ve)
|
216
216
|
return "";
|
217
217
|
{
|
218
|
-
var g =
|
218
|
+
var g = pe.get(t);
|
219
219
|
if (g !== void 0)
|
220
220
|
return g;
|
221
221
|
}
|
222
222
|
var k;
|
223
|
-
|
223
|
+
ve = !0;
|
224
224
|
var D = Error.prepareStackTrace;
|
225
225
|
Error.prepareStackTrace = void 0;
|
226
|
-
var
|
227
|
-
|
226
|
+
var V;
|
227
|
+
V = W.current, W.current = null, X();
|
228
228
|
try {
|
229
229
|
if (d) {
|
230
230
|
var I = function() {
|
@@ -237,50 +237,50 @@ function on() {
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
238
238
|
try {
|
239
239
|
Reflect.construct(I, []);
|
240
|
-
} catch (
|
241
|
-
k =
|
240
|
+
} catch (le) {
|
241
|
+
k = le;
|
242
242
|
}
|
243
243
|
Reflect.construct(t, [], I);
|
244
244
|
} else {
|
245
245
|
try {
|
246
246
|
I.call();
|
247
|
-
} catch (
|
248
|
-
k =
|
247
|
+
} catch (le) {
|
248
|
+
k = le;
|
249
249
|
}
|
250
250
|
t.call(I.prototype);
|
251
251
|
}
|
252
252
|
} else {
|
253
253
|
try {
|
254
254
|
throw Error();
|
255
|
-
} catch (
|
256
|
-
k =
|
255
|
+
} catch (le) {
|
256
|
+
k = le;
|
257
257
|
}
|
258
258
|
t();
|
259
259
|
}
|
260
|
-
} catch (
|
261
|
-
if (
|
262
|
-
for (var
|
263
|
-
`),
|
264
|
-
`),
|
265
|
-
|
266
|
-
for (;
|
267
|
-
if (
|
268
|
-
if (
|
260
|
+
} catch (le) {
|
261
|
+
if (le && k && typeof le.stack == "string") {
|
262
|
+
for (var T = le.stack.split(`
|
263
|
+
`), se = k.stack.split(`
|
264
|
+
`), Z = T.length - 1, te = se.length - 1; Z >= 1 && te >= 0 && T[Z] !== se[te]; )
|
265
|
+
te--;
|
266
|
+
for (; Z >= 1 && te >= 0; Z--, te--)
|
267
|
+
if (T[Z] !== se[te]) {
|
268
|
+
if (Z !== 1 || te !== 1)
|
269
269
|
do
|
270
|
-
if (
|
271
|
-
var
|
272
|
-
` +
|
273
|
-
return t.displayName &&
|
270
|
+
if (Z--, te--, te < 0 || T[Z] !== se[te]) {
|
271
|
+
var he = `
|
272
|
+
` + T[Z].replace(" at new ", " at ");
|
273
|
+
return t.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", t.displayName)), typeof t == "function" && pe.set(t, he), he;
|
274
274
|
}
|
275
|
-
while (
|
275
|
+
while (Z >= 1 && te >= 0);
|
276
276
|
break;
|
277
277
|
}
|
278
278
|
}
|
279
279
|
} finally {
|
280
|
-
|
280
|
+
ve = !1, W.current = V, G(), Error.prepareStackTrace = D;
|
281
281
|
}
|
282
|
-
var Te = t ? t.displayName || t.name : "", je = Te ?
|
283
|
-
return typeof t == "function" &&
|
282
|
+
var Te = t ? t.displayName || t.name : "", je = Te ? me(Te) : "";
|
283
|
+
return typeof t == "function" && pe.set(t, je), je;
|
284
284
|
}
|
285
285
|
function Ze(t, d, g) {
|
286
286
|
return Re(t, !1);
|
@@ -295,12 +295,12 @@ function on() {
|
|
295
295
|
if (typeof t == "function")
|
296
296
|
return Re(t, We(t));
|
297
297
|
if (typeof t == "string")
|
298
|
-
return
|
298
|
+
return me(t);
|
299
299
|
switch (t) {
|
300
300
|
case m:
|
301
|
-
return
|
301
|
+
return me("Suspense");
|
302
302
|
case h:
|
303
|
-
return
|
303
|
+
return me("SuspenseList");
|
304
304
|
}
|
305
305
|
if (typeof t == "object")
|
306
306
|
switch (t.$$typeof) {
|
@@ -309,39 +309,39 @@ function on() {
|
|
309
309
|
case b:
|
310
310
|
return _e(t.type, d, g);
|
311
311
|
case a: {
|
312
|
-
var k = t, D = k._payload,
|
312
|
+
var k = t, D = k._payload, V = k._init;
|
313
313
|
try {
|
314
|
-
return _e(
|
314
|
+
return _e(V(D), d, g);
|
315
315
|
} catch {
|
316
316
|
}
|
317
317
|
}
|
318
318
|
}
|
319
319
|
return "";
|
320
320
|
}
|
321
|
-
var
|
322
|
-
function
|
321
|
+
var de = Object.prototype.hasOwnProperty, Ve = {}, Ye = y.ReactDebugCurrentFrame;
|
322
|
+
function re(t) {
|
323
323
|
if (t) {
|
324
324
|
var d = t._owner, g = _e(t.type, t._source, d ? d.type : null);
|
325
325
|
Ye.setExtraStackFrame(g);
|
326
326
|
} else
|
327
327
|
Ye.setExtraStackFrame(null);
|
328
328
|
}
|
329
|
-
function
|
329
|
+
function xe(t, d, g, k, D) {
|
330
330
|
{
|
331
|
-
var
|
331
|
+
var V = Function.call.bind(de);
|
332
332
|
for (var I in t)
|
333
|
-
if (
|
334
|
-
var
|
333
|
+
if (V(t, I)) {
|
334
|
+
var T = void 0;
|
335
335
|
try {
|
336
336
|
if (typeof t[I] != "function") {
|
337
|
-
var
|
338
|
-
throw
|
337
|
+
var se = Error((k || "React class") + ": " + g + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
338
|
+
throw se.name = "Invariant Violation", se;
|
339
339
|
}
|
340
|
-
|
341
|
-
} catch (
|
342
|
-
|
340
|
+
T = t[I](d, I, k, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
341
|
+
} catch (Z) {
|
342
|
+
T = Z;
|
343
343
|
}
|
344
|
-
|
344
|
+
T && !(T instanceof Error) && (re(D), w("%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).", k || "React class", g, I, typeof T), re(null)), T instanceof Error && !(T.message in Ve) && (Ve[T.message] = !0, re(D), w("Failed %s type: %s", g, T.message), re(null));
|
345
345
|
}
|
346
346
|
}
|
347
347
|
}
|
@@ -369,15 +369,15 @@ function on() {
|
|
369
369
|
if (et(t))
|
370
370
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $e(t)), ze(t);
|
371
371
|
}
|
372
|
-
var
|
372
|
+
var fe = y.ReactCurrentOwner, He = {
|
373
373
|
key: !0,
|
374
374
|
ref: !0,
|
375
375
|
__self: !0,
|
376
376
|
__source: !0
|
377
|
-
},
|
377
|
+
}, be, Fe, De;
|
378
378
|
De = {};
|
379
379
|
function Ue(t) {
|
380
|
-
if (
|
380
|
+
if (de.call(t, "ref")) {
|
381
381
|
var d = Object.getOwnPropertyDescriptor(t, "ref").get;
|
382
382
|
if (d && d.isReactWarning)
|
383
383
|
return !1;
|
@@ -385,7 +385,7 @@ function on() {
|
|
385
385
|
return t.ref !== void 0;
|
386
386
|
}
|
387
387
|
function Ke(t) {
|
388
|
-
if (
|
388
|
+
if (de.call(t, "key")) {
|
389
389
|
var d = Object.getOwnPropertyDescriptor(t, "key").get;
|
390
390
|
if (d && d.isReactWarning)
|
391
391
|
return !1;
|
@@ -393,15 +393,15 @@ function on() {
|
|
393
393
|
return t.key !== void 0;
|
394
394
|
}
|
395
395
|
function tt(t, d) {
|
396
|
-
if (typeof t.ref == "string" &&
|
397
|
-
var g =
|
398
|
-
De[g] || (w('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',
|
396
|
+
if (typeof t.ref == "string" && fe.current && d && fe.current.stateNode !== d) {
|
397
|
+
var g = j(fe.current.type);
|
398
|
+
De[g] || (w('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', j(fe.current.type), t.ref), De[g] = !0);
|
399
399
|
}
|
400
400
|
}
|
401
401
|
function Le(t, d) {
|
402
402
|
{
|
403
403
|
var g = function() {
|
404
|
-
|
404
|
+
be || (be = !0, w("%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)", d));
|
405
405
|
};
|
406
406
|
g.isReactWarning = !0, Object.defineProperty(t, "key", {
|
407
407
|
get: g,
|
@@ -409,7 +409,7 @@ function on() {
|
|
409
409
|
});
|
410
410
|
}
|
411
411
|
}
|
412
|
-
function
|
412
|
+
function ge(t, d) {
|
413
413
|
{
|
414
414
|
var g = function() {
|
415
415
|
Fe || (Fe = !0, w("%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)", d));
|
@@ -420,8 +420,8 @@ function on() {
|
|
420
420
|
});
|
421
421
|
}
|
422
422
|
}
|
423
|
-
var nt = function(t, d, g, k, D,
|
424
|
-
var
|
423
|
+
var nt = function(t, d, g, k, D, V, I) {
|
424
|
+
var T = {
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
426
426
|
$$typeof: n,
|
427
427
|
// Built-in properties that belong on the element
|
@@ -430,60 +430,60 @@ function on() {
|
|
430
430
|
ref: g,
|
431
431
|
props: I,
|
432
432
|
// Record the component responsible for creating this element.
|
433
|
-
_owner:
|
433
|
+
_owner: V
|
434
434
|
};
|
435
|
-
return
|
435
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
436
436
|
configurable: !1,
|
437
437
|
enumerable: !1,
|
438
438
|
writable: !0,
|
439
439
|
value: !1
|
440
|
-
}), Object.defineProperty(
|
440
|
+
}), Object.defineProperty(T, "_self", {
|
441
441
|
configurable: !1,
|
442
442
|
enumerable: !1,
|
443
443
|
writable: !1,
|
444
444
|
value: k
|
445
|
-
}), Object.defineProperty(
|
445
|
+
}), Object.defineProperty(T, "_source", {
|
446
446
|
configurable: !1,
|
447
447
|
enumerable: !1,
|
448
448
|
writable: !1,
|
449
449
|
value: D
|
450
|
-
}), Object.freeze && (Object.freeze(
|
450
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
451
451
|
};
|
452
452
|
function N(t, d, g, k, D) {
|
453
453
|
{
|
454
|
-
var
|
455
|
-
g !== void 0 && (Pe(g),
|
456
|
-
for (
|
457
|
-
|
454
|
+
var V, I = {}, T = null, se = null;
|
455
|
+
g !== void 0 && (Pe(g), T = "" + g), Ke(d) && (Pe(d.key), T = "" + d.key), Ue(d) && (se = d.ref, tt(d, D));
|
456
|
+
for (V in d)
|
457
|
+
de.call(d, V) && !He.hasOwnProperty(V) && (I[V] = d[V]);
|
458
458
|
if (t && t.defaultProps) {
|
459
|
-
var
|
460
|
-
for (
|
461
|
-
I[
|
459
|
+
var Z = t.defaultProps;
|
460
|
+
for (V in Z)
|
461
|
+
I[V] === void 0 && (I[V] = Z[V]);
|
462
462
|
}
|
463
|
-
if (
|
464
|
-
var
|
465
|
-
|
463
|
+
if (T || se) {
|
464
|
+
var te = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
465
|
+
T && Le(I, te), se && ge(I, te);
|
466
466
|
}
|
467
|
-
return nt(t,
|
467
|
+
return nt(t, T, se, D, k, fe.current, I);
|
468
468
|
}
|
469
469
|
}
|
470
|
-
var
|
471
|
-
function
|
470
|
+
var M = y.ReactCurrentOwner, B = y.ReactDebugCurrentFrame;
|
471
|
+
function ae(t) {
|
472
472
|
if (t) {
|
473
473
|
var d = t._owner, g = _e(t.type, t._source, d ? d.type : null);
|
474
|
-
|
474
|
+
B.setExtraStackFrame(g);
|
475
475
|
} else
|
476
|
-
|
476
|
+
B.setExtraStackFrame(null);
|
477
477
|
}
|
478
|
-
var
|
479
|
-
|
480
|
-
function
|
478
|
+
var ie;
|
479
|
+
ie = !1;
|
480
|
+
function we(t) {
|
481
481
|
return typeof t == "object" && t !== null && t.$$typeof === n;
|
482
482
|
}
|
483
483
|
function Xe() {
|
484
484
|
{
|
485
|
-
if (
|
486
|
-
var t =
|
485
|
+
if (M.current) {
|
486
|
+
var t = j(M.current.type);
|
487
487
|
if (t)
|
488
488
|
return `
|
489
489
|
|
@@ -526,7 +526,7 @@ Check the top-level render call using <` + g + ">.");
|
|
526
526
|
return;
|
527
527
|
ut[g] = !0;
|
528
528
|
var k = "";
|
529
|
-
t && t._owner && t._owner !==
|
529
|
+
t && t._owner && t._owner !== M.current && (k = " It was passed a child from " + j(t._owner.type) + "."), ae(t), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, k), ae(null);
|
530
530
|
}
|
531
531
|
}
|
532
532
|
function ft(t, d) {
|
@@ -536,19 +536,19 @@ Check the top-level render call using <` + g + ">.");
|
|
536
536
|
if (Oe(t))
|
537
537
|
for (var g = 0; g < t.length; g++) {
|
538
538
|
var k = t[g];
|
539
|
-
|
539
|
+
we(k) && dt(k, d);
|
540
540
|
}
|
541
|
-
else if (
|
541
|
+
else if (we(t))
|
542
542
|
t._store && (t._store.validated = !0);
|
543
543
|
else if (t) {
|
544
544
|
var D = C(t);
|
545
545
|
if (typeof D == "function" && D !== t.entries)
|
546
|
-
for (var
|
547
|
-
|
546
|
+
for (var V = D.call(t), I; !(I = V.next()).done; )
|
547
|
+
we(I.value) && dt(I.value, d);
|
548
548
|
}
|
549
549
|
}
|
550
550
|
}
|
551
|
-
function
|
551
|
+
function Mt(t) {
|
552
552
|
{
|
553
553
|
var d = t.type;
|
554
554
|
if (d == null || typeof d == "string")
|
@@ -563,62 +563,62 @@ Check the top-level render call using <` + g + ">.");
|
|
563
563
|
else
|
564
564
|
return;
|
565
565
|
if (g) {
|
566
|
-
var k =
|
567
|
-
|
568
|
-
} else if (d.PropTypes !== void 0 && !
|
569
|
-
|
570
|
-
var D =
|
566
|
+
var k = j(d);
|
567
|
+
xe(g, t.props, "prop", k, t);
|
568
|
+
} else if (d.PropTypes !== void 0 && !ie) {
|
569
|
+
ie = !0;
|
570
|
+
var D = j(d);
|
571
571
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
|
572
572
|
}
|
573
573
|
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
574
574
|
}
|
575
575
|
}
|
576
|
-
function
|
576
|
+
function Bt(t) {
|
577
577
|
{
|
578
578
|
for (var d = Object.keys(t.props), g = 0; g < d.length; g++) {
|
579
579
|
var k = d[g];
|
580
580
|
if (k !== "children" && k !== "key") {
|
581
|
-
|
581
|
+
ae(t), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), ae(null);
|
582
582
|
break;
|
583
583
|
}
|
584
584
|
}
|
585
|
-
t.ref !== null && (
|
585
|
+
t.ref !== null && (ae(t), w("Invalid attribute `ref` supplied to `React.Fragment`."), ae(null));
|
586
586
|
}
|
587
587
|
}
|
588
588
|
var ht = {};
|
589
|
-
function mt(t, d, g, k, D,
|
589
|
+
function mt(t, d, g, k, D, V) {
|
590
590
|
{
|
591
|
-
var I =
|
591
|
+
var I = H(t);
|
592
592
|
if (!I) {
|
593
|
-
var
|
594
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
595
|
-
var
|
596
|
-
|
597
|
-
var
|
598
|
-
t === null ?
|
593
|
+
var T = "";
|
594
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
595
|
+
var se = Dt(D);
|
596
|
+
se ? T += se : T += Xe();
|
597
|
+
var Z;
|
598
|
+
t === null ? Z = "null" : Oe(t) ? Z = "array" : t !== void 0 && t.$$typeof === n ? (Z = "<" + (j(t.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof t, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, T);
|
599
599
|
}
|
600
|
-
var
|
601
|
-
if (
|
602
|
-
return
|
600
|
+
var te = N(t, d, g, D, V);
|
601
|
+
if (te == null)
|
602
|
+
return te;
|
603
603
|
if (I) {
|
604
|
-
var
|
605
|
-
if (
|
604
|
+
var he = d.children;
|
605
|
+
if (he !== void 0)
|
606
606
|
if (k)
|
607
|
-
if (Oe(
|
608
|
-
for (var Te = 0; Te <
|
609
|
-
ft(
|
610
|
-
Object.freeze && Object.freeze(
|
607
|
+
if (Oe(he)) {
|
608
|
+
for (var Te = 0; Te < he.length; Te++)
|
609
|
+
ft(he[Te], t);
|
610
|
+
Object.freeze && Object.freeze(he);
|
611
611
|
} else
|
612
612
|
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
613
613
|
else
|
614
|
-
ft(
|
614
|
+
ft(he, t);
|
615
615
|
}
|
616
|
-
if (
|
617
|
-
var je =
|
616
|
+
if (de.call(d, "key")) {
|
617
|
+
var je = j(t), le = Object.keys(d).filter(function(Ut) {
|
618
618
|
return Ut !== "key";
|
619
|
-
}), rt =
|
619
|
+
}), rt = le.length > 0 ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}";
|
620
620
|
if (!ht[je + rt]) {
|
621
|
-
var Ht =
|
621
|
+
var Ht = le.length > 0 ? "{" + le.join(": ..., ") + ": ...}" : "{}";
|
622
622
|
w(`A props object containing a "key" prop is being spread into JSX:
|
623
623
|
let props = %s;
|
624
624
|
<%s {...props} />
|
@@ -627,7 +627,7 @@ React keys must be passed directly to JSX without using spread:
|
|
627
627
|
<%s key={someKey} {...props} />`, rt, je, Ht, je), ht[je + rt] = !0;
|
628
628
|
}
|
629
629
|
}
|
630
|
-
return t === o ?
|
630
|
+
return t === o ? Bt(te) : Mt(te), te;
|
631
631
|
}
|
632
632
|
}
|
633
633
|
function At(t, d, g) {
|
@@ -637,8 +637,8 @@ React keys must be passed directly to JSX without using spread:
|
|
637
637
|
return mt(t, d, g, !1);
|
638
638
|
}
|
639
639
|
var Vt = Wt, Yt = At;
|
640
|
-
|
641
|
-
}()),
|
640
|
+
Be.Fragment = o, Be.jsx = Vt, Be.jsxs = Yt;
|
641
|
+
}()), Be;
|
642
642
|
}
|
643
643
|
process.env.NODE_ENV === "production" ? st.exports = sn() : st.exports = on();
|
644
644
|
var s = st.exports;
|
@@ -728,8 +728,8 @@ function hr(e) {
|
|
728
728
|
className: m = "",
|
729
729
|
children: h,
|
730
730
|
...b
|
731
|
-
} = e, v = { xs: 12, sm: 16, md: 20, lg: 24 }[l],
|
732
|
-
return /* @__PURE__ */ s.jsxs("button", { className:
|
731
|
+
} = e, v = { xs: 12, sm: 16, md: 20, lg: 24 }[l], _ = `arkyn_button loading_text_${!!i} ${o} ${r} ${l} loading_${n} ${m}`;
|
732
|
+
return /* @__PURE__ */ s.jsxs("button", { className: _, disabled: u || n, ...b, children: [
|
733
733
|
/* @__PURE__ */ s.jsxs("div", { className: "arkyn_button-spinner", children: [
|
734
734
|
/* @__PURE__ */ s.jsx(Se, { size: v, strokeWidth: 2.5 }),
|
735
735
|
i && i
|
@@ -744,10 +744,10 @@ function hr(e) {
|
|
744
744
|
const Rt = Ie({});
|
745
745
|
function mr(e) {
|
746
746
|
var h, b;
|
747
|
-
const n = _t(), { children: r, className: o, ...i } = e, l =
|
747
|
+
const n = _t(), { children: r, className: o, ...i } = e, l = Ce(null), f = ((h = l.current) == null ? void 0 : h.name) || "", c = ((b = n == null ? void 0 : n.fieldErrors) == null ? void 0 : b[f]) || null, u = Kt(), m = `arkyn_form_controller ${o}`;
|
748
748
|
return /* @__PURE__ */ s.jsx(Rt.Provider, { value: { error: c, id: u, inputRef: l }, children: /* @__PURE__ */ s.jsx("section", { className: m.trim(), ...i, children: r }) });
|
749
749
|
}
|
750
|
-
function
|
750
|
+
function ye() {
|
751
751
|
return Ee(Rt);
|
752
752
|
}
|
753
753
|
function pr(e) {
|
@@ -761,10 +761,10 @@ function pr(e) {
|
|
761
761
|
onCheck: c,
|
762
762
|
value: u,
|
763
763
|
...m
|
764
|
-
} = e, { id: h, inputRef: b, error: a } =
|
764
|
+
} = e, { id: h, inputRef: b, error: a } = ye(), v = i || !!a, [_, x] = ce(l || !1), C = typeof f == "boolean" ? f : _, y = `arkyn_checkbox ${o} ${v ? "error" : ""} ${C ? "checked" : ""} ${r}`;
|
765
765
|
function w() {
|
766
|
-
const
|
767
|
-
x(!
|
766
|
+
const Y = _;
|
767
|
+
x(!Y), c && c(Y ? "" : u || "checked");
|
768
768
|
}
|
769
769
|
return /* @__PURE__ */ s.jsxs(
|
770
770
|
"button",
|
@@ -790,7 +790,7 @@ function pr(e) {
|
|
790
790
|
);
|
791
791
|
}
|
792
792
|
function gr(e) {
|
793
|
-
const { children: n, className: r, ...o } = e, i = `arkyn_form_error ${r}`, { error: l } =
|
793
|
+
const { children: n, className: r, ...o } = e, i = `arkyn_form_error ${r}`, { error: l } = ye();
|
794
794
|
return n ? /* @__PURE__ */ s.jsx("strong", { className: i.trim(), ...o, children: n }) : l ? /* @__PURE__ */ s.jsx("strong", { className: i.trim(), ...o, children: l }) : /* @__PURE__ */ s.jsx(s.Fragment, {});
|
795
795
|
}
|
796
796
|
function vr(e) {
|
@@ -798,7 +798,7 @@ function vr(e) {
|
|
798
798
|
showAsterisk: n = !1,
|
799
799
|
className: r = "",
|
800
800
|
...o
|
801
|
-
} = e, { id: i } =
|
801
|
+
} = e, { id: i } = ye(), f = `arkyn_form_label ${n ? "show-asterisk" : ""} ${r}`;
|
802
802
|
return /* @__PURE__ */ s.jsx("label", { ...o, className: f.trim(), htmlFor: i });
|
803
803
|
}
|
804
804
|
function br(e) {
|
@@ -825,7 +825,7 @@ function br(e) {
|
|
825
825
|
}
|
826
826
|
);
|
827
827
|
}
|
828
|
-
function
|
828
|
+
function ke(e, n, r) {
|
829
829
|
if (!e) return /* @__PURE__ */ s.jsx(s.Fragment, {});
|
830
830
|
if (typeof e == "string") return /* @__PURE__ */ s.jsx("p", { className: r, children: e });
|
831
831
|
const o = e;
|
@@ -861,76 +861,76 @@ function dn(e, n) {
|
|
861
861
|
disabled: b,
|
862
862
|
defaultValue: a,
|
863
863
|
readOnly: v,
|
864
|
-
onFocus:
|
864
|
+
onFocus: _,
|
865
865
|
onBlur: x,
|
866
866
|
title: C,
|
867
867
|
style: y,
|
868
868
|
onChange: w,
|
869
|
-
...
|
869
|
+
...Y
|
870
870
|
} = e;
|
871
|
-
function z(
|
872
|
-
let F = it(
|
873
|
-
const
|
871
|
+
function z(q) {
|
872
|
+
let F = it(q);
|
873
|
+
const U = Pt(F);
|
874
874
|
if (!(F.length > Tt))
|
875
|
-
return F = $t(F, lt[
|
875
|
+
return F = $t(F, lt[U]), F;
|
876
876
|
}
|
877
|
-
const R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || v || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`,
|
877
|
+
const R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || v || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, j = { md: 20, lg: 20 }[i];
|
878
878
|
return {
|
879
879
|
isLoading: r,
|
880
880
|
className: O,
|
881
|
-
prefix:
|
882
|
-
sufix:
|
881
|
+
prefix: ke(c, j, "prefix"),
|
882
|
+
sufix: ke(u, j, "sufix"),
|
883
883
|
LeftIcon: m,
|
884
884
|
RightIcon: h,
|
885
885
|
defaultValue: z(a || ""),
|
886
886
|
disabled: b,
|
887
887
|
readOnly: v,
|
888
|
-
onFocus:
|
888
|
+
onFocus: _,
|
889
889
|
onBlur: x,
|
890
890
|
title: C,
|
891
891
|
style: y,
|
892
892
|
onChange: w,
|
893
893
|
loadingPosition: R,
|
894
|
-
iconSize:
|
895
|
-
Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size:
|
896
|
-
...
|
894
|
+
iconSize: j,
|
895
|
+
Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: j, strokeWidth: 2.5 }),
|
896
|
+
...Y
|
897
897
|
};
|
898
898
|
}
|
899
899
|
function fn(e) {
|
900
|
-
const [n, r] =
|
900
|
+
const [n, r] = ce(!1), o = Ce(null), { inputRef: i, id: l, error: f } = ye(), c = i || o, u = e.isError || !!f, {
|
901
901
|
disabled: m,
|
902
902
|
title: h,
|
903
903
|
style: b,
|
904
904
|
className: a,
|
905
905
|
prefix: v,
|
906
|
-
sufix:
|
906
|
+
sufix: _,
|
907
907
|
iconSize: x,
|
908
908
|
loadingPosition: C,
|
909
909
|
isLoading: y,
|
910
910
|
LeftIcon: w,
|
911
|
-
readOnly:
|
911
|
+
readOnly: Y,
|
912
912
|
onFocus: z,
|
913
913
|
onBlur: R,
|
914
914
|
RightIcon: A,
|
915
915
|
Spinner: L,
|
916
|
-
onChange:
|
917
|
-
value:
|
918
|
-
defaultValue:
|
916
|
+
onChange: J,
|
917
|
+
value: K,
|
918
|
+
defaultValue: H,
|
919
919
|
...O
|
920
|
-
} = dn({ ...e, id: l, isError: u }, n), [
|
920
|
+
} = dn({ ...e, id: l, isError: u }, n), [Q, j] = ce(H), q = w && !y, F = A && !y, U = C === "left" && y, ne = C === "right" && y;
|
921
921
|
function $() {
|
922
922
|
m || !(c != null && c.current) || (r(!0), c.current.focus());
|
923
923
|
}
|
924
|
-
function
|
925
|
-
let
|
926
|
-
const
|
927
|
-
|
924
|
+
function ee(E) {
|
925
|
+
let P = it(E.target.value);
|
926
|
+
const X = Pt(P);
|
927
|
+
P.length > Tt || (P = $t(P, lt[X]), E.target.value = P, j(P), J && J(E));
|
928
928
|
}
|
929
|
-
function
|
930
|
-
r(!0), z && z(
|
929
|
+
function oe(E) {
|
930
|
+
r(!0), z && z(E);
|
931
931
|
}
|
932
|
-
function
|
933
|
-
r(!1), R && R(
|
932
|
+
function S(E) {
|
933
|
+
r(!1), R && R(E);
|
934
934
|
}
|
935
935
|
return /* @__PURE__ */ s.jsxs(
|
936
936
|
"section",
|
@@ -941,24 +941,24 @@ function fn(e) {
|
|
941
941
|
className: a,
|
942
942
|
children: [
|
943
943
|
v,
|
944
|
-
|
945
|
-
|
944
|
+
U && L,
|
945
|
+
q && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
|
946
946
|
/* @__PURE__ */ s.jsx(
|
947
947
|
"input",
|
948
948
|
{
|
949
949
|
disabled: m || y,
|
950
|
-
readOnly:
|
950
|
+
readOnly: Y,
|
951
951
|
ref: c,
|
952
|
-
value:
|
953
|
-
onFocus:
|
954
|
-
onChange:
|
955
|
-
onBlur:
|
952
|
+
value: K || Q,
|
953
|
+
onFocus: oe,
|
954
|
+
onChange: ee,
|
955
|
+
onBlur: S,
|
956
956
|
...O
|
957
957
|
}
|
958
958
|
),
|
959
959
|
F && /* @__PURE__ */ s.jsx(A, { size: x, strokeWidth: 2.5 }),
|
960
|
-
|
961
|
-
|
960
|
+
ne && L,
|
961
|
+
_
|
962
962
|
]
|
963
963
|
}
|
964
964
|
);
|
@@ -977,33 +977,33 @@ function hn(e, n) {
|
|
977
977
|
disabled: b,
|
978
978
|
readOnly: a,
|
979
979
|
onFocus: v,
|
980
|
-
onBlur:
|
980
|
+
onBlur: _,
|
981
981
|
title: x,
|
982
982
|
style: C,
|
983
983
|
showCents: y = !1,
|
984
984
|
max: w = 1e9,
|
985
|
-
onChange:
|
985
|
+
onChange: Y,
|
986
986
|
...z
|
987
|
-
} = e, R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`,
|
987
|
+
} = e, R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, j = { md: 20, lg: 20 }[i];
|
988
988
|
return {
|
989
989
|
isLoading: r,
|
990
990
|
className: O,
|
991
|
-
prefix:
|
992
|
-
sufix:
|
991
|
+
prefix: ke(c, j, "prefix"),
|
992
|
+
sufix: ke(u, j, "sufix"),
|
993
993
|
LeftIcon: m,
|
994
994
|
RightIcon: h,
|
995
995
|
disabled: b,
|
996
996
|
readOnly: a,
|
997
997
|
onFocus: v,
|
998
|
-
onBlur:
|
998
|
+
onBlur: _,
|
999
999
|
title: x,
|
1000
1000
|
style: C,
|
1001
1001
|
max: w,
|
1002
|
-
onChange:
|
1002
|
+
onChange: Y,
|
1003
1003
|
showCents: y,
|
1004
1004
|
loadingPosition: R,
|
1005
|
-
iconSize:
|
1006
|
-
Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size:
|
1005
|
+
iconSize: j,
|
1006
|
+
Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: j, strokeWidth: 2.5 }),
|
1007
1007
|
...z
|
1008
1008
|
};
|
1009
1009
|
}
|
@@ -1032,71 +1032,71 @@ function vn(e) {
|
|
1032
1032
|
u > Number(o) || i(u);
|
1033
1033
|
}
|
1034
1034
|
function bn(e) {
|
1035
|
-
const [n, r] =
|
1035
|
+
const [n, r] = ce(!1), o = Ce(null), { inputRef: i, id: l, error: f } = ye(), c = i || o, u = e.isError || !!f, {
|
1036
1036
|
disabled: m,
|
1037
1037
|
title: h,
|
1038
1038
|
style: b,
|
1039
1039
|
className: a,
|
1040
1040
|
prefix: v,
|
1041
|
-
sufix:
|
1041
|
+
sufix: _,
|
1042
1042
|
iconSize: x,
|
1043
1043
|
loadingPosition: C,
|
1044
1044
|
isLoading: y,
|
1045
1045
|
LeftIcon: w,
|
1046
|
-
readOnly:
|
1046
|
+
readOnly: Y,
|
1047
1047
|
onFocus: z,
|
1048
1048
|
onBlur: R,
|
1049
1049
|
RightIcon: A,
|
1050
1050
|
Spinner: L,
|
1051
|
-
value:
|
1052
|
-
max:
|
1053
|
-
onKeyDown:
|
1051
|
+
value: J,
|
1052
|
+
max: K,
|
1053
|
+
onKeyDown: H,
|
1054
1054
|
onChange: O,
|
1055
|
-
showCents:
|
1056
|
-
defaultValue:
|
1057
|
-
...
|
1058
|
-
} = hn({ ...e, id: l, isError: u }, n), [F,
|
1059
|
-
function
|
1055
|
+
showCents: Q,
|
1056
|
+
defaultValue: j,
|
1057
|
+
...q
|
1058
|
+
} = hn({ ...e, id: l, isError: u }, n), [F, U] = ce(j * 100 || 0), ne = w && !y, $ = A && !y, ee = C === "left" && y, oe = C === "right" && y;
|
1059
|
+
function S() {
|
1060
1060
|
m || !(c != null && c.current) || (r(!0), c.current.focus());
|
1061
1061
|
}
|
1062
|
-
function
|
1063
|
-
vn({ currencyValue: F, event:
|
1062
|
+
function E(G) {
|
1063
|
+
vn({ currencyValue: F, event: G, max: K, setCurrencyValue: U }), O && O(F / 100), H && H(G);
|
1064
1064
|
}
|
1065
|
-
function
|
1066
|
-
r(!0), z && z(
|
1065
|
+
function P(G) {
|
1066
|
+
r(!0), z && z(G);
|
1067
1067
|
}
|
1068
|
-
function
|
1069
|
-
r(!1), R && R(
|
1068
|
+
function X(G) {
|
1069
|
+
r(!1), R && R(G);
|
1070
1070
|
}
|
1071
1071
|
return /* @__PURE__ */ s.jsxs(
|
1072
1072
|
"section",
|
1073
1073
|
{
|
1074
1074
|
title: h,
|
1075
1075
|
style: b,
|
1076
|
-
onClick:
|
1076
|
+
onClick: S,
|
1077
1077
|
className: a,
|
1078
1078
|
children: [
|
1079
1079
|
v,
|
1080
|
-
|
1081
|
-
|
1080
|
+
ee && L,
|
1081
|
+
ne && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
|
1082
1082
|
/* @__PURE__ */ s.jsx(
|
1083
1083
|
"input",
|
1084
1084
|
{
|
1085
|
-
value: gn(
|
1086
|
-
onKeyDown:
|
1085
|
+
value: gn(J || F, Q),
|
1086
|
+
onKeyDown: E,
|
1087
1087
|
disabled: m || y,
|
1088
|
-
readOnly:
|
1088
|
+
readOnly: Y,
|
1089
1089
|
ref: c,
|
1090
|
-
onFocus:
|
1091
|
-
onBlur:
|
1090
|
+
onFocus: P,
|
1091
|
+
onBlur: X,
|
1092
1092
|
onChange: () => {
|
1093
1093
|
},
|
1094
|
-
...
|
1094
|
+
...q
|
1095
1095
|
}
|
1096
1096
|
),
|
1097
|
-
|
1097
|
+
oe && L,
|
1098
1098
|
$ && /* @__PURE__ */ s.jsx(A, { size: x, strokeWidth: 2.5 }),
|
1099
|
-
|
1099
|
+
_
|
1100
1100
|
]
|
1101
1101
|
}
|
1102
1102
|
);
|
@@ -1115,88 +1115,88 @@ function yn(e, n) {
|
|
1115
1115
|
disabled: b,
|
1116
1116
|
readOnly: a,
|
1117
1117
|
onFocus: v,
|
1118
|
-
onBlur:
|
1118
|
+
onBlur: _,
|
1119
1119
|
title: x,
|
1120
1120
|
style: C,
|
1121
1121
|
onChange: y,
|
1122
1122
|
showMask: w = !1,
|
1123
|
-
type:
|
1123
|
+
type: Y,
|
1124
1124
|
...z
|
1125
|
-
} = e, R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`,
|
1125
|
+
} = e, R = h ? "right" : "left", O = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, j = { md: 20, lg: 20 }[i];
|
1126
1126
|
return {
|
1127
1127
|
isLoading: r,
|
1128
1128
|
className: O,
|
1129
|
-
prefix:
|
1130
|
-
sufix:
|
1129
|
+
prefix: ke(c, j, "prefix"),
|
1130
|
+
sufix: ke(u, j, "sufix"),
|
1131
1131
|
LeftIcon: m,
|
1132
1132
|
RightIcon: h,
|
1133
1133
|
disabled: b,
|
1134
1134
|
readOnly: a,
|
1135
1135
|
onFocus: v,
|
1136
|
-
onBlur:
|
1136
|
+
onBlur: _,
|
1137
1137
|
title: x,
|
1138
1138
|
style: C,
|
1139
1139
|
onChange: y,
|
1140
1140
|
loadingPosition: R,
|
1141
|
-
iconSize:
|
1141
|
+
iconSize: j,
|
1142
1142
|
showMask: w,
|
1143
|
-
Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size:
|
1143
|
+
Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: j, strokeWidth: 2.5 }),
|
1144
1144
|
...z
|
1145
1145
|
};
|
1146
1146
|
}
|
1147
1147
|
const xn = Xt((e, n) => /* @__PURE__ */ s.jsx("input", { ref: n, ...e }));
|
1148
1148
|
function wn(e) {
|
1149
|
-
const [n, r] =
|
1149
|
+
const [n, r] = ce(!1), o = Ce(null), { inputRef: i, id: l, error: f } = ye(), c = i || o, u = e.isError || !!f, {
|
1150
1150
|
disabled: m,
|
1151
1151
|
title: h,
|
1152
1152
|
style: b,
|
1153
1153
|
className: a,
|
1154
1154
|
prefix: v,
|
1155
|
-
sufix:
|
1155
|
+
sufix: _,
|
1156
1156
|
iconSize: x,
|
1157
1157
|
loadingPosition: C,
|
1158
1158
|
isLoading: y,
|
1159
1159
|
LeftIcon: w,
|
1160
|
-
readOnly:
|
1160
|
+
readOnly: Y,
|
1161
1161
|
onFocus: z,
|
1162
1162
|
onBlur: R,
|
1163
1163
|
RightIcon: A,
|
1164
1164
|
Spinner: L,
|
1165
|
-
...
|
1166
|
-
} = yn({ ...e, id: l, isError: u }, n),
|
1167
|
-
function
|
1165
|
+
...J
|
1166
|
+
} = yn({ ...e, id: l, isError: u }, n), K = w && !y, H = A && !y, O = C === "left" && y, Q = C === "right" && y;
|
1167
|
+
function j() {
|
1168
1168
|
m || !(c != null && c.current) || (r(!0), c.current.focus());
|
1169
1169
|
}
|
1170
|
-
function
|
1171
|
-
r(!0), z && z(
|
1170
|
+
function q(U) {
|
1171
|
+
r(!0), z && z(U);
|
1172
1172
|
}
|
1173
|
-
function F(
|
1174
|
-
r(!1), R && R(
|
1173
|
+
function F(U) {
|
1174
|
+
r(!1), R && R(U);
|
1175
1175
|
}
|
1176
1176
|
return /* @__PURE__ */ s.jsxs(
|
1177
1177
|
"section",
|
1178
1178
|
{
|
1179
1179
|
title: h,
|
1180
1180
|
style: b,
|
1181
|
-
onClick:
|
1181
|
+
onClick: j,
|
1182
1182
|
className: a,
|
1183
1183
|
children: [
|
1184
1184
|
v,
|
1185
1185
|
O && L,
|
1186
|
-
|
1186
|
+
K && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
|
1187
1187
|
/* @__PURE__ */ s.jsx(
|
1188
1188
|
rn,
|
1189
1189
|
{
|
1190
1190
|
component: xn,
|
1191
1191
|
ref: c,
|
1192
|
-
onFocus:
|
1192
|
+
onFocus: q,
|
1193
1193
|
onBlur: F,
|
1194
|
-
...
|
1194
|
+
...J
|
1195
1195
|
}
|
1196
1196
|
),
|
1197
|
-
|
1198
|
-
|
1199
|
-
|
1197
|
+
H && /* @__PURE__ */ s.jsx(A, { size: x, strokeWidth: 2.5 }),
|
1198
|
+
Q && L,
|
1199
|
+
_
|
1200
1200
|
]
|
1201
1201
|
}
|
1202
1202
|
);
|
@@ -1215,87 +1215,87 @@ function kn(e, n) {
|
|
1215
1215
|
disabled: b,
|
1216
1216
|
readOnly: a,
|
1217
1217
|
onFocus: v,
|
1218
|
-
onBlur:
|
1218
|
+
onBlur: _,
|
1219
1219
|
title: x,
|
1220
1220
|
style: C,
|
1221
1221
|
onChange: y,
|
1222
1222
|
...w
|
1223
|
-
} = e,
|
1223
|
+
} = e, Y = h ? "right" : "left", K = `arkyn_input ${c ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${f} ${i} ${b || a || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, O = { md: 20, lg: 20 }[i];
|
1224
1224
|
return {
|
1225
1225
|
isLoading: r,
|
1226
|
-
className:
|
1227
|
-
prefix:
|
1228
|
-
sufix:
|
1226
|
+
className: K,
|
1227
|
+
prefix: ke(c, O, "prefix"),
|
1228
|
+
sufix: ke(u, O, "sufix"),
|
1229
1229
|
LeftIcon: m,
|
1230
1230
|
RightIcon: h,
|
1231
1231
|
disabled: b,
|
1232
1232
|
readOnly: a,
|
1233
1233
|
onFocus: v,
|
1234
|
-
onBlur:
|
1234
|
+
onBlur: _,
|
1235
1235
|
title: x,
|
1236
1236
|
style: C,
|
1237
1237
|
onChange: y,
|
1238
|
-
loadingPosition:
|
1238
|
+
loadingPosition: Y,
|
1239
1239
|
iconSize: O,
|
1240
1240
|
Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: O, strokeWidth: 2.5 }),
|
1241
1241
|
...w
|
1242
1242
|
};
|
1243
1243
|
}
|
1244
1244
|
function Cn(e) {
|
1245
|
-
const [n, r] =
|
1245
|
+
const [n, r] = ce(!1), o = Ce(null), { inputRef: i, id: l, error: f } = ye(), c = i || o, u = e.isError || !!f, {
|
1246
1246
|
disabled: m,
|
1247
1247
|
title: h,
|
1248
1248
|
style: b,
|
1249
1249
|
className: a,
|
1250
1250
|
prefix: v,
|
1251
|
-
sufix:
|
1251
|
+
sufix: _,
|
1252
1252
|
iconSize: x,
|
1253
1253
|
loadingPosition: C,
|
1254
1254
|
isLoading: y,
|
1255
1255
|
LeftIcon: w,
|
1256
|
-
readOnly:
|
1256
|
+
readOnly: Y,
|
1257
1257
|
onFocus: z,
|
1258
1258
|
onBlur: R,
|
1259
1259
|
RightIcon: A,
|
1260
1260
|
type: L,
|
1261
|
-
Spinner:
|
1262
|
-
...
|
1263
|
-
} = kn({ ...e, id: l, isError: u }, n),
|
1264
|
-
function
|
1261
|
+
Spinner: J,
|
1262
|
+
...K
|
1263
|
+
} = kn({ ...e, id: l, isError: u }, n), H = w && !y, O = A && !y, Q = C === "left" && y, j = C === "right" && y;
|
1264
|
+
function q() {
|
1265
1265
|
m || !(c != null && c.current) || (r(!0), c.current.focus());
|
1266
1266
|
}
|
1267
|
-
function F(
|
1268
|
-
r(!0), z && z(
|
1267
|
+
function F(ne) {
|
1268
|
+
r(!0), z && z(ne);
|
1269
1269
|
}
|
1270
|
-
function
|
1271
|
-
r(!1), R && R(
|
1270
|
+
function U(ne) {
|
1271
|
+
r(!1), R && R(ne);
|
1272
1272
|
}
|
1273
|
-
return L === "hidden" ? /* @__PURE__ */ s.jsx("input", { type: "hidden", ref: c, ...
|
1273
|
+
return L === "hidden" ? /* @__PURE__ */ s.jsx("input", { type: "hidden", ref: c, ...K }) : /* @__PURE__ */ s.jsxs(
|
1274
1274
|
"section",
|
1275
1275
|
{
|
1276
1276
|
title: h,
|
1277
1277
|
style: b,
|
1278
|
-
onClick:
|
1278
|
+
onClick: q,
|
1279
1279
|
className: a,
|
1280
1280
|
children: [
|
1281
1281
|
v,
|
1282
|
-
|
1283
|
-
|
1282
|
+
Q && J,
|
1283
|
+
H && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
|
1284
1284
|
/* @__PURE__ */ s.jsx(
|
1285
1285
|
"input",
|
1286
1286
|
{
|
1287
1287
|
disabled: m || y,
|
1288
|
-
readOnly:
|
1288
|
+
readOnly: Y,
|
1289
1289
|
ref: c,
|
1290
1290
|
onFocus: F,
|
1291
|
-
onBlur:
|
1291
|
+
onBlur: U,
|
1292
1292
|
type: L,
|
1293
|
-
...
|
1293
|
+
...K
|
1294
1294
|
}
|
1295
1295
|
),
|
1296
1296
|
O && /* @__PURE__ */ s.jsx(A, { size: x, strokeWidth: 2.5 }),
|
1297
|
-
|
1298
|
-
|
1297
|
+
j && J,
|
1298
|
+
_
|
1299
1299
|
]
|
1300
1300
|
}
|
1301
1301
|
);
|
@@ -1317,8 +1317,7 @@ function Nn(e, n) {
|
|
1317
1317
|
onFocus: b,
|
1318
1318
|
onBlur: a,
|
1319
1319
|
title: v,
|
1320
|
-
style:
|
1321
|
-
// isSearchable = false,
|
1320
|
+
style: _,
|
1322
1321
|
closeOnSelect: x = !0,
|
1323
1322
|
...C
|
1324
1323
|
} = e, R = `arkyn_select ${c ? "hasPrefix" : ""} ${f} ${i} ${m || h || r ? "opacity" : ""} ${o ? "errored" : ""} ${n ? "focused" : ""} ${l}`, L = { md: 20, lg: 20 }[i];
|
@@ -1333,79 +1332,75 @@ function Nn(e, n) {
|
|
1333
1332
|
onBlur: a,
|
1334
1333
|
title: v,
|
1335
1334
|
closeOnSelect: x,
|
1336
|
-
style:
|
1337
|
-
// isSearchable,
|
1335
|
+
style: _,
|
1338
1336
|
iconSize: L,
|
1339
1337
|
Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: L, strokeWidth: 2.5 }),
|
1340
1338
|
...C
|
1341
1339
|
};
|
1342
1340
|
}
|
1343
1341
|
function xr(e) {
|
1344
|
-
var
|
1345
|
-
const [n, r] =
|
1342
|
+
var P;
|
1343
|
+
const [n, r] = ce(!1), { inputRef: o, id: i, error: l } = ye(), f = Ce(null), c = o || f, u = e.isError || !!l, {
|
1346
1344
|
disabled: m,
|
1347
1345
|
title: h,
|
1348
1346
|
style: b,
|
1349
1347
|
className: a,
|
1350
1348
|
prefix: v,
|
1351
|
-
iconSize:
|
1349
|
+
iconSize: _,
|
1352
1350
|
isLoading: x,
|
1353
1351
|
LeftIcon: C,
|
1354
1352
|
value: y = null,
|
1355
1353
|
defaultValue: w = "",
|
1356
|
-
readOnly:
|
1354
|
+
readOnly: Y,
|
1357
1355
|
onFocus: z,
|
1358
1356
|
onBlur: R,
|
1359
1357
|
Spinner: A,
|
1360
1358
|
name: L,
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
options: K,
|
1359
|
+
placeholder: J,
|
1360
|
+
onSelect: K,
|
1361
|
+
options: H,
|
1365
1362
|
optionMaxHeight: O,
|
1366
|
-
closeOnSelect:
|
1367
|
-
...
|
1368
|
-
} = Nn({ ...e, id: i, isError: u }, n), [
|
1369
|
-
function
|
1363
|
+
closeOnSelect: Q,
|
1364
|
+
...j
|
1365
|
+
} = Nn({ ...e, id: i, isError: u }, n), [q, F] = ce(w);
|
1366
|
+
function U() {
|
1370
1367
|
m || !(c != null && c.current) || (r(!0), c.current.focus());
|
1371
1368
|
}
|
1372
|
-
function
|
1373
|
-
r(!0), z && z(
|
1369
|
+
function ne(X) {
|
1370
|
+
n || (r(!0), z && z(X));
|
1374
1371
|
}
|
1375
|
-
function
|
1372
|
+
function $() {
|
1376
1373
|
r(!1), R && c.current && c.current.blur();
|
1377
1374
|
}
|
1378
|
-
function
|
1379
|
-
const { label:
|
1380
|
-
F(
|
1375
|
+
function ee(X) {
|
1376
|
+
const { label: G, value: W } = X;
|
1377
|
+
F(q !== W ? W : ""), K && K({ label: G, value: W }), Q && $();
|
1381
1378
|
}
|
1382
|
-
const
|
1379
|
+
const oe = typeof y == "string" ? y : q, S = ((P = H.find((X) => X.value === oe)) == null ? void 0 : P.label) || "", E = () => {
|
1383
1380
|
if (!n && S) return !0;
|
1384
1381
|
if (!n && !S) return !1;
|
1385
1382
|
if (n && S) return !0;
|
1386
1383
|
if (n && !S) return !1;
|
1387
|
-
}
|
1384
|
+
};
|
1388
1385
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
1389
1386
|
/* @__PURE__ */ s.jsxs(
|
1390
1387
|
"section",
|
1391
1388
|
{
|
1392
1389
|
title: h,
|
1393
1390
|
style: b,
|
1394
|
-
onClick:
|
1395
|
-
className: `${a} placeholder_dark_${
|
1391
|
+
onClick: U,
|
1392
|
+
className: `${a} placeholder_dark_${E()}`,
|
1396
1393
|
children: [
|
1397
1394
|
v,
|
1398
|
-
C && /* @__PURE__ */ s.jsx(C, { size:
|
1395
|
+
C && /* @__PURE__ */ s.jsx(C, { size: _, strokeWidth: 2.5 }),
|
1399
1396
|
/* @__PURE__ */ s.jsx(
|
1400
1397
|
"input",
|
1401
1398
|
{
|
1402
1399
|
disabled: m || x,
|
1403
1400
|
readOnly: !0,
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
onBlur: () => te(""),
|
1408
|
-
...E
|
1401
|
+
placeholder: S || J,
|
1402
|
+
onFocus: ne,
|
1403
|
+
...j
|
1409
1404
|
}
|
1410
1405
|
),
|
1411
1406
|
/* @__PURE__ */ s.jsx(
|
@@ -1414,7 +1409,7 @@ function xr(e) {
|
|
1414
1409
|
type: "hidden",
|
1415
1410
|
ref: c,
|
1416
1411
|
name: L,
|
1417
|
-
value:
|
1412
|
+
value: oe || "",
|
1418
1413
|
readOnly: !0
|
1419
1414
|
}
|
1420
1415
|
),
|
@@ -1424,20 +1419,20 @@ function xr(e) {
|
|
1424
1419
|
className: "arkyn_select_content",
|
1425
1420
|
style: { overflow: "auto", maxHeight: O },
|
1426
1421
|
children: [
|
1427
|
-
|
1422
|
+
H.map(({ label: X, value: G }) => /* @__PURE__ */ s.jsxs(
|
1428
1423
|
"div",
|
1429
1424
|
{
|
1430
|
-
onClick: () =>
|
1431
|
-
className:
|
1425
|
+
onClick: () => ee({ label: X, value: G }),
|
1426
|
+
className: oe === G ? "arkyn_select_option active" : "arkyn_select_option",
|
1432
1427
|
children: [
|
1433
|
-
|
1428
|
+
X,
|
1434
1429
|
" ",
|
1435
1430
|
/* @__PURE__ */ s.jsx(Ct, {})
|
1436
1431
|
]
|
1437
1432
|
},
|
1438
|
-
|
1433
|
+
G
|
1439
1434
|
)),
|
1440
|
-
|
1435
|
+
H.length <= 0 && /* @__PURE__ */ s.jsx("p", { children: "Sem opções disponíveis" })
|
1441
1436
|
]
|
1442
1437
|
}
|
1443
1438
|
),
|
@@ -1445,7 +1440,7 @@ function xr(e) {
|
|
1445
1440
|
qt,
|
1446
1441
|
{
|
1447
1442
|
className: "arkyn_select_arrow",
|
1448
|
-
size:
|
1443
|
+
size: _,
|
1449
1444
|
strokeWidth: 2.5
|
1450
1445
|
}
|
1451
1446
|
),
|
@@ -1453,7 +1448,7 @@ function xr(e) {
|
|
1453
1448
|
]
|
1454
1449
|
}
|
1455
1450
|
),
|
1456
|
-
n && /* @__PURE__ */ s.jsx("aside", { className: "arkyn_select_overlay", onClick:
|
1451
|
+
n && /* @__PURE__ */ s.jsx("aside", { className: "arkyn_select_overlay", onClick: $ })
|
1457
1452
|
] });
|
1458
1453
|
}
|
1459
1454
|
function wr(e) {
|
@@ -1468,15 +1463,15 @@ function wr(e) {
|
|
1468
1463
|
title: u,
|
1469
1464
|
style: m,
|
1470
1465
|
...h
|
1471
|
-
} = e, [b, a] =
|
1466
|
+
} = e, [b, a] = ce(!1), { inputRef: v, id: _, error: x } = ye(), C = Ce(null), y = v || C, Y = e.isError || !!x ? "errored" : "", A = `arkyn_textarea ${n} ${r} ${i || l ? "opacity" : ""} ${Y} ${b ? "focused" : ""} ${o}`;
|
1472
1467
|
function L() {
|
1473
1468
|
i || !(y != null && y.current) || (a(!0), y.current.focus());
|
1474
1469
|
}
|
1475
|
-
function
|
1476
|
-
a(!0), f && f(
|
1470
|
+
function J(H) {
|
1471
|
+
a(!0), f && f(H);
|
1477
1472
|
}
|
1478
|
-
function
|
1479
|
-
a(!1), c && c(
|
1473
|
+
function K(H) {
|
1474
|
+
a(!1), c && c(H);
|
1480
1475
|
}
|
1481
1476
|
return /* @__PURE__ */ s.jsx(
|
1482
1477
|
"section",
|
@@ -1488,12 +1483,12 @@ function wr(e) {
|
|
1488
1483
|
children: /* @__PURE__ */ s.jsx(
|
1489
1484
|
"textarea",
|
1490
1485
|
{
|
1491
|
-
id:
|
1486
|
+
id: _,
|
1492
1487
|
disabled: i,
|
1493
1488
|
readOnly: l,
|
1494
1489
|
ref: y,
|
1495
|
-
onFocus:
|
1496
|
-
onBlur:
|
1490
|
+
onFocus: J,
|
1491
|
+
onBlur: K,
|
1497
1492
|
...h
|
1498
1493
|
}
|
1499
1494
|
)
|
@@ -1543,7 +1538,7 @@ function Nr(e) {
|
|
1543
1538
|
pageKey: i = "page",
|
1544
1539
|
siblingsCount: l = 2,
|
1545
1540
|
...f
|
1546
|
-
} = e, c = nn(), { getParam: u, getScopedSearch: m } = _n(n), h = Number(u(i)) || 1, b = Number(u(o)) || 20, a = Math.ceil(r / b), v = cn(h, l),
|
1541
|
+
} = e, c = nn(), { getParam: u, getScopedSearch: m } = _n(n), h = Number(u(i)) || 1, b = Number(u(o)) || 20, a = Math.ceil(r / b), v = cn(h, l), _ = ln(h, l, a);
|
1547
1542
|
function x(C) {
|
1548
1543
|
c(m({ page: C }));
|
1549
1544
|
}
|
@@ -1578,7 +1573,7 @@ function Nr(e) {
|
|
1578
1573
|
y
|
1579
1574
|
)),
|
1580
1575
|
/* @__PURE__ */ s.jsx("button", { className: "arkyn_pagination-current", disabled: !0, children: h }),
|
1581
|
-
|
1576
|
+
_.map((C, y) => /* @__PURE__ */ s.jsx(
|
1582
1577
|
"button",
|
1583
1578
|
{
|
1584
1579
|
onClick: () => x(C),
|
@@ -1610,20 +1605,26 @@ function Nr(e) {
|
|
1610
1605
|
] });
|
1611
1606
|
}
|
1612
1607
|
function _r(e) {
|
1613
|
-
const {
|
1614
|
-
|
1608
|
+
const {
|
1609
|
+
children: n,
|
1610
|
+
value: r,
|
1611
|
+
className: o,
|
1612
|
+
defaultActive: i,
|
1613
|
+
...l
|
1614
|
+
} = e, f = `arkyn_tab_button ${i ? "active" : ""} ${o || ""}`;
|
1615
|
+
return /* @__PURE__ */ s.jsx("button", { className: f.trim(), ...l, children: n });
|
1615
1616
|
}
|
1616
1617
|
function jr(e) {
|
1617
|
-
const { children: n, onClick: r, className: o, ...i } = e, l =
|
1618
|
+
const { children: n, onClick: r, className: o, ...i } = e, l = Ce(null), f = `arkyn_tab_container ${o || ""}`, [c, u] = ce({
|
1618
1619
|
width: "0px",
|
1619
1620
|
left: "0px",
|
1620
1621
|
transition: "none"
|
1621
1622
|
}), m = (b, a) => {
|
1622
|
-
const v = b.getBoundingClientRect(),
|
1623
|
+
const v = b.getBoundingClientRect(), _ = l.current.getBoundingClientRect();
|
1623
1624
|
u({
|
1624
1625
|
transition: a ? void 0 : "none",
|
1625
1626
|
width: `${v.width}px`,
|
1626
|
-
left: `${v.left -
|
1627
|
+
left: `${v.left - _.left}px`
|
1627
1628
|
});
|
1628
1629
|
};
|
1629
1630
|
Jt(() => {
|
@@ -1766,7 +1767,7 @@ function Pr(e) {
|
|
1766
1767
|
] });
|
1767
1768
|
}
|
1768
1769
|
function Tr(e) {
|
1769
|
-
const { children: n, button: r, closeOnClick: o, orientation: i = "bottom-left" } = e, [l, f] =
|
1770
|
+
const { children: n, button: r, closeOnClick: o, orientation: i = "bottom-left" } = e, [l, f] = ce(!1), c = `arkyn_popover ${i} ${l ? "show" : ""}`;
|
1770
1771
|
function u() {
|
1771
1772
|
l || f(!0);
|
1772
1773
|
}
|
@@ -1891,7 +1892,7 @@ function Fr(e) {
|
|
1891
1892
|
return n;
|
1892
1893
|
}
|
1893
1894
|
function Dr(e) {
|
1894
|
-
const { children: n = !1 } = e, [r, o] =
|
1895
|
+
const { children: n = !1 } = e, [r, o] = ce([]);
|
1895
1896
|
function i(u) {
|
1896
1897
|
return !!r.some((m) => m.key === u);
|
1897
1898
|
}
|
@@ -1915,7 +1916,7 @@ function Dr(e) {
|
|
1915
1916
|
);
|
1916
1917
|
}
|
1917
1918
|
function Lr(e) {
|
1918
|
-
const { children: n = !1 } = e, [r, o] =
|
1919
|
+
const { children: n = !1 } = e, [r, o] = ce([]);
|
1919
1920
|
function i(u) {
|
1920
1921
|
return !!r.some((m) => m.key === u);
|
1921
1922
|
}
|
@@ -2004,10 +2005,10 @@ var Sn = (e) => {
|
|
2004
2005
|
return this.create({ jsx: e(r), id: r, ...n }), r;
|
2005
2006
|
}, this.subscribers = [], this.toasts = [];
|
2006
2007
|
}
|
2007
|
-
},
|
2008
|
+
}, ue = new Fn(), Dn = (e, n) => {
|
2008
2009
|
let r = (n == null ? void 0 : n.id) || ot++;
|
2009
|
-
return
|
2010
|
-
}, Ln = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number",
|
2010
|
+
return ue.addToast({ title: e, ...n, id: r }), r;
|
2011
|
+
}, Ln = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Mn = Dn, Bn = () => ue.toasts, An = Object.assign(Mn, { success: ue.success, info: ue.info, warning: ue.warning, error: ue.error, custom: ue.custom, message: ue.message, promise: ue.promise, dismiss: ue.dismiss, loading: ue.loading }, { getHistory: Bn });
|
2011
2012
|
function Wn(e, { insertAt: n } = {}) {
|
2012
2013
|
if (!e || typeof document > "u") return;
|
2013
2014
|
let r = document.head || document.getElementsByTagName("head")[0], o = document.createElement("style");
|
@@ -2024,77 +2025,77 @@ function qn(...e) {
|
|
2024
2025
|
}
|
2025
2026
|
var Gn = (e) => {
|
2026
2027
|
var n, r, o, i, l, f, c, u, m, h;
|
2027
|
-
let { invert: b, toast: a, unstyled: v, interacting:
|
2028
|
+
let { invert: b, toast: a, unstyled: v, interacting: _, setHeights: x, visibleToasts: C, heights: y, index: w, toasts: Y, expanded: z, removeToast: R, defaultRichColors: A, closeButton: L, style: J, cancelButtonStyle: K, actionButtonStyle: H, className: O = "", descriptionClassName: Q = "", duration: j, position: q, gap: F, loadingIcon: U, expandByDefault: ne, classNames: $, icons: ee, closeButtonAriaLabel: oe = "Close toast", pauseWhenPageIsHidden: S, cn: E } = e, [P, X] = p.useState(!1), [G, W] = p.useState(!1), [Ne, me] = p.useState(!1), [ve, pe] = p.useState(!1), [Ge, Re] = p.useState(0), [Ze, We] = p.useState(0), _e = p.useRef(null), de = p.useRef(null), Ve = w === 0, Ye = w + 1 <= C, re = a.type, xe = a.dismissible !== !1, Qe = a.className || "", Oe = a.descriptionClassName || "", $e = p.useMemo(() => y.findIndex((N) => N.toastId === a.id) || 0, [y, a.id]), et = p.useMemo(() => {
|
2028
2029
|
var N;
|
2029
2030
|
return (N = a.closeButton) != null ? N : L;
|
2030
|
-
}, [a.closeButton, L]), ze = p.useMemo(() => a.duration ||
|
2031
|
-
|
2032
|
-
|
2031
|
+
}, [a.closeButton, L]), ze = p.useMemo(() => a.duration || j || Hn, [a.duration, j]), Pe = p.useRef(0), fe = p.useRef(0), He = p.useRef(0), be = p.useRef(null), [Fe, De] = q.split("-"), Ue = p.useMemo(() => y.reduce((N, M, B) => B >= $e ? N : N + M.height, 0), [y, $e]), Ke = zn(), tt = a.invert || b, Le = re === "loading";
|
2032
|
+
fe.current = p.useMemo(() => $e * F + Ue, [$e, Ue]), p.useEffect(() => {
|
2033
|
+
X(!0);
|
2033
2034
|
}, []), p.useLayoutEffect(() => {
|
2034
|
-
if (!
|
2035
|
-
let N =
|
2035
|
+
if (!P) return;
|
2036
|
+
let N = de.current, M = N.style.height;
|
2036
2037
|
N.style.height = "auto";
|
2037
|
-
let
|
2038
|
-
N.style.height =
|
2039
|
-
}, [
|
2040
|
-
let
|
2041
|
-
|
2038
|
+
let B = N.getBoundingClientRect().height;
|
2039
|
+
N.style.height = M, We(B), x((ae) => ae.find((ie) => ie.toastId === a.id) ? ae.map((ie) => ie.toastId === a.id ? { ...ie, height: B } : ie) : [{ toastId: a.id, height: B, position: a.position }, ...ae]);
|
2040
|
+
}, [P, a.title, a.description, x, a.id]);
|
2041
|
+
let ge = p.useCallback(() => {
|
2042
|
+
W(!0), Re(fe.current), x((N) => N.filter((M) => M.toastId !== a.id)), setTimeout(() => {
|
2042
2043
|
R(a);
|
2043
2044
|
}, Jn);
|
2044
|
-
}, [a, R, x,
|
2045
|
+
}, [a, R, x, fe]);
|
2045
2046
|
p.useEffect(() => {
|
2046
|
-
if (a.promise &&
|
2047
|
-
let N,
|
2048
|
-
return z ||
|
2047
|
+
if (a.promise && re === "loading" || a.duration === 1 / 0 || a.type === "loading") return;
|
2048
|
+
let N, M = ze;
|
2049
|
+
return z || _ || S && Ke ? (() => {
|
2049
2050
|
if (He.current < Pe.current) {
|
2050
|
-
let
|
2051
|
-
|
2051
|
+
let B = (/* @__PURE__ */ new Date()).getTime() - Pe.current;
|
2052
|
+
M = M - B;
|
2052
2053
|
}
|
2053
2054
|
He.current = (/* @__PURE__ */ new Date()).getTime();
|
2054
|
-
})() :
|
2055
|
-
var
|
2056
|
-
(
|
2057
|
-
},
|
2058
|
-
}, [z,
|
2059
|
-
let N =
|
2055
|
+
})() : M !== 1 / 0 && (Pe.current = (/* @__PURE__ */ new Date()).getTime(), N = setTimeout(() => {
|
2056
|
+
var B;
|
2057
|
+
(B = a.onAutoClose) == null || B.call(a, a), ge();
|
2058
|
+
}, M)), () => clearTimeout(N);
|
2059
|
+
}, [z, _, ne, a, ze, ge, a.promise, re, S, Ke]), p.useEffect(() => {
|
2060
|
+
let N = de.current;
|
2060
2061
|
if (N) {
|
2061
|
-
let
|
2062
|
-
return We(
|
2062
|
+
let M = N.getBoundingClientRect().height;
|
2063
|
+
return We(M), x((B) => [{ toastId: a.id, height: M, position: a.position }, ...B]), () => x((B) => B.filter((ae) => ae.toastId !== a.id));
|
2063
2064
|
}
|
2064
2065
|
}, [x, a.id]), p.useEffect(() => {
|
2065
|
-
a.delete &&
|
2066
|
-
}, [
|
2066
|
+
a.delete && ge();
|
2067
|
+
}, [ge, a.delete]);
|
2067
2068
|
function nt() {
|
2068
|
-
return
|
2069
|
+
return ee != null && ee.loading ? p.createElement("div", { className: "sonner-loader", "data-visible": re === "loading" }, ee.loading) : U ? p.createElement("div", { className: "sonner-loader", "data-visible": re === "loading" }, U) : p.createElement($n, { visible: re === "loading" });
|
2069
2070
|
}
|
2070
|
-
return p.createElement("li", { "aria-live": a.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref:
|
2071
|
-
Le || !
|
2071
|
+
return p.createElement("li", { "aria-live": a.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: de, className: E(O, Qe, $ == null ? void 0 : $.toast, (n = a == null ? void 0 : a.classNames) == null ? void 0 : n.toast, $ == null ? void 0 : $.default, $ == null ? void 0 : $[re], (r = a == null ? void 0 : a.classNames) == null ? void 0 : r[re]), "data-sonner-toast": "", "data-rich-colors": (o = a.richColors) != null ? o : A, "data-styled": !(a.jsx || a.unstyled || v), "data-mounted": P, "data-promise": !!a.promise, "data-removed": G, "data-visible": Ye, "data-y-position": Fe, "data-x-position": De, "data-index": w, "data-front": Ve, "data-swiping": Ne, "data-dismissible": xe, "data-type": re, "data-invert": tt, "data-swipe-out": ve, "data-expanded": !!(z || ne && P), style: { "--index": w, "--toasts-before": w, "--z-index": Y.length - w, "--offset": `${G ? Ge : fe.current}px`, "--initial-height": ne ? "auto" : `${Ze}px`, ...J, ...a.style }, onPointerDown: (N) => {
|
2072
|
+
Le || !xe || (_e.current = /* @__PURE__ */ new Date(), Re(fe.current), N.target.setPointerCapture(N.pointerId), N.target.tagName !== "BUTTON" && (me(!0), be.current = { x: N.clientX, y: N.clientY }));
|
2072
2073
|
}, onPointerUp: () => {
|
2073
|
-
var N,
|
2074
|
-
if (
|
2075
|
-
|
2076
|
-
let
|
2077
|
-
if (Math.abs(
|
2078
|
-
Re(
|
2074
|
+
var N, M, B, ae;
|
2075
|
+
if (ve || !xe) return;
|
2076
|
+
be.current = null;
|
2077
|
+
let ie = Number(((N = de.current) == null ? void 0 : N.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), we = (/* @__PURE__ */ new Date()).getTime() - ((M = _e.current) == null ? void 0 : M.getTime()), Xe = Math.abs(ie) / we;
|
2078
|
+
if (Math.abs(ie) >= Xn || Xe > 0.11) {
|
2079
|
+
Re(fe.current), (B = a.onDismiss) == null || B.call(a, a), ge(), pe(!0);
|
2079
2080
|
return;
|
2080
2081
|
}
|
2081
|
-
(
|
2082
|
+
(ae = de.current) == null || ae.style.setProperty("--swipe-amount", "0px"), me(!1);
|
2082
2083
|
}, onPointerMove: (N) => {
|
2083
|
-
var
|
2084
|
-
if (!
|
2085
|
-
let
|
2086
|
-
Math.abs(
|
2087
|
-
} }, et && !a.jsx ? p.createElement("button", { "aria-label":
|
2084
|
+
var M;
|
2085
|
+
if (!be.current || !xe) return;
|
2086
|
+
let B = N.clientY - be.current.y, ae = N.clientX - be.current.x, ie = (Fe === "top" ? Math.min : Math.max)(0, B), we = N.pointerType === "touch" ? 10 : 2;
|
2087
|
+
Math.abs(ie) > we ? (M = de.current) == null || M.style.setProperty("--swipe-amount", `${B}px`) : Math.abs(ae) > we && (be.current = null);
|
2088
|
+
} }, et && !a.jsx ? p.createElement("button", { "aria-label": oe, "data-disabled": Le, "data-close-button": !0, onClick: Le || !xe ? () => {
|
2088
2089
|
} : () => {
|
2089
2090
|
var N;
|
2090
|
-
|
2091
|
-
}, className:
|
2092
|
-
var
|
2093
|
-
Je(a.cancel) &&
|
2094
|
-
}, className:
|
2095
|
-
var
|
2096
|
-
Je(a.action) && (N.defaultPrevented || ((
|
2097
|
-
}, className:
|
2091
|
+
ge(), (N = a.onDismiss) == null || N.call(a, a);
|
2092
|
+
}, className: E($ == null ? void 0 : $.closeButton, (i = a == null ? void 0 : a.classNames) == null ? void 0 : i.closeButton) }, p.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, p.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), p.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, a.jsx || p.isValidElement(a.title) ? a.jsx || a.title : p.createElement(p.Fragment, null, re || a.icon || a.promise ? p.createElement("div", { "data-icon": "", className: E($ == null ? void 0 : $.icon, (l = a == null ? void 0 : a.classNames) == null ? void 0 : l.icon) }, a.promise || a.type === "loading" && !a.icon ? a.icon || nt() : null, a.type !== "loading" ? a.icon || (ee == null ? void 0 : ee[re]) || Sn(re) : null) : null, p.createElement("div", { "data-content": "", className: E($ == null ? void 0 : $.content, (f = a == null ? void 0 : a.classNames) == null ? void 0 : f.content) }, p.createElement("div", { "data-title": "", className: E($ == null ? void 0 : $.title, (c = a == null ? void 0 : a.classNames) == null ? void 0 : c.title) }, a.title), a.description ? p.createElement("div", { "data-description": "", className: E(Q, Oe, $ == null ? void 0 : $.description, (u = a == null ? void 0 : a.classNames) == null ? void 0 : u.description) }, a.description) : null), p.isValidElement(a.cancel) ? a.cancel : a.cancel && Je(a.cancel) ? p.createElement("button", { "data-button": !0, "data-cancel": !0, style: a.cancelButtonStyle || K, onClick: (N) => {
|
2093
|
+
var M, B;
|
2094
|
+
Je(a.cancel) && xe && ((B = (M = a.cancel).onClick) == null || B.call(M, N), ge());
|
2095
|
+
}, className: E($ == null ? void 0 : $.cancelButton, (m = a == null ? void 0 : a.classNames) == null ? void 0 : m.cancelButton) }, a.cancel.label) : null, p.isValidElement(a.action) ? a.action : a.action && Je(a.action) ? p.createElement("button", { "data-button": !0, "data-action": !0, style: a.actionButtonStyle || H, onClick: (N) => {
|
2096
|
+
var M, B;
|
2097
|
+
Je(a.action) && (N.defaultPrevented || ((B = (M = a.action).onClick) == null || B.call(M, N), ge()));
|
2098
|
+
}, className: E($ == null ? void 0 : $.actionButton, (h = a == null ? void 0 : a.classNames) == null ? void 0 : h.actionButton) }, a.action.label) : null));
|
2098
2099
|
};
|
2099
2100
|
function kt() {
|
2100
2101
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
@@ -2102,20 +2103,20 @@ function kt() {
|
|
2102
2103
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
2103
2104
|
}
|
2104
2105
|
var Zn = (e) => {
|
2105
|
-
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: l, className: f, offset: c, theme: u = "light", richColors: m, duration: h, style: b, visibleToasts: a = Vn, toastOptions: v, dir:
|
2106
|
-
var
|
2107
|
-
(
|
2106
|
+
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: l, className: f, offset: c, theme: u = "light", richColors: m, duration: h, style: b, visibleToasts: a = Vn, toastOptions: v, dir: _ = kt(), gap: x = Kn, loadingIcon: C, icons: y, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: Y, cn: z = qn } = e, [R, A] = p.useState([]), L = p.useMemo(() => Array.from(new Set([r].concat(R.filter((S) => S.position).map((S) => S.position)))), [R, r]), [J, K] = p.useState([]), [H, O] = p.useState(!1), [Q, j] = p.useState(!1), [q, F] = p.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), U = p.useRef(null), ne = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), $ = p.useRef(null), ee = p.useRef(!1), oe = p.useCallback((S) => {
|
2107
|
+
var E;
|
2108
|
+
(E = R.find((P) => P.id === S.id)) != null && E.delete || ue.dismiss(S.id), A((P) => P.filter(({ id: X }) => X !== S.id));
|
2108
2109
|
}, [R]);
|
2109
|
-
return p.useEffect(() =>
|
2110
|
-
if (
|
2111
|
-
A((
|
2110
|
+
return p.useEffect(() => ue.subscribe((S) => {
|
2111
|
+
if (S.dismiss) {
|
2112
|
+
A((E) => E.map((P) => P.id === S.id ? { ...P, delete: !0 } : P));
|
2112
2113
|
return;
|
2113
2114
|
}
|
2114
2115
|
setTimeout(() => {
|
2115
2116
|
an.flushSync(() => {
|
2116
|
-
A((
|
2117
|
-
let
|
2118
|
-
return
|
2117
|
+
A((E) => {
|
2118
|
+
let P = E.findIndex((X) => X.id === S.id);
|
2119
|
+
return P !== -1 ? [...E.slice(0, P), { ...E[P], ...S }, ...E.slice(P + 1)] : [S, ...E];
|
2119
2120
|
});
|
2120
2121
|
});
|
2121
2122
|
});
|
@@ -2124,39 +2125,39 @@ var Zn = (e) => {
|
|
2124
2125
|
F(u);
|
2125
2126
|
return;
|
2126
2127
|
}
|
2127
|
-
u === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? F("dark") : F("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches:
|
2128
|
-
F(
|
2128
|
+
u === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? F("dark") : F("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: S }) => {
|
2129
|
+
F(S ? "dark" : "light");
|
2129
2130
|
});
|
2130
2131
|
}, [u]), p.useEffect(() => {
|
2131
2132
|
R.length <= 1 && O(!1);
|
2132
2133
|
}, [R]), p.useEffect(() => {
|
2133
|
-
let
|
2134
|
-
var
|
2135
|
-
o.every((
|
2134
|
+
let S = (E) => {
|
2135
|
+
var P, X;
|
2136
|
+
o.every((G) => E[G] || E.code === G) && (O(!0), (P = U.current) == null || P.focus()), E.code === "Escape" && (document.activeElement === U.current || (X = U.current) != null && X.contains(document.activeElement)) && O(!1);
|
2136
2137
|
};
|
2137
|
-
return document.addEventListener("keydown",
|
2138
|
+
return document.addEventListener("keydown", S), () => document.removeEventListener("keydown", S);
|
2138
2139
|
}, [o]), p.useEffect(() => {
|
2139
|
-
if (
|
2140
|
-
$.current && ($.current.focus({ preventScroll: !0 }), $.current = null,
|
2140
|
+
if (U.current) return () => {
|
2141
|
+
$.current && ($.current.focus({ preventScroll: !0 }), $.current = null, ee.current = !1);
|
2141
2142
|
};
|
2142
|
-
}, [
|
2143
|
-
var
|
2144
|
-
let [
|
2145
|
-
return p.createElement("ol", { key:
|
2146
|
-
|
2147
|
-
}, onFocus: (
|
2148
|
-
|
2143
|
+
}, [U.current]), R.length ? p.createElement("section", { "aria-label": `${w} ${ne}`, tabIndex: -1 }, L.map((S, E) => {
|
2144
|
+
var P;
|
2145
|
+
let [X, G] = S.split("-");
|
2146
|
+
return p.createElement("ol", { key: S, dir: _ === "auto" ? kt() : _, tabIndex: -1, ref: U, className: f, "data-sonner-toaster": !0, "data-theme": q, "data-y-position": X, "data-x-position": G, style: { "--front-toast-height": `${((P = J[0]) == null ? void 0 : P.height) || 0}px`, "--offset": typeof c == "number" ? `${c}px` : c || Yn, "--width": `${Un}px`, "--gap": `${x}px`, ...b }, onBlur: (W) => {
|
2147
|
+
ee.current && !W.currentTarget.contains(W.relatedTarget) && (ee.current = !1, $.current && ($.current.focus({ preventScroll: !0 }), $.current = null));
|
2148
|
+
}, onFocus: (W) => {
|
2149
|
+
W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || ee.current || (ee.current = !0, $.current = W.relatedTarget);
|
2149
2150
|
}, onMouseEnter: () => O(!0), onMouseMove: () => O(!0), onMouseLeave: () => {
|
2150
|
-
|
2151
|
-
}, onPointerDown: (
|
2152
|
-
|
2153
|
-
}, onPointerUp: () =>
|
2154
|
-
var
|
2155
|
-
return p.createElement(Gn, { key:
|
2151
|
+
Q || O(!1);
|
2152
|
+
}, onPointerDown: (W) => {
|
2153
|
+
W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || j(!0);
|
2154
|
+
}, onPointerUp: () => j(!1) }, R.filter((W) => !W.position && E === 0 || W.position === S).map((W, Ne) => {
|
2155
|
+
var me, ve;
|
2156
|
+
return p.createElement(Gn, { key: W.id, icons: y, index: Ne, toast: W, defaultRichColors: m, duration: (me = v == null ? void 0 : v.duration) != null ? me : h, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: n, visibleToasts: a, closeButton: (ve = v == null ? void 0 : v.closeButton) != null ? ve : l, interacting: Q, position: S, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: oe, toasts: R.filter((pe) => pe.position == W.position), heights: J.filter((pe) => pe.position == W.position), setHeights: K, expandByDefault: i, gap: x, loadingIcon: C, expanded: H, pauseWhenPageIsHidden: Y, cn: z });
|
2156
2157
|
}));
|
2157
2158
|
})) : null;
|
2158
2159
|
};
|
2159
|
-
function
|
2160
|
+
function Mr({ children: e }) {
|
2160
2161
|
function n(r) {
|
2161
2162
|
An.custom((o) => /* @__PURE__ */ s.jsx(jn, { ...r }));
|
2162
2163
|
}
|
@@ -2197,7 +2198,7 @@ export {
|
|
2197
2198
|
fr as TableHeader,
|
2198
2199
|
wr as Textarea,
|
2199
2200
|
jn as Toast,
|
2200
|
-
|
2201
|
+
Mr as ToastProvider,
|
2201
2202
|
Ir as Tooltip,
|
2202
2203
|
Or as useAutomation,
|
2203
2204
|
zr as useDrawer,
|