@wssto2/vue-core 0.4.27 → 0.5.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/CHANGELOG.md +79 -0
- package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-J5HoyGNJ.js → AccessGate.vue_vue_type_script_setup_true_lang-Nw1IsB8N.js} +1 -1
- package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-QPvYudWc.js → ActionRow.vue_vue_type_script_setup_true_lang-BCgKzUvG.js} +1 -1
- package/dist/{Activity-xtkZq4vG.js → Activity-CoGI2_GL.js} +7 -7
- package/dist/{Changes-BPB8h56i.js → Changes-Cwfe6wbX.js} +6 -6
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-CVEYkb26.js → CollectionPage.vue_vue_type_script_setup_true_lang-CtvHtFLy.js} +5 -5
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-DcQQ-uQS.js → DataTable.vue_vue_type_script_setup_true_lang-BEvz5zqo.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-CpuH0WTl.js → DateField.vue_vue_type_script_setup_true_lang-DRuWzSaX.js} +1 -1
- package/dist/{DeadLetters-DeYxkTMh.js → DeadLetters-DyA5Dqn0.js} +7 -7
- package/dist/{FormErrors.vue_vue_type_script_setup_true_lang-DGOSc-PS.js → FormErrors.vue_vue_type_script_setup_true_lang-D7edzNTL.js} +2 -2
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-DSwSRsA5.js → FormGroup.vue_vue_type_script_setup_true_lang-BPchlRCl.js} +2 -2
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-BUrYkjmF.js → FormView.vue_vue_type_script_setup_true_lang-CPSYV7iQ.js} +2 -2
- package/dist/{General-BLbn4BCc.js → General-DTEfxWls.js} +10 -10
- package/dist/MenuButton.vue_vue_type_script_setup_true_lang-AGbN9r5q.js +28 -0
- package/dist/{NewRolePage-B7DwFWPk.js → NewRolePage-CRZoUajV.js} +3 -3
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-DaE5BLm4.js → NumberField.vue_vue_type_script_setup_true_lang-ButMV_sf.js} +1 -1
- package/dist/ProfilePage-DLY81mvN.js +764 -0
- package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-gXbxXG2R.js +325 -0
- package/dist/RolePage-B9t586Q8.js +314 -0
- package/dist/{RolesPage-B5RwSZ89.js → RolesPage-BRdG-OSL.js} +6 -6
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-Dmv6TpCi.js → SectionNavigator.vue_vue_type_script_setup_true_lang-Cy9Oi0ts.js} +1 -1
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-Dg-_ZjgR.js → SegmentedField.vue_vue_type_script_setup_true_lang-BwyMvkis.js} +1 -1
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-C3FbRQW7.js → SelectField.vue_vue_type_script_setup_true_lang-BzQC1qDQ.js} +11 -12
- package/dist/SessionList.vue_vue_type_script_setup_true_lang-DhoTd5D7.js +133 -0
- package/dist/{Sessions-wEdUsK-U.js → Sessions-vGyUOnPG.js} +5 -5
- package/dist/SettingsPage-V8WeADZZ.js +632 -0
- package/dist/{SignIn-CK9rq8LQ.js → SignIn-C-3i8RG6.js} +7 -7
- package/dist/{SignInPage-BORsM1g4.js → SignInPage-D2NA3VKU.js} +4 -4
- package/dist/SignIns-eoYPB6kB.js +121 -0
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-ALvJisiP.js → SwitchField.vue_vue_type_script_setup_true_lang-D_-HACqT.js} +1 -1
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-CP2WeU36.js → TextField.vue_vue_type_script_setup_true_lang-DTAQPbW0.js} +2 -2
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-BJ4__cvJ.js → TextareaField.vue_vue_type_script_setup_true_lang-DsjK2C9T.js} +1 -1
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-DBxKAWRo.js → TimeField.vue_vue_type_script_setup_true_lang-Cz7KhUqt.js} +1 -1
- package/dist/Timestamp.vue_vue_type_script_setup_true_lang-CutyQkJb.js +52 -0
- package/dist/{UserRecord-C1SzdpKu.js → UserRecord-BaQl2zzQ.js} +13 -13
- package/dist/{UsersList-B3hc683r.js → UsersList-BfXWgH5K.js} +9 -9
- package/dist/access/RoleCompareDialog.vue.d.ts +1 -1
- package/dist/access/RoleEditor.vue.d.ts +2 -0
- package/dist/access/constraints.d.ts +28 -0
- package/dist/access/context.d.ts +5 -0
- package/dist/access/feature.d.ts +17 -0
- package/dist/access/index.d.ts +3 -1
- package/dist/access/index.js +11 -9
- package/dist/access/refusals.d.ts +20 -2
- package/dist/app/index.js +6 -6
- package/dist/client/index.js +19 -11
- package/dist/{client-k9euDWF4.js → client-BHPFfBj3.js} +20 -20
- package/dist/collection/index.js +5 -5
- package/dist/content/Timestamp.vue.d.ts +3 -2
- package/dist/content/index.js +66 -37
- package/dist/{contributions-BVBZP5Jb.js → contributions-DVQPcjJz.js} +1 -1
- package/dist/{describeError-B-NMa--w.js → describeError-BqGAUZgX.js} +1 -1
- package/dist/{error-CD7x0Jrz.js → error-Bb_dr_Ay.js} +2 -2
- package/dist/{fieldMessages-6HVzSDqG.js → fieldMessages-DTXpWnBd.js} +7 -7
- package/dist/form/index.js +1235 -1412
- package/dist/{guards-BJZjc3FZ.js → guards-DRh4zmxO.js} +1 -1
- package/dist/{http-BFfkA7gN.js → http-D_pBg22D.js} +1 -1
- package/dist/i18n/index.d.ts +2 -2
- package/dist/i18n/index.js +30 -30
- package/dist/identity/index.d.ts +2 -0
- package/dist/identity/index.js +8 -6
- package/dist/identity/profile/DetailsFields.vue.d.ts +8 -0
- package/dist/identity/profile/{DetailsPanel.vue.d.ts → DetailsGroup.vue.d.ts} +4 -1
- package/dist/identity/profile/{EmailPanel.vue.d.ts → EmailGroup.vue.d.ts} +1 -1
- package/dist/identity/profile/SignInsGroup.vue.d.ts +2 -0
- package/dist/identity/profile/profileSections.d.ts +37 -0
- package/dist/identity/shared/SignInList.vue.d.ts +22 -0
- package/dist/identity/shared/deviceLabel.d.ts +7 -0
- package/dist/identity/useReturnToOwnAccount.d.ts +10 -0
- package/dist/identity/users/context.d.ts +3 -0
- package/dist/identity/users/feature.d.ts +3 -0
- package/dist/index-WkbzC_ee.js +745 -0
- package/dist/index-g-qbUeTk.js +630 -0
- package/dist/index-kqk7Mclb.js +480 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/notification/entities.d.ts +19 -0
- package/dist/modules/notification/routes.d.ts +25 -1
- package/dist/modules/notification/schemas.d.ts +24 -0
- package/dist/{navigation-DpcDF0rX.js → navigation-DuQwti76.js} +1 -1
- package/dist/{neighbors-RVQ4O3Qv.js → neighbors-IMRQ4rkm.js} +22 -22
- package/dist/notifications/context.d.ts +24 -1
- package/dist/notifications/feature.d.ts +10 -1
- package/dist/notifications/index.d.ts +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/notifications/push/DevicesSection.vue.d.ts +12 -0
- package/dist/notifications/push/ThisDeviceSection.vue.d.ts +15 -0
- package/dist/notifications/push/browser.d.ts +40 -0
- package/dist/notifications/push/devices.d.ts +15 -0
- package/dist/notifications/push/thisDevice.d.ts +28 -0
- package/dist/notifications/settings/ChannelsSection.vue.d.ts +16 -0
- package/dist/notifications/settings/{QuietHoursPanel.vue.d.ts → QuietHoursSection.vue.d.ts} +3 -1
- package/dist/notifications/settings/SettingsBody.vue.d.ts +17 -0
- package/dist/notifications/settings/settings.d.ts +4 -3
- package/dist/notifications/settings/state.d.ts +4 -2
- package/dist/options-g8RwEhBk.js +366 -0
- package/dist/overlay/MenuButton.vue.d.ts +3 -2
- package/dist/overlay/index.js +37 -59
- package/dist/page/index.js +1 -1
- package/dist/phone/index.js +10 -11
- package/dist/platform/index.js +3 -3
- package/dist/{platform-PZpUkkMS.js → platform-Dl1fbScN.js} +2 -2
- package/dist/push-worker/index.d.ts +91 -0
- package/dist/push-worker/index.js +54 -0
- package/dist/resource/index.js +1 -1
- package/dist/{routeResource-DlTsGTg_.js → routeResource-CcYA75T2.js} +2 -2
- package/dist/router/index.js +3 -3
- package/dist/{rowLayout-Dh749umr.js → rowLayout-BBFyLbOl.js} +1 -1
- package/dist/{sections-CeZl-Jxg.js → sections-D5rgQ4YB.js} +1 -1
- package/dist/shell/index.js +3 -3
- package/dist/signInEvents-DWShrJox.js +30 -0
- package/dist/state/index.js +1 -1
- package/dist/{status-D9iQJJiz.js → status-C2gHqkj6.js} +2 -2
- package/dist/styles.css +1 -1
- package/dist/{suggestions-DHJFKB26.js → suggestions-CfFTHi8y.js} +2 -2
- package/dist/testing/index.js +1 -1
- package/dist/{useCommand-Cj-APj-P.js → useCommand-CtqheKUv.js} +2 -2
- package/dist/useGroupSheet-ATvc0IiM.js +278 -0
- package/dist/{useLoad-M7V-AVwR.js → useLoad-W4tfxmm5.js} +1 -1
- package/dist/{useResourceForm-tGYTfKhH.js → useResourceForm-CJfl8rj_.js} +1 -1
- package/package.json +6 -2
- package/dist/KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js +0 -35
- package/dist/OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js +0 -95
- package/dist/PanelActions.vue_vue_type_script_setup_true_lang-E9VdIGkf.js +0 -46
- package/dist/ProfilePage-CQYHj9Ns.js +0 -654
- package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-DRHmjA9w.js +0 -300
- package/dist/RolePage-ODFu68Ce.js +0 -315
- package/dist/SessionList.vue_vue_type_script_setup_true_lang-D5qm77Zo.js +0 -111
- package/dist/SettingsPage-BVrMihx0.js +0 -255
- package/dist/SignInTable.vue_vue_type_script_setup_true_lang-AakWNvaM.js +0 -79
- package/dist/SignIns-C-8kVf7I.js +0 -66
- package/dist/Timestamp.vue_vue_type_script_setup_true_lang-DRmzPDOP.js +0 -51
- package/dist/control-B4SdblL6.js +0 -350
- package/dist/identity/profile/PanelActions.vue.d.ts +0 -17
- package/dist/index-C3E6DcO0.js +0 -706
- package/dist/index-LP6NNnow.js +0 -459
- package/dist/index-qUaGJ9j2.js +0 -504
- package/dist/notifications/settings/EmailPanel.vue.d.ts +0 -14
- package/dist/options-Ba_0uLWN.js +0 -18
- package/dist/route-goWMxDUN.js +0 -13
- package/dist/transport-BnP7WC0Y.js +0 -4
- /package/dist/identity/{profile/PasswordPanel.vue.d.ts → ReturnMenuItem.vue.d.ts} +0 -0
- /package/dist/identity/profile/{SessionsPanel.vue.d.ts → PasswordGroup.vue.d.ts} +0 -0
- /package/dist/identity/profile/{SignInsPanel.vue.d.ts → SessionsGroup.vue.d.ts} +0 -0
package/dist/collection/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as O, L as j, a as U, h as G, l as X, r as Z } from "../http-
|
|
2
|
-
import { _ as H, a as J, u as K } from "../CollectionPage.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as W, a as Y } from "../neighbors-
|
|
4
|
-
import { a as te, b as se } from "../rowLayout-
|
|
5
|
-
import { _ as ae } from "../DataTable.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { D as O, L as j, a as U, h as G, l as X, r as Z } from "../http-D_pBg22D.js";
|
|
2
|
+
import { _ as H, a as J, u as K } from "../CollectionPage.vue_vue_type_script_setup_true_lang-CtvHtFLy.js";
|
|
3
|
+
import { u as W, a as Y } from "../neighbors-IMRQ4rkm.js";
|
|
4
|
+
import { a as te, b as se } from "../rowLayout-BBFyLbOl.js";
|
|
5
|
+
import { _ as ae } from "../DataTable.vue_vue_type_script_setup_true_lang-BEvz5zqo.js";
|
|
6
6
|
import { defineComponent as y, openBlock as c, createElementBlock as d, Fragment as h, renderList as v, createBlock as k, unref as f, withCtx as C, normalizeClass as m, createVNode as p, createCommentVNode as g, computed as w, toValue as E } from "vue";
|
|
7
7
|
import { _ } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
8
8
|
import { _ as S } from "../Tooltip.vue_vue_type_script_setup_true_lang-mErNPt8e.js";
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* zero time, the epoch) reads "No data".
|
|
5
5
|
*
|
|
6
6
|
* With an `author` (who changed the record) the calendar icon gives way to the person: a small
|
|
7
|
-
* avatar
|
|
8
|
-
*
|
|
7
|
+
* avatar, centred on two lines, the name on the first (a long one truncates) and the date on the
|
|
8
|
+
* second in muted text (never truncated, never wrapped). The cell is as wide as the wider of the
|
|
9
|
+
* two, so a list column stays narrow. One layout; there is no option for the inline one.
|
|
9
10
|
*
|
|
10
11
|
* <Timestamp :value="lead.created_at" />
|
|
11
12
|
* <Timestamp :value="invoice.due" precision="date" />
|
package/dist/content/index.js
CHANGED
|
@@ -1,78 +1,107 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { _ as A, i as G } from "../Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
|
|
2
|
+
import { defineComponent as d, openBlock as l, createElementBlock as n, createElementVNode as o, toDisplayString as c, createCommentVNode as g, useSlots as y, computed as b, createTextVNode as m, renderSlot as u, normalizeClass as f, Fragment as _, unref as k, renderList as $, createBlock as x, createSlots as h, withCtx as v, resolveDynamicComponent as w } from "vue";
|
|
3
|
+
import { useI18n as V } from "vue-i18n";
|
|
4
|
+
import { _ as R } from "../Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js";
|
|
5
|
+
import { _ as q } from "../Timestamp.vue_vue_type_script_setup_true_lang-CutyQkJb.js";
|
|
6
|
+
const C = {
|
|
7
7
|
role: "separator",
|
|
8
8
|
class: "my-2 flex items-center gap-4"
|
|
9
|
-
},
|
|
9
|
+
}, D = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "select-none whitespace-nowrap font-mono text-2xs uppercase tracking-widest text-content-muted"
|
|
12
|
-
},
|
|
12
|
+
}, F = /* @__PURE__ */ d({
|
|
13
13
|
__name: "Divider",
|
|
14
14
|
props: {
|
|
15
15
|
label: {}
|
|
16
16
|
},
|
|
17
17
|
setup(s) {
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
s.label ? (
|
|
21
|
-
|
|
18
|
+
return (e, t) => (l(), n("div", C, [
|
|
19
|
+
t[0] || (t[0] = o("span", { class: "h-px flex-1 bg-border-separator" }, null, -1)),
|
|
20
|
+
s.label ? (l(), n("span", D, c(s.label), 1)) : g("", !0),
|
|
21
|
+
t[1] || (t[1] = o("span", { class: "h-px flex-1 bg-border-separator" }, null, -1))
|
|
22
22
|
]));
|
|
23
23
|
}
|
|
24
|
-
}), L = /* @__PURE__ */
|
|
24
|
+
}), L = { class: "min-w-0" }, B = { class: "flex items-center gap-1 text-xs text-content-muted" }, K = { class: "sr-only" }, S = /* @__PURE__ */ d({
|
|
25
|
+
__name: "KeyValue",
|
|
26
|
+
props: {
|
|
27
|
+
label: {},
|
|
28
|
+
value: { default: void 0 },
|
|
29
|
+
wrap: { type: Boolean, default: !0 }
|
|
30
|
+
},
|
|
31
|
+
setup(s) {
|
|
32
|
+
const e = s, { t } = V(), r = y(), i = b(() => !r.default && (e.value === null || e.value === void 0 || e.value === ""));
|
|
33
|
+
return (a, p) => (l(), n("div", L, [
|
|
34
|
+
o("dt", B, [
|
|
35
|
+
m(c(e.label) + " ", 1),
|
|
36
|
+
u(a.$slots, "label")
|
|
37
|
+
]),
|
|
38
|
+
o("dd", {
|
|
39
|
+
class: f(["mt-0.5 text-sm font-medium text-content-strong", e.wrap ? "break-words" : "truncate"])
|
|
40
|
+
}, [
|
|
41
|
+
i.value ? (l(), n(_, { key: 0 }, [
|
|
42
|
+
p[0] || (p[0] = o("span", {
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
class: "font-normal text-content-disabled"
|
|
45
|
+
}, "—", -1)),
|
|
46
|
+
o("span", K, c(k(t)("core.state.no_value")), 1)
|
|
47
|
+
], 64)) : u(a.$slots, "default", {}, () => [
|
|
48
|
+
m(c(e.value), 1)
|
|
49
|
+
], void 0, 1)
|
|
50
|
+
], 2)
|
|
51
|
+
]));
|
|
52
|
+
}
|
|
53
|
+
}), I = /* @__PURE__ */ d({
|
|
25
54
|
__name: "KeyValueList",
|
|
26
55
|
props: {
|
|
27
56
|
items: {},
|
|
28
57
|
columns: { default: 1 }
|
|
29
58
|
},
|
|
30
59
|
setup(s) {
|
|
31
|
-
const
|
|
60
|
+
const e = s, t = {
|
|
32
61
|
1: "grid-cols-1",
|
|
33
62
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
34
63
|
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"
|
|
35
64
|
};
|
|
36
|
-
return (
|
|
37
|
-
class: f(["grid gap-x-6 gap-y-3", e
|
|
65
|
+
return (r, i) => (l(), n("dl", {
|
|
66
|
+
class: f(["grid gap-x-6 gap-y-3", t[e.columns]])
|
|
38
67
|
}, [
|
|
39
|
-
(
|
|
40
|
-
key:
|
|
41
|
-
label:
|
|
42
|
-
value:
|
|
43
|
-
"data-key":
|
|
44
|
-
},
|
|
45
|
-
|
|
68
|
+
(l(!0), n(_, null, $(e.items, (a) => (l(), x(S, {
|
|
69
|
+
key: a.key,
|
|
70
|
+
label: a.label,
|
|
71
|
+
value: a.value,
|
|
72
|
+
"data-key": a.key
|
|
73
|
+
}, h({ _: 2 }, [
|
|
74
|
+
r.$slots.value ? {
|
|
46
75
|
name: "default",
|
|
47
|
-
fn:
|
|
48
|
-
|
|
76
|
+
fn: v(() => [
|
|
77
|
+
u(r.$slots, "value", { item: a })
|
|
49
78
|
]),
|
|
50
79
|
key: "0"
|
|
51
80
|
} : void 0
|
|
52
81
|
]), 1032, ["label", "value", "data-key"]))), 128))
|
|
53
82
|
], 2));
|
|
54
83
|
}
|
|
55
|
-
}),
|
|
84
|
+
}), M = /* @__PURE__ */ d({
|
|
56
85
|
__name: "MicroLabel",
|
|
57
86
|
props: {
|
|
58
87
|
as: { default: "span" }
|
|
59
88
|
},
|
|
60
89
|
setup(s) {
|
|
61
|
-
return (
|
|
62
|
-
default:
|
|
63
|
-
|
|
90
|
+
return (e, t) => (l(), x(w(s.as), { class: "text-2xs font-semibold uppercase tracking-[0.06em] text-content-muted" }, {
|
|
91
|
+
default: v(() => [
|
|
92
|
+
u(e.$slots, "default")
|
|
64
93
|
]),
|
|
65
94
|
_: 3
|
|
66
95
|
}));
|
|
67
96
|
}
|
|
68
97
|
});
|
|
69
98
|
export {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
99
|
+
A as Avatar,
|
|
100
|
+
F as Divider,
|
|
101
|
+
S as KeyValue,
|
|
102
|
+
I as KeyValueList,
|
|
103
|
+
M as MicroLabel,
|
|
104
|
+
R as Panel,
|
|
105
|
+
q as Timestamp,
|
|
106
|
+
G as initialsFor
|
|
78
107
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, h as l } from "vue";
|
|
2
2
|
import { d as u } from "./context-Ch1r4fdN.js";
|
|
3
|
-
import { h as a } from "./platform-
|
|
3
|
+
import { h as a } from "./platform-Dl1fbScN.js";
|
|
4
4
|
function h(o, n) {
|
|
5
5
|
const t = o.map(({ contribution: e }) => e).sort((e, r) => (e.order ?? 0) - (r.order ?? 0));
|
|
6
6
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { hasInjectionContext as t, inject as i } from "vue";
|
|
2
2
|
import { useI18n as u } from "vue-i18n";
|
|
3
|
-
import { a } from "./error-
|
|
3
|
+
import { i as a } from "./error-Bb_dr_Ay.js";
|
|
4
4
|
const d = Symbol("vue-core.describeError"), f = Symbol("vue-core.describeFieldError");
|
|
5
5
|
function h() {
|
|
6
6
|
return t() ? i(f, null) : null;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useI18n as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as l } from "./describeError-
|
|
1
|
+
import { useI18n as m } from "vue-i18n";
|
|
2
|
+
import { i as c } from "./error-Bb_dr_Ay.js";
|
|
3
|
+
import { u as a } from "./format-D8X4zsx6.js";
|
|
4
|
+
import { u as l } from "./describeError-BqGAUZgX.js";
|
|
5
5
|
function E() {
|
|
6
|
-
const { t: i, te: u } =
|
|
6
|
+
const { t: i, te: u } = m(), d = a(), f = l(), s = (e) => [`errors.${e}`, `core.errors.${e}`].find((t) => u(t));
|
|
7
7
|
function n(e, t) {
|
|
8
8
|
if (c(e) && e.code) {
|
|
9
9
|
const r = s(e.code), o = typeof e.params?.locked_until == "string" ? new Date(e.params.locked_until) : null;
|
|
10
|
-
if (r && o && !Number.isNaN(o.getTime())) return i(r, { ...e.params, locked_until:
|
|
10
|
+
if (r && o && !Number.isNaN(o.getTime())) return i(r, { ...e.params, locked_until: d.time(o) });
|
|
11
11
|
}
|
|
12
|
-
return
|
|
12
|
+
return f(e, t === void 0 ? void 0 : { fallback: t });
|
|
13
13
|
}
|
|
14
14
|
return {
|
|
15
15
|
sentence: n,
|