@atelier-ui/vue 0.1.2 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, ref as B, provide as E, computed as p, openBlock as l, createElementBlock as o, normalizeClass as y, renderSlot as h, useId as O, inject as q, onMounted as H, watch as z, onBeforeUnmount as j, createBlock as N, resolveDynamicComponent as J, withCtx as ce, createElementVNode as c, toDisplayString as C, createCommentVNode as w, useSlots as me, Fragment as T, renderList as R, normalizeStyle as P, unref as M, withModifiers as V, onUnmounted as Y, createTextVNode as G, createVNode as fe, nextTick as Z, useTemplateRef as Q, toRef as pe } from "vue";
1
+ import { defineComponent as v, ref as B, provide as E, computed as p, openBlock as l, createElementBlock as o, normalizeClass as y, renderSlot as g, useId as O, inject as q, onMounted as H, watch as z, onBeforeUnmount as j, createBlock as N, resolveDynamicComponent as J, withCtx as ce, createElementVNode as c, toDisplayString as C, createCommentVNode as L, useSlots as me, Fragment as I, renderList as R, normalizeStyle as P, unref as M, withModifiers as V, onUnmounted as Y, createTextVNode as G, createVNode as fe, nextTick as Z, useTemplateRef as Q, toRef as pe } from "vue";
2
2
  const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
3
3
  name: "LlmAccordionGroup",
4
4
  __name: "llm-accordion-group",
@@ -15,7 +15,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
15
15
  function r(i, m) {
16
16
  s.set(i, m);
17
17
  }
18
- function d(i) {
18
+ function u(i) {
19
19
  s.delete(i);
20
20
  }
21
21
  E(X, {
@@ -25,13 +25,13 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
25
25
  openItems: a,
26
26
  toggleItem: n,
27
27
  registerItem: r,
28
- unregisterItem: d
28
+ unregisterItem: u
29
29
  });
30
- const u = p(() => ["llm-accordion-group", `variant-${t.variant}`]);
30
+ const d = p(() => ["llm-accordion-group", `variant-${t.variant}`]);
31
31
  return (i, m) => (l(), o("div", {
32
- class: y(u.value)
32
+ class: y(d.value)
33
33
  }, [
34
- h(i.$slots, "default")
34
+ g(i.$slots, "default")
35
35
  ], 2));
36
36
  }
37
37
  }), ve = ["aria-expanded", "disabled"], Lt = /* @__PURE__ */ v({
@@ -44,16 +44,16 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
44
44
  },
45
45
  emits: ["update:expanded"],
46
46
  setup(e, { emit: t }) {
47
- const a = e, s = p(() => `h${a.headingLevel}`), n = t, r = O(), d = `llm-accordion-trigger-${r}`, u = `llm-accordion-panel-${r}`, i = q(X, null), m = B(null), g = p(() => i ? i.openItems.value.has(r) : a.expanded ?? !1);
47
+ const a = e, s = p(() => `h${a.headingLevel}`), n = t, r = O(), u = `llm-accordion-trigger-${r}`, d = `llm-accordion-panel-${r}`, i = q(X, null), m = B(null), h = p(() => i ? i.openItems.value.has(r) : a.expanded ?? !1);
48
48
  function $() {
49
- a.disabled || (i ? i.toggleItem(r) : n("update:expanded", !g.value));
49
+ a.disabled || (i ? i.toggleItem(r) : n("update:expanded", !h.value));
50
50
  }
51
51
  function b(f) {
52
52
  if (!i) return;
53
- const _ = Array.from(
53
+ const w = Array.from(
54
54
  document.querySelectorAll(".llm-accordion-item:not(.is-disabled) .accordion-trigger")
55
- ), x = _.indexOf(f.currentTarget);
56
- f.key === "ArrowDown" ? (f.preventDefault(), _[(x + 1) % _.length]?.focus()) : f.key === "ArrowUp" ? (f.preventDefault(), _[(x - 1 + _.length) % _.length]?.focus()) : f.key === "Home" ? (f.preventDefault(), _[0]?.focus()) : f.key === "End" && (f.preventDefault(), _[_.length - 1]?.focus());
55
+ ), x = w.indexOf(f.currentTarget);
56
+ f.key === "ArrowDown" ? (f.preventDefault(), w[(x + 1) % w.length]?.focus()) : f.key === "ArrowUp" ? (f.preventDefault(), w[(x - 1 + w.length) % w.length]?.focus()) : f.key === "Home" ? (f.preventDefault(), w[0]?.focus()) : f.key === "End" && (f.preventDefault(), w[w.length - 1]?.focus());
57
57
  }
58
58
  H(() => {
59
59
  i && m.value && i.registerItem(r, m.value), !i && a.expanded;
@@ -61,8 +61,8 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
61
61
  () => a.expanded,
62
62
  (f) => {
63
63
  if (!i || f === void 0) return;
64
- const _ = i.openItems.value.has(r);
65
- (f && !_ || !f && _) && i.toggleItem(r);
64
+ const w = i.openItems.value.has(r);
65
+ (f && !w || !f && w) && i.toggleItem(r);
66
66
  },
67
67
  { immediate: !0 }
68
68
  ), j(() => {
@@ -70,35 +70,35 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
70
70
  });
71
71
  const k = p(() => [
72
72
  "llm-accordion-item",
73
- g.value && "is-expanded",
73
+ h.value && "is-expanded",
74
74
  a.disabled && "is-disabled"
75
- ]), L = p(() => ["chevron", g.value && "is-expanded"]);
76
- return (f, _) => (l(), o("div", {
75
+ ]), _ = p(() => ["chevron", h.value && "is-expanded"]);
76
+ return (f, w) => (l(), o("div", {
77
77
  class: y(k.value)
78
78
  }, [
79
79
  (l(), N(J(s.value), { class: "accordion-heading" }, {
80
80
  default: ce(() => [
81
81
  c("button", {
82
- id: d,
82
+ id: u,
83
83
  ref_key: "triggerRef",
84
84
  ref: m,
85
85
  class: "accordion-trigger",
86
86
  type: "button",
87
- "aria-expanded": g.value,
88
- "aria-controls": u,
87
+ "aria-expanded": h.value,
88
+ "aria-controls": d,
89
89
  disabled: e.disabled,
90
90
  onClick: $,
91
91
  onKeydown: b
92
92
  }, [
93
- h(f.$slots, "header"),
93
+ g(f.$slots, "header"),
94
94
  (l(), o("svg", {
95
- class: y(L.value),
95
+ class: y(_.value),
96
96
  width: "16",
97
97
  height: "16",
98
98
  viewBox: "0 0 16 16",
99
99
  fill: "none",
100
100
  "aria-hidden": "true"
101
- }, [..._[0] || (_[0] = [
101
+ }, [...w[0] || (w[0] = [
102
102
  c("path", {
103
103
  d: "M4 6L8 10L12 6",
104
104
  stroke: "currentColor",
@@ -112,15 +112,15 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
112
112
  _: 3
113
113
  })),
114
114
  c("div", {
115
- class: y(["accordion-panel-wrapper", g.value && "is-expanded"])
115
+ class: y(["accordion-panel-wrapper", h.value && "is-expanded"])
116
116
  }, [
117
117
  c("div", {
118
- id: u,
118
+ id: d,
119
119
  role: "region",
120
- "aria-labelledby": d,
120
+ "aria-labelledby": u,
121
121
  class: "accordion-panel"
122
122
  }, [
123
- h(f.$slots, "default")
123
+ g(f.$slots, "default")
124
124
  ])
125
125
  ], 2)
126
126
  ], 2));
@@ -130,7 +130,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
130
130
  __name: "llm-accordion-header",
131
131
  setup(e) {
132
132
  return (t, a) => (l(), o("span", be, [
133
- h(t.$slots, "default")
133
+ g(t.$slots, "default")
134
134
  ]));
135
135
  }
136
136
  }), he = ["aria-live"], ge = { class: "content" }, ye = {
@@ -150,24 +150,24 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
150
150
  success: "✓",
151
151
  warning: "⚠",
152
152
  danger: "✕"
153
- }, s = e, n = t, r = p(() => ["llm-alert", `variant-${s.variant}`]), d = p(
153
+ }, s = e, n = t, r = p(() => ["llm-alert", `variant-${s.variant}`]), u = p(
154
154
  () => s.variant === "danger" || s.variant === "warning" ? "assertive" : "polite"
155
- ), u = p(() => a[s.variant]);
155
+ ), d = p(() => a[s.variant]);
156
156
  return (i, m) => (l(), o("div", {
157
157
  class: y(r.value),
158
158
  role: "alert",
159
- "aria-live": d.value
159
+ "aria-live": u.value
160
160
  }, [
161
161
  c("span", ge, [
162
- c("span", ye, C(u.value), 1),
163
- h(i.$slots, "default")
162
+ c("span", ye, C(d.value), 1),
163
+ g(i.$slots, "default")
164
164
  ]),
165
165
  e.dismissible ? (l(), o("button", {
166
166
  key: 0,
167
167
  class: "dismiss",
168
168
  type: "button",
169
169
  "aria-label": "Dismiss",
170
- onClick: m[0] || (m[0] = (g) => n("dismissed"))
170
+ onClick: m[0] || (m[0] = (h) => n("dismissed"))
171
171
  }, [...m[1] || (m[1] = [
172
172
  c("svg", {
173
173
  xmlns: "http://www.w3.org/2000/svg",
@@ -194,7 +194,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
194
194
  y2: "18"
195
195
  })
196
196
  ], -1)
197
- ])])) : w("", !0)
197
+ ])])) : L("", !0)
198
198
  ], 10, he));
199
199
  }
200
200
  }), $e = ["aria-label"], ke = ["src", "alt"], _e = {
@@ -223,16 +223,16 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
223
223
  z(() => t.src, () => {
224
224
  a.value = !1;
225
225
  });
226
- function s(u) {
227
- return u.split(" ").filter(Boolean).slice(0, 2).map((i) => i[0].toUpperCase()).join("");
226
+ function s(d) {
227
+ return d.split(" ").filter(Boolean).slice(0, 2).map((i) => i[0].toUpperCase()).join("");
228
228
  }
229
- const n = p(() => t.name ? s(t.name) : ""), r = p(() => t.alt || t.name || "Avatar"), d = p(() => [
229
+ const n = p(() => t.name ? s(t.name) : ""), r = p(() => t.alt || t.name || "Avatar"), u = p(() => [
230
230
  "llm-avatar",
231
231
  `size-${t.size}`,
232
232
  `shape-${t.shape}`
233
233
  ]);
234
- return (u, i) => (l(), o("div", {
235
- class: y(d.value),
234
+ return (d, i) => (l(), o("div", {
235
+ class: y(u.value),
236
236
  "aria-label": r.value,
237
237
  role: "img"
238
238
  }, [
@@ -248,10 +248,10 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
248
248
  key: 3,
249
249
  class: y(`status-dot status-${e.status}`),
250
250
  "aria-hidden": "true"
251
- }, null, 2)) : w("", !0)
251
+ }, null, 2)) : L("", !0)
252
252
  ], 10, $e));
253
253
  }
254
- }), Le = ["aria-label"], Tt = /* @__PURE__ */ v({
254
+ }), Le = ["aria-label"], It = /* @__PURE__ */ v({
255
255
  name: "LlmAvatarGroup",
256
256
  __name: "llm-avatar-group",
257
257
  props: {
@@ -260,22 +260,22 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
260
260
  },
261
261
  setup(e) {
262
262
  const t = e, a = me(), s = p(() => a.default?.() ?? []), n = p(() => s.value.slice(0, t.max)), r = p(() => Math.max(0, s.value.length - t.max));
263
- return (d, u) => (l(), o("div", {
263
+ return (u, d) => (l(), o("div", {
264
264
  class: y(["llm-avatar-group", `size-${e.size}`])
265
265
  }, [
266
- (l(!0), o(T, null, R(n.value, (i, m) => (l(), N(J(i), { key: m }))), 128)),
266
+ (l(!0), o(I, null, R(n.value, (i, m) => (l(), N(J(i), { key: m }))), 128)),
267
267
  r.value > 0 ? (l(), o("div", {
268
268
  key: 0,
269
269
  class: y(`overflow-badge size-${e.size}`),
270
270
  "aria-label": `+${r.value} more`
271
- }, " +" + C(r.value), 11, Le)) : w("", !0)
271
+ }, " +" + C(r.value), 11, Le)) : L("", !0)
272
272
  ], 2));
273
273
  }
274
274
  }), xe = {
275
275
  key: 0,
276
276
  class: "variant-icon",
277
277
  "aria-hidden": "true"
278
- }, It = /* @__PURE__ */ v({
278
+ }, Tt = /* @__PURE__ */ v({
279
279
  name: "LlmBadge",
280
280
  __name: "llm-badge",
281
281
  props: {
@@ -294,15 +294,15 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
294
294
  `variant-${a.variant}`,
295
295
  `size-${a.size}`
296
296
  ]), n = p(() => t[a.variant]);
297
- return (r, d) => (l(), o("span", {
297
+ return (r, u) => (l(), o("span", {
298
298
  class: y(s.value),
299
299
  role: "status"
300
300
  }, [
301
- n.value ? (l(), o("span", xe, C(n.value), 1)) : w("", !0),
302
- h(r.$slots, "default")
301
+ n.value ? (l(), o("span", xe, C(n.value), 1)) : L("", !0),
302
+ g(r.$slots, "default")
303
303
  ], 2));
304
304
  }
305
- }), Ce = ["role", "aria-label", "aria-hidden"], St = /* @__PURE__ */ v({
305
+ }), Ce = ["role", "aria-label", "aria-hidden"], Dt = /* @__PURE__ */ v({
306
306
  name: "LlmIcon",
307
307
  __name: "llm-icon",
308
308
  props: {
@@ -334,14 +334,14 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
334
334
  more: "…",
335
335
  "default-toast": "💬"
336
336
  }, s = p(() => ["llm-icon", `size-${t.size}`]), n = p(() => a[t.name]);
337
- return (r, d) => (l(), o("span", {
337
+ return (r, u) => (l(), o("span", {
338
338
  class: y(s.value),
339
339
  role: e.label ? "img" : void 0,
340
340
  "aria-label": e.label || void 0,
341
341
  "aria-hidden": e.label ? void 0 : "true"
342
342
  }, C(n.value), 11, Ce));
343
343
  }
344
- }), Be = { class: "breadcrumbs-list" }, Dt = /* @__PURE__ */ v({
344
+ }), Be = { class: "breadcrumbs-list" }, St = /* @__PURE__ */ v({
345
345
  name: "LlmBreadcrumbs",
346
346
  __name: "llm-breadcrumbs",
347
347
  props: {
@@ -355,11 +355,11 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
355
355
  style: P({ "--llm-separator": `'${t.separator}'` })
356
356
  }, [
357
357
  c("ol", Be, [
358
- h(a.$slots, "default")
358
+ g(a.$slots, "default")
359
359
  ])
360
360
  ], 4));
361
361
  }
362
- }), Te = ["href"], Ie = ["aria-current"], Mt = /* @__PURE__ */ v({
362
+ }), Ie = ["href"], Te = ["aria-current"], Mt = /* @__PURE__ */ v({
363
363
  name: "LlmBreadcrumbItem",
364
364
  __name: "llm-breadcrumb-item",
365
365
  props: {
@@ -379,17 +379,17 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
379
379
  href: e.href,
380
380
  class: "breadcrumb-link"
381
381
  }, [
382
- h(s.$slots, "default")
383
- ], 8, Te)) : (l(), o("span", {
382
+ g(s.$slots, "default")
383
+ ], 8, Ie)) : (l(), o("span", {
384
384
  key: 1,
385
385
  class: "breadcrumb-current",
386
386
  "aria-current": e.current ? "page" : void 0
387
387
  }, [
388
- h(s.$slots, "default")
389
- ], 8, Ie))
388
+ g(s.$slots, "default")
389
+ ], 8, Te))
390
390
  ], 2));
