@wpic/ui 0.9.30 → 0.9.31

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
@@ -426,7 +426,7 @@ const O3 = {
426
426
  for (const g1 of [..._].sort((B1, C) => B1 - C))
427
427
  g1 - m1 > 1 && A.push("…"), A.push(g1), m1 = g1;
428
428
  return A;
429
- }), Q = M(() => o.padding ? `wpic-table--padding-${o.padding}` : o.compact ? "wpic-table--padding-sm" : "wpic-table--padding-inherit"), x1 = (J) => J === "right" ? "wpic:text-right" : J === "center" ? "wpic:text-center" : "wpic:text-left", z1 = (J, N) => [
429
+ }), q = M(() => o.padding ? `wpic-table--padding-${o.padding}` : o.compact ? "wpic-table--padding-sm" : "wpic-table--padding-inherit"), x1 = (J) => J === "right" ? "wpic:text-right" : J === "center" ? "wpic:text-center" : "wpic:text-left", z1 = (J, N) => [
430
430
  N,
431
431
  o.flushEdges && J === 0 && !o.expandable && !o.selectable ? "wpic:pl-0" : "wpic-table__pad-l",
432
432
  o.flushEdges && J === o.columns.length - 1 ? "wpic:pr-0" : "wpic-table__pad-r"
@@ -435,7 +435,7 @@ const O3 = {
435
435
  ...J.minWidth ? { minWidth: J.minWidth } : {}
436
436
  });
