@webx-ui/module-inbox 0.6.0 → 0.6.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.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as ne, useModel as Se, computed as U, unref as e, openBlock as o, createBlock as w, withCtx as a, createVNode as t, mergeModels as Ee, ref as q, watch as Te, isRef as se, createElementVNode as K, createElementBlock as G, Fragment as ee, createCommentVNode as P, createTextVNode as S, toDisplayString as V, renderList as ge, createSlots as Oe, onMounted as yl, reactive as hl, useTemplateRef as cl, normalizeClass as sl } from "vue";
1
+ import { defineComponent as ne, useModel as Se, computed as U, unref as e, openBlock as o, createBlock as w, withCtx as a, createVNode as t, mergeModels as Pe, ref as q, watch as Te, isRef as se, createElementVNode as K, createElementBlock as G, Fragment as ee, createCommentVNode as E, createTextVNode as S, toDisplayString as V, renderList as ge, createSlots as Oe, onMounted as yl, reactive as hl, useTemplateRef as cl, normalizeClass as sl } from "vue";
2
2
  import { useRoute as Re, useRouter as Be } from "vue-router";
3
- import { useAdmin as ie, useTranslate as ae, useErrorText as ye, WxRowMenu as ze, WxScreenHead as tl, rowMenuWidth as gl, WxDate as Pe, WxFilterChips as xl, WxListScreen as pl, WxNotes as _l } from "@webx-ui/module-admin";
3
+ import { useAdmin as ie, useTranslate as ae, useErrorText as ye, WxRowMenu as ze, WxScreenHead as tl, rowMenuWidth as gl, WxDate as Ee, WxFilterChips as xl, WxListScreen as pl, WxNotes as _l } from "@webx-ui/module-admin";
4
4
  import { useLocales as we, WxLocales as wl, WxRichText as ol, useModal as He, WxDialog as Ge, WxFormItem as H, WxSelect as fe, WxInput as le, WxText as Q, WxAction as $e, WxButton as te, WxIcon as _e, WxInputNumber as Ve, WxDatePicker as ll, WxTagsInput as kl, WxCheckbox as he, WxSpace as Ae, toast as L, createModal as je, WxCard as oe, WxEmpty as Ke, WxSortableList as al, WxBadge as Ue, localizedValue as be, confirm as Ce, WxSwitch as ml, WxTable as vl, WxAlert as Fe, WxSkeleton as We, WxTabs as nl, WxTab as xe, WxActionBar as Vl, WxTextarea as $l, WxRadioGroup as Ul, WxCheckboxGroup as Sl, useElementWidth as Tl, WxEntityCard as Cl, WxAvatar as il, WxTooltip as ql, WxListDetail as zl, WxIndicator as ul, WxDescriptions as rl, WxDescriptionsItem as Me, WxFileCard as Fl, WxTimeline as Wl, WxTimelineItem as Al } from "@webx-ui/core";
5
5
  const fl = /* @__PURE__ */ ne({
6
6
  __name: "LocalizedRichText",
7
- props: /* @__PURE__ */ Ee({
7
+ props: /* @__PURE__ */ Pe({
8
8
  placeholder: { default: void 0 },
9
9
  minHeight: { default: "160px" }
10
10
  }, {
@@ -271,6 +271,7 @@ const Nl = {
271
271
  field: "Field",
272
272
  "new-field": "New field",
273
273
  "edit-field": "Field",
274
+ edit: "Edit",
274
275
  "no-fields": "No questions yet.",
275
276
  "no-fields-help": "A form with no fields draws nothing on the page.",
276
277
  "save-first": "Save the form first, then write its questions.",
@@ -343,7 +344,7 @@ const Il = [
343
344
  ], Dl = ["default", "primary", "success", "warning", "info", "danger"], Ml = { class: "wx-inbox-field-form" }, Ll = { class: "wx-inbox-field-form__row" }, Ol = {
344
345
  key: 2,
345
346
  class: "wx-inbox-choices"
346
- }, Pl = { class: "wx-inbox-field-form__row" }, El = { class: "wx-inbox-field-form__checks" }, Rl = /* @__PURE__ */ ne({
347
+ }, El = { class: "wx-inbox-field-form__row" }, Pl = { class: "wx-inbox-field-form__checks" }, Rl = /* @__PURE__ */ ne({
347
348
  __name: "FieldDialog",
348
349
  props: {
349
350
  field: {},
@@ -360,7 +361,7 @@ const Il = [
360
361
  },
361
362
  { immediate: !0 }
362
363
  );
363
- const E = U(
364
+ const P = U(
364
365
  () => Il.map((W) => ({ value: W, label: l(`fields.type-${W}`) }))
365
366
  ), j = U(() => ["select", "radio", "checkbox"].includes(C.value)), R = U(
366
367
  () => Array.isArray(m.value.choices) ? m.value.choices : []
@@ -459,7 +460,7 @@ const Il = [
459
460
  t(e(fe), {
460
461
  modelValue: C.value,
461
462
  "onUpdate:modelValue": k[0] || (k[0] = (g) => C.value = g),
462
- options: E.value
463
+ options: P.value
463
464
  }, null, 8, ["modelValue", "options"])
464
465
  ]),
465
466
  _: 1
@@ -506,7 +507,7 @@ const Il = [
506
507
  }, null, 8, ["modelValue"])
507
508
  ]),
508
509
  _: 1
509
- }, 8, ["label"])) : P("", !0),
510
+ }, 8, ["label"])) : E("", !0),
510
511
  t(e(H), {
511
512
  label: e(l)("fields.help")
512
513
  }, {
@@ -519,7 +520,7 @@ const Il = [
519
520
  ]),
520
521
  _: 1
521
522
  }, 8, ["label"])
522
- ], 64)) : P("", !0),
523
+ ], 64)) : E("", !0),
523
524
  C.value === "consent" ? (o(), w(e(H), {
524
525
  key: 1,
525
526
  label: e(l)("fields.consent-text"),
@@ -533,7 +534,7 @@ const Il = [
533
534
  }, null, 8, ["model-value"])
534
535
  ]),
