@webx-ui/module-inbox 0.8.1 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,40 +1,40 @@
1
- import { defineComponent as qe, ref as C, computed as p, watch as Se, openBlock as n, createElementBlock as m, createVNode as i, unref as a, withCtx as s, createBlock as c, createElementVNode as f, Fragment as z, renderList as W, toDisplayString as o, createTextVNode as d, createCommentVNode as y } from "vue";
1
+ import { defineComponent as qe, ref as N, computed as c, watch as Se, openBlock as s, createElementBlock as d, createVNode as i, unref as a, withCtx as n, createBlock as p, createElementVNode as v, Fragment as W, renderList as z, toDisplayString as o, createTextVNode as f, createCommentVNode as b } from "vue";
2
2
  import { useRoute as Te, useRouter as Ce } from "vue-router";
3
3
  import { useAdmin as Ne, useTranslate as J, useErrorText as $e, WxScreenHead as Ve, WxNotes as Ae, WxDate as Q } from "@webx-ui/module-admin";
4
- import { useLocales as Be, localizedValue as Ie, toast as h, confirm as De, WxAction as X, WxSkeleton as Ee, WxCard as N, WxEmpty as Re, WxDescriptions as Y, WxDescriptionsItem as $, WxFileCard as Ue, WxAlert as Z, WxTabs as je, WxTab as V, WxTimeline as Fe, WxTimelineItem as Le, WxText as v, WxBadge as R, WxButton as ee, WxSelect as ae } from "@webx-ui/core";
5
- import { c as Me, u as Oe, d as Pe, _ as He } from "./index-BQj2UlUS.js";
4
+ import { useLocales as Be, localizedValue as Ie, toast as y, confirm as De, WxAction as X, WxSkeleton as Ee, WxCard as $, WxEmpty as Re, WxDescriptions as Y, WxDescriptionsItem as S, WxFileCard as Ue, WxAlert as Z, WxTabs as je, WxTab as V, WxTimeline as Fe, WxTimelineItem as Le, WxText as h, WxBadge as R, WxButton as ee, WxSelect as ae } from "@webx-ui/core";
5
+ import { c as Me, u as Oe, d as Pe, _ as He } from "./index-CZWksX_k.js";
6
6
  const Ke = { class: "wx-submission" }, Ge = {
7
7
  key: 1,
8
8
  class: "wx-submission__panes"
9
9
  }, Je = { class: "wx-submission__main" }, Qe = { class: "wx-submission__value" }, Xe = { class: "wx-submission__files" }, Ye = { class: "wx-submission__by" }, Ze = { class: "wx-submission__fields" }, ea = ["href"], aa = {
10
10
  key: 1,
11
11
  class: "wx-submission__detail"
12
- }, ta = { class: "wx-submission__detail" }, la = {
12
+ }, ta = { class: "wx-submission__notification" }, la = { class: "wx-submission__detail" }, sa = { key: 1 }, na = { key: 2 }, ia = { key: 3 }, ua = { key: 4 }, oa = {
13
13
  key: 5,
14
14
  class: "wx-submission__recipients"
15
- }, sa = { key: 6 }, na = { class: "wx-submission__fields" }, ia = {
15
+ }, ra = { class: "wx-submission__detail" }, da = { key: 6 }, ca = { class: "wx-submission__fields" }, pa = {
16
16
  key: 1,
17
17
  class: "wx-submission__recipients"
18
- }, ua = { class: "wx-submission__channel-text" }, oa = { key: 2 }, ra = { class: "wx-submission__aside" }, da = { class: "wx-submission__fields" }, ca = { class: "wx-submission__field" }, pa = { class: "wx-submission__field" }, ma = /* @__PURE__ */ qe({
18
+ }, va = { class: "wx-submission__channel-text" }, fa = { key: 2 }, _a = { class: "wx-submission__aside" }, ma = { class: "wx-submission__fields" }, ba = { class: "wx-submission__field" }, ya = { class: "wx-submission__field" }, ha = /* @__PURE__ */ qe({
19
19
  __name: "SubmissionPage",
20
20
  props: {
21
21
  base: { default: "/inbox" }
22
22
  },
23
23
  setup(te) {
24
- const U = te, j = Ne(), g = Me(j), _ = Te(), S = Ce(), le = Be();
24
+ const U = te, j = Ne(), g = Me(j), _ = Te(), T = Ce(), le = Be();
25
25
  Oe();
26
- const t = J("webx-inbox"), se = J("webx-admin"), w = $e(), u = C(null), A = C([]), F = C([]), B = C(!0), x = p(() => j.can("inbox.update")), k = p(() => Number(_.params.id)), ne = p(() => ({
26
+ const t = J("webx-inbox"), se = J("webx-admin"), w = $e(), u = N(null), A = N([]), F = N([]), B = N(!0), x = c(() => j.can("inbox.update")), k = c(() => Number(_.params.id)), ne = c(() => ({
27
27
  view: typeof _.query.view == "string" ? _.query.view : void 0,
28
28
  search: typeof _.query.search == "string" ? _.query.search : void 0,
29
29
  assignee: typeof _.query.assignee == "string" ? _.query.assignee : void 0
30
- })), T = p(() => ({ path: U.base, query: { ..._.query } })), ie = p(
30
+ })), C = c(() => ({ path: U.base, query: { ..._.query } })), ie = c(
31
31
  () => A.value.map((e) => ({ value: e.id, label: L(e) }))
32
- ), ue = p(
32
+ ), ue = c(
33
33
  () => F.value.map((e) => ({ value: e.id, label: e.name }))
34
- ), L = Pe(), I = p(() => t("panel.submission", { id: String(k.value) })), M = p(() => {
34
+ ), L = Pe(), I = c(() => t("panel.submission", { id: String(k.value) })), M = c(() => {
35
35
  const e = u.value?.form;
36
36
  return e === void 0 ? "" : Ie(e.title ?? {}, le.active.value, e.slug ?? "");
37
- }), O = p(() => (u.value?.values ?? []).find((l) => l.type === "email" && (l.value ?? "") !== "")?.value ?? null), P = p(() => {
37
+ }), O = c(() => (u.value?.values ?? []).find((l) => l.type === "email" && (l.value ?? "") !== "")?.value ?? null), P = c(() => {
38
38
  if (O.value === null) return null;
39
39
  const e = encodeURIComponent(`${M.value} — ${I.value}`);
40
40
  return `mailto:${O.value}?subject=${e}`;
@@ -44,7 +44,7 @@ const Ke = { class: "wx-submission" }, Ge = {
44
44
  try {
45
45
  u.value = await g.submission(k.value, ne.value);
46
46
  } catch (e) {
47
- h.danger(w(e)), S.replace(T.value);
47
+ y.danger(w(e)), T.replace(C.value);
48
48
  } finally {
49
49
  B.value = !1;
50
50
  }
@@ -53,7 +53,7 @@ const Ke = { class: "wx-submission" }, Ge = {
53
53
  try {
54
54
  A.value = await g.statuses(), x.value && (F.value = await g.recipients());
55
55
  } catch (e) {
56
- h.danger(w(e));
56
+ y.danger(w(e));
57
57
  }
58
58
  }
59
59
  Se(k, () => {
@@ -61,9 +61,9 @@ const Ke = { class: "wx-submission" }, Ge = {
61
61
  }, { immediate: !0 }), oe();
62
62
  async function H(e) {
63
63
  try {
64
- u.value = await g.saveSubmission(k.value, e), h.success(t("panel.saved"));
64
+ u.value = await g.saveSubmission(k.value, e), y.success(t("panel.saved"));
65
65
  } catch (r) {
66
- h.danger(w(r)), await D();
66
+ y.danger(w(r)), await D();
67
67
  }
68
68
  }
69
69
  function re(e) {
@@ -72,7 +72,7 @@ const Ke = { class: "wx-submission" }, Ge = {
72
72
  function de(e) {
73
73
  H({ assignee_id: typeof e == "number" ? e : null });
74
74
  }
75
- const ce = p(() => {
75
+ const ce = c(() => {
76
76
  const e = [];
77
77
  return P.value && e.push({
78
78
  key: "reply",
@@ -88,7 +88,7 @@ const Ke = { class: "wx-submission" }, Ge = {
88
88
  label: t("panel.mark-unread"),
89
89
  menu: !0,
90
90
  run: () => {
91
- _e();
91
+ me();
92
92
  }
93
93
  },
94
94
  {
@@ -113,24 +113,24 @@ const Ke = { class: "wx-submission" }, Ge = {
113
113
  });
114
114
  async function E() {
115
115
  try {
116
- u.value = await g.notifySubmission(k.value), h.success(t("panel.notify-sent-again"));
116
+ u.value = await g.notifySubmission(k.value), y.success(t("panel.notify-sent-again"));
117
117
  } catch (e) {
118
- h.danger(w(e));
118
+ y.danger(w(e));
119
119
  }
120
120
  }
121
- const b = p(() => u.value?.notification ?? null);
121
+ const m = c(() => u.value?.notification ?? null);
122
122
  function pe(e) {
123
123
  return t(`panel.notify-recipient-${e}`);
124
124
  }
125
- const q = p(() => u.value?.channels ?? null), me = p(() => (q.value ?? []).some((e) => e.status === "failed")), ve = p(() => (q.value ?? []).some((e) => e.retryable));
126
- function fe(e) {
125
+ const q = c(() => u.value?.channels ?? null), ve = c(() => (q.value ?? []).some((e) => e.status === "failed")), fe = c(() => (q.value ?? []).some((e) => e.retryable));
126
+ function _e(e) {
127
127
  return e.status === "failed" ? "danger" : e.status === "sent" ? "success" : e.status === "skipped" ? "warning" : "default";
128
128
  }
129
- async function _e() {
129
+ async function me() {
130
130
  try {
131
- await g.massSubmissions({ ids: [k.value], action: "unread" }), S.push(T.value);
131
+ await g.massSubmissions({ ids: [k.value], action: "unread" }), T.push(C.value);
132
132
  } catch (e) {
133
- h.danger(w(e));
133
+ y.danger(w(e));
134
134
  }
135
135
  }
136
136
  async function be() {
@@ -142,19 +142,19 @@ const Ke = { class: "wx-submission" }, Ge = {
142
142
  tone: "danger"
143
143
  }))
144
144
  try {
145
- await g.removeSubmission(k.value), h.success(t("panel.deleted")), S.push(T.value);
145
+ await g.removeSubmission(k.value), y.success(t("panel.deleted")), T.push(C.value);
146
146
  } catch (r) {
147
- h.danger(w(r));
147
+ y.danger(w(r));
148
148
  }
149
149
  }
150
150
  function K(e) {
151
- e !== null && S.push({ path: `${U.base}/submissions/${e}`, query: { ..._.query } });
151
+ e !== null && T.push({ path: `${U.base}/submissions/${e}`, query: { ..._.query } });
152
152
  }
153
153
  function ye(e) {
154
154
  const r = A.value.find((l) => l.key === e);
155
155
  return r === void 0 ? e : L(r);
156
156
  }
157
- const he = p(
157
+ const he = c(
158
158
  () => u.value?.events?.some((e) => e.type === "no_recipients") ?? !1
159
159
  );
160
160
  function ge(e) {
@@ -203,23 +203,23 @@ const Ke = { class: "wx-submission" }, Ge = {
203
203
  function ke(e) {
204
204
  return `${Math.max(1, Math.round(e / 1024))} KB`;
205
205
  }
206
- const we = p(() => {
206
+ const we = c(() => {
207
207
  const e = u.value?.meta ?? {}, r = [];
208
208
  typeof e.page == "string" && e.page !== "" && r.push({ label: t("panel.meta-page"), value: e.page, link: !0 });
209
209
  const l = u.value?.placement;
210
210
  typeof l == "string" && l !== "" && r.push({ label: t("panel.meta-placement"), value: l }), typeof e.referrer == "string" && e.referrer !== "" && r.push({ label: t("panel.meta-referrer"), value: e.referrer, link: !0 });
211
- for (const [ze, We] of Object.entries(e.utm ?? {}))
212
- r.push({ label: ze, value: String(We) });
211
+ for (const [We, ze] of Object.entries(e.utm ?? {}))
212
+ r.push({ label: We, value: String(ze) });
213
213
  return typeof e.locale == "string" && e.locale !== "" && r.push({ label: t("panel.meta-locale"), value: e.locale }), typeof e.ip == "string" && e.ip !== "" && r.push({ label: t("panel.meta-ip"), value: e.ip }), typeof e.user_agent == "string" && e.user_agent !== "" && r.push({ label: t("panel.meta-agent"), value: e.user_agent }), r;
214
214
  });
215
- return (e, r) => (n(), m("div", Ke, [
215
+ return (e, r) => (s(), d("div", Ke, [
216
216
  i(a(Ve), {
217
217
  title: I.value,
218
218
  subtitle: M.value,
219
- back: T.value,
219
+ back: C.value,
220
220
  actions: ce.value
221
221
  }, {
222
- extra: s(() => [
222
+ extra: n(() => [
223
223
  i(a(X), {
224
224
  icon: "chevron-left",
225
225
  size: "lg",
@@ -237,31 +237,31 @@ const Ke = { class: "wx-submission" }, Ge = {
237
237
  ]),
238
238
  _: 1
239
239
  }, 8, ["title", "subtitle", "back", "actions"]),
240
- B.value ? (n(), c(a(Ee), {
240
+ B.value ? (s(), p(a(Ee), {
241
241
  key: 0,
242
242
  rows: 6
243
- })) : u.value ? (n(), m("div", Ge, [
244
- f("div", Je, [
245
- i(a(N), {
243
+ })) : u.value ? (s(), d("div", Ge, [
244
+ v("div", Je, [
245
+ i(a($), {
246
246
  title: a(t)("panel.answers")
247
247
  }, {
248
- default: s(() => [
249
- u.value.values.length === 0 ? (n(), c(a(Re), {
248
+ default: n(() => [
249
+ u.value.values.length === 0 ? (s(), p(a(Re), {
250
250
  key: 0,
251
251
  size: "sm",
252
252
  description: a(t)("panel.no-answers")
253
- }, null, 8, ["description"])) : (n(), c(a(Y), {
253
+ }, null, 8, ["description"])) : (s(), p(a(Y), {
254
254
  key: 1,
255
255
  columns: 1,
256
256
  layout: "vertical"
257
257
  }, {
258
- default: s(() => [
259
- (n(!0), m(z, null, W(u.value.values, (l) => (n(), c(a($), {
258
+ default: n(() => [
259
+ (s(!0), d(W, null, z(u.value.values, (l) => (s(), p(a(S), {
260
260
  key: l.id,
261
261
  label: l.label ?? l.name
262
262
  }, {
263
- default: s(() => [
264
- f("p", Qe, o(l.value || "—"), 1)
263
+ default: n(() => [
264
+ v("p", Qe, o(l.value || "—"), 1)
265
265
  ]),
266
266
  _: 2
267
267
  }, 1032, ["label"]))), 128))
@@ -271,13 +271,13 @@ const Ke = { class: "wx-submission" }, Ge = {
271
271
  ]),
272
272
  _: 1
273
273
  }, 8, ["title"]),
274
- u.value.files.length > 0 ? (n(), c(a(N), {
274
+ u.value.files.length > 0 ? (s(), p(a($), {
275
275
  key: 0,
276
276
  title: a(t)("panel.attachments")
277
277
  }, {
278
- default: s(() => [
279
- f("div", Xe, [
280
- (n(!0), m(z, null, W(u.value.files, (l) => (n(), c(a(Ue), {
278
+ default: n(() => [
279
+ v("div", Xe, [
280
+ (s(!0), d(W, null, z(u.value.files, (l) => (s(), p(a(Ue), {
281
281
  key: l.id,
282
282
  name: l.name,
283
283
  type: l.mime ?? void 0,
@@ -285,33 +285,33 @@ const Ke = { class: "wx-submission" }, Ge = {
285
285
  "download-label": a(t)("panel.download"),
286
286
  size: "sm"
287
287
  }, {
288
- meta: s(() => [
289
- d(o(ke(l.size)), 1)
288
+ meta: n(() => [
289
+ f(o(ke(l.size)), 1)
290
290
  ]),
291
291
  _: 2
292
292
  }, 1032, ["name", "type", "download-url", "download-label"]))), 128))
293
293
  ])
294
294
  ]),
295
295
  _: 1
296
- }, 8, ["title"])) : y("", !0),
297
- me.value ? (n(), c(a(Z), {
296
+ }, 8, ["title"])) : b("", !0),
297
+ ve.value ? (s(), p(a(Z), {
298
298
  key: 1,
299
299
  type: "warning",
300
300
  closable: !1,
301
301
  title: a(t)("panel.channels-failed")
302
- }, null, 8, ["title"])) : y("", !0),
303
- i(a(N), { class: "wx-submission__more" }, {
304
- default: s(() => [
302
+ }, null, 8, ["title"])) : b("", !0),
303
+ i(a($), { class: "wx-submission__more" }, {
304
+ default: n(() => [
305
305
  i(a(je), {
306
306
  variant: "pill",
307
307
  "aria-label": I.value
308
308
  }, {
309
- default: s(() => [
309
+ default: n(() => [
310
310
  i(a(V), {
311
311
  value: "notes",
312
312
  label: a(se)("notes.title")
313
313
  }, {
314
- default: s(() => [
314
+ default: n(() => [
315
315
  i(a(Ae), {
316
316
  id: u.value.id,
317
317
  type: "inbox_submission",
@@ -326,30 +326,30 @@ const Ke = { class: "wx-submission" }, Ge = {
326
326
  value: "log",
327
327
  label: a(t)("panel.log")
328
328
  }, {
329
- default: s(() => [
329
+ default: n(() => [
330
330
  i(a(Fe), { size: "sm" }, {
331
- default: s(() => [
332
- (n(!0), m(z, null, W(u.value.events, (l) => (n(), c(a(Le), {
331
+ default: n(() => [
332
+ (s(!0), d(W, null, z(u.value.events, (l) => (s(), p(a(Le), {
333
333
  key: l.id
334
334
  }, {
335
- default: s(() => [
336
- i(a(v), {
335
+ default: n(() => [
336
+ i(a(h), {
337
337
  size: "sm",
338
338
  as: "p",
339
339
  class: "wx-submission__event"
340
340
  }, {
341
- default: s(() => [
342
- d(o(ge(l)), 1)
341
+ default: n(() => [
342
+ f(o(ge(l)), 1)
343
343
  ]),
344
344
  _: 2
345
345
  }, 1024),
346
- f("p", Ye, [
347
- i(a(v), {
346
+ v("p", Ye, [
347
+ i(a(h), {
348
348
  size: "sm",
349
349
  tone: "muted"
350
350
  }, {
351
- default: s(() => [
352
- d(o(l.author?.name ?? a(t)("panel.system")), 1)
351
+ default: n(() => [
352
+ f(o(l.author?.name ?? a(t)("panel.system")), 1)
353
353
  ]),
354
354
  _: 2
355
355
  }, 1024),
@@ -370,18 +370,18 @@ const Ke = { class: "wx-submission" }, Ge = {
370
370
  value: "details",
371
371
  label: a(t)("panel.details")
372
372
  }, {
373
- default: s(() => [
374
- f("div", Ze, [
373
+ default: n(() => [
374
+ v("div", Ze, [
375
375
  i(a(Y), {
376
376
  columns: 1,
377
377
  layout: "vertical",
378
378
  size: "sm"
379
379
  }, {
380
- default: s(() => [
381
- i(a($), {
380
+ default: n(() => [
381
+ i(a(S), {
382
382
  label: a(t)("panel.received")
383
383
  }, {
384
- default: s(() => [
384
+ default: n(() => [
385
385
  i(a(Q), {
386
386
  value: u.value.created_at,
387
387
  tone: "default"
@@ -389,195 +389,163 @@ const Ke = { class: "wx-submission" }, Ge = {
389
389
  ]),
390
390
  _: 1
391
391
  }, 8, ["label"]),
392
- i(a($), {
392
+ i(a(S), {
393
393
  label: a(t)("panel.meta-source")
394
394
  }, {
395
- default: s(() => [
395
+ default: n(() => [
396
396
  i(a(R), {
397
397
  type: u.value.source === "panel" ? "info" : "default"
398
398
  }, {
399
- default: s(() => [
400
- d(o(u.value.source === "panel" ? a(t)("panel.source-panel") : a(t)("panel.source-web")), 1)
399
+ default: n(() => [
400
+ f(o(u.value.source === "panel" ? a(t)("panel.source-panel") : a(t)("panel.source-web")), 1)
401
401
  ]),
402
402
  _: 1
403
403
  }, 8, ["type"])
404
404
  ]),
405
405
  _: 1
406
406
  }, 8, ["label"]),
407
- (n(!0), m(z, null, W(we.value, (l) => (n(), c(a($), {
407
+ (s(!0), d(W, null, z(we.value, (l) => (s(), p(a(S), {
408
408
  key: l.label,
409
409
  label: l.label
410
410
  }, {
411
- default: s(() => [
412
- l.link ? (n(), m("a", {
411
+ default: n(() => [
412
+ l.link ? (s(), d("a", {
413
413
  key: 0,
414
414
  href: l.value,
415
415
  target: "_blank",
416
416
  rel: "noreferrer"
417
- }, o(l.value), 9, ea)) : (n(), m("span", aa, o(l.value), 1))
417
+ }, o(l.value), 9, ea)) : (s(), d("span", aa, o(l.value), 1))
418
418
  ]),
419
419
  _: 2
420
- }, 1032, ["label"]))), 128))
421
- ]),
422
- _: 1
423
- }),
424
- b.value?.state === "failed" ? (n(), c(a(Z), {
425
- key: 0,
426
- type: "warning",
427
- closable: !1,
428
- title: a(t)("panel.notify-failed")
429
- }, {
430
- default: s(() => [
431
- f("span", ta, o(b.value.error), 1)
432
- ]),
433
- _: 1
434
- }, 8, ["title"])) : b.value?.state === "queued" ? (n(), c(a(v), {
435
- key: 1,
436
- size: "sm",
437
- tone: "muted"
438
- }, {
439
- default: s(() => [
440
- d(o(a(t)("panel.notify-queued")), 1)
441
- ]),
442
- _: 1
443
- })) : b.value?.state === "delivered" ? (n(), c(a(v), {
444
- key: 2,
445
- size: "sm",
446
- tone: "muted"
447
- }, {
448
- default: s(() => [
449
- d(o(a(t)("panel.notified")), 1)
450
- ]),
451
- _: 1
452
- })) : he.value ? (n(), c(a(v), {
453
- key: 3,
454
- size: "sm",
455
- tone: "muted"
456
- }, {
457
- default: s(() => [
458
- d(o(a(t)("panel.notified-nobody")), 1)
459
- ]),
460
- _: 1
461
- })) : (n(), c(a(v), {
462
- key: 4,
463
- size: "sm",
464
- tone: "muted"
465
- }, {
466
- default: s(() => [
467
- d(o(a(t)("panel.not-notified")), 1)
468
- ]),
469
- _: 1
470
- })),
471
- b.value && b.value.recipients.length > 0 ? (n(), m("ul", la, [
472
- (n(!0), m(z, null, W(b.value.recipients, (l) => (n(), m("li", {
473
- key: l.address
474
- }, [
475
- i(a(v), { size: "sm" }, {
476
- default: s(() => [
477
- d(o(l.address), 1)
478
- ]),
479
- _: 2
480
- }, 1024),
481
- i(a(R), {
482
- type: l.state === "failed" ? "danger" : l.state === "delivered" ? "success" : "default"
420
+ }, 1032, ["label"]))), 128)),
421
+ i(a(S), {
422
+ label: a(t)("panel.tab-notifications")
483
423
  }, {
484
- default: s(() => [
485
- d(o(pe(l.state)), 1)
424
+ default: n(() => [
425
+ v("div", ta, [
426
+ m.value?.state === "failed" ? (s(), p(a(Z), {
427
+ key: 0,
428
+ type: "warning",
429
+ closable: !1,
430
+ title: a(t)("panel.notify-failed")
431
+ }, {
432
+ default: n(() => [
433
+ v("span", la, o(m.value.error), 1)
434
+ ]),
435
+ _: 1
436
+ }, 8, ["title"])) : m.value?.state === "queued" ? (s(), d("span", sa, o(a(t)("panel.notify-queued")), 1)) : m.value?.state === "delivered" ? (s(), d("span", na, o(a(t)("panel.notified")), 1)) : he.value ? (s(), d("span", ia, o(a(t)("panel.notified-nobody")), 1)) : (s(), d("span", ua, o(a(t)("panel.not-notified")), 1)),
437
+ m.value && m.value.recipients.length > 0 ? (s(), d("ul", oa, [
438
+ (s(!0), d(W, null, z(m.value.recipients, (l) => (s(), d("li", {
439
+ key: l.address
440
+ }, [
441
+ v("span", ra, o(l.address), 1),
442
+ i(a(R), {
443
+ type: l.state === "failed" ? "danger" : l.state === "delivered" ? "success" : "default"
444
+ }, {
445
+ default: n(() => [
446
+ f(o(pe(l.state)), 1)
447
+ ]),
448
+ _: 2
449
+ }, 1032, ["type"])
450
+ ]))), 128))
451
+ ])) : b("", !0),
452
+ x.value && (m.value?.state === "failed" || m.value?.state === "queued") ? (s(), d("div", da, [
453
+ i(a(ee), {
454
+ size: "sm",
455
+ onClick: E
456
+ }, {
457
+ default: n(() => [
458
+ f(o(a(t)("panel.notify-again")), 1)
459
+ ]),
460
+ _: 1
461
+ })
462
+ ])) : b("", !0)
463
+ ])
486
464
  ]),
487
- _: 2
488
- }, 1032, ["type"])
489
- ]))), 128))
490
- ])) : y("", !0),
491
- x.value && (b.value?.state === "failed" || b.value?.state === "queued") ? (n(), m("div", sa, [
492
- i(a(ee), {
493
- size: "sm",
494
- onClick: E
495
- }, {
496
- default: s(() => [
497
- d(o(a(t)("panel.notify-again")), 1)
498
- ]),
499
- _: 1
500
- })
501
- ])) : y("", !0)
465
+ _: 1
466
+ }, 8, ["label"])
467
+ ]),
468
+ _: 1
469
+ })
502
470
  ])
503
471
  ]),
504
472
  _: 1
505
473
  }, 8, ["label"]),
506
- q.value ? (n(), c(a(V), {
474
+ q.value ? (s(), p(a(V), {
507
475
  key: 0,
508
476
  value: "channels",
509
477
  label: a(t)("panel.channels")
510
478
  }, {
511
- default: s(() => [
512
- f("div", na, [
513
- q.value.length === 0 ? (n(), c(a(v), {
479
+ default: n(() => [
480
+ v("div", ca, [
481
+ q.value.length === 0 ? (s(), p(a(h), {
514
482
  key: 0,
515
483
  size: "sm",
516
484
  tone: "muted"
517
485
  }, {
518
- default: s(() => [
519
- d(o(a(t)("panel.channels-none")), 1)
486
+ default: n(() => [
487
+ f(o(a(t)("panel.channels-none")), 1)
520
488
  ]),
521
489
  _: 1
522
- })) : (n(), m("ul", ia, [
523
- (n(!0), m(z, null, W(q.value, (l) => (n(), m("li", {
490
+ })) : (s(), d("ul", pa, [
491
+ (s(!0), d(W, null, z(q.value, (l) => (s(), d("li", {
524
492
  key: l.id,
525
493
  class: "wx-submission__channel"
526
494
  }, [
527
- f("div", ua, [
528
- i(a(v), { size: "sm" }, {
529
- default: s(() => [
530
- d(o(l.channel), 1)
495
+ v("div", va, [
496
+ i(a(h), { size: "sm" }, {
497
+ default: n(() => [
498
+ f(o(l.channel), 1)
531
499
  ]),
532
500
  _: 2
533
501
  }, 1024),
534
- l.recipient !== "" ? (n(), c(a(v), {
502
+ l.recipient !== "" ? (s(), p(a(h), {
535
503
  key: 0,
536
504
  size: "sm",
537
505
  tone: "muted"
538
506
  }, {
539
- default: s(() => [
540
- d(o(l.recipient_label ?? l.recipient), 1)
507
+ default: n(() => [
508
+ f(o(l.recipient_label ?? l.recipient), 1)
541
509
  ]),
542
510
  _: 2
543
- }, 1024)) : y("", !0),
544
- l.error ?? l.reason_label ? (n(), c(a(v), {
511
+ }, 1024)) : b("", !0),
512
+ l.error ?? l.reason_label ? (s(), p(a(h), {
545
513
  key: 1,
546
514
  size: "sm",
547
515
  tone: "muted",
548
516
  class: "wx-submission__detail"
549
517
  }, {
550
- default: s(() => [
551
- d(o(l.error ?? l.reason_label), 1)
518
+ default: n(() => [
519
+ f(o(l.error ?? l.reason_label), 1)
552
520
  ]),
553
521
  _: 2
554
- }, 1024)) : y("", !0)
522
+ }, 1024)) : b("", !0)
555
523
  ]),
556
524
  i(a(R), {
557
- type: fe(l)
525
+ type: _e(l)
558
526
  }, {
559
- default: s(() => [
560
- d(o(l.status_label), 1)
527
+ default: n(() => [
528
+ f(o(l.status_label), 1)
561
529
  ]),
562
530
  _: 2
563
531
  }, 1032, ["type"])
564
532
  ]))), 128))
565
533
  ])),
566
- x.value && ve.value ? (n(), m("div", oa, [
534
+ x.value && fe.value ? (s(), d("div", fa, [
567
535
  i(a(ee), {
568
536
  size: "sm",
569
537
  onClick: E
570
538
  }, {
571
- default: s(() => [
572
- d(o(a(t)("panel.notify-again")), 1)
539
+ default: n(() => [
540
+ f(o(a(t)("panel.notify-again")), 1)
573
541
  ]),
574
542
  _: 1
575
543
  })
576
- ])) : y("", !0)
544
+ ])) : b("", !0)
577
545
  ])
578
546
  ]),
579
547
  _: 1
580
- }, 8, ["label"])) : y("", !0)
548
+ }, 8, ["label"])) : b("", !0)
581
549
  ]),
582
550
  _: 1
583
551
  }, 8, ["aria-label"])
@@ -585,17 +553,17 @@ const Ke = { class: "wx-submission" }, Ge = {
585
553
  _: 1
586
554
  })
587
555
  ]),
588
- f("aside", ra, [
589
- i(a(N), null, {
590
- default: s(() => [
591
- f("div", da, [
592
- f("label", ca, [
593
- i(a(v), {
556
+ v("aside", _a, [
557
+ i(a($), null, {
558
+ default: n(() => [
559
+ v("div", ma, [
560
+ v("label", ba, [
561
+ i(a(h), {
594
562
  size: "sm",
595
563
  tone: "muted"
596
564
  }, {
597
- default: s(() => [
598
- d(o(a(t)("panel.status")), 1)
565
+ default: n(() => [
566
+ f(o(a(t)("panel.status")), 1)
599
567
  ]),
600
568
  _: 1
601
569
  }),
@@ -606,13 +574,13 @@ const Ke = { class: "wx-submission" }, Ge = {
606
574
  "onUpdate:modelValue": re
607
575
  }, null, 8, ["model-value", "options", "disabled"])
608
576
  ]),
609
- f("label", pa, [
610
- i(a(v), {
577
+ v("label", ya, [
578
+ i(a(h), {
611
579
  size: "sm",
612
580
  tone: "muted"
613
581
  }, {
614
- default: s(() => [
615
- d(o(a(t)("panel.assignee")), 1)
582
+ default: n(() => [
583
+ f(o(a(t)("panel.assignee")), 1)
616
584
  ]),
617
585
  _: 1
618
586
  }),
@@ -630,11 +598,11 @@ const Ke = { class: "wx-submission" }, Ge = {
630
598
  _: 1
631
599
  })
632
600
  ])
633
- ])) : y("", !0)
601
+ ])) : b("", !0)
634
602
  ]));
635
603
  }
636
- }), ha = /* @__PURE__ */ He(ma, [["__scopeId", "data-v-89eacc36"]]);
604
+ }), za = /* @__PURE__ */ He(ha, [["__scopeId", "data-v-aeaabeff"]]);
637
605
  export {
638
- ha as default
606
+ za as default
639
607
  };
640
- //# sourceMappingURL=SubmissionPage-DVNKYpWH.js.map
608
+ //# sourceMappingURL=SubmissionPage-BUd7Gd7d.js.map