391
391
  }
392
- }), Se = ["type", "disabled", "aria-disabled"], De = {
392
+ }), De = ["type", "disabled", "aria-disabled"], Se = {
393
393
  key: 0,
394
394
  class: "spinner",
395
395
  "aria-hidden": "true"
@@ -412,7 +412,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
412
412
  t.loading && "is-loading"
413
413
  ].filter(Boolean)), n = B(null);
414
414
  return H(() => {
415
- }), (r, d) => (l(), o("button", {
415
+ }), (r, u) => (l(), o("button", {
416
416
  ref_key: "buttonRef",
417
417
  ref: n,
418
418
  class: y(s.value),
@@ -420,9 +420,9 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
420
420
  disabled: a.value,
421
421
  "aria-disabled": a.value || void 0
422
422
  }, [
423
- e.loading ? (l(), o("span", De)) : w("", !0),
424
- h(r.$slots, "default")
425
- ], 10, Se));
423
+ e.loading ? (l(), o("span", Se)) : L("", !0),
424
+ g(r.$slots, "default")
425
+ ], 10, De));
426
426
  }
427
427
  }), Me = ["role"], Rt = /* @__PURE__ */ v({
428
428
  name: "LlmCard",
@@ -442,7 +442,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
442
442
  class: y(a.value),
443
443
  role: e.role
444
444
  }, [
445
- h(s.$slots, "default")
445
+ g(s.$slots, "default")
446
446
  ], 10, Me));
447
447
  }
