@webx-ui/module-blog 0.8.3 → 0.8.5

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.
@@ -1,81 +1,91 @@
1
- import { defineComponent as me, useTemplateRef as ye, ref as J, computed as c, watch as ge, openBlock as o, createElementBlock as E, createVNode as s, unref as t, withCtx as i, createBlock as d, createTextVNode as v, toDisplayString as b, createCommentVNode as h, createElementVNode as f, Fragment as _e, renderList as xe, normalizeClass as ke } from "vue";
2
- import { useRoute as we, useRouter as qe } from "vue-router";
3
- import { useAdmin as ze, useTranslate as K, useErrorText as We, rowMenuWidth as $e, WxListScreen as Ce, WxRowMenu as Q, WxDate as X, WxAddressNote as Be, WxFilterChips as Te } from "@webx-ui/module-admin";
4
- import { useElementWidth as Se, createModal as Ae, WxTable as Ne, WxEntityCard as Ve, WxBadge as W, WxIcon as C, WxText as Y, WxTooltip as Re, WxFormItem as F, WxSelect as M, WxButton as Ee, toast as B, confirm as Fe } from "@webx-ui/core";
5
- import { c as Me, u as Pe, _ as Ue, a as De } from "./index-DqN5h0Ej.js";
6
- const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-articles__name-text" }, je = { class: "wx-articles__title" }, Ge = { class: "wx-articles__address" }, He = { class: "wx-articles__chips" }, Je = { class: "wx-articles__state" }, Z = 640, Ke = /* @__PURE__ */ me({
1
+ import { defineComponent as _e, useTemplateRef as xe, ref as J, computed as o, watch as ke, openBlock as c, createElementBlock as K, createVNode as s, unref as a, withCtx as i, createBlock as d, createTextVNode as v, toDisplayString as b, createCommentVNode as f, createElementVNode as h, Fragment as we, renderList as qe, normalizeClass as We } from "vue";
2
+ import { useRoute as ze, useRouter as $e } from "vue-router";
3
+ import { useAdmin as Ce, useTranslate as Q, useErrorText as Te, rowMenuWidth as Be, WxListScreen as Se, WxRowMenu as X, WxDate as Y, WxAddressNote as Ae, WxPreviewThumb as Ne, WxFilterChips as Ve } from "@webx-ui/module-admin";
4
+ import { useElementWidth as Re, createModal as Ee, WxTable as Fe, WxEntityCard as Me, WxBadge as z, WxIcon as T, WxText as Z, WxTooltip as Pe, WxFormItem as E, WxSelect as F, WxButton as Ue, toast as B, confirm as De } from "@webx-ui/core";
5
+ import { c as Ie, u as Oe, _ as Le, a as je } from "./index-ChbP89HC.js";
6
+ const Ge = ["src"], He = { class: "wx-articles__name" }, Je = { class: "wx-articles__name-text" }, Ke = { class: "wx-articles__title" }, Qe = { class: "wx-articles__address" }, Xe = { class: "wx-articles__chips" }, Ye = { class: "wx-articles__state" }, ee = 640, Ze = /* @__PURE__ */ _e({
7
7
  __name: "ArticlesPage",
8
8
  props: {
9
9
  base: { default: "/blog" }
10
10
  },
11
- setup(ee) {
12
- const le = ee, T = ze(), m = Me(T), r = we(), y = qe();
13
- Pe();
14
- const a = K("webx-blog"), P = K("webx-admin"), U = We(), D = ye("root"), I = Se(D), S = J(null), A = J(!0), ae = Ae(Ue), L = c(() => T.can("blog.articles.manage")), O = c(
15
- () => T.state.manifest?.modules.find((e) => e.id === "articles")?.title ?? a("module.articles")
16
- ), x = c({
11
+ setup(le) {
12
+ const te = le, S = Ce(), m = Ie(S), r = ze(), y = $e();
13
+ Oe();
14
+ const t = Q("webx-blog"), M = Q("webx-admin"), P = Te(), U = xe("root"), D = Re(U), $ = J(null), A = J(!0), ae = Ee(Le), I = o(() => S.can("blog.articles.manage")), O = o(
15
+ () => S.state.manifest?.modules.find((e) => e.id === "articles")?.title ?? t("module.articles")
16
+ ), x = o({
17
17
  get: () => typeof r.query.view == "string" ? r.query.view : "",
18
18
  set: (e) => {
19
19
  y.replace({
20
20
  query: { ...r.query, view: e === "" ? void 0 : String(e), page: void 0 }
21
21
  });
22
22
  }
23
- }), p = c(() => x.value === "trashed"), u = c(() => ({
23
+ }), p = o(() => x.value === "trashed"), u = o(() => ({
24
24
  q: typeof r.query.q == "string" ? r.query.q : "",
25
25
  rubric: N(r.query.rubric),
26
26
  tag: N(r.query.tag),
27
27
  author: N(r.query.author),
28
28
  sort: typeof r.query.sort == "string" ? r.query.sort : null,
29
29
  page: Number(r.query.page ?? 1) || 1
30
- }));
30
+ })), L = o(() => ($.value?.data ?? []).filter((e) => e.cover?.thumb)), ne = o(
31
+ () => L.value.map((e) => ({
32
+ src: e.cover.url ?? e.cover.thumb,
33
+ thumb: e.cover.thumb ?? void 0,
34
+ alt: e.title,
35
+ caption: e.title
36
+ }))
37
+ );
38
+ function ie(e) {
39
+ return L.value.indexOf(e);
40
+ }
31
41
  function N(e) {
32
42
  return typeof e == "string" && e !== "" && Number(e) || null;
33
43
  }
34
- const te = c(() => [
35
- { value: "", label: a("panel.view-all") },
36
- { value: "published", label: a("panel.view-published") },
37
- { value: "scheduled", label: a("panel.view-scheduled") },
38
- { value: "draft", label: a("panel.view-draft") },
39
- { value: "unpublished", label: a("panel.view-unpublished") },
40
- { value: "trashed", label: a("panel.bin"), icon: "trash" }
41
- ]), g = c(() => S.value?.filters ?? { rubrics: [], tags: [], authors: [] }), ne = c(() => I.value > 0 && I.value < Z), ie = c(() => ne.value ? [{ key: "card", label: "" }] : [
44
+ const se = o(() => [
45
+ { value: "", label: t("panel.view-all") },
46
+ { value: "published", label: t("panel.view-published") },
47
+ { value: "scheduled", label: t("panel.view-scheduled") },
48
+ { value: "draft", label: t("panel.view-draft") },
49
+ { value: "unpublished", label: t("panel.view-unpublished") },
50
+ { value: "trashed", label: t("panel.bin"), icon: "trash" }
51
+ ]), g = o(() => $.value?.filters ?? { rubrics: [], tags: [], authors: [] }), re = o(() => D.value > 0 && D.value < ee), ue = o(() => re.value ? [{ key: "card", label: "" }] : [
42
52
  { key: "cover", label: "", width: 68 },
43
53
  /* The one that takes what the others leave, and the only one without a number. */
44
- { key: "title", label: a("panel.column-title"), minWidth: 220 },
45
- { key: "rubrics", label: a("panel.column-rubrics"), width: 190, hideBelow: 1e3 },
46
- { key: "author", label: a("panel.column-author"), width: 160, hideBelow: 1200 },
54
+ { key: "title", label: t("panel.column-title"), minWidth: 220 },
55
+ { key: "rubrics", label: t("panel.column-rubrics"), width: 190, hideBelow: 1e3 },
56
+ { key: "author", label: t("panel.column-author"), width: 160, hideBelow: 1200 },
47
57
  {
48
58
  key: "date",
49
- label: p.value ? a("panel.column-deleted") : a("panel.column-date"),
59
+ label: p.value ? t("panel.column-deleted") : t("panel.column-date"),
50
60
  width: 120,
51
61
  hideBelow: 700,
52
62
  // "today at 16:22" is three words the table will break over two lines given half a
53
63
  // chance, and a date read down a column has to be one line to be read at all.
54
64
  cellClass: "wx-articles__when"
55
65
  },
56
- { key: "status", label: a("panel.column-status"), width: 170 },
57
- { key: "actions", label: "", width: $e, align: "right" }
58
- ]), se = c(() => u.value.q !== "" ? a("panel.empty-search") : p.value ? a("panel.empty-bin") : a("panel.empty")), V = c(() => {
59
- const e = [], n = g.value.rubrics.find((z) => z.id === u.value.rubric);
66
+ { key: "status", label: t("panel.column-status"), width: 170 },
67
+ { key: "actions", label: "", width: Be, align: "right" }
68
+ ]), oe = o(() => u.value.q !== "" ? t("panel.empty-search") : p.value ? t("panel.empty-bin") : t("panel.empty")), V = o(() => {
69
+ const e = [], n = g.value.rubrics.find((W) => W.id === u.value.rubric);
60
70
  n && e.push({
61
71
  key: "rubric",
62
- label: `${a("panel.filter-rubric")}: ${n.title}`,
72
+ label: `${t("panel.filter-rubric")}: ${n.title}`,
63
73
  clear: () => _("rubric", void 0)
64
74
  });
65
- const l = g.value.tags.find((z) => z.id === u.value.tag);
75
+ const l = g.value.tags.find((W) => W.id === u.value.tag);
66
76
  l && e.push({
67
77
  key: "tag",
68
- label: `${a("panel.filter-tag")}: ${l.title}`,
78
+ label: `${t("panel.filter-tag")}: ${l.title}`,
69
79
  clear: () => _("tag", void 0)
70
80
  });
71
- const q = g.value.authors.find((z) => z.id === u.value.author);
81
+ const q = g.value.authors.find((W) => W.id === u.value.author);
72
82
  return q && e.push({
73
83
  key: "author",
74
- label: `${a("panel.filter-author")}: ${q.title}`,
84
+ label: `${t("panel.filter-author")}: ${q.title}`,
75
85
  clear: () => _("author", void 0)
76
86
  }), e;
77
87
  });
78
- function re() {
88
+ function ce() {
79
89
  y.replace({
80
90
  query: {
81
91
  ...r.query,
@@ -89,7 +99,7 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
89
99
  async function k(e) {
90
100
  A.value = !0;
91
101
  try {
92
- S.value = await m.articles({
102
+ $.value = await m.articles({
93
103
  q: e?.search ?? u.value.q,
94
104
  status: p.value ? "" : x.value,
95
105
  trashed: p.value,
@@ -101,12 +111,12 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
101
111
  per_page: e?.perPage
102
112
  });
103
113
  } catch (n) {
104
- B.danger(U(n));
114
+ B.danger(P(n));
105
115
  } finally {
106
116
  A.value = !1;
107
117
  }
108
118
  }
109
- function ue(e) {
119
+ function de(e) {
110
120
  const n = {
111
121
  ...r.query,
112
122
  q: e.search === "" ? void 0 : e.search,
@@ -124,118 +134,118 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
124
134
  }
125
135
  });
126
136
  }
127
- ge(
137
+ ke(
128
138
  [x, () => u.value.rubric, () => u.value.tag, () => u.value.author],
129
139
  () => {
130
140
  k();
131
141
  }
132
142
  ), k();
133
143
  function R(e) {
134
- const n = `${le.base}/articles/${e.id}`;
144
+ const n = `${te.base}/articles/${e.id}`;
135
145
  y.resolve(n).matched.length > 0 && y.push({ path: n, query: { ...r.query } });
136
146
  }
137
- async function oe() {
147
+ async function pe() {
138
148
  const e = await ae({});
139
149
  e && (await k(), R(e));
140
150
  }
141
151
  function j(e) {
142
- if (!L.value) return [];
152
+ if (!I.value) return [];
143
153
  if (p.value)
144
154
  return [
145
155
  {
146
156
  key: "restore",
147
157
  icon: "refresh",
148
- label: a("panel.restore"),
158
+ label: t("panel.restore"),
149
159
  run: () => {
150
- be(e);
160
+ me(e);
151
161
  }
152
162
  }
153
163
  ];
154
164
  const n = [
155
- { key: "open", icon: "edit", label: a("panel.open"), run: () => R(e) }
165
+ { key: "open", icon: "edit", label: t("panel.open"), run: () => R(e) }
156
166
  ];
157
167
  return e.url && e.status !== "draft" && n.push({
158
168
  key: "site",
159
169
  icon: "external-link",
160
- label: a("panel.open-on-site"),
170
+ label: t("panel.open-on-site"),
161
171
  href: e.url
162
172
  }), e.path !== null && n.push({
163
173
  key: "copy",
164
174
  icon: "copy",
165
- label: a("panel.copy-address"),
175
+ label: t("panel.copy-address"),
166
176
  run: () => {
167
- he(e);
177
+ ye(e);
168
178
  }
169
179
  }), n.push({
170
180
  key: "pin",
171
181
  icon: "star",
172
- label: e.pinned ? a("panel.unpin") : a("panel.pin"),
182
+ label: e.pinned ? t("panel.unpin") : t("panel.pin"),
173
183
  run: () => {
174
- pe(e, !e.pinned);
184
+ he(e, !e.pinned);
175
185
  }
176
186
  }), n.push(
177
187
  e.status === "published" || e.status === "modified" || e.status === "scheduled" ? {
178
188
  key: "unpublish",
179
189
  icon: "eye-off",
180
- label: a("panel.unpublish"),
190
+ label: t("panel.unpublish"),
181
191
  run: () => {
182
- de(e);
192
+ be(e);
183
193
  }
184
194
  } : {
185
195
  key: "publish",
186
196
  icon: "upload",
187
- label: a("panel.publish"),
197
+ label: t("panel.publish"),
188
198
  run: () => {
189
- ce(e);
199
+ ve(e);
190
200
  }
191
201
  }
192
202
  ), n.push({
193
203
  key: "delete",
194
204
  icon: "trash",
195
- label: a("panel.delete"),
205
+ label: t("panel.delete"),
196
206
  danger: !0,
197
207
  run: () => {
198
- ve(e);
208
+ fe(e);
199
209
  }
200
210
  }), n;
201
211
  }
202
- async function ce(e) {
203
- await w(() => m.publish(e.id), a("panel.published"));
212
+ async function ve(e) {
213
+ await w(() => m.publish(e.id), t("panel.published"));
204
214
  }
205
- async function de(e) {
206
- await w(() => m.unpublish(e.id), a("panel.unpublished-done"));
215
+ async function be(e) {
216
+ await w(() => m.unpublish(e.id), t("panel.unpublished-done"));
207
217
  }
208
- async function pe(e, n) {
218
+ async function he(e, n) {
209
219
  await w(
210
220
  () => m.save(e.id, { values: { pinned: n }, revision: e.revision }),
211
- a(n ? "panel.pinned-done" : "panel.unpinned")
221
+ t(n ? "panel.pinned-done" : "panel.unpinned")
212
222
  );
213
223
  }
214
- async function ve(e) {
215
- await Fe({
216
- title: a("panel.delete-title", { title: e.title }),
217
- message: a("panel.delete-text"),
218
- confirmText: a("panel.delete"),
219
- cancelText: a("panel.cancel"),
224
+ async function fe(e) {
225
+ await De({
226
+ title: t("panel.delete-title", { title: e.title }),
227
+ message: t("panel.delete-text"),
228
+ confirmText: t("panel.delete"),
229
+ cancelText: t("panel.cancel"),
220
230
  tone: "danger"
221
- }) && await w(() => m.remove(e.id), a("panel.deleted"));
231
+ }) && await w(() => m.remove(e.id), t("panel.deleted"));
222
232
  }
223
- async function be(e) {
224
- await w(() => m.restore(e.id), a("panel.restored"));
233
+ async function me(e) {
234
+ await w(() => m.restore(e.id), t("panel.restored"));
225
235
  }
226
236
  async function w(e, n) {
227
237
  try {
228
238
  await e(), B.success(n);
229
239
  } catch (l) {
230
- B.danger(U(l));
240
+ B.danger(P(l));
231
241
  } finally {
232
242
  await k();
233
243
  }
234
244
  }
235
- async function he(e) {
245
+ async function ye(e) {
236
246
  if (e.url)
237
247
  try {
238
- await navigator.clipboard.writeText(e.url), B.success(a("panel.address-copied"));
248
+ await navigator.clipboard.writeText(e.url), B.success(t("panel.address-copied"));
239
249
  } catch {
240
250
  }
241
251
  }
@@ -243,32 +253,32 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
243
253
  return e === "published" || e === "modified" ? "success" : e === "scheduled" ? "warning" : "default";
244
254
  }
245
255
  function H(e) {
246
- return p.value ? "—" : e.path === null ? a("panel.no-address") : `/${e.path}`;
256
+ return p.value ? "—" : e.path === null ? t("panel.no-address") : `/${e.path}`;
247
257
  }
248
- function $(e) {
258
+ function C(e) {
249
259
  return p.value ? e.deleted_at : e.published_at;
250
260
  }
251
- const fe = c(
252
- () => L.value ? [{ key: "new", label: a("panel.new"), icon: "plus", primary: !0, run: () => {
253
- oe();
261
+ const ge = o(
262
+ () => I.value ? [{ key: "new", label: t("panel.new"), icon: "plus", primary: !0, run: () => {
263
+ pe();
254
264
  } }] : []
255
265
  );
256
- return (e, n) => (o(), E("div", {
266
+ return (e, n) => (c(), K("div", {
257
267
  ref_key: "root",
258
- ref: D,
268
+ ref: U,
259
269
  class: "wx-articles"
260
270
  }, [
261
- s(t(Ce), {
271
+ s(a(Se), {
262
272
  view: x.value,
263
273
  "onUpdate:view": n[3] || (n[3] = (l) => x.value = l),
264
274
  title: O.value,
265
- views: te.value,
266
- actions: fe.value
275
+ views: se.value,
276
+ actions: ge.value
267
277
  }, {
268
278
  default: i(() => [
269
- s(t(Ne), {
270
- data: S.value,
271
- columns: ie.value,
279
+ s(a(Fe), {
280
+ data: $.value,
281
+ columns: ue.value,
272
282
  "row-key": "id",
273
283
  searchable: "",
274
284
  clickable: !p.value,
@@ -276,24 +286,24 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
276
286
  flush: "",
277
287
  loading: A.value,
278
288
  layout: "fixed",
279
- "cards-below": Z,
289
+ "cards-below": ee,
280
290
  "filters-count": V.value.length,
281
- "filters-label": t(P)("filters.title"),
282
- "search-placeholder": t(a)("panel.search"),
283
- "empty-text": se.value,
291
+ "filters-label": a(M)("filters.title"),
292
+ "search-placeholder": a(t)("panel.search"),
293
+ "empty-text": oe.value,
284
294
  "aria-label": O.value,
285
295
  onRowClick: R,
286
- onStateChange: ue
296
+ onStateChange: de
287
297
  }, {
288
298
  filters: i(() => [
289
- s(t(F), {
290
- label: t(a)("panel.filter-rubric")
299
+ s(a(E), {
300
+ label: a(t)("panel.filter-rubric")
291
301
  }, {
292
302
  default: i(() => [
293
- s(t(M), {
303
+ s(a(F), {
294
304
  "model-value": u.value.rubric,
295
305
  options: g.value.rubrics.map((l) => ({ value: l.id, label: l.title })),
296
- placeholder: t(a)("panel.any-rubric"),
306
+ placeholder: a(t)("panel.any-rubric"),
297
307
  clearable: "",
298
308
  size: "sm",
299
309
  "onUpdate:modelValue": n[0] || (n[0] = (l) => _("rubric", l))
@@ -301,14 +311,14 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
301
311
  ]),
302
312
  _: 1
303
313
  }, 8, ["label"]),
304
- s(t(F), {
305
- label: t(a)("panel.filter-tag")
314
+ s(a(E), {
315
+ label: a(t)("panel.filter-tag")
306
316
  }, {
307
317
  default: i(() => [
308
- s(t(M), {
318
+ s(a(F), {
309
319
  "model-value": u.value.tag,
310
320
  options: g.value.tags.map((l) => ({ value: l.id, label: l.title })),
311
- placeholder: t(a)("panel.any-tag"),
321
+ placeholder: a(t)("panel.any-tag"),
312
322
  clearable: "",
313
323
  filterable: "",
314
324
  size: "sm",
@@ -317,14 +327,14 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
317
327
  ]),
318
328
  _: 1
319
329
  }, 8, ["label"]),
320
- s(t(F), {
321
- label: t(a)("panel.filter-author")
330
+ s(a(E), {
331
+ label: a(t)("panel.filter-author")
322
332
  }, {
323
333
  default: i(() => [
324
- s(t(M), {
334
+ s(a(F), {
325
335
  "model-value": u.value.author,
326
336
  options: g.value.authors.map((l) => ({ value: l.id, label: l.title })),
327
- placeholder: t(a)("panel.any-author"),
337
+ placeholder: a(t)("panel.any-author"),
328
338
  clearable: "",
329
339
  size: "sm",
330
340
  "onUpdate:modelValue": n[2] || (n[2] = (l) => _("author", l))
@@ -332,35 +342,44 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
332
342
  ]),
333
343
  _: 1
334
344
  }, 8, ["label"]),
335
- V.value.length > 0 ? (o(), d(t(Ee), {
345
+ V.value.length > 0 ? (c(), d(a(Ue), {
336
346
  key: 0,
337
347
  variant: "text",
338
348
  size: "sm",
339
349
  block: "",
340
- onClick: re
350
+ onClick: ce
341
351
  }, {
342
352
  icon: i(() => [
343
- s(t(C), { name: "close" })
353
+ s(a(T), { name: "close" })
344
354
  ]),
345
355
  default: i(() => [
346
- v(" " + b(t(P)("filters.reset")), 1)
356
+ v(" " + b(a(M)("filters.reset")), 1)
347
357
  ]),
348
358
  _: 1
349
- })) : h("", !0)
359
+ })) : f("", !0)
350
360
  ]),
351
361
  applied: i(() => [
352
- s(t(Te), { filters: V.value }, null, 8, ["filters"])
362
+ s(a(Ve), { filters: V.value }, null, 8, ["filters"])
353
363
  ]),
354
364
  "cell-cover": i(({ row: l }) => [
355
- f("span", {
356
- class: ke(["wx-articles__cover", { "is-empty": !l.cover }])
365
+ h("span", {
366
+ class: We(["wx-articles__cover", { "is-empty": !l.cover }])
357
367
  }, [
358
- l.cover?.thumb ? (o(), E("img", {
368
+ l.cover?.thumb ? (c(), d(a(Ne), {
359
369
  key: 0,
360
- src: l.cover.thumb,
361
- alt: "",
362
- loading: "lazy"
363
- }, null, 8, Ie)) : (o(), d(t(C), {
370
+ fill: "",
371
+ items: ne.value,
372
+ start: ie(l)
373
+ }, {
374
+ default: i(() => [
375
+ h("img", {
376
+ src: l.cover.thumb,
377
+ alt: "",
378
+ loading: "lazy"
379
+ }, null, 8, Ge)
380
+ ]),
381
+ _: 2
382
+ }, 1032, ["items", "start"])) : (c(), d(a(T), {
364
383
  key: 1,
365
384
  name: "image",
366
385
  size: "sm"
@@ -368,25 +387,25 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
368
387
  ], 2)
369
388
  ]),
370
389
  "cell-title": i(({ row: l }) => [
371
- f("div", Le, [
372
- l.pinned ? (o(), d(t(Re), {
390
+ h("div", He, [
391
+ l.pinned ? (c(), d(a(Pe), {
373
392
  key: 0,
374
- content: t(a)("panel.pinned")
393
+ content: a(t)("panel.pinned")
375
394
  }, {
376
395
  default: i(() => [
377
- s(t(C), {
396
+ s(a(T), {
378
397
  class: "wx-articles__pin",
379
398
  name: "star",
380
399
  size: "sm"
381
400
  })
382
401
  ]),
383
402
  _: 1
384
- }, 8, ["content"])) : h("", !0),
385
- f("div", Oe, [
386
- f("span", je, b(l.title), 1),
387
- f("span", Ge, [
403
+ }, 8, ["content"])) : f("", !0),
404
+ h("div", Je, [
405
+ h("span", Ke, b(l.title), 1),
406
+ h("span", Qe, [
388
407
  v(b(H(l)) + " ", 1),
389
- p.value ? h("", !0) : (o(), d(t(Be), {
408
+ p.value ? f("", !0) : (c(), d(a(Ae), {
390
409
  key: 0,
391
410
  locale: l.address_locale
392
411
  }, null, 8, ["locale"]))
@@ -395,8 +414,8 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
395
414
  ])
396
415
  ]),
397
416
  "cell-rubrics": i(({ row: l }) => [
398
- f("span", He, [
399
- (o(!0), E(_e, null, xe(l.rubrics, (q) => (o(), d(t(W), {
417
+ h("span", Xe, [
418
+ (c(!0), K(we, null, qe(l.rubrics, (q) => (c(), d(a(z), {
400
419
  key: q.id,
401
420
  size: "sm",
402
421
  round: ""
@@ -409,7 +428,7 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
409
428
  ])
410
429
  ]),
411
430
  "cell-author": i(({ row: l }) => [
412
- s(t(Y), {
431
+ s(a(Z), {
413
432
  size: "sm",
414
433
  tone: "muted",
415
434
  truncate: ""
@@ -421,11 +440,11 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
421
440
  }, 1024)
422
441
  ]),
423
442
  "cell-date": i(({ row: l }) => [
424
- $(l) ? (o(), d(t(X), {
443
+ C(l) ? (c(), d(a(Y), {
425
444
  key: 0,
426
- value: $(l),
445
+ value: C(l),
427
446
  compact: ""
428
- }, null, 8, ["value"])) : (o(), d(t(Y), {
447
+ }, null, 8, ["value"])) : (c(), d(a(Z), {
429
448
  key: 1,
430
449
  size: "sm",
431
450
  tone: "muted"
@@ -437,32 +456,32 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
437
456
  }))
438
457
  ]),
439
458
  "cell-status": i(({ row: l }) => [
440
- f("span", Je, [
441
- s(t(W), {
459
+ h("span", Ye, [
460
+ s(a(z), {
442
461
  type: G(l.status),
443
462
  dot: "",
444
463
  size: "sm"
445
464
  }, {
446
465
  default: i(() => [
447
- v(b(t(a)(`panel.status-${l.status}`)), 1)
466
+ v(b(a(t)(`panel.status-${l.status}`)), 1)
448
467
  ]),
449
468
  _: 2
450
469
  }, 1032, ["type"]),
451
- l.status === "modified" ? (o(), d(t(W), {
470
+ l.status === "modified" ? (c(), d(a(z), {
452
471
  key: 0,
453
472
  type: "primary",
454
473
  size: "sm",
455
474
  round: ""
456
475
  }, {
457
476
  default: i(() => [
458
- v(b(t(a)("panel.edits")), 1)
477
+ v(b(a(t)("panel.edits")), 1)
459
478
  ]),
460
479
  _: 1
461
- })) : h("", !0)
480
+ })) : f("", !0)
462
481
  ])
463
482
  ]),
464
483
  "cell-card": i(({ row: l }) => [
465
- s(t(Ve), {
484
+ s(a(Me), {
466
485
  class: "wx-articles__entity",
467
486
  variant: "plain",
468
487
  title: l.title,
@@ -472,16 +491,16 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
472
491
  subtitle: H(l)
473
492
  }, {
474
493
  title: i(() => [
475
- l.pinned ? (o(), d(t(C), {
494
+ l.pinned ? (c(), d(a(T), {
476
495
  key: 0,
477
496
  class: "wx-articles__pin",
478
497
  name: "star",
479
498
  size: "sm"
480
- })) : h("", !0),
499
+ })) : f("", !0),
481
500
  v(" " + b(l.title), 1)
482
501
  ]),
483
502
  meta: i(() => [
484
- l.rubrics[0] ? (o(), d(t(W), {
503
+ l.rubrics[0] ? (c(), d(a(z), {
485
504
  key: 0,
486
505
  size: "sm",
487
506
  round: ""
@@ -490,33 +509,33 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
490
509
  v(b(l.rubrics[0].title), 1)
491
510
  ]),
492
511
  _: 2
493
- }, 1024)) : h("", !0),
494
- s(t(W), {
512
+ }, 1024)) : f("", !0),
513
+ s(a(z), {
495
514
  type: G(l.status),
496
515
  dot: "",
497
516
  size: "sm"
498
517
  }, {
499
518
  default: i(() => [
500
- v(b(t(a)(`panel.status-${l.status}`)), 1)
519
+ v(b(a(t)(`panel.status-${l.status}`)), 1)
501
520
  ]),
502
521
  _: 2
503
522
  }, 1032, ["type"]),
504
- $(l) ? (o(), d(t(X), {
523
+ C(l) ? (c(), d(a(Y), {
505
524
  key: 1,
506
- value: $(l)
507
- }, null, 8, ["value"])) : h("", !0)
525
+ value: C(l)
526
+ }, null, 8, ["value"])) : f("", !0)
508
527
  ]),
509
528
  _: 2
510
529
  }, 1032, ["title", "image", "subtitle"])
511
530
  ]),
512
531
  "card-actions": i(({ row: l }) => [
513
- s(t(Q), {
532
+ s(a(X), {
514
533
  actions: j(l),
515
534
  label: l.title
516
535
  }, null, 8, ["actions", "label"])
517
536
  ]),
518
537
  "cell-actions": i(({ row: l }) => [
519
- s(t(Q), {
538
+ s(a(X), {
520
539
  actions: j(l),
521
540
  label: l.title
522
541
  }, null, 8, ["actions", "label"])
@@ -528,8 +547,8 @@ const Ie = ["src"], Le = { class: "wx-articles__name" }, Oe = { class: "wx-artic
528
547
  }, 8, ["view", "title", "views", "actions"])
529
548
  ], 512));
530
549
  }
531
- }), ll = /* @__PURE__ */ De(Ke, [["__scopeId", "data-v-5dfe798a"]]);
550
+ }), il = /* @__PURE__ */ je(Ze, [["__scopeId", "data-v-8bd25142"]]);
532
551
  export {
533
- ll as default
552
+ il as default
534
553
  };
535
- //# sourceMappingURL=ArticlesPage-CI-Nwhpy.js.map
554
+ //# sourceMappingURL=ArticlesPage-BnHi8gF0.js.map