@wpic/ui 0.8.2 → 0.8.3
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/CHANGELOG.md +5 -0
- package/dist/wpic-ui.cjs +1 -1
- package/dist/wpic-ui.css +5 -2
- package/dist/wpic-ui.js +459 -457
- package/package.json +1 -1
- package/src/style.css +5 -2
package/dist/wpic-ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as X, openBlock as e, createBlock as K, resolveDynamicComponent as B1, normalizeClass as g, withCtx as r1, createElementVNode as a, createCommentVNode as m, renderSlot as Q, createElementBlock as l, createVNode as M, unref as
|
|
2
|
-
import { Loader2 as i2, Calendar as C0, DollarSign as a3, X as $1, Check as O1, Search as P2, ChevronUp as k0, ChevronDown as D1, ChevronsUpDown as J2, ChevronRight as j1, ChevronLeft as C2, Download as c3, Minimize as i3, Expand as o3, CalendarDays as T2, FolderSymlink as s3, Minimize2 as r3, Maximize2 as d3, Plus as w2, Trash2 as u3, Folder as h0, MoreHorizontal as h3, Bot as v3, Paperclip as U2, ThumbsUp as m3, ThumbsDown as
|
|
3
|
-
import { offset as h2, flip as v2, shift as m2, size as X2, useFloating as
|
|
1
|
+
import { defineComponent as X, openBlock as e, createBlock as K, resolveDynamicComponent as B1, normalizeClass as g, withCtx as r1, createElementVNode as a, createCommentVNode as m, renderSlot as Q, createElementBlock as l, createVNode as M, unref as b, Fragment as W, renderList as a1, toDisplayString as f, useModel as G1, useSlots as q2, computed as y, ref as S, mergeProps as X1, createTextVNode as m1, withDirectives as T1, vModelDynamic as g0, mergeModels as _1, vModelCheckbox as J0, watch as V1, normalizeStyle as b1, withModifiers as z1, onMounted as H2, onBeforeUnmount as g2, withKeys as M2, inject as Q2, provide as p2, isRef as X0, nextTick as H1, Teleport as U1, vShow as G0, Transition as u2, getCurrentInstance as p0, vModelText as c2, useAttrs as _0, TransitionGroup as n3, useCssVars as e3, vModelSelect as t3, onUnmounted as l3, createStaticVNode as A1 } from "vue";
|
|
2
|
+
import { Loader2 as i2, Calendar as C0, DollarSign as a3, X as $1, Check as O1, Search as P2, ChevronUp as k0, ChevronDown as D1, ChevronsUpDown as J2, ChevronRight as j1, ChevronLeft as C2, Download as c3, Minimize as i3, Expand as o3, CalendarDays as T2, FolderSymlink as s3, Minimize2 as r3, Maximize2 as d3, Plus as w2, Trash2 as u3, Folder as h0, MoreHorizontal as h3, Bot as v3, Paperclip as U2, ThumbsUp as m3, ThumbsDown as b3, Copy as f3, Pencil as z3, MessageSquarePlus as g3, Square as p3, ArrowUp as C3, CircleAlert as k3, CircleCheck as x3, ShieldAlert as y3, Lightbulb as w3, PanelLeftOpen as M3, PanelLeftClose as V3, AlertTriangle as L3, Tag as F2, Clock as B3, RefreshCw as $3 } from "lucide-vue-next";
|
|
3
|
+
import { offset as h2, flip as v2, shift as m2, size as X2, useFloating as b2, autoUpdate as f2 } from "@floating-ui/vue";
|
|
4
4
|
import { defineStore as A3 } from "pinia";
|
|
5
5
|
const S3 = {
|
|
6
6
|
key: 0,
|
|
@@ -59,7 +59,7 @@ const S3 = {
|
|
|
59
59
|
Q(u.$slots, "default")
|
|
60
60
|
], 2),
|
|
61
61
|
n.loading ? (e(), l("span", S3, [
|
|
62
|
-
M(
|
|
62
|
+
M(b(i2), {
|
|
63
63
|
size: (t.size ?? "md") === "xs" ? 10 : (t.size ?? "md") === "sm" ? 13 : (t.size ?? "md") === "lg" ? 17 : 15,
|
|
64
64
|
class: "animate-spin"
|
|
65
65
|
}, null, 8, ["size"])
|
|
@@ -92,7 +92,7 @@ const S3 = {
|
|
|
92
92
|
"px-2.5 py-1 text-base font-medium rounded-full transition-all duration-150 cursor-pointer whitespace-nowrap",
|
|
93
93
|
n.modelValue === s.value ? "bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 border border-zinc-300 dark:border-zinc-600" : "text-zinc-400 dark:text-zinc-500 hover:text-zinc-600 dark:hover:text-zinc-300 border border-transparent"
|
|
94
94
|
])
|
|
95
|
-
},
|
|
95
|
+
}, f(s.label), 11, T3))), 128))
|
|
96
96
|
]));
|
|
97
97
|
}
|
|
98
98
|
}), j3 = { class: "wpic-form-label block mb-1 font-medium text-zinc-600 dark:text-zinc-400" }, E3 = {
|
|
@@ -164,7 +164,7 @@ const S3 = {
|
|
|
164
164
|
required: t.required
|
|
165
165
|
}, {
|
|
166
166
|
default: r1(() => [
|
|
167
|
-
m1(
|
|
167
|
+
m1(f(t.label), 1)
|
|
168
168
|
]),
|
|
169
169
|
_: 1
|
|
170
170
|
}, 8, ["required"])) : m("", !0),
|
|
@@ -176,7 +176,7 @@ const S3 = {
|
|
|
176
176
|
onClick: i
|
|
177
177
|
}, null, 8, ["size", "class"])) : u.value ? (e(), l("span", D3, [
|
|
178
178
|
Q(j.$slots, "prepend", {}, () => [
|
|
179
|
-
m1(
|
|
179
|
+
m1(f(t.prepend), 1)
|
|
180
180
|
])
|
|
181
181
|
])) : m("", !0),
|
|
182
182
|
T1(a("input", {
|
|
@@ -203,10 +203,10 @@ const S3 = {
|
|
|
203
203
|
]),
|
|
204
204
|
c.value ? (e(), l("span", R3, [
|
|
205
205
|
Q(j.$slots, "append", {}, () => [
|
|
206
|
-
m1(
|
|
206
|
+
m1(f(t.append), 1)
|
|
207
207
|
])
|
|
208
208
|
])) : m("", !0),
|
|
209
|
-
t.loading ? (e(), K(
|
|
209
|
+
t.loading ? (e(), K(b(i2), {
|
|
210
210
|
key: 3,
|
|
211
211
|
size: t.size === "xl" ? 14 : 11,
|
|
212
212
|
class: g(["absolute animate-spin text-zinc-400 dark:text-zinc-500", c.value ? "right-8" : t.size === "xl" ? "right-4" : "right-2"])
|
|
@@ -216,7 +216,7 @@ const S3 = {
|
|
|
216
216
|
onClick: $[1] || ($[1] = (T) => h.value = ""),
|
|
217
217
|
class: g(["absolute flex items-center justify-center text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300 transition-colors cursor-pointer", c.value ? "right-8" : t.size === "xl" ? "right-4" : "right-2"])
|
|
218
218
|
}, [
|
|
219
|
-
M(
|
|
219
|
+
M(b($1), {
|
|
220
220
|
size: t.size === "xl" ? 14 : 11
|
|
221
221
|
}, null, 8, ["size"])
|
|
222
222
|
], 2)) : m("", !0)
|
|
@@ -252,7 +252,7 @@ const S3 = {
|
|
|
252
252
|
h.value ? "border-zinc-900 bg-zinc-900 text-white dark:border-zinc-100 dark:bg-zinc-100 dark:text-zinc-950" : "border-zinc-300 bg-white text-transparent shadow-sm hover:border-zinc-400 dark:border-zinc-700 dark:bg-zinc-900 dark:hover:border-zinc-500"
|
|
253
253
|
]])
|
|
254
254
|
}, [
|
|
255
|
-
M(
|
|
255
|
+
M(b(O1), {
|
|
256
256
|
size: 11,
|
|
257
257
|
"stroke-width": "2.6"
|
|
258
258
|
})
|
|
@@ -360,7 +360,7 @@ const S3 = {
|
|
|
360
360
|
if (C.value) {
|
|
361
361
|
const V = C.value;
|
|
362
362
|
E = [...E].sort((R, l1) => {
|
|
363
|
-
const
|
|
363
|
+
const f1 = R[V] ?? "", y1 = l1[V] ?? "", P1 = typeof f1 == "number" && typeof y1 == "number" ? f1 - y1 : String(f1).toLowerCase().localeCompare(String(y1).toLowerCase());
|
|
364
364
|
return i.value === "asc" ? P1 : -P1;
|
|
365
365
|
});
|
|
366
366
|
}
|
|
@@ -387,8 +387,8 @@ const S3 = {
|
|
|
387
387
|
() => s.selectable && U.value.length > 0 && U.value.every((E) => P.value.has(E))
|
|
388
388
|
);
|
|
389
389
|
function H(E, u1, V) {
|
|
390
|
-
const R = e1(E, u1), l1 = new Set(s.selectedKeys ?? []),
|
|
391
|
-
|
|
390
|
+
const R = e1(E, u1), l1 = new Set(s.selectedKeys ?? []), f1 = V === !0;
|
|
391
|
+
f1 ? l1.add(R) : l1.delete(R), u("update:selectedKeys", [...l1]), u("row-select", E, f1);
|
|
392
392
|
}
|
|
393
393
|
function t1(E) {
|
|
394
394
|
const u1 = new Set(s.selectedKeys ?? []), V = E === !0;
|
|
@@ -398,11 +398,11 @@ const S3 = {
|
|
|
398
398
|
}
|
|
399
399
|
const c1 = y(() => o1.value === 0 ? 0 : (Z.value - 1) * k.value + 1), w1 = y(() => Math.min(Z.value * k.value, o1.value)), J = y(() => {
|
|
400
400
|
const E = g1.value;
|
|
401
|
-
if (E <= 7) return Array.from({ length: E }, (
|
|
402
|
-
const u1 = Z.value, V = [], R = new Set([1, E, u1 - 1, u1, u1 + 1].filter((
|
|
401
|
+
if (E <= 7) return Array.from({ length: E }, (f1, y1) => y1 + 1);
|
|
402
|
+
const u1 = Z.value, V = [], R = new Set([1, E, u1 - 1, u1, u1 + 1].filter((f1) => f1 >= 1 && f1 <= E));
|
|
403
403
|
let l1 = 0;
|
|
404
|
-
for (const
|
|
405
|
-
|
|
404
|
+
for (const f1 of [...R].sort((y1, P1) => y1 - P1))
|
|
405
|
+
f1 - l1 > 1 && V.push("…"), V.push(f1), l1 = f1;
|
|
406
406
|
return V;
|
|
407
407
|
}), d1 = y(() => s.padding ? `wpic-table--padding-${s.padding}` : s.compact ? "wpic-table--padding-sm" : "wpic-table--padding-inherit"), G = (E) => E === "right" ? "text-right" : E === "center" ? "text-center" : "text-left", p1 = (E, u1) => [
|
|
408
408
|
u1,
|
|
@@ -415,7 +415,7 @@ const S3 = {
|
|
|
415
415
|
return h({ filteredCount: y(() => F.value.length), searchQuery: $ }), (E, u1) => (e(), l("div", {
|
|
416
416
|
class: g(["wpic-table", d1.value])
|
|
417
417
|
}, [
|
|
418
|
-
(T.value ||
|
|
418
|
+
(T.value || b(z).toolbar) && !n.loading ? (e(), l("div", {
|
|
419
419
|
key: 0,
|
|
420
420
|
class: g(["flex items-center gap-2 wpic-table__divider border-b border-zinc-100 dark:border-zinc-800 wpic-table__pad-x", n.compact ? "py-1" : "py-2"])
|
|
421
421
|
}, [
|
|
@@ -424,10 +424,10 @@ const S3 = {
|
|
|
424
424
|
modelValue: $.value,
|
|
425
425
|
"onUpdate:modelValue": u1[0] || (u1[0] = (V) => $.value = V),
|
|
426
426
|
placeholder: n.searchPlaceholder,
|
|
427
|
-
icon:
|
|
427
|
+
icon: b(P2),
|
|
428
428
|
class: "flex-1"
|
|
429
429
|
}, null, 8, ["modelValue", "placeholder", "icon"]),
|
|
430
|
-
$.value ? (e(), l("span", N3,
|
|
430
|
+
$.value ? (e(), l("span", N3, f(F.value.length) + " " + f(n.labels?.results ?? "results"), 1)) : m("", !0)
|
|
431
431
|
], 64)) : m("", !0),
|
|
432
432
|
Q(E.$slots, "toolbar")
|
|
433
433
|
], 2)) : m("", !0),
|
|
@@ -436,7 +436,7 @@ const S3 = {
|
|
|
436
436
|
key: 0,
|
|
437
437
|
tone: "muted"
|
|
438
438
|
})) : m("", !0),
|
|
439
|
-
a("span", null,
|
|
439
|
+
a("span", null, f(n.labels?.loading ?? "Loading…"), 1)
|
|
440
440
|
])) : (e(), l(W, { key: 2 }, [
|
|
441
441
|
a("div", U3, [
|
|
442
442
|
a("table", O3, [
|
|
@@ -445,7 +445,7 @@ const S3 = {
|
|
|
445
445
|
n.expandable ? (e(), l("col", q3)) : m("", !0),
|
|
446
446
|
(e(!0), l(W, null, a1(n.columns, (V) => (e(), l("col", {
|
|
447
447
|
key: V.field,
|
|
448
|
-
style:
|
|
448
|
+
style: b1(M1(V))
|
|
449
449
|
}, null, 4))), 128))
|
|
450
450
|
]),
|
|
451
451
|
s.showHeader !== !1 ? (e(), l("thead", Q3, [
|
|
@@ -468,7 +468,7 @@ const S3 = {
|
|
|
468
468
|
(e(!0), l(W, null, a1(n.columns, (V, R) => (e(), l("th", {
|
|
469
469
|
key: V.field,
|
|
470
470
|
class: g([p1(R, n.compact ? "py-1" : "py-2"), "whitespace-nowrap text-zinc-500 dark:text-zinc-300 font-medium", G(V.align), R === 0 && !n.expandable && !n.selectable ? "wpic-table__sticky sticky left-0 z-10" : ""]),
|
|
471
|
-
style:
|
|
471
|
+
style: b1({ ...M1(V) })
|
|
472
472
|
}, [
|
|
473
473
|
Q(E.$slots, "th-" + V.field, {
|
|
474
474
|
col: V,
|
|
@@ -485,22 +485,22 @@ const S3 = {
|
|
|
485
485
|
]),
|
|
486
486
|
style: { color: "inherit" }
|
|
487
487
|
}, [
|
|
488
|
-
m1(
|
|
489
|
-
C.value === V.field && i.value === "asc" ? (e(), K(
|
|
488
|
+
m1(f(V.label) + " ", 1),
|
|
489
|
+
C.value === V.field && i.value === "asc" ? (e(), K(b(k0), {
|
|
490
490
|
key: 0,
|
|
491
491
|
size: 11,
|
|
492
492
|
style: { color: "#5E6AD2" }
|
|
493
|
-
})) : C.value === V.field && i.value === "desc" ? (e(), K(
|
|
493
|
+
})) : C.value === V.field && i.value === "desc" ? (e(), K(b(D1), {
|
|
494
494
|
key: 1,
|
|
495
495
|
size: 11,
|
|
496
496
|
style: { color: "#5E6AD2" }
|
|
497
|
-
})) : (e(), K(
|
|
497
|
+
})) : (e(), K(b(J2), {
|
|
498
498
|
key: 2,
|
|
499
499
|
size: 10,
|
|
500
500
|
style: { opacity: "0.3" }
|
|
501
501
|
}))
|
|
502
502
|
], 10, X3)) : (e(), l(W, { key: 1 }, [
|
|
503
|
-
m1(
|
|
503
|
+
m1(f(V.label), 1)
|
|
504
504
|
], 64))
|
|
505
505
|
])
|
|
506
506
|
], 6))), 128))
|
|
@@ -518,14 +518,14 @@ const S3 = {
|
|
|
518
518
|
row: n.summaryRow,
|
|
519
519
|
value: n.summaryRow[V.field]
|
|
520
520
|
}, () => [
|
|
521
|
-
m1(
|
|
521
|
+
m1(f(n.summaryRow[V.field] ?? "—"), 1)
|
|
522
522
|
])
|
|
523
523
|
], 2))), 128))
|
|
524
524
|
])) : m("", !0),
|
|
525
525
|
q.value.length ? (e(!0), l(W, { key: 1 }, a1(q.value, (V, R) => (e(), l(W, { key: R }, [
|
|
526
526
|
a("tr", {
|
|
527
527
|
class: g(["wpic-table__row group wpic-table__divider border-b border-zinc-100 dark:border-zinc-800", [n.expandable && c.value.has(R) ? "border-b-0" : "", n.rowClass?.(V)]]),
|
|
528
|
-
style:
|
|
528
|
+
style: b1({ cursor: n.rowClickable || n.expandable ? "pointer" : "default", ...n.rowStyle?.(V) ?? {} }),
|
|
529
529
|
onClick: (l1) => n.expandable ? o(R) : n.rowClickable && u("row-click", V)
|
|
530
530
|
}, [
|
|
531
531
|
n.selectable ? (e(), l("td", {
|
|
@@ -543,22 +543,22 @@ const S3 = {
|
|
|
543
543
|
key: 1,
|
|
544
544
|
class: g(["w-8 pr-1 text-zinc-400 dark:text-zinc-500", n.compact ? "py-1" : "py-2.5", n.flushEdges && !n.selectable ? "pl-0" : "pl-3"])
|
|
545
545
|
}, [
|
|
546
|
-
c.value.has(R) ? (e(), K(
|
|
546
|
+
c.value.has(R) ? (e(), K(b(D1), {
|
|
547
547
|
key: 0,
|
|
548
548
|
size: 13,
|
|
549
549
|
style: { transition: "transform .15s" }
|
|
550
|
-
})) : (e(), K(
|
|
550
|
+
})) : (e(), K(b(j1), {
|
|
551
551
|
key: 1,
|
|
552
552
|
size: 13,
|
|
553
553
|
style: { transition: "transform .15s" }
|
|
554
554
|
}))
|
|
555
555
|
], 2)) : m("", !0),
|
|
556
|
-
(e(!0), l(W, null, a1(n.columns, (l1,
|
|
556
|
+
(e(!0), l(W, null, a1(n.columns, (l1, f1) => (e(), l("td", {
|
|
557
557
|
key: l1.field,
|
|
558
558
|
class: g([
|
|
559
|
-
p1(
|
|
559
|
+
p1(f1, n.compact ? "py-1" : "py-2.5"),
|
|
560
560
|
G(l1.align),
|
|
561
|
-
|
|
561
|
+
f1 === 0 && !n.expandable && !n.selectable ? "wpic-table__sticky sticky left-0 z-10 text-zinc-900 dark:text-zinc-100 font-medium" : "text-zinc-700 dark:text-zinc-200"
|
|
562
562
|
]),
|
|
563
563
|
onClick: (y1) => n.expandable ? (n.rowClickable && u("row-click", V), y1.stopPropagation()) : void 0
|
|
564
564
|
}, [
|
|
@@ -566,7 +566,7 @@ const S3 = {
|
|
|
566
566
|
row: V,
|
|
567
567
|
value: V[l1.field]
|
|
568
568
|
}, () => [
|
|
569
|
-
m1(
|
|
569
|
+
m1(f(V[l1.field] ?? "—"), 1)
|
|
570
570
|
])
|
|
571
571
|
], 10, l4))), 128))
|
|
572
572
|
], 14, t4),
|
|
@@ -585,7 +585,7 @@ const S3 = {
|
|
|
585
585
|
}, [
|
|
586
586
|
a("div", s4, [
|
|
587
587
|
Q(E.$slots, "empty-icon"),
|
|
588
|
-
m1(" " +
|
|
588
|
+
m1(" " + f(n.emptyText ?? "No data"), 1)
|
|
589
589
|
])
|
|
590
590
|
], 8, o4)
|
|
591
591
|
]))
|
|
@@ -598,9 +598,9 @@ const S3 = {
|
|
|
598
598
|
}, [
|
|
599
599
|
a("span", r4, [
|
|
600
600
|
g1.value > 1 ? (e(), l(W, { key: 0 }, [
|
|
601
|
-
m1(
|
|
601
|
+
m1(f(c1.value) + "–" + f(w1.value) + " " + f(n.labels?.of ?? "of") + " " + f(o1.value), 1)
|
|
602
602
|
], 64)) : (e(), l(W, { key: 1 }, [
|
|
603
|
-
m1(
|
|
603
|
+
m1(f(o1.value) + " " + f(o1.value === 1 ? n.labels?.item ?? "item" : n.labels?.items ?? "items"), 1)
|
|
604
604
|
], 64))
|
|
605
605
|
]),
|
|
606
606
|
g1.value > 1 ? (e(), l("div", d4, [
|
|
@@ -610,7 +610,7 @@ const S3 = {
|
|
|
610
610
|
disabled: Z.value === 1,
|
|
611
611
|
class: "h-7 w-7 flex items-center justify-center rounded-md transition-colors cursor-pointer disabled:opacity-30 hover:bg-zinc-50 dark:hover:bg-zinc-800/50 text-zinc-400"
|
|
612
612
|
}, [
|
|
613
|
-
M(
|
|
613
|
+
M(b(C2), { size: 13 })
|
|
614
614
|
], 8, u4),
|
|
615
615
|
(e(!0), l(W, null, a1(J.value, (V) => (e(), l(W, { key: V }, [
|
|
616
616
|
V === "…" ? (e(), l("span", h4, "…")) : (e(), l("button", {
|
|
@@ -620,8 +620,8 @@ const S3 = {
|
|
|
620
620
|
"h-7 min-w-7 px-2 rounded-md text-sm font-medium transition-colors cursor-pointer",
|
|
621
621
|
Z.value === V ? "" : "text-zinc-700 dark:text-zinc-200 hover:bg-zinc-100 dark:hover:bg-zinc-700"
|
|
622
622
|
]),
|
|
623
|
-
style:
|
|
624
|
-
},
|
|
623
|
+
style: b1(Z.value === V ? "background:rgba(94,106,210,0.1);color:#5E6AD2" : void 0)
|
|
624
|
+
}, f(V), 15, v4))
|
|
625
625
|
], 64))), 128)),
|
|
626
626
|
a("button", {
|
|
627
627
|
"aria-label": n.labels?.next ?? "Next page",
|
|
@@ -629,14 +629,14 @@ const S3 = {
|
|
|
629
629
|
disabled: Z.value === g1.value,
|
|
630
630
|
class: "h-7 w-7 flex items-center justify-center rounded-md transition-colors cursor-pointer disabled:opacity-30 hover:bg-zinc-50 dark:hover:bg-zinc-800/50 text-zinc-400"
|
|
631
631
|
}, [
|
|
632
|
-
M(
|
|
632
|
+
M(b(j1), { size: 13 })
|
|
633
633
|
], 8, m4)
|
|
634
634
|
])) : m("", !0)
|
|
635
635
|
], 2)) : m("", !0)
|
|
636
636
|
], 64))
|
|
637
637
|
], 2));
|
|
638
638
|
}
|
|
639
|
-
}),
|
|
639
|
+
}), b4 = { class: "w-spreadsheet-frame__surface" }, f4 = {
|
|
640
640
|
key: 0,
|
|
641
641
|
class: "w-spreadsheet-frame__heading"
|
|
642
642
|
}, z4 = {
|
|
@@ -824,7 +824,7 @@ const S3 = {
|
|
|
824
824
|
O -= 1, N = String.fromCharCode(65 + O % 26) + N, O = Math.floor(O / 26);
|
|
825
825
|
return N;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function f1(A) {
|
|
828
828
|
return [
|
|
829
829
|
`w-spreadsheet__cell--${A.variant || "default"}`,
|
|
830
830
|
`w-spreadsheet__cell--${A.align || "left"}`,
|
|
@@ -853,12 +853,12 @@ const S3 = {
|
|
|
853
853
|
"aria-label": "Restore spreadsheet",
|
|
854
854
|
onClick: O[0] || (O[0] = (N) => Z(!1))
|
|
855
855
|
})) : m("", !0),
|
|
856
|
-
a("div",
|
|
856
|
+
a("div", b4, [
|
|
857
857
|
n.expandable && (n.showExpandButton !== !1 || i.value) || n.downloadable && (n.showDownloadButton !== !1 || i.value) ? (e(), l("div", {
|
|
858
858
|
key: 0,
|
|
859
859
|
class: g(["w-spreadsheet-frame__toolbar", { "w-spreadsheet-frame__toolbar--hover": n.actionsOnHover && !i.value }])
|
|
860
860
|
}, [
|
|
861
|
-
i.value && A.$slots["expanded-header"] ? (e(), l("div",
|
|
861
|
+
i.value && A.$slots["expanded-header"] ? (e(), l("div", f4, [
|
|
862
862
|
Q(A.$slots, "expanded-header")
|
|
863
863
|
])) : m("", !0),
|
|
864
864
|
A.$slots["toolbar-status"] ? (e(), l("div", z4, [
|
|
@@ -873,7 +873,7 @@ const S3 = {
|
|
|
873
873
|
"aria-label": "Download spreadsheet",
|
|
874
874
|
onClick: x
|
|
875
875
|
}, [
|
|
876
|
-
M(
|
|
876
|
+
M(b(c3), { size: 16 })
|
|
877
877
|
])) : m("", !0),
|
|
878
878
|
n.expandable && (n.showExpandButton !== !1 || i.value) ? (e(), l("button", {
|
|
879
879
|
key: 3,
|
|
@@ -883,10 +883,10 @@ const S3 = {
|
|
|
883
883
|
"aria-label": i.value ? "Restore spreadsheet" : "Expand spreadsheet",
|
|
884
884
|
onClick: O[1] || (O[1] = (N) => Z(!i.value))
|
|
885
885
|
}, [
|
|
886
|
-
i.value ? (e(), K(
|
|
886
|
+
i.value ? (e(), K(b(i3), {
|
|
887
887
|
key: 0,
|
|
888
888
|
size: 16
|
|
889
|
-
})) : (e(), K(
|
|
889
|
+
})) : (e(), K(b(o3), {
|
|
890
890
|
key: 1,
|
|
891
891
|
size: 16
|
|
892
892
|
}))
|
|
@@ -898,17 +898,17 @@ const S3 = {
|
|
|
898
898
|
])) : (e(), l("div", {
|
|
899
899
|
key: 2,
|
|
900
900
|
class: g(["w-spreadsheet", { "w-spreadsheet--with-column-axis": c.value }]),
|
|
901
|
-
style:
|
|
901
|
+
style: b1({ maxHeight: i.value ? "calc(100vh - 96px)" : n.maxHeight })
|
|
902
902
|
}, [
|
|
903
903
|
a("table", {
|
|
904
904
|
class: g(["w-spreadsheet__table", { "w-spreadsheet__table--sticky-columns": z.value }]),
|
|
905
|
-
style:
|
|
905
|
+
style: b1({ minWidth: n.minWidth })
|
|
906
906
|
}, [
|
|
907
907
|
a("colgroup", null, [
|
|
908
908
|
o.value ? (e(), l("col", C4)) : m("", !0),
|
|
909
909
|
(e(!0), l(W, null, a1(n.columns, (N) => (e(), l("col", {
|
|
910
910
|
key: N.key,
|
|
911
|
-
style:
|
|
911
|
+
style: b1({ width: N.width })
|
|
912
912
|
}, null, 4))), 128))
|
|
913
913
|
]),
|
|
914
914
|
c.value ? (e(), l("thead", k4, [
|
|
@@ -917,7 +917,7 @@ const S3 = {
|
|
|
917
917
|
(e(!0), l(W, null, a1(n.columns, (N, h1) => (e(), l("th", {
|
|
918
918
|
key: N.key,
|
|
919
919
|
class: "w-spreadsheet__axis"
|
|
920
|
-
},
|
|
920
|
+
}, f(N.label || l1(h1)), 1))), 128))
|
|
921
921
|
])
|
|
922
922
|
])) : m("", !0),
|
|
923
923
|
a("tbody", null, [
|
|
@@ -925,13 +925,13 @@ const S3 = {
|
|
|
925
925
|
key: N.key,
|
|
926
926
|
class: g({ "w-spreadsheet__row--sticky": N.sticky })
|
|
927
927
|
}, [
|
|
928
|
-
o.value ? (e(), l("th", y4,
|
|
928
|
+
o.value ? (e(), l("th", y4, f(h1 + 1), 1)) : m("", !0),
|
|
929
929
|
(e(!0), l(W, null, a1(N.cells, (s1, D) => (e(), l("td", {
|
|
930
930
|
key: s1.key,
|
|
931
|
-
class: g(["w-spreadsheet__cell", [
|
|
931
|
+
class: g(["w-spreadsheet__cell", [f1(s1), { "w-spreadsheet__cell--sortable": U(s1), "w-spreadsheet__cell--sticky": t1(N, D), "w-spreadsheet__cell--sticky-first": c1(N, D), "w-spreadsheet__cell--active": G(N, s1) }, u1(h1, D), V(N, s1)]]),
|
|
932
932
|
colspan: s1.colspan || 1,
|
|
933
933
|
title: s1.title,
|
|
934
|
-
style:
|
|
934
|
+
style: b1(w1(N, D)),
|
|
935
935
|
tabindex: U(s1) ? 0 : void 0,
|
|
936
936
|
onClick: (Y) => I(s1),
|
|
937
937
|
onKeydown: [
|
|
@@ -963,13 +963,13 @@ const S3 = {
|
|
|
963
963
|
title: "Choose date",
|
|
964
964
|
onClick: P1
|
|
965
965
|
}, [
|
|
966
|
-
M(
|
|
966
|
+
M(b(T2), { size: 16 })
|
|
967
967
|
])) : m("", !0)
|
|
968
968
|
])) : (e(), l(W, { key: 1 }, [
|
|
969
|
-
m1(
|
|
969
|
+
m1(f(s1.value ?? ""), 1)
|
|
970
970
|
], 64))
|
|
971
971
|
]),
|
|
972
|
-
U(s1) ? (e(), K(B1(k.value === s1.key ? C.value === "asc" ?
|
|
972
|
+
U(s1) ? (e(), K(B1(k.value === s1.key ? C.value === "asc" ? b(k0) : b(D1) : b(J2)), {
|
|
973
973
|
key: 0,
|
|
974
974
|
class: "w-spreadsheet__sort-icon",
|
|
975
975
|
size: 14
|
|
@@ -1101,6 +1101,8 @@ function H4(n, h = {}) {
|
|
|
1101
1101
|
"--wpic-primary": t.accent,
|
|
1102
1102
|
"--wpic-primary-hover": t.accent,
|
|
1103
1103
|
"--wpic-control-height": "36px",
|
|
1104
|
+
// Pale table hover surfaces need a stronger outline in light mode.
|
|
1105
|
+
"--wpic-table-border": n === "light" ? `color-mix(in srgb, ${t.border} 50%, ${t.borderHover})` : t.border,
|
|
1104
1106
|
"--wpic-segment-active": n === "dark" ? t.secondaryHover : t.surface,
|
|
1105
1107
|
"--wpic-segment-shadow": n === "dark" ? t.secondaryShadow : `inset 0 0 0 1px ${t.border}, 0 1px 2px rgb(0 0 0 / 0.08)`,
|
|
1106
1108
|
"--wpic-button-primary": t.primary,
|
|
@@ -1159,11 +1161,11 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1159
1161
|
}
|
|
1160
1162
|
})
|
|
1161
1163
|
), H;
|
|
1162
|
-
}), { floatingStyles: T, placement: F, update: L, isPositioned: x } =
|
|
1164
|
+
}), { floatingStyles: T, placement: F, update: L, isPositioned: x } = b2(k, C, {
|
|
1163
1165
|
placement: j,
|
|
1164
1166
|
strategy: "fixed",
|
|
1165
1167
|
open: y(() => t.open),
|
|
1166
|
-
whileElementsMounted:
|
|
1168
|
+
whileElementsMounted: f2,
|
|
1167
1169
|
middleware: $
|
|
1168
1170
|
}), Z = y(() => {
|
|
1169
1171
|
const H = F.value;
|
|
@@ -1211,9 +1213,9 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1211
1213
|
T1(a("div", {
|
|
1212
1214
|
ref_key: "floatingEl",
|
|
1213
1215
|
ref: C,
|
|
1214
|
-
"data-wpic-theme":
|
|
1215
|
-
class: g([{ "wpic-theme":
|
|
1216
|
-
style:
|
|
1216
|
+
"data-wpic-theme": b(s)?.mode,
|
|
1217
|
+
class: g([{ "wpic-theme": b(s), dark: b(s)?.mode === "dark" }, "wpic-popover-panel flex flex-col bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-xl shadow-xl dark:shadow-black/40 overflow-hidden"]),
|
|
1218
|
+
style: b1([b(s)?.variables, b(T), I.value])
|
|
1217
1219
|
}, [
|
|
1218
1220
|
Q(H.$slots, "default")
|
|
1219
1221
|
], 14, P4), [
|
|
@@ -1236,10 +1238,10 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1236
1238
|
}, o5 = {
|
|
1237
1239
|
key: 0,
|
|
1238
1240
|
class: "px-3 py-2 text-zinc-400 dark:text-zinc-500"
|
|
1239
|
-
}, s5 = ["onPointerdown", "onClick"], r5 = { class: "min-w-0 flex-1 truncate" }, d5 = { class: "shrink-0 text-zinc-400" }, u5 = { class: "mt-4" }, h5 = { class: "flex h-7 items-center px-2 font-medium text-zinc-500 dark:text-zinc-400" }, v5 = { class: "truncate" }, m5 = { class: "space-y-0.5" },
|
|
1241
|
+
}, s5 = ["onPointerdown", "onClick"], r5 = { class: "min-w-0 flex-1 truncate" }, d5 = { class: "shrink-0 text-zinc-400" }, u5 = { class: "mt-4" }, h5 = { class: "flex h-7 items-center px-2 font-medium text-zinc-500 dark:text-zinc-400" }, v5 = { class: "truncate" }, m5 = { class: "space-y-0.5" }, b5 = {
|
|
1240
1242
|
key: 0,
|
|
1241
1243
|
class: "rounded-lg border border-dashed border-zinc-200 px-2 py-2 text-zinc-500 dark:border-zinc-700 dark:text-zinc-400"
|
|
1242
|
-
},
|
|
1244
|
+
}, f5 = ["onPointerdown", "onClick"], z5 = { class: "block truncate" }, g5 = { class: "shrink-0 text-zinc-400" }, p5 = ["onClick"], C5 = ["onPointerenter", "onMouseenter"], k5 = { class: "truncate" }, x5 = { class: "flex min-h-0 flex-1" }, y5 = { class: "flex min-w-0 flex-1 flex-col" }, w5 = {
|
|
1243
1245
|
key: 0,
|
|
1244
1246
|
class: "flex h-full flex-col items-center justify-center px-5 text-center text-zinc-500 dark:text-zinc-400"
|
|
1245
1247
|
}, M5 = { class: "font-medium" }, V5 = {
|
|
@@ -1277,7 +1279,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1277
1279
|
}, _5 = ["onMousedown"], n6 = { class: "min-w-0 truncate font-medium text-zinc-900 dark:text-zinc-100" }, e6 = {
|
|
1278
1280
|
key: 0,
|
|
1279
1281
|
class: "max-w-32 shrink-0 truncate text-xs text-zinc-500 dark:text-zinc-400"
|
|
1280
|
-
}, t6 = ["accept"], l6 = ["value", "placeholder", "disabled"], a6 = { class: "flex items-center justify-between px-2 pb-2" }, c6 = ["disabled", "title"], i6 = ["title"], o6 = ["disabled", "title"],
|
|
1282
|
+
}, t6 = ["accept"], l6 = ["value", "placeholder", "disabled"], a6 = { class: "flex items-center justify-between px-2 pb-2" }, c6 = ["disabled", "title"], i6 = ["title"], o6 = ["disabled", "title"], b0 = 80, Kl = /* @__PURE__ */ X({
|
|
1281
1283
|
__name: "WChatPanel",
|
|
1282
1284
|
props: {
|
|
1283
1285
|
open: { type: Boolean },
|
|
@@ -1397,7 +1399,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1397
1399
|
if (r.includes("gpt-image") || r.includes("imagen") || r.includes("seedream") || r.includes("jimeng:")) return "image";
|
|
1398
1400
|
}
|
|
1399
1401
|
}
|
|
1400
|
-
function
|
|
1402
|
+
function f1(r) {
|
|
1401
1403
|
const d = [], v = /* @__PURE__ */ new Set(), w = /\b(gpt[-\s]?image[-\s]?[12]|imagen\s*4|doubao\s+seedance\s+1\.5(?:\s+pro)?|seedance\s+1\.5(?:\s+pro)?|doubao\s+seedream\s+(?:5(?:\.0)?|4\.5|4)|seedream\s+(?:5(?:\.0)?|4\.5|4)|[a-z][a-z0-9_-]+:[a-z0-9._-]+|auto)\b/gi;
|
|
1402
1404
|
for (const p of r.matchAll(w)) {
|
|
1403
1405
|
const B = p[1], n1 = R(B);
|
|
@@ -1698,7 +1700,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1698
1700
|
function H0(r, d, v) {
|
|
1699
1701
|
const w = F0(r, d, v);
|
|
1700
1702
|
if (w !== d) return w;
|
|
1701
|
-
const p = Q1(v), B =
|
|
1703
|
+
const p = Q1(v), B = f1(r);
|
|
1702
1704
|
if (!p && !B.length) return d;
|
|
1703
1705
|
const n1 = /(?:prompt\s+(?:modifi[eé]|am[eé]lior[eé]|propos[eé])|prompt)\s*:/i;
|
|
1704
1706
|
if (p?.prompt && n1.test(r))
|
|
@@ -1996,7 +1998,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
1996
1998
|
}
|
|
1997
1999
|
let R2 = 0, Z2 = 0;
|
|
1998
2000
|
function Y0(r, d = t.width) {
|
|
1999
|
-
return r + d > window.innerWidth -
|
|
2001
|
+
return r + d > window.innerWidth - b0;
|
|
2000
2002
|
}
|
|
2001
2003
|
function q0() {
|
|
2002
2004
|
return Math.max(t.minHeight, Math.min(t.height, window.innerHeight - t.topOffset - 96));
|
|
@@ -2016,7 +2018,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2016
2018
|
};
|
|
2017
2019
|
if (t.docked) {
|
|
2018
2020
|
const B = (i1) => {
|
|
2019
|
-
if (i1.clientX >= window.innerWidth -
|
|
2021
|
+
if (i1.clientX >= window.innerWidth - b0) return;
|
|
2020
2022
|
s("update:docked", !1), Z.value = !0;
|
|
2021
2023
|
const v1 = q0(), k1 = Math.max(0, Math.min(window.innerWidth - t.width, i1.clientX - R2)), x1 = Math.max(t.topOffset, Math.min(window.innerHeight - v1 - 16, i1.clientY - Z2));
|
|
2022
2024
|
s("update:x", k1), s("update:y", x1), s("update:height", v1), document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", n1), document.addEventListener("mousemove", w), document.addEventListener("mouseup", p);
|
|
@@ -2091,7 +2093,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2091
2093
|
class: g(["wpic-chat-panel overflow-visible text-zinc-900 dark:text-zinc-100", [n.docked ? "flex border-l border-zinc-200/40 bg-zinc-50 dark:border-zinc-800/40 dark:bg-zinc-950" : "", Z.value ? "cursor-grabbing" : "", o1.value ? "select-none" : ""]]),
|
|
2092
2094
|
"data-variant": n.variant,
|
|
2093
2095
|
"data-maximized": n.maximized,
|
|
2094
|
-
style:
|
|
2096
|
+
style: b1(M0.value),
|
|
2095
2097
|
"aria-label": "Chat"
|
|
2096
2098
|
}, [
|
|
2097
2099
|
a("div", {
|
|
@@ -2161,11 +2163,11 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2161
2163
|
title: T.value ? n.conversationsLabel : n.projectsLabel,
|
|
2162
2164
|
onClick: d[0] || (d[0] = (v) => T.value = !T.value)
|
|
2163
2165
|
}, [
|
|
2164
|
-
M(
|
|
2166
|
+
M(b(s3), { size: 16 })
|
|
2165
2167
|
], 8, E4)) : m("", !0),
|
|
2166
2168
|
a("div", W4, [
|
|
2167
|
-
a("p", D4,
|
|
2168
|
-
n.subtitle ? (e(), l("p", I4,
|
|
2169
|
+
a("p", D4, f(n.title), 1),
|
|
2170
|
+
n.subtitle ? (e(), l("p", I4, f(n.subtitle), 1)) : m("", !0)
|
|
2169
2171
|
]),
|
|
2170
2172
|
a("div", R4, [
|
|
2171
2173
|
n.docked ? m("", !0) : (e(), l("button", {
|
|
@@ -2175,10 +2177,10 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2175
2177
|
title: n.maximized ? "Restore window" : "Maximize window",
|
|
2176
2178
|
onClick: d[1] || (d[1] = (v) => s("update:maximized", !n.maximized))
|
|
2177
2179
|
}, [
|
|
2178
|
-
n.maximized ? (e(), K(
|
|
2180
|
+
n.maximized ? (e(), K(b(r3), {
|
|
2179
2181
|
key: 0,
|
|
2180
2182
|
size: 16
|
|
2181
|
-
})) : (e(), K(
|
|
2183
|
+
})) : (e(), K(b(d3), {
|
|
2182
2184
|
key: 1,
|
|
2183
2185
|
size: 16
|
|
2184
2186
|
}))
|
|
@@ -2190,7 +2192,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2190
2192
|
title: n.newConversationLabel,
|
|
2191
2193
|
onClick: d[2] || (d[2] = (v) => i0())
|
|
2192
2194
|
}, [
|
|
2193
|
-
M(
|
|
2195
|
+
M(b(w2), { size: 16 })
|
|
2194
2196
|
], 8, N4)),
|
|
2195
2197
|
n.hideClear ? m("", !0) : (e(), l("button", {
|
|
2196
2198
|
key: 2,
|
|
@@ -2199,7 +2201,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2199
2201
|
title: n.clearLabel,
|
|
2200
2202
|
onClick: d[3] || (d[3] = (v) => s("clear"))
|
|
2201
2203
|
}, [
|
|
2202
|
-
M(
|
|
2204
|
+
M(b(u3), { size: 16 })
|
|
2203
2205
|
], 8, K4)),
|
|
2204
2206
|
a("button", {
|
|
2205
2207
|
type: "button",
|
|
@@ -2207,7 +2209,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2207
2209
|
title: n.closeLabel,
|
|
2208
2210
|
onClick: d[4] || (d[4] = (v) => s("close"))
|
|
2209
2211
|
}, [
|
|
2210
|
-
M(
|
|
2212
|
+
M(b($1), { size: 16 })
|
|
2211
2213
|
], 8, U4)
|
|
2212
2214
|
])
|
|
2213
2215
|
], 32),
|
|
@@ -2222,14 +2224,14 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2222
2224
|
], "wpic-chat-panel__navigator m-2 flex h-[calc(100%-16px)] w-[calc(100%-16px)] flex-col overflow-visible rounded-xl shadow-2xl shadow-zinc-900/10 transition-all duration-200 ease-out sm:w-4/5 dark:shadow-black/30"])
|
|
2223
2225
|
}, [
|
|
2224
2226
|
a("div", O4, [
|
|
2225
|
-
a("span", Y4,
|
|
2227
|
+
a("span", Y4, f(n.conversationsLabel), 1),
|
|
2226
2228
|
a("button", {
|
|
2227
2229
|
type: "button",
|
|
2228
2230
|
class: "flex h-8 w-8 items-center justify-center rounded-lg text-zinc-400 transition hover:bg-zinc-100/80 hover:text-zinc-700 dark:hover:bg-zinc-700/70 dark:hover:text-zinc-100",
|
|
2229
2231
|
title: n.closeLabel,
|
|
2230
2232
|
onClick: d[5] || (d[5] = (v) => T.value = !1)
|
|
2231
2233
|
}, [
|
|
2232
|
-
M(
|
|
2234
|
+
M(b($1), { size: 16 })
|
|
2233
2235
|
], 8, q4)
|
|
2234
2236
|
]),
|
|
2235
2237
|
a("div", Q4, [
|
|
@@ -2238,25 +2240,25 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2238
2240
|
class: "flex h-9 w-full items-center justify-center gap-2 rounded-lg bg-[var(--wpic-primary)] font-medium text-[var(--wpic-primary-fg,#fff)] transition hover:bg-[var(--wpic-primary-hover)]",
|
|
2239
2241
|
onClick: d[6] || (d[6] = (v) => i0())
|
|
2240
2242
|
}, [
|
|
2241
|
-
M(
|
|
2242
|
-
a("span", J4,
|
|
2243
|
+
M(b(w2), { size: 16 }),
|
|
2244
|
+
a("span", J4, f(n.newConversationLabel), 1)
|
|
2243
2245
|
])
|
|
2244
2246
|
]),
|
|
2245
2247
|
a("div", X4, [
|
|
2246
2248
|
a("section", null, [
|
|
2247
2249
|
a("div", G4, [
|
|
2248
|
-
a("span", _4,
|
|
2250
|
+
a("span", _4, f(n.projectsLabel), 1),
|
|
2249
2251
|
a("button", {
|
|
2250
2252
|
type: "button",
|
|
2251
2253
|
class: "flex h-6 w-6 items-center justify-center rounded-md text-zinc-400 transition hover:bg-zinc-100/80 hover:text-zinc-700 dark:hover:bg-zinc-700/70 dark:hover:text-zinc-100",
|
|
2252
2254
|
title: n.newProjectLabel,
|
|
2253
2255
|
onClick: d[7] || (d[7] = (v) => s("new-project"))
|
|
2254
2256
|
}, [
|
|
2255
|
-
M(
|
|
2257
|
+
M(b(w2), { size: 14 })
|
|
2256
2258
|
], 8, n5)
|
|
2257
2259
|
]),
|
|
2258
2260
|
a("div", e5, [
|
|
2259
|
-
n.projects.length ? m("", !0) : (e(), l("div", t5,
|
|
2261
|
+
n.projects.length ? m("", !0) : (e(), l("div", t5, f(n.noProjectsLabel), 1)),
|
|
2260
2262
|
(e(!0), l(W, null, a1(n.projects, (v) => (e(), l("div", {
|
|
2261
2263
|
key: v.id,
|
|
2262
2264
|
class: "mb-3",
|
|
@@ -2268,13 +2270,13 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2268
2270
|
class: g(["flex h-8 w-full items-center gap-2 rounded-lg px-2 text-left font-medium text-zinc-600 transition hover:bg-zinc-100/80 hover:text-zinc-900 dark:text-zinc-300 dark:hover:bg-zinc-700/70 dark:hover:text-zinc-100", v.id === n.selectedProjectId ? "bg-zinc-100/90 text-zinc-900 dark:bg-zinc-700/80 dark:text-zinc-100" : ""]),
|
|
2269
2271
|
onClick: (w) => s("select-project", v.id)
|
|
2270
2272
|
}, [
|
|
2271
|
-
M(
|
|
2273
|
+
M(b(h0), {
|
|
2272
2274
|
size: 14,
|
|
2273
2275
|
class: "shrink-0 text-zinc-400"
|
|
2274
2276
|
}),
|
|
2275
|
-
a("span", c5,
|
|
2276
|
-
v.count !== void 0 ? (e(), l("span", i5,
|
|
2277
|
-
M(
|
|
2277
|
+
a("span", c5, f(v.name), 1),
|
|
2278
|
+
v.count !== void 0 ? (e(), l("span", i5, f(v.count), 1)) : m("", !0),
|
|
2279
|
+
M(b(j1), {
|
|
2278
2280
|
size: 12,
|
|
2279
2281
|
class: "shrink-0 text-zinc-400"
|
|
2280
2282
|
})
|
|
@@ -2299,7 +2301,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2299
2301
|
onMouseenter: j0,
|
|
2300
2302
|
onMouseleave: W2
|
|
2301
2303
|
}, [
|
|
2302
|
-
!F.value || !(V.value.get(F.value) ?? []).length ? (e(), l("p", o5,
|
|
2304
|
+
!F.value || !(V.value.get(F.value) ?? []).length ? (e(), l("p", o5, f(n.noConversationsLabel), 1)) : m("", !0),
|
|
2303
2305
|
(e(!0), l(W, null, a1(F.value ? V.value.get(F.value) ?? [] : [], (v) => (e(), l("button", {
|
|
2304
2306
|
key: v.id,
|
|
2305
2307
|
type: "button",
|
|
@@ -2307,8 +2309,8 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2307
2309
|
onPointerdown: z1((w) => D2(v.id), ["stop"]),
|
|
2308
2310
|
onClick: z1((w) => o0(v.id), ["stop"])
|
|
2309
2311
|
}, [
|
|
2310
|
-
a("span", r5,
|
|
2311
|
-
a("span", d5,
|
|
2312
|
+
a("span", r5, f(v.title), 1),
|
|
2313
|
+
a("span", d5, f(n0(v)), 1)
|
|
2312
2314
|
], 42, s5))), 128))
|
|
2313
2315
|
], 32)
|
|
2314
2316
|
]),
|
|
@@ -2316,10 +2318,10 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2316
2318
|
}, 8, ["open", "anchor"]),
|
|
2317
2319
|
a("section", u5, [
|
|
2318
2320
|
a("div", h5, [
|
|
2319
|
-
a("span", v5,
|
|
2321
|
+
a("span", v5, f(n.conversationsLabel), 1)
|
|
2320
2322
|
]),
|
|
2321
2323
|
a("div", m5, [
|
|
2322
|
-
u1.value.length ? m("", !0) : (e(), l("div",
|
|
2324
|
+
u1.value.length ? m("", !0) : (e(), l("div", b5, f(n.noConversationsLabel), 1)),
|
|
2323
2325
|
(e(!0), l(W, null, a1(u1.value, (v) => (e(), l("div", {
|
|
2324
2326
|
key: v.id,
|
|
2325
2327
|
class: g(["group/conversation relative flex min-h-8 w-full items-center gap-2 rounded-lg px-2 py-1 text-left transition", v.id === n.selectedSessionId ? "bg-zinc-100/90 text-zinc-900 dark:bg-zinc-700/80 dark:text-zinc-100" : "text-zinc-500 hover:bg-zinc-100/80 hover:text-zinc-800 dark:text-zinc-400 dark:hover:bg-zinc-700/70 dark:hover:text-zinc-100"]),
|
|
@@ -2331,9 +2333,9 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2331
2333
|
onPointerdown: z1((w) => D2(v.id), ["stop"]),
|
|
2332
2334
|
onClick: z1((w) => o0(v.id), ["stop"])
|
|
2333
2335
|
}, [
|
|
2334
|
-
a("span", z5,
|
|
2335
|
-
], 40,
|
|
2336
|
-
a("span", g5,
|
|
2336
|
+
a("span", z5, f(v.title), 1)
|
|
2337
|
+
], 40, f5),
|
|
2338
|
+
a("span", g5, f(n0(v)), 1),
|
|
2337
2339
|
a("button", {
|
|
2338
2340
|
type: "button",
|
|
2339
2341
|
class: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-zinc-400 opacity-0 transition hover:bg-zinc-100/80 hover:text-zinc-700 group-hover/conversation:opacity-100 dark:hover:bg-zinc-700/70 dark:hover:text-zinc-100",
|
|
@@ -2341,7 +2343,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2341
2343
|
"data-wpic-chat-menu-trigger": "",
|
|
2342
2344
|
onClick: z1((w) => E0(`loose-${v.id}`), ["stop"])
|
|
2343
2345
|
}, [
|
|
2344
|
-
M(
|
|
2346
|
+
M(b(h3), { size: 14 })
|
|
2345
2347
|
], 8, p5),
|
|
2346
2348
|
q.value === `loose-${v.id}` ? (e(), l("div", {
|
|
2347
2349
|
key: 0,
|
|
@@ -2362,7 +2364,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2362
2364
|
M(d2, null, {
|
|
2363
2365
|
default: r1(() => [
|
|
2364
2366
|
d[27] || (d[27] = a("span", { class: "flex-1" }, "Move to project", -1)),
|
|
2365
|
-
M(
|
|
2367
|
+
M(b(j1), {
|
|
2366
2368
|
size: 10,
|
|
2367
2369
|
class: "text-zinc-400"
|
|
2368
2370
|
})
|
|
@@ -2372,7 +2374,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2372
2374
|
(e(), K(U1, { to: "body" }, [
|
|
2373
2375
|
e1.value === `loose-${v.id}` ? (e(), l("div", {
|
|
2374
2376
|
key: 0,
|
|
2375
|
-
style:
|
|
2377
|
+
style: b1(P.value),
|
|
2376
2378
|
"data-wpic-chat-menu-root": "",
|
|
2377
2379
|
onPointerenter: s2,
|
|
2378
2380
|
onMouseenter: s2,
|
|
@@ -2389,11 +2391,11 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2389
2391
|
onClick: (p) => c0(v, w.id)
|
|
2390
2392
|
}, {
|
|
2391
2393
|
default: r1(() => [
|
|
2392
|
-
M(
|
|
2394
|
+
M(b(h0), {
|
|
2393
2395
|
size: 14,
|
|
2394
2396
|
class: "text-zinc-400 dark:text-zinc-300"
|
|
2395
2397
|
}),
|
|
2396
|
-
a("span", k5,
|
|
2398
|
+
a("span", k5, f(w.name), 1)
|
|
2397
2399
|
]),
|
|
2398
2400
|
_: 2
|
|
2399
2401
|
}, 1032, ["onClick"]))), 128)),
|
|
@@ -2417,7 +2419,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2417
2419
|
}
|
|
2418
2420
|
}, {
|
|
2419
2421
|
default: r1(() => [
|
|
2420
|
-
a("span", null,
|
|
2422
|
+
a("span", null, f(n.renameConversationLabel), 1)
|
|
2421
2423
|
]),
|
|
2422
2424
|
_: 1
|
|
2423
2425
|
}, 8, ["onClick"]),
|
|
@@ -2425,7 +2427,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2425
2427
|
onClick: (w) => W0(v)
|
|
2426
2428
|
}, {
|
|
2427
2429
|
default: r1(() => [
|
|
2428
|
-
a("span", null,
|
|
2430
|
+
a("span", null, f(n.deleteConversationLabel), 1)
|
|
2429
2431
|
]),
|
|
2430
2432
|
_: 1
|
|
2431
2433
|
}, 8, ["onClick"])
|
|
@@ -2447,11 +2449,11 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2447
2449
|
class: "wpic-chat-panel__messages flex-1 overflow-y-auto px-5 py-5"
|
|
2448
2450
|
}, [
|
|
2449
2451
|
w1.value && !c1.value.length ? (e(), l("div", w5, [
|
|
2450
|
-
M(
|
|
2452
|
+
M(b(i2), {
|
|
2451
2453
|
size: 22,
|
|
2452
2454
|
class: "mb-3 animate-spin"
|
|
2453
2455
|
}),
|
|
2454
|
-
a("p", M5,
|
|
2456
|
+
a("p", M5, f(n.thinkingLabel), 1)
|
|
2455
2457
|
])) : c1.value.length ? (e(), l("div", A5, [
|
|
2456
2458
|
(e(!0), l(W, null, a1(c1.value, (v, w) => (e(), l("article", {
|
|
2457
2459
|
key: j2(v, w),
|
|
@@ -2460,7 +2462,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2460
2462
|
a("div", S5, [
|
|
2461
2463
|
a("p", {
|
|
2462
2464
|
class: g(["mb-1 text-zinc-400", v.role === "user" ? "text-right" : "text-left"])
|
|
2463
|
-
},
|
|
2465
|
+
}, f(V0(v)) + " · " + f(L0(v, w)), 3),
|
|
2464
2466
|
_(v).length ? (e(), l("div", {
|
|
2465
2467
|
key: 0,
|
|
2466
2468
|
class: g(["mb-1.5 flex flex-wrap gap-1.5", v.role === "user" ? "justify-end" : "justify-start"])
|
|
@@ -2476,12 +2478,12 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2476
2478
|
class: "h-full w-full object-cover",
|
|
2477
2479
|
loading: "lazy"
|
|
2478
2480
|
}, null, 8, F5)) : (e(), l(W, { key: 1 }, [
|
|
2479
|
-
M(
|
|
2481
|
+
M(b(U2), {
|
|
2480
2482
|
size: 12,
|
|
2481
2483
|
class: "shrink-0"
|
|
2482
2484
|
}),
|
|
2483
|
-
a("span", H5,
|
|
2484
|
-
A2(p.bytes) ? (e(), l("span", P5,
|
|
2485
|
+
a("span", H5, f(p.name), 1),
|
|
2486
|
+
A2(p.bytes) ? (e(), l("span", P5, f(A2(p.bytes)), 1)) : m("", !0)
|
|
2485
2487
|
], 64))
|
|
2486
2488
|
], 2))), 128))
|
|
2487
2489
|
], 2)) : m("", !0),
|
|
@@ -2491,11 +2493,11 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2491
2493
|
]])
|
|
2492
2494
|
}, [
|
|
2493
2495
|
v.streaming && !v.content.trim() ? (e(), l("div", T5, [
|
|
2494
|
-
M(
|
|
2496
|
+
M(b(i2), {
|
|
2495
2497
|
size: 16,
|
|
2496
2498
|
class: "animate-spin"
|
|
2497
2499
|
}),
|
|
2498
|
-
a("span", null,
|
|
2500
|
+
a("span", null, f(n.thinkingLabel), 1)
|
|
2499
2501
|
])) : E1(v) ? (e(), l("div", j5, [...d[30] || (d[30] = [
|
|
2500
2502
|
a("span", { class: "wpic-chat-loading-card__label" }, "Generating image...", -1)
|
|
2501
2503
|
])])) : (e(), l("div", {
|
|
@@ -2533,7 +2535,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2533
2535
|
"aria-label": n.helpfulLabel,
|
|
2534
2536
|
onClick: (p) => s("message-feedback", v, 1)
|
|
2535
2537
|
}, [
|
|
2536
|
-
M(
|
|
2538
|
+
M(b(m3), { size: 14 })
|
|
2537
2539
|
], 10, I5),
|
|
2538
2540
|
a("button", {
|
|
2539
2541
|
type: "button",
|
|
@@ -2542,7 +2544,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2542
2544
|
"aria-label": n.notHelpfulLabel,
|
|
2543
2545
|
onClick: (p) => s("message-feedback", v, -1)
|
|
2544
2546
|
}, [
|
|
2545
|
-
M(
|
|
2547
|
+
M(b(b3), { size: 14 })
|
|
2546
2548
|
], 10, R5)
|
|
2547
2549
|
], 64)) : m("", !0),
|
|
2548
2550
|
a("button", {
|
|
@@ -2551,7 +2553,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2551
2553
|
title: n.copyLabel,
|
|
2552
2554
|
onClick: (p) => O0(v.content, j2(v, w))
|
|
2553
2555
|
}, [
|
|
2554
|
-
(e(), K(B1(i.value === j2(v, w) ?
|
|
2556
|
+
(e(), K(B1(i.value === j2(v, w) ? b(O1) : b(f3)), { size: 14 }))
|
|
2555
2557
|
], 8, Z5),
|
|
2556
2558
|
v.role === "user" ? (e(), l("button", {
|
|
2557
2559
|
key: 1,
|
|
@@ -2560,7 +2562,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2560
2562
|
title: "Edit",
|
|
2561
2563
|
onClick: (p) => D0(v)
|
|
2562
2564
|
}, [
|
|
2563
|
-
M(
|
|
2565
|
+
M(b(z3), { size: 14 })
|
|
2564
2566
|
], 8, N5)) : m("", !0),
|
|
2565
2567
|
a("button", {
|
|
2566
2568
|
type: "button",
|
|
@@ -2568,17 +2570,17 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2568
2570
|
title: n.newChatFromMessageLabel,
|
|
2569
2571
|
onClick: (p) => s("new-chat-from-message", v)
|
|
2570
2572
|
}, [
|
|
2571
|
-
M(
|
|
2573
|
+
M(b(g3), { size: 14 })
|
|
2572
2574
|
], 8, K5)
|
|
2573
2575
|
], 2)
|
|
2574
2576
|
])
|
|
2575
2577
|
], 2))), 128))
|
|
2576
2578
|
])) : (e(), l("div", V5, [
|
|
2577
2579
|
a("div", L5, [
|
|
2578
|
-
M(
|
|
2580
|
+
M(b(v3), { size: 20 })
|
|
2579
2581
|
]),
|
|
2580
|
-
a("p", B5,
|
|
2581
|
-
n.emptyDescription ? (e(), l("p", $5,
|
|
2582
|
+
a("p", B5, f(n.emptyTitle), 1),
|
|
2583
|
+
n.emptyDescription ? (e(), l("p", $5, f(n.emptyDescription), 1)) : m("", !0)
|
|
2582
2584
|
]))
|
|
2583
2585
|
], 512),
|
|
2584
2586
|
a("footer", {
|
|
@@ -2604,12 +2606,12 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2604
2606
|
class: "h-full w-full object-cover",
|
|
2605
2607
|
loading: "lazy"
|
|
2606
2608
|
}, null, 8, O5)) : (e(), l(W, { key: 1 }, [
|
|
2607
|
-
M(
|
|
2609
|
+
M(b(U2), {
|
|
2608
2610
|
size: 12,
|
|
2609
2611
|
class: "shrink-0"
|
|
2610
2612
|
}),
|
|
2611
|
-
a("span", Y5,
|
|
2612
|
-
A2(v.bytes) ? (e(), l("span", q5,
|
|
2613
|
+
a("span", Y5, f(v.name), 1),
|
|
2614
|
+
A2(v.bytes) ? (e(), l("span", q5, f(A2(v.bytes)), 1)) : m("", !0),
|
|
2613
2615
|
v.status === "loading" ? (e(), l("span", Q5, "...")) : m("", !0)
|
|
2614
2616
|
], 64)),
|
|
2615
2617
|
a("button", {
|
|
@@ -2618,7 +2620,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2618
2620
|
title: n.removeAttachmentLabel,
|
|
2619
2621
|
onClick: (w) => s("remove-attachment", v)
|
|
2620
2622
|
}, [
|
|
2621
|
-
M(
|
|
2623
|
+
M(b($1), { size: 10 })
|
|
2622
2624
|
], 10, J5)
|
|
2623
2625
|
], 2))), 128))
|
|
2624
2626
|
])) : m("", !0),
|
|
@@ -2630,8 +2632,8 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2630
2632
|
class: g(["flex w-full items-center justify-between gap-3 px-3 py-2 text-left text-sm transition hover:bg-zinc-100 dark:hover:bg-zinc-700", w === j.value ? "bg-zinc-100 dark:bg-zinc-700" : ""]),
|
|
2631
2633
|
onMousedown: z1((p) => s0(v), ["prevent"])
|
|
2632
2634
|
}, [
|
|
2633
|
-
a("span", n6, "@" +
|
|
2634
|
-
v.description ? (e(), l("span", e6,
|
|
2635
|
+
a("span", n6, "@" + f(v.label), 1),
|
|
2636
|
+
v.description ? (e(), l("span", e6, f(v.description), 1)) : m("", !0)
|
|
2635
2637
|
], 42, _5))), 128))
|
|
2636
2638
|
])) : m("", !0),
|
|
2637
2639
|
a("input", {
|
|
@@ -2672,7 +2674,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2672
2674
|
title: n.attachFilesLabel,
|
|
2673
2675
|
onClick: N0
|
|
2674
2676
|
}, [
|
|
2675
|
-
M(
|
|
2677
|
+
M(b(U2), { size: 16 })
|
|
2676
2678
|
], 8, c6),
|
|
2677
2679
|
n.loading && n.cancellable ? (e(), l("button", {
|
|
2678
2680
|
key: 0,
|
|
@@ -2681,7 +2683,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2681
2683
|
title: n.stopLabel,
|
|
2682
2684
|
onClick: d[13] || (d[13] = (v) => s("cancel"))
|
|
2683
2685
|
}, [
|
|
2684
|
-
M(
|
|
2686
|
+
M(b(p3), {
|
|
2685
2687
|
size: 14,
|
|
2686
2688
|
fill: "currentColor",
|
|
2687
2689
|
"stroke-width": "0"
|
|
@@ -2694,11 +2696,11 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2694
2696
|
title: n.sendLabel,
|
|
2695
2697
|
onClick: I2
|
|
2696
2698
|
}, [
|
|
2697
|
-
n.loading ? (e(), K(
|
|
2699
|
+
n.loading ? (e(), K(b(i2), {
|
|
2698
2700
|
key: 0,
|
|
2699
2701
|
size: 16,
|
|
2700
2702
|
class: "animate-spin"
|
|
2701
|
-
})) : (e(), K(
|
|
2703
|
+
})) : (e(), K(b(C3), {
|
|
2702
2704
|
key: 1,
|
|
2703
2705
|
size: 17,
|
|
2704
2706
|
"stroke-width": "2.5"
|
|
@@ -2807,7 +2809,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2807
2809
|
F >= 1 && F <= z.value && F !== t.modelValue && (i(F, "push"), s("update:modelValue", F));
|
|
2808
2810
|
};
|
|
2809
2811
|
return (F, L) => (e(), l("div", s6, [
|
|
2810
|
-
a("span", r6, " Page " +
|
|
2812
|
+
a("span", r6, " Page " + f(n.modelValue) + " / " + f(z.value) + " · " + f(n.total.toLocaleString()), 1),
|
|
2811
2813
|
a("div", d6, [
|
|
2812
2814
|
a("button", {
|
|
2813
2815
|
disabled: n.modelValue <= 1,
|
|
@@ -2817,7 +2819,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2817
2819
|
n.modelValue <= 1 ? "opacity-30 cursor-not-allowed" : "hover:border-zinc-200 dark:hover:border-zinc-600 hover:text-zinc-900 dark:hover:text-zinc-100 hover:bg-zinc-100 dark:hover:bg-zinc-800"
|
|
2818
2820
|
])
|
|
2819
2821
|
}, [
|
|
2820
|
-
M(
|
|
2822
|
+
M(b(C2), { size: 13 })
|
|
2821
2823
|
], 10, u6),
|
|
2822
2824
|
(e(!0), l(W, null, a1($.value, (x) => (e(), l(W, { key: x }, [
|
|
2823
2825
|
x === "..." ? (e(), l("span", h6, "…")) : (e(), l("button", {
|
|
@@ -2827,7 +2829,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2827
2829
|
"inline-flex items-center justify-center w-7 h-7 rounded-md font-medium transition-all duration-150 cursor-pointer",
|
|
2828
2830
|
x === n.modelValue ? "bg-indigo-500/10 text-indigo-500 dark:text-indigo-400 ring-1 ring-indigo-500/30" : "text-zinc-500 hover:text-zinc-900 dark:hover:text-zinc-100 hover:bg-zinc-100 dark:hover:bg-zinc-800"
|
|
2829
2831
|
])
|
|
2830
|
-
},
|
|
2832
|
+
}, f(x), 11, v6))
|
|
2831
2833
|
], 64))), 128)),
|
|
2832
2834
|
a("button", {
|
|
2833
2835
|
disabled: n.modelValue >= z.value,
|
|
@@ -2837,12 +2839,12 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2837
2839
|
n.modelValue >= z.value ? "opacity-30 cursor-not-allowed" : "hover:border-zinc-200 dark:hover:border-zinc-600 hover:text-zinc-900 dark:hover:text-zinc-100 hover:bg-zinc-100 dark:hover:bg-zinc-800"
|
|
2838
2840
|
])
|
|
2839
2841
|
}, [
|
|
2840
|
-
M(
|
|
2842
|
+
M(b(j1), { size: 13 })
|
|
2841
2843
|
], 10, m6)
|
|
2842
2844
|
])
|
|
2843
2845
|
]));
|
|
2844
2846
|
}
|
|
2845
|
-
}),
|
|
2847
|
+
}), b6 = ["disabled"], f6 = {
|
|
2846
2848
|
key: 0,
|
|
2847
2849
|
class: "pointer-events-none absolute inset-x-2 top-0 h-px bg-zinc-200 dark:bg-zinc-700",
|
|
2848
2850
|
"aria-hidden": "true"
|
|
@@ -2867,9 +2869,9 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2867
2869
|
]]),
|
|
2868
2870
|
onClick: u[0] || (u[0] = (c) => t("click", c))
|
|
2869
2871
|
}, [
|
|
2870
|
-
n.separatorBefore ? (e(), l("span",
|
|
2872
|
+
n.separatorBefore ? (e(), l("span", f6)) : m("", !0),
|
|
2871
2873
|
Q(s.$slots, "default")
|
|
2872
|
-
], 10,
|
|
2874
|
+
], 10, b6));
|
|
2873
2875
|
}
|
|
2874
2876
|
}), g6 = ["disabled", "aria-expanded", "data-size", "data-variant", "data-invalid"], p6 = {
|
|
2875
2877
|
key: 1,
|
|
@@ -2965,14 +2967,14 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
2965
2967
|
return c1.length ? I <= t1 ? c1.join(", ") : `${c1.slice(0, t1).join(", ")} · ${I}` : t.placeholder ? `${t.placeholder} · ${I}` : `${I} selected`;
|
|
2966
2968
|
}), q = y(() => t.multiple ? i.value.length > 0 : t.modelValue != null && t.modelValue !== ""), e1 = y(() => t.variant ?? "default");
|
|
2967
2969
|
return (P, U) => (e(), l("div", {
|
|
2968
|
-
style:
|
|
2970
|
+
style: b1({ position: "relative", width: e1.value === "plain" ? "auto" : "100%", minWidth: 0 })
|
|
2969
2971
|
}, [
|
|
2970
2972
|
n.label && n.labelPlacement !== "inline" ? (e(), K(x0, {
|
|
2971
2973
|
key: 0,
|
|
2972
2974
|
for: z
|
|
2973
2975
|
}, {
|
|
2974
2976
|
default: r1(() => [
|
|
2975
|
-
m1(
|
|
2977
|
+
m1(f(n.label), 1)
|
|
2976
2978
|
]),
|
|
2977
2979
|
_: 1
|
|
2978
2980
|
})) : m("", !0),
|
|
@@ -3003,10 +3005,10 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3003
3005
|
size: 14,
|
|
3004
3006
|
style: { "flex-shrink": "0", opacity: "0.8" }
|
|
3005
3007
|
})) : m("", !0),
|
|
3006
|
-
n.label && n.labelPlacement === "inline" ? (e(), l("span", p6,
|
|
3007
|
-
a("span", C6,
|
|
3008
|
+
n.label && n.labelPlacement === "inline" ? (e(), l("span", p6, f(n.label) + ":", 1)) : m("", !0),
|
|
3009
|
+
a("span", C6, f(g1.value), 1)
|
|
3008
3010
|
], 2),
|
|
3009
|
-
n.loading ? (e(), K(
|
|
3011
|
+
n.loading ? (e(), K(b(i2), {
|
|
3010
3012
|
key: 0,
|
|
3011
3013
|
size: 13,
|
|
3012
3014
|
class: "shrink-0 animate-spin text-zinc-400 dark:text-zinc-500"
|
|
@@ -3018,12 +3020,12 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3018
3020
|
}, ["stop"])),
|
|
3019
3021
|
class: "flex items-center p-0.5 rounded shrink-0 text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 transition cursor-pointer bg-transparent border-none"
|
|
3020
3022
|
}, [
|
|
3021
|
-
M(
|
|
3022
|
-
])) : e1.value === "plain" ? (e(), K(
|
|
3023
|
+
M(b($1), { size: 11 })
|
|
3024
|
+
])) : e1.value === "plain" ? (e(), K(b(D1), {
|
|
3023
3025
|
key: 2,
|
|
3024
3026
|
size: 14,
|
|
3025
3027
|
class: "shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
3026
|
-
})) : (e(), K(
|
|
3028
|
+
})) : (e(), K(b(J2), {
|
|
3027
3029
|
key: 3,
|
|
3028
3030
|
size: 13,
|
|
3029
3031
|
class: "shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
@@ -3043,7 +3045,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3043
3045
|
}, {
|
|
3044
3046
|
default: r1(() => [
|
|
3045
3047
|
n.searchable ? (e(), l("div", k6, [
|
|
3046
|
-
M(
|
|
3048
|
+
M(b(P2), {
|
|
3047
3049
|
size: 13,
|
|
3048
3050
|
class: "shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
3049
3051
|
}),
|
|
@@ -3067,14 +3069,14 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3067
3069
|
i.value = j.value.filter((H) => !H.disabled).map((H) => H.value), s("update:modelValue", [...i.value]);
|
|
3068
3070
|
}, ["stop"])),
|
|
3069
3071
|
class: "bg-transparent border-none cursor-pointer text-base text-zinc-500 dark:text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 transition p-0.5"
|
|
3070
|
-
},
|
|
3072
|
+
}, f(n.selectAllLabel), 1),
|
|
3071
3073
|
a("button", {
|
|
3072
3074
|
type: "button",
|
|
3073
3075
|
onClick: U[5] || (U[5] = z1((I) => {
|
|
3074
3076
|
i.value = [], s("update:modelValue", []);
|
|
3075
3077
|
}, ["stop"])),
|
|
3076
3078
|
class: "bg-transparent border-none cursor-pointer text-base text-zinc-500 dark:text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 transition p-0.5"
|
|
3077
|
-
},
|
|
3079
|
+
}, f(n.clearLabel), 1)
|
|
3078
3080
|
])) : m("", !0),
|
|
3079
3081
|
a("div", w6, [
|
|
3080
3082
|
(e(!0), l(W, null, a1($.value, (I) => (e(), l(W, {
|
|
@@ -3083,7 +3085,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3083
3085
|
I.groupLabel ? (e(), l("div", {
|
|
3084
3086
|
key: 0,
|
|
3085
3087
|
class: g(["px-2 pb-1 text-[11px] font-medium uppercase tracking-wide text-zinc-400 dark:text-zinc-500", I.separatorBefore ? "mt-2 pt-2 border-t border-zinc-200 dark:border-zinc-700" : ""])
|
|
3086
|
-
},
|
|
3088
|
+
}, f(I.groupLabel), 3)) : m("", !0),
|
|
3087
3089
|
M(z6, {
|
|
3088
3090
|
disabled: I.disabled,
|
|
3089
3091
|
selected: Z(I.value),
|
|
@@ -3100,7 +3102,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3100
3102
|
key: 0,
|
|
3101
3103
|
class: g(Z(I.value) ? "flex items-center justify-center w-3.5 h-3.5 rounded shrink-0 border border-indigo-500 bg-indigo-500" : "flex items-center justify-center w-3.5 h-3.5 rounded shrink-0 border border-zinc-300 dark:border-zinc-600 bg-transparent")
|
|
3102
3104
|
}, [
|
|
3103
|
-
Z(I.value) ? (e(), K(
|
|
3105
|
+
Z(I.value) ? (e(), K(b(O1), {
|
|
3104
3106
|
key: 0,
|
|
3105
3107
|
size: 9,
|
|
3106
3108
|
style: { color: "white" },
|
|
@@ -3113,34 +3115,34 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3113
3115
|
class: "shrink-0 opacity-70"
|
|
3114
3116
|
})) : m("", !0),
|
|
3115
3117
|
a("span", M6, [
|
|
3116
|
-
a("span", V6,
|
|
3117
|
-
I.description ? (e(), l("span", L6,
|
|
3118
|
+
a("span", V6, f(I.label), 1),
|
|
3119
|
+
I.description ? (e(), l("span", L6, f(I.description), 1)) : m("", !0)
|
|
3118
3120
|
]),
|
|
3119
3121
|
I.meta ? (e(), l("span", {
|
|
3120
3122
|
key: 2,
|
|
3121
3123
|
class: "shrink-0 px-1.5 py-px rounded text-[11px]",
|
|
3122
|
-
style:
|
|
3124
|
+
style: b1({
|
|
3123
3125
|
background: I.metaVariant === "success" ? "rgba(34,197,94,0.12)" : I.metaVariant === "warning" ? "rgba(245,158,11,0.12)" : I.metaVariant === "error" ? "rgba(239,68,68,0.12)" : I.metaVariant === "subtle" ? "rgba(113,113,122,0.12)" : "transparent",
|
|
3124
3126
|
color: I.metaVariant === "success" ? "#22C55E" : I.metaVariant === "warning" ? "#F59E0B" : I.metaVariant === "error" ? "#EF4444" : "rgb(161 161 170)"
|
|
3125
3127
|
})
|
|
3126
|
-
},
|
|
3128
|
+
}, f(I.meta), 5)) : m("", !0)
|
|
3127
3129
|
])
|
|
3128
3130
|
]),
|
|
3129
3131
|
_: 2
|
|
3130
3132
|
}, 1032, ["disabled", "selected", "separator-before", "title", "onClick"])
|
|
3131
3133
|
], 64))), 128)),
|
|
3132
|
-
$.value.length === 0 && !L.value ? (e(), l("div", B6,
|
|
3134
|
+
$.value.length === 0 && !L.value ? (e(), l("div", B6, f(n.noResultsLabel), 1)) : m("", !0),
|
|
3133
3135
|
L.value ? (e(), l("button", {
|
|
3134
3136
|
key: 1,
|
|
3135
3137
|
type: "button",
|
|
3136
3138
|
class: "flex w-full items-center gap-2 px-3 py-2 text-left text-base text-indigo-600 hover:bg-indigo-50 dark:text-indigo-400 dark:hover:bg-indigo-950/40 transition-colors border-t border-zinc-100 dark:border-zinc-800 first:border-0",
|
|
3137
3139
|
onClick: x
|
|
3138
3140
|
}, [
|
|
3139
|
-
M(
|
|
3141
|
+
M(b(w2), {
|
|
3140
3142
|
size: 14,
|
|
3141
3143
|
class: "shrink-0"
|
|
3142
3144
|
}),
|
|
3143
|
-
m1(' Create "' +
|
|
3145
|
+
m1(' Create "' + f(C.value.trim()) + '" ', 1)
|
|
3144
3146
|
])) : m("", !0)
|
|
3145
3147
|
])
|
|
3146
3148
|
]),
|
|
@@ -3156,7 +3158,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3156
3158
|
setup(n) {
|
|
3157
3159
|
return (h, t) => (e(), l("span", $6, [
|
|
3158
3160
|
Q(h.$slots, "default", {}, () => [
|
|
3159
|
-
m1(
|
|
3161
|
+
m1(f(n.label), 1)
|
|
3160
3162
|
])
|
|
3161
3163
|
]));
|
|
3162
3164
|
}
|
|
@@ -3185,7 +3187,7 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3185
3187
|
max: n.max,
|
|
3186
3188
|
step: n.step,
|
|
3187
3189
|
disabled: n.disabled,
|
|
3188
|
-
style:
|
|
3190
|
+
style: b1({ "--wpic-slider-progress": `${s.value}%` }),
|
|
3189
3191
|
class: g([
|
|
3190
3192
|
"wpic-slider",
|
|
3191
3193
|
`wpic-slider--${n.variant}`,
|
|
@@ -3233,14 +3235,14 @@ const P4 = ["data-wpic-theme"], n2 = /* @__PURE__ */ X({
|
|
|
3233
3235
|
o.color ? (e(), l("span", {
|
|
3234
3236
|
key: 0,
|
|
3235
3237
|
class: "w-2 h-2 rounded-full shrink-0",
|
|
3236
|
-
style:
|
|
3238
|
+
style: b1({ background: o.color })
|
|
3237
3239
|
}, null, 4)) : o.icon ? (e(), K(B1(o.icon), {
|
|
3238
3240
|
key: 1,
|
|
3239
3241
|
size: 13,
|
|
3240
3242
|
class: "shrink-0 text-zinc-400"
|
|
3241
3243
|
})) : m("", !0),
|
|
3242
|
-
a("span", H6,
|
|
3243
|
-
n.modelValue === o.value ? (e(), K(
|
|
3244
|
+
a("span", H6, f(o.label), 1),
|
|
3245
|
+
n.modelValue === o.value ? (e(), K(b(O1), {
|
|
3244
3246
|
key: 2,
|
|
3245
3247
|
size: 13,
|
|
3246
3248
|
class: "shrink-0 text-indigo-500"
|
|
@@ -3346,7 +3348,7 @@ const T6 = {
|
|
|
3346
3348
|
n.checkable && n.checked ? "font-semibold" : "font-medium",
|
|
3347
3349
|
n.disabled ? "opacity-50 cursor-not-allowed" : k.value ? "cursor-pointer transition hover:brightness-95" : "",
|
|
3348
3350
|
k.value && !n.removable ? "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current" : "",
|
|
3349
|
-
|
|
3351
|
+
b(u).class
|
|
3350
3352
|
],
|
|
3351
3353
|
onClick: L[2] || (L[2] = (x) => !n.removable && T())
|
|
3352
3354
|
}), {
|
|
@@ -3376,7 +3378,7 @@ const T6 = {
|
|
|
3376
3378
|
class: g(["inline-flex shrink-0 items-center justify-center rounded-full opacity-50 hover:opacity-100 cursor-pointer disabled:cursor-not-allowed focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current", n.size === "sm" ? "size-3" : "size-4"]),
|
|
3377
3379
|
onClick: L[1] || (L[1] = z1((x) => !n.disabled && s("remove"), ["stop"]))
|
|
3378
3380
|
}, [
|
|
3379
|
-
M(
|
|
3381
|
+
M(b($1), {
|
|
3380
3382
|
size: n.size === "sm" ? 9 : 11,
|
|
3381
3383
|
"aria-hidden": "true"
|
|
3382
3384
|
}, null, 8, ["size"])
|
|
@@ -3418,19 +3420,19 @@ const T6 = {
|
|
|
3418
3420
|
setup(n, { emit: h }) {
|
|
3419
3421
|
const t = n, s = h, u = { info: w3, warning: y3, success: x3, error: k3 }, c = y(() => t.icon ?? u[t.variant]);
|
|
3420
3422
|
return (o, z) => (e(), l("div", {
|
|
3421
|
-
class: g(["wpic-banner w-full rounded-xl border p-4",
|
|
3423
|
+
class: g(["wpic-banner w-full rounded-xl border p-4", b(o2)(b(T6)[n.variant], n.theme)]),
|
|
3422
3424
|
role: n.variant === "error" || n.variant === "warning" ? "alert" : "status"
|
|
3423
3425
|
}, [
|
|
3424
3426
|
a("div", U6, [
|
|
3425
3427
|
(e(), K(B1(c.value), {
|
|
3426
3428
|
size: 18,
|
|
3427
|
-
class: g(["mt-0.5 shrink-0",
|
|
3429
|
+
class: g(["mt-0.5 shrink-0", b(o2)(b(j6)[n.variant], n.theme)]),
|
|
3428
3430
|
"aria-hidden": "true"
|
|
3429
3431
|
}, null, 8, ["class"])),
|
|
3430
3432
|
a("div", O6, [
|
|
3431
3433
|
n.title || n.lead ? (e(), l(W, { key: 0 }, [
|
|
3432
|
-
n.title ? (e(), l("strong", Y6,
|
|
3433
|
-
n.lead ? (e(), l("span", q6,
|
|
3434
|
+
n.title ? (e(), l("strong", Y6, f(n.title), 1)) : m("", !0),
|
|
3435
|
+
n.lead ? (e(), l("span", q6, f(n.lead), 1)) : m("", !0)
|
|
3434
3436
|
], 64)) : Q(o.$slots, "default", { key: 1 })
|
|
3435
3437
|
]),
|
|
3436
3438
|
n.dismissible ? (e(), l("button", {
|
|
@@ -3438,9 +3440,9 @@ const T6 = {
|
|
|
3438
3440
|
type: "button",
|
|
3439
3441
|
"aria-label": n.dismissLabel,
|
|
3440
3442
|
onClick: z[0] || (z[0] = (k) => s("close")),
|
|
3441
|
-
class: g(["mt-1 shrink-0 cursor-pointer hover:text-inherit focus-visible:outline-2 focus-visible:outline-offset-3 focus-visible:outline-current",
|
|
3443
|
+
class: g(["mt-1 shrink-0 cursor-pointer hover:text-inherit focus-visible:outline-2 focus-visible:outline-offset-3 focus-visible:outline-current", b(o2)(b(I6), n.theme)])
|
|
3442
3444
|
}, [
|
|
3443
|
-
M(
|
|
3445
|
+
M(b($1), {
|
|
3444
3446
|
size: 14,
|
|
3445
3447
|
"aria-hidden": "true"
|
|
3446
3448
|
})
|
|
@@ -3487,14 +3489,14 @@ const T6 = {
|
|
|
3487
3489
|
Q(h.$slots, "icon"),
|
|
3488
3490
|
a("span", n9, [
|
|
3489
3491
|
Q(h.$slots, "title", {}, () => [
|
|
3490
|
-
m1(
|
|
3492
|
+
m1(f(n.title), 1)
|
|
3491
3493
|
])
|
|
3492
3494
|
]),
|
|
3493
3495
|
Q(h.$slots, "actions")
|
|
3494
3496
|
]),
|
|
3495
3497
|
n.subtitle || h.$slots.subtitle ? (e(), l("p", e9, [
|
|
3496
3498
|
Q(h.$slots, "subtitle", {}, () => [
|
|
3497
|
-
m1(
|
|
3499
|
+
m1(f(n.subtitle), 1)
|
|
3498
3500
|
])
|
|
3499
3501
|
])) : m("", !0)
|
|
3500
3502
|
], 2)) : m("", !0),
|
|
@@ -3526,7 +3528,7 @@ const T6 = {
|
|
|
3526
3528
|
class: g(n.actionPosition === "top-right" ? "flex items-start justify-between gap-4" : "")
|
|
3527
3529
|
}, [
|
|
3528
3530
|
a("div", i9, [
|
|
3529
|
-
a("h3", o9,
|
|
3531
|
+
a("h3", o9, f(n.title), 1),
|
|
3530
3532
|
a("div", s9, [
|
|
3531
3533
|
Q(h.$slots, "default")
|
|
3532
3534
|
])
|
|
@@ -3553,7 +3555,7 @@ const T6 = {
|
|
|
3553
3555
|
setup(n) {
|
|
3554
3556
|
return (h, t) => (e(), l("div", {
|
|
3555
3557
|
class: "wpic-skeleton animate-pulse bg-zinc-200 dark:bg-zinc-800",
|
|
3556
|
-
style:
|
|
3558
|
+
style: b1({
|
|
3557
3559
|
width: n.width ?? "100%",
|
|
3558
3560
|
height: n.height ?? "1rem",
|
|
3559
3561
|
borderRadius: n.rounded ?? "4px"
|
|
@@ -3572,7 +3574,7 @@ const T6 = {
|
|
|
3572
3574
|
size: n.size,
|
|
3573
3575
|
tone: "muted"
|
|
3574
3576
|
}, null, 8, ["size"]),
|
|
3575
|
-
a("span", u9,
|
|
3577
|
+
a("span", u9, f(n.text), 1)
|
|
3576
3578
|
]));
|
|
3577
3579
|
}
|
|
3578
3580
|
}), h9 = ["aria-checked", "aria-label", "aria-labelledby", "disabled"], Xl = /* @__PURE__ */ X({
|
|
@@ -3615,10 +3617,10 @@ const T6 = {
|
|
|
3615
3617
|
], 2)) : m("", !0)
|
|
3616
3618
|
], 2));
|
|
3617
3619
|
}
|
|
3618
|
-
}), v9 = ["data-wpic-theme"], m9 = ["aria-label"],
|
|
3620
|
+
}), v9 = ["data-wpic-theme"], m9 = ["aria-label"], b9 = {
|
|
3619
3621
|
key: 0,
|
|
3620
3622
|
class: "flex items-center justify-between px-5 py-3 shrink-0"
|
|
3621
|
-
},
|
|
3623
|
+
}, f9 = { class: "min-w-0 flex-1" }, z9 = {
|
|
3622
3624
|
key: 0,
|
|
3623
3625
|
class: "text-base font-semibold text-zinc-900 dark:text-zinc-100 leading-tight"
|
|
3624
3626
|
}, g9 = {
|
|
@@ -3639,9 +3641,9 @@ const T6 = {
|
|
|
3639
3641
|
const t = V2(), s = h, u = S(!1);
|
|
3640
3642
|
return p2("wpic-pagination-url-sync", !1), (c, o) => (e(), K(U1, { to: "body" }, [
|
|
3641
3643
|
a("div", {
|
|
3642
|
-
style:
|
|
3643
|
-
"data-wpic-theme":
|
|
3644
|
-
class: g([{ "wpic-theme":
|
|
3644
|
+
style: b1(b(t)?.variables),
|
|
3645
|
+
"data-wpic-theme": b(t)?.mode,
|
|
3646
|
+
class: g([{ "wpic-theme": b(t), dark: b(t)?.mode === "dark" }, "wpic-modal-overlay flex items-center justify-center bg-black/50 backdrop-blur-sm px-4", n.zIndex]),
|
|
3645
3647
|
onMousedown: o[2] || (o[2] = z1((z) => u.value = !0, ["self"])),
|
|
3646
3648
|
onMouseup: o[3] || (o[3] = z1((z) => u.value && s("close"), ["self"]))
|
|
3647
3649
|
}, [
|
|
@@ -3656,11 +3658,11 @@ const T6 = {
|
|
|
3656
3658
|
n.size === "sm" ? "wpic-modal-sm" : n.size === "lg" ? "wpic-modal-lg" : n.size === "xl" ? "wpic-modal-xl" : n.size === "2xl" ? "wpic-modal-2xl" : n.size === "full" ? "wpic-modal-full" : "wpic-modal-md"
|
|
3657
3659
|
])
|
|
3658
3660
|
}, [
|
|
3659
|
-
n.title || c.$slots.header || !n.hideClose ? (e(), l("div",
|
|
3661
|
+
n.title || c.$slots.header || !n.hideClose ? (e(), l("div", b9, [
|
|
3660
3662
|
Q(c.$slots, "header", {}, () => [
|
|
3661
|
-
a("div",
|
|
3662
|
-
n.title ? (e(), l("h2", z9,
|
|
3663
|
-
n.subtitle ? (e(), l("p", g9,
|
|
3663
|
+
a("div", f9, [
|
|
3664
|
+
n.title ? (e(), l("h2", z9, f(n.title), 1)) : m("", !0),
|
|
3665
|
+
n.subtitle ? (e(), l("p", g9, f(n.subtitle), 1)) : m("", !0)
|
|
3664
3666
|
])
|
|
3665
3667
|
]),
|
|
3666
3668
|
n.hideClose ? m("", !0) : (e(), l("button", {
|
|
@@ -3670,7 +3672,7 @@ const T6 = {
|
|
|
3670
3672
|
onClick: o[0] || (o[0] = (z) => s("close")),
|
|
3671
3673
|
class: "ml-3 shrink-0 w-6 h-6 flex items-center justify-center rounded-md text-zinc-400 dark:text-zinc-500 hover:text-zinc-600 dark:hover:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition cursor-pointer"
|
|
3672
3674
|
}, [
|
|
3673
|
-
M(
|
|
3675
|
+
M(b($1), { size: 14 })
|
|
3674
3676
|
]))
|
|
3675
3677
|
])) : m("", !0),
|
|
3676
3678
|
a("div", {
|
|
@@ -3720,14 +3722,14 @@ const T6 = {
|
|
|
3720
3722
|
class: g(["flex items-center justify-between", n.noPadding ? "" : "px-5 pt-5 pb-0"])
|
|
3721
3723
|
}, [
|
|
3722
3724
|
Q(s.$slots, "header", {}, () => [
|
|
3723
|
-
n.title ? (e(), l("span", p9,
|
|
3725
|
+
n.title ? (e(), l("span", p9, f(n.title), 1)) : m("", !0)
|
|
3724
3726
|
]),
|
|
3725
3727
|
n.hideClose ? m("", !0) : (e(), l("button", {
|
|
3726
3728
|
key: 0,
|
|
3727
3729
|
onClick: u[0] || (u[0] = (c) => t("close")),
|
|
3728
3730
|
class: "text-zinc-400 dark:text-zinc-500 hover:text-zinc-600 dark:hover:text-zinc-400 cursor-pointer ml-auto shrink-0"
|
|
3729
3731
|
}, [
|
|
3730
|
-
M(
|
|
3732
|
+
M(b($1), { size: 16 })
|
|
3731
3733
|
]))
|
|
3732
3734
|
], 2)) : m("", !0),
|
|
3733
3735
|
a("div", {
|
|
@@ -3794,7 +3796,7 @@ const T6 = {
|
|
|
3794
3796
|
"leave-to-class": "opacity-0 translate-x-4"
|
|
3795
3797
|
}, {
|
|
3796
3798
|
default: r1(() => [
|
|
3797
|
-
(e(!0), l(W, null, a1(
|
|
3799
|
+
(e(!0), l(W, null, a1(b(h).toasts, (u) => (e(), l("div", {
|
|
3798
3800
|
key: u.id,
|
|
3799
3801
|
class: "pointer-events-auto flex rounded-xl shadow-[0_8px_32px_rgba(0,0,0,0.4)] border border-white/10 bg-[#1c1c1e]/95 backdrop-blur-md"
|
|
3800
3802
|
}, [
|
|
@@ -3846,18 +3848,18 @@ const T6 = {
|
|
|
3846
3848
|
])]))
|
|
3847
3849
|
]),
|
|
3848
3850
|
a("div", L9, [
|
|
3849
|
-
a("p", B9,
|
|
3850
|
-
u.description ? (e(), l("p", $9,
|
|
3851
|
+
a("p", B9, f(u.title || u.message), 1),
|
|
3852
|
+
u.description ? (e(), l("p", $9, f(u.description), 1)) : m("", !0),
|
|
3851
3853
|
u.action ? (e(), l("button", {
|
|
3852
3854
|
key: 1,
|
|
3853
3855
|
onClick: (c) => {
|
|
3854
|
-
u.action.fn(),
|
|
3856
|
+
u.action.fn(), b(h).remove(u.id);
|
|
3855
3857
|
},
|
|
3856
3858
|
class: "mt-2 text-base font-semibold text-white/70 hover:text-white underline underline-offset-2 transition cursor-pointer"
|
|
3857
|
-
},
|
|
3859
|
+
}, f(u.action.label), 9, A9)) : m("", !0)
|
|
3858
3860
|
]),
|
|
3859
3861
|
a("button", {
|
|
3860
|
-
onClick: (c) =>
|
|
3862
|
+
onClick: (c) => b(h).remove(u.id),
|
|
3861
3863
|
class: "mt-0.5 shrink-0 text-white/30 hover:text-white/70 transition cursor-pointer"
|
|
3862
3864
|
}, [...s[3] || (s[3] = [
|
|
3863
3865
|
a("svg", {
|
|
@@ -3924,8 +3926,8 @@ const T6 = {
|
|
|
3924
3926
|
key: 0,
|
|
3925
3927
|
class: g(["tab-icon", `size-${n.size}`])
|
|
3926
3928
|
}, null, 8, ["class"])) : m("", !0),
|
|
3927
|
-
a("span", P9,
|
|
3928
|
-
k.badge ? (e(), l("span", T9,
|
|
3929
|
+
a("span", P9, f(k.label), 1),
|
|
3930
|
+
k.badge ? (e(), l("span", T9, f(k.badge), 1)) : m("", !0)
|
|
3929
3931
|
], 10, H9))), 128))
|
|
3930
3932
|
]),
|
|
3931
3933
|
o.$slots.actions ? (e(), l("div", j9, [
|
|
@@ -3969,9 +3971,9 @@ const T6 = {
|
|
|
3969
3971
|
"aria-current": o.value === n.modelValue ? "step" : void 0,
|
|
3970
3972
|
onClick: (k) => o.value !== n.modelValue && t("update:modelValue", o.value)
|
|
3971
3973
|
}, [
|
|
3972
|
-
a("span", I9,
|
|
3973
|
-
a("span", R9,
|
|
3974
|
-
o.completed ? (e(), K(
|
|
3974
|
+
a("span", I9, f(z + 1), 1),
|
|
3975
|
+
a("span", R9, f(o.label), 1),
|
|
3976
|
+
o.completed ? (e(), K(b(O1), {
|
|
3975
3977
|
key: 0,
|
|
3976
3978
|
size: 17,
|
|
3977
3979
|
class: "shrink-0 text-indigo-500",
|
|
@@ -3986,7 +3988,7 @@ const T6 = {
|
|
|
3986
3988
|
class: "block py-1.5 text-sm text-muted transition-colors hover:text-main",
|
|
3987
3989
|
href: k.href,
|
|
3988
3990
|
onClick: z1((C) => s(k.href), ["prevent"])
|
|
3989
|
-
},
|
|
3991
|
+
}, f(k.label), 9, N9)
|
|
3990
3992
|
]))), 128))
|
|
3991
3993
|
])) : m("", !0)
|
|
3992
3994
|
]))), 128))
|
|
@@ -4018,8 +4020,8 @@ const la = /* @__PURE__ */ Y1(K9, [["render", Y9]]), q9 = { class: "grid gap-6 b
|
|
|
4018
4020
|
setup(n) {
|
|
4019
4021
|
return (h, t) => (e(), l("section", q9, [
|
|
4020
4022
|
a("div", Q9, [
|
|
4021
|
-
a("h2", J9,
|
|
4022
|
-
n.description ? (e(), l("p", X9,
|
|
4023
|
+
a("h2", J9, f(n.title), 1),
|
|
4024
|
+
n.description ? (e(), l("p", X9, f(n.description), 1)) : m("", !0),
|
|
4023
4025
|
Q(h.$slots, "aside")
|
|
4024
4026
|
]),
|
|
4025
4027
|
a("div", {
|
|
@@ -4112,11 +4114,11 @@ const ca = /* @__PURE__ */ Y1(G9, [["render", n7]]), e7 = ["placeholder", "rows"
|
|
|
4112
4114
|
n.error ? "border-red-500" : "border-zinc-200 dark:border-zinc-800 hover:border-hover focus:border-wpic-green"
|
|
4113
4115
|
]
|
|
4114
4116
|
}), [
|
|
4115
|
-
n.placeholder ? (e(), l("option", l7,
|
|
4117
|
+
n.placeholder ? (e(), l("option", l7, f(n.placeholder), 1)) : m("", !0),
|
|
4116
4118
|
(e(!0), l(W, null, a1(n.options ?? [], (u) => (e(), l("option", {
|
|
4117
4119
|
key: typeof u == "object" ? u.value : u,
|
|
4118
4120
|
value: typeof u == "object" ? u.value : u
|
|
4119
|
-
},
|
|
4121
|
+
}, f(typeof u == "object" ? u.label : u), 9, a7))), 128))
|
|
4120
4122
|
], 16)), [
|
|
4121
4123
|
[t3, h.value]
|
|
4122
4124
|
]);
|
|
@@ -4124,7 +4126,7 @@ const ca = /* @__PURE__ */ Y1(G9, [["render", n7]]), e7 = ["placeholder", "rows"
|
|
|
4124
4126
|
}), c7 = { class: "relative" }, i7 = { class: "flex-1 text-left truncate" }, o7 = { class: "flex gap-6" }, s7 = { class: "flex-1 min-w-0" }, r7 = { class: "flex items-center justify-between mb-3" }, d7 = { class: "font-semibold text-zinc-900 dark:text-zinc-100" }, u7 = {
|
|
4125
4127
|
key: 1,
|
|
4126
4128
|
class: "w-6"
|
|
4127
|
-
}, h7 = { class: "grid grid-cols-7 mb-1" }, v7 = { class: "grid grid-cols-7 gap-y-0.5" }, m7 = ["onClick", "onMouseenter"],
|
|
4129
|
+
}, h7 = { class: "grid grid-cols-7 mb-1" }, v7 = { class: "grid grid-cols-7 gap-y-0.5" }, m7 = ["onClick", "onMouseenter"], b7 = { class: "flex-1 min-w-0" }, f7 = { class: "flex items-center justify-between mb-3" }, z7 = { class: "font-semibold text-zinc-900 dark:text-zinc-100" }, g7 = { class: "grid grid-cols-7 mb-1" }, p7 = { class: "grid grid-cols-7 gap-y-0.5" }, C7 = ["onClick", "onMouseenter"], k7 = {
|
|
4128
4130
|
key: 0,
|
|
4129
4131
|
class: "mt-2 pt-2 border-t border-zinc-200 dark:border-zinc-800 text-sm text-zinc-400 dark:text-zinc-500 text-center"
|
|
4130
4132
|
}, ra = /* @__PURE__ */ X({
|
|
@@ -4137,13 +4139,13 @@ const ca = /* @__PURE__ */ Y1(G9, [["render", n7]]), e7 = ["placeholder", "rows"
|
|
|
4137
4139
|
},
|
|
4138
4140
|
emits: ["update:modelValue"],
|
|
4139
4141
|
setup(n, { emit: h }) {
|
|
4140
|
-
const t = n, s = h, u = y(() => t.mode === "range"), c = S(!1), o = S(null), z = S(null), { floatingStyles: k } =
|
|
4142
|
+
const t = n, s = h, u = y(() => t.mode === "range"), c = S(!1), o = S(null), z = S(null), { floatingStyles: k } = b2(o, z, {
|
|
4141
4143
|
placement: "bottom-start",
|
|
4142
4144
|
middleware: [h2(4), v2({ padding: 8 }), m2({ padding: 8 })],
|
|
4143
|
-
whileElementsMounted:
|
|
4145
|
+
whileElementsMounted: f2
|
|
4144
4146
|
}), C = /* @__PURE__ */ new Date(), i = S(C.getFullYear()), j = S(C.getMonth()), $ = y(() => j.value === 11 ? i.value + 1 : i.value), T = y(() => j.value === 11 ? 0 : j.value + 1), F = S(null), L = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], x = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], Z = (V, R) => {
|
|
4145
|
-
const
|
|
4146
|
-
for (let N =
|
|
4147
|
+
const f1 = (new Date(V, R, 1).getDay() + 6) % 7, y1 = new Date(V, R + 1, 0).getDate(), P1 = new Date(V, R, 0).getDate(), A = [];
|
|
4148
|
+
for (let N = f1 - 1; N >= 0; N--)
|
|
4147
4149
|
A.push({ day: P1 - N, month: R - 1, year: V, outside: !0 });
|
|
4148
4150
|
for (let N = 1; N <= y1; N++)
|
|
4149
4151
|
A.push({ day: N, month: R, year: V, outside: !1 });
|
|
@@ -4160,8 +4162,8 @@ const ca = /* @__PURE__ */ Y1(G9, [["render", n7]]), e7 = ["placeholder", "rows"
|
|
|
4160
4162
|
return I.value && !F.value ? R > P.value && R < U.value : !1;
|
|
4161
4163
|
}, c1 = (V) => {
|
|
4162
4164
|
if (!u.value || !F.value || !H.value) return !1;
|
|
4163
|
-
const R = q(V), [l1,
|
|
4164
|
-
return R > l1 && R <
|
|
4165
|
+
const R = q(V), [l1, f1] = [F.value, H.value].sort();
|
|
4166
|
+
return R > l1 && R < f1;
|
|
4165
4167
|
}, w1 = (V) => {
|
|
4166
4168
|
if (!u.value) return !1;
|
|
4167
4169
|
const R = q(V);
|
|
@@ -4180,8 +4182,8 @@ const ca = /* @__PURE__ */ Y1(G9, [["render", n7]]), e7 = ["placeholder", "rows"
|
|
|
4180
4182
|
F.value = R;
|
|
4181
4183
|
return;
|
|
4182
4184
|
}
|
|
4183
|
-
const [l1,
|
|
4184
|
-
s("update:modelValue", { start: l1, end:
|
|
4185
|
+
const [l1, f1] = [F.value, R].sort();
|
|
4186
|
+
s("update:modelValue", { start: l1, end: f1 }), F.value = null, c.value = !1;
|
|
4185
4187
|
}, d1 = (V) => {
|
|
4186
4188
|
V.stopPropagation(), s("update:modelValue", null), F.value = null;
|
|
4187
4189
|
}, G = () => {
|
|
@@ -4189,8 +4191,8 @@ const ca = /* @__PURE__ */ Y1(G9, [["render", n7]]), e7 = ["placeholder", "rows"
|
|
|
4189
4191
|
}, p1 = () => {
|
|
4190
4192
|
j.value === 11 ? (j.value = 0, i.value++) : j.value++;
|
|
4191
4193
|
}, M1 = (V) => {
|
|
4192
|
-
const [R, l1,
|
|
4193
|
-
return `${
|
|
4194
|
+
const [R, l1, f1] = V.split("-");
|
|
4195
|
+
return `${f1}/${l1}/${R}`;
|
|
4194
4196
|
}, E = y(() => {
|
|
4195
4197
|
if (!u.value) return t.modelValue ? M1(t.modelValue) : "";
|
|
4196
4198
|
const V = t.modelValue;
|
|
@@ -4216,19 +4218,19 @@ const ca = /* @__PURE__ */ Y1(G9, [["render", n7]]), e7 = ["placeholder", "rows"
|
|
|
4216
4218
|
E.value ? "text-zinc-900 dark:text-zinc-100" : "text-zinc-400 dark:text-zinc-500"
|
|
4217
4219
|
])
|
|
4218
4220
|
}, [
|
|
4219
|
-
M(
|
|
4221
|
+
M(b(C0), {
|
|
4220
4222
|
size: 13,
|
|
4221
4223
|
class: "shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
4222
4224
|
}),
|
|
4223
|
-
a("span", i7,
|
|
4225
|
+
a("span", i7, f(E.value || n.placeholder || (u.value ? "Select date range" : "Select date")), 1),
|
|
4224
4226
|
n.modelValue ? (e(), l("button", {
|
|
4225
4227
|
key: 0,
|
|
4226
4228
|
onClick: d1,
|
|
4227
4229
|
type: "button",
|
|
4228
4230
|
class: "text-zinc-400 dark:text-zinc-500 hover:text-zinc-900 dark:hover:text-zinc-100 transition cursor-pointer shrink-0"
|
|
4229
4231
|
}, [
|
|
4230
|
-
M(
|
|
4231
|
-
])) : (e(), K(
|
|
4232
|
+
M(b($1), { size: 12 })
|
|
4233
|
+
])) : (e(), K(b(D1), {
|
|
4232
4234
|
key: 1,
|
|
4233
4235
|
size: 14,
|
|
4234
4236
|
class: "shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
@@ -4238,7 +4240,7 @@ const ca = /* @__PURE__ */ Y1(G9, [["render", n7]]), e7 = ["placeholder", "rows"
|
|
|
4238
4240
|
key: 0,
|
|
4239
4241
|
ref_key: "floatingRef",
|
|
4240
4242
|
ref: z,
|
|
4241
|
-
style:
|
|
4243
|
+
style: b1({ ...b(k), minWidth: u.value ? "560px" : "280px" }),
|
|
4242
4244
|
class: "bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-xl shadow-xl z-50 p-3"
|
|
4243
4245
|
}, [
|
|
4244
4246
|
a("div", o7, [
|
|
@@ -4249,69 +4251,69 @@ const ca = /* @__PURE__ */ Y1(G9, [["render", n7]]), e7 = ["placeholder", "rows"
|
|
|
4249
4251
|
type: "button",
|
|
4250
4252
|
class: "p-1 rounded hover:bg-black/5 dark:hover:bg-white/5 text-zinc-400 dark:text-zinc-500 hover:text-zinc-900 dark:hover:text-zinc-100 transition cursor-pointer"
|
|
4251
4253
|
}, [
|
|
4252
|
-
M(
|
|
4254
|
+
M(b(C2), { size: 14 })
|
|
4253
4255
|
]),
|
|
4254
|
-
a("span", d7,
|
|
4256
|
+
a("span", d7, f(L[j.value]) + " " + f(i.value), 1),
|
|
4255
4257
|
u.value ? (e(), l("div", u7)) : (e(), l("button", {
|
|
4256
4258
|
key: 0,
|
|
4257
4259
|
onClick: p1,
|
|
4258
4260
|
type: "button",
|
|
4259
4261
|
class: "p-1 rounded hover:bg-black/5 dark:hover:bg-white/5 text-zinc-400 dark:text-zinc-500 hover:text-zinc-900 dark:hover:text-zinc-100 transition cursor-pointer"
|
|
4260
4262
|
}, [
|
|
4261
|
-
M(
|
|
4263
|
+
M(b(j1), { size: 14 })
|
|
4262
4264
|
]))
|
|
4263
4265
|
]),
|
|
4264
4266
|
a("div", h7, [
|
|
4265
4267
|
(e(), l(W, null, a1(x, (l1) => a("div", {
|
|
4266
4268
|
key: l1,
|
|
4267
4269
|
class: "text-center text-sm font-semibold text-zinc-400 dark:text-zinc-500 py-1"
|
|
4268
|
-
},
|
|
4270
|
+
}, f(l1), 1)), 64))
|
|
4269
4271
|
]),
|
|
4270
4272
|
a("div", v7, [
|
|
4271
|
-
(e(!0), l(W, null, a1(o1.value, (l1,
|
|
4272
|
-
key:
|
|
4273
|
+
(e(!0), l(W, null, a1(o1.value, (l1, f1) => (e(), l("button", {
|
|
4274
|
+
key: f1,
|
|
4273
4275
|
onClick: (y1) => J(l1),
|
|
4274
4276
|
onMouseenter: (y1) => H.value = q(l1),
|
|
4275
4277
|
onMouseleave: R[1] || (R[1] = (y1) => H.value = null),
|
|
4276
4278
|
type: "button",
|
|
4277
4279
|
class: g(["h-8 w-full flex items-center justify-center rounded-lg transition cursor-pointer", u1(l1)])
|
|
4278
|
-
},
|
|
4280
|
+
}, f(l1.day), 43, m7))), 128))
|
|
4279
4281
|
])
|
|
4280
4282
|
]),
|
|
4281
4283
|
u.value ? (e(), l(W, { key: 0 }, [
|
|
4282
4284
|
R[5] || (R[5] = a("div", { class: "w-px bg-zinc-200 dark:bg-zinc-700 shrink-0" }, null, -1)),
|
|
4283
|
-
a("div",
|
|
4284
|
-
a("div",
|
|
4285
|
+
a("div", b7, [
|
|
4286
|
+
a("div", f7, [
|
|
4285
4287
|
R[4] || (R[4] = a("div", { class: "w-6" }, null, -1)),
|
|
4286
|
-
a("span", z7,
|
|
4288
|
+
a("span", z7, f(L[T.value]) + " " + f($.value), 1),
|
|
4287
4289
|
a("button", {
|
|
4288
4290
|
onClick: p1,
|
|
4289
4291
|
type: "button",
|
|
4290
4292
|
class: "p-1 rounded hover:bg-black/5 dark:hover:bg-white/5 text-zinc-400 dark:text-zinc-500 hover:text-zinc-900 dark:hover:text-zinc-100 transition cursor-pointer"
|
|
4291
4293
|
}, [
|
|
4292
|
-
M(
|
|
4294
|
+
M(b(j1), { size: 14 })
|
|
4293
4295
|
])
|
|
4294
4296
|
]),
|
|
4295
4297
|
a("div", g7, [
|
|
4296
4298
|
(e(), l(W, null, a1(x, (l1) => a("div", {
|
|
4297
4299
|
key: l1,
|
|
4298
4300
|
class: "text-center text-sm font-semibold text-zinc-400 dark:text-zinc-500 py-1"
|
|
4299
|
-
},
|
|
4301
|
+
}, f(l1), 1)), 64))
|
|
4300
4302
|
]),
|
|
4301
4303
|
a("div", p7, [
|
|
4302
|
-
(e(!0), l(W, null, a1(g1.value, (l1,
|
|
4303
|
-
key:
|
|
4304
|
+
(e(!0), l(W, null, a1(g1.value, (l1, f1) => (e(), l("button", {
|
|
4305
|
+
key: f1,
|
|
4304
4306
|
onClick: (y1) => J(l1),
|
|
4305
4307
|
onMouseenter: (y1) => H.value = q(l1),
|
|
4306
4308
|
onMouseleave: R[2] || (R[2] = (y1) => H.value = null),
|
|
4307
4309
|
type: "button",
|
|
4308
4310
|
class: g(["h-8 w-full flex items-center justify-center rounded-lg transition cursor-pointer", u1(l1)])
|
|
4309
|
-
},
|
|
4311
|
+
}, f(l1.day), 43, C7))), 128))
|
|
4310
4312
|
])
|
|
4311
4313
|
])
|
|
4312
4314
|
], 64)) : m("", !0)
|
|
4313
4315
|
]),
|
|
4314
|
-
u.value ? (e(), l("div", k7,
|
|
4316
|
+
u.value ? (e(), l("div", k7, f(F.value ? "Now click the end date" : I.value ? "Click any day to reset" : "Click start date"), 1)) : m("", !0)
|
|
4315
4317
|
], 4)) : m("", !0),
|
|
4316
4318
|
c.value ? (e(), l("div", {
|
|
4317
4319
|
key: 1,
|
|
@@ -4379,7 +4381,7 @@ const ha = /* @__PURE__ */ Y1($7, [["render", A7]]), va = /* @__PURE__ */ X({
|
|
|
4379
4381
|
_: 3
|
|
4380
4382
|
}, 8, ["colspan", "class"]));
|
|
4381
4383
|
}
|
|
4382
|
-
}), S7 = ["title"],
|
|
4384
|
+
}), S7 = ["title"], ba = /* @__PURE__ */ X({
|
|
4383
4385
|
__name: "CollapseToggle",
|
|
4384
4386
|
props: {
|
|
4385
4387
|
collapsed: { type: Boolean },
|
|
@@ -4392,16 +4394,16 @@ const ha = /* @__PURE__ */ Y1($7, [["render", A7]]), va = /* @__PURE__ */ X({
|
|
|
4392
4394
|
class: "p-1 rounded hover:bg-black/5 dark:hover:bg-white/10 text-zinc-400 dark:text-zinc-500 hover:text-zinc-900 dark:hover:text-zinc-100 cursor-pointer transition",
|
|
4393
4395
|
title: n.collapsed ? "Expand" : "Collapse"
|
|
4394
4396
|
}, [
|
|
4395
|
-
n.collapsed ? (e(), K(
|
|
4397
|
+
n.collapsed ? (e(), K(b(M3), {
|
|
4396
4398
|
key: 0,
|
|
4397
4399
|
size: n.size ?? 16
|
|
4398
|
-
}, null, 8, ["size"])) : (e(), K(
|
|
4400
|
+
}, null, 8, ["size"])) : (e(), K(b(V3), {
|
|
4399
4401
|
key: 1,
|
|
4400
4402
|
size: n.size ?? 16
|
|
4401
4403
|
}, null, 8, ["size"]))
|
|
4402
4404
|
], 8, S7));
|
|
4403
4405
|
}
|
|
4404
|
-
}), F7 = { class: "bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-2xl p-6 w-[360px] mx-4 shadow-[0_25px_50px_rgba(0,0,0,0.4)]" }, H7 = { class: "flex gap-4 mb-5" }, P7 = { class: "text-base text-zinc-900 dark:text-zinc-100 font-semibold leading-tight" }, T7 = { class: "text-base text-zinc-400 dark:text-zinc-500 mt-1.5 leading-relaxed" }, j7 = { class: "flex gap-2 justify-end" },
|
|
4406
|
+
}), F7 = { class: "bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-2xl p-6 w-[360px] mx-4 shadow-[0_25px_50px_rgba(0,0,0,0.4)]" }, H7 = { class: "flex gap-4 mb-5" }, P7 = { class: "text-base text-zinc-900 dark:text-zinc-100 font-semibold leading-tight" }, T7 = { class: "text-base text-zinc-400 dark:text-zinc-500 mt-1.5 leading-relaxed" }, j7 = { class: "flex gap-2 justify-end" }, fa = /* @__PURE__ */ X({
|
|
4405
4407
|
__name: "ConfirmModal",
|
|
4406
4408
|
props: {
|
|
4407
4409
|
title: {},
|
|
@@ -4428,14 +4430,14 @@ const ha = /* @__PURE__ */ Y1($7, [["render", A7]]), va = /* @__PURE__ */ X({
|
|
|
4428
4430
|
n.danger !== !1 ? "bg-red-500/10" : "bg-indigo-500/10"
|
|
4429
4431
|
])
|
|
4430
4432
|
}, [
|
|
4431
|
-
M(
|
|
4433
|
+
M(b(L3), {
|
|
4432
4434
|
size: 22,
|
|
4433
4435
|
class: g(n.danger !== !1 ? "text-red-400" : "text-wpic-green")
|
|
4434
4436
|
}, null, 8, ["class"])
|
|
4435
4437
|
], 2),
|
|
4436
4438
|
a("div", null, [
|
|
4437
|
-
a("h3", P7,
|
|
4438
|
-
a("p", T7,
|
|
4439
|
+
a("h3", P7, f(n.title ?? "Confirm"), 1),
|
|
4440
|
+
a("p", T7, f(n.message ?? "Are you sure?"), 1)
|
|
4439
4441
|
])
|
|
4440
4442
|
]),
|
|
4441
4443
|
a("div", j7, [
|
|
@@ -4445,7 +4447,7 @@ const ha = /* @__PURE__ */ Y1($7, [["render", A7]]), va = /* @__PURE__ */ X({
|
|
|
4445
4447
|
onClick: u[0] || (u[0] = (c) => t("cancel"))
|
|
4446
4448
|
}, {
|
|
4447
4449
|
default: r1(() => [
|
|
4448
|
-
m1(
|
|
4450
|
+
m1(f(n.cancelText ?? "Cancel"), 1)
|
|
4449
4451
|
]),
|
|
4450
4452
|
_: 1
|
|
4451
4453
|
}, 8, ["disabled"]),
|
|
@@ -4455,7 +4457,7 @@ const ha = /* @__PURE__ */ Y1($7, [["render", A7]]), va = /* @__PURE__ */ X({
|
|
|
4455
4457
|
onClick: u[1] || (u[1] = (c) => t("confirm"))
|
|
4456
4458
|
}, {
|
|
4457
4459
|
default: r1(() => [
|
|
4458
|
-
m1(
|
|
4460
|
+
m1(f(n.confirmText ?? "Confirm"), 1)
|
|
4459
4461
|
]),
|
|
4460
4462
|
_: 1
|
|
4461
4463
|
}, 8, ["variant", "loading"])
|
|
@@ -4517,7 +4519,7 @@ const ha = /* @__PURE__ */ Y1($7, [["render", A7]]), va = /* @__PURE__ */ X({
|
|
|
4517
4519
|
key: 1,
|
|
4518
4520
|
class: "border-t border-zinc-200 dark:border-zinc-800 shrink-0"
|
|
4519
4521
|
};
|
|
4520
|
-
let
|
|
4522
|
+
let f0 = 0, z0 = "";
|
|
4521
4523
|
const za = /* @__PURE__ */ X({
|
|
4522
4524
|
__name: "WSlidePanel",
|
|
4523
4525
|
props: {
|
|
@@ -4537,14 +4539,14 @@ const za = /* @__PURE__ */ X({
|
|
|
4537
4539
|
const u = y(() => t.width && /^(?:[0-9]|calc\(|min\(|max\(|clamp\(|var\()/.test(t.width) ? t.width : void 0), c = "var(--wpic-docked-chat-width, var(--webber-panel-width, 0px))";
|
|
4538
4540
|
let o = !1;
|
|
4539
4541
|
function z() {
|
|
4540
|
-
o && (o = !1, --
|
|
4542
|
+
o && (o = !1, --f0 === 0 && (document.body.style.overflow = z0));
|
|
4541
4543
|
}
|
|
4542
4544
|
V1(() => t.modelValue, (C) => {
|
|
4543
4545
|
if (!C) {
|
|
4544
4546
|
z();
|
|
4545
4547
|
return;
|
|
4546
4548
|
}
|
|
4547
|
-
o || (o = !0,
|
|
4549
|
+
o || (o = !0, f0++ === 0 && (z0 = document.body.style.overflow, document.body.style.overflow = "hidden"));
|
|
4548
4550
|
}, { immediate: !0 }), l3(z);
|
|
4549
4551
|
function k() {
|
|
4550
4552
|
s("update:modelValue", !1);
|
|
@@ -4558,7 +4560,7 @@ const za = /* @__PURE__ */ X({
|
|
|
4558
4560
|
n.modelValue ? (e(), l("div", {
|
|
4559
4561
|
key: 0,
|
|
4560
4562
|
class: "fixed inset-0 bg-black/30 backdrop-blur-[2px]",
|
|
4561
|
-
style:
|
|
4563
|
+
style: b1({ zIndex: (n.zIndex ?? 70) - 1, right: c }),
|
|
4562
4564
|
onClick: i[0] || (i[0] = (j) => k())
|
|
4563
4565
|
}, null, 4)) : m("", !0)
|
|
4564
4566
|
]),
|
|
@@ -4569,20 +4571,20 @@ const za = /* @__PURE__ */ X({
|
|
|
4569
4571
|
n.modelValue ? (e(), l("div", {
|
|
4570
4572
|
key: 0,
|
|
4571
4573
|
class: g(["wpic-slide-panel fixed box-border flex flex-col bg-white dark:bg-zinc-900 border-zinc-200 dark:border-zinc-800 shadow-2xl", n.island ? "top-3 bottom-3 rounded-xl border overflow-hidden" : "top-0 h-full border-l", u.value ? "" : n.width ?? "w-[420px]"]),
|
|
4572
|
-
style:
|
|
4574
|
+
style: b1({ width: u.value, zIndex: n.zIndex ?? 70, right: n.island ? `calc(${c} + 12px)` : c, maxWidth: `calc(100vw - ${c}${n.island ? " - 24px" : ""})` })
|
|
4573
4575
|
}, [
|
|
4574
4576
|
n.hideHeader ? m("", !0) : (e(), l("div", W7, [
|
|
4575
4577
|
Q(C.$slots, "header", {}, () => [
|
|
4576
4578
|
a("div", D7, [
|
|
4577
|
-
n.title ? (e(), l("p", I7,
|
|
4578
|
-
n.subtitle ? (e(), l("p", R7,
|
|
4579
|
+
n.title ? (e(), l("p", I7, f(n.title), 1)) : m("", !0),
|
|
4580
|
+
n.subtitle ? (e(), l("p", R7, f(n.subtitle), 1)) : m("", !0)
|
|
4579
4581
|
])
|
|
4580
4582
|
]),
|
|
4581
4583
|
a("button", {
|
|
4582
4584
|
onClick: i[1] || (i[1] = (j) => k()),
|
|
4583
4585
|
class: "ml-auto p-1.5 rounded-lg text-zinc-400 dark:text-zinc-500 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer"
|
|
4584
4586
|
}, [
|
|
4585
|
-
M(
|
|
4587
|
+
M(b($1), { size: 16 })
|
|
4586
4588
|
])
|
|
4587
4589
|
])),
|
|
4588
4590
|
a("div", {
|
|
@@ -4631,7 +4633,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4631
4633
|
}, l8 = ["onMousedown"], a8 = { class: "truncate flex-1" }, c8 = { class: "text-sm text-zinc-400 dark:text-zinc-500 shrink-0" }, i8 = { class: "text-sm text-zinc-600 dark:text-zinc-400 shrink-0 max-w-[100px] truncate" }, o8 = {
|
|
4632
4634
|
key: 1,
|
|
4633
4635
|
class: "mt-2 border border-zinc-200 dark:border-zinc-800 rounded-xl bg-white dark:bg-zinc-900 overflow-hidden"
|
|
4634
|
-
}, s8 = { class: "flex items-center justify-between px-3 py-2 border-b border-zinc-200 dark:border-zinc-800" }, r8 = { class: "flex items-center gap-2" }, d8 = { class: "font-medium text-zinc-900 dark:text-zinc-100" }, u8 = { class: "text-sm text-zinc-600 dark:text-zinc-400" }, h8 = { class: "text-sm font-medium text-zinc-400 dark:text-zinc-500 bg-zinc-100 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-800 rounded px-1.5 py-0.5 min-w-[32px] text-center shrink-0" }, v8 = ["onKeydown"], m8 = ["onClick"],
|
|
4636
|
+
}, s8 = { class: "flex items-center justify-between px-3 py-2 border-b border-zinc-200 dark:border-zinc-800" }, r8 = { class: "flex items-center gap-2" }, d8 = { class: "font-medium text-zinc-900 dark:text-zinc-100" }, u8 = { class: "text-sm text-zinc-600 dark:text-zinc-400" }, h8 = { class: "text-sm font-medium text-zinc-400 dark:text-zinc-500 bg-zinc-100 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-800 rounded px-1.5 py-0.5 min-w-[32px] text-center shrink-0" }, v8 = ["onKeydown"], m8 = ["onClick"], b8 = { class: "flex-1 text-sm text-zinc-900 dark:text-zinc-100" }, f8 = ["title"], z8 = ["onClick"], g8 = { class: "flex items-center justify-end gap-2 px-3 py-2 border-t border-zinc-200 dark:border-zinc-800" }, ga = /* @__PURE__ */ X({
|
|
4635
4637
|
__name: "WTagInput",
|
|
4636
4638
|
props: {
|
|
4637
4639
|
simple: { type: Boolean },
|
|
@@ -4684,7 +4686,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4684
4686
|
}
|
|
4685
4687
|
const T = S(""), F = S("idle"), L = S(null), x = S(null), Z = S(null), o1 = S(""), g1 = S(null), q = S(null), e1 = S(null), P = S(!1), U = S([]), I = S(!1);
|
|
4686
4688
|
let H = null;
|
|
4687
|
-
const { getRecent: t1, addRecent: c1 } = N7(t.recentKey, 10), { floatingStyles: w1 } =
|
|
4689
|
+
const { getRecent: t1, addRecent: c1 } = N7(t.recentKey, 10), { floatingStyles: w1 } = b2(q, e1, {
|
|
4688
4690
|
placement: "bottom-start",
|
|
4689
4691
|
middleware: [
|
|
4690
4692
|
h2(4),
|
|
@@ -4694,7 +4696,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4694
4696
|
Object.assign(Y.floating.style, { maxHeight: `${Math.min(240, D)}px` });
|
|
4695
4697
|
} })
|
|
4696
4698
|
],
|
|
4697
|
-
whileElementsMounted:
|
|
4699
|
+
whileElementsMounted: f2
|
|
4698
4700
|
}), J = y(
|
|
4699
4701
|
() => Object.fromEntries(t.locales.map((D) => [D, D.toUpperCase()]))
|
|
4700
4702
|
);
|
|
@@ -4744,7 +4746,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4744
4746
|
I.value = !1;
|
|
4745
4747
|
}
|
|
4746
4748
|
}
|
|
4747
|
-
function
|
|
4749
|
+
function f1(D) {
|
|
4748
4750
|
D.key === "Enter" && (H && clearTimeout(H), P1()), D.key === "Escape" && (O(), P.value = !1);
|
|
4749
4751
|
}
|
|
4750
4752
|
async function y1(D) {
|
|
@@ -4823,16 +4825,16 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4823
4825
|
class: "cursor-default"
|
|
4824
4826
|
}, {
|
|
4825
4827
|
default: r1(() => [
|
|
4826
|
-
M(
|
|
4828
|
+
M(b(F2), {
|
|
4827
4829
|
size: 9,
|
|
4828
4830
|
class: "shrink-0 mr-0.5"
|
|
4829
4831
|
}),
|
|
4830
|
-
m1(" " +
|
|
4832
|
+
m1(" " + f(_) + " ", 1),
|
|
4831
4833
|
a("button", {
|
|
4832
4834
|
class: "ml-1 text-zinc-400 dark:text-zinc-500 hover:text-gray-900 dark:hover:text-white transition",
|
|
4833
4835
|
onClick: (C1) => i(_)
|
|
4834
4836
|
}, [
|
|
4835
|
-
M(
|
|
4837
|
+
M(b($1), { size: 9 })
|
|
4836
4838
|
], 8, O7)
|
|
4837
4839
|
]),
|
|
4838
4840
|
_: 2
|
|
@@ -4856,11 +4858,11 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4856
4858
|
class: "flex w-full items-center gap-2 px-3 py-2 text-left text-sm text-zinc-700 hover:bg-zinc-50 dark:text-zinc-200 dark:hover:bg-zinc-800 transition-colors",
|
|
4857
4859
|
onMousedown: z1((C1) => C(_), ["prevent"])
|
|
4858
4860
|
}, [
|
|
4859
|
-
M(
|
|
4861
|
+
M(b(F2), {
|
|
4860
4862
|
size: 12,
|
|
4861
4863
|
class: "shrink-0 text-zinc-400"
|
|
4862
4864
|
}),
|
|
4863
|
-
m1(" " +
|
|
4865
|
+
m1(" " + f(_), 1)
|
|
4864
4866
|
], 40, J7))), 128)),
|
|
4865
4867
|
k.value ? (e(), l("button", {
|
|
4866
4868
|
key: 0,
|
|
@@ -4868,11 +4870,11 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4868
4870
|
class: "flex w-full items-center gap-2 px-3 py-2 text-left text-sm text-indigo-600 hover:bg-indigo-50 dark:text-indigo-400 dark:hover:bg-indigo-950/40 transition-colors border-t border-zinc-100 dark:border-zinc-800",
|
|
4869
4871
|
onMousedown: Y[2] || (Y[2] = z1((_) => C(c.value), ["prevent"]))
|
|
4870
4872
|
}, [
|
|
4871
|
-
M(
|
|
4873
|
+
M(b(w2), {
|
|
4872
4874
|
size: 12,
|
|
4873
4875
|
class: "shrink-0"
|
|
4874
4876
|
}),
|
|
4875
|
-
m1(' Create "' +
|
|
4877
|
+
m1(' Create "' + f(c.value.trim()) + '" ', 1)
|
|
4876
4878
|
], 32)) : m("", !0)
|
|
4877
4879
|
])) : m("", !0)
|
|
4878
4880
|
])
|
|
@@ -4884,16 +4886,16 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4884
4886
|
class: "cursor-default"
|
|
4885
4887
|
}, {
|
|
4886
4888
|
default: r1(() => [
|
|
4887
|
-
M(
|
|
4889
|
+
M(b(F2), {
|
|
4888
4890
|
size: 9,
|
|
4889
4891
|
class: "shrink-0 mr-0.5"
|
|
4890
4892
|
}),
|
|
4891
|
-
m1(" " +
|
|
4893
|
+
m1(" " + f(d1(_)) + " ", 1),
|
|
4892
4894
|
a("button", {
|
|
4893
4895
|
class: "ml-1 text-zinc-400 dark:text-zinc-500 hover:text-gray-900 dark:hover:text-white transition",
|
|
4894
4896
|
onClick: (C1) => N(_)
|
|
4895
4897
|
}, [
|
|
4896
|
-
M(
|
|
4898
|
+
M(b($1), { size: 9 })
|
|
4897
4899
|
], 8, G7)
|
|
4898
4900
|
]),
|
|
4899
4901
|
_: 2
|
|
@@ -4911,43 +4913,43 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4911
4913
|
placeholder: n.placeholder,
|
|
4912
4914
|
class: "flex-1 h-9 px-2.5 text-base rounded-lg border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 placeholder:text-zinc-400 dark:placeholder:text-zinc-500 outline-none disabled:opacity-50 transition wpic-input-field",
|
|
4913
4915
|
onInput: R,
|
|
4914
|
-
onKeydown:
|
|
4916
|
+
onKeydown: f1,
|
|
4915
4917
|
onFocus: u1,
|
|
4916
4918
|
onBlur: V
|
|
4917
4919
|
}, null, 40, n8), [
|
|
4918
4920
|
[c2, T.value]
|
|
4919
4921
|
]),
|
|
4920
|
-
F.value === "resolving" || I.value ? (e(), K(
|
|
4922
|
+
F.value === "resolving" || I.value ? (e(), K(b(i2), {
|
|
4921
4923
|
key: 0,
|
|
4922
4924
|
size: 13,
|
|
4923
4925
|
class: "text-zinc-400 dark:text-zinc-500 animate-spin shrink-0"
|
|
4924
4926
|
})) : m("", !0)
|
|
4925
4927
|
]),
|
|
4926
|
-
x.value ? (e(), l("p", e8,
|
|
4928
|
+
x.value ? (e(), l("p", e8, f(x.value), 1)) : m("", !0),
|
|
4927
4929
|
P.value && M1.value.length && !L.value ? (e(), l("div", {
|
|
4928
4930
|
key: 1,
|
|
4929
4931
|
ref_key: "dropdownRef",
|
|
4930
4932
|
ref: e1,
|
|
4931
|
-
style:
|
|
4933
|
+
style: b1({ ...b(w1), minWidth: q.value?.offsetWidth + "px" }),
|
|
4932
4934
|
class: "bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-lg shadow-xl z-50 overflow-y-auto"
|
|
4933
4935
|
}, [
|
|
4934
4936
|
E.value ? (e(), l("div", t8, [
|
|
4935
|
-
M(
|
|
4936
|
-
m1(" " +
|
|
4937
|
+
M(b(B3), { size: 10 }),
|
|
4938
|
+
m1(" " + f(E.value), 1)
|
|
4937
4939
|
])) : m("", !0),
|
|
4938
4940
|
(e(!0), l(W, null, a1(M1.value, (_) => (e(), l("button", {
|
|
4939
4941
|
key: _.tag_id,
|
|
4940
4942
|
class: g(["w-full text-left px-3 py-2 hover:bg-black/5 dark:hover:bg-white/5 cursor-pointer transition flex items-center gap-2", G(_) ? "opacity-40 cursor-default" : "text-zinc-600 dark:text-zinc-400"]),
|
|
4941
4943
|
onMousedown: z1((C1) => !G(_) && y1(_), ["prevent"])
|
|
4942
4944
|
}, [
|
|
4943
|
-
M(
|
|
4945
|
+
M(b(F2), {
|
|
4944
4946
|
size: 11,
|
|
4945
4947
|
class: "shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
4946
4948
|
}),
|
|
4947
|
-
a("span", a8,
|
|
4949
|
+
a("span", a8, f(d1(_)), 1),
|
|
4948
4950
|
p1(_) ? (e(), l(W, { key: 0 }, [
|
|
4949
|
-
a("span", c8,
|
|
4950
|
-
a("span", i8,
|
|
4951
|
+
a("span", c8, f(p1(_).locale), 1),
|
|
4952
|
+
a("span", i8, f(p1(_).value), 1)
|
|
4951
4953
|
], 64)) : m("", !0),
|
|
4952
4954
|
G(_) ? (e(), K(r2, {
|
|
4953
4955
|
key: 1,
|
|
@@ -4955,7 +4957,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4955
4957
|
class: "ml-auto shrink-0"
|
|
4956
4958
|
}, {
|
|
4957
4959
|
default: r1(() => [
|
|
4958
|
-
m1(
|
|
4960
|
+
m1(f(n.labelAlreadyAdded), 1)
|
|
4959
4961
|
]),
|
|
4960
4962
|
_: 1
|
|
4961
4963
|
})) : m("", !0)
|
|
@@ -4965,13 +4967,13 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4965
4967
|
L.value && (F.value === "preview" || F.value === "confirming") ? (e(), l("div", o8, [
|
|
4966
4968
|
a("div", s8, [
|
|
4967
4969
|
a("div", r8, [
|
|
4968
|
-
a("span", d8,
|
|
4970
|
+
a("span", d8, f(L.value.translations[n.locale]?.value || L.value.translations.en?.value || L.value.slug), 1),
|
|
4969
4971
|
G(L.value) ? (e(), K(r2, {
|
|
4970
4972
|
key: 0,
|
|
4971
4973
|
variant: "default"
|
|
4972
4974
|
}, {
|
|
4973
4975
|
default: r1(() => [
|
|
4974
|
-
m1(
|
|
4976
|
+
m1(f(n.labelAlreadyAdded), 1)
|
|
4975
4977
|
]),
|
|
4976
4978
|
_: 1
|
|
4977
4979
|
})) : L.value.existed ? (e(), K(r2, {
|
|
@@ -4979,7 +4981,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4979
4981
|
variant: "default"
|
|
4980
4982
|
}, {
|
|
4981
4983
|
default: r1(() => [
|
|
4982
|
-
m1(
|
|
4984
|
+
m1(f(n.labelExisting), 1)
|
|
4983
4985
|
]),
|
|
4984
4986
|
_: 1
|
|
4985
4987
|
})) : (e(), K(r2, {
|
|
@@ -4987,19 +4989,19 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
4987
4989
|
variant: "info"
|
|
4988
4990
|
}, {
|
|
4989
4991
|
default: r1(() => [
|
|
4990
|
-
m1(
|
|
4992
|
+
m1(f(n.labelNew), 1)
|
|
4991
4993
|
]),
|
|
4992
4994
|
_: 1
|
|
4993
4995
|
}))
|
|
4994
4996
|
]),
|
|
4995
|
-
a("span", u8,
|
|
4997
|
+
a("span", u8, f(n.labelAutoTranslated), 1)
|
|
4996
4998
|
]),
|
|
4997
4999
|
a("div", null, [
|
|
4998
5000
|
(e(!0), l(W, null, a1(n.locales, (_) => (e(), l("div", {
|
|
4999
5001
|
key: _,
|
|
5000
5002
|
class: "flex items-center gap-2 px-3 py-1.5 hover:bg-zinc-100 dark:hover:bg-zinc-800 transition group/row"
|
|
5001
5003
|
}, [
|
|
5002
|
-
a("span", h8,
|
|
5004
|
+
a("span", h8, f(J.value[_]), 1),
|
|
5003
5005
|
Z.value === _ ? (e(), l(W, { key: 0 }, [
|
|
5004
5006
|
T1(a("input", {
|
|
5005
5007
|
ref_for: !0,
|
|
@@ -5018,25 +5020,25 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5018
5020
|
class: "p-0.5 text-zinc-400 dark:text-zinc-500 hover:text-green-500 transition",
|
|
5019
5021
|
onClick: (C1) => s1(_)
|
|
5020
5022
|
}, [
|
|
5021
|
-
M(
|
|
5023
|
+
M(b(O1), { size: 12 })
|
|
5022
5024
|
], 8, m8),
|
|
5023
5025
|
a("button", {
|
|
5024
5026
|
class: "p-0.5 text-zinc-400 dark:text-zinc-500 hover:text-gray-900 dark:hover:text-white transition",
|
|
5025
5027
|
onClick: Y[6] || (Y[6] = (C1) => Z.value = null)
|
|
5026
5028
|
}, [
|
|
5027
|
-
M(
|
|
5029
|
+
M(b($1), { size: 12 })
|
|
5028
5030
|
])
|
|
5029
5031
|
], 64)) : (e(), l(W, { key: 1 }, [
|
|
5030
|
-
a("span",
|
|
5032
|
+
a("span", b8, f(L.value.translations[_]?.value || "—"), 1),
|
|
5031
5033
|
L.value.translations[_]?.source === "auto" ? (e(), l("span", {
|
|
5032
5034
|
key: 0,
|
|
5033
5035
|
class: "w-1.5 h-1.5 rounded-full bg-zinc-300 dark:bg-zinc-600 shrink-0",
|
|
5034
5036
|
title: n.labelAutoTranslated
|
|
5035
|
-
}, null, 8,
|
|
5037
|
+
}, null, 8, f8)) : m("", !0),
|
|
5036
5038
|
a("button", {
|
|
5037
5039
|
class: "invisible group-hover/row:visible text-sm text-zinc-400 dark:text-zinc-500 hover:text-zinc-600 dark:hover:text-zinc-400 px-1.5 py-0.5 rounded transition",
|
|
5038
5040
|
onClick: (C1) => h1(_)
|
|
5039
|
-
},
|
|
5041
|
+
}, f(n.labelEdit), 9, z8)
|
|
5040
5042
|
], 64))
|
|
5041
5043
|
]))), 128))
|
|
5042
5044
|
]),
|
|
@@ -5047,7 +5049,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5047
5049
|
onClick: O
|
|
5048
5050
|
}, {
|
|
5049
5051
|
default: r1(() => [
|
|
5050
|
-
m1(
|
|
5052
|
+
m1(f(n.labelCancel), 1)
|
|
5051
5053
|
]),
|
|
5052
5054
|
_: 1
|
|
5053
5055
|
}),
|
|
@@ -5059,7 +5061,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5059
5061
|
onClick: A
|
|
5060
5062
|
}, {
|
|
5061
5063
|
default: r1(() => [
|
|
5062
|
-
m1(
|
|
5064
|
+
m1(f(n.labelConfirm), 1)
|
|
5063
5065
|
]),
|
|
5064
5066
|
_: 1
|
|
5065
5067
|
}, 8, ["loading"]))
|
|
@@ -5114,7 +5116,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5114
5116
|
},
|
|
5115
5117
|
emits: ["update:modelValue", "update:subValue"],
|
|
5116
5118
|
setup(n, { emit: h }) {
|
|
5117
|
-
const t = n, s = h, u = S(!1), c = S(""), o = S(null), z = S(null), k = S(null), C = S(null), i = S(null), j = S(null), { floatingStyles: $ } =
|
|
5119
|
+
const t = n, s = h, u = S(!1), c = S(""), o = S(null), z = S(null), k = S(null), C = S(null), i = S(null), j = S(null), { floatingStyles: $ } = b2(z, k, {
|
|
5118
5120
|
placement: "bottom-start",
|
|
5119
5121
|
middleware: [
|
|
5120
5122
|
h2(4),
|
|
@@ -5124,15 +5126,15 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5124
5126
|
Object.assign(t1.floating.style, { maxHeight: `${Math.min(360, H)}px` });
|
|
5125
5127
|
} })
|
|
5126
5128
|
],
|
|
5127
|
-
whileElementsMounted:
|
|
5128
|
-
}), { floatingStyles: T } =
|
|
5129
|
+
whileElementsMounted: f2
|
|
5130
|
+
}), { floatingStyles: T } = b2(i, j, {
|
|
5129
5131
|
placement: "right-start",
|
|
5130
5132
|
middleware: [
|
|
5131
5133
|
h2(2),
|
|
5132
5134
|
v2({ fallbackPlacements: ["left-start", "right-start"] }),
|
|
5133
5135
|
m2({ padding: 8 })
|
|
5134
5136
|
],
|
|
5135
|
-
whileElementsMounted:
|
|
5137
|
+
whileElementsMounted: f2
|
|
5136
5138
|
});
|
|
5137
5139
|
V1(u, (H) => {
|
|
5138
5140
|
H ? H1(() => C.value?.focus()) : o.value = null;
|
|
@@ -5188,15 +5190,15 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5188
5190
|
size: 13,
|
|
5189
5191
|
class: "text-wpic-green shrink-0"
|
|
5190
5192
|
})) : m("", !0),
|
|
5191
|
-
a("span", p8,
|
|
5193
|
+
a("span", p8, f(L.value || n.placeholder), 1),
|
|
5192
5194
|
n.modelValue ? (e(), l("button", {
|
|
5193
5195
|
key: 1,
|
|
5194
5196
|
onClick: z1(I, ["stop"]),
|
|
5195
5197
|
class: "text-zinc-400 dark:text-zinc-500 hover:text-zinc-900 dark:hover:text-zinc-100 dark:hover:text-white shrink-0 cursor-pointer"
|
|
5196
5198
|
}, [
|
|
5197
|
-
M(
|
|
5199
|
+
M(b($1), { size: 12 })
|
|
5198
5200
|
])) : m("", !0),
|
|
5199
|
-
M(
|
|
5201
|
+
M(b(D1), {
|
|
5200
5202
|
size: 13,
|
|
5201
5203
|
class: "shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
5202
5204
|
})
|
|
@@ -5205,11 +5207,11 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5205
5207
|
key: 0,
|
|
5206
5208
|
ref_key: "floatingRef",
|
|
5207
5209
|
ref: k,
|
|
5208
|
-
style:
|
|
5210
|
+
style: b1({ ...b($), minWidth: z.value?.offsetWidth + "px", width: "280px" }),
|
|
5209
5211
|
class: "bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-lg shadow-xl z-50 overflow-hidden"
|
|
5210
5212
|
}, [
|
|
5211
5213
|
a("div", C8, [
|
|
5212
|
-
M(
|
|
5214
|
+
M(b(P2), {
|
|
5213
5215
|
size: 13,
|
|
5214
5216
|
class: "text-zinc-400 dark:text-zinc-500 shrink-0"
|
|
5215
5217
|
}),
|
|
@@ -5228,7 +5230,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5228
5230
|
onClick: t1[2] || (t1[2] = (c1) => c.value = ""),
|
|
5229
5231
|
class: "text-zinc-400 dark:text-zinc-500 hover:text-zinc-900 dark:hover:text-zinc-100 dark:hover:text-white cursor-pointer"
|
|
5230
5232
|
}, [
|
|
5231
|
-
M(
|
|
5233
|
+
M(b($1), { size: 12 })
|
|
5232
5234
|
])) : m("", !0)
|
|
5233
5235
|
]),
|
|
5234
5236
|
a("div", k8, [
|
|
@@ -5238,7 +5240,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5238
5240
|
"w-full text-left px-3 py-2 hover:bg-black/5 dark:hover:bg-white/5 cursor-pointer transition",
|
|
5239
5241
|
n.modelValue ? "text-zinc-400 dark:text-zinc-500" : "text-wpic-green"
|
|
5240
5242
|
])
|
|
5241
|
-
},
|
|
5243
|
+
}, f(n.placeholder), 35),
|
|
5242
5244
|
(e(!0), l(W, null, a1(F.value, (c1) => (e(), l("div", {
|
|
5243
5245
|
key: c1.id
|
|
5244
5246
|
}, [
|
|
@@ -5251,8 +5253,8 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5251
5253
|
n.modelValue === c1.id ? "text-wpic-green bg-indigo-500/5" : "text-zinc-600 dark:text-zinc-400 hover:bg-black/5 dark:hover:bg-white/5 hover:text-zinc-900 dark:hover:text-zinc-100 dark:hover:text-white"
|
|
5252
5254
|
])
|
|
5253
5255
|
}, [
|
|
5254
|
-
a("span", y8,
|
|
5255
|
-
(n.subItems[c1.id] ?? []).length ? (e(), K(
|
|
5256
|
+
a("span", y8, f(c1.name), 1),
|
|
5257
|
+
(n.subItems[c1.id] ?? []).length ? (e(), K(b(j1), {
|
|
5256
5258
|
key: 0,
|
|
5257
5259
|
size: 12,
|
|
5258
5260
|
class: "shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
@@ -5266,13 +5268,13 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5266
5268
|
key: 1,
|
|
5267
5269
|
ref_key: "subPanelRef",
|
|
5268
5270
|
ref: j,
|
|
5269
|
-
style:
|
|
5271
|
+
style: b1(b(T)),
|
|
5270
5272
|
class: "bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-lg shadow-xl z-[51] overflow-hidden w-[320px] max-h-[280px] overflow-y-auto",
|
|
5271
5273
|
onMouseenter: q,
|
|
5272
5274
|
onMouseleave: e1
|
|
5273
5275
|
}, [
|
|
5274
5276
|
a("div", M8, [
|
|
5275
|
-
a("p", V8,
|
|
5277
|
+
a("p", V8, f(n.subLabel), 1)
|
|
5276
5278
|
]),
|
|
5277
5279
|
(e(!0), l(W, null, a1(x.value, (c1) => (e(), l("button", {
|
|
5278
5280
|
key: c1.id,
|
|
@@ -5287,7 +5289,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5287
5289
|
size: 12,
|
|
5288
5290
|
class: "shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
5289
5291
|
})) : m("", !0),
|
|
5290
|
-
m1(" " +
|
|
5292
|
+
m1(" " + f(c1.name), 1)
|
|
5291
5293
|
], 42, L8))), 128))
|
|
5292
5294
|
], 36)) : m("", !0),
|
|
5293
5295
|
u.value ? (e(), l("div", {
|
|
@@ -5330,14 +5332,14 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5330
5332
|
a("span", {
|
|
5331
5333
|
class: g(["w-1.5 h-1.5 rounded-full shrink-0 mt-px", s(o[n.statusKey])])
|
|
5332
5334
|
}, null, 2),
|
|
5333
|
-
a("span", A8,
|
|
5335
|
+
a("span", A8, f(o[n.nameKey]), 1),
|
|
5334
5336
|
Q(u.$slots, "right", { item: o }),
|
|
5335
5337
|
n.removable ? (e(), l("button", {
|
|
5336
5338
|
key: 0,
|
|
5337
5339
|
onClick: z1((z) => t("remove", o), ["stop"]),
|
|
5338
5340
|
class: "shrink-0 w-5 h-5 flex items-center justify-center text-dim/40 hover:text-dim rounded transition-colors cursor-pointer"
|
|
5339
5341
|
}, [
|
|
5340
|
-
M(
|
|
5342
|
+
M(b($1), { size: 12 })
|
|
5341
5343
|
], 8, S8)) : m("", !0)
|
|
5342
5344
|
], 10, $8))), 128)),
|
|
5343
5345
|
n.files.length ? m("", !0) : (e(), l("div", F8, [
|
|
@@ -5359,9 +5361,9 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5359
5361
|
setup(n) {
|
|
5360
5362
|
const h = n, t = V2(), s = S(null), u = S(null), c = S(!1);
|
|
5361
5363
|
let o = null;
|
|
5362
|
-
const { floatingStyles: z } =
|
|
5364
|
+
const { floatingStyles: z } = b2(s, u, {
|
|
5363
5365
|
placement: h.placement ?? "top",
|
|
5364
|
-
whileElementsMounted:
|
|
5366
|
+
whileElementsMounted: f2,
|
|
5365
5367
|
middleware: [h2(8), v2(), m2({ padding: 4 })]
|
|
5366
5368
|
});
|
|
5367
5369
|
function k() {
|
|
@@ -5402,11 +5404,11 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5402
5404
|
key: 0,
|
|
5403
5405
|
ref_key: "floating",
|
|
5404
5406
|
ref: u,
|
|
5405
|
-
style:
|
|
5406
|
-
class: g([{ "wpic-theme":
|
|
5407
|
-
"data-wpic-theme":
|
|
5407
|
+
style: b1([b(t)?.variables, b(z)]),
|
|
5408
|
+
class: g([{ "wpic-theme": b(t), dark: b(t)?.mode === "dark" }, "wpic-tooltip-panel pointer-events-none z-[9999] max-w-[200px] whitespace-pre-line break-words text-base font-medium"]),
|
|
5409
|
+
"data-wpic-theme": b(t)?.mode,
|
|
5408
5410
|
role: "tooltip"
|
|
5409
|
-
},
|
|
5411
|
+
}, f(n.content), 15, H8)) : m("", !0)
|
|
5410
5412
|
]),
|
|
5411
5413
|
_: 1
|
|
5412
5414
|
})
|
|
@@ -5437,8 +5439,8 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5437
5439
|
tabindex: n.description ? 0 : void 0,
|
|
5438
5440
|
"aria-label": `${t.value ? n.value.toFixed(1) + "%" : "Unavailable"}${n.description ? ". " + n.description : ""}`
|
|
5439
5441
|
}, [
|
|
5440
|
-
t.value && n.value !== 0 ? (e(), l("span", j8,
|
|
5441
|
-
a("span", null,
|
|
5442
|
+
t.value && n.value !== 0 ? (e(), l("span", j8, f(n.value > 0 ? "▲" : "▼"), 1)) : m("", !0),
|
|
5443
|
+
a("span", null, f(t.value ? Math.abs(n.value).toFixed(1) + "%" : "—"), 1)
|
|
5442
5444
|
], 8, T8)
|
|
5443
5445
|
]),
|
|
5444
5446
|
_: 1
|
|
@@ -5478,38 +5480,38 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5478
5480
|
},
|
|
5479
5481
|
setup(n) {
|
|
5480
5482
|
const h = V2();
|
|
5481
|
-
return (t, s) =>
|
|
5483
|
+
return (t, s) => b(h) ? (e(), K(a9, {
|
|
5482
5484
|
key: 0,
|
|
5483
5485
|
padding: n.compact ? "md" : "lg",
|
|
5484
5486
|
class: g(["wpic-stat-card", { "wpic-stat-card--featured": n.featured, "wpic-stat-card--compact": n.compact }])
|
|
5485
5487
|
}, {
|
|
5486
5488
|
default: r1(() => [
|
|
5487
5489
|
a("div", W8, [
|
|
5488
|
-
a("span", null,
|
|
5490
|
+
a("span", null, f(n.label), 1),
|
|
5489
5491
|
n.change && n.changePosition === "label" ? (e(), l("span", {
|
|
5490
5492
|
key: 0,
|
|
5491
5493
|
class: "wpic-stat-card__change shrink-0 text-xs font-medium tabular-nums",
|
|
5492
5494
|
title: n.changeTitle,
|
|
5493
5495
|
"aria-label": n.changeTitle ? `${n.change}. ${n.changeTitle}` : void 0,
|
|
5494
|
-
style:
|
|
5495
|
-
},
|
|
5496
|
+
style: b1({ color: n.changeTone === "negative" ? "var(--wpic-negative)" : n.changeTone === "neutral" ? "var(--wpic-muted)" : "var(--wpic-accent)" })
|
|
5497
|
+
}, f(n.change), 13, D8)) : m("", !0)
|
|
5496
5498
|
]),
|
|
5497
5499
|
a("div", {
|
|
5498
5500
|
class: g(["flex items-end justify-between gap-3", n.compact ? "mt-1" : "mt-3"])
|
|
5499
5501
|
}, [
|
|
5500
5502
|
a("strong", {
|
|
5501
5503
|
class: g([n.compact ? "text-lg" : "text-2xl", "wpic-stat-card__value font-semibold tracking-tight tabular-nums text-[var(--wpic-text)]"]),
|
|
5502
|
-
style:
|
|
5504
|
+
style: b1(n.color ? { color: n.color } : void 0)
|
|
5503
5505
|
}, [
|
|
5504
|
-
m1(
|
|
5505
|
-
n.unit ? (e(), l("span", I8,
|
|
5506
|
+
m1(f(n.value), 1),
|
|
5507
|
+
n.unit ? (e(), l("span", I8, f(n.unit), 1)) : m("", !0)
|
|
5506
5508
|
], 6),
|
|
5507
5509
|
n.change && n.changePosition !== "label" ? (e(), l("span", {
|
|
5508
5510
|
key: 0,
|
|
5509
5511
|
title: n.changeTitle,
|
|
5510
5512
|
class: "wpic-stat-card__change shrink-0 text-sm font-medium",
|
|
5511
|
-
style:
|
|
5512
|
-
},
|
|
5513
|
+
style: b1({ color: n.changeTone === "negative" ? "var(--wpic-negative)" : n.changeTone === "neutral" ? "var(--wpic-muted)" : "var(--wpic-accent)" })
|
|
5514
|
+
}, f(n.change), 13, R8)) : m("", !0)
|
|
5513
5515
|
], 2),
|
|
5514
5516
|
n.trend !== void 0 ? (e(), l("div", Z8, [
|
|
5515
5517
|
M(E8, {
|
|
@@ -5517,32 +5519,32 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5517
5519
|
inverse: n.trendInverse,
|
|
5518
5520
|
description: n.trendTitle
|
|
5519
5521
|
}, null, 8, ["value", "inverse", "description"]),
|
|
5520
|
-
n.trendLabel ? (e(), l("span", N8,
|
|
5522
|
+
n.trendLabel ? (e(), l("span", N8, f(n.trendLabel), 1)) : m("", !0)
|
|
5521
5523
|
])) : m("", !0),
|
|
5522
5524
|
n.sub ? (e(), l("p", {
|
|
5523
5525
|
key: 1,
|
|
5524
5526
|
class: "mt-2 text-xs tabular-nums",
|
|
5525
|
-
style:
|
|
5526
|
-
},
|
|
5527
|
+
style: b1({ color: n.subColor || "var(--wpic-muted)" })
|
|
5528
|
+
}, f(n.sub), 5)) : m("", !0)
|
|
5527
5529
|
]),
|
|
5528
5530
|
_: 1
|
|
5529
5531
|
}, 8, ["padding", "class"])) : (e(), l("div", {
|
|
5530
5532
|
key: 1,
|
|
5531
5533
|
class: g(["wpic-stat-card rounded-lg bg-zinc-100 dark:bg-zinc-900/50", n.compact ? "p-4" : "p-6"])
|
|
5532
5534
|
}, [
|
|
5533
|
-
a("p", K8,
|
|
5535
|
+
a("p", K8, f(n.label), 1),
|
|
5534
5536
|
a("p", {
|
|
5535
5537
|
class: "text-2xl font-semibold tabular-nums tracking-tight leading-none text-main mb-2",
|
|
5536
|
-
style:
|
|
5538
|
+
style: b1(n.color ? `color:${n.color}` : "")
|
|
5537
5539
|
}, [
|
|
5538
|
-
m1(
|
|
5539
|
-
n.unit ? (e(), l("span", U8,
|
|
5540
|
+
m1(f(n.value) + " ", 1),
|
|
5541
|
+
n.unit ? (e(), l("span", U8, f(n.unit), 1)) : m("", !0)
|
|
5540
5542
|
], 4),
|
|
5541
5543
|
n.sub ? (e(), l("p", {
|
|
5542
5544
|
key: 0,
|
|
5543
5545
|
class: "text-xs mt-1 tabular-nums",
|
|
5544
|
-
style:
|
|
5545
|
-
},
|
|
5546
|
+
style: b1(n.subColor ? `color:${n.subColor}` : "color:var(--text-dim)")
|
|
5547
|
+
}, f(n.sub), 5)) : m("", !0)
|
|
5546
5548
|
], 2));
|
|
5547
5549
|
}
|
|
5548
5550
|
}), O8 = {
|
|
@@ -5574,13 +5576,13 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5574
5576
|
class: g([
|
|
5575
5577
|
n.size === "page" ? "max-w-3xl text-3xl font-semibold leading-tight text-zinc-950 dark:text-white sm:text-4xl" : "text-xl font-medium text-zinc-700 dark:text-zinc-300"
|
|
5576
5578
|
])
|
|
5577
|
-
},
|
|
5579
|
+
}, f(n.title), 3),
|
|
5578
5580
|
n.description ? (e(), l("p", {
|
|
5579
5581
|
key: 1,
|
|
5580
5582
|
class: g([
|
|
5581
5583
|
n.size === "page" ? "mt-4 max-w-2xl text-base leading-7 text-zinc-600 dark:text-zinc-300" : "mt-2 max-w-xs text-base text-zinc-400 dark:text-zinc-500"
|
|
5582
5584
|
])
|
|
5583
|
-
},
|
|
5585
|
+
}, f(n.description), 3)) : m("", !0),
|
|
5584
5586
|
h.$slots.default ? (e(), l("div", O8, [
|
|
5585
5587
|
Q(h.$slots, "default")
|
|
5586
5588
|
])) : m("", !0)
|
|
@@ -5605,7 +5607,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5605
5607
|
const h = n, t = y(() => h.variant === "default" ? "neutral" : h.variant);
|
|
5606
5608
|
return (s, u) => (e(), l("span", {
|
|
5607
5609
|
class: g(["wpic-badge inline-flex items-center gap-1.5 rounded-full transition-colors", [
|
|
5608
|
-
|
|
5610
|
+
b(o2)(b(E6)[t.value], n.theme),
|
|
5609
5611
|
n.bordered ? "border" : "",
|
|
5610
5612
|
n.size === "sm" ? "px-1.5 pt-px pb-[2px] text-[10px]" : "px-2 pt-0.5 pb-[2.5px] text-xs",
|
|
5611
5613
|
n.count ? "min-w-5 justify-center px-1.5!" : ""
|
|
@@ -5652,15 +5654,15 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5652
5654
|
}));
|
|
5653
5655
|
return (c, o) => (e(), l("div", q8, [
|
|
5654
5656
|
n.label || n.value !== void 0 ? (e(), l("div", Q8, [
|
|
5655
|
-
n.label ? (e(), l("span", J8,
|
|
5656
|
-
a("span", X8,
|
|
5657
|
+
n.label ? (e(), l("span", J8, f(n.label), 1)) : m("", !0),
|
|
5658
|
+
a("span", X8, f(Math.round(t.value)) + "%", 1)
|
|
5657
5659
|
])) : m("", !0),
|
|
5658
5660
|
a("div", {
|
|
5659
5661
|
class: g(["w-full overflow-hidden rounded-full bg-zinc-200 dark:bg-zinc-700", s.value])
|
|
5660
5662
|
}, [
|
|
5661
5663
|
a("div", {
|
|
5662
5664
|
class: g(["h-full rounded-full", [n.color ? "" : "bg-indigo-500", n.animated ? "animate-pulse" : ""]]),
|
|
5663
|
-
style:
|
|
5665
|
+
style: b1(u.value)
|
|
5664
5666
|
}, null, 6)
|
|
5665
5667
|
], 2)
|
|
5666
5668
|
]));
|
|
@@ -5725,19 +5727,19 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5725
5727
|
C.dot ? (e(), l("span", {
|
|
5726
5728
|
key: 1,
|
|
5727
5729
|
class: "w-1.5 h-1.5 rounded-full shrink-0",
|
|
5728
|
-
style:
|
|
5730
|
+
style: b1({ background: C.dot })
|
|
5729
5731
|
}, null, 4)) : m("", !0),
|
|
5730
5732
|
n.selectionIndicator ? (e(), l("span", {
|
|
5731
5733
|
key: 2,
|
|
5732
5734
|
class: g(["wpic-pill-indicator", n.multiple ? "rounded-[4px]" : "rounded-full", s(C.value) ? "wpic-pill-indicator--active" : "wpic-pill-indicator--idle"])
|
|
5733
5735
|
}, [
|
|
5734
|
-
n.multiple && s(C.value) ? (e(), K(
|
|
5736
|
+
n.multiple && s(C.value) ? (e(), K(b(O1), {
|
|
5735
5737
|
key: 0,
|
|
5736
5738
|
size: 10,
|
|
5737
5739
|
"stroke-width": "2.8"
|
|
5738
5740
|
})) : !n.multiple && s(C.value) ? (e(), l("span", nn)) : m("", !0)
|
|
5739
5741
|
], 2)) : m("", !0),
|
|
5740
|
-
o(C) ? (e(), l("span", en,
|
|
5742
|
+
o(C) ? (e(), l("span", en, f(C.label), 1)) : m("", !0)
|
|
5741
5743
|
], 10, _8))), 128)),
|
|
5742
5744
|
Q(z.$slots, "append")
|
|
5743
5745
|
])) : (e(), l("div", tn, [
|
|
@@ -5760,19 +5762,19 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5760
5762
|
C.dot ? (e(), l("span", {
|
|
5761
5763
|
key: 1,
|
|
5762
5764
|
class: "w-1.5 h-1.5 rounded-full shrink-0",
|
|
5763
|
-
style:
|
|
5765
|
+
style: b1({ background: C.dot })
|
|
5764
5766
|
}, null, 4)) : m("", !0),
|
|
5765
5767
|
n.selectionIndicator ? (e(), l("span", {
|
|
5766
5768
|
key: 2,
|
|
5767
5769
|
class: g(["wpic-pill-indicator", n.multiple ? "rounded-[4px]" : "rounded-full", s(C.value) ? "wpic-pill-indicator--active" : "wpic-pill-indicator--idle"])
|
|
5768
5770
|
}, [
|
|
5769
|
-
n.multiple && s(C.value) ? (e(), K(
|
|
5771
|
+
n.multiple && s(C.value) ? (e(), K(b(O1), {
|
|
5770
5772
|
key: 0,
|
|
5771
5773
|
size: 10,
|
|
5772
5774
|
"stroke-width": "2.8"
|
|
5773
5775
|
})) : !n.multiple && s(C.value) ? (e(), l("span", an)) : m("", !0)
|
|
5774
5776
|
], 2)) : m("", !0),
|
|
5775
|
-
o(C) ? (e(), l("span", cn,
|
|
5777
|
+
o(C) ? (e(), l("span", cn, f(C.label), 1)) : m("", !0)
|
|
5776
5778
|
], 10, ln))), 128))
|
|
5777
5779
|
]));
|
|
5778
5780
|
}
|
|
@@ -5794,7 +5796,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5794
5796
|
setup(n, { emit: h }) {
|
|
5795
5797
|
const t = h;
|
|
5796
5798
|
return (s, u) => (e(), l("div", sn, [
|
|
5797
|
-
n.label ? (e(), l("label", rn,
|
|
5799
|
+
n.label ? (e(), l("label", rn, f(n.label), 1)) : m("", !0),
|
|
5798
5800
|
a("textarea", {
|
|
5799
5801
|
value: n.modelValue,
|
|
5800
5802
|
placeholder: n.placeholder,
|
|
@@ -5837,7 +5839,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5837
5839
|
src: n.src,
|
|
5838
5840
|
alt: n.name,
|
|
5839
5841
|
class: "w-full h-full object-cover"
|
|
5840
|
-
}, null, 40, un)) : (e(), l("span", hn,
|
|
5842
|
+
}, null, 40, un)) : (e(), l("span", hn, f(c.value), 1))
|
|
5841
5843
|
], 2));
|
|
5842
5844
|
}
|
|
5843
5845
|
}), Ba = /* @__PURE__ */ X({
|
|
@@ -5890,14 +5892,14 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5890
5892
|
class: "w-full h-full object-cover"
|
|
5891
5893
|
}, null, 8, vn),
|
|
5892
5894
|
n.selected ? (e(), l("div", mn, [
|
|
5893
|
-
M(
|
|
5895
|
+
M(b(O1), {
|
|
5894
5896
|
size: 20,
|
|
5895
5897
|
class: "text-white drop-shadow"
|
|
5896
5898
|
})
|
|
5897
5899
|
])) : m("", !0)
|
|
5898
5900
|
], 2));
|
|
5899
5901
|
}
|
|
5900
|
-
}),
|
|
5902
|
+
}), bn = { class: "wpic-date-picker relative inline-flex min-w-0" }, fn = ["disabled", "aria-label", "aria-expanded", "data-size", "data-variant"], zn = { class: "flex-1 truncate text-left tabular-nums" }, gn = ["disabled", "aria-label"], pn = { class: "p-3" }, Cn = { class: "mb-3 flex items-center justify-between" }, kn = { class: "text-sm font-semibold capitalize text-zinc-900 dark:text-zinc-100" }, xn = { class: "grid grid-cols-7" }, yn = { class: "mt-1 grid grid-cols-7 gap-0.5" }, wn = ["aria-label", "aria-pressed", "disabled", "onClick"], Mn = /* @__PURE__ */ X({
|
|
5901
5903
|
__name: "WDatePicker",
|
|
5902
5904
|
props: {
|
|
5903
5905
|
modelValue: { default: null },
|
|
@@ -5960,7 +5962,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5960
5962
|
if (!q) return;
|
|
5961
5963
|
const e1 = k(t.modelValue), P = k(t.max) ?? o, U = e1 ?? P;
|
|
5962
5964
|
z.value = new Date(U.getFullYear(), U.getMonth(), 1);
|
|
5963
|
-
}), (q, e1) => (e(), l("div",
|
|
5965
|
+
}), (q, e1) => (e(), l("div", bn, [
|
|
5964
5966
|
a("button", {
|
|
5965
5967
|
ref_key: "triggerRef",
|
|
5966
5968
|
ref: c,
|
|
@@ -5977,17 +5979,17 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5977
5979
|
]]),
|
|
5978
5980
|
onClick: e1[0] || (e1[0] = (P) => u.value = !u.value)
|
|
5979
5981
|
}, [
|
|
5980
|
-
M(
|
|
5982
|
+
M(b(T2), {
|
|
5981
5983
|
size: 15,
|
|
5982
5984
|
class: "shrink-0 text-zinc-400"
|
|
5983
5985
|
}),
|
|
5984
|
-
a("span", zn,
|
|
5985
|
-
!n.clearable || !n.modelValue ? (e(), K(
|
|
5986
|
+
a("span", zn, f(j.value), 1),
|
|
5987
|
+
!n.clearable || !n.modelValue ? (e(), K(b(D1), {
|
|
5986
5988
|
key: 0,
|
|
5987
5989
|
size: 14,
|
|
5988
5990
|
class: "ml-auto shrink-0 text-zinc-400"
|
|
5989
5991
|
})) : m("", !0)
|
|
5990
|
-
], 10,
|
|
5992
|
+
], 10, fn),
|
|
5991
5993
|
n.clearable && n.modelValue ? (e(), l("button", {
|
|
5992
5994
|
key: 0,
|
|
5993
5995
|
type: "button",
|
|
@@ -5996,7 +5998,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
5996
5998
|
onClick: Z,
|
|
5997
5999
|
class: "wpic-date-clear absolute right-2 top-1/2 -translate-y-1/2 rounded p-0.5 cursor-pointer text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-[var(--wpic-primary)]"
|
|
5998
6000
|
}, [
|
|
5999
|
-
M(
|
|
6001
|
+
M(b($1), { size: 14 })
|
|
6000
6002
|
], 8, gn)) : m("", !0),
|
|
6001
6003
|
M(n2, {
|
|
6002
6004
|
open: u.value,
|
|
@@ -6013,22 +6015,22 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6013
6015
|
class: "flex h-8 w-8 items-center justify-center rounded-lg text-zinc-400 hover:bg-zinc-100 hover:text-zinc-800 dark:hover:bg-zinc-800 dark:hover:text-zinc-100",
|
|
6014
6016
|
onClick: e1[1] || (e1[1] = (P) => o1(-1))
|
|
6015
6017
|
}, [
|
|
6016
|
-
M(
|
|
6018
|
+
M(b(C2), { size: 16 })
|
|
6017
6019
|
]),
|
|
6018
|
-
a("span", kn,
|
|
6020
|
+
a("span", kn, f($.value), 1),
|
|
6019
6021
|
a("button", {
|
|
6020
6022
|
type: "button",
|
|
6021
6023
|
class: "flex h-8 w-8 items-center justify-center rounded-lg text-zinc-400 hover:bg-zinc-100 hover:text-zinc-800 dark:hover:bg-zinc-800 dark:hover:text-zinc-100",
|
|
6022
6024
|
onClick: e1[2] || (e1[2] = (P) => o1(1))
|
|
6023
6025
|
}, [
|
|
6024
|
-
M(
|
|
6026
|
+
M(b(j1), { size: 16 })
|
|
6025
6027
|
])
|
|
6026
6028
|
]),
|
|
6027
6029
|
a("div", xn, [
|
|
6028
6030
|
(e(!0), l(W, null, a1(T.value, (P) => (e(), l("span", {
|
|
6029
6031
|
key: P,
|
|
6030
6032
|
class: "py-1 text-center text-[11px] font-medium uppercase text-zinc-400 dark:text-zinc-500"
|
|
6031
|
-
},
|
|
6033
|
+
}, f(P), 1))), 128))
|
|
6032
6034
|
]),
|
|
6033
6035
|
a("div", yn, [
|
|
6034
6036
|
(e(!0), l(W, null, a1(F.value, (P) => (e(), l("button", {
|
|
@@ -6039,7 +6041,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6039
6041
|
disabled: L(P.iso),
|
|
6040
6042
|
class: g(["wpic-calendar-day flex h-9 w-9 items-center justify-center rounded-lg text-sm transition", g1(P)]),
|
|
6041
6043
|
onClick: (U) => x(P.iso)
|
|
6042
|
-
},
|
|
6044
|
+
}, f(P.day), 11, wn))), 128))
|
|
6043
6045
|
])
|
|
6044
6046
|
])
|
|
6045
6047
|
]),
|
|
@@ -6097,16 +6099,16 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6097
6099
|
x.type === "search" ? (e(), K(y0, {
|
|
6098
6100
|
key: 0,
|
|
6099
6101
|
"model-value": o(x.modelKey),
|
|
6100
|
-
icon:
|
|
6102
|
+
icon: b(P2),
|
|
6101
6103
|
placeholder: x.placeholder ?? "Search…",
|
|
6102
6104
|
clearable: x.clearable ?? !0,
|
|
6103
6105
|
class: "flex-1 min-w-0",
|
|
6104
|
-
style:
|
|
6106
|
+
style: b1(x.width ? { width: x.width } : {}),
|
|
6105
6107
|
"onUpdate:modelValue": (o1) => C(x.modelKey, o1)
|
|
6106
6108
|
}, null, 8, ["model-value", "icon", "placeholder", "clearable", "style", "onUpdate:modelValue"])) : x.type === "select" ? (e(), l("div", {
|
|
6107
6109
|
key: 1,
|
|
6108
6110
|
class: "shrink-0 text-base",
|
|
6109
|
-
style:
|
|
6111
|
+
style: b1({ width: x.width ?? "150px" })
|
|
6110
6112
|
}, [
|
|
6111
6113
|
M(Y2, X1({ ref_for: !0 }, n.selectLabels, {
|
|
6112
6114
|
"model-value": o(x.modelKey),
|
|
@@ -6127,7 +6129,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6127
6129
|
max: x.max,
|
|
6128
6130
|
clearable: x.clearable ?? !0,
|
|
6129
6131
|
class: "shrink-0",
|
|
6130
|
-
style:
|
|
6132
|
+
style: b1({ width: x.width ?? "170px" }),
|
|
6131
6133
|
"onUpdate:modelValue": (o1) => i(x.modelKey, o1)
|
|
6132
6134
|
}, null, 8, ["model-value", "placeholder", "locale", "min", "max", "clearable", "style", "onUpdate:modelValue"])) : x.type === "pills" ? (e(), l(W, { key: 3 }, [
|
|
6133
6135
|
M(on, {
|
|
@@ -6153,7 +6155,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6153
6155
|
class: "shrink-0 inline-flex items-center justify-center w-8 h-8 rounded-lg text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 hover:bg-zinc-100 dark:hover:bg-zinc-800 active:scale-90 active:bg-zinc-200 dark:active:bg-zinc-700 transition-all duration-150 cursor-pointer",
|
|
6154
6156
|
onClick: j
|
|
6155
6157
|
}, [
|
|
6156
|
-
M(
|
|
6158
|
+
M(b($3), {
|
|
6157
6159
|
size: 15,
|
|
6158
6160
|
class: g(t.loading || u.value ? "animate-spin" : "")
|
|
6159
6161
|
}, null, 8, ["class"])
|
|
@@ -6209,7 +6211,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6209
6211
|
onClick: k[1] || (k[1] = (C) => s.value = !s.value)
|
|
6210
6212
|
}, {
|
|
6211
6213
|
default: r1(() => [
|
|
6212
|
-
M(
|
|
6214
|
+
M(b(D1), { size: 14 })
|
|
6213
6215
|
]),
|
|
6214
6216
|
_: 1
|
|
6215
6217
|
}, 8, ["variant", "size", "disabled", "aria-expanded", "aria-label"])
|
|
@@ -6236,7 +6238,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6236
6238
|
key: 0,
|
|
6237
6239
|
size: 14
|
|
6238
6240
|
})) : m("", !0),
|
|
6239
|
-
a("span", null,
|
|
6241
|
+
a("span", null, f(C.label), 1)
|
|
6240
6242
|
]),
|
|
6241
6243
|
_: 2
|
|
6242
6244
|
}, 1032, ["disabled", "onClick"]))), 128))
|
|
@@ -6736,7 +6738,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6736
6738
|
s("update:modelValue", i);
|
|
6737
6739
|
}
|
|
6738
6740
|
return (i, j) => (e(), l("div", Sn, [
|
|
6739
|
-
n.label ? (e(), l("span", Fn,
|
|
6741
|
+
n.label ? (e(), l("span", Fn, f(n.label), 1)) : m("", !0),
|
|
6740
6742
|
a("button", {
|
|
6741
6743
|
ref_key: "buttonRef",
|
|
6742
6744
|
ref: u,
|
|
@@ -6747,7 +6749,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6747
6749
|
a("span", {
|
|
6748
6750
|
class: g(["h-4 w-4 rounded border border-black/10 dark:border-white/10", n.modelValue])
|
|
6749
6751
|
}, null, 2),
|
|
6750
|
-
a("span", Hn,
|
|
6752
|
+
a("span", Hn, f(k.value ? k.value.shade ? `${k.value.name}-${k.value.shade}` : k.value.name : n.modelValue), 1)
|
|
6751
6753
|
], 512),
|
|
6752
6754
|
M(n2, {
|
|
6753
6755
|
open: c.value,
|
|
@@ -6772,9 +6774,9 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6772
6774
|
(e(!0), l(W, null, a1(n.shades, ($) => (e(), l("div", {
|
|
6773
6775
|
key: $,
|
|
6774
6776
|
class: "text-center font-mono text-xs text-zinc-400"
|
|
6775
|
-
},
|
|
6777
|
+
}, f($), 1))), 128)),
|
|
6776
6778
|
(e(!0), l(W, null, a1(n.families, ($) => (e(), l(W, { key: $ }, [
|
|
6777
|
-
a("div", jn,
|
|
6779
|
+
a("div", jn, f($), 1),
|
|
6778
6780
|
(e(!0), l(W, null, a1(n.shades, (T) => (e(), l("button", {
|
|
6779
6781
|
key: `${$}-${T}`,
|
|
6780
6782
|
type: "button",
|
|
@@ -6944,12 +6946,12 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6944
6946
|
"flex w-full items-center gap-2 rounded-lg border border-zinc-200 bg-white text-zinc-700 transition hover:border-zinc-300 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-200 cursor-pointer"
|
|
6945
6947
|
]])
|
|
6946
6948
|
}, [
|
|
6947
|
-
M(
|
|
6949
|
+
M(b(T2), {
|
|
6948
6950
|
size: 16,
|
|
6949
6951
|
class: "shrink-0 text-zinc-400"
|
|
6950
6952
|
}),
|
|
6951
|
-
F.value ? (e(), l("span", In,
|
|
6952
|
-
!n.clearable || !n.modelValue ? (e(), K(
|
|
6953
|
+
F.value ? (e(), l("span", In, f(F.value), 1)) : (e(), l("span", Rn, f(n.placeholder), 1)),
|
|
6954
|
+
!n.clearable || !n.modelValue ? (e(), K(b(D1), {
|
|
6953
6955
|
key: 2,
|
|
6954
6956
|
size: 14,
|
|
6955
6957
|
class: "ml-auto shrink-0 text-zinc-400"
|
|
@@ -6963,7 +6965,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6963
6965
|
onClick: z1(w1, ["stop"]),
|
|
6964
6966
|
class: "wpic-date-clear absolute right-2 top-1/2 -translate-y-1/2 rounded p-0.5 cursor-pointer text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-[var(--wpic-primary)]"
|
|
6965
6967
|
}, [
|
|
6966
|
-
M(
|
|
6968
|
+
M(b($1), { size: 14 })
|
|
6967
6969
|
], 8, Zn)) : m("", !0),
|
|
6968
6970
|
M(n2, {
|
|
6969
6971
|
open: u.value,
|
|
@@ -6983,7 +6985,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6983
6985
|
"aria-pressed": o.value === G.value,
|
|
6984
6986
|
type: "button",
|
|
6985
6987
|
onClick: (p1) => L(G.value)
|
|
6986
|
-
},
|
|
6988
|
+
}, f(G.label), 11, Un))), 128))
|
|
6987
6989
|
]),
|
|
6988
6990
|
o.value === "custom" ? (e(), l("div", On, [
|
|
6989
6991
|
a("div", Yn, [
|
|
@@ -6993,23 +6995,23 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
6993
6995
|
onClick: q,
|
|
6994
6996
|
class: "rounded p-1 hover:bg-zinc-100 dark:hover:bg-zinc-800 cursor-pointer"
|
|
6995
6997
|
}, [
|
|
6996
|
-
M(
|
|
6998
|
+
M(b(C2), { size: 16 })
|
|
6997
6999
|
], 8, qn),
|
|
6998
|
-
a("span", Qn,
|
|
7000
|
+
a("span", Qn, f(o1.value), 1),
|
|
6999
7001
|
a("button", {
|
|
7000
7002
|
type: "button",
|
|
7001
7003
|
"aria-label": n.nextMonthLabel,
|
|
7002
7004
|
onClick: e1,
|
|
7003
7005
|
class: "rounded p-1 hover:bg-zinc-100 dark:hover:bg-zinc-800 cursor-pointer"
|
|
7004
7006
|
}, [
|
|
7005
|
-
M(
|
|
7007
|
+
M(b(j1), { size: 16 })
|
|
7006
7008
|
], 8, Jn)
|
|
7007
7009
|
]),
|
|
7008
7010
|
a("div", Xn, [
|
|
7009
7011
|
(e(!0), l(W, null, a1(g1.value, (G) => (e(), l("span", {
|
|
7010
7012
|
key: G,
|
|
7011
7013
|
class: "py-1 text-xs font-medium text-zinc-400"
|
|
7012
|
-
},
|
|
7014
|
+
}, f(G), 1))), 128))
|
|
7013
7015
|
]),
|
|
7014
7016
|
a("div", Gn, [
|
|
7015
7017
|
(e(!0), l(W, null, a1(P.value, (G) => (e(), l("button", {
|
|
@@ -7028,20 +7030,20 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
7028
7030
|
I(G.date) && "bg-[#85C531]/15 text-zinc-900 dark:text-zinc-100 rounded-none",
|
|
7029
7031
|
H(G.date) && !U(G.date) && "ring-1 ring-[#85C531]"
|
|
7030
7032
|
])
|
|
7031
|
-
},
|
|
7033
|
+
}, f(G.day), 11, _n))), 128))
|
|
7032
7034
|
]),
|
|
7033
7035
|
a("div", ne, [
|
|
7034
7036
|
a("div", ee, [
|
|
7035
|
-
a("span", te,
|
|
7037
|
+
a("span", te, f(z.value || "—"), 1),
|
|
7036
7038
|
d1[2] || (d1[2] = a("span", null, "→", -1)),
|
|
7037
|
-
a("span", le,
|
|
7039
|
+
a("span", le, f(k.value || "—"), 1)
|
|
7038
7040
|
]),
|
|
7039
7041
|
a("button", {
|
|
7040
7042
|
type: "button",
|
|
7041
7043
|
disabled: !z.value,
|
|
7042
7044
|
onClick: c1,
|
|
7043
7045
|
class: "wpic-range-apply w-full rounded-lg bg-[#85C531] py-2 font-medium text-white disabled:opacity-40 cursor-pointer"
|
|
7044
|
-
},
|
|
7046
|
+
}, f(n.applyLabel), 9, ae)
|
|
7045
7047
|
])
|
|
7046
7048
|
])) : m("", !0)
|
|
7047
7049
|
])
|
|
@@ -7099,12 +7101,12 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
7099
7101
|
class: g(["wpic-control inline-flex h-9 w-full min-w-0 items-center gap-1.5 rounded-lg border px-2.5 text-base outline-none transition-all", n.disabled ? "cursor-not-allowed border-zinc-200 bg-zinc-50 text-zinc-400 opacity-60 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-500" : u.value ? "wpic-select-open cursor-pointer border-zinc-200 bg-white text-zinc-900 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-100" : "wpic-input-field cursor-pointer border-zinc-200 bg-white text-zinc-900 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-100"]),
|
|
7100
7102
|
onClick: x[0] || (x[0] = (Z) => u.value = !u.value)
|
|
7101
7103
|
}, [
|
|
7102
|
-
M(
|
|
7104
|
+
M(b(T2), {
|
|
7103
7105
|
size: 13,
|
|
7104
7106
|
class: "shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
7105
7107
|
}),
|
|
7106
|
-
a("span", oe,
|
|
7107
|
-
M(
|
|
7108
|
+
a("span", oe, f(j.value), 1),
|
|
7109
|
+
M(b(D1), {
|
|
7108
7110
|
size: 13,
|
|
7109
7111
|
class: "ml-auto shrink-0 text-zinc-400 dark:text-zinc-500"
|
|
7110
7112
|
})
|
|
@@ -7125,16 +7127,16 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
7125
7127
|
class: "flex h-8 w-8 items-center justify-center rounded-lg text-zinc-400 hover:bg-zinc-100 hover:text-zinc-800 dark:hover:bg-zinc-800 dark:hover:text-zinc-100",
|
|
7126
7128
|
onClick: x[1] || (x[1] = (Z) => z.value--)
|
|
7127
7129
|
}, [
|
|
7128
|
-
M(
|
|
7130
|
+
M(b(C2), { size: 16 })
|
|
7129
7131
|
]),
|
|
7130
|
-
a("span", de,
|
|
7132
|
+
a("span", de, f(z.value), 1),
|
|
7131
7133
|
a("button", {
|
|
7132
7134
|
type: "button",
|
|
7133
7135
|
"aria-label": "Next year",
|
|
7134
7136
|
class: "flex h-8 w-8 items-center justify-center rounded-lg text-zinc-400 hover:bg-zinc-100 hover:text-zinc-800 dark:hover:bg-zinc-800 dark:hover:text-zinc-100",
|
|
7135
7137
|
onClick: x[2] || (x[2] = (Z) => z.value++)
|
|
7136
7138
|
}, [
|
|
7137
|
-
M(
|
|
7139
|
+
M(b(j1), { size: 16 })
|
|
7138
7140
|
])
|
|
7139
7141
|
]),
|
|
7140
7142
|
a("div", ue, [
|
|
@@ -7144,7 +7146,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
7144
7146
|
disabled: T(Z.value),
|
|
7145
7147
|
class: g(["rounded-lg px-2 py-2 capitalize transition disabled:cursor-not-allowed disabled:opacity-30", Z.value === n.modelValue ? "bg-zinc-900 font-medium text-white dark:bg-zinc-100 dark:text-zinc-900" : "text-zinc-700 hover:bg-zinc-100 dark:text-zinc-200 dark:hover:bg-zinc-800"]),
|
|
7146
7148
|
onClick: (o1) => F(Z.value)
|
|
7147
|
-
},
|
|
7149
|
+
}, f(Z.label), 11, he))), 128))
|
|
7148
7150
|
])
|
|
7149
7151
|
])
|
|
7150
7152
|
]),
|
|
@@ -7155,7 +7157,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
7155
7157
|
}), ve = {
|
|
7156
7158
|
key: 0,
|
|
7157
7159
|
class: "wpic-batch-action-bar fixed bottom-6 left-1/2 z-50 flex max-w-[calc(100%-1.5rem)] -translate-x-1/2 flex-wrap items-center justify-center gap-1 rounded-lg bg-zinc-800/95 p-1.5 shadow-md shadow-black/20 backdrop-blur"
|
|
7158
|
-
}, me = { class: "wpic-batch-action-count" },
|
|
7160
|
+
}, me = { class: "wpic-batch-action-count" }, be = /* @__PURE__ */ X({
|
|
7159
7161
|
__name: "WBatchActionBar",
|
|
7160
7162
|
props: {
|
|
7161
7163
|
visible: { type: Boolean },
|
|
@@ -7177,9 +7179,9 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
7177
7179
|
n.visible ? (e(), l("div", ve, [
|
|
7178
7180
|
a("span", me, [
|
|
7179
7181
|
n.count && n.count > 0 ? (e(), l(W, { key: 0 }, [
|
|
7180
|
-
m1(
|
|
7182
|
+
m1(f(n.count) + " " + f(n.countLabel ?? "selected"), 1)
|
|
7181
7183
|
], 64)) : (e(), l(W, { key: 1 }, [
|
|
7182
|
-
m1(
|
|
7184
|
+
m1(f(n.emptyLabel ?? "Select items"), 1)
|
|
7183
7185
|
], 64))
|
|
7184
7186
|
]),
|
|
7185
7187
|
Q(h.$slots, "default"),
|
|
@@ -7189,14 +7191,14 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
7189
7191
|
"aria-label": "Close",
|
|
7190
7192
|
onClick: t[0] || (t[0] = (s) => h.$emit("close"))
|
|
7191
7193
|
}, [
|
|
7192
|
-
M(
|
|
7194
|
+
M(b($1), { size: 16 })
|
|
7193
7195
|
])
|
|
7194
7196
|
])) : m("", !0)
|
|
7195
7197
|
]),
|
|
7196
7198
|
_: 3
|
|
7197
7199
|
}));
|
|
7198
7200
|
}
|
|
7199
|
-
}), Ta = /* @__PURE__ */ Y1(
|
|
7201
|
+
}), Ta = /* @__PURE__ */ Y1(be, [["__scopeId", "data-v-e42125ac"]]), fe = ["disabled", "aria-pressed", "onClick"], ja = /* @__PURE__ */ X({
|
|
7200
7202
|
__name: "WSegmentedControl",
|
|
7201
7203
|
props: {
|
|
7202
7204
|
modelValue: {},
|
|
@@ -7228,7 +7230,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
7228
7230
|
disabled: n.disabled || z.disabled,
|
|
7229
7231
|
"aria-pressed": n.modelValue === z.value,
|
|
7230
7232
|
onClick: (k) => u(z)
|
|
7231
|
-
},
|
|
7233
|
+
}, f(z.label), 11, fe))), 128))
|
|
7232
7234
|
], 2));
|
|
7233
7235
|
}
|
|
7234
7236
|
}), ze = ["width", "height", "fill"], ge = ["width", "height", "fill"], pe = ["width", "height"], Ce = ["width", "height", "fill"], ke = ["width", "height", "fill"], xe = ["width", "height", "fill"], ye = ["width", "height", "fill"], we = ["width", "height", "fill"], Me = ["width", "height", "fill"], Ve = ["width", "height"], Le = ["width", "height"], Be = ["width", "height", "fill"], $e = ["width", "height"], Ae = ["width", "height"], Se = ["width", "height", "fill"], Fe = ["width", "height", "fill"], He = ["width", "height"], Pe = ["width", "height"], Te = ["width", "height"], je = ["width", "height"], Ee = ["width", "height"], We = { key: 0 }, De = ["width", "height"], Ie = { key: 0 }, Re = ["width", "height"], Ze = ["width", "height"], Ne = ["width", "height"], Ke = ["width", "height"], Ue = {
|
|
@@ -7239,7 +7241,7 @@ const K7 = { class: "wpic-tag-input" }, U7 = {
|
|
|
7239
7241
|
key: 1,
|
|
7240
7242
|
transform: "translate(0,1104) scale(0.1,-0.1)",
|
|
7241
7243
|
stroke: "none"
|
|
7242
|
-
}, Xe = ["width", "height", "fill"], Ge = { transform: "translate(-13.602659,303.010650) scale(0.1,-0.1)" }, _e = { key: 0 }, nt = ["width", "height"], et = ["fill"], tt = ["fill"], lt = ["fill"], at = ["fill"], ct = ["width", "height"], it = ["width", "height"], ot = ["width", "height", "fill"], st = ["width", "height", "fill"], rt = ["width", "height", "fill"], dt = ["width", "height", "fill"], ut = ["width", "height", "fill"], ht = ["width", "height"], vt = ["width", "height"], mt = ["width", "height"],
|
|
7244
|
+
}, Xe = ["width", "height", "fill"], Ge = { transform: "translate(-13.602659,303.010650) scale(0.1,-0.1)" }, _e = { key: 0 }, nt = ["width", "height"], et = ["fill"], tt = ["fill"], lt = ["fill"], at = ["fill"], ct = ["width", "height"], it = ["width", "height"], ot = ["width", "height", "fill"], st = ["width", "height", "fill"], rt = ["width", "height", "fill"], dt = ["width", "height", "fill"], ut = ["width", "height", "fill"], ht = ["width", "height"], vt = ["width", "height"], mt = ["width", "height"], bt = ["width", "height"], ft = ["width", "height"], zt = ["width", "height"], gt = ["width", "height"], pt = ["width", "height"], Ct = ["width", "height"], kt = ["width", "height"], xt = ["width", "height"], yt = ["width", "height"], wt = ["width", "height"], Mt = ["width", "height"], Vt = ["width", "height"], Lt = ["width", "height"], Bt = ["width", "height"], $t = ["width", "height"], At = ["width", "height"], St = ["width", "height"], Ft = ["width", "height"], Ht = ["width", "height"], Pt = ["width", "height"], Tt = ["width", "height"], jt = ["width", "height"], Et = ["width", "height"], Wt = ["width", "height"], Dt = ["width", "height"], It = ["width", "height"], Rt = ["width", "height"], Zt = ["width", "height"], Nt = ["width", "height"], Kt = ["width", "height"], Ut = ["width", "height"], Ot = ["width", "height"], Yt = ["width", "height"], qt = ["width", "height"], Qt = ["width", "height"], Jt = ["width", "height"], Xt = ["width", "height"], Gt = ["width", "height"], _t = ["width", "height"], nl = ["width", "height"], el = ["width", "height"], tl = ["width", "height"], ll = ["width", "height"], al = ["width", "height"], cl = ["src", "width", "height"], il = ["src", "width", "height"], ol = ["width", "height"], sl = ["width", "height"], rl = ["width", "height"], dl = ["width", "height"], ul = {
|
|
7243
7245
|
key: 91,
|
|
7244
7246
|
class: "text-[10px] font-bold leading-none shrink-0 opacity-60 uppercase"
|
|
7245
7247
|
}, hl = /* @__PURE__ */ X({
|
|
@@ -9482,7 +9484,7 @@ l16 23 475 2 c467 2 475 2 495 -18z m3936 -11 c44 -12 103 -28 132 -35 28 -7
|
|
|
9482
9484
|
class: "shrink-0"
|
|
9483
9485
|
}, [...i[49] || (i[49] = [
|
|
9484
9486
|
A1('<g data-v-4207e5e4><path d="M0 0 C10.89 0 21.78 0 33 0 C33 60.72 33 121.44 33 184 C34.65 182.35 36.3 180.7 38 179 C39.02773379 177.98215119 40.05624282 176.9650838 41.0859375 175.94921875 C46.39209485 170.6942205 51.62289278 165.4538356 56.4609375 159.7578125 C58.0694055 157.92072976 59.75838868 156.21092213 61.5 154.5 C65.21218372 150.83709306 68.61329483 146.96330664 72 143 C72.81339844 142.06414062 73.62679687 141.12828125 74.46484375 140.1640625 C91.0456013 120.97693473 105.44232004 99.92097881 118.203125 78.0234375 C118.79609375 77.02570313 119.3890625 76.02796875 120 75 C120.51304687 73.95972656 121.02609375 72.91945313 121.5546875 71.84765625 C124 69 124 69 125.86444092 68.47549438 C128.23868477 68.30408318 130.5430266 68.32556582 132.921875 68.4140625 C134.21185394 68.42679703 134.21185394 68.42679703 135.52789307 68.43978882 C138.26987962 68.47332946 141.00890538 68.5486049 143.75 68.625 C145.61063455 68.65509898 147.47131529 68.68247491 149.33203125 68.70703125 C153.88915852 68.7731224 158.44407766 68.8766447 163 69 C161.6738077 73.44493935 159.91755334 77.12046251 157.5078125 81.078125 C156.99493431 81.92461609 156.99493431 81.92461609 156.47169495 82.78820801 C155.36286363 84.61301396 154.24466474 86.43182416 153.125 88.25 C152.74284332 88.8742688 152.36068665 89.4985376 151.96694946 90.14172363 C137.09850274 114.42927711 121.05948873 139.05340953 100.9765625 159.421875 C99.79012688 160.95938078 99.79012688 160.95938078 100.27661133 162.85131836 C101.08126971 165.24139545 102.13162748 166.90666032 103.59765625 168.95703125 C104.14341309 169.72764893 104.68916992 170.4982666 105.25146484 171.29223633 C105.84910645 172.12392334 106.44674805 172.95561035 107.0625 173.8125 C108.34813967 175.62465713 109.6332767 177.43717095 110.91796875 179.25 C111.92609619 180.66732422 111.92609619 180.66732422 112.95458984 182.11328125 C116.29278976 186.82453403 119.58282465 191.56902706 122.875 196.3125 C124.22644087 198.25659498 125.57800425 200.20060479 126.9296875 202.14453125 C127.60225586 203.11213379 128.27482422 204.07973633 128.96777344 205.07666016 C132.31061055 209.88530162 135.65539381 214.69258892 139 219.5 C140.33334287 221.41666003 141.6666762 223.3333267 143 225.25 C143.66 226.19875 144.32 227.1475 145 228.125 C148 232.4375 148 232.4375 151 236.75 C151.66104736 237.7002002 152.32209473 238.65040039 153.00317383 239.62939453 C154.3261379 241.53126659 155.64889446 243.433283 156.97143555 245.33544922 C160.46166275 250.35472423 163.95627825 255.37087196 167.45703125 260.3828125 C168.55047852 261.94999023 168.55047852 261.94999023 169.66601562 263.54882812 C171.06312625 265.55105673 172.46149846 267.55240581 173.86132812 269.55273438 C174.49103516 270.45572266 175.12074219 271.35871094 175.76953125 272.2890625 C176.32229736 273.08006348 176.87506348 273.87106445 177.44458008 274.68603516 C179.05158518 277.07674217 180.5390952 279.51780817 182 282 C176.50555149 282.3739677 171.01863817 282.6442543 165.5144043 282.82397461 C163.64818285 282.89892003 161.7828281 283.00093955 159.91967773 283.1315918 C144.9691431 284.15285789 144.9691431 284.15285789 140.15133667 280.65957642 C136.77497155 277.18386726 134.39018373 273.16944482 132.08029175 268.93502808 C130.5594121 266.21081508 128.75092942 263.72862302 126.91796875 261.20703125 C125.67258864 259.41016299 124.42911031 257.6119752 123.1875 255.8125 C121.80884882 253.82273991 120.42993775 251.83315987 119.05078125 249.84375 C118.37225098 248.8640625 117.6937207 247.884375 116.99462891 246.875 C113.96755065 242.51185759 110.92247043 238.16141349 107.875 233.8125 C107.02397705 232.59735718 107.02397705 232.59735718 106.15576172 231.35766602 C103.23956743 227.19434391 100.32135614 223.03244034 97.40234375 218.87109375 C90.21333375 208.6178996 83.07223121 198.33411745 76 188 C69.29999388 193.54297695 63.29627593 199.67148294 57.23242188 205.89453125 C56.07129883 207.07208984 56.07129883 207.07208984 54.88671875 208.2734375 C54.18764404 208.98935059 53.48856934 209.70526367 52.76831055 210.44287109 C51 212 51 212 49 212 C49 212.66 49 213.32 49 214 C47.49609375 215.515625 47.49609375 215.515625 45.4375 217.25 C44.77621094 217.81203125 44.11492187 218.3740625 43.43359375 218.953125 C41 221 41 221 39.26281738 222.06881714 C36.09876831 224.23185252 34.27924722 225.86456247 33.34498596 229.66333008 C33.09327652 232.99826027 33.05698285 236.2729459 33.09765625 239.6171875 C33.08536484 240.82948029 33.07307343 242.04177307 33.06040955 243.290802 C33.02868328 247.15281738 33.04495822 251.01292495 33.0625 254.875 C33.04939117 257.49741358 33.03315143 260.11981351 33.01367188 262.7421875 C32.9669409 269.1626174 32.98514463 275.57823752 33 282 C22.11 282 11.22 282 0 282 C0 188.94 0 95.88 0 0 Z " class="fill-black dark:fill-white" transform="translate(128,117)" data-v-4207e5e4></path><path d="M0 0 C10.89 0 21.78 0 33 0 C33.33 60.72 33.66 121.44 34 184 C37.96 179.71 41.92 175.42 46 171 C49.8125 167.1875 49.8125 167.1875 51.42578125 165.60546875 C53.82019095 163.16352735 56.01849876 160.55888537 58.25 157.96875 C59.93798286 156.06976929 61.68769734 154.27994012 63.5 152.5 C84.58477205 131.64743909 101.88273029 105.99726002 116.89453125 80.53515625 C117.22041229 80.00206848 117.54629333 79.46898071 117.88204956 78.91973877 C119.03313025 77.00473419 119.03313025 77.00473419 119.98226929 74.93223572 C122.82488905 69.4220379 122.82488905 69.4220379 125.95262146 68.29872131 C128.34612975 68.07309193 130.6183868 68.09890543 133.01953125 68.21875 C133.87810226 68.23006958 134.73667328 68.24138916 135.6212616 68.25305176 C138.35397984 68.2977125 141.08137882 68.39803686 143.8125 68.5 C145.6685438 68.54014118 147.52467017 68.57664086 149.38085938 68.609375 C153.92261122 68.69741201 158.46040515 68.83537281 163 69 C161.69824649 73.30212203 160.0425774 76.95570671 157.76171875 80.82421875 C157.11315918 81.92572266 156.46459961 83.02722656 155.79638672 84.16210938 C155.09418815 85.33769607 154.39120811 86.51281629 153.6875 87.6875 C153.15119965 88.58746704 153.15119965 88.58746704 152.60406494 89.50561523 C146.15814347 100.30710253 139.33675248 110.78134474 132 121 C131.43039551 121.79873535 130.86079102 122.5974707 130.27392578 123.42041016 C123.47021921 132.93058427 116.44929136 142.14453277 108.71875 150.921875 C108.06519531 151.66920898 108.06519531 151.66920898 107.3984375 152.43164062 C106.38105764 153.57264067 105.34142128 154.69391343 104.2890625 155.80273438 C103.72960937 156.40923828 103.17015625 157.01574219 102.59375 157.640625 C102.07490234 158.18750977 101.55605469 158.73439453 101.02148438 159.29785156 C99.79395429 160.95863216 99.79395429 160.95863216 100.20288086 163.00366211 C101.58108807 166.45530082 103.88603629 169.32841329 106.0625 172.3125 C107.16368766 173.84699126 108.26389683 175.38218504 109.36328125 176.91796875 C109.95318848 177.73958496 110.5430957 178.56120117 111.15087891 179.40771484 C114.3919132 183.95132485 117.56853865 188.5395755 120.75 193.125 C122.11974253 195.09638831 123.48953474 197.0677421 124.859375 199.0390625 C125.88708008 200.51874512 125.88708008 200.51874512 126.93554688 202.02832031 C130.28792757 206.85390898 133.64411825 211.67684577 137 216.5 C138.33335242 218.41665339 139.66668573 220.33332007 141 222.25 C141.66 223.19875 142.32 224.1475 143 225.125 C145 228 147 230.875 149 233.75 C149.99132935 235.17493774 149.99132935 235.17493774 151.00268555 236.62866211 C152.32731537 238.53294904 153.65169951 240.4374069 154.97583008 242.34204102 C158.44026478 247.32459399 161.9097397 252.30353482 165.38671875 257.27734375 C166.10666016 258.30859375 166.82660156 259.33984375 167.56835938 260.40234375 C168.9391666 262.36569345 170.31146311 264.32800454 171.68554688 266.2890625 C172.62043945 267.62904297 172.62043945 267.62904297 173.57421875 268.99609375 C174.11651123 269.77138428 174.65880371 270.5466748 175.2175293 271.34545898 C177.56612663 274.84310297 179.78450736 278.41701279 182 282 C147.86936509 284.81316258 147.86936509 284.81316258 139.08740234 280.60400391 C134.75604384 276.84119352 132.5817449 271.9554353 130.32763672 266.76806641 C127.872249 261.64868687 124.38331377 257.20956146 121.0625 252.625 C119.6972378 250.66594782 118.33653372 248.703711 116.98046875 246.73828125 C113.29369767 241.41909035 109.58876714 236.11286809 105.875 230.8125 C105.30894043 230.00433838 104.74288086 229.19617676 104.15966797 228.36352539 C102.44006877 225.90881349 100.72008678 223.45437025 99 221 C91.30497237 210.01947813 83.61336813 199.03736968 76 188 C69.27824246 193.56687839 63.2329006 199.7085136 57.11523438 205.92382812 C53.46454468 209.6098186 49.80775431 213.24304122 45.90234375 216.66015625 C45.00401573 217.45073929 45.00401573 217.45073929 44.08753967 218.2572937 C42 220 42 220 39.90406799 221.41040039 C36.55488038 223.82523247 34.35607873 225.6754642 33.26133728 229.74766541 C32.97890802 233.09336455 32.9441403 236.35768459 33 239.71484375 C32.98912354 240.92572159 32.97824707 242.13659943 32.96704102 243.38417053 C32.94093057 247.23619118 32.96970188 251.08555086 33 254.9375 C32.99190672 257.55535226 32.98022825 260.17319606 32.96484375 262.79101562 C32.92830377 269.19566199 32.96602607 275.5937914 33 282 C22.11 282 11.22 282 0 282 C0 188.94 0 95.88 0 0 Z " class="fill-black dark:fill-white" transform="translate(714,117)" data-v-4207e5e4></path><path d="M0 0 C54.12 0 108.24 0 164 0 C164 29.94130886 164 29.94130886 154.63671875 42.83203125 C151.75905852 46.89198012 149.09330671 51.02133161 146.50512695 55.27026367 C133.64855834 76.25547341 118.82990003 96.17160354 103 115 C102.34596191 115.78141357 102.34596191 115.78141357 101.67871094 116.57861328 C89.95979005 130.54929346 77.43195697 143.65553837 64.5625 156.5625 C64.0420813 157.08559753 63.5216626 157.60869507 62.98547363 158.14764404 C61.47377045 159.66525185 59.95826667 161.1789548 58.44140625 162.69140625 C57.56170166 163.56998291 56.68199707 164.44855957 55.77563477 165.35375977 C52.62704276 168.35557072 49.30294081 171.16890788 46 174 C86.59 174.33 127.18 174.66 169 175 C169 185.23 169 195.46 169 206 C111.58 206 54.16 206 -5 206 C-5 197.42 -5 188.84 -5 180 C-2.36 177.69 0.28 175.38 3 173 C11.42846163 165.47739776 19.51052236 157.64769308 27.48364258 149.64672852 C29.32454708 147.80041754 31.17080272 145.95957727 33.01757812 144.11914062 C38.3720782 138.76765324 43.67790129 133.4264022 48.58764648 127.6574707 C50.77229603 125.09367023 53.07923189 122.65217598 55.375 120.1875 C60.49005227 114.6433473 65.28627538 108.89020796 70 103 C70.92240375 101.86916043 71.84562196 100.73898485 72.76953125 99.609375 C83.82533878 86.03429029 93.89984169 71.90979627 103.375 57.1875 C104.02887695 56.17445801 104.68275391 55.16141602 105.35644531 54.11767578 C108.68779837 48.88305606 111.80974989 43.59272591 114.73291016 38.1184082 C115.34897125 36.96693802 115.96503235 35.81546783 116.59976196 34.62910461 C117.06184052 33.76150009 117.52391907 32.89389557 118 32 C117.09690267 31.99365209 117.09690267 31.99365209 116.17556095 31.98717594 C101.54602773 31.88400454 86.91654201 31.77538733 72.28709507 31.66066074 C65.21249122 31.60531273 58.13788232 31.5518282 51.06323242 31.50268555 C44.24217287 31.45529923 37.42116854 31.40277955 30.60017204 31.34705925 C27.99134549 31.32660053 25.38250462 31.30789342 22.77365303 31.29092598 C19.13363567 31.26695958 15.49371794 31.23689476 11.85375977 31.20532227 C10.76331863 31.1995668 9.6728775 31.19381134 8.5493927 31.18788147 C7.56356201 31.17809265 6.57773132 31.16830383 5.56202698 31.15821838 C4.70015054 31.15176583 3.8382741 31.14531328 2.95028019 31.1386652 C1 31 1 31 0 30 C0 20.1 0 10.2 0 0 Z " class="fill-black dark:fill-white" transform="translate(420,193)" data-v-4207e5e4></path><path d="M0 0 C10.89 0 21.78 0 33 0 C33 67.98 33 135.96 33 206 C22.11 206 11.22 206 0 206 C0 138.02 0 70.04 0 0 Z " class="fill-black dark:fill-white" transform="translate(628,193)" data-v-4207e5e4></path><path d="M0 0 C10.89 0 21.78 0 33 0 C33 67.98 33 135.96 33 206 C22.11 206 11.22 206 0 206 C0 138.02 0 70.04 0 0 Z " class="fill-black dark:fill-white" transform="translate(343,193)" data-v-4207e5e4></path><path d="M0 0 C4.51657458 3.31473928 8.50461623 7.81001316 9.8203125 13.3359375 C10.70957063 20.29716129 9.26981306 26.23790401 5.8203125 32.3359375 C1.51561933 37.53382349 -4.51636244 40.08228749 -11.1171875 40.7109375 C-17.57079032 40.43578389 -23.71600891 38.04089602 -28.1796875 33.3359375 C-32.42111897 26.95035698 -34.51039129 20.99376118 -33.1796875 13.3359375 C-31.29431566 7.10312001 -27.54025038 2.91750039 -22.1796875 -0.6640625 C-15.11613368 -4.11735548 -6.80875339 -3.88677825 0 0 Z " class="fill-black dark:fill-white" transform="translate(371.1796875,116.6640625)" data-v-4207e5e4></path><path d="M0 0 C5.74030722 3.32395613 9.62027381 8.16064957 11.6875 14.4375 C12.59875726 21.52623377 11.97164723 27.59669058 7.6875 33.4375 C2.4478313 38.79625208 -2.88639337 40.99542173 -10.1875 41.9375 C-16.09329399 41.6695843 -21.87054186 38.93638024 -25.98828125 34.72265625 C-27.25673575 33.01267481 -28.31433219 31.31614771 -29.3125 29.4375 C-29.9621875 28.2309375 -29.9621875 28.2309375 -30.625 27 C-32.62993429 19.52706309 -31.10053386 13.06102119 -27.3125 6.4375 C-20.38280123 -1.54314835 -9.88518325 -4.42932249 0 0 Z " class="fill-black dark:fill-white" transform="translate(654.3125,115.5625)" data-v-4207e5e4></path></g>', 1)
|
|
9485
|
-
])], 8,
|
|
9487
|
+
])], 8, bt)) : o.value === "kizik" && n.mono ? (e(), l("svg", {
|
|
9486
9488
|
key: 42,
|
|
9487
9489
|
width: c.value * (1024 / 512),
|
|
9488
9490
|
height: c.value,
|
|
@@ -9491,7 +9493,7 @@ l16 23 475 2 c467 2 475 2 495 -18z m3936 -11 c44 -12 103 -28 132 -35 28 -7
|
|
|
9491
9493
|
class: "shrink-0"
|
|
9492
9494
|
}, [...i[50] || (i[50] = [
|
|
9493
9495
|
A1('<g data-v-4207e5e4><path d="M0 0 C10.89 0 21.78 0 33 0 C33 60.72 33 121.44 33 184 C34.65 182.35 36.3 180.7 38 179 C39.02773379 177.98215119 40.05624282 176.9650838 41.0859375 175.94921875 C46.39209485 170.6942205 51.62289278 165.4538356 56.4609375 159.7578125 C58.0694055 157.92072976 59.75838868 156.21092213 61.5 154.5 C65.21218372 150.83709306 68.61329483 146.96330664 72 143 C72.81339844 142.06414062 73.62679687 141.12828125 74.46484375 140.1640625 C91.0456013 120.97693473 105.44232004 99.92097881 118.203125 78.0234375 C118.79609375 77.02570313 119.3890625 76.02796875 120 75 C120.51304687 73.95972656 121.02609375 72.91945313 121.5546875 71.84765625 C124 69 124 69 125.86444092 68.47549438 C128.23868477 68.30408318 130.5430266 68.32556582 132.921875 68.4140625 C134.21185394 68.42679703 134.21185394 68.42679703 135.52789307 68.43978882 C138.26987962 68.47332946 141.00890538 68.5486049 143.75 68.625 C145.61063455 68.65509898 147.47131529 68.68247491 149.33203125 68.70703125 C153.88915852 68.7731224 158.44407766 68.8766447 163 69 C161.6738077 73.44493935 159.91755334 77.12046251 157.5078125 81.078125 C156.99493431 81.92461609 156.99493431 81.92461609 156.47169495 82.78820801 C155.36286363 84.61301396 154.24466474 86.43182416 153.125 88.25 C152.74284332 88.8742688 152.36068665 89.4985376 151.96694946 90.14172363 C137.09850274 114.42927711 121.05948873 139.05340953 100.9765625 159.421875 C99.79012688 160.95938078 99.79012688 160.95938078 100.27661133 162.85131836 C101.08126971 165.24139545 102.13162748 166.90666032 103.59765625 168.95703125 C104.14341309 169.72764893 104.68916992 170.4982666 105.25146484 171.29223633 C105.84910645 172.12392334 106.44674805 172.95561035 107.0625 173.8125 C108.34813967 175.62465713 109.6332767 177.43717095 110.91796875 179.25 C111.92609619 180.66732422 111.92609619 180.66732422 112.95458984 182.11328125 C116.29278976 186.82453403 119.58282465 191.56902706 122.875 196.3125 C124.22644087 198.25659498 125.57800425 200.20060479 126.9296875 202.14453125 C127.60225586 203.11213379 128.27482422 204.07973633 128.96777344 205.07666016 C132.31061055 209.88530162 135.65539381 214.69258892 139 219.5 C140.33334287 221.41666003 141.6666762 223.3333267 143 225.25 C143.66 226.19875 144.32 227.1475 145 228.125 C148 232.4375 148 232.4375 151 236.75 C151.66104736 237.7002002 152.32209473 238.65040039 153.00317383 239.62939453 C154.3261379 241.53126659 155.64889446 243.433283 156.97143555 245.33544922 C160.46166275 250.35472423 163.95627825 255.37087196 167.45703125 260.3828125 C168.55047852 261.94999023 168.55047852 261.94999023 169.66601562 263.54882812 C171.06312625 265.55105673 172.46149846 267.55240581 173.86132812 269.55273438 C174.49103516 270.45572266 175.12074219 271.35871094 175.76953125 272.2890625 C176.32229736 273.08006348 176.87506348 273.87106445 177.44458008 274.68603516 C179.05158518 277.07674217 180.5390952 279.51780817 182 282 C176.50555149 282.3739677 171.01863817 282.6442543 165.5144043 282.82397461 C163.64818285 282.89892003 161.7828281 283.00093955 159.91967773 283.1315918 C144.9691431 284.15285789 144.9691431 284.15285789 140.15133667 280.65957642 C136.77497155 277.18386726 134.39018373 273.16944482 132.08029175 268.93502808 C130.5594121 266.21081508 128.75092942 263.72862302 126.91796875 261.20703125 C125.67258864 259.41016299 124.42911031 257.6119752 123.1875 255.8125 C121.80884882 253.82273991 120.42993775 251.83315987 119.05078125 249.84375 C118.37225098 248.8640625 117.6937207 247.884375 116.99462891 246.875 C113.96755065 242.51185759 110.92247043 238.16141349 107.875 233.8125 C107.02397705 232.59735718 107.02397705 232.59735718 106.15576172 231.35766602 C103.23956743 227.19434391 100.32135614 223.03244034 97.40234375 218.87109375 C90.21333375 208.6178996 83.07223121 198.33411745 76 188 C69.29999388 193.54297695 63.29627593 199.67148294 57.23242188 205.89453125 C56.07129883 207.07208984 56.07129883 207.07208984 54.88671875 208.2734375 C54.18764404 208.98935059 53.48856934 209.70526367 52.76831055 210.44287109 C51 212 51 212 49 212 C49 212.66 49 213.32 49 214 C47.49609375 215.515625 47.49609375 215.515625 45.4375 217.25 C44.77621094 217.81203125 44.11492187 218.3740625 43.43359375 218.953125 C41 221 41 221 39.26281738 222.06881714 C36.09876831 224.23185252 34.27924722 225.86456247 33.34498596 229.66333008 C33.09327652 232.99826027 33.05698285 236.2729459 33.09765625 239.6171875 C33.08536484 240.82948029 33.07307343 242.04177307 33.06040955 243.290802 C33.02868328 247.15281738 33.04495822 251.01292495 33.0625 254.875 C33.04939117 257.49741358 33.03315143 260.11981351 33.01367188 262.7421875 C32.9669409 269.1626174 32.98514463 275.57823752 33 282 C22.11 282 11.22 282 0 282 C0 188.94 0 95.88 0 0 Z " transform="translate(128,117)" data-v-4207e5e4></path><path d="M0 0 C10.89 0 21.78 0 33 0 C33.33 60.72 33.66 121.44 34 184 C37.96 179.71 41.92 175.42 46 171 C49.8125 167.1875 49.8125 167.1875 51.42578125 165.60546875 C53.82019095 163.16352735 56.01849876 160.55888537 58.25 157.96875 C59.93798286 156.06976929 61.68769734 154.27994012 63.5 152.5 C84.58477205 131.64743909 101.88273029 105.99726002 116.89453125 80.53515625 C117.22041229 80.00206848 117.54629333 79.46898071 117.88204956 78.91973877 C119.03313025 77.00473419 119.03313025 77.00473419 119.98226929 74.93223572 C122.82488905 69.4220379 122.82488905 69.4220379 125.95262146 68.29872131 C128.34612975 68.07309193 130.6183868 68.09890543 133.01953125 68.21875 C133.87810226 68.23006958 134.73667328 68.24138916 135.6212616 68.25305176 C138.35397984 68.2977125 141.08137882 68.39803686 143.8125 68.5 C145.6685438 68.54014118 147.52467017 68.57664086 149.38085938 68.609375 C153.92261122 68.69741201 158.46040515 68.83537281 163 69 C161.69824649 73.30212203 160.0425774 76.95570671 157.76171875 80.82421875 C157.11315918 81.92572266 156.46459961 83.02722656 155.79638672 84.16210938 C155.09418815 85.33769607 154.39120811 86.51281629 153.6875 87.6875 C153.15119965 88.58746704 153.15119965 88.58746704 152.60406494 89.50561523 C146.15814347 100.30710253 139.33675248 110.78134474 132 121 C131.43039551 121.79873535 130.86079102 122.5974707 130.27392578 123.42041016 C123.47021921 132.93058427 116.44929136 142.14453277 108.71875 150.921875 C108.06519531 151.66920898 108.06519531 151.66920898 107.3984375 152.43164062 C106.38105764 153.57264067 105.34142128 154.69391343 104.2890625 155.80273438 C103.72960937 156.40923828 103.17015625 157.01574219 102.59375 157.640625 C102.07490234 158.18750977 101.55605469 158.73439453 101.02148438 159.29785156 C99.79395429 160.95863216 99.79395429 160.95863216 100.20288086 163.00366211 C101.58108807 166.45530082 103.88603629 169.32841329 106.0625 172.3125 C107.16368766 173.84699126 108.26389683 175.38218504 109.36328125 176.91796875 C109.95318848 177.73958496 110.5430957 178.56120117 111.15087891 179.40771484 C114.3919132 183.95132485 117.56853865 188.5395755 120.75 193.125 C122.11974253 195.09638831 123.48953474 197.0677421 124.859375 199.0390625 C125.88708008 200.51874512 125.88708008 200.51874512 126.93554688 202.02832031 C130.28792757 206.85390898 133.64411825 211.67684577 137 216.5 C138.33335242 218.41665339 139.66668573 220.33332007 141 222.25 C141.66 223.19875 142.32 224.1475 143 225.125 C145 228 147 230.875 149 233.75 C149.99132935 235.17493774 149.99132935 235.17493774 151.00268555 236.62866211 C152.32731537 238.53294904 153.65169951 240.4374069 154.97583008 242.34204102 C158.44026478 247.32459399 161.9097397 252.30353482 165.38671875 257.27734375 C166.10666016 258.30859375 166.82660156 259.33984375 167.56835938 260.40234375 C168.9391666 262.36569345 170.31146311 264.32800454 171.68554688 266.2890625 C172.62043945 267.62904297 172.62043945 267.62904297 173.57421875 268.99609375 C174.11651123 269.77138428 174.65880371 270.5466748 175.2175293 271.34545898 C177.56612663 274.84310297 179.78450736 278.41701279 182 282 C147.86936509 284.81316258 147.86936509 284.81316258 139.08740234 280.60400391 C134.75604384 276.84119352 132.5817449 271.9554353 130.32763672 266.76806641 C127.872249 261.64868687 124.38331377 257.20956146 121.0625 252.625 C119.6972378 250.66594782 118.33653372 248.703711 116.98046875 246.73828125 C113.29369767 241.41909035 109.58876714 236.11286809 105.875 230.8125 C105.30894043 230.00433838 104.74288086 229.19617676 104.15966797 228.36352539 C102.44006877 225.90881349 100.72008678 223.45437025 99 221 C91.30497237 210.01947813 83.61336813 199.03736968 76 188 C69.27824246 193.56687839 63.2329006 199.7085136 57.11523438 205.92382812 C53.46454468 209.6098186 49.80775431 213.24304122 45.90234375 216.66015625 C45.00401573 217.45073929 45.00401573 217.45073929 44.08753967 218.2572937 C42 220 42 220 39.90406799 221.41040039 C36.55488038 223.82523247 34.35607873 225.6754642 33.26133728 229.74766541 C32.97890802 233.09336455 32.9441403 236.35768459 33 239.71484375 C32.98912354 240.92572159 32.97824707 242.13659943 32.96704102 243.38417053 C32.94093057 247.23619118 32.96970188 251.08555086 33 254.9375 C32.99190672 257.55535226 32.98022825 260.17319606 32.96484375 262.79101562 C32.92830377 269.19566199 32.96602607 275.5937914 33 282 C22.11 282 11.22 282 0 282 C0 188.94 0 95.88 0 0 Z " transform="translate(714,117)" data-v-4207e5e4></path><path d="M0 0 C54.12 0 108.24 0 164 0 C164 29.94130886 164 29.94130886 154.63671875 42.83203125 C151.75905852 46.89198012 149.09330671 51.02133161 146.50512695 55.27026367 C133.64855834 76.25547341 118.82990003 96.17160354 103 115 C102.34596191 115.78141357 102.34596191 115.78141357 101.67871094 116.57861328 C89.95979005 130.54929346 77.43195697 143.65553837 64.5625 156.5625 C64.0420813 157.08559753 63.5216626 157.60869507 62.98547363 158.14764404 C61.47377045 159.66525185 59.95826667 161.1789548 58.44140625 162.69140625 C57.56170166 163.56998291 56.68199707 164.44855957 55.77563477 165.35375977 C52.62704276 168.35557072 49.30294081 171.16890788 46 174 C86.59 174.33 127.18 174.66 169 175 C169 185.23 169 195.46 169 206 C111.58 206 54.16 206 -5 206 C-5 197.42 -5 188.84 -5 180 C-2.36 177.69 0.28 175.38 3 173 C11.42846163 165.47739776 19.51052236 157.64769308 27.48364258 149.64672852 C29.32454708 147.80041754 31.17080272 145.95957727 33.01757812 144.11914062 C38.3720782 138.76765324 43.67790129 133.4264022 48.58764648 127.6574707 C50.77229603 125.09367023 53.07923189 122.65217598 55.375 120.1875 C60.49005227 114.6433473 65.28627538 108.89020796 70 103 C70.92240375 101.86916043 71.84562196 100.73898485 72.76953125 99.609375 C83.82533878 86.03429029 93.89984169 71.90979627 103.375 57.1875 C104.02887695 56.17445801 104.68275391 55.16141602 105.35644531 54.11767578 C108.68779837 48.88305606 111.80974989 43.59272591 114.73291016 38.1184082 C115.34897125 36.96693802 115.96503235 35.81546783 116.59976196 34.62910461 C117.06184052 33.76150009 117.52391907 32.89389557 118 32 C117.09690267 31.99365209 117.09690267 31.99365209 116.17556095 31.98717594 C101.54602773 31.88400454 86.91654201 31.77538733 72.28709507 31.66066074 C65.21249122 31.60531273 58.13788232 31.5518282 51.06323242 31.50268555 C44.24217287 31.45529923 37.42116854 31.40277955 30.60017204 31.34705925 C27.99134549 31.32660053 25.38250462 31.30789342 22.77365303 31.29092598 C19.13363567 31.26695958 15.49371794 31.23689476 11.85375977 31.20532227 C10.76331863 31.1995668 9.6728775 31.19381134 8.5493927 31.18788147 C7.56356201 31.17809265 6.57773132 31.16830383 5.56202698 31.15821838 C4.70015054 31.15176583 3.8382741 31.14531328 2.95028019 31.1386652 C1 31 1 31 0 30 C0 20.1 0 10.2 0 0 Z " transform="translate(420,193)" data-v-4207e5e4></path><path d="M0 0 C10.89 0 21.78 0 33 0 C33 67.98 33 135.96 33 206 C22.11 206 11.22 206 0 206 C0 138.02 0 70.04 0 0 Z " transform="translate(628,193)" data-v-4207e5e4></path><path d="M0 0 C10.89 0 21.78 0 33 0 C33 67.98 33 135.96 33 206 C22.11 206 11.22 206 0 206 C0 138.02 0 70.04 0 0 Z " transform="translate(343,193)" data-v-4207e5e4></path><path d="M0 0 C4.51657458 3.31473928 8.50461623 7.81001316 9.8203125 13.3359375 C10.70957063 20.29716129 9.26981306 26.23790401 5.8203125 32.3359375 C1.51561933 37.53382349 -4.51636244 40.08228749 -11.1171875 40.7109375 C-17.57079032 40.43578389 -23.71600891 38.04089602 -28.1796875 33.3359375 C-32.42111897 26.95035698 -34.51039129 20.99376118 -33.1796875 13.3359375 C-31.29431566 7.10312001 -27.54025038 2.91750039 -22.1796875 -0.6640625 C-15.11613368 -4.11735548 -6.80875339 -3.88677825 0 0 Z " transform="translate(371.1796875,116.6640625)" data-v-4207e5e4></path><path d="M0 0 C5.74030722 3.32395613 9.62027381 8.16064957 11.6875 14.4375 C12.59875726 21.52623377 11.97164723 27.59669058 7.6875 33.4375 C2.4478313 38.79625208 -2.88639337 40.99542173 -10.1875 41.9375 C-16.09329399 41.6695843 -21.87054186 38.93638024 -25.98828125 34.72265625 C-27.25673575 33.01267481 -28.31433219 31.31614771 -29.3125 29.4375 C-29.9621875 28.2309375 -29.9621875 28.2309375 -30.625 27 C-32.62993429 19.52706309 -31.10053386 13.06102119 -27.3125 6.4375 C-20.38280123 -1.54314835 -9.88518325 -4.42932249 0 0 Z " transform="translate(654.3125,115.5625)" data-v-4207e5e4></path></g>', 1)
|
|
9494
|
-
])], 8,
|
|
9496
|
+
])], 8, ft)) : o.value === "nuskin" && !n.mono ? (e(), l("svg", {
|
|
9495
9497
|
key: 43,
|
|
9496
9498
|
width: c.value * (1772 / 1804),
|
|
9497
9499
|
height: c.value,
|
|
@@ -16678,14 +16680,14 @@ m-26 -283 c36 -14 68 -50 68 -76 0 -13 -14 -40 -31 -60 -43 -48 -87 -49 -135
|
|
|
16678
16680
|
], -1)
|
|
16679
16681
|
])], 8, al)) : o.value === "tabasco" && !n.mono ? (e(), l("img", {
|
|
16680
16682
|
key: 85,
|
|
16681
|
-
src:
|
|
16683
|
+
src: b(h),
|
|
16682
16684
|
width: c.value,
|
|
16683
16685
|
height: c.value,
|
|
16684
16686
|
alt: "",
|
|
16685
16687
|
class: "shrink-0"
|
|
16686
16688
|
}, null, 8, cl)) : o.value === "tabasco" && n.mono ? (e(), l("img", {
|
|
16687
16689
|
key: 86,
|
|
16688
|
-
src:
|
|
16690
|
+
src: b(t),
|
|
16689
16691
|
width: c.value,
|
|
16690
16692
|
height: c.value,
|
|
16691
16693
|
alt: "",
|
|
@@ -17713,9 +17715,9 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17713
17715
|
1329 c-17 -9 -18 -43 -18 -489 0 -464 1 -480 19 -490 25 -13 77 -13 102 0 18
|
|
17714
17716
|
10 19 26 19 490 0 464 -1 480 -19 490 -25 13 -81 13 -103 -1z` })
|
|
17715
17717
|
], -1)
|
|
17716
|
-
])], 8, dl)) : (e(), l("span", ul,
|
|
17718
|
+
])], 8, dl)) : (e(), l("span", ul, f(o.value.slice(0, 2)), 1));
|
|
17717
17719
|
}
|
|
17718
|
-
}), Ea = /* @__PURE__ */ Y1(hl, [["__scopeId", "data-v-4207e5e4"]]), vl = ["width", "height"], ml = ["width", "height"],
|
|
17720
|
+
}), Ea = /* @__PURE__ */ Y1(hl, [["__scopeId", "data-v-4207e5e4"]]), vl = ["width", "height"], ml = ["width", "height"], bl = ["width", "height"], fl = ["width", "height"], zl = ["width", "height"], gl = ["width", "height"], pl = ["width", "height"], Cl = ["width", "height"], kl = ["width", "height"], xl = ["width", "height"], yl = ["width", "height"], wl = ["width", "height"], Ml = ["width", "height"], Vl = ["width", "height"], Ll = {
|
|
17719
17721
|
key: 14,
|
|
17720
17722
|
class: "text-[10px] font-bold leading-none shrink-0 opacity-60 uppercase"
|
|
17721
17723
|
}, Wa = /* @__PURE__ */ X({
|
|
@@ -17726,20 +17728,20 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17726
17728
|
},
|
|
17727
17729
|
setup(n) {
|
|
17728
17730
|
const h = n, t = h.size ?? 14, s = (h.model ?? "").split(":")[0].toLowerCase();
|
|
17729
|
-
return (u, c) =>
|
|
17731
|
+
return (u, c) => b(s) === "openai" ? (e(), l("svg", {
|
|
17730
17732
|
key: 0,
|
|
17731
|
-
width:
|
|
17732
|
-
height:
|
|
17733
|
+
width: b(t),
|
|
17734
|
+
height: b(t),
|
|
17733
17735
|
viewBox: "0 0 24 24",
|
|
17734
17736
|
fill: "currentColor",
|
|
17735
17737
|
"fill-rule": "evenodd",
|
|
17736
17738
|
class: "shrink-0"
|
|
17737
17739
|
}, [...c[0] || (c[0] = [
|
|
17738
17740
|
a("path", { d: "M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z" }, null, -1)
|
|
17739
|
-
])], 8, vl)) :
|
|
17741
|
+
])], 8, vl)) : b(s) === "google" ? (e(), l("svg", {
|
|
17740
17742
|
key: 1,
|
|
17741
|
-
width:
|
|
17742
|
-
height:
|
|
17743
|
+
width: b(t),
|
|
17744
|
+
height: b(t),
|
|
17743
17745
|
viewBox: "0 0 24 24",
|
|
17744
17746
|
fill: "currentColor",
|
|
17745
17747
|
"fill-rule": "evenodd",
|
|
@@ -17749,20 +17751,20 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17749
17751
|
a("path", { d: "M12.225 23c3.03 0 5.574-.978 7.433-2.665l-3.542-2.688c-.948.648-2.22 1.1-3.891 1.1a6.745 6.745 0 01-6.386-4.572l-.132.011-3.465 2.628-.045.124C4.043 20.531 7.835 23 12.225 23z" }, null, -1),
|
|
17750
17752
|
a("path", { d: "M5.84 14.175A6.65 6.65 0 015.463 12c0-.758.138-1.491.361-2.175l-.006-.147-3.508-2.67-.115.054A10.831 10.831 0 001 12c0 1.772.436 3.447 1.197 4.938l3.642-2.763z" }, null, -1),
|
|
17751
17753
|
a("path", { d: "M12.225 5.253c2.108 0 3.529.892 4.34 1.638l3.167-3.031C17.787 2.088 15.255 1 12.225 1 7.834 1 4.043 3.469 2.197 7.062l3.63 2.763a6.77 6.77 0 016.398-4.572z" }, null, -1)
|
|
17752
|
-
])], 8, ml)) :
|
|
17754
|
+
])], 8, ml)) : b(s) === "anthropic" ? (e(), l("svg", {
|
|
17753
17755
|
key: 2,
|
|
17754
|
-
width:
|
|
17755
|
-
height:
|
|
17756
|
+
width: b(t),
|
|
17757
|
+
height: b(t),
|
|
17756
17758
|
viewBox: "0 0 24 24",
|
|
17757
17759
|
fill: "currentColor",
|
|
17758
17760
|
"fill-rule": "evenodd",
|
|
17759
17761
|
class: "shrink-0"
|
|
17760
17762
|
}, [...c[2] || (c[2] = [
|
|
17761
17763
|
a("path", { d: "M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z" }, null, -1)
|
|
17762
|
-
])], 8,
|
|
17764
|
+
])], 8, bl)) : b(s) === "bfl" ? (e(), l("svg", {
|
|
17763
17765
|
key: 3,
|
|
17764
|
-
width:
|
|
17765
|
-
height:
|
|
17766
|
+
width: b(t),
|
|
17767
|
+
height: b(t),
|
|
17766
17768
|
viewBox: "0 0 24 24",
|
|
17767
17769
|
fill: "currentColor",
|
|
17768
17770
|
"fill-rule": "evenodd",
|
|
@@ -17770,50 +17772,50 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17770
17772
|
}, [...c[3] || (c[3] = [
|
|
17771
17773
|
a("path", { d: "M0 20.683L12.01 2.5 24 20.683h-2.233L12.009 5.878 3.471 18.806h12.122l1.239 1.877H0z" }, null, -1),
|
|
17772
17774
|
a("path", { d: "M8.069 16.724l2.073-3.115 2.074 3.115H8.069zM18.24 20.683l-5.668-8.707h2.177l5.686 8.707h-2.196zM19.74 11.676l2.13-3.19 2.13 3.19h-4.26z" }, null, -1)
|
|
17773
|
-
])], 8,
|
|
17775
|
+
])], 8, fl)) : b(s) === "runway" ? (e(), l("svg", {
|
|
17774
17776
|
key: 4,
|
|
17775
|
-
width:
|
|
17776
|
-
height:
|
|
17777
|
+
width: b(t),
|
|
17778
|
+
height: b(t),
|
|
17777
17779
|
viewBox: "0 0 24 24",
|
|
17778
17780
|
fill: "currentColor",
|
|
17779
17781
|
"fill-rule": "evenodd",
|
|
17780
17782
|
class: "shrink-0"
|
|
17781
17783
|
}, [...c[4] || (c[4] = [
|
|
17782
17784
|
a("path", { d: "M17.86 22.992c-2.669.245-4.887-2.876-6.597-4.454C10.398 24.759 1 24.177 1 17.86V6.15c0-.921.244-1.861.733-2.65C2.635 1.977 4.383.98 6.15 1h11.71c6.316 0 6.918 9.398.677 10.243l2.97 2.951c3.252 3.064.808 8.929-3.646 8.797zm-1.428-3.721c1.842 1.898 4.774-1.034 2.876-2.876l-5.132-5.132H11.3v2.876l4.436 4.436.696.696zM4.12 17.842c-.037 2.632 4.117 2.632 4.06 0V6.132c.038-1.316-1.353-2.35-2.612-1.955-.057.019-.113.037-.15.056-.79.301-1.335 1.09-1.317 1.936v11.673h.02zm13.74-9.68c2.632.037 2.632-4.098 0-4.06h-6.973c.526 1.109.395 2.857.413 4.06h6.56z" }, null, -1)
|
|
17783
|
-
])], 8, zl)) :
|
|
17785
|
+
])], 8, zl)) : b(s) === "kling" ? (e(), l("svg", {
|
|
17784
17786
|
key: 5,
|
|
17785
|
-
width:
|
|
17786
|
-
height:
|
|
17787
|
+
width: b(t),
|
|
17788
|
+
height: b(t),
|
|
17787
17789
|
viewBox: "0 0 24 24",
|
|
17788
17790
|
fill: "currentColor",
|
|
17789
17791
|
"fill-rule": "evenodd",
|
|
17790
17792
|
class: "shrink-0"
|
|
17791
17793
|
}, [...c[5] || (c[5] = [
|
|
17792
17794
|
a("path", { d: "M5.493 21.234c-1.112-1.451-1.109-4.263-.081-7.459l-4.557-2.63a1.683 1.683 0 01-.85-1.304 1.505 1.505 0 01.08-.622 13.18 13.18 0 011.037-2.255c3.476-6.02 10.916-8.23 16.619-4.938.46.266.82.67 1.081 1.184.785 1.545.685 4.096-.234 6.954l4.557 2.631c.339.196.596.492.736.832a1.53 1.53 0 01.034 1.093 13.146 13.146 0 01-1.037 2.255c-3.476 6.02-10.916 8.23-16.619 4.938a2.6 2.6 0 01-.766-.68zm11.096-6.615c-2.073 3.591-5.808 5.316-8.343 3.852-1.267-.731-1.994-2.122-2.145-3.778-.095-1.035.036-2.173.4-3.32.217-.684.517-1.37.902-2.039l.008-.014c2.073-3.59 5.808-5.315 8.343-3.852.633.366 1.13.895 1.49 1.54.986 1.772.922 4.415-.285 6.914-.111.23-.232.457-.362.683l-.008.014z" }, null, -1)
|
|
17793
|
-
])], 8, gl)) :
|
|
17795
|
+
])], 8, gl)) : b(s) === "elevenlabs" ? (e(), l("svg", {
|
|
17794
17796
|
key: 6,
|
|
17795
|
-
width:
|
|
17796
|
-
height:
|
|
17797
|
+
width: b(t),
|
|
17798
|
+
height: b(t),
|
|
17797
17799
|
viewBox: "0 0 24 24",
|
|
17798
17800
|
fill: "currentColor",
|
|
17799
17801
|
"fill-rule": "evenodd",
|
|
17800
17802
|
class: "shrink-0"
|
|
17801
17803
|
}, [...c[6] || (c[6] = [
|
|
17802
17804
|
a("path", { d: "M5 0h5v24H5V0zM14 0h5v24h-5V0z" }, null, -1)
|
|
17803
|
-
])], 8, pl)) :
|
|
17805
|
+
])], 8, pl)) : b(s) === "ideogram" ? (e(), l("svg", {
|
|
17804
17806
|
key: 7,
|
|
17805
|
-
width:
|
|
17806
|
-
height:
|
|
17807
|
+
width: b(t),
|
|
17808
|
+
height: b(t),
|
|
17807
17809
|
viewBox: "0 0 24 24",
|
|
17808
17810
|
fill: "currentColor",
|
|
17809
17811
|
"fill-rule": "evenodd",
|
|
17810
17812
|
class: "shrink-0"
|
|
17811
17813
|
}, [...c[7] || (c[7] = [
|
|
17812
17814
|
a("path", { d: "M17.768 1.482a6.4 6.4 0 012.988 3.78c.19.068.377.154.555.257.026.015.05.03.073.047.226.137.436.301.627.49a3.377 3.377 0 01-.105 4.875 3.376 3.376 0 01-.216 5.158l-.037.029.021.032c.39.602.585 1.324.534 2.065l-.009.11a3.377 3.377 0 01-4.658 2.777 3.377 3.377 0 01-5.846.971 4.052 4.052 0 01-1.635.397c-.04.005-.082.008-.125.008h-.897l-.068-.003c-1.116-.067-1.093-1.775.068-1.775h.804l.046-.004.047-.001a2.3 2.3 0 00.079-4.6.735.735 0 01-.08.005H2.808a.889.889 0 010-1.778h7.034l.046-.004.048-.001a2.3 2.3 0 00.509-4.544l-.141-.031a2.188 2.188 0 00-.299-.046.759.759 0 01-.07.003H2.808a.889.889 0 110-1.777h7.035l.046-.004.047-.001a2.3 2.3 0 00.087-4.6.972.972 0 01-.087.004h-.897L8.97 3.32c-1.116-.067-1.093-1.775.068-1.775h.8a.9.9 0 01.097-.005c.402 0 .79.058 1.157.166l.031-.02a6.399 6.399 0 016.645-.203zm-3.737 11.484l-.068.036-.083.051a4.08 4.08 0 01-1.404 2.153 4.07 4.07 0 011.537 3.189 4.06 4.06 0 01-.92 2.579 1.599 1.599 0 002.824-1.322l-.03-.124-.013-.079-.005-.056-.001-.042.001-.058.005-.053.013-.078.018-.072.022-.064.035-.079.005-.01a.869.869 0 01.158-.217l.055-.052.041-.032.05-.035.042-.026.055-.03.073-.03.056-.02.04-.011.078-.016.073-.009.045-.002h.048l.041.002.058.006.056.01.062.015.031.01.049.017.054.023.044.021.053.031.035.023c.06.042.114.09.163.147l.038.046.034.048a1.6 1.6 0 102.4-2.07 3.256 3.256 0 01-.473.007l-.057-.005-.026-.005h-.016a3.376 3.376 0 01-2.985-2.568l-.026-.116a1.6 1.6 0 00-2.285-1.133zm-4.416 4.595a.889.889 0 110 1.777H5.939a.889.889 0 010-1.777h3.676zm9.208-10.503a1.6 1.6 0 00-.797 1.3l-.002.085a.889.889 0 01-.83.887l-.059.002a.889.889 0 01-.887-.83l-.002-.059a1.6 1.6 0 00-2.528-1.301 4.089 4.089 0 01-1.255 1.674 4.083 4.083 0 011.451 2.308 3.374 3.374 0 014.125 2.532l.02.093a1.6 1.6 0 001.395 1.26l.124.01.042.002c.06 0 .12-.003.18-.01l.085-.011.062-.015a1.6 1.6 0 00-.245-3.163l-.079-.002a.887.887 0 01-.683-.32l-.034-.044a.884.884 0 01-.154-.702.889.889 0 01.807-.71l.064-.001a1.6 1.6 0 001.134-2.728 1.6 1.6 0 00-.786-.426l-.102-.019a.856.856 0 01-.076-.016 1.592 1.592 0 00-.97.204zm-9.199 4.08a.889.889 0 010 1.778H.89a.889.889 0 010-1.777h8.735zm-.01-6.432a.889.889 0 110 1.777H5.94a.889.889 0 110-1.777h3.676zm3.297-1.954l-.053.021a4.065 4.065 0 011.126 2.36 3.375 3.375 0 013.151 1.027 3.366 3.366 0 011.695-1 4.621 4.621 0 00-5.919-2.408z" }, null, -1)
|
|
17813
|
-
])], 8, Cl)) :
|
|
17815
|
+
])], 8, Cl)) : b(s) === "recraft" ? (e(), l("svg", {
|
|
17814
17816
|
key: 8,
|
|
17815
|
-
width:
|
|
17816
|
-
height:
|
|
17817
|
+
width: b(t),
|
|
17818
|
+
height: b(t),
|
|
17817
17819
|
viewBox: "0 0 24 24",
|
|
17818
17820
|
fill: "currentColor",
|
|
17819
17821
|
"fill-rule": "evenodd",
|
|
@@ -17821,49 +17823,49 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17821
17823
|
}, [...c[8] || (c[8] = [
|
|
17822
17824
|
a("path", { d: "M19.667 8.275c0-4.57-4.15-8.275-9.27-8.275-1.774 0-3.213 3.705-3.213 8.275 0 1.143.09 2.233.253 3.224H4.29L1 23h9.4v-6.447c5.117 0 9.266-3.707 9.266-8.275l.001-.002zm-9.27-6.76c.93 0 1.682 3.028 1.682 6.76 0 3.733-.752 6.76-1.681 6.76-.93 0-1.681-3.027-1.681-6.76 0-3.732.752-6.76 1.68-6.76z" }, null, -1),
|
|
17823
17825
|
a("path", { d: "M19.848 16.552h-9.44L14.028 23h9.438l-3.618-6.448z" }, null, -1)
|
|
17824
|
-
])], 8, kl)) :
|
|
17826
|
+
])], 8, kl)) : b(s) === "fal" ? (e(), l("svg", {
|
|
17825
17827
|
key: 9,
|
|
17826
|
-
width:
|
|
17827
|
-
height:
|
|
17828
|
+
width: b(t),
|
|
17829
|
+
height: b(t),
|
|
17828
17830
|
viewBox: "0 0 24 24",
|
|
17829
17831
|
fill: "currentColor",
|
|
17830
17832
|
"fill-rule": "evenodd",
|
|
17831
17833
|
class: "shrink-0"
|
|
17832
17834
|
}, [...c[9] || (c[9] = [
|
|
17833
17835
|
a("path", { d: "M15.477 0c.415 0 .749.338.788.752a7.775 7.775 0 006.985 6.984c.413.04.752.373.752.788v6.952c0 .415-.338.748-.752.788a7.775 7.775 0 00-6.985 6.984c-.04.414-.373.752-.788.752H8.525c-.416 0-.749-.338-.789-.752a7.775 7.775 0 00-6.984-6.984c-.414-.04-.752-.373-.752-.788V8.524c0-.415.338-.748.752-.788A7.775 7.775 0 007.736.752C7.776.338 8.11 0 8.526 0h6.95zM4.819 11.98a7.226 7.226 0 007.223 7.23 7.226 7.226 0 007.223-7.23c0-3.994-3.234-7.23-7.223-7.23a7.227 7.227 0 00-7.223 7.23z" }, null, -1)
|
|
17834
|
-
])], 8, xl)) :
|
|
17836
|
+
])], 8, xl)) : b(s) === "replicate" ? (e(), l("svg", {
|
|
17835
17837
|
key: 10,
|
|
17836
|
-
width:
|
|
17837
|
-
height:
|
|
17838
|
+
width: b(t),
|
|
17839
|
+
height: b(t),
|
|
17838
17840
|
viewBox: "0 0 24 24",
|
|
17839
17841
|
fill: "currentColor",
|
|
17840
17842
|
"fill-rule": "evenodd",
|
|
17841
17843
|
class: "shrink-0"
|
|
17842
17844
|
}, [...c[10] || (c[10] = [
|
|
17843
17845
|
a("path", { d: "M22 10.552v2.26h-7.932V22H11.54V10.552H22zM22 2v2.264H4.528V22H2V2h20zm0 4.276V8.54H9.296V22H6.768V6.276H22z" }, null, -1)
|
|
17844
|
-
])], 8, yl)) :
|
|
17846
|
+
])], 8, yl)) : b(s) === "jimeng" ? (e(), l("svg", {
|
|
17845
17847
|
key: 11,
|
|
17846
|
-
width:
|
|
17847
|
-
height:
|
|
17848
|
+
width: b(t),
|
|
17849
|
+
height: b(t),
|
|
17848
17850
|
viewBox: "0 0 24 24",
|
|
17849
17851
|
fill: "currentColor",
|
|
17850
17852
|
"fill-rule": "evenodd",
|
|
17851
17853
|
class: "shrink-0"
|
|
17852
17854
|
}, [...c[11] || (c[11] = [
|
|
17853
17855
|
a("path", { d: "M5.257 1.808C8.768 6.74 14.431 9.45 20.064 8.403a7.398 7.398 0 001.281-.38c.855-.33 1.975 1.01 1.326 1.658-.43.428-.84.82-1.208 1.147a51.149 51.149 0 01-8.389 6.044 51.146 51.146 0 01-9.49 4.263c-.453.15-.98.304-1.546.457-.885.238-1.484-1.4-.77-1.975.378-.306.713-.617.978-.927C5.969 14.336 6.299 8.174 3.717 2.697a18.2 18.2 0 01-.364-.84C2.995.98 4.042.335 4.656 1.055c.243.284.453.545.601.753zM19.53 13.695c-2.324 2.863-2.816 5.944-2.378 8.583l.024.16c.117.79-.816 1.277-1.448.788a12.813 12.813 0 00-.093-.072c-2.12-1.614-4.62-2.828-7.948-2.446a27.95 27.95 0 006.086-2.627c2.21-1.275 4.147-2.774 5.756-4.386z" }, null, -1)
|
|
17854
|
-
])], 8, wl)) :
|
|
17856
|
+
])], 8, wl)) : b(s) === "liblibai" ? (e(), l("svg", {
|
|
17855
17857
|
key: 12,
|
|
17856
|
-
width:
|
|
17857
|
-
height:
|
|
17858
|
+
width: b(t),
|
|
17859
|
+
height: b(t),
|
|
17858
17860
|
viewBox: "0 0 121 111",
|
|
17859
17861
|
fill: "currentColor",
|
|
17860
17862
|
class: "shrink-0"
|
|
17861
17863
|
}, [...c[12] || (c[12] = [
|
|
17862
17864
|
a("path", { d: "M 53.0 0.0 L 0.0 86.0 L 4.0 88.0 L 33.0 80.0 L 41.0 81.0 L 14.0 111.0 L 121.0 111.0 L 89.0 78.0 L 50.0 75.0 L 67.0 46.0 L 56.0 2.0 Z" }, null, -1)
|
|
17863
|
-
])], 8, Ml)) :
|
|
17865
|
+
])], 8, Ml)) : b(s) === "canvas" ? (e(), l("svg", {
|
|
17864
17866
|
key: 13,
|
|
17865
|
-
width:
|
|
17866
|
-
height:
|
|
17867
|
+
width: b(t),
|
|
17868
|
+
height: b(t),
|
|
17867
17869
|
viewBox: "0 0 24 24",
|
|
17868
17870
|
fill: "currentColor",
|
|
17869
17871
|
class: "shrink-0"
|
|
@@ -17879,7 +17881,7 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17879
17881
|
"stroke-width": "2"
|
|
17880
17882
|
}, null, -1),
|
|
17881
17883
|
a("path", { d: "M3 9h18M9 3v18" }, null, -1)
|
|
17882
|
-
])], 8, Vl)) : (e(), l("span", Ll, b(
|
|
17884
|
+
])], 8, Vl)) : (e(), l("span", Ll, f(b(s).slice(0, 2)), 1));
|
|
17883
17885
|
}
|
|
17884
17886
|
}), Bl = ["data-wpic-theme"], Da = /* @__PURE__ */ X({
|
|
17885
17887
|
__name: "WThemeProvider",
|
|
@@ -17904,7 +17906,7 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17904
17906
|
return p2(w0, o), (z, k) => (e(), l("div", {
|
|
17905
17907
|
class: g({ "wpic-theme": o.value, dark: o.value?.mode === "dark" }),
|
|
17906
17908
|
"data-wpic-theme": o.value?.mode,
|
|
17907
|
-
style:
|
|
17909
|
+
style: b1(o.value?.variables)
|
|
17908
17910
|
}, [
|
|
17909
17911
|
Q(z.$slots, "default")
|
|
17910
17912
|
], 14, Bl));
|
|
@@ -17934,11 +17936,11 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17934
17936
|
a("div", Sl, [
|
|
17935
17937
|
(e(), K(B1(`h${n.headingLevel}`), { class: "text-2xl font-semibold leading-tight tracking-tight [overflow-wrap:anywhere]" }, {
|
|
17936
17938
|
default: r1(() => [
|
|
17937
|
-
m1(
|
|
17939
|
+
m1(f(n.title), 1)
|
|
17938
17940
|
]),
|
|
17939
17941
|
_: 1
|
|
17940
17942
|
})),
|
|
17941
|
-
n.description ? (e(), l("p", Fl,
|
|
17943
|
+
n.description ? (e(), l("p", Fl, f(n.description), 1)) : m("", !0),
|
|
17942
17944
|
h.$slots.metadata ? (e(), l("div", Hl, [
|
|
17943
17945
|
Q(h.$slots, "metadata")
|
|
17944
17946
|
])) : m("", !0)
|
|
@@ -17954,8 +17956,8 @@ c36 -78 76 -117 152 -146 53 -20 76 -23 190 -22 137 2 262 27 295 59 10 11 17
|
|
|
17954
17956
|
}
|
|
17955
17957
|
});
|
|
17956
17958
|
export {
|
|
17957
|
-
|
|
17958
|
-
|
|
17959
|
+
ba as CollapseToggle,
|
|
17960
|
+
fa as ConfirmModal,
|
|
17959
17961
|
ra as FormDate,
|
|
17960
17962
|
oa as FormInput,
|
|
17961
17963
|
ca as FormLabel,
|