448
448
  }), Ae = { class: "llm-card-header" }, zt = /* @__PURE__ */ v({
@@ -450,7 +450,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
450
450
  __name: "llm-card-header",
451
451
  setup(e) {
452
452
  return (t, a) => (l(), o("div", Ae, [
453
- h(t.$slots, "default")
453
+ g(t.$slots, "default")
454
454
  ]));
455
455
  }
456
456
  }), Re = { class: "llm-card-content" }, qt = /* @__PURE__ */ v({
@@ -458,7 +458,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
458
458
  __name: "llm-card-content",
459
459
  setup(e) {
460
460
  return (t, a) => (l(), o("div", Re, [
461
- h(t.$slots, "default")
461
+ g(t.$slots, "default")
462
462
  ]));
463
463
  }
464
464
  }), ze = { class: "llm-card-footer" }, Ht = /* @__PURE__ */ v({
@@ -466,7 +466,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
466
466
  __name: "llm-card-footer",
467
467
  setup(e) {
468
468
  return (t, a) => (l(), o("div", ze, [
469
- h(t.$slots, "default")
469
+ g(t.$slots, "default")
470
470
  ]));
471
471
  }
472
472
  }), qe = ["for"], He = ["id", "checked", "disabled", "readonly", "required", "name", "aria-invalid"], Ee = {
@@ -492,17 +492,17 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
492
492
  const a = e, s = t, n = B(null), r = p(() => a.id || `checkbox-${Math.random().toString(36).slice(2)}`);
493
493
  z(
494
494
  () => a.indeterminate,
495
- (u) => {
496
- n.value && (n.value.indeterminate = u);
495
+ (d) => {
496
+ n.value && (n.value.indeterminate = d);
497
497
  }
498
498
  ), H(() => {
499
499
  n.value && (n.value.indeterminate = a.indeterminate);
500
500
  });
501
- function d(u) {
502
- const i = u.target;
501
+ function u(d) {
502
+ const i = d.target;
503
503
  s("update:checked", i.checked);
504
504
  }
505
- return (u, i) => (l(), o("div", {
505
+ return (d, i) => (l(), o("div", {
506
506
  class: y(["llm-checkbox", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
507
507
  }, [
508
508
  c("label", {
@@ -520,16 +520,16 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
520
520
  required: e.required,
521
521
  name: e.name,
522
522
  "aria-invalid": e.invalid || void 0,
523
- onChange: d
523
+ onChange: u
524
524
  }, null, 40, He),
525
- h(u.$slots, "default")
525
+ g(d.$slots, "default")
526
526
  ], 8, qe),
527
527
  e.errors.length ? (l(), o("ul", Ee, [
528
- (l(!0), o(T, null, R(e.errors, (m, g) => (l(), o("li", {
529
- key: g,
528
+ (l(!0), o(I, null, R(e.errors, (m, h) => (l(), o("li", {
529
+ key: h,
530
530
  class: "error"
531
531
  }, C(m), 1))), 128))
532
- ])) : w("", !0)
532
+ ])) : L("", !0)
533
533
  ], 2));
534
534
  }
535
535
  }), Ke = ["aria-label", "aria-labelledby"], ee = /* @__PURE__ */ Symbol("LlmDialog"), Et = /* @__PURE__ */ v({
@@ -544,12 +544,12 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
544
544
  emits: ["update:open"],
545
545
  setup(e, { emit: t }) {
546
546
  const a = e, s = t, n = B(null), r = O();
547
- function d() {
547
+ function u() {
548
548
  s("update:open", !1);
549
549
  }
550
550
  E(ee, {
551
551
  headerId: r,
552
- close: d
552
+ close: u
553
553
  }), H(() => {
554
554
  a.open && n.value && n.value.showModal();
555
555
  }), z(
@@ -560,7 +560,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
560
560
  },
561
561
  { flush: "post" }
562
562
  );
563
- function u() {
563
+ function d() {
564
564
  s("update:open", !1);
565
565
  }
566
566
  function i($) {
@@ -569,7 +569,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
569
569
  function m($) {
570
570
  a.closeOnBackdrop && $.target === n.value && s("update:open", !1);
571
571
  }
572
- const g = p(() => ["panel", `size-${a.size}`]);
572
+ const h = p(() => ["panel", `size-${a.size}`]);
573
573
  return ($, b) => (l(), o("dialog", {
574
574
  ref_key: "dialogRef",
575
575
  ref: n,
@@ -577,16 +577,16 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
577
577
  "aria-label": e.ariaLabel || void 0,
578
578
  "aria-labelledby": e.ariaLabel ? void 0 : M(r),
579
579
  "aria-modal": "true",
580
- onClose: u,
580
+ onClose: d,
581
581
  onCancel: i,
582
582
  onClick: m
583
583
  }, [
584
584
  c("div", {
585
- class: y(g.value),
585
+ class: y(h.value),
586
586
  onClick: b[0] || (b[0] = V(() => {
587
587
  }, ["stop"]))
588
588
  }, [
589
- h($.$slots, "default")
589
+ g($.$slots, "default")
590
590
  ], 2)
591
591
  ], 40, Ke));
592
592
  }
@@ -601,7 +601,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
601
601
  class: "llm-dialog-header"
602
602
  }, [
603
603
  c("span", Ge, [
604
- h(a.$slots, "default")
604
+ g(a.$slots, "default")
605
605
  ]),
606
606
  c("button", {
607
607
  class: "close-btn",
@@ -642,7 +642,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
642
642
  __name: "llm-dialog-content",
643
643
  setup(e) {
644
644
  return (t, a) => (l(), o("div", Pe, [
645
- h(t.$slots, "default")
645
+ g(t.$slots, "default")
646
646
  ]));
647
647
  }
648
648
  }), Fe = { class: "llm-dialog-footer" }, jt = /* @__PURE__ */ v({
@@ -650,7 +650,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
650
650
  __name: "llm-dialog-footer",
651
651
  setup(e) {
652
652
  return (t, a) => (l(), o("div", Fe, [
653
- h(t.$slots, "default")
653
+ g(t.$slots, "default")
654
654
  ]));
655
655
  }
656
656
  }), Ne = ["aria-labelledby"], ae = /* @__PURE__ */ Symbol("LlmDrawer"), Gt = /* @__PURE__ */ v({
@@ -665,12 +665,12 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
665
665
  emits: ["update:open"],
666
666
  setup(e, { emit: t }) {
667
667
  const a = e, s = t, n = B(null), r = O();
668
- function d() {
668
+ function u() {
669
669
  s("update:open", !1);
670
670
  }
671
671
  E(ae, {
672
672
  headerId: r,
673
- close: d
673
+ close: u
674
674
  }), H(() => {
675
675
  a.open && n.value && n.value.showModal();
676
676
  }), z(
@@ -681,7 +681,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
681
681
  },
682
682
  { flush: "post" }
683
683
  );
684
- function u() {
684
+ function d() {
685
685
  s("update:open", !1);
686
686
  }
687
687
  function i($) {
@@ -690,7 +690,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
690
690
  function m($) {
691
691
  a.closeOnBackdrop && $.target === n.value && s("update:open", !1);
692
692
  }
693
- const g = p(() => [
693
+ const h = p(() => [
694
694
  "llm-drawer-host",
695
695
  `position-${a.position}`,
696
696
  `size-${a.size}`,
@@ -699,10 +699,10 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
699
699
  return ($, b) => (l(), o("dialog", {
700
700
  ref_key: "dialogRef",
701
701
  ref: n,
702
- class: y(g.value),
702
+ class: y(h.value),
703
703
  "aria-labelledby": M(r),
704
704
  "aria-modal": "true",
705
- onClose: u,
705
+ onClose: d,
706
706
  onCancel: i,
707
707
  onClick: m
708
708
  }, [
@@ -711,7 +711,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
711
711
  onClick: b[0] || (b[0] = V(() => {
712
712
  }, ["stop"]))
713
713
  }, [
714
- h($.$slots, "default")
714
+ g($.$slots, "default")
715
715
  ])
716
716
  ], 42, Ne));
717
717
  }
@@ -726,7 +726,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
726
726
  class: "llm-drawer-header"
727
727
  }, [
728
728
  c("span", Ue, [
729
- h(a.$slots, "default")
729
+ g(a.$slots, "default")
730
730
  ]),
731
731
  c("button", {
732
732
  class: "close-btn",
@@ -767,7 +767,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
767
767
  __name: "llm-drawer-content",
768
768
  setup(e) {
769
769
  return (t, a) => (l(), o("div", We, [
770
- h(t.$slots, "default")
770
+ g(t.$slots, "default")
771
771
  ]));
772
772
  }
773
773
  }), Je = { class: "llm-drawer-footer" }, Nt = /* @__PURE__ */ v({
@@ -775,7 +775,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
775
775
  __name: "llm-drawer-footer",
776
776
  setup(e) {
777
777
  return (t, a) => (l(), o("div", Je, [
778
- h(t.$slots, "default")
778
+ g(t.$slots, "default")
779
779
  ]));
780
780
  }
781
781
  }), Ye = ["for"], Ze = { class: "input-field" }, Qe = ["id", "type", "value", "placeholder", "disabled", "readonly", "required", "name", "aria-invalid"], Xe = {
@@ -801,17 +801,17 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
801
801
  emits: ["update:value"],
802
802
  setup(e, { emit: t }) {
803
803
  const a = e, s = t, n = p(() => a.id || (a.label ? `input-${Math.random().toString(36).slice(2)}` : void 0));
804
- function r(d) {
805
- s("update:value", d.target.value);
804
+ function r(u) {
805
+ s("update:value", u.target.value);
806
806
  }
807
- return (d, u) => (l(), o("div", {
807
+ return (u, d) => (l(), o("div", {
808
808
  class: y(["llm-input", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
809
809
  }, [
810
810
  e.label ? (l(), o("label", {
811
811
  key: 0,
812
812
  for: n.value,
813
813
  class: "input-label"
814
- }, C(e.label), 9, Ye)) : w("", !0),
814
+ }, C(e.label), 9, Ye)) : L("", !0),
815
815
  c("div", Ze, [
816
816
  c("input", {
817
817
  id: n.value,
@@ -827,11 +827,11 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
827
827
  }, null, 40, Qe)
828
828
  ]),
829
829
  e.errors.length ? (l(), o("ul", Xe, [
830
- (l(!0), o(T, null, R(e.errors, (i, m) => (l(), o("li", {
830
+ (l(!0), o(I, null, R(e.errors, (i, m) => (l(), o("li", {
831
831
  key: m,
832
832
  class: "error"
833
833
  }, C(i), 1))), 128))
834
- ])) : w("", !0)
834
+ ])) : L("", !0)
835
835
  ], 2));
836
836
  }
837
837
  }), ea = { class: "llm-menu-trigger-wrapper" }, te = /* @__PURE__ */ Symbol("LlmMenuTrigger"), Ut = /* @__PURE__ */ v({
@@ -846,25 +846,25 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
846
846
  t.value = !1;
847
847
  }
848
848
  E(te, { close: r });
849
- function d(i) {
849
+ function u(i) {
850
850
  if (!t.value) return;
851
- const m = i.target, g = a.value?.contains(m), $ = s.value?.contains(m);
852
- !g && !$ && r();
851
+ const m = i.target, h = a.value?.contains(m), $ = s.value?.contains(m);
852
+ !h && !$ && r();
853
853
  }
854
- function u(i) {
854
+ function d(i) {
855
855
  i.key === "Escape" && t.value && r();
856
856
  }
857
857
  return H(() => {
858
- document.addEventListener("mousedown", d), document.addEventListener("keydown", u);
858
+ document.addEventListener("mousedown", u), document.addEventListener("keydown", d);
859
859
  }), j(() => {
860
- document.removeEventListener("mousedown", d), document.removeEventListener("keydown", u);
860
+ document.removeEventListener("mousedown", u), document.removeEventListener("keydown", d);
861
861
  }), (i, m) => (l(), o("div", ea, [
862
862
  c("span", {
863
863
  ref_key: "triggerRef",
864
864
  ref: a,
865
865
  onClick: n
866
866
  }, [
867
- h(i.$slots, "trigger")
867
+ g(i.$slots, "trigger")
868
868
  ], 512),
869
869
  t.value ? (l(), o("div", {
870
870
  key: 0,
@@ -872,8 +872,8 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
872
872
  ref: s,
873
873
  class: "llm-menu-panel"
874
874
  }, [
875
- h(i.$slots, "menu")
876
- ], 512)) : w("", !0)
875
+ g(i.$slots, "menu")
876
+ ], 512)) : L("", !0)
877
877
  ]));
878
878
  }
879
879
  }), Wt = /* @__PURE__ */ v({
@@ -888,7 +888,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
888
888
  class: y(a.value),
889
889
  role: "menu"
890
890
  }, [
891
- h(s.$slots, "default")
891
+ g(s.$slots, "default")
892
892
  ], 2));
893
893
  }
894
894
  }), aa = ["disabled"], Jt = /* @__PURE__ */ v({
@@ -903,15 +903,15 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
903
903
  function r() {
904
904
  a.disabled || (s("triggered"), n?.close());
905
905
  }
906
- const d = p(() => ["llm-menu-item", a.disabled && "is-disabled"]);
907
- return (u, i) => (l(), o("button", {
908
- class: y(d.value),
906
+ const u = p(() => ["llm-menu-item", a.disabled && "is-disabled"]);
907
+ return (d, i) => (l(), o("button", {
908
+ class: y(u.value),
909
909
  role: "menuitem",
910
910
  type: "button",
911
911
  disabled: e.disabled,
912
912
  onClick: r
913
913
  }, [
914
- h(u.$slots, "default")
914
+ g(d.$slots, "default")
915
915
  ], 10, aa));
916
916
  }
917
917
  }), ta = {
@@ -942,35 +942,35 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
942
942
  emits: ["pageChange"],
943
943
  setup(e, { emit: t }) {
944
944
  const a = e, s = t;
945
- function n(u, i, m) {
945
+ function n(d, i, m) {
946
946
  if (i <= 1) return [{ type: "page", page: 1 }];
947
- const g = [];
948
- g.push({ type: "page", page: 1 });
949
- const $ = Math.max(2, u - m), b = Math.min(i - 1, u + m);
950
- $ > 2 && g.push({ type: "ellipsis", key: "ellipsis-start" });
951
- for (let k = $; k <= b; k++) g.push({ type: "page", page: k });
952
- return b < i - 1 && g.push({ type: "ellipsis", key: "ellipsis-end" }), i > 1 && g.push({ type: "page", page: i }), g;
947
+ const h = [];
948
+ h.push({ type: "page", page: 1 });
949
+ const $ = Math.max(2, d - m), b = Math.min(i - 1, d + m);
950
+ $ > 2 && h.push({ type: "ellipsis", key: "ellipsis-start" });
951
+ for (let k = $; k <= b; k++) h.push({ type: "page", page: k });
952
+ return b < i - 1 && h.push({ type: "ellipsis", key: "ellipsis-end" }), i > 1 && h.push({ type: "page", page: i }), h;
953
953
  }
954
954
  const r = p(() => n(a.page, a.pageCount, a.siblingCount));
955
- function d(u) {
956
- const i = Math.min(Math.max(u, 1), a.pageCount);
955
+ function u(d) {
956
+ const i = Math.min(Math.max(d, 1), a.pageCount);
957
957
  i !== a.page && s("pageChange", i);
958
958
  }
959
- return (u, i) => (l(), o("nav", la, [
959
+ return (d, i) => (l(), o("nav", la, [
960
960
  e.showFirstLast ? (l(), o("button", {
961
961
  key: 0,
962
962
  class: "page-btn nav-btn",
963
963
  disabled: e.page <= 1,
964
964
  "aria-label": "First page",
965
- onClick: i[0] || (i[0] = (m) => d(1))
966
- }, " « ", 8, sa)) : w("", !0),
965
+ onClick: i[0] || (i[0] = (m) => u(1))
966
+ }, " « ", 8, sa)) : L("", !0),
967
967
  c("button", {
968
968
  class: "page-btn nav-btn",
969
969
  disabled: e.page <= 1,
970
970
  "aria-label": "Previous page",
971
- onClick: i[1] || (i[1] = (m) => d(e.page - 1))
971
+ onClick: i[1] || (i[1] = (m) => u(e.page - 1))
972
972
  }, " ‹ ", 8, na),
973
- (l(!0), o(T, null, R(r.value, (m) => (l(), o(T, {
973
+ (l(!0), o(I, null, R(r.value, (m) => (l(), o(I, {
974
974
  key: m.type === "page" ? m.page : m.key
975
975
  }, [
976
976
  m.type === "ellipsis" ? (l(), o("span", oa, "…")) : (l(), o("button", {
@@ -978,22 +978,22 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
978
978
  class: y(["page-btn", { active: m.page === e.page }]),
979
979
  "aria-label": `Page ${m.page}`,
980
980
  "aria-current": m.page === e.page ? "page" : void 0,
981
- onClick: (g) => d(m.page)
981
+ onClick: (h) => u(m.page)
982
982
  }, C(m.page), 11, ia))
983
983
  ], 64))), 128)),
984
984
  c("button", {
985
985
  class: "page-btn nav-btn",
986
986
  disabled: e.page >= e.pageCount,
987
987
  "aria-label": "Next page",
988
- onClick: i[2] || (i[2] = (m) => d(e.page + 1))
988
+ onClick: i[2] || (i[2] = (m) => u(e.page + 1))
989
989
  }, " › ", 8, ra),
990
990
  e.showFirstLast ? (l(), o("button", {
991
991
  key: 1,
992
992
  class: "page-btn nav-btn",
993
993
  disabled: e.page >= e.pageCount,
994
994
  "aria-label": "Last page",
995
- onClick: i[3] || (i[3] = (m) => d(e.pageCount))
996
- }, " » ", 8, da)) : w("", !0)
995
+ onClick: i[3] || (i[3] = (m) => u(e.pageCount))
996
+ }, " » ", 8, da)) : L("", !0)
997
997
  ]));
998
998
  }
999
999
  }), ua = ["aria-label", "aria-valuenow", "aria-valuemax"], ca = { class: "track" }, Qt = /* @__PURE__ */ v({
@@ -1016,7 +1016,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1016
1016
  `size-${t.size}`,
1017
1017
  t.indeterminate && "is-indeterminate"
1018
1018
  ].filter(Boolean));
1019
- return (r, d) => (l(), o("div", {
1019
+ return (r, u) => (l(), o("div", {
1020
1020
  class: y(n.value),
1021
1021
  role: "progressbar",
1022
1022
  "aria-label": e.label,
@@ -1066,82 +1066,82 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1066
1066
  },
1067
1067
  emits: ["update:value"],
1068
1068
  setup(e, { emit: t }) {
1069
- const a = e, s = t, n = B(null), r = B(null), d = B(""), u = B(!1), i = B(-1);
1069
+ const a = e, s = t, n = B(null), r = B(null), u = B(""), d = B(!1), i = B(-1);
1070
1070
  let m = Math.random().toString(36).slice(2);
1071
- const g = `llm-combobox-input-${m}`, $ = `llm-combobox-panel-${m}`, b = p(
1072
- () => a.options.find((S) => S.value === a.value)?.label ?? ""
1071
+ const h = `llm-combobox-input-${m}`, $ = `llm-combobox-panel-${m}`, b = p(
1072
+ () => a.options.find((D) => D.value === a.value)?.label ?? ""
1073
1073
  ), k = p(() => {
1074
- const S = d.value.toLowerCase();
1075
- return S ? a.options.filter((A) => A.label.toLowerCase().includes(S)) : a.options;
1076
- }), L = p(
1074
+ const D = u.value.toLowerCase();
1075
+ return D ? a.options.filter((A) => A.label.toLowerCase().includes(D)) : a.options;
1076
+ }), _ = p(
1077
1077
  () => i.value >= 0 ? `${$}-option-${i.value}` : void 0
1078
1078
  ), f = p(() => [
1079
1079
  "llm-combobox",
1080
- u.value && "is-open",
1080
+ d.value && "is-open",
1081
1081
  a.disabled && "is-disabled",
1082
1082
  a.invalid && "is-invalid"
1083
1083
  ]);
1084
1084
  z(
1085
1085
  () => a.value,
1086
1086
  () => {
1087
- u.value || (d.value = b.value);
1087
+ d.value || (u.value = b.value);
1088
1088
  },
1089
1089
  { immediate: !0 }
1090
1090
  );
1091
- function _() {
1092
- a.disabled || a.readonly || u.value || (u.value = !0, i.value = -1, document.addEventListener("click", D));
1091
+ function w() {
1092
+ a.disabled || a.readonly || d.value || (d.value = !0, i.value = -1, document.addEventListener("click", S));
1093
1093
  }
1094
1094
  function x() {
1095
- u.value && (u.value = !1, i.value = -1, document.removeEventListener("click", D));
1095
+ d.value && (d.value = !1, i.value = -1, document.removeEventListener("click", S));
1096
1096
  }
1097
- function D(S) {
1098
- r.value?.contains(S.target) || (d.value = b.value, x());
1097
+ function S(D) {
1098
+ r.value?.contains(D.target) || (u.value = b.value, x());
1099
1099
  }
1100
1100
  Y(() => {
1101
- document.removeEventListener("click", D);
1101
+ document.removeEventListener("click", S);
1102
1102
  });
1103
- function F(S) {
1104
- S.disabled || a.disabled || a.readonly || (s("update:value", S.value), d.value = S.label, x(), n.value?.focus());
1103
+ function F(D) {
1104
+ D.disabled || a.disabled || a.readonly || (s("update:value", D.value), u.value = D.label, x(), n.value?.focus());
1105
1105
  }
1106
- function oe(S) {
1107
- const A = S.target.value;
1108
- d.value = A, i.value = -1, A === "" && s("update:value", ""), u.value || _();
1106
+ function oe(D) {
1107
+ const A = D.target.value;
1108
+ u.value = A, i.value = -1, A === "" && s("update:value", ""), d.value || w();
1109
1109
  }
1110
1110
  function ie() {
1111
- _();
1111
+ w();
1112
1112
  }
1113
1113
  function re() {
1114
- d.value = b.value;
1114
+ u.value = b.value;
1115
1115
  }
1116
- function de(S) {
1116
+ function de(D) {
1117
1117
  const A = k.value;
1118
- switch (S.key) {
1118
+ switch (D.key) {
1119
1119
  case "ArrowDown": {
1120
- if (S.preventDefault(), !u.value) {
1121
- _();
1120
+ if (D.preventDefault(), !d.value) {
1121
+ w();
1122
1122
  return;
1123
1123
  }
1124
- const I = i.value + 1;
1125
- i.value = I >= A.length ? 0 : I;
1124
+ const T = i.value + 1;
1125
+ i.value = T >= A.length ? 0 : T;
1126
1126
  break;
1127
1127
  }
1128
1128
  case "ArrowUp": {
1129
- if (S.preventDefault(), !u.value) {
1130
- _();
1129
+ if (D.preventDefault(), !d.value) {
1130
+ w();
1131
1131
  return;
1132
1132
  }
1133
- const I = i.value - 1;
1134
- i.value = I < 0 ? A.length - 1 : I;
1133
+ const T = i.value - 1;
1134
+ i.value = T < 0 ? A.length - 1 : T;
1135
1135
  break;
1136
1136
  }
1137
1137
  case "Enter": {
1138
- S.preventDefault();
1139
- const I = i.value;
1140
- u.value && I >= 0 && I < A.length && F(A[I]);
1138
+ D.preventDefault();
1139
+ const T = i.value;
1140
+ d.value && T >= 0 && T < A.length && F(A[T]);
1141
1141
  break;
1142
1142
  }
1143
1143
  case "Escape": {
1144
- S.preventDefault(), d.value = b.value, x();
1144
+ D.preventDefault(), u.value = b.value, x();
1145
1145
  break;
1146
1146
  }
1147
1147
  case "Tab": {
@@ -1150,7 +1150,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1150
1150
  }
1151
1151
  }
1152
1152
  }
1153
- return (S, A) => (l(), o("div", {
1153
+ return (D, A) => (l(), o("div", {
1154
1154
  ref_key: "containerRef",
1155
1155
  ref: r,
1156
1156
  class: y(f.value)
@@ -1163,18 +1163,18 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1163
1163
  type: "text",
1164
1164
  autocomplete: "off",
1165
1165
  role: "combobox",
1166
- id: g,
1167
- "aria-expanded": u.value,
1166
+ id: h,
1167
+ "aria-expanded": d.value,
1168
1168
  "aria-controls": $,
1169
1169
  "aria-autocomplete": "list",
1170
- "aria-activedescendant": L.value,
1170
+ "aria-activedescendant": _.value,
1171
1171
  "aria-invalid": e.invalid || void 0,
1172
1172
  disabled: e.disabled,
1173
1173
  readonly: e.readonly,
1174
1174
  required: e.required,
1175
1175
  name: e.name || void 0,
1176
1176
  placeholder: e.placeholder,
1177
- value: d.value,
1177
+ value: u.value,
1178
1178
  onInput: oe,
1179
1179
  onFocus: ie,
1180
1180
  onBlur: re,
@@ -1200,30 +1200,30 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1200
1200
  ])
1201
1201
  ], -1))
1202
1202
  ]),
1203
- u.value ? (l(), o("ul", {
1203
+ d.value ? (l(), o("ul", {
1204
1204
  key: 0,
1205
1205
  id: $,
1206
1206
  class: "llm-combobox-panel",
1207
1207
  role: "listbox",
1208
- "aria-labelledby": g
1208
+ "aria-labelledby": h
1209
1209
  }, [
1210
- k.value.length > 0 ? (l(!0), o(T, { key: 0 }, R(k.value, (I, K) => (l(), o("li", {
1211
- key: I.value,
1210
+ k.value.length > 0 ? (l(!0), o(I, { key: 0 }, R(k.value, (T, K) => (l(), o("li", {
1211
+ key: T.value,
1212
1212
  id: `${$}-option-${K}`,
1213
1213
  role: "option",
1214
1214
  class: y([
1215
1215
  "llm-combobox-option",
1216
1216
  i.value === K && "is-active",
1217
- I.value === e.value && "is-selected",
1218
- I.disabled && "is-disabled"
1217
+ T.value === e.value && "is-selected",
1218
+ T.disabled && "is-disabled"
1219
1219
  ]),
1220
- "aria-selected": I.value === e.value,
1221
- "aria-disabled": I.disabled || void 0,
1222
- onMousedown: (ue) => F(I),
1220
+ "aria-selected": T.value === e.value,
1221
+ "aria-disabled": T.disabled || void 0,
1222
+ onMousedown: (ue) => F(T),
1223
1223
  onMouseenter: (ue) => i.value = K
1224
1224
  }, [
1225
- c("span", null, C(I.label), 1),
1226
- I.value === e.value ? (l(), o("svg", va, [...A[1] || (A[1] = [
1225
+ c("span", null, C(T.label), 1),
1226
+ T.value === e.value ? (l(), o("svg", va, [...A[1] || (A[1] = [
1227
1227
  c("path", {
1228
1228
  d: "M2 7l4 4 6-7",
1229
1229
  stroke: "currentColor",
@@ -1231,15 +1231,15 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1231
1231
  "stroke-linecap": "round",
1232
1232
  "stroke-linejoin": "round"
1233
1233
  }, null, -1)
1234
- ])])) : w("", !0)
1234
+ ])])) : L("", !0)
1235
1235
  ], 42, pa))), 128)) : (l(), o("li", ba, " No results found. "))
1236
- ])) : w("", !0),
1236
+ ])) : L("", !0),
1237
1237
  e.invalid && e.errors.length > 0 ? (l(), o("div", ha, [
1238
- (l(!0), o(T, null, R(e.errors, (I, K) => (l(), o("p", {
1238
+ (l(!0), o(I, null, R(e.errors, (T, K) => (l(), o("p", {
1239
1239
  key: K,
1240
1240
  class: "llm-combobox-error-message"
1241
- }, C(I), 1))), 128))
1242
- ])) : w("", !0)
1241
+ }, C(T), 1))), 128))
1242
+ ])) : L("", !0)
1243
1243
  ], 2));
1244
1244
  }
1245
1245
  }), ga = ["aria-invalid", "aria-required"], ya = {
@@ -1277,29 +1277,44 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1277
1277
  get invalid() {
1278
1278
  return a.invalid ?? !1;
1279
1279
  },
1280
- onSelect(r) {
1281
- !a.disabled && !a.readonly && s("update:value", r);
1280
+ onSelect(d) {
1281
+ !a.disabled && !a.readonly && s("update:value", d);
1282
1282
  }
1283
1283
  });
1284
1284
  const n = p(() => [
1285
1285
  "llm-radio-group",
1286
1286
  a.invalid && "is-invalid",
1287
1287
  a.disabled && "is-disabled"
1288
- ]);
1289
- return (r, d) => (l(), o("div", {
1288
+ ]), r = B(null);
1289
+ function u(d) {
1290
+ if (a.disabled || a.readonly) return;
1291
+ const i = d.key === "ArrowDown" || d.key === "ArrowRight", m = d.key === "ArrowUp" || d.key === "ArrowLeft";
1292
+ if (!i && !m) return;
1293
+ const h = Array.from(
1294
+ r.value?.querySelectorAll('input[type="radio"]') ?? []
1295
+ ).filter((f) => !f.disabled);
1296
+ if (h.length === 0) return;
1297
+ d.preventDefault();
1298
+ const $ = h.findIndex((f) => f.value === a.value), k = (($ === -1 ? i ? -1 : 0 : $) + (i ? 1 : -1) + h.length) % h.length, _ = h[k];
1299
+ _.focus(), s("update:value", _.value);
1300
+ }
1301
+ return (d, i) => (l(), o("div", {
1302
+ ref_key: "groupRef",
1303
+ ref: r,
1290
1304
  class: y(n.value),
1291
1305
  role: "radiogroup",
1292
1306
  "aria-invalid": e.invalid || void 0,
1293
- "aria-required": e.required || void 0
1307
+ "aria-required": e.required || void 0,
1308
+ onKeydown: u
1294
1309
  }, [
1295
- h(r.$slots, "default"),
1310
+ g(d.$slots, "default"),
1296
1311
  e.errors.length > 0 ? (l(), o("div", ya, [
1297
- (l(!0), o(T, null, R(e.errors, (u, i) => (l(), o("p", {
1298
- key: i,
1312
+ (l(!0), o(I, null, R(e.errors, (m, h) => (l(), o("p", {
1313
+ key: h,
1299
1314
  class: "error-message"
1300
- }, C(u), 1))), 128))
1301
- ])) : w("", !0)
1302
- ], 10, ga));
1315
+ }, C(m), 1))), 128))
1316
+ ])) : L("", !0)
1317
+ ], 42, ga));
1303
1318
  }
1304
1319
  }), $a = ["name", "value", "checked", "disabled"], ka = {
1305
1320
  key: 0,
@@ -1326,10 +1341,10 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1326
1341
  n.value && "is-checked",
1327
1342
  a.invalid && "is-invalid"
1328
1343
  ].filter(Boolean));
1329
- function d() {
1344
+ function u() {
1330
1345
  !s.value && !a.readonly && a.onSelect(t.radioValue);
1331
1346
  }
1332
- return (u, i) => (l(), o("label", {
1347
+ return (d, i) => (l(), o("label", {
1333
1348
  class: y(r.value)
1334
1349
  }, [
1335
1350
  c("input", {
@@ -1339,15 +1354,15 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1339
1354
  checked: n.value,
1340
1355
  disabled: s.value,
1341
1356
  class: "radio-input",
1342
- onChange: d
1357
+ onChange: u
1343
1358
  }, null, 40, $a),
1344
1359
  i[0] || (i[0] = c("span", {
1345
1360
  class: "radio-indicator",
1346
1361
  "aria-hidden": "true"
1347
1362
  }, null, -1)),
1348
- u.$slots.default ? (l(), o("span", ka, [
1349
- h(u.$slots, "default")
1350
- ])) : w("", !0)
1363
+ d.$slots.default ? (l(), o("span", ka, [
1364
+ g(d.$slots, "default")
1365
+ ])) : L("", !0)
1351
1366
  ], 2));
1352
1367
  }
1353
1368
  }), _a = ["for"], wa = { class: "select-wrapper" }, La = ["id", "name", "value", "disabled", "required", "aria-invalid", "aria-describedby"], xa = {
@@ -1371,22 +1386,22 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1371
1386
  },
1372
1387
  emits: ["update:value"],
1373
1388
  setup(e, { emit: t }) {
1374
- const a = e, s = t, n = O(), r = O(), d = p(() => [
1389
+ const a = e, s = t, n = O(), r = O(), u = p(() => [
1375
1390
  "llm-select",
1376
1391
  a.invalid && "is-invalid",
1377
1392
  a.disabled && "is-disabled"
1378
1393
  ]);
1379
- function u(i) {
1394
+ function d(i) {
1380
1395
  a.readonly || a.disabled || s("update:value", i.target.value);
1381
1396
  }
1382
1397
  return (i, m) => (l(), o("div", {
1383
- class: y(d.value)
1398
+ class: y(u.value)
1384
1399
  }, [
1385
1400
  e.label ? (l(), o("label", {
1386
1401
  key: 0,
1387
1402
  for: M(n),
1388
1403
  class: "select-label"
1389
- }, C(e.label), 9, _a)) : w("", !0),
1404
+ }, C(e.label), 9, _a)) : L("", !0),
1390
1405
  c("div", wa, [
1391
1406
  c("select", {
1392
1407
  id: M(n),
@@ -1397,10 +1412,10 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1397
1412
  "aria-invalid": e.invalid || void 0,
1398
1413
  "aria-describedby": e.errors.length > 0 ? M(r) : void 0,
1399
1414
  class: "select-native",
1400
- onChange: u
1415
+ onChange: d
1401
1416
  }, [
1402
- e.placeholder ? (l(), o("option", xa, C(e.placeholder), 1)) : w("", !0),
1403
- h(i.$slots, "default")
1417
+ e.placeholder ? (l(), o("option", xa, C(e.placeholder), 1)) : L("", !0),
1418
+ g(i.$slots, "default")
1404
1419
  ], 40, La),
1405
1420
  m[0] || (m[0] = c("span", {
1406
1421
  class: "select-arrow",
@@ -1413,11 +1428,11 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1413
1428
  class: "errors",
1414
1429
  role: "alert"
1415
1430
  }, [
1416
- (l(!0), o(T, null, R(e.errors, (g, $) => (l(), o("p", {
1431
+ (l(!0), o(I, null, R(e.errors, (h, $) => (l(), o("p", {
1417
1432
  key: $,
1418
1433
  class: "error-message"
1419
- }, C(g), 1))), 128))
1420
- ], 8, Ca)) : w("", !0)
1434
+ }, C(h), 1))), 128))
1435
+ ], 8, Ca)) : L("", !0)
1421
1436
  ], 2));
1422
1437
  }
1423
1438
  }), Ba = ["value", "disabled"], ll = /* @__PURE__ */ v({
@@ -1432,7 +1447,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1432
1447
  value: e.optionValue,
1433
1448
  disabled: e.disabled
1434
1449
  }, [
1435
- h(t.$slots, "default")
1450
+ g(t.$slots, "default")
1436
1451
  ], 8, Ba));
1437
1452
  }
1438
1453
  }), sl = /* @__PURE__ */ v({
@@ -1446,13 +1461,13 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1446
1461
  },
1447
1462
  setup(e) {
1448
1463
  const t = e;
1449
- function a(r, d, u) {
1450
- if (u) return u;
1464
+ function a(r, u, d) {
1465
+ if (d) return d;
1451
1466
  switch (r) {
1452
1467
  case "text":
1453
1468
  return "1em";
1454
1469
  case "circular":
1455
- return d;
1470
+ return u;
1456
1471
  case "rectangular":
1457
1472
  return "100px";
1458
1473
  default:
@@ -1467,23 +1482,23 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1467
1482
  width: t.width,
1468
1483
  height: a(t.variant, t.width, t.height)
1469
1484
  }));
1470
- return (r, d) => (l(), o("div", {
1485
+ return (r, u) => (l(), o("div", {
1471
1486
  class: y(s.value),
1472
1487
  style: P(n.value),
1473
1488
  "aria-hidden": "true"
1474
1489
  }, null, 6));
1475
1490
  }
1476
- }), Ta = {
1491
+ }), Ia = {
1477
1492
  class: "stepper-header",
1478
1493
  role: "tablist"
1479
- }, Ia = ["id", "aria-label", "aria-selected", "aria-controls", "aria-disabled", "tabindex", "disabled", "onClick"], Sa = {
1494
+ }, Ta = ["id", "aria-label", "aria-selected", "aria-controls", "aria-disabled", "tabindex", "disabled", "onClick"], Da = {
1480
1495
  key: 0,
1481
1496
  width: "14",
1482
1497
  height: "14",
1483
1498
  viewBox: "0 0 14 14",
1484
1499
  fill: "none",
1485
1500
  "aria-hidden": "true"
1486
- }, Da = {
1501
+ }, Sa = {
1487
1502
  key: 1,
1488
1503
  width: "14",
1489
1504
  height: "14",
@@ -1506,28 +1521,28 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1506
1521
  },
1507
1522
  emits: ["update:activeStep"],
1508
1523
  setup(e, { emit: t }) {
1509
- const a = e, s = t, n = B(a.activeStep), r = B([]), d = p(() => a.linear);
1524
+ const a = e, s = t, n = B(a.activeStep), r = B([]), u = p(() => a.linear);
1510
1525
  z(
1511
1526
  () => a.activeStep,
1512
1527
  (f) => {
1513
1528
  n.value = f;
1514
1529
  }
1515
1530
  );
1516
- function u(f) {
1531
+ function d(f) {
1517
1532
  r.value.push(f);
1518
1533
  }
1519
1534
  function i(f) {
1520
- r.value = r.value.filter((_) => _.id !== f);
1535
+ r.value = r.value.filter((w) => w.id !== f);
1521
1536
  }
1522
- function m(f, _) {
1523
- const x = r.value.findIndex((D) => D.id === f);
1524
- x !== -1 && (r.value[x] = { ...r.value[x], ..._ });
1537
+ function m(f, w) {
1538
+ const x = r.value.findIndex((S) => S.id === f);
1539
+ x !== -1 && (r.value[x] = { ...r.value[x], ...w });
1525
1540
  }
1526
- function g(f) {
1541
+ function h(f) {
1527
1542
  f < 0 || f >= r.value.length || r.value[f].disabled || a.linear && f > n.value && !r.value.slice(0, f).every((x) => x.completed || x.optional) || (n.value = f, s("update:activeStep", f));
1528
1543
  }
1529
1544
  function $() {
1530
- g(n.value + 1);
1545
+ h(n.value + 1);
1531
1546
  }
1532
1547
  function b() {
1533
1548
  const f = n.value - 1;
@@ -1536,29 +1551,29 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1536
1551
  E(se, {
1537
1552
  activeStep: n,
1538
1553
  steps: r,
1539
- linear: d,
1540
- registerStep: u,
1554
+ linear: u,
1555
+ registerStep: d,
1541
1556
  unregisterStep: i,
1542
1557
  updateStep: m,
1543
- goTo: g,
1558
+ goTo: h,
1544
1559
  next: $,
1545
1560
  prev: b
1546
1561
  });
1547
1562
  const k = p(() => ["llm-stepper", `orientation-${a.orientation}`]);
1548
- function L(f) {
1563
+ function _(f) {
1549
1564
  return n.value > f || r.value[f]?.completed;
1550
1565
  }
1551
- return (f, _) => (l(), o("div", {
1566
+ return (f, w) => (l(), o("div", {
1552
1567
  class: y(k.value)
1553
1568
  }, [
1554
- c("div", Ta, [
1555
- (l(!0), o(T, null, R(r.value, (x, D) => (l(), o(T, {
1569
+ c("div", Ia, [
1570
+ (l(!0), o(I, null, R(r.value, (x, S) => (l(), o(I, {
1556
1571
  key: x.id
1557
1572
  }, [
1558
1573
  c("div", {
1559
1574
  class: y(["step-item", {
1560
- "is-active": n.value === D,
1561
- "is-completed": x.completed && n.value !== D,
1575
+ "is-active": n.value === S,
1576
+ "is-completed": x.completed && n.value !== S,
1562
1577
  "is-error": x.error,
1563
1578
  "is-disabled": x.disabled
1564
1579
  }])
@@ -1567,16 +1582,16 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1567
1582
  type: "button",
1568
1583
  role: "tab",
1569
1584
  class: "step-circle",
1570
- id: `llm-step-${D}`,
1585
+ id: `llm-step-${S}`,
1571
1586
  "aria-label": x.label,
1572
- "aria-selected": n.value === D,
1573
- "aria-controls": `llm-step-panel-${D}`,
1587
+ "aria-selected": n.value === S,
1588
+ "aria-controls": `llm-step-panel-${S}`,
1574
1589
  "aria-disabled": x.disabled || void 0,
1575
- tabindex: n.value === D ? 0 : -1,
1590
+ tabindex: n.value === S ? 0 : -1,
1576
1591
  disabled: x.disabled || void 0,
1577
- onClick: (F) => g(D)
1592
+ onClick: (F) => h(S)
1578
1593
  }, [
1579
- x.completed && !x.error ? (l(), o("svg", Sa, [..._[0] || (_[0] = [
1594
+ x.completed && !x.error ? (l(), o("svg", Da, [...w[0] || (w[0] = [
1580
1595
  c("path", {
1581
1596
  d: "M2 7L5.5 10.5L12 3.5",
1582
1597
  stroke: "currentColor",
@@ -1584,31 +1599,31 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1584
1599
  "stroke-linecap": "round",
1585
1600
  "stroke-linejoin": "round"
1586
1601
  }, null, -1)
1587
- ])])) : x.error ? (l(), o("svg", Da, [..._[1] || (_[1] = [
1602
+ ])])) : x.error ? (l(), o("svg", Sa, [...w[1] || (w[1] = [
1588
1603
  c("path", {
1589
1604
  d: "M3 3L11 11M11 3L3 11",
1590
1605
  stroke: "currentColor",
1591
1606
  "stroke-width": "2",
1592
1607
  "stroke-linecap": "round"
1593
1608
  }, null, -1)
1594
- ])])) : (l(), o(T, { key: 2 }, [
1595
- G(C(D + 1), 1)
1609
+ ])])) : (l(), o(I, { key: 2 }, [
1610
+ G(C(S + 1), 1)
1596
1611
  ], 64))
1597
- ], 8, Ia),
1612
+ ], 8, Ta),
1598
1613
  c("div", Ma, [
1599
1614
  c("span", Aa, C(x.label), 1),
1600
- x.description ? (l(), o("span", Ra, C(x.description), 1)) : w("", !0),
1601
- x.optional && !x.completed ? (l(), o("span", za, "Optional")) : w("", !0)
1615
+ x.description ? (l(), o("span", Ra, C(x.description), 1)) : L("", !0),
1616
+ x.optional && !x.completed ? (l(), o("span", za, "Optional")) : L("", !0)
1602
1617
  ])
1603
1618
  ], 2),
1604
- D < r.value.length - 1 ? (l(), o("div", {
1619
+ S < r.value.length - 1 ? (l(), o("div", {
1605
1620
  key: 0,
1606
- class: y(["step-connector", { "is-active": L(D) }])
1607
- }, null, 2)) : w("", !0)
1621
+ class: y(["step-connector", { "is-active": _(S) }])
1622
+ }, null, 2)) : L("", !0)
1608
1623
  ], 64))), 128))
1609
1624
  ]),
1610
1625
  c("div", qa, [
1611
- h(f.$slots, "default")
1626
+ g(f.$slots, "default")
1612
1627
  ])
1613
1628
  ], 2));
1614
1629
  }
@@ -1646,12 +1661,12 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1646
1661
  optional: t.optional,
1647
1662
  disabled: t.disabled
1648
1663
  }),
1649
- (d) => {
1650
- a.updateStep(s, d);
1664
+ (u) => {
1665
+ a.updateStep(s, u);
1651
1666
  }
1652
1667
  );
1653
- const n = p(() => a.steps.value.findIndex((d) => d.id === s)), r = p(() => n.value === a.activeStep.value);
1654
- return (d, u) => n.value >= 0 ? (l(), o("div", {
1668
+ const n = p(() => a.steps.value.findIndex((u) => u.id === s)), r = p(() => n.value === a.activeStep.value);
1669
+ return (u, d) => n.value >= 0 ? (l(), o("div", {
1655
1670
  key: 0,
1656
1671
  id: `llm-step-panel-${n.value}`,
1657
1672
  role: "tabpanel",
@@ -1659,8 +1674,8 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1659
1674
  hidden: !r.value,
1660
1675
  tabindex: "0"
1661
1676
  }, [
1662
- h(d.$slots, "default")
1663
- ], 8, Ha)) : w("", !0);
1677
+ g(u.$slots, "default")
1678
+ ], 8, Ha)) : L("", !0);
1664
1679
  }
1665
1680
  }), Ea = ["aria-label"], il = /* @__PURE__ */ v({
1666
1681
  name: "LlmTable",
@@ -1688,7 +1703,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1688
1703
  "aria-label": e.ariaLabel ?? "Table"
1689
1704
  }, [
1690
1705
  c("table", null, [
1691
- h(s.$slots, "default")
1706
+ g(s.$slots, "default")
1692
1707
  ])
1693
1708
  ], 8, Ea)
1694
1709
  ], 2));
@@ -1698,7 +1713,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1698
1713
  __name: "llm-thead",
1699
1714
  setup(e) {
1700
1715
  return (t, a) => (l(), o("thead", null, [
1701
- h(t.$slots, "default")
1716
+ g(t.$slots, "default")
1702
1717
  ]));
1703
1718
  }
1704
1719
  }), Oa = { key: 1 }, Ka = ["colspan"], dl = /* @__PURE__ */ v({
@@ -1715,9 +1730,9 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1715
1730
  colspan: e.colSpan,
1716
1731
  class: "llm-tbody-empty-cell"
1717
1732
  }, [
1718
- h(t.$slots, "empty")
1733
+ g(t.$slots, "empty")
1719
1734
  ], 8, Ka)
1720
- ])) : h(t.$slots, "default", { key: 0 })
1735
+ ])) : g(t.$slots, "default", { key: 0 })
1721
1736
  ]));
1722
1737
  }
1723
1738
  }), ja = ["aria-selected"], Ga = {
@@ -1742,8 +1757,8 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1742
1757
  checked: e.selected,
1743
1758
  "onUpdate:checked": n[0] || (n[0] = (r) => a("update:selected", r))
1744
1759
  }, null, 8, ["checked"])
1745
- ])) : w("", !0),
1746
- h(s.$slots, "default")
1760
+ ])) : L("", !0),
1761
+ g(s.$slots, "default")
1747
1762
  ], 10, ja));
