@wpic/ui 0.9.4 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wpic-ui.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as X, openBlock as e, createBlock as K, resolveDynamicComponent as B1, normalizeClass as b, withCtx as r1, createElementVNode as i, createCommentVNode as h, renderSlot as Q, createElementBlock as t, createVNode as V, unref as v, Fragment as E, renderList as i1, toDisplayString as m, useModel as G1, useSlots as q2, computed as x, ref as F, watch as M1, onBeforeUnmount as s2, mergeProps as X1, createTextVNode as v1, withDirectives as T1, normalizeStyle as h1, vModelDynamic as b0, mergeModels as _1, vModelCheckbox as J0, withModifiers as f1, onMounted as H2, withKeys as M2, inject as Q2, provide as g2, isRef as X0, nextTick as H1, Teleport as O1, vShow as G0, Transition as w2, getCurrentInstance as g0, vModelText as l2, useAttrs as _0, TransitionGroup as n3, useCssVars as e3, vModelSelect as c3, onUnmounted as t3, createStaticVNode as A1 } from "vue";
2
- import { Loader2 as a2, Calendar as z0, DollarSign as i3, X as $1, Check as U1, Search as P2, ChevronUp as C0, ChevronDown as D1, ChevronsUpDown as J2, ChevronRight as j1, ChevronLeft as z2, Download as l3, Minimize as a3, Expand as o3, CalendarDays as T2, FolderSymlink as s3, Minimize2 as r3, Maximize2 as p3, Plus as y2, Trash2 as d3, Folder as w0, MoreHorizontal as w3, Bot as u3, Paperclip as O2, ThumbsUp as h3, ThumbsDown as v3, Copy as m3, Pencil as f3, MessageSquarePlus as b3, Square as g3, ArrowUp as z3, CircleAlert as C3, CircleCheck as k3, ShieldAlert as x3, Lightbulb as y3, PanelLeftOpen as M3, PanelLeftClose as V3, AlertTriangle as L3, Tag as F2, Clock as B3, RefreshCw as $3 } from "lucide-vue-next";
1
+ import { defineComponent as X, openBlock as e, createBlock as K, resolveDynamicComponent as B1, normalizeClass as b, withCtx as r1, createElementVNode as i, createCommentVNode as h, renderSlot as Q, createElementBlock as t, createVNode as V, unref as v, Fragment as E, renderList as i1, toDisplayString as m, useModel as G1, useSlots as q2, computed as x, ref as H, watch as M1, onBeforeUnmount as s2, mergeProps as X1, createTextVNode as v1, withDirectives as T1, normalizeStyle as h1, vModelDynamic as b0, mergeModels as _1, vModelCheckbox as J0, withModifiers as f1, onMounted as F2, withKeys as M2, inject as Q2, provide as g2, isRef as X0, nextTick as F1, Teleport as O1, vShow as G0, Transition as w2, getCurrentInstance as g0, vModelText as l2, useAttrs as _0, TransitionGroup as n3, useCssVars as e3, vModelSelect as c3, onUnmounted as t3, createStaticVNode as A1 } from "vue";
2
+ import { Loader2 as a2, Calendar as z0, DollarSign as i3, X as $1, Check as U1, Search as P2, ChevronUp as C0, ChevronDown as D1, ChevronsUpDown as J2, ChevronRight as j1, ChevronLeft as z2, Download as l3, Minimize as a3, Expand as o3, CalendarDays as T2, FolderSymlink as s3, Minimize2 as r3, Maximize2 as p3, Plus as y2, Trash2 as d3, Folder as w0, MoreHorizontal as w3, Bot as u3, Paperclip as O2, ThumbsUp as h3, ThumbsDown as v3, Copy as m3, Pencil as f3, MessageSquarePlus as b3, Square as g3, ArrowUp as z3, CircleAlert as C3, CircleCheck as k3, ShieldAlert as x3, Lightbulb as y3, PanelLeftOpen as M3, PanelLeftClose as V3, AlertTriangle as L3, Tag as H2, Clock as B3, RefreshCw as $3 } from "lucide-vue-next";
3
3
  import { offset as u2, autoPlacement as A3, flip as h2, shift as v2, size as X2, useFloating as m2, autoUpdate as f2 } from "@floating-ui/vue";
4
4
  import { defineStore as S3 } from "pinia";
5
- const F3 = {
5
+ const H3 = {
6
6
  key: 0,
7
7
  class: "wpic:absolute wpic:inset-0 wpic:flex wpic:items-center wpic:justify-center wpic:rounded-[inherit]",
8
8
  "aria-hidden": "true"
@@ -45,6 +45,8 @@ const F3 = {
45
45
  (c.variant ?? "primary") === "subtle" ? "wpic:bg-zinc-100 wpic:border wpic:border-zinc-100 wpic:hover:bg-zinc-200/70 wpic:text-zinc-700 wpic:dark:bg-zinc-800 wpic:dark:border-zinc-800 wpic:dark:hover:bg-zinc-700 wpic:dark:text-zinc-200" : "",
46
46
  (c.variant ?? "primary") === "destructive" ? "wpic:bg-red-500 wpic:hover:bg-red-600 wpic:text-white" : "",
47
47
  (c.variant ?? "primary") === "ghost" ? "wpic:bg-transparent wpic:hover:bg-zinc-100 wpic:text-zinc-600 wpic:hover:text-zinc-900 wpic:dark:hover:bg-zinc-800 wpic:dark:text-zinc-400 wpic:dark:hover:text-zinc-100" : "",
48
+ c.variant === "ghost-transparent" ? "wpic:bg-transparent wpic:hover:bg-[#80808026] wpic:text-inherit" : "",
49
+ c.variant === "ghost-transparent" && !n.disabled && !n.loading ? "wpic:opacity-60 wpic:hover:opacity-100 wpic:focus-visible:opacity-100" : "",
48
50
  (c.variant ?? "primary") === "outline" ? "wpic:bg-transparent wpic:border wpic:border-zinc-200 wpic:hover:bg-zinc-50 wpic:text-zinc-700 wpic:dark:border-zinc-800 wpic:dark:hover:bg-zinc-800 wpic:dark:text-zinc-300" : ""
49
51
  ])
50
52
  }, {
@@ -58,7 +60,7 @@ const F3 = {
58
60
  }, null, 8, ["size"])) : h("", !0),
59
61
  Q(d.$slots, "default")
60
62
  ], 2),
