@webx-ui/module-blog 0.2.1 → 0.2.2

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/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { provide as ct, inject as vt, defineComponent as ee, computed as v, openBlock as p, createElementBlock as G, createVNode as n, unref as e, withCtx as l, createBlock as z, createTextVNode as w, toDisplayString as b, createCommentVNode as H, useModel as qe, mergeModels as Me, ref as C, watch as ue, onMounted as Ne, onBeforeUnmount as Je, Fragment as ve, createElementVNode as j, renderList as Be, normalizeClass as Pe, useTemplateRef as De, nextTick as Ze, isRef as Ie, withKeys as ze, resolveDynamicComponent as tt, mergeProps as pt, useId as ft, withModifiers as at } from "vue";
2
- import { useAdmin as ne, useTranslate as Q, useDates as mt, useErrorText as ge, WxScreenHead as bt, WxScreen as gt, WxDate as je, rowMenuWidth as st, WxListScreen as Qe, WxRowMenu as Re, WxFilterChips as ht } from "@webx-ui/module-admin";
3
- import { useLocales as Xe, WxFormItem as ie, WxText as J, WxAlert as We, WxSelect as _e, localizedValue as yt, confirm as be, WxSkeleton as Ue, WxBadge as oe, WxBreadcrumb as wt, WxBreadcrumbItem as lt, WxButton as Z, WxActionBar as rt, toast as L, WxEmpty as Ge, WxSortableList as Ye, WxAction as Oe, useModal as Ee, WxDialog as Fe, WxInput as Ae, WxSpace as Le, useElementWidth as _t, createModal as Ce, WxTable as ot, WxEntityCard as xt, WxIcon as we, WxTooltip as et, WxHeading as kt, WxTextarea as $t, WxSwitch as Tt, WxCard as Vt, WxListDetail as At, WxCheckbox as St } from "@webx-ui/core";
4
- import { useRoute as He, useRouter as Ke, onBeforeRouteLeave as Wt } from "vue-router";
5
- import { provideBlocksPreview as Ct } from "@webx-ui/module-blocks";
1
+ import { provide as ct, inject as vt, defineComponent as ee, computed as v, openBlock as p, createElementBlock as Z, createVNode as n, unref as e, withCtx as l, createBlock as C, createTextVNode as w, toDisplayString as b, createCommentVNode as H, useModel as qe, mergeModels as Me, ref as z, watch as ue, onMounted as Ne, onBeforeUnmount as Je, Fragment as be, createElementVNode as j, renderList as Be, normalizeClass as Pe, useTemplateRef as De, nextTick as Ze, isRef as Ie, withKeys as ze, resolveDynamicComponent as tt, mergeProps as pt, useId as ft, withModifiers as at } from "vue";
2
+ import { useAdmin as ne, useTranslate as Q, useDates as mt, useErrorText as ge, WxScreenHead as bt, WxScreen as gt, WxSaveState as ht, WxDate as je, rowMenuWidth as st, WxListScreen as Qe, WxRowMenu as Re, WxFilterChips as yt } from "@webx-ui/module-admin";
3
+ import { useLocales as Xe, WxFormItem as ie, WxText as G, WxAlert as We, WxSelect as _e, localizedValue as wt, confirm as me, WxSkeleton as Ue, WxBadge as oe, WxBreadcrumb as _t, WxBreadcrumbItem as lt, WxButton as J, WxActionBar as rt, toast as L, WxEmpty as Ge, WxSortableList as Ye, WxAction as Oe, useModal as Ee, WxDialog as Fe, WxInput as Ae, WxSpace as Le, useElementWidth as xt, createModal as Ce, WxTable as ot, WxEntityCard as kt, WxIcon as we, WxTooltip as et, WxHeading as $t, WxTextarea as Tt, WxSwitch as Vt, WxCard as At, WxListDetail as St, WxCheckbox as Wt } from "@webx-ui/core";
4
+ import { useRoute as He, useRouter as Ke, onBeforeRouteLeave as Ct } from "vue-router";
5
+ import { provideBlocksPreview as zt } from "@webx-ui/module-blocks";
6
6
  const ut = /* @__PURE__ */ Symbol("wx-article-editor");