1748
1763
  }
1749
1764
  }), Pa = ["aria-sort"], cl = /* @__PURE__ */ v({
@@ -1768,11 +1783,11 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1768
1783
  if (a.sortable)
1769
1784
  return a.sortDirection === "asc" ? "ascending" : a.sortDirection === "desc" ? "descending" : "none";
1770
1785
  });
1771
- function d() {
1772
- const u = a.sortDirection === null ? "asc" : a.sortDirection === "asc" ? "desc" : null;
1773
- s("sort", u);
1786
+ function u() {
1787
+ const d = a.sortDirection === null ? "asc" : a.sortDirection === "asc" ? "desc" : null;
1788
+ s("sort", d);
1774
1789
  }
1775
- return (u, i) => (l(), o("th", {
1790
+ return (d, i) => (l(), o("th", {
1776
1791
  class: y(n.value),
1777
1792
  "aria-sort": r.value,
1778
1793
  style: P(e.width ? { width: e.width } : void 0)
@@ -1781,9 +1796,9 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1781
1796
  key: 0,
1782
1797
  type: "button",
1783
1798
  class: "llm-th-sort-btn",
1784
- onClick: d
1799
+ onClick: u
1785
1800
  }, [
1786
- h(u.$slots, "default"),
1801
+ g(d.$slots, "default"),
1787
1802
  i[0] || (i[0] = c("svg", {
1788
1803
  class: "llm-th-sort-icon",
1789
1804
  "aria-hidden": "true",
@@ -1803,7 +1818,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1803
1818
  fill: "currentColor"
1804
1819
  })
1805
1820
  ], -1))
1806
- ])) : h(u.$slots, "default", { key: 1 })
1821
+ ])) : g(d.$slots, "default", { key: 1 })
1807
1822
  ], 14, Pa));
