@knitify/vue 0.0.9 → 1.0.0

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.
Files changed (90) hide show
  1. package/README.md +86 -0
  2. package/dist/index.es.js +2586 -175
  3. package/dist/index.umd.js +1 -1
  4. package/dist/types/components/Accordion/KAccordion.vue.d.ts +11 -0
  5. package/dist/types/components/Accordion/KAccordionItem.vue.d.ts +22 -0
  6. package/dist/types/components/Accordion/keys.d.ts +2 -0
  7. package/dist/types/components/Accordion/types.d.ts +37 -0
  8. package/dist/types/components/Alert/KAlert.vue.d.ts +11 -0
  9. package/dist/types/components/Alert/types.d.ts +18 -0
  10. package/dist/types/components/Avatar/KAvatar.vue.d.ts +11 -0
  11. package/dist/types/components/Avatar/KAvatarGroup.vue.d.ts +11 -0
  12. package/dist/types/components/Avatar/types.d.ts +42 -0
  13. package/dist/types/components/Breadcrumb/KBreadcrumb.vue.d.ts +11 -0
  14. package/dist/types/components/Breadcrumb/KBreadcrumbItem.vue.d.ts +11 -0
  15. package/dist/types/components/Breadcrumb/types.d.ts +23 -0
  16. package/dist/types/components/Button/types.d.ts +15 -4
  17. package/dist/types/components/Calendar/KCalendar.vue.d.ts +34 -0
  18. package/dist/types/components/Calendar/types.d.ts +26 -0
  19. package/dist/types/components/Card/KCard.vue.d.ts +11 -0
  20. package/dist/types/components/Card/types.d.ts +26 -0
  21. package/dist/types/components/Chat/KChat.vue.d.ts +14 -0
  22. package/dist/types/components/Chat/KChatMessage.vue.d.ts +11 -0
  23. package/dist/types/components/Chat/KChatMessages.vue.d.ts +11 -0
  24. package/dist/types/components/Chat/KChatPrompt.vue.d.ts +30 -0
  25. package/dist/types/components/Chat/KChatShimmer.vue.d.ts +11 -0
  26. package/dist/types/components/Chat/keys.d.ts +2 -0
  27. package/dist/types/components/Chat/types.d.ts +50 -0
  28. package/dist/types/components/Checkbox/KCheckbox.vue.d.ts +20 -0
  29. package/dist/types/components/Checkbox/types.d.ts +23 -0
  30. package/dist/types/components/Collapse/KCollapse.vue.d.ts +32 -0
  31. package/dist/types/components/Collapse/types.d.ts +32 -0
  32. package/dist/types/components/Collapse/useCollapseSync.d.ts +29 -0
  33. package/dist/types/components/Drawer/KDrawer.vue.d.ts +34 -0
  34. package/dist/types/components/Drawer/types.d.ts +54 -0
  35. package/dist/types/components/Dropdown/KDropdown.vue.d.ts +28 -0
  36. package/dist/types/components/Dropdown/KDropdownItem.vue.d.ts +13 -0
  37. package/dist/types/components/Dropdown/KDropdownMenu.vue.d.ts +13 -0
  38. package/dist/types/components/Dropdown/types.d.ts +34 -0
  39. package/dist/types/components/FileTree/KFileTree.vue.d.ts +34 -0
  40. package/dist/types/components/FileTree/KFileTreeNode.vue.d.ts +20 -0
  41. package/dist/types/components/FileTree/types.d.ts +39 -0
  42. package/dist/types/components/Grid/KGrid.vue.d.ts +11 -0
  43. package/dist/types/components/Grid/KGridColumn.vue.d.ts +11 -0
  44. package/dist/types/components/Grid/KGridRow.vue.d.ts +19 -0
  45. package/dist/types/components/Grid/types.d.ts +41 -0
  46. package/dist/types/components/Grid/useGrid.d.ts +8 -0
  47. package/dist/types/components/Icon/types.d.ts +1 -1
  48. package/dist/types/components/Input/KInput.vue.d.ts +3 -1
  49. package/dist/types/components/Input/types.d.ts +8 -0
  50. package/dist/types/components/MenuList/KMenuList.vue.d.ts +11 -0
  51. package/dist/types/components/MenuList/KMenuListItem.vue.d.ts +11 -0
  52. package/dist/types/components/MenuList/types.d.ts +20 -0
  53. package/dist/types/components/Modal/KModal.vue.d.ts +36 -0
  54. package/dist/types/components/Modal/types.d.ts +57 -0
  55. package/dist/types/components/NotificationList/KNotificationList.vue.d.ts +11 -0
  56. package/dist/types/components/NotificationList/KNotificationListItem.vue.d.ts +11 -0
  57. package/dist/types/components/NotificationList/types.d.ts +36 -0
  58. package/dist/types/components/Popover/KPopover.vue.d.ts +28 -0
  59. package/dist/types/components/Popover/types.d.ts +24 -0
  60. package/dist/types/components/Popover/useOverlaySync.d.ts +35 -0
  61. package/dist/types/components/Progress/KProgress.vue.d.ts +11 -0
  62. package/dist/types/components/Progress/types.d.ts +19 -0
  63. package/dist/types/components/Radio/KRadio.vue.d.ts +20 -0
  64. package/dist/types/components/Radio/types.d.ts +20 -0
  65. package/dist/types/components/Select/KSelect.vue.d.ts +22 -0
  66. package/dist/types/components/Select/types.d.ts +30 -0
  67. package/dist/types/components/Table/KTable.vue.d.ts +11 -0
  68. package/dist/types/components/Table/types.d.ts +16 -0
  69. package/dist/types/components/Tabs/KTab.vue.d.ts +13 -0
  70. package/dist/types/components/Tabs/KTabPanel.vue.d.ts +13 -0
  71. package/dist/types/components/Tabs/KTabs.vue.d.ts +25 -0
  72. package/dist/types/components/Tabs/types.d.ts +35 -0
  73. package/dist/types/components/Toast/types.d.ts +20 -0
  74. package/dist/types/components/Toast/useToast.d.ts +20 -0
  75. package/dist/types/components/Toggle/KToggle.vue.d.ts +20 -0
  76. package/dist/types/components/Toggle/types.d.ts +8 -0
  77. package/dist/types/components/Tooltip/KTooltip.vue.d.ts +45 -0
  78. package/dist/types/components/Tooltip/types.d.ts +18 -0
  79. package/dist/types/components/Workspace/KWorkspace.vue.d.ts +30 -0
  80. package/dist/types/components/Workspace/types.d.ts +29 -0
  81. package/dist/types/components/index.d.ts +44 -0
  82. package/dist/types/components/types.d.ts +27 -0
  83. package/dist/types/types.d.ts +1 -0
  84. package/package.json +9 -5
  85. package/dist/types/stories/KBadge.stories.d.ts +0 -104
  86. package/dist/types/stories/KButton.stories.d.ts +0 -117
  87. package/dist/types/stories/KContainer.stories.d.ts +0 -84
  88. package/dist/types/stories/KInput.stories.d.ts +0 -172
  89. package/dist/types/stories/KNavbar.stories.d.ts +0 -67
  90. package/dist/types/stories/KNavbarMenu.stories.d.ts +0 -99