7
- function zt(f) {
7
+ function Rt(f) {
8
8
  ct(ut, f);
9
9
  }
10
10
  function Se() {
11
11
  return vt(ut, null);
12
12
  }
13
- const Rt = {
13
+ const Ut = {
14
14
  module: {
15
15
  group: "Blog",
16
16
  articles: "Articles",
@@ -76,9 +76,6 @@ const Rt = {
76
76
  article: {
77
77
  trail: "Where this article sits",
78
78
  untitled: "Untitled",
79
- "state-saved": "Saved",
80
- "state-saving": "Saving…",
81
- "state-unsaved": "Not saved yet",
82
79
  save: "Save draft",
83
80
  "save-failed": "The article was not saved.",
84
81
  schedule: "Schedule",
@@ -232,11 +229,11 @@ const Rt = {
232
229
  function te() {
233
230
  try {
234
231
  const { i18n: f } = ne();
235
- it.has(f) || (f.defaults("webx-blog", Rt), it.add(f));
232
+ it.has(f) || (f.defaults("webx-blog", Ut), it.add(f));
236
233
  } catch {
237
234
  }
238
235
  }
239
- const Ut = { class: "wx-article-address" }, qt = /* @__PURE__ */ ee({
236
+ const qt = { class: "wx-article-address" }, Mt = /* @__PURE__ */ ee({
240
237
  name: "WxArticleAddress",
241
238
  __name: "ArticleAddress",
242
239
  setup(f) {
@@ -249,12 +246,12 @@ const Ut = { class: "wx-article-address" }, qt = /* @__PURE__ */ ee({
249
246
  const s = m?.article.value?.path;
250
247
  return typeof s == "string" && a.value !== null && a.value !== `/${s}`;
251
248
  });
252
- return (s, i) => (p(), G("div", Ut, [
249
+ return (s, i) => (p(), Z("div", qt, [
253
250
  n(e(ie), {
254
251
  label: e(y)("article.address")
255
252
  }, {
256
253
  default: l(() => [
257
- a.value ? (p(), z(e(J), {
254
+ a.value ? (p(), C(e(G), {
258
255
  key: 0,
259
256
  mono: "",
260
257
  class: "wx-article-address__value"
@@ -263,7 +260,7 @@ const Ut = { class: "wx-article-address" }, qt = /* @__PURE__ */ ee({
263
260
  w(b(a.value), 1)
264
261
  ]),
265
262
  _: 1
266
- })) : (p(), z(e(J), {
263
+ })) : (p(), C(e(G), {
267
264
  key: 1,
268
265
  size: "sm",
269
266
  tone: "muted"
@@ -276,7 +273,7 @@ const Ut = { class: "wx-article-address" }, qt = /* @__PURE__ */ ee({
276
273
  ]),
277
274
  _: 1
278
275
  }, 8, ["label"]),
279
- t.value ? (p(), z(e(We), {
276
+ t.value ? (p(), C(e(We), {
280
277
  key: 0,
281
278
  type: "info",
282
279
  variant: "soft",
@@ -284,12 +281,12 @@ const Ut = { class: "wx-article-address" }, qt = /* @__PURE__ */ ee({
284
281
  }, null, 8, ["description"])) : H("", !0)
285
282
  ]));
286
283
  }
287
- }), pe = (f, m) => {
284
+ }), ve = (f, m) => {
288
285
  const r = f.__vccOpts || f;
289
286
  for (const [y, u] of m)
290
287
  r[y] = u;
291
288
  return r;
292
- }, Mt = /* @__PURE__ */ pe(qt, [["__scopeId", "data-v-2ee0dcfe"]]), Nt = /* @__PURE__ */ ee({
289
+ }, Nt = /* @__PURE__ */ ve(Mt, [["__scopeId", "data-v-2ee0dcfe"]]), Bt = /* @__PURE__ */ ee({
293
290
  name: "WxArticleAuthor",
294
291
  __name: "ArticleAuthor",
295
292
  props: /* @__PURE__ */ Me({
@@ -313,7 +310,7 @@ const Ut = { class: "wx-article-address" }, qt = /* @__PURE__ */ ee({
313
310
  r.value = typeof i == "number" ? i : null;
314
311
  }
315
312
  });
316
- return (i, x) => (p(), z(e(_e), {
313
+ return (i, x) => (p(), C(e(_e), {
317
314
  modelValue: s.value,
318
315
  "onUpdate:modelValue": x[0] || (x[0] = (T) => s.value = T),
319
316
  options: t.value,
@@ -371,7 +368,7 @@ function de(f) {
371
368
  mergeTags: (a, t, s) => f.http.post(`${y}/merge`, { ids: a, keep: t, redirect: s }).then(u)
372
369
  };
373
370
  }
374
- const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__ */ ee({
371
+ const Pt = { class: "wx-article-editor__screen" }, Dt = 1200, It = /* @__PURE__ */ ee({
375
372
  __name: "ArticleEditorPage",
376
373
  props: {
377
374
  base: { default: "/blog" }
@@ -379,9 +376,9 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
379
376
  setup(f) {
380
377
  const m = f, r = ne(), y = de(r), u = He(), a = Ke(), t = Xe(), s = mt();
381
378
  te();
382
- const i = Q("webx-blog"), x = ge(), T = v(() => Number(u.params.id)), c = v(() => `${m.base}/articles`), o = C(null), _ = C({}), W = C(""), S = C(""), E = C(null), F = C({ rubrics: [], authors: [] }), $ = C([]), U = C(!0), R = C(!1), M = C(!1), A = C({}), I = C(null), K = C(""), P = C(0), q = v(() => r.can("blog.articles.manage")), k = v(() => !q.value || M.value), le = v(() => JSON.stringify(_.value)), O = v(() => K.value !== "" && le.value !== K.value), se = v(() => R.value ? "saving" : O.value ? "unsaved" : "saved"), xe = v(() => {
379
+ const i = Q("webx-blog"), x = ge(), T = v(() => Number(u.params.id)), c = v(() => `${m.base}/articles`), o = z(null), _ = z({}), W = z(""), S = z(""), E = z(null), F = z({ rubrics: [], authors: [] }), $ = z([]), U = z(!0), R = z(!1), M = z(!1), A = z({}), I = z(null), K = z(""), P = z(0), q = v(() => r.can("blog.articles.manage")), k = v(() => !q.value || M.value), le = v(() => JSON.stringify(_.value)), O = v(() => K.value !== "" && le.value !== K.value), se = v(() => R.value ? "saving" : O.value ? "unsaved" : "saved"), xe = v(() => {
383
380
  const V = _.value.title;
384
- return yt(V, t.active.value, o.value?.title ?? "");
381
+ return wt(V, t.active.value, o.value?.title ?? "");
385
382
  }), ce = v(() => {
386
383
  const V = _.value.published_at;
387
384
  return typeof V == "string" && V !== "" ? V : null;
@@ -401,7 +398,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
401
398
  unpublished: i("article.live-off")
402
399
  }[V.status] ?? "";
403
400
  });
404
- Ct({ url: v(() => E.value), reload: P }), zt({
401
+ zt({ url: v(() => E.value), reload: P }), Rt({
405
402
  article: o,
406
403
  values: _,
407
404
  options: F,
@@ -410,13 +407,13 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
410
407
  base: m.base,
411
408
  canManage: q.value,
412
409
  disabled: k,
413
- reload: () => fe(!0),
410
+ reload: () => pe(!0),
414
411
  save: () => N()
415
412
  });
416
413
  function ke(V) {
417
414
  o.value = V.article, _.value = V.values, W.value = V.revision, S.value = V.prefix, E.value = V.preview_url, F.value = V.options, $.value = V.related, K.value = JSON.stringify(V.values), I.value = null;
418
415
  }
419
- async function fe(V = !1) {
416
+ async function pe(V = !1) {
420
417
  V || (U.value = !0);
421
418
  try {
422
419
  ke(await y.get(T.value));
@@ -427,10 +424,10 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
427
424
  }
428
425
  }
429
426
  let re;
430
- function me() {
427
+ function fe() {
431
428
  !q.value || I.value || !O.value || (clearTimeout(re), re = setTimeout(() => {
432
429
  N();
433
- }, Pt));
430
+ }, Dt));
434
431
  }
435
432
  function g() {
436
433
  !q.value || I.value || !O.value || R.value || (clearTimeout(re), N());
@@ -451,20 +448,20 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
451
448
  }
452
449
  }
453
450
  async function B() {
454
- await be({
451
+ await me({
455
452
  title: i("article.conflict-theirs-title"),
456
453
  message: i("article.conflict-theirs-text"),
457
454
  confirmText: i("article.conflict-theirs"),
458
455
  cancelText: i("panel.cancel"),
459
456
  tone: "danger"
460
- }) && await fe(!0);
457
+ }) && await pe(!0);
461
458
  }
462
459
  async function X() {
463
460
  const V = I.value;
464
461
  V && (W.value = V.data.revision, I.value = null, await N());
465
462
  }
466
463
  async function ye() {
467
- if (!(!o.value || !await be({
464
+ if (!(!o.value || !await me({
468
465
  title: i("article.discard-title"),
469
466
  message: i("article.discard-text"),
470
467
  confirmText: i("article.discard"),
@@ -485,7 +482,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
485
482
  const V = o.value;
486
483
  if (!V) return;
487
484
  const Y = V.path === null ? null : `/${V.path}`, ae = ce.value === null ? i("article.publish-now") : s.short(ce.value);
488
- if (await be({
485
+ if (await me({
489
486
  title: i("article.publish-title", { title: V.title }),
490
487
  message: he.value ? i("article.publish-later", { date: ae }) : Y === null ? i("article.publish-nowhere") : i("article.publish-text", { address: Y }),
491
488
  confirmText: he.value ? i("article.schedule") : i("panel.publish"),
@@ -493,7 +490,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
493
490
  }) && (O.value && await N(), !I.value)) {
494
491
  M.value = !0;
495
492
  try {
496
- await y.publish(V.id, ce.value), await fe(!0), L.success(he.value ? i("article.scheduled") : i("panel.published"));
493
+ await y.publish(V.id, ce.value), await pe(!0), L.success(he.value ? i("article.scheduled") : i("panel.published"));
497
494
  } catch (dt) {
498
495
  L.danger(x(dt));
499
496
  } finally {
@@ -508,13 +505,13 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
508
505
  function h(V) {
509
506
  O.value && V.preventDefault();
510
507
  }
511
- ue(le, me), ue(T, () => {
512
- fe();
508
+ ue(le, fe), ue(T, () => {
509
+ pe();
513
510
  }), Ne(() => {
514
- fe(), window.addEventListener("beforeunload", h);
511
+ pe(), window.addEventListener("beforeunload", h);
515
512
  }), Je(() => {
516
513
  clearTimeout(re), window.removeEventListener("beforeunload", h);
517
- }), Wt(async () => !O.value || !q.value || (await N(), !O.value) ? !0 : await be({
514
+ }), Ct(async () => !O.value || !q.value || (await N(), !O.value) ? !0 : await me({
518
515
  title: i("article.leave-title"),
519
516
  message: i("article.leave-text"),
520
517
  confirmText: i("article.leave"),
@@ -530,18 +527,18 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
530
527
  href: o.value.url
531
528
  }), V;
532
529
  });
533
- return (V, Y) => (p(), G("div", {
530
+ return (V, Y) => (p(), Z("div", {
534
531
  class: "wx-article-editor",
535
532
  onFocusout: g
536
533
  }, [
537
- U.value || !o.value ? (p(), G(ve, { key: 0 }, [
534
+ U.value || !o.value ? (p(), Z(be, { key: 0 }, [
538
535
  n(e(Ue), {
539
536
  class: "wx-article-editor__ghost",
540
537
  title: "",
541
538
  rows: 1
542
539
  }),
543
540
  n(e(Ue), { rows: 8 })
544
- ], 64)) : (p(), G(ve, { key: 1 }, [
541
+ ], 64)) : (p(), Z(be, { key: 1 }, [
545
542
  n(e(bt), {
546
543
  divider: "",
547
544
  back: c.value,
@@ -550,7 +547,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
550
547
  actions: $e.value
551
548
  }, {
552
549
  trail: l(() => [
553
- n(e(wt), {
550
+ n(e(_t), {
554
551
  size: "sm",
555
552
  label: e(i)("article.trail")
556
553
  }, {
@@ -587,14 +584,14 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
587
584
  ]),
588
585
  _: 1
589
586
  }, 8, ["back", "back-label", "title", "actions"]),
590
- I.value ? (p(), z(e(We), {
587
+ I.value ? (p(), C(e(We), {
591
588
  key: 0,
592
589
  type: "warning",
593
590
  title: e(i)("article.conflict-title"),
594
591
  description: I.value.message
595
592
  }, {
596
593
  actions: l(() => [
597
- n(e(Z), {
594
+ n(e(J), {
598
595
  size: "sm",
599
596
  variant: "outline",
600
597
  onClick: B
@@ -604,7 +601,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
604
601
  ]),
605
602
  _: 1
606
603
  }),
607
- n(e(Z), {
604
+ n(e(J), {
608
605
  size: "sm",
609
606
  type: "primary",
610
607
  onClick: X
@@ -617,7 +614,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
617
614
  ]),
618
615
  _: 1
619
616
  }, 8, ["title", "description"])) : H("", !0),
620
- j("div", Bt, [
617
+ j("div", Pt, [
621
618
  n(e(gt), {
622
619
  modelValue: _.value,
623
620
  "onUpdate:modelValue": Y[0] || (Y[0] = (ae) => _.value = ae),
@@ -626,23 +623,22 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
626
623
  disabled: k.value
627
624
  }, null, 8, ["modelValue", "errors", "disabled"])
628
625
  ]),
629
- q.value ? (p(), z(e(rt), { key: 1 }, {
626
+ q.value ? (p(), C(e(rt), { key: 1 }, {
630
627
  state: l(() => [
631
- n(e(J), {
628
+ n(e(ht), { state: se.value }, null, 8, ["state"]),
629
+ Te.value ? (p(), C(e(G), {
630
+ key: 0,
632
631
  size: "sm",
633
632
  tone: "muted"
634
633
  }, {
635
634
  default: l(() => [
636
- w(b(e(i)(`article.state-${se.value}`)), 1),
637
- Te.value ? (p(), G(ve, { key: 0 }, [
638
- w(" · " + b(Te.value), 1)
639
- ], 64)) : H("", !0)
635
+ w(b(Te.value), 1)
640
636
  ]),
641
637
  _: 1
642
- })
638
+ })) : H("", !0)
643
639
  ]),
644
640
  default: l(() => [
645
- o.value.status === "modified" ? (p(), z(e(Z), {
641
+ o.value.status === "modified" ? (p(), C(e(J), {
646
642
  key: 0,
647
643
  variant: "text",
648
644
  loading: M.value,
@@ -653,7 +649,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
653
649
  ]),
654
650
  _: 1
655
651
  }, 8, ["loading"])) : H("", !0),
656
- n(e(Z), {
652
+ n(e(J), {
657
653
  variant: "outline",
658
654
  loading: R.value,
659
655
  disabled: !O.value,
@@ -664,7 +660,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
664
660
  ]),
665
661
  _: 1
666
662
  }, 8, ["loading", "disabled"]),
667
- n(e(Z), {
663
+ n(e(J), {
668
664
  type: "primary",
669
665
  loading: M.value,
670
666
  disabled: o.value.status === "published" && !O.value,
@@ -681,13 +677,13 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
681
677
  ], 64))
682
678
  ], 32));
683
679
  }
684
- }), It = /* @__PURE__ */ pe(Dt, [["__scopeId", "data-v-41431c5d"]]), Ot = { class: "wx-article-history" }, Et = { class: "wx-article-history__number" }, Ft = { class: "wx-article-history__who" }, Lt = /* @__PURE__ */ ee({
680
+ }), Ot = /* @__PURE__ */ ve(It, [["__scopeId", "data-v-45a48838"]]), Et = { class: "wx-article-history" }, Ft = { class: "wx-article-history__number" }, Lt = { class: "wx-article-history__who" }, Ht = /* @__PURE__ */ ee({
685
681
  name: "WxArticleHistory",
686
682
  __name: "ArticleHistory",
687
683
  setup(f) {
688
684
  const m = ne(), r = de(m), y = Se();
689
685
  te();
690
- const u = Q("webx-blog"), a = ge(), t = C(null), s = C(!1), i = v(() => y?.article.value ?? null), x = v(() => m.can("blog.articles.manage")), T = v(
686
+ const u = Q("webx-blog"), a = ge(), t = z(null), s = z(!1), i = v(() => y?.article.value ?? null), x = v(() => m.can("blog.articles.manage")), T = v(
691
687
  () => i.value?.status === "published" || i.value?.status === "modified" ? t.value?.[0]?.number ?? null : null
692
688
  );
693
689
  async function c() {
@@ -701,7 +697,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
701
697
  }
702
698
  async function o(_) {
703
699
  const W = i.value;
704
- if (!(!W || !await be({
700
+ if (!(!W || !await me({
705
701
  title: u("article.restore-title", { number: _.number }),
706
702
  message: u("article.restore-text"),
707
703
  confirmText: u("article.restore-version"),
@@ -723,40 +719,40 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
723
719
  c();
724
720
  },
725
721
  { immediate: !0 }
726
- ), (_, W) => (p(), G("div", Ot, [
727
- t.value === null ? (p(), z(e(Ue), {
722
+ ), (_, W) => (p(), Z("div", Et, [
723
+ t.value === null ? (p(), C(e(Ue), {
728
724
  key: 0,
729
725
  class: "wx-article-history__ghost",
730
726
  rows: 3
731
- })) : t.value.length === 0 ? (p(), z(e(Ge), {
727
+ })) : t.value.length === 0 ? (p(), C(e(Ge), {
732
728
  key: 1,
733
729
  description: e(u)("article.history-empty")
734
- }, null, 8, ["description"])) : (p(!0), G(ve, { key: 2 }, Be(t.value, (S) => (p(), G("div", {
730
+ }, null, 8, ["description"])) : (p(!0), Z(be, { key: 2 }, Be(t.value, (S) => (p(), Z("div", {
735
731
  key: S.number,
736
732
  class: Pe(["wx-article-history__row", { "is-live": S.number === T.value }])
737
733
  }, [
738
- j("code", Et, b(e(u)("article.version", { number: S.number })), 1),
739
- j("div", Ft, [
740
- S.created_at ? (p(), z(e(je), {
734
+ j("code", Ft, b(e(u)("article.version", { number: S.number })), 1),
735
+ j("div", Lt, [
736
+ S.created_at ? (p(), C(e(je), {
741
737
  key: 0,
742
738
  value: S.created_at,
743
739
  size: "md",
744
740
  tone: "default"
745
741
  }, null, 8, ["value"])) : H("", !0),
746
- n(e(J), {
742
+ n(e(G), {
747
743
  size: "sm",
748
744
  tone: "muted"
749
745
  }, {
750
746
  default: l(() => [
751
747
  w(b(S.author ?? e(u)(`article.source-${S.source}`)) + " ", 1),
752
- S.comment ? (p(), G(ve, { key: 0 }, [
748
+ S.comment ? (p(), Z(be, { key: 0 }, [
753
749
  w(" · " + b(S.comment), 1)
754
750
  ], 64)) : H("", !0)
755
751
  ]),
756
752
  _: 2
757
753
  }, 1024)
758
754
  ]),
759
- S.number === T.value ? (p(), z(e(oe), {
755
+ S.number === T.value ? (p(), C(e(oe), {
760
756
  key: 0,
761
757
  type: "success",
762
758
  dot: ""
@@ -766,7 +762,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
766
762
  ]),
767
763
  _: 1
768
764
  })) : H("", !0),
769
- x.value && S.number !== T.value ? (p(), z(e(Z), {
765
+ x.value && S.number !== T.value ? (p(), C(e(J), {
770
766
  key: 1,
771
767
  size: "sm",
772
768
  variant: "outline",
@@ -781,7 +777,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
781
777
  ], 2))), 128))
782
778
  ]));
783
779
  }
784
- }), Ht = /* @__PURE__ */ pe(Lt, [["__scopeId", "data-v-0a997938"]]), Kt = { class: "wx-article-related" }, jt = { class: "wx-article-related__name" }, Gt = 250, Jt = 10, Zt = /* @__PURE__ */ ee({
780
+ }), Kt = /* @__PURE__ */ ve(Ht, [["__scopeId", "data-v-0a997938"]]), jt = { class: "wx-article-related" }, Gt = { class: "wx-article-related__name" }, Jt = 250, Zt = 10, Qt = /* @__PURE__ */ ee({
785
781
  name: "WxArticleRelated",
786
782
  __name: "ArticleRelated",
787
783
  props: /* @__PURE__ */ Me({
@@ -794,7 +790,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
794
790
  setup(f) {
795
791
  const m = f, r = qe(f, "modelValue"), y = ne(), u = de(y), a = Se();
796
792
  te();
797
- const t = Q("webx-blog"), s = ge(), i = v(() => m.disabled || a?.disabled.value === !0), x = C(/* @__PURE__ */ new Map()), T = C([]);
793
+ const t = Q("webx-blog"), s = ge(), i = v(() => m.disabled || a?.disabled.value === !0), x = z(/* @__PURE__ */ new Map()), T = z([]);
798
794
  let c;
799
795
  ue(
800
796
  () => a?.related.value,
@@ -816,7 +812,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
816
812
  async function W($) {
817
813
  const U = a?.article.value?.id;
818
814
  try {
819
- const R = await u.articles({ q: $, per_page: Jt });
815
+ const R = await u.articles({ q: $, per_page: Zt });
820
816
  T.value = R.data.filter((A) => A.id !== U).map((A) => ({ id: A.id, title: A.title }));
821
817
  const M = new Map(x.value);
822
818
  for (const A of T.value) M.set(A.id, A.title);
@@ -828,7 +824,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
828
824
  function S($) {
829
825
  clearTimeout(c), c = setTimeout(() => {
830
826
  W($);
831
- }, Gt);
827
+ }, Jt);
832
828
  }
833
829
  function E($) {
834
830
  typeof $ != "number" || r.value.includes($) || (r.value = [...r.value, $]);
@@ -842,7 +838,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
842
838
  W("");
843
839
  },
844
840
  { immediate: !0 }
845
- ), Je(() => clearTimeout(c)), ($, U) => (p(), G("div", Kt, [
841
+ ), Je(() => clearTimeout(c)), ($, U) => (p(), Z("div", jt, [
846
842
  n(e(Ye), {
847
843
  modelValue: o.value,
848
844
  "onUpdate:modelValue": U[0] || (U[0] = (R) => o.value = R),
@@ -855,7 +851,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
855
851
  "aria-label": e(t)("article.related")
856
852
  }, {
857
853
  default: l(({ item: R }) => [
858
- j("span", jt, b(R.title), 1)
854
+ j("span", Gt, b(R.title), 1)
859
855
  ]),
860
856
  actions: l(({ item: R }) => [
861
857
  n(e(Oe), {
@@ -882,7 +878,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
882
878
  }, null, 8, ["options", "placeholder", "empty-text", "disabled", "aria-label"])
883
879
  ]));
884
880
  }
885
- }), Qt = /* @__PURE__ */ pe(Zt, [["__scopeId", "data-v-164e86fe"]]), Xt = { class: "wx-article-rubrics" }, Yt = { class: "wx-article-rubrics__name" }, ea = /* @__PURE__ */ ee({
881
+ }), Xt = /* @__PURE__ */ ve(Qt, [["__scopeId", "data-v-164e86fe"]]), Yt = { class: "wx-article-rubrics" }, ea = { class: "wx-article-rubrics__name" }, ta = /* @__PURE__ */ ee({
886
882
  name: "WxArticleRubrics",
887
883
  __name: "ArticleRubrics",
888
884
  props: /* @__PURE__ */ Me({
@@ -913,7 +909,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
913
909
  function T(c) {
914
910
  r.value = r.value.filter((o) => o !== c);
915
911
  }
916
- return (c, o) => (p(), G("div", Xt, [
912
+ return (c, o) => (p(), Z("div", Yt, [
917
913
  n(e(Ye), {
918
914
  modelValue: s.value,
919
915
  "onUpdate:modelValue": o[0] || (o[0] = (_) => s.value = _),
@@ -926,8 +922,8 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
926
922
  "aria-label": e(u)("article.rubrics")
927
923
  }, {
928
924
  default: l(({ item: _, index: W }) => [
929
- j("span", Yt, b(_.title), 1),
930
- W === 0 ? (p(), z(e(oe), {
925
+ j("span", ea, b(_.title), 1),
926
+ W === 0 ? (p(), C(e(oe), {
931
927
  key: 0,
932
928
  type: "primary"
933
929
  }, {
@@ -961,10 +957,10 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
961
957
  }, null, 8, ["options", "placeholder", "disabled", "empty-text", "aria-label"])
962
958
  ]));
963
959
  }
964
- }), ta = /* @__PURE__ */ pe(ea, [["__scopeId", "data-v-db8c5bc8"]]), aa = { class: "wx-article-tags" }, la = {
960
+ }), aa = /* @__PURE__ */ ve(ta, [["__scopeId", "data-v-db8c5bc8"]]), la = { class: "wx-article-tags" }, ia = {
965
961
  key: 0,
966
962
  class: "wx-article-tags__chips"
967
- }, ia = { class: "wx-article-tags__pick" }, na = 250, sa = /* @__PURE__ */ ee({
963
+ }, na = { class: "wx-article-tags__pick" }, sa = 250, ra = /* @__PURE__ */ ee({
968
964
  name: "WxArticleTags",
969
965
  __name: "ArticleTags",
970
966
  props: /* @__PURE__ */ Me({
@@ -977,7 +973,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
977
973
  setup(f) {
978
974
  const m = f, r = qe(f, "modelValue"), y = ne(), u = de(y), a = Se();
979
975
  te();
980
- const t = Q("webx-blog"), s = ge(), i = v(() => m.disabled || a?.disabled.value === !0), x = C(/* @__PURE__ */ new Map()), T = C([]), c = C(""), o = C(!1);
976
+ const t = Q("webx-blog"), s = ge(), i = v(() => m.disabled || a?.disabled.value === !0), x = z(/* @__PURE__ */ new Map()), T = z([]), c = z(""), o = z(!1);
981
977
  let _;
982
978
  ue(
983
979
  () => a?.article.value?.tags,
@@ -1016,7 +1012,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1016
1012
  function $(A) {
1017
1013
  c.value = A, clearTimeout(_), _ = setTimeout(() => {
1018
1014
  F();
1019
- }, na);
1015
+ }, sa);
1020
1016
  }
1021
1017
  function U(A) {
1022
1018
  typeof A != "number" || r.value.includes(A) || (r.value = [...r.value, A], c.value = "");
@@ -1044,9 +1040,9 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1044
1040
  F();
1045
1041
  },
1046
1042
  { immediate: !0 }
1047
- ), Je(() => clearTimeout(_)), (A, I) => (p(), G("div", aa, [
1048
- W.value.length > 0 ? (p(), G("div", la, [
1049
- (p(!0), G(ve, null, Be(W.value, (K) => (p(), z(e(oe), {
1043
+ ), Je(() => clearTimeout(_)), (A, I) => (p(), Z("div", la, [
1044
+ W.value.length > 0 ? (p(), Z("div", ia, [
1045
+ (p(!0), Z(be, null, Be(W.value, (K) => (p(), C(e(oe), {
1050
1046
  key: K.id,
1051
1047
  type: "default",
1052
1048
  class: "wx-article-tags__chip"
@@ -1064,7 +1060,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1064
1060
  ]),
1065
1061
  _: 2
1066
1062
  }, 1024))), 128))
1067
- ])) : (p(), z(e(J), {
1063
+ ])) : (p(), C(e(G), {
1068
1064
  key: 1,
1069
1065
  size: "sm",
1070
1066
  tone: "muted"
@@ -1074,7 +1070,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1074
1070
  ]),
1075
1071
  _: 1
1076
1072
  })),
1077
- j("div", ia, [
1073
+ j("div", na, [
1078
1074
  n(e(_e), {
1079
1075
  "model-value": null,
1080
1076
  options: S.value,
@@ -1087,7 +1083,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1087
1083
  onSearch: $,
1088
1084
  "onUpdate:modelValue": U
1089
1085
  }, null, 8, ["options", "placeholder", "empty-text", "disabled", "aria-label"]),
1090
- E.value ? (p(), z(e(Z), {
1086
+ E.value ? (p(), C(e(J), {
1091
1087
  key: 0,
1092
1088
  variant: "outline",
1093
1089
  icon: "plus",
@@ -1103,12 +1099,12 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1103
1099
  ])
1104
1100
  ]));
1105
1101
  }
1106
- }), ra = /* @__PURE__ */ pe(sa, [["__scopeId", "data-v-ce095e37"]]), oa = /* @__PURE__ */ ee({
1102
+ }), oa = /* @__PURE__ */ ve(ra, [["__scopeId", "data-v-ce095e37"]]), ua = /* @__PURE__ */ ee({
1107
1103
  __name: "ArticleCreateDialog",
1108
1104
  setup(f) {
1109
1105
  const { open: m, resolve: r, dismiss: y } = Ee(), u = ne(), a = de(u);
1110
1106
  te();
1111
- const t = Q("webx-blog"), s = C(""), i = C(!1), x = C({}), T = De("field");
1107
+ const t = Q("webx-blog"), s = z(""), i = z(!1), x = z({}), T = De("field");
1112
1108
  Ne(async () => {
1113
1109
  await Ze(), T.value?.querySelector("input")?.focus();
1114
1110
  });
@@ -1124,7 +1120,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1124
1120
  }
1125
1121
  }
1126
1122
  }
1127
- return (o, _) => (p(), z(e(Fe), {
1123
+ return (o, _) => (p(), C(e(Fe), {
1128
1124
  open: e(m),
1129
1125
  "onUpdate:open": _[2] || (_[2] = (W) => Ie(m) ? m.value = W : null),
1130
1126
  title: e(t)("panel.new-title"),
@@ -1133,7 +1129,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1133
1129
  footer: l(() => [
1134
1130
  n(e(Le), { size: "sm" }, {
1135
1131
  default: l(() => [
1136
- n(e(Z), {
1132
+ n(e(J), {
1137
1133
  variant: "outline",
1138
1134
  onClick: _[1] || (_[1] = (W) => e(y)())
1139
1135
  }, {
@@ -1142,7 +1138,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1142
1138
  ]),
1143
1139
  _: 1
1144
1140
  }),
1145
- n(e(Z), {
1141
+ n(e(J), {
1146
1142
  type: "primary",
1147
1143
  loading: i.value,
1148
1144
  disabled: s.value.trim() === "",
@@ -1182,7 +1178,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1182
1178
  _: 1
1183
1179
  }, 8, ["open", "title"]));
1184
1180
  }
1185
- }), ua = ["src"], da = { class: "wx-articles__name" }, ca = { class: "wx-articles__name-text" }, va = { class: "wx-articles__title" }, pa = { class: "wx-articles__address" }, fa = { class: "wx-articles__chips" }, ma = { class: "wx-articles__state" }, nt = 640, ba = /* @__PURE__ */ ee({
1181
+ }), da = ["src"], ca = { class: "wx-articles__name" }, va = { class: "wx-articles__name-text" }, pa = { class: "wx-articles__title" }, fa = { class: "wx-articles__address" }, ma = { class: "wx-articles__chips" }, ba = { class: "wx-articles__state" }, nt = 640, ga = /* @__PURE__ */ ee({
1186
1182
  __name: "ArticlesPage",
1187
1183
  props: {
1188
1184
  base: { default: "/blog" }
@@ -1190,7 +1186,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1190
1186
  setup(f) {
1191
1187
  const m = f, r = ne(), y = de(r), u = He(), a = Ke();
1192
1188
  te();
1193
- const t = Q("webx-blog"), s = Q("webx-admin"), i = ge(), x = De("root"), T = _t(x), c = C(null), o = C(!0), _ = Ce(oa), W = v(() => r.can("blog.articles.manage")), S = v(
1189
+ const t = Q("webx-blog"), s = Q("webx-admin"), i = ge(), x = De("root"), T = xt(x), c = z(null), o = z(!0), _ = Ce(ua), W = v(() => r.can("blog.articles.manage")), S = v(
1194
1190
  () => r.state.manifest?.modules.find((d) => d.id === "articles")?.title ?? t("module.articles")
1195
1191
  ), E = v({
1196
1192
  get: () => typeof u.query.view == "string" ? u.query.view : "",
@@ -1374,35 +1370,35 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1374
1370
  label: t("panel.delete"),
1375
1371
  danger: !0,
1376
1372
  run: () => {
1377
- fe(d);
1373
+ pe(d);
1378
1374
  }
1379
1375
  }), D;
1380
1376
  }
1381
1377
  async function he(d) {
1382
- await me(() => y.publish(d.id), t("panel.published"));
1378
+ await fe(() => y.publish(d.id), t("panel.published"));
1383
1379
  }
1384
1380
  async function Te(d) {
1385
- await me(() => y.unpublish(d.id), t("panel.unpublished-done"));
1381
+ await fe(() => y.unpublish(d.id), t("panel.unpublished-done"));
1386
1382
  }
1387
1383
  async function ke(d, D) {
1388
- await me(
1384
+ await fe(
1389
1385
  () => y.save(d.id, { values: { pinned: D }, revision: d.revision }),
1390
1386
  t(D ? "panel.pinned-done" : "panel.unpinned")
1391
1387
  );
1392
1388
  }
1393
- async function fe(d) {
1394
- await be({
1389
+ async function pe(d) {
1390
+ await me({
1395
1391
  title: t("panel.delete-title", { title: d.title }),
1396
1392
  message: t("panel.delete-text"),
1397
1393
  confirmText: t("panel.delete"),
1398
1394
  cancelText: t("panel.cancel"),
1399
1395
  tone: "danger"
1400
- }) && await me(() => y.remove(d.id), t("panel.deleted"));
1396
+ }) && await fe(() => y.remove(d.id), t("panel.deleted"));
1401
1397
  }
1402
1398
  async function re(d) {
1403
- await me(() => y.restore(d.id), t("panel.restored"));
1399
+ await fe(() => y.restore(d.id), t("panel.restored"));
1404
1400
  }
1405
- async function me(d, D) {
1401
+ async function fe(d, D) {
1406
1402
  try {
1407
1403
  await d(), L.success(D);
1408
1404
  } catch (h) {
@@ -1432,7 +1428,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1432
1428
  xe();
1433
1429
  } }] : []
1434
1430
  );
1435
- return (d, D) => (p(), G("div", {
1431
+ return (d, D) => (p(), Z("div", {
1436
1432
  ref_key: "root",
1437
1433
  ref: x,
1438
1434
  class: "wx-articles"
@@ -1511,7 +1507,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1511
1507
  ]),
1512
1508
  _: 1
1513
1509
  }, 8, ["label"]),
1514
- P.value.length > 0 ? (p(), z(e(Z), {
1510
+ P.value.length > 0 ? (p(), C(e(J), {
1515
1511
  key: 0,
1516
1512
  variant: "text",
1517
1513
  size: "sm",
@@ -1528,18 +1524,18 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1528
1524
  })) : H("", !0)
1529
1525
  ]),
1530
1526
  applied: l(() => [
1531
- n(e(ht), { filters: P.value }, null, 8, ["filters"])
1527
+ n(e(yt), { filters: P.value }, null, 8, ["filters"])
1532
1528
  ]),
1533
1529
  "cell-cover": l(({ row: h }) => [
1534
1530
  j("span", {
1535
1531
  class: Pe(["wx-articles__cover", { "is-empty": !h.cover }])
1536
1532
  }, [
1537
- h.cover?.thumb ? (p(), G("img", {
1533
+ h.cover?.thumb ? (p(), Z("img", {
1538
1534
  key: 0,
1539
1535
  src: h.cover.thumb,
1540
1536
  alt: "",
1541
1537
  loading: "lazy"
1542
- }, null, 8, ua)) : (p(), z(e(we), {
1538
+ }, null, 8, da)) : (p(), C(e(we), {
1543
1539
  key: 1,
1544
1540
  name: "image",
1545
1541
  size: "sm"
@@ -1547,8 +1543,8 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1547
1543
  ], 2)
1548
1544
  ]),
1549
1545
  "cell-title": l(({ row: h }) => [
1550
- j("div", da, [
1551
- h.pinned ? (p(), z(e(et), {
1546
+ j("div", ca, [
1547
+ h.pinned ? (p(), C(e(et), {
1552
1548
  key: 0,
1553
1549
  content: e(t)("panel.pinned")
1554
1550
  }, {
@@ -1561,15 +1557,15 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1561
1557
  ]),
1562
1558
  _: 1
1563
1559
  }, 8, ["content"])) : H("", !0),
1564
- j("div", ca, [
1565
- j("span", va, b(h.title), 1),
1566
- j("span", pa, b(B(h)), 1)
1560
+ j("div", va, [
1561
+ j("span", pa, b(h.title), 1),
1562
+ j("span", fa, b(B(h)), 1)
1567
1563
  ])
1568
1564
  ])
1569
1565
  ]),
1570
1566
  "cell-rubrics": l(({ row: h }) => [
1571
- j("span", fa, [
1572
- (p(!0), G(ve, null, Be(h.rubrics, ($e) => (p(), z(e(oe), {
1567
+ j("span", ma, [
1568
+ (p(!0), Z(be, null, Be(h.rubrics, ($e) => (p(), C(e(oe), {
1573
1569
  key: $e.id,
1574
1570
  size: "sm",
1575
1571
  round: ""
@@ -1582,7 +1578,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1582
1578
  ])
1583
1579
  ]),
1584
1580
  "cell-author": l(({ row: h }) => [
1585
- n(e(J), {
1581
+ n(e(G), {
1586
1582
  size: "sm",
1587
1583
  tone: "muted",
1588
1584
  truncate: ""
@@ -1594,11 +1590,11 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1594
1590
  }, 1024)
1595
1591
  ]),
1596
1592
  "cell-date": l(({ row: h }) => [
1597
- X(h) ? (p(), z(e(je), {
1593
+ X(h) ? (p(), C(e(je), {
1598
1594
  key: 0,
1599
1595
  value: X(h),
1600
1596
  compact: ""
1601
- }, null, 8, ["value"])) : (p(), z(e(J), {
1597
+ }, null, 8, ["value"])) : (p(), C(e(G), {
1602
1598
  key: 1,
1603
1599
  size: "sm",
1604
1600
  tone: "muted"
@@ -1610,7 +1606,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1610
1606
  }))
1611
1607
  ]),
1612
1608
  "cell-status": l(({ row: h }) => [
1613
- j("span", ma, [
1609
+ j("span", ba, [
1614
1610
  n(e(oe), {
1615
1611
  type: N(h.status),
1616
1612
  dot: "",
@@ -1621,7 +1617,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1621
1617
  ]),
1622
1618
  _: 2
1623
1619
  }, 1032, ["type"]),
1624
- h.status === "modified" ? (p(), z(e(oe), {
1620
+ h.status === "modified" ? (p(), C(e(oe), {
1625
1621
  key: 0,
1626
1622
  type: "primary",
1627
1623
  size: "sm",
@@ -1635,7 +1631,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1635
1631
  ])
1636
1632
  ]),
1637
1633
  "cell-card": l(({ row: h }) => [
1638
- n(e(xt), {
1634
+ n(e(kt), {
1639
1635
  class: "wx-articles__entity",
1640
1636
  variant: "plain",
1641
1637
  title: h.title,
@@ -1645,7 +1641,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1645
1641
  subtitle: B(h)
1646
1642
  }, {
1647
1643
  title: l(() => [
1648
- h.pinned ? (p(), z(e(we), {
1644
+ h.pinned ? (p(), C(e(we), {
1649
1645
  key: 0,
1650
1646
  class: "wx-articles__pin",
1651
1647
  name: "star",
@@ -1654,7 +1650,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1654
1650
  w(" " + b(h.title), 1)
1655
1651
  ]),
1656
1652
  meta: l(() => [
1657
- h.rubrics[0] ? (p(), z(e(oe), {
1653
+ h.rubrics[0] ? (p(), C(e(oe), {
1658
1654
  key: 0,
1659
1655
  size: "sm",
1660
1656
  round: ""
@@ -1674,7 +1670,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1674
1670
  ]),
1675
1671
  _: 2
1676
1672
  }, 1032, ["type"]),
1677
- X(h) ? (p(), z(e(je), {
1673
+ X(h) ? (p(), C(e(je), {
1678
1674
  key: 1,
1679
1675
  value: X(h)
1680
1676
  }, null, 8, ["value"])) : H("", !0)
@@ -1701,10 +1697,10 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1701
1697
  }, 8, ["view", "title", "views", "actions"])
1702
1698
  ], 512));
1703
1699
  }
1704
- }), ga = /* @__PURE__ */ pe(ba, [["__scopeId", "data-v-2d93df26"]]), ha = { class: "wx-rubric-form__head" }, ya = { class: "wx-rubric-form__body" }, wa = { class: "wx-rubric-form__row" }, _a = { class: "wx-rubric-form__row" }, xa = { class: "wx-rubric-form__side" }, ka = {
1700
+ }), ha = /* @__PURE__ */ ve(ga, [["__scopeId", "data-v-2d93df26"]]), ya = { class: "wx-rubric-form__head" }, wa = { class: "wx-rubric-form__body" }, _a = { class: "wx-rubric-form__row" }, xa = { class: "wx-rubric-form__row" }, ka = { class: "wx-rubric-form__side" }, $a = {
1705
1701
  key: 1,
1706
1702
  class: "wx-rubric-form__seo"
1707
- }, $a = { class: "wx-rubric-form__foot" }, Ta = /* @__PURE__ */ ee({
1703
+ }, Ta = { class: "wx-rubric-form__foot" }, Va = /* @__PURE__ */ ee({
1708
1704
  __name: "RubricForm",
1709
1705
  props: {
1710
1706
  rubric: {},
@@ -1718,7 +1714,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1718
1714
  te();
1719
1715
  const s = Q("webx-blog"), i = ge(), x = v(() => u.types["wx-media"]?.component), T = v(() => u.types["wx-seo"]?.component), c = v(
1720
1716
  () => u.types["wx-seo"]?.bind?.({ id: "seo", type: "wx-seo" }) ?? {}
1721
- ), o = C(E()), _ = C({}), W = C(!1), S = C(!1);
1717
+ ), o = z(E()), _ = z({}), W = z(!1), S = z(!1);
1722
1718
  function E() {
1723
1719
  return {
1724
1720
  title: {},
@@ -1787,7 +1783,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1787
1783
  }
1788
1784
  }
1789
1785
  async function K() {
1790
- if (!(r.rubric === null || !await be({
1786
+ if (!(r.rubric === null || !await me({
1791
1787
  title: s("rubric.delete-title", { name: r.rubric.name }),
1792
1788
  message: s("rubric.delete-text"),
1793
1789
  confirmText: s("rubric.delete"),
@@ -1800,17 +1796,17 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1800
1796
  L.danger(i(q));
1801
1797
  }
1802
1798
  }
1803
- return (P, q) => (p(), G("div", {
1799
+ return (P, q) => (p(), Z("div", {
1804
1800
  class: Pe(["wx-rubric-form", { "is-pane": r.inline }])
1805
1801
  }, [
1806
- j("div", ha, [
1807
- r.inline ? H("", !0) : (p(), z(e(Oe), {
1802
+ j("div", ya, [
1803
+ r.inline ? H("", !0) : (p(), C(e(Oe), {
1808
1804
  key: 0,
1809
1805
  icon: "arrow-left",
1810
1806
  title: e(s)("rubric.back"),
1811
1807
  onClick: q[0] || (q[0] = (k) => y("back"))
1812
1808
  }, null, 8, ["title"])),
1813
- n(e(kt), {
1809
+ n(e($t), {
1814
1810
  level: 3,
1815
1811
  truncate: ""
1816
1812
  }, {
@@ -1819,7 +1815,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1819
1815
  ]),
1820
1816
  _: 1
1821
1817
  }),
1822
- r.rubric ? (p(), z(e(J), {
1818
+ r.rubric ? (p(), C(e(G), {
1823
1819
  key: 1,
1824
1820
  size: "sm",
1825
1821
  tone: "muted"
@@ -1830,7 +1826,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1830
1826
  _: 1
1831
1827
  })) : H("", !0),
1832
1828
  q[10] || (q[10] = j("span", { class: "wx-rubric-form__spacer" }, null, -1)),
1833
- r.rubric && R.value > 0 ? (p(), z(e(Z), {
1829
+ r.rubric && R.value > 0 ? (p(), C(e(J), {
1834
1830
  key: 2,
1835
1831
  variant: "text",
1836
1832
  size: "sm",
@@ -1842,8 +1838,8 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1842
1838
  _: 1
1843
1839
  })) : H("", !0)
1844
1840
  ]),
1845
- j("div", ya, [
1846
- j("div", wa, [
1841
+ j("div", wa, [
1842
+ j("div", _a, [
1847
1843
  n(e(ie), {
1848
1844
  class: "wx-rubric-form__title",
1849
1845
  label: e(s)("rubric.field-title"),
@@ -1877,7 +1873,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1877
1873
  _: 1
1878
1874
  }, 8, ["label", "error", "help"])
1879
1875
  ]),
1880
- U.value ? (p(), z(e(We), {
1876
+ U.value ? (p(), C(e(We), {
1881
1877
  key: 0,
1882
1878
  type: "info",
1883
1879
  variant: "soft",
@@ -1889,7 +1885,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1889
1885
  wide: ""
1890
1886
  }, {
1891
1887
  default: l(() => [
1892
- n(e($t), {
1888
+ n(e(Tt), {
1893
1889
  modelValue: o.value.lead,
1894
1890
  "onUpdate:modelValue": q[4] || (q[4] = (k) => o.value.lead = k),
1895
1891
  localized: "",
@@ -1899,8 +1895,8 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1899
1895
  ]),
1900
1896
  _: 1
1901
1897
  }, 8, ["label", "help"]),
1902
- j("div", _a, [
1903
- x.value ? (p(), z(tt(x.value), {
1898
+ j("div", xa, [
1899
+ x.value ? (p(), C(tt(x.value), {
1904
1900
  key: 0,
1905
1901
  modelValue: o.value.cover,
1906
1902
  "onUpdate:modelValue": q[5] || (q[5] = (k) => o.value.cover = k),
@@ -1911,14 +1907,14 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1911
1907
  aspect: "16/9",
1912
1908
  disabled: r.disabled
1913
1909
  }, null, 8, ["modelValue", "label", "disabled"])) : H("", !0),
1914
- j("div", xa, [
1915
- n(e(Tt), {
1910
+ j("div", ka, [
1911
+ n(e(Vt), {
1916
1912
  modelValue: o.value.is_visible,
1917
1913
  "onUpdate:modelValue": q[6] || (q[6] = (k) => o.value.is_visible = k),
1918
1914
  label: e(s)("rubric.visible"),
1919
1915
  disabled: r.disabled
1920
1916
  }, null, 8, ["modelValue", "label", "disabled"]),
1921
- n(e(J), {
1917
+ n(e(G), {
1922
1918
  size: "sm",
1923
1919
  tone: "muted"
1924
1920
  }, {
@@ -1929,16 +1925,16 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1929
1925
  })
1930
1926
  ])
1931
1927
  ]),
1932
- T.value ? (p(), G("div", ka, [
1933
- S.value ? (p(), z(tt(T.value), pt({
1928
+ T.value ? (p(), Z("div", $a, [
1929
+ S.value ? (p(), C(tt(T.value), pt({
1934
1930
  key: 1,
1935
1931
  modelValue: o.value.seo,
1936
1932
  "onUpdate:modelValue": q[8] || (q[8] = (k) => o.value.seo = k)
1937
1933
  }, c.value, {
1938
1934
  "structured-data": !1,
1939
1935
  disabled: r.disabled
1940
- }), null, 16, ["modelValue", "disabled"])) : (p(), G(ve, { key: 0 }, [
1941
- n(e(J), {
1936
+ }), null, 16, ["modelValue", "disabled"])) : (p(), Z(be, { key: 0 }, [
1937
+ n(e(G), {
1942
1938
  size: "sm",
1943
1939
  weight: "medium"
1944
1940
  }, {
@@ -1947,7 +1943,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1947
1943
  ]),
1948
1944
  _: 1
1949
1945
  }),
1950
- n(e(J), {
1946
+ n(e(G), {
1951
1947
  size: "sm",
1952
1948
  tone: "muted"
1953
1949
  }, {
@@ -1956,7 +1952,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1956
1952
  ]),
1957
1953
  _: 1
1958
1954
  }),
1959
- n(e(Z), {
1955
+ n(e(J), {
1960
1956
  variant: "text",
1961
1957
  size: "sm",
1962
1958
  disabled: r.disabled,
@@ -1970,9 +1966,9 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1970
1966
  ], 64))
1971
1967
  ])) : H("", !0)
1972
1968
  ]),
1973
- j("div", $a, [
1974
- r.rubric ? (p(), G(ve, { key: 0 }, [
1975
- n(e(Z), {
1969
+ j("div", Ta, [
1970
+ r.rubric ? (p(), Z(be, { key: 0 }, [
1971
+ n(e(J), {
1976
1972
  variant: "outline",
1977
1973
  type: "danger",
1978
1974
  disabled: r.disabled || R.value > 0,
@@ -1986,7 +1982,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1986
1982
  ]),
1987
1983
  _: 1
1988
1984
  }, 8, ["disabled"]),
1989
- R.value > 0 ? (p(), z(e(J), {
1985
+ R.value > 0 ? (p(), C(e(G), {
1990
1986
  key: 0,
1991
1987
  size: "sm",
1992
1988
  tone: "muted"
@@ -1998,7 +1994,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
1998
1994
  })) : H("", !0)
1999
1995
  ], 64)) : H("", !0),
2000
1996
  q[11] || (q[11] = j("span", { class: "wx-rubric-form__spacer" }, null, -1)),
2001
- n(e(Z), {
1997
+ n(e(J), {
2002
1998
  variant: "outline",
2003
1999
  onClick: q[9] || (q[9] = (k) => y("back"))
2004
2000
  }, {
@@ -2007,7 +2003,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2007
2003
  ]),
2008
2004
  _: 1
2009
2005
  }),
2010
- n(e(Z), {
2006
+ n(e(J), {
2011
2007
  type: "primary",
2012
2008
  loading: W.value,
2013
2009
  disabled: r.disabled,
@@ -2021,7 +2017,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2021
2017
  ])
2022
2018
  ], 2));
2023
2019
  }
2024
- }), Va = /* @__PURE__ */ pe(Ta, [["__scopeId", "data-v-ace40cf4"]]), Aa = ["onClick"], Sa = { class: "wx-rubric-row__name" }, Wa = /* @__PURE__ */ ee({
2020
+ }), Aa = /* @__PURE__ */ ve(Va, [["__scopeId", "data-v-ace40cf4"]]), Sa = ["onClick"], Wa = { class: "wx-rubric-row__name" }, Ca = /* @__PURE__ */ ee({
2025
2021
  __name: "RubricsPage",
2026
2022
  props: {
2027
2023
  base: { default: "/blog" }
@@ -2029,7 +2025,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2029
2025
  setup(f) {
2030
2026
  const m = f, r = ne(), y = de(r), u = He(), a = Ke();
2031
2027
  te();
2032
- const t = Q("webx-blog"), s = ge(), i = C([]), x = C(""), T = C(!0), c = C(!1), o = C(!1), _ = v(() => r.can("blog.taxonomy.manage")), W = v(
2028
+ const t = Q("webx-blog"), s = ge(), i = z([]), x = z(""), T = z(!0), c = z(!1), o = z(!1), _ = v(() => r.can("blog.taxonomy.manage")), W = v(
2033
2029
  () => r.state.manifest?.modules.find((k) => k.id === "rubrics")?.title ?? t("module.rubrics")
2034
2030
  ), S = v(() => {
2035
2031
  const k = u.query.rubric;
@@ -2083,19 +2079,19 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2083
2079
  L.danger(s(k, t("rubric.reorder-failed"))), await F();
2084
2080
  }
2085
2081
  }
2086
- return (k, le) => (p(), z(e(Qe), {
2082
+ return (k, le) => (p(), C(e(Qe), {
2087
2083
  title: W.value,
2088
2084
  actions: P.value,
2089
2085
  card: !1,
2090
2086
  fill: ""
2091
2087
  }, {
2092
2088
  default: l(() => [
2093
- n(e(Vt), {
2089
+ n(e(At), {
2094
2090
  class: "wx-rubrics",
2095
2091
  padding: "none"
2096
2092
  }, {
2097
2093
  default: l(() => [
2098
- n(e(At), {
2094
+ n(e(St), {
2099
2095
  open: c.value,
2100
2096
  "onUpdate:open": le[1] || (le[1] = (O) => c.value = O),
2101
2097
  class: "wx-rubrics__panes",
@@ -2104,15 +2100,15 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2104
2100
  "detail-label": E.value ? E.value.name : e(t)("rubric.new")
2105
2101
  }, {
2106
2102
  list: l(() => [
2107
- T.value ? (p(), z(e(Ue), {
2103
+ T.value ? (p(), C(e(Ue), {
2108
2104
  key: 0,
2109
2105
  class: "wx-rubrics__loading",
2110
2106
  rows: 5
2111
- })) : i.value.length === 0 ? (p(), z(e(Ge), {
2107
+ })) : i.value.length === 0 ? (p(), C(e(Ge), {
2112
2108
  key: 1,
2113
2109
  title: e(t)("rubric.empty"),
2114
2110
  description: e(t)("rubric.empty-help")
2115
- }, null, 8, ["title", "description"])) : (p(), z(e(Ye), {
2111
+ }, null, 8, ["title", "description"])) : (p(), C(e(Ye), {
2116
2112
  key: 2,
2117
2113
  modelValue: i.value,
2118
2114
  "onUpdate:modelValue": le[0] || (le[0] = (O) => i.value = O),
@@ -2131,8 +2127,8 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2131
2127
  class: Pe(["wx-rubric-row", { "is-current": O.id === S.value, "is-hidden": !O.is_visible }]),
2132
2128
  onClick: (se) => $(O)
2133
2129
  }, [
2134
- j("span", Sa, [
2135
- n(e(J), {
2130
+ j("span", Wa, [
2131
+ n(e(G), {
2136
2132
  truncate: "",
2137
2133
  weight: "medium"
2138
2134
  }, {
@@ -2141,7 +2137,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2141
2137
  ]),
2142
2138
  _: 2
2143
2139
  }, 1024),
2144
- O.is_visible ? H("", !0) : (p(), z(e(et), {
2140
+ O.is_visible ? H("", !0) : (p(), C(e(et), {
2145
2141
  key: 0,
2146
2142
  content: e(t)("rubric.hidden")
2147
2143
  }, {
@@ -2154,7 +2150,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2154
2150
  _: 1
2155
2151
  }, 8, ["content"]))
2156
2152
  ]),
2157
- n(e(J), {
2153
+ n(e(G), {
2158
2154
  size: "sm",
2159
2155
  tone: "muted",
2160
2156
  truncate: ""
@@ -2164,10 +2160,10 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2164
2160
  ]),
2165
2161
  _: 2
2166
2162
  }, 1024)
2167
- ], 10, Aa)
2163
+ ], 10, Sa)
2168
2164
  ]),
2169
2165
  actions: l(({ item: O }) => [
2170
- n(e(J), {
2166
+ n(e(G), {
2171
2167
  class: "wx-rubric-row__count",
2172
2168
  size: "sm",
2173
2169
  tone: "muted"
@@ -2187,7 +2183,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2187
2183
  }, null, 8, ["description"])
2188
2184
  ]),
2189
2185
  detail: l(({ inline: O, back: se }) => [
2190
- o.value || E.value ? (p(), z(Va, {
2186
+ o.value || E.value ? (p(), C(Aa, {
2191
2187
  key: o.value ? "new" : String(E.value?.id),
2192
2188
  rubric: o.value ? null : E.value,
2193
2189
  prefix: x.value,
@@ -2210,12 +2206,12 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2210
2206
  _: 1
2211
2207
  }, 8, ["title", "actions"]));
2212
2208
  }
2213
- }), Ca = /* @__PURE__ */ ee({
2209
+ }), za = /* @__PURE__ */ ee({
2214
2210
  __name: "TagCreateDialog",
2215
2211
  setup(f) {
2216
2212
  const { open: m, resolve: r, dismiss: y } = Ee(), u = ne(), a = de(u);
2217
2213
  te();
2218
- const t = Q("webx-blog"), s = C(""), i = C(""), x = C(!1), T = C({}), c = De("field");
2214
+ const t = Q("webx-blog"), s = z(""), i = z(""), x = z(!1), T = z({}), c = De("field");
2219
2215
  Ne(async () => {
2220
2216
  await Ze(), c.value?.querySelector("input")?.focus();
2221
2217
  });
@@ -2236,7 +2232,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2236
2232
  }
2237
2233
  }
2238
2234
  }
2239
- return (_, W) => (p(), z(e(Fe), {
2235
+ return (_, W) => (p(), C(e(Fe), {
2240
2236
  open: e(m),
2241
2237
  "onUpdate:open": W[3] || (W[3] = (S) => Ie(m) ? m.value = S : null),
2242
2238
  title: e(t)("tag.new-title"),
@@ -2245,7 +2241,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2245
2241
  footer: l(() => [
2246
2242
  n(e(Le), { size: "sm" }, {
2247
2243
  default: l(() => [
2248
- n(e(Z), {
2244
+ n(e(J), {
2249
2245
  variant: "outline",
2250
2246
  onClick: W[2] || (W[2] = (S) => e(y)())
2251
2247
  }, {
@@ -2254,7 +2250,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2254
2250
  ]),
2255
2251
  _: 1
2256
2252
  }),
2257
- n(e(Z), {
2253
+ n(e(J), {
2258
2254
  type: "primary",
2259
2255
  loading: x.value,
2260
2256
  disabled: s.value.trim() === "",
@@ -2309,7 +2305,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2309
2305
  _: 1
2310
2306
  }, 8, ["open", "title"]));
2311
2307
  }
2312
- }), za = ["id"], Ra = /* @__PURE__ */ ee({
2308
+ }), Ra = ["id"], Ua = /* @__PURE__ */ ee({
2313
2309
  __name: "TagRenameDialog",
2314
2310
  props: {
2315
2311
  name: {}
@@ -2317,7 +2313,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2317
2313
  setup(f) {
2318
2314
  const m = f, { open: r, resolve: y, dismiss: u } = Ee();
2319
2315
  te();
2320
- const a = Q("webx-blog"), t = Q("webx-admin"), s = ft(), i = C(m.name), x = De("field");
2316
+ const a = Q("webx-blog"), t = Q("webx-admin"), s = ft(), i = z(m.name), x = De("field");
2321
2317
  Ne(async () => {
2322
2318
  await Ze();
2323
2319
  const c = x.value?.querySelector("input");
@@ -2331,7 +2327,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2331
2327
  }
2332
2328
  y(c);
2333
2329
  }
2334
- return (c, o) => (p(), z(e(Fe), {
2330
+ return (c, o) => (p(), C(e(Fe), {
2335
2331
  open: e(r),
2336
2332
  "onUpdate:open": o[2] || (o[2] = (_) => Ie(r) ? r.value = _ : null),
2337
2333
  title: e(a)("tag.rename"),
@@ -2340,7 +2336,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2340
2336
  footer: l(() => [
2341
2337
  n(e(Le), { size: "sm" }, {
2342
2338
  default: l(() => [
2343
- n(e(Z), {
2339
+ n(e(J), {
2344
2340
  variant: "outline",
2345
2341
  onClick: o[1] || (o[1] = (_) => e(u)())
2346
2342
  }, {
@@ -2349,7 +2345,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2349
2345
  ]),
2350
2346
  _: 1
2351
2347
  }),
2352
- n(e(Z), {
2348
+ n(e(J), {
2353
2349
  type: "primary",
2354
2350
  "native-type": "submit",
2355
2351
  form: e(s),
@@ -2385,12 +2381,12 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2385
2381
  ]),
2386
2382
  _: 1
2387
2383
  }, 8, ["label"])
2388
- ], 40, za)
2384
+ ], 40, Ra)
2389
2385
  ]),
2390
2386
  _: 1
2391
2387
  }, 8, ["open", "title"]));
2392
2388
  }
2393
- }), Ua = { class: "wx-tag-merge" }, qa = { class: "wx-tag-merge__chips" }, Ma = { class: "wx-tag-merge__redirect" }, Na = /* @__PURE__ */ ee({
2389
+ }), qa = { class: "wx-tag-merge" }, Ma = { class: "wx-tag-merge__chips" }, Na = { class: "wx-tag-merge__redirect" }, Ba = /* @__PURE__ */ ee({
2394
2390
  __name: "TagMergeDialog",
2395
2391
  props: {
2396
2392
  tags: {}
@@ -2398,9 +2394,9 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2398
2394
  setup(f) {
2399
2395
  const m = f, { open: r, resolve: y, dismiss: u } = Ee(), a = ne(), t = de(a);
2400
2396
  te();
2401
- const s = Q("webx-blog"), i = ge(), x = C(
2397
+ const s = Q("webx-blog"), i = ge(), x = z(
2402
2398
  [...m.tags].sort((U, R) => R.articles_count - U.articles_count)[0]?.id ?? 0
2403
- ), T = C(!1), c = C(!0), o = C(null), _ = v(
2399
+ ), T = z(!1), c = z(!0), o = z(null), _ = v(
2404
2400
  () => m.tags.map((U) => ({ value: U.id, label: `${U.title} · ${U.articles_count}` }))
2405
2401
  ), W = v(() => m.tags.find((U) => U.id === x.value) ?? null), S = v(() => m.tags.filter((U) => U.id !== x.value)), E = v(() => S.value.reduce((U, R) => U + R.articles_count, 0)), F = v(() => S.value.map((U) => U.path).filter(Boolean));
2406
2402
  async function $() {
@@ -2421,7 +2417,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2421
2417
  }
2422
2418
  }
2423
2419
  }
2424
- return (U, R) => (p(), z(e(Fe), {
2420
+ return (U, R) => (p(), C(e(Fe), {
2425
2421
  open: e(r),
2426
2422
  "onUpdate:open": R[3] || (R[3] = (M) => Ie(r) ? r.value = M : null),
2427
2423
  title: e(s)("tag.merge-title"),
@@ -2430,7 +2426,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2430
2426
  footer: l(() => [
2431
2427
  n(e(Le), { size: "sm" }, {
2432
2428
  default: l(() => [
2433
- n(e(Z), {
2429
+ n(e(J), {
2434
2430
  variant: "outline",
2435
2431
  onClick: R[2] || (R[2] = (M) => e(u)())
2436
2432
  }, {
@@ -2439,7 +2435,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2439
2435
  ]),
2440
2436
  _: 1
2441
2437
  }),
2442
- n(e(Z), {
2438
+ n(e(J), {
2443
2439
  type: "primary",
2444
2440
  loading: T.value,
2445
2441
  disabled: S.value.length === 0,
@@ -2455,9 +2451,9 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2455
2451
  })
2456
2452
  ]),
2457
2453
  default: l(() => [
2458
- j("div", Ua, [
2459
- j("div", qa, [
2460
- (p(!0), G(ve, null, Be(S.value, (M) => (p(), z(e(oe), {
2454
+ j("div", qa, [
2455
+ j("div", Ma, [
2456
+ (p(!0), Z(be, null, Be(S.value, (M) => (p(), C(e(oe), {
2461
2457
  key: M.id,
2462
2458
  size: "sm",
2463
2459
  round: ""
@@ -2471,7 +2467,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2471
2467
  name: "arrow-right",
2472
2468
  size: "sm"
2473
2469
  }),
2474
- W.value ? (p(), z(e(oe), {
2470
+ W.value ? (p(), C(e(oe), {
2475
2471
  key: 0,
2476
2472
  type: "primary",
2477
2473
  size: "sm",
@@ -2496,13 +2492,13 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2496
2492
  ]),
2497
2493
  _: 1
2498
2494
  }, 8, ["label"]),
2499
- j("div", Ma, [
2500
- n(e(St), {
2495
+ j("div", Na, [
2496
+ n(e(Wt), {
2501
2497
  modelValue: c.value,
2502
2498
  "onUpdate:modelValue": R[1] || (R[1] = (M) => c.value = M),
2503
2499
  label: e(s)("tag.merge-redirect")
2504
2500
  }, null, 8, ["modelValue", "label"]),
2505
- n(e(J), {
2501
+ n(e(G), {
2506
2502
  size: "sm",
2507
2503
  tone: "muted"
2508
2504
  }, {
@@ -2521,7 +2517,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2521
2517
  merged: S.value.length
2522
2518
  })
2523
2519
  }, null, 8, ["description"]),
2524
- o.value ? (p(), z(e(We), {
2520
+ o.value ? (p(), C(e(We), {
2525
2521
  key: 0,
2526
2522
  type: "danger",
2527
2523
  variant: "soft",
@@ -2532,7 +2528,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2532
2528
  _: 1
2533
2529
  }, 8, ["open", "title"]));
2534
2530
  }
2535
- }), Ba = /* @__PURE__ */ pe(Na, [["__scopeId", "data-v-aa68b3a8"]]), Pa = { class: "wx-tags" }, Da = /* @__PURE__ */ ee({
2531
+ }), Pa = /* @__PURE__ */ ve(Ba, [["__scopeId", "data-v-aa68b3a8"]]), Da = { class: "wx-tags" }, Ia = /* @__PURE__ */ ee({
2536
2532
  __name: "TagsPage",
2537
2533
  props: {
2538
2534
  base: { default: "/blog" }
@@ -2540,7 +2536,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2540
2536
  setup(f) {
2541
2537
  const m = f, r = ne(), y = de(r), u = He(), a = Ke();
2542
2538
  te();
2543
- const t = Q("webx-blog"), s = ge(), i = C(null), x = C(!0), T = C([]), c = C(!1), o = Ce(Ra), _ = Ce(Ca), W = Ce(Ba), S = v(() => r.can("blog.taxonomy.manage")), E = v(
2539
+ const t = Q("webx-blog"), s = ge(), i = z(null), x = z(!0), T = z([]), c = z(!1), o = Ce(Ua), _ = Ce(za), W = Ce(Pa), S = v(() => r.can("blog.taxonomy.manage")), E = v(
2544
2540
  () => r.state.manifest?.modules.find((g) => g.id === "tags")?.title ?? t("module.tags")
2545
2541
  ), F = v({
2546
2542
  get: () => typeof u.query.view == "string" ? u.query.view : "",
@@ -2641,7 +2637,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2641
2637
  }
2642
2638
  }
2643
2639
  async function ce(g) {
2644
- if (await be({
2640
+ if (await me({
2645
2641
  title: t("tag.delete-title", { title: g.title }),
2646
2642
  message: g.articles_count > 0 ? t("tag.delete-text-used", { count: g.articles_count }) : t("tag.delete-text"),
2647
2643
  confirmText: t("tag.delete"),
@@ -2732,7 +2728,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2732
2728
  function ke(g) {
2733
2729
  return g === "noindex" ? "muted" : "success";
2734
2730
  }
2735
- async function fe() {
2731
+ async function pe() {
2736
2732
  if (M.value.length < 2) return;
2737
2733
  const g = await W({ tags: M.value });
2738
2734
  g && (L.success(t("tag.merged", { tag: g.tag.title, count: g.articles_count })), T.value = [], await K());
@@ -2742,7 +2738,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2742
2738
  if (!(N.length === 0 || c.value)) {
2743
2739
  if (g === "delete") {
2744
2740
  const B = M.value.reduce((ye, d) => ye + d.articles_count, 0);
2745
- if (!await be({
2741
+ if (!await me({
2746
2742
  title: t("tag.delete-many-title", { count: N.length }),
2747
2743
  message: B > 0 ? t("tag.delete-many-text-used", { count: B }) : t("tag.delete-many-text"),
2748
2744
  confirmText: t("tag.delete"),
@@ -2763,18 +2759,18 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2763
2759
  }
2764
2760
  }
2765
2761
  }
2766
- const me = v(
2762
+ const fe = v(
2767
2763
  () => S.value ? [{ key: "new", label: t("tag.new"), icon: "plus", primary: !0, run: () => {
2768
2764
  le();
2769
2765
  } }] : []
2770
2766
  );
2771
- return (g, N) => (p(), G("div", Pa, [
2767
+ return (g, N) => (p(), Z("div", Da, [
2772
2768
  n(e(Qe), {
2773
2769
  view: F.value,
2774
2770
  "onUpdate:view": N[1] || (N[1] = (B) => F.value = B),
2775
2771
  title: E.value,
2776
2772
  views: U.value,
2777
- actions: me.value
2773
+ actions: fe.value
2778
2774
  }, {
2779
2775
  default: l(() => [
2780
2776
  n(e(ot), {
@@ -2796,7 +2792,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2796
2792
  onStateChange: k
2797
2793
  }, {
2798
2794
  "cell-title": l(({ row: B }) => [
2799
- n(e(J), { truncate: "" }, {
2795
+ n(e(G), { truncate: "" }, {
2800
2796
  default: l(() => [
2801
2797
  w(b(B.title), 1)
2802
2798
  ]),
@@ -2804,7 +2800,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2804
2800
  }, 1024)
2805
2801
  ]),
2806
2802
  "cell-path": l(({ row: B }) => [
2807
- n(e(J), {
2803
+ n(e(G), {
2808
2804
  size: "sm",
2809
2805
  tone: "muted",
2810
2806
  mono: "",
@@ -2817,7 +2813,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2817
2813
  }, 1024)
2818
2814
  ]),
2819
2815
  "cell-articles_count": l(({ row: B }) => [
2820
- n(e(J), {
2816
+ n(e(G), {
2821
2817
  tone: B.articles_count === 0 ? "muted" : "default"
2822
2818
  }, {
2823
2819
  default: l(() => [
@@ -2827,12 +2823,12 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2827
2823
  }, 1032, ["tone"])
2828
2824
  ]),
2829
2825
  "cell-indexing": l(({ row: B }) => [
2830
- B.indexing === "rule" ? (p(), z(e(et), {
2826
+ B.indexing === "rule" ? (p(), C(e(et), {
2831
2827
  key: 0,
2832
2828
  content: e(t)("tag.indexing-rule-help")
2833
2829
  }, {
2834
2830
  default: l(() => [
2835
- n(e(J), {
2831
+ n(e(G), {
2836
2832
  size: "sm",
2837
2833
  tone: ke(B.indexing)
2838
2834
  }, {
@@ -2843,7 +2839,7 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2843
2839
  }, 8, ["tone"])
2844
2840
  ]),
2845
2841
  _: 2
2846
- }, 1032, ["content"])) : (p(), z(e(J), {
2842
+ }, 1032, ["content"])) : (p(), C(e(G), {
2847
2843
  key: 1,
2848
2844
  size: "sm",
2849
2845
  tone: ke(B.indexing)
@@ -2865,13 +2861,13 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2865
2861
  ]),
2866
2862
  _: 1
2867
2863
  }, 8, ["view", "title", "views", "actions"]),
2868
- M.value.length > 0 ? (p(), z(e(rt), {
2864
+ M.value.length > 0 ? (p(), C(e(rt), {
2869
2865
  key: 0,
2870
2866
  class: "wx-tags__bar",
2871
2867
  sticky: ""
2872
2868
  }, {
2873
2869
  state: l(() => [
2874
- n(e(J), { weight: "medium" }, {
2870
+ n(e(G), { weight: "medium" }, {
2875
2871
  default: l(() => [
2876
2872
  w(b(e(t)("tag.selected", { count: M.value.length })), 1)
2877
2873
  ]),
@@ -2879,10 +2875,10 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2879
2875
  })
2880
2876
  ]),
2881
2877
  default: l(() => [
2882
- n(e(Z), {
2878
+ n(e(J), {
2883
2879
  type: "primary",
2884
2880
  disabled: M.value.length < 2 || c.value,
2885
- onClick: fe
2881
+ onClick: pe
2886
2882
  }, {
2887
2883
  icon: l(() => [
2888
2884
  n(e(we), { name: "link" })
@@ -2902,8 +2898,8 @@ const Bt = { class: "wx-article-editor__screen" }, Pt = 1200, Dt = /* @__PURE__
2902
2898
  })) : H("", !0)
2903
2899
  ]));
2904
2900
  }
2905
- }), Ia = /* @__PURE__ */ pe(Da, [["__scopeId", "data-v-beb86d88"]]);
2906
- function Ka(f = {}) {
2901
+ }), Oa = /* @__PURE__ */ ve(Ia, [["__scopeId", "data-v-beb86d88"]]);
2902
+ function ja(f = {}) {
2907
2903
  const m = f.path ?? "/blog";
2908
2904
  return [
2909
2905
  {
@@ -2915,13 +2911,13 @@ function Ka(f = {}) {
2915
2911
  {
2916
2912
  path: `${m}/articles`,
2917
2913
  name: "webx.blog.articles",
2918
- component: ga,
2914
+ component: ha,
2919
2915
  props: { base: m }
2920
2916
  },
2921
2917
  {
2922
2918
  path: `${m}/articles/:id(\\d+)`,
2923
2919
  name: "webx.blog.articles.edit",
2924
- component: It,
2920
+ component: Ot,
2925
2921
  props: { base: m }
2926
2922
  }
2927
2923
  ],
@@ -2936,12 +2932,12 @@ function Ka(f = {}) {
2936
2932
  * binding.
2937
2933
  */
2938
2934
  types: {
2939
- "wx-article-address": { component: Mt, kind: "display" },
2940
- "wx-article-author": { component: Nt, kind: "field" },
2941
- "wx-article-rubrics": { component: ta, kind: "field" },
2942
- "wx-article-tags": { component: ra, kind: "field" },
2943
- "wx-article-related": { component: Qt, kind: "field" },
2944
- "wx-article-history": { component: Ht, kind: "display" }
2935
+ "wx-article-address": { component: Nt, kind: "display" },
2936
+ "wx-article-author": { component: Bt, kind: "field" },
2937
+ "wx-article-rubrics": { component: aa, kind: "field" },
2938
+ "wx-article-tags": { component: oa, kind: "field" },
2939
+ "wx-article-related": { component: Xt, kind: "field" },
2940
+ "wx-article-history": { component: Kt, kind: "display" }
2945
2941
  }
2946
2942
  },
2947
2943
  {
@@ -2951,7 +2947,7 @@ function Ka(f = {}) {
2951
2947
  {
2952
2948
  path: `${m}/rubrics`,
2953
2949
  name: "webx.blog.rubrics",
2954
- component: Wa,
2950
+ component: Ca,
2955
2951
  props: { base: m }
2956
2952
  }
2957
2953
  ]
@@ -2963,7 +2959,7 @@ function Ka(f = {}) {
2963
2959
  {
2964
2960
  path: `${m}/tags`,
2965
2961
  name: "webx.blog.tags",
2966
- component: Ia,
2962
+ component: Oa,
2967
2963
  props: { base: m }
2968
2964
  }
2969
2965
  ]
@@ -2971,25 +2967,25 @@ function Ka(f = {}) {
2971
2967
  ];
2972
2968
  }
2973
2969
  export {
2974
- Mt as WxArticleAddress,
2975
- Nt as WxArticleAuthorField,
2976
- oa as WxArticleCreateDialog,
2977
- It as WxArticleEditorPage,
2978
- Ht as WxArticleHistory,
2979
- Qt as WxArticleRelated,
2980
- ta as WxArticleRubrics,
2981
- ra as WxArticleTags,
2982
- ga as WxArticlesPage,
2983
- Va as WxRubricForm,
2984
- Wa as WxRubricsPage,
2985
- Ca as WxTagCreateDialog,
2986
- Ba as WxTagMergeDialog,
2987
- Ia as WxTagsPage,
2970
+ Nt as WxArticleAddress,
2971
+ Bt as WxArticleAuthorField,
2972
+ ua as WxArticleCreateDialog,
2973
+ Ot as WxArticleEditorPage,
2974
+ Kt as WxArticleHistory,
2975
+ Xt as WxArticleRelated,
2976
+ aa as WxArticleRubrics,
2977
+ oa as WxArticleTags,
2978
+ ha as WxArticlesPage,
2979
+ Aa as WxRubricForm,
2980
+ Ca as WxRubricsPage,
2981
+ za as WxTagCreateDialog,
2982
+ Pa as WxTagMergeDialog,
2983
+ Oa as WxTagsPage,
2988
2984
  ut as articleEditorKey,
2989
- Ka as blog,
2990
- Rt as blogMessages,
2985
+ ja as blog,
2986
+ Ut as blogMessages,
2991
2987
  de as createBlogApi,
2992
- zt as provideArticleEditor,
2988
+ Rt as provideArticleEditor,
2993
2989
  Se as useArticleEditor
2994
2990
  };
2995
2991
  //# sourceMappingURL=index.js.map