@dhasdk/simple-ui 0.0.22 → 0.0.24
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/README.md +11 -11
- package/index.d.ts +3 -2
- package/index.js +5 -5
- package/index.mjs +423 -409
- package/lib/Accordion.d.ts +6 -6
- package/lib/Badge.d.ts +1 -1
- package/lib/Breadcrumbs.d.ts +9 -0
- package/lib/Button.d.ts +1 -1
- package/lib/Card.d.ts +1 -1
- package/lib/CharacterCounter.d.ts +3 -3
- package/lib/Input.d.ts +1 -1
- package/lib/List.d.ts +3 -3
- package/lib/SectionHeader.d.ts +1 -0
- package/lib/SideBarNav.d.ts +2 -2
- package/lib/SkipLink.d.ts +22 -0
- package/lib/Status.d.ts +2 -2
- package/lib/Tabs.d.ts +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/BreadCrumbs.d.ts +0 -9
package/index.mjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as V, jsx as o, Fragment as
|
|
1
|
+
import { jsxs as V, jsx as o, Fragment as pe } from "react/jsx-runtime";
|
|
2
2
|
import * as re from "react";
|
|
3
|
-
import { forwardRef as J, useState as A, Children as
|
|
4
|
-
import { useLocation as
|
|
3
|
+
import { forwardRef as J, useState as A, Children as Oe, isValidElement as Te, cloneElement as Le, useEffect as R, useRef as U, useCallback as Me } from "react";
|
|
4
|
+
import { useLocation as Ye, Link as he, NavLink as Re } from "react-router-dom";
|
|
5
5
|
const Ce = "-", Be = (e) => {
|
|
6
6
|
const t = Ge(e), {
|
|
7
7
|
conflictingClassGroups: r,
|
|
8
8
|
conflictingClassGroupModifiers: n
|
|
9
9
|
} = e;
|
|
10
10
|
return {
|
|
11
|
-
getClassGroupId: (
|
|
12
|
-
const s =
|
|
13
|
-
return s[0] === "" && s.length !== 1 && s.shift(),
|
|
11
|
+
getClassGroupId: (d) => {
|
|
12
|
+
const s = d.split(Ce);
|
|
13
|
+
return s[0] === "" && s.length !== 1 && s.shift(), _e(s, t) || Pe(d);
|
|
14
14
|
},
|
|
15
|
-
getConflictingClassGroupIds: (
|
|
16
|
-
const
|
|
17
|
-
return s && n[
|
|
15
|
+
getConflictingClassGroupIds: (d, s) => {
|
|
16
|
+
const p = r[d] || [];
|
|
17
|
+
return s && n[d] ? [...p, ...n[d]] : p;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
},
|
|
21
|
-
var
|
|
20
|
+
}, _e = (e, t) => {
|
|
21
|
+
var d;
|
|
22
22
|
if (e.length === 0)
|
|
23
23
|
return t.classGroupId;
|
|
24
|
-
const r = e[0], n = t.nextPart.get(r), l = n ?
|
|
24
|
+
const r = e[0], n = t.nextPart.get(r), l = n ? _e(e.slice(1), n) : void 0;
|
|
25
25
|
if (l)
|
|
26
26
|
return l;
|
|
27
27
|
if (t.validators.length === 0)
|
|
28
28
|
return;
|
|
29
29
|
const i = e.join(Ce);
|
|
30
|
-
return (
|
|
30
|
+
return (d = t.validators.find(({
|
|
31
31
|
validator: s
|
|
32
|
-
}) => s(i))) == null ? void 0 :
|
|
33
|
-
},
|
|
34
|
-
if (
|
|
35
|
-
const t =
|
|
32
|
+
}) => s(i))) == null ? void 0 : d.classGroupId;
|
|
33
|
+
}, $e = /^\[(.+)\]$/, Pe = (e) => {
|
|
34
|
+
if ($e.test(e)) {
|
|
35
|
+
const t = $e.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
36
36
|
if (r)
|
|
37
37
|
return "arbitrary.." + r;
|
|
38
38
|
}
|
|
@@ -44,13 +44,13 @@ const Ce = "-", Be = (e) => {
|
|
|
44
44
|
nextPart: /* @__PURE__ */ new Map(),
|
|
45
45
|
validators: []
|
|
46
46
|
};
|
|
47
|
-
return Ue(Object.entries(e.classGroups), r).forEach(([i,
|
|
48
|
-
ke(
|
|
47
|
+
return Ue(Object.entries(e.classGroups), r).forEach(([i, d]) => {
|
|
48
|
+
ke(d, n, i, t);
|
|
49
49
|
}), n;
|
|
50
50
|
}, ke = (e, t, r, n) => {
|
|
51
51
|
e.forEach((l) => {
|
|
52
52
|
if (typeof l == "string") {
|
|
53
|
-
const i = l === "" ? t :
|
|
53
|
+
const i = l === "" ? t : Ne(t, l);
|
|
54
54
|
i.classGroupId = r;
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
@@ -65,11 +65,11 @@ const Ce = "-", Be = (e) => {
|
|
|
65
65
|
});
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
Object.entries(l).forEach(([i,
|
|
69
|
-
ke(
|
|
68
|
+
Object.entries(l).forEach(([i, d]) => {
|
|
69
|
+
ke(d, Ne(t, i), r, n);
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
-
},
|
|
72
|
+
}, Ne = (e, t) => {
|
|
73
73
|
let r = e;
|
|
74
74
|
return t.split(Ce).forEach((n) => {
|
|
75
75
|
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
@@ -78,7 +78,7 @@ const Ce = "-", Be = (e) => {
|
|
|
78
78
|
}), r = r.nextPart.get(n);
|
|
79
79
|
}), r;
|
|
80
80
|
}, Fe = (e) => e.isThemeGetter, Ue = (e, t) => t ? e.map(([r, n]) => {
|
|
81
|
-
const l = n.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([
|
|
81
|
+
const l = n.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([d, s]) => [t + d, s])) : i);
|
|
82
82
|
return [r, l];
|
|
83
83
|
}) : e, We = (e) => {
|
|
84
84
|
if (e < 1)
|
|
@@ -89,45 +89,45 @@ const Ce = "-", Be = (e) => {
|
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
let t = 0, r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
92
|
-
const l = (i,
|
|
93
|
-
r.set(i,
|
|
92
|
+
const l = (i, d) => {
|
|
93
|
+
r.set(i, d), t++, t > e && (t = 0, n = r, r = /* @__PURE__ */ new Map());
|
|
94
94
|
};
|
|
95
95
|
return {
|
|
96
96
|
get(i) {
|
|
97
|
-
let
|
|
98
|
-
if (
|
|
99
|
-
return
|
|
100
|
-
if ((
|
|
101
|
-
return l(i,
|
|
97
|
+
let d = r.get(i);
|
|
98
|
+
if (d !== void 0)
|
|
99
|
+
return d;
|
|
100
|
+
if ((d = n.get(i)) !== void 0)
|
|
101
|
+
return l(i, d), d;
|
|
102
102
|
},
|
|
103
|
-
set(i,
|
|
104
|
-
r.has(i) ? r.set(i,
|
|
103
|
+
set(i, d) {
|
|
104
|
+
r.has(i) ? r.set(i, d) : l(i, d);
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
-
},
|
|
107
|
+
}, Ve = "!", Ze = (e) => {
|
|
108
108
|
const {
|
|
109
109
|
separator: t,
|
|
110
110
|
experimentalParseClassName: r
|
|
111
|
-
} = e, n = t.length === 1, l = t[0], i = t.length,
|
|
112
|
-
const
|
|
111
|
+
} = e, n = t.length === 1, l = t[0], i = t.length, d = (s) => {
|
|
112
|
+
const p = [];
|
|
113
113
|
let f = 0, x = 0, y;
|
|
114
114
|
for (let m = 0; m < s.length; m++) {
|
|
115
|
-
let
|
|
115
|
+
let N = s[m];
|
|
116
116
|
if (f === 0) {
|
|
117
|
-
if (
|
|
118
|
-
|
|
117
|
+
if (N === l && (n || s.slice(m, m + i) === t)) {
|
|
118
|
+
p.push(s.slice(x, m)), x = m + i;
|
|
119
119
|
continue;
|
|
120
120
|
}
|
|
121
|
-
if (
|
|
121
|
+
if (N === "/") {
|
|
122
122
|
y = m;
|
|
123
123
|
continue;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
N === "[" ? f++ : N === "]" && f--;
|
|
127
127
|
}
|
|
128
|
-
const w =
|
|
128
|
+
const w = p.length === 0 ? s : s.substring(x), v = w.startsWith(Ve), c = v ? w.substring(1) : w, a = y && y > x ? y - x : void 0;
|
|
129
129
|
return {
|
|
130
|
-
modifiers:
|
|
130
|
+
modifiers: p,
|
|
131
131
|
hasImportantModifier: v,
|
|
132
132
|
baseClassName: c,
|
|
133
133
|
maybePostfixModifierPosition: a
|
|
@@ -135,8 +135,8 @@ const Ce = "-", Be = (e) => {
|
|
|
135
135
|
};
|
|
136
136
|
return r ? (s) => r({
|
|
137
137
|
className: s,
|
|
138
|
-
parseClassName:
|
|
139
|
-
}) :
|
|
138
|
+
parseClassName: d
|
|
139
|
+
}) : d;
|
|
140
140
|
}, Ke = (e) => {
|
|
141
141
|
if (e.length <= 1)
|
|
142
142
|
return e;
|
|
@@ -154,10 +154,10 @@ const Ce = "-", Be = (e) => {
|
|
|
154
154
|
parseClassName: r,
|
|
155
155
|
getClassGroupId: n,
|
|
156
156
|
getConflictingClassGroupIds: l
|
|
157
|
-
} = t, i = [],
|
|
157
|
+
} = t, i = [], d = e.trim().split(Je);
|
|
158
158
|
let s = "";
|
|
159
|
-
for (let
|
|
160
|
-
const f =
|
|
159
|
+
for (let p = d.length - 1; p >= 0; p -= 1) {
|
|
160
|
+
const f = d[p], {
|
|
161
161
|
modifiers: x,
|
|
162
162
|
hasImportantModifier: y,
|
|
163
163
|
baseClassName: w,
|
|
@@ -175,14 +175,14 @@ const Ce = "-", Be = (e) => {
|
|
|
175
175
|
}
|
|
176
176
|
c = !1;
|
|
177
177
|
}
|
|
178
|
-
const m = Ke(x).join(":"),
|
|
178
|
+
const m = Ke(x).join(":"), N = y ? m + Ve : m, S = N + a;
|
|
179
179
|
if (i.includes(S))
|
|
180
180
|
continue;
|
|
181
181
|
i.push(S);
|
|
182
182
|
const E = l(a, c);
|
|
183
183
|
for (let j = 0; j < E.length; ++j) {
|
|
184
184
|
const H = E[j];
|
|
185
|
-
i.push(
|
|
185
|
+
i.push(N + H);
|
|
186
186
|
}
|
|
187
187
|
s = f + (s.length > 0 ? " " + s : s);
|
|
188
188
|
}
|
|
@@ -191,29 +191,29 @@ const Ce = "-", Be = (e) => {
|
|
|
191
191
|
function Xe() {
|
|
192
192
|
let e = 0, t, r, n = "";
|
|
193
193
|
for (; e < arguments.length; )
|
|
194
|
-
(t = arguments[e++]) && (r =
|
|
194
|
+
(t = arguments[e++]) && (r = Ie(t)) && (n && (n += " "), n += r);
|
|
195
195
|
return n;
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const Ie = (e) => {
|
|
198
198
|
if (typeof e == "string")
|
|
199
199
|
return e;
|
|
200
200
|
let t, r = "";
|
|
201
201
|
for (let n = 0; n < e.length; n++)
|
|
202
|
-
e[n] && (t =
|
|
202
|
+
e[n] && (t = Ie(e[n])) && (r && (r += " "), r += t);
|
|
203
203
|
return r;
|
|
204
204
|
};
|
|
205
205
|
function et(e, ...t) {
|
|
206
|
-
let r, n, l, i =
|
|
207
|
-
function
|
|
206
|
+
let r, n, l, i = d;
|
|
207
|
+
function d(p) {
|
|
208
208
|
const f = t.reduce((x, y) => y(x), e());
|
|
209
|
-
return r = qe(f), n = r.cache.get, l = r.cache.set, i = s, s(
|
|
209
|
+
return r = qe(f), n = r.cache.get, l = r.cache.set, i = s, s(p);
|
|
210
210
|
}
|
|
211
|
-
function s(
|
|
212
|
-
const f = n(
|
|
211
|
+
function s(p) {
|
|
212
|
+
const f = n(p);
|
|
213
213
|
if (f)
|
|
214
214
|
return f;
|
|
215
|
-
const x = Qe(
|
|
216
|
-
return l(
|
|
215
|
+
const x = Qe(p, r);
|
|
216
|
+
return l(p, x), x;
|
|
217
217
|
}
|
|
218
218
|
return function() {
|
|
219
219
|
return i(Xe.apply(null, arguments));
|
|
@@ -222,16 +222,16 @@ function et(e, ...t) {
|
|
|
222
222
|
const O = (e) => {
|
|
223
223
|
const t = (r) => r[e] || [];
|
|
224
224
|
return t.isThemeGetter = !0, t;
|
|
225
|
-
},
|
|
226
|
-
const n =
|
|
225
|
+
}, Ae = /^\[(?:([a-z-]+):)?(.+)\]$/i, tt = /^\d+\/\d+$/, rt = /* @__PURE__ */ new Set(["px", "full", "screen"]), nt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ot = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, st = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, at = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, lt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Q = (e) => le(e) || rt.has(e) || tt.test(e), ee = (e) => ie(e, "length", mt), le = (e) => !!e && !Number.isNaN(Number(e)), xe = (e) => ie(e, "number", le), ue = (e) => !!e && Number.isInteger(Number(e)), it = (e) => e.endsWith("%") && le(e.slice(0, -1)), L = (e) => Ae.test(e), te = (e) => nt.test(e), ct = /* @__PURE__ */ new Set(["length", "size", "percentage"]), dt = (e) => ie(e, ct, je), ut = (e) => ie(e, "position", je), gt = /* @__PURE__ */ new Set(["image", "url"]), ft = (e) => ie(e, gt, ht), bt = (e) => ie(e, "", pt), ge = () => !0, ie = (e, t, r) => {
|
|
226
|
+
const n = Ae.exec(e);
|
|
227
227
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
228
228
|
}, mt = (e) => (
|
|
229
229
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
230
230
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
231
231
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
232
232
|
ot.test(e) && !st.test(e)
|
|
233
|
-
),
|
|
234
|
-
const e = O("colors"), t = O("spacing"), r = O("blur"), n = O("brightness"), l = O("borderColor"), i = O("borderRadius"),
|
|
233
|
+
), je = () => !1, pt = (e) => at.test(e), ht = (e) => lt.test(e), xt = () => {
|
|
234
|
+
const e = O("colors"), t = O("spacing"), r = O("blur"), n = O("brightness"), l = O("borderColor"), i = O("borderRadius"), d = O("borderSpacing"), s = O("borderWidth"), p = O("contrast"), f = O("grayscale"), x = O("hueRotate"), y = O("invert"), w = O("gap"), v = O("gradientColorStops"), c = O("gradientColorStopPositions"), a = O("inset"), m = O("margin"), N = O("opacity"), S = O("padding"), E = O("saturate"), j = O("scale"), H = O("sepia"), Y = O("skew"), K = O("space"), q = O("translate"), G = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", L, t], _ = () => [L, t], W = () => ["", Q, ee], b = () => ["auto", le, L], g = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], u = () => ["solid", "dashed", "dotted", "double", "none"], C = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], h = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], $ = () => ["", "0", L], z = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [le, L];
|
|
235
235
|
return {
|
|
236
236
|
cacheSize: 500,
|
|
237
237
|
separator: ":",
|
|
@@ -245,9 +245,9 @@ const O = (e) => {
|
|
|
245
245
|
borderSpacing: _(),
|
|
246
246
|
borderWidth: W(),
|
|
247
247
|
contrast: I(),
|
|
248
|
-
grayscale:
|
|
248
|
+
grayscale: $(),
|
|
249
249
|
hueRotate: I(),
|
|
250
|
-
invert:
|
|
250
|
+
invert: $(),
|
|
251
251
|
gap: _(),
|
|
252
252
|
gradientColorStops: [e],
|
|
253
253
|
gradientColorStopPositions: [it, ee],
|
|
@@ -257,7 +257,7 @@ const O = (e) => {
|
|
|
257
257
|
padding: _(),
|
|
258
258
|
saturate: I(),
|
|
259
259
|
scale: I(),
|
|
260
|
-
sepia:
|
|
260
|
+
sepia: $(),
|
|
261
261
|
skew: I(),
|
|
262
262
|
space: _(),
|
|
263
263
|
translate: _()
|
|
@@ -512,14 +512,14 @@ const O = (e) => {
|
|
|
512
512
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
513
513
|
*/
|
|
514
514
|
grow: [{
|
|
515
|
-
grow:
|
|
515
|
+
grow: $()
|
|
516
516
|
}],
|
|
517
517
|
/**
|
|
518
518
|
* Flex Shrink
|
|
519
519
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
520
520
|
*/
|
|
521
521
|
shrink: [{
|
|
522
|
-
shrink:
|
|
522
|
+
shrink: $()
|
|
523
523
|
}],
|
|
524
524
|
/**
|
|
525
525
|
* Order
|
|
@@ -635,7 +635,7 @@ const O = (e) => {
|
|
|
635
635
|
* @see https://tailwindcss.com/docs/justify-content
|
|
636
636
|
*/
|
|
637
637
|
"justify-content": [{
|
|
638
|
-
justify: ["normal", ...
|
|
638
|
+
justify: ["normal", ...h()]
|
|
639
639
|
}],
|
|
640
640
|
/**
|
|
641
641
|
* Justify Items
|
|
@@ -656,7 +656,7 @@ const O = (e) => {
|
|
|
656
656
|
* @see https://tailwindcss.com/docs/align-content
|
|
657
657
|
*/
|
|
658
658
|
"align-content": [{
|
|
659
|
-
content: ["normal", ...
|
|
659
|
+
content: ["normal", ...h(), "baseline"]
|
|
660
660
|
}],
|
|
661
661
|
/**
|
|
662
662
|
* Align Items
|
|
@@ -677,7 +677,7 @@ const O = (e) => {
|
|
|
677
677
|
* @see https://tailwindcss.com/docs/place-content
|
|
678
678
|
*/
|
|
679
679
|
"place-content": [{
|
|
680
|
-
"place-content": [...
|
|
680
|
+
"place-content": [...h(), "baseline"]
|
|
681
681
|
}],
|
|
682
682
|
/**
|
|
683
683
|
* Place Items
|
|
@@ -1013,7 +1013,7 @@ const O = (e) => {
|
|
|
1013
1013
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1014
1014
|
*/
|
|
1015
1015
|
"placeholder-opacity": [{
|
|
1016
|
-
"placeholder-opacity": [
|
|
1016
|
+
"placeholder-opacity": [N]
|
|
1017
1017
|
}],
|
|
1018
1018
|
/**
|
|
1019
1019
|
* Text Alignment
|
|
@@ -1034,7 +1034,7 @@ const O = (e) => {
|
|
|
1034
1034
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
1035
1035
|
*/
|
|
1036
1036
|
"text-opacity": [{
|
|
1037
|
-
"text-opacity": [
|
|
1037
|
+
"text-opacity": [N]
|
|
1038
1038
|
}],
|
|
1039
1039
|
/**
|
|
1040
1040
|
* Text Decoration
|
|
@@ -1046,7 +1046,7 @@ const O = (e) => {
|
|
|
1046
1046
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1047
1047
|
*/
|
|
1048
1048
|
"text-decoration-style": [{
|
|
1049
|
-
decoration: [...
|
|
1049
|
+
decoration: [...u(), "wavy"]
|
|
1050
1050
|
}],
|
|
1051
1051
|
/**
|
|
1052
1052
|
* Text Decoration Thickness
|
|
@@ -1149,7 +1149,7 @@ const O = (e) => {
|
|
|
1149
1149
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
1150
1150
|
*/
|
|
1151
1151
|
"bg-opacity": [{
|
|
1152
|
-
"bg-opacity": [
|
|
1152
|
+
"bg-opacity": [N]
|
|
1153
1153
|
}],
|
|
1154
1154
|
/**
|
|
1155
1155
|
* Background Origin
|
|
@@ -1413,14 +1413,14 @@ const O = (e) => {
|
|
|
1413
1413
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
1414
1414
|
*/
|
|
1415
1415
|
"border-opacity": [{
|
|
1416
|
-
"border-opacity": [
|
|
1416
|
+
"border-opacity": [N]
|
|
1417
1417
|
}],
|
|
1418
1418
|
/**
|
|
1419
1419
|
* Border Style
|
|
1420
1420
|
* @see https://tailwindcss.com/docs/border-style
|
|
1421
1421
|
*/
|
|
1422
1422
|
"border-style": [{
|
|
1423
|
-
border: [...
|
|
1423
|
+
border: [...u(), "hidden"]
|
|
1424
1424
|
}],
|
|
1425
1425
|
/**
|
|
1426
1426
|
* Divide Width X
|
|
@@ -1451,14 +1451,14 @@ const O = (e) => {
|
|
|
1451
1451
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
1452
1452
|
*/
|
|
1453
1453
|
"divide-opacity": [{
|
|
1454
|
-
"divide-opacity": [
|
|
1454
|
+
"divide-opacity": [N]
|
|
1455
1455
|
}],
|
|
1456
1456
|
/**
|
|
1457
1457
|
* Divide Style
|
|
1458
1458
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1459
1459
|
*/
|
|
1460
1460
|
"divide-style": [{
|
|
1461
|
-
divide:
|
|
1461
|
+
divide: u()
|
|
1462
1462
|
}],
|
|
1463
1463
|
/**
|
|
1464
1464
|
* Border Color
|
|
@@ -1535,7 +1535,7 @@ const O = (e) => {
|
|
|
1535
1535
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1536
1536
|
*/
|
|
1537
1537
|
"outline-style": [{
|
|
1538
|
-
outline: ["", ...
|
|
1538
|
+
outline: ["", ...u()]
|
|
1539
1539
|
}],
|
|
1540
1540
|
/**
|
|
1541
1541
|
* Outline Offset
|
|
@@ -1582,7 +1582,7 @@ const O = (e) => {
|
|
|
1582
1582
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
1583
1583
|
*/
|
|
1584
1584
|
"ring-opacity": [{
|
|
1585
|
-
"ring-opacity": [
|
|
1585
|
+
"ring-opacity": [N]
|
|
1586
1586
|
}],
|
|
1587
1587
|
/**
|
|
1588
1588
|
* Ring Offset Width
|
|
@@ -1618,7 +1618,7 @@ const O = (e) => {
|
|
|
1618
1618
|
* @see https://tailwindcss.com/docs/opacity
|
|
1619
1619
|
*/
|
|
1620
1620
|
opacity: [{
|
|
1621
|
-
opacity: [
|
|
1621
|
+
opacity: [N]
|
|
1622
1622
|
}],
|
|
1623
1623
|
/**
|
|
1624
1624
|
* Mix Blend Mode
|
|
@@ -1662,7 +1662,7 @@ const O = (e) => {
|
|
|
1662
1662
|
* @see https://tailwindcss.com/docs/contrast
|
|
1663
1663
|
*/
|
|
1664
1664
|
contrast: [{
|
|
1665
|
-
contrast: [
|
|
1665
|
+
contrast: [p]
|
|
1666
1666
|
}],
|
|
1667
1667
|
/**
|
|
1668
1668
|
* Drop Shadow
|
|
@@ -1733,7 +1733,7 @@ const O = (e) => {
|
|
|
1733
1733
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
1734
1734
|
*/
|
|
1735
1735
|
"backdrop-contrast": [{
|
|
1736
|
-
"backdrop-contrast": [
|
|
1736
|
+
"backdrop-contrast": [p]
|
|
1737
1737
|
}],
|
|
1738
1738
|
/**
|
|
1739
1739
|
* Backdrop Grayscale
|
|
@@ -1761,7 +1761,7 @@ const O = (e) => {
|
|
|
1761
1761
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
1762
1762
|
*/
|
|
1763
1763
|
"backdrop-opacity": [{
|
|
1764
|
-
"backdrop-opacity": [
|
|
1764
|
+
"backdrop-opacity": [N]
|
|
1765
1765
|
}],
|
|
1766
1766
|
/**
|
|
1767
1767
|
* Backdrop Saturate
|
|
@@ -1790,21 +1790,21 @@ const O = (e) => {
|
|
|
1790
1790
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1791
1791
|
*/
|
|
1792
1792
|
"border-spacing": [{
|
|
1793
|
-
"border-spacing": [
|
|
1793
|
+
"border-spacing": [d]
|
|
1794
1794
|
}],
|
|
1795
1795
|
/**
|
|
1796
1796
|
* Border Spacing X
|
|
1797
1797
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1798
1798
|
*/
|
|
1799
1799
|
"border-spacing-x": [{
|
|
1800
|
-
"border-spacing-x": [
|
|
1800
|
+
"border-spacing-x": [d]
|
|
1801
1801
|
}],
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Border Spacing Y
|
|
1804
1804
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1805
1805
|
*/
|
|
1806
1806
|
"border-spacing-y": [{
|
|
1807
|
-
"border-spacing-y": [
|
|
1807
|
+
"border-spacing-y": [d]
|
|
1808
1808
|
}],
|
|
1809
1809
|
/**
|
|
1810
1810
|
* Table Layout
|
|
@@ -1911,14 +1911,14 @@ const O = (e) => {
|
|
|
1911
1911
|
* @see https://tailwindcss.com/docs/skew
|
|
1912
1912
|
*/
|
|
1913
1913
|
"skew-x": [{
|
|
1914
|
-
"skew-x": [
|
|
1914
|
+
"skew-x": [Y]
|
|
1915
1915
|
}],
|
|
1916
1916
|
/**
|
|
1917
1917
|
* Skew Y
|
|
1918
1918
|
* @see https://tailwindcss.com/docs/skew
|
|
1919
1919
|
*/
|
|
1920
1920
|
"skew-y": [{
|
|
1921
|
-
"skew-y": [
|
|
1921
|
+
"skew-y": [Y]
|
|
1922
1922
|
}],
|
|
1923
1923
|
/**
|
|
1924
1924
|
* Transform Origin
|
|
@@ -2259,24 +2259,24 @@ const O = (e) => {
|
|
|
2259
2259
|
"font-size": ["leading"]
|
|
2260
2260
|
}
|
|
2261
2261
|
};
|
|
2262
|
-
}, M = /* @__PURE__ */ et(xt), vt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-plus'%3e%3cpath%20d='M5%2012h14'/%3e%3cpath%20d='M12%205v14'/%3e%3c/svg%3e", wt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-minus'%3e%3cpath%20d='M5%2012h14'/%3e%3c/svg%3e", yt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-down'%3e%3cpath%20d='m6%209%206%206%206-6'/%3e%3c/svg%3e", kt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-up'%3e%3cpath%20d='m18%2015-6-6-6%206'/%3e%3c/svg%3e", Ct = "mt-[-0.5rem]", Mt = "flex justify-between items-center w-full p-1 px-4 text-left border border-gray-300 mt-2",
|
|
2262
|
+
}, M = /* @__PURE__ */ et(xt), vt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-plus'%3e%3cpath%20d='M5%2012h14'/%3e%3cpath%20d='M12%205v14'/%3e%3c/svg%3e", wt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-minus'%3e%3cpath%20d='M5%2012h14'/%3e%3c/svg%3e", yt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-down'%3e%3cpath%20d='m6%209%206%206%206-6'/%3e%3c/svg%3e", kt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-chevron-up'%3e%3cpath%20d='m18%2015-6-6-6%206'/%3e%3c/svg%3e", Ct = "mt-[-0.5rem]", Mt = "flex justify-between items-center w-full p-1 px-4 text-left border border-gray-300 mt-2", $t = "px-4 py-1 border border-t-0 border-gray-300", Nt = {}, St = {}, ir = J(
|
|
2263
2263
|
({
|
|
2264
2264
|
variant: e = "default",
|
|
2265
2265
|
label: t,
|
|
2266
|
-
|
|
2266
|
+
classNameContainer: r = "",
|
|
2267
2267
|
chevron: n = !0,
|
|
2268
2268
|
iconAccordionOpened: l,
|
|
2269
2269
|
iconAccordionClosed: i,
|
|
2270
|
-
rounded:
|
|
2271
|
-
|
|
2272
|
-
|
|
2270
|
+
rounded: d = !1,
|
|
2271
|
+
classNameHeading: s = "",
|
|
2272
|
+
classNameContent: p = "",
|
|
2273
2273
|
onExpand: f,
|
|
2274
2274
|
singleOpen: x,
|
|
2275
2275
|
index: y,
|
|
2276
2276
|
children: w,
|
|
2277
2277
|
...v
|
|
2278
2278
|
}, c) => {
|
|
2279
|
-
const [a, m] = A(!1),
|
|
2279
|
+
const [a, m] = A(!1), N = `accordion-${y ?? t.replace(/\s+/g, "-").toLowerCase()}`, S = () => {
|
|
2280
2280
|
f && x && f(m), m(!a);
|
|
2281
2281
|
}, E = (j) => {
|
|
2282
2282
|
(j.key === "Enter" || j.key === " ") && (j.preventDefault(), S(), console.log("key pressed, event.key === '" + j.key + "', index: " + y + ", label: " + t));
|
|
@@ -2287,13 +2287,13 @@ const O = (e) => {
|
|
|
2287
2287
|
{
|
|
2288
2288
|
className: M(
|
|
2289
2289
|
Mt,
|
|
2290
|
-
|
|
2290
|
+
Nt.variant,
|
|
2291
2291
|
s,
|
|
2292
|
-
|
|
2292
|
+
d && (a ? "rounded-t-md" : "rounded-md")
|
|
2293
2293
|
),
|
|
2294
|
-
"aria-controls": `${
|
|
2294
|
+
"aria-controls": `${N}-content`,
|
|
2295
2295
|
"aria-expanded": a,
|
|
2296
|
-
id: `${
|
|
2296
|
+
id: `${N}-header`,
|
|
2297
2297
|
onClick: S,
|
|
2298
2298
|
onKeyDown: E,
|
|
2299
2299
|
...v,
|
|
@@ -2307,20 +2307,20 @@ const O = (e) => {
|
|
|
2307
2307
|
"div",
|
|
2308
2308
|
{
|
|
2309
2309
|
className: M(
|
|
2310
|
-
|
|
2310
|
+
$t,
|
|
2311
2311
|
St.variant,
|
|
2312
|
-
|
|
2313
|
-
|
|
2312
|
+
p,
|
|
2313
|
+
d && "rounded-b-md"
|
|
2314
2314
|
),
|
|
2315
|
-
id: `${
|
|
2315
|
+
id: `${N}-content`,
|
|
2316
2316
|
role: "region",
|
|
2317
|
-
"aria-labelledby": `${
|
|
2317
|
+
"aria-labelledby": `${N}-header`,
|
|
2318
2318
|
children: w
|
|
2319
2319
|
}
|
|
2320
2320
|
)
|
|
2321
2321
|
] });
|
|
2322
2322
|
}
|
|
2323
|
-
),
|
|
2323
|
+
), cr = J(
|
|
2324
2324
|
({
|
|
2325
2325
|
children: e,
|
|
2326
2326
|
variant: t = "default",
|
|
@@ -2328,12 +2328,10 @@ const O = (e) => {
|
|
|
2328
2328
|
iconAccordionOpened: n,
|
|
2329
2329
|
iconAccordionClosed: l,
|
|
2330
2330
|
rounded: i,
|
|
2331
|
-
|
|
2332
|
-
// contentClasses,
|
|
2333
|
-
className: u,
|
|
2331
|
+
classNameContainer: d,
|
|
2334
2332
|
singleOpen: s = !0,
|
|
2335
|
-
|
|
2336
|
-
|
|
2333
|
+
classNameChildHeading: p,
|
|
2334
|
+
classNameChildContent: f,
|
|
2337
2335
|
...x
|
|
2338
2336
|
}, y) => {
|
|
2339
2337
|
const [w, v] = A(
|
|
@@ -2341,7 +2339,7 @@ const O = (e) => {
|
|
|
2341
2339
|
), c = (a) => {
|
|
2342
2340
|
w && w(!1), v(() => a);
|
|
2343
2341
|
};
|
|
2344
|
-
return /* @__PURE__ */ o("div", { ref: y, ...x, className: M(Ct,
|
|
2342
|
+
return /* @__PURE__ */ o("div", { ref: y, ...x, className: M(Ct, d), children: Oe.map(e, (a, m) => Te(a) ? Le(a, {
|
|
2345
2343
|
// <AccordionProps> to ensure child component sees parent specification in code
|
|
2346
2344
|
...a.props,
|
|
2347
2345
|
// Merge existing props from the child
|
|
@@ -2350,12 +2348,12 @@ const O = (e) => {
|
|
|
2350
2348
|
iconAccordionOpened: n,
|
|
2351
2349
|
iconAccordionClosed: l,
|
|
2352
2350
|
rounded: i,
|
|
2353
|
-
|
|
2351
|
+
classNameHeading: M(p, a.props.classNameHeading),
|
|
2354
2352
|
// className for child component
|
|
2355
|
-
|
|
2353
|
+
classNameContent: M(f, a.props.classNameContent),
|
|
2356
2354
|
index: m,
|
|
2357
2355
|
singleOpen: s,
|
|
2358
|
-
onExpand: (
|
|
2356
|
+
onExpand: (N) => c(N)
|
|
2359
2357
|
// Pass expansion handler to child
|
|
2360
2358
|
}) : a) });
|
|
2361
2359
|
}
|
|
@@ -2471,7 +2469,7 @@ const O = (e) => {
|
|
|
2471
2469
|
subVariant: "green",
|
|
2472
2470
|
classes: "w-[250px] mx-2 border-l-8 border-black grid grid-cols-6 rounded-md bg-gray-400/10 pr-2 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-400/20 overflow-hidden"
|
|
2473
2471
|
}
|
|
2474
|
-
],
|
|
2472
|
+
], dr = J(
|
|
2475
2473
|
({
|
|
2476
2474
|
variant: e = "default",
|
|
2477
2475
|
subVariant: t = "default",
|
|
@@ -2479,27 +2477,27 @@ const O = (e) => {
|
|
|
2479
2477
|
svgClasses: n = "size-1.5 fill-yellow-400",
|
|
2480
2478
|
imagePath: l,
|
|
2481
2479
|
imageAlt: i,
|
|
2482
|
-
|
|
2480
|
+
classNameImage: d,
|
|
2483
2481
|
children: s,
|
|
2484
|
-
...
|
|
2482
|
+
...p
|
|
2485
2483
|
}, f) => {
|
|
2486
2484
|
const [x, y] = A(), [w, v] = A(), [c, a] = A(zt), m = () => {
|
|
2487
2485
|
y(M(x, "hidden"));
|
|
2488
2486
|
};
|
|
2489
2487
|
return R(() => {
|
|
2490
2488
|
var E, j;
|
|
2491
|
-
const
|
|
2492
|
-
(H) => H.variant === e && H.subVariant ===
|
|
2489
|
+
const N = t === "custom" ? "default" : t, S = (E = Se.find(
|
|
2490
|
+
(H) => H.variant === e && H.subVariant === N
|
|
2493
2491
|
)) == null ? void 0 : E.classes;
|
|
2494
2492
|
if (e === "icon") {
|
|
2495
2493
|
const H = (j = Se.find(
|
|
2496
|
-
(
|
|
2494
|
+
(Y) => Y.variant === e && Y.subVariant === N
|
|
2497
2495
|
)) == null ? void 0 : j.svgClasses;
|
|
2498
2496
|
v(t === "custom" ? M(H, n) : H);
|
|
2499
2497
|
}
|
|
2500
2498
|
e === "hazard" ? a(Lt) : e === "go" && a(Dt), y(M(S, r));
|
|
2501
|
-
}, [t, r, e, n]), /* @__PURE__ */ V(
|
|
2502
|
-
e === "default" && /* @__PURE__ */ o("div", { className: x, ...
|
|
2499
|
+
}, [t, r, e, n]), /* @__PURE__ */ V(pe, { children: [
|
|
2500
|
+
e === "default" && /* @__PURE__ */ o("div", { className: x, ...p, ref: f, children: s }),
|
|
2503
2501
|
(e === "warning" || e === "hazard" || e === "go") && /* @__PURE__ */ V("div", { className: x, children: [
|
|
2504
2502
|
/* @__PURE__ */ o("div", { className: "size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative", children: /* @__PURE__ */ o("div", { className: "left-0 top-0 absolute", children: /* @__PURE__ */ o("img", { className: "size-6", src: c, alt: `${e} icon` }) }) }),
|
|
2505
2503
|
/* @__PURE__ */ o("div", { className: "grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]", children: s }),
|
|
@@ -2513,12 +2511,12 @@ const O = (e) => {
|
|
|
2513
2511
|
}
|
|
2514
2512
|
)
|
|
2515
2513
|
] }),
|
|
2516
|
-
e === "icon" && /* @__PURE__ */ V("div", { className: x, ...
|
|
2514
|
+
e === "icon" && /* @__PURE__ */ V("div", { className: x, ...p, ref: f, children: [
|
|
2517
2515
|
/* @__PURE__ */ o("svg", { viewBox: "0 0 6 6", "aria-hidden": "true", className: w, role: "img", children: /* @__PURE__ */ o("circle", { r: 3, cx: 3, cy: 3 }) }),
|
|
2518
2516
|
s
|
|
2519
2517
|
] }),
|
|
2520
|
-
e === "media" && /* @__PURE__ */ V("div", { className: x, ...
|
|
2521
|
-
/* @__PURE__ */ o("div", { className: "col-start-1 col-span-2", children: /* @__PURE__ */ o("img", { className: M("h-full",
|
|
2518
|
+
e === "media" && /* @__PURE__ */ V("div", { className: x, ...p, ref: f, children: [
|
|
2519
|
+
/* @__PURE__ */ o("div", { className: "col-start-1 col-span-2", children: /* @__PURE__ */ o("img", { className: M("h-full", d), src: l, alt: i }) }),
|
|
2522
2520
|
/* @__PURE__ */ o("div", { className: "w-full ml-2 col-start-3 col-span-3", children: s })
|
|
2523
2521
|
] })
|
|
2524
2522
|
] });
|
|
@@ -2544,7 +2542,7 @@ const O = (e) => {
|
|
|
2544
2542
|
selected: ""
|
|
2545
2543
|
// Only used if 'selected' is true
|
|
2546
2544
|
}
|
|
2547
|
-
},
|
|
2545
|
+
}, ur = J(
|
|
2548
2546
|
({
|
|
2549
2547
|
label: e,
|
|
2550
2548
|
onClick: t,
|
|
@@ -2552,20 +2550,20 @@ const O = (e) => {
|
|
|
2552
2550
|
icon: n,
|
|
2553
2551
|
iconPosition: l,
|
|
2554
2552
|
variant: i = "default",
|
|
2555
|
-
type:
|
|
2553
|
+
type: d = "button",
|
|
2556
2554
|
children: s,
|
|
2557
|
-
selected:
|
|
2558
|
-
|
|
2555
|
+
selected: p = !1,
|
|
2556
|
+
classNameSelected: f,
|
|
2559
2557
|
...x
|
|
2560
2558
|
}, y) => {
|
|
2561
2559
|
const [w, v] = A("");
|
|
2562
2560
|
return R(() => {
|
|
2563
2561
|
let c = ve[i].normal || ve.default.normal;
|
|
2564
|
-
|
|
2565
|
-
}, [r,
|
|
2562
|
+
p && !f ? c = M(c, ve[i].selected) : p && f && (c = M(c, f)), v(M(Vt, c, r));
|
|
2563
|
+
}, [r, p, f, i]), /* @__PURE__ */ V(
|
|
2566
2564
|
"button",
|
|
2567
2565
|
{
|
|
2568
|
-
type:
|
|
2566
|
+
type: d,
|
|
2569
2567
|
onClick: t,
|
|
2570
2568
|
className: `${l === "iconOnly" ? M(w, "px-[12px] md:px-[14px] lg:px-[16px] py-[12px] md:py-[14px] lg:py-[16px]") : w}`,
|
|
2571
2569
|
ref: y,
|
|
@@ -2582,20 +2580,20 @@ const O = (e) => {
|
|
|
2582
2580
|
default: "",
|
|
2583
2581
|
// image top
|
|
2584
2582
|
bold: "font-bold"
|
|
2585
|
-
},
|
|
2586
|
-
({
|
|
2587
|
-
const s =
|
|
2583
|
+
}, gr = re.forwardRef(
|
|
2584
|
+
({ classNameContainer: e, className: t, variant: r = "default", auto: n = !0, separator: l = It, ...i }, d) => {
|
|
2585
|
+
const s = Ye().pathname.split("/").filter((p) => p !== "");
|
|
2588
2586
|
return /* @__PURE__ */ o(
|
|
2589
2587
|
"nav",
|
|
2590
2588
|
{
|
|
2591
2589
|
className: M(jt[r], e),
|
|
2592
2590
|
...i,
|
|
2593
|
-
ref:
|
|
2591
|
+
ref: d,
|
|
2594
2592
|
"aria-label": "Breadcrumbs",
|
|
2595
2593
|
children: /* @__PURE__ */ V("ol", { className: "flex list-none", children: [
|
|
2596
2594
|
/* @__PURE__ */ V("li", { className: "breadcrumb-item inline-flex items-center", children: [
|
|
2597
2595
|
/* @__PURE__ */ o(
|
|
2598
|
-
|
|
2596
|
+
he,
|
|
2599
2597
|
{
|
|
2600
2598
|
to: "/",
|
|
2601
2599
|
className: M(
|
|
@@ -2606,7 +2604,7 @@ const O = (e) => {
|
|
|
2606
2604
|
}
|
|
2607
2605
|
),
|
|
2608
2606
|
/* @__PURE__ */ o(
|
|
2609
|
-
|
|
2607
|
+
he,
|
|
2610
2608
|
{
|
|
2611
2609
|
to: "/",
|
|
2612
2610
|
className: M(
|
|
@@ -2618,7 +2616,7 @@ const O = (e) => {
|
|
|
2618
2616
|
),
|
|
2619
2617
|
s.length > 1 ? /* @__PURE__ */ o("span", { className: M("me-2", t), children: /* @__PURE__ */ o("img", { src: l, alt: "vector" }) }) : ""
|
|
2620
2618
|
] }),
|
|
2621
|
-
s.map((
|
|
2619
|
+
s.map((p, f) => {
|
|
2622
2620
|
const x = "/" + s.slice(0, f + 1).join("/");
|
|
2623
2621
|
return /* @__PURE__ */ V("li", { className: "breadcrumb-item inline-flex items-center", children: [
|
|
2624
2622
|
f === s.length - 1 ? (
|
|
@@ -2628,20 +2626,20 @@ const O = (e) => {
|
|
|
2628
2626
|
{
|
|
2629
2627
|
className: "text-black font-bold capitalize",
|
|
2630
2628
|
"aria-current": "page",
|
|
2631
|
-
children: decodeURIComponent(
|
|
2629
|
+
children: decodeURIComponent(p).replace(/-/g, " ")
|
|
2632
2630
|
}
|
|
2633
2631
|
)
|
|
2634
2632
|
) : (
|
|
2635
2633
|
// Render intermediate items as links
|
|
2636
2634
|
/* @__PURE__ */ o(
|
|
2637
|
-
|
|
2635
|
+
he,
|
|
2638
2636
|
{
|
|
2639
2637
|
to: x,
|
|
2640
2638
|
className: M(
|
|
2641
2639
|
"text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2",
|
|
2642
2640
|
t
|
|
2643
2641
|
),
|
|
2644
|
-
children: decodeURIComponent(
|
|
2642
|
+
children: decodeURIComponent(p).replace(/-/g, " ")
|
|
2645
2643
|
}
|
|
2646
2644
|
)
|
|
2647
2645
|
),
|
|
@@ -2661,17 +2659,17 @@ const O = (e) => {
|
|
|
2661
2659
|
}, Ht = {
|
|
2662
2660
|
default: "bg-white overflow-hidden rounded-lg",
|
|
2663
2661
|
outline: "bg-white overflow-hidden rounded-lg shadow-md border border-slate-300"
|
|
2664
|
-
}, Ot = "px-4 my-2",
|
|
2662
|
+
}, Ot = "px-4 my-2", Tt = "px-2 my-2", Yt = re.forwardRef(
|
|
2665
2663
|
({
|
|
2666
2664
|
className: e,
|
|
2667
2665
|
variant: t = "default",
|
|
2668
2666
|
variantStyle: r = "default",
|
|
2669
2667
|
imagePath: n,
|
|
2670
|
-
|
|
2668
|
+
classNameImage: l = "w-full h-full",
|
|
2671
2669
|
imageInset: i = !1,
|
|
2672
|
-
alt:
|
|
2670
|
+
alt: d,
|
|
2673
2671
|
ariaLabel: s = "card component",
|
|
2674
|
-
children:
|
|
2672
|
+
children: p,
|
|
2675
2673
|
...f
|
|
2676
2674
|
}, x) => /* @__PURE__ */ V(
|
|
2677
2675
|
"div",
|
|
@@ -2689,26 +2687,26 @@ const O = (e) => {
|
|
|
2689
2687
|
/* @__PURE__ */ o(
|
|
2690
2688
|
"div",
|
|
2691
2689
|
{
|
|
2692
|
-
className: M("flex-initial items-center justify-center w-full", i && (t === "default" || t === "imageBottom" ? Ot :
|
|
2693
|
-
children: n && /* @__PURE__ */ o("img", { src: n, alt:
|
|
2690
|
+
className: M("flex-initial items-center justify-center w-full", i && (t === "default" || t === "imageBottom" ? Ot : Tt)),
|
|
2691
|
+
children: n && /* @__PURE__ */ o("img", { src: n, alt: d, className: l })
|
|
2694
2692
|
}
|
|
2695
2693
|
),
|
|
2696
|
-
/* @__PURE__ */ o("div", { className: "flex-auto px-4 my-2", children:
|
|
2694
|
+
/* @__PURE__ */ o("div", { className: "flex-auto px-4 my-2", children: p })
|
|
2697
2695
|
]
|
|
2698
2696
|
}
|
|
2699
2697
|
)
|
|
2700
2698
|
);
|
|
2701
|
-
|
|
2702
|
-
const
|
|
2699
|
+
Yt.displayName = "Card";
|
|
2700
|
+
const fr = ({
|
|
2703
2701
|
className: e = "",
|
|
2704
|
-
|
|
2705
|
-
|
|
2702
|
+
classNameMessage: t = "",
|
|
2703
|
+
classNameOverLimitMessage: r = "",
|
|
2706
2704
|
maxCharacters: n,
|
|
2707
2705
|
children: l,
|
|
2708
2706
|
altRemainingMessageText: i,
|
|
2709
|
-
altOverageMessageText:
|
|
2707
|
+
altOverageMessageText: d
|
|
2710
2708
|
}) => {
|
|
2711
|
-
const [s,
|
|
2709
|
+
const [s, p] = A(`${n} characters allowed`), [f, x] = A(!1);
|
|
2712
2710
|
return /* @__PURE__ */ V("div", { className: e, children: [
|
|
2713
2711
|
/* @__PURE__ */ o(
|
|
2714
2712
|
"div",
|
|
@@ -2716,13 +2714,13 @@ const gr = ({
|
|
|
2716
2714
|
onInput: (w) => {
|
|
2717
2715
|
const c = w.target.value.length;
|
|
2718
2716
|
if (x(c > n), c === 0)
|
|
2719
|
-
|
|
2717
|
+
p(`${n} characters allowed`);
|
|
2720
2718
|
else if (c <= n) {
|
|
2721
2719
|
const a = " " + (i ?? "remaining");
|
|
2722
|
-
|
|
2720
|
+
p(`${n - c}${a}`);
|
|
2723
2721
|
} else {
|
|
2724
|
-
const a = " " + (
|
|
2725
|
-
|
|
2722
|
+
const a = " " + (d ?? "characters too many");
|
|
2723
|
+
p(`${c - n}${a}`);
|
|
2726
2724
|
}
|
|
2727
2725
|
},
|
|
2728
2726
|
className: "mb-2",
|
|
@@ -2743,162 +2741,162 @@ var Rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2743
2741
|
function Bt(e) {
|
|
2744
2742
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2745
2743
|
}
|
|
2746
|
-
var
|
|
2744
|
+
var Ee = { exports: {} };
|
|
2747
2745
|
(function(e, t) {
|
|
2748
2746
|
(function(r, n) {
|
|
2749
2747
|
e.exports = n();
|
|
2750
2748
|
})(Rt, function() {
|
|
2751
|
-
var r = 1e3, n = 6e4, l = 36e5, i = "millisecond",
|
|
2752
|
-
var g = ["th", "st", "nd", "rd"],
|
|
2753
|
-
return "[" + b + (g[(
|
|
2754
|
-
} }, E = function(b, g,
|
|
2749
|
+
var r = 1e3, n = 6e4, l = 36e5, i = "millisecond", d = "second", s = "minute", p = "hour", f = "day", x = "week", y = "month", w = "quarter", v = "year", c = "date", a = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, N = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(b) {
|
|
2750
|
+
var g = ["th", "st", "nd", "rd"], u = b % 100;
|
|
2751
|
+
return "[" + b + (g[(u - 20) % 10] || g[u] || g[0]) + "]";
|
|
2752
|
+
} }, E = function(b, g, u) {
|
|
2755
2753
|
var C = String(b);
|
|
2756
|
-
return !C || C.length >= g ? b : "" + Array(g + 1 - C.length).join(
|
|
2754
|
+
return !C || C.length >= g ? b : "" + Array(g + 1 - C.length).join(u) + b;
|
|
2757
2755
|
}, j = { s: E, z: function(b) {
|
|
2758
|
-
var g = -b.utcOffset(),
|
|
2759
|
-
return (g <= 0 ? "+" : "-") + E(C, 2, "0") + ":" + E(
|
|
2760
|
-
}, m: function b(g,
|
|
2761
|
-
if (g.date() <
|
|
2762
|
-
var C = 12 * (
|
|
2763
|
-
return +(-(C + (
|
|
2756
|
+
var g = -b.utcOffset(), u = Math.abs(g), C = Math.floor(u / 60), h = u % 60;
|
|
2757
|
+
return (g <= 0 ? "+" : "-") + E(C, 2, "0") + ":" + E(h, 2, "0");
|
|
2758
|
+
}, m: function b(g, u) {
|
|
2759
|
+
if (g.date() < u.date()) return -b(u, g);
|
|
2760
|
+
var C = 12 * (u.year() - g.year()) + (u.month() - g.month()), h = g.clone().add(C, y), $ = u - h < 0, z = g.clone().add(C + ($ ? -1 : 1), y);
|
|
2761
|
+
return +(-(C + (u - h) / ($ ? h - z : z - h)) || 0);
|
|
2764
2762
|
}, a: function(b) {
|
|
2765
2763
|
return b < 0 ? Math.ceil(b) || 0 : Math.floor(b);
|
|
2766
2764
|
}, p: function(b) {
|
|
2767
|
-
return { M: y, y: v, w: x, d: f, D: c, h, m: s, s:
|
|
2765
|
+
return { M: y, y: v, w: x, d: f, D: c, h: p, m: s, s: d, ms: i, Q: w }[b] || String(b || "").toLowerCase().replace(/s$/, "");
|
|
2768
2766
|
}, u: function(b) {
|
|
2769
2767
|
return b === void 0;
|
|
2770
|
-
} }, H = "en",
|
|
2771
|
-
|
|
2768
|
+
} }, H = "en", Y = {};
|
|
2769
|
+
Y[H] = S;
|
|
2772
2770
|
var K = "$isDayjsObject", q = function(b) {
|
|
2773
2771
|
return b instanceof _ || !(!b || !b[K]);
|
|
2774
|
-
}, G = function b(g,
|
|
2775
|
-
var
|
|
2772
|
+
}, G = function b(g, u, C) {
|
|
2773
|
+
var h;
|
|
2776
2774
|
if (!g) return H;
|
|
2777
2775
|
if (typeof g == "string") {
|
|
2778
|
-
var
|
|
2779
|
-
|
|
2776
|
+
var $ = g.toLowerCase();
|
|
2777
|
+
Y[$] && (h = $), u && (Y[$] = u, h = $);
|
|
2780
2778
|
var z = g.split("-");
|
|
2781
|
-
if (!
|
|
2779
|
+
if (!h && z.length > 1) return b(z[0]);
|
|
2782
2780
|
} else {
|
|
2783
2781
|
var I = g.name;
|
|
2784
|
-
|
|
2782
|
+
Y[I] = g, h = I;
|
|
2785
2783
|
}
|
|
2786
|
-
return !C &&
|
|
2784
|
+
return !C && h && (H = h), h || !C && H;
|
|
2787
2785
|
}, D = function(b, g) {
|
|
2788
2786
|
if (q(b)) return b.clone();
|
|
2789
|
-
var
|
|
2790
|
-
return
|
|
2787
|
+
var u = typeof g == "object" ? g : {};
|
|
2788
|
+
return u.date = b, u.args = arguments, new _(u);
|
|
2791
2789
|
}, k = j;
|
|
2792
2790
|
k.l = G, k.i = q, k.w = function(b, g) {
|
|
2793
2791
|
return D(b, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
2794
2792
|
};
|
|
2795
2793
|
var _ = function() {
|
|
2796
|
-
function b(
|
|
2797
|
-
this.$L = G(
|
|
2794
|
+
function b(u) {
|
|
2795
|
+
this.$L = G(u.locale, null, !0), this.parse(u), this.$x = this.$x || u.x || {}, this[K] = !0;
|
|
2798
2796
|
}
|
|
2799
2797
|
var g = b.prototype;
|
|
2800
|
-
return g.parse = function(
|
|
2798
|
+
return g.parse = function(u) {
|
|
2801
2799
|
this.$d = function(C) {
|
|
2802
|
-
var
|
|
2803
|
-
if (
|
|
2804
|
-
if (k.u(
|
|
2805
|
-
if (
|
|
2806
|
-
if (typeof
|
|
2807
|
-
var z =
|
|
2800
|
+
var h = C.date, $ = C.utc;
|
|
2801
|
+
if (h === null) return /* @__PURE__ */ new Date(NaN);
|
|
2802
|
+
if (k.u(h)) return /* @__PURE__ */ new Date();
|
|
2803
|
+
if (h instanceof Date) return new Date(h);
|
|
2804
|
+
if (typeof h == "string" && !/Z$/i.test(h)) {
|
|
2805
|
+
var z = h.match(m);
|
|
2808
2806
|
if (z) {
|
|
2809
|
-
var I = z[2] - 1 || 0,
|
|
2810
|
-
return
|
|
2807
|
+
var I = z[2] - 1 || 0, T = (z[7] || "0").substring(0, 3);
|
|
2808
|
+
return $ ? new Date(Date.UTC(z[1], I, z[3] || 1, z[4] || 0, z[5] || 0, z[6] || 0, T)) : new Date(z[1], I, z[3] || 1, z[4] || 0, z[5] || 0, z[6] || 0, T);
|
|
2811
2809
|
}
|
|
2812
2810
|
}
|
|
2813
|
-
return new Date(
|
|
2814
|
-
}(
|
|
2811
|
+
return new Date(h);
|
|
2812
|
+
}(u), this.init();
|
|
2815
2813
|
}, g.init = function() {
|
|
2816
|
-
var
|
|
2817
|
-
this.$y =
|
|
2814
|
+
var u = this.$d;
|
|
2815
|
+
this.$y = u.getFullYear(), this.$M = u.getMonth(), this.$D = u.getDate(), this.$W = u.getDay(), this.$H = u.getHours(), this.$m = u.getMinutes(), this.$s = u.getSeconds(), this.$ms = u.getMilliseconds();
|
|
2818
2816
|
}, g.$utils = function() {
|
|
2819
2817
|
return k;
|
|
2820
2818
|
}, g.isValid = function() {
|
|
2821
2819
|
return this.$d.toString() !== a;
|
|
2822
|
-
}, g.isSame = function(
|
|
2823
|
-
var
|
|
2824
|
-
return this.startOf(C) <=
|
|
2825
|
-
}, g.isAfter = function(
|
|
2826
|
-
return D(
|
|
2827
|
-
}, g.isBefore = function(
|
|
2828
|
-
return this.endOf(C) < D(
|
|
2829
|
-
}, g.$g = function(
|
|
2830
|
-
return k.u(
|
|
2820
|
+
}, g.isSame = function(u, C) {
|
|
2821
|
+
var h = D(u);
|
|
2822
|
+
return this.startOf(C) <= h && h <= this.endOf(C);
|
|
2823
|
+
}, g.isAfter = function(u, C) {
|
|
2824
|
+
return D(u) < this.startOf(C);
|
|
2825
|
+
}, g.isBefore = function(u, C) {
|
|
2826
|
+
return this.endOf(C) < D(u);
|
|
2827
|
+
}, g.$g = function(u, C, h) {
|
|
2828
|
+
return k.u(u) ? this[C] : this.set(h, u);
|
|
2831
2829
|
}, g.unix = function() {
|
|
2832
2830
|
return Math.floor(this.valueOf() / 1e3);
|
|
2833
2831
|
}, g.valueOf = function() {
|
|
2834
2832
|
return this.$d.getTime();
|
|
2835
|
-
}, g.startOf = function(
|
|
2836
|
-
var
|
|
2837
|
-
var X = k.w(
|
|
2838
|
-
return
|
|
2839
|
-
},
|
|
2840
|
-
return k.w(
|
|
2833
|
+
}, g.startOf = function(u, C) {
|
|
2834
|
+
var h = this, $ = !!k.u(C) || C, z = k.p(u), I = function(oe, F) {
|
|
2835
|
+
var X = k.w(h.$u ? Date.UTC(h.$y, F, oe) : new Date(h.$y, F, oe), h);
|
|
2836
|
+
return $ ? X : X.endOf(f);
|
|
2837
|
+
}, T = function(oe, F) {
|
|
2838
|
+
return k.w(h.toDate()[oe].apply(h.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), h);
|
|
2841
2839
|
}, B = this.$W, P = this.$M, Z = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
|
2842
2840
|
switch (z) {
|
|
2843
2841
|
case v:
|
|
2844
|
-
return
|
|
2842
|
+
return $ ? I(1, 0) : I(31, 11);
|
|
2845
2843
|
case y:
|
|
2846
|
-
return
|
|
2844
|
+
return $ ? I(1, P) : I(0, P + 1);
|
|
2847
2845
|
case x:
|
|
2848
2846
|
var ne = this.$locale().weekStart || 0, ce = (B < ne ? B + 7 : B) - ne;
|
|
2849
|
-
return I(
|
|
2847
|
+
return I($ ? Z - ce : Z + (6 - ce), P);
|
|
2850
2848
|
case f:
|
|
2851
2849
|
case c:
|
|
2852
|
-
return
|
|
2853
|
-
case
|
|
2854
|
-
return
|
|
2850
|
+
return T(ae + "Hours", 0);
|
|
2851
|
+
case p:
|
|
2852
|
+
return T(ae + "Minutes", 1);
|
|
2855
2853
|
case s:
|
|
2856
|
-
return
|
|
2857
|
-
case
|
|
2858
|
-
return
|
|
2854
|
+
return T(ae + "Seconds", 2);
|
|
2855
|
+
case d:
|
|
2856
|
+
return T(ae + "Milliseconds", 3);
|
|
2859
2857
|
default:
|
|
2860
2858
|
return this.clone();
|
|
2861
2859
|
}
|
|
2862
|
-
}, g.endOf = function(
|
|
2863
|
-
return this.startOf(
|
|
2864
|
-
}, g.$set = function(
|
|
2865
|
-
var
|
|
2866
|
-
if (
|
|
2860
|
+
}, g.endOf = function(u) {
|
|
2861
|
+
return this.startOf(u, !1);
|
|
2862
|
+
}, g.$set = function(u, C) {
|
|
2863
|
+
var h, $ = k.p(u), z = "set" + (this.$u ? "UTC" : ""), I = (h = {}, h[f] = z + "Date", h[c] = z + "Date", h[y] = z + "Month", h[v] = z + "FullYear", h[p] = z + "Hours", h[s] = z + "Minutes", h[d] = z + "Seconds", h[i] = z + "Milliseconds", h)[$], T = $ === f ? this.$D + (C - this.$W) : C;
|
|
2864
|
+
if ($ === y || $ === v) {
|
|
2867
2865
|
var B = this.clone().set(c, 1);
|
|
2868
|
-
B.$d[I](
|
|
2869
|
-
} else I && this.$d[I](
|
|
2866
|
+
B.$d[I](T), B.init(), this.$d = B.set(c, Math.min(this.$D, B.daysInMonth())).$d;
|
|
2867
|
+
} else I && this.$d[I](T);
|
|
2870
2868
|
return this.init(), this;
|
|
2871
|
-
}, g.set = function(
|
|
2872
|
-
return this.clone().$set(
|
|
2873
|
-
}, g.get = function(
|
|
2874
|
-
return this[k.p(
|
|
2875
|
-
}, g.add = function(
|
|
2876
|
-
var
|
|
2877
|
-
|
|
2869
|
+
}, g.set = function(u, C) {
|
|
2870
|
+
return this.clone().$set(u, C);
|
|
2871
|
+
}, g.get = function(u) {
|
|
2872
|
+
return this[k.p(u)]();
|
|
2873
|
+
}, g.add = function(u, C) {
|
|
2874
|
+
var h, $ = this;
|
|
2875
|
+
u = Number(u);
|
|
2878
2876
|
var z = k.p(C), I = function(P) {
|
|
2879
|
-
var Z = D(
|
|
2880
|
-
return k.w(Z.date(Z.date() + Math.round(P *
|
|
2877
|
+
var Z = D($);
|
|
2878
|
+
return k.w(Z.date(Z.date() + Math.round(P * u)), $);
|
|
2881
2879
|
};
|
|
2882
|
-
if (z === y) return this.set(y, this.$M +
|
|
2883
|
-
if (z === v) return this.set(v, this.$y +
|
|
2880
|
+
if (z === y) return this.set(y, this.$M + u);
|
|
2881
|
+
if (z === v) return this.set(v, this.$y + u);
|
|
2884
2882
|
if (z === f) return I(1);
|
|
2885
2883
|
if (z === x) return I(7);
|
|
2886
|
-
var
|
|
2884
|
+
var T = (h = {}, h[s] = n, h[p] = l, h[d] = r, h)[z] || 1, B = this.$d.getTime() + u * T;
|
|
2887
2885
|
return k.w(B, this);
|
|
2888
|
-
}, g.subtract = function(
|
|
2889
|
-
return this.add(-1 *
|
|
2890
|
-
}, g.format = function(
|
|
2891
|
-
var C = this,
|
|
2892
|
-
if (!this.isValid()) return
|
|
2893
|
-
var
|
|
2894
|
-
return F && (F[X] || F(C,
|
|
2886
|
+
}, g.subtract = function(u, C) {
|
|
2887
|
+
return this.add(-1 * u, C);
|
|
2888
|
+
}, g.format = function(u) {
|
|
2889
|
+
var C = this, h = this.$locale();
|
|
2890
|
+
if (!this.isValid()) return h.invalidDate || a;
|
|
2891
|
+
var $ = u || "YYYY-MM-DDTHH:mm:ssZ", z = k.z(this), I = this.$H, T = this.$m, B = this.$M, P = h.weekdays, Z = h.months, ae = h.meridiem, ne = function(F, X, de, be) {
|
|
2892
|
+
return F && (F[X] || F(C, $)) || de[X].slice(0, be);
|
|
2895
2893
|
}, ce = function(F) {
|
|
2896
2894
|
return k.s(I % 12 || 12, F, "0");
|
|
2897
2895
|
}, oe = ae || function(F, X, de) {
|
|
2898
2896
|
var be = F < 12 ? "AM" : "PM";
|
|
2899
2897
|
return de ? be.toLowerCase() : be;
|
|
2900
2898
|
};
|
|
2901
|
-
return
|
|
2899
|
+
return $.replace(N, function(F, X) {
|
|
2902
2900
|
return X || function(de) {
|
|
2903
2901
|
switch (de) {
|
|
2904
2902
|
case "YY":
|
|
@@ -2910,7 +2908,7 @@ var je = { exports: {} };
|
|
|
2910
2908
|
case "MM":
|
|
2911
2909
|
return k.s(B + 1, 2, "0");
|
|
2912
2910
|
case "MMM":
|
|
2913
|
-
return ne(
|
|
2911
|
+
return ne(h.monthsShort, B, Z, 3);
|
|
2914
2912
|
case "MMMM":
|
|
2915
2913
|
return ne(Z, B);
|
|
2916
2914
|
case "D":
|
|
@@ -2920,9 +2918,9 @@ var je = { exports: {} };
|
|
|
2920
2918
|
case "d":
|
|
2921
2919
|
return String(C.$W);
|
|
2922
2920
|
case "dd":
|
|
2923
|
-
return ne(
|
|
2921
|
+
return ne(h.weekdaysMin, C.$W, P, 2);
|
|
2924
2922
|
case "ddd":
|
|
2925
|
-
return ne(
|
|
2923
|
+
return ne(h.weekdaysShort, C.$W, P, 3);
|
|
2926
2924
|
case "dddd":
|
|
2927
2925
|
return P[C.$W];
|
|
2928
2926
|
case "H":
|
|
@@ -2934,13 +2932,13 @@ var je = { exports: {} };
|
|
|
2934
2932
|
case "hh":
|
|
2935
2933
|
return ce(2);
|
|
2936
2934
|
case "a":
|
|
2937
|
-
return oe(I,
|
|
2935
|
+
return oe(I, T, !0);
|
|
2938
2936
|
case "A":
|
|
2939
|
-
return oe(I,
|
|
2937
|
+
return oe(I, T, !1);
|
|
2940
2938
|
case "m":
|
|
2941
|
-
return String(
|
|
2939
|
+
return String(T);
|
|
2942
2940
|
case "mm":
|
|
2943
|
-
return k.s(
|
|
2941
|
+
return k.s(T, 2, "0");
|
|
2944
2942
|
case "s":
|
|
2945
2943
|
return String(C.$s);
|
|
2946
2944
|
case "ss":
|
|
@@ -2955,47 +2953,47 @@ var je = { exports: {} };
|
|
|
2955
2953
|
});
|
|
2956
2954
|
}, g.utcOffset = function() {
|
|
2957
2955
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2958
|
-
}, g.diff = function(
|
|
2959
|
-
var
|
|
2960
|
-
return k.m(z,
|
|
2956
|
+
}, g.diff = function(u, C, h) {
|
|
2957
|
+
var $, z = this, I = k.p(C), T = D(u), B = (T.utcOffset() - this.utcOffset()) * n, P = this - T, Z = function() {
|
|
2958
|
+
return k.m(z, T);
|
|
2961
2959
|
};
|
|
2962
2960
|
switch (I) {
|
|
2963
2961
|
case v:
|
|
2964
|
-
|
|
2962
|
+
$ = Z() / 12;
|
|
2965
2963
|
break;
|
|
2966
2964
|
case y:
|
|
2967
|
-
|
|
2965
|
+
$ = Z();
|
|
2968
2966
|
break;
|
|
2969
2967
|
case w:
|
|
2970
|
-
|
|
2968
|
+
$ = Z() / 3;
|
|
2971
2969
|
break;
|
|
2972
2970
|
case x:
|
|
2973
|
-
|
|
2971
|
+
$ = (P - B) / 6048e5;
|
|
2974
2972
|
break;
|
|
2975
2973
|
case f:
|
|
2976
|
-
|
|
2974
|
+
$ = (P - B) / 864e5;
|
|
2977
2975
|
break;
|
|
2978
|
-
case
|
|
2979
|
-
|
|
2976
|
+
case p:
|
|
2977
|
+
$ = P / l;
|
|
2980
2978
|
break;
|
|
2981
2979
|
case s:
|
|
2982
|
-
|
|
2980
|
+
$ = P / n;
|
|
2983
2981
|
break;
|
|
2984
|
-
case
|
|
2985
|
-
|
|
2982
|
+
case d:
|
|
2983
|
+
$ = P / r;
|
|
2986
2984
|
break;
|
|
2987
2985
|
default:
|
|
2988
|
-
|
|
2986
|
+
$ = P;
|
|
2989
2987
|
}
|
|
2990
|
-
return
|
|
2988
|
+
return h ? $ : k.a($);
|
|
2991
2989
|
}, g.daysInMonth = function() {
|
|
2992
2990
|
return this.endOf(y).$D;
|
|
2993
2991
|
}, g.$locale = function() {
|
|
2994
|
-
return
|
|
2995
|
-
}, g.locale = function(
|
|
2996
|
-
if (!
|
|
2997
|
-
var
|
|
2998
|
-
return
|
|
2992
|
+
return Y[this.$L];
|
|
2993
|
+
}, g.locale = function(u, C) {
|
|
2994
|
+
if (!u) return this.$L;
|
|
2995
|
+
var h = this.clone(), $ = G(u, C, !0);
|
|
2996
|
+
return $ && (h.$L = $), h;
|
|
2999
2997
|
}, g.clone = function() {
|
|
3000
2998
|
return k.w(this.$d, this);
|
|
3001
2999
|
}, g.toDate = function() {
|
|
@@ -3008,7 +3006,7 @@ var je = { exports: {} };
|
|
|
3008
3006
|
return this.$d.toUTCString();
|
|
3009
3007
|
}, b;
|
|
3010
3008
|
}(), W = _.prototype;
|
|
3011
|
-
return D.prototype = W, [["$ms", i], ["$s",
|
|
3009
|
+
return D.prototype = W, [["$ms", i], ["$s", d], ["$m", s], ["$H", p], ["$W", f], ["$M", y], ["$y", v], ["$D", c]].forEach(function(b) {
|
|
3012
3010
|
W[b[1]] = function(g) {
|
|
3013
3011
|
return this.$g(g, b[0], b[1]);
|
|
3014
3012
|
};
|
|
@@ -3016,21 +3014,21 @@ var je = { exports: {} };
|
|
|
3016
3014
|
return b.$i || (b(g, _, D), b.$i = !0), D;
|
|
3017
3015
|
}, D.locale = G, D.isDayjs = q, D.unix = function(b) {
|
|
3018
3016
|
return D(1e3 * b);
|
|
3019
|
-
}, D.en =
|
|
3017
|
+
}, D.en = Y[H], D.Ls = Y, D.p = {}, D;
|
|
3020
3018
|
});
|
|
3021
|
-
})(
|
|
3022
|
-
var Pt =
|
|
3023
|
-
const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%200%2024%2024'%20width='24px'%20fill='%23000000'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2011H7v2h2v-2zm4%200h-2v2h2v-2zm4%200h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11%200-1.99.9-1.99%202L3%2020c0%201.1.89%202%202%202h14c1.1%200%202-.9%202-2V6c0-1.1-.9-2-2-2zm0%2016H5V9h14v11z'/%3e%3c/svg%3e",
|
|
3019
|
+
})(Ee);
|
|
3020
|
+
var Pt = Ee.exports;
|
|
3021
|
+
const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%200%2024%2024'%20width='24px'%20fill='%23000000'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2011H7v2h2v-2zm4%200h-2v2h2v-2zm4%200h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11%200-1.99.9-1.99%202L3%2020c0%201.1.89%202%202%202h14c1.1%200%202-.9%202-2V6c0-1.1-.9-2-2-2zm0%2016H5V9h14v11z'/%3e%3c/svg%3e", br = ({
|
|
3024
3022
|
id: e,
|
|
3025
3023
|
label: t,
|
|
3026
3024
|
value: r,
|
|
3027
3025
|
onChange: n
|
|
3028
3026
|
}) => {
|
|
3029
|
-
const [l, i] = A(!1), [
|
|
3027
|
+
const [l, i] = A(!1), [d, s] = A(r), [p, f] = A(!0), [x, y] = A(!!r), [w, v] = A(
|
|
3030
3028
|
fe(r, "MM-DD-YYYY", !0).isValid() ? fe(r, "MM-DD-YYYY", !0) : null
|
|
3031
|
-
), c = U(null), a = U(null), m = U(null),
|
|
3029
|
+
), c = U(null), a = U(null), m = U(null), N = (w == null ? void 0 : w.daysInMonth()) || 30, S = (w == null ? void 0 : w.startOf("month").day()) || 0;
|
|
3032
3030
|
R(() => {
|
|
3033
|
-
|
|
3031
|
+
d || (r = fe().format("MM-DD-YYYY"), y(!1)), s(r);
|
|
3034
3032
|
const D = fe(r, "MM-DD-YYYY", !0);
|
|
3035
3033
|
v(D.isValid() ? D : null), f(D.isValid() && r !== "");
|
|
3036
3034
|
}, [r]), R(() => {
|
|
@@ -3061,7 +3059,7 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3061
3059
|
}
|
|
3062
3060
|
const W = fe(k, "MM-DD-YYYY", !0);
|
|
3063
3061
|
W.isValid() ? (console.log("MAYBEDATE IS VALID"), v(W), f(!0), n(k)) : (console.log("MAYBEDATE IS --NOT-- VALID"), f(!1), n(k));
|
|
3064
|
-
},
|
|
3062
|
+
}, Y = () => {
|
|
3065
3063
|
i((D) => !D);
|
|
3066
3064
|
}, K = () => {
|
|
3067
3065
|
w && v(w.subtract(1, "month"));
|
|
@@ -3072,7 +3070,7 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3072
3070
|
const D = [];
|
|
3073
3071
|
for (let k = 0; k < S; k++)
|
|
3074
3072
|
D.push(/* @__PURE__ */ o("div", { className: "w-8 h-8" }, `empty-${k}`));
|
|
3075
|
-
for (let k = 1; k <=
|
|
3073
|
+
for (let k = 1; k <= N; k++) {
|
|
3076
3074
|
const _ = w.date(k);
|
|
3077
3075
|
D.push(
|
|
3078
3076
|
/* @__PURE__ */ o(
|
|
@@ -3102,7 +3100,7 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3102
3100
|
type: "text",
|
|
3103
3101
|
"aria-labelledby": "date-picker-input",
|
|
3104
3102
|
ref: a,
|
|
3105
|
-
value: x ?
|
|
3103
|
+
value: x ? d : "",
|
|
3106
3104
|
onChange: H,
|
|
3107
3105
|
placeholder: "MM-DD-YYYY",
|
|
3108
3106
|
className: `block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
|
|
@@ -3113,7 +3111,7 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3113
3111
|
"button",
|
|
3114
3112
|
{
|
|
3115
3113
|
type: "button",
|
|
3116
|
-
onClick:
|
|
3114
|
+
onClick: Y,
|
|
3117
3115
|
className: `px-3 py-2 bg-gray-100 border-2 border-gray-300 rounded-r-md rounded-l-none hover:bg-gray-200
|
|
3118
3116
|
focus:outline-none focus:border-blue-500`,
|
|
3119
3117
|
"aria-label": "Open calendar",
|
|
@@ -3174,7 +3172,7 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3174
3172
|
]
|
|
3175
3173
|
}
|
|
3176
3174
|
),
|
|
3177
|
-
!
|
|
3175
|
+
!p && /* @__PURE__ */ o("p", { className: "text-red-600", children: "Please enter a valid date 'MM-DD-YYYY'" })
|
|
3178
3176
|
] });
|
|
3179
3177
|
}, De = "h-10 px-4 py-2 arial rounded-sm border-2 border-[#c6c6c6] p-1 ps-2 mx-2 bg-white hover:outline-[#c6c6c6] focus:outline-[#0256ab] active:outline-[#0256ab]", Ft = [
|
|
3180
3178
|
{
|
|
@@ -3198,22 +3196,22 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3198
3196
|
className: e,
|
|
3199
3197
|
variant: t = "default",
|
|
3200
3198
|
label: r,
|
|
3201
|
-
|
|
3199
|
+
classNameLabel: n,
|
|
3202
3200
|
labelBaseColor: l = "#fff",
|
|
3203
3201
|
// labelInputColor = '#fff',
|
|
3204
3202
|
textShadow: i = !1,
|
|
3205
|
-
...
|
|
3203
|
+
...d
|
|
3206
3204
|
}, s) => {
|
|
3207
|
-
const [
|
|
3205
|
+
const [p, f] = A(), [x, y] = A(De), [w, v] = A(!1), c = U(null);
|
|
3208
3206
|
if (R(() => {
|
|
3209
3207
|
var a;
|
|
3210
3208
|
t && y(M(De, (a = Ft.find((m) => m.variant === t)) == null ? void 0 : a.classes, e));
|
|
3211
3209
|
}, [e, t, w]), R(() => {
|
|
3212
3210
|
const a = c.current;
|
|
3213
3211
|
if (!a) return;
|
|
3214
|
-
const m = (
|
|
3212
|
+
const m = (N) => {
|
|
3215
3213
|
const S = getComputedStyle(a);
|
|
3216
|
-
f(S.backgroundColor), v(
|
|
3214
|
+
f(S.backgroundColor), v(N);
|
|
3217
3215
|
};
|
|
3218
3216
|
return m(!0), a.addEventListener("mouseover", () => m(!0)), a.addEventListener("mouseout", () => m(!1)), () => {
|
|
3219
3217
|
a.removeEventListener("mouseover", () => m), a.removeEventListener("mouseout", () => m);
|
|
@@ -3231,11 +3229,11 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3231
3229
|
n
|
|
3232
3230
|
),
|
|
3233
3231
|
style: {
|
|
3234
|
-
background: `linear-gradient(to bottom, ${l} 0%, ${l} 50%, ${
|
|
3232
|
+
background: `linear-gradient(to bottom, ${l} 0%, ${l} 50%, ${p} 60%, ${p} 100%)`,
|
|
3235
3233
|
textShadow: i ? `1px 1px 2px ${l}, 0 0 1em ${l}, 0 0 0.2em ${l}` : ""
|
|
3236
3234
|
},
|
|
3237
3235
|
children: [
|
|
3238
|
-
|
|
3236
|
+
d.required && /* @__PURE__ */ o("span", { className: "text-red-500", children: "*" }),
|
|
3239
3237
|
r
|
|
3240
3238
|
]
|
|
3241
3239
|
}
|
|
@@ -3248,7 +3246,7 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3248
3246
|
ref: (a) => {
|
|
3249
3247
|
typeof s == "function" ? s(a) : s && (s.current = a), c.current = a;
|
|
3250
3248
|
},
|
|
3251
|
-
...
|
|
3249
|
+
...d
|
|
3252
3250
|
}
|
|
3253
3251
|
)
|
|
3254
3252
|
] });
|
|
@@ -3259,19 +3257,19 @@ const Wt = ({
|
|
|
3259
3257
|
items: e,
|
|
3260
3258
|
header: t,
|
|
3261
3259
|
className: r = "",
|
|
3262
|
-
|
|
3260
|
+
classNameItem: n = "",
|
|
3263
3261
|
children: l,
|
|
3264
3262
|
withDividers: i = !1,
|
|
3265
|
-
|
|
3263
|
+
classNameDividerColor: d = "",
|
|
3266
3264
|
isDecimal: s = !1,
|
|
3267
|
-
isDisc:
|
|
3265
|
+
isDisc: p = !1
|
|
3268
3266
|
}) => /* @__PURE__ */ V("div", { className: "p-0 m-0", children: [
|
|
3269
3267
|
/* @__PURE__ */ o("p", { children: t }),
|
|
3270
|
-
/* @__PURE__ */ V("ul", { className: M("pl-10 list-none w-full", s ? "list-decimal" : "",
|
|
3268
|
+
/* @__PURE__ */ V("ul", { className: M("pl-10 list-none w-full", s ? "list-decimal" : "", p ? "list-disc" : "", r), children: [
|
|
3271
3269
|
e && e.map((f, x) => /* @__PURE__ */ o(
|
|
3272
|
-
|
|
3270
|
+
He,
|
|
3273
3271
|
{
|
|
3274
|
-
className: M("w-full", i && x !== e.length - 1 ? "border-b" : "",
|
|
3272
|
+
className: M("w-full", i && x !== e.length - 1 ? "border-b" : "", d !== "" && x !== e.length - 1 ? "border-" + d : "", n),
|
|
3275
3273
|
children: f.children
|
|
3276
3274
|
},
|
|
3277
3275
|
x
|
|
@@ -3283,12 +3281,12 @@ const Wt = ({
|
|
|
3283
3281
|
f.props.className,
|
|
3284
3282
|
"w-full",
|
|
3285
3283
|
i && x !== re.Children.count(l) - 1 ? "border-b" : "",
|
|
3286
|
-
|
|
3284
|
+
d !== "" && x !== re.Children.count(l) - 1 ? "border-" + d : ""
|
|
3287
3285
|
)
|
|
3288
3286
|
}) : f
|
|
3289
3287
|
)
|
|
3290
3288
|
] })
|
|
3291
|
-
] }),
|
|
3289
|
+
] }), He = ({ className: e, children: t }) => /* @__PURE__ */ o("li", { className: M(e), children: t }), se = {
|
|
3292
3290
|
default: {
|
|
3293
3291
|
container: "bg-white rounded-lg shadow-lg w-full max-w-lg p-6 focus:outline-none ",
|
|
3294
3292
|
title: "flex justify-between items-center mb-4",
|
|
@@ -3317,16 +3315,16 @@ const Wt = ({
|
|
|
3317
3315
|
body: "",
|
|
3318
3316
|
button: "px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 focus:outline-none focus:ring ring-blue-400"
|
|
3319
3317
|
}
|
|
3320
|
-
},
|
|
3318
|
+
}, mr = ({
|
|
3321
3319
|
isOpen: e,
|
|
3322
3320
|
variant: t = "default",
|
|
3323
3321
|
onClose: r,
|
|
3324
3322
|
title: n,
|
|
3325
3323
|
className: l,
|
|
3326
3324
|
clickOutsideCloses: i = !1,
|
|
3327
|
-
displayClosingX:
|
|
3325
|
+
displayClosingX: d = !0,
|
|
3328
3326
|
closeButtonText: s = "Close",
|
|
3329
|
-
continueButton:
|
|
3327
|
+
continueButton: p = !1,
|
|
3330
3328
|
continueButtonHandler: f,
|
|
3331
3329
|
continueButtonText: x = "Continue",
|
|
3332
3330
|
children: y
|
|
@@ -3342,17 +3340,17 @@ const Wt = ({
|
|
|
3342
3340
|
};
|
|
3343
3341
|
}
|
|
3344
3342
|
}, [r]), R(() => {
|
|
3345
|
-
var
|
|
3343
|
+
var N;
|
|
3346
3344
|
const a = (S) => {
|
|
3347
3345
|
S.key === "Escape" && e && r();
|
|
3348
3346
|
}, m = (S) => {
|
|
3349
|
-
var
|
|
3350
|
-
const E = (
|
|
3347
|
+
var Y;
|
|
3348
|
+
const E = (Y = w.current) == null ? void 0 : Y.querySelectorAll(
|
|
3351
3349
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
3352
3350
|
), j = E == null ? void 0 : E[0], H = E == null ? void 0 : E[E.length - 1];
|
|
3353
3351
|
S.key === "Tab" && E && (S.shiftKey && document.activeElement === j ? (S.preventDefault(), H == null || H.focus()) : !S.shiftKey && document.activeElement === H && (S.preventDefault(), j == null || j.focus()));
|
|
3354
3352
|
};
|
|
3355
|
-
return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown", a), window.addEventListener("keydown", m), (
|
|
3353
|
+
return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown", a), window.addEventListener("keydown", m), (N = v.current) == null || N.focus()) : document.body.style.overflow = "auto", () => {
|
|
3356
3354
|
window.removeEventListener("keydown", a), window.removeEventListener("keydown", m), document.body.style.overflow = "auto";
|
|
3357
3355
|
};
|
|
3358
3356
|
}, [e, r]), !e) return null;
|
|
@@ -3375,7 +3373,7 @@ const Wt = ({
|
|
|
3375
3373
|
children: [
|
|
3376
3374
|
/* @__PURE__ */ V("div", { className: M(se[t].title), children: [
|
|
3377
3375
|
/* @__PURE__ */ o("h2", { id: "modal-title", className: M("text-lg font-medium text-gray-900", se[t].titleHeading), children: n }),
|
|
3378
|
-
|
|
3376
|
+
d && /* @__PURE__ */ o(
|
|
3379
3377
|
"button",
|
|
3380
3378
|
{
|
|
3381
3379
|
onClick: r,
|
|
@@ -3399,7 +3397,7 @@ const Wt = ({
|
|
|
3399
3397
|
children: s
|
|
3400
3398
|
}
|
|
3401
3399
|
),
|
|
3402
|
-
|
|
3400
|
+
p && /* @__PURE__ */ o(
|
|
3403
3401
|
"button",
|
|
3404
3402
|
{
|
|
3405
3403
|
onClick: c,
|
|
@@ -3413,7 +3411,7 @@ const Wt = ({
|
|
|
3413
3411
|
)
|
|
3414
3412
|
}
|
|
3415
3413
|
);
|
|
3416
|
-
},
|
|
3414
|
+
}, pr = J(
|
|
3417
3415
|
({
|
|
3418
3416
|
className: e = "",
|
|
3419
3417
|
iconLeft: t,
|
|
@@ -3421,9 +3419,9 @@ const Wt = ({
|
|
|
3421
3419
|
iconRight: n,
|
|
3422
3420
|
iconRightSelected: l,
|
|
3423
3421
|
children: i,
|
|
3424
|
-
onClick:
|
|
3422
|
+
onClick: d,
|
|
3425
3423
|
selected: s = !1,
|
|
3426
|
-
...
|
|
3424
|
+
...p
|
|
3427
3425
|
}, f) => {
|
|
3428
3426
|
const [x, y] = A(), [w, v] = A(), [c, a] = A("bg-white");
|
|
3429
3427
|
return R(() => {
|
|
@@ -3438,10 +3436,10 @@ const Wt = ({
|
|
|
3438
3436
|
}, [e, c, s]), /* @__PURE__ */ V(
|
|
3439
3437
|
"button",
|
|
3440
3438
|
{
|
|
3441
|
-
onClick:
|
|
3439
|
+
onClick: d,
|
|
3442
3440
|
className: x,
|
|
3443
3441
|
ref: f,
|
|
3444
|
-
...
|
|
3442
|
+
...p,
|
|
3445
3443
|
children: [
|
|
3446
3444
|
t && /* @__PURE__ */ o("span", { className: "ml-6 mr-2.5 size-6", children: s && r ? r : t }),
|
|
3447
3445
|
/* @__PURE__ */ o("div", { className: w, children: i }),
|
|
@@ -3454,44 +3452,45 @@ const Wt = ({
|
|
|
3454
3452
|
({
|
|
3455
3453
|
className: e = "",
|
|
3456
3454
|
classNameChildren: t = "",
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3455
|
+
classNameSubHeader: r = "",
|
|
3456
|
+
iconLeft: n,
|
|
3457
|
+
iconRight: l,
|
|
3458
|
+
underline: i = !1,
|
|
3459
|
+
subHeader: d = !1,
|
|
3460
|
+
children: s,
|
|
3461
|
+
...p
|
|
3462
|
+
}, f) => {
|
|
3463
|
+
const [x, y] = A(""), w = "px-2 justify-start items-start gap-4 inline-flex w-full";
|
|
3465
3464
|
return R(() => {
|
|
3466
|
-
|
|
3467
|
-
}, [e,
|
|
3465
|
+
y(M(w, i ? "border-b-2 border-black" : "", e));
|
|
3466
|
+
}, [e, i]), /* @__PURE__ */ V("div", { className: M(x, e), children: [
|
|
3468
3467
|
/* @__PURE__ */ V("div", { className: "grow shrink basis-0 justify-start items-start gap-2 flex", children: [
|
|
3469
|
-
|
|
3468
|
+
n && n,
|
|
3470
3469
|
/* @__PURE__ */ V("div", { className: "flex-col justify-start items-start inline-flex w-full", children: [
|
|
3471
|
-
/* @__PURE__ */ o("div", { className: M("self-stretch text-[#07192d] text-[40px] font-normal font-['Arial'] leading-[48px] pb-1", t), children:
|
|
3472
|
-
|
|
3470
|
+
/* @__PURE__ */ o("div", { className: M("self-stretch text-[#07192d] text-[40px] font-normal font-['Arial'] leading-[48px] pb-1", t), children: s }),
|
|
3471
|
+
d && /* @__PURE__ */ o("div", { className: M("text-[#07192d] text-xl font-normal font-['Arial'] leading-[30px]", r), children: d })
|
|
3473
3472
|
] })
|
|
3474
3473
|
] }),
|
|
3475
|
-
|
|
3474
|
+
l && l
|
|
3476
3475
|
] });
|
|
3477
3476
|
}
|
|
3478
3477
|
), Zt = "outline-none outline-offset-0 flex justify-between items-center w-[292px] md:w-[343px] lg:w-[600px] h-14 border focus:outline-4 focus:outline-[#fa89f1] shadow-sm px-4 py-2 bg-white text-lg font-medium text-gray-700 hover:bg-gray-50 border-[#b3b3b3]", ze = {
|
|
3479
3478
|
default: "hover:bg-gray-200 text-blackhover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive h-12 mt-1 disabled:border-dha-mc-secondary-border disabled:border-2",
|
|
3480
3479
|
fill: "hover:bg-[#0c2c8e] text-base text-white bg-[#092068] hover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive h-12 mt-1 disabled:border-dha-mc-secondary-border disabled:border-2 py-3 pl-[15px] pr-[9px] ",
|
|
3481
3480
|
outline: "border-dha-mc-true-blue bg-white border-2 text-dha-mc-true-blue disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive"
|
|
3482
|
-
},
|
|
3481
|
+
}, xr = ({
|
|
3483
3482
|
className: e,
|
|
3484
3483
|
label: t,
|
|
3485
3484
|
options: r,
|
|
3486
3485
|
optionsLabel: n,
|
|
3487
3486
|
disabled: l = !1,
|
|
3488
3487
|
variant: i = "default",
|
|
3489
|
-
setSelectedOption:
|
|
3488
|
+
setSelectedOption: d,
|
|
3490
3489
|
error: s = !1,
|
|
3491
|
-
width:
|
|
3490
|
+
width: p = "",
|
|
3492
3491
|
...f
|
|
3493
3492
|
}) => {
|
|
3494
|
-
const x = U(null), y = U(null), w = U(null), [v, c] = A(!1), [a, m] = A(!1), [
|
|
3493
|
+
const x = U(null), y = U(null), w = U(null), [v, c] = A(!1), [a, m] = A(!1), [N, S] = A(n || "Options"), [E, j] = A(null), H = U("bottom-[60px]"), [Y, K] = A("");
|
|
3495
3494
|
R(() => {
|
|
3496
3495
|
if (y.current) {
|
|
3497
3496
|
const b = y.current.getBoundingClientRect(), g = Math.floor(b.height) + 2;
|
|
@@ -3502,8 +3501,8 @@ const Wt = ({
|
|
|
3502
3501
|
if (x.current && w.current) {
|
|
3503
3502
|
const b = x.current.getBoundingClientRect(), g = w.current.offsetHeight;
|
|
3504
3503
|
console.log("dropdownHeight: ", g);
|
|
3505
|
-
const
|
|
3506
|
-
console.log("windowHeight: ",
|
|
3504
|
+
const u = window.innerHeight, C = document.body.offsetHeight, h = u > C ? C : u;
|
|
3505
|
+
console.log("windowHeight: ", u), console.log("documentHeight: ", C), console.log("calculated containerHeight: ", h), console.log("buttonRect.bottom: ", b.bottom), h - b.bottom < g && b.top > g ? m(!0) : m(!1);
|
|
3507
3506
|
}
|
|
3508
3507
|
}, G = U([]);
|
|
3509
3508
|
R(() => {
|
|
@@ -3521,11 +3520,11 @@ const Wt = ({
|
|
|
3521
3520
|
function g(C) {
|
|
3522
3521
|
v && C.key === "Escape" && c(!1);
|
|
3523
3522
|
}
|
|
3524
|
-
function
|
|
3523
|
+
function u(C) {
|
|
3525
3524
|
v && x.current && !x.current.contains(C.target) && c(!1);
|
|
3526
3525
|
}
|
|
3527
|
-
return document.addEventListener("mousedown", b), document.addEventListener("touchend", b), document.addEventListener("keydown", g), document.addEventListener("focusin",
|
|
3528
|
-
document.removeEventListener("mousedown", b), document.removeEventListener("touchend", b), document.removeEventListener("keydown", g), document.removeEventListener("focusin",
|
|
3526
|
+
return document.addEventListener("mousedown", b), document.addEventListener("touchend", b), document.addEventListener("keydown", g), document.addEventListener("focusin", u), () => {
|
|
3527
|
+
document.removeEventListener("mousedown", b), document.removeEventListener("touchend", b), document.removeEventListener("keydown", g), document.removeEventListener("focusin", u);
|
|
3529
3528
|
};
|
|
3530
3529
|
}, [v]), R(() => {
|
|
3531
3530
|
v && q();
|
|
@@ -3538,14 +3537,14 @@ const Wt = ({
|
|
|
3538
3537
|
switch (b.key) {
|
|
3539
3538
|
case "ArrowDown":
|
|
3540
3539
|
b.preventDefault(), k((g) => {
|
|
3541
|
-
const
|
|
3542
|
-
return j(
|
|
3540
|
+
const u = (g + 1) % r.length;
|
|
3541
|
+
return j(u), u;
|
|
3543
3542
|
});
|
|
3544
3543
|
break;
|
|
3545
3544
|
case "ArrowUp":
|
|
3546
3545
|
b.preventDefault(), k((g) => {
|
|
3547
|
-
const
|
|
3548
|
-
return j(
|
|
3546
|
+
const u = (g - 1 + r.length) % r.length;
|
|
3547
|
+
return j(u), u;
|
|
3549
3548
|
});
|
|
3550
3549
|
break;
|
|
3551
3550
|
case "Home":
|
|
@@ -3573,19 +3572,19 @@ const Wt = ({
|
|
|
3573
3572
|
className: M(
|
|
3574
3573
|
Zt,
|
|
3575
3574
|
ze[i] || ze.default,
|
|
3576
|
-
|
|
3575
|
+
Y,
|
|
3577
3576
|
e,
|
|
3578
|
-
|
|
3577
|
+
p,
|
|
3579
3578
|
v && a && "rounded-b-lg" || v && !a && "rounded-t-lg" || "rounded-lg"
|
|
3580
3579
|
),
|
|
3581
|
-
"aria-label": "Select options - " +
|
|
3580
|
+
"aria-label": "Select options - " + N,
|
|
3582
3581
|
"aria-disabled": l,
|
|
3583
3582
|
"aria-expanded": v,
|
|
3584
3583
|
"aria-haspopup": "listbox",
|
|
3585
3584
|
disabled: l,
|
|
3586
3585
|
tabIndex: 0,
|
|
3587
3586
|
children: [
|
|
3588
|
-
|
|
3587
|
+
N,
|
|
3589
3588
|
/* @__PURE__ */ o(
|
|
3590
3589
|
"svg",
|
|
3591
3590
|
{
|
|
@@ -3610,7 +3609,7 @@ const Wt = ({
|
|
|
3610
3609
|
onKeyDown: W,
|
|
3611
3610
|
className: M(
|
|
3612
3611
|
"absolute w-[292px] md:w-[343px] lg:w-[600px] shadow-lg bg-white ring-1 ring-white ring-opacity-5 focus:outline-none z-10",
|
|
3613
|
-
|
|
3612
|
+
p,
|
|
3614
3613
|
v && a && "rounded-t-lg pt-1" || v && !a && "rounded-b-lg pb-1",
|
|
3615
3614
|
a && H.current
|
|
3616
3615
|
),
|
|
@@ -3619,17 +3618,17 @@ const Wt = ({
|
|
|
3619
3618
|
/* @__PURE__ */ o(
|
|
3620
3619
|
"button",
|
|
3621
3620
|
{
|
|
3622
|
-
ref: (
|
|
3621
|
+
ref: (u) => G.current[g] = u,
|
|
3623
3622
|
className: `block w-full px-4 py-2 text-left text-sm text-gray-700
|
|
3624
3623
|
hover:bg-[#092068]/20 focus:outline-none focus:bg-[#092068]/20`,
|
|
3625
3624
|
role: "option",
|
|
3626
3625
|
"aria-selected": E === g,
|
|
3627
3626
|
"aria-label": "option " + b.name,
|
|
3628
3627
|
onClick: () => {
|
|
3629
|
-
j(g), S(b.name),
|
|
3628
|
+
j(g), S(b.name), d(b.value || b.name), c(!1);
|
|
3630
3629
|
},
|
|
3631
|
-
onKeyDown: (
|
|
3632
|
-
|
|
3630
|
+
onKeyDown: (u) => {
|
|
3631
|
+
u.key === "Enter" || u.code === "Enter" || u.key === " " ? (j(g), S(b.name), d(b.value || b.name), c(!1)) : u.key === "Escape" && c(!1);
|
|
3633
3632
|
},
|
|
3634
3633
|
children: b.name
|
|
3635
3634
|
},
|
|
@@ -3662,7 +3661,7 @@ const Wt = ({
|
|
|
3662
3661
|
)
|
|
3663
3662
|
);
|
|
3664
3663
|
qt.displayName = "Card";
|
|
3665
|
-
const
|
|
3664
|
+
const vr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
3666
3665
|
"div",
|
|
3667
3666
|
{
|
|
3668
3667
|
role: "presentation",
|
|
@@ -3671,7 +3670,7 @@ const xr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
|
3671
3670
|
e
|
|
3672
3671
|
)
|
|
3673
3672
|
}
|
|
3674
|
-
) : /* @__PURE__ */ V(
|
|
3673
|
+
) : /* @__PURE__ */ V(pe, { children: [
|
|
3675
3674
|
/* @__PURE__ */ o("div", { className: "basis-full h-0" }),
|
|
3676
3675
|
/* @__PURE__ */ o(
|
|
3677
3676
|
"div",
|
|
@@ -3684,7 +3683,7 @@ const xr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
|
3684
3683
|
}
|
|
3685
3684
|
),
|
|
3686
3685
|
/* @__PURE__ */ o("div", { className: "basis-full h-0" })
|
|
3687
|
-
] }),
|
|
3686
|
+
] }), wr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
3688
3687
|
"div",
|
|
3689
3688
|
{
|
|
3690
3689
|
role: "presentation",
|
|
@@ -3693,7 +3692,7 @@ const xr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
|
3693
3692
|
e
|
|
3694
3693
|
)
|
|
3695
3694
|
}
|
|
3696
|
-
) : /* @__PURE__ */ V(
|
|
3695
|
+
) : /* @__PURE__ */ V(pe, { children: [
|
|
3697
3696
|
/* @__PURE__ */ o("div", { className: "basis-full h-0" }),
|
|
3698
3697
|
/* @__PURE__ */ o(
|
|
3699
3698
|
"div",
|
|
@@ -3706,7 +3705,7 @@ const xr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
|
3706
3705
|
}
|
|
3707
3706
|
),
|
|
3708
3707
|
/* @__PURE__ */ o("div", { className: "basis-full h-0" })
|
|
3709
|
-
] }),
|
|
3708
|
+
] }), yr = ({ className: e = "" }) => /* @__PURE__ */ o("div", { role: "presentation", className: M("rounded-lg bg-slate-300 grow h-24 my-1 mx-2", e) }), kr = ({ className: e = "" }) => /* @__PURE__ */ o("div", { role: "presentation", className: "basis-full h-0" }), Jt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='clock'%3e%3cpath%20id='Vector'%20d='M16.0413%2010.5C16.0413%2013.8367%2013.3364%2016.5416%209.99967%2016.5416C6.66295%2016.5416%203.95801%2013.8367%203.95801%2010.5C3.95801%207.16326%206.66295%204.45831%209.99967%204.45831C13.3364%204.45831%2016.0413%207.16326%2016.0413%2010.5Z'%20stroke='%23713F12'%20stroke-width='1.5'/%3e%3cpath%20id='Vector_2'%20d='M10%207.16669V10.5L11.6667%2012.1667'%20stroke='%23713F12'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e", Qt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='check'%3e%3cpath%20id='Vector%2051'%20d='M4.16699%2011.3333L8.33366%2015.5L15.8337%205.5'%20stroke='%2314532D'%20stroke-width='1.75'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e", Xt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M14.375%206.125L5.625%2014.875'%20stroke='%237F1D1D'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M5.625%206.125L14.375%2014.875'%20stroke='%237F1D1D'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e", we = [
|
|
3710
3709
|
{
|
|
3711
3710
|
variant: "available",
|
|
3712
3711
|
classes: "h-[45px] px-4 py-3 bg-green-50 rounded-[100px] border border-green-700 justify-center items-center gap-2 inline-flex",
|
|
@@ -3725,30 +3724,30 @@ const xr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
|
3725
3724
|
imgDivClasses: "w-5 h-5 relative overflow-hidden",
|
|
3726
3725
|
childClasses: "text-red-900 text-lg font-normal font-[`Arial`]"
|
|
3727
3726
|
}
|
|
3728
|
-
],
|
|
3727
|
+
], Cr = J(
|
|
3729
3728
|
({
|
|
3730
3729
|
variant: e = "available",
|
|
3731
3730
|
className: t,
|
|
3732
3731
|
image: r,
|
|
3733
|
-
|
|
3734
|
-
|
|
3732
|
+
classNameChild: n,
|
|
3733
|
+
classNameImage: l,
|
|
3735
3734
|
children: i,
|
|
3736
|
-
...
|
|
3735
|
+
...d
|
|
3737
3736
|
}, s) => {
|
|
3738
|
-
const [
|
|
3737
|
+
const [p, f] = A(), [x, y] = A(), [w, v] = A();
|
|
3739
3738
|
return R(() => {
|
|
3740
3739
|
var c, a, m;
|
|
3741
3740
|
f(M(
|
|
3742
|
-
(c = we.find((
|
|
3741
|
+
(c = we.find((N) => N.variant === e)) == null ? void 0 : c.classes,
|
|
3743
3742
|
t
|
|
3744
3743
|
)), v(M(
|
|
3745
|
-
(a = we.find((
|
|
3744
|
+
(a = we.find((N) => N.variant === e)) == null ? void 0 : a.childClasses,
|
|
3746
3745
|
n
|
|
3747
3746
|
)), y(M(
|
|
3748
|
-
(m = we.find((
|
|
3747
|
+
(m = we.find((N) => N.variant === e)) == null ? void 0 : m.imgDivClasses,
|
|
3749
3748
|
l
|
|
3750
3749
|
));
|
|
3751
|
-
}, [e, t, n, l]), /* @__PURE__ */ V("div", { className:
|
|
3750
|
+
}, [e, t, n, l]), /* @__PURE__ */ V("div", { className: p, ref: s, children: [
|
|
3752
3751
|
/* @__PURE__ */ o("div", { className: x, children: r || // if we have an image prop - display
|
|
3753
3752
|
(e === "available" ? (
|
|
3754
3753
|
// else if we are variant 'available' ...
|
|
@@ -3784,8 +3783,8 @@ const xr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
|
3784
3783
|
}
|
|
3785
3784
|
};
|
|
3786
3785
|
var er = /* @__PURE__ */ ((e) => (e.Right = "right", e.Left = "left", e.IconOnly = "iconOnly", e.None = "undefined", e))(er || {});
|
|
3787
|
-
const
|
|
3788
|
-
const [l, i] = A(0), [
|
|
3786
|
+
const Mr = ({ variant: e = "default", tabs: t, className: r, classNameContainer: n }) => {
|
|
3787
|
+
const [l, i] = A(0), [d, s] = A(!1), [p, f] = A(""), x = U([]);
|
|
3789
3788
|
e === "" && (e = "default");
|
|
3790
3789
|
const y = Me((c) => {
|
|
3791
3790
|
var a;
|
|
@@ -3826,9 +3825,9 @@ const Cr = ({ variant: e = "default", tabs: t, className: r, containerClassName:
|
|
|
3826
3825
|
onClick: () => i(a),
|
|
3827
3826
|
onKeyDown: (m) => w(m, a),
|
|
3828
3827
|
children: [
|
|
3829
|
-
c.iconPosition === "left" && c.activeIcon && /* @__PURE__ */ o("span", { className: "icon-left mr-3 size-6", children: l === a ?
|
|
3830
|
-
c.iconPosition === "iconOnly" && c.activeIcon ? /* @__PURE__ */ o("span", { className: "size-6", children: l === a ?
|
|
3831
|
-
c.iconPosition === "right" && c.activeIcon && /* @__PURE__ */ o("span", { className: "icon-right ml-3 size-6", children: l === a ?
|
|
3828
|
+
c.iconPosition === "left" && c.activeIcon && /* @__PURE__ */ o("span", { className: "icon-left mr-3 size-6", children: l === a ? d && p === c.id ? c.inactiveIcon : c.activeIcon : c.inactiveIcon }),
|
|
3829
|
+
c.iconPosition === "iconOnly" && c.activeIcon ? /* @__PURE__ */ o("span", { className: "size-6", children: l === a ? d && p === c.id ? c.inactiveIcon : c.activeIcon : c.inactiveIcon }) : /* @__PURE__ */ o("span", { className: "button-text", children: c.label }),
|
|
3830
|
+
c.iconPosition === "right" && c.activeIcon && /* @__PURE__ */ o("span", { className: "icon-right ml-3 size-6", children: l === a ? d && p === c.id ? c.inactiveIcon : c.activeIcon : c.inactiveIcon })
|
|
3832
3831
|
]
|
|
3833
3832
|
},
|
|
3834
3833
|
c.id
|
|
@@ -3868,7 +3867,7 @@ const Cr = ({ variant: e = "default", tabs: t, className: r, containerClassName:
|
|
|
3868
3867
|
buttonClasses: "translate-x-0",
|
|
3869
3868
|
toggledButtonClasses: "translate-x-8 lg:translate-x-6"
|
|
3870
3869
|
}
|
|
3871
|
-
],
|
|
3870
|
+
], $r = J(
|
|
3872
3871
|
({
|
|
3873
3872
|
defaultChecked: e = !1,
|
|
3874
3873
|
disabled: t = !1,
|
|
@@ -3876,12 +3875,12 @@ const Cr = ({ variant: e = "default", tabs: t, className: r, containerClassName:
|
|
|
3876
3875
|
label: n,
|
|
3877
3876
|
className: l,
|
|
3878
3877
|
classNameButton: i,
|
|
3879
|
-
variant:
|
|
3878
|
+
variant: d = "default",
|
|
3880
3879
|
type: s = "button",
|
|
3881
|
-
children:
|
|
3880
|
+
children: p,
|
|
3882
3881
|
...f
|
|
3883
3882
|
}, x) => {
|
|
3884
|
-
var c, a, m,
|
|
3883
|
+
var c, a, m, N;
|
|
3885
3884
|
const [y, w] = A(e);
|
|
3886
3885
|
return /* @__PURE__ */ o(
|
|
3887
3886
|
"button",
|
|
@@ -3899,7 +3898,7 @@ const Cr = ({ variant: e = "default", tabs: t, className: r, containerClassName:
|
|
|
3899
3898
|
"aria-label": n || `Toggle ${y ? "on" : "off"}`,
|
|
3900
3899
|
className: M(
|
|
3901
3900
|
`${tr}
|
|
3902
|
-
${y ? (c = me.find((S) => S.variant ===
|
|
3901
|
+
${y ? (c = me.find((S) => S.variant === d)) == null ? void 0 : c.toggledClasses : (a = me.find((S) => S.variant === d)) == null ? void 0 : a.classes}`,
|
|
3903
3902
|
l
|
|
3904
3903
|
),
|
|
3905
3904
|
children: /* @__PURE__ */ o(
|
|
@@ -3907,7 +3906,7 @@ const Cr = ({ variant: e = "default", tabs: t, className: r, containerClassName:
|
|
|
3907
3906
|
{
|
|
3908
3907
|
className: M(
|
|
3909
3908
|
`${rr}
|
|
3910
|
-
${y ? (m = me.find((S) => S.variant ===
|
|
3909
|
+
${y ? (m = me.find((S) => S.variant === d)) == null ? void 0 : m.toggledButtonClasses : (N = me.find((S) => S.variant === d)) == null ? void 0 : N.buttonClasses}`,
|
|
3911
3910
|
i
|
|
3912
3911
|
)
|
|
3913
3912
|
}
|
|
@@ -3920,12 +3919,12 @@ const Cr = ({ variant: e = "default", tabs: t, className: r, containerClassName:
|
|
|
3920
3919
|
className: e,
|
|
3921
3920
|
appName: t,
|
|
3922
3921
|
image: r,
|
|
3923
|
-
|
|
3922
|
+
classNameImage: n = "",
|
|
3924
3923
|
clickOutsideCloses: l,
|
|
3925
3924
|
menu: i = !1,
|
|
3926
|
-
|
|
3925
|
+
classNameMenu: d = "",
|
|
3927
3926
|
version: s,
|
|
3928
|
-
menuItems:
|
|
3927
|
+
menuItems: p,
|
|
3929
3928
|
children: f,
|
|
3930
3929
|
...x
|
|
3931
3930
|
}, y) => {
|
|
@@ -3940,8 +3939,8 @@ const Cr = ({ variant: e = "default", tabs: t, className: r, containerClassName:
|
|
|
3940
3939
|
};
|
|
3941
3940
|
}
|
|
3942
3941
|
}, [c]), console.log("menu: ", i), console.log("showMenu: ", v), // eslint-disable-next-line react/jsx-no-useless-fragment
|
|
3943
|
-
/* @__PURE__ */ V(
|
|
3944
|
-
i && /* @__PURE__ */ o("button", { className: M("size-8 mb-4",
|
|
3942
|
+
/* @__PURE__ */ V(pe, { children: [
|
|
3943
|
+
i && /* @__PURE__ */ o("button", { className: M("size-8 mb-4", d), onClick: () => c(!v), children: /* @__PURE__ */ o(nr, { classes: "fill-slate-500 hover:fill-black size-8" }) }),
|
|
3945
3944
|
/* @__PURE__ */ V(
|
|
3946
3945
|
"div",
|
|
3947
3946
|
{
|
|
@@ -3958,8 +3957,8 @@ const Cr = ({ variant: e = "default", tabs: t, className: r, containerClassName:
|
|
|
3958
3957
|
/* @__PURE__ */ o("div", { className: "w-16 h-16 mx-auto", children: /* @__PURE__ */ o("img", { src: r, className: M("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1", n), alt: "application icon" }) }),
|
|
3959
3958
|
/* @__PURE__ */ o("div", { className: "text-center mt-2", children: t }),
|
|
3960
3959
|
/* @__PURE__ */ o("div", { className: "[204px] mt-3 h-px bg-[#d9d9d9]" }),
|
|
3961
|
-
/* @__PURE__ */ o(Wt, { className: "pl-6 mt-6", children:
|
|
3962
|
-
|
|
3960
|
+
/* @__PURE__ */ o(Wt, { className: "pl-6 mt-6", children: p.map((a, m) => /* @__PURE__ */ o(
|
|
3961
|
+
He,
|
|
3963
3962
|
{
|
|
3964
3963
|
className: "pb-4",
|
|
3965
3964
|
children: a.target && /* @__PURE__ */ o(Re, { to: a.target, children: a.children })
|
|
@@ -3975,31 +3974,46 @@ const Cr = ({ variant: e = "default", tabs: t, className: r, containerClassName:
|
|
|
3975
3974
|
), nr = ({ classes: e = "fill-green-600" }) => /* @__PURE__ */ V("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", className: e, children: [
|
|
3976
3975
|
/* @__PURE__ */ o("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
3977
3976
|
/* @__PURE__ */ o("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })
|
|
3978
|
-
] })
|
|
3977
|
+
] }), or = ({ className: e, children: t, skipTo: r }) => {
|
|
3978
|
+
let n = null;
|
|
3979
|
+
const l = (i) => {
|
|
3980
|
+
i.preventDefault();
|
|
3981
|
+
const d = document.querySelector(r);
|
|
3982
|
+
d && (d.tabIndex = -1, d.focus(), n = setTimeout(() => d.removeAttribute("tabindex"), 1e3));
|
|
3983
|
+
};
|
|
3984
|
+
return R(() => () => {
|
|
3985
|
+
n && clearTimeout(n);
|
|
3986
|
+
}, [n]), Le(t, { onClick: l, className: e });
|
|
3987
|
+
};
|
|
3988
|
+
or.defaultProps = {
|
|
3989
|
+
className: "skip-link",
|
|
3990
|
+
skipTo: "main:first-of-type"
|
|
3991
|
+
};
|
|
3979
3992
|
export {
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3993
|
+
ir as Accordion,
|
|
3994
|
+
cr as AccordionParent,
|
|
3995
|
+
dr as Badge,
|
|
3996
|
+
gr as Breadcrumbs,
|
|
3997
|
+
ur as Button,
|
|
3998
|
+
Yt as Card,
|
|
3999
|
+
fr as CharacterCounter,
|
|
4000
|
+
br as DatePicker,
|
|
3988
4001
|
er as IconPosition,
|
|
3989
4002
|
Ut as Input,
|
|
3990
4003
|
Wt as List,
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
4004
|
+
He as ListItem,
|
|
4005
|
+
mr as Modal,
|
|
4006
|
+
pr as Pill,
|
|
3994
4007
|
hr as SectionHeader,
|
|
3995
|
-
|
|
4008
|
+
xr as Select,
|
|
3996
4009
|
Nr as SideBarNav,
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4010
|
+
vr as SkelCircle,
|
|
4011
|
+
wr as SkelLine,
|
|
4012
|
+
kr as SkelRow,
|
|
4013
|
+
yr as SkelSection,
|
|
4001
4014
|
qt as Skeleton,
|
|
4002
|
-
|
|
4003
|
-
Cr as
|
|
4004
|
-
Mr as
|
|
4015
|
+
or as SkipLink,
|
|
4016
|
+
Cr as Status,
|
|
4017
|
+
Mr as Tabs,
|
|
4018
|
+
$r as Toggle
|
|
4005
4019
|
};
|