@webx-ui/module-inbox 0.8.1 → 0.9.0
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/FieldDialog.d.ts +5 -1
- package/dist/FormEditorPage-HsbIZcG_.js +843 -0
- package/dist/FormEditorPage-HsbIZcG_.js.map +1 -0
- package/dist/FormNotifications.d.ts +19 -13
- package/dist/{InboxPage-CCYXnZed.js → InboxPage-Dd_8TGGg.js} +2 -2
- package/dist/{InboxPage-CCYXnZed.js.map → InboxPage-Dd_8TGGg.js.map} +1 -1
- package/dist/{StatusesPage-Mra8TB7G.js → StatusesPage-DKJmpZoG.js} +2 -2
- package/dist/{StatusesPage-Mra8TB7G.js.map → StatusesPage-DKJmpZoG.js.map} +1 -1
- package/dist/{SubmissionPage-DVNKYpWH.js → SubmissionPage-BoE9jEhj.js} +176 -208
- package/dist/SubmissionPage-BoE9jEhj.js.map +1 -0
- package/dist/{index-BQj2UlUS.js → index-Dxbb2lUM.js} +691 -641
- package/dist/index-Dxbb2lUM.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +16 -3
- package/package.json +3 -3
- package/dist/FormEditorPage-BoHzlFfz.js +0 -786
- package/dist/FormEditorPage-BoHzlFfz.js.map +0 -1
- package/dist/SubmissionPage-DVNKYpWH.js.map +0 -1
- package/dist/index-BQj2UlUS.js.map +0 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { defineComponent as qe, ref as
|
|
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
|
|
5
|
-
import { c as Me, u as Oe, d as Pe, _ as He } from "./index-
|
|
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-Dxbb2lUM.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-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(),
|
|
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 =
|
|
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
|
-
})),
|
|
30
|
+
})), C = c(() => ({ path: U.base, query: { ..._.query } })), ie = c(
|
|
31
31
|
() => A.value.map((e) => ({ value: e.id, label: L(e) }))
|
|
32
|
-
), ue =
|
|
32
|
+
), ue = c(
|
|
33
33
|
() => F.value.map((e) => ({ value: e.id, label: e.name }))
|
|
34
|
-
), L = Pe(), I =
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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),
|
|
64
|
+
u.value = await g.saveSubmission(k.value, e), y.success(t("panel.saved"));
|
|
65
65
|
} catch (r) {
|
|
66
|
-
|
|
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 =
|
|
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
|
-
|
|
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),
|
|
116
|
+
u.value = await g.notifySubmission(k.value), y.success(t("panel.notify-sent-again"));
|
|
117
117
|
} catch (e) {
|
|
118
|
-
|
|
118
|
+
y.danger(w(e));
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
const
|
|
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 =
|
|
126
|
-
function
|
|
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
|
|
129
|
+
async function me() {
|
|
130
130
|
try {
|
|
131
|
-
await g.massSubmissions({ ids: [k.value], action: "unread" }),
|
|
131
|
+
await g.massSubmissions({ ids: [k.value], action: "unread" }), T.push(C.value);
|
|
132
132
|
} catch (e) {
|
|
133
|
-
|
|
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),
|
|
145
|
+
await g.removeSubmission(k.value), y.success(t("panel.deleted")), T.push(C.value);
|
|
146
146
|
} catch (r) {
|
|
147
|
-
|
|
147
|
+
y.danger(w(r));
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
function K(e) {
|
|
151
|
-
e !== null &&
|
|
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 =
|
|
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 =
|
|
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 [
|
|
212
|
-
r.push({ label:
|
|
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) => (
|
|
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:
|
|
219
|
+
back: C.value,
|
|
220
220
|
actions: ce.value
|
|
221
221
|
}, {
|
|
222
|
-
extra:
|
|
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 ? (
|
|
240
|
+
B.value ? (s(), p(a(Ee), {
|
|
241
241
|
key: 0,
|
|
242
242
|
rows: 6
|
|
243
|
-
})) : u.value ? (
|
|
244
|
-
|
|
245
|
-
i(a(
|
|
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:
|
|
249
|
-
u.value.values.length === 0 ? (
|
|
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"])) : (
|
|
253
|
+
}, null, 8, ["description"])) : (s(), p(a(Y), {
|
|
254
254
|
key: 1,
|
|
255
255
|
columns: 1,
|
|
256
256
|
layout: "vertical"
|
|
257
257
|
}, {
|
|
258
|
-
default:
|
|
259
|
-
(
|
|
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:
|
|
264
|
-
|
|
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 ? (
|
|
274
|
+
u.value.files.length > 0 ? (s(), p(a($), {
|
|
275
275
|
key: 0,
|
|
276
276
|
title: a(t)("panel.attachments")
|
|
277
277
|
}, {
|
|
278
|
-
default:
|
|
279
|
-
|
|
280
|
-
(
|
|
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:
|
|
289
|
-
|
|
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"])) :
|
|
297
|
-
|
|
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"])) :
|
|
303
|
-
i(a(
|
|
304
|
-
default:
|
|
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:
|
|
309
|
+
default: n(() => [
|
|
310
310
|
i(a(V), {
|
|
311
311
|
value: "notes",
|
|
312
312
|
label: a(se)("notes.title")
|
|
313
313
|
}, {
|
|
314
|
-
default:
|
|
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:
|
|
329
|
+
default: n(() => [
|
|
330
330
|
i(a(Fe), { size: "sm" }, {
|
|
331
|
-
default:
|
|
332
|
-
(
|
|
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:
|
|
336
|
-
i(a(
|
|
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:
|
|
342
|
-
|
|
341
|
+
default: n(() => [
|
|
342
|
+
f(o(ge(l)), 1)
|
|
343
343
|
]),
|
|
344
344
|
_: 2
|
|
345
345
|
}, 1024),
|
|
346
|
-
|
|
347
|
-
i(a(
|
|
346
|
+
v("p", Ye, [
|
|
347
|
+
i(a(h), {
|
|
348
348
|
size: "sm",
|
|
349
349
|
tone: "muted"
|
|
350
350
|
}, {
|
|
351
|
-
default:
|
|
352
|
-
|
|
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:
|
|
374
|
-
|
|
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:
|
|
381
|
-
i(a(
|
|
380
|
+
default: n(() => [
|
|
381
|
+
i(a(S), {
|
|
382
382
|
label: a(t)("panel.received")
|
|
383
383
|
}, {
|
|
384
|
-
default:
|
|
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:
|
|
395
|
+
default: n(() => [
|
|
396
396
|
i(a(R), {
|
|
397
397
|
type: u.value.source === "panel" ? "info" : "default"
|
|
398
398
|
}, {
|
|
399
|
-
default:
|
|
400
|
-
|
|
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
|
-
(
|
|
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:
|
|
412
|
-
l.link ? (
|
|
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)) : (
|
|
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
|
-
|
|
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:
|
|
485
|
-
|
|
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
|
-
_:
|
|
488
|
-
},
|
|
489
|
-
])
|
|
490
|
-
|
|
491
|
-
|
|
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 ? (
|
|
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:
|
|
512
|
-
|
|
513
|
-
q.value.length === 0 ? (
|
|
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:
|
|
519
|
-
|
|
486
|
+
default: n(() => [
|
|
487
|
+
f(o(a(t)("panel.channels-none")), 1)
|
|
520
488
|
]),
|
|
521
489
|
_: 1
|
|
522
|
-
})) : (
|
|
523
|
-
(
|
|
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
|
-
|
|
528
|
-
i(a(
|
|
529
|
-
default:
|
|
530
|
-
|
|
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 !== "" ? (
|
|
502
|
+
l.recipient !== "" ? (s(), p(a(h), {
|
|
535
503
|
key: 0,
|
|
536
504
|
size: "sm",
|
|
537
505
|
tone: "muted"
|
|
538
506
|
}, {
|
|
539
|
-
default:
|
|
540
|
-
|
|
507
|
+
default: n(() => [
|
|
508
|
+
f(o(l.recipient_label ?? l.recipient), 1)
|
|
541
509
|
]),
|
|
542
510
|
_: 2
|
|
543
|
-
}, 1024)) :
|
|
544
|
-
l.error ?? l.reason_label ? (
|
|
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:
|
|
551
|
-
|
|
518
|
+
default: n(() => [
|
|
519
|
+
f(o(l.error ?? l.reason_label), 1)
|
|
552
520
|
]),
|
|
553
521
|
_: 2
|
|
554
|
-
}, 1024)) :
|
|
522
|
+
}, 1024)) : b("", !0)
|
|
555
523
|
]),
|
|
556
524
|
i(a(R), {
|
|
557
|
-
type:
|
|
525
|
+
type: _e(l)
|
|
558
526
|
}, {
|
|
559
|
-
default:
|
|
560
|
-
|
|
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 &&
|
|
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:
|
|
572
|
-
|
|
539
|
+
default: n(() => [
|
|
540
|
+
f(o(a(t)("panel.notify-again")), 1)
|
|
573
541
|
]),
|
|
574
542
|
_: 1
|
|
575
543
|
})
|
|
576
|
-
])) :
|
|
544
|
+
])) : b("", !0)
|
|
577
545
|
])
|
|
578
546
|
]),
|
|
579
547
|
_: 1
|
|
580
|
-
}, 8, ["label"])) :
|
|
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
|
-
|
|
589
|
-
i(a(
|
|
590
|
-
default:
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
i(a(
|
|
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:
|
|
598
|
-
|
|
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
|
-
|
|
610
|
-
i(a(
|
|
577
|
+
v("label", ya, [
|
|
578
|
+
i(a(h), {
|
|
611
579
|
size: "sm",
|
|
612
580
|
tone: "muted"
|
|
613
581
|
}, {
|
|
614
|
-
default:
|
|
615
|
-
|
|
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
|
-
])) :
|
|
601
|
+
])) : b("", !0)
|
|
634
602
|
]));
|
|
635
603
|
}
|
|
636
|
-
}),
|
|
604
|
+
}), za = /* @__PURE__ */ He(ha, [["__scopeId", "data-v-aeaabeff"]]);
|
|
637
605
|
export {
|
|
638
|
-
|
|
606
|
+
za as default
|
|
639
607
|
};
|
|
640
|
-
//# sourceMappingURL=SubmissionPage-
|
|
608
|
+
//# sourceMappingURL=SubmissionPage-BoE9jEhj.js.map
|