535
536
  _: 1
536
- }, 8, ["label", "help"])) : P("", !0),
537
+ }, 8, ["label", "help"])) : E("", !0),
537
538
  j.value ? (o(), G("div", Ol, [
538
539
  t(e(Q), {
539
540
  size: "sm",
@@ -553,7 +554,7 @@ const Il = [
553
554
  S(V(e(l)("fields.no-choices")), 1)
554
555
  ]),
555
556
  _: 1
556
- })) : P("", !0),
557
+ })) : E("", !0),
557
558
  (o(!0), G(ee, null, ge(R.value, (g, re) => (o(), G("div", {
558
559
  key: re,
559
560
  class: "wx-inbox-choices__row"
@@ -588,8 +589,8 @@ const Il = [
588
589
  ]),
589
590
  _: 1
590
591
  })
591
- ])) : P("", !0),
592
- K("div", Pl, [
592
+ ])) : E("", !0),
593
+ K("div", El, [
593
594
  C.value === "textarea" ? (o(), w(e(H), {
594
595
  key: 0,
595
596
  label: e(l)("fields.rows")
@@ -603,7 +604,7 @@ const Il = [
603
604
  }, null, 8, ["model-value"])
604
605
  ]),
605
606
  _: 1
606
- }, 8, ["label"])) : P("", !0),
607
+ }, 8, ["label"])) : E("", !0),
607
608
  ["text", "email", "textarea"].includes(C.value) ? (o(), w(e(H), {
608
609
  key: 1,
609
610
  label: e(l)("fields.maxlength")
@@ -617,7 +618,7 @@ const Il = [
617
618
  }, null, 8, ["model-value"])
618
619
  ]),
619
620
  _: 1
620
- }, 8, ["label"])) : P("", !0),
621
+ }, 8, ["label"])) : E("", !0),
621
622
  C.value === "tel" ? (o(), w(e(H), {
622
623
  key: 2,
623
624
  label: e(l)("fields.pattern"),
@@ -630,7 +631,7 @@ const Il = [
630
631
  }, null, 8, ["model-value"])
631
632
  ]),
632
633
  _: 1
633
- }, 8, ["label", "help"])) : P("", !0),
634
+ }, 8, ["label", "help"])) : E("", !0),
634
635
  C.value === "date" ? (o(), G(ee, { key: 3 }, [
635
636
  t(e(H), {
636
637
  label: e(l)("fields.earliest")
@@ -656,7 +657,7 @@ const Il = [
656
657
  ]),
657
658
  _: 1
658
659
  }, 8, ["label"])
659
- ], 64)) : P("", !0),
660
+ ], 64)) : E("", !0),
660
661
  C.value === "checkbox" ? (o(), G(ee, { key: 4 }, [
661
662
  t(e(H), {
662
663
  label: e(l)("fields.min-choices")
@@ -682,7 +683,7 @@ const Il = [
682
683
  ]),
683
684
  _: 1
684
685
  }, 8, ["label"])
685
- ], 64)) : P("", !0),
686
+ ], 64)) : E("", !0),
686
687
  C.value === "file" ? (o(), w(e(H), {
687
688
  key: 5,
688
689
  label: e(l)("fields.max-size")
@@ -695,7 +696,7 @@ const Il = [
695
696
  }, null, 8, ["model-value"])
696
697
  ]),
697
698
  _: 1
698
- }, 8, ["label"])) : P("", !0)
699
+ }, 8, ["label"])) : E("", !0)
699
700
  ]),
