@arkyn/components 1.3.4 → 1.3.6
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 wn, useContext as gt, useState as De, forwardRef as En, useEffect as Sn } from "react";
|
2
|
+
import { Loader2 as Qe, Check as on, ChevronDown as Tn, ChevronRight as Ht, X as _n } from "lucide-react";
|
3
|
+
import { useActionData as sn, useLocation as ln, 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";
|
@@ -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 = N(r), q = Object.keys(d).filter(function(
|
622
|
-
return
|
621
|
+
var de = N(r), q = Object.keys(d).filter(function(xn) {
|
622
|
+
return xn !== "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(": ..., ") + ": ...}" : "{}";
|
@@ -727,14 +727,14 @@ function Zr(n) {
|
|
727
727
|
] })
|
728
728
|
] });
|
729
729
|
}
|
730
|
-
const
|
730
|
+
const cn = Ct({});
|
731
731
|
function Qr({ children: n, ...t }) {
|
732
732
|
var u, p;
|
733
|
-
const a =
|
734
|
-
return /* @__PURE__ */ m.jsx(
|
733
|
+
const a = sn(), 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 = wn();
|
734
|
+
return /* @__PURE__ */ m.jsx(cn.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(cn);
|
738
738
|
}
|
739
739
|
function ea(n) {
|
740
740
|
const {
|
@@ -762,7 +762,7 @@ function ea(n) {
|
|
762
762
|
value: W ? p || "checked" : ""
|
763
763
|
}
|
764
764
|
),
|
765
|
-
/* @__PURE__ */ m.jsx(
|
765
|
+
/* @__PURE__ */ m.jsx(on, {})
|
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 un(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 dn(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
|
+
}, fn = Bt(Ut.CNPJ).length;
|
837
837
|
function jn(n, t) {
|
838
838
|
const {
|
839
839
|
isLoading: a,
|
@@ -857,9 +857,9 @@ function jn(n, t) {
|
|
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 = dn(B);
|
861
|
+
if (!(B.length > fn))
|
862
|
+
return B = un(B, Ut[K]), B;
|
863
863
|
}
|
864
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 {
|
@@ -910,8 +910,8 @@ function Dn(n) {
|
|
910
910
|
}
|
911
911
|
function se(x) {
|
912
912
|
let U = Bt(x.target.value);
|
913
|
-
const I =
|
914
|
-
U.length >
|
913
|
+
const I = dn(U);
|
914
|
+
U.length > fn || (U = un(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);
|
@@ -1131,7 +1131,7 @@ function Wn(n, t) {
|
|
1131
1131
|
...H
|
1132
1132
|
};
|
1133
1133
|
}
|
1134
|
-
const Hn =
|
1134
|
+
const Hn = En((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,
|
@@ -1425,7 +1425,7 @@ function oa(n) {
|
|
1425
1425
|
children: [
|
1426
1426
|
M,
|
1427
1427
|
" ",
|
1428
|
-
/* @__PURE__ */ m.jsx(
|
1428
|
+
/* @__PURE__ */ m.jsx(on, {})
|
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 } = ln(), {
|
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 mn = 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(mn.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(mn), 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 = sn(), { closeModal: t } = gt(Wt);
|
1554
|
+
Sn(() => {
|
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 = ln(), 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,18 +1586,15 @@ function fa(n = "") {
|
|
1586
1586
|
}
|
1587
1587
|
};
|
1588
1588
|
}
|
1589
|
-
const
|
1589
|
+
const pn = Ct({});
|
1590
1590
|
function ma() {
|
1591
|
-
const n = gt(
|
1591
|
+
const n = gt(pn);
|
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);
|
1601
1598
|
function l(p) {
|
1602
1599
|
return !!a.some((o) => o.key === p);
|
1603
1600
|
}
|
@@ -1620,7 +1617,7 @@ function pa(n) {
|
|
1620
1617
|
}
|
1621
1618
|
);
|
1622
1619
|
}
|
1623
|
-
var { entries:
|
1620
|
+
var { entries: hn, setPrototypeOf: qt, isFrozen: tr, getPrototypeOf: nr, getOwnPropertyDescriptor: rr } = Object, { freeze: xe, seal: Re, create: gn } = Object, { apply: zt, construct: $t } = typeof Reflect < "u" && Reflect;
|
1624
1621
|
xe || (xe = function(n) {
|
1625
1622
|
return n;
|
1626
1623
|
});
|
@@ -1668,8 +1665,8 @@ function ir(n) {
|
|
1668
1665
|
return n;
|
1669
1666
|
}
|
1670
1667
|
function Ze(n) {
|
1671
|
-
let t =
|
1672
|
-
for (let [a, s] of
|
1668
|
+
let t = gn(null);
|
1669
|
+
for (let [a, s] of hn(n))
|
1673
1670
|
Pe(n, a) && (Array.isArray(s) ? t[a] = ir(s) : s && typeof s == "object" && s.constructor === Object ? t[a] = Ze(s) : t[a] = s);
|
1674
1671
|
return t;
|
1675
1672
|
}
|
@@ -1689,7 +1686,7 @@ function Et(n, t) {
|
|
1689
1686
|
}
|
1690
1687
|
return a;
|
1691
1688
|
}
|
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]+$/),
|
1689
|
+
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]+$/), vn = 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), yn = 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: vn, IS_SCRIPT_OR_DATA: hr, ATTR_WHITESPACE: gr, DOCTYPE_NAME: yn, CUSTOM_ELEMENT: vr }), yr = function() {
|
1693
1690
|
return typeof window > "u" ? null : window;
|
1694
1691
|
}, br = function(n, t) {
|
1695
1692
|
if (typeof n != "object" || typeof n.createPolicy != "function")
|
@@ -1707,8 +1704,8 @@ var Qt = xe(["a", "abbr", "acronym", "address", "area", "article", "aside", "aud
|
|
1707
1704
|
return console.warn("TrustedTypes policy " + l + " could not be created."), null;
|
1708
1705
|
}
|
1709
1706
|
};
|
1710
|
-
function
|
1711
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) =>
|
1707
|
+
function bn() {
|
1708
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : yr(), t = (e) => bn(e);
|
1712
1709
|
if (t.version = "3.0.10", t.removed = [], !n || !n.document || n.document.nodeType !== 9)
|
1713
1710
|
return t.isSupported = !1, t;
|
1714
1711
|
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");
|
@@ -1717,13 +1714,13 @@ function xn() {
|
|
1717
1714
|
e.content && e.content.ownerDocument && (a = e.content.ownerDocument);
|
1718
1715
|
}
|
1719
1716
|
let C, H = "", { implementation: z, createNodeIterator: J, createDocumentFragment: X, getElementsByTagName: Q } = a, { importNode: re } = s, V = {};
|
1720
|
-
t.isSupported = typeof
|
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(
|
1717
|
+
t.isSupported = typeof hn == "function" && typeof w == "function" && z && z.createHTMLDocument !== void 0;
|
1718
|
+
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(gn(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) {
|
1722
1719
|
return e instanceof RegExp || e instanceof Function;
|
1723
1720
|
}, tt = function() {
|
1724
1721
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1725
1722
|
if (!(be && be === e)) {
|
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 ||
|
1723
|
+
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 || vn, 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) {
|
1727
1724
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
1728
1725
|
throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
1729
1726
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -1914,7 +1911,7 @@ function xn() {
|
|
1914
1911
|
return (x.shadowroot || x.shadowrootmode) && (L = re.call(s, L, !0)), L;
|
1915
1912
|
}
|
1916
1913
|
let ge = fe ? i.outerHTML : i.innerHTML;
|
1917
|
-
return fe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(
|
1914
|
+
return fe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(yn, i.ownerDocument.doctype.name) && (ge = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
|
1918
1915
|
` + ge), Ae && wt([F, te, N], (de) => {
|
1919
1916
|
ge = pt(ge, de, " ");
|
1920
1917
|
}), C && $e ? C.createHTML(ge) : ge;
|
@@ -1938,7 +1935,7 @@ function xn() {
|
|
1938
1935
|
V = {};
|
1939
1936
|
}, t;
|
1940
1937
|
}
|
1941
|
-
var xr =
|
1938
|
+
var xr = bn(), wr = (n) => {
|
1942
1939
|
switch (n) {
|
1943
1940
|
case "success":
|
1944
1941
|
return Tr;
|
@@ -2181,7 +2178,7 @@ function ha({ children: n }) {
|
|
2181
2178
|
Tt.warning(c);
|
2182
2179
|
}
|
2183
2180
|
return /* @__PURE__ */ m.jsxs(
|
2184
|
-
|
2181
|
+
pn.Provider,
|
2185
2182
|
{
|
2186
2183
|
value: { errorToast: s, warningToast: l, successToast: t, infoToast: a },
|
2187
2184
|
children: [
|
package/dist/bundle.umd.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(V,
|
1
|
+
(function(V,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react"),require("lucide-react"),require("@remix-run/react"),require("@react-input/mask"),require("framer-motion"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","lucide-react","@remix-run/react","@react-input/mask","framer-motion","react-dom"],c):(V=typeof globalThis<"u"?globalThis:V||self,c(V["@arkyn/components"]={},V.i,V.lucideReact,V.react,V.mask,V.framerMotion,V._n))})(this,function(V,c,Te,at,pn,Nt,hn){"use strict";var kt={exports:{}},ot={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.min.js
|
4
4
|
*
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var Wt;function gn(){if(Wt)return ot;Wt=1;var n=
|
9
|
+
*/var Wt;function gn(){if(Wt)return ot;Wt=1;var n=c,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,u={key:!0,ref:!0,__self:!0,__source:!0};function g(d,h,o){var y,T={},N=null,b=null;o!==void 0&&(N=""+o),h.key!==void 0&&(N=""+h.key),h.ref!==void 0&&(b=h.ref);for(y in h)s.call(h,y)&&!u.hasOwnProperty(y)&&(T[y]=h[y]);if(d&&d.defaultProps)for(y in h=d.defaultProps,h)T[y]===void 0&&(T[y]=h[y]);return{$$typeof:t,type:d,key:N,ref:b,props:T,_owner:l.current}}return ot.Fragment=a,ot.jsx=g,ot.jsxs=g,ot}var st={};/**
|
10
10
|
* @license React
|
11
11
|
* react-jsx-runtime.development.js
|
12
12
|
*
|
@@ -14,7 +14,7 @@
|
|
14
14
|
*
|
15
15
|
* This source code is licensed under the MIT license found in the
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
17
|
-
*/var Ht;function vn(){return Ht||(Ht=1,process.env.NODE_ENV!=="production"&&function(){var n=
|
17
|
+
*/var Ht;function vn(){return Ht||(Ht=1,process.env.NODE_ENV!=="production"&&function(){var n=c,t=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),O=Symbol.iterator,P="@@iterator";function W(r){if(r===null||typeof r!="object")return null;var f=O&&r[O]||r[P];return typeof f=="function"?f:null}var _=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(r){{for(var f=arguments.length,v=new Array(f>1?f-1:0),S=1;S<f;S++)v[S-1]=arguments[S];k("error",r,v)}}function k(r,f,v){{var S=_.ReactDebugCurrentFrame,Y=S.getStackAddendum();Y!==""&&(f+="%s",v=v.concat([Y]));var e=v.map(function(m){return String(m)});e.unshift("Warning: "+f),Function.prototype.apply.call(console[r],console,e)}}var H=!1,$=!1,Z=!1,X=!1,ee=!1,ae;ae=Symbol.for("react.module.reference");function G(r){return!!(typeof r=="string"||typeof r=="function"||r===s||r===u||ee||r===l||r===o||r===y||X||r===b||H||$||Z||typeof r=="object"&&r!==null&&(r.$$typeof===N||r.$$typeof===T||r.$$typeof===g||r.$$typeof===d||r.$$typeof===h||r.$$typeof===ae||r.getModuleId!==void 0))}function F(r,f,v){var S=r.displayName;if(S)return S;var Y=f.displayName||f.name||"";return Y!==""?v+"("+Y+")":v}function ne(r){return r.displayName||"Context"}function C(r){if(r==null)return null;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")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case s:return"Fragment";case a:return"Portal";case u:return"Profiler";case l:return"StrictMode";case o:return"Suspense";case y:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case d:var f=r;return ne(f)+".Consumer";case g:var v=r;return ne(v._context)+".Provider";case h:return F(r,r.render,"ForwardRef");case T:var S=r.displayName||null;return S!==null?S:C(r.type)||"Memo";case N:{var Y=r,e=Y._payload,m=Y._init;try{return C(m(e))}catch{return null}}}return null}var R=Object.assign,B=0,K,de,te,ie,q,D,x;function U(){}U.__reactDisabledLog=!0;function I(){{if(B===0){K=console.log,de=console.info,te=console.warn,ie=console.error,q=console.group,D=console.groupCollapsed,x=console.groupEnd;var r={configurable:!0,enumerable:!0,value:U,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}B++}}function ue(){{if(B--,B===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},r,{value:K}),info:R({},r,{value:de}),warn:R({},r,{value:te}),error:R({},r,{value:ie}),group:R({},r,{value:q}),groupCollapsed:R({},r,{value:D}),groupEnd:R({},r,{value:x})})}B<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var M=_.ReactCurrentDispatcher,he;function be(r,f,v){{if(he===void 0)try{throw Error()}catch(Y){var S=Y.stack.trim().match(/\n( *(at )?)/);he=S&&S[1]||""}return`
|
18
18
|
`+he+r}}var Pe=!1,Ee;{var je=typeof WeakMap=="function"?WeakMap:Map;Ee=new je}function me(r,f){if(!r||Pe)return"";{var v=Ee.get(r);if(v!==void 0)return v}var S;Pe=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var e;e=M.current,M.current=null,I();try{if(f){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(J){S=J}Reflect.construct(r,[],m)}else{try{m.call()}catch(J){S=J}r.call(m.prototype)}}else{try{throw Error()}catch(J){S=J}r()}}catch(J){if(J&&S&&typeof J.stack=="string"){for(var i=J.stack.split(`
|
19
19
|
`),A=S.stack.split(`
|
20
20
|
`),j=i.length-1,L=A.length-1;j>=1&&L>=0&&i[j]!==A[L];)L--;for(;j>=1&&L>=0;j--,L--)if(i[j]!==A[L]){if(j!==1||L!==1)do if(j--,L--,L<0||i[j]!==A[L]){var le=`
|
@@ -29,10 +29,10 @@ Check the top-level render call using <`+v+">.")}return f}}function mt(r,f){{if(
|
|
29
29
|
<%s {...props} />
|
30
30
|
React keys must be passed directly to JSX without using spread:
|
31
31
|
let props = %s;
|
32
|
-
<%s key={someKey} {...props} />`,rt,fe,Ct,fe),nt[fe+rt]=!0}}return r===s?Ke(L):Bt(L),L}}function Tt(r,f,v){return ht(r,f,v,!0)}function Ut(r,f,v){return ht(r,f,v,!1)}var _t=Ut,Me=Tt;st.Fragment=s,st.jsx=_t,st.jsxs=Me}()),st}process.env.NODE_ENV==="production"?kt.exports=gn():kt.exports=vn();var p=kt.exports;function gt(n,t){return t?p.jsx(t,{size:n,strokeWidth:2.5}):p.jsx(p.Fragment,{})}function yn(n){const{variant:t="ghost",scheme:a="primary",size:s="md",leftIcon:c,rightIcon:u,className:g="",children:d,...h}=n,y={md:12,lg:14}[s];return{className:`arkyn_badge ${t} ${a} ${s} ${g}`.trim(),children:d,leftIcon:gt(y,c),rightIcon:gt(y,u),...h}}function bn(n){const{leftIcon:t,children:a,rightIcon:s,...c}=yn(n);return p.jsxs("div",{...c,children:[t,a,s]})}function xn(n){const{className:t,orientation:a="horizontal",...s}=n,c=`arkyn_divider ${a} ${t}`;return p.jsx("div",{className:c,...s})}function wn({className:n,...t}){const a="arkyn_skeleton "+n;return p.jsx("div",{className:a.trim(),...t})}function En(n){const{isLoading:t=!1,scheme:a="primary",variant:s="solid",loadingText:c,size:u="md",leftIcon:g,rightIcon:d,disabled:h,className:o="",children:y,...T}=n,b={xs:12,sm:16,md:20,lg:24}[u];return{className:`arkyn_button loading_text_${!!c} ${s} ${a} ${u} loading_${t} ${o}`.trim(),loadingText:c,children:y,iconSize:b,disabled:h||t,leftIcon:gt(b,g),rightIcon:gt(b,d),...T}}function Sn(n){const{leftIcon:t,rightIcon:a,iconSize:s,children:c,loadingText:u,...g}=En(n);return p.jsxs("button",{...g,children:[p.jsxs("div",{className:"spinner",children:[p.jsx(Te.Loader2,{size:s,strokeWidth:2.5}),u&&u]}),p.jsxs("div",{className:"content",children:[t,c,a]})]})}const Yt=l.createContext({});function Tn({children:n,...t}){var d,h;const a=at.useActionData(),s=l.useRef(null),c=((d=s.current)==null?void 0:d.name)||"",u=((h=a==null?void 0:a.fieldErrors)==null?void 0:h[c])||null,g=l.useId();return p.jsx(Yt.Provider,{value:{error:u,id:g,inputRef:s},children:p.jsx("section",{className:"arkyn_form_controller",...t,children:n})})}function Ue(){return l.useContext(Yt)}function _n(n){const{name:t,className:a="",size:s="md",isError:c,defaultChecked:u=!1,checked:g=null,onCheck:d,value:h,...o}=n,{id:y,inputRef:T,error:N}=Ue(),b=c||!!N,[O,P]=l.useState(u||!1),W=typeof g=="boolean"?g:O,_=`arkyn_checkbox ${s} ${b?"error":""} ${W?"checked":""} ${a}`;function w(){const k=O;P(!k),d&&d(k?"":h||"checked")}return p.jsxs("div",{id:y,className:_,onClick:w,...o,children:[p.jsx("input",{type:"hidden",name:t,ref:T,value:W?h||"checked":""}),p.jsx(Te.Check,{})]})}function Cn({children:n}){const{error:t}=Ue();return n?p.jsx("strong",{className:"arkyn_form_error",children:n}):t?p.jsx("strong",{className:"arkyn_form_error",children:t}):p.jsx(p.Fragment,{})}function Nn(n){const{showAsterisk:t=!1,className:a="",...s}=n;return{className:`arkyn_form_label ${t?"show-asterisk":""} ${a}`.trim(),...s}}function kn(n){const{id:t}=Ue();return p.jsx("label",{...Nn(n),htmlFor:t})}const Vt={xs:12,sm:16,md:20,lg:24};function Rn(n){const{isLoading:t=!1,scheme:a="primary",variant:s="solid",size:c="md",icon:u,disabled:g,className:d="",...h}=n,o=`arkyn_icon_button ${s} ${a} ${c} loading_${t} ${d}`;return p.jsxs("button",{disabled:g||t,className:o.trim(),...h,children:[p.jsx("div",{className:"spinner",children:p.jsx(Te.Loader2,{size:Vt[c],strokeWidth:2.5})}),p.jsx("div",{className:"content "+c,children:p.jsx(u,{size:Vt[c],strokeWidth:2.5})})]})}function We(n,t,a){if(!n)return p.jsx(p.Fragment,{});if(typeof n=="string")return p.jsx("p",{className:a,children:n});const s=n;return p.jsx("p",{className:a,children:p.jsx(s,{color:"var(--secondary-600)",size:t,strokeWidth:2.5})})}function Rt(n){return n&&n.replace(/[^0-9]/g,"")}function Gt(n,t){let a="",s=0;return Array.from(n).forEach((c,u)=>{t[u+s].match(/[0-9]/)||(a+=t[u+s],s++),a+=c}),a}function qt(n){return n.length>11?"CNPJ":"CPF"}const It={CPF:"999.999.999-999",CNPJ:"99.999.999/9999-99"},Kt=Rt(It.CNPJ).length;function In(n,t){const{isLoading:a,isError:s,size:c="md",className:u="",variant:g="solid",prefix:d,sufix:h,leftIcon:o,rightIcon:y,disabled:T,defaultValue:N,readOnly:b,onFocus:O,onBlur:P,title:W,style:_,onChange:w,...k}=n;function H(R){let B=Rt(R);const K=qt(B);if(!(B.length>Kt))return B=Gt(B,It[K]),B}const $=y?"right":"left",F=`arkyn_input ${d?"hasPrefix":""} ${h?"hasSufix":""} ${g} ${c} ${T||b||a?"opacity":""} ${s?"errored":""} ${t?"focused":""} ${u}`,C={md:20,lg:20}[c];return{isLoading:a,className:F,prefix:We(d,C,"prefix"),sufix:We(h,C,"sufix"),LeftIcon:o,RightIcon:y,defaultValue:H(N||""),disabled:T,readOnly:b,onFocus:O,onBlur:P,title:W,style:_,onChange:w,loadingPosition:$,iconSize:C,Spinner:p.jsx(Te.Loader2,{className:"spinner",size:C,strokeWidth:2.5}),...k}}function An(n){const[t,a]=l.useState(!1),s=l.useRef(null),{inputRef:c,id:u,error:g}=Ue(),d=c||s,h=n.isError||!!g,{disabled:o,title:y,style:T,className:N,prefix:b,sufix:O,iconSize:P,loadingPosition:W,isLoading:_,LeftIcon:w,readOnly:k,onFocus:H,onBlur:$,RightIcon:Z,Spinner:X,onChange:ee,value:ae,defaultValue:G,...F}=In({...n,id:u,isError:h},t),[ne,C]=l.useState(G),R=w&&!_,B=Z&&!_,K=W==="left"&&_,de=W==="right"&&_;function te(){o||!(d!=null&&d.current)||(a(!0),d.current.focus())}function ie(x){let U=Rt(x.target.value);const I=qt(U);U.length>Kt||(U=Gt(U,It[I]),x.target.value=U,C(U),ee&&ee(x))}function q(x){a(!0),H&&H(x)}function D(x){a(!1),$&&$(x)}return p.jsxs("section",{title:y,style:T,onClick:te,className:N,children:[b,K&&X,R&&p.jsx(w,{size:P,strokeWidth:2.5}),p.jsx("input",{disabled:o||_,readOnly:k,ref:d,value:ae||ne,onFocus:q,onChange:ie,onBlur:D,...F}),B&&p.jsx(Z,{size:P,strokeWidth:2.5}),de&&X,O]})}function Ln(n,t){const{isLoading:a,isError:s,size:c="md",className:u="",variant:g="solid",prefix:d,sufix:h,leftIcon:o,rightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,showCents:_=!1,max:w=1e9,onChange:k,...H}=n,$=y?"right":"left",F=`arkyn_input ${d?"hasPrefix":""} ${h?"hasSufix":""} ${g} ${c} ${T||N||a?"opacity":""} ${s?"errored":""} ${t?"focused":""} ${u}`,C={md:20,lg:20}[c];return{isLoading:a,className:F,prefix:We(d,C,"prefix"),sufix:We(h,C,"sufix"),LeftIcon:o,RightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,max:w,onChange:k,showCents:_,loadingPosition:$,iconSize:C,Spinner:p.jsx(Te.Loader2,{className:"spinner",size:C,strokeWidth:2.5}),...H}}const On=/^[1-9]{1}$/,Pn=/^[0-9]{1}$/,Xt=8;function jn(n,t){if(n===0)return"";const a=(n/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"});return t?a:a.replace("R$","").trim()}function Dn(n){const{currencyValue:t,event:a,max:s,setCurrencyValue:c}=n,{key:u,keyCode:g}=a;if(t===0&&!On.test(u)||t!==0&&!Pn.test(u)&&g!==Xt)return;const d=t.toString();let h;if(g!==Xt){const o=t===0?u:`${d}${u}`;h=Number.parseInt(o,10)}else{const o=d.slice(0,-1);h=o===""?0:Number.parseInt(o,10)}h>Number(s)||c(h)}function Mn(n){const[t,a]=l.useState(!1),[s,c]=l.useState(n.defaultValue||0),u=l.useRef(null),{inputRef:g,id:d,error:h}=Ue(),o=g||u,y=n.isError||!!h,{disabled:T,title:N,style:b,className:O,prefix:P,sufix:W,iconSize:_,loadingPosition:w,isLoading:k,LeftIcon:H,readOnly:$,onFocus:Z,onBlur:X,RightIcon:ee,Spinner:ae,value:G,max:F,onKeyDown:ne,onChange:C,showCents:R,...B}=Ln({...n,id:d,isError:y},t),K=H&&!k,de=ee&&!k,te=w==="left"&&k,ie=w==="right"&&k;function q(){T||!(o!=null&&o.current)||(a(!0),o.current.focus())}function D(I){Dn({currencyValue:s,event:I,max:F,setCurrencyValue:c}),C&&C(s),ne&&ne(I)}function x(I){a(!0),Z&&Z(I)}function U(I){a(!1),X&&X(I)}return p.jsxs("section",{title:N,style:b,onClick:q,className:O,children:[P,te&&ae,K&&p.jsx(H,{size:_,strokeWidth:2.5}),p.jsx("input",{value:jn(G||s,R),onKeyDown:D,disabled:T||k,readOnly:$,ref:o,onFocus:x,onBlur:U,onChange:()=>{},...B}),ie&&ae,de&&p.jsx(ee,{size:_,strokeWidth:2.5}),W]})}function zn(n,t){const{isLoading:a,isError:s,size:c="md",className:u="",variant:g="solid",prefix:d,sufix:h,leftIcon:o,rightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,onChange:_,showMask:w=!1,type:k,...H}=n,$=y?"right":"left",F=`arkyn_input ${d?"hasPrefix":""} ${h?"hasSufix":""} ${g} ${c} ${T||N||a?"opacity":""} ${s?"errored":""} ${t?"focused":""} ${u}`,C={md:20,lg:20}[c];return{isLoading:a,className:F,prefix:We(d,C,"prefix"),sufix:We(h,C,"sufix"),LeftIcon:o,RightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,onChange:_,loadingPosition:$,iconSize:C,showMask:w,Spinner:p.jsx(Te.Loader2,{className:"spinner",size:C,strokeWidth:2.5}),...H}}const $n=l.forwardRef((n,t)=>p.jsx("input",{ref:t,...n}));function Fn(n){const[t,a]=l.useState(!1),s=l.useRef(null),{inputRef:c,id:u,error:g}=Ue(),d=c||s,h=n.isError||!!g,{disabled:o,title:y,style:T,className:N,prefix:b,sufix:O,iconSize:P,loadingPosition:W,isLoading:_,LeftIcon:w,readOnly:k,onFocus:H,onBlur:$,RightIcon:Z,Spinner:X,...ee}=zn({...n,id:u,isError:h},t),ae=w&&!_,G=Z&&!_,F=W==="left"&&_,ne=W==="right"&&_;function C(){o||!(d!=null&&d.current)||(a(!0),d.current.focus())}function R(K){a(!0),H&&H(K)}function B(K){a(!1),$&&$(K)}return p.jsxs("section",{title:y,style:T,onClick:C,className:N,children:[b,F&&X,ae&&p.jsx(w,{size:P,strokeWidth:2.5}),p.jsx(pn.InputMask,{component:$n,ref:d,onFocus:R,onBlur:B,...ee}),G&&p.jsx(Z,{size:P,strokeWidth:2.5}),ne&&X,O]})}function Bn(n,t){const{isLoading:a,isError:s,size:c="md",className:u="",variant:g="solid",prefix:d,sufix:h,leftIcon:o,rightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,onChange:_,...w}=n,k=y?"right":"left",ae=`arkyn_input ${d?"hasPrefix":""} ${h?"hasSufix":""} ${g} ${c} ${T||N||a?"opacity":""} ${s?"errored":""} ${t?"focused":""} ${u}`,F={md:20,lg:20}[c];return{isLoading:a,className:ae,prefix:We(d,F,"prefix"),sufix:We(h,F,"sufix"),LeftIcon:o,RightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,onChange:_,loadingPosition:k,iconSize:F,Spinner:p.jsx(Te.Loader2,{className:"spinner",size:F,strokeWidth:2.5}),...w}}function Un(n){const[t,a]=l.useState(!1),s=l.useRef(null),{inputRef:c,id:u,error:g}=Ue(),d=c||s,h=n.isError||!!g,{disabled:o,title:y,style:T,className:N,prefix:b,sufix:O,iconSize:P,loadingPosition:W,isLoading:_,LeftIcon:w,readOnly:k,onFocus:H,onBlur:$,RightIcon:Z,Spinner:X,...ee}=Bn({...n,id:u,isError:h},t),ae=w&&!_,G=Z&&!_,F=W==="left"&&_,ne=W==="right"&&_;function C(){o||!(d!=null&&d.current)||(a(!0),d.current.focus())}function R(K){a(!0),H&&H(K)}function B(K){a(!1),$&&$(K)}return p.jsxs("section",{title:y,style:T,onClick:C,className:N,children:[b,F&&X,ae&&p.jsx(w,{size:P,strokeWidth:2.5}),p.jsx("input",{disabled:o||_,readOnly:k,ref:d,onFocus:R,onBlur:B,...ee}),G&&p.jsx(Z,{size:P,strokeWidth:2.5}),ne&&X,O]})}function Wn(n){return n.type==="currency"?p.jsx(Mn,{...n}):n.type==="masked"?p.jsx(Fn,{...n}):n.type==="cpf-cpnj"?p.jsx(An,{...n}):p.jsx(Un,{...n})}function Hn(n,t,a){if(!n)return p.jsx(p.Fragment,{});if(typeof n=="string")return p.jsx("p",{className:a,children:n});const s=n;return p.jsx("p",{className:a,children:p.jsx(s,{color:"var(--secondary-600)",size:t,strokeWidth:2.5})})}function Yn(n,t){const{isLoading:a,isError:s,size:c="md",className:u="",variant:g="solid",prefix:d,leftIcon:h,disabled:o,readOnly:y,onFocus:T,onBlur:N,title:b,style:O,isSearchable:P=!1,...W}=n,$=`arkyn_select ${d?"hasPrefix":""} ${g} ${c} ${o||y||a?"opacity":""} ${s?"errored":""} ${t?"focused":""} ${u}`,X={md:20,lg:20}[c];return{isLoading:a,className:$,prefix:Hn(d,X,"prefix"),LeftIcon:h,disabled:o,readOnly:y,onFocus:T,onBlur:N,title:b,style:O,isSearchable:P,iconSize:X,Spinner:p.jsx(Te.Loader2,{className:"spinner",size:X,strokeWidth:2.5}),...W}}function Vn(n){var ue;const[t,a]=l.useState(!1),{inputRef:s,id:c,error:u}=Ue(),g=l.useRef(null),d=s||g,h=n.isError||!!u,{disabled:o,title:y,style:T,className:N,prefix:b,iconSize:O,isLoading:P,LeftIcon:W,value:_=null,defaultValue:w="",readOnly:k,onFocus:H,onBlur:$,Spinner:Z,name:X,isSearchable:ee,placeholder:ae,onSelect:G,options:F,optionMaxHeight:ne,...C}=Yn({...n,id:c,isError:h},t),[R,B]=l.useState(w),[K,de]=l.useState("");function te(){o||!(d!=null&&d.current)||(a(!0),d.current.focus())}function ie(M){a(!0),H&&H(M)}function q(){a(!1),$&&d.current&&d.current.blur()}const D=typeof _=="string"?_:R,x=((ue=F.find(M=>M.value===D))==null?void 0:ue.label)||"",U=()=>{if(ee){if(!t&&x)return!0;if(!t&&!x||t)return!1}if(!ee){if(!t&&x)return!0;if(!t&&!x)return!1;if(t&&x)return!0;if(t&&!x)return!1}},I=F.filter(M=>ee?M.label.toLowerCase().includes(K.toLowerCase()):!0);return p.jsxs(p.Fragment,{children:[p.jsxs("section",{title:y,style:T,onClick:te,className:`${N} placeholder_dark_${U()}`,children:[b,W&&p.jsx(W,{size:O,strokeWidth:2.5}),p.jsx("input",{disabled:o||P,readOnly:!ee,value:K||"",placeholder:x||ae,ref:d,onFocus:ie,onBlur:()=>de(""),...C,onChange:M=>de(M.target.value)}),p.jsx("input",{type:"hidden",name:X,value:D||"",readOnly:!0}),t&&p.jsxs("ul",{className:"arkyn_select_content",style:{overflow:"auto",maxHeight:ne},children:[I.map(({label:M,value:he})=>p.jsxs("li",{className:D===he?"active":"",onClick:()=>{B(R!==he?he:""),G&&G({label:M,value:he})},children:[M," ",p.jsx(Te.Check,{})]},he)),I.length<=0&&p.jsx("p",{children:"Sem opções disponíveis"})]}),!P&&p.jsx(Te.ChevronDown,{className:"arkyn_select_arrow",size:O,strokeWidth:2.5}),P&&Z]}),t&&p.jsx("aside",{className:"arkyn_select_overlay",onClick:q})]})}function Gn(n){const{className:t="",...a}=n;return{className:`arkyn_breadcrumb ${t}`.trim(),...a}}function qn(n){const{pathname:t}=at.useLocation(),{className:a="",disabled:s=!1,to:c,...u}=n,g=t===c?"active":"inactive",d=`arkyn_breadcrumb_link ${g} ${a}`;return{to:c,className:d.trim(),disabled:s||g==="active",...u}}function Kn(n){const{className:t,...a}=Gn(n);return p.jsx("nav",{className:t,...a})}function Xn(n){const{children:t,className:a,disabled:s,...c}=qn(n);return s?p.jsxs("p",{className:a,children:[p.jsx(Te.ChevronRight,{size:14,strokeWidth:2.5}),t]}):p.jsxs(at.Link,{className:a,...c,children:[p.jsx(Te.ChevronRight,{size:14,strokeWidth:2.5}),t]})}const Jt=l.createContext({});function Jn(n){const{isVisibled:t,makeInvisible:a,children:s,className:c="",...u}=n,d=`arkyn_modal_container ${t?"visible":""} ${c}`;return p.jsx(Jt.Provider,{value:{makeInvisible:a},children:p.jsx(Nt.AnimatePresence,{children:t&&p.jsxs("aside",{className:d.trim(),...u,children:[p.jsx(Nt.motion.div,{className:"overlay",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:a}),p.jsx(Nt.motion.div,{className:"content",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0,scale:.75},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},children:s})]})})})}function Zn(n){const{alignment:t="right",className:a,...s}=n,c=`arkyn_modal_footer ${t} ${a}`;return p.jsx("footer",{className:c.trim(),...s})}function Qn(n){const{showCloseButton:t,className:a,children:s,...c}=n,{makeInvisible:u}=l.useContext(Jt),d=`arkyn_modal_header ${t?"show-close":""} ${a}`;return p.jsxs("header",{className:d.trim(),...c,children:[s,p.jsx("button",{type:"button",onClick:u,children:p.jsx(Te.X,{size:24})})]})}const er={Container:Jn,Header:Qn,Footer:Zn};function tr(n){const{text:t,size:a="lg",children:s,orientation:c="top",className:u,...g}=n;return p.jsxs("div",{className:`arkyn_tooltip ${a} ${c} ${u}`,...g,children:[s,p.jsx("div",{className:"arkyn_tooltip_text",children:t})]})}const At=l.createContext({});function nr(){const n=at.useActionData(),{closeModal:t}=l.useContext(At);l.useEffect(()=>{const a=n==null?void 0:n.closeModalKey;a&&t(a)},[n])}function rr(n){const t=l.useContext(At);if(Object.entries(t).length===0)throw new Error("useModal must be used within a Provider");if(n){const{modalData:a,modalIsOpen:s,openModal:c,closeModal:u}=t,g=s(n),d=a(n);return{modalIsOpen:g,modalData:d,openModal:y=>c(n,y==null?void 0:y.data),closeModal:()=>u(n)}}else return t}function ar(n=""){const t=at.useLocation(),a=new URLSearchParams(t.search),s=n?`${n}:`:"",c=u=>{Object.entries(u).forEach(([g,d])=>{d===void 0?a.delete(`${s}${g}`):a.set(`${s}${g}`,String(d))})};return{getParam:u=>a.get(`${s}${u}`),getScopedSearch:u=>{c(u);let g=a.toString();return g&&(g="?"+g),g}}}const Zt=l.createContext({});function or(){const n=l.useContext(Zt);if(Object.entries(n).length===0)throw new Error("useToast must be used within a Provider");return n}function sr(n){const{children:t=!1}=n,[a,s]=l.useState([]);l.useEffect(()=>{console.log(a)},a);function c(h){return!!a.some(o=>o.key===h)}function u(h){var o;return(o=a.find(y=>y.key===h))==null?void 0:o.data}function g(h,o){const y=c(h);s(y?T=>[...T.filter(b=>b.key!==h),{key:h,data:o}]:[...a,{key:h,data:o}])}function d(h){s(a.filter(o=>o.key!==h))}return p.jsx(At.Provider,{value:{modalIsOpen:c,modalData:u,openModal:g,closeModal:d},children:t})}var{entries:Qt,setPrototypeOf:en,isFrozen:ir,getPrototypeOf:lr,getOwnPropertyDescriptor:cr}=Object,{freeze:ye,seal:ke,create:tn}=Object,{apply:Lt,construct:Ot}=typeof Reflect<"u"&&Reflect;ye||(ye=function(n){return n}),ke||(ke=function(n){return n}),Lt||(Lt=function(n,t,a){return n.apply(t,a)}),Ot||(Ot=function(n,t){return new n(...t)});var vt=Ce(Array.prototype.forEach),nn=Ce(Array.prototype.pop),it=Ce(Array.prototype.push),yt=Ce(String.prototype.toLowerCase),Pt=Ce(String.prototype.toString),rn=Ce(String.prototype.match),lt=Ce(String.prototype.replace),ur=Ce(String.prototype.indexOf),dr=Ce(String.prototype.trim),Le=Ce(Object.prototype.hasOwnProperty),_e=Ce(RegExp.prototype.test),ct=fr(TypeError);function Ce(n){return function(t){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];return Lt(n,t,s)}}function fr(n){return function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return Ot(n,a)}}function z(n,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yt;en&&en(n,null);let s=t.length;for(;s--;){let c=t[s];if(typeof c=="string"){let u=a(c);u!==c&&(ir(t)||(t[s]=u),c=u)}n[c]=!0}return n}function mr(n){for(let t=0;t<n.length;t++)Le(n,t)||(n[t]=null);return n}function Xe(n){let t=tn(null);for(let[a,s]of Qt(n))Le(n,a)&&(Array.isArray(s)?t[a]=mr(s):s&&typeof s=="object"&&s.constructor===Object?t[a]=Xe(s):t[a]=s);return t}function bt(n,t){for(;n!==null;){let s=cr(n,t);if(s){if(s.get)return Ce(s.get);if(typeof s.value=="function")return Ce(s.value)}n=lr(n)}function a(){return null}return a}var an=ye(["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"]),jt=ye(["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"]),Dt=ye(["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"]),pr=ye(["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"]),Mt=ye(["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"]),hr=ye(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),on=ye(["#text"]),sn=ye(["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"]),zt=ye(["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"]),ln=ye(["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"]),xt=ye(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gr=ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vr=ke(/<%[\w\W]*|[\w\W]*%>/gm),yr=ke(/\${[\w\W]*}/gm),br=ke(/^data-[\-\w.\u00B7-\uFFFF]/),xr=ke(/^aria-[\-\w]+$/),cn=ke(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wr=ke(/^(?:\w+script|data):/i),Er=ke(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),un=ke(/^html$/i),Sr=ke(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i),dn=Object.freeze({__proto__:null,MUSTACHE_EXPR:gr,ERB_EXPR:vr,TMPLIT_EXPR:yr,DATA_ATTR:br,ARIA_ATTR:xr,IS_ALLOWED_URI:cn,IS_SCRIPT_OR_DATA:wr,ATTR_WHITESPACE:Er,DOCTYPE_NAME:un,CUSTOM_ELEMENT:Sr}),Tr=function(){return typeof window>"u"?null:window},_r=function(n,t){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let a=null,s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(a=t.getAttribute(s));let c="dompurify"+(a?"#"+a:"");try{return n.createPolicy(c,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}};function fn(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tr(),t=e=>fn(e);if(t.version="3.0.10",t.removed=[],!n||!n.document||n.document.nodeType!==9)return t.isSupported=!1,t;let{document:a}=n,s=a,c=s.currentScript,{DocumentFragment:u,HTMLTemplateElement:g,Node:d,Element:h,NodeFilter:o,NamedNodeMap:y=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:T,DOMParser:N,trustedTypes:b}=n,O=h.prototype,P=bt(O,"cloneNode"),W=bt(O,"nextSibling"),_=bt(O,"childNodes"),w=bt(O,"parentNode");if(typeof g=="function"){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let k,H="",{implementation:$,createNodeIterator:Z,createDocumentFragment:X,getElementsByTagName:ee}=a,{importNode:ae}=s,G={};t.isSupported=typeof Qt=="function"&&typeof w=="function"&&$&&$.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:ne,TMPLIT_EXPR:C,DATA_ATTR:R,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:de,CUSTOM_ELEMENT:te}=dn,{IS_ALLOWED_URI:ie}=dn,q=null,D=z({},[...an,...jt,...Dt,...Mt,...on]),x=null,U=z({},[...sn,...zt,...ln,...xt]),I=Object.seal(tn(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}})),ue=null,M=null,he=!0,be=!0,Pe=!1,Ee=!0,je=!1,me=!1,Je=!1,Ze=!1,oe=!1,pe=!1,Fe=!1,Qe=!0,Re=!1,ut="user-content-",He=!0,Ne=!1,xe={},De=null,Ie=z({},["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"]),Ye=null,ze=z({},["audio","video","img","source","image","track"]),Ve=null,Ge=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Be="http://www.w3.org/1998/Math/MathML",Ae="http://www.w3.org/2000/svg",ce="http://www.w3.org/1999/xhtml",$e=ce,qe=!1,E=null,se=z({},[Be,Ae,ce],Pt),Q=null,Se=["application/xhtml+xml","text/html"],ge="text/html",re=null,we=null,dt=a.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},tt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(we&&we===e)){if((!e||typeof e!="object")&&(e={}),e=Xe(e),Q=Se.indexOf(e.PARSER_MEDIA_TYPE)===-1?ge:e.PARSER_MEDIA_TYPE,re=Q==="application/xhtml+xml"?Pt:yt,q=Le(e,"ALLOWED_TAGS")?z({},e.ALLOWED_TAGS,re):D,x=Le(e,"ALLOWED_ATTR")?z({},e.ALLOWED_ATTR,re):U,E=Le(e,"ALLOWED_NAMESPACES")?z({},e.ALLOWED_NAMESPACES,Pt):se,Ve=Le(e,"ADD_URI_SAFE_ATTR")?z(Xe(Ge),e.ADD_URI_SAFE_ATTR,re):Ge,Ye=Le(e,"ADD_DATA_URI_TAGS")?z(Xe(ze),e.ADD_DATA_URI_TAGS,re):ze,De=Le(e,"FORBID_CONTENTS")?z({},e.FORBID_CONTENTS,re):Ie,ue=Le(e,"FORBID_TAGS")?z({},e.FORBID_TAGS,re):{},M=Le(e,"FORBID_ATTR")?z({},e.FORBID_ATTR,re):{},xe=Le(e,"USE_PROFILES")?e.USE_PROFILES:!1,he=e.ALLOW_ARIA_ATTR!==!1,be=e.ALLOW_DATA_ATTR!==!1,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=e.SAFE_FOR_TEMPLATES||!1,me=e.WHOLE_DOCUMENT||!1,oe=e.RETURN_DOM||!1,pe=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Ze=e.FORCE_BODY||!1,Qe=e.SANITIZE_DOM!==!1,Re=e.SANITIZE_NAMED_PROPS||!1,He=e.KEEP_CONTENT!==!1,Ne=e.IN_PLACE||!1,ie=e.ALLOWED_URI_REGEXP||cn,$e=e.NAMESPACE||ce,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),je&&(be=!1),pe&&(oe=!0),xe&&(q=z({},on),x=[],xe.html===!0&&(z(q,an),z(x,sn)),xe.svg===!0&&(z(q,jt),z(x,zt),z(x,xt)),xe.svgFilters===!0&&(z(q,Dt),z(x,zt),z(x,xt)),xe.mathMl===!0&&(z(q,Mt),z(x,ln),z(x,xt))),e.ADD_TAGS&&(q===D&&(q=Xe(q)),z(q,e.ADD_TAGS,re)),e.ADD_ATTR&&(x===U&&(x=Xe(x)),z(x,e.ADD_ATTR,re)),e.ADD_URI_SAFE_ATTR&&z(Ve,e.ADD_URI_SAFE_ATTR,re),e.FORBID_CONTENTS&&(De===Ie&&(De=Xe(De)),z(De,e.FORBID_CONTENTS,re)),He&&(q["#text"]=!0),me&&z(q,["html","head","body"]),q.table&&(z(q,["tbody"]),delete ue.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=e.TRUSTED_TYPES_POLICY,H=k.createHTML("")}else k===void 0&&(k=_r(b,c)),k!==null&&typeof H=="string"&&(H=k.createHTML(""));ye&&ye(e),we=e}},St=z({},["mi","mo","mn","ms","mtext"]),ft=z({},["foreignobject","desc","title","annotation-xml"]),Ft=z({},["title","style","font","a","script"]),mt=z({},[...jt,...Dt,...pr]),pt=z({},[...Mt,...hr]),Bt=function(e){let m=w(e);(!m||!m.tagName)&&(m={namespaceURI:$e,tagName:"template"});let i=yt(e.tagName),A=yt(m.tagName);return E[e.namespaceURI]?e.namespaceURI===Ae?m.namespaceURI===ce?i==="svg":m.namespaceURI===Be?i==="svg"&&(A==="annotation-xml"||St[A]):!!mt[i]:e.namespaceURI===Be?m.namespaceURI===ce?i==="math":m.namespaceURI===Ae?i==="math"&&ft[A]:!!pt[i]:e.namespaceURI===ce?m.namespaceURI===Ae&&!ft[A]||m.namespaceURI===Be&&!St[A]?!1:!pt[i]&&(Ft[i]||!mt[i]):!!(Q==="application/xhtml+xml"&&E[e.namespaceURI]):!1},Ke=function(e){it(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch{e.remove()}},nt=function(e,m){try{it(t.removed,{attribute:m.getAttributeNode(e),from:m})}catch{it(t.removed,{attribute:null,from:m})}if(m.removeAttribute(e),e==="is"&&!x[e])if(oe||pe)try{Ke(m)}catch{}else try{m.setAttribute(e,"")}catch{}},ht=function(e){let m=null,i=null;if(Ze)e="<remove></remove>"+e;else{let L=rn(e,/^[\r\n\t ]+/);i=L&&L[0]}Q==="application/xhtml+xml"&&$e===ce&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let A=k?k.createHTML(e):e;if($e===ce)try{m=new N().parseFromString(A,Q)}catch{}if(!m||!m.documentElement){m=$.createDocument($e,"template",null);try{m.documentElement.innerHTML=qe?H:A}catch{}}let j=m.body||m.documentElement;return e&&i&&j.insertBefore(a.createTextNode(i),j.childNodes[0]||null),$e===ce?ee.call(m,me?"html":"body")[0]:me?m.documentElement:j},Tt=function(e){return Z.call(e.ownerDocument||e,e,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION,null)},Ut=function(e){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")},_t=function(e){return typeof d=="function"&&e instanceof d},Me=function(e,m,i){G[e]&&vt(G[e],A=>{A.call(t,m,i,we)})},r=function(e){let m=null;if(Me("beforeSanitizeElements",e,null),Ut(e))return Ke(e),!0;let i=re(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:i,allowedTags:q}),e.hasChildNodes()&&!_t(e.firstElementChild)&&_e(/<[/\w]/g,e.innerHTML)&&_e(/<[/\w]/g,e.textContent))return Ke(e),!0;if(!q[i]||ue[i]){if(!ue[i]&&v(i)&&(I.tagNameCheck instanceof RegExp&&_e(I.tagNameCheck,i)||I.tagNameCheck instanceof Function&&I.tagNameCheck(i)))return!1;if(He&&!De[i]){let A=w(e)||e.parentNode,j=_(e)||e.childNodes;if(j&&A){let L=j.length;for(let le=L-1;le>=0;--le)A.insertBefore(P(j[le],!0),W(e))}}return Ke(e),!0}return e instanceof h&&!Bt(e)||(i==="noscript"||i==="noembed"||i==="noframes")&&_e(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ke(e),!0):(je&&e.nodeType===3&&(m=e.textContent,vt([F,ne,C],A=>{m=lt(m,A," ")}),e.textContent!==m&&(it(t.removed,{element:e.cloneNode()}),e.textContent=m)),Me("afterSanitizeElements",e,null),!1)},f=function(e,m,i){if(Qe&&(m==="id"||m==="name")&&(i in a||i in dt))return!1;if(!(be&&!M[m]&&_e(R,m))&&!(he&&_e(B,m))){if(!x[m]||M[m]){if(!(v(e)&&(I.tagNameCheck instanceof RegExp&&_e(I.tagNameCheck,e)||I.tagNameCheck instanceof Function&&I.tagNameCheck(e))&&(I.attributeNameCheck instanceof RegExp&&_e(I.attributeNameCheck,m)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(m))||m==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&_e(I.tagNameCheck,i)||I.tagNameCheck instanceof Function&&I.tagNameCheck(i))))return!1}else if(!Ve[m]&&!_e(ie,lt(i,de,""))&&!((m==="src"||m==="xlink:href"||m==="href")&&e!=="script"&&ur(i,"data:")===0&&Ye[e])&&!(Pe&&!_e(K,lt(i,de,"")))&&i)return!1}return!0},v=function(e){return e!=="annotation-xml"&&rn(e,te)},S=function(e){Me("beforeSanitizeAttributes",e,null);let{attributes:m}=e;if(!m)return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:x},A=m.length;for(;A--;){let j=m[A],{name:L,namespaceURI:le,value:ve}=j,fe=re(L),J=L==="value"?ve:dr(ve);if(i.attrName=fe,i.attrValue=J,i.keepAttr=!0,i.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,i),J=i.attrValue,i.forceKeepAttr||(nt(L,e),!i.keepAttr))continue;if(!Ee&&_e(/\/>/i,J)){nt(L,e);continue}je&&vt([F,ne,C],Ct=>{J=lt(J,Ct," ")});let rt=re(e.nodeName);if(f(rt,fe,J)){if(Re&&(fe==="id"||fe==="name")&&(nt(L,e),J=ut+J),k&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!le)switch(b.getAttributeType(rt,fe)){case"TrustedHTML":{J=k.createHTML(J);break}case"TrustedScriptURL":{J=k.createScriptURL(J);break}}try{le?e.setAttributeNS(le,L,J):e.setAttribute(L,J),nn(t.removed)}catch{}}}Me("afterSanitizeAttributes",e,null)},Y=function e(m){let i=null,A=Tt(m);for(Me("beforeSanitizeShadowDOM",m,null);i=A.nextNode();)Me("uponSanitizeShadowNode",i,null),!r(i)&&(i.content instanceof u&&e(i.content),S(i));Me("afterSanitizeShadowDOM",m,null)};return t.sanitize=function(e){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,A=null,j=null,L=null;if(qe=!e,qe&&(e="<!-->"),typeof e!="string"&&!_t(e))if(typeof e.toString=="function"){if(e=e.toString(),typeof e!="string")throw ct("dirty is not a string, aborting")}else throw ct("toString is not a function");if(!t.isSupported)return e;if(Je||tt(m),t.removed=[],typeof e=="string"&&(Ne=!1),Ne){if(e.nodeName){let fe=re(e.nodeName);if(!q[fe]||ue[fe])throw ct("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)i=ht("<!---->"),A=i.ownerDocument.importNode(e,!0),A.nodeType===1&&A.nodeName==="BODY"||A.nodeName==="HTML"?i=A:i.appendChild(A);else{if(!oe&&!je&&!me&&e.indexOf("<")===-1)return k&&Fe?k.createHTML(e):e;if(i=ht(e),!i)return oe?null:Fe?H:""}i&&Ze&&Ke(i.firstChild);let le=Tt(Ne?e:i);for(;j=le.nextNode();)r(j)||(j.content instanceof u&&Y(j.content),S(j));if(Ne)return e;if(oe){if(pe)for(L=X.call(i.ownerDocument);i.firstChild;)L.appendChild(i.firstChild);else L=i;return(x.shadowroot||x.shadowrootmode)&&(L=ae.call(s,L,!0)),L}let ve=me?i.outerHTML:i.innerHTML;return me&&q["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&_e(un,i.ownerDocument.doctype.name)&&(ve="<!DOCTYPE "+i.ownerDocument.doctype.name+`>
|
33
|
-
`+ve),je&&vt([F,ne,C],fe=>{ve=lt(ve,fe," ")}),k&&Fe?k.createHTML(ve):ve},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tt(e),Je=!0},t.clearConfig=function(){we=null,Je=!1},t.isValidAttribute=function(e,m,i){we||tt({});let A=re(e),j=re(m);return f(A,j,i)},t.addHook=function(e,m){typeof m=="function"&&(G[e]=G[e]||[],it(G[e],m))},t.removeHook=function(e){if(G[e])return nn(G[e])},t.removeHooks=function(e){G[e]&&(G[e]=[])},t.removeAllHooks=function(){G={}},t}var Cr=fn(),Nr=n=>{switch(n){case"success":return Ir;case"info":return Lr;case"warning":return Ar;case"error":return Or;default:return null}},kr=Array(12).fill(0),Rr=({visible:n})=>l.createElement("div",{className:"sonner-loading-wrapper","data-visible":n},l.createElement("div",{className:"sonner-spinner"},kr.map((t,a)=>l.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),Ir=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Ar=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Lr=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Or=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Pr=()=>{let[n,t]=l.useState(!1);return l.useEffect(()=>{let a=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),n},$t=1,jr=class{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{let t=this.subscribers.indexOf(n);this.subscribers.splice(t,1)}),this.publish=n=>{this.subscribers.forEach(t=>t(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var t;let{message:a,...s}=n,c=typeof(n==null?void 0:n.id)=="number"||((t=n.id)==null?void 0:t.length)>0?n.id:$t++,u=this.toasts.find(d=>d.id===c),g=n.dismissible===void 0?!0:n.dismissible;return u?this.toasts=this.toasts.map(d=>d.id===c?(this.publish({...d,...n,id:c,title:a}),{...d,...n,id:c,dismissible:g,title:a}):d):this.addToast({title:a,...s,dismissible:g,id:c}),c},this.dismiss=n=>(n||this.toasts.forEach(t=>{this.subscribers.forEach(a=>a({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:n,dismiss:!0})),n),this.message=(n,t)=>this.create({...t,message:n}),this.error=(n,t)=>this.create({...t,message:n,type:"error"}),this.success=(n,t)=>this.create({...t,type:"success",message:n}),this.info=(n,t)=>this.create({...t,type:"info",message:n}),this.warning=(n,t)=>this.create({...t,type:"warning",message:n}),this.loading=(n,t)=>this.create({...t,type:"loading",message:n}),this.promise=(n,t)=>{if(!t)return;let a;t.loading!==void 0&&(a=this.create({...t,promise:n,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let s=n instanceof Promise?n:n(),c=a!==void 0;return s.then(u=>{if(u&&typeof u.ok=="boolean"&&!u.ok){c=!1;let g=typeof t.error=="function"?t.error(`HTTP error! status: ${u.status}`):t.error,d=typeof t.description=="function"?t.description(`HTTP error! status: ${u.status}`):t.description;this.create({id:a,type:"error",message:g,description:d})}else if(t.success!==void 0){c=!1;let g=typeof t.success=="function"?t.success(u):t.success,d=typeof t.description=="function"?t.description(u):t.description;this.create({id:a,type:"success",message:g,description:d})}}).catch(u=>{if(t.error!==void 0){c=!1;let g=typeof t.error=="function"?t.error(u):t.error,d=typeof t.description=="function"?t.description(u):t.description;this.create({id:a,type:"error",message:g,description:d})}}).finally(()=>{var u;c&&(this.dismiss(a),a=void 0),(u=t.finally)==null||u.call(t)}),a},this.custom=(n,t)=>{let a=(t==null?void 0:t.id)||$t++;return this.create({jsx:n(a),id:a,...t}),a},this.subscribers=[],this.toasts=[]}},Oe=new jr,Dr=(n,t)=>{let a=(t==null?void 0:t.id)||$t++;return Oe.addToast({title:n,...t,id:a}),a},Mr=Dr,wt=Object.assign(Mr,{success:Oe.success,info:Oe.info,warning:Oe.warning,error:Oe.error,custom:Oe.custom,message:Oe.message,promise:Oe.promise,dismiss:Oe.dismiss,loading:Oe.loading});function zr(n,{insertAt:t}={}){if(!n||typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",t==="top"&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}zr(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
34
|
-
`);function Et(n){return n.label!==void 0&&typeof n.onClick=="function"}var $r=3,Fr="32px",Br=4e3,Ur=356,Wr=14,Hr=20,Yr=200;function Vr(...n){return n.filter(Boolean).join(" ")}var Gr=n=>{var t,a,s,c,u,g,d;let{invert:h,toast:o,unstyled:y,interacting:T,setHeights:N,visibleToasts:b,heights:O,index:P,toasts:W,expanded:_,removeToast:w,closeButton:k,style:H,cancelButtonStyle:$,actionButtonStyle:Z,className:X="",descriptionClassName:ee="",duration:ae,position:G,gap:F,loadingIcon:ne,expandByDefault:C,classNames:R,icons:B,closeButtonAriaLabel:K="Close toast",pauseWhenPageIsHidden:de,cn:te}=n,[ie,q]=l.useState(!1),[D,x]=l.useState(!1),[U,I]=l.useState(!1),[ue,M]=l.useState(!1),[he,be]=l.useState(0),[Pe,Ee]=l.useState(0),je=l.useRef(null),me=l.useRef(null),Je=P===0,Ze=P+1<=b,oe=o.type,pe=o.dismissible!==!1,Fe=o.className||"",Qe=o.descriptionClassName||"",Re=l.useMemo(()=>O.findIndex(E=>E.toastId===o.id)||0,[O,o.id]),ut=l.useMemo(()=>{var E;return(E=o.closeButton)!=null?E:k},[o.closeButton,k]),He=l.useMemo(()=>o.duration||ae||Br,[o.duration,ae]),Ne=l.useRef(0),xe=l.useRef(0),De=l.useRef(0),Ie=l.useRef(null),[Ye,ze]=G.split("-"),Ve=l.useMemo(()=>O.reduce((E,se,Q)=>Q>=Re?E:E+se.height,0),[O,Re]),Ge=Pr(),Be=o.invert||h,Ae=oe==="loading";xe.current=l.useMemo(()=>Re*F+Ve,[Re,Ve]),l.useEffect(()=>{q(!0)},[]),l.useLayoutEffect(()=>{if(!ie)return;let E=me.current,se=E.style.height;E.style.height="auto";let Q=E.getBoundingClientRect().height;E.style.height=se,Ee(Q),N(Se=>Se.find(ge=>ge.toastId===o.id)?Se.map(ge=>ge.toastId===o.id?{...ge,height:Q}:ge):[{toastId:o.id,height:Q,position:o.position},...Se])},[ie,o.title,o.description,N,o.id]);let ce=l.useCallback(()=>{x(!0),be(xe.current),N(E=>E.filter(se=>se.toastId!==o.id)),setTimeout(()=>{w(o)},Yr)},[o,w,N,xe]);l.useEffect(()=>{if(o.promise&&oe==="loading"||o.duration===1/0||o.type==="loading")return;let E,se=He;return _||T||de&&Ge?(()=>{if(De.current<Ne.current){let Q=new Date().getTime()-Ne.current;se=se-Q}De.current=new Date().getTime()})():se!==1/0&&(Ne.current=new Date().getTime(),E=setTimeout(()=>{var Q;(Q=o.onAutoClose)==null||Q.call(o,o),ce()},se)),()=>clearTimeout(E)},[_,T,C,o,He,ce,o.promise,oe,de,Ge]),l.useEffect(()=>{let E=me.current;if(E){let se=E.getBoundingClientRect().height;return Ee(se),N(Q=>[{toastId:o.id,height:se,position:o.position},...Q]),()=>N(Q=>Q.filter(Se=>Se.toastId!==o.id))}},[N,o.id]),l.useEffect(()=>{o.delete&&ce()},[ce,o.delete]);function $e(){return B!=null&&B.loading?l.createElement("div",{className:"sonner-loader","data-visible":oe==="loading"},B.loading):ne?l.createElement("div",{className:"sonner-loader","data-visible":oe==="loading"},ne):l.createElement(Rr,{visible:oe==="loading"})}function qe(E){return{__html:Cr.sanitize(E)}}return l.createElement("li",{"aria-live":o.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:me,className:te(X,Fe,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[oe],(a=o==null?void 0:o.classNames)==null?void 0:a[oe]),"data-sonner-toast":"","data-styled":!(o.jsx||o.unstyled||y),"data-mounted":ie,"data-promise":!!o.promise,"data-removed":D,"data-visible":Ze,"data-y-position":Ye,"data-x-position":ze,"data-index":P,"data-front":Je,"data-swiping":U,"data-dismissible":pe,"data-type":oe,"data-invert":Be,"data-swipe-out":ue,"data-expanded":!!(_||C&&ie),style:{"--index":P,"--toasts-before":P,"--z-index":W.length-P,"--offset":`${D?he:xe.current}px`,"--initial-height":C?"auto":`${Pe}px`,...H,...o.style},onPointerDown:E=>{Ae||!pe||(je.current=new Date,be(xe.current),E.target.setPointerCapture(E.pointerId),E.target.tagName!=="BUTTON"&&(I(!0),Ie.current={x:E.clientX,y:E.clientY}))},onPointerUp:()=>{var E,se,Q,Se;if(ue||!pe)return;Ie.current=null;let ge=Number(((E=me.current)==null?void 0:E.style.getPropertyValue("--swipe-amount").replace("px",""))||0),re=new Date().getTime()-((se=je.current)==null?void 0:se.getTime()),we=Math.abs(ge)/re;if(Math.abs(ge)>=Hr||we>.11){be(xe.current),(Q=o.onDismiss)==null||Q.call(o,o),ce(),M(!0);return}(Se=me.current)==null||Se.style.setProperty("--swipe-amount","0px"),I(!1)},onPointerMove:E=>{var se;if(!Ie.current||!pe)return;let Q=E.clientY-Ie.current.y,Se=E.clientX-Ie.current.x,ge=(Ye==="top"?Math.min:Math.max)(0,Q),re=E.pointerType==="touch"?10:2;Math.abs(ge)>re?(se=me.current)==null||se.style.setProperty("--swipe-amount",`${Q}px`):Math.abs(Se)>re&&(Ie.current=null)}},ut&&!o.jsx?l.createElement("button",{"aria-label":K,"data-disabled":Ae,"data-close-button":!0,onClick:Ae||!pe?()=>{}:()=>{var E;ce(),(E=o.onDismiss)==null||E.call(o,o)},className:te(R==null?void 0:R.closeButton,(s=o==null?void 0:o.classNames)==null?void 0:s.closeButton)},l.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"},l.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),l.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,o.jsx||l.isValidElement(o.title)?o.jsx||o.title:l.createElement(l.Fragment,null,oe||o.icon||o.promise?l.createElement("div",{"data-icon":"",className:te(R==null?void 0:R.icon)},o.promise||o.type==="loading"&&!o.icon?o.icon||$e():null,o.type!=="loading"?o.icon||(B==null?void 0:B[oe])||Nr(oe):null):null,l.createElement("div",{"data-content":"",className:te(R==null?void 0:R.content)},l.createElement("div",{"data-title":"",className:te(R==null?void 0:R.title,(c=o==null?void 0:o.classNames)==null?void 0:c.title),dangerouslySetInnerHTML:qe(o.title)}),o.description?l.createElement("div",{"data-description":"",className:te(ee,Qe,R==null?void 0:R.description,(u=o==null?void 0:o.classNames)==null?void 0:u.description),dangerouslySetInnerHTML:qe(o.description)}):null),l.isValidElement(o.cancel)?o.cancel:o.cancel&&Et(o.cancel)?l.createElement("button",{"data-button":!0,"data-cancel":!0,style:o.cancelButtonStyle||$,onClick:E=>{Et(o.cancel)&&pe&&(ce(),o.cancel.onClick(E))},className:te(R==null?void 0:R.cancelButton,(g=o==null?void 0:o.classNames)==null?void 0:g.cancelButton)},o.cancel.label):null,l.isValidElement(o.action)?o.action:o.action&&Et(o.action)?l.createElement("button",{"data-button":"",style:o.actionButtonStyle||Z,onClick:E=>{Et(o.action)&&(o.action.onClick(E),!E.defaultPrevented&&ce())},className:te(R==null?void 0:R.actionButton,(d=o==null?void 0:o.classNames)==null?void 0:d.actionButton)},o.action.label):null))};function mn(){if(typeof window>"u"||typeof document>"u")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}var qr=n=>{let{invert:t,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:c,closeButton:u,className:g,offset:d,theme:h="light",richColors:o,duration:y,style:T,visibleToasts:N=$r,toastOptions:b,dir:O=mn(),gap:P=Wr,loadingIcon:W,icons:_,containerAriaLabel:w="Notifications",pauseWhenPageIsHidden:k,cn:H=Vr}=n,[$,Z]=l.useState([]),X=l.useMemo(()=>Array.from(new Set([a].concat($.filter(D=>D.position).map(D=>D.position)))),[$,a]),[ee,ae]=l.useState([]),[G,F]=l.useState(!1),[ne,C]=l.useState(!1),[R,B]=l.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=l.useRef(null),de=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),te=l.useRef(null),ie=l.useRef(!1),q=l.useCallback(D=>Z(x=>x.filter(({id:U})=>U!==D.id)),[]);return l.useEffect(()=>Oe.subscribe(D=>{if(D.dismiss){Z(x=>x.map(U=>U.id===D.id?{...U,delete:!0}:U));return}setTimeout(()=>{hn.flushSync(()=>{Z(x=>{let U=x.findIndex(I=>I.id===D.id);return U!==-1?[...x.slice(0,U),{...x[U],...D},...x.slice(U+1)]:[D,...x]})})})}),[]),l.useEffect(()=>{if(h!=="system"){B(h);return}h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:D})=>{B(D?"dark":"light")})},[h]),l.useEffect(()=>{$.length<=1&&F(!1)},[$]),l.useEffect(()=>{let D=x=>{var U,I;s.every(ue=>x[ue]||x.code===ue)&&(F(!0),(U=K.current)==null||U.focus()),x.code==="Escape"&&(document.activeElement===K.current||(I=K.current)!=null&&I.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[s]),l.useEffect(()=>{if(K.current)return()=>{te.current&&(te.current.focus({preventScroll:!0}),te.current=null,ie.current=!1)}},[K.current]),$.length?l.createElement("section",{"aria-label":`${w} ${de}`,tabIndex:-1},X.map((D,x)=>{var U;let[I,ue]=D.split("-");return l.createElement("ol",{key:D,dir:O==="auto"?mn():O,tabIndex:-1,ref:K,className:g,"data-sonner-toaster":!0,"data-theme":R,"data-rich-colors":o,"data-y-position":I,"data-x-position":ue,style:{"--front-toast-height":`${((U=ee[0])==null?void 0:U.height)||0}px`,"--offset":typeof d=="number"?`${d}px`:d||Fr,"--width":`${Ur}px`,"--gap":`${P}px`,...T},onBlur:M=>{ie.current&&!M.currentTarget.contains(M.relatedTarget)&&(ie.current=!1,te.current&&(te.current.focus({preventScroll:!0}),te.current=null))},onFocus:M=>{M.target instanceof HTMLElement&&M.target.dataset.dismissible==="false"||ie.current||(ie.current=!0,te.current=M.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{ne||F(!1)},onPointerDown:M=>{M.target instanceof HTMLElement&&M.target.dataset.dismissible==="false"||C(!0)},onPointerUp:()=>C(!1)},$.filter(M=>!M.position&&x===0||M.position===D).map((M,he)=>{var be,Pe;return l.createElement(Gr,{key:M.id,icons:_,index:he,toast:M,duration:(be=b==null?void 0:b.duration)!=null?be:y,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:t,visibleToasts:N,closeButton:(Pe=b==null?void 0:b.closeButton)!=null?Pe:u,interacting:ne,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:q,toasts:$.filter(Ee=>Ee.position==M.position),heights:ee.filter(Ee=>Ee.position==M.position),setHeights:ae,expandByDefault:c,gap:P,loadingIcon:W,expanded:G,pauseWhenPageIsHidden:k,cn:H})}))})):null};/*! Bundled license information:
|
32
|
+
<%s key={someKey} {...props} />`,rt,fe,Ct,fe),nt[fe+rt]=!0}}return r===s?Ke(L):Bt(L),L}}function Tt(r,f,v){return ht(r,f,v,!0)}function Ut(r,f,v){return ht(r,f,v,!1)}var _t=Ut,Me=Tt;st.Fragment=s,st.jsx=_t,st.jsxs=Me}()),st}process.env.NODE_ENV==="production"?kt.exports=gn():kt.exports=vn();var p=kt.exports;function gt(n,t){return t?p.jsx(t,{size:n,strokeWidth:2.5}):p.jsx(p.Fragment,{})}function yn(n){const{variant:t="ghost",scheme:a="primary",size:s="md",leftIcon:l,rightIcon:u,className:g="",children:d,...h}=n,y={md:12,lg:14}[s];return{className:`arkyn_badge ${t} ${a} ${s} ${g}`.trim(),children:d,leftIcon:gt(y,l),rightIcon:gt(y,u),...h}}function bn(n){const{leftIcon:t,children:a,rightIcon:s,...l}=yn(n);return p.jsxs("div",{...l,children:[t,a,s]})}function xn(n){const{className:t,orientation:a="horizontal",...s}=n,l=`arkyn_divider ${a} ${t}`;return p.jsx("div",{className:l,...s})}function wn({className:n,...t}){const a="arkyn_skeleton "+n;return p.jsx("div",{className:a.trim(),...t})}function En(n){const{isLoading:t=!1,scheme:a="primary",variant:s="solid",loadingText:l,size:u="md",leftIcon:g,rightIcon:d,disabled:h,className:o="",children:y,...T}=n,b={xs:12,sm:16,md:20,lg:24}[u];return{className:`arkyn_button loading_text_${!!l} ${s} ${a} ${u} loading_${t} ${o}`.trim(),loadingText:l,children:y,iconSize:b,disabled:h||t,leftIcon:gt(b,g),rightIcon:gt(b,d),...T}}function Sn(n){const{leftIcon:t,rightIcon:a,iconSize:s,children:l,loadingText:u,...g}=En(n);return p.jsxs("button",{...g,children:[p.jsxs("div",{className:"spinner",children:[p.jsx(Te.Loader2,{size:s,strokeWidth:2.5}),u&&u]}),p.jsxs("div",{className:"content",children:[t,l,a]})]})}const Yt=c.createContext({});function Tn({children:n,...t}){var d,h;const a=at.useActionData(),s=c.useRef(null),l=((d=s.current)==null?void 0:d.name)||"",u=((h=a==null?void 0:a.fieldErrors)==null?void 0:h[l])||null,g=c.useId();return p.jsx(Yt.Provider,{value:{error:u,id:g,inputRef:s},children:p.jsx("section",{className:"arkyn_form_controller",...t,children:n})})}function Ue(){return c.useContext(Yt)}function _n(n){const{name:t,className:a="",size:s="md",isError:l,defaultChecked:u=!1,checked:g=null,onCheck:d,value:h,...o}=n,{id:y,inputRef:T,error:N}=Ue(),b=l||!!N,[O,P]=c.useState(u||!1),W=typeof g=="boolean"?g:O,_=`arkyn_checkbox ${s} ${b?"error":""} ${W?"checked":""} ${a}`;function w(){const k=O;P(!k),d&&d(k?"":h||"checked")}return p.jsxs("div",{id:y,className:_,onClick:w,...o,children:[p.jsx("input",{type:"hidden",name:t,ref:T,value:W?h||"checked":""}),p.jsx(Te.Check,{})]})}function Cn({children:n}){const{error:t}=Ue();return n?p.jsx("strong",{className:"arkyn_form_error",children:n}):t?p.jsx("strong",{className:"arkyn_form_error",children:t}):p.jsx(p.Fragment,{})}function Nn(n){const{showAsterisk:t=!1,className:a="",...s}=n;return{className:`arkyn_form_label ${t?"show-asterisk":""} ${a}`.trim(),...s}}function kn(n){const{id:t}=Ue();return p.jsx("label",{...Nn(n),htmlFor:t})}const Vt={xs:12,sm:16,md:20,lg:24};function Rn(n){const{isLoading:t=!1,scheme:a="primary",variant:s="solid",size:l="md",icon:u,disabled:g,className:d="",...h}=n,o=`arkyn_icon_button ${s} ${a} ${l} loading_${t} ${d}`;return p.jsxs("button",{disabled:g||t,className:o.trim(),...h,children:[p.jsx("div",{className:"spinner",children:p.jsx(Te.Loader2,{size:Vt[l],strokeWidth:2.5})}),p.jsx("div",{className:"content "+l,children:p.jsx(u,{size:Vt[l],strokeWidth:2.5})})]})}function We(n,t,a){if(!n)return p.jsx(p.Fragment,{});if(typeof n=="string")return p.jsx("p",{className:a,children:n});const s=n;return p.jsx("p",{className:a,children:p.jsx(s,{color:"var(--secondary-600)",size:t,strokeWidth:2.5})})}function Rt(n){return n&&n.replace(/[^0-9]/g,"")}function Gt(n,t){let a="",s=0;return Array.from(n).forEach((l,u)=>{t[u+s].match(/[0-9]/)||(a+=t[u+s],s++),a+=l}),a}function qt(n){return n.length>11?"CNPJ":"CPF"}const It={CPF:"999.999.999-999",CNPJ:"99.999.999/9999-99"},Kt=Rt(It.CNPJ).length;function In(n,t){const{isLoading:a,isError:s,size:l="md",className:u="",variant:g="solid",prefix:d,sufix:h,leftIcon:o,rightIcon:y,disabled:T,defaultValue:N,readOnly:b,onFocus:O,onBlur:P,title:W,style:_,onChange:w,...k}=n;function H(R){let B=Rt(R);const K=qt(B);if(!(B.length>Kt))return B=Gt(B,It[K]),B}const $=y?"right":"left",F=`arkyn_input ${d?"hasPrefix":""} ${h?"hasSufix":""} ${g} ${l} ${T||b||a?"opacity":""} ${s?"errored":""} ${t?"focused":""} ${u}`,C={md:20,lg:20}[l];return{isLoading:a,className:F,prefix:We(d,C,"prefix"),sufix:We(h,C,"sufix"),LeftIcon:o,RightIcon:y,defaultValue:H(N||""),disabled:T,readOnly:b,onFocus:O,onBlur:P,title:W,style:_,onChange:w,loadingPosition:$,iconSize:C,Spinner:p.jsx(Te.Loader2,{className:"spinner",size:C,strokeWidth:2.5}),...k}}function An(n){const[t,a]=c.useState(!1),s=c.useRef(null),{inputRef:l,id:u,error:g}=Ue(),d=l||s,h=n.isError||!!g,{disabled:o,title:y,style:T,className:N,prefix:b,sufix:O,iconSize:P,loadingPosition:W,isLoading:_,LeftIcon:w,readOnly:k,onFocus:H,onBlur:$,RightIcon:Z,Spinner:X,onChange:ee,value:ae,defaultValue:G,...F}=In({...n,id:u,isError:h},t),[ne,C]=c.useState(G),R=w&&!_,B=Z&&!_,K=W==="left"&&_,de=W==="right"&&_;function te(){o||!(d!=null&&d.current)||(a(!0),d.current.focus())}function ie(x){let U=Rt(x.target.value);const I=qt(U);U.length>Kt||(U=Gt(U,It[I]),x.target.value=U,C(U),ee&&ee(x))}function q(x){a(!0),H&&H(x)}function D(x){a(!1),$&&$(x)}return p.jsxs("section",{title:y,style:T,onClick:te,className:N,children:[b,K&&X,R&&p.jsx(w,{size:P,strokeWidth:2.5}),p.jsx("input",{disabled:o||_,readOnly:k,ref:d,value:ae||ne,onFocus:q,onChange:ie,onBlur:D,...F}),B&&p.jsx(Z,{size:P,strokeWidth:2.5}),de&&X,O]})}function Ln(n,t){const{isLoading:a,isError:s,size:l="md",className:u="",variant:g="solid",prefix:d,sufix:h,leftIcon:o,rightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,showCents:_=!1,max:w=1e9,onChange:k,...H}=n,$=y?"right":"left",F=`arkyn_input ${d?"hasPrefix":""} ${h?"hasSufix":""} ${g} ${l} ${T||N||a?"opacity":""} ${s?"errored":""} ${t?"focused":""} ${u}`,C={md:20,lg:20}[l];return{isLoading:a,className:F,prefix:We(d,C,"prefix"),sufix:We(h,C,"sufix"),LeftIcon:o,RightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,max:w,onChange:k,showCents:_,loadingPosition:$,iconSize:C,Spinner:p.jsx(Te.Loader2,{className:"spinner",size:C,strokeWidth:2.5}),...H}}const On=/^[1-9]{1}$/,Pn=/^[0-9]{1}$/,Xt=8;function jn(n,t){if(n===0)return"";const a=(n/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"});return t?a:a.replace("R$","").trim()}function Dn(n){const{currencyValue:t,event:a,max:s,setCurrencyValue:l}=n,{key:u,keyCode:g}=a;if(t===0&&!On.test(u)||t!==0&&!Pn.test(u)&&g!==Xt)return;const d=t.toString();let h;if(g!==Xt){const o=t===0?u:`${d}${u}`;h=Number.parseInt(o,10)}else{const o=d.slice(0,-1);h=o===""?0:Number.parseInt(o,10)}h>Number(s)||l(h)}function Mn(n){const[t,a]=c.useState(!1),[s,l]=c.useState(n.defaultValue||0),u=c.useRef(null),{inputRef:g,id:d,error:h}=Ue(),o=g||u,y=n.isError||!!h,{disabled:T,title:N,style:b,className:O,prefix:P,sufix:W,iconSize:_,loadingPosition:w,isLoading:k,LeftIcon:H,readOnly:$,onFocus:Z,onBlur:X,RightIcon:ee,Spinner:ae,value:G,max:F,onKeyDown:ne,onChange:C,showCents:R,...B}=Ln({...n,id:d,isError:y},t),K=H&&!k,de=ee&&!k,te=w==="left"&&k,ie=w==="right"&&k;function q(){T||!(o!=null&&o.current)||(a(!0),o.current.focus())}function D(I){Dn({currencyValue:s,event:I,max:F,setCurrencyValue:l}),C&&C(s),ne&&ne(I)}function x(I){a(!0),Z&&Z(I)}function U(I){a(!1),X&&X(I)}return p.jsxs("section",{title:N,style:b,onClick:q,className:O,children:[P,te&&ae,K&&p.jsx(H,{size:_,strokeWidth:2.5}),p.jsx("input",{value:jn(G||s,R),onKeyDown:D,disabled:T||k,readOnly:$,ref:o,onFocus:x,onBlur:U,onChange:()=>{},...B}),ie&&ae,de&&p.jsx(ee,{size:_,strokeWidth:2.5}),W]})}function zn(n,t){const{isLoading:a,isError:s,size:l="md",className:u="",variant:g="solid",prefix:d,sufix:h,leftIcon:o,rightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,onChange:_,showMask:w=!1,type:k,...H}=n,$=y?"right":"left",F=`arkyn_input ${d?"hasPrefix":""} ${h?"hasSufix":""} ${g} ${l} ${T||N||a?"opacity":""} ${s?"errored":""} ${t?"focused":""} ${u}`,C={md:20,lg:20}[l];return{isLoading:a,className:F,prefix:We(d,C,"prefix"),sufix:We(h,C,"sufix"),LeftIcon:o,RightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,onChange:_,loadingPosition:$,iconSize:C,showMask:w,Spinner:p.jsx(Te.Loader2,{className:"spinner",size:C,strokeWidth:2.5}),...H}}const $n=c.forwardRef((n,t)=>p.jsx("input",{ref:t,...n}));function Fn(n){const[t,a]=c.useState(!1),s=c.useRef(null),{inputRef:l,id:u,error:g}=Ue(),d=l||s,h=n.isError||!!g,{disabled:o,title:y,style:T,className:N,prefix:b,sufix:O,iconSize:P,loadingPosition:W,isLoading:_,LeftIcon:w,readOnly:k,onFocus:H,onBlur:$,RightIcon:Z,Spinner:X,...ee}=zn({...n,id:u,isError:h},t),ae=w&&!_,G=Z&&!_,F=W==="left"&&_,ne=W==="right"&&_;function C(){o||!(d!=null&&d.current)||(a(!0),d.current.focus())}function R(K){a(!0),H&&H(K)}function B(K){a(!1),$&&$(K)}return p.jsxs("section",{title:y,style:T,onClick:C,className:N,children:[b,F&&X,ae&&p.jsx(w,{size:P,strokeWidth:2.5}),p.jsx(pn.InputMask,{component:$n,ref:d,onFocus:R,onBlur:B,...ee}),G&&p.jsx(Z,{size:P,strokeWidth:2.5}),ne&&X,O]})}function Bn(n,t){const{isLoading:a,isError:s,size:l="md",className:u="",variant:g="solid",prefix:d,sufix:h,leftIcon:o,rightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,onChange:_,...w}=n,k=y?"right":"left",ae=`arkyn_input ${d?"hasPrefix":""} ${h?"hasSufix":""} ${g} ${l} ${T||N||a?"opacity":""} ${s?"errored":""} ${t?"focused":""} ${u}`,F={md:20,lg:20}[l];return{isLoading:a,className:ae,prefix:We(d,F,"prefix"),sufix:We(h,F,"sufix"),LeftIcon:o,RightIcon:y,disabled:T,readOnly:N,onFocus:b,onBlur:O,title:P,style:W,onChange:_,loadingPosition:k,iconSize:F,Spinner:p.jsx(Te.Loader2,{className:"spinner",size:F,strokeWidth:2.5}),...w}}function Un(n){const[t,a]=c.useState(!1),s=c.useRef(null),{inputRef:l,id:u,error:g}=Ue(),d=l||s,h=n.isError||!!g,{disabled:o,title:y,style:T,className:N,prefix:b,sufix:O,iconSize:P,loadingPosition:W,isLoading:_,LeftIcon:w,readOnly:k,onFocus:H,onBlur:$,RightIcon:Z,Spinner:X,...ee}=Bn({...n,id:u,isError:h},t),ae=w&&!_,G=Z&&!_,F=W==="left"&&_,ne=W==="right"&&_;function C(){o||!(d!=null&&d.current)||(a(!0),d.current.focus())}function R(K){a(!0),H&&H(K)}function B(K){a(!1),$&&$(K)}return p.jsxs("section",{title:y,style:T,onClick:C,className:N,children:[b,F&&X,ae&&p.jsx(w,{size:P,strokeWidth:2.5}),p.jsx("input",{disabled:o||_,readOnly:k,ref:d,onFocus:R,onBlur:B,...ee}),G&&p.jsx(Z,{size:P,strokeWidth:2.5}),ne&&X,O]})}function Wn(n){return n.type==="currency"?p.jsx(Mn,{...n}):n.type==="masked"?p.jsx(Fn,{...n}):n.type==="cpf-cpnj"?p.jsx(An,{...n}):p.jsx(Un,{...n})}function Hn(n,t,a){if(!n)return p.jsx(p.Fragment,{});if(typeof n=="string")return p.jsx("p",{className:a,children:n});const s=n;return p.jsx("p",{className:a,children:p.jsx(s,{color:"var(--secondary-600)",size:t,strokeWidth:2.5})})}function Yn(n,t){const{isLoading:a,isError:s,size:l="md",className:u="",variant:g="solid",prefix:d,leftIcon:h,disabled:o,readOnly:y,onFocus:T,onBlur:N,title:b,style:O,isSearchable:P=!1,...W}=n,$=`arkyn_select ${d?"hasPrefix":""} ${g} ${l} ${o||y||a?"opacity":""} ${s?"errored":""} ${t?"focused":""} ${u}`,X={md:20,lg:20}[l];return{isLoading:a,className:$,prefix:Hn(d,X,"prefix"),LeftIcon:h,disabled:o,readOnly:y,onFocus:T,onBlur:N,title:b,style:O,isSearchable:P,iconSize:X,Spinner:p.jsx(Te.Loader2,{className:"spinner",size:X,strokeWidth:2.5}),...W}}function Vn(n){var ue;const[t,a]=c.useState(!1),{inputRef:s,id:l,error:u}=Ue(),g=c.useRef(null),d=s||g,h=n.isError||!!u,{disabled:o,title:y,style:T,className:N,prefix:b,iconSize:O,isLoading:P,LeftIcon:W,value:_=null,defaultValue:w="",readOnly:k,onFocus:H,onBlur:$,Spinner:Z,name:X,isSearchable:ee,placeholder:ae,onSelect:G,options:F,optionMaxHeight:ne,...C}=Yn({...n,id:l,isError:h},t),[R,B]=c.useState(w),[K,de]=c.useState("");function te(){o||!(d!=null&&d.current)||(a(!0),d.current.focus())}function ie(M){a(!0),H&&H(M)}function q(){a(!1),$&&d.current&&d.current.blur()}const D=typeof _=="string"?_:R,x=((ue=F.find(M=>M.value===D))==null?void 0:ue.label)||"",U=()=>{if(ee){if(!t&&x)return!0;if(!t&&!x||t)return!1}if(!ee){if(!t&&x)return!0;if(!t&&!x)return!1;if(t&&x)return!0;if(t&&!x)return!1}},I=F.filter(M=>ee?M.label.toLowerCase().includes(K.toLowerCase()):!0);return p.jsxs(p.Fragment,{children:[p.jsxs("section",{title:y,style:T,onClick:te,className:`${N} placeholder_dark_${U()}`,children:[b,W&&p.jsx(W,{size:O,strokeWidth:2.5}),p.jsx("input",{disabled:o||P,readOnly:!ee,value:K||"",placeholder:x||ae,ref:d,onFocus:ie,onBlur:()=>de(""),...C,onChange:M=>de(M.target.value)}),p.jsx("input",{type:"hidden",name:X,value:D||"",readOnly:!0}),t&&p.jsxs("ul",{className:"arkyn_select_content",style:{overflow:"auto",maxHeight:ne},children:[I.map(({label:M,value:he})=>p.jsxs("li",{className:D===he?"active":"",onClick:()=>{B(R!==he?he:""),G&&G({label:M,value:he})},children:[M," ",p.jsx(Te.Check,{})]},he)),I.length<=0&&p.jsx("p",{children:"Sem opções disponíveis"})]}),!P&&p.jsx(Te.ChevronDown,{className:"arkyn_select_arrow",size:O,strokeWidth:2.5}),P&&Z]}),t&&p.jsx("aside",{className:"arkyn_select_overlay",onClick:q})]})}function Gn(n){const{className:t="",...a}=n;return{className:`arkyn_breadcrumb ${t}`.trim(),...a}}function qn(n){const{pathname:t}=at.useLocation(),{className:a="",disabled:s=!1,to:l,...u}=n,g=t===l?"active":"inactive",d=`arkyn_breadcrumb_link ${g} ${a}`;return{to:l,className:d.trim(),disabled:s||g==="active",...u}}function Kn(n){const{className:t,...a}=Gn(n);return p.jsx("nav",{className:t,...a})}function Xn(n){const{children:t,className:a,disabled:s,...l}=qn(n);return s?p.jsxs("p",{className:a,children:[p.jsx(Te.ChevronRight,{size:14,strokeWidth:2.5}),t]}):p.jsxs(at.Link,{className:a,...l,children:[p.jsx(Te.ChevronRight,{size:14,strokeWidth:2.5}),t]})}const Jt=c.createContext({});function Jn(n){const{isVisibled:t,makeInvisible:a,children:s,className:l="",...u}=n,d=`arkyn_modal_container ${t?"visible":""} ${l}`;return p.jsx(Jt.Provider,{value:{makeInvisible:a},children:p.jsx(Nt.AnimatePresence,{children:t&&p.jsxs("aside",{className:d.trim(),...u,children:[p.jsx(Nt.motion.div,{className:"overlay",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:a}),p.jsx(Nt.motion.div,{className:"content",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0,scale:.75},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},children:s})]})})})}function Zn(n){const{alignment:t="right",className:a,...s}=n,l=`arkyn_modal_footer ${t} ${a}`;return p.jsx("footer",{className:l.trim(),...s})}function Qn(n){const{showCloseButton:t,className:a,children:s,...l}=n,{makeInvisible:u}=c.useContext(Jt),d=`arkyn_modal_header ${t?"show-close":""} ${a}`;return p.jsxs("header",{className:d.trim(),...l,children:[s,p.jsx("button",{type:"button",onClick:u,children:p.jsx(Te.X,{size:24})})]})}const er={Container:Jn,Header:Qn,Footer:Zn};function tr(n){const{text:t,size:a="lg",children:s,orientation:l="top",className:u,...g}=n;return p.jsxs("div",{className:`arkyn_tooltip ${a} ${l} ${u}`,...g,children:[s,p.jsx("div",{className:"arkyn_tooltip_text",children:t})]})}const At=c.createContext({});function nr(){const n=at.useActionData(),{closeModal:t}=c.useContext(At);c.useEffect(()=>{const a=n==null?void 0:n.closeModalKey;a&&t(a)},[n])}function rr(n){const t=c.useContext(At);if(Object.entries(t).length===0)throw new Error("useModal must be used within a Provider");if(n){const{modalData:a,modalIsOpen:s,openModal:l,closeModal:u}=t,g=s(n),d=a(n);return{modalIsOpen:g,modalData:d,openModal:y=>l(n,y==null?void 0:y.data),closeModal:()=>u(n)}}else return t}function ar(n=""){const t=at.useLocation(),a=new URLSearchParams(t.search),s=n?`${n}:`:"",l=u=>{Object.entries(u).forEach(([g,d])=>{d===void 0?a.delete(`${s}${g}`):a.set(`${s}${g}`,String(d))})};return{getParam:u=>a.get(`${s}${u}`),getScopedSearch:u=>{l(u);let g=a.toString();return g&&(g="?"+g),g}}}const Zt=c.createContext({});function or(){const n=c.useContext(Zt);if(Object.entries(n).length===0)throw new Error("useToast must be used within a Provider");return n}function sr(n){const{children:t=!1}=n,[a,s]=c.useState([]);function l(h){return!!a.some(o=>o.key===h)}function u(h){var o;return(o=a.find(y=>y.key===h))==null?void 0:o.data}function g(h,o){const y=l(h);s(y?T=>[...T.filter(b=>b.key!==h),{key:h,data:o}]:[...a,{key:h,data:o}])}function d(h){s(a.filter(o=>o.key!==h))}return p.jsx(At.Provider,{value:{modalIsOpen:l,modalData:u,openModal:g,closeModal:d},children:t})}var{entries:Qt,setPrototypeOf:en,isFrozen:ir,getPrototypeOf:lr,getOwnPropertyDescriptor:cr}=Object,{freeze:ye,seal:ke,create:tn}=Object,{apply:Lt,construct:Ot}=typeof Reflect<"u"&&Reflect;ye||(ye=function(n){return n}),ke||(ke=function(n){return n}),Lt||(Lt=function(n,t,a){return n.apply(t,a)}),Ot||(Ot=function(n,t){return new n(...t)});var vt=Ce(Array.prototype.forEach),nn=Ce(Array.prototype.pop),it=Ce(Array.prototype.push),yt=Ce(String.prototype.toLowerCase),Pt=Ce(String.prototype.toString),rn=Ce(String.prototype.match),lt=Ce(String.prototype.replace),ur=Ce(String.prototype.indexOf),dr=Ce(String.prototype.trim),Le=Ce(Object.prototype.hasOwnProperty),_e=Ce(RegExp.prototype.test),ct=fr(TypeError);function Ce(n){return function(t){for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return Lt(n,t,s)}}function fr(n){return function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return Ot(n,a)}}function z(n,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yt;en&&en(n,null);let s=t.length;for(;s--;){let l=t[s];if(typeof l=="string"){let u=a(l);u!==l&&(ir(t)||(t[s]=u),l=u)}n[l]=!0}return n}function mr(n){for(let t=0;t<n.length;t++)Le(n,t)||(n[t]=null);return n}function Xe(n){let t=tn(null);for(let[a,s]of Qt(n))Le(n,a)&&(Array.isArray(s)?t[a]=mr(s):s&&typeof s=="object"&&s.constructor===Object?t[a]=Xe(s):t[a]=s);return t}function bt(n,t){for(;n!==null;){let s=cr(n,t);if(s){if(s.get)return Ce(s.get);if(typeof s.value=="function")return Ce(s.value)}n=lr(n)}function a(){return null}return a}var an=ye(["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"]),jt=ye(["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"]),Dt=ye(["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"]),pr=ye(["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"]),Mt=ye(["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"]),hr=ye(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),on=ye(["#text"]),sn=ye(["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"]),zt=ye(["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"]),ln=ye(["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"]),xt=ye(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gr=ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vr=ke(/<%[\w\W]*|[\w\W]*%>/gm),yr=ke(/\${[\w\W]*}/gm),br=ke(/^data-[\-\w.\u00B7-\uFFFF]/),xr=ke(/^aria-[\-\w]+$/),cn=ke(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wr=ke(/^(?:\w+script|data):/i),Er=ke(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),un=ke(/^html$/i),Sr=ke(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i),dn=Object.freeze({__proto__:null,MUSTACHE_EXPR:gr,ERB_EXPR:vr,TMPLIT_EXPR:yr,DATA_ATTR:br,ARIA_ATTR:xr,IS_ALLOWED_URI:cn,IS_SCRIPT_OR_DATA:wr,ATTR_WHITESPACE:Er,DOCTYPE_NAME:un,CUSTOM_ELEMENT:Sr}),Tr=function(){return typeof window>"u"?null:window},_r=function(n,t){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let a=null,s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(a=t.getAttribute(s));let l="dompurify"+(a?"#"+a:"");try{return n.createPolicy(l,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}};function fn(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tr(),t=e=>fn(e);if(t.version="3.0.10",t.removed=[],!n||!n.document||n.document.nodeType!==9)return t.isSupported=!1,t;let{document:a}=n,s=a,l=s.currentScript,{DocumentFragment:u,HTMLTemplateElement:g,Node:d,Element:h,NodeFilter:o,NamedNodeMap:y=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:T,DOMParser:N,trustedTypes:b}=n,O=h.prototype,P=bt(O,"cloneNode"),W=bt(O,"nextSibling"),_=bt(O,"childNodes"),w=bt(O,"parentNode");if(typeof g=="function"){let e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let k,H="",{implementation:$,createNodeIterator:Z,createDocumentFragment:X,getElementsByTagName:ee}=a,{importNode:ae}=s,G={};t.isSupported=typeof Qt=="function"&&typeof w=="function"&&$&&$.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:F,ERB_EXPR:ne,TMPLIT_EXPR:C,DATA_ATTR:R,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:de,CUSTOM_ELEMENT:te}=dn,{IS_ALLOWED_URI:ie}=dn,q=null,D=z({},[...an,...jt,...Dt,...Mt,...on]),x=null,U=z({},[...sn,...zt,...ln,...xt]),I=Object.seal(tn(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}})),ue=null,M=null,he=!0,be=!0,Pe=!1,Ee=!0,je=!1,me=!1,Je=!1,Ze=!1,oe=!1,pe=!1,Fe=!1,Qe=!0,Re=!1,ut="user-content-",He=!0,Ne=!1,xe={},De=null,Ie=z({},["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"]),Ye=null,ze=z({},["audio","video","img","source","image","track"]),Ve=null,Ge=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Be="http://www.w3.org/1998/Math/MathML",Ae="http://www.w3.org/2000/svg",ce="http://www.w3.org/1999/xhtml",$e=ce,qe=!1,E=null,se=z({},[Be,Ae,ce],Pt),Q=null,Se=["application/xhtml+xml","text/html"],ge="text/html",re=null,we=null,dt=a.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},tt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(we&&we===e)){if((!e||typeof e!="object")&&(e={}),e=Xe(e),Q=Se.indexOf(e.PARSER_MEDIA_TYPE)===-1?ge:e.PARSER_MEDIA_TYPE,re=Q==="application/xhtml+xml"?Pt:yt,q=Le(e,"ALLOWED_TAGS")?z({},e.ALLOWED_TAGS,re):D,x=Le(e,"ALLOWED_ATTR")?z({},e.ALLOWED_ATTR,re):U,E=Le(e,"ALLOWED_NAMESPACES")?z({},e.ALLOWED_NAMESPACES,Pt):se,Ve=Le(e,"ADD_URI_SAFE_ATTR")?z(Xe(Ge),e.ADD_URI_SAFE_ATTR,re):Ge,Ye=Le(e,"ADD_DATA_URI_TAGS")?z(Xe(ze),e.ADD_DATA_URI_TAGS,re):ze,De=Le(e,"FORBID_CONTENTS")?z({},e.FORBID_CONTENTS,re):Ie,ue=Le(e,"FORBID_TAGS")?z({},e.FORBID_TAGS,re):{},M=Le(e,"FORBID_ATTR")?z({},e.FORBID_ATTR,re):{},xe=Le(e,"USE_PROFILES")?e.USE_PROFILES:!1,he=e.ALLOW_ARIA_ATTR!==!1,be=e.ALLOW_DATA_ATTR!==!1,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=e.SAFE_FOR_TEMPLATES||!1,me=e.WHOLE_DOCUMENT||!1,oe=e.RETURN_DOM||!1,pe=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Ze=e.FORCE_BODY||!1,Qe=e.SANITIZE_DOM!==!1,Re=e.SANITIZE_NAMED_PROPS||!1,He=e.KEEP_CONTENT!==!1,Ne=e.IN_PLACE||!1,ie=e.ALLOWED_URI_REGEXP||cn,$e=e.NAMESPACE||ce,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),je&&(be=!1),pe&&(oe=!0),xe&&(q=z({},on),x=[],xe.html===!0&&(z(q,an),z(x,sn)),xe.svg===!0&&(z(q,jt),z(x,zt),z(x,xt)),xe.svgFilters===!0&&(z(q,Dt),z(x,zt),z(x,xt)),xe.mathMl===!0&&(z(q,Mt),z(x,ln),z(x,xt))),e.ADD_TAGS&&(q===D&&(q=Xe(q)),z(q,e.ADD_TAGS,re)),e.ADD_ATTR&&(x===U&&(x=Xe(x)),z(x,e.ADD_ATTR,re)),e.ADD_URI_SAFE_ATTR&&z(Ve,e.ADD_URI_SAFE_ATTR,re),e.FORBID_CONTENTS&&(De===Ie&&(De=Xe(De)),z(De,e.FORBID_CONTENTS,re)),He&&(q["#text"]=!0),me&&z(q,["html","head","body"]),q.table&&(z(q,["tbody"]),delete ue.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=e.TRUSTED_TYPES_POLICY,H=k.createHTML("")}else k===void 0&&(k=_r(b,l)),k!==null&&typeof H=="string"&&(H=k.createHTML(""));ye&&ye(e),we=e}},St=z({},["mi","mo","mn","ms","mtext"]),ft=z({},["foreignobject","desc","title","annotation-xml"]),Ft=z({},["title","style","font","a","script"]),mt=z({},[...jt,...Dt,...pr]),pt=z({},[...Mt,...hr]),Bt=function(e){let m=w(e);(!m||!m.tagName)&&(m={namespaceURI:$e,tagName:"template"});let i=yt(e.tagName),A=yt(m.tagName);return E[e.namespaceURI]?e.namespaceURI===Ae?m.namespaceURI===ce?i==="svg":m.namespaceURI===Be?i==="svg"&&(A==="annotation-xml"||St[A]):!!mt[i]:e.namespaceURI===Be?m.namespaceURI===ce?i==="math":m.namespaceURI===Ae?i==="math"&&ft[A]:!!pt[i]:e.namespaceURI===ce?m.namespaceURI===Ae&&!ft[A]||m.namespaceURI===Be&&!St[A]?!1:!pt[i]&&(Ft[i]||!mt[i]):!!(Q==="application/xhtml+xml"&&E[e.namespaceURI]):!1},Ke=function(e){it(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch{e.remove()}},nt=function(e,m){try{it(t.removed,{attribute:m.getAttributeNode(e),from:m})}catch{it(t.removed,{attribute:null,from:m})}if(m.removeAttribute(e),e==="is"&&!x[e])if(oe||pe)try{Ke(m)}catch{}else try{m.setAttribute(e,"")}catch{}},ht=function(e){let m=null,i=null;if(Ze)e="<remove></remove>"+e;else{let L=rn(e,/^[\r\n\t ]+/);i=L&&L[0]}Q==="application/xhtml+xml"&&$e===ce&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let A=k?k.createHTML(e):e;if($e===ce)try{m=new N().parseFromString(A,Q)}catch{}if(!m||!m.documentElement){m=$.createDocument($e,"template",null);try{m.documentElement.innerHTML=qe?H:A}catch{}}let j=m.body||m.documentElement;return e&&i&&j.insertBefore(a.createTextNode(i),j.childNodes[0]||null),$e===ce?ee.call(m,me?"html":"body")[0]:me?m.documentElement:j},Tt=function(e){return Z.call(e.ownerDocument||e,e,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION,null)},Ut=function(e){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")},_t=function(e){return typeof d=="function"&&e instanceof d},Me=function(e,m,i){G[e]&&vt(G[e],A=>{A.call(t,m,i,we)})},r=function(e){let m=null;if(Me("beforeSanitizeElements",e,null),Ut(e))return Ke(e),!0;let i=re(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:i,allowedTags:q}),e.hasChildNodes()&&!_t(e.firstElementChild)&&_e(/<[/\w]/g,e.innerHTML)&&_e(/<[/\w]/g,e.textContent))return Ke(e),!0;if(!q[i]||ue[i]){if(!ue[i]&&v(i)&&(I.tagNameCheck instanceof RegExp&&_e(I.tagNameCheck,i)||I.tagNameCheck instanceof Function&&I.tagNameCheck(i)))return!1;if(He&&!De[i]){let A=w(e)||e.parentNode,j=_(e)||e.childNodes;if(j&&A){let L=j.length;for(let le=L-1;le>=0;--le)A.insertBefore(P(j[le],!0),W(e))}}return Ke(e),!0}return e instanceof h&&!Bt(e)||(i==="noscript"||i==="noembed"||i==="noframes")&&_e(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ke(e),!0):(je&&e.nodeType===3&&(m=e.textContent,vt([F,ne,C],A=>{m=lt(m,A," ")}),e.textContent!==m&&(it(t.removed,{element:e.cloneNode()}),e.textContent=m)),Me("afterSanitizeElements",e,null),!1)},f=function(e,m,i){if(Qe&&(m==="id"||m==="name")&&(i in a||i in dt))return!1;if(!(be&&!M[m]&&_e(R,m))&&!(he&&_e(B,m))){if(!x[m]||M[m]){if(!(v(e)&&(I.tagNameCheck instanceof RegExp&&_e(I.tagNameCheck,e)||I.tagNameCheck instanceof Function&&I.tagNameCheck(e))&&(I.attributeNameCheck instanceof RegExp&&_e(I.attributeNameCheck,m)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(m))||m==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&_e(I.tagNameCheck,i)||I.tagNameCheck instanceof Function&&I.tagNameCheck(i))))return!1}else if(!Ve[m]&&!_e(ie,lt(i,de,""))&&!((m==="src"||m==="xlink:href"||m==="href")&&e!=="script"&&ur(i,"data:")===0&&Ye[e])&&!(Pe&&!_e(K,lt(i,de,"")))&&i)return!1}return!0},v=function(e){return e!=="annotation-xml"&&rn(e,te)},S=function(e){Me("beforeSanitizeAttributes",e,null);let{attributes:m}=e;if(!m)return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:x},A=m.length;for(;A--;){let j=m[A],{name:L,namespaceURI:le,value:ve}=j,fe=re(L),J=L==="value"?ve:dr(ve);if(i.attrName=fe,i.attrValue=J,i.keepAttr=!0,i.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,i),J=i.attrValue,i.forceKeepAttr||(nt(L,e),!i.keepAttr))continue;if(!Ee&&_e(/\/>/i,J)){nt(L,e);continue}je&&vt([F,ne,C],Ct=>{J=lt(J,Ct," ")});let rt=re(e.nodeName);if(f(rt,fe,J)){if(Re&&(fe==="id"||fe==="name")&&(nt(L,e),J=ut+J),k&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!le)switch(b.getAttributeType(rt,fe)){case"TrustedHTML":{J=k.createHTML(J);break}case"TrustedScriptURL":{J=k.createScriptURL(J);break}}try{le?e.setAttributeNS(le,L,J):e.setAttribute(L,J),nn(t.removed)}catch{}}}Me("afterSanitizeAttributes",e,null)},Y=function e(m){let i=null,A=Tt(m);for(Me("beforeSanitizeShadowDOM",m,null);i=A.nextNode();)Me("uponSanitizeShadowNode",i,null),!r(i)&&(i.content instanceof u&&e(i.content),S(i));Me("afterSanitizeShadowDOM",m,null)};return t.sanitize=function(e){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,A=null,j=null,L=null;if(qe=!e,qe&&(e="<!-->"),typeof e!="string"&&!_t(e))if(typeof e.toString=="function"){if(e=e.toString(),typeof e!="string")throw ct("dirty is not a string, aborting")}else throw ct("toString is not a function");if(!t.isSupported)return e;if(Je||tt(m),t.removed=[],typeof e=="string"&&(Ne=!1),Ne){if(e.nodeName){let fe=re(e.nodeName);if(!q[fe]||ue[fe])throw ct("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)i=ht("<!---->"),A=i.ownerDocument.importNode(e,!0),A.nodeType===1&&A.nodeName==="BODY"||A.nodeName==="HTML"?i=A:i.appendChild(A);else{if(!oe&&!je&&!me&&e.indexOf("<")===-1)return k&&Fe?k.createHTML(e):e;if(i=ht(e),!i)return oe?null:Fe?H:""}i&&Ze&&Ke(i.firstChild);let le=Tt(Ne?e:i);for(;j=le.nextNode();)r(j)||(j.content instanceof u&&Y(j.content),S(j));if(Ne)return e;if(oe){if(pe)for(L=X.call(i.ownerDocument);i.firstChild;)L.appendChild(i.firstChild);else L=i;return(x.shadowroot||x.shadowrootmode)&&(L=ae.call(s,L,!0)),L}let ve=me?i.outerHTML:i.innerHTML;return me&&q["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&_e(un,i.ownerDocument.doctype.name)&&(ve="<!DOCTYPE "+i.ownerDocument.doctype.name+`>
|
33
|
+
`+ve),je&&vt([F,ne,C],fe=>{ve=lt(ve,fe," ")}),k&&Fe?k.createHTML(ve):ve},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tt(e),Je=!0},t.clearConfig=function(){we=null,Je=!1},t.isValidAttribute=function(e,m,i){we||tt({});let A=re(e),j=re(m);return f(A,j,i)},t.addHook=function(e,m){typeof m=="function"&&(G[e]=G[e]||[],it(G[e],m))},t.removeHook=function(e){if(G[e])return nn(G[e])},t.removeHooks=function(e){G[e]&&(G[e]=[])},t.removeAllHooks=function(){G={}},t}var Cr=fn(),Nr=n=>{switch(n){case"success":return Ir;case"info":return Lr;case"warning":return Ar;case"error":return Or;default:return null}},kr=Array(12).fill(0),Rr=({visible:n})=>c.createElement("div",{className:"sonner-loading-wrapper","data-visible":n},c.createElement("div",{className:"sonner-spinner"},kr.map((t,a)=>c.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),Ir=c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},c.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Ar=c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},c.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Lr=c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},c.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Or=c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},c.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Pr=()=>{let[n,t]=c.useState(!1);return c.useEffect(()=>{let a=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),n},$t=1,jr=class{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{let t=this.subscribers.indexOf(n);this.subscribers.splice(t,1)}),this.publish=n=>{this.subscribers.forEach(t=>t(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var t;let{message:a,...s}=n,l=typeof(n==null?void 0:n.id)=="number"||((t=n.id)==null?void 0:t.length)>0?n.id:$t++,u=this.toasts.find(d=>d.id===l),g=n.dismissible===void 0?!0:n.dismissible;return u?this.toasts=this.toasts.map(d=>d.id===l?(this.publish({...d,...n,id:l,title:a}),{...d,...n,id:l,dismissible:g,title:a}):d):this.addToast({title:a,...s,dismissible:g,id:l}),l},this.dismiss=n=>(n||this.toasts.forEach(t=>{this.subscribers.forEach(a=>a({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:n,dismiss:!0})),n),this.message=(n,t)=>this.create({...t,message:n}),this.error=(n,t)=>this.create({...t,message:n,type:"error"}),this.success=(n,t)=>this.create({...t,type:"success",message:n}),this.info=(n,t)=>this.create({...t,type:"info",message:n}),this.warning=(n,t)=>this.create({...t,type:"warning",message:n}),this.loading=(n,t)=>this.create({...t,type:"loading",message:n}),this.promise=(n,t)=>{if(!t)return;let a;t.loading!==void 0&&(a=this.create({...t,promise:n,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let s=n instanceof Promise?n:n(),l=a!==void 0;return s.then(u=>{if(u&&typeof u.ok=="boolean"&&!u.ok){l=!1;let g=typeof t.error=="function"?t.error(`HTTP error! status: ${u.status}`):t.error,d=typeof t.description=="function"?t.description(`HTTP error! status: ${u.status}`):t.description;this.create({id:a,type:"error",message:g,description:d})}else if(t.success!==void 0){l=!1;let g=typeof t.success=="function"?t.success(u):t.success,d=typeof t.description=="function"?t.description(u):t.description;this.create({id:a,type:"success",message:g,description:d})}}).catch(u=>{if(t.error!==void 0){l=!1;let g=typeof t.error=="function"?t.error(u):t.error,d=typeof t.description=="function"?t.description(u):t.description;this.create({id:a,type:"error",message:g,description:d})}}).finally(()=>{var u;l&&(this.dismiss(a),a=void 0),(u=t.finally)==null||u.call(t)}),a},this.custom=(n,t)=>{let a=(t==null?void 0:t.id)||$t++;return this.create({jsx:n(a),id:a,...t}),a},this.subscribers=[],this.toasts=[]}},Oe=new jr,Dr=(n,t)=>{let a=(t==null?void 0:t.id)||$t++;return Oe.addToast({title:n,...t,id:a}),a},Mr=Dr,wt=Object.assign(Mr,{success:Oe.success,info:Oe.info,warning:Oe.warning,error:Oe.error,custom:Oe.custom,message:Oe.message,promise:Oe.promise,dismiss:Oe.dismiss,loading:Oe.loading});function zr(n,{insertAt:t}={}){if(!n||typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",t==="top"&&a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}zr(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
34
|
+
`);function Et(n){return n.label!==void 0&&typeof n.onClick=="function"}var $r=3,Fr="32px",Br=4e3,Ur=356,Wr=14,Hr=20,Yr=200;function Vr(...n){return n.filter(Boolean).join(" ")}var Gr=n=>{var t,a,s,l,u,g,d;let{invert:h,toast:o,unstyled:y,interacting:T,setHeights:N,visibleToasts:b,heights:O,index:P,toasts:W,expanded:_,removeToast:w,closeButton:k,style:H,cancelButtonStyle:$,actionButtonStyle:Z,className:X="",descriptionClassName:ee="",duration:ae,position:G,gap:F,loadingIcon:ne,expandByDefault:C,classNames:R,icons:B,closeButtonAriaLabel:K="Close toast",pauseWhenPageIsHidden:de,cn:te}=n,[ie,q]=c.useState(!1),[D,x]=c.useState(!1),[U,I]=c.useState(!1),[ue,M]=c.useState(!1),[he,be]=c.useState(0),[Pe,Ee]=c.useState(0),je=c.useRef(null),me=c.useRef(null),Je=P===0,Ze=P+1<=b,oe=o.type,pe=o.dismissible!==!1,Fe=o.className||"",Qe=o.descriptionClassName||"",Re=c.useMemo(()=>O.findIndex(E=>E.toastId===o.id)||0,[O,o.id]),ut=c.useMemo(()=>{var E;return(E=o.closeButton)!=null?E:k},[o.closeButton,k]),He=c.useMemo(()=>o.duration||ae||Br,[o.duration,ae]),Ne=c.useRef(0),xe=c.useRef(0),De=c.useRef(0),Ie=c.useRef(null),[Ye,ze]=G.split("-"),Ve=c.useMemo(()=>O.reduce((E,se,Q)=>Q>=Re?E:E+se.height,0),[O,Re]),Ge=Pr(),Be=o.invert||h,Ae=oe==="loading";xe.current=c.useMemo(()=>Re*F+Ve,[Re,Ve]),c.useEffect(()=>{q(!0)},[]),c.useLayoutEffect(()=>{if(!ie)return;let E=me.current,se=E.style.height;E.style.height="auto";let Q=E.getBoundingClientRect().height;E.style.height=se,Ee(Q),N(Se=>Se.find(ge=>ge.toastId===o.id)?Se.map(ge=>ge.toastId===o.id?{...ge,height:Q}:ge):[{toastId:o.id,height:Q,position:o.position},...Se])},[ie,o.title,o.description,N,o.id]);let ce=c.useCallback(()=>{x(!0),be(xe.current),N(E=>E.filter(se=>se.toastId!==o.id)),setTimeout(()=>{w(o)},Yr)},[o,w,N,xe]);c.useEffect(()=>{if(o.promise&&oe==="loading"||o.duration===1/0||o.type==="loading")return;let E,se=He;return _||T||de&&Ge?(()=>{if(De.current<Ne.current){let Q=new Date().getTime()-Ne.current;se=se-Q}De.current=new Date().getTime()})():se!==1/0&&(Ne.current=new Date().getTime(),E=setTimeout(()=>{var Q;(Q=o.onAutoClose)==null||Q.call(o,o),ce()},se)),()=>clearTimeout(E)},[_,T,C,o,He,ce,o.promise,oe,de,Ge]),c.useEffect(()=>{let E=me.current;if(E){let se=E.getBoundingClientRect().height;return Ee(se),N(Q=>[{toastId:o.id,height:se,position:o.position},...Q]),()=>N(Q=>Q.filter(Se=>Se.toastId!==o.id))}},[N,o.id]),c.useEffect(()=>{o.delete&&ce()},[ce,o.delete]);function $e(){return B!=null&&B.loading?c.createElement("div",{className:"sonner-loader","data-visible":oe==="loading"},B.loading):ne?c.createElement("div",{className:"sonner-loader","data-visible":oe==="loading"},ne):c.createElement(Rr,{visible:oe==="loading"})}function qe(E){return{__html:Cr.sanitize(E)}}return c.createElement("li",{"aria-live":o.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:me,className:te(X,Fe,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[oe],(a=o==null?void 0:o.classNames)==null?void 0:a[oe]),"data-sonner-toast":"","data-styled":!(o.jsx||o.unstyled||y),"data-mounted":ie,"data-promise":!!o.promise,"data-removed":D,"data-visible":Ze,"data-y-position":Ye,"data-x-position":ze,"data-index":P,"data-front":Je,"data-swiping":U,"data-dismissible":pe,"data-type":oe,"data-invert":Be,"data-swipe-out":ue,"data-expanded":!!(_||C&&ie),style:{"--index":P,"--toasts-before":P,"--z-index":W.length-P,"--offset":`${D?he:xe.current}px`,"--initial-height":C?"auto":`${Pe}px`,...H,...o.style},onPointerDown:E=>{Ae||!pe||(je.current=new Date,be(xe.current),E.target.setPointerCapture(E.pointerId),E.target.tagName!=="BUTTON"&&(I(!0),Ie.current={x:E.clientX,y:E.clientY}))},onPointerUp:()=>{var E,se,Q,Se;if(ue||!pe)return;Ie.current=null;let ge=Number(((E=me.current)==null?void 0:E.style.getPropertyValue("--swipe-amount").replace("px",""))||0),re=new Date().getTime()-((se=je.current)==null?void 0:se.getTime()),we=Math.abs(ge)/re;if(Math.abs(ge)>=Hr||we>.11){be(xe.current),(Q=o.onDismiss)==null||Q.call(o,o),ce(),M(!0);return}(Se=me.current)==null||Se.style.setProperty("--swipe-amount","0px"),I(!1)},onPointerMove:E=>{var se;if(!Ie.current||!pe)return;let Q=E.clientY-Ie.current.y,Se=E.clientX-Ie.current.x,ge=(Ye==="top"?Math.min:Math.max)(0,Q),re=E.pointerType==="touch"?10:2;Math.abs(ge)>re?(se=me.current)==null||se.style.setProperty("--swipe-amount",`${Q}px`):Math.abs(Se)>re&&(Ie.current=null)}},ut&&!o.jsx?c.createElement("button",{"aria-label":K,"data-disabled":Ae,"data-close-button":!0,onClick:Ae||!pe?()=>{}:()=>{var E;ce(),(E=o.onDismiss)==null||E.call(o,o)},className:te(R==null?void 0:R.closeButton,(s=o==null?void 0:o.classNames)==null?void 0:s.closeButton)},c.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"},c.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,o.jsx||c.isValidElement(o.title)?o.jsx||o.title:c.createElement(c.Fragment,null,oe||o.icon||o.promise?c.createElement("div",{"data-icon":"",className:te(R==null?void 0:R.icon)},o.promise||o.type==="loading"&&!o.icon?o.icon||$e():null,o.type!=="loading"?o.icon||(B==null?void 0:B[oe])||Nr(oe):null):null,c.createElement("div",{"data-content":"",className:te(R==null?void 0:R.content)},c.createElement("div",{"data-title":"",className:te(R==null?void 0:R.title,(l=o==null?void 0:o.classNames)==null?void 0:l.title),dangerouslySetInnerHTML:qe(o.title)}),o.description?c.createElement("div",{"data-description":"",className:te(ee,Qe,R==null?void 0:R.description,(u=o==null?void 0:o.classNames)==null?void 0:u.description),dangerouslySetInnerHTML:qe(o.description)}):null),c.isValidElement(o.cancel)?o.cancel:o.cancel&&Et(o.cancel)?c.createElement("button",{"data-button":!0,"data-cancel":!0,style:o.cancelButtonStyle||$,onClick:E=>{Et(o.cancel)&&pe&&(ce(),o.cancel.onClick(E))},className:te(R==null?void 0:R.cancelButton,(g=o==null?void 0:o.classNames)==null?void 0:g.cancelButton)},o.cancel.label):null,c.isValidElement(o.action)?o.action:o.action&&Et(o.action)?c.createElement("button",{"data-button":"",style:o.actionButtonStyle||Z,onClick:E=>{Et(o.action)&&(o.action.onClick(E),!E.defaultPrevented&&ce())},className:te(R==null?void 0:R.actionButton,(d=o==null?void 0:o.classNames)==null?void 0:d.actionButton)},o.action.label):null))};function mn(){if(typeof window>"u"||typeof document>"u")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}var qr=n=>{let{invert:t,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:u,className:g,offset:d,theme:h="light",richColors:o,duration:y,style:T,visibleToasts:N=$r,toastOptions:b,dir:O=mn(),gap:P=Wr,loadingIcon:W,icons:_,containerAriaLabel:w="Notifications",pauseWhenPageIsHidden:k,cn:H=Vr}=n,[$,Z]=c.useState([]),X=c.useMemo(()=>Array.from(new Set([a].concat($.filter(D=>D.position).map(D=>D.position)))),[$,a]),[ee,ae]=c.useState([]),[G,F]=c.useState(!1),[ne,C]=c.useState(!1),[R,B]=c.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=c.useRef(null),de=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),te=c.useRef(null),ie=c.useRef(!1),q=c.useCallback(D=>Z(x=>x.filter(({id:U})=>U!==D.id)),[]);return c.useEffect(()=>Oe.subscribe(D=>{if(D.dismiss){Z(x=>x.map(U=>U.id===D.id?{...U,delete:!0}:U));return}setTimeout(()=>{hn.flushSync(()=>{Z(x=>{let U=x.findIndex(I=>I.id===D.id);return U!==-1?[...x.slice(0,U),{...x[U],...D},...x.slice(U+1)]:[D,...x]})})})}),[]),c.useEffect(()=>{if(h!=="system"){B(h);return}h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:D})=>{B(D?"dark":"light")})},[h]),c.useEffect(()=>{$.length<=1&&F(!1)},[$]),c.useEffect(()=>{let D=x=>{var U,I;s.every(ue=>x[ue]||x.code===ue)&&(F(!0),(U=K.current)==null||U.focus()),x.code==="Escape"&&(document.activeElement===K.current||(I=K.current)!=null&&I.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[s]),c.useEffect(()=>{if(K.current)return()=>{te.current&&(te.current.focus({preventScroll:!0}),te.current=null,ie.current=!1)}},[K.current]),$.length?c.createElement("section",{"aria-label":`${w} ${de}`,tabIndex:-1},X.map((D,x)=>{var U;let[I,ue]=D.split("-");return c.createElement("ol",{key:D,dir:O==="auto"?mn():O,tabIndex:-1,ref:K,className:g,"data-sonner-toaster":!0,"data-theme":R,"data-rich-colors":o,"data-y-position":I,"data-x-position":ue,style:{"--front-toast-height":`${((U=ee[0])==null?void 0:U.height)||0}px`,"--offset":typeof d=="number"?`${d}px`:d||Fr,"--width":`${Ur}px`,"--gap":`${P}px`,...T},onBlur:M=>{ie.current&&!M.currentTarget.contains(M.relatedTarget)&&(ie.current=!1,te.current&&(te.current.focus({preventScroll:!0}),te.current=null))},onFocus:M=>{M.target instanceof HTMLElement&&M.target.dataset.dismissible==="false"||ie.current||(ie.current=!0,te.current=M.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{ne||F(!1)},onPointerDown:M=>{M.target instanceof HTMLElement&&M.target.dataset.dismissible==="false"||C(!0)},onPointerUp:()=>C(!1)},$.filter(M=>!M.position&&x===0||M.position===D).map((M,he)=>{var be,Pe;return c.createElement(Gr,{key:M.id,icons:_,index:he,toast:M,duration:(be=b==null?void 0:b.duration)!=null?be:y,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:t,visibleToasts:N,closeButton:(Pe=b==null?void 0:b.closeButton)!=null?Pe:u,interacting:ne,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:q,toasts:$.filter(Ee=>Ee.position==M.position),heights:ee.filter(Ee=>Ee.position==M.position),setHeights:ae,expandByDefault:l,gap:P,loadingIcon:W,expanded:G,pauseWhenPageIsHidden:k,cn:H})}))})):null};/*! Bundled license information:
|
35
35
|
|
36
36
|
dompurify/dist/purify.es.mjs:
|
37
37
|
(*! @license DOMPurify 3.0.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.10/LICENSE *)
|
38
|
-
*/function Kr({children:n}){function t(u){wt.success(u)}function a(u){wt.info(u)}function s(u){wt.error(u)}function
|
38
|
+
*/function Kr({children:n}){function t(u){wt.success(u)}function a(u){wt.info(u)}function s(u){wt.error(u)}function l(u){wt.warning(u)}return p.jsxs(Zt.Provider,{value:{errorToast:s,warningToast:l,successToast:t,infoToast:a},children:[p.jsx(qr,{richColors:!0}),n]})}V.Badge=bn,V.Breadcrumb=Kn,V.BreadcrumbLink=Xn,V.Button=Sn,V.Checkbox=_n,V.Divider=xn,V.FormController=Tn,V.FormError=Cn,V.FormLabel=kn,V.IconButton=Rn,V.Input=Wn,V.Modal=er,V.ModalProvider=sr,V.Select=Vn,V.Skeleton=wn,V.ToastProvider=Kr,V.Tooltip=tr,V.useAutomation=nr,V.useModal=rr,V.useScopedParams=ar,V.useToast=or,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ModalProvider.d.ts","sourceRoot":"","sources":["../../src/provider/ModalProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAgB,MAAM,cAAc,CAAC;AAKhE,iBAAS,aAAa,CAAC,IAAI,EAAE,kBAAkB,
|
1
|
+
{"version":3,"file":"ModalProvider.d.ts","sourceRoot":"","sources":["../../src/provider/ModalProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAgB,MAAM,cAAc,CAAC;AAKhE,iBAAS,aAAa,CAAC,IAAI,EAAE,kBAAkB,2CAiC9C;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
@@ -1,12 +1,9 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import {
|
2
|
+
import { useState } from "react";
|
3
3
|
import { ModalContext } from "../context/ModalContext";
|
4
4
|
function ModalProvider(args) {
|
5
5
|
const { children = false } = args;
|
6
6
|
const [openedModals, setOpenedModals] = useState([]);
|
7
|
-
useEffect(() => {
|
8
|
-
console.log(openedModals);
|
9
|
-
}, openedModals);
|
10
7
|
function modalIsOpen(key) {
|
11
8
|
return !!openedModals.some((modal) => modal.key === key);
|
12
9
|
}
|
package/package.json
CHANGED