1808
1823
  }
1809
1824
  }), ml = /* @__PURE__ */ v({
@@ -1817,7 +1832,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1817
1832
  return (s, n) => (l(), o("td", {
1818
1833
  class: y(a.value)
1819
1834
  }, [
1820
- h(s.$slots, "default")
1835
+ g(s.$slots, "default")
1821
1836
  ], 2));
1822
1837
  }
1823
1838
  }), Fa = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"], Na = { class: "tab-panels" }, ne = /* @__PURE__ */ Symbol("LlmTabGroup"), fl = /* @__PURE__ */ v({
@@ -1836,10 +1851,10 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1836
1851
  n.value = b;
1837
1852
  }
1838
1853
  );
1839
- function d(b) {
1854
+ function u(b) {
1840
1855
  r.value.push(b);
1841
1856
  }
1842
- function u(b) {
1857
+ function d(b) {
1843
1858
  r.value = r.value.filter((k) => k.id !== b);
1844
1859
  }
1845
1860
  function i(b) {
@@ -1848,19 +1863,19 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1848
1863
  E(ne, {
1849
1864
  selectedIndex: n,
1850
1865
  tabs: r,
1851
- registerTab: d,
1852
- unregisterTab: u,
1866
+ registerTab: u,
1867
+ unregisterTab: d,
1853
1868
  selectTab: i
1854
1869
  });
1855
1870
  function m(b) {
1856
- const k = r.value.map((f, _) => ({ i: _, disabled: f.disabled })).filter((f) => !f.disabled).map((f) => f.i), L = k.indexOf(n.value);
1871
+ const k = r.value.map((f, w) => ({ i: w, disabled: f.disabled })).filter((f) => !f.disabled).map((f) => f.i), _ = k.indexOf(n.value);
1857
1872
  if (b.key === "ArrowRight") {
1858
1873
  b.preventDefault();
1859
- const f = k[(L + 1) % k.length];
1874
+ const f = k[(_ + 1) % k.length];
1860
1875
  f !== void 0 && i(f);
1861
1876
  } else if (b.key === "ArrowLeft") {
1862
1877
  b.preventDefault();
1863
- const f = k[(L - 1 + k.length) % k.length];
1878
+ const f = k[(_ - 1 + k.length) % k.length];
1864
1879
  f !== void 0 && i(f);
1865
1880
  } else if (b.key === "Home")
1866
1881
  b.preventDefault(), k[0] !== void 0 && i(k[0]);
@@ -1870,7 +1885,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1870
1885
  f !== void 0 && i(f);
1871
1886
  }
1872
1887
  }
1873
- const g = `llm-tab-group-${Math.random().toString(36).slice(2, 9)}`, $ = p(() => ["llm-tab-group", `variant-${a.variant}`]);
1888
+ const h = `llm-tab-group-${Math.random().toString(36).slice(2, 9)}`, $ = p(() => ["llm-tab-group", `variant-${a.variant}`]);
1874
1889
  return (b, k) => (l(), o("div", {
1875
1890
  class: y($.value)
1876
1891
  }, [
@@ -1879,21 +1894,21 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1879
1894
  role: "tablist",
1880
1895
  onKeydown: m
1881
1896
  }, [
1882
- (l(!0), o(T, null, R(r.value, (L, f) => (l(), o("button", {
1883
- key: L.id,
1897
+ (l(!0), o(I, null, R(r.value, (_, f) => (l(), o("button", {
1898
+ key: _.id,
1884
1899
  role: "tab",
1885
- id: `${g}-tab-${f}`,
1900
+ id: `${h}-tab-${f}`,
1886
1901
  "aria-selected": f === n.value,
1887
- "aria-controls": `${g}-panel-${f}`,
1902
+ "aria-controls": `${h}-panel-${f}`,
1888
1903
  tabindex: f === n.value ? 0 : -1,
1889
- disabled: L.disabled,
1890
- class: y(["tab-button", f === n.value && "is-active", L.disabled && "is-disabled"]),
1904
+ disabled: _.disabled,
1905
+ class: y(["tab-button", f === n.value && "is-active", _.disabled && "is-disabled"]),
1891
1906
  type: "button",
1892
- onClick: (_) => !L.disabled && i(f)
1893
- }, C(L.label), 11, Fa))), 128))
1907
+ onClick: (w) => !_.disabled && i(f)
1908
+ }, C(_.label), 11, Fa))), 128))
1894
1909
  ], 32),
1895
1910
  c("div", Na, [
1896
- h(b.$slots, "default", { groupId: g })
1911
+ g(b.$slots, "default", { groupId: h })
1897
1912
  ])
1898
1913
  ], 2));