700
701
  C.value === "file" ? (o(), G(ee, { key: 3 }, [
701
702
  t(e(H), {
@@ -715,8 +716,8 @@ const Il = [
715
716
  label: e(l)("fields.multiple"),
716
717
  "onUpdate:modelValue": k[15] || (k[15] = (g) => r("multiple", g))
717
718
  }, null, 8, ["model-value", "label"])
718
- ], 64)) : P("", !0),
719
- K("div", El, [
719
+ ], 64)) : E("", !0),
720
+ K("div", Pl, [
720
721
  t(e(he), {
721
722
  modelValue: $.value,
722
723
  "onUpdate:modelValue": k[16] || (k[16] = (g) => $.value = g),
@@ -732,7 +733,7 @@ const Il = [
732
733
  modelValue: I.value,
733
734
  "onUpdate:modelValue": k[18] || (k[18] = (g) => I.value = g),
734
735
  label: e(l)("fields.is-fullsize")
735
- }, null, 8, ["modelValue", "label"])) : P("", !0),
736
+ }, null, 8, ["modelValue", "label"])) : E("", !0),
736
737
  t(e(he), {
737
738
  modelValue: x.value,
738
739
  "onUpdate:modelValue": k[19] || (k[19] = (g) => x.value = g),
@@ -751,7 +752,7 @@ const Il = [
751
752
  return u;
752
753
  }, Bl = /* @__PURE__ */ ue(Rl, [["__scopeId", "data-v-6696bbc1"]]), Hl = { class: "wx-inbox-field" }, Gl = { class: "wx-inbox-field__name" }, jl = /* @__PURE__ */ ne({
753
754
  __name: "FieldList",
754
- props: /* @__PURE__ */ Ee({
755
+ props: /* @__PURE__ */ Pe({
755
756
  form: {},
756
757
  canManage: { type: Boolean }
757
758
  }, {
@@ -795,7 +796,7 @@ const Il = [
795
796
  }
796
797
  function b(m) {
797
798
  return s.canManage ? [
798
- { key: "edit", icon: "edit", label: f("fields.edit-field"), run: () => {
799
+ { key: "edit", icon: "edit", label: f("fields.edit"), run: () => {
799
800
  C(m);
800
801
  } },
801
802
  {
@@ -850,7 +851,7 @@ const Il = [
850
851
  ]),
851
852
  _: 2
852
853
  }, 1024),
853
- h.is_enabled ? P("", !0) : (o(), w(e(Ue), {
854
+ h.is_enabled ? E("", !0) : (o(), w(e(Ue), {
854
855
  key: 0,
855
856
  type: "default"
856
857
  }, {
@@ -905,7 +906,7 @@ const Il = [
905
906
  } : void 0
906
907
  ]), 1032, ["title"]));
907
908
  }
908
- }), Kl = /* @__PURE__ */ ue(jl, [["__scopeId", "data-v-421ed0af"]]);
909
+ }), Kl = /* @__PURE__ */ ue(jl, [["__scopeId", "data-v-60b85ad9"]]);
909
910
  function ve(i, s, u) {
910
911
  return U({
911
912
  get: () => i.value[s] ?? u,
@@ -931,17 +932,17 @@ const Yl = /* @__PURE__ */ ne({
931
932
  return (T, p) => (o(), w(e(oe), null, {
932
933
  default: a(() => [
933
934
  t(e(H), {
934
- label: e(u)("panel.honeypot"),
935
935
  help: e(u)("panel.honeypot-help")
936
936
  }, {
937
937
  default: a(() => [
938
938
  t(e(ml), {
939
939
  modelValue: e(v),
940
- "onUpdate:modelValue": p[0] || (p[0] = (d) => se(v) ? v.value = d : null)
941
- }, null, 8, ["modelValue"])
940
+ "onUpdate:modelValue": p[0] || (p[0] = (d) => se(v) ? v.value = d : null),
941
+ label: e(u)("panel.honeypot")
942
+ }, null, 8, ["modelValue", "label"])
942
943
  ]),
943
944
  _: 1
944
- }, 8, ["label", "help"]),
945
+ }, 8, ["help"]),
945
946
  t(e(H), {
946
947
  label: e(u)("panel.min-seconds"),
947
948
  help: e(u)("panel.min-seconds-help")
@@ -1106,7 +1107,7 @@ const Yl = /* @__PURE__ */ ne({
1106
1107
  }
1107
1108
  }), et = /* @__PURE__ */ ue(Xl, [["__scopeId", "data-v-e415689b"]]), lt = { class: "wx-inbox-general" }, tt = /* @__PURE__ */ ne({
1108
1109
  __name: "FormGeneral",
1109
- props: /* @__PURE__ */ Ee({
1110
+ props: /* @__PURE__ */ Pe({
1110
1111
  errors: {}
1111
1112
  }, {
1112
1113
  settings: { required: !0 },
@@ -1153,17 +1154,17 @@ const Yl = /* @__PURE__ */ ne({
1153
1154
  _: 1
1154
1155
  }, 8, ["label", "help", "error"]),
1155
1156
  t(e(H), {
1156
- label: e(v)("panel.is-enabled"),
1157
1157
  help: e(v)("panel.is-enabled-help")
1158
1158
  }, {
1159
1159
  default: a(() => [
1160
1160
  t(e(ml), {
1161
1161
  modelValue: s.value.is_enabled,
1162
- "onUpdate:modelValue": p[2] || (p[2] = (d) => s.value.is_enabled = d)
1163
- }, null, 8, ["modelValue"])
1162
+ "onUpdate:modelValue": p[2] || (p[2] = (d) => s.value.is_enabled = d),
1163
+ label: e(v)("panel.is-enabled")
1164
+ }, null, 8, ["modelValue", "label"])
1164
1165
  ]),
1165
1166
  _: 1
1166
- }, 8, ["label", "help"])
1167
+ }, 8, ["help"])
1167
1168
  ]),
1168
1169
  _: 1
1169
1170
  }),
@@ -1224,7 +1225,7 @@ const Yl = /* @__PURE__ */ ne({
1224
1225
  }, 8, ["title"])
1225
1226
  ]));
1226
1227
  }
1227
- }), at = /* @__PURE__ */ ue(tt, [["__scopeId", "data-v-35e56e3d"]]), nt = /^[^\s@]+@[^\s@]+$/;
1228
+ }), at = /* @__PURE__ */ ue(tt, [["__scopeId", "data-v-1932aefe"]]), nt = /^[^\s@]+@[^\s@]+$/;
1228
1229
  function Le(i) {
1229
1230
  return "admin_id" in i;
1230
1231
  }
@@ -1238,7 +1239,7 @@ function st(i, s = []) {
1238
1239
  }
1239
1240
  const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients__row" }, ut = /* @__PURE__ */ ne({
1240
1241
  __name: "FormNotifications",
1241
- props: /* @__PURE__ */ Ee({
1242
+ props: /* @__PURE__ */ Pe({
1242
1243
  fields: {},
1243
1244
  errors: {},
1244
1245
  reported: {}
@@ -1303,7 +1304,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1303
1304
  type: "danger",
1304
1305
  variant: "soft",
1305
1306
  description: i.errors["options.recipients"]?.[0]
1306
- }, null, 8, ["description"])) : P("", !0),
1307
+ }, null, 8, ["description"])) : E("", !0),
1307
1308
  K("div", ot, [
1308
1309
  e(l).length === 0 ? (o(), w(e(Q), {
1309
1310
  key: 0,
@@ -1314,7 +1315,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1314
1315
  S(V(e(c)("panel.no-recipients")), 1)
1315
1316
  ]),
1316
1317
  _: 1
1317
- })) : P("", !0),
1318
+ })) : E("", !0),
1318
1319
  (o(!0), G(ee, null, ge(e(l), (h, I) => (o(), G("div", {
1319
1320
  key: I,
1320
1321
  class: "wx-inbox-recipients__item"
@@ -1348,7 +1349,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1348
1349
  S(V(D(h)), 1)
1349
1350
  ]),
1350
1351
  _: 2
1351
- }, 1024)) : P("", !0)
1352
+ }, 1024)) : E("", !0)
1352
1353
  ]))), 128))
