@webx-ui/module-admin 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Screen.d.ts +16 -1
- package/dist/index.js +212 -213
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as be, reactive as ot, defineComponent as X, useModel as ze, ref as E, watch as ue, computed as _, openBlock as c, createElementBlock as C, createVNode as
|
|
1
|
+
import { inject as be, reactive as ot, defineComponent as X, useModel as ze, ref as E, watch as ue, computed as _, openBlock as c, createElementBlock as C, createVNode as x, unref as a, withCtx as b, createElementVNode as D, toDisplayString as T, createBlock as N, createTextVNode as M, createCommentVNode as B, mergeModels as Ae, mergeProps as Nt, provide as ut, normalizeClass as ke, createSlots as Ue, nextTick as dt, useId as In, Fragment as G, onMounted as Ee, renderList as ce, withModifiers as Rt, useSlots as Mn, useTemplateRef as Vt, renderSlot as fe, useAttrs as On, normalizeProps as Pn, guardReactiveProps as Bn, resolveComponent as me, watchEffect as jn, onUnmounted as Dn, isRef as mn, createApp as Fn, h as Oe, onBeforeUnmount as ct, shallowRef as st, getCurrentScope as Hn, onScopeDispose as Kn, readonly as Ve, withKeys as hn } from "vue";
|
|
2
2
|
import { RouterLink as qn, useRouter as He, useRoute as pn, createRouter as Yn, createWebHistory as Jn, onBeforeRouteLeave as Xn } from "vue-router";
|
|
3
3
|
import { WxSortableList as Ut, WxAction as Ne, WxBadge as Ke, WxSelect as je, WxAutocomplete as xt, WxSwitch as pt, WxInputNumber as Gn, WxButton as re, WxSegmented as Qn, WxText as ne, WxInput as qe, WxCheckbox as Gt, WxTooltip as It, WxEmpty as it, WxSkeleton as Ce, WxAvatar as gn, WxDialog as Mt, toast as Z, WxActions as Zn, WxDropdownItem as el, useElementWidth as tl, WxHeading as yn, WxIcon as ft, WxTabs as nl, WxCard as $t, WxRichText as ll, useLocales as Ot, WxAlert as ye, WxResult as bn, useResponsiveShell as al, shellLayoutFor as ol, WxToaster as sl, WebxUI as il, dateLocaleKey as rl, dateTimezoneKey as ul, localesKey as dl, confirm as We, useModal as cl, WxFormItem as fl, WxSpace as vl, createModal as ml, localizedValue as hl, WxBreadcrumb as pl, WxBreadcrumbItem as Qt, WxActionBar as gl, WxPopover as yl, WxTextarea as Zt } from "@webx-ui/core";
|
|
4
4
|
import { watchSystemTheme as bl, applyTheme as wl, systemTheme as _l } from "@webx-ui/tokens";
|
|
@@ -127,7 +127,7 @@ const Al = { class: "wx-categories-field" }, Cl = { class: "wx-categories-field_
|
|
|
127
127
|
n.value = i.value.filter((y) => y !== d);
|
|
128
128
|
}
|
|
129
129
|
return (d, y) => (c(), C("div", Al, [
|
|
130
|
-
|
|
130
|
+
x(a(Ut), {
|
|
131
131
|
modelValue: u.value,
|
|
132
132
|
"onUpdate:modelValue": y[0] || (y[0] = (w) => u.value = w),
|
|
133
133
|
plain: "",
|
|
@@ -150,7 +150,7 @@ const Al = { class: "wx-categories-field" }, Cl = { class: "wx-categories-field_
|
|
|
150
150
|
})) : B("", !0)
|
|
151
151
|
]),
|
|
152
152
|
actions: b(({ item: w }) => [
|
|
153
|
-
|
|
153
|
+
x(a(Ne), {
|
|
154
154
|
type: "remove",
|
|
155
155
|
size: "sm",
|
|
156
156
|
disabled: t.disabled,
|
|
@@ -160,7 +160,7 @@ const Al = { class: "wx-categories-field" }, Cl = { class: "wx-categories-field_
|
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
}, 8, ["modelValue", "disabled", "empty-text"]),
|
|
163
|
-
|
|
163
|
+
x(a(je), {
|
|
164
164
|
"model-value": null,
|
|
165
165
|
options: v.value,
|
|
166
166
|
placeholder: t.addText ?? a(l)("categories.field-add"),
|
|
@@ -425,7 +425,7 @@ const Ml = ["src"], Ol = { class: "wx-relations-field__text" }, Pl = { class: "w
|
|
|
425
425
|
return (U, L) => (c(), C("div", {
|
|
426
426
|
class: ke(["wx-relations-field", { "is-unordered": !t.sortable }])
|
|
427
427
|
}, [
|
|
428
|
-
|
|
428
|
+
x(a(Ut), {
|
|
429
429
|
modelValue: W.value,
|
|
430
430
|
"onUpdate:modelValue": L[0] || (L[0] = (j) => W.value = j),
|
|
431
431
|
plain: "",
|
|
@@ -462,7 +462,7 @@ const Ml = ["src"], Ol = { class: "wx-relations-field__text" }, Pl = { class: "w
|
|
|
462
462
|
S.value ? void 0 : {
|
|
463
463
|
name: "actions",
|
|
464
464
|
fn: b(({ item: j }) => [
|
|
465
|
-
|
|
465
|
+
x(a(Ne), {
|
|
466
466
|
type: "remove",
|
|
467
467
|
size: "sm",
|
|
468
468
|
title: a(s)("relations.field-remove"),
|
|
@@ -473,7 +473,7 @@ const Ml = ["src"], Ol = { class: "wx-relations-field__text" }, Pl = { class: "w
|
|
|
473
473
|
}
|
|
474
474
|
]), 1032, ["modelValue", "disabled", "empty-text", "drag-label"]),
|
|
475
475
|
v.value ? (c(), C("p", jl, T(a(s)("relations.field-forbidden")), 1)) : (c(), C("div", Dl, [
|
|
476
|
-
|
|
476
|
+
x(a(xt), {
|
|
477
477
|
modelValue: d.value,
|
|
478
478
|
"onUpdate:modelValue": L[1] || (L[1] = (j) => d.value = j),
|
|
479
479
|
options: H.value,
|
|
@@ -633,7 +633,7 @@ const Yl = ["aria-busy"], Jl = {
|
|
|
633
633
|
class: "wx-collection-field__label",
|
|
634
634
|
for: `${a(s)}-categories`
|
|
635
635
|
}, T(a(l)("collections.field-categories")), 9, Ql),
|
|
636
|
-
|
|
636
|
+
x(a(je), {
|
|
637
637
|
id: `${a(s)}-categories`,
|
|
638
638
|
"model-value": u.value.categories,
|
|
639
639
|
options: m.value,
|
|
@@ -661,7 +661,7 @@ const Yl = ["aria-busy"], Jl = {
|
|
|
661
661
|
"onUpdate:modelValue": W
|
|
662
662
|
}, null, 8, ["model-value", "options", "placeholder", "aria-label", "disabled"])) : B("", !0),
|
|
663
663
|
h.value ? (c(), C(G, { key: 1 }, [
|
|
664
|
-
|
|
664
|
+
x(a(pt), {
|
|
665
665
|
"model-value": u.value.related?.current === !0,
|
|
666
666
|
label: a(l)("relations.collection-related-current"),
|
|
667
667
|
disabled: t.disabled,
|
|
@@ -685,7 +685,7 @@ const Yl = ["aria-busy"], Jl = {
|
|
|
685
685
|
for: `${a(s)}-limit`
|
|
686
686
|
}, T(a(l)("collections.field-limit")), 9, la),
|
|
687
687
|
D("div", aa, [
|
|
688
|
-
|
|
688
|
+
x(a(Gn), {
|
|
689
689
|
id: `${a(s)}-limit`,
|
|
690
690
|
"model-value": u.value.limit,
|
|
691
691
|
min: 1,
|
|
@@ -706,7 +706,7 @@ const Yl = ["aria-busy"], Jl = {
|
|
|
706
706
|
"onUpdate:modelValue": S[1] || (S[1] = (k) => v({ filter: k === !0 }))
|
|
707
707
|
}, null, 8, ["model-value", "label", "disabled"])) : B("", !0),
|
|
708
708
|
i.value.markup ? (c(), C("div", oa, [
|
|
709
|
-
|
|
709
|
+
x(a(pt), {
|
|
710
710
|
"model-value": H.value,
|
|
711
711
|
label: a(l)("collections.field-markup"),
|
|
712
712
|
disabled: t.disabled,
|
|
@@ -779,21 +779,21 @@ const ca = { class: "wx-link-picker" }, fa = {
|
|
|
779
779
|
const t = e, n = ze(e, "modelValue"), o = oe(), l = xl(), s = da(o), i = ee("webx-admin"), r = E([]), u = E([]), v = E([]), m = E(!1), f = E(null), d = E(""), y = E(null);
|
|
780
780
|
let w = null;
|
|
781
781
|
const h = _(() => n.value ?? ua()), W = _(() => {
|
|
782
|
-
const
|
|
782
|
+
const $ = [
|
|
783
783
|
{ value: "entity", label: i("links.target-entity") },
|
|
784
784
|
{ value: "url", label: i("links.target-url") }
|
|
785
785
|
];
|
|
786
|
-
return t.allowNone ? [
|
|
786
|
+
return t.allowNone ? [...$, { value: "none", label: i("links.target-none") }] : $;
|
|
787
787
|
}), p = _(
|
|
788
|
-
() => r.value.map((
|
|
788
|
+
() => r.value.map(($) => ({ value: $.type, label: $.title }))
|
|
789
789
|
), V = _(
|
|
790
|
-
() => u.value.map((
|
|
791
|
-
value:
|
|
792
|
-
description:
|
|
793
|
-
id:
|
|
790
|
+
() => u.value.map(($) => ({
|
|
791
|
+
value: $.title,
|
|
792
|
+
description: ve($),
|
|
793
|
+
id: $.id
|
|
794
794
|
}))
|
|
795
795
|
), H = _(
|
|
796
|
-
() => v.value.map((
|
|
796
|
+
() => v.value.map(($) => ({ value: $.path, description: $.name }))
|
|
797
797
|
);
|
|
798
798
|
Ee(async () => {
|
|
799
799
|
r.value = await s.sources(), f.value = h.value.entity_type ?? r.value[0]?.type ?? null, await Promise.all([z(), O()]);
|
|
@@ -804,69 +804,69 @@ const ca = { class: "wx-link-picker" }, fa = {
|
|
|
804
804
|
}
|
|
805
805
|
);
|
|
806
806
|
async function z() {
|
|
807
|
-
const { entity_type:
|
|
808
|
-
if (
|
|
807
|
+
const { entity_type: $, entity_id: P } = h.value;
|
|
808
|
+
if ($ === null || P === null) {
|
|
809
809
|
y.value = null, d.value = "";
|
|
810
810
|
return;
|
|
811
811
|
}
|
|
812
812
|
if (y.value?.id === P)
|
|
813
813
|
return;
|
|
814
|
-
const [F] = await s.resolve([{ type:
|
|
814
|
+
const [F] = await s.resolve([{ type: $, id: P }], l.state.locale);
|
|
815
815
|
y.value = F ?? null, d.value = F?.title ?? i("links.missing"), w = d.value;
|
|
816
816
|
}
|
|
817
817
|
async function O() {
|
|
818
818
|
v.value = await s.routes();
|
|
819
819
|
}
|
|
820
|
-
async function g(
|
|
821
|
-
if (
|
|
820
|
+
async function g($) {
|
|
821
|
+
if ($ === w) {
|
|
822
822
|
w = null;
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
825
|
if (w = null, f.value !== null) {
|
|
826
826
|
m.value = !0;
|
|
827
827
|
try {
|
|
828
|
-
u.value = await s.search(f.value,
|
|
828
|
+
u.value = await s.search(f.value, $, l.state.locale);
|
|
829
829
|
} finally {
|
|
830
830
|
m.value = !1;
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
function S(
|
|
835
|
-
|
|
834
|
+
function S($) {
|
|
835
|
+
$ !== void 0 && (n.value = { ...h.value, target: $ });
|
|
836
836
|
}
|
|
837
|
-
function k(
|
|
838
|
-
f.value =
|
|
837
|
+
function k($) {
|
|
838
|
+
f.value = $ == null ? null : String($), u.value = [], g("");
|
|
839
839
|
}
|
|
840
|
-
function I(
|
|
841
|
-
const P = u.value.find((F) => F.id ===
|
|
840
|
+
function I($) {
|
|
841
|
+
const P = u.value.find((F) => F.id === $.id);
|
|
842
842
|
P === void 0 || f.value === null || (y.value = P, d.value = P.title, n.value = { ...h.value, entity_type: f.value, entity_id: P.id });
|
|
843
843
|
}
|
|
844
844
|
function U() {
|
|
845
845
|
y.value = null, d.value = "", u.value = [], n.value = { ...h.value, entity_type: null, entity_id: null };
|
|
846
846
|
}
|
|
847
|
-
function L(
|
|
848
|
-
n.value = { ...h.value, url:
|
|
847
|
+
function L($) {
|
|
848
|
+
n.value = { ...h.value, url: $ === "" ? null : $ };
|
|
849
849
|
}
|
|
850
|
-
function j(
|
|
851
|
-
const P = (typeof
|
|
850
|
+
function j($) {
|
|
851
|
+
const P = (typeof $ == "string" || typeof $ == "number" ? String($) : "").replace(/^#+/, "").trim();
|
|
852
852
|
n.value = { ...h.value, hash: P === "" ? null : P };
|
|
853
853
|
}
|
|
854
|
-
function J(
|
|
855
|
-
n.value = { ...h.value, new_tab:
|
|
854
|
+
function J($) {
|
|
855
|
+
n.value = { ...h.value, new_tab: $ };
|
|
856
856
|
}
|
|
857
|
-
function le(
|
|
858
|
-
const F = h.value.rel.filter((te) => te !==
|
|
859
|
-
n.value = { ...h.value, rel: P ? [...F,
|
|
857
|
+
function le($, P) {
|
|
858
|
+
const F = h.value.rel.filter((te) => te !== $);
|
|
859
|
+
n.value = { ...h.value, rel: P ? [...F, $] : F };
|
|
860
860
|
}
|
|
861
|
-
function
|
|
862
|
-
const P = [
|
|
861
|
+
function ve($) {
|
|
862
|
+
const P = [$.hint, $.url ?? void 0].filter(
|
|
863
863
|
(F) => typeof F == "string" && F !== ""
|
|
864
864
|
);
|
|
865
|
-
return
|
|
865
|
+
return $.available || P.push(i("links.unavailable")), P.join(" · ");
|
|
866
866
|
}
|
|
867
867
|
const K = ["nofollow", "sponsored", "ugc"];
|
|
868
|
-
return (
|
|
869
|
-
|
|
868
|
+
return ($, P) => (c(), C("div", ca, [
|
|
869
|
+
x(a(Qn), {
|
|
870
870
|
options: W.value,
|
|
871
871
|
"model-value": h.value.target,
|
|
872
872
|
disabled: t.disabled,
|
|
@@ -883,7 +883,7 @@ const ca = { class: "wx-link-picker" }, fa = {
|
|
|
883
883
|
"aria-label": a(i)("links.section"),
|
|
884
884
|
"onUpdate:modelValue": k
|
|
885
885
|
}, null, 8, ["options", "model-value", "disabled", "aria-label"])) : B("", !0),
|
|
886
|
-
|
|
886
|
+
x(a(xt), {
|
|
887
887
|
class: "wx-link-picker__search",
|
|
888
888
|
"model-value": d.value,
|
|
889
889
|
options: V.value,
|
|
@@ -901,7 +901,7 @@ const ca = { class: "wx-link-picker" }, fa = {
|
|
|
901
901
|
onClear: U
|
|
902
902
|
}, null, 8, ["model-value", "options", "loading", "loading-text", "empty-text", "placeholder", "aria-label", "disabled"])
|
|
903
903
|
])) : h.value.target === "url" ? (c(), C("div", va, [
|
|
904
|
-
|
|
904
|
+
x(a(xt), {
|
|
905
905
|
"model-value": h.value.url ?? "",
|
|
906
906
|
options: H.value,
|
|
907
907
|
clearable: "",
|
|
@@ -914,7 +914,7 @@ const ca = { class: "wx-link-picker" }, fa = {
|
|
|
914
914
|
}, null, 8, ["model-value", "options", "empty-text", "placeholder", "aria-label", "disabled"])
|
|
915
915
|
])) : B("", !0),
|
|
916
916
|
h.value.target !== "none" ? (c(), C("label", ma, [
|
|
917
|
-
|
|
917
|
+
x(a(ne), {
|
|
918
918
|
size: "sm",
|
|
919
919
|
tone: "muted"
|
|
920
920
|
}, {
|
|
@@ -927,7 +927,7 @@ const ca = { class: "wx-link-picker" }, fa = {
|
|
|
927
927
|
class: "wx-link-picker__sign",
|
|
928
928
|
"aria-hidden": "true"
|
|
929
929
|
}, "#", -1)),
|
|
930
|
-
|
|
930
|
+
x(a(qe), {
|
|
931
931
|
"model-value": h.value.hash ?? "",
|
|
932
932
|
placeholder: a(i)("links.hash-placeholder"),
|
|
933
933
|
"aria-label": a(i)("links.hash"),
|
|
@@ -937,7 +937,7 @@ const ca = { class: "wx-link-picker" }, fa = {
|
|
|
937
937
|
}, null, 8, ["model-value", "placeholder", "aria-label", "disabled"])
|
|
938
938
|
])) : B("", !0),
|
|
939
939
|
t.attributes && h.value.target !== "none" ? (c(), C("div", ha, [
|
|
940
|
-
|
|
940
|
+
x(a(Gt), {
|
|
941
941
|
"model-value": h.value.new_tab,
|
|
942
942
|
disabled: t.disabled,
|
|
943
943
|
"onUpdate:modelValue": P[1] || (P[1] = (F) => J(F))
|
|
@@ -948,7 +948,7 @@ const ca = { class: "wx-link-picker" }, fa = {
|
|
|
948
948
|
_: 1
|
|
949
949
|
}, 8, ["model-value", "disabled"]),
|
|
950
950
|
D("div", pa, [
|
|
951
|
-
|
|
951
|
+
x(a(ne), {
|
|
952
952
|
size: "sm",
|
|
953
953
|
tone: "muted"
|
|
954
954
|
}, {
|
|
@@ -957,7 +957,7 @@ const ca = { class: "wx-link-picker" }, fa = {
|
|
|
957
957
|
]),
|
|
958
958
|
_: 1
|
|
959
959
|
}),
|
|
960
|
-
(c(), C(G, null, ce(K, (F) =>
|
|
960
|
+
(c(), C(G, null, ce(K, (F) => x(a(Gt), {
|
|
961
961
|
key: F,
|
|
962
962
|
"model-value": h.value.rel.includes(F),
|
|
963
963
|
disabled: t.disabled,
|
|
@@ -1466,7 +1466,7 @@ const Fe = /* @__PURE__ */ X({
|
|
|
1466
1466
|
content: l.value
|
|
1467
1467
|
}, {
|
|
1468
1468
|
default: b(() => [
|
|
1469
|
-
|
|
1469
|
+
x(a(ne), {
|
|
1470
1470
|
as: "time",
|
|
1471
1471
|
datetime: s.value,
|
|
1472
1472
|
size: e.size,
|
|
@@ -1578,10 +1578,10 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1578
1578
|
if (r.value = [], u.value = 1, v.value = 1, y.value !== null) {
|
|
1579
1579
|
m.value = !0;
|
|
1580
1580
|
try {
|
|
1581
|
-
const
|
|
1582
|
-
r.value =
|
|
1583
|
-
} catch (
|
|
1584
|
-
Z.danger(s(
|
|
1581
|
+
const $ = await y.value.list(1);
|
|
1582
|
+
r.value = $.data, v.value = $.last_page;
|
|
1583
|
+
} catch ($) {
|
|
1584
|
+
Z.danger(s($));
|
|
1585
1585
|
} finally {
|
|
1586
1586
|
m.value = !1;
|
|
1587
1587
|
}
|
|
@@ -1591,10 +1591,10 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1591
1591
|
if (!(y.value === null || f.value)) {
|
|
1592
1592
|
f.value = !0;
|
|
1593
1593
|
try {
|
|
1594
|
-
const
|
|
1595
|
-
r.value = [...r.value,
|
|
1596
|
-
} catch (
|
|
1597
|
-
Z.danger(s(
|
|
1594
|
+
const $ = await y.value.list(u.value + 1);
|
|
1595
|
+
r.value = [...r.value, ...$.data], u.value = $.current_page, v.value = $.last_page;
|
|
1596
|
+
} catch ($) {
|
|
1597
|
+
Z.danger(s($));
|
|
1598
1598
|
} finally {
|
|
1599
1599
|
f.value = !1;
|
|
1600
1600
|
}
|
|
@@ -1603,36 +1603,36 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1603
1603
|
ue([() => n.type, d], () => {
|
|
1604
1604
|
h();
|
|
1605
1605
|
}, { immediate: !0 }), t({ reload: h });
|
|
1606
|
-
function p(
|
|
1607
|
-
return
|
|
1606
|
+
function p($) {
|
|
1607
|
+
return $.admin?.name ?? l("history.unknown-author");
|
|
1608
1608
|
}
|
|
1609
|
-
function V(
|
|
1610
|
-
return `${l(`history.event-${
|
|
1609
|
+
function V($) {
|
|
1610
|
+
return `${l(`history.event-${$.event}`)} · ${l(`history.source-${$.source}`)}`;
|
|
1611
1611
|
}
|
|
1612
|
-
function H(
|
|
1613
|
-
return yt(
|
|
1612
|
+
function H($) {
|
|
1613
|
+
return yt($.from, l("history.empty-value"));
|
|
1614
1614
|
}
|
|
1615
|
-
function z(
|
|
1616
|
-
return yt(
|
|
1615
|
+
function z($) {
|
|
1616
|
+
return yt($.to, l("history.empty-value"));
|
|
1617
1617
|
}
|
|
1618
|
-
function O(
|
|
1618
|
+
function O($) {
|
|
1619
1619
|
return l("history.long", {
|
|
1620
|
-
from: String(
|
|
1621
|
-
to: String(
|
|
1620
|
+
from: String($.from_length ?? 0),
|
|
1621
|
+
to: String($.to_length ?? 0)
|
|
1622
1622
|
});
|
|
1623
1623
|
}
|
|
1624
|
-
function g(
|
|
1625
|
-
const P =
|
|
1624
|
+
function g($) {
|
|
1625
|
+
const P = $.run?.summary?.what;
|
|
1626
1626
|
return typeof P == "string" && P !== "" ? `${l("history.run")} · ${P}` : l("history.run");
|
|
1627
1627
|
}
|
|
1628
1628
|
const S = E(!1), k = E(null), I = E(null), U = E(""), L = E(!1);
|
|
1629
1629
|
let j = 0;
|
|
1630
|
-
async function J(
|
|
1630
|
+
async function J($, P = 1) {
|
|
1631
1631
|
if (y.value === null) return;
|
|
1632
1632
|
L.value = !0;
|
|
1633
1633
|
const F = ++j;
|
|
1634
1634
|
try {
|
|
1635
|
-
const te = /^\d+$/.test(U.value.trim()) ? Number(U.value.trim()) : null, we = await y.value.run(
|
|
1635
|
+
const te = /^\d+$/.test(U.value.trim()) ? Number(U.value.trim()) : null, we = await y.value.run($, P, te);
|
|
1636
1636
|
if (F !== j) return;
|
|
1637
1637
|
k.value = P === 1 || k.value === null ? we : {
|
|
1638
1638
|
run: we.run,
|
|
@@ -1644,20 +1644,20 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1644
1644
|
L.value = !1;
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
|
-
function le(
|
|
1648
|
-
I.value =
|
|
1647
|
+
function le($) {
|
|
1648
|
+
I.value = $, k.value = null, U.value = "", S.value = !0, J($);
|
|
1649
1649
|
}
|
|
1650
1650
|
ue(U, () => {
|
|
1651
1651
|
I.value !== null && S.value && J(I.value);
|
|
1652
1652
|
});
|
|
1653
|
-
const
|
|
1654
|
-
const
|
|
1655
|
-
return Object.entries(
|
|
1653
|
+
const ve = _(() => {
|
|
1654
|
+
const $ = k.value?.run.summary ?? {};
|
|
1655
|
+
return Object.entries($).filter(([P]) => P !== "rows" && P !== "failed").map(([P, F]) => ({ key: P, value: yt(F, l("history.empty-value")) }));
|
|
1656
1656
|
}), K = _(() => {
|
|
1657
|
-
const
|
|
1658
|
-
return typeof
|
|
1657
|
+
const $ = k.value?.run.summary?.failed;
|
|
1658
|
+
return typeof $ == "string" ? $ : null;
|
|
1659
1659
|
});
|
|
1660
|
-
return (
|
|
1660
|
+
return ($, P) => (c(), C("section", Ca, [
|
|
1661
1661
|
w.value ? (c(), N(a(ne), {
|
|
1662
1662
|
key: 0,
|
|
1663
1663
|
weight: "medium",
|
|
@@ -1684,14 +1684,14 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1684
1684
|
key: F.id,
|
|
1685
1685
|
class: "wx-history-entry"
|
|
1686
1686
|
}, [
|
|
1687
|
-
|
|
1687
|
+
x(a(gn), {
|
|
1688
1688
|
name: p(F),
|
|
1689
1689
|
size: "sm",
|
|
1690
1690
|
tone: "auto"
|
|
1691
1691
|
}, null, 8, ["name"]),
|
|
1692
1692
|
D("div", Wa, [
|
|
1693
1693
|
D("div", za, [
|
|
1694
|
-
|
|
1694
|
+
x(a(ne), {
|
|
1695
1695
|
size: "sm",
|
|
1696
1696
|
weight: "medium",
|
|
1697
1697
|
truncate: ""
|
|
@@ -1701,11 +1701,11 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1701
1701
|
]),
|
|
1702
1702
|
_: 2
|
|
1703
1703
|
}, 1024),
|
|
1704
|
-
|
|
1704
|
+
x(Fe, {
|
|
1705
1705
|
value: F.created_at
|
|
1706
1706
|
}, null, 8, ["value"])
|
|
1707
1707
|
]),
|
|
1708
|
-
|
|
1708
|
+
x(a(ne), {
|
|
1709
1709
|
size: "sm",
|
|
1710
1710
|
tone: "muted"
|
|
1711
1711
|
}, {
|
|
@@ -1740,7 +1740,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1740
1740
|
]))), 128))
|
|
1741
1741
|
])),
|
|
1742
1742
|
u.value < v.value ? (c(), C("div", Ma, [
|
|
1743
|
-
|
|
1743
|
+
x(a(re), {
|
|
1744
1744
|
size: "sm",
|
|
1745
1745
|
loading: f.value,
|
|
1746
1746
|
onClick: W
|
|
@@ -1751,7 +1751,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1751
1751
|
_: 1
|
|
1752
1752
|
}, 8, ["loading"])
|
|
1753
1753
|
])) : B("", !0),
|
|
1754
|
-
|
|
1754
|
+
x(a(Mt), {
|
|
1755
1755
|
open: S.value,
|
|
1756
1756
|
"onUpdate:open": P[2] || (P[2] = (F) => S.value = F),
|
|
1757
1757
|
title: a(l)("history.run-title"),
|
|
@@ -1763,7 +1763,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1763
1763
|
rows: 4
|
|
1764
1764
|
})) : (c(), C("div", Oa, [
|
|
1765
1765
|
D("div", Pa, [
|
|
1766
|
-
|
|
1766
|
+
x(a(ne), {
|
|
1767
1767
|
size: "sm",
|
|
1768
1768
|
weight: "medium"
|
|
1769
1769
|
}, {
|
|
@@ -1772,11 +1772,11 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1772
1772
|
]),
|
|
1773
1773
|
_: 1
|
|
1774
1774
|
}),
|
|
1775
|
-
|
|
1775
|
+
x(Fe, {
|
|
1776
1776
|
value: k.value.run.created_at
|
|
1777
1777
|
}, null, 8, ["value"])
|
|
1778
1778
|
]),
|
|
1779
|
-
|
|
1779
|
+
x(a(ne), {
|
|
1780
1780
|
size: "sm",
|
|
1781
1781
|
tone: "muted"
|
|
1782
1782
|
}, {
|
|
@@ -1785,15 +1785,15 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1785
1785
|
]),
|
|
1786
1786
|
_: 1
|
|
1787
1787
|
}),
|
|
1788
|
-
|
|
1789
|
-
(c(!0), C(G, null, ce(
|
|
1788
|
+
ve.value.length > 0 ? (c(), C("dl", Ba, [
|
|
1789
|
+
(c(!0), C(G, null, ce(ve.value, (F) => (c(), C(G, {
|
|
1790
1790
|
key: F.key
|
|
1791
1791
|
}, [
|
|
1792
1792
|
D("dt", null, T(F.key), 1),
|
|
1793
1793
|
D("dd", null, T(F.value), 1)
|
|
1794
1794
|
], 64))), 128))
|
|
1795
1795
|
])) : B("", !0),
|
|
1796
|
-
|
|
1796
|
+
x(a(ne), { size: "sm" }, {
|
|
1797
1797
|
default: b(() => [
|
|
1798
1798
|
M(T(a(l)("history.run-rows", { count: String(k.value.run.rows ?? 0) })), 1)
|
|
1799
1799
|
]),
|
|
@@ -1809,7 +1809,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1809
1809
|
]),
|
|
1810
1810
|
_: 1
|
|
1811
1811
|
})) : B("", !0),
|
|
1812
|
-
|
|
1812
|
+
x(a(qe), {
|
|
1813
1813
|
modelValue: U.value,
|
|
1814
1814
|
"onUpdate:modelValue": P[0] || (P[0] = (F) => U.value = F),
|
|
1815
1815
|
size: "sm",
|
|
@@ -1822,7 +1822,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1822
1822
|
key: F.id,
|
|
1823
1823
|
class: "wx-history-run__row"
|
|
1824
1824
|
}, [
|
|
1825
|
-
|
|
1825
|
+
x(a(ne), {
|
|
1826
1826
|
size: "sm",
|
|
1827
1827
|
weight: "medium"
|
|
1828
1828
|
}, {
|
|
@@ -1850,7 +1850,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1850
1850
|
]))), 128))
|
|
1851
1851
|
]),
|
|
1852
1852
|
k.value.rows.current_page < k.value.rows.last_page ? (c(), C("div", Ya, [
|
|
1853
|
-
|
|
1853
|
+
x(a(re), {
|
|
1854
1854
|
size: "sm",
|
|
1855
1855
|
loading: L.value,
|
|
1856
1856
|
onClick: P[1] || (P[1] = (F) => I.value !== null && J(I.value, k.value.rows.current_page + 1))
|
|
@@ -1915,7 +1915,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1915
1915
|
}, ["stop"]))
|
|
1916
1916
|
}, {
|
|
1917
1917
|
trigger: b(() => [
|
|
1918
|
-
|
|
1918
|
+
x(a(Ne), {
|
|
1919
1919
|
type: "more",
|
|
1920
1920
|
size: e.size,
|
|
1921
1921
|
title: a(t)("editor.more")
|
|
@@ -1926,7 +1926,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1926
1926
|
key: r.key
|
|
1927
1927
|
}, [
|
|
1928
1928
|
r.key === l.value ? (c(), C("hr", Qa)) : B("", !0),
|
|
1929
|
-
|
|
1929
|
+
x(a(el), {
|
|
1930
1930
|
icon: r.icon,
|
|
1931
1931
|
tone: r.danger ? "danger" : "default",
|
|
1932
1932
|
href: r.href,
|
|
@@ -1983,7 +1983,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
1983
1983
|
"data-level": e.level
|
|
1984
1984
|
}, [
|
|
1985
1985
|
h.$slots.trail ? (c(), C("div", to, [
|
|
1986
|
-
|
|
1986
|
+
fe(h.$slots, "trail", {}, void 0, !0)
|
|
1987
1987
|
])) : B("", !0),
|
|
1988
1988
|
y.value ? (c(), N(Ga, {
|
|
1989
1989
|
key: 1,
|
|
@@ -2012,7 +2012,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
2012
2012
|
]),
|
|
2013
2013
|
_: 1
|
|
2014
2014
|
}, 8, ["level"])) : B("", !0),
|
|
2015
|
-
|
|
2015
|
+
fe(h.$slots, "title-after", {}, void 0, !0)
|
|
2016
2016
|
]),
|
|
2017
2017
|
e.subtitle || h.$slots.subtitle ? (c(), N(a(ne), {
|
|
2018
2018
|
key: 3,
|
|
@@ -2022,14 +2022,14 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
2022
2022
|
truncate: ""
|
|
2023
2023
|
}, {
|
|
2024
2024
|
default: b(() => [
|
|
2025
|
-
|
|
2025
|
+
fe(h.$slots, "subtitle", {}, () => [
|
|
2026
2026
|
M(T(e.subtitle), 1)
|
|
2027
2027
|
], !0)
|
|
2028
2028
|
]),
|
|
2029
2029
|
_: 3
|
|
2030
2030
|
})) : B("", !0),
|
|
2031
2031
|
w.value ? (c(), C("div", lo, [
|
|
2032
|
-
|
|
2032
|
+
fe(h.$slots, "extra", {}, void 0, !0),
|
|
2033
2033
|
(c(!0), C(G, null, ce(f.value, (p) => (c(), N(a(re), {
|
|
2034
2034
|
key: p.key,
|
|
2035
2035
|
class: ke(["wx-screen-head__button", { "is-primary": p.primary }]),
|
|
@@ -2050,7 +2050,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
2050
2050
|
p.icon ? {
|
|
2051
2051
|
name: "icon",
|
|
2052
2052
|
fn: b(() => [
|
|
2053
|
-
|
|
2053
|
+
x(a(ft), {
|
|
2054
2054
|
name: p.icon
|
|
2055
2055
|
}, null, 8, ["name"])
|
|
2056
2056
|
]),
|
|
@@ -2103,7 +2103,7 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
2103
2103
|
n.$slots.actions ? {
|
|
2104
2104
|
name: "extra",
|
|
2105
2105
|
fn: b(() => [
|
|
2106
|
-
|
|
2106
|
+
fe(n.$slots, "actions", {}, void 0, !0)
|
|
2107
2107
|
]),
|
|
2108
2108
|
key: "0"
|
|
2109
2109
|
} : void 0
|
|
@@ -2124,10 +2124,10 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
2124
2124
|
padding: e.padding
|
|
2125
2125
|
}, {
|
|
2126
2126
|
default: b(() => [
|
|
2127
|
-
|
|
2127
|
+
fe(n.$slots, "default", {}, void 0, !0)
|
|
2128
2128
|
]),
|
|
2129
2129
|
_: 3
|
|
2130
|
-
}, 8, ["padding"])) :
|
|
2130
|
+
}, 8, ["padding"])) : fe(n.$slots, "default", {}, void 0, !0, 1)
|
|
2131
2131
|
]),
|
|
2132
2132
|
_: 3
|
|
2133
2133
|
}, 8, ["modelValue", "items", "collapse-below", "aria-label"])) : (c(), C(G, { key: 2 }, [
|
|
@@ -2137,10 +2137,10 @@ const Ca = { class: "wx-history" }, La = {
|
|
|
2137
2137
|
padding: e.padding
|
|
2138
2138
|
}, {
|
|
2139
2139
|
default: b(() => [
|
|
2140
|
-
|
|
2140
|
+
fe(n.$slots, "default", {}, void 0, !0)
|
|
2141
2141
|
]),
|
|
2142
2142
|
_: 3
|
|
2143
|
-
}, 8, ["padding"])) :
|
|
2143
|
+
}, 8, ["padding"])) : fe(n.$slots, "default", {}, void 0, !0, 1)
|
|
2144
2144
|
], 64))
|
|
2145
2145
|
], 10, oo));
|
|
2146
2146
|
}
|
|
@@ -2270,7 +2270,7 @@ const ho = { class: "wx-slug" }, po = { class: "wx-slug__prefix" }, go = /* @__P
|
|
|
2270
2270
|
return !o.value && typeof r == "string" && s.value !== "" && `${l.value}${s.value}` != `/${r}`;
|
|
2271
2271
|
});
|
|
2272
2272
|
return (r, u) => (c(), C("div", ho, [
|
|
2273
|
-
|
|
2273
|
+
x(a(qe), Pn(Bn(r.$attrs)), Ue({ _: 2 }, [
|
|
2274
2274
|
o.value ? void 0 : {
|
|
2275
2275
|
name: "prefix",
|
|
2276
2276
|
fn: b(() => [
|
|
@@ -2530,7 +2530,7 @@ const ko = /* @__PURE__ */ X({
|
|
|
2530
2530
|
v || r.value === "" || !(f instanceof HTMLElement) || (v = !0, await Promise.allSettled((f.getAnimations?.({ subtree: !0 }) ?? []).map((d) => d.finished)), f.querySelector(".wx-menu-row.is-active")?.scrollIntoView?.({ block: "center" }));
|
|
2531
2531
|
}
|
|
2532
2532
|
return Ee(m), ue(r, m, { flush: "post" }), (f, d) => {
|
|
2533
|
-
const y =
|
|
2533
|
+
const y = me("wx-menu-item"), w = me("wx-menu-group"), h = me("wx-submenu"), W = me("wx-menu");
|
|
2534
2534
|
return c(), N(W, {
|
|
2535
2535
|
ref_key: "root",
|
|
2536
2536
|
ref: u,
|
|
@@ -2594,7 +2594,7 @@ const ko = /* @__PURE__ */ X({
|
|
|
2594
2594
|
subtitle: a(o)("shell.not-found-description")
|
|
2595
2595
|
}, {
|
|
2596
2596
|
actions: b(() => [
|
|
2597
|
-
|
|
2597
|
+
x(a(re), {
|
|
2598
2598
|
type: "primary",
|
|
2599
2599
|
onClick: s[0] || (s[0] = (i) => a(n).push("/"))
|
|
2600
2600
|
}, {
|
|
@@ -2628,23 +2628,23 @@ const ko = /* @__PURE__ */ X({
|
|
|
2628
2628
|
}), Dn(() => {
|
|
2629
2629
|
typeof document < "u" && delete document.documentElement.dataset.wxShell;
|
|
2630
2630
|
}), (h, W) => {
|
|
2631
|
-
const p =
|
|
2631
|
+
const p = me("router-view"), V = me("wx-loading"), H = me("wx-button"), z = me("wx-result"), O = me("wx-action"), g = me("wx-text"), S = me("wx-header"), k = me("wx-aside"), I = me("wx-main"), U = me("wx-container"), L = me("wx-drawer");
|
|
2632
2632
|
return c(), C(G, null, [
|
|
2633
|
-
|
|
2633
|
+
x(a(sl), { placement: "bottom-center" }),
|
|
2634
2634
|
a(t).state.status === "unauthenticated" ? (c(), C("div", So, [
|
|
2635
|
-
|
|
2635
|
+
x(p)
|
|
2636
2636
|
])) : a(t).state.status === "loading" ? (c(), C("div", To, [
|
|
2637
|
-
|
|
2637
|
+
x(V, {
|
|
2638
2638
|
label: a(n)("shell.loading")
|
|
2639
2639
|
}, null, 8, ["label"])
|
|
2640
2640
|
])) : a(t).state.status === "error" ? (c(), C("div", Ao, [
|
|
2641
|
-
|
|
2641
|
+
x(z, {
|
|
2642
2642
|
status: "error",
|
|
2643
2643
|
title: a(n)("shell.error-title"),
|
|
2644
2644
|
description: a(t).state.error
|
|
2645
2645
|
}, {
|
|
2646
2646
|
default: b(() => [
|
|
2647
|
-
|
|
2647
|
+
x(H, {
|
|
2648
2648
|
type: "primary",
|
|
2649
2649
|
onClick: W[0] || (W[0] = (j) => a(t).reload())
|
|
2650
2650
|
}, {
|
|
@@ -2662,7 +2662,7 @@ const ko = /* @__PURE__ */ X({
|
|
|
2662
2662
|
ref: o,
|
|
2663
2663
|
class: ke(["wx-root wx-admin", `wx-admin--${w.value}`])
|
|
2664
2664
|
}, [
|
|
2665
|
-
|
|
2665
|
+
x(U, {
|
|
2666
2666
|
direction: a(s) === "drawer" ? "vertical" : "horizontal",
|
|
2667
2667
|
"full-height": "",
|
|
2668
2668
|
class: "wx-admin__frame"
|
|
@@ -2678,15 +2678,15 @@ const ko = /* @__PURE__ */ X({
|
|
|
2678
2678
|
height: "var(--wx-admin-header-height)"
|
|
2679
2679
|
}, {
|
|
2680
2680
|
end: b(() => [
|
|
2681
|
-
|
|
2681
|
+
fe(h.$slots, "user", { expanded: !1 }, void 0, !0)
|
|
2682
2682
|
]),
|
|
2683
2683
|
default: b(() => [
|
|
2684
|
-
|
|
2684
|
+
x(O, {
|
|
2685
2685
|
icon: "menu",
|
|
2686
2686
|
title: a(n)("nav.menu"),
|
|
2687
2687
|
onClick: a(v)
|
|
2688
2688
|
}, null, 8, ["title", "onClick"]),
|
|
2689
|
-
|
|
2689
|
+
fe(h.$slots, "brand", {}, () => [
|
|
2690
2690
|
d.value ? (c(), C("img", {
|
|
2691
2691
|
key: 0,
|
|
2692
2692
|
class: "wx-admin__logo",
|
|
@@ -2728,7 +2728,7 @@ const ko = /* @__PURE__ */ X({
|
|
|
2728
2728
|
class: "wx-admin__mark",
|
|
2729
2729
|
src: y.value.url,
|
|
2730
2730
|
alt: f.value
|
|
2731
|
-
}, null, 8, Wo)) : B("", !0) :
|
|
2731
|
+
}, null, 8, Wo)) : B("", !0) : fe(h.$slots, "brand", {}, () => [
|
|
2732
2732
|
d.value ? (c(), C("img", {
|
|
2733
2733
|
key: 0,
|
|
2734
2734
|
class: "wx-admin__logo",
|
|
@@ -2748,7 +2748,7 @@ const ko = /* @__PURE__ */ X({
|
|
|
2748
2748
|
_: 1
|
|
2749
2749
|
}))
|
|
2750
2750
|
], !0, 0),
|
|
2751
|
-
|
|
2751
|
+
x(O, {
|
|
2752
2752
|
icon: "sidebar",
|
|
2753
2753
|
title: a(i) ? a(n)("nav.expand") : a(n)("nav.collapse"),
|
|
2754
2754
|
onClick: a(v)
|
|
@@ -2757,29 +2757,29 @@ const ko = /* @__PURE__ */ X({
|
|
|
2757
2757
|
]),
|
|
2758
2758
|
bottom: b(() => [
|
|
2759
2759
|
D("div", zo, [
|
|
2760
|
-
|
|
2760
|
+
fe(h.$slots, "user", {
|
|
2761
2761
|
expanded: !a(i)
|
|
2762
2762
|
}, void 0, !0)
|
|
2763
2763
|
])
|
|
2764
2764
|
]),
|
|
2765
2765
|
default: b(() => [
|
|
2766
|
-
|
|
2766
|
+
fe(h.$slots, "nav", { collapsed: a(i) }, void 0, !0)
|
|
2767
2767
|
]),
|
|
2768
2768
|
_: 3
|
|
2769
2769
|
}, 8, ["collapsed"])) : B("", !0),
|
|
2770
|
-
|
|
2770
|
+
x(I, {
|
|
2771
2771
|
padding: "none",
|
|
2772
2772
|
class: "wx-admin__screen"
|
|
2773
2773
|
}, {
|
|
2774
2774
|
default: b(() => [
|
|
2775
|
-
|
|
2775
|
+
x(p)
|
|
2776
2776
|
]),
|
|
2777
2777
|
_: 1
|
|
2778
2778
|
})
|
|
2779
2779
|
]),
|
|
2780
2780
|
_: 3
|
|
2781
2781
|
}, 8, ["direction"]),
|
|
2782
|
-
|
|
2782
|
+
x(L, {
|
|
2783
2783
|
open: a(u),
|
|
2784
2784
|
"onUpdate:open": W[1] || (W[1] = (j) => mn(u) ? u.value = j : null),
|
|
2785
2785
|
class: "wx-admin__drawer",
|
|
@@ -2791,11 +2791,11 @@ const ko = /* @__PURE__ */ X({
|
|
|
2791
2791
|
}, {
|
|
2792
2792
|
footer: b(() => [
|
|
2793
2793
|
D("div", Eo, [
|
|
2794
|
-
|
|
2794
|
+
fe(h.$slots, "user", { expanded: !0 }, void 0, !0)
|
|
2795
2795
|
])
|
|
2796
2796
|
]),
|
|
2797
2797
|
default: b(() => [
|
|
2798
|
-
|
|
2798
|
+
fe(h.$slots, "nav", {
|
|
2799
2799
|
collapsed: !1,
|
|
2800
2800
|
select: a(m)
|
|
2801
2801
|
}, void 0, !0)
|
|
@@ -3237,7 +3237,7 @@ function ri(e) {
|
|
|
3237
3237
|
}
|
|
3238
3238
|
function U(A) {
|
|
3239
3239
|
const R = I(A);
|
|
3240
|
-
return R && Z.info(n("editing.merged", { who:
|
|
3240
|
+
return R && Z.info(n("editing.merged", { who: ve(A.changed) })), R;
|
|
3241
3241
|
}
|
|
3242
3242
|
async function L() {
|
|
3243
3243
|
const A = r.value?.theirs ?? await e.read();
|
|
@@ -3261,14 +3261,14 @@ function ri(e) {
|
|
|
3261
3261
|
const A = i.value;
|
|
3262
3262
|
A && (A.conflicts.forEach((R) => j(R.id, "theirs")), J());
|
|
3263
3263
|
}
|
|
3264
|
-
function
|
|
3264
|
+
function ve(A) {
|
|
3265
3265
|
const R = A?.author ?? n("editing.somebody");
|
|
3266
3266
|
return A?.source === "mcp" ? n("editing.via-agent", { name: R }) : A?.source === "import" ? n("editing.via-import", { name: R }) : R;
|
|
3267
3267
|
}
|
|
3268
3268
|
function K(A) {
|
|
3269
3269
|
return A ? o.short(A) : "";
|
|
3270
3270
|
}
|
|
3271
|
-
function
|
|
3271
|
+
function $(A) {
|
|
3272
3272
|
const R = [...new Set(A.map((ie) => l.label(ie)))], Y = R.slice(0, 3).join(", ") || n("editing.order");
|
|
3273
3273
|
return R.length > 3 ? n("editing.and-more", { what: Y }) : Y;
|
|
3274
3274
|
}
|
|
@@ -3297,7 +3297,7 @@ function ri(e) {
|
|
|
3297
3297
|
pe.at(-1) !== $e && pe.push($e), Y++;
|
|
3298
3298
|
}
|
|
3299
3299
|
const Me = pe.length === 1 ? pe[0] : `${pe.slice(0, -1).join(", ")} ${n("editing.and")} ${pe.at(-1)}`;
|
|
3300
|
-
R.push(rt(n("editing.event", { who:
|
|
3300
|
+
R.push(rt(n("editing.event", { who: ve(xe), what: Me, when: K(xe.at) })));
|
|
3301
3301
|
}
|
|
3302
3302
|
return R.join(" · ");
|
|
3303
3303
|
}
|
|
@@ -3321,8 +3321,8 @@ function ri(e) {
|
|
|
3321
3321
|
R.changed ??= y;
|
|
3322
3322
|
const Y = f.value.filter((xe) => dn.has(xe.kind)), ie = Y.length > 0 ? F(Y) : rt(
|
|
3323
3323
|
n("editing.incoming", {
|
|
3324
|
-
who:
|
|
3325
|
-
what:
|
|
3324
|
+
who: ve(R.changed),
|
|
3325
|
+
what: $(un(s.value, R.values)),
|
|
3326
3326
|
when: K(R.changed?.at)
|
|
3327
3327
|
})
|
|
3328
3328
|
);
|
|
@@ -3331,7 +3331,7 @@ function ri(e) {
|
|
|
3331
3331
|
message: `${ie}. ${n("editing.publish-unseen-text")}`,
|
|
3332
3332
|
confirmText: n("editing.publish-with"),
|
|
3333
3333
|
cancelText: n("editing.review-first")
|
|
3334
|
-
}) ? { revision: R.revision, asked: !0 } : (I(R) && Z.info(n("editing.merged", { who:
|
|
3334
|
+
}) ? { revision: R.revision, asked: !0 } : (I(R) && Z.info(n("editing.merged", { who: ve(R.changed) })), null);
|
|
3335
3335
|
}
|
|
3336
3336
|
async function Je(A) {
|
|
3337
3337
|
const R = A;
|
|
@@ -3487,10 +3487,10 @@ ${R}`).join(`
|
|
|
3487
3487
|
dismissEvents: ae,
|
|
3488
3488
|
check: Le,
|
|
3489
3489
|
label: l.label,
|
|
3490
|
-
places:
|
|
3490
|
+
places: $,
|
|
3491
3491
|
describe: F,
|
|
3492
3492
|
preview: Qo,
|
|
3493
|
-
who:
|
|
3493
|
+
who: ve
|
|
3494
3494
|
};
|
|
3495
3495
|
}
|
|
3496
3496
|
function Qo(e) {
|
|
@@ -3649,7 +3649,7 @@ function fi(e = {}) {
|
|
|
3649
3649
|
}
|
|
3650
3650
|
return ae;
|
|
3651
3651
|
}
|
|
3652
|
-
async function
|
|
3652
|
+
async function ve() {
|
|
3653
3653
|
const q = await g("HEAD", `${s}/${m.value}`);
|
|
3654
3654
|
if (!q.ok)
|
|
3655
3655
|
return I(await St(q)), !1;
|
|
@@ -3690,7 +3690,7 @@ function fi(e = {}) {
|
|
|
3690
3690
|
if (await ss(l * 2 ** (Q - 1)), q !== p)
|
|
3691
3691
|
return;
|
|
3692
3692
|
try {
|
|
3693
|
-
if (!await
|
|
3693
|
+
if (!await ve())
|
|
3694
3694
|
return;
|
|
3695
3695
|
} catch {
|
|
3696
3696
|
}
|
|
@@ -3717,7 +3717,7 @@ function fi(e = {}) {
|
|
|
3717
3717
|
return;
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
|
-
function
|
|
3720
|
+
function $() {
|
|
3721
3721
|
i.value === "uploading" && (J(), i.value = "paused");
|
|
3722
3722
|
}
|
|
3723
3723
|
function P() {
|
|
@@ -3733,7 +3733,7 @@ function fi(e = {}) {
|
|
|
3733
3733
|
J(), f.value = null, i.value = "uploading";
|
|
3734
3734
|
const q = S(), Q = p;
|
|
3735
3735
|
try {
|
|
3736
|
-
await
|
|
3736
|
+
await ve() && Q === p && K();
|
|
3737
3737
|
} catch (ae) {
|
|
3738
3738
|
Q === p && (fn() ? P() : I(ae));
|
|
3739
3739
|
}
|
|
@@ -3754,7 +3754,7 @@ function fi(e = {}) {
|
|
|
3754
3754
|
i.value === "offline" && F();
|
|
3755
3755
|
}
|
|
3756
3756
|
return typeof window < "u" && (window.addEventListener("offline", we), window.addEventListener("online", Je)), Hn() !== void 0 && Kn(() => {
|
|
3757
|
-
typeof window < "u" && (window.removeEventListener("offline", we), window.removeEventListener("online", Je)),
|
|
3757
|
+
typeof window < "u" && (window.removeEventListener("offline", we), window.removeEventListener("online", Je)), $();
|
|
3758
3758
|
}), {
|
|
3759
3759
|
state: Ve(i),
|
|
3760
3760
|
progress: d,
|
|
@@ -3765,7 +3765,7 @@ function fi(e = {}) {
|
|
|
3765
3765
|
id: Ve(m),
|
|
3766
3766
|
error: Ve(f),
|
|
3767
3767
|
start: le,
|
|
3768
|
-
pause:
|
|
3768
|
+
pause: $,
|
|
3769
3769
|
resume: F,
|
|
3770
3770
|
cancel: te
|
|
3771
3771
|
};
|
|
@@ -3851,7 +3851,7 @@ const us = /* @__PURE__ */ X({
|
|
|
3851
3851
|
onClick: l[0] || (l[0] = Rt(() => {
|
|
3852
3852
|
}, ["stop"]))
|
|
3853
3853
|
}, [
|
|
3854
|
-
|
|
3854
|
+
x(a(ft), {
|
|
3855
3855
|
name: "info",
|
|
3856
3856
|
size: "14px",
|
|
3857
3857
|
label: a(n)("links.address-fallback-label")
|
|
@@ -3900,9 +3900,9 @@ const cs = /* @__PURE__ */ X({
|
|
|
3900
3900
|
width: 440
|
|
3901
3901
|
}, {
|
|
3902
3902
|
footer: b(() => [
|
|
3903
|
-
|
|
3903
|
+
x(a(vl), { size: "sm" }, {
|
|
3904
3904
|
default: b(() => [
|
|
3905
|
-
|
|
3905
|
+
x(a(re), {
|
|
3906
3906
|
variant: "outline",
|
|
3907
3907
|
onClick: w[1] || (w[1] = (h) => a(l)())
|
|
3908
3908
|
}, {
|
|
@@ -3911,7 +3911,7 @@ const cs = /* @__PURE__ */ X({
|
|
|
3911
3911
|
]),
|
|
3912
3912
|
_: 1
|
|
3913
3913
|
}),
|
|
3914
|
-
|
|
3914
|
+
x(a(re), {
|
|
3915
3915
|
type: "primary",
|
|
3916
3916
|
loading: u.value,
|
|
3917
3917
|
disabled: r.value.trim() === "",
|
|
@@ -3927,7 +3927,7 @@ const cs = /* @__PURE__ */ X({
|
|
|
3927
3927
|
})
|
|
3928
3928
|
]),
|
|
3929
3929
|
default: b(() => [
|
|
3930
|
-
|
|
3930
|
+
x(a(fl), {
|
|
3931
3931
|
label: a(i)("field-title"),
|
|
3932
3932
|
error: f("title") ?? f("slug"),
|
|
3933
3933
|
required: ""
|
|
@@ -3937,7 +3937,7 @@ const cs = /* @__PURE__ */ X({
|
|
|
3937
3937
|
ref_key: "field",
|
|
3938
3938
|
ref: m
|
|
3939
3939
|
}, [
|
|
3940
|
-
|
|
3940
|
+
x(a(qe), {
|
|
3941
3941
|
modelValue: r.value,
|
|
3942
3942
|
"onUpdate:modelValue": w[0] || (w[0] = (h) => r.value = h),
|
|
3943
3943
|
"aria-label": a(i)("field-title"),
|
|
@@ -4032,7 +4032,7 @@ const cs = /* @__PURE__ */ X({
|
|
|
4032
4032
|
}
|
|
4033
4033
|
}
|
|
4034
4034
|
return (g, S) => {
|
|
4035
|
-
const k =
|
|
4035
|
+
const k = me("router-link");
|
|
4036
4036
|
return c(), N(An, {
|
|
4037
4037
|
class: "wx-categories",
|
|
4038
4038
|
title: d.value,
|
|
@@ -4051,7 +4051,7 @@ const cs = /* @__PURE__ */ X({
|
|
|
4051
4051
|
title: a(s)("empty"),
|
|
4052
4052
|
description: a(s)("empty-help")
|
|
4053
4053
|
}, null, 8, ["title", "description"])) : (c(), C(G, { key: 2 }, [
|
|
4054
|
-
|
|
4054
|
+
x(a(Ut), {
|
|
4055
4055
|
modelValue: u.value,
|
|
4056
4056
|
"onUpdate:modelValue": S[0] || (S[0] = (I) => u.value = I),
|
|
4057
4057
|
class: "wx-categories__list",
|
|
@@ -4062,13 +4062,13 @@ const cs = /* @__PURE__ */ X({
|
|
|
4062
4062
|
onMove: O
|
|
4063
4063
|
}, {
|
|
4064
4064
|
default: b(({ item: I }) => [
|
|
4065
|
-
|
|
4065
|
+
x(k, {
|
|
4066
4066
|
class: ke(["wx-category-row", { "is-hidden": !I.is_visible }]),
|
|
4067
4067
|
to: `${t.options.path}/${I.id}`
|
|
4068
4068
|
}, {
|
|
4069
4069
|
default: b(() => [
|
|
4070
4070
|
D("span", fs, [
|
|
4071
|
-
|
|
4071
|
+
x(a(ne), {
|
|
4072
4072
|
truncate: "",
|
|
4073
4073
|
weight: "medium"
|
|
4074
4074
|
}, {
|
|
@@ -4082,7 +4082,7 @@ const cs = /* @__PURE__ */ X({
|
|
|
4082
4082
|
content: a(s)("hidden")
|
|
4083
4083
|
}, {
|
|
4084
4084
|
default: b(() => [
|
|
4085
|
-
|
|
4085
|
+
x(a(ft), {
|
|
4086
4086
|
name: "eye-off",
|
|
4087
4087
|
size: "sm"
|
|
4088
4088
|
})
|
|
@@ -4110,7 +4110,7 @@ const cs = /* @__PURE__ */ X({
|
|
|
4110
4110
|
}, 1032, ["class", "to"])
|
|
4111
4111
|
]),
|
|
4112
4112
|
actions: b(({ item: I }) => [
|
|
4113
|
-
|
|
4113
|
+
x(a(ne), {
|
|
4114
4114
|
class: "wx-category-row__count",
|
|
4115
4115
|
size: "sm",
|
|
4116
4116
|
tone: "muted"
|
|
@@ -4120,14 +4120,14 @@ const cs = /* @__PURE__ */ X({
|
|
|
4120
4120
|
]),
|
|
4121
4121
|
_: 2
|
|
4122
4122
|
}, 1024),
|
|
4123
|
-
|
|
4123
|
+
x(Bt, {
|
|
4124
4124
|
actions: z(I),
|
|
4125
4125
|
label: I.name
|
|
4126
4126
|
}, null, 8, ["actions", "label"])
|
|
4127
4127
|
]),
|
|
4128
4128
|
_: 1
|
|
4129
4129
|
}, 8, ["modelValue", "item-label", "disabled"]),
|
|
4130
|
-
|
|
4130
|
+
x(a(ye), {
|
|
4131
4131
|
class: "wx-categories__note",
|
|
4132
4132
|
type: "info",
|
|
4133
4133
|
description: a(s)("order")
|
|
@@ -4210,10 +4210,9 @@ const cs = /* @__PURE__ */ X({
|
|
|
4210
4210
|
type: "danger",
|
|
4211
4211
|
title: a(r)("shell.error-title"),
|
|
4212
4212
|
description: v.value
|
|
4213
|
-
}, null, 8, ["title", "description"])) : u.value === null ? (
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
})) : (c(), N(a(kl), {
|
|
4213
|
+
}, null, 8, ["title", "description"])) : u.value === null ? fe(d.$slots, "loading", {}, () => [
|
|
4214
|
+
x(a(Ce), { rows: 4 })
|
|
4215
|
+
], void 0, 1) : (c(), N(a(kl), {
|
|
4217
4216
|
key: 2,
|
|
4218
4217
|
modelValue: s.value,
|
|
4219
4218
|
"onUpdate:modelValue": y[0] || (y[0] = (w) => s.value = w),
|
|
@@ -4268,8 +4267,8 @@ const cs = /* @__PURE__ */ X({
|
|
|
4268
4267
|
try {
|
|
4269
4268
|
I(await o.save(d.value.id, y.value)), Z.success(r("saved"));
|
|
4270
4269
|
} catch (K) {
|
|
4271
|
-
const
|
|
4272
|
-
|
|
4270
|
+
const $ = K.body;
|
|
4271
|
+
$?.errors ? (V.value = $.errors, Z.danger(r("save-failed"))) : Z.danger(v(K));
|
|
4273
4272
|
} finally {
|
|
4274
4273
|
p.value = !1;
|
|
4275
4274
|
}
|
|
@@ -4309,9 +4308,9 @@ const cs = /* @__PURE__ */ X({
|
|
|
4309
4308
|
cancelText: r("cancel"),
|
|
4310
4309
|
tone: "danger"
|
|
4311
4310
|
}));
|
|
4312
|
-
const
|
|
4313
|
-
const K = d.value,
|
|
4314
|
-
return K && (K.url && K.is_visible &&
|
|
4311
|
+
const ve = _(() => {
|
|
4312
|
+
const K = d.value, $ = [];
|
|
4313
|
+
return K && (K.url && K.is_visible && $.push({ key: "site", label: r("open-on-site"), icon: "link", href: K.url }), H.value && $.push({
|
|
4315
4314
|
key: "delete",
|
|
4316
4315
|
label: r("delete"),
|
|
4317
4316
|
icon: "trash",
|
|
@@ -4320,40 +4319,40 @@ const cs = /* @__PURE__ */ X({
|
|
|
4320
4319
|
run: () => {
|
|
4321
4320
|
j();
|
|
4322
4321
|
}
|
|
4323
|
-
})),
|
|
4322
|
+
})), $;
|
|
4324
4323
|
});
|
|
4325
|
-
return (K,
|
|
4324
|
+
return (K, $) => (c(), C("div", {
|
|
4326
4325
|
class: "wx-category-editor",
|
|
4327
4326
|
onKeydown: le
|
|
4328
4327
|
}, [
|
|
4329
4328
|
W.value || !d.value ? (c(), C(G, { key: 0 }, [
|
|
4330
|
-
|
|
4329
|
+
x(a(Ce), {
|
|
4331
4330
|
class: "wx-category-editor__ghost",
|
|
4332
4331
|
title: "",
|
|
4333
4332
|
rows: 1
|
|
4334
4333
|
}),
|
|
4335
|
-
|
|
4334
|
+
x(a($t), null, {
|
|
4336
4335
|
default: b(() => [
|
|
4337
|
-
|
|
4336
|
+
x(a(Ce), { rows: 6 })
|
|
4338
4337
|
]),
|
|
4339
4338
|
_: 1
|
|
4340
4339
|
})
|
|
4341
4340
|
], 64)) : (c(), C(G, { key: 1 }, [
|
|
4342
|
-
|
|
4341
|
+
x(Tn, {
|
|
4343
4342
|
divider: "",
|
|
4344
4343
|
back: f.value,
|
|
4345
4344
|
"back-label": S.value,
|
|
4346
4345
|
title: k.value,
|
|
4347
4346
|
subtitle: d.value.path === null ? void 0 : `/${d.value.path}`,
|
|
4348
|
-
actions:
|
|
4347
|
+
actions: ve.value
|
|
4349
4348
|
}, Ue({
|
|
4350
4349
|
trail: b(() => [
|
|
4351
|
-
|
|
4350
|
+
x(a(pl), {
|
|
4352
4351
|
size: "sm",
|
|
4353
4352
|
label: a(r)("trail")
|
|
4354
4353
|
}, {
|
|
4355
4354
|
default: b(() => [
|
|
4356
|
-
|
|
4355
|
+
x(a(Qt), {
|
|
4357
4356
|
as: "router-link",
|
|
4358
4357
|
to: f.value
|
|
4359
4358
|
}, {
|
|
@@ -4362,7 +4361,7 @@ const cs = /* @__PURE__ */ X({
|
|
|
4362
4361
|
]),
|
|
4363
4362
|
_: 1
|
|
4364
4363
|
}, 8, ["to"]),
|
|
4365
|
-
|
|
4364
|
+
x(a(Qt), { current: "" }, {
|
|
4366
4365
|
default: b(() => [
|
|
4367
4366
|
M(T(k.value), 1)
|
|
4368
4367
|
]),
|
|
@@ -4377,7 +4376,7 @@ const cs = /* @__PURE__ */ X({
|
|
|
4377
4376
|
d.value.is_visible ? void 0 : {
|
|
4378
4377
|
name: "title-after",
|
|
4379
4378
|
fn: b(() => [
|
|
4380
|
-
|
|
4379
|
+
x(a(Ke), { dot: "" }, {
|
|
4381
4380
|
default: b(() => [
|
|
4382
4381
|
M(T(a(r)("hidden")), 1)
|
|
4383
4382
|
]),
|
|
@@ -4387,19 +4386,19 @@ const cs = /* @__PURE__ */ X({
|
|
|
4387
4386
|
key: "0"
|
|
4388
4387
|
}
|
|
4389
4388
|
]), 1032, ["back", "back-label", "title", "subtitle", "actions"]),
|
|
4390
|
-
|
|
4389
|
+
x(ys, {
|
|
4391
4390
|
modelValue: y.value,
|
|
4392
|
-
"onUpdate:modelValue":
|
|
4391
|
+
"onUpdate:modelValue": $[0] || ($[0] = (P) => y.value = P),
|
|
4393
4392
|
name: t.options.screen,
|
|
4394
4393
|
errors: V.value,
|
|
4395
4394
|
disabled: !H.value || p.value
|
|
4396
4395
|
}, null, 8, ["modelValue", "name", "errors", "disabled"]),
|
|
4397
4396
|
H.value ? (c(), N(a(gl), { key: 0 }, {
|
|
4398
4397
|
state: b(() => [
|
|
4399
|
-
|
|
4398
|
+
x(ps, { state: g.value }, null, 8, ["state"])
|
|
4400
4399
|
]),
|
|
4401
4400
|
default: b(() => [
|
|
4402
|
-
|
|
4401
|
+
x(a(re), {
|
|
4403
4402
|
type: "primary",
|
|
4404
4403
|
loading: p.value,
|
|
4405
4404
|
disabled: !O.value,
|
|
@@ -4486,7 +4485,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4486
4485
|
teleport: ""
|
|
4487
4486
|
}, {
|
|
4488
4487
|
trigger: b(() => [
|
|
4489
|
-
|
|
4488
|
+
x(a(Ne), {
|
|
4490
4489
|
type: "edit",
|
|
4491
4490
|
title: u.value,
|
|
4492
4491
|
size: e.size,
|
|
@@ -4498,7 +4497,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4498
4497
|
class: "wx-rename",
|
|
4499
4498
|
onSubmit: Rt(v, ["prevent"])
|
|
4500
4499
|
}, [
|
|
4501
|
-
|
|
4500
|
+
x(a(qe), {
|
|
4502
4501
|
ref_key: "field",
|
|
4503
4502
|
ref: r,
|
|
4504
4503
|
modelValue: i.value,
|
|
@@ -4508,7 +4507,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4508
4507
|
onKeydown: f[1] || (f[1] = hn((d) => s.value = !1, ["esc"]))
|
|
4509
4508
|
}, null, 8, ["modelValue", "aria-label", "placeholder"]),
|
|
4510
4509
|
D("div", _s, [
|
|
4511
|
-
|
|
4510
|
+
x(a(re), {
|
|
4512
4511
|
type: "primary",
|
|
4513
4512
|
size: "sm",
|
|
4514
4513
|
"native-type": "submit"
|
|
@@ -4536,7 +4535,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4536
4535
|
setup(e) {
|
|
4537
4536
|
const t = e, n = ee("webx-admin"), o = E(!1), l = _(() => t.title ?? n("help.title")), s = _(() => Ho(t.body));
|
|
4538
4537
|
return (i, r) => (c(), C(G, null, [
|
|
4539
|
-
|
|
4538
|
+
x(a(Ne), {
|
|
4540
4539
|
type: "details",
|
|
4541
4540
|
icon: "question",
|
|
4542
4541
|
tone: "neutral",
|
|
@@ -4544,7 +4543,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4544
4543
|
title: e.label ?? l.value,
|
|
4545
4544
|
onClick: r[0] || (r[0] = (u) => o.value = !0)
|
|
4546
4545
|
}, null, 8, ["size", "title"]),
|
|
4547
|
-
|
|
4546
|
+
x(a(Mt), {
|
|
4548
4547
|
open: o.value,
|
|
4549
4548
|
"onUpdate:open": r[1] || (r[1] = (u) => o.value = u),
|
|
4550
4549
|
title: l.value,
|
|
@@ -4678,14 +4677,14 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4678
4677
|
key: k.id,
|
|
4679
4678
|
class: "wx-note"
|
|
4680
4679
|
}, [
|
|
4681
|
-
|
|
4680
|
+
x(a(gn), {
|
|
4682
4681
|
name: O(k),
|
|
4683
4682
|
size: "sm",
|
|
4684
4683
|
tone: "auto"
|
|
4685
4684
|
}, null, 8, ["name"]),
|
|
4686
4685
|
D("div", As, [
|
|
4687
4686
|
D("div", Cs, [
|
|
4688
|
-
|
|
4687
|
+
x(a(ne), {
|
|
4689
4688
|
size: "sm",
|
|
4690
4689
|
weight: "medium",
|
|
4691
4690
|
truncate: ""
|
|
@@ -4695,22 +4694,22 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4695
4694
|
]),
|
|
4696
4695
|
_: 2
|
|
4697
4696
|
}, 1024),
|
|
4698
|
-
|
|
4697
|
+
x(Fe, {
|
|
4699
4698
|
value: k.created_at
|
|
4700
4699
|
}, null, 8, ["value"]),
|
|
4701
|
-
|
|
4700
|
+
x(Bt, {
|
|
4702
4701
|
actions: z(k),
|
|
4703
4702
|
label: O(k)
|
|
4704
4703
|
}, null, 8, ["actions", "label"])
|
|
4705
4704
|
]),
|
|
4706
4705
|
f.value === k.id ? (c(), C(G, { key: 0 }, [
|
|
4707
|
-
|
|
4706
|
+
x(a(Zt), {
|
|
4708
4707
|
modelValue: d.value,
|
|
4709
4708
|
"onUpdate:modelValue": S[0] || (S[0] = (I) => d.value = I),
|
|
4710
4709
|
autosize: { minRows: 2, maxRows: 10 }
|
|
4711
4710
|
}, null, 8, ["modelValue"]),
|
|
4712
4711
|
D("div", Ls, [
|
|
4713
|
-
|
|
4712
|
+
x(a(re), {
|
|
4714
4713
|
size: "sm",
|
|
4715
4714
|
type: "primary",
|
|
4716
4715
|
onClick: (I) => V(k)
|
|
@@ -4720,7 +4719,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4720
4719
|
]),
|
|
4721
4720
|
_: 1
|
|
4722
4721
|
}, 8, ["onClick"]),
|
|
4723
|
-
|
|
4722
|
+
x(a(re), {
|
|
4724
4723
|
size: "sm",
|
|
4725
4724
|
variant: "text",
|
|
4726
4725
|
onClick: S[1] || (S[1] = (I) => f.value = null)
|
|
@@ -4736,13 +4735,13 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4736
4735
|
]))), 128))
|
|
4737
4736
|
])),
|
|
4738
4737
|
e.can ? (c(), C("div", zs, [
|
|
4739
|
-
|
|
4738
|
+
x(a(Zt), {
|
|
4740
4739
|
modelValue: v.value,
|
|
4741
4740
|
"onUpdate:modelValue": S[2] || (S[2] = (k) => v.value = k),
|
|
4742
4741
|
placeholder: a(s)("notes.placeholder"),
|
|
4743
4742
|
autosize: { minRows: 2, maxRows: 8 }
|
|
4744
4743
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
4745
|
-
|
|
4744
|
+
x(a(re), {
|
|
4746
4745
|
size: "sm",
|
|
4747
4746
|
type: "primary",
|
|
4748
4747
|
disabled: v.value.trim() === "",
|
|
@@ -4841,7 +4840,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4841
4840
|
live: ""
|
|
4842
4841
|
}, {
|
|
4843
4842
|
actions: b(() => [
|
|
4844
|
-
|
|
4843
|
+
x(a(re), {
|
|
4845
4844
|
size: "sm",
|
|
4846
4845
|
type: "primary",
|
|
4847
4846
|
onClick: j[0] || (j[0] = (J) => e.editing.copyText())
|
|
@@ -4864,7 +4863,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4864
4863
|
e.editing.canRestore() ? {
|
|
4865
4864
|
name: "actions",
|
|
4866
4865
|
fn: b(() => [
|
|
4867
|
-
|
|
4866
|
+
x(a(re), {
|
|
4868
4867
|
size: "sm",
|
|
4869
4868
|
type: "primary",
|
|
4870
4869
|
loading: z.value,
|
|
@@ -4888,7 +4887,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4888
4887
|
live: ""
|
|
4889
4888
|
}, {
|
|
4890
4889
|
actions: b(() => [
|
|
4891
|
-
|
|
4890
|
+
x(a(re), {
|
|
4892
4891
|
size: "sm",
|
|
4893
4892
|
variant: "outline",
|
|
4894
4893
|
onClick: I
|
|
@@ -4898,7 +4897,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4898
4897
|
]),
|
|
4899
4898
|
_: 1
|
|
4900
4899
|
}),
|
|
4901
|
-
|
|
4900
|
+
x(a(re), {
|
|
4902
4901
|
size: "sm",
|
|
4903
4902
|
type: "primary",
|
|
4904
4903
|
onClick: k
|
|
@@ -4935,7 +4934,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4935
4934
|
role: "radio",
|
|
4936
4935
|
class: ke(["wx-editing-alerts__choice", { "is-chosen": g(J) === le }]),
|
|
4937
4936
|
"aria-checked": g(J) === le,
|
|
4938
|
-
onClick: (
|
|
4937
|
+
onClick: (ve) => e.editing.choose(J.id, le)
|
|
4939
4938
|
}, [
|
|
4940
4939
|
D("span", Bs, T(a(l)(`editing.${le}`)), 1),
|
|
4941
4940
|
D("span", js, T(S(J, le)), 1)
|
|
@@ -4953,7 +4952,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4953
4952
|
live: ""
|
|
4954
4953
|
}, {
|
|
4955
4954
|
actions: b(() => [
|
|
4956
|
-
|
|
4955
|
+
x(a(re), {
|
|
4957
4956
|
size: "sm",
|
|
4958
4957
|
type: "primary",
|
|
4959
4958
|
onClick: U
|
|
@@ -4973,7 +4972,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
4973
4972
|
live: ""
|
|
4974
4973
|
}, {
|
|
4975
4974
|
actions: b(() => [
|
|
4976
|
-
|
|
4975
|
+
x(a(re), {
|
|
4977
4976
|
size: "sm",
|
|
4978
4977
|
variant: "outline",
|
|
4979
4978
|
onClick: j[1] || (j[1] = (J) => e.editing.dismissEvents())
|
|
@@ -5045,7 +5044,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
5045
5044
|
{ immediate: !0 }
|
|
5046
5045
|
), (w, h) => r.value === null || r.value.length > 0 ? (c(), C("section", Hs, [
|
|
5047
5046
|
D("header", Ks, [
|
|
5048
|
-
|
|
5047
|
+
x(a(yn), {
|
|
5049
5048
|
level: 3,
|
|
5050
5049
|
size: "sm"
|
|
5051
5050
|
}, {
|
|
@@ -5054,7 +5053,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
5054
5053
|
]),
|
|
5055
5054
|
_: 1
|
|
5056
5055
|
}),
|
|
5057
|
-
|
|
5056
|
+
x(a(ne), {
|
|
5058
5057
|
size: "sm",
|
|
5059
5058
|
tone: "muted"
|
|
5060
5059
|
}, {
|
|
@@ -5081,7 +5080,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
5081
5080
|
size: "md",
|
|
5082
5081
|
tone: "default"
|
|
5083
5082
|
}, null, 8, ["value"])) : B("", !0),
|
|
5084
|
-
|
|
5083
|
+
x(a(ne), {
|
|
5085
5084
|
size: "sm",
|
|
5086
5085
|
tone: "muted"
|
|
5087
5086
|
}, {
|
|
@@ -5101,7 +5100,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
5101
5100
|
_: 2
|
|
5102
5101
|
}, 1024)) : B("", !0)
|
|
5103
5102
|
]),
|
|
5104
|
-
|
|
5103
|
+
x(a(Ke), {
|
|
5105
5104
|
type: W.kind === "overwritten" ? "warning" : "default",
|
|
5106
5105
|
dot: ""
|
|
5107
5106
|
}, {
|
|
@@ -5160,7 +5159,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
5160
5159
|
variant: "soft",
|
|
5161
5160
|
description: u.value
|
|
5162
5161
|
}, null, 8, ["description"])) : s.value ? (c(), C("p", Xs, [
|
|
5163
|
-
|
|
5162
|
+
x(a(ne), {
|
|
5164
5163
|
size: "sm",
|
|
5165
5164
|
tone: "muted"
|
|
5166
5165
|
}, {
|
|
@@ -5169,7 +5168,7 @@ const pi = 76, gi = /* @__PURE__ */ X({
|
|
|
5169
5168
|
]),
|
|
5170
5169
|
_: 1
|
|
5171
5170
|
}),
|
|
5172
|
-
|
|
5171
|
+
x(Fe, {
|
|
5173
5172
|
value: l.value?.at
|
|
5174
5173
|
}, null, 8, ["value"]),
|
|
5175
5174
|
r.value ? (c(), N(a(ne), {
|