@arkyn/components 1.3.61 → 1.3.63
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +452 -448
- package/dist/bundle.umd.cjs +9 -9
- package/dist/components/Input/SimpleInput/index.d.ts.map +1 -1
- package/dist/components/Input/SimpleInput/index.js +1 -1
- 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/package.json +1 -1
- package/src/components/Input/SimpleInput/index.tsx +9 -1
- package/src/components/Select/getConfig.tsx +0 -2
- package/src/components/Select/index.tsx +5 -33
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,96 @@ 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(
|
1273
|
+
return L === "hidden" ? /* @__PURE__ */ s.jsx(
|
1274
|
+
"input",
|
1275
|
+
{
|
1276
|
+
style: { display: "none" },
|
1277
|
+
readOnly: !0,
|
1278
|
+
type: "text",
|
1279
|
+
ref: c,
|
1280
|
+
...K
|
1281
|
+
}
|
1282
|
+
) : /* @__PURE__ */ s.jsxs(
|
1274
1283
|
"section",
|
1275
1284
|
{
|
1276
1285
|
title: h,
|
1277
1286
|
style: b,
|
1278
|
-
onClick:
|
1287
|
+
onClick: q,
|
1279
1288
|
className: a,
|
1280
1289
|
children: [
|
1281
1290
|
v,
|
1282
|
-
|
1283
|
-
|
1291
|
+
Q && J,
|
1292
|
+
H && /* @__PURE__ */ s.jsx(w, { size: x, strokeWidth: 2.5 }),
|
1284
1293
|
/* @__PURE__ */ s.jsx(
|
1285
1294
|
"input",
|
1286
1295
|
{
|
1287
1296
|
disabled: m || y,
|
1288
|
-
readOnly:
|
1297
|
+
readOnly: Y,
|
1289
1298
|
ref: c,
|
1290
1299
|
onFocus: F,
|
1291
|
-
onBlur:
|
1300
|
+
onBlur: U,
|
1292
1301
|
type: L,
|
1293
|
-
...
|
1302
|
+
...K
|
1294
1303
|
}
|
1295
1304
|
),
|
1296
1305
|
O && /* @__PURE__ */ s.jsx(A, { size: x, strokeWidth: 2.5 }),
|
1297
|
-
|
1298
|
-
|
1306
|
+
j && J,
|
1307
|
+
_
|
1299
1308
|
]
|
1300
1309
|
}
|
1301
1310
|
);
|
@@ -1317,8 +1326,7 @@ function Nn(e, n) {
|
|
1317
1326
|
onFocus: b,
|
1318
1327
|
onBlur: a,
|
1319
1328
|
title: v,
|
1320
|
-
style:
|
1321
|
-
// isSearchable = false,
|
1329
|
+
style: _,
|
1322
1330
|
closeOnSelect: x = !0,
|
1323
1331
|
...C
|
1324
1332
|
} = 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 +1341,75 @@ function Nn(e, n) {
|
|
1333
1341
|
onBlur: a,
|
1334
1342
|
title: v,
|
1335
1343
|
closeOnSelect: x,
|
1336
|
-
style:
|
1337
|
-
// isSearchable,
|
1344
|
+
style: _,
|
1338
1345
|
iconSize: L,
|
1339
1346
|
Spinner: /* @__PURE__ */ s.jsx(Se, { className: "spinner", size: L, strokeWidth: 2.5 }),
|
1340
1347
|
...C
|
1341
1348
|
};
|
1342
1349
|
}
|
1343
1350
|
function xr(e) {
|
1344
|
-
var
|
1345
|
-
const [n, r] =
|
1351
|
+
var P;
|
1352
|
+
const [n, r] = ce(!1), { inputRef: o, id: i, error: l } = ye(), f = Ce(null), c = o || f, u = e.isError || !!l, {
|
1346
1353
|
disabled: m,
|
1347
1354
|
title: h,
|
1348
1355
|
style: b,
|
1349
1356
|
className: a,
|
1350
1357
|
prefix: v,
|
1351
|
-
iconSize:
|
1358
|
+
iconSize: _,
|
1352
1359
|
isLoading: x,
|
1353
1360
|
LeftIcon: C,
|
1354
1361
|
value: y = null,
|
1355
1362
|
defaultValue: w = "",
|
1356
|
-
readOnly:
|
1363
|
+
readOnly: Y,
|
1357
1364
|
onFocus: z,
|
1358
1365
|
onBlur: R,
|
1359
1366
|
Spinner: A,
|
1360
1367
|
name: L,
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
options: K,
|
1368
|
+
placeholder: J,
|
1369
|
+
onSelect: K,
|
1370
|
+
options: H,
|
1365
1371
|
optionMaxHeight: O,
|
1366
|
-
closeOnSelect:
|
1367
|
-
...
|
1368
|
-
} = Nn({ ...e, id: i, isError: u }, n), [
|
1369
|
-
function
|
1372
|
+
closeOnSelect: Q,
|
1373
|
+
...j
|
1374
|
+
} = Nn({ ...e, id: i, isError: u }, n), [q, F] = ce(w);
|
1375
|
+
function U() {
|
1370
1376
|
m || !(c != null && c.current) || (r(!0), c.current.focus());
|
1371
1377
|
}
|
1372
|
-
function
|
1373
|
-
r(!0), z && z(
|
1378
|
+
function ne(X) {
|
1379
|
+
n || (r(!0), z && z(X));
|
1374
1380
|
}
|
1375
|
-
function
|
1381
|
+
function $() {
|
1376
1382
|
r(!1), R && c.current && c.current.blur();
|
1377
1383
|
}
|
1378
|
-
function
|
1379
|
-
const { label:
|
1380
|
-
F(
|
1384
|
+
function ee(X) {
|
1385
|
+
const { label: G, value: W } = X;
|
1386
|
+
F(q !== W ? W : ""), K && K({ label: G, value: W }), Q && $();
|
1381
1387
|
}
|
1382
|
-
const
|
1388
|
+
const oe = typeof y == "string" ? y : q, S = ((P = H.find((X) => X.value === oe)) == null ? void 0 : P.label) || "", E = () => {
|
1383
1389
|
if (!n && S) return !0;
|
1384
1390
|
if (!n && !S) return !1;
|
1385
1391
|
if (n && S) return !0;
|
1386
1392
|
if (n && !S) return !1;
|
1387
|
-
}
|
1393
|
+
};
|
1388
1394
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
1389
1395
|
/* @__PURE__ */ s.jsxs(
|
1390
1396
|
"section",
|
1391
1397
|
{
|
1392
1398
|
title: h,
|
1393
1399
|
style: b,
|
1394
|
-
onClick:
|
1395
|
-
className: `${a} placeholder_dark_${
|
1400
|
+
onClick: U,
|
1401
|
+
className: `${a} placeholder_dark_${E()}`,
|
1396
1402
|
children: [
|
1397
1403
|
v,
|
1398
|
-
C && /* @__PURE__ */ s.jsx(C, { size:
|
1404
|
+
C && /* @__PURE__ */ s.jsx(C, { size: _, strokeWidth: 2.5 }),
|
1399
1405
|
/* @__PURE__ */ s.jsx(
|
1400
1406
|
"input",
|
1401
1407
|
{
|
1402
1408
|
disabled: m || x,
|
1403
1409
|
readOnly: !0,
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
onBlur: () => te(""),
|
1408
|
-
...E
|
1410
|
+
placeholder: S || J,
|
1411
|
+
onFocus: ne,
|
1412
|
+
...j
|
1409
1413
|
}
|
1410
1414
|
),
|
1411
1415
|
/* @__PURE__ */ s.jsx(
|
@@ -1414,7 +1418,7 @@ function xr(e) {
|
|
1414
1418
|
type: "hidden",
|
1415
1419
|
ref: c,
|
1416
1420
|
name: L,
|
1417
|
-
value:
|
1421
|
+
value: oe || "",
|
1418
1422
|
readOnly: !0
|
1419
1423
|
}
|
1420
1424
|
),
|
@@ -1424,20 +1428,20 @@ function xr(e) {
|
|
1424
1428
|
className: "arkyn_select_content",
|
1425
1429
|
style: { overflow: "auto", maxHeight: O },
|
1426
1430
|
children: [
|
1427
|
-
|
1431
|
+
H.map(({ label: X, value: G }) => /* @__PURE__ */ s.jsxs(
|
1428
1432
|
"div",
|
1429
1433
|
{
|
1430
|
-
onClick: () =>
|
1431
|
-
className:
|
1434
|
+
onClick: () => ee({ label: X, value: G }),
|
1435
|
+
className: oe === G ? "arkyn_select_option active" : "arkyn_select_option",
|
1432
1436
|
children: [
|
1433
|
-
|
1437
|
+
X,
|
1434
1438
|
" ",
|
1435
1439
|
/* @__PURE__ */ s.jsx(Ct, {})
|
1436
1440
|
]
|
1437
1441
|
},
|
1438
|
-
|
1442
|
+
G
|
1439
1443
|
)),
|
1440
|
-
|
1444
|
+
H.length <= 0 && /* @__PURE__ */ s.jsx("p", { children: "Sem opções disponíveis" })
|
1441
1445
|
]
|
1442
1446
|
}
|
1443
1447
|
),
|
@@ -1445,7 +1449,7 @@ function xr(e) {
|
|
1445
1449
|
qt,
|
1446
1450
|
{
|
1447
1451
|
className: "arkyn_select_arrow",
|
1448
|
-
size:
|
1452
|
+
size: _,
|
1449
1453
|
strokeWidth: 2.5
|
1450
1454
|
}
|
1451
1455
|
),
|
@@ -1453,7 +1457,7 @@ function xr(e) {
|
|
1453
1457
|
]
|
1454
1458
|
}
|
1455
1459
|
),
|
1456
|
-
n && /* @__PURE__ */ s.jsx("aside", { className: "arkyn_select_overlay", onClick:
|
1460
|
+
n && /* @__PURE__ */ s.jsx("aside", { className: "arkyn_select_overlay", onClick: $ })
|
1457
1461
|
] });
|
1458
1462
|
}
|
1459
1463
|
function wr(e) {
|
@@ -1468,15 +1472,15 @@ function wr(e) {
|
|
1468
1472
|
title: u,
|
1469
1473
|
style: m,
|
1470
1474
|
...h
|
1471
|
-
} = e, [b, a] =
|
1475
|
+
} = 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
1476
|
function L() {
|
1473
1477
|
i || !(y != null && y.current) || (a(!0), y.current.focus());
|
1474
1478
|
}
|
1475
|
-
function
|
1476
|
-
a(!0), f && f(
|
1479
|
+
function J(H) {
|
1480
|
+
a(!0), f && f(H);
|
1477
1481
|
}
|
1478
|
-
function
|
1479
|
-
a(!1), c && c(
|
1482
|
+
function K(H) {
|
1483
|
+
a(!1), c && c(H);
|
1480
1484
|
}
|
1481
1485
|
return /* @__PURE__ */ s.jsx(
|
1482
1486
|
"section",
|
@@ -1488,12 +1492,12 @@ function wr(e) {
|
|
1488
1492
|
children: /* @__PURE__ */ s.jsx(
|
1489
1493
|
"textarea",
|
1490
1494
|
{
|
1491
|
-
id:
|
1495
|
+
id: _,
|
1492
1496
|
disabled: i,
|
1493
1497
|
readOnly: l,
|
1494
1498
|
ref: y,
|
1495
|
-
onFocus:
|
1496
|
-
onBlur:
|
1499
|
+
onFocus: J,
|
1500
|
+
onBlur: K,
|
1497
1501
|
...h
|
1498
1502
|
}
|
1499
1503
|
)
|
@@ -1543,7 +1547,7 @@ function Nr(e) {
|
|
1543
1547
|
pageKey: i = "page",
|
1544
1548
|
siblingsCount: l = 2,
|
1545
1549
|
...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),
|
1550
|
+
} = 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
1551
|
function x(C) {
|
1548
1552
|
c(m({ page: C }));
|
1549
1553
|
}
|
@@ -1578,7 +1582,7 @@ function Nr(e) {
|
|
1578
1582
|
y
|
1579
1583
|
)),
|
1580
1584
|
/* @__PURE__ */ s.jsx("button", { className: "arkyn_pagination-current", disabled: !0, children: h }),
|
1581
|
-
|
1585
|
+
_.map((C, y) => /* @__PURE__ */ s.jsx(
|
1582
1586
|
"button",
|
1583
1587
|
{
|
1584
1588
|
onClick: () => x(C),
|
@@ -1620,16 +1624,16 @@ function _r(e) {
|
|
1620
1624
|
return /* @__PURE__ */ s.jsx("button", { className: f.trim(), ...l, children: n });
|
1621
1625
|
}
|
1622
1626
|
function jr(e) {
|
1623
|
-
const { children: n, onClick: r, className: o, ...i } = e, l =
|
1627
|
+
const { children: n, onClick: r, className: o, ...i } = e, l = Ce(null), f = `arkyn_tab_container ${o || ""}`, [c, u] = ce({
|
1624
1628
|
width: "0px",
|
1625
1629
|
left: "0px",
|
1626
1630
|
transition: "none"
|
1627
1631
|
}), m = (b, a) => {
|
1628
|
-
const v = b.getBoundingClientRect(),
|
1632
|
+
const v = b.getBoundingClientRect(), _ = l.current.getBoundingClientRect();
|
1629
1633
|
u({
|
1630
1634
|
transition: a ? void 0 : "none",
|
1631
1635
|
width: `${v.width}px`,
|
1632
|
-
left: `${v.left -
|
1636
|
+
left: `${v.left - _.left}px`
|
1633
1637
|
});
|
1634
1638
|
};
|
1635
1639
|
Jt(() => {
|
@@ -1772,7 +1776,7 @@ function Pr(e) {
|
|
1772
1776
|
] });
|
1773
1777
|
}
|
1774
1778
|
function Tr(e) {
|
1775
|
-
const { children: n, button: r, closeOnClick: o, orientation: i = "bottom-left" } = e, [l, f] =
|
1779
|
+
const { children: n, button: r, closeOnClick: o, orientation: i = "bottom-left" } = e, [l, f] = ce(!1), c = `arkyn_popover ${i} ${l ? "show" : ""}`;
|
1776
1780
|
function u() {
|
1777
1781
|
l || f(!0);
|
1778
1782
|
}
|
@@ -1897,7 +1901,7 @@ function Fr(e) {
|
|
1897
1901
|
return n;
|
1898
1902
|
}
|
1899
1903
|
function Dr(e) {
|
1900
|
-
const { children: n = !1 } = e, [r, o] =
|
1904
|
+
const { children: n = !1 } = e, [r, o] = ce([]);
|
1901
1905
|
function i(u) {
|
1902
1906
|
return !!r.some((m) => m.key === u);
|
1903
1907
|
}
|
@@ -1921,7 +1925,7 @@ function Dr(e) {
|
|
1921
1925
|
);
|
1922
1926
|
}
|
1923
1927
|
function Lr(e) {
|
1924
|
-
const { children: n = !1 } = e, [r, o] =
|
1928
|
+
const { children: n = !1 } = e, [r, o] = ce([]);
|
1925
1929
|
function i(u) {
|
1926
1930
|
return !!r.some((m) => m.key === u);
|
1927
1931
|
}
|
@@ -2010,10 +2014,10 @@ var Sn = (e) => {
|
|
2010
2014
|
return this.create({ jsx: e(r), id: r, ...n }), r;
|
2011
2015
|
}, this.subscribers = [], this.toasts = [];
|
2012
2016
|
}
|
2013
|
-
},
|
2017
|
+
}, ue = new Fn(), Dn = (e, n) => {
|
2014
2018
|
let r = (n == null ? void 0 : n.id) || ot++;
|
2015
|
-
return
|
2016
|
-
}, Ln = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number",
|
2019
|
+
return ue.addToast({ title: e, ...n, id: r }), r;
|
2020
|
+
}, 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 });
|
2017
2021
|
function Wn(e, { insertAt: n } = {}) {
|
2018
2022
|
if (!e || typeof document > "u") return;
|
2019
2023
|
let r = document.head || document.getElementsByTagName("head")[0], o = document.createElement("style");
|
@@ -2030,77 +2034,77 @@ function qn(...e) {
|
|
2030
2034
|
}
|
2031
2035
|
var Gn = (e) => {
|
2032
2036
|
var n, r, o, i, l, f, c, u, m, h;
|
2033
|
-
let { invert: b, toast: a, unstyled: v, interacting:
|
2037
|
+
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(() => {
|
2034
2038
|
var N;
|
2035
2039
|
return (N = a.closeButton) != null ? N : L;
|
2036
|
-
}, [a.closeButton, L]), ze = p.useMemo(() => a.duration ||
|
2037
|
-
|
2038
|
-
|
2040
|
+
}, [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";
|
2041
|
+
fe.current = p.useMemo(() => $e * F + Ue, [$e, Ue]), p.useEffect(() => {
|
2042
|
+
X(!0);
|
2039
2043
|
}, []), p.useLayoutEffect(() => {
|
2040
|
-
if (!
|
2041
|
-
let N =
|
2044
|
+
if (!P) return;
|
2045
|
+
let N = de.current, M = N.style.height;
|
2042
2046
|
N.style.height = "auto";
|
2043
|
-
let
|
2044
|
-
N.style.height =
|
2045
|
-
}, [
|
2046
|
-
let
|
2047
|
-
|
2047
|
+
let B = N.getBoundingClientRect().height;
|
2048
|
+
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]);
|
2049
|
+
}, [P, a.title, a.description, x, a.id]);
|
2050
|
+
let ge = p.useCallback(() => {
|
2051
|
+
W(!0), Re(fe.current), x((N) => N.filter((M) => M.toastId !== a.id)), setTimeout(() => {
|
2048
2052
|
R(a);
|
2049
2053
|
}, Jn);
|
2050
|
-
}, [a, R, x,
|
2054
|
+
}, [a, R, x, fe]);
|
2051
2055
|
p.useEffect(() => {
|
2052
|
-
if (a.promise &&
|
2053
|
-
let N,
|
2054
|
-
return z ||
|
2056
|
+
if (a.promise && re === "loading" || a.duration === 1 / 0 || a.type === "loading") return;
|
2057
|
+
let N, M = ze;
|
2058
|
+
return z || _ || S && Ke ? (() => {
|
2055
2059
|
if (He.current < Pe.current) {
|
2056
|
-
let
|
2057
|
-
|
2060
|
+
let B = (/* @__PURE__ */ new Date()).getTime() - Pe.current;
|
2061
|
+
M = M - B;
|
2058
2062
|
}
|
2059
2063
|
He.current = (/* @__PURE__ */ new Date()).getTime();
|
2060
|
-
})() :
|
2061
|
-
var
|
2062
|
-
(
|
2063
|
-
},
|
2064
|
-
}, [z,
|
2065
|
-
let N =
|
2064
|
+
})() : M !== 1 / 0 && (Pe.current = (/* @__PURE__ */ new Date()).getTime(), N = setTimeout(() => {
|
2065
|
+
var B;
|
2066
|
+
(B = a.onAutoClose) == null || B.call(a, a), ge();
|
2067
|
+
}, M)), () => clearTimeout(N);
|
2068
|
+
}, [z, _, ne, a, ze, ge, a.promise, re, S, Ke]), p.useEffect(() => {
|
2069
|
+
let N = de.current;
|
2066
2070
|
if (N) {
|
2067
|
-
let
|
2068
|
-
return We(
|
2071
|
+
let M = N.getBoundingClientRect().height;
|
2072
|
+
return We(M), x((B) => [{ toastId: a.id, height: M, position: a.position }, ...B]), () => x((B) => B.filter((ae) => ae.toastId !== a.id));
|
2069
2073
|
}
|
2070
2074
|
}, [x, a.id]), p.useEffect(() => {
|
2071
|
-
a.delete &&
|
2072
|
-
}, [
|
2075
|
+
a.delete && ge();
|
2076
|
+
}, [ge, a.delete]);
|
2073
2077
|
function nt() {
|
2074
|
-
return
|
2078
|
+
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" });
|
2075
2079
|
}
|
2076
|
-
return p.createElement("li", { "aria-live": a.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref:
|
2077
|
-
Le || !
|
2080
|
+
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) => {
|
2081
|
+
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 }));
|
2078
2082
|
}, onPointerUp: () => {
|
2079
|
-
var N,
|
2080
|
-
if (
|
2081
|
-
|
2082
|
-
let
|
2083
|
-
if (Math.abs(
|
2084
|
-
Re(
|
2083
|
+
var N, M, B, ae;
|
2084
|
+
if (ve || !xe) return;
|
2085
|
+
be.current = null;
|
2086
|
+
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;
|
2087
|
+
if (Math.abs(ie) >= Xn || Xe > 0.11) {
|
2088
|
+
Re(fe.current), (B = a.onDismiss) == null || B.call(a, a), ge(), pe(!0);
|
2085
2089
|
return;
|
2086
2090
|
}
|
2087
|
-
(
|
2091
|
+
(ae = de.current) == null || ae.style.setProperty("--swipe-amount", "0px"), me(!1);
|
2088
2092
|
}, onPointerMove: (N) => {
|
2089
|
-
var
|
2090
|
-
if (!
|
2091
|
-
let
|
2092
|
-
Math.abs(
|
2093
|
-
} }, et && !a.jsx ? p.createElement("button", { "aria-label":
|
2093
|
+
var M;
|
2094
|
+
if (!be.current || !xe) return;
|
2095
|
+
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;
|
2096
|
+
Math.abs(ie) > we ? (M = de.current) == null || M.style.setProperty("--swipe-amount", `${B}px`) : Math.abs(ae) > we && (be.current = null);
|
2097
|
+
} }, et && !a.jsx ? p.createElement("button", { "aria-label": oe, "data-disabled": Le, "data-close-button": !0, onClick: Le || !xe ? () => {
|
2094
2098
|
} : () => {
|
2095
2099
|
var N;
|
2096
|
-
|
2097
|
-
}, className:
|
2098
|
-
var
|
2099
|
-
Je(a.cancel) &&
|
2100
|
-
}, className:
|
2101
|
-
var
|
2102
|
-
Je(a.action) && (N.defaultPrevented || ((
|
2103
|
-
}, className:
|
2100
|
+
ge(), (N = a.onDismiss) == null || N.call(a, a);
|
2101
|
+
}, 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) => {
|
2102
|
+
var M, B;
|
2103
|
+
Je(a.cancel) && xe && ((B = (M = a.cancel).onClick) == null || B.call(M, N), ge());
|
2104
|
+
}, 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) => {
|
2105
|
+
var M, B;
|
2106
|
+
Je(a.action) && (N.defaultPrevented || ((B = (M = a.action).onClick) == null || B.call(M, N), ge()));
|
2107
|
+
}, className: E($ == null ? void 0 : $.actionButton, (h = a == null ? void 0 : a.classNames) == null ? void 0 : h.actionButton) }, a.action.label) : null));
|
2104
2108
|
};
|
2105
2109
|
function kt() {
|
2106
2110
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
@@ -2108,20 +2112,20 @@ function kt() {
|
|
2108
2112
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
2109
2113
|
}
|
2110
2114
|
var Zn = (e) => {
|
2111
|
-
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:
|
2112
|
-
var
|
2113
|
-
(
|
2115
|
+
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) => {
|
2116
|
+
var E;
|
2117
|
+
(E = R.find((P) => P.id === S.id)) != null && E.delete || ue.dismiss(S.id), A((P) => P.filter(({ id: X }) => X !== S.id));
|
2114
2118
|
}, [R]);
|
2115
|
-
return p.useEffect(() =>
|
2116
|
-
if (
|
2117
|
-
A((
|
2119
|
+
return p.useEffect(() => ue.subscribe((S) => {
|
2120
|
+
if (S.dismiss) {
|
2121
|
+
A((E) => E.map((P) => P.id === S.id ? { ...P, delete: !0 } : P));
|
2118
2122
|
return;
|
2119
2123
|
}
|
2120
2124
|
setTimeout(() => {
|
2121
2125
|
an.flushSync(() => {
|
2122
|
-
A((
|
2123
|
-
let
|
2124
|
-
return
|
2126
|
+
A((E) => {
|
2127
|
+
let P = E.findIndex((X) => X.id === S.id);
|
2128
|
+
return P !== -1 ? [...E.slice(0, P), { ...E[P], ...S }, ...E.slice(P + 1)] : [S, ...E];
|
2125
2129
|
});
|
2126
2130
|
});
|
2127
2131
|
});
|
@@ -2130,39 +2134,39 @@ var Zn = (e) => {
|
|
2130
2134
|
F(u);
|
2131
2135
|
return;
|
2132
2136
|
}
|
2133
|
-
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:
|
2134
|
-
F(
|
2137
|
+
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 }) => {
|
2138
|
+
F(S ? "dark" : "light");
|
2135
2139
|
});
|
2136
2140
|
}, [u]), p.useEffect(() => {
|
2137
2141
|
R.length <= 1 && O(!1);
|
2138
2142
|
}, [R]), p.useEffect(() => {
|
2139
|
-
let
|
2140
|
-
var
|
2141
|
-
o.every((
|
2143
|
+
let S = (E) => {
|
2144
|
+
var P, X;
|
2145
|
+
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);
|
2142
2146
|
};
|
2143
|
-
return document.addEventListener("keydown",
|
2147
|
+
return document.addEventListener("keydown", S), () => document.removeEventListener("keydown", S);
|
2144
2148
|
}, [o]), p.useEffect(() => {
|
2145
|
-
if (
|
2146
|
-
$.current && ($.current.focus({ preventScroll: !0 }), $.current = null,
|
2149
|
+
if (U.current) return () => {
|
2150
|
+
$.current && ($.current.focus({ preventScroll: !0 }), $.current = null, ee.current = !1);
|
2147
2151
|
};
|
2148
|
-
}, [
|
2149
|
-
var
|
2150
|
-
let [
|
2151
|
-
return p.createElement("ol", { key:
|
2152
|
-
|
2153
|
-
}, onFocus: (
|
2154
|
-
|
2152
|
+
}, [U.current]), R.length ? p.createElement("section", { "aria-label": `${w} ${ne}`, tabIndex: -1 }, L.map((S, E) => {
|
2153
|
+
var P;
|
2154
|
+
let [X, G] = S.split("-");
|
2155
|
+
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) => {
|
2156
|
+
ee.current && !W.currentTarget.contains(W.relatedTarget) && (ee.current = !1, $.current && ($.current.focus({ preventScroll: !0 }), $.current = null));
|
2157
|
+
}, onFocus: (W) => {
|
2158
|
+
W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || ee.current || (ee.current = !0, $.current = W.relatedTarget);
|
2155
2159
|
}, onMouseEnter: () => O(!0), onMouseMove: () => O(!0), onMouseLeave: () => {
|
2156
|
-
|
2157
|
-
}, onPointerDown: (
|
2158
|
-
|
2159
|
-
}, onPointerUp: () =>
|
2160
|
-
var
|
2161
|
-
return p.createElement(Gn, { key:
|
2160
|
+
Q || O(!1);
|
2161
|
+
}, onPointerDown: (W) => {
|
2162
|
+
W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || j(!0);
|
2163
|
+
}, onPointerUp: () => j(!1) }, R.filter((W) => !W.position && E === 0 || W.position === S).map((W, Ne) => {
|
2164
|
+
var me, ve;
|
2165
|
+
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 });
|
2162
2166
|
}));
|
2163
2167
|
})) : null;
|
2164
2168
|
};
|
2165
|
-
function
|
2169
|
+
function Mr({ children: e }) {
|
2166
2170
|
function n(r) {
|
2167
2171
|
An.custom((o) => /* @__PURE__ */ s.jsx(jn, { ...r }));
|
2168
2172
|
}
|
@@ -2203,7 +2207,7 @@ export {
|
|
2203
2207
|
fr as TableHeader,
|
2204
2208
|
wr as Textarea,
|
2205
2209
|
jn as Toast,
|
2206
|
-
|
2210
|
+
Mr as ToastProvider,
|
2207
2211
|
Ir as Tooltip,
|
2208
2212
|
Or as useAutomation,
|
2209
2213
|
zr as useDrawer,
|