1899
1914
  }
@@ -1911,9 +1926,9 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1911
1926
  }), j(() => {
1912
1927
  a.unregisterTab(s);
1913
1928
  });
1914
- const n = p(() => a.tabs.value.findIndex((d) => d.id === s)), r = p(() => n.value === a.selectedIndex.value);
1929
+ const n = p(() => a.tabs.value.findIndex((u) => u.id === s)), r = p(() => n.value === a.selectedIndex.value);
1915
1930
  return p(() => {
1916
- }), (d, u) => n.value >= 0 ? (l(), o("div", {
1931
+ }), (u, d) => n.value >= 0 ? (l(), o("div", {
1917
1932
  key: 0,
1918
1933
  role: "tabpanel",
1919
1934
  hidden: !r.value,
@@ -1921,8 +1936,8 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1921
1936
  "aria-labelledby": void 0,
1922
1937
  tabindex: "0"
1923
1938
  }, [
1924
- h(d.$slots, "default")
1925
- ], 8, Va)) : w("", !0);
1939
+ g(u.$slots, "default")
1940
+ ], 8, Va)) : L("", !0);
1926
1941
  }
1927
1942
  }), Ua = ["for"], Wa = { class: "textarea-field" }, Ja = ["id", "value", "rows", "placeholder", "disabled", "readonly", "required", "name", "aria-invalid"], Ya = {
1928
1943
  key: 1,
@@ -1948,14 +1963,14 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1948
1963
  emits: ["update:value"],
1949
1964
  setup(e, { emit: t }) {
1950
1965
  const a = e, s = t, n = B(null), r = p(() => a.id || (a.label ? `textarea-${Math.random().toString(36).slice(2)}` : void 0));
1951
- function d() {
1966
+ function u() {
1952
1967
  a.autoResize && n.value && (n.value.style.height = "auto", n.value.style.height = `${n.value.scrollHeight}px`);
1953
1968
  }
1954
1969
  z(() => a.value, async () => {
1955
- await Z(), d();
1956
- }), H(() => d());
1957
- function u(i) {
1958
- s("update:value", i.target.value), d();
1970
+ await Z(), u();
1971
+ }), H(() => u());
1972
+ function d(i) {
1973
+ s("update:value", i.target.value), u();
1959
1974
  }
1960
1975
  return (i, m) => (l(), o("div", {
1961
1976
  class: y(["llm-textarea", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
@@ -1964,7 +1979,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1964
1979
  key: 0,
1965
1980
  for: r.value,
1966
1981
  class: "textarea-label"
1967
- }, C(e.label), 9, Ua)) : w("", !0),
1982
+ }, C(e.label), 9, Ua)) : L("", !0),
1968
1983
  c("div", Wa, [
1969
1984
  c("textarea", {
1970
1985
  id: r.value,
@@ -1978,15 +1993,15 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), wt = /* @__PURE__ */ v({
1978
1993
  required: e.required,
1979
1994
  name: e.name,
1980
1995
  "aria-invalid": e.invalid || void 0,
1981
- onInput: u
1996
+ onInput: d
1982
1997
  }, null, 40, Ja)
1983
1998
  ]),
1984
1999
  e.errors.length ? (l(), o("ul", Ya, [
1985
- (l(!0), o(T, null, R(e.errors, (g, $) => (l(), o("li", {
2000
+ (l(!0), o(I, null, R(e.errors, (h, $) => (l(), o("li", {
1986
2001
  key: $,
1987
2002
  class: "error"
1988
- }, C(g), 1))), 128))
1989
- ])) : w("", !0)
2003
+ }, C(h), 1))), 128))
2004
+ ])) : L("", !0)
1990
2005
  ], 2));