1353
1354
  ]),
1354
1355
  t(e(Ae), { size: "sm" }, {
@@ -1412,7 +1413,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1412
1413
  });
1413
1414
  const F = q({}), $ = q(["general", "fields", "notifications", "antispam", "embed"].includes(String(n.query.tab)) ? String(n.query.tab) : "general"), h = U(
1414
1415
  () => b.is_enabled && !st(F.value.recipients, p.value?.recipients)
1415
- ), I = U(() => u.can("inbox.manage")), x = U(() => Number(n.params.id)), E = U(
1416
+ ), I = U(() => u.can("inbox.manage")), x = U(() => Number(n.params.id)), P = U(
1416
1417
  () => p.value === null ? "" : be(b.title, f.active.value, b.slug)
1417
1418
  ), j = U(() => `${s.base}?form=${x.value}`);
1418
1419
  async function R() {
@@ -1458,13 +1459,13 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1458
1459
  })) : p.value ? (o(), G(ee, { key: 1 }, [
1459
1460
  t(e(tl), {
1460
1461
  class: "wx-inbox-editor__head",
1461
- title: E.value,
1462
+ title: P.value,
1462
1463
  subtitle: p.value.slug,
1463
1464
  back: j.value,
1464
1465
  "back-label": e(l)("panel.forms")
1465
1466
  }, {
1466
1467
  "title-after": a(() => [
1467
- e(b).is_enabled ? P("", !0) : (o(), w(e(Ue), {
1468
+ e(b).is_enabled ? E("", !0) : (o(), w(e(Ue), {
1468
1469
  key: 0,
1469
1470
  type: "default"
1470
1471
  }, {
@@ -1484,7 +1485,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1484
1485
  closable: !1,
1485
1486
  title: e(l)("panel.notifies-nobody"),
1486
1487
  description: e(l)("panel.notifies-nobody-text")
1487
- }, null, 8, ["title", "description"])) : P("", !0),
1488
+ }, null, 8, ["title", "description"])) : E("", !0),
1488
1489
  t(e(nl), {
1489
1490
  modelValue: $.value,
1490
1491
  "onUpdate:modelValue": O[5] || (O[5] = (J) => $.value = J),
@@ -1578,8 +1579,8 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1578
1579
  }, 8, ["loading"])
1579
1580
  ]),
1580
1581
  _: 1
1581
- })) : P("", !0)
1582
- ], 64)) : P("", !0)
1582
+ })) : E("", !0)
1583
+ ], 64)) : E("", !0)
1583
1584
  ]));
