koval-ui 0.12.19

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/index.js ADDED
@@ -0,0 +1,3922 @@
1
+ import { jsx as s, jsxs as I } from "react/jsx-runtime";
2
+ import * as E from "react";
3
+ import { useRef as Y, useImperativeHandle as $t, useEffect as j, useState as M, useCallback as v, useMemo as L, useId as pt, forwardRef as g, useLayoutEffect as sn, createContext as Re, useContext as qe, useReducer as Ct, Fragment as ze, Children as ne, cloneElement as Tt, isValidElement as rn } from "react";
4
+ import { useLocalTheme as B, useRootTheme as Ke, RootThemeProvider as an } from "css-vars-hook";
5
+ import l from "classnames";
6
+ import cn from "awesome-debounce-promise";
7
+ import { useFloating as Lt, autoUpdate as Rt, size as ln, offset as zt, autoPlacement as dn, flip as _n, arrow as un } from "@floating-ui/react-dom";
8
+ import { createPortal as pn } from "react-dom";
9
+ const k = {
10
+ fontFamily: `-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
11
+ "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,
12
+ fontFamilyMonospace: '"SF Mono", "Courier New", FreeMono, "Nimbus Mono PS", Cousine, monospace',
13
+ sizeUnit: "6px",
14
+ inputWidth: "240px",
15
+ inputHeight: "38px",
16
+ // font sizes
17
+ fontSizeH1: "36px",
18
+ fontSizeH2: "28px",
19
+ fontSizeH3: "24px",
20
+ fontSizeH4: "22px",
21
+ fontSizeH5: "18px",
22
+ fontSizeH6: "16px",
23
+ fontSizeText: "16px",
24
+ fontSizeMedium: "16px",
25
+ fontSizeLarge: "18px",
26
+ fontSizeSmall: "14px",
27
+ fontSizeExtraSmall: "12px",
28
+ // font weights
29
+ fontWeightNormal: 400,
30
+ fontWeightBolder: 500,
31
+ fontWeightBold: 600,
32
+ // colors
33
+ textColor: "#111111",
34
+ background000: "white",
35
+ background100: "#dedede",
36
+ background200: "#bdbdbd",
37
+ background300: "#808080",
38
+ background400: "#525252",
39
+ background500: "#363636",
40
+ background600: "#000000",
41
+ // theme
42
+ colorDo: "#e3a075",
43
+ colorRe: "#61483a",
44
+ colorMi: "#ffdea6",
45
+ colorFa: "#20b2aa",
46
+ colorSol: "#597480",
47
+ colorLa: "#99DFFF",
48
+ // info colors
49
+ colorError: "#FF004F",
50
+ colorWarning: "#FFC72C",
51
+ colorSuccess: "#3c9d74",
52
+ colorAction: "#2100FF",
53
+ // shadow config
54
+ shadowColor: "color-mix(in srgb, var(--fg-background-600) 11%, transparent)",
55
+ shadow050: "3px 3px 3px 0 var(--fg-shadow-color)",
56
+ shadow100: "6px 6px 3px 0 var(--fg-shadow-color)",
57
+ shadow200: "9px 9px 3px 0 var(--fg-shadow-color)",
58
+ textShadow: "1px 1px 1px rgb(0 0 0 / 66%)",
59
+ // border radii
60
+ borderRadius100: "2px",
61
+ borderRadius200: "3px",
62
+ borderRadius300: "6px",
63
+ borderRadius400: "9px",
64
+ borderRadius500: "12px",
65
+ // border widths
66
+ borderWidth100: "1px",
67
+ borderWidth200: "2px",
68
+ borderWidth300: "3px",
69
+ timeSM: "333ms",
70
+ timeMD: "666ms",
71
+ timeLG: "999ms",
72
+ timeXL: "1666ms"
73
+ }, mn = {
74
+ fontFamily: k.fontFamily,
75
+ fontFamilyMonospace: k.fontFamilyMonospace,
76
+ fontSizeH1: k.fontSizeH1,
77
+ fontSizeH2: k.fontSizeH2,
78
+ fontSizeH3: k.fontSizeH3,
79
+ fontSizeH4: k.fontSizeH4,
80
+ fontSizeH5: k.fontSizeH5,
81
+ fontSizeH6: k.fontSizeH6,
82
+ fontSizeText: k.fontSizeText,
83
+ fontSizeMedium: k.fontSizeMedium,
84
+ fontSizeLarge: k.fontSizeLarge,
85
+ fontSizeSmall: k.fontSizeSmall,
86
+ fontWeightNormal: k.fontWeightNormal,
87
+ fontWeightBolder: k.fontWeightBolder,
88
+ fontWeightBold: k.fontWeightBold,
89
+ textColor: k.textColor,
90
+ background000: k.background000,
91
+ background100: k.background100,
92
+ background200: k.background200,
93
+ background300: k.background300,
94
+ background400: k.background400,
95
+ background500: k.background500,
96
+ background600: k.background600,
97
+ colorDo: k.colorDo,
98
+ colorRe: k.colorRe,
99
+ colorMi: k.colorMi,
100
+ colorFa: k.colorFa,
101
+ colorSol: k.colorSol,
102
+ colorLa: k.colorLa,
103
+ colorError: k.colorError,
104
+ colorWarning: k.colorWarning,
105
+ colorSuccess: k.colorSuccess,
106
+ colorAction: k.colorAction
107
+ }, e1 = {
108
+ fontFamily: k.fontFamily,
109
+ fontFamilyMonospace: k.fontFamilyMonospace,
110
+ fontSizeH1: k.fontSizeH1,
111
+ fontSizeH2: k.fontSizeH2,
112
+ fontSizeH3: k.fontSizeH3,
113
+ fontSizeH4: k.fontSizeH4,
114
+ fontSizeH5: k.fontSizeH5,
115
+ fontSizeH6: k.fontSizeH6,
116
+ fontSizeText: k.fontSizeText,
117
+ fontSizeMedium: k.fontSizeMedium,
118
+ fontSizeLarge: k.fontSizeLarge,
119
+ fontSizeSmall: k.fontSizeSmall,
120
+ fontWeightNormal: k.fontWeightNormal,
121
+ fontWeightBolder: k.fontWeightBolder,
122
+ fontWeightBold: k.fontWeightBold,
123
+ textColor: k.textColor,
124
+ background000: k.background000,
125
+ background100: k.background100,
126
+ background200: k.background200,
127
+ background300: k.background300,
128
+ background400: k.background400,
129
+ background500: k.background500,
130
+ background600: k.background600,
131
+ colorDo: k.colorFa,
132
+ colorRe: k.colorSol,
133
+ colorMi: k.colorLa,
134
+ colorFa: k.colorDo,
135
+ colorSol: k.colorRe,
136
+ colorLa: k.colorMi,
137
+ colorError: k.colorError,
138
+ colorWarning: k.colorWarning,
139
+ colorSuccess: k.colorSuccess,
140
+ colorAction: k.colorAction
141
+ }, be = (e) => {
142
+ const t = Y(null);
143
+ return $t(e, () => t.current, [
144
+ t
145
+ ]), t;
146
+ }, hn = "_icon_1j8jl_1", vn = "_rotation_1j8jl_14", fn = "_spin_1j8jl_1", gn = "_error_1j8jl_18", Nn = "_valid_1j8jl_22", bn = "_loading_1j8jl_26", O = {
147
+ icon: hn,
148
+ rotation: vn,
149
+ spin: fn,
150
+ error: gn,
151
+ valid: Nn,
152
+ loading: bn
153
+ }, wn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M479.75-255q24.25 0 39.75-14.75 15.5-14.76 15.5-39Q535-333 519.75-349q-15.26-16-39.5-16-24.25 0-39.75 15.98T425-308.79q0 24.25 15.25 39.02Q455.51-255 479.75-255ZM436-432h94v-270h-94v270Zm44.4 377q-88.87 0-166.12-33.08-77.25-33.09-135.18-91.02-57.93-57.93-91.02-135.12Q55-391.41 55-480.36q0-88.96 33.08-166.29 33.09-77.32 90.86-134.81 57.77-57.48 135.03-91.01Q391.24-906 480.28-906t166.49 33.45q77.44 33.46 134.85 90.81t90.89 134.87Q906-569.34 906-480.27q0 89.01-33.53 166.25t-91.01 134.86q-57.49 57.62-134.83 90.89Q569.28-55 480.4-55Zm.1-94q137.5 0 234-96.37T811-480.5q0-137.5-96.31-234T479.5-811q-137.5 0-234 96.31T149-479.5q0 137.5 96.37 234T480.5-149Zm-.5-331Z" })), oe = ({ className: e, ...t }) => /* @__PURE__ */ s(wn, { className: l(O.icon, O.error, e), ...t }), xn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M378-222 130-470l68-68 180 180 383-383 68 68-451 451Z" })), le = ({ className: e, ...t }) => /* @__PURE__ */ s(xn, { className: l(O.icon, O.valid, e), ...t }), yn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M480-55q-90.2 0-167.57-32.58-77.37-32.57-134.82-90.03-57.46-57.45-90.03-134.82Q55-389.8 55-480q0-89.87 32.56-167.25 32.57-77.37 89.87-135.11 57.31-57.74 134.79-90.69Q389.7-906 480-906v95q-138.33 0-234.66 96.27Q149-618.46 149-480.23 149-342 245.27-245.5t234.5 96.5Q618-149 714.5-245.34 811-341.67 811-480h95q0 90.3-33.01 167.79-33.02 77.5-90.5 134.85Q725-120 647.5-87.5 570.01-55 480-55Z" })), de = ({ className: e, ...t }) => /* @__PURE__ */ s(
154
+ yn,
155
+ {
156
+ className: l(O.icon, O.rotation, O.loading, e),
157
+ ...t
158
+ }
159
+ ), kn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M767-319.26Q767-206 684.32-130.5 601.65-55 487.32-55 373-55 291-130.5T209-319v-396q0-81.42 59.5-136.21Q328-906 409.76-906q81.77 0 141 54.79Q610-796.42 610-715v376q0 48.91-36.5 82.95Q537-222 487.15-222q-49.84 0-85.5-33.72Q366-289.44 366-339v-370h87v370q0 13 10.29 21.5t24.64 8.5q14.35 0 24.71-8.35Q523-325.7 523-339v-375q1-45.26-33-75.13Q456-819 409.79-819q-46.21 0-80 29.43T296-715v396q1 77.25 57.47 127.63Q409.94-141 489-141q77.67 0 134.83-50.5Q681-242 680-319v-419h87v418.74Z" })), In = ({ className: e, ...t }) => /* @__PURE__ */ s(kn, { className: l(O.icon, e), ...t }), Sn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M434-394v-92h92v92h-92Zm-160 0v-92h92v92h-92Zm320 0v-92h92v92h-92ZM434-234v-92h92v92h-92Zm-160 0v-92h92v92h-92Zm320 0v-92h92v92h-92ZM95-55v-791h150.2v-60H327v60h306v-60h82.2v60H866v791H95Zm94-94h582v-421H189v421Zm0-481h582v-121H189v121Zm0 0v-121 121Z" })), En = ({ className: e, ...t }) => /* @__PURE__ */ s(Sn, { className: l(O.icon, e), ...t }), qn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M480-55q-87.04 0-164.52-33.5T180-180q-58-58-91.5-135.46Q55-392.92 55-479.93 55-570 88.45-647.28q33.44-77.27 92.5-135Q240-840 318.77-873t168.61-33q83.62 0 159.41 28.46 75.79 28.45 133.5 79Q838-748 872-678.8q34 69.2 34 149.8 0 114-64 187t-178 73h-58q-16 0-28 13t-12 29q0 25 10 35t10 31q0 44-29.8 75T480-55Zm0-425Zm-224 26q20 0 35-15t15-35q0-20-15-35t-35-15q-20 0-35 15t-15 35q0 20 15 35t35 15Zm121.5-163q20.5 0 35.5-15t15-35q0-21-15-35.5T378-717q-21 0-35.5 14.5t-14.5 35q0 20.5 14.5 35.5t35 15Zm205 0q20.5 0 35.5-15t15-35q0-21-15-35.5T583-717q-21 0-35.5 14.5t-14.5 35q0 20.5 14.5 35.5t35 15ZM707-454q20 0 35-15t15-35q0-20-15-35t-35-15q-21 0-35.5 15T657-504q0 20 14.5 35t35.5 15ZM476-149q7.75 0 11.88-3.55 4.12-3.54 4.12-12.01 0-14.44-15-23.69-15-9.25-15-47.75 0-49.17 32.98-88.09Q527.96-363 576.75-363H664q74 0 110.5-44T811-523q0-132-98.59-210-98.6-78-224.83-78-141.68 0-240.13 96.37Q149-618.26 149-479.52 149-342 244.96-245.5T476-149Z" })), $n = ({ className: e, ...t }) => /* @__PURE__ */ s(qn, { className: l(O.icon, e), ...t }), Cn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M585-285 433-437v-214h94v174.41L651-353l-66 68ZM433-726v-124h94v124h-94Zm293 293v-94h124v94H726ZM433-110v-125h94v125h-94ZM110-433v-94h125v94H110ZM480.4-55q-88.87 0-166.12-33.08-77.25-33.09-135.18-91.02-57.93-57.93-91.02-135.12Q55-391.41 55-480.36q0-88.96 33.08-166.29 33.09-77.32 90.86-134.81 57.77-57.48 135.03-91.01Q391.24-906 480.28-906t166.49 33.45q77.44 33.46 134.85 90.81t90.89 134.87Q906-569.34 906-480.27q0 89.01-33.53 166.25t-91.01 134.86q-57.49 57.62-134.83 90.89Q569.28-55 480.4-55Zm.1-94q137.5 0 234-96.37T811-480.5q0-137.5-96.31-234T479.5-811q-137.5 0-234 96.31T149-479.5q0 137.5 96.37 234T480.5-149Zm-.5-331Z" })), Tn = ({ className: e, ...t }) => /* @__PURE__ */ s(Cn, { className: l(O.icon, e), ...t }), Ln = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M480-56 216-320l67-67 197 196 197-196 67 67L480-56ZM283-572l-67-68 264-264 264 264-66 68-198-197-197 197Z" })), Rn = ({ className: e, ...t }) => /* @__PURE__ */ s(Ln, { className: l(O.icon, e), ...t }), zn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "m290-61-66-66 256-256 256 256-66 66-190-190L290-61Zm190-517L224-834l66-66 190 190 190-190 66 66-256 256Z" })), On = ({ className: e, ...t }) => /* @__PURE__ */ s(zn, { className: l(O.icon, e), ...t }), An = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "m239-383 241-242 241 242H239Z" })), Dn = ({ className: e, ...t }) => /* @__PURE__ */ s(An, { className: l(O.icon, e), ...t }), Bn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M480-336 239-576h482L480-336Z" })), Fn = ({ className: e, ...t }) => /* @__PURE__ */ s(Bn, { className: l(O.icon, e), ...t }), jn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "m249-183-66-66 231-231-231-231 66-66 231 231 231-231 66 66-231 231 231 231-66 66-231-231-231 231Z" })), Ot = ({ className: e, ...t }) => /* @__PURE__ */ s(jn, { className: l(O.icon, e), ...t }), Mn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M577-239 336-480l241-241v482Z" })), Zn = ({ className: e, ...t }) => /* @__PURE__ */ s(Mn, { className: l(O.icon, e), ...t }), Hn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M383-239v-482l241 241-241 241Z" })), Pn = ({ className: e, ...t }) => /* @__PURE__ */ s(Hn, { className: l(O.icon, e), ...t }), Vn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "m294-135-66-66 104-103H55v-95h277L228-503l66-66 218 217-218 217Zm372-257L449-609l217-217 66 66-103 104h277v95H629l103 103-66 66Z" })), Wn = ({ className: e, ...t }) => /* @__PURE__ */ s(Vn, { className: l(O.icon, e), ...t }), Qn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "m18-107 462-799 462 799H18Zm145-84h634L480-739 163-191Zm321.18-48q13.4 0 23.61-10.39Q518-259.78 518-273.18q0-13.4-10.39-23.11-10.39-9.71-23.79-9.71-13.4 0-23.61 9.89Q450-286.22 450-272.82q0 13.4 10.39 23.61Q470.78-239 484.18-239ZM454-348h60v-216h-60v216Zm26-117Z" })), Gn = ({ className: e, ...t }) => /* @__PURE__ */ s(Qn, { className: l(O.icon, e), ...t }), Kn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M442-269h82v-251h-82v251Zm38.07-310q20.43 0 34.18-13.51Q528-606.03 528-626q0-21.95-13.79-35.47Q500.41-675 480.02-675q-21.52 0-34.77 13.53Q432-647.95 432-626.5q0 20.6 13.82 34.05Q459.64-579 480.07-579Zm.33 524q-88.87 0-166.12-33.08-77.25-33.09-135.18-91.02-57.93-57.93-91.02-135.12Q55-391.41 55-480.36q0-88.96 33.08-166.29 33.09-77.32 90.86-134.81 57.77-57.48 135.03-91.01Q391.24-906 480.28-906t166.49 33.45q77.44 33.46 134.85 90.81t90.89 134.87Q906-569.34 906-480.27q0 89.01-33.53 166.25t-91.01 134.86q-57.49 57.62-134.83 90.89Q569.28-55 480.4-55Zm.1-94q137.5 0 234-96.37T811-480.5q0-137.5-96.31-234T479.5-811q-137.5 0-234 96.31T149-479.5q0 137.5 96.37 234T480.5-149Zm-.5-331Z" })), Un = ({ className: e, ...t }) => /* @__PURE__ */ s(Kn, { className: l(O.icon, e), ...t }), Yn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "m419-283 294-294-66-66-228 228-111-111-65 66 176 177Zm61.14 228Q392-55 314.51-88.08q-77.48-33.09-135.41-91.02-57.93-57.93-91.02-135.27Q55-391.72 55-479.86 55-569 88.08-646.49q33.09-77.48 90.86-134.97 57.77-57.48 135.19-91.01Q391.56-906 479.78-906q89.22 0 166.83 33.45 77.6 33.46 135.01 90.81t90.89 134.87Q906-569.34 906-480q0 88.28-33.53 165.75t-91.01 135.28q-57.49 57.8-134.83 90.89Q569.28-55 480.14-55Zm-.14-94q138 0 234.5-96.37T811-480q0-138-96.5-234.5t-235-96.5q-137.5 0-234 96.5t-96.5 235q0 137.5 96.37 234T480-149Zm0-331Z" })), At = ({ className: e, ...t }) => /* @__PURE__ */ s(Yn, { className: l(O.icon, e), ...t }), Xn = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M693-193v-574h94v574h-94Zm-520 0v-574l417 287-417 287Zm94-287Zm0 108 156-108-156-108v216Z" })), Jn = ({ className: e, ...t }) => /* @__PURE__ */ s(Xn, { className: l(O.icon, e), ...t }), eo = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M173-193v-574h94v574h-94Zm614 0L370-480l417-287v574Zm-94-287Zm0 108v-216L537-480l156 108Z" })), to = ({ className: e, ...t }) => /* @__PURE__ */ s(eo, { className: l(O.icon, e), ...t }), no = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M394-95 135-357l257-258 68 67-145 146h376v-424h95v518H316l145 146-67 67Z" })), oo = ({ className: e, ...t }) => /* @__PURE__ */ s(no, { className: l(O.icon, e), ...t }), so = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M320-95 95-320v-321l225-225h321l225 225v321L641-95H320Zm41-216 119-119 119 119 51-50-120-119 120-119-51-51-119 120-119-120-50 51 119 119-119 119 50 50Zm-2 122h242l170-170v-242L601-771H359L189-601v242l170 170Zm121-291Z" })), ro = ({ className: e, ...t }) => /* @__PURE__ */ s(so, { className: l(O.icon, e), ...t }), ao = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M439-255H280q-94.11 0-159.56-65.42Q55-385.84 55-479.7q0-93.85 65.44-160.07Q185.89-706 280-706h159v95H280.43q-55.51 0-93.47 37.76-37.96 37.77-37.96 93Q149-425 186.96-387q37.96 38 93.47 38H439v94ZM308-444v-72h344v72H308Zm213 189v-94h158.57q55.51 0 93.47-37.76 37.96-37.77 37.96-93Q811-535 773.04-573q-37.96-38-93.47-38H521v-95h159q93.79 0 159.9 66.15 66.1 66.15 66.1 160T839.9-320.5Q773.79-255 680-255H521Z" })), io = ({ className: e, ...t }) => /* @__PURE__ */ s(ao, { className: l(O.icon, e), ...t }), co = (e) => /* @__PURE__ */ E.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960", ...e }, /* @__PURE__ */ E.createElement("path", { d: "M95-203v-95h771v95H95Zm0-230v-94h771v94H95Zm0-229v-95h771v95H95Z" })), lo = ({ className: e, ...t }) => /* @__PURE__ */ s(co, { className: l(O.icon, e), ...t });
160
+ var Qe = /* @__PURE__ */ ((e) => (e.keydown = "keydown", e.mousedown = "mousedown", e.animationend = "animationend", e))(Qe || {});
161
+ const Ge = (e, t, n) => {
162
+ const o = n ?? window, r = Y(t);
163
+ j(() => {
164
+ r.current = t;
165
+ }, [t]), j(() => {
166
+ if (o == null)
167
+ return;
168
+ const i = (a) => r.current(a);
169
+ return o.addEventListener(e, i), () => o.removeEventListener(e, i);
170
+ }, [e, o]);
171
+ }, mt = (e, t, n = !0) => {
172
+ const o = Y(null), [r, i] = M([]);
173
+ j(() => {
174
+ if (n && t) {
175
+ o.current = e == null ? void 0 : e.querySelectorAll(
176
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
177
+ );
178
+ const c = o.current ? o.current[0] : null, _ = o.current ? o.current[o.current.length - 1] : null;
179
+ i([c, _]);
180
+ }
181
+ }, [t, e, n]), j(() => {
182
+ var c;
183
+ n && t && ((c = r[0]) == null || c.focus());
184
+ }, [n, r, t]);
185
+ const a = v(
186
+ (c) => {
187
+ const [_, h] = r;
188
+ n && t && c.key === "Tab" && (c.shiftKey && document.activeElement === _ ? (c.preventDefault(), h.focus()) : !c.shiftKey && document.activeElement === h && (c.preventDefault(), _.focus()));
189
+ },
190
+ [n, r, t]
191
+ );
192
+ Ge(Qe.keydown, a);
193
+ };
194
+ var ae = /* @__PURE__ */ ((e) => (e.default = "default", e.success = "success", e.link = "link", e.danger = "danger", e))(ae || {});
195
+ const _o = "_row_1a6h0_3", uo = "_action-button_1a6h0_13", po = "_action-label_1a6h0_49", mo = "_action-icon_1a6h0_50", ho = "_link_1a6h0_72", vo = "_success_1a6h0_76", fo = "_danger_1a6h0_80", X = {
196
+ row: _o,
197
+ "action-button": "_action-button_1a6h0_13",
198
+ actionButton: uo,
199
+ "action-label": "_action-label_1a6h0_49",
200
+ actionLabel: po,
201
+ "action-icon": "_action-icon_1a6h0_50",
202
+ actionIcon: mo,
203
+ default: "_default_1a6h0_68",
204
+ link: ho,
205
+ success: vo,
206
+ danger: fo
207
+ }, ht = ({
208
+ title: e,
209
+ icon: t,
210
+ type: n = "default",
211
+ onClick: o = () => {
212
+ },
213
+ className: r
214
+ }) => {
215
+ const i = L(
216
+ () => t ?? {
217
+ [ae.success]: At,
218
+ [ae.danger]: ro,
219
+ [ae.link]: io,
220
+ [ae.default]: void 0
221
+ }[n],
222
+ [t, n]
223
+ ), a = v(
224
+ (c) => {
225
+ o(c);
226
+ },
227
+ [o]
228
+ );
229
+ return /* @__PURE__ */ I(
230
+ "button",
231
+ {
232
+ title: e,
233
+ onClick: a,
234
+ className: l(
235
+ X.actionButton,
236
+ {
237
+ [X.default]: n === ae.default,
238
+ [X.link]: n === ae.link,
239
+ [X.success]: n === ae.success,
240
+ [X.danger]: n === ae.danger
241
+ },
242
+ r
243
+ ),
244
+ children: [
245
+ i && /* @__PURE__ */ s(i, { className: X.actionIcon }),
246
+ e && /* @__PURE__ */ s("span", { className: X.actionLabel, children: e })
247
+ ]
248
+ }
249
+ );
250
+ }, Ue = ({
251
+ actions: e = [],
252
+ classNameRow: t,
253
+ classNameAction: n,
254
+ actionComponent: o = ht
255
+ }) => {
256
+ const r = pt();
257
+ return e.map((i, a) => {
258
+ if (Array.isArray(i)) {
259
+ const [c, _] = i;
260
+ return /* @__PURE__ */ I("div", { className: l(X.row, t), children: [
261
+ /* @__PURE__ */ s(
262
+ o,
263
+ {
264
+ ...c,
265
+ className: l(X.actionButton, n)
266
+ }
267
+ ),
268
+ /* @__PURE__ */ s(
269
+ o,
270
+ {
271
+ ..._,
272
+ className: l(X.actionButton, n)
273
+ }
274
+ )
275
+ ] }, `${r}-${a}`);
276
+ } else
277
+ return /* @__PURE__ */ s("div", { className: l(X.row, t), children: /* @__PURE__ */ s(
278
+ o,
279
+ {
280
+ ...i,
281
+ className: l(X.actionButton, n)
282
+ }
283
+ ) }, `${r}-${a}`);
284
+ });
285
+ };
286
+ var Se = /* @__PURE__ */ ((e) => (e.primary = "primary", e.inverted = "inverted", e))(Se || {});
287
+ const go = "_actions_1ypi2_5", No = "_action-row_1ypi2_8", bo = "_primary-action_1ypi2_9", wo = "_inverted-action_1ypi2_10", De = {
288
+ actions: go,
289
+ "action-row": "_action-row_1ypi2_8",
290
+ actionRow: No,
291
+ "primary-action": "_primary-action_1ypi2_9",
292
+ primaryAction: bo,
293
+ "inverted-action": "_inverted-action_1ypi2_10",
294
+ invertedAction: wo
295
+ }, Dt = g(
296
+ ({
297
+ children: e,
298
+ className: t,
299
+ actions: n = [],
300
+ variant: o = Se.primary,
301
+ classNameAction: r,
302
+ classNameRow: i,
303
+ ...a
304
+ }, c) => /* @__PURE__ */ s("div", { ...a, className: l(De.actions, t), ref: c, children: /* @__PURE__ */ s(
305
+ Ue,
306
+ {
307
+ actions: n,
308
+ classNameAction: l(
309
+ {
310
+ [De.primaryAction]: o === Se.primary,
311
+ [De.invertedAction]: o === Se.inverted
312
+ },
313
+ r
314
+ ),
315
+ classNameRow: l(De.actionRow, i)
316
+ }
317
+ ) })
318
+ );
319
+ Dt.displayName = "Actions";
320
+ const xo = () => {
321
+ const e = Y(!0);
322
+ return e.current ? (e.current = !1, !0) : e.current;
323
+ };
324
+ function yo() {
325
+ return !!(globalThis != null && globalThis.document);
326
+ }
327
+ const Ee = yo() ? sn : j, Oe = ({
328
+ show: e = !1,
329
+ children: t,
330
+ exitClassName: n = "transition-exit",
331
+ exitDoneClassName: o = "transition-exit-done",
332
+ enterClassName: r = "transition-enter",
333
+ enterDoneClassName: i = "transition-enter-done",
334
+ nodeRef: a,
335
+ unmountNode: c,
336
+ onExit: _ = () => {
337
+ },
338
+ onEnter: h = () => {
339
+ }
340
+ }) => {
341
+ const u = xo(), [m, p] = M(e);
342
+ Ee(() => {
343
+ e && p(e);
344
+ }, [e]);
345
+ const d = L(
346
+ () => ({
347
+ enter: r.split(" "),
348
+ exit: n.split(" "),
349
+ exitDone: o.split(" "),
350
+ enterDone: i.split(" ")
351
+ }),
352
+ [r, i, n, o]
353
+ );
354
+ return Ee(() => {
355
+ var b, x, w, y, f, S;
356
+ e ? ((b = a.current) == null || b.classList.add(...d.enter), (x = a.current) == null || x.classList.remove(...d.exit), (w = a.current) == null || w.classList.remove(...d.exitDone)) : ((y = a.current) == null || y.classList.add(...d.exit), (f = a.current) == null || f.classList.remove(...d.enter), (S = a.current) == null || S.classList.remove(...d.enterDone));
357
+ }, [d, a, e, m, u]), Ge("animationend", () => {
358
+ var b, x, w, y;
359
+ e && m ? (h(), (b = a.current) == null || b.classList.remove(...d.enter), (x = a.current) == null || x.classList.add(...d.enterDone)) : m && (_(), (w = a.current) == null || w.classList.remove(...d.exit), (y = a.current) == null || y.classList.add(...d.exitDone), p(!1));
360
+ }, a.current), (m || !c) && t;
361
+ }, ko = "_fade-enter_1psjq_31", Io = "_fade-in_1psjq_1", So = "_fade-exit_1psjq_35", Eo = "_fade-out_1psjq_1", qo = "_slide-top-enter_1psjq_57", $o = "_slide-top_1psjq_57", Co = "_backdrop-fade_1psjq_95", To = "_slide-top-exit_1psjq_65", Lo = "_backdrop-fade-enter_1psjq_95", Ro = "_backdrop-fade-exit_1psjq_101", zo = "_slide-bottom-enter_1psjq_138", Oo = "_slide-in-bottom_1psjq_1", Ao = "_slide-bottom-exit_1psjq_142", Do = "_slide-out-bottom_1psjq_1", Bo = "_slide-bottom-enter-done_1psjq_146", Fo = "_slide-bottom-exit-done_1psjq_150", jo = "_slide-left-enter_1psjq_181", Mo = "_slide-in-left_1psjq_1", Zo = "_slide-left-enter-done_1psjq_186", Ho = "_slide-left-exit_1psjq_190", Po = "_slide-out-left_1psjq_1", Vo = "_slide-left-exit-done_1psjq_194", Wo = "_slide-right-enter_1psjq_224", Qo = "_slide-in-right_1psjq_1", Go = "_slide-right-enter-done_1psjq_229", Ko = "_slide-right-exit_1psjq_233", Uo = "_slide-out-right_1psjq_1", Yo = "_slide-right-exit-done_1psjq_237", V = {
362
+ "fade-enter": "_fade-enter_1psjq_31",
363
+ fadeEnter: ko,
364
+ "fade-in": "_fade-in_1psjq_1",
365
+ fadeIn: Io,
366
+ "fade-exit": "_fade-exit_1psjq_35",
367
+ fadeExit: So,
368
+ "fade-out": "_fade-out_1psjq_1",
369
+ fadeOut: Eo,
370
+ "slide-top-enter": "_slide-top-enter_1psjq_57",
371
+ slideTopEnter: qo,
372
+ "slide-top": "_slide-top_1psjq_57",
373
+ slideTop: $o,
374
+ "backdrop-fade": "_backdrop-fade_1psjq_95",
375
+ backdropFade: Co,
376
+ "slide-top-exit": "_slide-top-exit_1psjq_65",
377
+ slideTopExit: To,
378
+ "backdrop-fade-enter": "_backdrop-fade-enter_1psjq_95",
379
+ backdropFadeEnter: Lo,
380
+ "backdrop-fade-exit": "_backdrop-fade-exit_1psjq_101",
381
+ backdropFadeExit: Ro,
382
+ "slide-bottom-enter": "_slide-bottom-enter_1psjq_138",
383
+ slideBottomEnter: zo,
384
+ "slide-in-bottom": "_slide-in-bottom_1psjq_1",
385
+ slideInBottom: Oo,
386
+ "slide-bottom-exit": "_slide-bottom-exit_1psjq_142",
387
+ slideBottomExit: Ao,
388
+ "slide-out-bottom": "_slide-out-bottom_1psjq_1",
389
+ slideOutBottom: Do,
390
+ "slide-bottom-enter-done": "_slide-bottom-enter-done_1psjq_146",
391
+ slideBottomEnterDone: Bo,
392
+ "slide-bottom-exit-done": "_slide-bottom-exit-done_1psjq_150",
393
+ slideBottomExitDone: Fo,
394
+ "slide-left-enter": "_slide-left-enter_1psjq_181",
395
+ slideLeftEnter: jo,
396
+ "slide-in-left": "_slide-in-left_1psjq_1",
397
+ slideInLeft: Mo,
398
+ "slide-left-enter-done": "_slide-left-enter-done_1psjq_186",
399
+ slideLeftEnterDone: Zo,
400
+ "slide-left-exit": "_slide-left-exit_1psjq_190",
401
+ slideLeftExit: Ho,
402
+ "slide-out-left": "_slide-out-left_1psjq_1",
403
+ slideOutLeft: Po,
404
+ "slide-left-exit-done": "_slide-left-exit-done_1psjq_194",
405
+ slideLeftExitDone: Vo,
406
+ "slide-right-enter": "_slide-right-enter_1psjq_224",
407
+ slideRightEnter: Wo,
408
+ "slide-in-right": "_slide-in-right_1psjq_1",
409
+ slideInRight: Qo,
410
+ "slide-right-enter-done": "_slide-right-enter-done_1psjq_229",
411
+ slideRightEnterDone: Go,
412
+ "slide-right-exit": "_slide-right-exit_1psjq_233",
413
+ slideRightExit: Ko,
414
+ "slide-out-right": "_slide-out-right_1psjq_1",
415
+ slideOutRight: Uo,
416
+ "slide-right-exit-done": "_slide-right-exit-done_1psjq_237",
417
+ slideRightExitDone: Yo
418
+ }, Xo = ({ children: e, unmountNode: t = !0, ...n }) => /* @__PURE__ */ s(
419
+ Oe,
420
+ {
421
+ ...n,
422
+ exitClassName: V.fadeExit,
423
+ enterClassName: V.fadeEnter,
424
+ unmountNode: t,
425
+ children: e
426
+ }
427
+ ), Jo = ({ children: e, unmountNode: t = !0, ...n }) => /* @__PURE__ */ s(
428
+ Oe,
429
+ {
430
+ ...n,
431
+ unmountNode: t,
432
+ exitClassName: V.slideBottomExit,
433
+ exitDoneClassName: V.slideBottomExitDone,
434
+ enterClassName: V.slideBottomEnter,
435
+ enterDoneClassName: V.slideBottomEnterDone,
436
+ children: e
437
+ }
438
+ ), es = ({ children: e, unmountNode: t = !0, ...n }) => /* @__PURE__ */ s(
439
+ Oe,
440
+ {
441
+ ...n,
442
+ unmountNode: t,
443
+ exitClassName: V.slideLeftExit,
444
+ enterClassName: V.slideLeftEnter,
445
+ enterDoneClassName: V.slideLeftEnterDone,
446
+ exitDoneClassName: V.slideLeftExitDone,
447
+ children: e
448
+ }
449
+ ), ts = ({ children: e, unmountNode: t = !0, ...n }) => /* @__PURE__ */ s(
450
+ Oe,
451
+ {
452
+ ...n,
453
+ unmountNode: t,
454
+ exitClassName: V.slideRightExit,
455
+ enterClassName: V.slideRightEnter,
456
+ enterDoneClassName: V.slideRightEnterDone,
457
+ exitDoneClassName: V.slideRightExitDone,
458
+ children: e
459
+ }
460
+ ), ns = ({ children: e, ...t }) => /* @__PURE__ */ s(
461
+ Oe,
462
+ {
463
+ ...t,
464
+ exitClassName: l(V.slideTopExit, V.backdropFadeExit),
465
+ enterClassName: l(V.slideTopEnter, V.backdropFadeEnter),
466
+ children: e
467
+ }
468
+ ), os = (e) => e[e.length - 1], ct = (e, t) => t.filter((n) => n !== e);
469
+ var lt = /* @__PURE__ */ ((e) => (e.DIALOG_CLOSE = "DIALOG_CLOSE", e.DIALOG_OPEN = "DIALOG_OPEN", e))(lt || {});
470
+ const vt = {
471
+ open: []
472
+ }, ss = (e = vt, t) => {
473
+ switch (t.type) {
474
+ case "DIALOG_CLOSE": {
475
+ const { id: n } = t, o = ct(n, e.open);
476
+ return {
477
+ ...e,
478
+ open: o
479
+ };
480
+ }
481
+ case "DIALOG_OPEN": {
482
+ const { id: n } = t;
483
+ return {
484
+ ...e,
485
+ open: [...e.open, n]
486
+ };
487
+ }
488
+ default:
489
+ return e;
490
+ }
491
+ }, Bt = Re({
492
+ state: vt,
493
+ dispatch: () => {
494
+ }
495
+ }), Ft = () => qe(Bt), rs = (e) => {
496
+ const { state: t } = Ft();
497
+ return e(t);
498
+ }, as = (e) => {
499
+ const { dispatch: t } = Ft(), n = v(() => {
500
+ t({
501
+ type: lt.DIALOG_OPEN,
502
+ id: e
503
+ });
504
+ }, [e, t]), o = v(() => {
505
+ t({
506
+ type: lt.DIALOG_CLOSE,
507
+ id: e
508
+ });
509
+ }, [e, t]), r = rs((a) => os(a.open));
510
+ return {
511
+ openDialog: n,
512
+ closeDialog: o,
513
+ isOpen: e === r
514
+ };
515
+ }, is = "_no-scroll_a4856_4", cs = "_dialog_a4856_8", ls = "_flex_a4856_27", ds = "_header_a4856_34", _s = "_body_a4856_3", us = "_actions_a4856_54", ps = "_row_a4856_60", ue = {
516
+ "no-scroll": "_no-scroll_a4856_4",
517
+ noScroll: is,
518
+ dialog: cs,
519
+ flex: ls,
520
+ header: ds,
521
+ body: _s,
522
+ actions: us,
523
+ row: ps
524
+ }, ms = g(
525
+ ({
526
+ children: e,
527
+ className: t,
528
+ closeOnClickOutside: n = !0,
529
+ showCloseButton: o = !0,
530
+ onToggle: r = () => {
531
+ },
532
+ id: i,
533
+ actions: a = [],
534
+ dialogTitle: c,
535
+ closeLabel: _ = "Close",
536
+ trapFocus: h = !0,
537
+ ...u
538
+ }, m) => {
539
+ const p = be(m), { isOpen: d, closeDialog: N } = as(i);
540
+ mt(p.current, d, h), j(() => {
541
+ var f;
542
+ d && ((f = p.current) == null || f.showModal(), document.body.classList.add(ue.noScroll)), r(d);
543
+ }, [p, r, d]);
544
+ const b = v(() => {
545
+ r(!1), N();
546
+ }, [N, r]), x = v(
547
+ (f) => {
548
+ f.target.nodeName === "DIALOG" && n && b();
549
+ },
550
+ [p, b, n]
551
+ ), w = v(
552
+ (f) => {
553
+ f.code === "Escape" && b();
554
+ },
555
+ [b]
556
+ ), y = v(() => {
557
+ var f;
558
+ (f = p.current) == null || f.close(), document.body.classList.remove(ue.noScroll);
559
+ }, [p]);
560
+ return /* @__PURE__ */ s(
561
+ ns,
562
+ {
563
+ unmountNode: !0,
564
+ show: d,
565
+ nodeRef: p,
566
+ onExit: y,
567
+ children: /* @__PURE__ */ s(
568
+ "dialog",
569
+ {
570
+ ...u,
571
+ id: i,
572
+ onKeyDown: w,
573
+ onClick: x,
574
+ className: l(ue.dialog, t),
575
+ ref: p,
576
+ children: /* @__PURE__ */ I("div", { className: ue.flex, children: [
577
+ c && /* @__PURE__ */ s("header", { className: l(ue.header, t), children: /* @__PURE__ */ s(Xt, { children: c }) }),
578
+ /* @__PURE__ */ s("div", { className: l(ue.body, t), children: e }),
579
+ /* @__PURE__ */ I("footer", { className: ue.actions, children: [
580
+ /* @__PURE__ */ s(Ue, { actions: a }),
581
+ o && /* @__PURE__ */ s("div", { className: ue.row, children: /* @__PURE__ */ s(
582
+ ht,
583
+ {
584
+ onClick: b,
585
+ icon: Ot,
586
+ title: _
587
+ }
588
+ ) }, `${i}-close`)
589
+ ] })
590
+ ] })
591
+ }
592
+ )
593
+ }
594
+ );
595
+ }
596
+ );
597
+ ms.displayName = "Dialog";
598
+ const Ye = ({ initialState: e, reducer: t, context: n }) => (
599
+ // eslint-disable-next-line react/display-name
600
+ ({ children: o }) => {
601
+ const { Provider: r } = n, [i, a] = Ct(t, e), c = L(() => ({ state: i, dispatch: a }), [i]);
602
+ return /* @__PURE__ */ s(r, { value: c, children: o });
603
+ }
604
+ ), hs = Ye({
605
+ context: Bt,
606
+ reducer: ss,
607
+ initialState: vt
608
+ });
609
+ var Ie = /* @__PURE__ */ ((e) => (e.NOTIFICATION_CLOSE = "NOTIFICATION_CLOSE", e.NOTIFICATION_OPEN = "NOTIFICATION_OPEN", e.NOTIFICATION_REGISTER = "NOTIFICATION_REGISTER", e.NOTIFICATION_RE_OPEN = "NOTIFICATION_RE_OPEN", e))(Ie || {});
610
+ const ft = {
611
+ open: [],
612
+ props: {},
613
+ instances: {}
614
+ }, vs = (e, t) => {
615
+ const n = { ...e };
616
+ return delete n[t], n;
617
+ }, fs = (e = ft, t) => {
618
+ switch (t.type) {
619
+ case "NOTIFICATION_CLOSE": {
620
+ const { id: n } = t, o = ct(n, e.open), r = vs(e.instances, n);
621
+ return {
622
+ ...e,
623
+ open: o,
624
+ instances: r
625
+ };
626
+ }
627
+ case "NOTIFICATION_REGISTER": {
628
+ const { id: n, props: o } = t;
629
+ return {
630
+ ...e,
631
+ props: {
632
+ ...e.props,
633
+ [n]: o
634
+ }
635
+ };
636
+ }
637
+ case "NOTIFICATION_OPEN": {
638
+ const { id: n, instance: o } = t;
639
+ return {
640
+ ...e,
641
+ open: [...ct(n, e.open), n],
642
+ instances: {
643
+ ...e.instances,
644
+ [n]: o
645
+ }
646
+ };
647
+ }
648
+ default:
649
+ return e;
650
+ }
651
+ }, jt = Re({
652
+ state: ft,
653
+ dispatch: () => {
654
+ }
655
+ }), Ae = () => qe(jt), gs = () => {
656
+ const { dispatch: e } = Ae();
657
+ return v(
658
+ (t, n) => {
659
+ e({ id: t, props: n, type: Ie.NOTIFICATION_REGISTER });
660
+ },
661
+ [e]
662
+ );
663
+ }, Ns = (e) => {
664
+ const { state: t } = Ae();
665
+ return t.props[e];
666
+ }, bs = (e) => {
667
+ const { state: t } = Ae();
668
+ return t.instances[e];
669
+ }, ws = (e) => {
670
+ const { state: t } = Ae();
671
+ return e(t);
672
+ }, kt = (e) => new window.Notification(e.title, {
673
+ icon: e.icon,
674
+ body: e.body,
675
+ requireInteraction: e.requireInteraction
676
+ }), xs = (e) => {
677
+ const { dispatch: t } = Ae(), n = bs(e), o = Ns(e), r = ws(
678
+ (u) => u.open.some((m) => m === e)
679
+ ), [i, a] = M(), c = v(() => {
680
+ t({
681
+ type: Ie.NOTIFICATION_CLOSE,
682
+ id: e
683
+ });
684
+ }, [t, e]);
685
+ j(() => (n == null || n.addEventListener("close", c), () => {
686
+ n == null || n.removeEventListener("close", c);
687
+ }), [c, n]);
688
+ const _ = v(() => {
689
+ var m, p;
690
+ const u = (m = window == null ? void 0 : window.Notification) == null ? void 0 : m.permission;
691
+ r && (n == null || n.close()), u === "granted" ? (t({
692
+ type: Ie.NOTIFICATION_OPEN,
693
+ id: e,
694
+ instance: kt(o)
695
+ }), a(u)) : u !== "denied" ? (p = window == null ? void 0 : window.Notification) == null || p.requestPermission().then((d) => {
696
+ a(d), d === "granted" && t({
697
+ type: Ie.NOTIFICATION_OPEN,
698
+ id: e,
699
+ instance: kt(o)
700
+ });
701
+ }) : u === "denied" && a(u);
702
+ }, [t, e, n, r, o]), h = v(() => {
703
+ n == null || n.close(), t({ type: Ie.NOTIFICATION_CLOSE, id: e });
704
+ }, [t, e, n]);
705
+ return {
706
+ /**
707
+ * Show notification to the user.
708
+ * Warning! Will not work from component scope. Needs to be run as an effect
709
+ * @example
710
+ * const {openNotificaton} = useNotificationState(id);
711
+ * const handleClick = useCallback(() => {
712
+ * openNotification();
713
+ * }, [openNotification]);
714
+ */
715
+ openNotification: _,
716
+ /**
717
+ * Hide notification.
718
+ * Warning! Will not work from component scope. Needs to be run as an effect
719
+ * @example
720
+ * const {openNotificaton} = useNotificationState(id);
721
+ * const handleClick = useCallback(() => {
722
+ * openNotification();
723
+ * }, [openNotification]);
724
+ */
725
+ closeNotification: h,
726
+ /** Current visibility of notification */
727
+ isOpen: r,
728
+ /**
729
+ * Indicates the current permission granted by the user for the current origin to display web notifications
730
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Notification/permission_static
731
+ */
732
+ permission: i
733
+ };
734
+ }, t1 = ({
735
+ id: e,
736
+ title: t,
737
+ icon: n,
738
+ body: o,
739
+ requireInteraction: r,
740
+ onToggle: i = () => {
741
+ },
742
+ onDenied: a = () => {
743
+ }
744
+ }) => {
745
+ const c = gs(), { isOpen: _, permission: h } = xs(e);
746
+ return j(() => {
747
+ c(e, { title: t, icon: n, body: o, requireInteraction: r });
748
+ }, [e, t, n, o, r, c]), j(() => {
749
+ i(_);
750
+ }, [_, i]), j(() => {
751
+ h === "denied" && a();
752
+ }, [a, h]), /* @__PURE__ */ s(ze, {});
753
+ }, ys = Ye({
754
+ context: jt,
755
+ reducer: fs,
756
+ initialState: ft
757
+ }), Xe = ({ children: e }) => {
758
+ const t = pt(), [n, o] = M(!1);
759
+ return Ee(() => {
760
+ if (!n) {
761
+ const r = document.createElement("div");
762
+ r.id = t, document.body.appendChild(r), o(!0);
763
+ }
764
+ return () => {
765
+ n && document.getElementById(t).remove();
766
+ };
767
+ }, [t, n]), n && pn(e, document.getElementById(t), t);
768
+ }, Mt = ({ callback: e, interval: t, condition: n = !0 }) => {
769
+ const o = Y();
770
+ j(() => {
771
+ o.current = e;
772
+ }, [e]), j(() => {
773
+ let r;
774
+ return t !== null && n && (r = setInterval(() => {
775
+ var a;
776
+ (a = o.current) == null || a.call(o);
777
+ }, t)), () => {
778
+ r && clearInterval(r);
779
+ };
780
+ }, [n, t]);
781
+ };
782
+ var dt = /* @__PURE__ */ ((e) => (e.TOAST_CLOSE = "TOAST_CLOSE", e.TOAST_OPEN = "TOAST_OPEN", e))(dt || {});
783
+ const gt = {
784
+ open: ""
785
+ }, ks = (e = gt, t) => {
786
+ switch (t.type) {
787
+ case "TOAST_CLOSE": {
788
+ const { id: n } = t, o = e.open === n ? "" : e.open;
789
+ return {
790
+ ...e,
791
+ open: o
792
+ };
793
+ }
794
+ case "TOAST_OPEN": {
795
+ const { id: n } = t;
796
+ return {
797
+ ...e,
798
+ open: n
799
+ };
800
+ }
801
+ default:
802
+ return e;
803
+ }
804
+ }, Zt = Re({
805
+ state: gt,
806
+ dispatch: () => {
807
+ }
808
+ }), Ht = () => qe(Zt), Is = (e) => {
809
+ const { state: t } = Ht();
810
+ return e(t);
811
+ }, Ss = (e) => {
812
+ const { dispatch: t } = Ht(), n = v(() => {
813
+ t({
814
+ type: dt.TOAST_OPEN,
815
+ id: e
816
+ });
817
+ }, [e, t]), o = v(() => {
818
+ t({
819
+ type: dt.TOAST_CLOSE,
820
+ id: e
821
+ });
822
+ }, [e, t]), r = Is((a) => a.open);
823
+ return {
824
+ openToast: n,
825
+ closeToast: o,
826
+ isOpen: e === r
827
+ };
828
+ }, Es = "_toast_15z6m_30", qs = "_success_15z6m_43", $s = "_error_15z6m_47", Cs = "_warning_15z6m_51", Ts = "_enter-active_15z6m_56", Ls = "_slide-in-bottom_15z6m_1", Rs = "_exit-active_15z6m_60", zs = "_slide-out-bottom_15z6m_1", Os = "_title_15z6m_64", As = "_content_15z6m_74", Ds = "_left_15z6m_83", Bs = "_icon_15z6m_89", Fs = "_body_15z6m_95", js = "_provider_15z6m_100", Ms = "_actions_15z6m_106", Zs = "_row_15z6m_112", Hs = "_action-button_15z6m_117", G = {
829
+ toast: Es,
830
+ success: qs,
831
+ error: $s,
832
+ warning: Cs,
833
+ "enter-active": "_enter-active_15z6m_56",
834
+ enterActive: Ts,
835
+ "slide-in-bottom": "_slide-in-bottom_15z6m_1",
836
+ slideInBottom: Ls,
837
+ "exit-active": "_exit-active_15z6m_60",
838
+ exitActive: Rs,
839
+ "slide-out-bottom": "_slide-out-bottom_15z6m_1",
840
+ slideOutBottom: zs,
841
+ title: Os,
842
+ content: As,
843
+ left: Ds,
844
+ icon: Bs,
845
+ body: Fs,
846
+ provider: js,
847
+ actions: Ms,
848
+ row: Zs,
849
+ "action-button": "_action-button_15z6m_117",
850
+ actionButton: Hs
851
+ }, Ps = g(
852
+ ({
853
+ children: e,
854
+ className: t,
855
+ actions: n = [],
856
+ icon: o,
857
+ variant: r = "default",
858
+ title: i,
859
+ body: a,
860
+ onToggle: c = () => {
861
+ },
862
+ id: _,
863
+ autoClose: h = null,
864
+ closeLabel: u = "Close",
865
+ ...m
866
+ }, p) => {
867
+ const { isOpen: d, closeToast: N } = Ss(_), { LocalRoot: b } = B(), { getTheme: x } = Ke(), w = o || {
868
+ default: Un,
869
+ error: oe,
870
+ success: At,
871
+ warning: Gn
872
+ }[r];
873
+ j(() => {
874
+ c(d);
875
+ }, [d, c]);
876
+ const y = typeof h == "number", f = y ? h * 1e3 : null;
877
+ Mt({ callback: N, interval: f, condition: y });
878
+ const S = be(p);
879
+ return /* @__PURE__ */ s(Xe, { children: /* @__PURE__ */ s(Jo, { show: d, nodeRef: S, children: /* @__PURE__ */ s(b, { className: G.provider, theme: x(), children: /* @__PURE__ */ I(
880
+ "div",
881
+ {
882
+ ...m,
883
+ className: l(
884
+ G.toast,
885
+ {
886
+ [G.success]: r === "success",
887
+ [G.warning]: r === "warning",
888
+ [G.error]: r === "error"
889
+ /* error */
890
+ },
891
+ t
892
+ ),
893
+ ref: S,
894
+ children: [
895
+ /* @__PURE__ */ I("div", { className: G.content, children: [
896
+ /* @__PURE__ */ s("div", { className: G.left, children: /* @__PURE__ */ s(w, { className: G.icon }) }),
897
+ /* @__PURE__ */ I("div", { className: G.right, children: [
898
+ /* @__PURE__ */ s("div", { className: G.title, children: i }),
899
+ a && /* @__PURE__ */ s("div", { className: G.body, children: a })
900
+ ] })
901
+ ] }),
902
+ /* @__PURE__ */ I("footer", { className: G.actions, children: [
903
+ /* @__PURE__ */ s(
904
+ Ue,
905
+ {
906
+ actions: n,
907
+ classNameAction: G.actionButton
908
+ }
909
+ ),
910
+ /* @__PURE__ */ s("div", { className: G.row, children: /* @__PURE__ */ s(
911
+ ht,
912
+ {
913
+ className: G.actionButton,
914
+ onClick: N,
915
+ icon: Ot,
916
+ title: u
917
+ }
918
+ ) }, `${_}-close`)
919
+ ] })
920
+ ]
921
+ }
922
+ ) }) }) });
923
+ }
924
+ );
925
+ Ps.displayName = "Toast";
926
+ const Vs = Ye({
927
+ context: Zt,
928
+ reducer: ks,
929
+ initialState: gt
930
+ }), Nt = (e, t, n) => {
931
+ const o = v(
932
+ (i) => {
933
+ n && i.key === "Escape" && e();
934
+ },
935
+ [e, n]
936
+ );
937
+ Ge(Qe.keydown, o);
938
+ const r = v(
939
+ (i) => {
940
+ n && i.target.contains(t.current) && e();
941
+ },
942
+ [e, n, t]
943
+ );
944
+ Ge(Qe.mousedown, r);
945
+ }, Ws = "_provider_1nnpp_1", Qs = "_drawer_1nnpp_5", Gs = "_left_1nnpp_16", Ks = "_right_1nnpp_21", Us = "_brand_1nnpp_27", Be = {
946
+ provider: Ws,
947
+ drawer: Qs,
948
+ left: Gs,
949
+ right: Ks,
950
+ brand: Us
951
+ };
952
+ var _t = /* @__PURE__ */ ((e) => (e.DRAWER_CLOSE = "DRAWER_CLOSE", e.DRAWER_OPEN = "DRAWER_OPEN", e))(_t || {});
953
+ const bt = {
954
+ open: void 0
955
+ }, Ys = (e = bt, t) => {
956
+ switch (t.type) {
957
+ case "DRAWER_CLOSE": {
958
+ const { id: n } = t, o = n === e.open ? void 0 : e.open;
959
+ return {
960
+ ...e,
961
+ open: o
962
+ };
963
+ }
964
+ case "DRAWER_OPEN": {
965
+ const { id: n } = t;
966
+ return {
967
+ ...e,
968
+ open: n
969
+ };
970
+ }
971
+ default:
972
+ return e;
973
+ }
974
+ }, Pt = Re({
975
+ state: bt,
976
+ dispatch: () => {
977
+ }
978
+ }), Vt = () => qe(Pt), Xs = (e) => {
979
+ const { state: t } = Vt();
980
+ return e(t);
981
+ }, Wt = (e) => {
982
+ const { dispatch: t } = Vt(), n = v(() => {
983
+ t({
984
+ type: _t.DRAWER_OPEN,
985
+ id: e
986
+ });
987
+ }, [e, t]), o = v(() => {
988
+ t({
989
+ type: _t.DRAWER_CLOSE,
990
+ id: e
991
+ });
992
+ }, [e, t]), r = Xs((a) => a.open);
993
+ return {
994
+ openDrawer: n,
995
+ closeDrawer: o,
996
+ isOpen: e === r
997
+ };
998
+ }, Qt = g(
999
+ ({ children: e, className: t, placement: n = "left", id: o, ...r }, i) => {
1000
+ const a = be(i), { isOpen: c, closeDrawer: _ } = Wt(o), { getTheme: h } = Ke(), { LocalRoot: u } = B(), m = L(
1001
+ () => ({
1002
+ left: es,
1003
+ right: ts
1004
+ })[n],
1005
+ [n]
1006
+ );
1007
+ return Nt(_, a, c), /* @__PURE__ */ s(Xe, { children: /* @__PURE__ */ s(m, { show: c, nodeRef: a, children: /* @__PURE__ */ s(u, { theme: h(), className: Be.provider, children: /* @__PURE__ */ s(
1008
+ "div",
1009
+ {
1010
+ ...r,
1011
+ className: l(
1012
+ Be.drawer,
1013
+ {
1014
+ [Be.left]: n === "left",
1015
+ [Be.right]: n === "right"
1016
+ /* right */
1017
+ },
1018
+ t
1019
+ ),
1020
+ ref: a,
1021
+ children: e
1022
+ }
1023
+ ) }) }) });
1024
+ }
1025
+ );
1026
+ Qt.displayName = "Drawer";
1027
+ const Js = Ye({
1028
+ context: Pt,
1029
+ reducer: Ys,
1030
+ initialState: bt
1031
+ }), er = (e) => `fg-${e.replace(new RegExp("(?<![A-Z])[A-Z]", "g"), (t) => `-${t.toLowerCase()}`).replace(new RegExp("(?<=\\D)\\d", "g"), (t) => `-${t}`).toLowerCase()}`, tr = (e) => {
1032
+ const t = Object.entries(e).map(([n, o]) => [er(n), o]);
1033
+ return Object.fromEntries(t);
1034
+ }, nr = "_provider_7jixm_1", or = {
1035
+ provider: nr
1036
+ }, n1 = ({ children: e, theme: t = mn }) => {
1037
+ const n = L(() => tr({ ...k, ...t }), [t]);
1038
+ return /* @__PURE__ */ s(an, { theme: n, className: or.provider, children: /* @__PURE__ */ s(hs, { children: /* @__PURE__ */ s(ys, { children: /* @__PURE__ */ s(Vs, { children: /* @__PURE__ */ s(Js, { children: e }) }) }) }) });
1039
+ }, te = (e, t) => {
1040
+ const n = Y(null), o = t || n;
1041
+ $t(e, () => o.current, [
1042
+ o
1043
+ ]);
1044
+ };
1045
+ var ee = /* @__PURE__ */ ((e) => (e.xs = "xs", e.sm = "sm", e.md = "md", e.lg = "lg", e.xl = "xl", e))(ee || {});
1046
+ const sr = "_vars_1h1fy_3", rr = "_grid_1h1fy_20", ar = "_row_1h1fy_29", ir = "_column_1h1fy_38", cr = "_xs_1h1fy_49", lr = "_sm_1h1fy_56", dr = "_md_1h1fy_63", _r = "_lg_1h1fy_70", ur = "_xl_1h1fy_77", pr = "_fluid-xs_1h1fy_84", mr = "_fluid-sm_1h1fy_90", hr = "_fluid-md_1h1fy_96", vr = "_fluid-lg_1h1fy_102", fr = "_fluid-xl_1h1fy_108", gr = "_page_1h1fy_115", Nr = "_header_1h1fy_126", br = "_sticky_1h1fy_127", wr = "_content_1h1fy_133", xr = "_main_1h1fy_139", yr = "_footer_1h1fy_146", kr = "_aside_1h1fy_150", H = {
1047
+ vars: sr,
1048
+ grid: rr,
1049
+ row: ar,
1050
+ column: ir,
1051
+ xs: cr,
1052
+ sm: lr,
1053
+ md: dr,
1054
+ lg: _r,
1055
+ xl: ur,
1056
+ "fluid-xs": "_fluid-xs_1h1fy_84",
1057
+ fluidXs: pr,
1058
+ "fluid-sm": "_fluid-sm_1h1fy_90",
1059
+ fluidSm: mr,
1060
+ "fluid-md": "_fluid-md_1h1fy_96",
1061
+ fluidMd: hr,
1062
+ "fluid-lg": "_fluid-lg_1h1fy_102",
1063
+ fluidLg: vr,
1064
+ "fluid-xl": "_fluid-xl_1h1fy_108",
1065
+ fluidXl: fr,
1066
+ page: gr,
1067
+ header: Nr,
1068
+ sticky: br,
1069
+ content: wr,
1070
+ main: xr,
1071
+ footer: yr,
1072
+ aside: kr
1073
+ }, Ir = (e) => Object.fromEntries(Object.entries(e).filter(([t, n]) => n !== void 0)), wt = g(
1074
+ ({
1075
+ as: e = "div",
1076
+ children: t,
1077
+ className: n,
1078
+ xs: o,
1079
+ sm: r,
1080
+ md: i,
1081
+ lg: a,
1082
+ xl: c,
1083
+ shiftXS: _,
1084
+ shiftSM: h,
1085
+ shiftMD: u,
1086
+ shiftLG: m,
1087
+ shiftXL: p,
1088
+ ...d
1089
+ }, N) => {
1090
+ const { LocalRoot: b, ref: x } = B();
1091
+ te(N, x);
1092
+ const w = L(
1093
+ () => Ir({
1094
+ [ee.xs]: o ?? "",
1095
+ [ee.sm]: r ?? "",
1096
+ [ee.md]: i ?? "",
1097
+ [ee.lg]: a ?? "",
1098
+ [ee.xl]: c ?? "",
1099
+ [`shift-${ee.xs}`]: _ ?? "",
1100
+ [`shift-${ee.sm}`]: h ?? "",
1101
+ [`shift-${ee.md}`]: u ?? "",
1102
+ [`shift-${ee.lg}`]: m ?? "",
1103
+ [`shift-${ee.xl}`]: p ?? ""
1104
+ }),
1105
+ [o, r, i, a, c, _, h, u, m, p]
1106
+ );
1107
+ return /* @__PURE__ */ s(
1108
+ b,
1109
+ {
1110
+ ...d,
1111
+ theme: w,
1112
+ as: e,
1113
+ className: l(
1114
+ H.column,
1115
+ {
1116
+ [H.xs]: !!o,
1117
+ [H.sm]: !!r,
1118
+ [H.md]: !!i,
1119
+ [H.lg]: !!a,
1120
+ [H.xl]: !!c,
1121
+ [H["fluid-xs"]]: o === "fluid",
1122
+ [H["fluid-sm"]]: r === "fluid",
1123
+ [H["fluid-md"]]: i === "fluid",
1124
+ [H["fluid-lg"]]: a === "fluid",
1125
+ [H["fluid-xl"]]: c === "fluid"
1126
+ },
1127
+ n
1128
+ ),
1129
+ children: t
1130
+ }
1131
+ );
1132
+ }
1133
+ );
1134
+ wt.displayName = "Col";
1135
+ const Je = g(
1136
+ ({ className: e, children: t, as: n = "div", ...o }, r) => {
1137
+ const { LocalRoot: i, ref: a } = B();
1138
+ return te(r, a), /* @__PURE__ */ s(i, { ...o, as: n, className: l(H.row, e), children: t });
1139
+ }
1140
+ );
1141
+ Je.displayName = "Row";
1142
+ const Sr = (e) => e === "fluid" ? "100%" : `${e}px`, Gt = g(
1143
+ ({ width: e = 1280, className: t, as: n = "div", children: o, gap: r = 16, base: i = 12, ...a }, c) => {
1144
+ const { LocalRoot: _, ref: h } = B();
1145
+ te(c, h);
1146
+ const u = L(
1147
+ () => ({ "container-width": Sr(e), base: i, gap: `${r}px` }),
1148
+ [e, r, i]
1149
+ );
1150
+ return /* @__PURE__ */ s(
1151
+ _,
1152
+ {
1153
+ ...a,
1154
+ theme: u,
1155
+ as: n,
1156
+ className: l(H.grid, t),
1157
+ children: o
1158
+ }
1159
+ );
1160
+ }
1161
+ );
1162
+ Gt.displayName = "Grid";
1163
+ const Er = g(
1164
+ ({ width: e = "fluid", className: t, as: n = "div", children: o, gap: r = 0, base: i = 12, ...a }, c) => /* @__PURE__ */ s(
1165
+ Gt,
1166
+ {
1167
+ ...a,
1168
+ width: e,
1169
+ ref: c,
1170
+ className: l(H.page, t),
1171
+ as: n,
1172
+ gap: r,
1173
+ base: i,
1174
+ children: o
1175
+ }
1176
+ )
1177
+ );
1178
+ Er.displayName = "Page";
1179
+ const qr = g(
1180
+ ({ children: e, className: t, xs: n = "fluid", sm: o, md: r, lg: i, xl: a, ...c }, _) => /* @__PURE__ */ s(
1181
+ wt,
1182
+ {
1183
+ ...c,
1184
+ as: "main",
1185
+ ref: _,
1186
+ xs: n,
1187
+ sm: o,
1188
+ md: r,
1189
+ lg: i,
1190
+ xl: a,
1191
+ className: l(H.main, t),
1192
+ children: e
1193
+ }
1194
+ )
1195
+ );
1196
+ qr.displayName = "Main";
1197
+ const $r = g(
1198
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s(Je, { ...n, ref: o, className: l(H.footer, t), children: e })
1199
+ );
1200
+ $r.displayName = "Footer";
1201
+ const Cr = g(
1202
+ ({ children: e, className: t, xs: n, sm: o, md: r, lg: i, xl: a, ...c }, _) => /* @__PURE__ */ s(
1203
+ wt,
1204
+ {
1205
+ ...c,
1206
+ as: "aside",
1207
+ xs: n,
1208
+ sm: o,
1209
+ md: r,
1210
+ lg: i,
1211
+ xl: a,
1212
+ ref: _,
1213
+ className: l(H.aside, t),
1214
+ children: e
1215
+ }
1216
+ )
1217
+ );
1218
+ Cr.displayName = "Sidebar";
1219
+ const Tr = g(
1220
+ ({ children: e, sticky: t = !1, className: n, ...o }, r) => /* @__PURE__ */ s(
1221
+ Je,
1222
+ {
1223
+ ...o,
1224
+ as: "header",
1225
+ ref: r,
1226
+ className: l(H.header, { [H.sticky]: t }, n),
1227
+ children: e
1228
+ }
1229
+ )
1230
+ );
1231
+ Tr.displayName = "Header";
1232
+ const Lr = g(
1233
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s(Je, { ...n, ref: o, className: l(H.content, t), children: e })
1234
+ );
1235
+ Lr.displayName = "Content";
1236
+ const Rr = "_button_zt63z_1", zr = "_content_zt63z_35", Or = "_icon_zt63z_36", Ar = "_small_zt63z_40", Dr = "_primary_zt63z_60", Br = "_success_zt63z_80", Fr = "_danger_zt63z_102", jr = "_action_zt63z_124", Mr = "_alternative_zt63z_146", Zr = "_link_zt63z_174", Hr = "_medium_zt63z_206", Pr = "_large_zt63z_211", we = {
1237
+ button: Rr,
1238
+ content: zr,
1239
+ icon: Or,
1240
+ small: Ar,
1241
+ primary: Dr,
1242
+ success: Br,
1243
+ danger: Fr,
1244
+ action: jr,
1245
+ alternative: Mr,
1246
+ link: Zr,
1247
+ medium: Hr,
1248
+ large: Pr
1249
+ }, Vr = g(
1250
+ ({
1251
+ children: e,
1252
+ onClick: t,
1253
+ type: n = "button",
1254
+ disabled: o,
1255
+ variant: r = "primary",
1256
+ className: i,
1257
+ prefix: a,
1258
+ suffix: c,
1259
+ size: _ = "medium",
1260
+ ...h
1261
+ }, u) => /* @__PURE__ */ I(
1262
+ "button",
1263
+ {
1264
+ ...h,
1265
+ ref: u,
1266
+ onClick: t,
1267
+ type: n,
1268
+ className: l(we.button, we[r], we[_], i),
1269
+ disabled: o,
1270
+ children: [
1271
+ a && /* @__PURE__ */ s(a, { className: we.icon }),
1272
+ /* @__PURE__ */ s("div", { className: we.content, children: e }),
1273
+ c && /* @__PURE__ */ s(c, { className: we.icon })
1274
+ ]
1275
+ }
1276
+ )
1277
+ );
1278
+ Vr.displayName = "Button";
1279
+ var ut = /* @__PURE__ */ ((e) => (e.FORM_SET_PRISTINE = "FORM_SET_PRISTINE", e))(ut || {});
1280
+ const xt = {
1281
+ pristine: !0
1282
+ }, Wr = (e = xt, t) => {
1283
+ switch (t.type) {
1284
+ case "FORM_SET_PRISTINE":
1285
+ return {
1286
+ ...e,
1287
+ pristine: t.pristine
1288
+ };
1289
+ default:
1290
+ return e;
1291
+ }
1292
+ }, yt = Re({
1293
+ state: xt,
1294
+ dispatch: () => {
1295
+ }
1296
+ }), Qr = (e) => {
1297
+ const { Provider: t } = yt, n = g((o, r) => {
1298
+ const [i, a] = Ct(Wr, xt), c = L(() => ({ state: i, dispatch: a }), [i]);
1299
+ return /* @__PURE__ */ s(t, { value: c, children: /* @__PURE__ */ s(e, { ...o, ref: r }) });
1300
+ });
1301
+ return n.displayName = "FormProvider", n;
1302
+ }, Gr = "_form_jdsai_1", Kr = {
1303
+ form: Gr
1304
+ }, Ur = () => {
1305
+ const { dispatch: e } = qe(yt), t = v(() => {
1306
+ e({
1307
+ type: ut.FORM_SET_PRISTINE,
1308
+ pristine: !0
1309
+ });
1310
+ }, [e]), n = v(() => {
1311
+ e({
1312
+ type: ut.FORM_SET_PRISTINE,
1313
+ pristine: !1
1314
+ });
1315
+ }, [e]);
1316
+ return {
1317
+ markAsPristine: t,
1318
+ markAsDirty: n
1319
+ };
1320
+ }, Kt = () => {
1321
+ const { state: e } = qe(yt);
1322
+ return {
1323
+ pristine: e.pristine
1324
+ };
1325
+ }, Ut = g(
1326
+ ({
1327
+ className: e,
1328
+ children: t,
1329
+ onSubmit: n = () => {
1330
+ },
1331
+ onReset: o = () => {
1332
+ },
1333
+ onChange: r = () => {
1334
+ },
1335
+ onInvalid: i = () => {
1336
+ },
1337
+ ...a
1338
+ }, c) => {
1339
+ const { markAsPristine: _, markAsDirty: h } = Ur(), u = v((w) => {
1340
+ const y = new FormData(w), f = {};
1341
+ for (const [S, q] of y.entries())
1342
+ f[S] = q;
1343
+ return f;
1344
+ }, []), m = v(
1345
+ (w) => {
1346
+ w.preventDefault();
1347
+ const y = w.currentTarget, f = u(y);
1348
+ n(w, f);
1349
+ },
1350
+ [u, n]
1351
+ ), p = v(
1352
+ (w) => {
1353
+ h();
1354
+ const y = u(w.currentTarget);
1355
+ i(w, y);
1356
+ },
1357
+ [u, h, i]
1358
+ ), d = v(
1359
+ (w) => {
1360
+ const y = u(w.currentTarget);
1361
+ _(), o(w, y);
1362
+ },
1363
+ [u, o, _]
1364
+ ), { pristine: N } = Kt(), b = v(
1365
+ (w) => {
1366
+ N && h();
1367
+ const y = u(w.currentTarget);
1368
+ r(w, y);
1369
+ },
1370
+ [u, r, h, N]
1371
+ ), x = be(c);
1372
+ return /* @__PURE__ */ s(
1373
+ "form",
1374
+ {
1375
+ ...a,
1376
+ autoFocus: !0,
1377
+ onSubmit: m,
1378
+ onInvalid: p,
1379
+ onReset: d,
1380
+ onChange: b,
1381
+ ref: x,
1382
+ className: l(Kr.form, e),
1383
+ children: t
1384
+ }
1385
+ );
1386
+ }
1387
+ );
1388
+ Ut.displayName = "Form";
1389
+ const o1 = Qr(Ut), J = (e) => {
1390
+ const t = pt();
1391
+ return e || t;
1392
+ }, Yr = "_wrapper_1fpz7_1", Xr = "_label_1fpz7_9", Jr = "_required_1fpz7_17", ea = "_hint_1fpz7_26", Fe = {
1393
+ wrapper: Yr,
1394
+ label: Xr,
1395
+ required: Jr,
1396
+ hint: ea
1397
+ }, ta = g(
1398
+ ({ className: e, children: t, label: n, hint: o, ...r }, i) => {
1399
+ const a = ne.only(t).props, c = J(a.id), _ = a.id ? ne.only(t) : Tt(ne.only(t), { id: c });
1400
+ return /* @__PURE__ */ I("div", { ...r, ref: i, className: l(Fe.wrapper, e), children: [
1401
+ /* @__PURE__ */ s(
1402
+ "label",
1403
+ {
1404
+ className: l(Fe.label, { [Fe.required]: a.required }),
1405
+ htmlFor: c,
1406
+ children: n
1407
+ }
1408
+ ),
1409
+ _,
1410
+ o && /* @__PURE__ */ s("div", { className: Fe.hint, children: o })
1411
+ ] });
1412
+ }
1413
+ );
1414
+ ta.displayName = "FormField";
1415
+ var $ = /* @__PURE__ */ ((e) => (e.error = "error", e.valid = "valid", e.inProgress = "inProgress", e))($ || {});
1416
+ const se = (e) => "", na = (e) => {
1417
+ const { pristine: t } = Kt();
1418
+ j(() => {
1419
+ t && e(null);
1420
+ }, [t, e]);
1421
+ }, It = (e) => {
1422
+ const t = e && new FormData(e), n = {};
1423
+ if (t)
1424
+ for (const [o, r] of t.entries())
1425
+ n[o] = r;
1426
+ return n;
1427
+ }, St = (e, t) => t === "interactive" ? e.target.checked : e.target.value, _e = ({
1428
+ validatorFn: e
1429
+ }) => {
1430
+ const t = e !== se, [n, o] = M(t), r = (e == null ? void 0 : e.constructor.name) === "AsyncFunction", [i, a] = M(null);
1431
+ na(a);
1432
+ const c = v(
1433
+ (d) => {
1434
+ const N = d.target.reportValidity();
1435
+ !N && !n && o(!0);
1436
+ const b = n ? $.valid : null, x = N ? b : $.error;
1437
+ a(x);
1438
+ },
1439
+ [n, a]
1440
+ ), _ = v(
1441
+ (d, N) => {
1442
+ const b = St(N, d), x = It(N.target.form), w = e == null ? void 0 : e(
1443
+ b,
1444
+ N.target.validity,
1445
+ x
1446
+ );
1447
+ N.target.setCustomValidity(w), c(N);
1448
+ },
1449
+ [e, c]
1450
+ ), h = v(cn(e, 1e3), [
1451
+ e
1452
+ ]), u = v(
1453
+ async (d, N) => {
1454
+ N.target.setCustomValidity("");
1455
+ const b = St(N, d), x = It(N.target.form);
1456
+ a($.inProgress);
1457
+ let w = "";
1458
+ try {
1459
+ w = await h(
1460
+ b,
1461
+ N.target.validity,
1462
+ x
1463
+ );
1464
+ } catch (y) {
1465
+ N.target.setCustomValidity(y);
1466
+ }
1467
+ N.target.setCustomValidity(w), c(N);
1468
+ },
1469
+ [a, h, c]
1470
+ ), m = v(
1471
+ (d) => r ? u("interactive", d) : _("interactive", d),
1472
+ [u, _, r]
1473
+ ), p = v(
1474
+ (d) => r ? u("textual", d) : _("textual", d),
1475
+ [_, r, u]
1476
+ );
1477
+ return { validateInteractive: m, validateTextual: p, validity: i, setValidity: a };
1478
+ }, oa = "_wrapper_1sa8r_3", sa = "_input_1sa8r_10", ra = "_label_1sa8r_62", aa = "_required_1sa8r_75", ia = "_icon_1sa8r_84", $e = {
1479
+ wrapper: oa,
1480
+ input: sa,
1481
+ label: ra,
1482
+ required: aa,
1483
+ icon: ia
1484
+ }, ca = g(
1485
+ ({
1486
+ className: e,
1487
+ disabled: t,
1488
+ value: n,
1489
+ onChange: o = () => {
1490
+ },
1491
+ onFocus: r = () => {
1492
+ },
1493
+ onBlur: i = () => {
1494
+ },
1495
+ onKeyDown: a = () => {
1496
+ },
1497
+ onKeyUp: c = () => {
1498
+ },
1499
+ checked: _,
1500
+ defaultChecked: h,
1501
+ id: u,
1502
+ label: m,
1503
+ validatorFn: p = se,
1504
+ required: d,
1505
+ ...N
1506
+ }, b) => {
1507
+ const x = J(u), { validateInteractive: w, validity: y, setValidity: f } = _e({ validatorFn: p }), S = {
1508
+ [$.error]: oe,
1509
+ [$.valid]: le,
1510
+ [$.inProgress]: de
1511
+ }[y], q = v(
1512
+ (C) => {
1513
+ o(C);
1514
+ },
1515
+ [o]
1516
+ ), F = v(() => {
1517
+ f($.error);
1518
+ }, [f]);
1519
+ return /* @__PURE__ */ I("div", { className: l($e.wrapper, e), children: [
1520
+ /* @__PURE__ */ s(
1521
+ "input",
1522
+ {
1523
+ ...N,
1524
+ className: $e.input,
1525
+ ref: b,
1526
+ disabled: t,
1527
+ type: "checkbox",
1528
+ id: x,
1529
+ value: n,
1530
+ checked: _,
1531
+ defaultChecked: h,
1532
+ onChange: q,
1533
+ onBlur: i,
1534
+ onFocus: r,
1535
+ onKeyUp: c,
1536
+ onKeyDown: a,
1537
+ onInput: w,
1538
+ onInvalid: F,
1539
+ onReset: () => {
1540
+ console.log("reset!");
1541
+ },
1542
+ required: d
1543
+ }
1544
+ ),
1545
+ /* @__PURE__ */ s(
1546
+ "label",
1547
+ {
1548
+ className: l($e.label, { [$e.required]: d }),
1549
+ htmlFor: x,
1550
+ children: m
1551
+ }
1552
+ ),
1553
+ y && /* @__PURE__ */ s(S, { className: $e.icon })
1554
+ ] });
1555
+ }
1556
+ );
1557
+ ca.displayName = "InputCheckbox";
1558
+ const la = "_wrapper_1ed63_1", da = "_legend_1ed63_7", _a = "_disabled_1ed63_15", ua = "_inputs_1ed63_20", pa = "_hint_1ed63_27", Ce = {
1559
+ wrapper: la,
1560
+ legend: da,
1561
+ disabled: _a,
1562
+ inputs: ua,
1563
+ hint: pa
1564
+ }, ma = g(
1565
+ ({
1566
+ className: e,
1567
+ validation: t,
1568
+ id: n,
1569
+ label: o,
1570
+ children: r,
1571
+ name: i,
1572
+ disabled: a,
1573
+ hint: c,
1574
+ required: _,
1575
+ ...h
1576
+ }, u) => {
1577
+ const m = L(() => ne.map(r, (p) => {
1578
+ if (rn(p)) {
1579
+ const d = { name: i };
1580
+ return a !== void 0 && typeof p.props.disabled != "boolean" && (d.disabled = a), _ !== void 0 && typeof p.props.required != "boolean" && (d.required = _), Tt(p, d);
1581
+ }
1582
+ return p;
1583
+ }), [r, a, i, _]);
1584
+ return /* @__PURE__ */ I(
1585
+ "fieldset",
1586
+ {
1587
+ ...h,
1588
+ className: l(Ce.wrapper, e),
1589
+ disabled: a,
1590
+ id: n,
1591
+ ref: u,
1592
+ children: [
1593
+ /* @__PURE__ */ s("legend", { className: l(Ce.legend, { [Ce.disabled]: a }), children: o }),
1594
+ /* @__PURE__ */ s("div", { className: Ce.inputs, children: m }),
1595
+ c && /* @__PURE__ */ s("div", { className: Ce.hint, children: c })
1596
+ ]
1597
+ }
1598
+ );
1599
+ }
1600
+ );
1601
+ ma.displayName = "InputGroup";
1602
+ const ha = "_wrapper_1rk00_3", va = "_label_1rk00_10", fa = "_required_1rk00_14", ga = "_input_1rk00_23", Na = "_icon_1rk00_96", je = {
1603
+ wrapper: ha,
1604
+ label: va,
1605
+ required: fa,
1606
+ input: ga,
1607
+ icon: Na
1608
+ }, ba = g(
1609
+ ({
1610
+ className: e,
1611
+ disabled: t,
1612
+ value: n,
1613
+ onChange: o = () => {
1614
+ },
1615
+ onFocus: r = () => {
1616
+ },
1617
+ onBlur: i = () => {
1618
+ },
1619
+ onKeyDown: a = () => {
1620
+ },
1621
+ onKeyUp: c = () => {
1622
+ },
1623
+ checked: _,
1624
+ defaultChecked: h,
1625
+ id: u,
1626
+ label: m,
1627
+ required: p,
1628
+ ...d
1629
+ }, N) => {
1630
+ const b = J(u), x = v(
1631
+ (w) => {
1632
+ o(w);
1633
+ },
1634
+ [o]
1635
+ );
1636
+ return /* @__PURE__ */ I("div", { className: l(je.wrapper, e), children: [
1637
+ /* @__PURE__ */ s(
1638
+ "input",
1639
+ {
1640
+ ...d,
1641
+ className: je.input,
1642
+ ref: N,
1643
+ disabled: t,
1644
+ type: "radio",
1645
+ id: b,
1646
+ value: n,
1647
+ checked: _,
1648
+ defaultChecked: h,
1649
+ onChange: x,
1650
+ onBlur: i,
1651
+ onFocus: r,
1652
+ onKeyUp: c,
1653
+ onKeyDown: a,
1654
+ required: p
1655
+ }
1656
+ ),
1657
+ /* @__PURE__ */ s(
1658
+ "label",
1659
+ {
1660
+ className: l(je.label, { [je.required]: p }),
1661
+ htmlFor: b,
1662
+ children: m
1663
+ }
1664
+ )
1665
+ ] });
1666
+ }
1667
+ );
1668
+ ba.displayName = "InputRadio";
1669
+ const wa = "_wrapper_1vbpi_3", xa = "_input_1vbpi_20", ya = "_prefix_1vbpi_71", tt = {
1670
+ wrapper: wa,
1671
+ input: xa,
1672
+ prefix: ya
1673
+ }, ka = g(
1674
+ ({
1675
+ prefix: e,
1676
+ className: t,
1677
+ type: n = "text",
1678
+ placeholder: o = "",
1679
+ disabled: r,
1680
+ value: i,
1681
+ onChange: a = () => {
1682
+ },
1683
+ onFocus: c = () => {
1684
+ },
1685
+ onBlur: _ = () => {
1686
+ },
1687
+ onKeyDown: h = () => {
1688
+ },
1689
+ onKeyUp: u = () => {
1690
+ },
1691
+ defaultValue: m,
1692
+ validatorFn: p = se,
1693
+ readOnly: d,
1694
+ size: N = 16,
1695
+ id: b,
1696
+ required: x,
1697
+ ...w
1698
+ }, y) => {
1699
+ const { validateTextual: f, validity: S, setValidity: q } = _e({ validatorFn: p }), F = {
1700
+ [$.error]: oe,
1701
+ [$.valid]: le,
1702
+ [$.inProgress]: de
1703
+ }[S], C = v(
1704
+ (P) => {
1705
+ a(P);
1706
+ },
1707
+ [a]
1708
+ ), D = v(() => {
1709
+ x && q($.error);
1710
+ }, [x, q]), T = v(
1711
+ (P) => {
1712
+ d && P.target.select();
1713
+ },
1714
+ [d]
1715
+ ), A = J(b);
1716
+ return /* @__PURE__ */ I("div", { className: l(tt.wrapper, t), children: [
1717
+ e && /* @__PURE__ */ s("label", { className: tt.prefix, htmlFor: A, children: /* @__PURE__ */ s(e, {}) }),
1718
+ /* @__PURE__ */ s(
1719
+ "input",
1720
+ {
1721
+ ...w,
1722
+ required: x,
1723
+ size: N,
1724
+ id: A,
1725
+ readOnly: d,
1726
+ placeholder: o,
1727
+ className: tt.input,
1728
+ ref: y,
1729
+ disabled: r,
1730
+ type: n,
1731
+ value: i,
1732
+ defaultValue: m,
1733
+ onChange: C,
1734
+ onBlur: _,
1735
+ onFocus: c,
1736
+ onKeyUp: u,
1737
+ onKeyDown: h,
1738
+ onInvalid: D,
1739
+ onInput: f,
1740
+ onSelect: T
1741
+ }
1742
+ ),
1743
+ S && /* @__PURE__ */ s(F, {})
1744
+ ] });
1745
+ }
1746
+ );
1747
+ ka.displayName = "InputText";
1748
+ const Ia = "_wrapper_qh9t3_3", Sa = "_toggle_qh9t3_17", Ea = "_icon_qh9t3_27", qa = "_input_qh9t3_37", $a = "_label_qh9t3_65", Ca = "_validity_qh9t3_125", xe = {
1749
+ wrapper: Ia,
1750
+ toggle: Sa,
1751
+ icon: Ea,
1752
+ input: qa,
1753
+ label: $a,
1754
+ validity: Ca
1755
+ }, Ta = g(
1756
+ ({
1757
+ id: e,
1758
+ className: t,
1759
+ placeholder: n = "YYYY-MM-DD",
1760
+ disabled: o,
1761
+ value: r,
1762
+ onChange: i = () => {
1763
+ },
1764
+ onFocus: a = () => {
1765
+ },
1766
+ onBlur: c = () => {
1767
+ },
1768
+ onKeyDown: _ = () => {
1769
+ },
1770
+ onKeyUp: h = () => {
1771
+ },
1772
+ defaultValue: u,
1773
+ validatorFn: m = se,
1774
+ ...p
1775
+ }, d) => {
1776
+ const N = J(e), b = Y(null), { validateTextual: x, validity: w, setValidity: y } = _e({ validatorFn: m }), f = {
1777
+ [$.error]: oe,
1778
+ [$.valid]: le,
1779
+ [$.inProgress]: de
1780
+ }[w], S = r ?? u, q = v(
1781
+ (A) => {
1782
+ i(A), b != null && b.current && (b.current.innerText = A.target.value);
1783
+ },
1784
+ [i]
1785
+ ), F = v(() => {
1786
+ y($.error);
1787
+ }, [y]), C = v(
1788
+ (A) => {
1789
+ a(A), A.target.showPicker();
1790
+ },
1791
+ [a]
1792
+ ), D = v(
1793
+ (A) => {
1794
+ c(A);
1795
+ },
1796
+ [c]
1797
+ ), T = v(
1798
+ (A) => {
1799
+ x(A);
1800
+ },
1801
+ [x]
1802
+ );
1803
+ return /* @__PURE__ */ I("div", { className: l(xe.wrapper, t), children: [
1804
+ /* @__PURE__ */ I("div", { className: xe.toggle, children: [
1805
+ /* @__PURE__ */ s(
1806
+ "input",
1807
+ {
1808
+ ...p,
1809
+ id: N,
1810
+ ref: d,
1811
+ className: xe.input,
1812
+ type: "date",
1813
+ disabled: o,
1814
+ value: r,
1815
+ defaultValue: u,
1816
+ onChange: q,
1817
+ onInvalid: F,
1818
+ onInput: T,
1819
+ onFocus: C,
1820
+ onBlur: D,
1821
+ onKeyUp: h,
1822
+ onKeyDown: _
1823
+ }
1824
+ ),
1825
+ /* @__PURE__ */ s("label", { htmlFor: N, className: xe.icon, children: /* @__PURE__ */ s(En, {}) })
1826
+ ] }),
1827
+ /* @__PURE__ */ s("label", { htmlFor: N, className: xe.label, ref: b, children: S || n }),
1828
+ w && /* @__PURE__ */ s(f, { className: xe.validity })
1829
+ ] });
1830
+ }
1831
+ );
1832
+ Ta.displayName = "InputDate";
1833
+ const La = "_wrapper_iwnrb_3", Ra = "_toggle_iwnrb_18", za = "_icon_iwnrb_28", Oa = "_input_iwnrb_45", Aa = "_label_iwnrb_72", Da = "_validity_iwnrb_129", Te = {
1834
+ wrapper: La,
1835
+ toggle: Ra,
1836
+ icon: za,
1837
+ input: Oa,
1838
+ label: Aa,
1839
+ validity: Da
1840
+ }, nt = (e, t = 2) => (new Array(t).join("0") + e).slice(-t), ot = (e) => (255 - e).toString(16), st = (e, t) => {
1841
+ if (e) {
1842
+ if (e.startsWith("#") && (e = e.slice(1)), e.length === 3 && (e = e[0] + e[0] + e[1] + e[1] + e[2] + e[2]), e.length !== 6)
1843
+ throw new Error("Invalid HEX color.");
1844
+ const n = parseInt(e.slice(0, 2), 16), o = parseInt(e.slice(2, 4), 16), r = parseInt(e.slice(4, 6), 16);
1845
+ return t ? n * 0.299 + o * 0.587 + r * 0.114 > 186 ? "#000000" : "#FFFFFF" : "#" + nt(ot(n)) + nt(ot(o)) + nt(ot(r));
1846
+ }
1847
+ return "";
1848
+ }, Ba = g(
1849
+ ({
1850
+ className: e,
1851
+ placeholder: t = "#??????",
1852
+ disabled: n,
1853
+ value: o,
1854
+ onChange: r = () => {
1855
+ },
1856
+ onFocus: i = () => {
1857
+ },
1858
+ onBlur: a = () => {
1859
+ },
1860
+ onKeyDown: c = () => {
1861
+ },
1862
+ onKeyUp: _ = () => {
1863
+ },
1864
+ defaultValue: h,
1865
+ id: u,
1866
+ predefinedColors: m = [],
1867
+ ...p
1868
+ }, d) => {
1869
+ const N = J(u), { LocalRoot: b, setTheme: x } = B(), w = o ?? h, y = L(
1870
+ () => ({
1871
+ "selected-color": w,
1872
+ "inverted-color": st(w, !0)
1873
+ }),
1874
+ [w]
1875
+ ), f = v(
1876
+ (T) => {
1877
+ i(T), x({
1878
+ "selected-color": T.target.value,
1879
+ "inverted-color": st(T.target.value, !0)
1880
+ });
1881
+ },
1882
+ [i, x]
1883
+ ), S = Y(null), q = v(
1884
+ (T) => {
1885
+ x({
1886
+ "inverted-color": st(T.target.value, !0)
1887
+ }), S != null && S.current && (S.current.innerText = T.target.value), a(T), r(T);
1888
+ },
1889
+ [x, a, r]
1890
+ ), F = v(
1891
+ (T) => {
1892
+ x({
1893
+ "selected-color": T.target.value,
1894
+ "inverted-color": "transparent"
1895
+ });
1896
+ },
1897
+ [x]
1898
+ ), C = m.length > 0, D = `${N}_predefinedColors`;
1899
+ return /* @__PURE__ */ I(b, { theme: y, className: l(Te.wrapper, e), children: [
1900
+ /* @__PURE__ */ I("div", { className: Te.toggle, children: [
1901
+ /* @__PURE__ */ s(
1902
+ "input",
1903
+ {
1904
+ ...p,
1905
+ id: N,
1906
+ ref: d,
1907
+ type: "color",
1908
+ disabled: n,
1909
+ defaultValue: w,
1910
+ className: Te.input,
1911
+ onBlur: q,
1912
+ onKeyUp: _,
1913
+ onKeyDown: c,
1914
+ onFocus: f,
1915
+ onChange: F,
1916
+ list: C ? D : void 0
1917
+ }
1918
+ ),
1919
+ /* @__PURE__ */ s($n, { className: l(Te.icon) })
1920
+ ] }),
1921
+ /* @__PURE__ */ s("label", { htmlFor: N, className: Te.label, ref: S, children: w.toLowerCase() || t }),
1922
+ C && /* @__PURE__ */ s("datalist", { id: D, children: m.map((T) => /* @__PURE__ */ s("option", { value: T }, T)) })
1923
+ ] });
1924
+ }
1925
+ );
1926
+ Ba.displayName = "InputColor";
1927
+ const Fa = "_wrapper_31ykv_3", ja = "_input_31ykv_20", Ma = "_icon_31ykv_83", rt = {
1928
+ wrapper: Fa,
1929
+ input: ja,
1930
+ icon: Ma
1931
+ }, Za = g(
1932
+ ({
1933
+ className: e,
1934
+ placeholder: t = "",
1935
+ disabled: n,
1936
+ value: o,
1937
+ onChange: r = () => {
1938
+ },
1939
+ onFocus: i = () => {
1940
+ },
1941
+ onBlur: a = () => {
1942
+ },
1943
+ onKeyDown: c = () => {
1944
+ },
1945
+ onKeyUp: _ = () => {
1946
+ },
1947
+ defaultValue: h,
1948
+ validatorFn: u = se,
1949
+ ...m
1950
+ }, p) => {
1951
+ const d = be(p), { validity: N, setValidity: b, validateTextual: x } = _e({ validatorFn: u }), w = {
1952
+ [$.error]: oe,
1953
+ [$.valid]: le,
1954
+ [$.inProgress]: de
1955
+ }[N], y = v(() => {
1956
+ b($.error);
1957
+ }, [b]), f = v(() => {
1958
+ var C, D;
1959
+ (C = d.current) == null || C.focus(), (D = d.current) == null || D.showPicker();
1960
+ }, [d]), S = v(
1961
+ (C) => {
1962
+ c(C);
1963
+ },
1964
+ [c]
1965
+ ), q = v(
1966
+ (C) => {
1967
+ _(C);
1968
+ },
1969
+ [_]
1970
+ ), F = v(
1971
+ (C) => {
1972
+ C.target.checkValidity() && b($.valid), r(C);
1973
+ },
1974
+ [r, b]
1975
+ );
1976
+ return /* @__PURE__ */ I("div", { className: l(rt.wrapper, e), children: [
1977
+ /* @__PURE__ */ s(Tn, { tabIndex: -1, onClick: f, className: rt.icon }),
1978
+ /* @__PURE__ */ s(
1979
+ "input",
1980
+ {
1981
+ ...m,
1982
+ type: "time",
1983
+ placeholder: t,
1984
+ className: rt.input,
1985
+ ref: d,
1986
+ disabled: n,
1987
+ value: o,
1988
+ defaultValue: h,
1989
+ onBlur: a,
1990
+ onFocus: i,
1991
+ onKeyUp: q,
1992
+ onKeyDown: S,
1993
+ onInvalid: y,
1994
+ onChange: F,
1995
+ onInput: x
1996
+ }
1997
+ ),
1998
+ N && /* @__PURE__ */ s(w, {})
1999
+ ] });
2000
+ }
2001
+ );
2002
+ Za.displayName = "InputTime";
2003
+ function Et(e, t = []) {
2004
+ const n = Y(e);
2005
+ return Ee(() => {
2006
+ n.current = e;
2007
+ }), v((...o) => {
2008
+ var r;
2009
+ return (r = n.current) == null ? void 0 : r.call(n, ...o);
2010
+ }, t);
2011
+ }
2012
+ const Ha = (e) => typeof e == "function";
2013
+ function Pa(e, ...t) {
2014
+ return Ha(e) ? e(...t) : e;
2015
+ }
2016
+ function Va(e) {
2017
+ const {
2018
+ value: t,
2019
+ defaultValue: n,
2020
+ onChange: o,
2021
+ shouldUpdate: r = (p, d) => p !== d
2022
+ } = e, i = Et(o), a = Et(r), [c, _] = M(n), h = t !== void 0, u = h ? t : c, m = v(
2023
+ (p) => {
2024
+ const d = Pa(p, u);
2025
+ a(u, d) && (h || _(d), i(d));
2026
+ },
2027
+ [h, i, u, a]
2028
+ );
2029
+ return [u, m];
2030
+ }
2031
+ const Wa = "_vars_qamvp_3", Qa = "_input-range_qamvp_7", Ga = "_input_qamvp_7", Ka = "_scale_qamvp_131", Ua = "_mark_qamvp_149", Ya = "_output_qamvp_153", Xa = "_scale-wrapper_qamvp_166", Ja = "_validation_qamvp_174", ei = "_prefix_qamvp_179", me = {
2032
+ vars: Wa,
2033
+ "input-range": "_input-range_qamvp_7",
2034
+ inputRange: Qa,
2035
+ input: Ga,
2036
+ scale: Ka,
2037
+ mark: Ua,
2038
+ output: Ya,
2039
+ "scale-wrapper": "_scale-wrapper_qamvp_166",
2040
+ scaleWrapper: Xa,
2041
+ validation: Ja,
2042
+ prefix: ei
2043
+ }, ti = ({
2044
+ min: e,
2045
+ max: t,
2046
+ bars: n,
2047
+ scaleUnit: o
2048
+ }) => {
2049
+ const i = (t - e) / n;
2050
+ return new Array(n + 1).fill("").map((c, _) => {
2051
+ const h = Math.floor(e + i * _);
2052
+ return /* @__PURE__ */ s(
2053
+ "option",
2054
+ {
2055
+ value: h,
2056
+ label: `- ${h}${o}`,
2057
+ className: me.mark
2058
+ },
2059
+ _
2060
+ );
2061
+ });
2062
+ }, ni = g(
2063
+ ({
2064
+ prefix: e,
2065
+ id: t,
2066
+ className: n,
2067
+ disabled: o,
2068
+ value: r,
2069
+ onChange: i = () => {
2070
+ },
2071
+ onFocus: a = () => {
2072
+ },
2073
+ onBlur: c = () => {
2074
+ },
2075
+ onKeyDown: _ = () => {
2076
+ },
2077
+ onKeyUp: h = () => {
2078
+ },
2079
+ defaultValue: u,
2080
+ validatorFn: m = se,
2081
+ min: p = 0,
2082
+ max: d = 100,
2083
+ bars: N = 5,
2084
+ scaleUnit: b = "",
2085
+ ...x
2086
+ }, w) => {
2087
+ const { validateTextual: y, validity: f, setValidity: S } = _e({ validatorFn: m }), q = {
2088
+ [$.error]: oe,
2089
+ [$.valid]: le,
2090
+ [$.inProgress]: de
2091
+ }[f], [F, C] = Va({
2092
+ value: r,
2093
+ defaultValue: u
2094
+ }), D = v(
2095
+ (z) => {
2096
+ C(z.target.value), i(z);
2097
+ },
2098
+ [i, C]
2099
+ ), T = v(() => {
2100
+ S($.error);
2101
+ }, [S]), A = J(t), P = `${A}-scale`, { LocalRoot: re } = B(), Z = L(
2102
+ () => ({
2103
+ "output-length": d.toString().length + b.length
2104
+ }),
2105
+ [d, b]
2106
+ );
2107
+ return /* @__PURE__ */ I("div", { className: l(me["input-range"], n), children: [
2108
+ e && /* @__PURE__ */ s("label", { className: me.prefix, htmlFor: A, children: /* @__PURE__ */ s(e, {}) }),
2109
+ /* @__PURE__ */ I("div", { className: me["scale-wrapper"], children: [
2110
+ /* @__PURE__ */ s(
2111
+ "input",
2112
+ {
2113
+ ...x,
2114
+ id: A,
2115
+ type: "range",
2116
+ className: me.input,
2117
+ ref: w,
2118
+ disabled: o,
2119
+ value: r,
2120
+ defaultValue: u,
2121
+ onChange: D,
2122
+ onBlur: c,
2123
+ onFocus: a,
2124
+ onKeyUp: h,
2125
+ onKeyDown: _,
2126
+ onInvalid: T,
2127
+ onInput: y,
2128
+ list: P,
2129
+ min: p,
2130
+ max: d
2131
+ }
2132
+ ),
2133
+ /* @__PURE__ */ s("datalist", { id: P, className: me.scale, children: ti({ min: Number(p), max: Number(d), bars: N, scaleUnit: b }) })
2134
+ ] }),
2135
+ /* @__PURE__ */ I(re, { as: "output", theme: Z, className: me.output, children: [
2136
+ F || Number(d) / 2,
2137
+ " ",
2138
+ b
2139
+ ] }),
2140
+ f && /* @__PURE__ */ s(q, { className: me.validation })
2141
+ ] });
2142
+ }
2143
+ );
2144
+ ni.displayName = "InputRange";
2145
+ const oi = "_vars_1pxio_3", si = "_input-file_1pxio_7", ri = "_toggle_1pxio_21", ai = "_input_1pxio_7", ii = "_icon_1pxio_46", ci = "_label_1pxio_54", li = "_validity_1pxio_115", ye = {
2146
+ vars: oi,
2147
+ "input-file": "_input-file_1pxio_7",
2148
+ inputFile: si,
2149
+ toggle: ri,
2150
+ input: ai,
2151
+ icon: ii,
2152
+ label: ci,
2153
+ validity: li
2154
+ }, di = g(
2155
+ ({
2156
+ id: e,
2157
+ className: t,
2158
+ placeholder: n = "",
2159
+ disabled: o,
2160
+ value: r,
2161
+ onChange: i = () => {
2162
+ },
2163
+ onFocus: a = () => {
2164
+ },
2165
+ onBlur: c = () => {
2166
+ },
2167
+ onKeyDown: _ = () => {
2168
+ },
2169
+ onKeyUp: h = () => {
2170
+ },
2171
+ defaultValue: u,
2172
+ size: m = 16,
2173
+ ...p
2174
+ }, d) => {
2175
+ const { LocalRoot: N } = B(), b = L(
2176
+ () => ({
2177
+ "input-width": `${m}ch`
2178
+ }),
2179
+ [m]
2180
+ ), x = J(e), [w, y] = M(""), { validateTextual: f, validity: S, setValidity: q } = _e({
2181
+ validatorFn: se
2182
+ }), F = {
2183
+ [$.error]: oe,
2184
+ [$.valid]: le,
2185
+ [$.inProgress]: de
2186
+ }[S], C = v(
2187
+ (T) => {
2188
+ i(T), y(T.target.files[0].name);
2189
+ },
2190
+ [i, y]
2191
+ ), D = v(() => {
2192
+ y(""), q($.error);
2193
+ }, [q]);
2194
+ return /* @__PURE__ */ I(N, { theme: b, className: l(ye["input-file"], t), children: [
2195
+ /* @__PURE__ */ I("div", { className: ye.toggle, children: [
2196
+ /* @__PURE__ */ s(
2197
+ "input",
2198
+ {
2199
+ ...p,
2200
+ id: x,
2201
+ type: "file",
2202
+ placeholder: n,
2203
+ className: ye.input,
2204
+ ref: d,
2205
+ disabled: o,
2206
+ value: r,
2207
+ defaultValue: u,
2208
+ onChange: C,
2209
+ onBlur: c,
2210
+ onFocus: a,
2211
+ onKeyUp: h,
2212
+ onKeyDown: _,
2213
+ onInvalid: D,
2214
+ onInput: f
2215
+ }
2216
+ ),
2217
+ /* @__PURE__ */ s(In, { className: l(ye.icon) })
2218
+ ] }),
2219
+ /* @__PURE__ */ s("label", { htmlFor: x, className: ye.label, children: w || n }),
2220
+ S && /* @__PURE__ */ s(F, { className: ye.validity })
2221
+ ] });
2222
+ }
2223
+ );
2224
+ di.displayName = "InputFile";
2225
+ const _i = "_wrapper_1x71d_3", ui = "_input_1x71d_20", pi = "_spinner_1x71d_80", mi = "_validation_1x71d_130", Me = {
2226
+ wrapper: _i,
2227
+ input: ui,
2228
+ spinner: pi,
2229
+ validation: mi
2230
+ }, Ze = new Event("change", { bubbles: !0 }), hi = g(
2231
+ ({
2232
+ className: e,
2233
+ placeholder: t = "",
2234
+ disabled: n,
2235
+ value: o,
2236
+ onChange: r = () => {
2237
+ },
2238
+ onFocus: i = () => {
2239
+ },
2240
+ onBlur: a = () => {
2241
+ },
2242
+ onKeyDown: c = () => {
2243
+ },
2244
+ onKeyUp: _ = () => {
2245
+ },
2246
+ defaultValue: h,
2247
+ validatorFn: u = se,
2248
+ size: m = 10,
2249
+ step: p = 1,
2250
+ ...d
2251
+ }, N) => {
2252
+ const { validateTextual: b, validity: x, setValidity: w } = _e({ validatorFn: u }), y = {
2253
+ [$.error]: oe,
2254
+ [$.valid]: le,
2255
+ [$.inProgress]: de
2256
+ }[x], f = v(
2257
+ (A) => {
2258
+ r(A);
2259
+ },
2260
+ [r]
2261
+ ), S = v(() => {
2262
+ w($.error);
2263
+ }, [w]), q = be(N), F = v(() => {
2264
+ q.current.stepDown(), q.current.dispatchEvent(Ze), b(Ze);
2265
+ }, [q, b]), C = v(() => {
2266
+ q.current.stepUp(), q.current.dispatchEvent(Ze), b(Ze);
2267
+ }, [q, b]), { LocalRoot: D } = B(), T = L(() => ({ size: m }), [m]);
2268
+ return /* @__PURE__ */ I(D, { className: l(Me.wrapper, e), theme: T, children: [
2269
+ /* @__PURE__ */ I("div", { className: Me.spinner, children: [
2270
+ /* @__PURE__ */ s(Dn, { tabIndex: -1, onClick: C }),
2271
+ /* @__PURE__ */ s(Fn, { tabIndex: -1, onClick: F })
2272
+ ] }),
2273
+ /* @__PURE__ */ s(
2274
+ "input",
2275
+ {
2276
+ ...d,
2277
+ step: p,
2278
+ size: m,
2279
+ type: "number",
2280
+ placeholder: t,
2281
+ className: Me.input,
2282
+ ref: q,
2283
+ disabled: n,
2284
+ value: o,
2285
+ defaultValue: h,
2286
+ onChange: f,
2287
+ onBlur: a,
2288
+ onFocus: i,
2289
+ onKeyUp: _,
2290
+ onKeyDown: c,
2291
+ onInvalid: S,
2292
+ onInput: b
2293
+ }
2294
+ ),
2295
+ x && /* @__PURE__ */ s(y, { className: Me.validation })
2296
+ ] });
2297
+ }
2298
+ );
2299
+ hi.displayName = "InputNumber";
2300
+ const vi = "_vars_77h1y_3", fi = "_wrapper_77h1y_7", gi = "_textarea_77h1y_24", Ni = "_prefix_77h1y_75", bi = "_validation_77h1y_110", He = {
2301
+ vars: vi,
2302
+ wrapper: fi,
2303
+ textarea: gi,
2304
+ prefix: Ni,
2305
+ validation: bi
2306
+ }, wi = g(
2307
+ ({
2308
+ prefix: e,
2309
+ className: t,
2310
+ placeholder: n = "",
2311
+ disabled: o,
2312
+ value: r,
2313
+ onChange: i = () => {
2314
+ },
2315
+ onFocus: a = () => {
2316
+ },
2317
+ onBlur: c = () => {
2318
+ },
2319
+ onKeyDown: _ = () => {
2320
+ },
2321
+ onKeyUp: h = () => {
2322
+ },
2323
+ defaultValue: u,
2324
+ validatorFn: m = se,
2325
+ id: p,
2326
+ readOnly: d,
2327
+ cols: N = 20,
2328
+ rows: b = 3,
2329
+ resize: x = "both",
2330
+ ...w
2331
+ }, y) => {
2332
+ const { validateTextual: f, validity: S, setValidity: q } = _e({ validatorFn: m }), F = {
2333
+ [$.error]: oe,
2334
+ [$.valid]: le,
2335
+ [$.inProgress]: de
2336
+ }[S], C = v(
2337
+ (z) => {
2338
+ i(z);
2339
+ },
2340
+ [i]
2341
+ ), D = v(() => {
2342
+ q($.error);
2343
+ }, [q]), T = v(
2344
+ (z) => {
2345
+ f(z);
2346
+ },
2347
+ [f]
2348
+ ), A = v(
2349
+ (z) => {
2350
+ d && z.target.select();
2351
+ },
2352
+ [d]
2353
+ ), P = J(p), { LocalRoot: re } = B(), Z = L(
2354
+ () => ({
2355
+ resize: x
2356
+ }),
2357
+ [x]
2358
+ );
2359
+ return /* @__PURE__ */ I(re, { theme: Z, className: l(He.wrapper, t), children: [
2360
+ e && /* @__PURE__ */ s("label", { className: He.prefix, htmlFor: P, children: /* @__PURE__ */ s(e, {}) }),
2361
+ /* @__PURE__ */ s(
2362
+ "textarea",
2363
+ {
2364
+ ...w,
2365
+ cols: N,
2366
+ rows: b,
2367
+ readOnly: d,
2368
+ id: P,
2369
+ placeholder: n,
2370
+ className: He.textarea,
2371
+ ref: y,
2372
+ disabled: o,
2373
+ value: r,
2374
+ defaultValue: u,
2375
+ onChange: C,
2376
+ onBlur: c,
2377
+ onFocus: a,
2378
+ onKeyUp: h,
2379
+ onKeyDown: _,
2380
+ onInvalid: D,
2381
+ onInput: T,
2382
+ onSelect: A
2383
+ }
2384
+ ),
2385
+ S && /* @__PURE__ */ s(F, { className: He.validation })
2386
+ ] });
2387
+ }
2388
+ );
2389
+ wi.displayName = "Textarea";
2390
+ const xi = "_vars_q8avo_5", yi = "_wrapper_q8avo_9", ki = "_select_q8avo_26", Ii = "_icon-wrapper_q8avo_30", Si = "_icon_q8avo_30", Ei = "_prefix_q8avo_107", qi = "_validation_q8avo_146", ke = {
2391
+ vars: xi,
2392
+ wrapper: yi,
2393
+ select: ki,
2394
+ "icon-wrapper": "_icon-wrapper_q8avo_30",
2395
+ iconWrapper: Ii,
2396
+ icon: Si,
2397
+ prefix: Ei,
2398
+ validation: qi
2399
+ }, $i = g(
2400
+ ({
2401
+ prefix: e,
2402
+ className: t,
2403
+ disabled: n,
2404
+ value: o,
2405
+ onChange: r = () => {
2406
+ },
2407
+ onFocus: i = () => {
2408
+ },
2409
+ onBlur: a = () => {
2410
+ },
2411
+ onKeyDown: c = () => {
2412
+ },
2413
+ onKeyUp: _ = () => {
2414
+ },
2415
+ validatorFn: h = se,
2416
+ id: u,
2417
+ multiple: m,
2418
+ children: p,
2419
+ size: d = 16,
2420
+ ...N
2421
+ }, b) => {
2422
+ const { LocalRoot: x } = B(), w = L(
2423
+ () => ({
2424
+ "select-width": `${d}ch`
2425
+ }),
2426
+ [d]
2427
+ ), { validateTextual: y, validity: f, setValidity: S } = _e({ validatorFn: h }), q = {
2428
+ [$.error]: oe,
2429
+ [$.valid]: le,
2430
+ [$.inProgress]: de
2431
+ }[f], F = v(
2432
+ (Q) => {
2433
+ r(Q);
2434
+ },
2435
+ [r]
2436
+ ), C = v(() => {
2437
+ S($.error);
2438
+ }, [S]), D = J(u), T = be(b), [A, P] = M("close"), re = {
2439
+ close: On,
2440
+ open: Rn
2441
+ }[A], Z = v(
2442
+ (Q) => {
2443
+ i(Q), P(
2444
+ "close"
2445
+ /* close */
2446
+ );
2447
+ },
2448
+ [i, P]
2449
+ ), z = v(
2450
+ (Q) => {
2451
+ a(Q), P(
2452
+ "open"
2453
+ /* open */
2454
+ );
2455
+ },
2456
+ [a, P]
2457
+ );
2458
+ return /* @__PURE__ */ I(x, { theme: w, className: l(ke.wrapper, t), children: [
2459
+ e && /* @__PURE__ */ s("label", { className: ke.prefix, htmlFor: D, children: /* @__PURE__ */ s(e, {}) }),
2460
+ /* @__PURE__ */ I("div", { className: ke.iconWrapper, children: [
2461
+ /* @__PURE__ */ s(
2462
+ "select",
2463
+ {
2464
+ ...N,
2465
+ id: D,
2466
+ multiple: m,
2467
+ className: ke.select,
2468
+ ref: T,
2469
+ disabled: n,
2470
+ value: o,
2471
+ onChange: F,
2472
+ onBlur: z,
2473
+ onFocus: Z,
2474
+ onKeyUp: _,
2475
+ onKeyDown: c,
2476
+ onInvalid: C,
2477
+ onInput: y,
2478
+ children: p
2479
+ }
2480
+ ),
2481
+ !m && /* @__PURE__ */ s(re, { className: ke.icon })
2482
+ ] }),
2483
+ f && /* @__PURE__ */ s(q, { className: ke.validation })
2484
+ ] });
2485
+ }
2486
+ );
2487
+ $i.displayName = "Select";
2488
+ const Ci = "_text_1x7ek_3", Ti = "_header1_1x7ek_11", Li = "_header2_1x7ek_22", Ri = "_header3_1x7ek_33", zi = "_header4_1x7ek_44", Oi = "_header5_1x7ek_55", Ai = "_header6_1x7ek_66", Di = "_paragraph_1x7ek_77", Bi = "_link_1x7ek_88", Fi = "_bold_1x7ek_99", ji = "_strong_1x7ek_105", Mi = "_italic_1x7ek_111", Zi = "_emphasized_1x7ek_117", Hi = "_marked_1x7ek_124", Pi = "_small_1x7ek_131", Vi = "_deleted_1x7ek_137", Wi = "_inserted_1x7ek_145", Qi = "_subscript_1x7ek_160", Gi = "_superscript_1x7ek_167", Ki = "_ul_1x7ek_175", Ui = "_ol_1x7ek_176", Yi = "_blockquote_1x7ek_235", Xi = "_description-list_1x7ek_272", Ji = "_keyboard_1x7ek_292", ec = "_table-wrapper_1x7ek_312", tc = "_table_1x7ek_312", nc = "_code_1x7ek_384", oc = "_preformatted_1x7ek_393", sc = "_meter_1x7ek_431", rc = "_strike-through_1x7ek_476", R = {
2489
+ text: Ci,
2490
+ header1: Ti,
2491
+ header2: Li,
2492
+ header3: Ri,
2493
+ header4: zi,
2494
+ header5: Oi,
2495
+ header6: Ai,
2496
+ paragraph: Di,
2497
+ link: Bi,
2498
+ bold: Fi,
2499
+ strong: ji,
2500
+ italic: Mi,
2501
+ emphasized: Zi,
2502
+ marked: Hi,
2503
+ small: Pi,
2504
+ deleted: Vi,
2505
+ inserted: Wi,
2506
+ subscript: Qi,
2507
+ superscript: Gi,
2508
+ ul: Ki,
2509
+ ol: Ui,
2510
+ blockquote: Yi,
2511
+ "description-list": "_description-list_1x7ek_272",
2512
+ descriptionList: Xi,
2513
+ keyboard: Ji,
2514
+ "table-wrapper": "_table-wrapper_1x7ek_312",
2515
+ tableWrapper: ec,
2516
+ table: tc,
2517
+ code: nc,
2518
+ preformatted: oc,
2519
+ meter: sc,
2520
+ "strike-through": "_strike-through_1x7ek_476",
2521
+ strikeThrough: rc
2522
+ }, ac = g(
2523
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("div", { ...n, ref: o, className: l(R.text, t), children: e })
2524
+ );
2525
+ ac.displayName = "Text";
2526
+ const ic = g(
2527
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("p", { ...n, className: l(R.paragraph, t), ref: o, children: e })
2528
+ );
2529
+ ic.displayName = "P";
2530
+ const cc = g(
2531
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("ul", { ...n, className: l(R.ul, t), ref: o, children: e })
2532
+ );
2533
+ cc.displayName = "Ul";
2534
+ const lc = g(
2535
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("ol", { ...n, className: l(R.ol, t), ref: o, children: e })
2536
+ );
2537
+ lc.displayName = "Ol";
2538
+ const dc = g(
2539
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s(
2540
+ "dl",
2541
+ {
2542
+ ...n,
2543
+ className: l(R["description-list"], t),
2544
+ ref: o,
2545
+ children: e
2546
+ }
2547
+ )
2548
+ );
2549
+ dc.displayName = "Dl";
2550
+ const _c = g(
2551
+ ({ children: e, className: t, href: n = "#", ...o }, r) => /* @__PURE__ */ s(
2552
+ "a",
2553
+ {
2554
+ ...o,
2555
+ href: n,
2556
+ className: l(R.link, t),
2557
+ ref: r,
2558
+ children: e
2559
+ }
2560
+ )
2561
+ );
2562
+ _c.displayName = "A";
2563
+ const Yt = g(({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("b", { ...n, className: l(R.bold, t), ref: o, children: e }));
2564
+ Yt.displayName = "B";
2565
+ const uc = g(
2566
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("strong", { ...n, className: l(R.strong, t), ref: o, children: e })
2567
+ );
2568
+ uc.displayName = "Strong";
2569
+ Yt.displayName = "B";
2570
+ const pc = g(({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("i", { ...n, className: l(R.italic, t), ref: o, children: e }));
2571
+ pc.displayName = "I";
2572
+ const mc = g(({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("em", { ...n, className: l(R.emphasized, t), ref: o, children: e }));
2573
+ mc.displayName = "Em";
2574
+ const hc = g(({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("mark", { ...n, className: l(R.marked, t), ref: o, children: e }));
2575
+ hc.displayName = "Mark";
2576
+ const vc = g(
2577
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("small", { ...n, className: l(R.small, t), ref: o, children: e })
2578
+ );
2579
+ vc.displayName = "Small";
2580
+ const fc = g(
2581
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("del", { ...n, className: l(R.deleted, t), ref: o, children: e })
2582
+ );
2583
+ fc.displayName = "Del";
2584
+ const gc = g(
2585
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("ins", { ...n, className: l(R.inserted, t), ref: o, children: e })
2586
+ );
2587
+ gc.displayName = "Ins";
2588
+ const Nc = g(({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("sub", { ...n, className: l(R.subscript, t), ref: o, children: e }));
2589
+ Nc.displayName = "Sub";
2590
+ const bc = g(({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("sup", { ...n, className: l(R.superscript, t), ref: o, children: e }));
2591
+ bc.displayName = "Sup";
2592
+ const wc = g(({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("kbd", { ...n, className: l(R.keyboard, t), ref: o, children: e }));
2593
+ wc.displayName = "Kbd";
2594
+ const xc = g(({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("code", { ...n, className: l(R.code, t), ref: o, children: e }));
2595
+ xc.displayName = "Code";
2596
+ const yc = g(({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("s", { ...n, className: l(R.strikeThrough, t), ref: o, children: e }));
2597
+ yc.displayName = "S";
2598
+ const kc = g(
2599
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("h1", { ...n, className: l(R.header1, t), ref: o, children: e })
2600
+ );
2601
+ kc.displayName = "H1";
2602
+ const Ic = g(
2603
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("h2", { ...n, className: l(R.header2, t), ref: o, children: e })
2604
+ );
2605
+ Ic.displayName = "H2";
2606
+ const Xt = g(
2607
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("h3", { ...n, className: l(R.header3, t), ref: o, children: e })
2608
+ );
2609
+ Xt.displayName = "H3";
2610
+ const Sc = g(
2611
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("h4", { ...n, className: l(R.header4, t), ref: o, children: e })
2612
+ );
2613
+ Sc.displayName = "H4";
2614
+ const Ec = g(
2615
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("h5", { ...n, className: l(R.header5, t), ref: o, children: e })
2616
+ );
2617
+ Ec.displayName = "H5";
2618
+ const qc = g(
2619
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("h6", { ...n, className: l(R.header6, t), ref: o, children: e })
2620
+ );
2621
+ qc.displayName = "H6";
2622
+ const $c = g(
2623
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s(
2624
+ "blockquote",
2625
+ {
2626
+ ...n,
2627
+ className: l(R.blockquote, t),
2628
+ ref: o,
2629
+ children: e
2630
+ }
2631
+ )
2632
+ );
2633
+ $c.displayName = "BlockQuote";
2634
+ const Cc = g(
2635
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("pre", { ...n, className: l(R.preformatted, t), ref: o, children: e })
2636
+ );
2637
+ Cc.displayName = "Pre";
2638
+ const Tc = g(
2639
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("div", { className: R["table-wrapper"], children: /* @__PURE__ */ s("table", { ...n, className: l(R.table, t), ref: o, children: e }) })
2640
+ );
2641
+ Tc.displayName = "Table";
2642
+ const Lc = g(
2643
+ ({ max: e, min: t, value: n, low: o, high: r, optimum: i, className: a, ...c }, _) => /* @__PURE__ */ s(
2644
+ "meter",
2645
+ {
2646
+ ...c,
2647
+ min: t,
2648
+ max: e,
2649
+ low: o,
2650
+ high: r,
2651
+ optimum: i,
2652
+ value: n,
2653
+ className: l(R.meter, a),
2654
+ ref: _,
2655
+ children: n
2656
+ }
2657
+ )
2658
+ );
2659
+ Lc.displayName = "Meter";
2660
+ const Rc = "_vars_juv20_1", zc = "_wrapper_juv20_5", Oc = "_figure_juv20_12", qt = {
2661
+ vars: Rc,
2662
+ wrapper: zc,
2663
+ figure: Oc
2664
+ }, Ac = g(
2665
+ ({ children: e, className: t, caption: n, position: o = "center", ...r }, i) => {
2666
+ const a = L(
2667
+ () => ({
2668
+ position: o
2669
+ }),
2670
+ [o]
2671
+ ), { LocalRoot: c } = B();
2672
+ return /* @__PURE__ */ s(c, { theme: a, className: qt.wrapper, children: /* @__PURE__ */ I(
2673
+ "figure",
2674
+ {
2675
+ ...r,
2676
+ className: l(qt.figure, t),
2677
+ ref: i,
2678
+ children: [
2679
+ e,
2680
+ n && /* @__PURE__ */ s("figcaption", { children: n })
2681
+ ]
2682
+ }
2683
+ ) });
2684
+ }
2685
+ );
2686
+ Ac.displayName = "Figure";
2687
+ const Dc = "_vars_1nynn_1", Bc = "_skeleton-frame_1nynn_7", Fc = "_skeleton-shape_1nynn_25", jc = "_loading_1nynn_1", Mc = "_skeleton-text_1nynn_47", Zc = "_skeleton-action_1nynn_51", Hc = "_skeleton-button_1nynn_60", Pc = "_short-line_1nynn_64", fe = {
2688
+ vars: Dc,
2689
+ "skeleton-frame": "_skeleton-frame_1nynn_7",
2690
+ skeletonFrame: Bc,
2691
+ "skeleton-shape": "_skeleton-shape_1nynn_25",
2692
+ skeletonShape: Fc,
2693
+ loading: jc,
2694
+ "skeleton-text": "_skeleton-text_1nynn_47",
2695
+ skeletonText: Mc,
2696
+ "skeleton-action": "_skeleton-action_1nynn_51",
2697
+ skeletonAction: Zc,
2698
+ "skeleton-button": "_skeleton-button_1nynn_60",
2699
+ skeletonButton: Hc,
2700
+ "short-line": "_short-line_1nynn_64",
2701
+ shortLine: Pc
2702
+ }, he = (e) => e === void 0 ? "auto" : e === "fluid" ? "100%" : `${e}px`, ge = g(
2703
+ ({
2704
+ className: e,
2705
+ width: t = "fluid",
2706
+ height: n,
2707
+ borderRadius: o = 6,
2708
+ marginY: r = 0,
2709
+ marginX: i = 0,
2710
+ ...a
2711
+ }, c) => {
2712
+ const { LocalRoot: _, ref: h } = B();
2713
+ te(c, h);
2714
+ const u = L(
2715
+ () => ({
2716
+ width: he(t),
2717
+ height: he(n),
2718
+ "border-radius": o,
2719
+ "margin-y": r,
2720
+ "margin-x": i
2721
+ }),
2722
+ [o, n, i, r, t]
2723
+ );
2724
+ return /* @__PURE__ */ s(
2725
+ _,
2726
+ {
2727
+ ...a,
2728
+ theme: u,
2729
+ className: l(fe.skeletonShape, e)
2730
+ }
2731
+ );
2732
+ }
2733
+ );
2734
+ ge.displayName = "SkeletonShape";
2735
+ const Vc = g(
2736
+ ({
2737
+ children: e,
2738
+ className: t,
2739
+ width: n = "fluid",
2740
+ height: o = "fluid",
2741
+ marginY: r = 24,
2742
+ marginX: i = 0,
2743
+ double: a = !1,
2744
+ ...c
2745
+ }, _) => {
2746
+ const { LocalRoot: h, ref: u } = B();
2747
+ te(_, u);
2748
+ const m = L(
2749
+ () => ({
2750
+ width: he(n),
2751
+ height: he(o),
2752
+ "margin-y": r,
2753
+ "margin-x": i
2754
+ }),
2755
+ [o, i, r, n]
2756
+ );
2757
+ return /* @__PURE__ */ I(
2758
+ h,
2759
+ {
2760
+ ...c,
2761
+ className: l(fe.skeletonAction, t),
2762
+ theme: m,
2763
+ children: [
2764
+ /* @__PURE__ */ s(ge, { className: fe.skeletonButton, height: 36 }),
2765
+ a && /* @__PURE__ */ s(ge, { className: fe.skeletonButton, height: 36 })
2766
+ ]
2767
+ }
2768
+ );
2769
+ }
2770
+ );
2771
+ Vc.displayName = "SkeletonAction";
2772
+ const Wc = g(
2773
+ ({
2774
+ children: e,
2775
+ className: t,
2776
+ width: n = "fluid",
2777
+ height: o,
2778
+ borderRadius: r = 12,
2779
+ marginY: i = 0,
2780
+ marginX: a = 0,
2781
+ ...c
2782
+ }, _) => {
2783
+ const { LocalRoot: h, ref: u } = B();
2784
+ te(_, u);
2785
+ const m = L(
2786
+ () => ({
2787
+ width: he(n),
2788
+ height: he(o),
2789
+ "border-radius": r,
2790
+ "margin-y": i,
2791
+ "margin-x": a
2792
+ }),
2793
+ [r, o, a, i, n]
2794
+ );
2795
+ return /* @__PURE__ */ s(
2796
+ h,
2797
+ {
2798
+ ...c,
2799
+ theme: m,
2800
+ className: l(fe.skeletonFrame, t),
2801
+ children: e
2802
+ }
2803
+ );
2804
+ }
2805
+ );
2806
+ Wc.displayName = "SkeletonFrame";
2807
+ const Jt = (e) => new Array(e).fill(""), Qc = g(
2808
+ ({
2809
+ className: e,
2810
+ width: t = "fluid",
2811
+ height: n,
2812
+ lines: o = 3,
2813
+ marginY: r = 36,
2814
+ marginX: i = 0,
2815
+ ...a
2816
+ }, c) => {
2817
+ const { LocalRoot: _, ref: h } = B();
2818
+ te(c, h);
2819
+ const u = L(
2820
+ () => ({
2821
+ width: he(t),
2822
+ height: he(n),
2823
+ "margin-y": r,
2824
+ "margin-x": i
2825
+ }),
2826
+ [n, i, r, t]
2827
+ ), m = o === 1, p = Jt(o - 1);
2828
+ return /* @__PURE__ */ I(
2829
+ _,
2830
+ {
2831
+ ...a,
2832
+ className: l(fe.skeletonText, e),
2833
+ theme: u,
2834
+ children: [
2835
+ m && /* @__PURE__ */ s(ge, { marginY: 9, height: 24 }),
2836
+ !m && p.map((d, N) => /* @__PURE__ */ s(ge, { marginY: 9, height: 24 }, N)),
2837
+ !m && /* @__PURE__ */ s(ge, { marginY: 9, className: fe.shortLine, height: 24 })
2838
+ ]
2839
+ }
2840
+ );
2841
+ }
2842
+ );
2843
+ Qc.displayName = "SkeletonText";
2844
+ const Gc = "_wrapper_19sx1_1", Kc = "_picture_19sx1_8", Uc = "_loading_19sx1_20", Yc = "_skeleton_19sx1_25", Pe = {
2845
+ wrapper: Gc,
2846
+ picture: Kc,
2847
+ loading: Uc,
2848
+ skeleton: Yc
2849
+ }, en = g(
2850
+ ({ className: e, alt: t, src: n, sources: o, width: r, height: i, loading: a = "lazy", ...c }, _) => {
2851
+ const [h, u] = M(!1), m = v(() => {
2852
+ u(!0);
2853
+ }, []);
2854
+ return /* @__PURE__ */ I("div", { className: Pe.wrapper, children: [
2855
+ /* @__PURE__ */ I(
2856
+ "picture",
2857
+ {
2858
+ ...c,
2859
+ className: l(
2860
+ Pe.picture,
2861
+ { [Pe.loading]: !h },
2862
+ e
2863
+ ),
2864
+ ref: _,
2865
+ onLoad: m,
2866
+ children: [
2867
+ o == null ? void 0 : o.map(
2868
+ ({
2869
+ src: p,
2870
+ mediaCondition: d,
2871
+ density: N = "1x",
2872
+ intrinsicWidth: b,
2873
+ slotWidth: x = "",
2874
+ type: w,
2875
+ width: y,
2876
+ height: f
2877
+ }) => /* @__PURE__ */ s(
2878
+ "source",
2879
+ {
2880
+ type: w,
2881
+ srcSet: `${p} ${b ?? N}`,
2882
+ media: `${d} ${x}`,
2883
+ width: y,
2884
+ height: f
2885
+ },
2886
+ p
2887
+ )
2888
+ ),
2889
+ /* @__PURE__ */ s("img", { width: r, height: i, loading: a, src: n, alt: t })
2890
+ ]
2891
+ }
2892
+ ),
2893
+ !h && /* @__PURE__ */ s(ge, { width: r, height: i, className: Pe.skeleton })
2894
+ ] });
2895
+ }
2896
+ );
2897
+ en.displayName = "Picture";
2898
+ const Xc = (e, t) => {
2899
+ Ee(() => {
2900
+ const n = () => {
2901
+ t(e);
2902
+ };
2903
+ if (e) {
2904
+ const o = new ResizeObserver(n);
2905
+ return o.observe(e), () => {
2906
+ o.disconnect();
2907
+ };
2908
+ }
2909
+ }, [t, e]);
2910
+ }, Jc = "_vars_12wa1_1", el = "_carousel_12wa1_9", tl = "_scene_12wa1_19", nl = "_viewport_12wa1_29", ol = "_navigation_12wa1_42", sl = "_left_12wa1_60", rl = "_right_12wa1_64", al = "_icon_12wa1_69", il = "_dots_12wa1_74", cl = "_dot_12wa1_74", ll = "_active_12wa1_92", dl = "_cell_12wa1_97", U = {
2911
+ vars: Jc,
2912
+ carousel: el,
2913
+ scene: tl,
2914
+ viewport: nl,
2915
+ navigation: ol,
2916
+ left: sl,
2917
+ right: rl,
2918
+ icon: al,
2919
+ dots: il,
2920
+ dot: cl,
2921
+ active: ll,
2922
+ cell: dl
2923
+ }, _l = ({ children: e, index: t }) => {
2924
+ const n = L(
2925
+ () => ({
2926
+ index: t
2927
+ }),
2928
+ [t]
2929
+ ), { LocalRoot: o } = B();
2930
+ return /* @__PURE__ */ s(o, { theme: n, className: U.cell, children: e });
2931
+ }, ul = ({ amount: e, active: t }) => {
2932
+ const n = L(() => Array.from(Array(e)), [e]);
2933
+ return /* @__PURE__ */ s("div", { className: U.dots, children: n.map((o, r) => {
2934
+ const i = r === t;
2935
+ return /* @__PURE__ */ s(
2936
+ "div",
2937
+ {
2938
+ className: l(U.dot, { [U.active]: i })
2939
+ },
2940
+ r
2941
+ );
2942
+ }) });
2943
+ }, pl = (e) => {
2944
+ const [t, n] = M(!1), o = L(
2945
+ () => new IntersectionObserver(([r]) => n(r.isIntersecting)),
2946
+ []
2947
+ );
2948
+ return j(() => (e.current && o.observe(e.current), () => {
2949
+ o.disconnect();
2950
+ }), [e, o]), t;
2951
+ }, ml = () => {
2952
+ const [e, t] = M(document.visibilityState);
2953
+ return j(() => {
2954
+ const n = () => t(document.visibilityState);
2955
+ return document.addEventListener("visibilitychange", n), () => document.removeEventListener("visibilitychange", n);
2956
+ }, []), e === "visible";
2957
+ }, hl = ({ rotateFn: e, interval: t = null, ref: n }) => {
2958
+ const o = pl(n), r = ml();
2959
+ Mt({ callback: e, interval: t, condition: !!t && o && r });
2960
+ }, at = (e, t) => e % t >= 0 ? e % t : t + e % t, vl = g(
2961
+ ({
2962
+ children: e,
2963
+ className: t,
2964
+ width: n,
2965
+ height: o,
2966
+ defaultVisible: r = 0,
2967
+ showDots: i = !0,
2968
+ showArrows: a = !0,
2969
+ autoRotate: c,
2970
+ onRotate: _ = () => {
2971
+ },
2972
+ ...h
2973
+ }, u) => {
2974
+ var Z;
2975
+ const m = r !== 0 ? r - 1 : r, [p, d] = M(m), N = ne.toArray(e).length, { LocalRoot: b, ref: x } = B();
2976
+ te(u, x);
2977
+ const w = Y(null), [y, f] = M(n), [S, q] = M(o), F = v(
2978
+ (z) => {
2979
+ const Q = z == null ? void 0 : z.offsetWidth;
2980
+ if (Q && Q < y) {
2981
+ const et = o * (Q / n);
2982
+ f(Q), q(et);
2983
+ } else
2984
+ Q && Q > y && (f(n), q(o));
2985
+ },
2986
+ [y, o, n]
2987
+ );
2988
+ Xc((Z = x.current) == null ? void 0 : Z.parentElement, F);
2989
+ const C = L(
2990
+ () => ({
2991
+ width: y,
2992
+ height: S,
2993
+ "cells-amount": N,
2994
+ rotations: p
2995
+ }),
2996
+ [y, S, N, p]
2997
+ ), D = at(p, N), T = v(() => {
2998
+ const z = p + 1;
2999
+ d(z), _(at(z, N));
3000
+ }, [p, _, N]), A = v(() => {
3001
+ const z = p - 1;
3002
+ d(z), _(at(z, N));
3003
+ }, [p, _, N]), P = v(() => {
3004
+ d(p + 1);
3005
+ }, [p, d]);
3006
+ hl({
3007
+ rotateFn: P,
3008
+ interval: c && c * 1e3,
3009
+ ref: x
3010
+ });
3011
+ const re = L(
3012
+ () => ne.toArray(e).map((z, Q) => /* @__PURE__ */ s(_l, { index: Q, children: z }, Q)),
3013
+ [e]
3014
+ );
3015
+ return /* @__PURE__ */ I(
3016
+ b,
3017
+ {
3018
+ ...h,
3019
+ theme: C,
3020
+ className: l(U.carousel, t),
3021
+ children: [
3022
+ /* @__PURE__ */ I("div", { className: U.scene, children: [
3023
+ a && /* @__PURE__ */ s(
3024
+ "button",
3025
+ {
3026
+ className: l(U.navigation, U.left),
3027
+ onClick: A,
3028
+ children: /* @__PURE__ */ s(Zn, { className: U.icon })
3029
+ }
3030
+ ),
3031
+ /* @__PURE__ */ s("div", { className: U.viewport, ref: w, children: re }),
3032
+ a && /* @__PURE__ */ s(
3033
+ "button",
3034
+ {
3035
+ className: l(U.navigation, U.right),
3036
+ onClick: T,
3037
+ children: /* @__PURE__ */ s(Pn, { className: U.icon })
3038
+ }
3039
+ )
3040
+ ] }),
3041
+ i && /* @__PURE__ */ s(ul, { amount: ne.toArray(e).length, active: D })
3042
+ ]
3043
+ }
3044
+ );
3045
+ }
3046
+ );
3047
+ vl.displayName = "Carousel";
3048
+ const fl = (e) => {
3049
+ const [t, n] = M(void 0), [o, r] = M(void 0);
3050
+ return Ee(() => {
3051
+ const { current: i } = e;
3052
+ if (i) {
3053
+ const a = i.scrollHeight > i.clientHeight, c = i.scrollWidth > i.clientWidth;
3054
+ n(a), r(c);
3055
+ }
3056
+ }, [e]), { overflowY: t, overflowX: o };
3057
+ }, gl = "_tabs_6g1a3_1", Nl = "_viewport_6g1a3_11", bl = "_header_6g1a3_17", wl = "_overflow-indicator_6g1a3_29", xl = "_content_6g1a3_51", yl = "_button_6g1a3_55", kl = "_selected_6g1a3_76", Il = "_icon_6g1a3_83", Sl = "_tab_6g1a3_1", ie = {
3058
+ tabs: gl,
3059
+ viewport: Nl,
3060
+ header: bl,
3061
+ "overflow-indicator": "_overflow-indicator_6g1a3_29",
3062
+ overflowIndicator: wl,
3063
+ content: xl,
3064
+ button: yl,
3065
+ selected: kl,
3066
+ icon: Il,
3067
+ tab: Sl
3068
+ }, El = ({ tabName: e, onClick: t, icon: n, activeName: o }) => {
3069
+ const r = v(() => {
3070
+ t(e);
3071
+ }, [t, e]);
3072
+ return /* @__PURE__ */ I(
3073
+ "button",
3074
+ {
3075
+ type: "button",
3076
+ onClick: r,
3077
+ className: l(ie.button, { [ie.selected]: o === e }),
3078
+ children: [
3079
+ n && /* @__PURE__ */ s(n, { className: ie.icon }),
3080
+ e
3081
+ ]
3082
+ },
3083
+ e
3084
+ );
3085
+ }, ql = g(
3086
+ ({
3087
+ children: e,
3088
+ className: t,
3089
+ selected: n,
3090
+ width: o,
3091
+ height: r,
3092
+ onToggle: i = () => {
3093
+ },
3094
+ ...a
3095
+ }, c) => {
3096
+ const { LocalRoot: _, ref: h } = B();
3097
+ te(c, h);
3098
+ const u = L(() => {
3099
+ let f = {};
3100
+ return r && (f = { ...f, height: r }), o && (f = { ...f, width: o }), f;
3101
+ }, [r, o]), m = L(
3102
+ () => n || ne.toArray(e)[0].props.name,
3103
+ [e, n]
3104
+ ), [p, d] = M(m);
3105
+ j(() => {
3106
+ d(n || m);
3107
+ }, [n, m]);
3108
+ const N = v(
3109
+ (f) => {
3110
+ d(f), i(f);
3111
+ },
3112
+ [i]
3113
+ ), b = L(
3114
+ () => ne.map(e, (f) => ({ tabName: f.props.name, icon: f.props.icon })),
3115
+ [e]
3116
+ ), x = L(
3117
+ () => ne.toArray(e).find(
3118
+ (f) => f.props.name === p
3119
+ ),
3120
+ [e, p]
3121
+ ), w = Y(null), { overflowX: y } = fl(w);
3122
+ return /* @__PURE__ */ I(
3123
+ _,
3124
+ {
3125
+ ...a,
3126
+ theme: u,
3127
+ className: l(ie.tabs, t),
3128
+ children: [
3129
+ /* @__PURE__ */ I("div", { className: ie.viewport, children: [
3130
+ /* @__PURE__ */ s("header", { ref: w, className: ie.header, children: b.map(({ tabName: f, icon: S }) => /* @__PURE__ */ s(
3131
+ El,
3132
+ {
3133
+ icon: S,
3134
+ onClick: N,
3135
+ tabName: f,
3136
+ activeName: p
3137
+ },
3138
+ f
3139
+ )) }),
3140
+ y && /* @__PURE__ */ s("div", { className: ie["overflow-indicator"], children: /* @__PURE__ */ s(Wn, {}) })
3141
+ ] }),
3142
+ /* @__PURE__ */ s("div", { className: ie.content, children: x })
3143
+ ]
3144
+ }
3145
+ );
3146
+ }
3147
+ );
3148
+ ql.displayName = "Tabs";
3149
+ const s1 = ({ children: e }) => {
3150
+ const t = Y(null);
3151
+ return /* @__PURE__ */ s(Xo, { nodeRef: t, show: !0, children: /* @__PURE__ */ s("div", { ref: t, className: ie.tab, children: e }) });
3152
+ }, $l = "_reference_vjfqs_1", Cl = "_provider_vjfqs_7", Tl = "_menu_vjfqs_11", Ll = "_bordered_vjfqs_19", Rl = "_plain_vjfqs_24", zl = "_row_vjfqs_29", Ol = "_action-button_vjfqs_31", ve = {
3153
+ reference: $l,
3154
+ provider: Cl,
3155
+ menu: Tl,
3156
+ bordered: Ll,
3157
+ plain: Rl,
3158
+ row: zl,
3159
+ "action-button": "_action-button_vjfqs_31",
3160
+ actionButton: Ol
3161
+ };
3162
+ var Ne = /* @__PURE__ */ ((e) => (e.bordered = "bordered", e.plain = "plain", e))(Ne || {});
3163
+ const tn = g(
3164
+ ({
3165
+ children: e,
3166
+ className: t,
3167
+ isOpen: n = !1,
3168
+ content: o,
3169
+ referenceClassName: r,
3170
+ onToggle: i = () => {
3171
+ },
3172
+ trapFocus: a = !0,
3173
+ alignWidth: c = !0,
3174
+ variant: _ = Ne.plain,
3175
+ ...h
3176
+ }, u) => {
3177
+ const [m, p] = M(n);
3178
+ j(() => {
3179
+ p(n);
3180
+ }, [n, p]), j(() => {
3181
+ i(m);
3182
+ }, [m, i]);
3183
+ const { refs: d, floatingStyles: N } = Lt({
3184
+ strategy: "fixed",
3185
+ whileElementsMounted: Rt,
3186
+ middleware: [
3187
+ c && ln({
3188
+ apply({ rects: y, elements: f }) {
3189
+ Object.assign(f.floating.style, {
3190
+ width: `${y.reference.width}px`
3191
+ });
3192
+ }
3193
+ }),
3194
+ zt(18),
3195
+ dn()
3196
+ ]
3197
+ }), { LocalRoot: b } = B(), { getTheme: x } = Ke(), w = v(() => {
3198
+ p(!1);
3199
+ }, [p]);
3200
+ return Nt(w, d.reference, m), mt(d.floating.current, m, a), /* @__PURE__ */ I(ze, { children: [
3201
+ /* @__PURE__ */ s(
3202
+ "div",
3203
+ {
3204
+ ref: d.setReference,
3205
+ className: l(ve.reference, r),
3206
+ children: e
3207
+ }
3208
+ ),
3209
+ m && /* @__PURE__ */ s(Xe, { children: /* @__PURE__ */ s("div", { ref: d.setFloating, style: N, children: /* @__PURE__ */ s(b, { className: ve.provider, theme: x(), children: /* @__PURE__ */ s(
3210
+ "div",
3211
+ {
3212
+ ...h,
3213
+ ref: u,
3214
+ className: l(
3215
+ ve.menu,
3216
+ {
3217
+ [ve.bordered]: _ === Ne.bordered,
3218
+ [ve.plain]: _ === Ne.plain
3219
+ },
3220
+ t
3221
+ ),
3222
+ children: o
3223
+ }
3224
+ ) }) }) })
3225
+ ] });
3226
+ }
3227
+ );
3228
+ tn.displayName = "Menu";
3229
+ const r1 = ({
3230
+ children: e,
3231
+ /** Provide an array of actions with callbacks */
3232
+ actions: t = [],
3233
+ /** Set design of Menu */
3234
+ variant: n = Ne.bordered,
3235
+ ...o
3236
+ }) => {
3237
+ const r = {
3238
+ [Ne.plain]: Se.inverted,
3239
+ [Ne.bordered]: Se.primary
3240
+ }[n];
3241
+ return /* @__PURE__ */ s(
3242
+ tn,
3243
+ {
3244
+ ...o,
3245
+ variant: n,
3246
+ content: /* @__PURE__ */ s(
3247
+ Dt,
3248
+ {
3249
+ variant: r,
3250
+ actions: t,
3251
+ classNameRow: ve.row,
3252
+ classNameAction: ve.actionButton
3253
+ }
3254
+ ),
3255
+ alignWidth: !1,
3256
+ children: e
3257
+ }
3258
+ );
3259
+ }, Al = "_reference_1ibx3_1", Dl = "_unfocusable_1ibx3_7", Bl = "_provider_1ibx3_11", Fl = "_tooltip_1ibx3_15", jl = "_arrow_1ibx3_27", Ml = "_top_1ibx3_39", Zl = "_bottom_1ibx3_46", Hl = "_left_1ibx3_52", Pl = "_right_1ibx3_59", ce = {
3260
+ reference: Al,
3261
+ unfocusable: Dl,
3262
+ provider: Bl,
3263
+ tooltip: Fl,
3264
+ arrow: jl,
3265
+ top: Ml,
3266
+ bottom: Zl,
3267
+ left: Hl,
3268
+ right: Pl
3269
+ }, nn = g(({ placement: e, left: t, top: n }, o) => {
3270
+ const r = e.split("-")[0], { LocalRoot: i, ref: a } = B(), c = L(() => {
3271
+ const _ = {};
3272
+ return n && (_.top = n), t && (_.left = t), _;
3273
+ }, [t, n]);
3274
+ return te(o, a), /* @__PURE__ */ s(
3275
+ i,
3276
+ {
3277
+ theme: c,
3278
+ className: l(ce.arrow, {
3279
+ [ce.bottom]: r === "bottom",
3280
+ [ce.left]: r === "left",
3281
+ [ce.top]: r === "top",
3282
+ [ce.right]: r === "right"
3283
+ })
3284
+ }
3285
+ );
3286
+ });
3287
+ nn.displayName = "Arrow";
3288
+ const Vl = g(
3289
+ ({
3290
+ children: e,
3291
+ className: t,
3292
+ isOpen: n = !1,
3293
+ content: o,
3294
+ referenceClassName: r,
3295
+ onToggle: i = () => {
3296
+ },
3297
+ interactive: a = !0,
3298
+ placement: c = "bottom",
3299
+ ..._
3300
+ }, h) => {
3301
+ var S, q;
3302
+ const [u, m] = M(n);
3303
+ j(() => {
3304
+ m(n);
3305
+ }, [n, m]), j(() => {
3306
+ i(u);
3307
+ }, [u, i]);
3308
+ const p = Y(null), { refs: d, floatingStyles: N, middlewareData: b, placement: x } = Lt({
3309
+ strategy: "fixed",
3310
+ placement: c,
3311
+ whileElementsMounted: Rt,
3312
+ middleware: [
3313
+ zt(18),
3314
+ _n(),
3315
+ un({
3316
+ element: p
3317
+ })
3318
+ ]
3319
+ }), { LocalRoot: w } = B(), { getTheme: y } = Ke(), f = v(() => {
3320
+ m(!1);
3321
+ }, [m]);
3322
+ return Nt(f, d.reference, u), mt(d.floating.current, u, a), /* @__PURE__ */ I(ze, { children: [
3323
+ /* @__PURE__ */ s(
3324
+ "div",
3325
+ {
3326
+ ref: d.setReference,
3327
+ className: l(ce.reference, r),
3328
+ children: e
3329
+ }
3330
+ ),
3331
+ u && /* @__PURE__ */ s(Xe, { children: /* @__PURE__ */ s(
3332
+ "div",
3333
+ {
3334
+ ref: d.setFloating,
3335
+ style: N,
3336
+ className: l({ [ce.unfocusable]: !a }),
3337
+ children: /* @__PURE__ */ s(w, { className: ce.provider, theme: y(), children: /* @__PURE__ */ I(
3338
+ "div",
3339
+ {
3340
+ ..._,
3341
+ ref: h,
3342
+ className: l(ce.tooltip, t),
3343
+ children: [
3344
+ /* @__PURE__ */ s(
3345
+ nn,
3346
+ {
3347
+ ref: p,
3348
+ placement: x,
3349
+ left: (S = b.arrow) == null ? void 0 : S.x,
3350
+ top: (q = b.arrow) == null ? void 0 : q.y
3351
+ }
3352
+ ),
3353
+ o
3354
+ ]
3355
+ }
3356
+ ) })
3357
+ }
3358
+ ) })
3359
+ ] });
3360
+ }
3361
+ );
3362
+ Vl.displayName = "Tooltip";
3363
+ const Wl = "_pagination_g2vb7_1", Ql = "_buttons_g2vb7_10", Gl = "_page-button_g2vb7_17", Kl = "_active_g2vb7_43", Ul = "_ellipsis_g2vb7_49", Yl = "_navigation_g2vb7_63", Xl = "_navigation-block_g2vb7_73", Jl = "_input_g2vb7_81", ed = "_error_g2vb7_102", td = "_navigation-button_g2vb7_112", nd = "_icon_g2vb7_115", W = {
3364
+ pagination: Wl,
3365
+ buttons: Ql,
3366
+ "page-button": "_page-button_g2vb7_17",
3367
+ pageButton: Gl,
3368
+ active: Kl,
3369
+ ellipsis: Ul,
3370
+ navigation: Yl,
3371
+ "navigation-block": "_navigation-block_g2vb7_73",
3372
+ navigationBlock: Xl,
3373
+ input: Jl,
3374
+ error: ed,
3375
+ "navigation-button": "_navigation-button_g2vb7_112",
3376
+ navigationButton: td,
3377
+ icon: nd
3378
+ }, Ve = ({ pageNumber: e, onClick: t = () => {
3379
+ }, isActive: n }) => {
3380
+ const o = v(() => {
3381
+ t(e);
3382
+ }, [t, e]);
3383
+ return /* @__PURE__ */ s(
3384
+ "button",
3385
+ {
3386
+ disabled: n,
3387
+ className: l(W.pageButton, { [W.active]: n }),
3388
+ onClick: o,
3389
+ children: e
3390
+ }
3391
+ );
3392
+ }, od = (e, t) => {
3393
+ switch (t) {
3394
+ case 1:
3395
+ return [t + 1, t + 2, t + 3];
3396
+ case 2:
3397
+ return [t, t + 1, t + 2];
3398
+ case e:
3399
+ return [t - 3, t - 2, t - 1];
3400
+ case e - 1:
3401
+ return [t - 2, t - 1, t];
3402
+ default:
3403
+ return [t - 1, t, t + 1];
3404
+ }
3405
+ }, sd = (e, t) => {
3406
+ const [n, o] = M(t), r = 1, i = e, a = od(e, n), c = n + 1 <= e ? n + 1 : 1, _ = n - 1 >= 1 ? n - 1 : e, h = e > 7, u = e.toString().length + 1, m = v(
3407
+ (p) => p === null ? !0 : p >= 1 && p <= e,
3408
+ [e]
3409
+ );
3410
+ return {
3411
+ first: r,
3412
+ last: i,
3413
+ visible: a,
3414
+ setSelectedPage: o,
3415
+ selectedPage: n,
3416
+ nextPage: c,
3417
+ previousPage: _,
3418
+ isLong: h,
3419
+ maxDigits: u,
3420
+ checkValidity: m
3421
+ };
3422
+ }, rd = g(
3423
+ ({
3424
+ children: e,
3425
+ className: t,
3426
+ totalPages: n,
3427
+ onPageSelect: o,
3428
+ selectedPage: r,
3429
+ showNavigation: i = !0,
3430
+ showPageButtons: a = !0,
3431
+ ...c
3432
+ }, _) => {
3433
+ const {
3434
+ visible: h,
3435
+ first: u,
3436
+ last: m,
3437
+ selectedPage: p,
3438
+ setSelectedPage: d,
3439
+ nextPage: N,
3440
+ previousPage: b,
3441
+ isLong: x,
3442
+ maxDigits: w,
3443
+ checkValidity: y
3444
+ } = sd(n, r), [f, S] = M(p);
3445
+ j(() => {
3446
+ d(r);
3447
+ }, [r, d]);
3448
+ const q = v(
3449
+ (Z) => {
3450
+ d(Z), o(Z);
3451
+ },
3452
+ [o, d]
3453
+ ), F = v(() => {
3454
+ d(N), o(N);
3455
+ }, [N, o, d]), C = v(() => {
3456
+ d(b), o(b);
3457
+ }, [o, b, d]), D = v(
3458
+ (Z) => {
3459
+ const z = Z.target.value !== "" ? parseInt(Z.target.value) : null;
3460
+ S(z);
3461
+ },
3462
+ [S]
3463
+ ), T = v(() => {
3464
+ y(f) && f !== null && q(f);
3465
+ }, [y, q, f]), A = v(
3466
+ (Z) => {
3467
+ Z.key === "Enter" && y(f) && f !== null && q(f);
3468
+ },
3469
+ [y, q, f]
3470
+ ), { LocalRoot: P } = B(), re = L(
3471
+ () => ({
3472
+ digits: w
3473
+ }),
3474
+ [w]
3475
+ );
3476
+ return /* @__PURE__ */ I("div", { ...c, className: l(W.pagination, t), ref: _, children: [
3477
+ a && /* @__PURE__ */ I("div", { className: W.buttons, children: [
3478
+ !x && Jt(n).map((Z, z) => {
3479
+ const et = z + 1 === p;
3480
+ return /* @__PURE__ */ s(
3481
+ Ve,
3482
+ {
3483
+ isActive: et,
3484
+ onClick: q,
3485
+ pageNumber: z + 1
3486
+ },
3487
+ z
3488
+ );
3489
+ }),
3490
+ x && /* @__PURE__ */ I(ze, { children: [
3491
+ /* @__PURE__ */ s(
3492
+ Ve,
3493
+ {
3494
+ isActive: u === p,
3495
+ onClick: q,
3496
+ pageNumber: u
3497
+ }
3498
+ ),
3499
+ /* @__PURE__ */ s("div", { className: W.ellipsis, children: "…" }),
3500
+ h.map((Z) => /* @__PURE__ */ s(
3501
+ Ve,
3502
+ {
3503
+ isActive: Z === p,
3504
+ onClick: q,
3505
+ pageNumber: Z
3506
+ },
3507
+ Z
3508
+ )),
3509
+ /* @__PURE__ */ s("div", { className: W.ellipsis, children: "…" }),
3510
+ /* @__PURE__ */ s(
3511
+ Ve,
3512
+ {
3513
+ isActive: m === p,
3514
+ onClick: q,
3515
+ pageNumber: m
3516
+ }
3517
+ )
3518
+ ] })
3519
+ ] }),
3520
+ i && /* @__PURE__ */ I(P, { className: W.navigation, theme: re, children: [
3521
+ /* @__PURE__ */ I("div", { className: W.navigationBlock, children: [
3522
+ /* @__PURE__ */ s("button", { onClick: C, className: W.navigationButton, children: /* @__PURE__ */ s(to, { className: W.icon }) }),
3523
+ /* @__PURE__ */ s("button", { onClick: F, className: W.navigationButton, children: /* @__PURE__ */ s(Jn, { className: W.icon }) })
3524
+ ] }),
3525
+ /* @__PURE__ */ I("div", { className: W.navigationBlock, children: [
3526
+ /* @__PURE__ */ s(
3527
+ "input",
3528
+ {
3529
+ className: l(W.input, {
3530
+ [W.error]: !y(f)
3531
+ }),
3532
+ min: u,
3533
+ max: m,
3534
+ pattern: "[0-9]{10}",
3535
+ step: "1",
3536
+ size: w,
3537
+ type: "number",
3538
+ defaultValue: p,
3539
+ onChange: D,
3540
+ onKeyUp: A
3541
+ }
3542
+ ),
3543
+ /* @__PURE__ */ s(
3544
+ "button",
3545
+ {
3546
+ disabled: !y(f) || f === null,
3547
+ className: W.navigationButton,
3548
+ onClick: T,
3549
+ children: /* @__PURE__ */ s(oo, { className: W.icon })
3550
+ }
3551
+ )
3552
+ ] })
3553
+ ] })
3554
+ ] });
3555
+ }
3556
+ );
3557
+ rd.displayName = "Pagination";
3558
+ const ad = "_card_12vxl_3", id = "_vertical_12vxl_10", cd = "_horizontal_12vxl_16", ld = "_body_12vxl_23", dd = "_header-image_12vxl_31", _d = "_actions_12vxl_54", ud = "_row_12vxl_63", pd = "_action-button_12vxl_74", pe = {
3559
+ card: ad,
3560
+ vertical: id,
3561
+ horizontal: cd,
3562
+ body: ld,
3563
+ "header-image": "_header-image_12vxl_31",
3564
+ headerImage: dd,
3565
+ actions: _d,
3566
+ row: ud,
3567
+ "action-button": "_action-button_12vxl_74",
3568
+ actionButton: pd
3569
+ }, md = g(
3570
+ ({
3571
+ children: e,
3572
+ className: t,
3573
+ headerImageUrl: n,
3574
+ actions: o = [],
3575
+ id: r,
3576
+ variant: i = "vertical",
3577
+ width: a,
3578
+ height: c,
3579
+ ..._
3580
+ }, h) => {
3581
+ const u = J(r), { LocalRoot: m, ref: p } = B();
3582
+ te(h, p);
3583
+ const d = L(
3584
+ () => ({ width: a ? `${a}px` : "auto", height: c ? `${c}px` : "auto" }),
3585
+ [c, a]
3586
+ );
3587
+ return /* @__PURE__ */ I(
3588
+ m,
3589
+ {
3590
+ ..._,
3591
+ theme: d,
3592
+ id: u,
3593
+ className: l(
3594
+ pe.card,
3595
+ {
3596
+ [pe.vertical]: i === "vertical",
3597
+ [pe.horizontal]: i === "horizontal"
3598
+ /* horizontal */
3599
+ },
3600
+ t
3601
+ ),
3602
+ children: [
3603
+ n && /* @__PURE__ */ s(en, { className: pe.headerImage, src: n }),
3604
+ /* @__PURE__ */ s("div", { className: pe.body, children: e }),
3605
+ /* @__PURE__ */ s("footer", { className: pe.actions, children: /* @__PURE__ */ s(
3606
+ Ue,
3607
+ {
3608
+ actions: o,
3609
+ classNameAction: pe.actionButton,
3610
+ classNameRow: pe.row
3611
+ }
3612
+ ) })
3613
+ ]
3614
+ }
3615
+ );
3616
+ }
3617
+ );
3618
+ md.displayName = "Card";
3619
+ const hd = (e) => {
3620
+ const [t, n] = M(!1);
3621
+ return j(() => {
3622
+ const o = window.matchMedia;
3623
+ if (!o)
3624
+ return;
3625
+ const r = o(e);
3626
+ r.matches !== t && n(r.matches);
3627
+ const i = () => n(r.matches);
3628
+ return window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
3629
+ }, [t, e]), t;
3630
+ }, vd = "_nav-panel_1ll5p_3", fd = "_name_1ll5p_14", gd = "_nav-list_1ll5p_26", Nd = "_vertical_1ll5p_34", bd = "_shift_1ll5p_39", wd = "_current_1ll5p_43", xd = "_horizontal_1ll5p_54", yd = "_button-collapsible_1ll5p_71", kd = "_icon-collapsible_1ll5p_81", Id = "_nav-link_1ll5p_87", Sd = "_nav-link-icon_1ll5p_107", K = {
3631
+ "nav-panel": "_nav-panel_1ll5p_3",
3632
+ navPanel: vd,
3633
+ name: fd,
3634
+ "nav-list": "_nav-list_1ll5p_26",
3635
+ navList: gd,
3636
+ vertical: Nd,
3637
+ shift: bd,
3638
+ current: wd,
3639
+ horizontal: xd,
3640
+ "button-collapsible": "_button-collapsible_1ll5p_71",
3641
+ buttonCollapsible: yd,
3642
+ "icon-collapsible": "_icon-collapsible_1ll5p_81",
3643
+ iconCollapsible: kd,
3644
+ "nav-link": "_nav-link_1ll5p_87",
3645
+ navLink: Id,
3646
+ "nav-link-icon": "_nav-link-icon_1ll5p_107",
3647
+ navLinkIcon: Sd
3648
+ }, Ed = g(
3649
+ ({
3650
+ children: e,
3651
+ className: t,
3652
+ layout: n = "vertical",
3653
+ collapsible: o = !0,
3654
+ collapsibleLabel: r = "Toggle menu",
3655
+ ...i
3656
+ }, a) => {
3657
+ const c = hd("(width >= 640px)"), _ = o && !c && n === "horizontal", { openDrawer: h, isOpen: u, closeDrawer: m } = Wt("foo"), p = v(() => {
3658
+ !u && h(), u && m();
3659
+ }, [m, u, h]);
3660
+ return _ ? /* @__PURE__ */ I(ze, { children: [
3661
+ /* @__PURE__ */ s(
3662
+ "button",
3663
+ {
3664
+ type: "button",
3665
+ onClick: p,
3666
+ className: K.buttonCollapsible,
3667
+ "aria-label": r,
3668
+ children: /* @__PURE__ */ s(lo, { className: K.iconCollapsible })
3669
+ }
3670
+ ),
3671
+ /* @__PURE__ */ s(Qt, { id: "foo", children: /* @__PURE__ */ s(
3672
+ "div",
3673
+ {
3674
+ ...i,
3675
+ className: l(K.navList, K.vertical, t),
3676
+ ref: a,
3677
+ children: e
3678
+ }
3679
+ ) })
3680
+ ] }) : /* @__PURE__ */ s(
3681
+ "div",
3682
+ {
3683
+ ...i,
3684
+ className: l(
3685
+ K.navList,
3686
+ K.full,
3687
+ {
3688
+ [K.vertical]: n === "vertical",
3689
+ [K.horizontal]: n === "horizontal"
3690
+ /* horizontal */
3691
+ },
3692
+ t
3693
+ ),
3694
+ ref: a,
3695
+ children: e
3696
+ }
3697
+ );
3698
+ }
3699
+ );
3700
+ Ed.displayName = "NavList";
3701
+ const qd = g(
3702
+ ({
3703
+ title: e,
3704
+ as: t = "a",
3705
+ href: n,
3706
+ icon: o,
3707
+ shift: r = !1,
3708
+ className: i,
3709
+ isCurrent: a,
3710
+ ...c
3711
+ }, _) => /* @__PURE__ */ I(
3712
+ t,
3713
+ {
3714
+ ...c,
3715
+ ref: _,
3716
+ title: e,
3717
+ className: l(
3718
+ K.navLink,
3719
+ {
3720
+ [K.shift]: r,
3721
+ [K.current]: a
3722
+ },
3723
+ i
3724
+ ),
3725
+ href: n,
3726
+ children: [
3727
+ o && /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(o, { className: K.navLinkIcon, title: e }) }),
3728
+ /* @__PURE__ */ s("span", { className: K.navLinkTitle, children: e })
3729
+ ]
3730
+ }
3731
+ )
3732
+ );
3733
+ qd.displayName = "NavLink";
3734
+ const on = g(
3735
+ ({ children: e, className: t, ...n }, o) => /* @__PURE__ */ s("h1", { ...n, className: l(K.name, t), ref: o, children: e })
3736
+ );
3737
+ on.displayName = "NavBrand";
3738
+ const $d = g(
3739
+ ({ children: e, className: t, name: n = "Koval App", ...o }, r) => /* @__PURE__ */ I("div", { ...o, className: l(K.navPanel, t), ref: r, children: [
3740
+ n && /* @__PURE__ */ s(on, { children: n }),
3741
+ e
3742
+ ] })
3743
+ );
3744
+ $d.displayName = "NavPanel";
3745
+ const Cd = "_wrapper_uonwh_1", Td = "_label_uonwh_8", Ld = "_progress_uonwh_28", Rd = "_dashed_uonwh_41", zd = "_animate-progress_uonwh_1", We = {
3746
+ wrapper: Cd,
3747
+ label: Td,
3748
+ progress: Ld,
3749
+ dashed: Rd,
3750
+ "animate-progress": "_animate-progress_uonwh_1",
3751
+ animateProgress: zd
3752
+ }, Od = g(
3753
+ ({ max: e = 100, value: t, className: n, variant: o = "plain", label: r, id: i, ...a }, c) => {
3754
+ const _ = J(i);
3755
+ return /* @__PURE__ */ I("div", { className: We.wrapper, children: [
3756
+ r && /* @__PURE__ */ I("label", { className: We.label, htmlFor: _, children: [
3757
+ r,
3758
+ ":"
3759
+ ] }),
3760
+ /* @__PURE__ */ s(
3761
+ "progress",
3762
+ {
3763
+ ...a,
3764
+ id: _,
3765
+ max: e,
3766
+ value: t,
3767
+ className: l(
3768
+ We.progress,
3769
+ {
3770
+ [We.dashed]: o === "dashed"
3771
+ /* dashed */
3772
+ },
3773
+ n
3774
+ ),
3775
+ ref: c
3776
+ }
3777
+ )
3778
+ ] });
3779
+ }
3780
+ );
3781
+ Od.displayName = "Progress";
3782
+ const Ad = "_breadcrumbs_npnn6_1", Dd = "_crumb_npnn6_12", Bd = "_text_npnn6_24", Fd = "_icon_npnn6_34", jd = "_ellipsis_npnn6_71", Le = {
3783
+ breadcrumbs: Ad,
3784
+ crumb: Dd,
3785
+ text: Bd,
3786
+ icon: Fd,
3787
+ ellipsis: jd
3788
+ }, Md = (e, t) => {
3789
+ if (t) {
3790
+ const [n, ...o] = e;
3791
+ return [
3792
+ n,
3793
+ /* @__PURE__ */ s("div", { className: Le.ellipsis, children: "…" }, "ellypsis"),
3794
+ ...o
3795
+ ];
3796
+ } else
3797
+ return e;
3798
+ }, Zd = g(
3799
+ ({ className: e, items: t, showEllipsis: n = !1, ...o }, r) => {
3800
+ const i = t.map(({ name: a, url: c, icon: _ }) => /* @__PURE__ */ I("a", { title: a, className: Le.crumb, href: c, children: [
3801
+ _ && /* @__PURE__ */ s(_, { className: Le.icon }),
3802
+ /* @__PURE__ */ s("span", { className: Le.text, children: a })
3803
+ ] }, a));
3804
+ return /* @__PURE__ */ s("div", { ...o, className: l(Le.breadcrumbs, e), ref: r, children: Md(i, n) });
3805
+ }
3806
+ );
3807
+ Zd.displayName = "Breadcrumbs";
3808
+ const Hd = "_button-group_1v18u_1", Pd = "_horizontal_1v18u_10", Vd = "_vertical_1v18u_14", it = {
3809
+ "button-group": "_button-group_1v18u_1",
3810
+ buttonGroup: Hd,
3811
+ horizontal: Pd,
3812
+ vertical: Vd
3813
+ }, Wd = g(
3814
+ ({ children: e, className: t, layout: n = "horizontal", ...o }, r) => /* @__PURE__ */ s(
3815
+ "div",
3816
+ {
3817
+ ...o,
3818
+ className: l(
3819
+ it.buttonGroup,
3820
+ {
3821
+ [it.horizontal]: n === "horizontal",
3822
+ [it.vertical]: n === "vertical"
3823
+ /* vertical */
3824
+ },
3825
+ t
3826
+ ),
3827
+ ref: r,
3828
+ children: e
3829
+ }
3830
+ )
3831
+ );
3832
+ Wd.displayName = "ButtonGroup";
3833
+ export {
3834
+ _c as A,
3835
+ Yt as B,
3836
+ $c as BlockQuote,
3837
+ Zd as Breadcrumbs,
3838
+ Vr as Button,
3839
+ Wd as ButtonGroup,
3840
+ md as Card,
3841
+ vl as Carousel,
3842
+ xc as Code,
3843
+ wt as Col,
3844
+ Lr as Content,
3845
+ fc as Del,
3846
+ ms as Dialog,
3847
+ dc as Dl,
3848
+ Qt as Drawer,
3849
+ mc as Em,
3850
+ Ac as Figure,
3851
+ $r as Footer,
3852
+ o1 as Form,
3853
+ ta as FormField,
3854
+ Gt as Grid,
3855
+ kc as H1,
3856
+ Ic as H2,
3857
+ Xt as H3,
3858
+ Sc as H4,
3859
+ Ec as H5,
3860
+ qc as H6,
3861
+ Tr as Header,
3862
+ pc as I,
3863
+ ca as InputCheckbox,
3864
+ Ba as InputColor,
3865
+ Ta as InputDate,
3866
+ di as InputFile,
3867
+ ma as InputGroup,
3868
+ hi as InputNumber,
3869
+ ba as InputRadio,
3870
+ ni as InputRange,
3871
+ ka as InputText,
3872
+ Za as InputTime,
3873
+ gc as Ins,
3874
+ wc as Kbd,
3875
+ qr as Main,
3876
+ hc as Mark,
3877
+ tn as Menu,
3878
+ r1 as MenuActions,
3879
+ Lc as Meter,
3880
+ on as NavBrand,
3881
+ qd as NavLink,
3882
+ Ed as NavList,
3883
+ $d as NavPanel,
3884
+ t1 as Notification,
3885
+ lc as Ol,
3886
+ ic as P,
3887
+ Er as Page,
3888
+ rd as Pagination,
3889
+ en as Picture,
3890
+ Cc as Pre,
3891
+ Od as Progress,
3892
+ n1 as Provider,
3893
+ Je as Row,
3894
+ yc as S,
3895
+ $i as Select,
3896
+ Cr as Sidebar,
3897
+ Vc as SkeletonAction,
3898
+ Wc as SkeletonFrame,
3899
+ ge as SkeletonShape,
3900
+ Qc as SkeletonText,
3901
+ vc as Small,
3902
+ uc as Strong,
3903
+ Nc as Sub,
3904
+ bc as Sup,
3905
+ s1 as Tab,
3906
+ Tc as Table,
3907
+ ql as Tabs,
3908
+ ac as Text,
3909
+ wi as Textarea,
3910
+ Ps as Toast,
3911
+ Vl as Tooltip,
3912
+ cc as Ul,
3913
+ e1 as themeDnipro,
3914
+ mn as themePodil,
3915
+ as as useDialogState,
3916
+ Wt as useDrawerState,
3917
+ Ur as useFormActions,
3918
+ Kt as useFormSelectors,
3919
+ xs as useNotificationState,
3920
+ Ss as useToastState
3921
+ };
3922
+ //# sourceMappingURL=index.js.map