1991
2006
  }
1992
2007
  }), U = /* @__PURE__ */ Symbol("LlmToast");
@@ -2003,15 +2018,15 @@ const hl = /* @__PURE__ */ v({
2003
2018
  __name: "llm-toast-provider",
2004
2019
  setup(e) {
2005
2020
  const t = B([]), a = /* @__PURE__ */ new Map();
2006
- function s(d, u = {}) {
2007
- const i = `toast-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`, m = u.duration ?? 5e3, g = {
2021
+ function s(u, d = {}) {
2022
+ const i = `toast-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`, m = d.duration ?? 5e3, h = {
2008
2023
  id: i,
2009
- message: d,
2010
- variant: u.variant ?? "default",
2024
+ message: u,
2025
+ variant: d.variant ?? "default",
2011
2026
  duration: m,
2012
- dismissible: u.dismissible ?? !0
2027
+ dismissible: d.dismissible ?? !0
2013
2028
  };
2014
- if (t.value = [...t.value, g], m > 0) {
2029
+ if (t.value = [...t.value, h], m > 0) {
2015
2030
  const $ = setTimeout(() => {
2016
2031
  n(i);
2017
2032
  }, m);
@@ -2019,17 +2034,17 @@ const hl = /* @__PURE__ */ v({
2019
2034
  }
2020
2035
  return i;
2021
2036
  }
2022
- function n(d) {
2023
- t.value = t.value.filter((i) => i.id !== d);
2024
- const u = a.get(d);
2025
- u !== void 0 && (clearTimeout(u), a.delete(d));
2037
+ function n(u) {
2038
+ t.value = t.value.filter((i) => i.id !== u);
2039
+ const d = a.get(u);
2040
+ d !== void 0 && (clearTimeout(d), a.delete(u));
2026
2041
  }
2027
2042
  function r() {
2028
- for (const d of a.values())
2029
- clearTimeout(d);
2043
+ for (const u of a.values())
2044
+ clearTimeout(u);
2030
2045
  a.clear(), t.value = [];
2031
2046
  }
2032
- return E(U, { toasts: t, show: s, dismiss: n, clear: r }), (d, u) => h(d.$slots, "default");
2047
+ return E(U, { toasts: t, show: s, dismiss: n, clear: r }), (u, d) => g(u.$slots, "default");
2033
2048
  }
2034
2049
  }), Za = { class: "message" }, Qa = /* @__PURE__ */ v({
2035
2050
  name: "LlmToastItem",
@@ -2040,7 +2055,7 @@ const hl = /* @__PURE__ */ v({
2040
2055
  emits: ["dismiss"],
2041
2056
  setup(e, { emit: t }) {
2042
2057
  const a = e, s = t, n = p(() => ["llm-toast", `variant-${a.data.variant}`]);
2043
- return (r, d) => (l(), o("div", {
2058
+ return (r, u) => (l(), o("div", {
2044
2059
  class: y(n.value),
2045
2060
  role: "status"
2046
2061
  }, [
@@ -2050,8 +2065,8 @@ const hl = /* @__PURE__ */ v({
2050
2065
  class: "dismiss",
2051
2066
  type: "button",
2052
2067
  "aria-label": "Dismiss",
2053
- onClick: d[0] || (d[0] = (u) => s("dismiss", e.data.id))
2054
- }, [...d[1] || (d[1] = [
2068
+ onClick: u[0] || (u[0] = (d) => s("dismiss", e.data.id))
2069
+ }, [...u[1] || (u[1] = [
2055
2070
  c("svg", {
2056
2071
  xmlns: "http://www.w3.org/2000/svg",
2057
2072
  width: "14",
@@ -2077,7 +2092,7 @@ const hl = /* @__PURE__ */ v({
2077
2092
  y2: "18"
2078
2093
  })
2079
2094
  ], -1)
2080
- ])])) : w("", !0)
2095
+ ])])) : L("", !0)
2081
2096
  ], 2));
2082
2097
  }
2083
2098
  }), gl = /* @__PURE__ */ v({
@@ -2088,19 +2103,19 @@ const hl = /* @__PURE__ */ v({
2088
2103
  },
2089
2104
  setup(e) {
2090
2105
  const t = e, a = q(U), s = p(() => a.toasts.value);
2091
- function n(d) {
2092
- a.dismiss(d);
2106
+ function n(u) {
2107
+ a.dismiss(u);
2093
2108
  }
2094
2109
  const r = p(() => ["llm-toast-container", `position-${t.position}`]);
2095
- return (d, u) => (l(), o("div", {
2110
+ return (u, d) => (l(), o("div", {
2096
2111
  class: y(r.value),
2097
2112
  "aria-live": "polite",
2098
2113
  role: "status"
2099
2114
  }, [
2100
- (l(!0), o(T, null, R(s.value, (i) => (l(), N(Qa, {
2115
+ (l(!0), o(I, null, R(s.value, (i) => (l(), N(Qa, {
2101
2116
  key: i.id,
2102
2117
  data: i,
2103
- onDismiss: u[0] || (u[0] = (m) => n(m))
2118
+ onDismiss: d[0] || (d[0] = (m) => n(m))
2104
2119
  }, null, 8, ["data"]))), 128))
2105
2120
  ], 2));
2106
2121
  }
@@ -2124,10 +2139,10 @@ const hl = /* @__PURE__ */ v({
2124
2139
  emits: ["update:checked"],
2125
2140
  setup(e, { emit: t }) {
2126
2141
  const a = e, s = t, n = p(() => a.id || `toggle-${Math.random().toString(36).slice(2)}`);
2127
- function r(d) {
2128
- a.readonly || s("update:checked", d.target.checked);
2142
+ function r(u) {
2143
+ a.readonly || s("update:checked", u.target.checked);
2129
2144
  }
2130
- return (d, u) => (l(), o("div", {
2145
+ return (u, d) => (l(), o("div", {
2131
2146
  class: y(["llm-toggle", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
2132
2147
  }, [
2133
2148
  c("label", {
@@ -2146,17 +2161,17 @@ const hl = /* @__PURE__ */ v({
2146
2161
  "aria-checked": e.checked,
2147
2162
  onChange: r
2148
2163
  }, null, 40, et),
2149
- u[0] || (u[0] = c("span", { class: "track" }, [
2164
+ d[0] || (d[0] = c("span", { class: "track" }, [
2150
2165
  c("span", { class: "thumb" })
2151
2166
  ], -1)),
2152
- h(d.$slots, "default")
2167
+ g(u.$slots, "default")
2153
2168
  ], 8, Xa),
2154
2169
  e.errors.length ? (l(), o("ul", at, [
2155
- (l(!0), o(T, null, R(e.errors, (i, m) => (l(), o("li", {
2170
+ (l(!0), o(I, null, R(e.errors, (i, m) => (l(), o("li", {
2156
2171
  key: m,
2157
2172
  class: "error"
2158
2173
  }, C(i), 1))), 128))
2159
- ])) : w("", !0)
2174
+ ])) : L("", !0)
2160
2175
  ], 2));
2161
2176
  }
2162
2177
  }), $l = /* @__PURE__ */ v({
@@ -2175,12 +2190,12 @@ const hl = /* @__PURE__ */ v({
2175
2190
  function r() {
2176
2191
  s && (clearTimeout(s), s = null), n && (clearTimeout(n), n = null);
2177
2192
  }
2178
- function d() {
2193
+ function u() {
2179
2194
  t.llmTooltipDisabled || !t.llmTooltip || (r(), s = setTimeout(() => {
2180
2195
  a.value = !0;
2181
2196
  }, t.llmTooltipShowDelay));
2182
2197
  }
2183
- function u() {
2198
+ function d() {
2184
2199
  r(), n = setTimeout(() => {
2185
2200
  a.value = !1;
2186
2201
  }, t.llmTooltipHideDelay);
@@ -2188,20 +2203,20 @@ const hl = /* @__PURE__ */ v({
2188
2203
  function i(m) {
2189
2204
  m.key === "Escape" && (r(), a.value = !1);
2190
2205
  }
2191
- return Y(() => r()), (m, g) => (l(), o("span", {
2206
+ return Y(() => r()), (m, h) => (l(), o("span", {
2192
2207
  class: "llm-tooltip-wrapper",
2193
- onMouseenter: d,
2194
- onMouseleave: u,
2195
- onFocus: d,
2196
- onBlur: u,
2208
+ onMouseenter: u,
2209
+ onMouseleave: d,
2210
+ onFocus: u,
2211
+ onBlur: d,
2197
2212
  onKeydown: i
2198
2213
  }, [
2199
- h(m.$slots, "default"),
2214
+ g(m.$slots, "default"),
2200
2215
  a.value && !e.llmTooltipDisabled && e.llmTooltip ? (l(), o("div", {
2201
2216
  key: 0,
2202
2217
  role: "tooltip",
2203
2218
  class: y(`llm-tooltip position-${e.llmTooltipPosition}`)
2204
- }, C(e.llmTooltip), 3)) : w("", !0)
2219
+ }, C(e.llmTooltip), 3)) : L("", !0)
2205
2220
  ], 32));
2206
2221
  }
2207
2222
  }), tt = { class: "llm-code-block" }, lt = { class: "code-block-header" }, st = { class: "code-block-label" }, nt = ["aria-label"], ot = { class: "code-block-body" }, it = { class: "code-block-pre" }, rt = { class: "code-line-number" }, dt = { class: "code-line-text" }, kl = /* @__PURE__ */ v({
@@ -2224,7 +2239,7 @@ const hl = /* @__PURE__ */ v({
2224
2239
  }, 1800);
2225
2240
  });
2226
2241
  }
2227
- return (d, u) => (l(), o("div", tt, [
2242
+ return (u, d) => (l(), o("div", tt, [
2228
2243
  c("div", lt, [
2229
2244
  c("span", st, C(s.value), 1),
2230
2245
  e.copyable ? (l(), o("button", {
@@ -2234,8 +2249,8 @@ const hl = /* @__PURE__ */ v({
2234
2249
  "aria-label": a.value ? "Copied" : "Copy code",
2235
2250
  onClick: r
2236
2251
  }, [
2237
- a.value ? (l(), o(T, { key: 0 }, [
2238
- u[0] || (u[0] = c("svg", {
2252
+ a.value ? (l(), o(I, { key: 0 }, [
2253
+ d[0] || (d[0] = c("svg", {
2239
2254
  xmlns: "http://www.w3.org/2000/svg",
2240
2255
  width: "14",
2241
2256
  height: "14",
@@ -2249,9 +2264,9 @@ const hl = /* @__PURE__ */ v({
2249
2264
  }, [
2250
2265
  c("polyline", { points: "20 6 9 17 4 12" })
2251
2266
  ], -1)),
2252
- u[1] || (u[1] = G(" Copied ", -1))
2253
- ], 64)) : (l(), o(T, { key: 1 }, [
2254
- u[2] || (u[2] = c("svg", {
2267
+ d[1] || (d[1] = G(" Copied ", -1))
2268
+ ], 64)) : (l(), o(I, { key: 1 }, [
2269
+ d[2] || (d[2] = c("svg", {
2255
2270
  xmlns: "http://www.w3.org/2000/svg",
2256
2271
  width: "14",
2257
2272
  height: "14",
@@ -2273,20 +2288,20 @@ const hl = /* @__PURE__ */ v({
2273
2288
  }),
2274
2289
  c("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
2275
2290
  ], -1)),
2276
- u[3] || (u[3] = G(" Copy ", -1))
2291
+ d[3] || (d[3] = G(" Copy ", -1))
2277
2292
  ], 64))
2278
- ], 8, nt)) : w("", !0)
2293
+ ], 8, nt)) : L("", !0)
2279
2294
  ]),
2280
2295
  c("div", ot, [
2281
2296
  c("pre", it, [
2282
2297
  c("code", null, [
2283
- e.showLineNumbers ? (l(!0), o(T, { key: 0 }, R(n.value, (i, m) => (l(), o("span", {
2298
+ e.showLineNumbers ? (l(!0), o(I, { key: 0 }, R(n.value, (i, m) => (l(), o("span", {
2284
2299
  key: m,
2285
2300
  class: "code-line"
2286
2301
  }, [
2287
2302
  c("span", rt, C(m + 1), 1),
2288
2303
  c("span", dt, C(i), 1)
2289
- ]))), 128)) : (l(), o(T, { key: 1 }, [
2304
+ ]))), 128)) : (l(), o(I, { key: 1 }, [
2290
2305
  G(C(e.code), 1)
2291
2306
  ], 64))
2292
2307
  ])
@@ -2304,7 +2319,7 @@ const hl = /* @__PURE__ */ v({
2304
2319
  },
2305
2320
  emits: ["update:open"],
2306
2321
  setup(e, { emit: t }) {
2307
- const a = e, s = t, n = B(null), r = Q("hostRef"), d = O(), u = pe(a, "status");
2322
+ const a = e, s = t, n = B(null), r = Q("hostRef"), u = O(), d = pe(a, "status");
2308
2323
  function i() {
2309
2324
  s("update:open", !1);
2310
2325
  }
@@ -2312,35 +2327,35 @@ const hl = /* @__PURE__ */ v({
2312
2327
  s("update:open", !a.open);
2313
2328
  }
2314
2329
  E(W, {
2315
- headerId: d,
2316
- status: u,
2330
+ headerId: u,
2331
+ status: d,
2317
2332
  close: i,
2318
2333
  toggle: m
2319
2334
  }), z(
2320
2335
  () => a.open,
2321
- (L) => {
2336
+ (_) => {
2322
2337
  if (a.variant !== "drawer") return;
2323
2338
  const f = n.value;
2324
- f && (L ? f.open || f.showModal() : f.open && f.close());
2339
+ f && (_ ? f.open || f.showModal() : f.open && f.close());
2325
2340
  },
2326
2341
  { flush: "post" }
2327
2342
  ), z(
2328
2343
  () => a.open,
2329
- async (L) => {
2330
- L && a.variant !== "inline" && (await Z(), requestAnimationFrame(() => {
2344
+ async (_) => {
2345
+ _ && a.variant !== "inline" && (await Z(), requestAnimationFrame(() => {
2331
2346
  r.value?.querySelector("textarea")?.focus();
2332
2347
  }));
2333
2348
  },
2334
2349
  { flush: "post", immediate: !0 }
2335
2350
  );
2336
- function g() {
2351
+ function h() {
2337
2352
  s("update:open", !1);
2338
2353
  }
2339
- function $(L) {
2340
- L.preventDefault(), s("update:open", !1);
2354
+ function $(_) {
2355
+ _.preventDefault(), s("update:open", !1);
2341
2356
  }
2342
- function b(L) {
2343
- L.target === n.value && s("update:open", !1);
2357
+ function b(_) {
2358
+ _.target === n.value && s("update:open", !1);
2344
2359
  }
2345
2360
  const k = p(() => [
2346
2361
  "llm-chat",
@@ -2348,7 +2363,7 @@ const hl = /* @__PURE__ */ v({
2348
2363
  `status-${a.status}`,
2349
2364
  a.open && "is-open"
2350
2365
  ]);
2351
- return (L, f) => (l(), o("div", {
2366
+ return (_, f) => (l(), o("div", {
2352
2367
  ref_key: "hostRef",
2353
2368
  ref: r,
2354
2369
  class: y(k.value)
@@ -2357,9 +2372,9 @@ const hl = /* @__PURE__ */ v({
2357
2372
  key: 0,
2358
2373
  ref_key: "dialogRef",
2359
2374
  ref: n,
2360
- "aria-labelledby": M(d),
2375
+ "aria-labelledby": M(u),
2361
2376
  "aria-modal": "true",
2362
- onClose: g,
2377
+ onClose: h,
2363
2378
  onCancel: $,
2364
2379
  onClick: b
2365
2380
  }, [
@@ -2368,17 +2383,17 @@ const hl = /* @__PURE__ */ v({
2368
2383
  onClick: f[0] || (f[0] = V(() => {
2369
2384
  }, ["stop"]))
2370
2385
  }, [
2371
- h(L.$slots, "default")
2386
+ g(_.$slots, "default")
2372
2387
  ])
2373
- ], 40, ut)) : e.variant === "popup" ? (l(), o(T, { key: 1 }, [
2388
+ ], 40, ut)) : e.variant === "popup" ? (l(), o(I, { key: 1 }, [
2374
2389
  e.open ? (l(), o("div", {
2375
2390
  key: 0,
2376
2391
  class: "surface popup-surface",
2377
2392
  role: "dialog",
2378
- "aria-labelledby": M(d)
2393
+ "aria-labelledby": M(u)
2379
2394
  }, [
2380
- h(L.$slots, "default")
2381
- ], 8, ct)) : w("", !0),
2395
+ g(_.$slots, "default")
2396
+ ], 8, ct)) : L("", !0),
2382
2397
  c("button", {
2383
2398
  type: "button",
2384
2399
  class: "fab-bubble",
@@ -2391,9 +2406,9 @@ const hl = /* @__PURE__ */ v({
2391
2406
  ], 64)) : (l(), o("section", {
2392
2407
  key: 2,
2393
2408
  class: "surface inline-surface",
2394
- "aria-labelledby": M(d)
2409
+ "aria-labelledby": M(u)
2395
2410
  }, [
2396
- h(L.$slots, "default")
2411
+ g(_.$slots, "default")
2397
2412
  ], 8, ft))
2398
2413
  ], 2));
2399
2414
  }
@@ -2414,7 +2429,7 @@ const hl = /* @__PURE__ */ v({
2414
2429
  class: "llm-chat-header"
2415
2430
  }, [
2416
2431
  c("div", vt, [
2417
- h(a.$slots, "default")
2432
+ g(a.$slots, "default")
2418
2433
  ]),
2419
2434
  c("button", {
2420
2435
  type: "button",
@@ -2470,7 +2485,7 @@ const hl = /* @__PURE__ */ v({
2470
2485
  ref: t,
2471
2486
  class: "llm-chat-messages"
2472
2487
  }, [
2473
- h(s.$slots, "default")
2488
+ g(s.$slots, "default")
2474
2489
  ], 512));
2475
2490
  }
2476
2491
  }), xl = /* @__PURE__ */ v({
@@ -2490,7 +2505,7 @@ const hl = /* @__PURE__ */ v({
2490
2505
  role: "listitem",
2491
2506
  class: y(a.value)
2492
2507
  }, [
2493
- h(s.$slots, "default")
2508
+ g(s.$slots, "default")
2494
2509
  ], 2));
2495
2510
  }
2496
2511
  }), Cl = /* @__PURE__ */ v({
@@ -2532,14 +2547,14 @@ const hl = /* @__PURE__ */ v({
2532
2547
  c("button", {
2533
2548
  type: "button",
2534
2549
  class: "chip",
2535
- onClick: r[0] || (r[0] = (d) => s("selected", a.label))
2550
+ onClick: r[0] || (r[0] = (u) => s("selected", a.label))
2536
2551
  }, [
2537
2552
  c("span", ht, C(a.label), 1),
2538
- a.hint ? (l(), o("span", gt, C(a.hint), 1)) : w("", !0)
2553
+ a.hint ? (l(), o("span", gt, C(a.hint), 1)) : L("", !0)
2539
2554
  ])
2540
2555
  ]));
2541
2556
  }
2542
- }), yt = { class: "llm-chat-input" }, $t = ["value", "placeholder", "disabled", "aria-label"], kt = ["disabled"], Tl = /* @__PURE__ */ v({
2557
+ }), yt = { class: "llm-chat-input" }, $t = ["value", "placeholder", "disabled", "aria-label"], kt = ["disabled"], Il = /* @__PURE__ */ v({
2543
2558
  name: "LlmChatInput",
2544
2559
  __name: "llm-chat-input",
2545
2560
  props: {
@@ -2556,10 +2571,10 @@ const hl = /* @__PURE__ */ v({
2556
2571
  },
2557
2572
  toggle: () => {
2558
2573
  }
2559
- }), r = B(""), d = p(() => a.value !== void 0), u = p({
2560
- get: () => d.value ? a.value ?? "" : r.value,
2574
+ }), r = B(""), u = p(() => a.value !== void 0), d = p({
2575
+ get: () => u.value ? a.value ?? "" : r.value,
2561
2576
  set: (k) => {
2562
- d.value || (r.value = k), s("update:value", k);
2577
+ u.value || (r.value = k), s("update:value", k);
2563
2578
  }
2564
2579
  }), i = p(() => n.status.value === "streaming"), m = p(() => {
2565
2580
  if (a.placeholder) return a.placeholder;
@@ -2572,22 +2587,22 @@ const hl = /* @__PURE__ */ v({
2572
2587
  return "Message your AI assistant…";
2573
2588
  }
2574
2589
  });
2575
- function g() {
2576
- const k = u.value.trim();
2577
- !k || i.value || (s("send", k), u.value = "");
2590
+ function h() {
2591
+ const k = d.value.trim();
2592
+ !k || i.value || (s("send", k), d.value = "");
2578
2593
  }
2579
2594
  function $(k) {
2580
- k.key === "Enter" && !k.shiftKey && (k.preventDefault(), g());
2595
+ k.key === "Enter" && !k.shiftKey && (k.preventDefault(), h());
2581
2596
  }
2582
2597
  function b(k) {
2583
- const L = k.target;
2584
- u.value = L.value;
2598
+ const _ = k.target;
2599
+ d.value = _.value;
2585
2600
  }
2586
- return (k, L) => (l(), o("div", yt, [
2601
+ return (k, _) => (l(), o("div", yt, [
2587
2602
  c("textarea", {
2588
2603
  class: "field",
2589
2604
  rows: "1",
2590
- value: u.value,
2605
+ value: d.value,
2591
2606
  placeholder: m.value,
2592
2607
  disabled: i.value,
2593
2608
  "aria-label": a.ariaLabel,
@@ -2598,13 +2613,13 @@ const hl = /* @__PURE__ */ v({
2598
2613
  key: 0,
2599
2614
  type: "button",
2600
2615
  class: "action-btn variant-danger size-md",
2601
- onClick: L[0] || (L[0] = (f) => s("stop"))
2616
+ onClick: _[0] || (_[0] = (f) => s("stop"))
2602
2617
  }, " Stop ")) : (l(), o("button", {
2603
2618
  key: 1,
2604
2619
  type: "button",
2605
2620
  class: "action-btn variant-primary size-md",
2606
- disabled: !u.value.trim(),
2607
- onClick: g
2621
+ disabled: !d.value.trim(),
2622
+ onClick: h
2608
2623
  }, " Send ", 8, kt))
2609
2624
  ]));
2610
2625
  }
@@ -2615,10 +2630,10 @@ export {
2615
2630
  Lt as LlmAccordionItem,
2616
2631
  Ct as LlmAlert,
2617
2632
  Bt as LlmAvatar,
2618
- Tt as LlmAvatarGroup,
2619
- It as LlmBadge,
2633
+ It as LlmAvatarGroup,
2634
+ Tt as LlmBadge,
2620
2635
  Mt as LlmBreadcrumbItem,
2621
- Dt as LlmBreadcrumbs,
2636
+ St as LlmBreadcrumbs,
2622
2637
  At as LlmButton,
2623
2638
  Rt as LlmCard,
2624
2639
  qt as LlmCardContent,
@@ -2626,7 +2641,7 @@ export {
2626
2641
  zt as LlmCardHeader,
2627
2642
  _l as LlmChat,
2628
2643
  wl as LlmChatHeader,
2629
- Tl as LlmChatInput,
2644
+ Il as LlmChatInput,
2630
2645
  W as LlmChatKey,
2631
2646
  xl as LlmChatMessage,
2632
2647
  Ll as LlmChatMessages,
@@ -2643,7 +2658,7 @@ export {
2643
2658
  Ft as LlmDrawerContent,
2644
2659
  Nt as LlmDrawerFooter,
2645
2660
  Pt as LlmDrawerHeader,
2646
- St as LlmIcon,
2661
+ Dt as LlmIcon,
2647
2662
  Vt as LlmInput,
2648
2663
  Wt as LlmMenu,
2649
2664
  Jt as LlmMenuItem,