1584
1585
  }
1585
1586
  }), pt = /* @__PURE__ */ ue(ct, [["__scopeId", "data-v-8e53184e"]]), mt = { class: "wx-inbox-create" }, vt = /* @__PURE__ */ ne({
@@ -1705,7 +1706,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1705
1706
  label: I(B.label, B.value)
1706
1707
  }));
1707
1708
  }
1708
- async function E() {
1709
+ async function P() {
1709
1710
  try {
1710
1711
  const R = await f.form(s.form.id);
1711
1712
  d.value = (R.fields ?? []).filter((B) => B.is_enabled);
@@ -1717,7 +1718,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1717
1718
  D.value = !1;
1718
1719
  }
1719
1720
  }
1720
- E();
1721
+ P();
1721
1722
  async function j() {
1722
1723
  C.value = !0, b.value = {};
1723
1724
  try {
@@ -1838,7 +1839,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1838
1839
  S(V(e(T)("panel.no-files-by-hand")), 1)
1839
1840
  ]),
1840
1841
  _: 1
1841
- })) : P("", !0)
1842
+ })) : E("", !0)
1842
1843
  ], 64))
1843
1844
  ])
1844
1845
  ]),
@@ -1855,7 +1856,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
1855
1856
  setup(i, { expose: s, emit: u }) {
1856
1857
  const v = i, n = u, c = ie(), f = ce(c), l = Re(), T = Be(), p = we();
1857
1858
  pe();
1858
- const d = cl("root"), D = Tl(d), C = U(() => D.value > 0 && D.value < _t), z = U(() => C.value ? Number.POSITIVE_INFINITY : 0), b = ae("webx-inbox"), F = ae("webx-admin"), m = ye(), $ = q(null), h = q([]), I = q(!1), x = q([]), E = q(!1), j = U(() => c.can("inbox.update")), R = je(ht), B = U({
1859
+ const d = cl("root"), D = Tl(d), C = U(() => D.value > 0 && D.value < _t), z = U(() => C.value ? Number.POSITIVE_INFINITY : 0), b = ae("webx-inbox"), F = ae("webx-admin"), m = ye(), $ = q(null), h = q([]), I = q(!1), x = q([]), P = q(!1), j = U(() => c.can("inbox.update")), R = je(ht), B = U({
1859
1860
  get: () => typeof l.query.view == "string" && l.query.view !== "" ? l.query.view : "all",
1860
1861
  set: (_) => {
1861
1862
  T.replace({
@@ -2018,11 +2019,11 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2018
2019
  ] : [];
2019
2020
  }
2020
2021
  async function Qe(_) {
2021
- typeof _ == "number" && (E.value = !0, await Y(
2022
+ typeof _ == "number" && (P.value = !0, await Y(
2022
2023
  x.value.map((Z) => Z.id),
2023
2024
  "status",
2024
2025
  _
2025
- ), E.value = !1);
2026
+ ), P.value = !1);
2026
2027
  }
2027
2028
  async function y(_) {
2028
2029
  await Ce({
@@ -2108,14 +2109,14 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2108
2109
  S(V(de(N.status)), 1)
2109
2110
  ]),
2110
2111
  _: 2
2111
- }, 1032, ["type"])) : P("", !0),
2112
+ }, 1032, ["type"])) : E("", !0),
2112
2113
  N.assignee ? (o(), w(e(il), {
2113
2114
  key: 1,
2114
2115
  name: N.assignee.name,
2115
2116
  title: N.assignee.name,
2116
2117
  size: "xs",
2117
2118
  tone: "auto"
2118
- }, null, 8, ["name", "title"])) : P("", !0),
2119
+ }, null, 8, ["name", "title"])) : E("", !0),
2119
2120
  N.files_count > 0 ? (o(), w(e(ql), {
2120
2121
  key: 2,
2121
2122
  content: e(b)("panel.attachments")
@@ -2127,11 +2128,11 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2127
2128
  })
2128
2129
  ]),
2129
2130
  _: 1
2130
- }, 8, ["content"])) : P("", !0)
2131
+ }, 8, ["content"])) : E("", !0)
2131
2132
  ])
2132
2133
  ]),