61
- n.loading ? (e(), t("span", F3, [
63
+ n.loading ? (e(), t("span", H3, [
62
64
  V(v(a2), {
63
65
  size: (c.size ?? "md") === "xs" ? 10 : (c.size ?? "md") === "sm" ? 13 : (c.size ?? "md") === "lg" ? 17 : 15,
64
66
  class: "wpic:animate-spin"
@@ -68,10 +70,10 @@ const F3 = {
68
70
  _: 3
69
71
  }, 8, ["href", "disabled", "data-variant", "data-size", "data-active", "class"]));
70
72
  }
71
- }), H3 = { class: "wpic-button-group wpic:inline-flex" }, P3 = /* @__PURE__ */ X({
73
+ }), F3 = { class: "wpic-button-group wpic:inline-flex" }, P3 = /* @__PURE__ */ X({
72
74
  __name: "WButtonGroup",
73
75
  setup(n) {
74
- return (w, c) => (e(), t("div", H3, [
76
+ return (w, c) => (e(), t("div", F3, [
75
77
  Q(w.$slots, "default")
76
78
  ]));
77
79
  }
@@ -139,7 +141,7 @@ const F3 = {
139
141
  if (c.icon) return c.icon;
140
142
  if (c.type === "date") return z0;
141
143
  if (c.type === "money") return i3;
142
- }), f = x(() => ({ sm: 12, md: 13, lg: 14, xl: 16 })[c.size ?? "md"]), k = x(() => c.type === "money" ? "number" : c.type ?? "text"), g = F(), a = F(), T = F(0);
144
+ }), f = x(() => ({ sm: 12, md: 13, lg: 14, xl: 16 })[c.size ?? "md"]), k = x(() => c.type === "money" ? "number" : c.type ?? "text"), g = H(), a = H(), T = H(0);
143
145
  let S;
144
146
  M1(a, (B) => {
145
147
  S?.disconnect(), T.value = B?.getBoundingClientRect().width ?? 0, B && (S = new ResizeObserver(() => {
@@ -351,15 +353,15 @@ const F3 = {
351
353
  },
352
354
  emits: ["row-click", "update:selectedKeys", "row-select", "update:serverPage"],
353
355
  setup(n, { expose: w, emit: c }) {
354
- const o = n, d = c, l = F(/* @__PURE__ */ new Set());
356
+ const o = n, d = c, l = H(/* @__PURE__ */ new Set());
355
357
  function s(j) {
356
358
  l.value.has(j) ? l.value.delete(j) : l.value.add(j);
357
359
  }
358
- const f = q2(), k = x(() => o.pageSize ?? 25), g = F(null), a = F("asc");
360
+ const f = q2(), k = x(() => o.pageSize ?? 25), g = H(null), a = H("asc");
359
361
  function T(j) {
360
362
  g.value === j ? a.value = a.value === "asc" ? "desc" : "asc" : (g.value = j, a.value = "asc");
361
363
  }
362
- const S = F(""), D = x(() => o.columns.some((j) => j.searchable)), B = x(() => {
364
+ const S = H(""), D = x(() => o.columns.some((j) => j.searchable)), B = x(() => {
363
365
  let j = o.data ?? [];
364
366
  const d1 = S.value.trim().toLowerCase();
365
367
  if (d1) {
@@ -374,7 +376,7 @@ const F3 = {
374
376
  });
375
377
  }
376
378
  return j;
377
- }), y = F(1), z = x(() => o.serverTotal !== void 0), Z = x({
379
+ }), y = H(1), z = x(() => o.serverTotal !== void 0), Z = x({
378
380
  get: () => z.value ? o.serverPage ?? 1 : y.value,
379
381
  set: (j) => {
380
382
  z.value ? d("update:serverPage", j) : y.value = j;
@@ -395,7 +397,7 @@ const F3 = {
395
397
  const P = x(() => new Set(o.selectedKeys ?? [])), O = x(() => q.value.map(e1)), I = x(
396
398
  () => o.selectable && O.value.length > 0 && O.value.every((j) => P.value.has(j))
397
399
  );
398
- function H(j, d1, L) {
400
+ function F(j, d1, L) {
399
401
  const R = e1(j, d1), t1 = new Set(o.selectedKeys ?? []), m1 = L === !0;
400
402
  m1 ? t1.add(R) : t1.delete(R), d("update:selectedKeys", [...t1]), d("row-select", j, m1);
401
403
  }
@@ -545,7 +547,7 @@ const F3 = {
545
547
  }, [
546
548
  V(u0, {
547
549
  "model-value": P.value.has(e1(L, R)),
548
- "onUpdate:modelValue": (t1) => H(L, R, t1)
550
+ "onUpdate:modelValue": (t1) => F(L, R, t1)
549
551
  }, null, 8, ["model-value", "onUpdate:modelValue"])
550
552
  ], 2)) : h("", !0),
551
553
  n.expandable ? (e(), t("td", {
@@ -690,7 +692,7 @@ const F3 = {
690
692
  },
691
693
  emits: ["update:expanded", "cell-change"],
692
694
  setup(n, { expose: w, emit: c }) {
693
- const o = n, d = c, l = x(() => o.showAxes && o.showColumnLetters), s = x(() => o.showAxes && o.showRowNumbers), f = x(() => o.columns.some((A) => A.sticky)), k = F(null), g = F("asc"), a = F(o.expanded ?? !1), T = F(null), S = F(null), D = F(null), B = F(null), y = F(null);
695
+ const o = n, d = c, l = x(() => o.showAxes && o.showColumnLetters), s = x(() => o.showAxes && o.showRowNumbers), f = x(() => o.columns.some((A) => A.sticky)), k = H(null), g = H("asc"), a = H(o.expanded ?? !1), T = H(null), S = H(null), D = H(null), B = H(null), y = H(null);
694
696
  function z() {
695
697
  if (!o.downloadable) return;
696
698
  const A = (W) => `"${String(W ?? "").replace(/"/g, '""')}"`, U = P.value.map((W) => o.columns.map((Y) => A(q(W, Y.key))).join(",")).join(`\r
@@ -729,7 +731,7 @@ const F3 = {
729
731
  const w1 = document.activeElement;
730
732
  w1 && T.value?.contains(w1) && w1.blur();
731
733
  }
732
- H2(() => {
734
+ F2(() => {
733
735
  document.addEventListener("keydown", o1), document.addEventListener("pointerdown", b1);
734
736
  }), s2(() => {
735
737
  document.removeEventListener("keydown", o1), document.removeEventListener("pointerdown", b1), window.removeEventListener("pointerup", R);
@@ -759,18 +761,18 @@ const F3 = {
759
761
  function I(A) {
760
762
  O(A) && (k.value === A.key ? g.value = g.value === "asc" ? "desc" : "asc" : (k.value = A.key, g.value = "asc"));
761
763
  }
762
- function H(A, U) {
764
+ function F(A, U) {
763
765
  return A.cells.slice(0, U).reduce((N, w1) => N + (w1.colspan || 1), 0);
764
766
  }
765
767
  function c1(A, U) {
766
- return !!o.columns[H(A, U)]?.sticky;
768
+ return !!o.columns[F(A, U)]?.sticky;
767
769
  }
768
770
  function l1(A, U) {
769
- const N = H(A, U);
771
+ const N = F(A, U);
770
772
  return !!(o.columns[N]?.sticky && !o.columns.slice(0, N).some((w1) => w1.sticky));
771
773
  }
772
774
  function y1(A, U) {
773
- const N = H(A, U);
775
+ const N = F(A, U);
774
776
  if (!o.columns[N]?.sticky) return;
775
777
  const w1 = o.columns.slice(0, N).map((s1) => s1.width || "0px");
776
778
  return { left: w1.length ? `calc(${w1.join(" + ")})` : "0px" };
@@ -1028,7 +1030,7 @@ const h0 = /* @__PURE__ */ Y1(B5, [["render", A5]]), S5 = ["disabled"], d2 = /*
1028
1030
  Q(o.$slots, "default")
1029
1031
  ], 10, S5));
1030
1032
  }
1031
- }), F5 = {
1033
+ }), H5 = {
1032
1034
  light: {
1033
1035
  trendPositive: "#15803D",
1034
1036
  trendNegative: "#DB2777",
@@ -1093,8 +1095,8 @@ const h0 = /* @__PURE__ */ Y1(B5, [["render", A5]]), S5 = ["disabled"], d2 = /*
1093
1095
  light: ["#3B73E1", "#0891A6", "#8B5CD6", "#C58A16", "#D64D79", "#527FA8"],
1094
1096
  dark: ["#7C9FE0", "#5FB8C4", "#AF94D5", "#D8B26A", "#D88FA5", "#94A8BD"]
1095
1097
  };
1096
- function H5(n, w = {}) {
1097
- const c = { ...F5[n], ...w }, o = {};
1098
+ function F5(n, w = {}) {
1099
+ const c = { ...H5[n], ...w }, o = {};
1098
1100
  for (const [d, l] of Object.entries(c))
1099
1101
  o[`--wpic-${d.replace(/[A-Z]/g, (s) => `-${s.toLowerCase()}`)}`] = l;
1100
1102
  Object.assign(o, {
@@ -1150,19 +1152,19 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1150
1152
  setup(n, { emit: w }) {
1151
1153
  const c = n, o = V2(), d = w, l = /* @__PURE__ */ Symbol.for("wpic-ui-popover-descendants"), s = Q2(l, null), f = /* @__PURE__ */ new Set();
1152
1154
  g2(l, {
1153
- add(H) {
1154
- f.add(H), s?.add(H);
1155
+ add(F) {
1156
+ f.add(F), s?.add(F);
1155
1157
  },
1156
- remove(H) {
1157
- f.delete(H), s?.remove(H);
1158
+ remove(F) {
1159
+ f.delete(F), s?.remove(F);
1158
1160
  }
1159
1161
  });
1160
1162
  const k = x(() => {
1161
- const H = c.anchor;
1162
- return H ? X0(H) ? H.value : H : null;
1163
- }), g = F(null), a = F(null), T = x(() => a.value ?? c.placement ?? "bottom-start"), S = x(() => {
1164
- const H = [u2(c.offset ?? 6)];
1165
- return a.value || (c.autoPlacement ? H.push(A3({ alignment: "start" })) : c.flip && H.push(h2({ crossAxis: !c.shiftCrossAxis }))), H.push(v2({ padding: c.autoPlacement ? 8 : 4, crossAxis: c.autoPlacement || c.shiftCrossAxis })), H.push(
1163
+ const F = c.anchor;
1164
+ return F ? X0(F) ? F.value : F : null;
1165
+ }), g = H(null), a = H(null), T = x(() => a.value ?? c.placement ?? "bottom-start"), S = x(() => {
1166
+ const F = [u2(c.offset ?? 6)];
1167
+ return a.value || (c.autoPlacement ? F.push(A3({ alignment: "start" })) : c.flip && F.push(h2({ crossAxis: !c.shiftCrossAxis }))), F.push(v2({ padding: c.autoPlacement ? 8 : 4, crossAxis: c.autoPlacement || c.shiftCrossAxis })), F.push(
1166
1168
  X2({
1167
1169
  padding: 8,
1168
1170
  apply({ availableHeight: c1, rects: l1, elements: y1 }) {
@@ -1174,7 +1176,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1174
1176
  Object.assign(y1.floating.style, G);
1175
1177
  }
1176
1178
  })
1177
- ), H;
1179
+ ), F;
1178
1180
  }), { floatingStyles: D, placement: B, update: y, isPositioned: z } = m2(k, g, {
1179
1181
  placement: T,
1180
1182
  strategy: "fixed",
@@ -1182,14 +1184,14 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1182
1184
  whileElementsMounted: f2,
1183
1185
  middleware: S
1184
1186
  }), Z = x(() => {
1185
- const H = B.value;
1186
- return H.startsWith("top") ? "bottom" : H.startsWith("bottom") ? "top" : H.startsWith("left") ? "right" : H.startsWith("right") ? "left" : "top";
1187
- }), o1 = (H) => {
1188
- const c1 = H.target, l1 = k.value, y1 = g.value;
1187
+ const F = B.value;
1188
+ return F.startsWith("top") ? "bottom" : F.startsWith("bottom") ? "top" : F.startsWith("left") ? "right" : F.startsWith("right") ? "left" : "top";
1189
+ }), o1 = (F) => {
1190
+ const c1 = F.target, l1 = k.value, y1 = g.value;
1189
1191
  y1 && y1.contains(c1) || [...f].some((J) => J.contains(c1)) || l1 && l1.contains(c1) || c.extraPanels?.some((J) => J?.contains(c1)) || d("close");
1190
- }, b1 = (H) => {
1191
- if (H.key !== "Escape" || !c.open || [...f].some((l1) => l1.isConnected && l1.style.display !== "none")) return;
1192
- H.preventDefault(), H.stopImmediatePropagation(), d("close");
1192
+ }, b1 = (F) => {
1193
+ if (F.key !== "Escape" || !c.open || [...f].some((l1) => l1.isConnected && l1.style.display !== "none")) return;
1194
+ F.preventDefault(), F.stopImmediatePropagation(), d("close");
1193
1195
  const c1 = k.value;
1194
1196
  c1?.matches("button, input, [tabindex]") ? c1.focus() : c1?.querySelector("button, input, [tabindex]")?.focus();
1195
1197
  };
@@ -1200,14 +1202,14 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1200
1202
  function O() {
1201
1203
  e1 && (document.removeEventListener("pointerdown", o1, !0), document.removeEventListener("keydown", b1, !0), e1 = !1);
1202
1204
  }
1203
- M1(() => c.open, (H) => {
1204
- H ? H1(() => {
1205
+ M1(() => c.open, (F) => {
1206
+ F ? F1(() => {
1205
1207
  q || !c.open || (c.autoPlacement && g.value && (g.value.style.maxHeight = ""), y(), P());
1206
1208
  }) : (a.value = null, O());
1207
- }, { immediate: !0 }), M1(g, (H, c1) => {
1208
- c1 && s?.remove(c1), H && s?.add(H);
1209
- }), M1(z, (H) => {
1210
- H && c.open && c.freezePositionOnOpen && !a.value && (a.value = B.value);
1209
+ }, { immediate: !0 }), M1(g, (F, c1) => {
1210
+ c1 && s?.remove(c1), F && s?.add(F);
1211
+ }), M1(z, (F) => {
1212
+ F && c.open && c.freezePositionOnOpen && !a.value && (a.value = B.value);
1211
1213
  }), s2(() => {
1212
1214
  q = !0, O(), g.value && s?.remove(g.value);
1213
1215
  });
@@ -1220,7 +1222,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1220
1222
  transformOrigin: Z.value,
1221
1223
  zIndex: c.zIndex
1222
1224
  }));
1223
- return (H, c1) => (e(), K(O1, {
1225
+ return (F, c1) => (e(), K(O1, {
1224
1226
  to: "body",
1225
1227
  class: "wpic-popover"
1226
1228
  }, [
@@ -1231,7 +1233,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1231
1233
  class: b([{ "wpic-theme": v(o), dark: v(o)?.mode === "dark" }, "wpic-popover-panel wpic:flex wpic:flex-col wpic:bg-white wpic:dark:bg-zinc-900 wpic:border wpic:border-zinc-200 wpic:dark:border-zinc-800 wpic:rounded-xl wpic:shadow-xl wpic:dark:shadow-black/40 wpic:overflow-hidden"]),
1232
1234
  style: h1([v(o)?.variables, v(D), I.value])
1233
1235
  }, [
1234
- Q(H.$slots, "default")
1236
+ Q(F.$slots, "default")
1235
1237
  ], 14, P5), [
1236
1238
  [G0, n.open]
1237
1239
  ])
@@ -1267,7 +1269,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1267
1269
  }, A4 = {
1268
1270
  key: 2,
1269
1271
  class: "wpic:space-y-4"
1270
- }, S4 = { class: "wpic:max-w-[82%]" }, F4 = ["src", "alt"], H4 = { class: "wpic:max-w-40 wpic:truncate" }, P4 = {
1272
+ }, S4 = { class: "wpic:max-w-[82%]" }, H4 = ["src", "alt"], F4 = { class: "wpic:max-w-40 wpic:truncate" }, P4 = {
1271
1273
  key: 0,
1272
1274
  class: "wpic:shrink-0 wpic:text-zinc-400"
1273
1275
  }, T4 = {
@@ -1362,18 +1364,18 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1362
1364
  },
1363
1365
  emits: ["close", "send", "clear", "new", "new-project", "new-conversation", "select-project", "select-session", "rename-project", "rename-session", "delete-project", "delete-session", "move-session", "edit-message", "new-chat-from-message", "message-feedback", "apply-message-proposal", "navigate", "cancel", "attach", "files-selected", "remove-attachment", "update:modelValue", "update:docked", "update:maximized", "update:width", "update:height", "update:x", "update:y"],
1364
1366
  setup(n, { emit: w }) {
1365
- const c = n, o = w, d = q2(), l = F(null), s = F(null), f = F(null), k = F(null), g = F(null), a = F(null), T = F(0), S = F(0), D = F(!1), B = F(null), y = F(null);
1367
+ const c = n, o = w, d = q2(), l = H(null), s = H(null), f = H(null), k = H(null), g = H(null), a = H(null), T = H(0), S = H(0), D = H(!1), B = H(null), y = H(null);
1366
1368
  let z = null;
1367
- const Z = F(!1), o1 = F(!1), b1 = F(!1);
1368
- F(/* @__PURE__ */ new Set());
1369
- const q = F(null), e1 = F(null), P = F({}), O = F(null);
1370
- let I = null, H = null;
1369
+ const Z = H(!1), o1 = H(!1), b1 = H(!1);
1370
+ H(/* @__PURE__ */ new Set());
1371
+ const q = H(null), e1 = H(null), P = H({}), O = H(null);
1372
+ let I = null, F = null;
1371
1373
  function c1() {
1372
- H?.disconnect(), H = null;
1374
+ F?.disconnect(), F = null;
1373
1375
  const r = s.value, p = g.value;
1374
1376
  if (!r || !p || typeof ResizeObserver > "u") return;
1375
1377
  const u = () => p.style.setProperty("--wpic-chat-footer-height", `${r.getBoundingClientRect().height}px`);
1376
- u(), H = new ResizeObserver(u), H.observe(r);
1378
+ u(), F = new ResizeObserver(u), F.observe(r);
1377
1379
  }
1378
1380
  const l1 = x(() => O.value ? [] : c.messages.filter((r) => r.role !== "system")), y1 = x(() => c.loading || O.value !== null), J = x(() => c.modelValue.trim().length > 0 && !c.loading), p1 = x(() => c.attachments.length > 0), G = x(() => {
1379
1381
  const r = c.modelValue.slice(0, S.value), p = r.match(/(?:^|\s)@([^\s@]*)$/);
@@ -1700,7 +1702,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1700
1702
  function c0(r) {
1701
1703
  return /(current settings|current model|currently|réglages? actuels?|paramètres? actuels?|mod[eè]le actuel)/i.test(r);
1702
1704
  }
1703
- function F0(r, p, u) {
1705
+ function H0(r, p, u) {
1704
1706
  let M = p;
1705
1707
  for (const C of E2(u)) {
1706
1708
  if (C.type === "apply_prompt" && N(u.content)) continue;
@@ -1711,8 +1713,8 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1711
1713
  }
1712
1714
  return M;
1713
1715
  }
1714
- function H0(r, p, u) {
1715
- const M = F0(r, p, u);
1716
+ function F0(r, p, u) {
1717
+ const M = H0(r, p, u);
1716
1718
  if (M !== p) return M;
1717
1719
  const C = Q1(u), $ = m1(r);
1718
1720
  if (!C && !$.length) return p;
@@ -1739,7 +1741,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1739
1741
  function k2(r, p) {
1740
1742
  const u = q1(r);
1741
1743
  let M = I1(u);
1742
- return p?.role === "assistant" && !p.streaming && !p.error && (M = H0(u, M, p)), M = M.replace(/`([^`]+)`/g, "<code>$1</code>").replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>").replace(/__([^_]+)__/g, "<strong>$1</strong>").replace(/\*([^*]+)\*/g, "<em>$1</em>").replace(/_([^_]+)_/g, "<em>$1</em>").replace(/\[([^\]]+)\]\(((?:https?:\/\/|\/(?!\/))[^)\s]+)\)/g, (C, $, n1) => {
1744
+ return p?.role === "assistant" && !p.streaming && !p.error && (M = F0(u, M, p)), M = M.replace(/`([^`]+)`/g, "<code>$1</code>").replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>").replace(/__([^_]+)__/g, "<strong>$1</strong>").replace(/\*([^*]+)\*/g, "<em>$1</em>").replace(/_([^_]+)_/g, "<em>$1</em>").replace(/\[([^\]]+)\]\(((?:https?:\/\/|\/(?!\/))[^)\s]+)\)/g, (C, $, n1) => {
1743
1745
  const u1 = /^https?:\/\//.test(n1) ? ' target="_blank" rel="noopener noreferrer"' : "";
1744
1746
  return `<a href="${n1}"${u1}>${$}</a>`;
1745
1747
  }).replace(/\b([A-ZÀ-ÖØ-Þ][\p{L}\p{N} _-]{1,40})\s+\(((?:\/(?!\/)[A-Za-z0-9._~:/?#[\]@!$&'*+,;=%-]+))\)/gu, (C, $, n1) => `<a href="${n1}">${$.trim()}</a>`).replace(/(^|[\s(])((?:\/(?!\/)[A-Za-z0-9._~:/?#[\]@!$&'*+,;=%-]+))/g, (C, $, n1) => C.includes("<a ") ? C : `${$}<a href="${n1}">${n1}</a>`), M;
@@ -1747,11 +1749,11 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1747
1749
  function P0(r) {
1748
1750
  if (r.role === "assistant" && r.streaming && W(r.content))
1749
1751
  return "<p>Preparing image...</p>";
1750
- const p = [], u = r.content.replace(/\[PROMPT\]([\s\S]*?)\[\/PROMPT\]/gi, (L1, F1) => {
1751
- const S1 = e2(F1).trim();
1752
- if (!S1) return F1;
1752
+ const p = [], u = r.content.replace(/\[PROMPT\]([\s\S]*?)\[\/PROMPT\]/gi, (L1, H1) => {
1753
+ const S1 = e2(H1).trim();
1754
+ if (!S1) return H1;
1753
1755
  const S2 = p.push(S1) - 1;
1754
- return `${F1}
1756
+ return `${H1}
1755
1757
 
1756
1758
  [[WPIC_CHAT_APPLY_PROMPT_${S2}]]`;
1757
1759
  }), M = q1(u).replace(/\r\n/g, `
@@ -1766,20 +1768,20 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1766
1768
  $ && (C.push(`<pre><code>${I1(n1.join(`
1767
1769
  `))}</code></pre>`), n1 = [], $ = !1);
1768
1770
  }, J1 = (L1) => {
1769
- const F1 = L1.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((S1) => S1.trim());
1770
- return F1.length > 1 && F1.every((S1) => /^:?-{3,}:?$/.test(S1));
1771
- }, Z1 = (L1) => L1.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((F1) => F1.trim());
1771
+ const H1 = L1.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((S1) => S1.trim());
1772
+ return H1.length > 1 && H1.every((S1) => /^:?-{3,}:?$/.test(S1));
1773
+ }, Z1 = (L1) => L1.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((H1) => H1.trim());
1772
1774
  for (let L1 = 0; L1 < M.length; L1 += 1) {
1773
- const F1 = M[L1];
1774
- if (F1.trim().startsWith("```")) {
1775
+ const H1 = M[L1];
1776
+ if (H1.trim().startsWith("```")) {
1775
1777
  $ ? W1() : (k1(), C1(), $ = !0, n1 = []);
1776
1778
  continue;
1777
1779
  }
1778
1780
  if ($) {
1779
- n1.push(F1);
1781
+ n1.push(H1);
1780
1782
  continue;
1781
1783
  }
1782
- const S1 = F1.trim(), S2 = S1.match(/^\[\[WPIC_CHAT_APPLY_PROMPT_(\d+)\]\]$/);
1784
+ const S1 = H1.trim(), S2 = S1.match(/^\[\[WPIC_CHAT_APPLY_PROMPT_(\d+)\]\]$/);
1783
1785
  if (S2) {
1784
1786
  k1(), C1();
1785
1787
  const K1 = p[Number(S2[1])];
@@ -1876,19 +1878,19 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1876
1878
  o("move-session", r, p), t2();
1877
1879
  }
1878
1880
  function a0(r = j.value) {
1879
- o("new-conversation", r), D.value = !1, t2(), H1(() => f.value?.focus());
1881
+ o("new-conversation", r), D.value = !1, t2(), F1(() => f.value?.focus());
1880
1882
  }
1881
1883
  function D2(r) {
1882
1884
  r !== c.selectedSessionId && (O.value = r);
1883
1885
  }
1884
1886
  function o0(r) {
1885
- D2(r), o("select-session", r), D.value = !1, t2(), H1(() => f.value?.focus());
1887
+ D2(r), o("select-session", r), D.value = !1, t2(), F1(() => f.value?.focus());
1886
1888
  }
1887
1889
  function W0(r) {
1888
1890
  o("delete-session", r), t2();
1889
1891
  }
1890
1892
  function D0(r) {
1891
- o("update:modelValue", r.content), o("edit-message", r), H1(() => f.value?.focus());
1893
+ o("update:modelValue", r.content), o("edit-message", r), F1(() => f.value?.focus());
1892
1894
  }
1893
1895
  function B2(r, p) {
1894
1896
  o("apply-message-proposal", r, p);
@@ -1933,7 +1935,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1933
1935
  }
1934
1936
  function I2() {
1935
1937
  const r = c.modelValue.trim();
1936
- !r || c.loading || (o("send", r), H1(() => f.value?.focus()));
1938
+ !r || c.loading || (o("send", r), F1(() => f.value?.focus()));
1937
1939
  }
1938
1940
  function $2() {
1939
1941
  S.value = f.value?.selectionStart ?? c.modelValue.length;
@@ -1942,13 +1944,13 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
1942
1944
  const p = G.value;
1943
1945
  if (!p) return;
1944
1946
  const u = c.modelValue.slice(0, p.start), M = c.modelValue.slice(S.value), C = `${u}@${r.label} ${M.replace(/^\s+/, "")}`;
1945
- o("update:modelValue", C), T.value = 0, H1(() => {
1947
+ o("update:modelValue", C), T.value = 0, F1(() => {
1946
1948
  const $ = `${u}@${r.label} `.length;
1947
1949
  f.value?.focus(), f.value?.setSelectionRange($, $), $2(), x2();
1948
1950
  });
1949
1951
  }
1950
1952
  function x2() {
1951
- H1(() => {
1953
+ F1(() => {
1952
1954
  const r = f.value;
1953
1955
  if (!r) return;
1954
1956
  r.style.height = "auto";
@@ -2051,15 +2053,15 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
2051
2053
  o1.value = !0;
2052
2054
  const M = r.clientX, C = r.clientY, $ = u.width, n1 = u.height, a1 = u.left, u1 = u.top, C1 = (W1) => {
2053
2055
  const J1 = W1.clientX - M, Z1 = W1.clientY - C;
2054
- let i2 = $, N1 = n1, L1 = a1, F1 = u1;
2055
- p.includes("e") && (i2 = Math.max(c.minWidth, $ + J1)), p.includes("s") && (N1 = Math.max(c.minHeight, n1 + Z1)), p.includes("w") && (i2 = Math.max(c.minWidth, $ - J1), L1 = a1 + ($ - i2)), p.includes("n") && (N1 = Math.max(c.minHeight, n1 - Z1), F1 = Math.max(c.topOffset, u1 + (n1 - N1))), o("update:width", Math.min(i2, window.innerWidth)), o("update:height", Math.min(N1, window.innerHeight - c.topOffset)), c.docked || (o("update:x", Math.max(0, L1)), o("update:y", Math.max(c.topOffset, F1)));
2056
+ let i2 = $, N1 = n1, L1 = a1, H1 = u1;
2057
+ p.includes("e") && (i2 = Math.max(c.minWidth, $ + J1)), p.includes("s") && (N1 = Math.max(c.minHeight, n1 + Z1)), p.includes("w") && (i2 = Math.max(c.minWidth, $ - J1), L1 = a1 + ($ - i2)), p.includes("n") && (N1 = Math.max(c.minHeight, n1 - Z1), H1 = Math.max(c.topOffset, u1 + (n1 - N1))), o("update:width", Math.min(i2, window.innerWidth)), o("update:height", Math.min(N1, window.innerHeight - c.topOffset)), c.docked || (o("update:x", Math.max(0, L1)), o("update:y", Math.max(c.topOffset, H1)));
2056
2058
  }, k1 = () => {
2057
2059
  o1.value = !1, document.removeEventListener("mousemove", C1), document.removeEventListener("mouseup", k1);
2058
2060
  };
2059
2061
  document.addEventListener("mousemove", C1), document.addEventListener("mouseup", k1);
2060
2062
  }
2061
2063
  function p0() {
2062
- H1(() => {
2064
+ F1(() => {
2063
2065
  const r = l.value;
2064
2066
  r && (r.scrollTop = r.scrollHeight);
2065
2067
  });
@@ -2068,13 +2070,13 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
2068
2070
  `), p0), M1([() => c.selectedSessionId, () => c.loading, () => c.messages.length], () => {
2069
2071
  O.value && c.selectedSessionId === O.value && !c.loading && (O.value = null);
2070
2072
  }), M1(() => c.modelValue, x2), M1(() => c.open, (r) => {
2071
- r && (p0(), x2(), H1(() => {
2073
+ r && (p0(), x2(), F1(() => {
2072
2074
  f.value?.focus(), c1();
2073
2075
  }));
2074
- }), H2(() => {
2075
- x2(), H1(c1), document.addEventListener("pointerdown", i0, !0);
2076
+ }), F2(() => {
2077
+ x2(), F1(c1), document.addEventListener("pointerdown", i0, !0);
2076
2078
  }), s2(() => {
2077
- H?.disconnect(), z && window.clearTimeout(z), r2(), document.removeEventListener("pointerdown", i0, !0);
2079
+ F?.disconnect(), z && window.clearTimeout(z), r2(), document.removeEventListener("pointerdown", i0, !0);
2078
2080
  }), (r, p) => (e(), K(O1, { to: "body" }, [
2079
2081
  V(w2, {
2080
2082
  "enter-active-class": "wpic:transition-opacity wpic:duration-150",
@@ -2491,12 +2493,12 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
2491
2493
  alt: C.name,
2492
2494
  class: "wpic:h-full wpic:w-full wpic:object-cover",
2493
2495
  loading: "lazy"
2494
- }, null, 8, F4)) : (e(), t(E, { key: 1 }, [
2496
+ }, null, 8, H4)) : (e(), t(E, { key: 1 }, [
2495
2497
  V(v(O2), {
2496
2498
  size: 12,
2497
2499
  class: "wpic:shrink-0"
2498
2500
  }),
2499
- i("span", H4, m(C.name), 1),
2501
+ i("span", F4, m(C.name), 1),
2500
2502
  A2(C.bytes) ? (e(), t("span", P4, m(A2(C.bytes)), 1)) : h("", !0)
2501
2503
  ], 64))
2502
2504
  ], 2))), 128))
@@ -2802,7 +2804,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
2802
2804
  const B = Math.min(g(), f.value);
2803
2805
  B !== c.modelValue && o("update:modelValue", B);
2804
2806
  }
2805
- H2(() => {
2807
+ F2(() => {
2806
2808
  l = window.location.pathname, T(), window.addEventListener("popstate", T);
2807
2809
  }), s2(() => window.removeEventListener("popstate", T)), M1(
2808
2810
  () => c.modelValue,
@@ -2892,10 +2894,10 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
2892
2894
  class: "wpic:shrink-0 wpic:text-zinc-400 wpic:dark:text-zinc-500"
2893
2895
  }, z6 = { style: { overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" } }, C6 = {
2894
2896
  key: 0,
2895
- class: "wpic:flex wpic:items-center wpic:gap-2 wpic:px-2.5 wpic:py-1.5 wpic:border-b wpic:border-zinc-100 wpic:dark:border-zinc-800"
2897
+ class: "wpic:shrink-0 wpic:flex wpic:items-center wpic:gap-2 wpic:px-2.5 wpic:py-1.5 wpic:border-b wpic:border-zinc-100 wpic:dark:border-zinc-800"
2896
2898
  }, k6 = ["placeholder"], x6 = {
2897
2899
  key: 1,
2898
- class: "wpic:flex wpic:items-center wpic:justify-between wpic:px-2.5 wpic:py-1 wpic:border-b wpic:border-zinc-100 wpic:dark:border-zinc-800"
2900
+ class: "wpic:shrink-0 wpic:flex wpic:items-center wpic:justify-between wpic:px-2.5 wpic:py-1 wpic:border-b wpic:border-zinc-100 wpic:dark:border-zinc-800"
2899
2901
  }, y6 = { class: "wpic:p-1 wpic:flex-1 wpic:overflow-y-auto wpic:min-h-0" }, M6 = { class: "wpic:min-w-0 wpic:flex-1" }, V6 = { class: "wpic:block wpic:truncate wpic:text-zinc-900 wpic:dark:text-zinc-100" }, L6 = {
2900
2902
  key: 0,
2901
2903
  class: "wpic:mt-0.5 wpic:block wpic:text-sm wpic:font-normal wpic:text-zinc-500 wpic:dark:text-zinc-400"
@@ -2929,15 +2931,17 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
2929
2931
  popoverWidth: {},
2930
2932
  popoverPlacement: {},
2931
2933
  popoverFlip: { type: Boolean, default: !0 },
2934
+ popoverAutoPlacement: { type: Boolean },
2935
+ popoverMinHeight: {},
2932
2936
  popoverMaxHeight: {}
2933
2937
  },
2934
2938
  emits: ["update:modelValue", "open-change"],
2935
2939
  setup(n, { emit: w }) {
2936
- const c = n, o = w, d = (P) => typeof P == "object" && P !== null ? P : { value: P, label: String(P), icon: void 0, iconKey: void 0, meta: void 0, metaVariant: void 0 }, l = F(!1), s = F(null), f = `wpic-select-${g0().uid}`, k = F(null), g = F(""), a = F(c.multiple ? [...c.modelValue ?? []] : []);
2940
+ const c = n, o = w, d = (P) => typeof P == "object" && P !== null ? P : { value: P, label: String(P), icon: void 0, iconKey: void 0, meta: void 0, metaVariant: void 0 }, l = H(!1), s = H(null), f = `wpic-select-${g0().uid}`, k = H(null), g = H(""), a = H(c.multiple ? [...c.modelValue ?? []] : []);
2937
2941
  M1(() => c.modelValue, (P) => {
2938
2942
  c.multiple && (a.value = [...P ?? []]);
2939
2943
  }, { deep: !0 }), M1(l, (P) => {
2940
- o("open-change", P), P && c.searchable && H1(() => k.value?.focus()), P || (g.value = "");
2944
+ o("open-change", P), P && c.searchable && F1(() => k.value?.focus()), P || (g.value = "");
2941
2945
  });
2942
2946
  const T = x(() => (c.options ?? []).map(d)), S = x(() => {
2943
2947
  if (!c.searchable || !g.value) return T.value;
@@ -2947,7 +2951,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
2947
2951
  O || (o("update:modelValue", P), l.value = !1);
2948
2952
  }, B = (P, O = !1) => {
2949
2953
  if (O) return;
2950
- const I = a.value.includes(P) ? a.value.filter((H) => H !== P) : [...a.value, P];
2954
+ const I = a.value.includes(P) ? a.value.filter((F) => F !== P) : [...a.value, P];
2951
2955
  a.value = I, o("update:modelValue", [...I]);
2952
2956
  }, y = x(() => {
2953
2957
  if (!c.creatable || !g.value.trim()) return !1;
@@ -2972,8 +2976,8 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
2972
2976
  (y1) => T.value.some((J) => String(J.value) === String(y1))
2973
2977
  ), I = O.length;
2974
2978
  if (I === 0) return c.placeholder ?? "Select…";
2975
- const H = c.allLabel ?? c.placeholder ?? "All";
2976
- if (I === P) return `${H} · ${P}`;
2979
+ const F = c.allLabel ?? c.placeholder ?? "All";
2980
+ if (I === P) return `${F} · ${P}`;
2977
2981
  const c1 = c.maxLabels ?? 3, l1 = O.map((y1) => {
2978
2982
  const J = T.value.find((p1) => String(p1.value) === String(y1));
2979
2983
  return J ? J.label : null;
@@ -3052,6 +3056,9 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
3052
3056
  width: n.popoverWidth,
3053
3057
  placement: n.popoverPlacement,
3054
3058
  flip: n.popoverFlip,
3059
+ "auto-placement": n.popoverAutoPlacement,
3060
+ "min-height": n.popoverMinHeight,
3061
+ "panel-scroll": !1,
3055
3062
  "freeze-position-on-open": !1,
3056
3063
  "z-index": n.popoverZIndex,
3057
3064
  "max-height": n.popoverMaxHeight ?? "50vh",
@@ -3080,7 +3087,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
3080
3087
  i("button", {
3081
3088
  type: "button",
3082
3089
  onClick: O[4] || (O[4] = f1((I) => {
3083
- a.value = T.value.filter((H) => !H.disabled).map((H) => H.value), o("update:modelValue", [...a.value]);
3090
+ a.value = T.value.filter((F) => !F.disabled).map((F) => F.value), o("update:modelValue", [...a.value]);
3084
3091
  }, ["stop"])),
3085
3092
  class: "wpic:bg-transparent wpic:border-none wpic:cursor-pointer wpic:text-base wpic:text-zinc-500 wpic:dark:text-zinc-400 wpic:hover:text-zinc-700 wpic:dark:hover:text-zinc-200 wpic:transition wpic:p-0.5"
3086
3093
  }, m(n.selectAllLabel), 1),
@@ -3105,7 +3112,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
3105
3112
  selected: Z(I.value),
3106
3113
  "separator-before": !!(I.separatorBefore && !I.groupLabel),
3107
3114
  title: I.description,
3108
- onClick: (H) => n.multiple ? B(I.value, I.disabled) : D(I.value, I.disabled)
3115
+ onClick: (F) => n.multiple ? B(I.value, I.disabled) : D(I.value, I.disabled)
3109
3116
  }, {
3110
3117
  default: r1(() => [
3111
3118
  Q(P.$slots, "option", {
@@ -3161,7 +3168,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
3161
3168
  ])
3162
3169
  ]),
3163
3170
  _: 3
3164
- }, 8, ["open", "anchor", "match-anchor-width", "width", "placement", "flip", "z-index", "max-height"])
3171
+ }, 8, ["open", "anchor", "match-anchor-width", "width", "placement", "flip", "auto-placement", "min-height", "z-index", "max-height"])
3165
3172
  ], 4));
3166
3173
  }
3167
3174
  }), $6 = { class: "wpic:font-normal wpic:text-zinc-400 wpic:dark:text-zinc-500" }, Ot = /* @__PURE__ */ X({
@@ -3218,7 +3225,7 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
3218
3225
  ]
3219
3226
  ]);
3220
3227
  }
3221
- }), S6 = { class: "wpic:py-1" }, F6 = ["onClick"], H6 = { class: "wpic:flex-1 wpic:text-zinc-700 wpic:dark:text-zinc-300" }, P6 = /* @__PURE__ */ X({
3228
+ }), S6 = { class: "wpic:py-1" }, H6 = ["onClick"], F6 = { class: "wpic:flex-1 wpic:text-zinc-700 wpic:dark:text-zinc-300" }, P6 = /* @__PURE__ */ X({
3222
3229
  __name: "WOptionPopover",
3223
3230
  props: {
3224
3231
  modelValue: {},
@@ -3255,13 +3262,13 @@ const P5 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
3255
3262
  size: 13,
3256
3263
  class: "wpic:shrink-0 wpic:text-zinc-400"
3257
3264
  })) : h("", !0),
3258
- i("span", H6, m(s.label), 1),
3265
+ i("span", F6, m(s.label), 1),
3259
3266
  n.modelValue === s.value ? (e(), K(v(U1), {
3260
3267
  key: 2,
3261
3268
  size: 13,
3262
3269
  class: "wpic:shrink-0 wpic:text-indigo-500"
3263
3270
  })) : h("", !0)
3264
- ], 8, F6))), 128))
3271
+ ], 8, H6))), 128))
3265
3272
  ])
3266
3273
  ]),
3267
3274
  _: 1
@@ -3336,7 +3343,7 @@ const T6 = {
3336
3343
  },
3337
3344
  emits: ["update:modelValue", "update:checked", "remove"],
3338
3345
  setup(n, { emit: w }) {
3339
- const c = n, o = w, d = _0(), l = F(null), s = x(() => l.value?.$el ?? l.value ?? null), f = F(!1), k = x(() => c.checkable || c.editable), g = x(() => k.value && c.removable), a = x(() => {
3346
+ const c = n, o = w, d = _0(), l = H(null), s = x(() => l.value?.$el ?? l.value ?? null), f = H(!1), k = x(() => c.checkable || c.editable), g = x(() => k.value && c.removable), a = x(() => {
3340
3347
  const B = { ...d };
3341
3348
  return delete B.class, B;
3342
3349
  }), T = x(() => ({
@@ -3655,7 +3662,7 @@ const T6 = {
3655
3662
  },
3656
3663
  emits: ["close"],
3657
3664
  setup(n, { emit: w }) {
3658
- const c = V2(), o = w, d = F(!1);
3665
+ const c = V2(), o = w, d = H(!1);
3659
3666
  return g2("wpic-pagination-url-sync", !1), (l, s) => (e(), K(O1, { to: "body" }, [
3660
3667
  i("div", {
3661
3668
  style: h1(v(c)?.variables),
@@ -3765,7 +3772,7 @@ const T6 = {
3765
3772
  ]));
3766
3773
  }
3767
3774
  }), g9 = S3("wpic-toast", () => {
3768
- const n = F([]), w = (s, f = "error", k = 5e3, g = null, a = null) => {
3775
+ const n = H([]), w = (s, f = "error", k = 5e3, g = null, a = null) => {
3769
3776
  const T = Date.now(), S = typeof s == "object" ? s.title : s, D = typeof s == "object" ? s.description ?? null : a;
3770
3777
  n.value.push({ id: T, message: S, title: S, description: D, type: f, action: g }), k > 0 && setTimeout(() => c(T), k);
3771
3778
  }, c = (s) => {
@@ -3901,7 +3908,7 @@ const T6 = {
3901
3908
  ])
3902
3909
  ]));
3903
3910
  }
3904
- }), S9 = { class: "w-tabs" }, F9 = ["disabled", "onClick"], H9 = { class: "tab-label" }, P9 = {
3911
+ }), S9 = { class: "w-tabs" }, H9 = ["disabled", "onClick"], F9 = { class: "tab-label" }, P9 = {
3905
3912
  key: 1,
3906
3913
  class: "tab-badge"
3907
3914
  }, T9 = {
@@ -3943,9 +3950,9 @@ const T6 = {
3943
3950
  key: 0,
3944
3951
  class: b(["tab-icon", `size-${n.size}`])
3945
3952
  }, null, 8, ["class"])) : h("", !0),
3946
- i("span", H9, m(k.label), 1),
3953
+ i("span", F9, m(k.label), 1),
3947
3954
  k.badge ? (e(), t("span", P9, m(k.badge), 1)) : h("", !0)
3948
- ], 10, F9))), 128))
3955
+ ], 10, H9))), 128))
3949
3956
  ]),
3950
3957
  s.$slots.actions ? (e(), t("div", T9, [
3951
3958
  Q(s.$slots, "actions", {}, void 0, !0)
@@ -4156,11 +4163,11 @@ const ii = /* @__PURE__ */ Y1(X9, [["render", _9]]), n7 = ["placeholder", "rows"
4156
4163
  },
4157
4164
  emits: ["update:modelValue"],
4158
4165
  setup(n, { emit: w }) {
4159
- const c = n, o = w, d = x(() => c.mode === "range"), l = F(!1), s = F(null), f = F(null), { floatingStyles: k } = m2(s, f, {
4166
+ const c = n, o = w, d = x(() => c.mode === "range"), l = H(!1), s = H(null), f = H(null), { floatingStyles: k } = m2(s, f, {
4160
4167
  placement: "bottom-start",
4161
4168
  middleware: [u2(4), h2({ padding: 8 }), v2({ padding: 8 })],
4162
4169
  whileElementsMounted: f2
4163
- }), g = /* @__PURE__ */ new Date(), a = F(g.getFullYear()), T = F(g.getMonth()), S = x(() => T.value === 11 ? a.value + 1 : a.value), D = x(() => T.value === 11 ? 0 : T.value + 1), B = F(null), y = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], z = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], Z = (L, R) => {
4170
+ }), g = /* @__PURE__ */ new Date(), a = H(g.getFullYear()), T = H(g.getMonth()), S = x(() => T.value === 11 ? a.value + 1 : a.value), D = x(() => T.value === 11 ? 0 : T.value + 1), B = H(null), y = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], z = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], Z = (L, R) => {
4164
4171
  const m1 = (new Date(L, R, 1).getDay() + 6) % 7, x1 = new Date(L, R + 1, 0).getDate(), P1 = new Date(L, R, 0).getDate(), A = [];
4165
4172
  for (let N = m1 - 1; N >= 0; N--)
4166
4173
  A.push({ day: P1 - N, month: R - 1, year: L, outside: !0 });
@@ -4173,13 +4180,13 @@ const ii = /* @__PURE__ */ Y1(X9, [["render", _9]]), n7 = ["placeholder", "rows"
4173
4180
  }, o1 = x(() => Z(a.value, T.value)), b1 = x(() => Z(S.value, D.value)), q = (L) => {
4174
4181
  const R = L.month < 0 ? L.year - 1 : L.month > 11 ? L.year + 1 : L.year, t1 = (L.month % 12 + 12) % 12;
4175
4182
  return `${R}-${String(t1 + 1).padStart(2, "0")}-${String(L.day).padStart(2, "0")}`;
4176
- }, e1 = `${g.getFullYear()}-${String(g.getMonth() + 1).padStart(2, "0")}-${String(g.getDate()).padStart(2, "0")}`, P = x(() => d.value ? c.modelValue?.start ?? null : c.modelValue ?? null), O = x(() => d.value ? c.modelValue?.end ?? null : null), I = x(() => !!(P.value && O.value)), H = F(null), c1 = (L) => {
4183
+ }, e1 = `${g.getFullYear()}-${String(g.getMonth() + 1).padStart(2, "0")}-${String(g.getDate()).padStart(2, "0")}`, P = x(() => d.value ? c.modelValue?.start ?? null : c.modelValue ?? null), O = x(() => d.value ? c.modelValue?.end ?? null : null), I = x(() => !!(P.value && O.value)), F = H(null), c1 = (L) => {
4177
4184
  if (!d.value) return !1;
4178
4185
  const R = q(L);
4179
4186
  return I.value && !B.value ? R > P.value && R < O.value : !1;
4180
4187
  }, l1 = (L) => {
4181
- if (!d.value || !B.value || !H.value) return !1;
4182
- const R = q(L), [t1, m1] = [B.value, H.value].sort();
4188
+ if (!d.value || !B.value || !F.value) return !1;
4189
+ const R = q(L), [t1, m1] = [B.value, F.value].sort();
4183
4190
  return R > t1 && R < m1;
4184
4191
  }, y1 = (L) => {
4185
4192
  if (!d.value) return !1;
@@ -4290,8 +4297,8 @@ const ii = /* @__PURE__ */ Y1(X9, [["render", _9]]), n7 = ["placeholder", "rows"
4290
4297
  (e(!0), t(E, null, i1(o1.value, (t1, m1) => (e(), t("button", {
4291
4298
  key: m1,
4292
4299
  onClick: (x1) => J(t1),
4293
- onMouseenter: (x1) => H.value = q(t1),
4294
- onMouseleave: R[1] || (R[1] = (x1) => H.value = null),
4300
+ onMouseenter: (x1) => F.value = q(t1),
4301
+ onMouseleave: R[1] || (R[1] = (x1) => F.value = null),
4295
4302
  type: "button",
4296
4303
  class: b(["wpic:h-8 wpic:w-full wpic:flex wpic:items-center wpic:justify-center wpic:rounded-lg wpic:transition wpic:cursor-pointer", d1(t1)])
4297
4304
  }, m(t1.day), 43, u7))), 128))
@@ -4321,8 +4328,8 @@ const ii = /* @__PURE__ */ Y1(X9, [["render", _9]]), n7 = ["placeholder", "rows"
4321
4328
  (e(!0), t(E, null, i1(b1.value, (t1, m1) => (e(), t("button", {
4322
4329
  key: m1,
4323
4330
  onClick: (x1) => J(t1),
4324
- onMouseenter: (x1) => H.value = q(t1),
4325
- onMouseleave: R[2] || (R[2] = (x1) => H.value = null),
4331
+ onMouseenter: (x1) => F.value = q(t1),
4332
+ onMouseleave: R[2] || (R[2] = (x1) => F.value = null),
4326
4333
  type: "button",
4327
4334
  class: b(["wpic:h-8 wpic:w-full wpic:flex wpic:items-center wpic:justify-center wpic:rounded-lg wpic:transition wpic:cursor-pointer", d1(t1)])
4328
4335
  }, m(t1.day), 43, g7))), 128))
@@ -4420,7 +4427,7 @@ const di = /* @__PURE__ */ Y1(B7, [["render", $7]]), wi = /* @__PURE__ */ X({
4420
4427
  }, null, 8, ["size"]))
4421
4428
  ], 8, A7));
4422
4429
  }
4423
- }), S7 = { class: "wpic:bg-white wpic:dark:bg-zinc-900 wpic:border wpic:border-zinc-200 wpic:dark:border-zinc-800 wpic:rounded-2xl wpic:p-6 wpic:w-[360px] wpic:mx-4 wpic:shadow-[0_25px_50px_rgba(0,0,0,0.4)]" }, F7 = { class: "wpic:flex wpic:gap-4 wpic:mb-5" }, H7 = { class: "wpic:text-base wpic:text-zinc-900 wpic:dark:text-zinc-100 wpic:font-semibold wpic:leading-tight" }, P7 = { class: "wpic:text-base wpic:text-zinc-400 wpic:dark:text-zinc-500 wpic:mt-1.5 wpic:leading-relaxed" }, T7 = { class: "wpic:flex wpic:gap-2 wpic:justify-end" }, vi = /* @__PURE__ */ X({
4430
+ }), S7 = { class: "wpic:bg-white wpic:dark:bg-zinc-900 wpic:border wpic:border-zinc-200 wpic:dark:border-zinc-800 wpic:rounded-2xl wpic:p-6 wpic:w-[360px] wpic:mx-4 wpic:shadow-[0_25px_50px_rgba(0,0,0,0.4)]" }, H7 = { class: "wpic:flex wpic:gap-4 wpic:mb-5" }, F7 = { class: "wpic:text-base wpic:text-zinc-900 wpic:dark:text-zinc-100 wpic:font-semibold wpic:leading-tight" }, P7 = { class: "wpic:text-base wpic:text-zinc-400 wpic:dark:text-zinc-500 wpic:mt-1.5 wpic:leading-relaxed" }, T7 = { class: "wpic:flex wpic:gap-2 wpic:justify-end" }, vi = /* @__PURE__ */ X({
4424
4431
  __name: "ConfirmModal",
4425
4432
  props: {
4426
4433
  title: {},
@@ -4440,7 +4447,7 @@ const di = /* @__PURE__ */ Y1(B7, [["render", $7]]), wi = /* @__PURE__ */ X({
4440
4447
  onClick: d[2] || (d[2] = f1((l) => c("cancel"), ["self"]))
4441
4448
  }, [
4442
4449
  i("div", S7, [
4443
- i("div", F7, [
4450
+ i("div", H7, [
4444
4451
  i("div", {
4445
4452
  class: b([
4446
4453
  "wpic:w-11 wpic:h-11 wpic:rounded-full wpic:flex wpic:items-center wpic:justify-center wpic:shrink-0",
@@ -4453,7 +4460,7 @@ const di = /* @__PURE__ */ Y1(B7, [["render", $7]]), wi = /* @__PURE__ */ X({
4453
4460
  }, null, 8, ["class"])
4454
4461
  ], 2),
4455
4462
  i("div", null, [
4456
- i("h3", H7, m(n.title ?? "Confirm"), 1),
4463
+ i("h3", F7, m(n.title ?? "Confirm"), 1),
4457
4464
  i("p", P7, m(n.message ?? "Are you sure?"), 1)
4458
4465
  ])
4459
4466
  ]),
@@ -4678,7 +4685,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
4678
4685
  },
4679
4686
  emits: ["update:modelValue", "update:simpleValue"],
4680
4687
  setup(n, { emit: w }) {
4681
- const c = n, o = w, d = x(() => c.simpleValue ?? []), l = F(""), s = F(!1), f = x(() => {
4688
+ const c = n, o = w, d = x(() => c.simpleValue ?? []), l = H(""), s = H(!1), f = x(() => {
4682
4689
  const W = l.value.trim().toLowerCase(), Y = new Set(d.value), _ = c.options ?? [];
4683
4690
  return W ? _.filter((z1) => z1.toLowerCase().includes(W) && !Y.has(z1)) : _.filter((z1) => !Y.has(z1)).slice(0, 8);
4684
4691
  }), k = x(() => {
@@ -4701,8 +4708,8 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
4701
4708
  s.value = !1;
4702
4709
  }, 150);
4703
4710
  }
4704
- const D = F(""), B = F("idle"), y = F(null), z = F(null), Z = F(null), o1 = F(""), b1 = F(null), q = F(null), e1 = F(null), P = F(!1), O = F([]), I = F(!1);
4705
- let H = null;
4711
+ const D = H(""), B = H("idle"), y = H(null), z = H(null), Z = H(null), o1 = H(""), b1 = H(null), q = H(null), e1 = H(null), P = H(!1), O = H([]), I = H(!1);
4712
+ let F = null;
4706
4713
  const { getRecent: c1, addRecent: l1 } = Z7(c.recentKey, 10), { floatingStyles: y1 } = m2(q, e1, {
4707
4714
  placement: "bottom-start",
4708
4715
  middleware: [
@@ -4742,11 +4749,11 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
4742
4749
  }, 150);
4743
4750
  };
4744
4751
  function R() {
4745
- if (H && clearTimeout(H), y.value && (y.value = null), z.value = null, !D.value.trim()) {
4752
+ if (F && clearTimeout(F), y.value && (y.value = null), z.value = null, !D.value.trim()) {
4746
4753
  O.value = [];
4747
4754
  return;
4748
4755
  }
4749
- H = setTimeout(t1, 250);
4756
+ F = setTimeout(t1, 250);
4750
4757
  }
4751
4758
  async function t1() {
4752
4759
  const W = D.value.trim();
@@ -4764,7 +4771,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
4764
4771
  }
4765
4772
  }
4766
4773
  function m1(W) {
4767
- W.key === "Enter" && (H && clearTimeout(H), P1()), W.key === "Escape" && (U(), P.value = !1);
4774
+ W.key === "Enter" && (F && clearTimeout(F), P1()), W.key === "Escape" && (U(), P.value = !1);
4768
4775
  }
4769
4776
  async function x1(W) {
4770
4777
  if (G(W)) return;
@@ -4827,7 +4834,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
4827
4834
  }
4828
4835
  }
4829
4836
  function w1(W) {
4830
- Z.value = W, o1.value = y.value?.translations?.[W]?.value || "", H1(() => b1.value?.focus());
4837
+ Z.value = W, o1.value = y.value?.translations?.[W]?.value || "", F1(() => b1.value?.focus());
4831
4838
  }
4832
4839
  function s1(W) {
4833
4840
  const Y = o1.value.trim();
@@ -4842,7 +4849,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
4842
4849
  class: "wpic:cursor-default"
4843
4850
  }, {
4844
4851
  default: r1(() => [
4845
- V(v(F2), {
4852
+ V(v(H2), {
4846
4853
  size: 9,
4847
4854
  class: "wpic:shrink-0 wpic:mr-0.5"
4848
4855
  }),
@@ -4875,7 +4882,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
4875
4882
  class: "wpic:flex wpic:w-full wpic:items-center wpic:gap-2 wpic:px-3 wpic:py-2 wpic:text-left wpic:text-sm wpic:text-zinc-700 wpic:hover:bg-zinc-50 wpic:dark:text-zinc-200 wpic:dark:hover:bg-zinc-800 wpic:transition-colors",
4876
4883
  onMousedown: f1((z1) => g(_), ["prevent"])
4877
4884
  }, [
4878
- V(v(F2), {
4885
+ V(v(H2), {
4879
4886
  size: 12,
4880
4887
  class: "wpic:shrink-0 wpic:text-zinc-400"
4881
4888
  }),
@@ -4903,7 +4910,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
4903
4910
  class: "wpic:cursor-default"
4904
4911
  }, {
4905
4912
  default: r1(() => [
4906
- V(v(F2), {
4913
+ V(v(H2), {
4907
4914
  size: 9,
4908
4915
  class: "wpic:shrink-0 wpic:mr-0.5"
4909
4916
  }),
@@ -4959,7 +4966,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
4959
4966
  class: b(["wpic:w-full wpic:text-left wpic:px-3 wpic:py-2 wpic:hover:bg-black/5 wpic:dark:hover:bg-white/5 wpic:cursor-pointer wpic:transition wpic:flex wpic:items-center wpic:gap-2", G(_) ? "wpic:opacity-40 wpic:cursor-default" : "wpic:text-zinc-600 wpic:dark:text-zinc-400"]),
4960
4967
  onMousedown: f1((z1) => !G(_) && x1(_), ["prevent"])
4961
4968
  }, [
4962
- V(v(F2), {
4969
+ V(v(H2), {
4963
4970
  size: 11,
4964
4971
  class: "wpic:shrink-0 wpic:text-zinc-400 wpic:dark:text-zinc-500"
4965
4972
  }),
@@ -5133,14 +5140,14 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
5133
5140
  },
5134
5141
  emits: ["update:modelValue", "update:subValue"],
5135
5142
  setup(n, { emit: w }) {
5136
- const c = n, o = w, d = F(!1), l = F(""), s = F(null), f = F(null), k = F(null), g = F(null), a = F(null), T = F(null), { floatingStyles: S } = m2(f, k, {
5143
+ const c = n, o = w, d = H(!1), l = H(""), s = H(null), f = H(null), k = H(null), g = H(null), a = H(null), T = H(null), { floatingStyles: S } = m2(f, k, {
5137
5144
  placement: "bottom-start",
5138
5145
  middleware: [
5139
5146
  u2(4),
5140
5147
  h2({ padding: 8 }),
5141
5148
  v2({ padding: 8 }),
5142
- X2({ padding: 8, apply({ availableHeight: H, elements: c1 }) {
5143
- Object.assign(c1.floating.style, { maxHeight: `${Math.min(360, H)}px` });
5149
+ X2({ padding: 8, apply({ availableHeight: F, elements: c1 }) {
5150
+ Object.assign(c1.floating.style, { maxHeight: `${Math.min(360, F)}px` });
5144
5151
  } })
5145
5152
  ],
5146
5153
  whileElementsMounted: f2
@@ -5153,27 +5160,27 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
5153
5160
  ],
5154
5161
  whileElementsMounted: f2
5155
5162
  });
5156
- M1(d, (H) => {
5157
- H ? H1(() => g.value?.focus()) : s.value = null;
5163
+ M1(d, (F) => {
5164
+ F ? F1(() => g.value?.focus()) : s.value = null;
5158
5165
  });
5159
5166
  const B = x(() => {
5160
- const H = l.value.toLowerCase();
5161
- return H ? c.items.filter((c1) => c1.name.toLowerCase().includes(H) ? !0 : (c.subItems[c1.id] ?? []).some((l1) => l1.name.toLowerCase().includes(H))) : c.items;
5167
+ const F = l.value.toLowerCase();
5168
+ return F ? c.items.filter((c1) => c1.name.toLowerCase().includes(F) ? !0 : (c.subItems[c1.id] ?? []).some((l1) => l1.name.toLowerCase().includes(F))) : c.items;
5162
5169
  }), y = x(() => {
5163
5170
  if (!c.modelValue) return "";
5164
- const H = c.items.find((c1) => c1.id === c.modelValue);
5165
- if (!H) return "";
5171
+ const F = c.items.find((c1) => c1.id === c.modelValue);
5172
+ if (!F) return "";
5166
5173
  if (c.subValue) {
5167
5174
  const c1 = (c.subItems[c.modelValue] ?? []).find((l1) => l1.id === c.subValue);
5168
- return c1 ? `${H.name} › ${c1.name}` : H.name;
5175
+ return c1 ? `${F.name} › ${c1.name}` : F.name;
5169
5176
  }
5170
- return H.name;
5177
+ return F.name;
5171
5178
  }), z = x(
5172
5179
  () => s.value !== null ? c.subItems[s.value] ?? [] : []
5173
5180
  );
5174
5181
  let Z = null;
5175
- const o1 = (H, c1) => {
5176
- Z && clearTimeout(Z), s.value = H, a.value = c1.currentTarget;
5182
+ const o1 = (F, c1) => {
5183
+ Z && clearTimeout(Z), s.value = F, a.value = c1.currentTarget;
5177
5184
  }, b1 = () => {
5178
5185
  Z = setTimeout(() => {
5179
5186
  s.value = null;
@@ -5184,14 +5191,14 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
5184
5191
  Z = setTimeout(() => {
5185
5192
  s.value = null;
5186
5193
  }, 150);
5187
- }, P = (H) => {
5188
- o("update:modelValue", H.id), o("update:subValue", ""), d.value = !1, l.value = "";
5189
- }, O = (H, c1) => {
5190
- o("update:modelValue", H), o("update:subValue", c1.id), d.value = !1, l.value = "";
5194
+ }, P = (F) => {
5195
+ o("update:modelValue", F.id), o("update:subValue", ""), d.value = !1, l.value = "";
5196
+ }, O = (F, c1) => {
5197
+ o("update:modelValue", F), o("update:subValue", c1.id), d.value = !1, l.value = "";
5191
5198
  }, I = () => {
5192
5199
  o("update:modelValue", ""), o("update:subValue", ""), d.value = !1, l.value = "";
5193
5200
  };
5194
- return (H, c1) => (e(), t("div", null, [
5201
+ return (F, c1) => (e(), t("div", null, [
5195
5202
  i("button", {
5196
5203
  ref_key: "triggerRef",
5197
5204
  ref: f,
@@ -5366,7 +5373,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
5366
5373
  ]))
5367
5374
  ]));
5368
5375
  }
5369
- }), F8 = ["data-wpic-theme"], H8 = /* @__PURE__ */ X({
5376
+ }), H8 = ["data-wpic-theme"], F8 = /* @__PURE__ */ X({
5370
5377
  __name: "WTooltip",
5371
5378
  props: {
5372
5379
  content: {},
@@ -5376,7 +5383,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
5376
5383
  inline: { type: Boolean }
5377
5384
  },
5378
5385
  setup(n) {
5379
- const w = n, c = V2(), o = F(null), d = F(null), l = F(!1);
5386
+ const w = n, c = V2(), o = H(null), d = H(null), l = H(!1);
5380
5387
  let s = null;
5381
5388
  const { floatingStyles: f } = m2(o, d, {
5382
5389
  placement: w.placement ?? "top",
@@ -5425,7 +5432,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
5425
5432
  class: b([{ "wpic-theme": v(c), dark: v(c)?.mode === "dark" }, "wpic-tooltip-panel wpic:pointer-events-none wpic:z-[9999] wpic:max-w-[200px] wpic:whitespace-pre-line wpic:break-words wpic:text-base wpic:font-medium"]),
5426
5433
  "data-wpic-theme": v(c)?.mode,
5427
5434
  role: "tooltip"
5428
- }, m(n.content), 15, F8)) : h("", !0)
5435
+ }, m(n.content), 15, H8)) : h("", !0)
5429
5436
  ]),
5430
5437
  _: 1
5431
5438
  })
@@ -5445,7 +5452,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
5445
5452
  },
5446
5453
  setup(n) {
5447
5454
  const w = n, c = x(() => w.value != null && Number.isFinite(w.value)), o = x(() => !c.value || w.value === 0 ? "neutral" : w.value > 0 != !!w.inverse ? "positive" : "negative");
5448
- return (d, l) => (e(), K(H8, {
5455
+ return (d, l) => (e(), K(F8, {
5449
5456
  content: n.description || "",
5450
5457
  disabled: !n.description
5451
5458
  }, {
@@ -5836,7 +5843,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
5836
5843
  size: {}
5837
5844
  },
5838
5845
  setup(n) {
5839
- const w = n, c = F(!1);
5846
+ const w = n, c = H(!1);
5840
5847
  M1(() => w.src, () => {
5841
5848
  c.value = !1;
5842
5849
  });
@@ -5935,7 +5942,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
5935
5942
  },
5936
5943
  emits: ["update:modelValue", "change"],
5937
5944
  setup(n, { emit: w }) {
5938
- const c = n, o = w, d = F(!1), l = F(null), s = /* @__PURE__ */ new Date(), f = F(new Date(s.getFullYear(), s.getMonth(), 1));
5945
+ const c = n, o = w, d = H(!1), l = H(null), s = /* @__PURE__ */ new Date(), f = H(new Date(s.getFullYear(), s.getMonth(), 1));
5939
5946
  function k(q) {
5940
5947
  if (!q || !/^\d{4}-\d{2}-\d{2}$/.test(q)) return null;
5941
5948
  const [e1, P, O] = q.split("-").map(Number), I = new Date(e1, P - 1, O);
@@ -5955,7 +5962,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
5955
5962
  });
5956
5963
  }), B = x(() => {
5957
5964
  const q = f.value.getFullYear(), e1 = f.value.getMonth(), P = new Date(q, e1, 1), O = c.weekStartsOn === 1 ? (P.getDay() + 6) % 7 : P.getDay(), I = new Date(q, e1, 1 - O);
5958
- return Array.from({ length: 42 }, (H, c1) => {
5965
+ return Array.from({ length: 42 }, (F, c1) => {
5959
5966
  const l1 = new Date(I);
5960
5967
  return l1.setDate(I.getDate() + c1), { iso: g(l1), day: l1.getDate(), inMonth: l1.getMonth() === e1 };
5961
5968
  });
@@ -6086,7 +6093,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
6086
6093
  },
6087
6094
  emits: ["update:modelValue", "change", "refresh"],
6088
6095
  setup(n, { emit: w }) {
6089
- const c = n, o = w, d = F(!1), l = x(() => c.filters.length ? Array.isArray(c.filters[0]) ? c.filters : [c.filters] : []);
6096
+ const c = n, o = w, d = H(!1), l = x(() => c.filters.length ? Array.isArray(c.filters[0]) ? c.filters : [c.filters] : []);
6090
6097
  function s(S) {
6091
6098
  return c.modelValue[S];
6092
6099
  }
@@ -6100,7 +6107,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
6100
6107
  }, 300);
6101
6108
  }
6102
6109
  function a(S, D) {
6103
- f(S, D), H1(() => o("change"));
6110
+ f(S, D), F1(() => o("change"));
6104
6111
  }
6105
6112
  function T() {
6106
6113
  d.value = !0, o("refresh"), o("change"), setTimeout(() => {
@@ -6194,7 +6201,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
6194
6201
  },
6195
6202
  emits: ["click", "select"],
6196
6203
  setup(n, { emit: w }) {
6197
- const c = w, o = F(!1), d = F(null), l = x(() => d.value?.$el ?? null);
6204
+ const c = w, o = H(!1), d = H(null), l = x(() => d.value?.$el ?? null);
6198
6205
  function s(f) {
6199
6206
  f.disabled || (o.value = !1, c("select", f.value));
6200
6207
  }
@@ -6268,7 +6275,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
6268
6275
  }), An = { class: "wpic:inline-flex wpic:items-center wpic:gap-2" }, Sn = {
6269
6276
  key: 0,
6270
6277
  class: "wpic:text-sm wpic:text-zinc-500 wpic:dark:text-zinc-400"
6271
- }, Fn = { class: "wpic:font-mono" }, Hn = { class: "wpic:p-3" }, Pn = { class: "wpic:grid wpic:grid-cols-[88px_repeat(11,minmax(0,1fr))] wpic:gap-1" }, Tn = { class: "wpic:flex wpic:h-7 wpic:items-center wpic:pr-2 wpic:text-sm wpic:text-zinc-500 wpic:dark:text-zinc-400" }, jn = ["title", "onClick"], Si = /* @__PURE__ */ X({
6278
+ }, Hn = { class: "wpic:font-mono" }, Fn = { class: "wpic:p-3" }, Pn = { class: "wpic:grid wpic:grid-cols-[88px_repeat(11,minmax(0,1fr))] wpic:gap-1" }, Tn = { class: "wpic:flex wpic:h-7 wpic:items-center wpic:pr-2 wpic:text-sm wpic:text-zinc-500 wpic:dark:text-zinc-400" }, jn = ["title", "onClick"], Si = /* @__PURE__ */ X({
6272
6279
  __name: "WTailwindColorPicker",
6273
6280
  props: {
6274
6281
  modelValue: {},
@@ -6278,7 +6285,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
6278
6285
  },
6279
6286
  emits: ["update:modelValue"],
6280
6287
  setup(n, { emit: w }) {
6281
- const c = n, o = w, d = F(null), l = F(!1), s = [
6288
+ const c = n, o = w, d = H(null), l = H(!1), s = [
6282
6289
  "wpic:bg-white",
6283
6290
  "wpic:bg-slate-50",
6284
6291
  "wpic:bg-slate-100",
@@ -6767,7 +6774,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
6767
6774
  i("span", {
6768
6775
  class: b(["wpic:h-4 wpic:w-4 wpic:rounded wpic:border wpic:border-black/10 wpic:dark:border-white/10", k.value ? `wpic:${k.value.class}` : void 0])
6769
6776
  }, null, 2),
6770
- i("span", Fn, m(k.value ? k.value.shade ? `${k.value.name}-${k.value.shade}` : k.value.name : n.modelValue), 1)
6777
+ i("span", Hn, m(k.value ? k.value.shade ? `${k.value.name}-${k.value.shade}` : k.value.name : n.modelValue), 1)
6771
6778
  ], 512),
6772
6779
  V(n2, {
6773
6780
  open: l.value,
@@ -6778,7 +6785,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
6778
6785
  onClose: T[2] || (T[2] = (S) => l.value = !1)
6779
6786
  }, {
6780
6787
  default: r1(() => [
6781
- i("div", Hn, [
6788
+ i("div", Fn, [
6782
6789
  i("button", {
6783
6790
  type: "button",
6784
6791
  class: b(["wpic:mb-3 wpic:flex wpic:h-8 wpic:w-full wpic:items-center wpic:gap-2 wpic:rounded-md wpic:border wpic:px-2 wpic:text-sm wpic:transition wpic:hover:bg-zinc-50 wpic:dark:hover:bg-zinc-800", n.modelValue === "bg-white" ? "wpic:border-indigo-500 wpic:ring-2 wpic:ring-indigo-500/40" : "wpic:border-zinc-200 wpic:dark:border-zinc-700"]),
@@ -6828,7 +6835,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
6828
6835
  }, Nn = { class: "wpic:w-44 wpic:border-r wpic:border-zinc-100 wpic:py-2 wpic:dark:border-zinc-800" }, Kn = ["aria-pressed", "onClick"], On = {
6829
6836
  key: 0,
6830
6837
  class: "wpic:p-4"
6831
- }, Un = { class: "wpic:mb-3 wpic:flex wpic:items-center wpic:justify-between" }, Yn = ["aria-label"], qn = { class: "wpic:font-medium wpic:text-zinc-900 wpic:dark:text-zinc-100" }, Qn = ["aria-label"], Jn = { class: "wpic:mb-1 wpic:grid wpic:grid-cols-7 wpic:text-center" }, Xn = { class: "wpic:grid wpic:grid-cols-7 wpic:gap-y-1" }, Gn = ["aria-label", "aria-pressed", "data-in-range", "data-today", "onClick"], _n = { class: "wpic:mt-3 wpic:border-t wpic:border-zinc-100 wpic:pt-3 wpic:dark:border-zinc-800" }, ne = { class: "wpic:mb-2 wpic:flex wpic:items-center wpic:gap-2 wpic:text-sm wpic:text-zinc-500" }, ee = { class: "wpic:rounded wpic:bg-zinc-100 wpic:px-2 wpic:py-0.5 wpic:dark:bg-zinc-800" }, ce = { class: "wpic:rounded wpic:bg-zinc-100 wpic:px-2 wpic:py-0.5 wpic:dark:bg-zinc-800" }, te = ["disabled"], Fi = /* @__PURE__ */ X({
6838
+ }, Un = { class: "wpic:mb-3 wpic:flex wpic:items-center wpic:justify-between" }, Yn = ["aria-label"], qn = { class: "wpic:font-medium wpic:text-zinc-900 wpic:dark:text-zinc-100" }, Qn = ["aria-label"], Jn = { class: "wpic:mb-1 wpic:grid wpic:grid-cols-7 wpic:text-center" }, Xn = { class: "wpic:grid wpic:grid-cols-7 wpic:gap-y-1" }, Gn = ["aria-label", "aria-pressed", "data-in-range", "data-today", "onClick"], _n = { class: "wpic:mt-3 wpic:border-t wpic:border-zinc-100 wpic:pt-3 wpic:dark:border-zinc-800" }, ne = { class: "wpic:mb-2 wpic:flex wpic:items-center wpic:gap-2 wpic:text-sm wpic:text-zinc-500" }, ee = { class: "wpic:rounded wpic:bg-zinc-100 wpic:px-2 wpic:py-0.5 wpic:dark:bg-zinc-800" }, ce = { class: "wpic:rounded wpic:bg-zinc-100 wpic:px-2 wpic:py-0.5 wpic:dark:bg-zinc-800" }, te = ["disabled"], Hi = /* @__PURE__ */ X({
6832
6839
  __name: "WDateRangePicker",
6833
6840
  props: {
6834
6841
  locale: {},
@@ -6855,7 +6862,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
6855
6862
  },
6856
6863
  emits: ["update:modelValue"],
6857
6864
  setup(n, { emit: w }) {
6858
- const c = n, o = w, d = F(!1), l = F(null), s = F(c.modelValue?.preset ?? null), f = F(c.modelValue?.since ?? ""), k = F(c.modelValue?.until ?? ""), g = /* @__PURE__ */ new Date(), a = F(new Date(g.getFullYear(), g.getMonth(), 1)), T = F("from");
6865
+ const c = n, o = w, d = H(!1), l = H(null), s = H(c.modelValue?.preset ?? null), f = H(c.modelValue?.since ?? ""), k = H(c.modelValue?.until ?? ""), g = /* @__PURE__ */ new Date(), a = H(new Date(g.getFullYear(), g.getMonth(), 1)), T = H("from");
6859
6866
  function S(J) {
6860
6867
  return `${J.getFullYear()}-${String(J.getMonth() + 1).padStart(2, "0")}-${String(J.getDate()).padStart(2, "0")}`;
6861
6868
  }
@@ -6930,7 +6937,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
6930
6937
  function I(J) {
6931
6938
  return !f.value || !k.value ? !1 : J > f.value && J < k.value;
6932
6939
  }
6933
- function H(J) {
6940
+ function F(J) {
6934
6941
  return J === S(g);
6935
6942
  }
6936
6943
  function c1(J) {
@@ -7037,7 +7044,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
7037
7044
  "aria-label": G.date,
7038
7045
  "aria-pressed": O(G.date),
7039
7046
  "data-in-range": I(G.date) || void 0,
7040
- "data-today": H(G.date) || void 0,
7047
+ "data-today": F(G.date) || void 0,
7041
7048
  type: "button",
7042
7049
  onClick: (g1) => c1(G.date),
7043
7050
  class: b([
@@ -7046,7 +7053,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
7046
7053
  G.inMonth && !O(G.date) && !I(G.date) && "wpic:hover:bg-zinc-100 wpic:dark:hover:bg-zinc-700 wpic:text-zinc-900 wpic:dark:text-zinc-100",
7047
7054
  O(G.date) && "wpic:bg-[#85C531] wpic:text-white wpic:font-semibold",
7048
7055
  I(G.date) && "wpic:bg-[#85C531]/15 wpic:text-zinc-900 wpic:dark:text-zinc-100 wpic:rounded-none",
7049
- H(G.date) && !O(G.date) && "wpic:ring-1 wpic:ring-[#85C531]"
7056
+ F(G.date) && !O(G.date) && "wpic:ring-1 wpic:ring-[#85C531]"
7050
7057
  ])
7051
7058
  }, m(G.day), 11, Gn))), 128))
7052
7059
  ]),
@@ -7070,7 +7077,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
7070
7077
  }, 8, ["open", "anchor"])
7071
7078
  ]));
7072
7079
  }
7073
- }), ie = { class: "wpic:inline-flex wpic:w-full wpic:min-w-0" }, le = ["disabled", "aria-label", "aria-expanded"], ae = { class: "wpic:min-w-0 wpic:flex-1 wpic:truncate wpic:text-left wpic:capitalize" }, oe = { class: "wpic:p-3" }, se = { class: "wpic:mb-3 wpic:flex wpic:items-center wpic:justify-between" }, re = { class: "wpic:font-semibold wpic:text-zinc-900 wpic:dark:text-zinc-100" }, pe = { class: "wpic:grid wpic:grid-cols-3 wpic:gap-1" }, de = ["disabled", "onClick"], Hi = /* @__PURE__ */ X({
7080
+ }), ie = { class: "wpic:inline-flex wpic:w-full wpic:min-w-0" }, le = ["disabled", "aria-label", "aria-expanded"], ae = { class: "wpic:min-w-0 wpic:flex-1 wpic:truncate wpic:text-left wpic:capitalize" }, oe = { class: "wpic:p-3" }, se = { class: "wpic:mb-3 wpic:flex wpic:items-center wpic:justify-between" }, re = { class: "wpic:font-semibold wpic:text-zinc-900 wpic:dark:text-zinc-100" }, pe = { class: "wpic:grid wpic:grid-cols-3 wpic:gap-1" }, de = ["disabled", "onClick"], Fi = /* @__PURE__ */ X({
7074
7081
  __name: "WMonthPicker",
7075
7082
  props: {
7076
7083
  modelValue: { default: null },
@@ -7083,7 +7090,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
7083
7090
  },
7084
7091
  emits: ["update:modelValue", "change"],
7085
7092
  setup(n, { emit: w }) {
7086
- const c = n, o = w, d = F(!1), l = F(null), s = /* @__PURE__ */ new Date(), f = F(s.getFullYear());
7093
+ const c = n, o = w, d = H(!1), l = H(null), s = /* @__PURE__ */ new Date(), f = H(s.getFullYear());
7087
7094
  function k(y) {
7088
7095
  if (!y || !/^\d{4}-\d{2}$/.test(y)) return null;
7089
7096
  const [z, Z] = y.split("-").map(Number);
@@ -7251,7 +7258,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
7251
7258
  }, m(f.label), 11, ve))), 128))
7252
7259
  ], 2));
7253
7260
  }
7254
- }), me = ["width", "height", "fill"], fe = ["width", "height", "fill"], be = ["width", "height"], ge = ["width", "height", "fill"], ze = ["width", "height", "fill"], Ce = ["width", "height", "fill"], ke = ["width", "height", "fill"], xe = ["width", "height", "fill"], ye = ["width", "height", "fill"], Me = ["width", "height"], Ve = ["width", "height"], Le = ["width", "height", "fill"], Be = ["width", "height"], $e = ["width", "height"], Ae = ["width", "height", "fill"], Se = ["width", "height", "fill"], Fe = ["width", "height"], He = ["width", "height"], Pe = ["width", "height"], Te = ["width", "height"], je = ["width", "height"], Ee = { key: 0 }, We = ["width", "height"], De = { key: 0 }, Ie = ["width", "height"], Re = ["width", "height"], Ze = ["width", "height"], Ne = ["width", "height"], Ke = {
7261
+ }), me = ["width", "height", "fill"], fe = ["width", "height", "fill"], be = ["width", "height"], ge = ["width", "height", "fill"], ze = ["width", "height", "fill"], Ce = ["width", "height", "fill"], ke = ["width", "height", "fill"], xe = ["width", "height", "fill"], ye = ["width", "height", "fill"], Me = ["width", "height"], Ve = ["width", "height"], Le = ["width", "height", "fill"], Be = ["width", "height"], $e = ["width", "height"], Ae = ["width", "height", "fill"], Se = ["width", "height", "fill"], He = ["width", "height"], Fe = ["width", "height"], Pe = ["width", "height"], Te = ["width", "height"], je = ["width", "height"], Ee = { key: 0 }, We = ["width", "height"], De = { key: 0 }, Ie = ["width", "height"], Re = ["width", "height"], Ze = ["width", "height"], Ne = ["width", "height"], Ke = {
7255
7262
  key: 0,
7256
7263
  transform: "translate(1180,0) translate(0,130) scale(0.1,-0.1)",
7257
7264
  stroke: "none"
@@ -7259,7 +7266,7 @@ const N7 = { class: "wpic-tag-input" }, K7 = {
7259
7266
  key: 1,
7260
7267
  transform: "translate(0,1104) scale(0.1,-0.1)",
7261
7268
  stroke: "none"
7262
- }, Je = ["width", "height", "fill"], Xe = { transform: "translate(-13.602659,303.010650) scale(0.1,-0.1)" }, Ge = { key: 0 }, _e = ["width", "height"], nc = ["fill"], ec = ["fill"], cc = ["fill"], tc = ["fill"], ic = ["width", "height"], lc = ["width", "height"], ac = ["width", "height", "fill"], oc = ["width", "height", "fill"], sc = ["width", "height", "fill"], rc = ["width", "height", "fill"], pc = ["width", "height", "fill"], dc = ["width", "height"], wc = ["width", "height"], uc = ["width", "height"], hc = ["width", "height"], vc = ["width", "height"], mc = ["width", "height"], fc = ["width", "height"], bc = ["width", "height"], gc = ["width", "height"], zc = ["width", "height"], Cc = ["width", "height"], kc = ["width", "height"], xc = ["width", "height"], yc = ["width", "height"], Mc = ["width", "height"], Vc = ["width", "height"], Lc = ["width", "height"], Bc = ["width", "height"], $c = ["width", "height"], Ac = ["width", "height"], Sc = ["width", "height"], Fc = ["width", "height"], Hc = ["width", "height"], Pc = ["width", "height"], Tc = ["width", "height"], jc = ["width", "height"], Ec = ["width", "height"], Wc = ["width", "height"], Dc = ["width", "height"], Ic = ["width", "height"], Rc = ["width", "height"], Zc = ["width", "height"], Nc = ["width", "height"], Kc = ["width", "height"], Oc = ["width", "height"], Uc = ["width", "height"], Yc = ["width", "height"], qc = ["width", "height"], Qc = ["width", "height"], Jc = ["width", "height"], Xc = ["width", "height"], Gc = ["width", "height"], _c = ["width", "height"], nt = ["width", "height"], et = ["width", "height"], ct = ["width", "height"], tt = ["width", "height"], it = ["src", "width", "height"], lt = ["src", "width", "height"], at = ["width", "height"], ot = ["width", "height"], st = ["width", "height"], rt = ["width", "height"], pt = {
7269
+ }, Je = ["width", "height", "fill"], Xe = { transform: "translate(-13.602659,303.010650) scale(0.1,-0.1)" }, Ge = { key: 0 }, _e = ["width", "height"], nc = ["fill"], ec = ["fill"], cc = ["fill"], tc = ["fill"], ic = ["width", "height"], lc = ["width", "height"], ac = ["width", "height", "fill"], oc = ["width", "height", "fill"], sc = ["width", "height", "fill"], rc = ["width", "height", "fill"], pc = ["width", "height", "fill"], dc = ["width", "height"], wc = ["width", "height"], uc = ["width", "height"], hc = ["width", "height"], vc = ["width", "height"], mc = ["width", "height"], fc = ["width", "height"], bc = ["width", "height"], gc = ["width", "height"], zc = ["width", "height"], Cc = ["width", "height"], kc = ["width", "height"], xc = ["width", "height"], yc = ["width", "height"], Mc = ["width", "height"], Vc = ["width", "height"], Lc = ["width", "height"], Bc = ["width", "height"], $c = ["width", "height"], Ac = ["width", "height"], Sc = ["width", "height"], Hc = ["width", "height"], Fc = ["width", "height"], Pc = ["width", "height"], Tc = ["width", "height"], jc = ["width", "height"], Ec = ["width", "height"], Wc = ["width", "height"], Dc = ["width", "height"], Ic = ["width", "height"], Rc = ["width", "height"], Zc = ["width", "height"], Nc = ["width", "height"], Kc = ["width", "height"], Oc = ["width", "height"], Uc = ["width", "height"], Yc = ["width", "height"], qc = ["width", "height"], Qc = ["width", "height"], Jc = ["width", "height"], Xc = ["width", "height"], Gc = ["width", "height"], _c = ["width", "height"], nt = ["width", "height"], et = ["width", "height"], ct = ["width", "height"], tt = ["width", "height"], it = ["src", "width", "height"], lt = ["src", "width", "height"], at = ["width", "height"], ot = ["width", "height"], st = ["width", "height"], rt = ["width", "height"], pt = {
7263
7270
  key: 91,
7264
7271
  class: "wpic:text-[10px] wpic:font-bold wpic:leading-none wpic:shrink-0 wpic:opacity-60 wpic:uppercase"
7265
7272
  }, dt = /* @__PURE__ */ X({
@@ -7578,7 +7585,7 @@ c249 -370 357 -505 565 -708 194 -189 303 -279 360 -296 67 -20 174 -18 231 4
7578
7585
  d: "M80.4952 0.697644L62.9016 61.0506C90.4517 13.6362 119.339 55.4766 42.0364 115C145.208 61.8194 111.985 -11.0978 76.7881 37.0045L80.4952 0.697644Z",
7579
7586
  fill: "#0B2240"
7580
7587
  }, null, -1)
7581
- ])], 8, Fe)) : s.value === "designforhealth" && n.mono ? (e(), t("svg", {
7588
+ ])], 8, He)) : s.value === "designforhealth" && n.mono ? (e(), t("svg", {
7582
7589
  key: 17,
7583
7590
  width: l.value,
7584
7591
  height: l.value,
@@ -7588,7 +7595,7 @@ c249 -370 357 -505 565 -708 194 -189 303 -279 360 -296 67 -20 174 -18 231 4
7588
7595
  }, [...a[17] || (a[17] = [
7589
7596
  i("path", { d: "M74.4786 0L63.8232 37.0049C16.7753 42.1843 3.46613 94.6062 48.8428 89.012C-15.0694 106.584 -20.0021 30.5305 56.409 32.3717L74.4786 0Z" }, null, -1),
7590
7597
  i("path", { d: "M80.4952 0.697644L62.9016 61.0506C90.4517 13.6362 119.339 55.4766 42.0364 115C145.208 61.8194 111.985 -11.0978 76.7881 37.0045L80.4952 0.697644Z" }, null, -1)
7591
- ])], 8, He)) : s.value === "topologie" && !n.mono ? (e(), t("svg", {
7598
+ ])], 8, Fe)) : s.value === "topologie" && !n.mono ? (e(), t("svg", {
7592
7599
  key: 18,
7593
7600
  width: l.value,
7594
7601
  height: l.value * (224 / 464),
@@ -11776,7 +11783,7 @@ c-27 -5 -68 -14 -90 -20 -42 -12 -156 -65 -165 -77 -11 -16 -84 -60 -92 -55
11776
11783
  62 108 88 0 9 5 16 10 16 7 0 10 178 10 514 0 514 0 514 -22 556 -31 58 -84
11777
11784
  90 -148 90 -27 0 -50 -4 -50 -10z` })
11778
11785
  ], -1)
11779
- ])], 8, Fc)) : s.value === "renzos" && n.mono ? (e(), t("svg", {
11786
+ ])], 8, Hc)) : s.value === "renzos" && n.mono ? (e(), t("svg", {
11780
11787
  key: 60,
11781
11788
  width: l.value * (2400 / 1200),
11782
11789
  height: l.value,
@@ -12470,7 +12477,7 @@ c-27 -5 -68 -14 -90 -20 -42 -12 -156 -65 -165 -77 -11 -16 -84 -60 -92 -55
12470
12477
  62 108 88 0 9 5 16 10 16 7 0 10 178 10 514 0 514 0 514 -22 556 -31 58 -84
12471
12478
  90 -148 90 -27 0 -50 -4 -50 -10z` })
12472
12479
  ], -1)
12473
- ])], 8, Hc)) : s.value === "goodr" && !n.mono ? (e(), t("svg", {
12480
+ ])], 8, Fc)) : s.value === "goodr" && !n.mono ? (e(), t("svg", {
12474
12481
  key: 61,
12475
12482
  width: l.value * (2400 / 868),
12476
12483
  height: l.value,
@@ -17909,9 +17916,9 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
17909
17916
  colors: {}
17910
17917
  },
17911
17918
  setup(n) {
17912
- const w = n, c = V2(), o = F("light");
17919
+ const w = n, c = V2(), o = H("light");
17913
17920
  let d;
17914
- H2(() => {
17921
+ F2(() => {
17915
17922
  const f = () => {
17916
17923
  o.value = document.documentElement.classList.contains("dark") ? "dark" : "light";
17917
17924
  };
@@ -17919,7 +17926,7 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
17919
17926
  }), s2(() => d?.disconnect());
17920
17927
  const l = x(() => w.mode === "auto" ? c.value?.mode ?? o.value : w.mode), s = x(() => ({
17921
17928
  mode: l.value,
17922
- variables: H5(l.value, w.colors?.[l.value])
17929
+ variables: F5(l.value, w.colors?.[l.value])
17923
17930
  }));
17924
17931
  return g2(y0, s), (f, k) => (e(), t("div", {
17925
17932
  class: b({ "wpic-theme": s.value, dark: s.value?.mode === "dark" }),
@@ -17932,10 +17939,10 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
17932
17939
  }), Bt = { class: "wpic-page-header wpic:min-w-0 wpic:text-[var(--wpic-legacy-text-main)]" }, $t = { class: "wpic:flex wpic:flex-wrap wpic:items-start wpic:justify-between wpic:gap-x-6 wpic:gap-y-4" }, At = { class: "wpic:min-w-0 wpic:flex-1 wpic:basis-64" }, St = {
17933
17940
  key: 0,
17934
17941
  class: "wpic:mt-2 wpic:max-w-3xl wpic:text-sm wpic:leading-6 wpic:text-[var(--wpic-legacy-text-muted)]"
17935
- }, Ft = {
17942
+ }, Ht = {
17936
17943
  key: 1,
17937
17944
  class: "wpic:mt-2 wpic:text-xs wpic:text-[var(--wpic-legacy-text-muted)]"
17938
- }, Ht = {
17945
+ }, Ft = {
17939
17946
  key: 0,
17940
17947
  class: "wpic:flex wpic:max-w-full wpic:flex-wrap wpic:items-center wpic:gap-2 wpic:[&>*]:max-w-full"
17941
17948
  }, Pt = {
@@ -17959,11 +17966,11 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
17959
17966
  _: 1
17960
17967
  })),
17961
17968
  n.description ? (e(), t("p", St, m(n.description), 1)) : h("", !0),
17962
- w.$slots.metadata ? (e(), t("div", Ft, [
17969
+ w.$slots.metadata ? (e(), t("div", Ht, [
17963
17970
  Q(w.$slots, "metadata")
17964
17971
  ])) : h("", !0)
17965
17972
  ]),
17966
- w.$slots.actions ? (e(), t("div", Ht, [
17973
+ w.$slots.actions ? (e(), t("div", Ft, [
17967
17974
  Q(w.$slots, "actions")
17968
17975
  ])) : h("", !0)
17969
17976
  ]),
@@ -18006,7 +18013,7 @@ export {
18006
18013
  Nt as WChatPanel,
18007
18014
  u0 as WCheckbox,
18008
18015
  yn as WDatePicker,
18009
- Fi as WDateRangePicker,
18016
+ Hi as WDateRangePicker,
18010
18017
  ki as WEmptyState,
18011
18018
  Ot as WEmptyValue,
18012
18019
  zi as WFileList,
@@ -18018,7 +18025,7 @@ export {
18018
18025
  x0 as WInput,
18019
18026
  Qt as WLoader,
18020
18027
  Xt as WModal,
18021
- Hi as WMonthPicker,
18028
+ Fi as WMonthPicker,
18022
18029
  P6 as WOptionPopover,
18023
18030
  Di as WPageHeader,
18024
18031
  Kt as WPagination,
@@ -18044,13 +18051,13 @@ export {
18044
18051
  Mi as WTextarea,
18045
18052
  Wi as WThemeProvider,
18046
18053
  Jt as WToggle,
18047
- H8 as WTooltip,
18054
+ F8 as WTooltip,
18048
18055
  j8 as WTrendBadge,
18049
18056
  ti as WTwoColumnFormSection,
18050
18057
  ei as WWorkflowNav,
18051
18058
  Zt as chartPalettes,
18052
- H5 as themeVariables,
18053
- F5 as ui5Theme,
18059
+ F5 as themeVariables,
18060
+ H5 as ui5Theme,
18054
18061
  Z7 as useRecentItems,
18055
18062
  g9 as useToastStore,
18056
18063
  V2 as useWTheme