@webx-ui/module-inbox 0.11.5 → 0.12.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/FieldCondition.d.ts +24 -0
- package/dist/FieldDialog.d.ts +6 -0
- package/dist/{FormEditorPage-DC5AjYv6.js → FormEditorPage-BsJTI_wN.js} +172 -171
- package/dist/FormEditorPage-BsJTI_wN.js.map +1 -0
- package/dist/FormGeneral.d.ts +2 -2
- package/dist/{InboxPage-D20_MKcX.js → InboxPage-D1j4r5Wf.js} +52 -51
- package/dist/InboxPage-D1j4r5Wf.js.map +1 -0
- package/dist/{StatusesPage-hBgS8sYt.js → StatusesPage-4pt80oR1.js} +47 -46
- package/dist/StatusesPage-4pt80oR1.js.map +1 -0
- package/dist/{SubmissionPage-3Fhny2qD.js → SubmissionPage-DyygefM1.js} +137 -135
- package/dist/SubmissionPage-DyygefM1.js.map +1 -0
- package/dist/conditions.d.ts +39 -0
- package/dist/index-CAa0K6Q6.js +2768 -0
- package/dist/index-CAa0K6Q6.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/steps.d.ts +18 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +32 -2
- package/package.json +3 -3
- package/dist/FormEditorPage-DC5AjYv6.js.map +0 -1
- package/dist/InboxPage-D20_MKcX.js.map +0 -1
- package/dist/StatusesPage-hBgS8sYt.js.map +0 -1
- package/dist/SubmissionPage-3Fhny2qD.js.map +0 -1
- package/dist/index-C_zPRhNm.js +0 -1807
- package/dist/index-C_zPRhNm.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as qe, ref as $, computed as c, watch as Te, openBlock as n, createElementBlock as d, createVNode as i, unref as a, withCtx as s, createBlock as p, createElementVNode as v, Fragment as w, renderList as z, resolveDynamicComponent as Ce, normalizeClass as $e, toDisplayString as r, createTextVNode as f, createCommentVNode as _ } from "vue";
|
|
2
2
|
import { useRoute as Ne, useRouter as Ve } from "vue-router";
|
|
3
|
-
import { useAdmin as Ae, useTranslate as
|
|
4
|
-
import { useLocales as
|
|
5
|
-
import { c as He, u as Ke, d as Ge, _ as Je } from "./index-
|
|
3
|
+
import { useAdmin as Ae, useTranslate as Z, useErrorText as Be, WxScreenHead as Ie, WxNotes as De, WxDate as ee } from "@webx-ui/module-admin";
|
|
4
|
+
import { useLocales as je, localizedValue as Ee, toast as y, confirm as Oe, WxAction as ae, WxSkeleton as Re, WxCard as N, WxEmpty as Ue, WxDescriptions as te, WxDescriptionsItem as q, WxFileCard as Fe, WxAlert as U, WxTabs as Le, WxTab as V, WxTimeline as Me, WxTimelineItem as Pe, WxText as h, WxBadge as F, WxButton as le, WxSelect as ne } from "@webx-ui/core";
|
|
5
|
+
import { c as He, u as Ke, d as Ge, _ as Je } from "./index-CAa0K6Q6.js";
|
|
6
6
|
const Qe = { class: "wx-submission" }, Xe = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "wx-submission__panes"
|
|
@@ -12,80 +12,80 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
12
12
|
}, na = { class: "wx-submission__notification" }, sa = { class: "wx-submission__detail" }, ia = { key: 1 }, ua = { key: 2 }, oa = { key: 3 }, ra = { key: 4 }, da = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "wx-submission__recipients"
|
|
15
|
-
}, ca = { class: "wx-submission__detail" }, pa = { key: 6 }, fa = { class: "wx-submission__fields" },
|
|
15
|
+
}, ca = { class: "wx-submission__detail" }, pa = { key: 6 }, fa = { class: "wx-submission__fields" }, ma = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "wx-submission__recipients"
|
|
18
|
-
},
|
|
18
|
+
}, va = { class: "wx-submission__channel-text" }, _a = { key: 2 }, ba = { class: "wx-submission__aside" }, ya = { class: "wx-submission__fields" }, ha = { class: "wx-submission__field" }, ga = { class: "wx-submission__field" }, xa = /* @__PURE__ */ qe({
|
|
19
19
|
__name: "SubmissionPage",
|
|
20
20
|
props: {
|
|
21
21
|
base: { default: "/inbox" }
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
23
|
+
setup(se) {
|
|
24
|
+
const L = se, A = Ae(), g = He(A), b = Ne(), T = Ve(), ie = je();
|
|
25
25
|
Ke();
|
|
26
|
-
const l =
|
|
27
|
-
function
|
|
26
|
+
const l = Z("webx-inbox"), ue = Z("webx-admin"), W = Be(), u = $(null), B = $([]), M = $([]), I = $(!0), x = c(() => A.can("inbox.update"));
|
|
27
|
+
function P(e) {
|
|
28
28
|
if (e.type !== "enclosure" || e.field_id !== null) return null;
|
|
29
29
|
const o = e.payload, t = typeof o?.kind == "string" ? o.kind : e.name;
|
|
30
30
|
return A.types[`inbox-enclosure:${t}`]?.component ?? null;
|
|
31
31
|
}
|
|
32
|
-
const k = c(() => Number(b.params.id)),
|
|
32
|
+
const k = c(() => Number(b.params.id)), oe = c(() => ({
|
|
33
33
|
view: typeof b.query.view == "string" ? b.query.view : void 0,
|
|
34
34
|
search: typeof b.query.search == "string" ? b.query.search : void 0,
|
|
35
35
|
assignee: typeof b.query.assignee == "string" ? b.query.assignee : void 0
|
|
36
|
-
})), C = c(() => ({ path:
|
|
37
|
-
() => B.value.map((e) => ({ value: e.id, label:
|
|
38
|
-
),
|
|
39
|
-
() =>
|
|
40
|
-
),
|
|
36
|
+
})), C = c(() => ({ path: L.base, query: { ...b.query } })), re = c(
|
|
37
|
+
() => B.value.map((e) => ({ value: e.id, label: H(e) }))
|
|
38
|
+
), de = c(
|
|
39
|
+
() => M.value.map((e) => ({ value: e.id, label: e.name }))
|
|
40
|
+
), H = Ge(), D = c(() => l("panel.submission", { id: String(k.value) })), K = c(() => {
|
|
41
41
|
const e = u.value?.form;
|
|
42
|
-
return e === void 0 ? "" :
|
|
43
|
-
}),
|
|
44
|
-
if (
|
|
45
|
-
const e = encodeURIComponent(`${
|
|
46
|
-
return `mailto:${
|
|
42
|
+
return e === void 0 ? "" : Ee(e.title ?? {}, ie.active.value, e.slug ?? "");
|
|
43
|
+
}), G = c(() => (u.value?.values ?? []).find((t) => t.type === "email" && (t.value ?? "") !== "")?.value ?? null), J = c(() => {
|
|
44
|
+
if (G.value === null) return null;
|
|
45
|
+
const e = encodeURIComponent(`${K.value} — ${D.value}`);
|
|
46
|
+
return `mailto:${G.value}?subject=${e}`;
|
|
47
47
|
});
|
|
48
|
-
async function
|
|
48
|
+
async function j() {
|
|
49
49
|
I.value = !0;
|
|
50
50
|
try {
|
|
51
|
-
u.value = await g.submission(k.value,
|
|
51
|
+
u.value = await g.submission(k.value, oe.value);
|
|
52
52
|
} catch (e) {
|
|
53
53
|
y.danger(W(e)), T.replace(C.value);
|
|
54
54
|
} finally {
|
|
55
55
|
I.value = !1;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
async function
|
|
58
|
+
async function ce() {
|
|
59
59
|
try {
|
|
60
|
-
B.value = await g.statuses(), x.value && (
|
|
60
|
+
B.value = await g.statuses(), x.value && (M.value = await g.recipients());
|
|
61
61
|
} catch (e) {
|
|
62
62
|
y.danger(W(e));
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
Te(k, () => {
|
|
66
|
-
|
|
67
|
-
}, { immediate: !0 }),
|
|
68
|
-
async function
|
|
66
|
+
j();
|
|
67
|
+
}, { immediate: !0 }), ce();
|
|
68
|
+
async function Q(e) {
|
|
69
69
|
try {
|
|
70
70
|
u.value = await g.saveSubmission(k.value, e), y.success(l("panel.saved"));
|
|
71
71
|
} catch (o) {
|
|
72
|
-
y.danger(W(o)), await
|
|
72
|
+
y.danger(W(o)), await j();
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
typeof e == "number" &&
|
|
75
|
+
function pe(e) {
|
|
76
|
+
typeof e == "number" && Q({ status_id: e });
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
78
|
+
function fe(e) {
|
|
79
|
+
Q({ assignee_id: typeof e == "number" ? e : null });
|
|
80
80
|
}
|
|
81
|
-
const
|
|
81
|
+
const me = c(() => {
|
|
82
82
|
const e = [];
|
|
83
|
-
return
|
|
83
|
+
return J.value && e.push({
|
|
84
84
|
key: "reply",
|
|
85
85
|
label: l("panel.reply"),
|
|
86
86
|
icon: "mail",
|
|
87
87
|
primary: !0,
|
|
88
|
-
href:
|
|
88
|
+
href: J.value,
|
|
89
89
|
target: "_self"
|
|
90
90
|
}), x.value && u.value !== null && e.push(
|
|
91
91
|
{
|
|
@@ -94,7 +94,7 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
94
94
|
label: l("panel.mark-unread"),
|
|
95
95
|
menu: !0,
|
|
96
96
|
run: () => {
|
|
97
|
-
|
|
97
|
+
he();
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
{
|
|
@@ -103,7 +103,7 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
103
103
|
label: l("panel.notify-again"),
|
|
104
104
|
menu: !0,
|
|
105
105
|
run: () => {
|
|
106
|
-
|
|
106
|
+
E();
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
{
|
|
@@ -112,35 +112,35 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
112
112
|
label: l("panel.delete"),
|
|
113
113
|
danger: !0,
|
|
114
114
|
run: () => {
|
|
115
|
-
|
|
115
|
+
ge();
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
), e;
|
|
119
119
|
});
|
|
120
|
-
async function
|
|
120
|
+
async function E() {
|
|
121
121
|
try {
|
|
122
122
|
u.value = await g.notifySubmission(k.value), y.success(l("panel.notify-sent-again"));
|
|
123
123
|
} catch (e) {
|
|
124
124
|
y.danger(W(e));
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
const
|
|
128
|
-
function
|
|
127
|
+
const m = c(() => u.value?.notification ?? null);
|
|
128
|
+
function ve(e) {
|
|
129
129
|
return l(`panel.notify-recipient-${e}`);
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
function
|
|
131
|
+
const S = c(() => u.value?.channels ?? null), _e = c(() => (S.value ?? []).some((e) => e.status === "failed")), be = c(() => (S.value ?? []).some((e) => e.retryable));
|
|
132
|
+
function ye(e) {
|
|
133
133
|
return e.status === "failed" ? "danger" : e.status === "sent" && e.trap ? "warning" : e.status === "sent" ? "success" : e.status === "skipped" ? "warning" : "default";
|
|
134
134
|
}
|
|
135
|
-
async function
|
|
135
|
+
async function he() {
|
|
136
136
|
try {
|
|
137
137
|
await g.massSubmissions({ ids: [k.value], action: "unread" }), T.push(C.value);
|
|
138
138
|
} catch (e) {
|
|
139
139
|
y.danger(W(e));
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
async function
|
|
143
|
-
if (await
|
|
142
|
+
async function ge() {
|
|
143
|
+
if (await Oe({
|
|
144
144
|
title: l("panel.delete-submission-title"),
|
|
145
145
|
message: l("panel.delete-submission-text"),
|
|
146
146
|
confirmText: l("panel.delete"),
|
|
@@ -153,22 +153,22 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
153
153
|
y.danger(W(o));
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
e !== null && T.push({ path: `${
|
|
156
|
+
function X(e) {
|
|
157
|
+
e !== null && T.push({ path: `${L.base}/submissions/${e}`, query: { ...b.query } });
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function xe(e) {
|
|
160
160
|
const o = B.value.find((t) => t.key === e);
|
|
161
|
-
return o === void 0 ? e :
|
|
161
|
+
return o === void 0 ? e : H(o);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const ke = c(
|
|
164
164
|
() => u.value?.events?.some((e) => e.type === "no_recipients") ?? !1
|
|
165
165
|
);
|
|
166
|
-
function
|
|
166
|
+
function we(e) {
|
|
167
167
|
switch (e.type) {
|
|
168
168
|
case "created":
|
|
169
169
|
return l("panel.event-created");
|
|
170
170
|
case "status":
|
|
171
|
-
return l("panel.event-status", { to:
|
|
171
|
+
return l("panel.event-status", { to: xe(e.to ?? "") });
|
|
172
172
|
case "assignee":
|
|
173
173
|
return e.to === null || e.to === "" ? l("panel.event-unassigned") : l("panel.event-assignee", { to: e.to });
|
|
174
174
|
case "note":
|
|
@@ -177,10 +177,10 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
177
177
|
return l("panel.event-notified");
|
|
178
178
|
// A handler of `webx-inbox.handlers`: `from` is its class, shown by its own short name.
|
|
179
179
|
case "handled":
|
|
180
|
-
return l("panel.event-handled", { name:
|
|
180
|
+
return l("panel.event-handled", { name: Y(e.from) });
|
|
181
181
|
case "handler_error":
|
|
182
182
|
return l("panel.event-handler-error", {
|
|
183
|
-
name:
|
|
183
|
+
name: Y(e.from),
|
|
184
184
|
error: e.to ?? ""
|
|
185
185
|
});
|
|
186
186
|
case "no_recipients":
|
|
@@ -192,7 +192,7 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
192
192
|
// An answer corrected by hand: named by the label it was asked under, when it still has one.
|
|
193
193
|
case "value":
|
|
194
194
|
return l("panel.event-value", {
|
|
195
|
-
field:
|
|
195
|
+
field: ze(e.field ?? ""),
|
|
196
196
|
from: e.from ?? "",
|
|
197
197
|
to: e.to ?? ""
|
|
198
198
|
});
|
|
@@ -200,74 +200,76 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
200
200
|
return e.type;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ze(e) {
|
|
204
204
|
return u.value?.values.find((t) => t.name === e)?.label || e;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Y(e) {
|
|
207
207
|
return (e ?? "").split("\\").pop() ?? "";
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function We(e) {
|
|
210
210
|
return `${Math.max(1, Math.round(e / 1024))} KB`;
|
|
211
211
|
}
|
|
212
|
-
const
|
|
212
|
+
const Se = c(() => {
|
|
213
213
|
const e = u.value?.meta ?? {}, o = [];
|
|
214
214
|
typeof e.page == "string" && e.page !== "" && o.push({ label: l("panel.meta-page"), value: e.page, link: !0 });
|
|
215
215
|
const t = u.value?.placement;
|
|
216
|
-
typeof t == "string" && t !== "" && o.push({ label: l("panel.meta-placement"), value: t }), typeof e.referrer == "string" && e.referrer !== "" && o.push({ label: l("panel.meta-referrer"), value: e.referrer, link: !0 });
|
|
217
|
-
for (const [
|
|
218
|
-
o.push({ label:
|
|
216
|
+
typeof t == "string" && t !== "" && o.push({ label: l("panel.meta-placement"), value: t }), typeof e.referrer == "string" && e.referrer !== "" && o.push({ label: l("panel.meta-referrer"), value: e.referrer, link: !0 }), typeof e.landing == "string" && e.landing !== "" && o.push({ label: l("panel.meta-landing"), value: e.landing, link: !0 });
|
|
217
|
+
for (const [O, R] of Object.entries(e.utm ?? {}))
|
|
218
|
+
o.push({ label: O, value: String(R) });
|
|
219
|
+
for (const [O, R] of Object.entries(e.utm_first ?? {}))
|
|
220
|
+
o.push({ label: `${l("panel.meta-utm-first")} · ${O}`, value: String(R) });
|
|
219
221
|
return typeof e.locale == "string" && e.locale !== "" && o.push({ label: l("panel.meta-locale"), value: e.locale }), typeof e.ip == "string" && e.ip !== "" && o.push({ label: l("panel.meta-ip"), value: e.ip }), typeof e.user_agent == "string" && e.user_agent !== "" && o.push({ label: l("panel.meta-agent"), value: e.user_agent }), o;
|
|
220
222
|
});
|
|
221
223
|
return (e, o) => (n(), d("div", Qe, [
|
|
222
224
|
i(a(Ie), {
|
|
223
225
|
title: D.value,
|
|
224
|
-
subtitle:
|
|
226
|
+
subtitle: K.value,
|
|
225
227
|
back: C.value,
|
|
226
|
-
actions:
|
|
228
|
+
actions: me.value
|
|
227
229
|
}, {
|
|
228
230
|
extra: s(() => [
|
|
229
|
-
i(a(
|
|
231
|
+
i(a(ae), {
|
|
230
232
|
icon: "chevron-left",
|
|
231
233
|
size: "lg",
|
|
232
234
|
title: a(l)("panel.previous"),
|
|
233
235
|
disabled: !u.value?.previous_id,
|
|
234
|
-
onClick: o[0] || (o[0] = (t) =>
|
|
236
|
+
onClick: o[0] || (o[0] = (t) => X(u.value?.previous_id ?? null))
|
|
235
237
|
}, null, 8, ["title", "disabled"]),
|
|
236
|
-
i(a(
|
|
238
|
+
i(a(ae), {
|
|
237
239
|
icon: "chevron-right",
|
|
238
240
|
size: "lg",
|
|
239
241
|
title: a(l)("panel.next"),
|
|
240
242
|
disabled: !u.value?.next_id,
|
|
241
|
-
onClick: o[1] || (o[1] = (t) =>
|
|
243
|
+
onClick: o[1] || (o[1] = (t) => X(u.value?.next_id ?? null))
|
|
242
244
|
}, null, 8, ["title", "disabled"])
|
|
243
245
|
]),
|
|
244
246
|
_: 1
|
|
245
247
|
}, 8, ["title", "subtitle", "back", "actions"]),
|
|
246
|
-
I.value ? (n(), p(a(
|
|
248
|
+
I.value ? (n(), p(a(Re), {
|
|
247
249
|
key: 0,
|
|
248
250
|
rows: 6
|
|
249
251
|
})) : u.value ? (n(), d("div", Xe, [
|
|
250
|
-
|
|
252
|
+
v("div", Ye, [
|
|
251
253
|
i(a(N), {
|
|
252
254
|
title: a(l)("panel.answers")
|
|
253
255
|
}, {
|
|
254
256
|
default: s(() => [
|
|
255
|
-
u.value.values.length === 0 ? (n(), p(a(
|
|
257
|
+
u.value.values.length === 0 ? (n(), p(a(Ue), {
|
|
256
258
|
key: 0,
|
|
257
259
|
size: "sm",
|
|
258
260
|
description: a(l)("panel.no-answers")
|
|
259
|
-
}, null, 8, ["description"])) : (n(), p(a(
|
|
261
|
+
}, null, 8, ["description"])) : (n(), p(a(te), {
|
|
260
262
|
key: 1,
|
|
261
263
|
columns: 1,
|
|
262
264
|
layout: "vertical"
|
|
263
265
|
}, {
|
|
264
266
|
default: s(() => [
|
|
265
|
-
(n(!0), d(w, null, z(u.value.values, (t) => (n(), p(a(
|
|
267
|
+
(n(!0), d(w, null, z(u.value.values, (t) => (n(), p(a(q), {
|
|
266
268
|
key: t.id,
|
|
267
269
|
label: t.label ?? t.name
|
|
268
270
|
}, {
|
|
269
271
|
default: s(() => [
|
|
270
|
-
|
|
272
|
+
P(t) ? (n(), p(Ce(P(t)), {
|
|
271
273
|
key: 0,
|
|
272
274
|
payload: t.payload,
|
|
273
275
|
value: t.value
|
|
@@ -289,8 +291,8 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
289
291
|
title: a(l)("panel.attachments")
|
|
290
292
|
}, {
|
|
291
293
|
default: s(() => [
|
|
292
|
-
|
|
293
|
-
(n(!0), d(w, null, z(u.value.files, (t) => (n(), p(a(
|
|
294
|
+
v("div", Ze, [
|
|
295
|
+
(n(!0), d(w, null, z(u.value.files, (t) => (n(), p(a(Fe), {
|
|
294
296
|
key: t.id,
|
|
295
297
|
name: t.name,
|
|
296
298
|
type: t.mime ?? void 0,
|
|
@@ -299,7 +301,7 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
299
301
|
size: "sm"
|
|
300
302
|
}, {
|
|
301
303
|
meta: s(() => [
|
|
302
|
-
f(r(
|
|
304
|
+
f(r(We(t.size)), 1)
|
|
303
305
|
]),
|
|
304
306
|
_: 2
|
|
305
307
|
}, 1032, ["name", "type", "download-url", "download-label"]))), 128))
|
|
@@ -307,7 +309,7 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
307
309
|
]),
|
|
308
310
|
_: 1
|
|
309
311
|
}, 8, ["title"])) : _("", !0),
|
|
310
|
-
|
|
312
|
+
_e.value ? (n(), p(a(U), {
|
|
311
313
|
key: 1,
|
|
312
314
|
type: "warning",
|
|
313
315
|
closable: !1,
|
|
@@ -315,14 +317,14 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
315
317
|
}, null, 8, ["title"])) : _("", !0),
|
|
316
318
|
i(a(N), { class: "wx-submission__more" }, {
|
|
317
319
|
default: s(() => [
|
|
318
|
-
i(a(
|
|
320
|
+
i(a(Le), {
|
|
319
321
|
variant: "pill",
|
|
320
322
|
"aria-label": D.value
|
|
321
323
|
}, {
|
|
322
324
|
default: s(() => [
|
|
323
325
|
i(a(V), {
|
|
324
326
|
value: "notes",
|
|
325
|
-
label: a(
|
|
327
|
+
label: a(ue)("notes.title")
|
|
326
328
|
}, {
|
|
327
329
|
default: s(() => [
|
|
328
330
|
i(a(De), {
|
|
@@ -330,7 +332,7 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
330
332
|
type: "inbox_submission",
|
|
331
333
|
title: "",
|
|
332
334
|
can: x.value,
|
|
333
|
-
onChange:
|
|
335
|
+
onChange: j
|
|
334
336
|
}, null, 8, ["id", "can"])
|
|
335
337
|
]),
|
|
336
338
|
_: 1
|
|
@@ -340,7 +342,7 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
340
342
|
label: a(l)("panel.log")
|
|
341
343
|
}, {
|
|
342
344
|
default: s(() => [
|
|
343
|
-
i(a(
|
|
345
|
+
i(a(Me), { size: "sm" }, {
|
|
344
346
|
default: s(() => [
|
|
345
347
|
(n(!0), d(w, null, z(u.value.events, (t) => (n(), p(a(Pe), {
|
|
346
348
|
key: t.id
|
|
@@ -352,11 +354,11 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
352
354
|
class: "wx-submission__event"
|
|
353
355
|
}, {
|
|
354
356
|
default: s(() => [
|
|
355
|
-
f(r(
|
|
357
|
+
f(r(we(t)), 1)
|
|
356
358
|
]),
|
|
357
359
|
_: 2
|
|
358
360
|
}, 1024),
|
|
359
|
-
|
|
361
|
+
v("p", ea, [
|
|
360
362
|
i(a(h), {
|
|
361
363
|
size: "sm",
|
|
362
364
|
tone: "muted"
|
|
@@ -366,7 +368,7 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
366
368
|
]),
|
|
367
369
|
_: 2
|
|
368
370
|
}, 1024),
|
|
369
|
-
i(a(
|
|
371
|
+
i(a(ee), {
|
|
370
372
|
value: t.created_at
|
|
371
373
|
}, null, 8, ["value"])
|
|
372
374
|
])
|
|
@@ -384,29 +386,29 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
384
386
|
label: a(l)("panel.details")
|
|
385
387
|
}, {
|
|
386
388
|
default: s(() => [
|
|
387
|
-
|
|
388
|
-
i(a(
|
|
389
|
+
v("div", aa, [
|
|
390
|
+
i(a(te), {
|
|
389
391
|
columns: 1,
|
|
390
392
|
layout: "vertical",
|
|
391
393
|
size: "sm"
|
|
392
394
|
}, {
|
|
393
395
|
default: s(() => [
|
|
394
|
-
i(a(
|
|
396
|
+
i(a(q), {
|
|
395
397
|
label: a(l)("panel.received")
|
|
396
398
|
}, {
|
|
397
399
|
default: s(() => [
|
|
398
|
-
i(a(
|
|
400
|
+
i(a(ee), {
|
|
399
401
|
value: u.value.created_at,
|
|
400
402
|
tone: "default"
|
|
401
403
|
}, null, 8, ["value"])
|
|
402
404
|
]),
|
|
403
405
|
_: 1
|
|
404
406
|
}, 8, ["label"]),
|
|
405
|
-
i(a(
|
|
407
|
+
i(a(q), {
|
|
406
408
|
label: a(l)("panel.meta-source")
|
|
407
409
|
}, {
|
|
408
410
|
default: s(() => [
|
|
409
|
-
i(a(
|
|
411
|
+
i(a(F), {
|
|
410
412
|
type: u.value.source === "panel" ? "info" : "default"
|
|
411
413
|
}, {
|
|
412
414
|
default: s(() => [
|
|
@@ -417,7 +419,7 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
417
419
|
]),
|
|
418
420
|
_: 1
|
|
419
421
|
}, 8, ["label"]),
|
|
420
|
-
(n(!0), d(w, null, z(
|
|
422
|
+
(n(!0), d(w, null, z(Se.value, (t) => (n(), p(a(q), {
|
|
421
423
|
key: t.label,
|
|
422
424
|
label: t.label
|
|
423
425
|
}, {
|
|
@@ -431,24 +433,24 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
431
433
|
]),
|
|
432
434
|
_: 2
|
|
433
435
|
}, 1032, ["label"]))), 128)),
|
|
434
|
-
i(a(
|
|
436
|
+
i(a(q), {
|
|
435
437
|
label: a(l)("panel.tab-notifications")
|
|
436
438
|
}, {
|
|
437
439
|
default: s(() => [
|
|
438
|
-
|
|
439
|
-
|
|
440
|
+
v("div", na, [
|
|
441
|
+
m.value?.state === "failed" ? (n(), p(a(U), {
|
|
440
442
|
key: 0,
|
|
441
443
|
type: "warning",
|
|
442
444
|
closable: !1,
|
|
443
445
|
title: a(l)("panel.notify-failed")
|
|
444
446
|
}, {
|
|
445
447
|
default: s(() => [
|
|
446
|
-
|
|
448
|
+
v("span", sa, r(m.value.error), 1)
|
|
447
449
|
]),
|
|
448
450
|
_: 1
|
|
449
|
-
}, 8, ["title"])) :
|
|
451
|
+
}, 8, ["title"])) : m.value?.state === "queued" ? (n(), d("span", ia, [
|
|
450
452
|
f(r(a(l)("panel.notify-queued")) + " ", 1),
|
|
451
|
-
|
|
453
|
+
m.value.hint && !m.value.stalled ? (n(), p(a(h), {
|
|
452
454
|
key: 0,
|
|
453
455
|
size: "sm",
|
|
454
456
|
tone: "muted",
|
|
@@ -456,37 +458,37 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
456
458
|
class: "wx-submission__hint"
|
|
457
459
|
}, {
|
|
458
460
|
default: s(() => [
|
|
459
|
-
f(r(
|
|
461
|
+
f(r(m.value.hint), 1)
|
|
460
462
|
]),
|
|
461
463
|
_: 1
|
|
462
464
|
})) : _("", !0)
|
|
463
|
-
])) :
|
|
464
|
-
(n(!0), d(w, null, z(
|
|
465
|
+
])) : m.value?.state === "delivered" ? (n(), d("span", ua, r(a(l)("panel.notified")), 1)) : ke.value ? (n(), d("span", oa, r(a(l)("panel.notified-nobody")), 1)) : (n(), d("span", ra, r(a(l)("panel.not-notified")), 1)),
|
|
466
|
+
(n(!0), d(w, null, z(m.value?.warnings ?? [], (t) => (n(), p(a(U), {
|
|
465
467
|
key: t,
|
|
466
468
|
type: "warning",
|
|
467
469
|
variant: "soft",
|
|
468
470
|
closable: !1,
|
|
469
471
|
description: t
|
|
470
472
|
}, null, 8, ["description"]))), 128)),
|
|
471
|
-
|
|
472
|
-
(n(!0), d(w, null, z(
|
|
473
|
+
m.value && m.value.recipients.length > 0 ? (n(), d("ul", da, [
|
|
474
|
+
(n(!0), d(w, null, z(m.value.recipients, (t) => (n(), d("li", {
|
|
473
475
|
key: t.address
|
|
474
476
|
}, [
|
|
475
|
-
|
|
476
|
-
i(a(
|
|
477
|
+
v("span", ca, r(t.address), 1),
|
|
478
|
+
i(a(F), {
|
|
477
479
|
type: t.state === "failed" ? "danger" : t.trap ? "warning" : t.state === "delivered" ? "success" : "default"
|
|
478
480
|
}, {
|
|
479
481
|
default: s(() => [
|
|
480
|
-
f(r(
|
|
482
|
+
f(r(ve(t.trap ? "trapped" : t.state)), 1)
|
|
481
483
|
]),
|
|
482
484
|
_: 2
|
|
483
485
|
}, 1032, ["type"])
|
|
484
486
|
]))), 128))
|
|
485
487
|
])) : _("", !0),
|
|
486
|
-
x.value && (
|
|
487
|
-
i(a(
|
|
488
|
+
x.value && (m.value?.state === "failed" || m.value?.state === "queued") ? (n(), d("div", pa, [
|
|
489
|
+
i(a(le), {
|
|
488
490
|
size: "sm",
|
|
489
|
-
onClick:
|
|
491
|
+
onClick: E
|
|
490
492
|
}, {
|
|
491
493
|
default: s(() => [
|
|
492
494
|
f(r(a(l)("panel.notify-again")), 1)
|
|
@@ -505,14 +507,14 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
505
507
|
]),
|
|
506
508
|
_: 1
|
|
507
509
|
}, 8, ["label"]),
|
|
508
|
-
|
|
510
|
+
S.value ? (n(), p(a(V), {
|
|
509
511
|
key: 0,
|
|
510
512
|
value: "channels",
|
|
511
513
|
label: a(l)("panel.channels")
|
|
512
514
|
}, {
|
|
513
515
|
default: s(() => [
|
|
514
|
-
|
|
515
|
-
|
|
516
|
+
v("div", fa, [
|
|
517
|
+
S.value.length === 0 ? (n(), p(a(h), {
|
|
516
518
|
key: 0,
|
|
517
519
|
size: "sm",
|
|
518
520
|
tone: "muted"
|
|
@@ -521,12 +523,12 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
521
523
|
f(r(a(l)("panel.channels-none")), 1)
|
|
522
524
|
]),
|
|
523
525
|
_: 1
|
|
524
|
-
})) : (n(), d("ul",
|
|
525
|
-
(n(!0), d(w, null, z(
|
|
526
|
+
})) : (n(), d("ul", ma, [
|
|
527
|
+
(n(!0), d(w, null, z(S.value, (t) => (n(), d("li", {
|
|
526
528
|
key: t.id,
|
|
527
529
|
class: "wx-submission__channel"
|
|
528
530
|
}, [
|
|
529
|
-
|
|
531
|
+
v("div", va, [
|
|
530
532
|
i(a(h), { size: "sm" }, {
|
|
531
533
|
default: s(() => [
|
|
532
534
|
f(r(t.channel), 1)
|
|
@@ -555,8 +557,8 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
555
557
|
_: 2
|
|
556
558
|
}, 1024)) : _("", !0)
|
|
557
559
|
]),
|
|
558
|
-
i(a(
|
|
559
|
-
type:
|
|
560
|
+
i(a(F), {
|
|
561
|
+
type: ye(t)
|
|
560
562
|
}, {
|
|
561
563
|
default: s(() => [
|
|
562
564
|
f(r(t.status_label), 1)
|
|
@@ -565,10 +567,10 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
565
567
|
}, 1032, ["type"])
|
|
566
568
|
]))), 128))
|
|
567
569
|
])),
|
|
568
|
-
x.value &&
|
|
569
|
-
i(a(
|
|
570
|
+
x.value && be.value ? (n(), d("div", _a, [
|
|
571
|
+
i(a(le), {
|
|
570
572
|
size: "sm",
|
|
571
|
-
onClick:
|
|
573
|
+
onClick: E
|
|
572
574
|
}, {
|
|
573
575
|
default: s(() => [
|
|
574
576
|
f(r(a(l)("panel.notify-again")), 1)
|
|
@@ -587,11 +589,11 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
587
589
|
_: 1
|
|
588
590
|
})
|
|
589
591
|
]),
|
|
590
|
-
|
|
592
|
+
v("aside", ba, [
|
|
591
593
|
i(a(N), null, {
|
|
592
594
|
default: s(() => [
|
|
593
|
-
|
|
594
|
-
|
|
595
|
+
v("div", ya, [
|
|
596
|
+
v("label", ha, [
|
|
595
597
|
i(a(h), {
|
|
596
598
|
size: "sm",
|
|
597
599
|
tone: "muted"
|
|
@@ -601,14 +603,14 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
601
603
|
]),
|
|
602
604
|
_: 1
|
|
603
605
|
}),
|
|
604
|
-
i(a(
|
|
606
|
+
i(a(ne), {
|
|
605
607
|
"model-value": u.value.status?.id ?? null,
|
|
606
|
-
options:
|
|
608
|
+
options: re.value,
|
|
607
609
|
disabled: !x.value,
|
|
608
|
-
"onUpdate:modelValue":
|
|
610
|
+
"onUpdate:modelValue": pe
|
|
609
611
|
}, null, 8, ["model-value", "options", "disabled"])
|
|
610
612
|
]),
|
|
611
|
-
|
|
613
|
+
v("label", ga, [
|
|
612
614
|
i(a(h), {
|
|
613
615
|
size: "sm",
|
|
614
616
|
tone: "muted"
|
|
@@ -618,13 +620,13 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
618
620
|
]),
|
|
619
621
|
_: 1
|
|
620
622
|
}),
|
|
621
|
-
i(a(
|
|
623
|
+
i(a(ne), {
|
|
622
624
|
"model-value": u.value.assignee?.id ?? null,
|
|
623
|
-
options:
|
|
625
|
+
options: de.value,
|
|
624
626
|
disabled: !x.value,
|
|
625
627
|
clearable: "",
|
|
626
628
|
placeholder: a(l)("panel.unassigned"),
|
|
627
|
-
"onUpdate:modelValue":
|
|
629
|
+
"onUpdate:modelValue": fe
|
|
628
630
|
}, null, 8, ["model-value", "options", "disabled", "placeholder"])
|
|
629
631
|
])
|
|
630
632
|
])
|
|
@@ -635,8 +637,8 @@ const Qe = { class: "wx-submission" }, Xe = {
|
|
|
635
637
|
])) : _("", !0)
|
|
636
638
|
]));
|
|
637
639
|
}
|
|
638
|
-
}),
|
|
640
|
+
}), qa = /* @__PURE__ */ Je(xa, [["__scopeId", "data-v-8f44c643"]]);
|
|
639
641
|
export {
|
|
640
|
-
|
|
642
|
+
qa as default
|
|
641
643
|
};
|
|
642
|
-
//# sourceMappingURL=SubmissionPage-
|
|
644
|
+
//# sourceMappingURL=SubmissionPage-DyygefM1.js.map
|