@arkyn/components 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import v, { createContext as Ct, useRef as at, useId as
|
2
|
-
import { Loader2 as Qe, Check as
|
3
|
-
import { useActionData as
|
1
|
+
import v, { createContext as Ct, useRef as at, useId as En, useContext as gt, useState as De, forwardRef as Sn, useEffect as on } from "react";
|
2
|
+
import { Loader2 as Qe, Check as sn, ChevronDown as Tn, ChevronRight as Ht, X as _n } from "lucide-react";
|
3
|
+
import { useActionData as ln, useLocation as cn, Link as Nn } from "@remix-run/react";
|
4
4
|
import { InputMask as kn } from "@react-input/mask";
|
5
5
|
import { AnimatePresence as Cn, motion as Yt } from "framer-motion";
|
6
6
|
import Rn from "react-dom";
|
@@ -21,14 +21,14 @@ function In() {
|
|
21
21
|
Vt = 1;
|
22
22
|
var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
23
23
|
function h(u, p, o) {
|
24
|
-
var y,
|
24
|
+
var y, T = {}, k = null, b = null;
|
25
25
|
o !== void 0 && (k = "" + o), p.key !== void 0 && (k = "" + p.key), p.ref !== void 0 && (b = p.ref);
|
26
26
|
for (y in p)
|
27
|
-
s.call(p, y) && !c.hasOwnProperty(y) && (
|
27
|
+
s.call(p, y) && !c.hasOwnProperty(y) && (T[y] = p[y]);
|
28
28
|
if (u && u.defaultProps)
|
29
29
|
for (y in p = u.defaultProps, p)
|
30
|
-
|
31
|
-
return { $$typeof: t, type: u, key: k, ref: b, props:
|
30
|
+
T[y] === void 0 && (T[y] = p[y]);
|
31
|
+
return { $$typeof: t, type: u, key: k, ref: b, props: T, _owner: l.current };
|
32
32
|
}
|
33
33
|
return dt.Fragment = a, dt.jsx = h, dt.jsxs = h, dt;
|
34
34
|
}
|
@@ -45,14 +45,14 @@ var ft = {};
|
|
45
45
|
var Gt;
|
46
46
|
function An() {
|
47
47
|
return Gt || (Gt = 1, process.env.NODE_ENV !== "production" && function() {
|
48
|
-
var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"),
|
48
|
+
var n = v, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), O = Symbol.iterator, P = "@@iterator";
|
49
49
|
function W(r) {
|
50
50
|
if (r === null || typeof r != "object")
|
51
51
|
return null;
|
52
52
|
var d = O && r[O] || r[P];
|
53
53
|
return typeof d == "function" ? d : null;
|
54
54
|
}
|
55
|
-
var
|
55
|
+
var _ = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
56
56
|
function w(r) {
|
57
57
|
{
|
58
58
|
for (var d = arguments.length, g = new Array(d > 1 ? d - 1 : 0), S = 1; S < d; S++)
|
@@ -62,7 +62,7 @@ function An() {
|
|
62
62
|
}
|
63
63
|
function C(r, d, g) {
|
64
64
|
{
|
65
|
-
var S =
|
65
|
+
var S = _.ReactDebugCurrentFrame, Y = S.getStackAddendum();
|
66
66
|
Y !== "" && (d += "%s", g = g.concat([Y]));
|
67
67
|
var e = g.map(function(f) {
|
68
68
|
return String(f);
|
@@ -73,7 +73,7 @@ function An() {
|
|
73
73
|
var H = !1, z = !1, J = !1, X = !1, Q = !1, re;
|
74
74
|
re = Symbol.for("react.module.reference");
|
75
75
|
function V(r) {
|
76
|
-
return !!(typeof r == "string" || typeof r == "function" || r === s || r === c || Q || r === l || r === o || r === y || X || r === b || H || z || J || typeof r == "object" && r !== null && (r.$$typeof === k || r.$$typeof ===
|
76
|
+
return !!(typeof r == "string" || typeof r == "function" || r === s || r === c || Q || r === l || r === o || r === y || X || r === b || H || z || J || typeof r == "object" && r !== null && (r.$$typeof === k || r.$$typeof === T || r.$$typeof === h || r.$$typeof === u || r.$$typeof === p || // This needs to include all possible module reference object
|
77
77
|
// types supported by any Flight configuration anywhere since
|
78
78
|
// we don't know which Flight build this will end up being used
|
79
79
|
// with.
|
@@ -89,7 +89,7 @@ function An() {
|
|
89
89
|
function te(r) {
|
90
90
|
return r.displayName || "Context";
|
91
91
|
}
|
92
|
-
function
|
92
|
+
function N(r) {
|
93
93
|
if (r == null)
|
94
94
|
return null;
|
95
95
|
if (typeof r.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
@@ -120,13 +120,13 @@ function An() {
|
|
120
120
|
return te(g._context) + ".Provider";
|
121
121
|
case p:
|
122
122
|
return F(r, r.render, "ForwardRef");
|
123
|
-
case
|
123
|
+
case T:
|
124
124
|
var S = r.displayName || null;
|
125
|
-
return S !== null ? S :
|
125
|
+
return S !== null ? S : N(r.type) || "Memo";
|
126
126
|
case k: {
|
127
127
|
var Y = r, e = Y._payload, f = Y._init;
|
128
128
|
try {
|
129
|
-
return
|
129
|
+
return N(f(e));
|
130
130
|
} catch {
|
131
131
|
return null;
|
132
132
|
}
|
@@ -196,7 +196,7 @@ function An() {
|
|
196
196
|
B < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
197
197
|
}
|
198
198
|
}
|
199
|
-
var M =
|
199
|
+
var M = _.ReactCurrentDispatcher, pe;
|
200
200
|
function ve(r, d, g) {
|
201
201
|
{
|
202
202
|
if (pe === void 0)
|
@@ -310,7 +310,7 @@ function An() {
|
|
310
310
|
switch (r.$$typeof) {
|
311
311
|
case p:
|
312
312
|
return Xe(r.render);
|
313
|
-
case
|
313
|
+
case T:
|
314
314
|
return ae(r.type, d, g);
|
315
315
|
case k: {
|
316
316
|
var S = r, Y = S._payload, e = S._init;
|
@@ -322,7 +322,7 @@ function An() {
|
|
322
322
|
}
|
323
323
|
return "";
|
324
324
|
}
|
325
|
-
var me = Object.prototype.hasOwnProperty, $e = {}, Je =
|
325
|
+
var me = Object.prototype.hasOwnProperty, $e = {}, Je = _.ReactDebugCurrentFrame;
|
326
326
|
function Ne(r) {
|
327
327
|
if (r) {
|
328
328
|
var d = r._owner, g = ae(r.type, r._source, d ? d.type : null);
|
@@ -373,7 +373,7 @@ function An() {
|
|
373
373
|
if (Le(r))
|
374
374
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ye(r)), ke(r);
|
375
375
|
}
|
376
|
-
var Me =
|
376
|
+
var Me = _.ReactCurrentOwner, We = {
|
377
377
|
key: !0,
|
378
378
|
ref: !0,
|
379
379
|
__self: !0,
|
@@ -398,8 +398,8 @@ function An() {
|
|
398
398
|
}
|
399
399
|
function Ye(r, d) {
|
400
400
|
if (typeof r.ref == "string" && Me.current && d && Me.current.stateNode !== d) {
|
401
|
-
var g =
|
402
|
-
Ce[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',
|
401
|
+
var g = N(Me.current.type);
|
402
|
+
Ce[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', N(Me.current.type), r.ref), Ce[g] = !0);
|
403
403
|
}
|
404
404
|
}
|
405
405
|
function E(r, d) {
|
@@ -471,7 +471,7 @@ function An() {
|
|
471
471
|
return Z(r, i, A, Y, S, Me.current, f);
|
472
472
|
}
|
473
473
|
}
|
474
|
-
var he =
|
474
|
+
var he = _.ReactCurrentOwner, ne = _.ReactDebugCurrentFrame;
|
475
475
|
function be(r) {
|
476
476
|
if (r) {
|
477
477
|
var d = r._owner, g = ae(r.type, r._source, d ? d.type : null);
|
@@ -487,7 +487,7 @@ function An() {
|
|
487
487
|
function tt() {
|
488
488
|
{
|
489
489
|
if (he.current) {
|
490
|
-
var r =
|
490
|
+
var r = N(he.current.type);
|
491
491
|
if (r)
|
492
492
|
return `
|
493
493
|
|
@@ -530,7 +530,7 @@ Check the top-level render call using <` + g + ">.");
|
|
530
530
|
return;
|
531
531
|
it[g] = !0;
|
532
532
|
var S = "";
|
533
|
-
r && r._owner && r._owner !== he.current && (S = " It was passed a child from " +
|
533
|
+
r && r._owner && r._owner !== he.current && (S = " It was passed a child from " + N(r._owner.type) + "."), be(r), 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, S), be(null);
|
534
534
|
}
|
535
535
|
}
|
536
536
|
function ct(r, d) {
|
@@ -562,16 +562,16 @@ Check the top-level render call using <` + g + ">.");
|
|
562
562
|
g = d.propTypes;
|
563
563
|
else if (typeof d == "object" && (d.$$typeof === p || // Note: Memo only checks outer props here.
|
564
564
|
// Inner props are checked in the reconciler.
|
565
|
-
d.$$typeof ===
|
565
|
+
d.$$typeof === T))
|
566
566
|
g = d.propTypes;
|
567
567
|
else
|
568
568
|
return;
|
569
569
|
if (g) {
|
570
|
-
var S =
|
570
|
+
var S = N(d);
|
571
571
|
ot(g, r.props, "prop", S, r);
|
572
572
|
} else if (d.PropTypes !== void 0 && !st) {
|
573
573
|
st = !0;
|
574
|
-
var Y =
|
574
|
+
var Y = N(d);
|
575
575
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
|
576
576
|
}
|
577
577
|
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
@@ -599,7 +599,7 @@ Check the top-level render call using <` + g + ">.");
|
|
599
599
|
var A = vt(Y);
|
600
600
|
A ? i += A : i += tt();
|
601
601
|
var j;
|
602
|
-
r === null ? j = "null" : Se(r) ? j = "array" : r !== void 0 && r.$$typeof === t ? (j = "<" + (
|
602
|
+
r === null ? j = "null" : Se(r) ? j = "array" : r !== void 0 && r.$$typeof === t ? (j = "<" + (N(r.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : j = typeof r, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, i);
|
603
603
|
}
|
604
604
|
var L = Ee(r, d, g, Y, e);
|
605
605
|
if (L == null)
|
@@ -618,8 +618,8 @@ Check the top-level render call using <` + g + ">.");
|
|
618
618
|
ct(ie, r);
|
619
619
|
}
|
620
620
|
if (me.call(d, "key")) {
|
621
|
-
var de =
|
622
|
-
return
|
621
|
+
var de = N(r), q = Object.keys(d).filter(function(wn) {
|
622
|
+
return wn !== "key";
|
623
623
|
}), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
624
624
|
if (!nt[de + rt]) {
|
625
625
|
var xt = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
|
@@ -700,7 +700,7 @@ function On(n) {
|
|
700
700
|
disabled: p,
|
701
701
|
className: o = "",
|
702
702
|
children: y,
|
703
|
-
...
|
703
|
+
...T
|
704
704
|
} = n, b = { xs: 12, sm: 16, md: 20, lg: 24 }[c];
|
705
705
|
return {
|
706
706
|
className: `arkyn_button loading_text_${!!l} ${s} ${a} ${c} loading_${t} ${o}`.trim(),
|
@@ -710,7 +710,7 @@ function On(n) {
|
|
710
710
|
disabled: p || t,
|
711
711
|
leftIcon: kt(b, h),
|
712
712
|
rightIcon: kt(b, u),
|
713
|
-
...
|
713
|
+
...T
|
714
714
|
};
|
715
715
|
}
|
716
716
|
function Zr(n) {
|
@@ -727,14 +727,14 @@ function Zr(n) {
|
|
727
727
|
] })
|
728
728
|
] });
|
729
729
|
}
|
730
|
-
const
|
730
|
+
const un = Ct({});
|
731
731
|
function Qr({ children: n, ...t }) {
|
732
732
|
var u, p;
|
733
|
-
const a =
|
734
|
-
return /* @__PURE__ */ m.jsx(
|
733
|
+
const a = ln(), s = at(null), l = ((u = s.current) == null ? void 0 : u.name) || "", c = ((p = a == null ? void 0 : a.fieldErrors) == null ? void 0 : p[l]) || null, h = En();
|
734
|
+
return /* @__PURE__ */ m.jsx(un.Provider, { value: { error: c, id: h, inputRef: s }, children: /* @__PURE__ */ m.jsx("section", { className: "arkyn_form_controller", ...t, children: n }) });
|
735
735
|
}
|
736
736
|
function Ke() {
|
737
|
-
return gt(
|
737
|
+
return gt(un);
|
738
738
|
}
|
739
739
|
function ea(n) {
|
740
740
|
const {
|
@@ -747,22 +747,22 @@ function ea(n) {
|
|
747
747
|
onCheck: u,
|
748
748
|
value: p,
|
749
749
|
...o
|
750
|
-
} = n, { id: y, inputRef:
|
750
|
+
} = n, { id: y, inputRef: T, error: k } = Ke(), b = l || !!k, [O, P] = De(c || !1), W = typeof h == "boolean" ? h : O, _ = `arkyn_checkbox ${s} ${b ? "error" : ""} ${W ? "checked" : ""} ${a}`;
|
751
751
|
function w() {
|
752
752
|
const C = O;
|
753
753
|
P(!C), u && u(C ? "" : p || "checked");
|
754
754
|
}
|
755
|
-
return /* @__PURE__ */ m.jsxs("div", { id: y, className:
|
755
|
+
return /* @__PURE__ */ m.jsxs("div", { id: y, className: _, onClick: w, ...o, children: [
|
756
756
|
/* @__PURE__ */ m.jsx(
|
757
757
|
"input",
|
758
758
|
{
|
759
759
|
type: "hidden",
|
760
760
|
name: t,
|
761
|
-
ref:
|
761
|
+
ref: T,
|
762
762
|
value: W ? p || "checked" : ""
|
763
763
|
}
|
764
764
|
),
|
765
|
-
/* @__PURE__ */ m.jsx(
|
765
|
+
/* @__PURE__ */ m.jsx(sn, {})
|
766
766
|
] });
|
767
767
|
}
|
768
768
|
function ta({ children: n }) {
|
@@ -821,19 +821,19 @@ function Ge(n, t, a) {
|
|
821
821
|
function Bt(n) {
|
822
822
|
return n && n.replace(/[^0-9]/g, "");
|
823
823
|
}
|
824
|
-
function
|
824
|
+
function dn(n, t) {
|
825
825
|
let a = "", s = 0;
|
826
826
|
return Array.from(n).forEach((l, c) => {
|
827
827
|
t[c + s].match(/[0-9]/) || (a += t[c + s], s++), a += l;
|
828
828
|
}), a;
|
829
829
|
}
|
830
|
-
function
|
830
|
+
function fn(n) {
|
831
831
|
return n.length > 11 ? "CNPJ" : "CPF";
|
832
832
|
}
|
833
833
|
const Ut = {
|
834
834
|
CPF: "999.999.999-999",
|
835
835
|
CNPJ: "99.999.999/9999-99"
|
836
|
-
},
|
836
|
+
}, mn = Bt(Ut.CNPJ).length;
|
837
837
|
function jn(n, t) {
|
838
838
|
const {
|
839
839
|
isLoading: a,
|
@@ -845,41 +845,41 @@ function jn(n, t) {
|
|
845
845
|
sufix: p,
|
846
846
|
leftIcon: o,
|
847
847
|
rightIcon: y,
|
848
|
-
disabled:
|
848
|
+
disabled: T,
|
849
849
|
defaultValue: k,
|
850
850
|
readOnly: b,
|
851
851
|
onFocus: O,
|
852
852
|
onBlur: P,
|
853
853
|
title: W,
|
854
|
-
style:
|
854
|
+
style: _,
|
855
855
|
onChange: w,
|
856
856
|
...C
|
857
857
|
} = n;
|
858
858
|
function H(R) {
|
859
859
|
let B = Bt(R);
|
860
|
-
const K =
|
861
|
-
if (!(B.length >
|
862
|
-
return B =
|
860
|
+
const K = fn(B);
|
861
|
+
if (!(B.length > mn))
|
862
|
+
return B = dn(B, Ut[K]), B;
|
863
863
|
}
|
864
|
-
const z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${
|
864
|
+
const z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, N = { md: 20, lg: 20 }[l];
|
865
865
|
return {
|
866
866
|
isLoading: a,
|
867
867
|
className: F,
|
868
|
-
prefix: Ge(u,
|
869
|
-
sufix: Ge(p,
|
868
|
+
prefix: Ge(u, N, "prefix"),
|
869
|
+
sufix: Ge(p, N, "sufix"),
|
870
870
|
LeftIcon: o,
|
871
871
|
RightIcon: y,
|
872
872
|
defaultValue: H(k || ""),
|
873
|
-
disabled:
|
873
|
+
disabled: T,
|
874
874
|
readOnly: b,
|
875
875
|
onFocus: O,
|
876
876
|
onBlur: P,
|
877
877
|
title: W,
|
878
|
-
style:
|
878
|
+
style: _,
|
879
879
|
onChange: w,
|
880
880
|
loadingPosition: z,
|
881
|
-
iconSize:
|
882
|
-
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size:
|
881
|
+
iconSize: N,
|
882
|
+
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: N, strokeWidth: 2.5 }),
|
883
883
|
...C
|
884
884
|
};
|
885
885
|
}
|
@@ -887,13 +887,13 @@ function Dn(n) {
|
|
887
887
|
const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
|
888
888
|
disabled: o,
|
889
889
|
title: y,
|
890
|
-
style:
|
890
|
+
style: T,
|
891
891
|
className: k,
|
892
892
|
prefix: b,
|
893
893
|
sufix: O,
|
894
894
|
iconSize: P,
|
895
895
|
loadingPosition: W,
|
896
|
-
isLoading:
|
896
|
+
isLoading: _,
|
897
897
|
LeftIcon: w,
|
898
898
|
readOnly: C,
|
899
899
|
onFocus: H,
|
@@ -904,14 +904,14 @@ function Dn(n) {
|
|
904
904
|
value: re,
|
905
905
|
defaultValue: V,
|
906
906
|
...F
|
907
|
-
} = jn({ ...n, id: c, isError: p }, t), [te,
|
907
|
+
} = jn({ ...n, id: c, isError: p }, t), [te, N] = De(V), R = w && !_, B = J && !_, K = W === "left" && _, ue = W === "right" && _;
|
908
908
|
function ee() {
|
909
909
|
o || !(u != null && u.current) || (a(!0), u.current.focus());
|
910
910
|
}
|
911
911
|
function se(x) {
|
912
912
|
let U = Bt(x.target.value);
|
913
|
-
const I =
|
914
|
-
U.length >
|
913
|
+
const I = fn(U);
|
914
|
+
U.length > mn || (U = dn(U, Ut[I]), x.target.value = U, N(U), Q && Q(x));
|
915
915
|
}
|
916
916
|
function G(x) {
|
917
917
|
a(!0), H && H(x);
|
@@ -923,7 +923,7 @@ function Dn(n) {
|
|
923
923
|
"section",
|
924
924
|
{
|
925
925
|
title: y,
|
926
|
-
style:
|
926
|
+
style: T,
|
927
927
|
onClick: ee,
|
928
928
|
className: k,
|
929
929
|
children: [
|
@@ -933,7 +933,7 @@ function Dn(n) {
|
|
933
933
|
/* @__PURE__ */ m.jsx(
|
934
934
|
"input",
|
935
935
|
{
|
936
|
-
disabled: o ||
|
936
|
+
disabled: o || _,
|
937
937
|
readOnly: C,
|
938
938
|
ref: u,
|
939
939
|
value: re || te,
|
@@ -961,25 +961,25 @@ function Mn(n, t) {
|
|
961
961
|
sufix: p,
|
962
962
|
leftIcon: o,
|
963
963
|
rightIcon: y,
|
964
|
-
disabled:
|
964
|
+
disabled: T,
|
965
965
|
readOnly: k,
|
966
966
|
onFocus: b,
|
967
967
|
onBlur: O,
|
968
968
|
title: P,
|
969
969
|
style: W,
|
970
|
-
showCents:
|
970
|
+
showCents: _ = !1,
|
971
971
|
max: w = 1e9,
|
972
972
|
onChange: C,
|
973
973
|
...H
|
974
|
-
} = n, z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${
|
974
|
+
} = n, z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, N = { md: 20, lg: 20 }[l];
|
975
975
|
return {
|
976
976
|
isLoading: a,
|
977
977
|
className: F,
|
978
|
-
prefix: Ge(u,
|
979
|
-
sufix: Ge(p,
|
978
|
+
prefix: Ge(u, N, "prefix"),
|
979
|
+
sufix: Ge(p, N, "sufix"),
|
980
980
|
LeftIcon: o,
|
981
981
|
RightIcon: y,
|
982
|
-
disabled:
|
982
|
+
disabled: T,
|
983
983
|
readOnly: k,
|
984
984
|
onFocus: b,
|
985
985
|
onBlur: O,
|
@@ -987,10 +987,10 @@ function Mn(n, t) {
|
|
987
987
|
style: W,
|
988
988
|
max: w,
|
989
989
|
onChange: C,
|
990
|
-
showCents:
|
990
|
+
showCents: _,
|
991
991
|
loadingPosition: z,
|
992
|
-
iconSize:
|
993
|
-
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size:
|
992
|
+
iconSize: N,
|
993
|
+
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: N, strokeWidth: 2.5 }),
|
994
994
|
...H
|
995
995
|
};
|
996
996
|
}
|
@@ -1021,13 +1021,13 @@ function Bn(n) {
|
|
1021
1021
|
}
|
1022
1022
|
function Un(n) {
|
1023
1023
|
const [t, a] = De(!1), [s, l] = De(n.defaultValue || 0), c = at(null), { inputRef: h, id: u, error: p } = Ke(), o = h || c, y = n.isError || !!p, {
|
1024
|
-
disabled:
|
1024
|
+
disabled: T,
|
1025
1025
|
title: k,
|
1026
1026
|
style: b,
|
1027
1027
|
className: O,
|
1028
1028
|
prefix: P,
|
1029
1029
|
sufix: W,
|
1030
|
-
iconSize:
|
1030
|
+
iconSize: _,
|
1031
1031
|
loadingPosition: w,
|
1032
1032
|
isLoading: C,
|
1033
1033
|
LeftIcon: H,
|
@@ -1039,15 +1039,15 @@ function Un(n) {
|
|
1039
1039
|
value: V,
|
1040
1040
|
max: F,
|
1041
1041
|
onKeyDown: te,
|
1042
|
-
onChange:
|
1042
|
+
onChange: N,
|
1043
1043
|
showCents: R,
|
1044
1044
|
...B
|
1045
1045
|
} = Mn({ ...n, id: u, isError: y }, t), K = H && !C, ue = Q && !C, ee = w === "left" && C, se = w === "right" && C;
|
1046
1046
|
function G() {
|
1047
|
-
|
1047
|
+
T || !(o != null && o.current) || (a(!0), o.current.focus());
|
1048
1048
|
}
|
1049
1049
|
function D(I) {
|
1050
|
-
Bn({ currencyValue: s, event: I, max: F, setCurrencyValue: l }),
|
1050
|
+
Bn({ currencyValue: s, event: I, max: F, setCurrencyValue: l }), N && N(s), te && te(I);
|
1051
1051
|
}
|
1052
1052
|
function x(I) {
|
1053
1053
|
a(!0), J && J(I);
|
@@ -1065,13 +1065,13 @@ function Un(n) {
|
|
1065
1065
|
children: [
|
1066
1066
|
P,
|
1067
1067
|
ee && re,
|
1068
|
-
K && /* @__PURE__ */ m.jsx(H, { size:
|
1068
|
+
K && /* @__PURE__ */ m.jsx(H, { size: _, strokeWidth: 2.5 }),
|
1069
1069
|
/* @__PURE__ */ m.jsx(
|
1070
1070
|
"input",
|
1071
1071
|
{
|
1072
1072
|
value: Fn(V || s, R),
|
1073
1073
|
onKeyDown: D,
|
1074
|
-
disabled:
|
1074
|
+
disabled: T || C,
|
1075
1075
|
readOnly: z,
|
1076
1076
|
ref: o,
|
1077
1077
|
onFocus: x,
|
@@ -1082,7 +1082,7 @@ function Un(n) {
|
|
1082
1082
|
}
|
1083
1083
|
),
|
1084
1084
|
se && re,
|
1085
|
-
ue && /* @__PURE__ */ m.jsx(Q, { size:
|
1085
|
+
ue && /* @__PURE__ */ m.jsx(Q, { size: _, strokeWidth: 2.5 }),
|
1086
1086
|
W
|
1087
1087
|
]
|
1088
1088
|
}
|
@@ -1099,50 +1099,50 @@ function Wn(n, t) {
|
|
1099
1099
|
sufix: p,
|
1100
1100
|
leftIcon: o,
|
1101
1101
|
rightIcon: y,
|
1102
|
-
disabled:
|
1102
|
+
disabled: T,
|
1103
1103
|
readOnly: k,
|
1104
1104
|
onFocus: b,
|
1105
1105
|
onBlur: O,
|
1106
1106
|
title: P,
|
1107
1107
|
style: W,
|
1108
|
-
onChange:
|
1108
|
+
onChange: _,
|
1109
1109
|
showMask: w = !1,
|
1110
1110
|
type: C,
|
1111
1111
|
...H
|
1112
|
-
} = n, z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${
|
1112
|
+
} = n, z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, N = { md: 20, lg: 20 }[l];
|
1113
1113
|
return {
|
1114
1114
|
isLoading: a,
|
1115
1115
|
className: F,
|
1116
|
-
prefix: Ge(u,
|
1117
|
-
sufix: Ge(p,
|
1116
|
+
prefix: Ge(u, N, "prefix"),
|
1117
|
+
sufix: Ge(p, N, "sufix"),
|
1118
1118
|
LeftIcon: o,
|
1119
1119
|
RightIcon: y,
|
1120
|
-
disabled:
|
1120
|
+
disabled: T,
|
1121
1121
|
readOnly: k,
|
1122
1122
|
onFocus: b,
|
1123
1123
|
onBlur: O,
|
1124
1124
|
title: P,
|
1125
1125
|
style: W,
|
1126
|
-
onChange:
|
1126
|
+
onChange: _,
|
1127
1127
|
loadingPosition: z,
|
1128
|
-
iconSize:
|
1128
|
+
iconSize: N,
|
1129
1129
|
showMask: w,
|
1130
|
-
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size:
|
1130
|
+
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: N, strokeWidth: 2.5 }),
|
1131
1131
|
...H
|
1132
1132
|
};
|
1133
1133
|
}
|
1134
|
-
const Hn =
|
1134
|
+
const Hn = Sn((n, t) => /* @__PURE__ */ m.jsx("input", { ref: t, ...n }));
|
1135
1135
|
function Yn(n) {
|
1136
1136
|
const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
|
1137
1137
|
disabled: o,
|
1138
1138
|
title: y,
|
1139
|
-
style:
|
1139
|
+
style: T,
|
1140
1140
|
className: k,
|
1141
1141
|
prefix: b,
|
1142
1142
|
sufix: O,
|
1143
1143
|
iconSize: P,
|
1144
1144
|
loadingPosition: W,
|
1145
|
-
isLoading:
|
1145
|
+
isLoading: _,
|
1146
1146
|
LeftIcon: w,
|
1147
1147
|
readOnly: C,
|
1148
1148
|
onFocus: H,
|
@@ -1150,8 +1150,8 @@ function Yn(n) {
|
|
1150
1150
|
RightIcon: J,
|
1151
1151
|
Spinner: X,
|
1152
1152
|
...Q
|
1153
|
-
} = Wn({ ...n, id: c, isError: p }, t), re = w && !
|
1154
|
-
function
|
1153
|
+
} = Wn({ ...n, id: c, isError: p }, t), re = w && !_, V = J && !_, F = W === "left" && _, te = W === "right" && _;
|
1154
|
+
function N() {
|
1155
1155
|
o || !(u != null && u.current) || (a(!0), u.current.focus());
|
1156
1156
|
}
|
1157
1157
|
function R(K) {
|
@@ -1164,8 +1164,8 @@ function Yn(n) {
|
|
1164
1164
|
"section",
|
1165
1165
|
{
|
1166
1166
|
title: y,
|
1167
|
-
style:
|
1168
|
-
onClick:
|
1167
|
+
style: T,
|
1168
|
+
onClick: N,
|
1169
1169
|
className: k,
|
1170
1170
|
children: [
|
1171
1171
|
b,
|
@@ -1199,15 +1199,15 @@ function Vn(n, t) {
|
|
1199
1199
|
sufix: p,
|
1200
1200
|
leftIcon: o,
|
1201
1201
|
rightIcon: y,
|
1202
|
-
disabled:
|
1202
|
+
disabled: T,
|
1203
1203
|
readOnly: k,
|
1204
1204
|
onFocus: b,
|
1205
1205
|
onBlur: O,
|
1206
1206
|
title: P,
|
1207
1207
|
style: W,
|
1208
|
-
onChange:
|
1208
|
+
onChange: _,
|
1209
1209
|
...w
|
1210
|
-
} = n, C = y ? "right" : "left", re = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${
|
1210
|
+
} = n, C = y ? "right" : "left", re = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, F = { md: 20, lg: 20 }[l];
|
1211
1211
|
return {
|
1212
1212
|
isLoading: a,
|
1213
1213
|
className: re,
|
@@ -1215,13 +1215,13 @@ function Vn(n, t) {
|
|
1215
1215
|
sufix: Ge(p, F, "sufix"),
|
1216
1216
|
LeftIcon: o,
|
1217
1217
|
RightIcon: y,
|
1218
|
-
disabled:
|
1218
|
+
disabled: T,
|
1219
1219
|
readOnly: k,
|
1220
1220
|
onFocus: b,
|
1221
1221
|
onBlur: O,
|
1222
1222
|
title: P,
|
1223
1223
|
style: W,
|
1224
|
-
onChange:
|
1224
|
+
onChange: _,
|
1225
1225
|
loadingPosition: C,
|
1226
1226
|
iconSize: F,
|
1227
1227
|
Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: F, strokeWidth: 2.5 }),
|
@@ -1232,13 +1232,13 @@ function Gn(n) {
|
|
1232
1232
|
const [t, a] = De(!1), s = at(null), { inputRef: l, id: c, error: h } = Ke(), u = l || s, p = n.isError || !!h, {
|
1233
1233
|
disabled: o,
|
1234
1234
|
title: y,
|
1235
|
-
style:
|
1235
|
+
style: T,
|
1236
1236
|
className: k,
|
1237
1237
|
prefix: b,
|
1238
1238
|
sufix: O,
|
1239
1239
|
iconSize: P,
|
1240
1240
|
loadingPosition: W,
|
1241
|
-
isLoading:
|
1241
|
+
isLoading: _,
|
1242
1242
|
LeftIcon: w,
|
1243
1243
|
readOnly: C,
|
1244
1244
|
onFocus: H,
|
@@ -1246,8 +1246,8 @@ function Gn(n) {
|
|
1246
1246
|
RightIcon: J,
|
1247
1247
|
Spinner: X,
|
1248
1248
|
...Q
|
1249
|
-
} = Vn({ ...n, id: c, isError: p }, t), re = w && !
|
1250
|
-
function
|
1249
|
+
} = Vn({ ...n, id: c, isError: p }, t), re = w && !_, V = J && !_, F = W === "left" && _, te = W === "right" && _;
|
1250
|
+
function N() {
|
1251
1251
|
o || !(u != null && u.current) || (a(!0), u.current.focus());
|
1252
1252
|
}
|
1253
1253
|
function R(K) {
|
@@ -1260,8 +1260,8 @@ function Gn(n) {
|
|
1260
1260
|
"section",
|
1261
1261
|
{
|
1262
1262
|
title: y,
|
1263
|
-
style:
|
1264
|
-
onClick:
|
1263
|
+
style: T,
|
1264
|
+
onClick: N,
|
1265
1265
|
className: k,
|
1266
1266
|
children: [
|
1267
1267
|
b,
|
@@ -1270,7 +1270,7 @@ function Gn(n) {
|
|
1270
1270
|
/* @__PURE__ */ m.jsx(
|
1271
1271
|
"input",
|
1272
1272
|
{
|
1273
|
-
disabled: o ||
|
1273
|
+
disabled: o || _,
|
1274
1274
|
readOnly: C,
|
1275
1275
|
ref: u,
|
1276
1276
|
onFocus: R,
|
@@ -1307,7 +1307,7 @@ function Xn(n, t) {
|
|
1307
1307
|
leftIcon: p,
|
1308
1308
|
disabled: o,
|
1309
1309
|
readOnly: y,
|
1310
|
-
onFocus:
|
1310
|
+
onFocus: T,
|
1311
1311
|
onBlur: k,
|
1312
1312
|
title: b,
|
1313
1313
|
style: O,
|
@@ -1321,7 +1321,7 @@ function Xn(n, t) {
|
|
1321
1321
|
LeftIcon: p,
|
1322
1322
|
disabled: o,
|
1323
1323
|
readOnly: y,
|
1324
|
-
onFocus:
|
1324
|
+
onFocus: T,
|
1325
1325
|
onBlur: k,
|
1326
1326
|
title: b,
|
1327
1327
|
style: O,
|
@@ -1336,13 +1336,13 @@ function oa(n) {
|
|
1336
1336
|
const [t, a] = De(!1), { inputRef: s, id: l, error: c } = Ke(), h = at(null), u = s || h, p = n.isError || !!c, {
|
1337
1337
|
disabled: o,
|
1338
1338
|
title: y,
|
1339
|
-
style:
|
1339
|
+
style: T,
|
1340
1340
|
className: k,
|
1341
1341
|
prefix: b,
|
1342
1342
|
iconSize: O,
|
1343
1343
|
isLoading: P,
|
1344
1344
|
LeftIcon: W,
|
1345
|
-
value:
|
1345
|
+
value: _ = null,
|
1346
1346
|
defaultValue: w = "",
|
1347
1347
|
readOnly: C,
|
1348
1348
|
onFocus: H,
|
@@ -1354,7 +1354,7 @@ function oa(n) {
|
|
1354
1354
|
onSelect: V,
|
1355
1355
|
options: F,
|
1356
1356
|
optionMaxHeight: te,
|
1357
|
-
...
|
1357
|
+
...N
|
1358
1358
|
} = Xn({ ...n, id: l, isError: p }, t), [R, B] = De(w), [K, ue] = De("");
|
1359
1359
|
function ee() {
|
1360
1360
|
o || !(u != null && u.current) || (a(!0), u.current.focus());
|
@@ -1365,7 +1365,7 @@ function oa(n) {
|
|
1365
1365
|
function G() {
|
1366
1366
|
a(!1), z && u.current && u.current.blur();
|
1367
1367
|
}
|
1368
|
-
const D = typeof
|
1368
|
+
const D = typeof _ == "string" ? _ : R, x = ((ce = F.find((M) => M.value === D)) == null ? void 0 : ce.label) || "", U = () => {
|
1369
1369
|
if (Q) {
|
1370
1370
|
if (!t && x)
|
1371
1371
|
return !0;
|
@@ -1388,7 +1388,7 @@ function oa(n) {
|
|
1388
1388
|
"section",
|
1389
1389
|
{
|
1390
1390
|
title: y,
|
1391
|
-
style:
|
1391
|
+
style: T,
|
1392
1392
|
onClick: ee,
|
1393
1393
|
className: `${k} placeholder_dark_${U()}`,
|
1394
1394
|
children: [
|
@@ -1404,7 +1404,7 @@ function oa(n) {
|
|
1404
1404
|
ref: u,
|
1405
1405
|
onFocus: se,
|
1406
1406
|
onBlur: () => ue(""),
|
1407
|
-
...
|
1407
|
+
...N,
|
1408
1408
|
onChange: (M) => ue(M.target.value)
|
1409
1409
|
}
|
1410
1410
|
),
|
@@ -1425,7 +1425,7 @@ function oa(n) {
|
|
1425
1425
|
children: [
|
1426
1426
|
M,
|
1427
1427
|
" ",
|
1428
|
-
/* @__PURE__ */ m.jsx(
|
1428
|
+
/* @__PURE__ */ m.jsx(sn, {})
|
1429
1429
|
]
|
1430
1430
|
},
|
1431
1431
|
pe
|
@@ -1454,7 +1454,7 @@ function qn(n) {
|
|
1454
1454
|
return { className: `arkyn_breadcrumb ${t}`.trim(), ...a };
|
1455
1455
|
}
|
1456
1456
|
function Jn(n) {
|
1457
|
-
const { pathname: t } =
|
1457
|
+
const { pathname: t } = cn(), {
|
1458
1458
|
className: a = "",
|
1459
1459
|
disabled: s = !1,
|
1460
1460
|
to: l,
|
@@ -1481,7 +1481,7 @@ function ia(n) {
|
|
1481
1481
|
t
|
1482
1482
|
] });
|
1483
1483
|
}
|
1484
|
-
const
|
1484
|
+
const pn = Ct({});
|
1485
1485
|
function Zn(n) {
|
1486
1486
|
const {
|
1487
1487
|
isVisibled: t,
|
@@ -1490,7 +1490,7 @@ function Zn(n) {
|
|
1490
1490
|
className: l = "",
|
1491
1491
|
...c
|
1492
1492
|
} = n, u = `arkyn_modal_container ${t ? "visible" : ""} ${l}`;
|
1493
|
-
return /* @__PURE__ */ m.jsx(
|
1493
|
+
return /* @__PURE__ */ m.jsx(pn.Provider, { value: { makeInvisible: a }, children: /* @__PURE__ */ m.jsx(Cn, { children: t && /* @__PURE__ */ m.jsxs("aside", { className: u.trim(), ...c, children: [
|
1494
1494
|
/* @__PURE__ */ m.jsx(
|
1495
1495
|
Yt.div,
|
1496
1496
|
{
|
@@ -1520,7 +1520,7 @@ function Qn(n) {
|
|
1520
1520
|
return /* @__PURE__ */ m.jsx("footer", { className: l.trim(), ...s });
|
1521
1521
|
}
|
1522
1522
|
function er(n) {
|
1523
|
-
const { showCloseButton: t, className: a, children: s, ...l } = n, { makeInvisible: c } = gt(
|
1523
|
+
const { showCloseButton: t, className: a, children: s, ...l } = n, { makeInvisible: c } = gt(pn), u = `arkyn_modal_header ${t ? "show-close" : ""} ${a}`;
|
1524
1524
|
return /* @__PURE__ */ m.jsxs("header", { className: u.trim(), ...l, children: [
|
1525
1525
|
s,
|
1526
1526
|
/* @__PURE__ */ m.jsx("button", { type: "button", onClick: c, children: /* @__PURE__ */ m.jsx(_n, { size: 24 }) })
|
@@ -1550,8 +1550,8 @@ function ca(n) {
|
|
1550
1550
|
}
|
1551
1551
|
const Wt = Ct({});
|
1552
1552
|
function ua() {
|
1553
|
-
const n =
|
1554
|
-
|
1553
|
+
const n = ln(), { closeModal: t } = gt(Wt);
|
1554
|
+
on(() => {
|
1555
1555
|
const a = n == null ? void 0 : n.closeModalKey;
|
1556
1556
|
a && t(a);
|
1557
1557
|
}, [n]);
|
@@ -1572,7 +1572,7 @@ function da(n) {
|
|
1572
1572
|
return t;
|
1573
1573
|
}
|
1574
1574
|
function fa(n = "") {
|
1575
|
-
const t =
|
1575
|
+
const t = cn(), a = new URLSearchParams(t.search), s = n ? `${n}:` : "", l = (c) => {
|
1576
1576
|
Object.entries(c).forEach(([h, u]) => {
|
1577
1577
|
u === void 0 ? a.delete(`${s}${h}`) : a.set(`${s}${h}`, String(u));
|
1578
1578
|
});
|
@@ -1586,15 +1586,18 @@ function fa(n = "") {
|
|
1586
1586
|
}
|
1587
1587
|
};
|
1588
1588
|
}
|
1589
|
-
const
|
1589
|
+
const hn = Ct({});
|
1590
1590
|
function ma() {
|
1591
|
-
const n = gt(
|
1591
|
+
const n = gt(hn);
|
1592
1592
|
if (Object.entries(n).length === 0)
|
1593
1593
|
throw new Error("useToast must be used within a Provider");
|
1594
1594
|
return n;
|
1595
1595
|
}
|
1596
1596
|
function pa(n) {
|
1597
1597
|
const { children: t = !1 } = n, [a, s] = De([]);
|
1598
|
+
on(() => {
|
1599
|
+
console.log(a);
|
1600
|
+
}, a);
|
1598
1601
|
function l(p) {
|
1599
1602
|
return !!a.some((o) => o.key === p);
|
1600
1603
|
}
|
@@ -1603,7 +1606,8 @@ function pa(n) {
|
|
1603
1606
|
return (o = a.find((y) => y.key === p)) == null ? void 0 : o.data;
|
1604
1607
|
}
|
1605
1608
|
function h(p, o) {
|
1606
|
-
|
1609
|
+
const y = l(p);
|
1610
|
+
s(y ? (T) => [...T.filter((b) => b.key !== p), { key: p, data: o }] : [...a, { key: p, data: o }]);
|
1607
1611
|
}
|
1608
1612
|
function u(p) {
|
1609
1613
|
s(a.filter((o) => o.key !== p));
|
@@ -1616,7 +1620,7 @@ function pa(n) {
|
|
1616
1620
|
}
|
1617
1621
|
);
|
1618
1622
|
}
|
1619
|
-
var { entries:
|
1623
|
+
var { entries: gn, setPrototypeOf: qt, isFrozen: tr, getPrototypeOf: nr, getOwnPropertyDescriptor: rr } = Object, { freeze: xe, seal: Re, create: vn } = Object, { apply: zt, construct: $t } = typeof Reflect < "u" && Reflect;
|
1620
1624
|
xe || (xe = function(n) {
|
1621
1625
|
return n;
|
1622
1626
|
});
|
@@ -1664,8 +1668,8 @@ function ir(n) {
|
|
1664
1668
|
return n;
|
1665
1669
|
}
|
1666
1670
|
function Ze(n) {
|
1667
|
-
let t =
|
1668
|
-
for (let [a, s] of
|
1671
|
+
let t = vn(null);
|
1672
|
+
for (let [a, s] of gn(n))
|
1669
1673
|
Pe(n, a) && (Array.isArray(s) ? t[a] = ir(s) : s && typeof s == "object" && s.constructor === Object ? t[a] = Ze(s) : t[a] = s);
|
1670
1674
|
return t;
|
1671
1675
|
}
|
@@ -1685,7 +1689,7 @@ function Et(n, t) {
|
|
1685
1689
|
}
|
1686
1690
|
return a;
|
1687
1691
|
}
|
1688
|
-
var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ot = xe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = xe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), lr = xe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jt = xe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), cr = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), en = xe(["#text"]), tn = xe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Dt = xe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), nn = xe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), St = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ur = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), dr = Re(/<%[\w\W]*|[\w\W]*%>/gm), fr = Re(/\${[\w\W]*}/gm), mr = Re(/^data-[\-\w.\u00B7-\uFFFF]/), pr = Re(/^aria-[\-\w]+$/),
|
1692
|
+
var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ot = xe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = xe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), lr = xe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jt = xe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), cr = xe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), en = xe(["#text"]), tn = xe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), Dt = xe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), nn = xe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), St = xe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ur = Re(/\{\{[\w\W]*|[\w\W]*\}\}/gm), dr = Re(/<%[\w\W]*|[\w\W]*%>/gm), fr = Re(/\${[\w\W]*}/gm), mr = Re(/^data-[\-\w.\u00B7-\uFFFF]/), pr = Re(/^aria-[\-\w]+$/), yn = Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), hr = Re(/^(?:\w+script|data):/i), gr = Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), bn = Re(/^html$/i), vr = Re(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i), rn = Object.freeze({ __proto__: null, MUSTACHE_EXPR: ur, ERB_EXPR: dr, TMPLIT_EXPR: fr, DATA_ATTR: mr, ARIA_ATTR: pr, IS_ALLOWED_URI: yn, IS_SCRIPT_OR_DATA: hr, ATTR_WHITESPACE: gr, DOCTYPE_NAME: bn, CUSTOM_ELEMENT: vr }), yr = function() {
|
1689
1693
|
return typeof window > "u" ? null : window;
|
1690
1694
|
}, br = function(n, t) {
|
1691
1695
|
if (typeof n != "object" || typeof n.createPolicy != "function")
|
@@ -1703,23 +1707,23 @@ var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud
|
|
1703
1707
|
return console.warn("TrustedTypes policy " + l + " could not be created."), null;
|
1704
1708
|
}
|
1705
1709
|
};
|
1706
|
-
function
|
1707
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) =>
|
1710
|
+
function xn() {
|
1711
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) => xn(e);
|
1708
1712
|
if (t.version = "3.0.10", t.removed = [], !n || !n.document || n.document.nodeType !== 9)
|
1709
1713
|
return t.isSupported = !1, t;
|
1710
|
-
let { document: a } = n, s = a, l = s.currentScript, { DocumentFragment: c, HTMLTemplateElement: h, Node: u, Element: p, NodeFilter: o, NamedNodeMap: y = n.NamedNodeMap || n.MozNamedAttrMap, HTMLFormElement:
|
1714
|
+
let { document: a } = n, s = a, l = s.currentScript, { DocumentFragment: c, HTMLTemplateElement: h, Node: u, Element: p, NodeFilter: o, NamedNodeMap: y = n.NamedNodeMap || n.MozNamedAttrMap, HTMLFormElement: T, DOMParser: k, trustedTypes: b } = n, O = p.prototype, P = Et(O, "cloneNode"), W = Et(O, "nextSibling"), _ = Et(O, "childNodes"), w = Et(O, "parentNode");
|
1711
1715
|
if (typeof h == "function") {
|
1712
1716
|
let e = a.createElement("template");
|
1713
1717
|
e.content && e.content.ownerDocument && (a = e.content.ownerDocument);
|
1714
1718
|
}
|
1715
1719
|
let C, H = "", { implementation: z, createNodeIterator: J, createDocumentFragment: X, getElementsByTagName: Q } = a, { importNode: re } = s, V = {};
|
1716
|
-
t.isSupported = typeof
|
1717
|
-
let { MUSTACHE_EXPR: F, ERB_EXPR: te, TMPLIT_EXPR:
|
1720
|
+
t.isSupported = typeof gn == "function" && typeof w == "function" && z && z.createHTMLDocument !== void 0;
|
1721
|
+
let { MUSTACHE_EXPR: F, ERB_EXPR: te, TMPLIT_EXPR: N, DATA_ATTR: R, ARIA_ATTR: B, IS_SCRIPT_OR_DATA: K, ATTR_WHITESPACE: ue, CUSTOM_ELEMENT: ee } = rn, { IS_ALLOWED_URI: se } = rn, G = null, D = $({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, U = $({}, [...tn, ...Dt, ...nn, ...St]), I = Object.seal(vn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), ce = null, M = null, pe = !0, ve = !0, Ie = !1, we = !0, Ae = !1, fe = !1, Xe = !1, qe = !1, ae = !1, me = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = $({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, Me = $({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml", ze = le, Ye = !1, E = null, oe = $({}, [Fe, Ce, le], Lt), Z = null, Ee = ["application/xhtml+xml", "text/html"], he = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(e) {
|
1718
1722
|
return e instanceof RegExp || e instanceof Function;
|
1719
1723
|
}, tt = function() {
|
1720
1724
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1721
1725
|
if (!(be && be === e)) {
|
1722
|
-
if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Z = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? he : e.PARSER_MEDIA_TYPE, ne = Z === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? $({}, e.ALLOWED_TAGS, ne) : D, x = Pe(e, "ALLOWED_ATTR") ? $({}, e.ALLOWED_ATTR, ne) : U, E = Pe(e, "ALLOWED_NAMESPACES") ? $({}, e.ALLOWED_NAMESPACES, Lt) : oe, We = Pe(e, "ADD_URI_SAFE_ATTR") ? $(Ze(He), e.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? $(Ze(Me), e.ADD_DATA_URI_TAGS, ne) : Me, Le = Pe(e, "FORBID_CONTENTS") ? $({}, e.FORBID_CONTENTS, ne) : ke, ce = Pe(e, "FORBID_TAGS") ? $({}, e.FORBID_TAGS, ne) : {}, M = Pe(e, "FORBID_ATTR") ? $({}, e.FORBID_ATTR, ne) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, pe = e.ALLOW_ARIA_ATTR !== !1, ve = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, fe = e.WHOLE_DOCUMENT || !1, ae = e.RETURN_DOM || !1, me = e.RETURN_DOM_FRAGMENT || !1, $e = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Ne = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Se = e.IN_PLACE || !1, se = e.ALLOWED_URI_REGEXP ||
|
1726
|
+
if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Z = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? he : e.PARSER_MEDIA_TYPE, ne = Z === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? $({}, e.ALLOWED_TAGS, ne) : D, x = Pe(e, "ALLOWED_ATTR") ? $({}, e.ALLOWED_ATTR, ne) : U, E = Pe(e, "ALLOWED_NAMESPACES") ? $({}, e.ALLOWED_NAMESPACES, Lt) : oe, We = Pe(e, "ADD_URI_SAFE_ATTR") ? $(Ze(He), e.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? $(Ze(Me), e.ADD_DATA_URI_TAGS, ne) : Me, Le = Pe(e, "FORBID_CONTENTS") ? $({}, e.FORBID_CONTENTS, ne) : ke, ce = Pe(e, "FORBID_TAGS") ? $({}, e.FORBID_TAGS, ne) : {}, M = Pe(e, "FORBID_ATTR") ? $({}, e.FORBID_ATTR, ne) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, pe = e.ALLOW_ARIA_ATTR !== !1, ve = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, fe = e.WHOLE_DOCUMENT || !1, ae = e.RETURN_DOM || !1, me = e.RETURN_DOM_FRAGMENT || !1, $e = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Ne = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Se = e.IN_PLACE || !1, se = e.ALLOWED_URI_REGEXP || yn, ze = e.NAMESPACE || le, I = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (ve = !1), me && (ae = !0), ye && (G = $({}, en), x = [], ye.html === !0 && ($(G, Qt), $(x, tn)), ye.svg === !0 && ($(G, Ot), $(x, Dt), $(x, St)), ye.svgFilters === !0 && ($(G, Pt), $(x, Dt), $(x, St)), ye.mathMl === !0 && ($(G, jt), $(x, nn), $(x, St))), e.ADD_TAGS && (G === D && (G = Ze(G)), $(G, e.ADD_TAGS, ne)), e.ADD_ATTR && (x === U && (x = Ze(x)), $(x, e.ADD_ATTR, ne)), e.ADD_URI_SAFE_ATTR && $(We, e.ADD_URI_SAFE_ATTR, ne), e.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), $(Le, e.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), fe && $(G, ["html", "head", "body"]), G.table && ($(G, ["tbody"]), delete ce.tbody), e.TRUSTED_TYPES_POLICY) {
|
1723
1727
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
1724
1728
|
throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
1725
1729
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -1785,7 +1789,7 @@ function bn() {
|
|
1785
1789
|
}, yt = function(e) {
|
1786
1790
|
return J.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
|
1787
1791
|
}, At = function(e) {
|
1788
|
-
return e instanceof
|
1792
|
+
return e instanceof T && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof y) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
1789
1793
|
}, bt = function(e) {
|
1790
1794
|
return typeof u == "function" && e instanceof u;
|
1791
1795
|
}, Oe = function(e, f, i) {
|
@@ -1803,7 +1807,7 @@ function bn() {
|
|
1803
1807
|
if (!ce[i] && g(i) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i)))
|
1804
1808
|
return !1;
|
1805
1809
|
if (Be && !Le[i]) {
|
1806
|
-
let A = w(e) || e.parentNode, j =
|
1810
|
+
let A = w(e) || e.parentNode, j = _(e) || e.childNodes;
|
1807
1811
|
if (j && A) {
|
1808
1812
|
let L = j.length;
|
1809
1813
|
for (let ie = L - 1; ie >= 0; --ie)
|
@@ -1812,7 +1816,7 @@ function bn() {
|
|
1812
1816
|
}
|
1813
1817
|
return Ve(e), !0;
|
1814
1818
|
}
|
1815
|
-
return e instanceof p && !It(e) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Ve(e), !0) : (Ae && e.nodeType === 3 && (f = e.textContent, wt([F, te,
|
1819
|
+
return e instanceof p && !It(e) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Ve(e), !0) : (Ae && e.nodeType === 3 && (f = e.textContent, wt([F, te, N], (A) => {
|
1816
1820
|
f = pt(f, A, " ");
|
1817
1821
|
}), e.textContent !== f && (mt(t.removed, { element: e.cloneNode() }), e.textContent = f)), Oe("afterSanitizeElements", e, null), !1);
|
1818
1822
|
}, d = function(e, f, i) {
|
@@ -1842,7 +1846,7 @@ function bn() {
|
|
1842
1846
|
nt(L, e);
|
1843
1847
|
continue;
|
1844
1848
|
}
|
1845
|
-
Ae && wt([F, te,
|
1849
|
+
Ae && wt([F, te, N], (xt) => {
|
1846
1850
|
q = pt(q, xt, " ");
|
1847
1851
|
});
|
1848
1852
|
let rt = ne(e.nodeName);
|
@@ -1910,8 +1914,8 @@ function bn() {
|
|
1910
1914
|
return (x.shadowroot || x.shadowrootmode) && (L = re.call(s, L, !0)), L;
|
1911
1915
|
}
|
1912
1916
|
let ge = fe ? i.outerHTML : i.innerHTML;
|
1913
|
-
return fe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(
|
1914
|
-
` + ge), Ae && wt([F, te,
|
1917
|
+
return fe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(bn, i.ownerDocument.doctype.name) && (ge = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
|
1918
|
+
` + ge), Ae && wt([F, te, N], (de) => {
|
1915
1919
|
ge = pt(ge, de, " ");
|
1916
1920
|
}), C && $e ? C.createHTML(ge) : ge;
|
1917
1921
|
}, t.setConfig = function() {
|
@@ -1934,7 +1938,7 @@ function bn() {
|
|
1934
1938
|
V = {};
|
1935
1939
|
}, t;
|
1936
1940
|
}
|
1937
|
-
var xr =
|
1941
|
+
var xr = xn(), wr = (n) => {
|
1938
1942
|
switch (n) {
|
1939
1943
|
case "success":
|
1940
1944
|
return Tr;
|
@@ -2022,7 +2026,7 @@ function Fr(...n) {
|
|
2022
2026
|
}
|
2023
2027
|
var Br = (n) => {
|
2024
2028
|
var t, a, s, l, c, h, u;
|
2025
|
-
let { invert: p, toast: o, unstyled: y, interacting:
|
2029
|
+
let { invert: p, toast: o, unstyled: y, interacting: T, setHeights: k, visibleToasts: b, heights: O, index: P, toasts: W, expanded: _, removeToast: w, closeButton: C, style: H, cancelButtonStyle: z, actionButtonStyle: J, className: X = "", descriptionClassName: Q = "", duration: re, position: V, gap: F, loadingIcon: te, expandByDefault: N, classNames: R, icons: B, closeButtonAriaLabel: K = "Close toast", pauseWhenPageIsHidden: ue, cn: ee } = n, [se, G] = v.useState(!1), [D, x] = v.useState(!1), [U, I] = v.useState(!1), [ce, M] = v.useState(!1), [pe, ve] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), fe = v.useRef(null), Xe = P === 0, qe = P + 1 <= b, ae = o.type, me = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => O.findIndex((E) => E.toastId === o.id) || 0, [O, o.id]), ot = v.useMemo(() => {
|
2026
2030
|
var E;
|
2027
2031
|
return (E = o.closeButton) != null ? E : C;
|
2028
2032
|
}, [o.closeButton, C]), Be = v.useMemo(() => o.duration || re || jr, [o.duration, re]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, Me] = V.split("-"), We = v.useMemo(() => O.reduce((E, oe, Z) => Z >= Ne ? E : E + oe.height, 0), [O, Ne]), He = Cr(), Fe = o.invert || p, Ce = ae === "loading";
|
@@ -2045,7 +2049,7 @@ var Br = (n) => {
|
|
2045
2049
|
if (o.promise && ae === "loading" || o.duration === 1 / 0 || o.type === "loading")
|
2046
2050
|
return;
|
2047
2051
|
let E, oe = Be;
|
2048
|
-
return
|
2052
|
+
return _ || T || ue && He ? (() => {
|
2049
2053
|
if (Le.current < Se.current) {
|
2050
2054
|
let Z = (/* @__PURE__ */ new Date()).getTime() - Se.current;
|
2051
2055
|
oe = oe - Z;
|
@@ -2055,7 +2059,7 @@ var Br = (n) => {
|
|
2055
2059
|
var Z;
|
2056
2060
|
(Z = o.onAutoClose) == null || Z.call(o, o), le();
|
2057
2061
|
}, oe)), () => clearTimeout(E);
|
2058
|
-
}, [T, N,
|
2062
|
+
}, [_, T, N, o, Be, le, o.promise, ae, ue, He]), v.useEffect(() => {
|
2059
2063
|
let E = fe.current;
|
2060
2064
|
if (E) {
|
2061
2065
|
let oe = E.getBoundingClientRect().height;
|
@@ -2070,7 +2074,7 @@ var Br = (n) => {
|
|
2070
2074
|
function Ye(E) {
|
2071
2075
|
return { __html: xr.sanitize(E) };
|
2072
2076
|
}
|
2073
|
-
return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: fe, className: ee(X, $e, R == null ? void 0 : R.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[ae], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[ae]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": se, "data-promise": !!o.promise, "data-removed": D, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": P, "data-front": Xe, "data-swiping": U, "data-dismissible": me, "data-type": ae, "data-invert": Fe, "data-swipe-out": ce, "data-expanded": !!(
|
2077
|
+
return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: fe, className: ee(X, $e, R == null ? void 0 : R.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[ae], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[ae]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": se, "data-promise": !!o.promise, "data-removed": D, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": P, "data-front": Xe, "data-swiping": U, "data-dismissible": me, "data-type": ae, "data-invert": Fe, "data-swipe-out": ce, "data-expanded": !!(_ || N && se), style: { "--index": P, "--toasts-before": P, "--z-index": W.length - P, "--offset": `${D ? pe : ye.current}px`, "--initial-height": N ? "auto" : `${Ie}px`, ...H, ...o.style }, onPointerDown: (E) => {
|
2074
2078
|
Ce || !me || (Ae.current = /* @__PURE__ */ new Date(), ve(ye.current), E.target.setPointerCapture(E.pointerId), E.target.tagName !== "BUTTON" && (I(!0), ke.current = { x: E.clientX, y: E.clientY }));
|
2075
2079
|
}, onPointerUp: () => {
|
2076
2080
|
var E, oe, Z, Ee;
|
@@ -2106,7 +2110,7 @@ function an() {
|
|
2106
2110
|
return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
|
2107
2111
|
}
|
2108
2112
|
var Ur = (n) => {
|
2109
|
-
let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: c, className: h, offset: u, theme: p = "light", richColors: o, duration: y, style:
|
2113
|
+
let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: c, className: h, offset: u, theme: p = "light", richColors: o, duration: y, style: T, visibleToasts: k = Or, toastOptions: b, dir: O = an(), gap: P = Mr, loadingIcon: W, icons: _, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: C, cn: H = Fr } = n, [z, J] = v.useState([]), X = v.useMemo(() => Array.from(new Set([a].concat(z.filter((D) => D.position).map((D) => D.position)))), [z, a]), [Q, re] = v.useState([]), [V, F] = v.useState(!1), [te, N] = v.useState(!1), [R, B] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), K = v.useRef(null), ue = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = v.useRef(null), se = v.useRef(!1), G = v.useCallback((D) => J((x) => x.filter(({ id: U }) => U !== D.id)), []);
|
2110
2114
|
return v.useEffect(() => je.subscribe((D) => {
|
2111
2115
|
if (D.dismiss) {
|
2112
2116
|
J((x) => x.map((U) => U.id === D.id ? { ...U, delete: !0 } : U));
|
@@ -2144,17 +2148,17 @@ var Ur = (n) => {
|
|
2144
2148
|
}, [K.current]), z.length ? v.createElement("section", { "aria-label": `${w} ${ue}`, tabIndex: -1 }, X.map((D, x) => {
|
2145
2149
|
var U;
|
2146
2150
|
let [I, ce] = D.split("-");
|
2147
|
-
return v.createElement("ol", { key: D, dir: O === "auto" ? an() : O, tabIndex: -1, ref: K, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": I, "data-x-position": ce, style: { "--front-toast-height": `${((U = Q[0]) == null ? void 0 : U.height) || 0}px`, "--offset": typeof u == "number" ? `${u}px` : u || Pr, "--width": `${Dr}px`, "--gap": `${P}px`, ...
|
2151
|
+
return v.createElement("ol", { key: D, dir: O === "auto" ? an() : O, tabIndex: -1, ref: K, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": I, "data-x-position": ce, style: { "--front-toast-height": `${((U = Q[0]) == null ? void 0 : U.height) || 0}px`, "--offset": typeof u == "number" ? `${u}px` : u || Pr, "--width": `${Dr}px`, "--gap": `${P}px`, ...T }, onBlur: (M) => {
|
2148
2152
|
se.current && !M.currentTarget.contains(M.relatedTarget) && (se.current = !1, ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null));
|
2149
2153
|
}, onFocus: (M) => {
|
2150
2154
|
M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || se.current || (se.current = !0, ee.current = M.relatedTarget);
|
2151
2155
|
}, onMouseEnter: () => F(!0), onMouseMove: () => F(!0), onMouseLeave: () => {
|
2152
2156
|
te || F(!1);
|
2153
2157
|
}, onPointerDown: (M) => {
|
2154
|
-
M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" ||
|
2155
|
-
}, onPointerUp: () =>
|
2158
|
+
M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || N(!0);
|
2159
|
+
}, onPointerUp: () => N(!1) }, z.filter((M) => !M.position && x === 0 || M.position === D).map((M, pe) => {
|
2156
2160
|
var ve, Ie;
|
2157
|
-
return v.createElement(Br, { key: M.id, icons:
|
2161
|
+
return v.createElement(Br, { key: M.id, icons: _, index: pe, toast: M, duration: (ve = b == null ? void 0 : b.duration) != null ? ve : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: t, visibleToasts: k, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : c, interacting: te, position: D, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: z.filter((we) => we.position == M.position), heights: Q.filter((we) => we.position == M.position), setHeights: re, expandByDefault: l, gap: P, loadingIcon: W, expanded: V, pauseWhenPageIsHidden: C, cn: H });
|
2158
2162
|
}));
|
2159
2163
|
})) : null;
|
2160
2164
|
};
|
@@ -2177,7 +2181,7 @@ function ha({ children: n }) {
|
|
2177
2181
|
Tt.warning(c);
|
2178
2182
|
}
|
2179
2183
|
return /* @__PURE__ */ m.jsxs(
|
2180
|
-
|
2184
|
+
hn.Provider,
|
2181
2185
|
{
|
2182
2186
|
value: { errorToast: s, warningToast: l, successToast: t, infoToast: a },
|
2183
2187
|
children: [
|