437
437
  return d({ filteredCount: M(() => x.value.length), searchQuery: B }), (J, N) => (e(), t("div", {
438
- class: g(["wpic-table", [Q.value, { "wpic-table--column-dividers": n.columnDividers }]])
438
+ class: g(["wpic-table", [q.value, { "wpic-table--column-dividers": n.columnDividers }]])
439
439
  }, [
440
440
  (H.value || m(f).toolbar) && !n.loading ? (e(), t("div", {
441
441
  key: 0,
@@ -708,7 +708,7 @@ const O3 = {
708
708
  const o = n, r = c, l = M(() => o.showAxes && o.showColumnLetters), a = M(() => o.showAxes && o.showRowNumbers), f = M(() => o.columns.some((C) => C.sticky)), b = T(null), V = T("asc"), s = T(o.expanded ?? !1), F = T(null), L = T(null), B = T(null), H = T(null), x = T(null);
709
709
  function k() {
710
710
  if (!o.downloadable) return;
711
- const C = (R) => `"${String(R ?? "").replace(/"/g, '""')}"`, D = U.value.map((R) => o.columns.map((q) => C(r1(R, q.key))).join(",")).join(`\r
711
+ const C = (R) => `"${String(R ?? "").replace(/"/g, '""')}"`, D = U.value.map((R) => o.columns.map((Q) => C(r1(R, Q.key))).join(",")).join(`\r
712
712
  `), S = new Blob([`\uFEFF${D}`], { type: "text/csv;charset=utf-8" }), a1 = URL.createObjectURL(S), u1 = document.createElement("a");
713
713
  u1.href = a1, u1.download = o.downloadFilename || "spreadsheet.csv", u1.click(), URL.revokeObjectURL(a1);
714
714
  }
@@ -761,8 +761,8 @@ const O3 = {
761
761
  if (!b.value) return o.rows;
762
762
  const C = o.rows.filter((a1) => a1.sortable !== !1), D = V.value === "asc" ? 1 : -1;
763
763
  C.sort((a1, u1) => {
764
- const R = n1(r1(a1, b.value)), q = n1(r1(u1, b.value));
765
- return typeof R == "number" && typeof q == "number" ? (R - q) * D : String(R).localeCompare(String(q), void 0, { numeric: !0 }) * D;
764
+ const R = n1(r1(a1, b.value)), Q = n1(r1(u1, b.value));
765
+ return typeof R == "number" && typeof Q == "number" ? (R - Q) * D : String(R).localeCompare(String(Q), void 0, { numeric: !0 }) * D;
766
766
  });
767
767
  let S = 0;
768
768
  return o.rows.map((a1) => a1.sortable === !1 ? a1 : C[S++]);
@@ -796,12 +796,12 @@ const O3 = {
796
796
  function e1(C, D) {
797
797
  !D.editable || L.value || (H.value = { rowKey: C.key, cellKey: D.key }, x.value = null);
798
798
  }
799
- function Q(C, D) {
799
+ function q(C, D) {
800
800
  return H.value?.rowKey === C.key && H.value?.cellKey === D.key;
801
801
  }
802
802
  function x1(C, D, S) {
803
803
  const a1 = U.value[C];
804
- !o.fillHandle || !S.editable || !a1 || !Q(a1, S) || (x.value = null, L.value = { row: C, cell: D, value: String(S.value ?? "") }, B.value = { row: C, cell: D }, window.addEventListener("pointerup", A, { once: !0 }));
804
+ !o.fillHandle || !S.editable || !a1 || !q(a1, S) || (x.value = null, L.value = { row: C, cell: D, value: String(S.value ?? "") }, B.value = { row: C, cell: D }, window.addEventListener("pointerup", A, { once: !0 }));
805
805
  }
806
806
  function z1(C, D) {
807
807
  L.value && (B.value = { row: C, cell: D });
@@ -831,16 +831,16 @@ const O3 = {
831
831
  }
832
832
  function A() {
833
833
  if (!L.value || !B.value) return;
834
- const C = L.value, D = B.value, S = Math.min(C.row, D.row), a1 = Math.max(C.row, D.row), u1 = Math.min(C.cell, D.cell), R = Math.max(C.cell, D.cell), q = /* @__PURE__ */ new Set(), t1 = U.value[C.row], L1 = t1?.cells[C.cell];
834
+ const C = L.value, D = B.value, S = Math.min(C.row, D.row), a1 = Math.max(C.row, D.row), u1 = Math.min(C.cell, D.cell), R = Math.max(C.cell, D.cell), Q = /* @__PURE__ */ new Set(), t1 = U.value[C.row], L1 = t1?.cells[C.cell];
835
835
  for (let T1 = S; T1 <= a1; T1++) {
836
836
  const i2 = U.value[T1];
837
837
  if (i2)
838
838
  for (let l2 = u1; l2 <= R; l2++) {
839
839
  const w2 = i2.cells[l2];
840
- w2?.editable && (q.add(j(i2, w2)), r("cell-change", { rowKey: i2.key, cellKey: w2.key, value: C.value, row: i2, cell: w2 }));
840
+ w2?.editable && (Q.add(j(i2, w2)), r("cell-change", { rowKey: i2.key, cellKey: w2.key, value: C.value, row: i2, cell: w2 }));
841
841
  }
842
842
  }
843
- L.value = null, B.value = null, x.value = t1 && L1 ? { cells: q, source: j(t1, L1) } : null;
843
+ L.value = null, B.value = null, x.value = t1 && L1 ? { cells: Q, source: j(t1, L1) } : null;
844
844
  }
845
845
  function _(C) {
846
846
  let D = C + 1, S = "";
@@ -954,18 +954,18 @@ const O3 = {
954
954
  a.value ? (e(), t("th", j5, v(a1 + 1), 1)) : u("", !0),
955
955
  (e(!0), t(I, null, l1(S.cells, (u1, R) => (e(), t("td", {
956
956
  key: u1.key,
957
- class: g(["w-spreadsheet__cell", [m1(u1), { "w-spreadsheet__cell--sortable": E(u1), "w-spreadsheet__cell--sticky": G(S, R), "w-spreadsheet__cell--sticky-first": p1(S, R), "w-spreadsheet__cell--active": Q(S, u1) }, J(a1, R), N(S, u1)]]),
957
+ class: g(["w-spreadsheet__cell", [m1(u1), { "w-spreadsheet__cell--sortable": E(u1), "w-spreadsheet__cell--sticky": G(S, R), "w-spreadsheet__cell--sticky-first": p1(S, R), "w-spreadsheet__cell--active": q(S, u1) }, J(a1, R), N(S, u1)]]),
958
958
  colspan: u1.colspan || 1,
959
959
  title: u1.title,
960
960
  style: h1(k1(S, R)),
961
961
  tabindex: E(u1) ? 0 : void 0,
962
- onClick: (q) => Y(u1),
962
+ onClick: (Q) => Y(u1),
963
963
  onKeydown: [
964
- d2(b1((q) => Y(u1), ["prevent"]), ["enter"]),
965
- d2(b1((q) => Y(u1), ["prevent"]), ["space"])
964
+ d2(b1((Q) => Y(u1), ["prevent"]), ["enter"]),
965
+ d2(b1((Q) => Y(u1), ["prevent"]), ["space"])
966
966
  ],
967
- onPointerenter: (q) => z1(a1, R),
968
- onPointerdown: (q) => e1(S, u1)
967
+ onPointerenter: (Q) => z1(a1, R),
968
+ onPointerdown: (Q) => e1(S, u1)
969
969
  }, [
970
970
  K(C.$slots, `cell-${u1.key}`, {
971
971
  row: S,
@@ -979,7 +979,7 @@ const O3 = {
979
979
  value: u1.value ?? "",
980
980
  min: u1.min,
981
981
  placeholder: u1.placeholder,
982
- onInput: (q) => g1(S, u1, q)
982
+ onInput: (Q) => g1(S, u1, Q)
983
983
  }, null, 42, D5),
984
984
  u1.inputType === "date" ? (e(), t("button", {
985
985
  key: 0,
@@ -1000,13 +1000,13 @@ const O3 = {
1000
1000
  class: "w-spreadsheet__sort-icon",
1001
1001
  size: 14
1002
1002
  })) : u("", !0),
1003
- n.fillHandle && u1.editable && Q(S, u1) ? (e(), t("button", {
1003
+ n.fillHandle && u1.editable && q(S, u1) ? (e(), t("button", {
1004
1004
  key: 1,
1005
1005
  type: "button",
1006
1006
  class: "w-spreadsheet__fill-handle",
1007
1007
  "aria-label": "Fill adjacent cells",
1008
1008
  title: "Drag to fill adjacent cells",
1009
- onPointerdown: b1((q) => x1(a1, R, u1), ["stop", "prevent"])
1009
+ onPointerdown: b1((Q) => x1(a1, R, u1), ["stop", "prevent"])
1010
1010
  }, null, 40, I5)) : u("", !0)
1011
1011
  ], 46, E5))), 128))
1012
1012
  ], 2))), 128))
@@ -1296,6 +1296,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1296
1296
  panelScroll: { type: Boolean, default: !0 },
1297
1297
  offset: {},
1298
1298
  matchAnchorWidth: { type: Boolean },
1299
+ fitAnchorContent: { type: Boolean },
1299
1300
  freezePositionOnOpen: { type: Boolean, default: !0 },
1300
1301
  flip: { type: Boolean, default: !0 },
1301
1302
  autoPlacement: { type: Boolean },
@@ -1324,11 +1325,11 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1324
1325
  return H.value || (c.autoPlacement ? j.push(E3({ alignment: "start" })) : c.flip && j.push(b2({ crossAxis: !c.shiftCrossAxis }))), j.push(g2({ padding: c.autoPlacement ? 8 : 4, crossAxis: c.autoPlacement || c.shiftCrossAxis })), j.push(
1325
1326
  n0({
1326
1327
  padding: 8,
1327
- apply({ availableHeight: e1, availableWidth: Q, rects: x1, elements: z1 }) {
1328
- const d1 = Math.max(e1 - 8, 50), J = c.maxHeight ? `min(${c.maxHeight}, ${d1}px)` : `${d1}px`, N = { maxWidth: `${Math.max(Q, 0)}px`, maxHeight: J, overflowY: c.panelScroll ? "auto" : "hidden" };
1328
+ apply({ availableHeight: e1, availableWidth: q, rects: x1, elements: z1 }) {
1329
+ const d1 = Math.max(e1 - 8, 50), J = c.maxHeight ? `min(${c.maxHeight}, ${d1}px)` : `${d1}px`, N = { maxWidth: `${Math.max(q, 0)}px`, maxHeight: J, overflowY: c.panelScroll ? "auto" : "hidden" };
1329
1330
  if (c.height && (N.height = `min(${c.height}, ${d1}px)`), c.minHeight && (N.minHeight = `min(${c.minHeight}, ${d1}px)`), c.matchAnchorWidth) {
1330
- const A = `${x1.reference.width}px`;
1331
- N.width = A, N.minWidth = A;
1331
+ const A = `${Math.min(x1.reference.width, Math.max(q, 0))}px`;
1332
+ N.width = c.fitAnchorContent ? "max-content" : A, N.minWidth = A;
1332
1333
  }
1333
1334
  Object.assign(z1.floating.style, N);
1334
1335
  }
@@ -1345,10 +1346,10 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1345
1346
  return j.startsWith("top") ? "bottom" : j.startsWith("bottom") ? "top" : j.startsWith("left") ? "right" : j.startsWith("right") ? "left" : "top";
1346
1347
  }), U = (j) => {
1347
1348
  if (f.value) return;
1348
- const e1 = j.target, Q = L.value, x1 = B.value;
1349
- x1 && x1.contains(e1) || [...F].some((z1) => z1.contains(e1)) || Q && Q.contains(e1) || c.extraPanels?.some((z1) => z1?.contains(e1)) || b("close");
1349
+ const e1 = j.target, q = L.value, x1 = B.value;
1350
+ x1 && x1.contains(e1) || [...F].some((z1) => z1.contains(e1)) || q && q.contains(e1) || c.extraPanels?.some((z1) => z1?.contains(e1)) || b("close");
1350
1351
  }, E = (j) => {
1351
- if (f.value || j.key !== "Escape" || !c.open || [...F].some((Q) => Q.isConnected && Q.style.display !== "none")) return;
1352
+ if (f.value || j.key !== "Escape" || !c.open || [...F].some((q) => q.isConnected && q.style.display !== "none")) return;
1352
1353
  j.preventDefault(), j.stopImmediatePropagation(), b("close");
1353
1354
  const e1 = L.value;
1354
1355
  e1?.matches("button, input, [tabindex]") ? e1.focus() : e1?.querySelector("button, input, [tabindex]")?.focus();
@@ -1387,7 +1388,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1387
1388
  title: n.sheetTitle,
1388
1389
  "close-label": n.closeLabel,
1389
1390
  "no-padding": "",
1390
- "onUpdate:modelValue": e1[0] || (e1[0] = (Q) => !Q && b("close"))
1391
+ "onUpdate:modelValue": e1[0] || (e1[0] = (q) => !q && b("close"))
1391
1392
  }, {
1392
1393
  default: s1(() => [
1393
1394
  K(j.$slots, "default")
@@ -1552,7 +1553,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1552
1553
  if (!p) return [];
1553
1554
  const w = p.query;
1554
1555
  return c.mentionItems.filter((h) => h.label.toLowerCase().includes(w)).slice(0, 6);
1555
- }), e1 = M(() => c.showNavigator && L.value), Q = M(() => c.selectedProjectId ?? null), x1 = M(() => c.sessions.filter((p) => !p.projectId)), z1 = M(() => {
1556
+ }), e1 = M(() => c.showNavigator && L.value), q = M(() => c.selectedProjectId ?? null), x1 = M(() => c.sessions.filter((p) => !p.projectId)), z1 = M(() => {
1556
1557
  const p = /* @__PURE__ */ new Map();
1557
1558
  for (const w of c.projects) p.set(w.id, []);
1558
1559
  for (const w of c.sessions) {
@@ -1728,7 +1729,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
1728
1729
  const w = p.metadata && typeof p.metadata == "object" ? p.metadata : {}, h = p.mimeType ?? "", P = typeof w.kind == "string" ? w.kind : "", y = p.displayUrl ?? (typeof w.displayUrl == "string" ? w.displayUrl : null);
1729
1730
  return !y || !h.startsWith("image/") && P !== "image" ? null : y;
1730
1731
  }
1731
- function q(p) {
1732
+ function Q(p) {
1732
1733
  if (p.role !== "assistant" || !p.streaming) return !1;
1733
1734
  const w = p.content.trim();
1734
1735
  return w === "Generating image..." || S(w);
@@ -2045,7 +2046,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
2045
2046
  function r0(p, w) {
2046
2047
  o("move-session", p, w), o2();
2047
2048
  }
2048
- function p0(p = Q.value) {
2049
+ function p0(p = q.value) {
2049
2050
  o("new-conversation", p), L.value = !1, o2(), H1(() => a.value?.focus());
2050
2051
  }
2051
2052
  function Z2(p) {
@@ -2683,7 +2684,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
2683
2684
  class: "wpic:animate-spin"
2684
2685
  }),
2685
2686
  i("span", null, v(n.thinkingLabel), 1)
2686
- ])) : q(h) ? (e(), t("div", n6, [...w[30] || (w[30] = [
2687
+ ])) : Q(h) ? (e(), t("div", n6, [...w[30] || (w[30] = [
2687
2688
  i("span", { class: "wpic-chat-loading-card__label" }, "Generating image...", -1)
2688
2689
  ])])) : (e(), t("div", {
2689
2690
  key: 2,
@@ -3149,7 +3150,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
3149
3150
  const G = c.allLabel ?? c.placeholder ?? "All";
3150
3151
  if (z === E) return `${G} · ${E}`;
3151
3152
  const p1 = c.maxLabels ?? 3, k1 = Y.map((j) => {
3152
- const e1 = L.value.find((Q) => String(Q.value) === String(j));
3153
+ const e1 = L.value.find((q) => String(q.value) === String(j));
3153
3154
  return e1 ? e1.label : null;
3154
3155
  }).filter(Boolean);
3155
3156
  return k1.length ? z <= p1 ? k1.join(", ") : `${k1.slice(0, p1).join(", ")} · ${z}` : c.placeholder ? `${c.placeholder} · ${z}` : `${z} selected`;
@@ -3226,6 +3227,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
3226
3227
  open: a.value,
3227
3228
  anchor: f.value,
3228
3229
  "match-anchor-width": !n.popoverWidth,
3230
+ "fit-anchor-content": !n.popoverWidth,
3229
3231
  width: n.popoverWidth,
3230
3232
  placement: n.popoverPlacement,
3231
3233
  flip: n.popoverFlip,
@@ -3341,7 +3343,7 @@ const G5 = ["data-wpic-theme"], N1 = /* @__PURE__ */ X({
3341
3343
  ])
3342
3344
  ]),
3343
3345
  _: 3
3344
- }, 8, ["sheet-title", "close-label", "open", "anchor", "match-anchor-width", "width", "placement", "flip", "auto-placement", "min-height", "z-index", "max-height"])
3346
+ }, 8, ["sheet-title", "close-label", "open", "anchor", "match-anchor-width", "fit-anchor-content", "width", "placement", "flip", "auto-placement", "min-height", "z-index", "max-height"])
3345
3347
  ], 4));
3346
3348
  }
3347
3349
  }), Y6 = { class: "wpic:font-normal wpic:text-zinc-400 wpic:dark:text-zinc-500" }, ll = /* @__PURE__ */ X({
@@ -4437,7 +4439,7 @@ const bl = /* @__PURE__ */ U1(y7, [["render", L7]]), V7 = ["placeholder", "rows"
4437
4439
  o("update:modelValue", { start: _, end: m1 }), H.value = null, l.value = !1;
4438
4440
  }, e1 = (N) => {
4439
4441
  N.stopPropagation(), o("update:modelValue", null), H.value = null;
4440
- }, Q = () => {
4442
+ }, q = () => {
4441
4443
  F.value === 0 ? (F.value = 11, s.value--) : F.value--;
4442
4444
  }, x1 = () => {
4443
4445
  F.value === 11 ? (F.value = 0, s.value++) : F.value++;
@@ -4498,7 +4500,7 @@ const bl = /* @__PURE__ */ U1(y7, [["render", L7]]), V7 = ["placeholder", "rows"
4498
4500
  i("div", P7, [
4499
4501
  i("div", T7, [
4500
4502
  i("button", {
4501
- onClick: Q,
4503
+ onClick: q,
4502
4504
  type: "button",
4503
4505
  class: "wpic:p-1 wpic:rounded wpic:hover:bg-black/5 wpic:dark:hover:bg-white/5 wpic:text-zinc-400 wpic:dark:text-zinc-500 wpic:hover:text-zinc-900 wpic:dark:hover:text-zinc-100 wpic:transition wpic:cursor-pointer"
4504
4506
  }, [
@@ -4941,19 +4943,19 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
4941
4943
  emits: ["update:modelValue", "update:simpleValue"],
4942
4944
  setup(n, { emit: d }) {
4943
4945
  const c = n, o = d, r = M(() => c.simpleValue ?? []), l = T(""), a = T(!1), f = M(() => {
4944
- const R = l.value.trim().toLowerCase(), q = new Set(r.value), t1 = c.options ?? [];
4945
- return R ? t1.filter((L1) => L1.toLowerCase().includes(R) && !q.has(L1)) : t1.filter((L1) => !q.has(L1)).slice(0, 8);
4946
+ const R = l.value.trim().toLowerCase(), Q = new Set(r.value), t1 = c.options ?? [];
4947
+ return R ? t1.filter((L1) => L1.toLowerCase().includes(R) && !Q.has(L1)) : t1.filter((L1) => !Q.has(L1)).slice(0, 8);
4946
4948
  }), b = M(() => {
4947
4949
  if (!c.creatable || !l.value.trim()) return !1;
4948
4950
  const R = l.value.trim();
4949
- return !r.value.includes(R) && !(c.options ?? []).some((q) => q.toLowerCase() === R.toLowerCase());
4951
+ return !r.value.includes(R) && !(c.options ?? []).some((Q) => Q.toLowerCase() === R.toLowerCase());
4950
4952
  });
4951
4953
  function V(R) {
4952
- const q = R.trim();
4953
- !q || r.value.includes(q) || (o("update:simpleValue", [...r.value, q]), l.value = "", a.value = !1);
4954
+ const Q = R.trim();
4955
+ !Q || r.value.includes(Q) || (o("update:simpleValue", [...r.value, Q]), l.value = "", a.value = !1);
4954
4956
  }
4955
4957
  function s(R) {
4956
- o("update:simpleValue", r.value.filter((q) => q !== R));
4958
+ o("update:simpleValue", r.value.filter((Q) => Q !== R));
4957
4959
  }
4958
4960
  function F(R) {
4959
4961
  R.key === "Enter" && (R.preventDefault(), l.value.trim() && V(l.value)), R.key === "Escape" && (a.value = !1), R.key === "Backspace" && !l.value && r.value.length && s(r.value[r.value.length - 1]);
@@ -4971,8 +4973,8 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
4971
4973
  f2(4),
4972
4974
  b2({ padding: 8 }),
4973
4975
  g2({ padding: 8 }),
4974
- n0({ padding: 8, apply({ availableHeight: R, elements: q }) {
4975
- Object.assign(q.floating.style, { maxHeight: `${Math.min(240, R)}px` });
4976
+ n0({ padding: 8, apply({ availableHeight: R, elements: Q }) {
4977
+ Object.assign(Q.floating.style, { maxHeight: `${Math.min(240, R)}px` });
4976
4978
  } })
4977
4979
  ],
4978
4980
  whileElementsMounted: C2
@@ -4982,21 +4984,21 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
4982
4984
  function e1(R) {
4983
4985
  return R.translations?.[c.locale]?.value || R.translations?.en?.value || R.slug;
4984
4986
  }
4985
- function Q(R) {
4986
- return (c.modelValue ?? []).some((q) => q.tag_id === R.tag_id);
4987
+ function q(R) {
4988
+ return (c.modelValue ?? []).some((Q) => Q.tag_id === R.tag_id);
4987
4989
  }
4988
4990
  function x1(R) {
4989
- const q = B.value.trim().toLowerCase();
4990
- if (!q) return null;
4991
+ const Q = B.value.trim().toLowerCase();
4992
+ if (!Q) return null;
4991
4993
  const t1 = e1(R).toLowerCase();
4992
4994
  for (const [L1, T1] of Object.entries(R.translations ?? {}))
4993
- if (T1?.value && T1.value.toLowerCase().includes(q) && T1.value.toLowerCase() !== t1)
4995
+ if (T1?.value && T1.value.toLowerCase().includes(Q) && T1.value.toLowerCase() !== t1)
4994
4996
  return { locale: L1.toUpperCase(), value: T1.value };
4995
4997
  return null;
4996
4998
  }
4997
4999
  const z1 = M(() => B.value.trim() ? E.value : G().map(
4998
- (q) => (c.modelValue ?? []).find((t1) => t1.tag_id === q) || E.value.find((t1) => t1.tag_id === q)
4999
- ).filter((q) => !!q).filter((q) => !Q(q))), d1 = M(() => B.value.trim() ? null : c.labelRecent), J = () => {
5000
+ (Q) => (c.modelValue ?? []).find((t1) => t1.tag_id === Q) || E.value.find((t1) => t1.tag_id === Q)
5001
+ ).filter((Q) => !!Q).filter((Q) => !q(Q))), d1 = M(() => B.value.trim() ? null : c.labelRecent), J = () => {
5000
5002
  U.value = !0;
5001
5003
  }, N = () => {
5002
5004
  setTimeout(() => {
@@ -5029,14 +5031,14 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5029
5031
  R.key === "Enter" && (z && clearTimeout(z), B1()), R.key === "Escape" && (D(), U.value = !1);
5030
5032
  }
5031
5033
  async function g1(R) {
5032
- if (Q(R)) return;
5034
+ if (q(R)) return;
5033
5035
  H.value = "confirming", U.value = !1;
5034
- const q = c.modelValue ?? [];
5035
- o("update:modelValue", [...q, R]), p1(R.tag_id), B.value = "";
5036
+ const Q = c.modelValue ?? [];
5037
+ o("update:modelValue", [...Q, R]), p1(R.tag_id), B.value = "";
5036
5038
  try {
5037
5039
  await c.mutateFn?.("add", R);
5038
5040
  } catch {
5039
- o("update:modelValue", q), k.value = c.labelErrorAdding;
5041
+ o("update:modelValue", Q), k.value = c.labelErrorAdding;
5040
5042
  } finally {
5041
5043
  H.value = "idle";
5042
5044
  }
@@ -5044,18 +5046,18 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5044
5046
  async function B1() {
5045
5047
  const R = B.value.trim();
5046
5048
  if (!R) return;
5047
- const q = E.value.find(
5049
+ const Q = E.value.find(
5048
5050
  (t1) => Object.values(t1.translations ?? {}).some((L1) => L1.value?.toLowerCase() === R.toLowerCase()) || t1.slug === R.toLowerCase()
5049
5051
  );
5050
- if (q) {
5051
- g1(q);
5052
+ if (Q) {
5053
+ g1(Q);
5052
5054
  return;
5053
5055
  }
5054
5056
  if (c.resolveFn) {
5055
5057
  H.value = "resolving", U.value = !1, k.value = null;
5056
5058
  try {
5057
5059
  const t1 = await c.resolveFn(R, c.locale);
5058
- if (x.value = t1, t1.existed && !Q(t1)) {
5060
+ if (x.value = t1, t1.existed && !q(t1)) {
5059
5061
  await g1(t1), x.value = null;
5060
5062
  return;
5061
5063
  }
@@ -5068,34 +5070,34 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5068
5070
  async function C() {
5069
5071
  if (!x.value) return;
5070
5072
  H.value = "confirming";
5071
- const R = x.value, q = c.modelValue ?? [];
5072
- o("update:modelValue", [...q, R]), p1(R.tag_id);
5073
+ const R = x.value, Q = c.modelValue ?? [];
5074
+ o("update:modelValue", [...Q, R]), p1(R.tag_id);
5073
5075
  try {
5074
5076
  await c.mutateFn?.("add", R), D();
5075
5077
  } catch {
5076
- o("update:modelValue", q), k.value = c.labelErrorAdding, H.value = "preview";
5078
+ o("update:modelValue", Q), k.value = c.labelErrorAdding, H.value = "preview";
5077
5079
  }
5078
5080
  }
5079
5081
  function D() {
5080
5082
  x.value = null, B.value = "", k.value = null, H.value = "idle", O.value = null, E.value = [];
5081
5083
  }
5082
5084
  async function S(R) {
5083
- const q = c.modelValue ?? [];
5084
- o("update:modelValue", q.filter((t1) => t1.tag_id !== R.tag_id));
5085
+ const Q = c.modelValue ?? [];
5086
+ o("update:modelValue", Q.filter((t1) => t1.tag_id !== R.tag_id));
5085
5087
  try {
5086
5088
  await c.mutateFn?.("remove", R);
5087
5089
  } catch {
5088
- o("update:modelValue", q), k.value = c.labelErrorAdding;
5090
+ o("update:modelValue", Q), k.value = c.labelErrorAdding;
5089
5091
  }
5090
5092
  }
5091
5093
  function a1(R) {
5092
5094
  O.value = R, c1.value = x.value?.translations?.[R]?.value || "", H1(() => o1.value?.focus());
5093
5095
  }
5094
5096
  function u1(R) {
5095
- const q = c1.value.trim();
5096
- q && x.value?.translations?.[R] && (x.value.translations[R].value = q, x.value.translations[R].source = "human"), O.value = null;
5097
+ const Q = c1.value.trim();
5098
+ Q && x.value?.translations?.[R] && (x.value.translations[R].value = Q, x.value.translations[R].source = "human"), O.value = null;
5097
5099
  }
5098
- return (R, q) => (e(), t("div", v8, [
5100
+ return (R, Q) => (e(), t("div", v8, [
5099
5101
  n.simple ? (e(), t(I, { key: 0 }, [
5100
5102
  r.value.length ? (e(), t("div", f8, [
5101
5103
  (e(!0), t(I, null, l1(r.value, (t1) => (e(), Z(h2, {
@@ -5121,11 +5123,11 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5121
5123
  ])) : u("", !0),
5122
5124
  i("div", g8, [
5123
5125
  j1(i("input", {
5124
- "onUpdate:modelValue": q[0] || (q[0] = (t1) => l.value = t1),
5126
+ "onUpdate:modelValue": Q[0] || (Q[0] = (t1) => l.value = t1),
5125
5127
  placeholder: n.placeholder,
5126
5128
  class: "wpic:flex-1 wpic:w-full wpic:h-9 wpic:px-2.5 wpic:text-base wpic:rounded-lg wpic:border wpic:border-zinc-200 wpic:dark:border-zinc-800 wpic:bg-white wpic:dark:bg-zinc-900 wpic:text-zinc-900 wpic:dark:text-zinc-100 wpic:placeholder:text-zinc-400 wpic:dark:placeholder:text-zinc-500 wpic:outline-none wpic:transition wpic-input-field",
5127
5129
  onKeydown: F,
5128
- onFocus: q[1] || (q[1] = (t1) => a.value = !0),
5130
+ onFocus: Q[1] || (Q[1] = (t1) => a.value = !0),
5129
5131
  onBlur: L
5130
5132
  }, null, 40, z8), [
5131
5133
  [r2, l.value]
@@ -5147,7 +5149,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5147
5149
  key: 0,
5148
5150
  type: "button",
5149
5151
  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-indigo-600 wpic:hover:bg-indigo-50 wpic:dark:text-indigo-400 wpic:dark:hover:bg-indigo-950/40 wpic:transition-colors wpic:border-t wpic:border-zinc-100 wpic:dark:border-zinc-800",
5150
- onMousedown: q[2] || (q[2] = b1((t1) => V(l.value), ["prevent"]))
5152
+ onMousedown: Q[2] || (Q[2] = b1((t1) => V(l.value), ["prevent"]))
5151
5153
  }, [
5152
5154
  $(m($2), {
5153
5155
  size: 12,
@@ -5187,7 +5189,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5187
5189
  }, [
5188
5190
  i("div", M8, [
5189
5191
  j1(i("input", {
5190
- "onUpdate:modelValue": q[3] || (q[3] = (t1) => B.value = t1),
5192
+ "onUpdate:modelValue": Q[3] || (Q[3] = (t1) => B.value = t1),
5191
5193
  disabled: H.value === "resolving" || H.value === "confirming",
5192
5194
  placeholder: n.placeholder,
5193
5195
  class: "wpic:flex-1 wpic:h-9 wpic:px-2.5 wpic:text-base wpic:rounded-lg wpic:border wpic:border-zinc-200 wpic:dark:border-zinc-800 wpic:bg-white wpic:dark:bg-zinc-900 wpic:text-zinc-900 wpic:dark:text-zinc-100 wpic:placeholder:text-zinc-400 wpic:dark:placeholder:text-zinc-500 wpic:outline-none wpic:disabled:opacity-50 wpic:transition wpic-input-field",
@@ -5218,8 +5220,8 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5218
5220
  ])) : u("", !0),
5219
5221
  (e(!0), t(I, null, l1(z1.value, (t1) => (e(), t("button", {
5220
5222
  key: t1.tag_id,
5221
- class: g(["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", Q(t1) ? "wpic:opacity-40 wpic:cursor-default" : "wpic:text-zinc-600 wpic:dark:text-zinc-400"]),
5222
- onMousedown: b1((L1) => !Q(t1) && g1(t1), ["prevent"])
5223
+ class: g(["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", q(t1) ? "wpic:opacity-40 wpic:cursor-default" : "wpic:text-zinc-600 wpic:dark:text-zinc-400"]),
5224
+ onMousedown: b1((L1) => !q(t1) && g1(t1), ["prevent"])
5223
5225
  }, [
5224
5226
  $(m(T2), {
5225
5227
  size: 11,
@@ -5230,7 +5232,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5230
5232
  i("span", A8, v(x1(t1).locale), 1),
5231
5233
  i("span", F8, v(x1(t1).value), 1)
5232
5234
  ], 64)) : u("", !0),
5233
- Q(t1) ? (e(), Z(h2, {
5235
+ q(t1) ? (e(), Z(h2, {
5234
5236
  key: 1,
5235
5237
  variant: "default",
5236
5238
  class: "wpic:ml-auto wpic:shrink-0"
@@ -5247,7 +5249,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5247
5249
  i("div", P8, [
5248
5250
  i("div", T8, [
5249
5251
  i("span", j8, v(x.value.translations[n.locale]?.value || x.value.translations.en?.value || x.value.slug), 1),
5250
- Q(x.value) ? (e(), Z(h2, {
5252
+ q(x.value) ? (e(), Z(h2, {
5251
5253
  key: 0,
5252
5254
  variant: "default"
5253
5255
  }, {
@@ -5286,11 +5288,11 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5286
5288
  ref_for: !0,
5287
5289
  ref_key: "editInputRef",
5288
5290
  ref: o1,
5289
- "onUpdate:modelValue": q[4] || (q[4] = (L1) => c1.value = L1),
5291
+ "onUpdate:modelValue": Q[4] || (Q[4] = (L1) => c1.value = L1),
5290
5292
  class: "wpic:flex-1 wpic:h-6 wpic:px-2 wpic:text-sm wpic:bg-zinc-100 wpic:dark:bg-zinc-800 wpic:border wpic:border-zinc-200 wpic:dark:border-zinc-800 wpic:rounded wpic:text-zinc-900 wpic:dark:text-zinc-100 wpic:outline-none wpic:focus:border-gray-400 wpic:dark:focus:border-gray-500",
5291
5293
  onKeydown: [
5292
5294
  d2((L1) => u1(t1), ["enter"]),
5293
- q[5] || (q[5] = d2((L1) => O.value = null, ["escape"]))
5295
+ Q[5] || (Q[5] = d2((L1) => O.value = null, ["escape"]))
5294
5296
  ]
5295
5297
  }, null, 40, D8), [
5296
5298
  [r2, c1.value]
@@ -5303,7 +5305,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5303
5305
  ], 8, I8),
5304
5306
  i("button", {
5305
5307
  class: "wpic:p-0.5 wpic:text-zinc-400 wpic:dark:text-zinc-500 wpic:hover:text-gray-900 wpic:dark:hover:text-white wpic:transition",
5306
- onClick: q[6] || (q[6] = (L1) => O.value = null)
5308
+ onClick: Q[6] || (Q[6] = (L1) => O.value = null)
5307
5309
  }, [
5308
5310
  $(m($1), { size: 12 })
5309
5311
  ])
@@ -5332,7 +5334,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
5332
5334
  ]),
5333
5335
  _: 1
5334
5336
  }),
5335
- Q(x.value) ? u("", !0) : (e(), Z(k2, {
5337
+ q(x.value) ? u("", !0) : (e(), Z(k2, {
5336
5338
  key: 0,
5337
5339
  variant: "primary",
5338
5340
  size: "sm",
@@ -7149,7 +7151,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
7149
7151
  return `${j.getFullYear()}-${String(j.getMonth() + 1).padStart(2, "0")}-${String(j.getDate()).padStart(2, "0")}`;
7150
7152
  }
7151
7153
  function B(j) {
7152
- const e1 = /* @__PURE__ */ new Date(), Q = e1.getFullYear(), x1 = e1.getMonth(), z1 = e1.getDate();
7154
+ const e1 = /* @__PURE__ */ new Date(), q = e1.getFullYear(), x1 = e1.getMonth(), z1 = e1.getDate();
7153
7155
  switch (j) {
7154
7156
  case "today":
7155
7157
  return { since: L(e1), until: L(e1), preset: j };
@@ -7170,17 +7172,17 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
7170
7172
  return d1.setDate(z1 - 89), { since: L(d1), until: L(e1), preset: j };
7171
7173
  }
7172
7174
  case "mtd":
7173
- return { since: `${Q}-${String(x1 + 1).padStart(2, "0")}-01`, until: L(e1), preset: j };
7175
+ return { since: `${q}-${String(x1 + 1).padStart(2, "0")}-01`, until: L(e1), preset: j };
7174
7176
  case "ytd":
7175
- return { since: `${Q}-01-01`, until: L(e1), preset: j };
7177
+ return { since: `${q}-01-01`, until: L(e1), preset: j };
7176
7178
  default:
7177
7179
  return { since: f.value, until: b.value || L(e1), preset: "custom" };
7178
7180
  }
7179
7181
  }
7180
7182
  const H = M(() => {
7181
7183
  if (!c.modelValue) return "";
7182
- const { since: j, until: e1, preset: Q } = c.modelValue;
7183
- return Q && Q !== "custom" ? c.presets.find((x1) => x1.value === Q)?.label ?? "" : j === e1 ? j : `${j} → ${e1}`;
7184
+ const { since: j, until: e1, preset: q } = c.modelValue;
7185
+ return q && q !== "custom" ? c.presets.find((x1) => x1.value === q)?.label ?? "" : j === e1 ? j : `${j} → ${e1}`;
7184
7186
  });
7185
7187
  function x(j) {
7186
7188
  a.value = j, j !== "custom" && (o("update:modelValue", B(j)), r.value = !1);
@@ -7195,23 +7197,23 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
7195
7197
  s.value = new Date(k.value, O.value + 1, 1);
7196
7198
  }
7197
7199
  const U = M(() => {
7198
- const j = new Date(k.value, O.value, 1), e1 = new Date(k.value, O.value + 1, 0), Q = [];
7200
+ const j = new Date(k.value, O.value, 1), e1 = new Date(k.value, O.value + 1, 0), q = [];
7199
7201
  let x1 = j.getDay() === 0 ? 6 : j.getDay() - 1;
7200
7202
  for (let d1 = x1 - 1; d1 >= 0; d1--) {
7201
7203
  const J = new Date(k.value, O.value, -d1);
7202
- Q.push({ date: L(J), day: J.getDate(), inMonth: !1 });
7204
+ q.push({ date: L(J), day: J.getDate(), inMonth: !1 });
7203
7205
  }
7204
7206
  for (let d1 = 1; d1 <= e1.getDate(); d1++) {
7205
7207
  const J = new Date(k.value, O.value, d1);
7206
- Q.push({ date: L(J), day: d1, inMonth: !0 });
7208
+ q.push({ date: L(J), day: d1, inMonth: !0 });
7207
7209
  }
7208
- const z1 = 7 - Q.length % 7;
7210
+ const z1 = 7 - q.length % 7;
7209
7211
  if (z1 < 7)
7210
7212
  for (let d1 = 1; d1 <= z1; d1++) {
7211
7213
  const J = new Date(k.value, O.value + 1, d1);
7212
- Q.push({ date: L(J), day: d1, inMonth: !1 });
7214
+ q.push({ date: L(J), day: d1, inMonth: !1 });
7213
7215
  }
7214
- return Q;
7216
+ return q;
7215
7217
  });
7216
7218
  function E(j) {
7217
7219
  return j === f.value || j === b.value;
@@ -7242,7 +7244,7 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
7242
7244
  ref_key: "referenceEl",
7243
7245
  ref: l,
7244
7246
  type: "button",
7245
- onClick: e1[0] || (e1[0] = b1((Q) => !n.disabled && (r.value = !r.value), ["stop"])),
7247
+ onClick: e1[0] || (e1[0] = b1((q) => !n.disabled && (r.value = !r.value), ["stop"])),
7246
7248
  disabled: n.disabled,
7247
7249
  "aria-label": n.ariaLabel,
7248
7250
  "aria-expanded": r.value,
@@ -7281,21 +7283,21 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
7281
7283
  open: r.value,
7282
7284
  anchor: l.value,
7283
7285
  offset: 4,
7284
- onClose: e1[1] || (e1[1] = (Q) => r.value = !1)
7286
+ onClose: e1[1] || (e1[1] = (q) => r.value = !1)
7285
7287
  }, {
7286
7288
  default: s1(() => [
7287
7289
  i("div", me, [
7288
7290
  i("div", ve, [
7289
- (e(!0), t(I, null, l1(n.presets, (Q) => (e(), t("button", {
7290
- key: Q.value,
7291
+ (e(!0), t(I, null, l1(n.presets, (q) => (e(), t("button", {
7292
+ key: q.value,
7291
7293
  class: g(["wpic-range-preset wpic-select-option wpic:rounded-lg", [
7292
7294
  "wpic:flex wpic:w-full wpic:items-center wpic:px-4 wpic:py-2 wpic:text-left wpic:text-base wpic:transition-colors wpic:cursor-pointer",
7293
- a.value === Q.value ? "wpic:bg-[#85C531]/10 wpic:font-medium wpic:text-[#85C531]" : "wpic:text-zinc-700 wpic:hover:bg-zinc-100 wpic:dark:text-zinc-300 wpic:dark:hover:bg-zinc-700"
7295
+ a.value === q.value ? "wpic:bg-[#85C531]/10 wpic:font-medium wpic:text-[#85C531]" : "wpic:text-zinc-700 wpic:hover:bg-zinc-100 wpic:dark:text-zinc-300 wpic:dark:hover:bg-zinc-700"
7294
7296
  ]]),
7295
- "aria-pressed": a.value === Q.value,
7297
+ "aria-pressed": a.value === q.value,
7296
7298
  type: "button",
7297
- onClick: (x1) => x(Q.value)
7298
- }, v(Q.label), 11, fe))), 128))
7299
+ onClick: (x1) => x(q.value)
7300
+ }, v(q.label), 11, fe))), 128))
7299
7301
  ]),
7300
7302
  a.value === "custom" ? (e(), t("div", be, [
7301
7303
  i("div", ge, [
@@ -7318,29 +7320,29 @@ const v8 = { class: "wpic-tag-input" }, f8 = {
7318
7320
  ], 8, ke)
7319
7321
  ]),
7320
7322
  i("div", xe, [
7321
- (e(!0), t(I, null, l1(o1.value, (Q) => (e(), t("span", {
7322
- key: Q,
7323
+ (e(!0), t(I, null, l1(o1.value, (q) => (e(), t("span", {
7324
+ key: q,
7323
7325
  class: "wpic:py-1 wpic:text-xs wpic:font-medium wpic:text-zinc-400"
7324
- }, v(Q), 1))), 128))
7326
+ }, v(q), 1))), 128))
7325
7327
  ]),
7326
7328
  i("div", ye, [
7327
- (e(!0), t(I, null, l1(U.value, (Q) => (e(), t("button", {
7328
- key: Q.date,
7329
- "aria-label": Q.date,
7330
- "aria-pressed": E(Q.date),
7331
- "data-in-range": Y(Q.date) || void 0,
7332
- "data-today": z(Q.date) || void 0,
7329
+ (e(!0), t(I, null, l1(U.value, (q) => (e(), t("button", {
7330
+ key: q.date,
7331
+ "aria-label": q.date,
7332
+ "aria-pressed": E(q.date),
7333
+ "data-in-range": Y(q.date) || void 0,
7334
+ "data-today": z(q.date) || void 0,
7333
7335
  type: "button",
7334
- onClick: (x1) => G(Q.date),
7336
+ onClick: (x1) => G(q.date),
7335
7337
  class: g([
7336
7338
  "wpic-calendar-day wpic:relative wpic:flex wpic:h-8 wpic:w-8 wpic:items-center wpic:justify-center wpic:rounded-full wpic:text-sm wpic:transition-colors wpic:cursor-pointer",
7337
- !Q.inMonth && "wpic:text-zinc-300 wpic:dark:text-zinc-600",
7338
- Q.inMonth && !E(Q.date) && !Y(Q.date) && "wpic:hover:bg-zinc-100 wpic:dark:hover:bg-zinc-700 wpic:text-zinc-900 wpic:dark:text-zinc-100",
7339
- E(Q.date) && "wpic:bg-[#85C531] wpic:text-white wpic:font-semibold",
7340
- Y(Q.date) && "wpic:bg-[#85C531]/15 wpic:text-zinc-900 wpic:dark:text-zinc-100 wpic:rounded-none",
7341
- z(Q.date) && !E(Q.date) && "wpic:ring-1 wpic:ring-[#85C531]"
7339
+ !q.inMonth && "wpic:text-zinc-300 wpic:dark:text-zinc-600",
7340
+ q.inMonth && !E(q.date) && !Y(q.date) && "wpic:hover:bg-zinc-100 wpic:dark:hover:bg-zinc-700 wpic:text-zinc-900 wpic:dark:text-zinc-100",
7341
+ E(q.date) && "wpic:bg-[#85C531] wpic:text-white wpic:font-semibold",
7342
+ Y(q.date) && "wpic:bg-[#85C531]/15 wpic:text-zinc-900 wpic:dark:text-zinc-100 wpic:rounded-none",
7343
+ z(q.date) && !E(q.date) && "wpic:ring-1 wpic:ring-[#85C531]"
7342
7344
  ])
7343
- }, v(Q.day), 11, Me))), 128))
7345
+ }, v(q.day), 11, Me))), 128))
7344
7346
  ]),
7345
7347
  i("div", Le, [
7346
7348
  i("div", Ve, [
@@ -18461,7 +18463,7 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
18461
18463
  }
18462
18464
  o.showHistory ? j() : m1();
18463
18465
  }
18464
- function Q() {
18466
+ function q() {
18465
18467
  o1.value = !1, B.value = !1, O.value = !1, H.value = !0;
18466
18468
  }
18467
18469
  function x1(C) {
@@ -18603,7 +18605,7 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
18603
18605
  class: g(["wpic:flex wpic:h-10 wpic:w-10 wpic:flex-none wpic:items-center wpic:justify-center wpic:rounded-xl wpic:text-zinc-400 wpic:transition wpic:hover:bg-black/5 wpic:hover:text-zinc-700 wpic:dark:text-zinc-500 wpic:dark:hover:bg-white/10 wpic:dark:hover:text-zinc-200", B.value ? "wpic:absolute wpic:right-3 wpic:top-3" : ""]),
18604
18606
  "aria-label": n.minimizeLabel,
18605
18607
  title: n.minimizeLabel,
18606
- onClick: Q
18608
+ onClick: q
18607
18609
  }, [
18608
18610
  $(m(j3), { size: 17 })
18609
18611
  ], 10, bi)) : u("", !0),