package/dist/index.es.js CHANGED
@@ -1,95 +1,640 @@
1
- import { defineComponent as K, computed as b, openBlock as o, createBlock as m, resolveDynamicComponent as V, normalizeClass as l, withCtx as h, renderSlot as u, createElementBlock as s, createElementVNode as c, useModel as k, useSlots as x, createCommentVNode as f, withDirectives as j, vModelDynamic as z, mergeModels as B, resolveComponent as p, Fragment as O, renderList as A, createVNode as g, unref as D, withModifiers as L, createTextVNode as T, toDisplayString as C } from "vue";
2
- import { useLink as w, RouterLink as U } from "vue-router";
3
- function N(e) {
1
+ import { defineComponent as C, useId as ee, computed as u, provide as de, openBlock as i, createElementBlock as r, normalizeClass as h, renderSlot as v, watch as L, onBeforeUnmount as X, useModel as M, inject as te, useTemplateRef as j, createElementVNode as y, withKeys as oe, withModifiers as Y, unref as E, createTextVNode as O, toDisplayString as D, mergeModels as T, useSlots as N, createCommentVNode as S, normalizeStyle as W, createBlock as G, resolveDynamicComponent as re, withCtx as F, toRef as Ae, onMounted as Q, onUnmounted as ye, useAttrs as ae, mergeProps as H, withDirectives as ie, vModelText as Te, vModelDynamic as Le, nextTick as Ie, createVNode as U, ref as Me, Transition as De, Teleport as Ke, resolveComponent as ge, Fragment as le, renderList as se, createSlots as ke, vModelCheckbox as ze, cloneVNode as Ee, h as Ne } from "vue";
2
+ import R from "@knitify/core";
3
+ import { useLink as ue, RouterLink as Oe } from "vue-router";
4
+ const ce = /* @__PURE__ */ Symbol("KAccordionGroup"), fe = /* @__PURE__ */ Symbol("KChatBusy"), je = /* @__PURE__ */ C({
5
+ __name: "KAccordion",
6
+ props: {
7
+ exclusive: { type: Boolean, default: !1 },
8
+ group: {},
9
+ ghost: { type: Boolean, default: !1 }
10
+ },
11
+ setup(e) {
12
+ const l = ee(), a = u(() => e.group ? e.group : e.exclusive ? `accordion-${l}` : void 0);
13
+ de(ce, a);
14
+ const t = u(() => [
15
+ "KAccordion",
16
+ e.ghost && "KAccordion--ghost"
17
+ ]);
18
+ return (n, s) => (i(), r("div", {
19
+ class: h(t.value)
20
+ }, [
21
+ v(n.$slots, "default")
22
+ ], 2));
23
+ }
24
+ }), Ve = ["collapse", "collapsed", "expand", "expanded"];
25
+ function $e({
26
+ direction: e,
27
+ element: l,
28
+ expanded: a,
29
+ horizontal: t,
30
+ onEvent: n
31
+ }) {
32
+ let s, d = !1;
33
+ function o() {
34
+ return !s && l.value && (s = new R.modules.Collapse(l.value, {
35
+ horizontal: t?.() ?? !1,
36
+ direction: e?.() ?? "right"
37
+ })), s;
38
+ }
39
+ L(
40
+ () => [t?.(), e?.()],
41
+ () => {
42
+ s = void 0;
43
+ }
44
+ ), L(
45
+ a,
46
+ (c) => {
47
+ if (c === d)
48
+ return;
49
+ const K = o();
50
+ K && (d = c, c ? K.expand() : K.collapse());
51
+ },
52
+ { flush: "post" }
53
+ );
54
+ const m = Ve.map((c) => {
55
+ const K = (B) => {
56
+ B.target === l.value && (c === "expand" && (d = !0, a.value = !0), c === "collapse" && (d = !1, a.value = !1), n?.(c));
57
+ };
58
+ return [`kt.${c}`, K];
59
+ });
60
+ return L(
61
+ l,
62
+ (c, K, B) => {
63
+ if (s = void 0, !!c) {
64
+ for (const [$, f] of m)
65
+ c.addEventListener($, f);
66
+ d = a.value, c.classList.remove("is-active", "is-expanded", "is-collapsed"), c.classList.add(
67
+ ...a.value ? ["is-active", "is-expanded"] : ["is-collapsed"]
68
+ ), B(() => {
69
+ for (const [$, f] of m)
70
+ c.removeEventListener($, f);
71
+ });
72
+ }
73
+ },
74
+ { flush: "post", immediate: !0 }
75
+ ), X(() => {
76
+ s = void 0;
77
+ }), {
78
+ collapse: () => {
79
+ a.value = !1;
80
+ },
81
+ expand: () => {
82
+ a.value = !0;
83
+ },
84
+ toggle: () => {
85
+ a.value = !a.value;
86
+ }
87
+ };
88
+ }
89
+ const Re = ["data-kt-collapse-group"], Pe = {
90
+ class: "KCollapse-toggle",
91
+ "data-kt-collapse-toggle": ""
92
+ }, Ge = ["aria-expanded"], Fe = {
93
+ class: "KAccordion-title",
94
+ role: "heading",
95
+ "aria-level": "3"
96
+ }, He = { class: "KAccordion-icon" }, Ue = {
97
+ class: "KIcon",
98
+ "aria-hidden": "true"
99
+ }, We = ["href"], qe = {
100
+ class: "KAccordion-content KCollapse-content",
101
+ "data-kt-collapse-content": "",
102
+ role: "region"
103
+ }, Ye = { class: "KAccordion-body" }, Je = /* @__PURE__ */ C({
104
+ __name: "KAccordionItem",
105
+ props: /* @__PURE__ */ T({
106
+ expanded: { type: Boolean },
107
+ icon: { default: "#arrowDropRight" },
108
+ title: {}
109
+ }, {
110
+ expanded: { type: Boolean, default: !1 },
111
+ expandedModifiers: {}
112
+ }),
113
+ emits: ["update:expanded"],
114
+ setup(e, { expose: l }) {
115
+ const a = M(e, "expanded"), t = te(ce, void 0), n = j("root"), { toggle: s } = $e({ element: n, expanded: a }), d = u(() => t?.value);
116
+ return l({ toggle: s }), (o, m) => (i(), r("div", {
117
+ ref_key: "root",
118
+ ref: n,
119
+ class: "KAccordion-item KCollapse",
120
+ "data-kt-collapse": "",
121
+ "data-kt-collapse-group": d.value
122
+ }, [
123
+ y("div", Pe, [
124
+ y("div", {
125
+ class: "KAccordion-button",
126
+ role: "button",
127
+ tabindex: "0",
128
+ "aria-expanded": a.value,
129
+ onKeydown: [
130
+ m[0] || (m[0] = oe(Y(
131
+ //@ts-ignore
132
+ (...c) => E(s) && E(s)(...c),
133
+ ["prevent"]
134
+ ), ["enter"])),
135
+ m[1] || (m[1] = oe(Y(
136
+ //@ts-ignore
137
+ (...c) => E(s) && E(s)(...c),
138
+ ["prevent"]
139
+ ), ["space"]))
140
+ ]
141
+ }, [
142
+ y("div", Fe, [
143
+ v(o.$slots, "title", {}, () => [
144
+ O(D(e.title), 1)
145
+ ])
146
+ ]),
147
+ y("div", He, [
148
+ (i(), r("svg", Ue, [
149
+ y("use", { href: e.icon }, null, 8, We)
150
+ ]))
151
+ ])
152
+ ], 40, Ge)
153
+ ]),
154
+ y("div", qe, [
155
+ y("div", Ye, [
156
+ v(o.$slots, "default")
157
+ ])
158
+ ])
159
+ ], 8, Re));
160
+ }
161
+ }), Xe = {
162
+ key: 0,
163
+ class: "KAlert-title"
164
+ }, Ze = /* @__PURE__ */ C({
165
+ __name: "KAlert",
166
+ props: {
167
+ title: {},
168
+ variant: {}
169
+ },
170
+ setup(e) {
171
+ const l = N(), a = u(() => ["KAlert", e.variant && `KAlert--${e.variant}`]), t = u(() => !!(l.title || e.title));
172
+ return (n, s) => (i(), r("div", {
173
+ class: h(a.value),
174
+ role: "alert"
175
+ }, [
176
+ t.value ? (i(), r("h4", Xe, [
177
+ v(n.$slots, "title", {}, () => [
178
+ O(D(e.title), 1)
179
+ ])
180
+ ])) : S("", !0),
181
+ v(n.$slots, "default")
182
+ ], 2));
183
+ }
184
+ }), Qe = ["src", "alt"], _e = {
185
+ key: 1,
186
+ class: "KIcon KAvatar-icon",
187
+ "aria-hidden": "true"
188
+ }, et = ["href"], tt = ["aria-label", "role"], at = "#user", lt = /* @__PURE__ */ C({
189
+ __name: "KAvatar",
190
+ props: {
191
+ alt: { default: "" },
192
+ icon: { type: [Boolean, String], default: !1 },
193
+ overflow: { type: Boolean, default: !1 },
194
+ size: {},
195
+ src: {},
196
+ status: { type: [Boolean, String] },
197
+ statusLabel: {},
198
+ variant: {}
199
+ },
200
+ setup(e) {
201
+ const l = u(() => [
202
+ "KAvatar",
203
+ e.variant && `KAvatar--${e.variant}`,
204
+ // `md` is the default and has no modifier of its own.
205
+ e.size && e.size !== "md" && `KAvatar--${e.size}`,
206
+ e.overflow && "KAvatar--overflow"
207
+ ]), a = u(
208
+ () => typeof e.icon == "string" ? e.icon : e.icon ? at : void 0
209
+ ), t = u(() => !e.src && !!a.value), n = u(() => !e.src && !t.value), s = u(() => e.status === !0 || typeof e.status == "string"), d = u(() => [
210
+ "KAvatar-status",
211
+ typeof e.status == "string" && `is-${e.status}`
212
+ ]);
213
+ return (o, m) => (i(), r("span", {
214
+ class: h(l.value)
215
+ }, [
216
+ e.src ? (i(), r("img", {
217
+ key: 0,
218
+ class: "KAvatar-image",
219
+ src: e.src,
220
+ alt: e.alt
221
+ }, null, 8, Qe)) : t.value ? (i(), r("svg", _e, [
222
+ y("use", { href: a.value }, null, 8, et)
223
+ ])) : S("", !0),
224
+ n.value ? v(o.$slots, "default", { key: 2 }) : S("", !0),
225
+ s.value ? (i(), r("span", {
226
+ key: 3,
227
+ class: h(d.value),
228
+ "aria-label": e.statusLabel,
229
+ role: e.statusLabel ? "img" : void 0
230
+ }, null, 10, tt)) : S("", !0)
231
+ ], 2));
232
+ }
233
+ }), st = /* @__PURE__ */ C({
234
+ __name: "KAvatarGroup",
235
+ props: {
236
+ diagonal: { type: Boolean, default: !1 },
237
+ size: {}
238
+ },
239
+ setup(e) {
240
+ const l = u(() => [
241
+ "KAvatarGroup",
242
+ e.diagonal && "KAvatarGroup--diagonal",
243
+ e.size && e.size !== "md" && `KAvatarGroup--${e.size}`
244
+ ]);
245
+ return (a, t) => (i(), r("span", {
246
+ class: h(l.value)
247
+ }, [
248
+ v(a.$slots, "default")
249
+ ], 2));
250
+ }
251
+ }), Ce = /* @__PURE__ */ C({
252
+ __name: "KBadge",
253
+ props: {
254
+ pill: { type: Boolean },
255
+ size: {},
256
+ subtle: { type: Boolean },
257
+ variant: {}
258
+ },
259
+ setup(e) {
260
+ return (l, a) => (i(), r("div", {
261
+ class: h([
262
+ "KBadge",
263
+ e.pill && "KBadge--pill",
264
+ e.size && `KBadge--${e.size}`,
265
+ e.subtle && "KBadge--subtle",
266
+ e.variant && `KBadge--${e.variant}`
267
+ ])
268
+ }, [
269
+ v(l.$slots, "default")
270
+ ], 2));
271
+ }
272
+ }), nt = ["aria-label"], ot = /* @__PURE__ */ C({
273
+ __name: "KBreadcrumb",
274
+ props: {
275
+ ariaLabel: { default: "breadcrumb" },
276
+ divider: {}
277
+ },
278
+ setup(e) {
279
+ const l = u(
280
+ () => e.divider ? { "--kt-breadcrumb-divider": `"${e.divider}"` } : void 0
281
+ );
282
+ return (a, t) => (i(), r("nav", { "aria-label": e.ariaLabel }, [
283
+ y("ol", {
284
+ class: "KBreadcrumb",
285
+ style: W(l.value)
286
+ }, [
287
+ v(a.$slots, "default")
288
+ ], 4)
289
+ ], 8, nt));
290
+ }
291
+ }), it = ["aria-current"], dt = ["href"], rt = /* @__PURE__ */ C({
292
+ __name: "KBreadcrumbItem",
293
+ props: {
294
+ active: { type: Boolean, default: () => {
295
+ } },
296
+ href: {},
297
+ to: {}
298
+ },
299
+ setup(e) {
300
+ const l = ue({ to: u(() => e.to ?? "/") }), a = u(() => e.active ?? (e.to ? l.isActive.value : !1)), t = u(() => e.to ? l.href.value : e.href), n = u(() => [
301
+ "KBreadcrumb-item",
302
+ a.value && "KBreadcrumb-is-active"
303
+ ]);
304
+ function s(d) {
305
+ e.to && (d.preventDefault(), l.navigate(d));
306
+ }
307
+ return (d, o) => (i(), r("li", {
308
+ class: h(n.value),
309
+ "aria-current": a.value ? "page" : void 0
310
+ }, [
311
+ !a.value && t.value ? (i(), r("a", {
312
+ key: 0,
313
+ href: t.value,
314
+ onClick: s
315
+ }, [
316
+ v(d.$slots, "default")
317
+ ], 8, dt)) : v(d.$slots, "default", { key: 1 })
318
+ ], 10, it));
319
+ }
320
+ });
321
+ function me(e) {
4
322
  return e.charAt(0).toUpperCase() + e.slice(1);
5
323
  }
6
- const E = /* @__PURE__ */ K({
324
+ const Be = /* @__PURE__ */ C({
7
325
  __name: "KButton",
8
326
  props: {
9
327
  disabled: { type: Boolean, default: !1 },
10
328
  expanded: { type: Boolean, default: !1 },
11
- ghost: { type: Boolean, default: !1 },
12
329
  href: {},
13
- outline: { type: Boolean, default: !1 },
330
+ icon: { type: Boolean, default: !1 },
331
+ iconCircular: { type: Boolean, default: !1 },
332
+ minimal: { type: Boolean, default: !1 },
14
333
  rounded: { type: Boolean, default: !1 },
334
+ secondary: { type: Boolean, default: !1 },
335
+ selected: { type: Boolean, default: !1 },
336
+ size: {},
15
337
  to: {},
16
338
  type: { default: "button" },
339
+ utility: { type: Boolean, default: !1 },
17
340
  variant: {}
18
341
  },
19
342
  setup(e) {
20
- const { href: a, navigate: n } = w({
21
- to: b(() => e.to ?? "/")
22
- }), d = b(() => e.to || e.href ? "a" : "button"), r = b(() => {
343
+ const l = ["warning"], a = ["warning", "affirm"], { href: t, navigate: n } = ue({
344
+ to: u(() => e.to ?? "/")
345
+ }), s = u(() => e.to || e.href ? "a" : "button"), d = u(() => {
23
346
  if (e.to)
24
- return a.value;
347
+ return t.value;
25
348
  if (e.href)
26
349
  return e.href;
27
- }), i = b(() => [
350
+ }), o = u(() => e.variant ? e.utility && !l.includes(e.variant) ? `KButton--utility${me(e.variant)}` : e.minimal && !a.includes(e.variant) ? `KButton--minimal${me(e.variant)}` : `KButton--${e.variant}` : e.utility ? "KButton--utility" : e.minimal ? "KButton--minimal" : e.secondary ? "KButton--secondary" : null), m = u(() => [
28
351
  "KButton",
29
- e.variant ? e.ghost ? `KButton--ghost${N(e.variant)}` : e.outline ? `KButton--outline${N(e.variant)}` : `KButton--${e.variant}` : null,
30
- !e.variant && e.outline && "KButton--outline",
31
- !e.variant && e.ghost && "KButton--ghost",
352
+ o.value,
353
+ // `md` is the default declared in core and needs no modifier.
354
+ e.size && e.size !== "md" && `KButton--${e.size}`,
355
+ e.icon && "KButton--icon",
356
+ e.iconCircular && "KButton--iconCircular",
32
357
  e.rounded && "KButton--rounded",
33
- e.expanded && "KButton--expanded"
358
+ e.expanded && "KButton--expanded",
359
+ e.selected && "KButton--selected"
34
360
  ]);
35
- function t(v) {
36
- e.to && n(v);
37
- }
38
- return (v, y) => (o(), m(V(d.value), {
39
- href: r.value,
40
- type: d.value === "button" ? e.type : void 0,
41
- disabled: d.value === "button" ? e.disabled : void 0,
42
- class: l(i.value),
43
- onClick: t
361
+ function c(K) {
362
+ e.to && n(K);
363
+ }
364
+ return (K, B) => (i(), G(re(s.value), {
365
+ href: d.value,
366
+ type: s.value === "button" ? e.type : void 0,
367
+ disabled: s.value === "button" ? e.disabled : void 0,
368
+ class: h(m.value),
369
+ onClick: c
44
370
  }, {
45
- default: h(() => [
46
- u(v.$slots, "default")
371
+ default: F(() => [
372
+ v(K.$slots, "default")
47
373
  ]),
48
374
  _: 3
49
375
  }, 8, ["href", "type", "disabled", "class"]));
50
376
  }
51
- }), H = /* @__PURE__ */ K({
52
- __name: "KContainer",
377
+ }), ut = /* @__PURE__ */ C({
378
+ __name: "KCalendar",
379
+ props: /* @__PURE__ */ T({
380
+ disabledDates: {},
381
+ firstDay: { default: 0 },
382
+ locale: { default: "en-US" },
383
+ maxDate: {},
384
+ minDate: {},
385
+ mode: { default: "single" }
386
+ }, {
387
+ modelValue: { default: null },
388
+ modelModifiers: {},
389
+ range: { default: null },
390
+ rangeModifiers: {}
391
+ }),
392
+ emits: /* @__PURE__ */ T(["clear", "navigate", "rangestart"], ["update:modelValue", "update:range"]),
393
+ setup(e, { expose: l, emit: a }) {
394
+ const t = M(e, "modelValue"), n = M(e, "range"), s = a, d = j("root");
395
+ let o, m = null, c = null;
396
+ const K = (b) => b ? `${b.start.getTime()}-${b.end.getTime()}` : null, B = (b) => b.target === d.value;
397
+ function $(b) {
398
+ if (!B(b))
399
+ return;
400
+ const g = b.detail;
401
+ g && (m = g.date.getTime(), t.value = g.date);
402
+ }
403
+ function f(b) {
404
+ if (!B(b))
405
+ return;
406
+ const g = b.detail;
407
+ g && (c = K(g), n.value = { start: g.start, end: g.end });
408
+ }
409
+ function x(b) {
410
+ if (!B(b))
411
+ return;
412
+ const g = b.detail;
413
+ g && s("rangestart", g.date);
414
+ }
415
+ function I(b) {
416
+ if (!B(b))
417
+ return;
418
+ const g = b.detail;
419
+ g && s("navigate", g.year, g.month);
420
+ }
421
+ function p(b) {
422
+ B(b) && (m = null, c = null, t.value = null, n.value = null, s("clear"));
423
+ }
424
+ const z = [
425
+ ["kt.calendar.select", $],
426
+ ["kt.calendar.rangeselect", f],
427
+ ["kt.calendar.rangestart", x],
428
+ ["kt.calendar.navigate", I],
429
+ ["kt.calendar.clear", p]
430
+ ];
431
+ function P(b) {
432
+ o?.destroy(), o = new R.modules.Calendar(b, {
433
+ disabledDates: e.disabledDates,
434
+ firstDay: e.firstDay,
435
+ locale: e.locale,
436
+ maxDate: e.maxDate,
437
+ minDate: e.minDate,
438
+ mode: e.mode
439
+ }), e.mode === "range" && n.value ? (c = K(n.value), o.setRange(n.value.start, n.value.end)) : e.mode === "single" && t.value && (m = t.value.getTime(), o.setDate(t.value));
440
+ }
441
+ return L(
442
+ d,
443
+ (b, g, w) => {
444
+ if (b) {
445
+ for (const [k, A] of z)
446
+ b.addEventListener(k, A);
447
+ P(b), w(() => {
448
+ for (const [k, A] of z)
449
+ b.removeEventListener(k, A);
450
+ });
451
+ }
452
+ },
453
+ { flush: "post", immediate: !0 }
454
+ ), L(
455
+ () => [e.mode, e.locale, e.firstDay, e.minDate, e.maxDate, e.disabledDates],
456
+ () => {
457
+ d.value && P(d.value);
458
+ },
459
+ { deep: !0 }
460
+ ), L(t, (b) => {
461
+ (b?.getTime() ?? null) !== m && (m = b?.getTime() ?? null, b ? o?.setDate(b) : o?.clearSelection());
462
+ }), L(n, (b) => {
463
+ K(b) !== c && (c = K(b), b ? o?.setRange(b.start, b.end) : o?.clearSelection());
464
+ }), X(() => {
465
+ o?.destroy(), o = void 0;
466
+ }), l({
467
+ clear: () => o?.clearSelection(),
468
+ navigateTo: (b, g) => o?.navigateTo(b, g),
469
+ next: () => o?.next(),
470
+ prev: () => o?.prev()
471
+ }), (b, g) => (i(), r("div", {
472
+ ref_key: "root",
473
+ ref: d,
474
+ class: "KCalendar",
475
+ "data-kt-calendar": ""
476
+ }, null, 512));
477
+ }
478
+ }), ct = {
479
+ key: 0,
480
+ class: "KCard-title"
481
+ }, ft = /* @__PURE__ */ C({
482
+ __name: "KCard",
53
483
  props: {
54
- glassy: { type: Boolean }
484
+ accented: { type: Boolean, default: !1 },
485
+ bodyClass: { type: [Boolean, null, String, Object, Array] },
486
+ borderless: { type: Boolean, default: !1 },
487
+ footerClass: { type: [Boolean, null, String, Object, Array] },
488
+ flush: { type: Boolean, default: !1 },
489
+ headerClass: { type: [Boolean, null, String, Object, Array] },
490
+ hoverable: { type: Boolean, default: !1 },
491
+ lifted: { type: Boolean, default: !1 },
492
+ sunken: { type: Boolean, default: !1 },
493
+ title: {}
55
494
  },
56
495
  setup(e) {
57
- return (a, n) => (o(), s("div", {
58
- class: l(["KContainer", e.glassy && "KContainer--glassy"])
496
+ const l = N(), a = u(() => [
497
+ "KCard",
498
+ e.accented && "KCard--accented",
499
+ e.borderless && "KCard--borderless",
500
+ e.flush && "KCard--flush",
501
+ e.hoverable && "KCard--hoverable",
502
+ e.lifted && "KCard--lifted",
503
+ e.sunken && "KCard--sunken"
504
+ ]), t = u(() => !!(l.title || e.title)), n = u(() => !!(l.header || t.value));
505
+ return (s, d) => (i(), r("div", {
506
+ class: h(a.value)
59
507
  }, [
60
- u(a.$slots, "default")
508
+ n.value ? (i(), r("div", {
509
+ key: 0,
510
+ class: h(["KCard-header", e.headerClass])
511
+ }, [
512
+ v(s.$slots, "header", {}, () => [
513
+ t.value ? (i(), r("h3", ct, [
514
+ v(s.$slots, "title", {}, () => [
515
+ O(D(e.title), 1)
516
+ ])
517
+ ])) : S("", !0)
518
+ ])
519
+ ], 2)) : S("", !0),
520
+ y("div", {
521
+ class: h(["KCard-body", e.bodyClass])
522
+ }, [
523
+ v(s.$slots, "default")
524
+ ], 2),
525
+ l.footer ? (i(), r("div", {
526
+ key: 1,
527
+ class: h(["KCard-footer", e.footerClass])
528
+ }, [
529
+ v(s.$slots, "footer")
530
+ ], 2)) : S("", !0)
61
531
  ], 2));
62
532
  }
63
- }), F = {
64
- class: "KIcon",
65
- title: "icon",
66
- role: "img"
67
- }, P = ["href"], R = /* @__PURE__ */ K({
68
- __name: "KIcon",
533
+ }), vt = {
534
+ key: 0,
535
+ class: "KChat-footer"
536
+ }, mt = 48, bt = /* @__PURE__ */ C({
537
+ __name: "KChat",
69
538
  props: {
70
- href: { default: "" }
539
+ ai: { type: Boolean, default: !1 },
540
+ autoscroll: { type: Boolean, default: !0 },
541
+ busy: { type: Boolean, default: !1 },
542
+ height: {}
543
+ },
544
+ setup(e, { expose: l }) {
545
+ const a = N();
546
+ de(
547
+ fe,
548
+ Ae(() => e.busy)
549
+ );
550
+ const t = j("body");
551
+ let n, s = !0;
552
+ const d = u(
553
+ () => e.height ? { "--kt-chat-height": e.height } : void 0
554
+ );
555
+ function o() {
556
+ const c = t.value;
557
+ c && (c.scrollTop = c.scrollHeight);
558
+ }
559
+ function m() {
560
+ const c = t.value;
561
+ c && (s = c.scrollHeight - c.scrollTop - c.clientHeight <= mt);
562
+ }
563
+ return Q(() => {
564
+ const c = t.value;
565
+ c && (o(), e.autoscroll && (c.addEventListener("scroll", m, { passive: !0 }), n = new MutationObserver(() => {
566
+ s && o();
567
+ }), n.observe(c, { childList: !0, subtree: !0 })));
568
+ }), ye(() => {
569
+ n?.disconnect();
570
+ }), l({ scrollToBottom: o }), (c, K) => (i(), r("div", {
571
+ class: h(["KChat", e.ai && "KChat--ai"]),
572
+ style: W(d.value)
573
+ }, [
574
+ y("div", {
575
+ ref_key: "body",
576
+ ref: t,
577
+ class: "KChat-body"
578
+ }, [
579
+ v(c.$slots, "default")
580
+ ], 512),
581
+ a.footer ? (i(), r("div", vt, [
582
+ v(c.$slots, "footer")
583
+ ])) : S("", !0)
584
+ ], 6));
585
+ }
586
+ }), ht = {
587
+ key: 0,
588
+ class: "KChat-time"
589
+ }, yt = { class: "KChat-bubble" }, Kt = /* @__PURE__ */ C({
590
+ __name: "KChatMessage",
591
+ props: {
592
+ sender: { type: Boolean, default: !1 },
593
+ time: {}
71
594
  },
72
595
  setup(e) {
73
- return (a, n) => (o(), s("svg", F, [
74
- c("use", {
75
- href: `#${e.href.replace(/^#/, "")}`
76
- }, null, 8, P)
596
+ const l = N(), a = u(() => !!(e.time || l.time));
597
+ return (t, n) => (i(), r("li", {
598
+ class: h(["KChat-message", e.sender && "is-sender"])
599
+ }, [
600
+ a.value ? (i(), r("span", ht, [
601
+ v(t.$slots, "time", {}, () => [
602
+ O(D(e.time), 1)
603
+ ])
604
+ ])) : S("", !0),
605
+ y("div", yt, [
606
+ v(t.$slots, "default")
607
+ ])
608
+ ], 2));
609
+ }
610
+ }), gt = { class: "KChat-messages" }, kt = /* @__PURE__ */ C({
611
+ __name: "KChatMessages",
612
+ setup(e) {
613
+ return (l, a) => (i(), r("ul", gt, [
614
+ v(l.$slots, "default")
77
615
  ]));
78
616
  }
79
- }), q = {
617
+ }), $t = {
80
618
  key: 0,
81
619
  class: "KInput-addon"
82
- }, G = ["disabled", "placeholder", "type"], J = {
83
- key: 1,
620
+ }, Ct = ["disabled", "placeholder", "readonly", "rows"], Bt = ["disabled", "placeholder", "readonly", "type"], wt = {
621
+ key: 3,
84
622
  class: "KInput-addon"
85
- }, Q = /* @__PURE__ */ K({
623
+ }, we = /* @__PURE__ */ C({
624
+ inheritAttrs: !1,
86
625
  __name: "KInput",
87
- props: /* @__PURE__ */ B({
626
+ props: /* @__PURE__ */ T({
627
+ addonBordered: { type: Boolean, default: !1 },
628
+ autosize: { type: Boolean, default: !1 },
88
629
  disabled: { type: Boolean, default: !1 },
89
630
  ghost: { type: Boolean, default: !1 },
631
+ maxRows: { default: 5 },
90
632
  placeholder: {},
633
+ readonly: { type: Boolean, default: !1 },
91
634
  rounded: { type: Boolean, default: !1 },
635
+ rows: {},
92
636
  sunken: { type: Boolean, default: !1 },
637
+ textarea: { type: Boolean, default: !1 },
93
638
  transparent: { type: Boolean, default: !1 },
94
639
  type: { default: "text" }
95
640
  }, {
@@ -97,123 +642,1235 @@ const E = /* @__PURE__ */ K({
97
642
  modelModifiers: {}
98
643
  }),
99
644
  emits: ["update:modelValue"],
100
- setup(e) {
101
- const a = k(e, "modelValue"), n = x(), d = b(() => [
645
+ setup(e, { expose: l }) {
646
+ const a = M(e, "modelValue"), t = N(), n = ae(), s = u(() => e.textarea || e.autosize), d = j("field"), o = u(() => [
102
647
  "KInput",
648
+ e.addonBordered && "KInput--addonBordered",
649
+ e.autosize && "KInput--autosize",
103
650
  e.disabled && "KInput--disabled",
104
651
  e.ghost && "KInput--ghost",
105
652
  e.rounded && "KInput--rounded",
106
653
  e.sunken && "KInput--sunken",
107
654
  e.transparent && "KInput--transparent"
108
- ]);
109
- return (r, i) => (o(), s("div", {
110
- class: l(d.value)
111
- }, [
112
- n.prefix ? (o(), s("div", q, [
113
- u(r.$slots, "prefix")
114
- ])) : f("", !0),
115
- j(c("input", {
116
- "onUpdate:modelValue": i[0] || (i[0] = (t) => a.value = t),
655
+ ]), m = u(() => {
656
+ const { class: B, style: $, ...f } = n;
657
+ return f;
658
+ }), c = u(
659
+ () => e.autosize ? { "data-kt-input-autosize": "", "data-kt-input-max-rows": e.maxRows } : {}
660
+ );
661
+ async function K() {
662
+ await Ie(), d.value?.dispatchEvent(new Event("input", { bubbles: !0 }));
663
+ }
664
+ return L(
665
+ () => a.value,
666
+ () => {
667
+ e.autosize && K();
668
+ }
669
+ ), Q(() => {
670
+ e.autosize && a.value && K();
671
+ }), l({ field: d }), (B, $) => (i(), r("div", H({
672
+ class: [o.value, E(n).class],
673
+ style: E(n).style
674
+ }, c.value), [
675
+ t.prefix ? (i(), r("div", $t, [
676
+ v(B.$slots, "prefix")
677
+ ])) : S("", !0),
678
+ s.value ? ie((i(), r("textarea", H({
679
+ key: 1,
680
+ ref_key: "field",
681
+ ref: d,
682
+ "onUpdate:modelValue": $[0] || ($[0] = (f) => a.value = f)
683
+ }, m.value, {
684
+ disabled: e.disabled,
685
+ placeholder: e.placeholder,
686
+ readonly: e.readonly,
687
+ rows: e.autosize ? 1 : e.rows
688
+ }), null, 16, Ct)), [
689
+ [Te, a.value]
690
+ ]) : ie((i(), r("input", H({
691
+ key: 2,
692
+ "onUpdate:modelValue": $[1] || ($[1] = (f) => a.value = f)
693
+ }, m.value, {
117
694
  disabled: e.disabled,
118
695
  placeholder: e.placeholder,
696
+ readonly: e.readonly,
119
697
  type: e.type
120
- }, null, 8, G), [
121
- [z, a.value]
698
+ }), null, 16, Bt)), [
699
+ [Le, a.value]
122
700
  ]),
123
- n.suffix ? (o(), s("div", J, [
124
- u(r.$slots, "suffix")
125
- ])) : f("", !0)
126
- ], 2));
701
+ t.suffix ? (i(), r("div", wt, [
702
+ v(B.$slots, "suffix")
703
+ ])) : S("", !0)
704
+ ], 16));
127
705
  }
128
- }), W = /* @__PURE__ */ K({
129
- __name: "KBadge",
706
+ }), St = {
707
+ key: 0,
708
+ class: "KIcon",
709
+ viewBox: "0 0 16 16",
710
+ "aria-hidden": "true"
711
+ }, pt = {
712
+ key: 1,
713
+ class: "KIcon",
714
+ "aria-hidden": "true"
715
+ }, xt = /* @__PURE__ */ C({
716
+ __name: "KChatPrompt",
717
+ props: /* @__PURE__ */ T({
718
+ busy: { type: Boolean, default: void 0 },
719
+ disabled: { type: Boolean, default: !1 },
720
+ maxRows: { default: 5 },
721
+ newlineOnEnter: { type: Boolean, default: !1 },
722
+ placeholder: { default: "Write a message" }
723
+ }, {
724
+ modelValue: { default: "" },
725
+ modelModifiers: {}
726
+ }),
727
+ emits: /* @__PURE__ */ T(["stop", "submit"], ["update:modelValue"]),
728
+ setup(e, { emit: l }) {
729
+ const a = M(e, "modelValue"), t = e, n = l, s = te(fe, void 0), d = u(() => t.busy ?? s?.value ?? !1), o = u(() => !a.value.trim()), m = u(
730
+ () => t.disabled || !d.value && o.value
731
+ );
732
+ function c() {
733
+ if (d.value) {
734
+ n("stop");
735
+ return;
736
+ }
737
+ o.value || n("submit", a.value);
738
+ }
739
+ function K(B) {
740
+ t.newlineOnEnter || B.isComposing || (B.preventDefault(), c());
741
+ }
742
+ return (B, $) => (i(), r("form", {
743
+ class: "KChat-prompt",
744
+ onSubmit: Y(c, ["prevent"])
745
+ }, [
746
+ U(we, {
747
+ modelValue: a.value,
748
+ "onUpdate:modelValue": $[0] || ($[0] = (f) => a.value = f),
749
+ autosize: "",
750
+ rounded: "",
751
+ disabled: t.disabled || d.value,
752
+ "max-rows": t.maxRows,
753
+ placeholder: t.placeholder,
754
+ onKeydown: oe(Y(K, ["exact"]), ["enter"])
755
+ }, null, 8, ["modelValue", "disabled", "max-rows", "placeholder", "onKeydown"]),
756
+ v(B.$slots, "send", {
757
+ busy: d.value,
758
+ disabled: m.value
759
+ }, () => [
760
+ U(Be, {
761
+ "icon-circular": "",
762
+ type: "submit",
763
+ disabled: m.value,
764
+ "aria-label": d.value ? "Stop" : "Send"
765
+ }, {
766
+ default: F(() => [
767
+ d.value ? (i(), r("svg", St, [...$[1] || ($[1] = [
768
+ y("rect", {
769
+ x: "4",
770
+ y: "4",
771
+ width: "8",
772
+ height: "8",
773
+ rx: "1.5",
774
+ fill: "currentColor"
775
+ }, null, -1)
776
+ ])])) : (i(), r("svg", pt, [...$[2] || ($[2] = [
777
+ y("use", { href: "#arrowRight" }, null, -1)
778
+ ])]))
779
+ ]),
780
+ _: 1
781
+ }, 8, ["disabled", "aria-label"])
782
+ ])
783
+ ], 32));
784
+ }
785
+ }), At = {
786
+ class: "KChat-shimmer",
787
+ role: "status"
788
+ }, Tt = { class: "KChat-shimmerStack" }, Lt = /* @__PURE__ */ C({
789
+ __name: "KChatShimmer",
130
790
  props: {
131
- pill: { type: Boolean },
132
- size: {},
133
- subtle: { type: Boolean },
134
- variant: {}
791
+ interval: { default: 2e3 },
792
+ text: { default: "Thinking…" },
793
+ texts: {}
135
794
  },
136
795
  setup(e) {
137
- return (a, n) => (o(), s("div", {
138
- class: l([
139
- "KBadge",
140
- e.pill && "KBadge--pill",
141
- e.size && `KBadge--${e.size}`,
142
- e.subtle && "KBadge--subtle",
143
- e.variant && `KBadge--${e.variant}`
796
+ const l = N(), a = Me(0);
797
+ let t;
798
+ const n = u(
799
+ () => !!(e.texts && e.texts.length > 1) && !l.default
800
+ ), s = u(
801
+ () => e.texts && e.texts.length ? e.texts[a.value % e.texts.length] : e.text
802
+ );
803
+ function d() {
804
+ t && (clearInterval(t), t = void 0);
805
+ }
806
+ function o() {
807
+ d(), n.value && (a.value = 0, t = setInterval(() => {
808
+ a.value += 1;
809
+ }, e.interval));
810
+ }
811
+ return L([() => e.texts?.join(" "), () => e.interval], o, {
812
+ immediate: !0
813
+ }), ye(d), (m, c) => (i(), r("li", At, [
814
+ y("span", Tt, [
815
+ U(De, { name: "KChat-shimmerText" }, {
816
+ default: F(() => [
817
+ (i(), r("span", {
818
+ key: a.value,
819
+ class: "KChat-shimmerText"
820
+ }, [
821
+ v(m.$slots, "default", {}, () => [
822
+ O(D(s.value), 1)
823
+ ])
824
+ ]))
825
+ ]),
826
+ _: 3
827
+ })
144
828
  ])
829
+ ]));
830
+ }
831
+ }), It = ["checked", "disabled", "value"], Mt = {
832
+ key: 0,
833
+ class: "KCheckbox-label"
834
+ }, Dt = /* @__PURE__ */ C({
835
+ inheritAttrs: !1,
836
+ __name: "KCheckbox",
837
+ props: /* @__PURE__ */ T({
838
+ disabled: { type: Boolean, default: !1 },
839
+ indeterminate: { type: Boolean, default: !1 },
840
+ label: {},
841
+ value: {}
842
+ }, {
843
+ modelValue: { type: [Boolean, Array], default: !1 },
844
+ modelModifiers: {}
845
+ }),
846
+ emits: ["update:modelValue"],
847
+ setup(e) {
848
+ const l = M(e, "modelValue"), a = N(), t = ae(), n = j("input"), s = u(() => Array.isArray(l.value)), d = u(
849
+ () => s.value ? l.value.includes(e.value) : !!l.value
850
+ ), o = u(() => ["KCheckbox", e.disabled && "KCheckbox--disabled"]), m = u(() => {
851
+ const { class: B, style: $, ...f } = t;
852
+ return f;
853
+ });
854
+ function c(B) {
855
+ const $ = B.target.checked;
856
+ if (!s.value) {
857
+ l.value = $;
858
+ return;
859
+ }
860
+ const f = l.value;
861
+ l.value = $ ? [...f, e.value] : f.filter((x) => x !== e.value);
862
+ }
863
+ function K() {
864
+ n.value && (n.value.indeterminate = e.indeterminate);
865
+ }
866
+ return L(() => e.indeterminate, K), Q(K), (B, $) => (i(), r("label", {
867
+ class: h([o.value, E(t).class]),
868
+ style: W(E(t).style)
145
869
  }, [
146
- u(a.$slots, "default")
870
+ y("input", H({
871
+ ref_key: "input",
872
+ ref: n,
873
+ class: "KCheckbox-input",
874
+ type: "checkbox"
875
+ }, m.value, {
876
+ checked: d.value,
877
+ disabled: e.disabled,
878
+ value: e.value,
879
+ onChange: c
880
+ }), null, 16, It),
881
+ $[0] || ($[0] = y("span", { class: "KCheckbox-box" }, null, -1)),
882
+ a.default || e.label ? (i(), r("span", Mt, [
883
+ v(B.$slots, "default", {}, () => [
884
+ O(D(e.label), 1)
885
+ ])
886
+ ])) : S("", !0)
887
+ ], 6));
888
+ }
889
+ }), zt = {
890
+ class: "KCollapse-content",
891
+ "data-kt-collapse-content": ""
892
+ }, Et = /* @__PURE__ */ C({
893
+ __name: "KCollapse",
894
+ props: /* @__PURE__ */ T({
895
+ direction: { default: "right" },
896
+ horizontal: { type: Boolean, default: !1 },
897
+ tag: { default: "div" }
898
+ }, {
899
+ expanded: { type: Boolean, default: !1 },
900
+ expandedModifiers: {}
901
+ }),
902
+ emits: /* @__PURE__ */ T(["collapse", "collapsed", "expand", "expanded"], ["update:expanded"]),
903
+ setup(e, { expose: l, emit: a }) {
904
+ const t = M(e, "expanded"), n = a, s = j("root"), { toggle: d } = $e({
905
+ direction: () => e.direction,
906
+ element: s,
907
+ expanded: t,
908
+ horizontal: () => e.horizontal,
909
+ // TypeScript cannot correlate a union event name against the overloaded
910
+ // emit signature. All four events take no payload, so narrowing to any one
911
+ // of them is accurate about the call shape.
912
+ onEvent: (o) => n(o)
913
+ });
914
+ return l({
915
+ toggle: d,
916
+ expand: () => t.value = !0,
917
+ collapse: () => t.value = !1
918
+ }), (o, m) => (i(), G(re(e.tag), {
919
+ ref_key: "root",
920
+ ref: s,
921
+ class: "KCollapse",
922
+ "data-kt-collapse": "",
923
+ "data-kt-collapse-horizontal": e.horizontal ? e.direction === "left" ? "left" : "true" : void 0
924
+ }, {
925
+ default: F(() => [
926
+ v(o.$slots, "toggle", {
927
+ toggle: E(d),
928
+ expanded: t.value
929
+ }),
930
+ y("div", zt, [
931
+ v(o.$slots, "default")
932
+ ])
933
+ ]),
934
+ _: 3
935
+ }, 8, ["data-kt-collapse-horizontal"]));
936
+ }
937
+ }), Nt = /* @__PURE__ */ C({
938
+ __name: "KContainer",
939
+ props: {
940
+ glassy: { type: Boolean }
941
+ },
942
+ setup(e) {
943
+ return (l, a) => (i(), r("div", {
944
+ class: h(["KContainer", e.glassy && "KContainer--glassy"])
945
+ }, [
946
+ v(l.$slots, "default")
147
947
  ], 2));
148
948
  }
149
- }), X = { class: "KNavbar-menu" }, Y = ["href", "onClick"], Z = {
949
+ }), Ot = ["data-kt-drawer-id", "data-kt-drawer-static-backdrop"], jt = ["aria-labelledby"], Vt = ["id"], Rt = /* @__PURE__ */ C({
950
+ __name: "KDrawer",
951
+ props: /* @__PURE__ */ T({
952
+ bodyClass: { type: [Boolean, null, String, Object, Array] },
953
+ closable: { type: Boolean, default: !0 },
954
+ contained: { type: Boolean, default: !1 },
955
+ edge: { default: "right" },
956
+ focus: { type: Boolean, default: !0 },
957
+ footerClass: { type: [Boolean, null, String, Object, Array] },
958
+ headerClass: { type: [Boolean, null, String, Object, Array] },
959
+ id: {},
960
+ keyboard: { type: Boolean, default: !0 },
961
+ noBackdrop: { type: Boolean, default: !1 },
962
+ panelClass: { type: [Boolean, null, String, Object, Array] },
963
+ size: {},
964
+ staticBackdrop: { type: Boolean, default: !1 },
965
+ teleport: { type: Boolean, default: () => {
966
+ } },
967
+ title: {}
968
+ }, {
969
+ open: { type: Boolean, default: !1 },
970
+ openModifiers: {}
971
+ }),
972
+ emits: /* @__PURE__ */ T(["hide", "hidden", "show", "shown"], ["update:open"]),
973
+ setup(e, { expose: l, emit: a }) {
974
+ const t = M(e, "open"), n = a, s = N(), d = j("root");
975
+ let o, m = !1;
976
+ const c = ee(), K = u(() => e.id ?? c), B = u(() => `${K.value}-title`), $ = u(() => e.teleport ?? !e.contained), f = u(() => !!(e.title || s.title)), x = u(() => !!(s.header || f.value || e.closable)), I = u(() => [
977
+ "KDrawer",
978
+ e.edge === "left" && "KDrawer--left",
979
+ // `md` is the default and has no modifier of its own.
980
+ e.size && e.size !== "md" && `KDrawer--${e.size}`,
981
+ e.contained && "KDrawer--contained",
982
+ e.noBackdrop && "KDrawer--noBackdrop"
983
+ ]);
984
+ function p() {
985
+ return !o && d.value && (o = new R.modules.Drawer(d.value, {
986
+ focus: e.focus,
987
+ keyboard: e.keyboard,
988
+ staticBackdrop: e.staticBackdrop
989
+ })), o;
990
+ }
991
+ L(
992
+ () => [e.focus, e.keyboard, e.staticBackdrop],
993
+ () => {
994
+ o = void 0;
995
+ }
996
+ ), L(
997
+ t,
998
+ (w) => {
999
+ if (w === m)
1000
+ return;
1001
+ const k = p();
1002
+ k && (m = w, w ? k.show() : k.hide());
1003
+ },
1004
+ { flush: "post" }
1005
+ );
1006
+ const z = (w) => w.target === d.value, P = {
1007
+ "kt.drawer.show": (w) => {
1008
+ z(w) && (m = !0, t.value = !0, n("show"));
1009
+ },
1010
+ "kt.drawer.shown": (w) => {
1011
+ z(w) && n("shown");
1012
+ },
1013
+ "kt.drawer.hide": (w) => {
1014
+ z(w) && (m = !1, t.value = !1, n("hide"));
1015
+ },
1016
+ "kt.drawer.hidden": (w) => {
1017
+ z(w) && n("hidden");
1018
+ }
1019
+ };
1020
+ L(
1021
+ d,
1022
+ (w, k, A) => {
1023
+ if (o = void 0, !!w) {
1024
+ for (const [V, q] of Object.entries(P))
1025
+ w.addEventListener(V, q);
1026
+ w.setAttribute("aria-hidden", "true"), t.value && p()?.show(), A(() => {
1027
+ for (const [V, q] of Object.entries(P))
1028
+ w.removeEventListener(V, q);
1029
+ });
1030
+ }
1031
+ },
1032
+ { flush: "post", immediate: !0 }
1033
+ );
1034
+ function b(w) {
1035
+ e.keyboard || w.key !== "Escape" || d.value?.classList.contains("is-active") && w.stopPropagation();
1036
+ }
1037
+ Q(() => document.addEventListener("keydown", b, !0)), X(() => {
1038
+ d.value?.classList.contains("is-active") && document.body.classList.remove("is-drawer-active"), document.removeEventListener("keydown", b, !0);
1039
+ });
1040
+ function g() {
1041
+ t.value = !1;
1042
+ }
1043
+ return l({
1044
+ show: () => t.value = !0,
1045
+ hide: g,
1046
+ toggle: () => t.value = !t.value
1047
+ }), (w, k) => (i(), G(Ke, {
1048
+ to: "body",
1049
+ disabled: !$.value
1050
+ }, [
1051
+ y("div", {
1052
+ ref_key: "root",
1053
+ ref: d,
1054
+ class: h(I.value),
1055
+ "data-kt-drawer-id": K.value,
1056
+ "data-kt-drawer-static-backdrop": e.staticBackdrop ? "true" : "false",
1057
+ "data-kt-drawer": "",
1058
+ tabindex: "-1"
1059
+ }, [
1060
+ y("div", {
1061
+ class: h(["KDrawer-panel", e.panelClass]),
1062
+ "aria-labelledby": f.value ? B.value : void 0,
1063
+ "data-kt-drawer-panel": "",
1064
+ role: "dialog"
1065
+ }, [
1066
+ x.value ? (i(), r("div", {
1067
+ key: 0,
1068
+ class: h(["KDrawer-header", e.headerClass])
1069
+ }, [
1070
+ v(w.$slots, "header", {}, () => [
1071
+ f.value ? (i(), r("h5", {
1072
+ key: 0,
1073
+ id: B.value,
1074
+ class: "KDrawer-title"
1075
+ }, [
1076
+ v(w.$slots, "title", {}, () => [
1077
+ O(D(e.title), 1)
1078
+ ])
1079
+ ], 8, Vt)) : S("", !0),
1080
+ e.closable ? (i(), r("button", {
1081
+ key: 1,
1082
+ class: "KDrawer-close",
1083
+ type: "button",
1084
+ "aria-label": "Close",
1085
+ onClick: Y(g, ["stop"])
1086
+ }, [
1087
+ v(w.$slots, "close", {}, () => [
1088
+ k[0] || (k[0] = O("✕", -1))
1089
+ ])
1090
+ ])) : S("", !0)
1091
+ ])
1092
+ ], 2)) : S("", !0),
1093
+ y("div", {
1094
+ class: h(["KDrawer-body", e.bodyClass])
1095
+ }, [
1096
+ v(w.$slots, "default")
1097
+ ], 2),
1098
+ s.footer ? (i(), r("div", {
1099
+ key: 1,
1100
+ class: h(["KDrawer-footer", e.footerClass])
1101
+ }, [
1102
+ v(w.$slots, "footer")
1103
+ ], 2)) : S("", !0)
1104
+ ], 10, jt)
1105
+ ], 10, Ot)
1106
+ ], 8, ["disabled"]));
1107
+ }
1108
+ });
1109
+ function Se({
1110
+ create: e,
1111
+ element: l,
1112
+ onEvent: a,
1113
+ open: t
1114
+ }) {
1115
+ let n, s = !1;
1116
+ function d() {
1117
+ return !n && l.value && (n = e(l.value)), n;
1118
+ }
1119
+ L(
1120
+ t,
1121
+ (c) => {
1122
+ if (c === s)
1123
+ return;
1124
+ const K = d();
1125
+ K && (s = c, c ? K.show() : K.hide());
1126
+ },
1127
+ { flush: "post" }
1128
+ );
1129
+ function o(c) {
1130
+ return (K) => {
1131
+ K.target === l.value && (s = c === "shown", t.value = s, a?.(c));
1132
+ };
1133
+ }
1134
+ const m = [
1135
+ ["kt.shown", o("shown")],
1136
+ ["kt.hidden", o("hidden")]
1137
+ ];
1138
+ return L(
1139
+ l,
1140
+ (c, K, B) => {
1141
+ if (n = void 0, !!c) {
1142
+ for (const [$, f] of m)
1143
+ c.addEventListener($, f);
1144
+ t.value && (d()?.show(), s = !0), B(() => {
1145
+ for (const [$, f] of m)
1146
+ c.removeEventListener($, f);
1147
+ });
1148
+ }
1149
+ },
1150
+ { flush: "post", immediate: !0 }
1151
+ ), X(() => {
1152
+ s && n?.hide(), n = void 0;
1153
+ }), {
1154
+ hide: () => {
1155
+ t.value = !1;
1156
+ },
1157
+ show: () => {
1158
+ t.value = !0;
1159
+ },
1160
+ toggle: () => {
1161
+ t.value = !t.value;
1162
+ }
1163
+ };
1164
+ }
1165
+ const Pt = ["data-kt-dropdown-placement"], Gt = /* @__PURE__ */ C({
1166
+ __name: "KDropdown",
1167
+ props: /* @__PURE__ */ T({
1168
+ inline: { type: Boolean, default: !1 },
1169
+ menuClass: { type: [Boolean, null, String, Object, Array] },
1170
+ placement: { default: "bottom-start" },
1171
+ toggleClass: { type: [Boolean, null, String, Object, Array] }
1172
+ }, {
1173
+ open: { type: Boolean, default: !1 },
1174
+ openModifiers: {}
1175
+ }),
1176
+ emits: /* @__PURE__ */ T(["hidden", "shown"], ["update:open"]),
1177
+ setup(e, { expose: l, emit: a }) {
1178
+ const t = M(e, "open"), n = a, s = j("root"), { toggle: d } = Se({
1179
+ create: (m) => new R.modules.Dropdown(m, { placement: e.placement }),
1180
+ element: s,
1181
+ open: t,
1182
+ // TypeScript cannot correlate a union event name against the overloaded emit
1183
+ // signature. Neither event carries a payload, so this is accurate.
1184
+ onEvent: (m) => n(m)
1185
+ }), o = u(() => [
1186
+ "KDropdown",
1187
+ e.inline && "KDropdown--inline"
1188
+ ]);
1189
+ return l({
1190
+ toggle: d,
1191
+ show: () => t.value = !0,
1192
+ hide: () => t.value = !1
1193
+ }), (m, c) => (i(), r("div", {
1194
+ ref_key: "root",
1195
+ ref: s,
1196
+ class: h(o.value),
1197
+ "data-kt-dropdown": "",
1198
+ "data-kt-dropdown-placement": e.placement
1199
+ }, [
1200
+ y("span", {
1201
+ class: h(["KDropdown-toggle", e.toggleClass]),
1202
+ "data-kt-dropdown-toggle": ""
1203
+ }, [
1204
+ v(m.$slots, "toggle", {
1205
+ open: t.value,
1206
+ toggle: E(d)
1207
+ })
1208
+ ], 2),
1209
+ v(m.$slots, "default")
1210
+ ], 10, Pt));
1211
+ }
1212
+ }), Ft = {
1213
+ key: 0,
1214
+ class: "KDropdown-text"
1215
+ }, Ht = /* @__PURE__ */ C({
1216
+ __name: "KDropdownItem",
1217
+ props: {
1218
+ active: { type: Boolean, default: !1 },
1219
+ parent: { type: Boolean, default: !1 },
1220
+ text: { type: Boolean, default: !1 }
1221
+ },
1222
+ setup(e) {
1223
+ const l = u(() => [
1224
+ "KDropdown-item",
1225
+ e.active && "is-active",
1226
+ e.parent && "is-parent"
1227
+ ]);
1228
+ return (a, t) => e.text ? (i(), r("div", Ft, [
1229
+ v(a.$slots, "default")
1230
+ ])) : (i(), r("div", {
1231
+ key: 1,
1232
+ class: h(l.value),
1233
+ "data-kt-dropdown-item": ""
1234
+ }, [
1235
+ v(a.$slots, "default")
1236
+ ], 2));
1237
+ }
1238
+ }), Ut = {
1239
+ key: 0,
1240
+ class: "KDropdown-submenu",
1241
+ "data-kt-dropdown-submenu": ""
1242
+ }, Wt = {
1243
+ key: 1,
1244
+ class: "KDropdown-menu",
1245
+ "data-kt-dropdown-menu": ""
1246
+ }, qt = /* @__PURE__ */ C({
1247
+ __name: "KDropdownMenu",
1248
+ props: {
1249
+ submenu: { type: Boolean, default: !1 }
1250
+ },
1251
+ setup(e) {
1252
+ return (l, a) => e.submenu ? (i(), r("div", Ut, [
1253
+ v(l.$slots, "default")
1254
+ ])) : (i(), r("div", Wt, [
1255
+ v(l.$slots, "default")
1256
+ ]));
1257
+ }
1258
+ }), Yt = {
1259
+ class: "KFileTree-node",
1260
+ role: "none",
1261
+ "data-kt-file-tree-node": ""
1262
+ }, Jt = ["data-kftree-id", "tabindex", "aria-expanded", "data-kt-file-tree-lazy"], Xt = {
1263
+ class: "KFileTree-caret",
1264
+ "data-kt-file-tree-caret": "",
1265
+ "aria-hidden": "true"
1266
+ }, Zt = {
1267
+ key: 0,
1268
+ class: "KIcon",
1269
+ "aria-hidden": "true"
1270
+ }, Qt = ["href"], _t = {
1271
+ class: "KFileTree-icon",
1272
+ "aria-hidden": "true"
1273
+ }, ea = {
150
1274
  key: 0,
151
- class: /* @__PURE__ */ l(["KNavbar-caret", "KCollapse-toggle"]),
1275
+ class: "KIcon",
1276
+ "aria-hidden": "true"
1277
+ }, ta = ["href"], aa = { class: "KFileTree-label" }, la = {
1278
+ key: 0,
1279
+ class: "KFileTree-group",
1280
+ role: "group",
1281
+ "data-kt-file-tree-group": ""
1282
+ }, sa = /* @__PURE__ */ C({
1283
+ __name: "KFileTreeNode",
1284
+ props: {
1285
+ caretIcon: { default: "#caretRight" },
1286
+ node: {},
1287
+ tabbable: { type: Boolean, default: !1 }
1288
+ },
1289
+ setup(e) {
1290
+ const l = N(), a = u(() => e.node.id ?? e.node.label), t = u(() => Array.isArray(e.node.children) || !!e.node.lazy);
1291
+ return (n, s) => {
1292
+ const d = ge("KFileTreeNode", !0);
1293
+ return i(), r("li", Yt, [
1294
+ y("a", {
1295
+ class: "KFileTree-row",
1296
+ role: "treeitem",
1297
+ href: "#",
1298
+ "data-kftree-id": a.value,
1299
+ tabindex: e.tabbable ? 0 : -1,
1300
+ "aria-expanded": t.value ? e.node.expanded === !0 : void 0,
1301
+ "data-kt-file-tree-row": "",
1302
+ "data-kt-file-tree-lazy": e.node.lazy ? "" : void 0
1303
+ }, [
1304
+ y("span", Xt, [
1305
+ t.value ? (i(), r("svg", Zt, [
1306
+ y("use", { href: e.caretIcon }, null, 8, Qt)
1307
+ ])) : S("", !0)
1308
+ ]),
1309
+ v(n.$slots, "label", { node: e.node }, () => [
1310
+ y("span", _t, [
1311
+ e.node.icon ? (i(), r("svg", ea, [
1312
+ y("use", {
1313
+ href: e.node.icon
1314
+ }, null, 8, ta)
1315
+ ])) : S("", !0)
1316
+ ]),
1317
+ y("span", aa, D(e.node.label), 1)
1318
+ ])
1319
+ ], 8, Jt),
1320
+ e.node.children ? (i(), r("ul", la, [
1321
+ (i(!0), r(le, null, se(e.node.children, (o, m) => (i(), G(d, {
1322
+ key: o.id ?? `${o.label}-${m}`,
1323
+ "caret-icon": e.caretIcon,
1324
+ node: o
1325
+ }, ke({ _: 2 }, [
1326
+ l.label ? {
1327
+ name: "label",
1328
+ fn: F((c) => [
1329
+ v(n.$slots, "label", H({ ref_for: !0 }, c))
1330
+ ]),
1331
+ key: "0"
1332
+ } : void 0
1333
+ ]), 1032, ["caret-icon", "node"]))), 128))
1334
+ ])) : S("", !0)
1335
+ ]);
1336
+ };
1337
+ }
1338
+ }), na = ["data-kt-file-tree-activation"], J = "data-kftree-id", oa = /* @__PURE__ */ C({
1339
+ __name: "KFileTree",
1340
+ props: /* @__PURE__ */ T({
1341
+ activation: { default: "row" },
1342
+ caretIcon: { default: "#caretRight" },
1343
+ nodes: { default: () => [] }
1344
+ }, {
1345
+ selected: { default: null },
1346
+ selectedModifiers: {},
1347
+ expanded: { default: () => [] },
1348
+ expandedModifiers: {}
1349
+ }),
1350
+ emits: /* @__PURE__ */ T(["collapse", "expand", "load", "select"], ["update:selected", "update:expanded"]),
1351
+ setup(e, { expose: l, emit: a }) {
1352
+ const t = M(e, "selected"), n = M(e, "expanded"), s = a, d = N(), o = j("root");
1353
+ let m, c = null, K = /* @__PURE__ */ new Set();
1354
+ function B() {
1355
+ return !m && o.value && (m = new R.modules.FileTree(o.value, { activation: e.activation })), m;
1356
+ }
1357
+ function $(b) {
1358
+ return !b || b.closest("[data-kt-file-tree]") !== o.value ? null : b.getAttribute(J);
1359
+ }
1360
+ function f(b) {
1361
+ return o.value?.querySelector(`[${J}="${CSS.escape(b)}"]`) ?? null;
1362
+ }
1363
+ function x(b) {
1364
+ const g = $(b.target.closest(`[${J}]`));
1365
+ g && (c = g, t.value = g, s("select", g));
1366
+ }
1367
+ function I(b) {
1368
+ const g = $(b.target.closest(`[${J}]`));
1369
+ !g || K.has(g) || (K.add(g), n.value = [...n.value, g], s("expand", g));
1370
+ }
1371
+ function p(b) {
1372
+ const g = $(b.target.closest(`[${J}]`));
1373
+ !g || !K.has(g) || (K.delete(g), n.value = n.value.filter((w) => w !== g), s("collapse", g));
1374
+ }
1375
+ function z(b) {
1376
+ const g = $(b.target.closest(`[${J}]`));
1377
+ g && s("load", g);
1378
+ }
1379
+ const P = [
1380
+ ["kt.filetree.select", x],
1381
+ ["kt.filetree.expand", I],
1382
+ ["kt.filetree.collapse", p],
1383
+ ["kt.filetree.load", z]
1384
+ ];
1385
+ return L(
1386
+ o,
1387
+ (b, g, w) => {
1388
+ if (m = void 0, !b)
1389
+ return;
1390
+ for (const [A, V] of P)
1391
+ b.addEventListener(A, V);
1392
+ const k = B();
1393
+ K = new Set(n.value);
1394
+ for (const A of n.value) {
1395
+ const V = f(A);
1396
+ V && !k?.isExpanded(V) && k?.expand(V);
1397
+ }
1398
+ if (t.value) {
1399
+ const A = f(t.value);
1400
+ A && (c = t.value, k?.select(A));
1401
+ }
1402
+ w(() => {
1403
+ for (const [A, V] of P)
1404
+ b.removeEventListener(A, V);
1405
+ });
1406
+ },
1407
+ { flush: "post", immediate: !0 }
1408
+ ), L(t, (b) => {
1409
+ if (b !== c && (c = b, b)) {
1410
+ const g = f(b);
1411
+ g && B()?.select(g);
1412
+ }
1413
+ }), L(
1414
+ n,
1415
+ (b) => {
1416
+ const g = new Set(b), w = B();
1417
+ if (w) {
1418
+ for (const k of g)
1419
+ if (!K.has(k)) {
1420
+ const A = f(k);
1421
+ A && w.expand(A);
1422
+ }
1423
+ for (const k of K)
1424
+ if (!g.has(k)) {
1425
+ const A = f(k);
1426
+ A && w.collapse(A);
1427
+ }
1428
+ K = g;
1429
+ }
1430
+ },
1431
+ { deep: !0 }
1432
+ ), X(() => {
1433
+ m = void 0;
1434
+ }), l({
1435
+ collapseAll: () => B()?.collapseAll(),
1436
+ expandAll: () => B()?.expandAll()
1437
+ }), (b, g) => (i(), r("ul", {
1438
+ ref_key: "root",
1439
+ ref: o,
1440
+ class: "KFileTree",
1441
+ role: "tree",
1442
+ "data-kt-file-tree": "",
1443
+ "data-kt-file-tree-activation": e.activation
1444
+ }, [
1445
+ (i(!0), r(le, null, se(e.nodes, (w, k) => (i(), G(sa, {
1446
+ key: w.id ?? `${w.label}-${k}`,
1447
+ "caret-icon": e.caretIcon,
1448
+ node: w,
1449
+ tabbable: k === 0
1450
+ }, ke({ _: 2 }, [
1451
+ d.label ? {
1452
+ name: "label",
1453
+ fn: F((A) => [
1454
+ v(b.$slots, "label", H({ ref_for: !0 }, A))
1455
+ ]),
1456
+ key: "0"
1457
+ } : void 0
1458
+ ]), 1032, ["caret-icon", "node", "tabbable"]))), 128))
1459
+ ], 8, na));
1460
+ }
1461
+ });
1462
+ function be(e, l) {
1463
+ return l === void 0 ? [] : typeof l == "number" ? [`is-${e}-${l}`] : Object.entries(l).map(
1464
+ ([a, t]) => a === "base" ? `is-${e}-${t}` : `is-${e}-${a}-${t}`
1465
+ );
1466
+ }
1467
+ function pe(e, l, a) {
1468
+ return [
1469
+ e !== void 0 && `is-gap-${e}`,
1470
+ l !== void 0 && `is-row-gap-${l}`,
1471
+ a !== void 0 && `is-col-gap-${a}`
1472
+ ];
1473
+ }
1474
+ const ia = 12, da = /* @__PURE__ */ C({
1475
+ __name: "KGrid",
1476
+ props: {
1477
+ gap: {},
1478
+ colGap: {},
1479
+ rowGap: {},
1480
+ align: {},
1481
+ cols: {},
1482
+ justify: {},
1483
+ rows: {}
1484
+ },
1485
+ setup(e) {
1486
+ const l = u(
1487
+ () => e.cols !== void 0 && e.cols >= 1 && e.cols <= ia
1488
+ ), a = u(() => [
1489
+ "KGrid",
1490
+ l.value && `is-cols-${e.cols}`,
1491
+ ...pe(e.gap, e.rowGap, e.colGap),
1492
+ e.align && `is-align-${e.align}`,
1493
+ e.justify && `is-justify-${e.justify}`
1494
+ ]), t = u(() => {
1495
+ const n = {};
1496
+ return e.cols !== void 0 && !l.value && (n["--kt-grid-columns"] = String(Math.max(1, Math.floor(e.cols)))), e.rows !== void 0 && (n["--kt-grid-rows"] = String(e.rows)), Object.keys(n).length ? n : void 0;
1497
+ });
1498
+ return (n, s) => (i(), r("div", {
1499
+ class: h(a.value),
1500
+ style: W(t.value)
1501
+ }, [
1502
+ v(n.$slots, "default")
1503
+ ], 6));
1504
+ }
1505
+ }), ra = /* @__PURE__ */ C({
1506
+ __name: "KGridColumn",
1507
+ props: {
1508
+ alignSelf: {},
1509
+ justifySelf: {},
1510
+ row: {},
1511
+ start: {},
1512
+ span: {}
1513
+ },
1514
+ setup(e) {
1515
+ const l = u(() => [
1516
+ "KGrid-column",
1517
+ ...be("column", e.span),
1518
+ ...be("start", e.start),
1519
+ e.row !== void 0 && `is-row-${e.row}`,
1520
+ e.alignSelf && `is-align-self-${e.alignSelf}`,
1521
+ e.justifySelf && `is-justify-self-${e.justifySelf}`
1522
+ ]);
1523
+ return (a, t) => (i(), r("div", {
1524
+ class: h(l.value)
1525
+ }, [
1526
+ v(a.$slots, "default")
1527
+ ], 2));
1528
+ }
1529
+ }), ua = /* @__PURE__ */ C({
1530
+ __name: "KGridRow",
1531
+ props: {
1532
+ gap: {},
1533
+ colGap: {},
1534
+ rowGap: {}
1535
+ },
1536
+ setup(e) {
1537
+ const l = u(() => [
1538
+ "KGrid-row",
1539
+ ...pe(e.gap, e.rowGap, e.colGap)
1540
+ ]);
1541
+ return (a, t) => (i(), r("div", {
1542
+ class: h(l.value)
1543
+ }, [
1544
+ v(a.$slots, "default")
1545
+ ], 2));
1546
+ }
1547
+ }), ca = {
1548
+ class: "KIcon",
1549
+ title: "icon",
1550
+ role: "img"
1551
+ }, fa = ["href"], _ = /* @__PURE__ */ C({
1552
+ __name: "KIcon",
1553
+ props: {
1554
+ href: { default: "" }
1555
+ },
1556
+ setup(e) {
1557
+ return (l, a) => (i(), r("svg", ca, [
1558
+ y("use", {
1559
+ href: `#${e.href.replace(/^#/, "")}`
1560
+ }, null, 8, fa)
1561
+ ]));
1562
+ }
1563
+ }), va = ["aria-label"], ma = { class: "KMenuList" }, ba = {
1564
+ key: 1,
1565
+ class: "KMenuList"
1566
+ }, ha = /* @__PURE__ */ C({
1567
+ __name: "KMenuList",
1568
+ props: {
1569
+ ariaLabel: {}
1570
+ },
1571
+ setup(e) {
1572
+ return (l, a) => e.ariaLabel ? (i(), r("nav", {
1573
+ key: 0,
1574
+ "aria-label": e.ariaLabel
1575
+ }, [
1576
+ y("ul", ma, [
1577
+ v(l.$slots, "default")
1578
+ ])
1579
+ ], 8, va)) : (i(), r("ul", ba, [
1580
+ v(l.$slots, "default")
1581
+ ]));
1582
+ }
1583
+ }), ya = { class: "KMenuList-item" }, Ka = /* @__PURE__ */ C({
1584
+ __name: "KMenuListItem",
1585
+ props: {
1586
+ active: { type: Boolean, default: () => {
1587
+ } },
1588
+ disabled: { type: Boolean, default: !1 },
1589
+ href: {},
1590
+ to: {}
1591
+ },
1592
+ setup(e) {
1593
+ const l = ue({ to: u(() => e.to ?? "/") }), a = u(() => e.to || e.href ? "a" : "button"), t = u(() => e.to ? l.href.value : e.href), n = u(() => e.active ?? (e.to ? l.isActive.value : !1)), s = u(() => [
1594
+ "KMenuList-link",
1595
+ n.value && "is-active",
1596
+ // A button carries the native attribute, which core styles on its own.
1597
+ e.disabled && a.value === "a" && "is-disabled"
1598
+ ]);
1599
+ function d(o) {
1600
+ if (e.disabled) {
1601
+ o.preventDefault();
1602
+ return;
1603
+ }
1604
+ e.to && (o.preventDefault(), l.navigate(o));
1605
+ }
1606
+ return (o, m) => (i(), r("li", ya, [
1607
+ (i(), G(re(a.value), {
1608
+ class: h(s.value),
1609
+ href: a.value === "a" ? t.value : void 0,
1610
+ type: a.value === "button" ? "button" : void 0,
1611
+ disabled: a.value === "button" ? e.disabled : void 0,
1612
+ "aria-disabled": a.value === "a" && e.disabled ? "true" : void 0,
1613
+ "aria-current": n.value ? "page" : void 0,
1614
+ onClick: d
1615
+ }, {
1616
+ default: F(() => [
1617
+ v(o.$slots, "default")
1618
+ ]),
1619
+ _: 3
1620
+ }, 8, ["class", "href", "type", "disabled", "aria-disabled", "aria-current"]))
1621
+ ]));
1622
+ }
1623
+ }), ga = ["data-kt-modal-id", "data-kt-modal-static-backdrop"], ka = ["aria-label", "aria-labelledby"], $a = ["id"], Ca = /* @__PURE__ */ C({
1624
+ __name: "KModal",
1625
+ props: /* @__PURE__ */ T({
1626
+ bodyClass: { type: [Boolean, null, String, Object, Array] },
1627
+ centered: { type: Boolean, default: !1 },
1628
+ closable: { type: Boolean, default: !0 },
1629
+ containerClass: { type: [Boolean, null, String, Object, Array] },
1630
+ dialogClass: { type: [Boolean, null, String, Object, Array] },
1631
+ dialogLabel: {},
1632
+ focus: { type: Boolean, default: !0 },
1633
+ footerClass: { type: [Boolean, null, String, Object, Array] },
1634
+ fullscreen: { type: Boolean, default: !1 },
1635
+ headerClass: { type: [Boolean, null, String, Object, Array] },
1636
+ id: {},
1637
+ keyboard: { type: Boolean, default: !0 },
1638
+ mainClass: { type: [Boolean, null, String, Object, Array] },
1639
+ scrollable: { type: Boolean, default: !1 },
1640
+ sidebarClass: { type: [Boolean, null, String, Object, Array] },
1641
+ size: {},
1642
+ staticBackdrop: { type: Boolean, default: !1 },
1643
+ title: {},
1644
+ teleport: { type: Boolean, default: !0 }
1645
+ }, {
1646
+ open: { type: Boolean, default: !1 },
1647
+ openModifiers: {}
1648
+ }),
1649
+ emits: /* @__PURE__ */ T(["hide", "hidden", "show", "shown"], ["update:open"]),
1650
+ setup(e, { expose: l, emit: a }) {
1651
+ const t = M(e, "open"), n = a, s = N(), d = j("root");
1652
+ let o, m = !1;
1653
+ const c = ee(), K = u(() => e.id ?? c), B = u(() => `${K.value}-title`), $ = u(() => !!(e.title || s.title)), f = u(() => !!(s.header || $.value || e.closable)), x = u(() => [
1654
+ "KModal",
1655
+ e.centered && "KModal--centered",
1656
+ e.scrollable && "KModal--scrollable",
1657
+ e.size && `KModal--${e.size}`,
1658
+ e.fullscreen && "KModal--fullscreen"
1659
+ ]);
1660
+ function I() {
1661
+ return !o && d.value && (o = new R.modules.Modal(d.value, {
1662
+ focus: e.focus,
1663
+ keyboard: e.keyboard,
1664
+ staticBackdrop: e.staticBackdrop
1665
+ })), o;
1666
+ }
1667
+ L(
1668
+ () => [e.focus, e.keyboard, e.staticBackdrop],
1669
+ () => {
1670
+ o = void 0;
1671
+ }
1672
+ ), L(
1673
+ t,
1674
+ (k) => {
1675
+ if (k === m)
1676
+ return;
1677
+ const A = I();
1678
+ A && (m = k, k ? A.show() : A.hide());
1679
+ },
1680
+ { flush: "post" }
1681
+ );
1682
+ const p = (k) => k.target === d.value, z = {
1683
+ "kt.modal.show": (k) => {
1684
+ p(k) && (m = !0, t.value = !0, n("show"));
1685
+ },
1686
+ "kt.modal.shown": (k) => {
1687
+ p(k) && n("shown");
1688
+ },
1689
+ "kt.modal.hide": (k) => {
1690
+ p(k) && (m = !1, t.value = !1, n("hide"));
1691
+ },
1692
+ "kt.modal.hidden": (k) => {
1693
+ p(k) && n("hidden");
1694
+ }
1695
+ };
1696
+ L(
1697
+ d,
1698
+ (k, A, V) => {
1699
+ if (o = void 0, !!k) {
1700
+ for (const [q, ne] of Object.entries(z))
1701
+ k.addEventListener(q, ne);
1702
+ k.setAttribute("aria-hidden", "true"), t.value && I()?.show(), V(() => {
1703
+ for (const [q, ne] of Object.entries(z))
1704
+ k.removeEventListener(q, ne);
1705
+ });
1706
+ }
1707
+ },
1708
+ { flush: "post", immediate: !0 }
1709
+ );
1710
+ function P(k) {
1711
+ e.keyboard || k.key !== "Escape" || d.value?.classList.contains("is-active") && k.stopPropagation();
1712
+ }
1713
+ Q(() => document.addEventListener("keydown", P, !0)), X(() => {
1714
+ d.value?.classList.contains("is-active") && document.body.classList.remove("is-modal-active"), document.removeEventListener("keydown", P, !0);
1715
+ });
1716
+ function b() {
1717
+ t.value = !0;
1718
+ }
1719
+ function g() {
1720
+ t.value = !1;
1721
+ }
1722
+ function w() {
1723
+ t.value = !t.value;
1724
+ }
1725
+ return l({ show: b, hide: g, toggle: w }), (k, A) => (i(), G(Ke, {
1726
+ to: "body",
1727
+ disabled: !e.teleport
1728
+ }, [
1729
+ y("div", {
1730
+ ref_key: "root",
1731
+ ref: d,
1732
+ class: h(x.value),
1733
+ "data-kt-modal-id": K.value,
1734
+ "data-kt-modal-static-backdrop": e.staticBackdrop ? "true" : "false",
1735
+ "data-kt-modal": "",
1736
+ tabindex: "-1"
1737
+ }, [
1738
+ y("div", {
1739
+ class: h(["KModal-container", e.containerClass])
1740
+ }, [
1741
+ y("div", {
1742
+ class: h(["KModal-dialog", e.dialogClass]),
1743
+ "aria-label": e.dialogLabel,
1744
+ "aria-labelledby": !e.dialogLabel && $.value ? B.value : void 0,
1745
+ "data-kt-modal-dialog": "",
1746
+ role: "dialog"
1747
+ }, [
1748
+ f.value ? (i(), r("div", {
1749
+ key: 0,
1750
+ class: h(["KModal-header", e.headerClass])
1751
+ }, [
1752
+ v(k.$slots, "header", {}, () => [
1753
+ $.value ? (i(), r("h5", {
1754
+ key: 0,
1755
+ id: B.value,
1756
+ class: "KModal-title"
1757
+ }, [
1758
+ v(k.$slots, "title", {}, () => [
1759
+ O(D(e.title), 1)
1760
+ ])
1761
+ ], 8, $a)) : S("", !0),
1762
+ e.closable ? (i(), r("button", {
1763
+ key: 1,
1764
+ class: "KModal-close",
1765
+ type: "button",
1766
+ "aria-label": "Close",
1767
+ onClick: Y(g, ["stop"])
1768
+ }, [
1769
+ v(k.$slots, "close", {}, () => [
1770
+ A[0] || (A[0] = O("✕", -1))
1771
+ ])
1772
+ ])) : S("", !0)
1773
+ ])
1774
+ ], 2)) : S("", !0),
1775
+ s.sidebar ? (i(), r("div", {
1776
+ key: 1,
1777
+ class: h(["KModal-main", e.mainClass])
1778
+ }, [
1779
+ y("aside", {
1780
+ class: h(["KModal-sidebar", e.sidebarClass])
1781
+ }, [
1782
+ v(k.$slots, "sidebar")
1783
+ ], 2),
1784
+ y("div", {
1785
+ class: h(["KModal-body", e.bodyClass])
1786
+ }, [
1787
+ v(k.$slots, "default")
1788
+ ], 2)
1789
+ ], 2)) : (i(), r("div", {
1790
+ key: 2,
1791
+ class: h(["KModal-body", e.bodyClass])
1792
+ }, [
1793
+ v(k.$slots, "default")
1794
+ ], 2)),
1795
+ s.footer ? (i(), r("div", {
1796
+ key: 3,
1797
+ class: h(["KModal-footer", e.footerClass])
1798
+ }, [
1799
+ v(k.$slots, "footer")
1800
+ ], 2)) : S("", !0)
1801
+ ], 10, ka)
1802
+ ], 2)
1803
+ ], 10, ga)
1804
+ ], 8, ["disabled"]));
1805
+ }
1806
+ }), Ba = { class: "KNavbar-menu" }, wa = ["href", "onClick"], Sa = {
1807
+ key: 0,
1808
+ class: /* @__PURE__ */ h(["KNavbar-caret", "KCollapse-toggle"]),
152
1809
  "data-kt-collapse-toggle": ""
153
- }, I = /* @__PURE__ */ K({
1810
+ }, xe = /* @__PURE__ */ C({
154
1811
  __name: "KNavbarMenu",
155
1812
  props: {
156
1813
  items: { default: () => [] }
157
1814
  },
158
1815
  setup(e) {
159
- const a = b(() => e.items.filter(({ hidden: n }) => !n));
160
- return (n, d) => {
161
- const r = p("KIcon"), i = p("KNavbarMenu", !0);
162
- return o(), s("ul", X, [
163
- (o(!0), s(O, null, A(a.value, (t, v) => u(n.$slots, "item", {
164
- key: `navbar-menu-item-${v}`,
165
- item: t
1816
+ const l = u(() => e.items.filter(({ hidden: a }) => !a));
1817
+ return (a, t) => {
1818
+ const n = ge("KNavbarMenu", !0);
1819
+ return i(), r("ul", Ba, [
1820
+ (i(!0), r(le, null, se(l.value, (s, d) => v(a.$slots, "item", {
1821
+ key: `navbar-menu-item-${d}`,
1822
+ item: s
166
1823
  }, () => [
167
- g(D(U), {
168
- to: t.route ?? "/",
1824
+ U(E(Oe), {
1825
+ to: s.route ?? "/",
169
1826
  custom: ""
170
1827
  }, {
171
- default: h(({ isActive: y, href: M, navigate: S }) => [
172
- c("li", {
173
- class: l([
1828
+ default: F(({ isActive: o, href: m, navigate: c }) => [
1829
+ y("li", {
1830
+ class: h([
174
1831
  "KNavbar-item",
175
1832
  "KCollapse is-collapsed",
176
- y && "KNavbar-item-is-active"
1833
+ o && "KNavbar-item-is-active"
177
1834
  ]),
178
1835
  "data-kt-collapse": ""
179
1836
  }, [
180
- c("a", {
181
- class: l(["KNavbar-link"]),
182
- href: t.route ? M : void 0,
183
- onClick: L((ee) => t.route ? S() : t.onClick?.(), ["prevent"])
1837
+ y("a", {
1838
+ class: h(["KNavbar-link"]),
1839
+ href: s.route ? m : void 0,
1840
+ onClick: Y((K) => s.route ? c() : s.onClick?.(), ["prevent"])
184
1841
  }, [
185
- c("span", {
186
- class: l(["KNavbar-icon", t.iconClass])
1842
+ y("span", {
1843
+ class: h(["KNavbar-icon", s.iconClass])
187
1844
  }, [
188
- g(r, {
189
- href: t.icon
1845
+ U(_, {
1846
+ href: s.icon
190
1847
  }, null, 8, ["href"])
191
1848
  ], 2),
192
- t.badge ? (o(), m(W, {
1849
+ s.badge ? (i(), G(Ce, {
193
1850
  key: 0,
194
- class: l(["KNavbar-badge", t.badgeClass]),
1851
+ class: h(["KNavbar-badge", s.badgeClass]),
195
1852
  pill: "",
196
1853
  size: "sm",
197
1854
  variant: "danger"
198
1855
  }, {
199
- default: h(() => [
200
- T(C(t.badge), 1)
1856
+ default: F(() => [
1857
+ O(D(s.badge), 1)
201
1858
  ]),
202
1859
  _: 2
203
- }, 1032, ["class"])) : f("", !0),
204
- c("span", {
205
- class: l(["KNavbar-text", t.textClass])
206
- }, C(t.text), 3)
207
- ], 8, Y),
208
- t.children ? (o(), s("span", Z, [
209
- g(r, { href: "#caretUp" })
210
- ])) : f("", !0),
211
- t.children ? (o(), m(i, {
1860
+ }, 1032, ["class"])) : S("", !0),
1861
+ y("span", {
1862
+ class: h(["KNavbar-text", s.textClass])
1863
+ }, D(s.text), 3)
1864
+ ], 8, wa),
1865
+ s.children ? (i(), r("span", Sa, [
1866
+ U(_, { href: "#caretUp" })
1867
+ ])) : S("", !0),
1868
+ s.children ? (i(), G(n, {
212
1869
  key: 1,
213
- items: t.children,
1870
+ items: s.children,
214
1871
  class: "KCollapse-content",
215
1872
  "data-kt-collapse-content": ""
216
- }, null, 8, ["items"])) : f("", !0)
1873
+ }, null, 8, ["items"])) : S("", !0)
217
1874
  ], 2)
218
1875
  ]),
219
1876
  _: 2
@@ -222,9 +1879,9 @@ const E = /* @__PURE__ */ K({
222
1879
  ]);
223
1880
  };
224
1881
  }
225
- }), _ = /* @__PURE__ */ K({
1882
+ }), pa = /* @__PURE__ */ C({
226
1883
  __name: "KNavbar",
227
- props: /* @__PURE__ */ B({
1884
+ props: /* @__PURE__ */ T({
228
1885
  items: {},
229
1886
  bodyClass: { type: [Boolean, null, String, Object, Array] },
230
1887
  brandClass: { type: [Boolean, null, String, Object, Array] },
@@ -237,77 +1894,831 @@ const E = /* @__PURE__ */ K({
237
1894
  expanded: { type: Boolean, default: !1 },
238
1895
  expandedModifiers: {}
239
1896
  }),
240
- emits: /* @__PURE__ */ B(["toggle"], ["update:expanded"]),
241
- setup(e, { emit: a }) {
242
- const n = k(e, "expanded"), d = a, r = x(), i = () => {
243
- n.value = !n.value, d("toggle", n.value);
1897
+ emits: /* @__PURE__ */ T(["toggle"], ["update:expanded"]),
1898
+ setup(e, { emit: l }) {
1899
+ const a = M(e, "expanded"), t = l, n = N(), s = () => {
1900
+ a.value = !a.value, t("toggle", a.value);
244
1901
  };
245
- return (t, v) => {
246
- const y = p("KIcon");
247
- return o(), s("aside", {
248
- class: l([
249
- "KNavbar",
250
- n.value && "KNavbar-is-expanded",
251
- e.fixed && "KNavbar-is-fixed"
1902
+ return (d, o) => (i(), r("aside", {
1903
+ class: h([
1904
+ "KNavbar",
1905
+ a.value && "KNavbar-is-expanded",
1906
+ e.fixed && "KNavbar-is-fixed"
1907
+ ])
1908
+ }, [
1909
+ y("div", {
1910
+ class: h(["KNavbar-inner", e.innerClass])
1911
+ }, [
1912
+ n.brand ? (i(), r("div", {
1913
+ key: 0,
1914
+ class: h(["KNavbar-brand", e.brandClass])
1915
+ }, [
1916
+ v(d.$slots, "brand")
1917
+ ], 2)) : S("", !0),
1918
+ y("nav", {
1919
+ class: h(["KNavbar-body", e.bodyClass])
1920
+ }, [
1921
+ v(d.$slots, "default", {}, () => [
1922
+ U(xe, { items: e.items }, null, 8, ["items"])
1923
+ ])
1924
+ ], 2),
1925
+ n.footer ? (i(), r("div", {
1926
+ key: 1,
1927
+ class: h(["KNavbar-footer", e.footerClass])
1928
+ }, [
1929
+ v(d.$slots, "footer")
1930
+ ], 2)) : S("", !0)
1931
+ ], 2),
1932
+ e.hideToggle ? S("", !0) : (i(), r("button", {
1933
+ key: 0,
1934
+ type: "button",
1935
+ class: h(["KNavbar-toggle", e.toggleClass]),
1936
+ onClick: s
1937
+ }, [
1938
+ U(_, { href: "#caretLeft" })
1939
+ ], 2))
1940
+ ], 2));
1941
+ }
1942
+ }), xa = ["aria-label"], Aa = /* @__PURE__ */ C({
1943
+ __name: "KNotificationList",
1944
+ props: {
1945
+ ariaLabel: {}
1946
+ },
1947
+ setup(e) {
1948
+ return (l, a) => (i(), r("ul", {
1949
+ class: "KNotificationList",
1950
+ "aria-label": e.ariaLabel
1951
+ }, [
1952
+ v(l.$slots, "default")
1953
+ ], 8, xa));
1954
+ }
1955
+ }), Ta = {
1956
+ key: 0,
1957
+ class: "KNotificationList-media"
1958
+ }, La = { class: "KNotificationList-content" }, Ia = {
1959
+ key: 1,
1960
+ class: "KNotificationList-time"
1961
+ }, Ma = {
1962
+ key: 2,
1963
+ class: "KNotificationList-actions"
1964
+ }, Da = /* @__PURE__ */ C({
1965
+ __name: "KNotificationListItem",
1966
+ props: {
1967
+ hovered: { type: Boolean, default: !1 },
1968
+ time: {},
1969
+ unread: { type: Boolean, default: !1 },
1970
+ unreadLabel: {}
1971
+ },
1972
+ setup(e) {
1973
+ const l = N(), a = u(() => [
1974
+ "KNotificationList-item",
1975
+ e.unread && "is-active",
1976
+ e.hovered && "is-hovered"
1977
+ ]), t = {
1978
+ position: "absolute",
1979
+ width: "1px",
1980
+ height: "1px",
1981
+ overflow: "hidden",
1982
+ clip: "rect(0 0 0 0)",
1983
+ clipPath: "inset(50%)",
1984
+ whiteSpace: "nowrap"
1985
+ }, n = u(() => !!(l.time || e.time));
1986
+ return (s, d) => (i(), r("li", {
1987
+ class: h(a.value)
1988
+ }, [
1989
+ l.media ? (i(), r("div", Ta, [
1990
+ v(s.$slots, "media")
1991
+ ])) : S("", !0),
1992
+ y("div", La, [
1993
+ e.unread && e.unreadLabel ? (i(), r("span", {
1994
+ key: 0,
1995
+ style: t
1996
+ }, D(e.unreadLabel), 1)) : S("", !0),
1997
+ v(s.$slots, "default")
1998
+ ]),
1999
+ n.value ? (i(), r("div", Ia, [
2000
+ v(s.$slots, "time", {}, () => [
2001
+ O(D(e.time), 1)
252
2002
  ])
2003
+ ])) : S("", !0),
2004
+ l.actions ? (i(), r("div", Ma, [
2005
+ v(s.$slots, "actions")
2006
+ ])) : S("", !0)
2007
+ ], 2));
2008
+ }
2009
+ }), za = ["data-kt-popover-placement"], Ea = /* @__PURE__ */ C({
2010
+ __name: "KPopover",
2011
+ props: /* @__PURE__ */ T({
2012
+ contentClass: { type: [Boolean, null, String, Object, Array] },
2013
+ placement: { default: "bottom-start" },
2014
+ toggleClass: { type: [Boolean, null, String, Object, Array] }
2015
+ }, {
2016
+ open: { type: Boolean, default: !1 },
2017
+ openModifiers: {}
2018
+ }),
2019
+ emits: /* @__PURE__ */ T(["hidden", "shown"], ["update:open"]),
2020
+ setup(e, { expose: l, emit: a }) {
2021
+ const t = M(e, "open"), n = a, s = j("root"), { toggle: d } = Se({
2022
+ create: (o) => new R.modules.Popover(o, { placement: e.placement }),
2023
+ element: s,
2024
+ open: t,
2025
+ // TypeScript cannot correlate a union event name against the overloaded emit
2026
+ // signature. Neither event carries a payload, so this is accurate.
2027
+ onEvent: (o) => n(o)
2028
+ });
2029
+ return l({
2030
+ toggle: d,
2031
+ show: () => t.value = !0,
2032
+ hide: () => t.value = !1
2033
+ }), (o, m) => (i(), r("div", {
2034
+ ref_key: "root",
2035
+ ref: s,
2036
+ class: "KPopover",
2037
+ "data-kt-popover": "",
2038
+ "data-kt-popover-placement": e.placement
2039
+ }, [
2040
+ y("span", {
2041
+ class: h(["KPopover-toggle", e.toggleClass]),
2042
+ "data-kt-popover-toggle": ""
2043
+ }, [
2044
+ v(o.$slots, "toggle", {
2045
+ open: t.value,
2046
+ toggle: E(d)
2047
+ })
2048
+ ], 2),
2049
+ y("div", {
2050
+ class: h(["KPopover-content", e.contentClass]),
2051
+ "data-kt-popover-content": ""
2052
+ }, [
2053
+ v(o.$slots, "default")
2054
+ ], 2)
2055
+ ], 8, za));
2056
+ }
2057
+ }), Na = ["aria-valuenow", "aria-valuemax"], Oa = ["viewBox"], ja = {
2058
+ key: 1,
2059
+ class: "KProgress-fill"
2060
+ }, Va = { class: "KProgress-label" }, Ra = /* @__PURE__ */ C({
2061
+ __name: "KProgress",
2062
+ props: {
2063
+ label: {},
2064
+ max: { default: 100 },
2065
+ rounded: { type: Boolean, default: !1 },
2066
+ shape: { default: "linear" },
2067
+ size: {},
2068
+ value: { default: 0 }
2069
+ },
2070
+ setup(e) {
2071
+ const l = u(() => e.shape === "circular" || e.shape === "semiCircular"), a = u(() => !Number.isFinite(e.max) || e.max <= 0 ? 0 : Math.min(100, Math.max(0, e.value / e.max * 100))), t = u(() => e.label ?? `${Math.round(a.value)}%`), n = u(() => [
2072
+ "KProgress",
2073
+ e.shape !== "linear" && `KProgress--${e.shape}`,
2074
+ e.rounded && "KProgress--rounded",
2075
+ // `md` is the default and has no modifier of its own.
2076
+ e.size && e.size !== "md" && `KProgress--${e.size}`
2077
+ ]), s = u(
2078
+ () => e.shape === "semiCircular" ? "0 0 36 20" : "0 0 36 36"
2079
+ );
2080
+ return (d, o) => (i(), r("div", {
2081
+ class: h(n.value),
2082
+ style: W({ "--kt-progress-value": a.value }),
2083
+ "aria-valuenow": e.value,
2084
+ "aria-valuemin": 0,
2085
+ "aria-valuemax": e.max,
2086
+ role: "progressbar"
2087
+ }, [
2088
+ l.value ? (i(), r("svg", {
2089
+ key: 0,
2090
+ class: "KProgress-svg",
2091
+ viewBox: s.value,
2092
+ fill: "none",
2093
+ xmlns: "http://www.w3.org/2000/svg"
2094
+ }, [...o[0] || (o[0] = [
2095
+ y("circle", {
2096
+ class: "KProgress-track",
2097
+ cx: "18",
2098
+ cy: "18",
2099
+ r: "15.9"
2100
+ }, null, -1),
2101
+ y("circle", {
2102
+ class: "KProgress-fill",
2103
+ cx: "18",
2104
+ cy: "18",
2105
+ r: "15.9"
2106
+ }, null, -1)
2107
+ ])], 8, Oa)) : (i(), r("div", ja)),
2108
+ y("span", Va, [
2109
+ v(d.$slots, "label", {}, () => [
2110
+ O(D(t.value), 1)
2111
+ ])
2112
+ ])
2113
+ ], 14, Na));
2114
+ }
2115
+ }), Pa = ["checked", "disabled", "name"], Ga = {
2116
+ key: 0,
2117
+ class: "KRadio-label"
2118
+ }, Fa = /* @__PURE__ */ C({
2119
+ inheritAttrs: !1,
2120
+ __name: "KRadio",
2121
+ props: /* @__PURE__ */ T({
2122
+ disabled: { type: Boolean, default: !1 },
2123
+ label: {},
2124
+ name: {},
2125
+ value: {}
2126
+ }, {
2127
+ modelValue: {},
2128
+ modelModifiers: {}
2129
+ }),
2130
+ emits: ["update:modelValue"],
2131
+ setup(e) {
2132
+ const l = M(e, "modelValue"), a = N(), t = ae(), n = u(() => l.value === e.value), s = u(() => ["KRadio", e.disabled && "KRadio--disabled"]), d = u(() => {
2133
+ const { class: m, style: c, ...K } = t;
2134
+ return K;
2135
+ });
2136
+ function o() {
2137
+ l.value = e.value;
2138
+ }
2139
+ return (m, c) => (i(), r("label", {
2140
+ class: h([s.value, E(t).class]),
2141
+ style: W(E(t).style)
2142
+ }, [
2143
+ y("input", H({
2144
+ class: "KRadio-input",
2145
+ type: "radio"
2146
+ }, d.value, {
2147
+ checked: n.value,
2148
+ disabled: e.disabled,
2149
+ name: e.name,
2150
+ onChange: o
2151
+ }), null, 16, Pa),
2152
+ c[0] || (c[0] = y("span", { class: "KRadio-box" }, null, -1)),
2153
+ a.default || e.label ? (i(), r("span", Ga, [
2154
+ v(m.$slots, "default", {}, () => [
2155
+ O(D(e.label), 1)
2156
+ ])
2157
+ ])) : S("", !0)
2158
+ ], 6));
2159
+ }
2160
+ }), Ha = ["disabled"], Ua = {
2161
+ class: "KSelect-caret KIcon",
2162
+ "aria-hidden": "true"
2163
+ }, Wa = ["href"], qa = ["data-kt-select-value"], Ya = /* @__PURE__ */ C({
2164
+ __name: "KSelect",
2165
+ props: /* @__PURE__ */ T({
2166
+ disabled: { type: Boolean, default: !1 },
2167
+ icon: { default: "#caretDown" },
2168
+ inline: { type: Boolean, default: !1 },
2169
+ menuClass: { type: [Boolean, null, String, Object, Array] },
2170
+ options: { default: () => [] },
2171
+ placeholder: { default: "Select an option" },
2172
+ toggleClass: { type: [Boolean, null, String, Object, Array] }
2173
+ }, {
2174
+ modelValue: {},
2175
+ modelModifiers: {}
2176
+ }),
2177
+ emits: /* @__PURE__ */ T(["change"], ["update:modelValue"]),
2178
+ setup(e, { emit: l }) {
2179
+ const a = M(e, "modelValue"), t = l, n = j("root");
2180
+ let s, d;
2181
+ const o = u(
2182
+ () => e.options.map(
2183
+ (f) => typeof f == "string" ? { label: f, value: f } : f
2184
+ )
2185
+ ), m = u(
2186
+ () => o.value.find((f) => f.value === a.value)?.label
2187
+ );
2188
+ function c() {
2189
+ return !s && n.value && (s = new R.modules.Select(n.value)), s;
2190
+ }
2191
+ function K(f) {
2192
+ const x = n.value;
2193
+ if (!x || f === void 0)
2194
+ return;
2195
+ const I = x.querySelector(
2196
+ `[data-kt-select-item][data-kt-select-value="${CSS.escape(f)}"]`
2197
+ );
2198
+ I && (d = f, c()?.selectItem(I));
2199
+ }
2200
+ function B(f) {
2201
+ if (f.target !== n.value)
2202
+ return;
2203
+ const x = c()?.getValue() ?? void 0;
2204
+ x !== void 0 && (d = x, a.value = x, t("change", x));
2205
+ }
2206
+ L(
2207
+ a,
2208
+ (f) => {
2209
+ f !== d && K(f);
2210
+ },
2211
+ { flush: "post" }
2212
+ ), L(
2213
+ n,
2214
+ (f, x, I) => {
2215
+ s = void 0, f && (f.addEventListener("kt.select.change", B), a.value !== void 0 && K(a.value), I(() => f.removeEventListener("kt.select.change", B)));
2216
+ },
2217
+ { flush: "post", immediate: !0 }
2218
+ );
2219
+ const $ = u(() => [
2220
+ "KSelect",
2221
+ e.inline && "KSelect--inline",
2222
+ e.disabled && "KSelect--disabled",
2223
+ e.disabled && "is-disabled"
2224
+ ]);
2225
+ return (f, x) => (i(), r("div", {
2226
+ ref_key: "root",
2227
+ ref: n,
2228
+ class: h($.value),
2229
+ "data-kt-select": ""
2230
+ }, [
2231
+ y("button", {
2232
+ class: h(["KSelect-toggle", e.toggleClass]),
2233
+ type: "button",
2234
+ "data-kt-select-toggle": "",
2235
+ disabled: e.disabled
2236
+ }, [
2237
+ y("span", {
2238
+ class: h(["KSelect-label", !m.value && "is-placeholder"]),
2239
+ "data-kt-select-label": ""
2240
+ }, D(m.value ?? e.placeholder), 3),
2241
+ (i(), r("svg", Ua, [
2242
+ y("use", { href: e.icon }, null, 8, Wa)
2243
+ ]))
2244
+ ], 10, Ha),
2245
+ y("div", {
2246
+ class: h(["KSelect-menu", e.menuClass]),
2247
+ "data-kt-select-menu": ""
253
2248
  }, [
254
- c("div", {
255
- class: l(["KNavbar-inner", e.innerClass])
2249
+ v(f.$slots, "default", {}, () => [
2250
+ (i(!0), r(le, null, se(o.value, (I) => (i(), r("div", {
2251
+ key: I.value,
2252
+ class: "KSelect-item",
2253
+ "data-kt-select-item": "",
2254
+ "data-kt-select-value": I.value
2255
+ }, D(I.label), 9, qa))), 128))
2256
+ ])
2257
+ ], 2)
2258
+ ], 2));
2259
+ }
2260
+ }), ve = /* @__PURE__ */ Symbol("KTabs"), Ja = ["data-ktab-name", "data-kt-tabs-tab", "data-kt-tabs-target", "aria-controls", "disabled"], Xa = /* @__PURE__ */ C({
2261
+ __name: "KTab",
2262
+ props: {
2263
+ disabled: { type: Boolean, default: !1 },
2264
+ name: {}
2265
+ },
2266
+ setup(e) {
2267
+ const l = te(ve, void 0), a = u(() => l?.panelId(e.name));
2268
+ return (t, n) => (i(), r("button", {
2269
+ class: "KTabs-tab",
2270
+ type: "button",
2271
+ role: "tab",
2272
+ "data-ktab-name": e.name,
2273
+ "data-kt-tabs-tab": e.disabled ? void 0 : "",
2274
+ "data-kt-tabs-target": a.value,
2275
+ "aria-controls": a.value,
2276
+ disabled: e.disabled
2277
+ }, [
2278
+ v(t.$slots, "default")
2279
+ ], 8, Ja));
2280
+ }
2281
+ }), Za = /* @__PURE__ */ C({
2282
+ __name: "KTable",
2283
+ props: {
2284
+ borderless: { type: Boolean, default: !1 },
2285
+ hoverable: { type: Boolean, default: !1 },
2286
+ size: {},
2287
+ striped: { type: Boolean, default: !1 }
2288
+ },
2289
+ setup(e) {
2290
+ const l = u(() => [
2291
+ "KTable",
2292
+ e.borderless && "KTable--borderless",
2293
+ e.hoverable && "KTable--hoverable",
2294
+ e.striped && "KTable--striped",
2295
+ // `md` is the default and has no modifier of its own.
2296
+ e.size && e.size !== "md" && `KTable--${e.size}`
2297
+ ]);
2298
+ return (a, t) => (i(), r("table", {
2299
+ class: h(l.value)
2300
+ }, [
2301
+ v(a.$slots, "default")
2302
+ ], 2));
2303
+ }
2304
+ }), Qa = ["id"], _a = /* @__PURE__ */ C({
2305
+ __name: "KTabPanel",
2306
+ props: {
2307
+ name: {}
2308
+ },
2309
+ setup(e) {
2310
+ const l = te(ve, void 0), a = u(() => l?.panelId(e.name));
2311
+ return (t, n) => (i(), r("div", {
2312
+ id: a.value,
2313
+ class: "KTabs-panel",
2314
+ role: "tabpanel",
2315
+ "data-kt-tabs-panel": ""
2316
+ }, [
2317
+ v(t.$slots, "default")
2318
+ ], 8, Qa));
2319
+ }
2320
+ }), el = ["aria-label"], tl = { class: "KTabs-content" }, Z = "data-ktab-name", al = /* @__PURE__ */ C({
2321
+ __name: "KTabs",
2322
+ props: /* @__PURE__ */ T({
2323
+ ariaLabel: { default: "Tabs" },
2324
+ variant: {}
2325
+ }, {
2326
+ modelValue: {},
2327
+ modelModifiers: {}
2328
+ }),
2329
+ emits: /* @__PURE__ */ T(["shown"], ["update:modelValue"]),
2330
+ setup(e, { expose: l, emit: a }) {
2331
+ const t = M(e, "modelValue"), n = a, s = ee(), d = j("root");
2332
+ let o;
2333
+ const m = (f) => `${s}-${f.replace(
2334
+ /[^A-Za-z0-9_]/g,
2335
+ (x) => `-${x.charCodeAt(0).toString(16)}-`
2336
+ )}`;
2337
+ de(ve, { active: u(() => t.value), panelId: m });
2338
+ const c = `[${Z}][data-kt-tabs-tab]`;
2339
+ function K(f) {
2340
+ return d.value?.querySelector(
2341
+ `[${Z}="${CSS.escape(f)}"][data-kt-tabs-tab]`
2342
+ ) ?? null;
2343
+ }
2344
+ function B(f) {
2345
+ const x = K(f);
2346
+ x && (o = f, new R.modules.Tabs(x).show(x));
2347
+ }
2348
+ function $(f) {
2349
+ if (f.target !== d.value)
2350
+ return;
2351
+ const I = d.value?.querySelector(
2352
+ `[${Z}].is-active`
2353
+ )?.getAttribute(Z) ?? void 0;
2354
+ I && (o = I, t.value = I, n("shown", I));
2355
+ }
2356
+ return L(
2357
+ t,
2358
+ (f) => {
2359
+ !f || f === o || B(f);
2360
+ },
2361
+ { flush: "post" }
2362
+ ), L(
2363
+ d,
2364
+ (f, x, I) => {
2365
+ if (!f)
2366
+ return;
2367
+ f.addEventListener("kt.tabs.shown", $);
2368
+ const p = t.value ?? f.querySelector(c)?.getAttribute(Z) ?? void 0;
2369
+ p && (t.value = p, B(p)), I(() => f.removeEventListener("kt.tabs.shown", $));
2370
+ },
2371
+ { flush: "post", immediate: !0 }
2372
+ ), l({ show: (f) => t.value = f }), (f, x) => (i(), r("div", {
2373
+ ref_key: "root",
2374
+ ref: d,
2375
+ "data-kt-tabs": ""
2376
+ }, [
2377
+ y("div", {
2378
+ class: h(["KTabs", e.variant && `KTabs--${e.variant}`]),
2379
+ role: "tablist",
2380
+ "aria-label": e.ariaLabel
2381
+ }, [
2382
+ v(f.$slots, "tabs")
2383
+ ], 10, el),
2384
+ y("div", tl, [
2385
+ v(f.$slots, "default")
2386
+ ])
2387
+ ], 512));
2388
+ }
2389
+ }), ll = ["disabled"], sl = {
2390
+ key: 0,
2391
+ class: "KToggle-label"
2392
+ }, nl = /* @__PURE__ */ C({
2393
+ inheritAttrs: !1,
2394
+ __name: "KToggle",
2395
+ props: /* @__PURE__ */ T({
2396
+ disabled: { type: Boolean, default: !1 },
2397
+ label: {}
2398
+ }, {
2399
+ modelValue: { type: Boolean, default: !1 },
2400
+ modelModifiers: {}
2401
+ }),
2402
+ emits: ["update:modelValue"],
2403
+ setup(e) {
2404
+ const l = M(e, "modelValue"), a = N(), t = ae(), n = u(() => ["KToggle", e.disabled && "KToggle--disabled"]), s = u(() => {
2405
+ const { class: d, style: o, ...m } = t;
2406
+ return m;
2407
+ });
2408
+ return (d, o) => (i(), r("label", {
2409
+ class: h([n.value, E(t).class]),
2410
+ style: W(E(t).style)
2411
+ }, [
2412
+ ie(y("input", H({
2413
+ "onUpdate:modelValue": o[0] || (o[0] = (m) => l.value = m),
2414
+ class: "KToggle-input",
2415
+ type: "checkbox"
2416
+ }, s.value, { disabled: e.disabled }), null, 16, ll), [
2417
+ [ze, l.value]
2418
+ ]),
2419
+ o[1] || (o[1] = y("span", { class: "KToggle-track" }, [
2420
+ y("span", { class: "KToggle-thumb" })
2421
+ ], -1)),
2422
+ a.default || e.label ? (i(), r("span", sl, [
2423
+ v(d.$slots, "default", {}, () => [
2424
+ O(D(e.label), 1)
2425
+ ])
2426
+ ])) : S("", !0)
2427
+ ], 6));
2428
+ }
2429
+ }), ol = C({
2430
+ name: "KTooltip",
2431
+ props: {
2432
+ delay: { type: Number, required: !1 },
2433
+ label: { type: String, required: !0 },
2434
+ placement: { type: String, required: !1 }
2435
+ },
2436
+ setup(e, { slots: l }) {
2437
+ return () => {
2438
+ const a = l.default?.() ?? [], t = {
2439
+ "data-kt-tooltip": e.label
2440
+ };
2441
+ e.placement && (t["data-kt-tooltip-placement"] = e.placement), e.delay !== void 0 && (t["data-kt-tooltip-delay"] = String(e.delay));
2442
+ const n = a.filter(
2443
+ (s) => typeof s == "object" && s !== null && "type" in s
2444
+ );
2445
+ return n.length === 1 ? Ee(n[0], t) : Ne("span", { ...t, style: { display: "contents" } }, a);
2446
+ };
2447
+ }
2448
+ }), il = ["data-kt-collapse-horizontal"], dl = ["data-kt-collapse-content"], rl = /* @__PURE__ */ C({
2449
+ __name: "KWorkspace",
2450
+ props: /* @__PURE__ */ T({
2451
+ bodyClass: { type: [Boolean, null, String, Object, Array] },
2452
+ bodyContentClass: { type: [Boolean, null, String, Object, Array] },
2453
+ bodySidebarClass: { type: [Boolean, null, String, Object, Array] },
2454
+ bodySidebarSide: { default: "left" },
2455
+ collapsible: { type: Boolean, default: !1 },
2456
+ footerClass: { type: [Boolean, null, String, Object, Array] },
2457
+ height: {},
2458
+ mainClass: { type: [Boolean, null, String, Object, Array] },
2459
+ side: { default: "left" },
2460
+ sidebarBodyClass: { type: [Boolean, null, String, Object, Array] },
2461
+ sidebarClass: { type: [Boolean, null, String, Object, Array] },
2462
+ sidebarInnerClass: { type: [Boolean, null, String, Object, Array] },
2463
+ topbarClass: { type: [Boolean, null, String, Object, Array] }
2464
+ }, {
2465
+ expanded: { type: Boolean, default: !0 },
2466
+ expandedModifiers: {}
2467
+ }),
2468
+ emits: /* @__PURE__ */ T(["toggle"], ["update:expanded"]),
2469
+ setup(e, { expose: l, emit: a }) {
2470
+ const t = M(e, "expanded"), n = a, s = N(), d = j("sidebar");
2471
+ let o;
2472
+ const m = [
2473
+ "is-active",
2474
+ "is-collapsed",
2475
+ "is-collapsing",
2476
+ "is-expanded",
2477
+ "is-expanding"
2478
+ ], c = u(
2479
+ () => !!(s.sidebar || s.sidebarHeader || s.sidebarFooter)
2480
+ ), K = u(
2481
+ () => e.height ? { "--kt-workspace-height": e.height } : void 0
2482
+ );
2483
+ function B() {
2484
+ return !o && d.value && (o = new R.modules.Collapse(d.value, {
2485
+ horizontal: !0,
2486
+ direction: e.side === "right" ? "left" : "right"
2487
+ })), o;
2488
+ }
2489
+ function $() {
2490
+ const p = d.value;
2491
+ p && (p.classList.remove(...m), t.value ? p.classList.add("is-active", "is-expanded") : p.classList.add("is-collapsed"));
2492
+ }
2493
+ L(
2494
+ d,
2495
+ () => {
2496
+ o = void 0, e.collapsible && $();
2497
+ },
2498
+ { flush: "post", immediate: !0 }
2499
+ ), L(
2500
+ () => e.collapsible,
2501
+ (p) => {
2502
+ o = void 0, p ? $() : d.value?.classList.remove(...m);
2503
+ },
2504
+ { flush: "post" }
2505
+ ), L(
2506
+ () => t.value,
2507
+ (p) => {
2508
+ if (!e.collapsible)
2509
+ return;
2510
+ const z = B();
2511
+ z && (p ? z.expand() : z.collapse());
2512
+ }
2513
+ );
2514
+ function f() {
2515
+ t.value = !t.value, n("toggle", t.value);
2516
+ }
2517
+ function x() {
2518
+ t.value || f();
2519
+ }
2520
+ function I() {
2521
+ t.value && f();
2522
+ }
2523
+ return l({ toggle: f, expand: x, collapse: I }), (p, z) => (i(), r("div", {
2524
+ class: h(["KWorkspace", e.side === "right" && "is-side-right"]),
2525
+ style: W(K.value)
2526
+ }, [
2527
+ c.value ? (i(), r("aside", {
2528
+ key: 0,
2529
+ ref_key: "sidebar",
2530
+ ref: d,
2531
+ class: h([
2532
+ "KWorkspace-sidebar",
2533
+ e.collapsible && "KCollapse",
2534
+ e.sidebarClass
2535
+ ]),
2536
+ "data-kt-collapse-horizontal": e.collapsible ? e.side === "right" ? "left" : "true" : void 0
2537
+ }, [
2538
+ y("div", {
2539
+ class: h([
2540
+ "KWorkspace-sidebarInner",
2541
+ e.collapsible && "KCollapse-content",
2542
+ e.sidebarInnerClass
2543
+ ]),
2544
+ "data-kt-collapse-content": e.collapsible ? "" : void 0
256
2545
  }, [
257
- r.brand ? (o(), s("div", {
2546
+ v(p.$slots, "sidebarHeader"),
2547
+ s.sidebar ? (i(), r("div", {
258
2548
  key: 0,
259
- class: l(["KNavbar-brand", e.brandClass])
2549
+ class: h(["KWorkspace-sidebarBody", e.sidebarBodyClass])
260
2550
  }, [
261
- u(t.$slots, "brand")
262
- ], 2)) : f("", !0),
263
- c("nav", {
264
- class: l(["KNavbar-body", e.bodyClass])
2551
+ v(p.$slots, "sidebar")
2552
+ ], 2)) : S("", !0),
2553
+ v(p.$slots, "sidebarFooter")
2554
+ ], 10, dl)
2555
+ ], 10, il)) : S("", !0),
2556
+ y("div", {
2557
+ class: h(["KWorkspace-main", e.mainClass])
2558
+ }, [
2559
+ s.topbar ? (i(), r("header", {
2560
+ key: 0,
2561
+ class: h(["KWorkspace-topbar", e.topbarClass])
2562
+ }, [
2563
+ v(p.$slots, "topbar")
2564
+ ], 2)) : S("", !0),
2565
+ y("div", {
2566
+ class: h([
2567
+ "KWorkspace-body",
2568
+ e.bodySidebarSide === "right" && "is-side-right",
2569
+ e.bodyClass
2570
+ ])
2571
+ }, [
2572
+ s.bodySidebar ? (i(), r("aside", {
2573
+ key: 0,
2574
+ class: h(["KWorkspace-bodySidebar", e.bodySidebarClass])
265
2575
  }, [
266
- u(t.$slots, "default", {}, () => [
267
- g(I, { items: e.items }, null, 8, ["items"])
268
- ])
269
- ], 2),
270
- r.footer ? (o(), s("div", {
271
- key: 1,
272
- class: l(["KNavbar-footer", e.footerClass])
2576
+ v(p.$slots, "bodySidebar")
2577
+ ], 2)) : S("", !0),
2578
+ y("div", {
2579
+ class: h(["KWorkspace-bodyContent", e.bodyContentClass])
273
2580
  }, [
274
- u(t.$slots, "footer")
275
- ], 2)) : f("", !0)
2581
+ v(p.$slots, "default")
2582
+ ], 2)
276
2583
  ], 2),
277
- e.hideToggle ? f("", !0) : (o(), s("button", {
278
- key: 0,
279
- type: "button",
280
- class: l(["KNavbar-toggle", e.toggleClass]),
281
- onClick: i
2584
+ s.footer ? (i(), r("footer", {
2585
+ key: 1,
2586
+ class: h(["KWorkspace-footer", e.footerClass])
282
2587
  }, [
283
- g(y, { href: "#caretLeft" })
284
- ], 2))
285
- ], 2);
286
- };
2588
+ v(p.$slots, "footer")
2589
+ ], 2)) : S("", !0)
2590
+ ], 2)
2591
+ ], 6));
287
2592
  }
288
- }), $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2593
+ });
2594
+ function ul(e = {}) {
2595
+ return {
2596
+ /** Dismisses every toast, or only those in one corner. */
2597
+ closeAll(l) {
2598
+ R.modules.Toast.prototype.closeAll.call(R.modules.Toast.prototype, l);
2599
+ },
2600
+ show(l) {
2601
+ const a = new R.modules.Toast({ ...e, ...l });
2602
+ return {
2603
+ close: () => a.close(),
2604
+ pause: () => a.pauseTimer(),
2605
+ resume: () => a.resumeTimer()
2606
+ };
2607
+ }
2608
+ };
2609
+ }
2610
+ const he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
289
2611
  __proto__: null,
290
- KButton: E,
291
- KContainer: H,
292
- KIcon: R,
293
- KInput: Q,
294
- KNavbar: _,
295
- KNavbarMenu: I
296
- }, Symbol.toStringTag, { value: "Module" })), ne = {
2612
+ KAccordion: je,
2613
+ KAccordionItem: Je,
2614
+ KAlert: Ze,
2615
+ KAvatar: lt,
2616
+ KAvatarGroup: st,
2617
+ KBadge: Ce,
2618
+ KBreadcrumb: ot,
2619
+ KBreadcrumbItem: rt,
2620
+ KButton: Be,
2621
+ KCalendar: ut,
2622
+ KCard: ft,
2623
+ KChat: bt,
2624
+ KChatMessage: Kt,
2625
+ KChatMessages: kt,
2626
+ KChatPrompt: xt,
2627
+ KChatShimmer: Lt,
2628
+ KCheckbox: Dt,
2629
+ KCollapse: Et,
2630
+ KContainer: Nt,
2631
+ KDrawer: Rt,
2632
+ KDropdown: Gt,
2633
+ KDropdownItem: Ht,
2634
+ KDropdownMenu: qt,
2635
+ KFileTree: oa,
2636
+ KGrid: da,
2637
+ KGridColumn: ra,
2638
+ KGridRow: ua,
2639
+ KIcon: _,
2640
+ KInput: we,
2641
+ KMenuList: ha,
2642
+ KMenuListItem: Ka,
2643
+ KModal: Ca,
2644
+ KNavbar: pa,
2645
+ KNavbarMenu: xe,
2646
+ KNotificationList: Aa,
2647
+ KNotificationListItem: Da,
2648
+ KPopover: Ea,
2649
+ KProgress: Ra,
2650
+ KRadio: Fa,
2651
+ KSelect: Ya,
2652
+ KTab: Xa,
2653
+ KTabPanel: _a,
2654
+ KTable: Za,
2655
+ KTabs: al,
2656
+ KToggle: nl,
2657
+ KTooltip: ol,
2658
+ KWorkspace: rl,
2659
+ accordionGroupKey: ce,
2660
+ chatBusyKey: fe,
2661
+ useToast: ul
2662
+ }, Symbol.toStringTag, { value: "Module" })), ml = {
297
2663
  install(e) {
298
- for (const a in $)
2664
+ for (const l in he)
299
2665
  e.component(
300
- a,
301
- $[a]
2666
+ l,
2667
+ he[l]
302
2668
  );
303
2669
  }
304
2670
  };
305
2671
  export {
306
- E as KButton,
307
- H as KContainer,
308
- R as KIcon,
309
- Q as KInput,
310
- _ as KNavbar,
311
- I as KNavbarMenu,
312
- ne as default
2672
+ je as KAccordion,
2673
+ Je as KAccordionItem,
2674
+ Ze as KAlert,
2675
+ lt as KAvatar,
2676
+ st as KAvatarGroup,
2677
+ Ce as KBadge,
2678
+ ot as KBreadcrumb,
2679
+ rt as KBreadcrumbItem,
2680
+ Be as KButton,
2681
+ ut as KCalendar,
2682
+ ft as KCard,
2683
+ bt as KChat,
2684
+ Kt as KChatMessage,
2685
+ kt as KChatMessages,
2686
+ xt as KChatPrompt,
2687
+ Lt as KChatShimmer,
2688
+ Dt as KCheckbox,
2689
+ Et as KCollapse,
2690
+ Nt as KContainer,
2691
+ Rt as KDrawer,
2692
+ Gt as KDropdown,
2693
+ Ht as KDropdownItem,
2694
+ qt as KDropdownMenu,
2695
+ oa as KFileTree,
2696
+ da as KGrid,
2697
+ ra as KGridColumn,
2698
+ ua as KGridRow,
2699
+ _ as KIcon,
2700
+ we as KInput,
2701
+ ha as KMenuList,
2702
+ Ka as KMenuListItem,
2703
+ Ca as KModal,
2704
+ pa as KNavbar,
2705
+ xe as KNavbarMenu,
2706
+ Aa as KNotificationList,
2707
+ Da as KNotificationListItem,
2708
+ Ea as KPopover,
2709
+ Ra as KProgress,
2710
+ Fa as KRadio,
2711
+ Ya as KSelect,
2712
+ Xa as KTab,
2713
+ _a as KTabPanel,
2714
+ Za as KTable,
2715
+ al as KTabs,
2716
+ nl as KToggle,
2717
+ ol as KTooltip,
2718
+ rl as KWorkspace,
2719
+ ce as accordionGroupKey,
2720
+ fe as chatBusyKey,
2721
+ ml as default,
2722
+ ve as tabsKey,
2723
+ ul as useToast
313
2724
  };