2133
2134
  "cell-created_at": a(({ row: N }) => [
2134
- t(e(Pe), {
2135
+ t(e(Ee), {
2135
2136
  value: N.created_at,
2136
2137
  compact: ""
2137
2138
  }, null, 8, ["value"])
@@ -2155,20 +2156,20 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2155
2156
  S(V(de(N.status)), 1)
2156
2157
  ]),
2157
2158
  _: 2
2158
- }, 1032, ["type"])) : P("", !0),
2159
+ }, 1032, ["type"])) : E("", !0),
2159
2160
  N.assignee ? (o(), w(e(il), {
2160
2161
  key: 1,
2161
2162
  name: N.assignee.name,
2162
2163
  title: N.assignee.name,
2163
2164
  size: "xs",
2164
2165
  tone: "auto"
2165
- }, null, 8, ["name", "title"])) : P("", !0),
2166
+ }, null, 8, ["name", "title"])) : E("", !0),
2166
2167
  N.files_count > 0 ? (o(), w(e(_e), {
2167
2168
  key: 2,
2168
2169
  name: "file",
2169
2170
  size: "sm"
2170
- })) : P("", !0),
2171
- t(e(Pe), {
2171
+ })) : E("", !0),
2172
+ t(e(Ee), {
2172
2173
  value: N.created_at
2173
2174
  }, null, 8, ["value"])
2174
2175
  ]),
@@ -2206,7 +2207,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2206
2207
  "model-value": null,
2207
2208
  options: re.value,
2208
2209
  placeholder: e(b)("panel.move-to"),
2209
- disabled: E.value,
2210
+ disabled: P.value,
2210
2211
  size: "sm",
2211
2212
  style: { width: "180px" },
2212
2213
  "onUpdate:modelValue": Qe
@@ -2291,7 +2292,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2291
2292
  x(), Te([p, h], () => {
2292
2293
  p.value.length === 0 || h.value !== null || c.replace({ query: { ...n.query, form: String(p.value[0].id) } });
2293
2294
  });
2294
- function E(A, X) {
2295
+ function P(A, X) {
2295
2296
  c.replace({ query: { ...n.query, form: String(A.id) } }), X();
2296
2297
  }
2297
2298
  function j(A) {
@@ -2410,7 +2411,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2410
2411
  S(" " + V(e(l)("panel.new-form")), 1)
2411
2412
  ]),
2412
2413
  _: 1
2413
- })) : P("", !0),
2414
+ })) : E("", !0),
2414
2415
  t(e(al), {
2415
2416
  modelValue: p.value,
2416
2417
  "onUpdate:modelValue": X[1] || (X[1] = (g) => p.value = g),
@@ -2427,7 +2428,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2427
2428
  K("button", {
2428
2429
  type: "button",
2429
2430
  class: sl(["wx-inbox-form", { "is-current": g.id === $.value, "is-off": !g.is_enabled }]),
2430
- onClick: (re) => E(g, k)
2431
+ onClick: (re) => P(g, k)
2431
2432
  }, [
2432
2433
  K("span", $t, [
2433
2434
  t(e(Q), {
@@ -2446,7 +2447,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2446
2447
  name: "warning",
2447
2448
  label: e(l)("panel.notifies-nobody-short"),
2448
2449
  title: e(l)("panel.notifies-nobody-short")
2449
- }, null, 8, ["label", "title"])) : P("", !0),
2450
+ }, null, 8, ["label", "title"])) : E("", !0),
2450
2451
  g.unread_count ? (o(), w(e(ul), {
2451
2452
  key: 1,
2452
2453
  class: "wx-inbox-form__count",
@@ -2459,7 +2460,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2459
2460
  type: "neutral",
2460
2461
  value: g.submissions_count,
2461
2462
  label: e(l)("panel.submissions")
2462
- }, null, 8, ["value", "label"])) : P("", !0)
2463
+ }, null, 8, ["value", "label"])) : E("", !0)
2463
2464
  ]),
2464
2465
  t(e(Q), {
2465
2466
  size: "sm",
@@ -2578,16 +2579,16 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2578
2579
  u(
2579
2580
  s.status === null ? await f.createStatus(x) : await f.saveStatus(s.status.id, x)
2580
2581
  );
2581
- } catch (E) {
2582
- const j = E.body;
2583
- j?.errors ? (m.value = j.errors, L.danger(l("panel.failed"))) : L.danger(T(E));
2582
+ } catch (P) {
2583
+ const j = P.body;
2584
+ j?.errors ? (m.value = j.errors, L.danger(l("panel.failed"))) : L.danger(T(P));
2584
2585
  } finally {
2585
2586
  F.value = !1;
2586
2587
  }
2587
2588
  }
2588
- return (x, E) => (o(), w(e(Ge), {
2589
+ return (x, P) => (o(), w(e(Ge), {
2589
2590
  open: e(n),
2590
- "onUpdate:open": E[7] || (E[7] = (j) => se(n) ? n.value = j : null),
2591
+ "onUpdate:open": P[7] || (P[7] = (j) => se(n) ? n.value = j : null),
2591
2592
  title: i.status ? e(l)("panel.settings") : e(l)("panel.new-status"),
2592
2593
  width: 520
2593
2594
  }, {
@@ -2596,7 +2597,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2596
2597
  default: a(() => [
2597
2598
  t(e(te), {
2598
2599
  variant: "outline",
2599
- onClick: E[6] || (E[6] = (j) => e(v)())
2600
+ onClick: P[6] || (P[6] = (j) => e(v)())
2600
2601
  }, {
2601
2602
  default: a(() => [
2602
2603
  S(V(e(l)("panel.cancel")), 1)
@@ -2627,7 +2628,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2627
2628
  default: a(() => [
2628
2629
  t(e(le), {
2629
2630
  modelValue: d.value,
2630
- "onUpdate:modelValue": E[0] || (E[0] = (j) => d.value = j),
2631
+ "onUpdate:modelValue": P[0] || (P[0] = (j) => d.value = j),
2631
2632
  localized: ""
2632
2633
  }, null, 8, ["modelValue"])
2633
2634
  ]),
@@ -2641,7 +2642,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2641
2642
  default: a(() => [
2642
2643
  t(e(le), {
2643
2644
  modelValue: p.value,
2644
- "onUpdate:modelValue": E[1] || (E[1] = (j) => p.value = j),
2645
+ "onUpdate:modelValue": P[1] || (P[1] = (j) => p.value = j),
2645
2646
  placeholder: "in-progress"
2646
2647
  }, null, 8, ["modelValue"])
2647
2648
  ]),
@@ -2654,7 +2655,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2654
2655
  default: a(() => [
2655
2656
  t(e(fe), {
2656
2657
  modelValue: D.value,
2657
- "onUpdate:modelValue": E[2] || (E[2] = (j) => D.value = j),
2658
+ "onUpdate:modelValue": P[2] || (P[2] = (j) => D.value = j),
2658
2659
  options: $.value
2659
2660
  }, null, 8, ["modelValue", "options"])
2660
2661
  ]),
@@ -2663,17 +2664,17 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2663
2664
  K("div", Tt, [
2664
2665
  t(e(he), {
2665
2666
  modelValue: C.value,
2666
- "onUpdate:modelValue": E[3] || (E[3] = (j) => C.value = j),
2667
+ "onUpdate:modelValue": P[3] || (P[3] = (j) => C.value = j),
2667
2668
  label: e(l)("panel.status-default")
2668
2669
  }, null, 8, ["modelValue", "label"]),
2669
2670
  t(e(he), {
2670
2671
  modelValue: z.value,
2671
- "onUpdate:modelValue": E[4] || (E[4] = (j) => z.value = j),
2672
+ "onUpdate:modelValue": P[4] || (P[4] = (j) => z.value = j),
2672
2673
  label: e(l)("panel.status-spam")
2673
2674
  }, null, 8, ["modelValue", "label"]),
2674
2675
  t(e(he), {
2675
2676
  modelValue: b.value,
2676
- "onUpdate:modelValue": E[5] || (E[5] = (j) => b.value = j),
2677
+ "onUpdate:modelValue": P[5] || (P[5] = (j) => b.value = j),
2677
2678
  disabled: z.value,
2678
2679
  label: e(l)("panel.status-closed")
2679
2680
  }, null, 8, ["modelValue", "disabled", "label"])
@@ -2804,15 +2805,15 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2804
2805
  K("code", null, V(x.key), 1),
2805
2806
  x.is_default ? (o(), G(ee, { key: 0 }, [
2806
2807
  S(" · " + V(e(c)("panel.status-default")), 1)
2807
- ], 64)) : P("", !0),
2808
+ ], 64)) : E("", !0),
2808
2809
  x.is_spam ? (o(), G(ee, { key: 1 }, [
2809
2810
  S(" · " + V(e(c)("panel.status-spam")), 1)
2810
2811
  ], 64)) : x.is_closed ? (o(), G(ee, { key: 2 }, [
2811
2812
  S(" · " + V(e(c)("panel.status-closed")), 1)
2812
- ], 64)) : P("", !0),
2813
+ ], 64)) : E("", !0),
2813
2814
  x.submissions_count ? (o(), G(ee, { key: 3 }, [
2814
2815
  S(" · " + V(e(c)("panel.in-use")) + " (" + V(x.submissions_count) + ") ", 1)
2815
- ], 64)) : P("", !0)
2816
+ ], 64)) : E("", !0)
2816
2817
  ]),
2817
2818
  _: 2
2818
2819
  }, 1024)
@@ -2834,7 +2835,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2834
2835
  }), At = /* @__PURE__ */ ue(Wt, [["__scopeId", "data-v-f94bf140"]]), Nt = { class: "wx-submission" }, It = {
2835
2836
  key: 1,
2836
2837
  class: "wx-submission__panes"
2837
- }, Dt = { class: "wx-submission__main" }, Mt = { class: "wx-submission__value" }, Lt = { class: "wx-submission__files" }, Ot = { class: "wx-submission__by" }, Pt = { class: "wx-submission__fields" }, Et = ["href"], Rt = {
2838
+ }, Dt = { class: "wx-submission__main" }, Mt = { class: "wx-submission__value" }, Lt = { class: "wx-submission__files" }, Ot = { class: "wx-submission__by" }, Et = { class: "wx-submission__fields" }, Pt = ["href"], Rt = {
2838
2839
  key: 1,
2839
2840
  class: "wx-submission__detail"
2840
2841
  }, Bt = { class: "wx-submission__detail" }, Ht = {
@@ -2860,12 +2861,12 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
2860
2861
  function x(y) {
2861
2862
  return be(y.title, f.active.value, y.key);
2862
2863
  }
2863
- const E = U(() => l("panel.submission", { id: String(F.value) })), j = U(() => {
2864
+ const P = U(() => l("panel.submission", { id: String(F.value) })), j = U(() => {
2864
2865
  const y = d.value?.form;
2865
2866
  return y === void 0 ? "" : be(y.title ?? {}, f.active.value, y.slug ?? "");
2866
2867
  }), R = U(() => (d.value?.values ?? []).find((M) => M.type === "email" && (M.value ?? "") !== "")?.value ?? null), B = U(() => {
2867
2868
  if (R.value === null) return null;
2868
- const y = encodeURIComponent(`${j.value} — ${E.value}`);
2869
+ const y = encodeURIComponent(`${j.value} — ${P.value}`);
2869
2870
  return `mailto:${R.value}?subject=${y}`;
2870
2871
  });
2871
2872
  async function r() {
@@ -3029,7 +3030,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
3029
3030
  });
3030
3031
  return (y, Y) => (o(), G("div", Nt, [
3031
3032
  t(e(tl), {
3032
- title: E.value,
3033
+ title: P.value,
3033
3034
  subtitle: j.value,
3034
3035
  back: $.value,
3035
3036
  actions: X.value
@@ -3108,12 +3109,12 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
3108
3109
  ])
3109
3110
  ]),
3110
3111
  _: 1
3111
- }, 8, ["title"])) : P("", !0),
3112
+ }, 8, ["title"])) : E("", !0),
3112
3113
  t(e(oe), { class: "wx-submission__more" }, {
3113
3114
  default: a(() => [
3114
3115
  t(e(nl), {
3115
3116
  variant: "pill",
3116
- "aria-label": E.value
3117
+ "aria-label": P.value
3117
3118
  }, {
3118
3119
  default: a(() => [
3119
3120
  t(e(xe), {
@@ -3162,7 +3163,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
3162
3163
  ]),
3163
3164
  _: 2
3164
3165
  }, 1024),
3165
- t(e(Pe), {
3166
+ t(e(Ee), {
3166
3167
  value: M.created_at
3167
3168
  }, null, 8, ["value"])
3168
3169
  ])
@@ -3180,7 +3181,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
3180
3181
  label: e(l)("panel.details")
3181
3182
  }, {
3182
3183
  default: a(() => [
3183
- K("div", Pt, [
3184
+ K("div", Et, [
3184
3185
  t(e(rl), {
3185
3186
  columns: 1,
3186
3187
  layout: "vertical",
@@ -3191,7 +3192,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
3191
3192
  label: e(l)("panel.received")
3192
3193
  }, {
3193
3194
  default: a(() => [
3194
- t(e(Pe), {
3195
+ t(e(Ee), {
3195
3196
  value: d.value.created_at,
3196
3197
  tone: "default"
3197
3198
  }, null, 8, ["value"])
@@ -3223,7 +3224,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
3223
3224
  href: M.value,
3224
3225
  target: "_blank",
3225
3226
  rel: "noreferrer"
3226
- }, V(M.value), 9, Et)) : (o(), G("span", Rt, V(M.value), 1))
3227
+ }, V(M.value), 9, Pt)) : (o(), G("span", Rt, V(M.value), 1))
3227
3228
  ]),
3228
3229
  _: 2
3229
3230
  }, 1032, ["label"]))), 128))
@@ -3296,7 +3297,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
3296
3297
  _: 2
3297
3298
  }, 1032, ["type"])
3298
3299
  ]))), 128))
3299
- ])) : P("", !0),
3300
+ ])) : E("", !0),
3300
3301
  b.value && (k.value?.state === "failed" || k.value?.state === "queued") ? (o(), G("div", Gt, [
3301
3302
  t(e(te), {
3302
3303
  size: "sm",
@@ -3307,7 +3308,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
3307
3308
  ]),
3308
3309
  _: 1
3309
3310
  })
3310
- ])) : P("", !0)
3311
+ ])) : E("", !0)
3311
3312
  ])
3312
3313
  ]),
3313
3314
  _: 1
@@ -3364,7 +3365,7 @@ const ot = { class: "wx-inbox-recipients" }, it = { class: "wx-inbox-recipients_
3364
3365
  _: 1
3365
3366
  })
3366
3367
  ])
3367
- ])) : P("", !0)
3368
+ ])) : E("", !0)
3368
3369
  ]));
3369
3370
  }
3370
3371
  }), Jt = /* @__PURE__ */ ue(Qt, [["__scopeId", "data-v-3d8c60d4"]]);