@wisemen/wise-invoicing-web 1.0.0 → 1.2.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/AccountingSettingsViewDataProvider-BtDPqr_P.js +981 -0
- package/dist/{ApprovalReminderSettingsViewDataProvider-DyrHExKn.js → ApprovalReminderSettingsViewDataProvider-CuFo2JF5.js} +287 -287
- package/dist/{BillingDocumentDetailViewDataProvider-kFzqhrxW.js → BillingDocumentDetailViewDataProvider-qKW6LiRR.js} +1629 -1604
- package/dist/{BillingDocumentPdf-Dp6HSypy.js → BillingDocumentPdf-CgnrE4eq.js} +5 -5
- package/dist/{DataProvider-BtnD-BzI.js → DataProvider-Dj5ckiN2.js} +6 -9
- package/dist/{DunningCaseSendDialog-1S6OD9wd.js → DunningCaseSendDialog-CQ1yvbUt.js} +36 -36
- package/dist/{InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js → InvoiceApprovalOutOfSyncIndicator-BeqzoD3H.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-DM_LiO19.js → InvoiceApprovalOverviewView-B0ulYsYy.js} +230 -230
- package/dist/{InvoiceApprovalStatusBadge-mbYHYU3x.js → InvoiceApprovalStatusBadge-BZuyVHKk.js} +4 -4
- package/dist/{InvoicePdfView-YbDJpTIA.js → InvoicePdfView-BBTa7EaO.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js → InvoicePublicProFormaPdfViewDataProvider-_Tbt2pTv.js} +4 -4
- package/dist/{InvoiceRejectDialogDataProvider-yegAlkDB.js → InvoiceRejectDialogDataProvider-ma2UsSzC.js} +33 -33
- package/dist/{InvoiceStatusBadge-Bo5PDjEy.js → InvoiceStatusBadge-JIR1gUDL.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-DVh22OUB.js → InvoicingFileUploadProvider-B-eq6i9v.js} +14 -14
- package/dist/{IssuerSettingsViewDataProvider-BgSFemZr.js → IssuerSettingsViewDataProvider-CHyCCy9K.js} +66 -66
- package/dist/{PeppolSettingsViewDataProvider-_Bx0xx9e.js → PeppolSettingsViewDataProvider-j1btvXOf.js} +4 -4
- package/dist/{api.util-lGbimoKL.js → api.util-BkwbrwEm.js} +1026 -800
- package/dist/billingDocumentDetail.transformer-B-GSRQc0.js +324 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +10 -1
- package/dist/client/types.gen.d.ts +452 -1
- package/dist/client/zod.gen.d.ts +524 -0
- package/dist/composables/invoicingConfig.composable.d.ts +3 -0
- package/dist/{creditNoteDetail.query-CqJeWeRV.js → creditNoteDetail.query-Tg4s5B8Q.js} +34 -34
- package/dist/{customFieldDefinitionIndex.query-Co7hoMow.js → customFieldDefinitionIndex.query-DtMibcTn.js} +28 -28
- package/dist/{deliveryReason.util-ny1rA7Sm.js → deliveryReason.util-BuCD1Fuz.js} +6 -6
- package/dist/{dist-CrNFh-CR.js → dist-AbMUaDf-.js} +93 -93
- package/dist/{dist-DmVrfBOT.js → dist-DaJ08k0k.js} +231 -119
- package/dist/{documentTitle.composable-aTEYXgaZ.js → documentTitle.composable-Bxu0YL71.js} +27 -19
- package/dist/{i18n.lib-B1H9r0km.js → i18n.lib-C8TA6PCf.js} +162 -2
- package/dist/index.d.ts +160 -0
- package/dist/index.js +1576 -1554
- package/dist/instant.transformer-KmBsH3E9.js +18 -0
- package/dist/{invoice.service-D9ubyWPb.js → invoice.service-BtgRZKrv.js} +152 -151
- package/dist/{invoiceApproval.service-BtDIOHIo.js → invoiceApproval.service-DEvaL-MH.js} +22 -21
- package/dist/invoiceApprovalStatus.util-NpxAuQ0t.js +83 -0
- package/dist/{invoiceCustomer.service-D0AtVrLg.js → invoiceCustomer.service-Cowdna7o.js} +6 -6
- package/dist/{invoiceDetail.query-BNL6MkvC.js → invoiceDetail.query-nEhWRrdL.js} +1 -1
- package/dist/{invoicingConfig.composable-DEF0lzNP.js → invoicingConfig.composable-CW47czLa.js} +20 -19
- package/dist/{issuerSettings.query-Cu-I6OAg.js → issuerSettings.query-CIWw1Zku.js} +27 -27
- package/dist/libs/i18n.lib.d.ts +160 -0
- package/dist/locales/en-US.json.d.ts +81 -1
- package/dist/locales/nl-BE.json.d.ts +81 -1
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +7 -1
- package/dist/modules/accounting/api/mutations/accountingConnectionDisconnect.mutation.d.ts +4 -0
- package/dist/modules/accounting/api/mutations/accountingPostingProfileUpdate.mutation.d.ts +15 -0
- package/dist/modules/accounting/api/mutations/exactAccountingConnect.mutation.d.ts +6 -0
- package/dist/modules/accounting/api/queries/accountingConnection.query.d.ts +1 -0
- package/dist/modules/accounting/api/queries/exactAuthorizationConfig.query.d.ts +1 -0
- package/dist/modules/accounting/api/queries/exactGlAccounts.query.d.ts +3 -0
- package/dist/modules/accounting/api/queries/exactJournals.query.d.ts +3 -0
- package/dist/modules/accounting/api/query-keys/accounting.queryKeys.d.ts +24 -0
- package/dist/modules/accounting/api/services/accountingConnection.service.d.ts +19 -0
- package/dist/modules/accounting/components/AccountingPostingProfileFields.vue.d.ts +14 -0
- package/dist/modules/accounting/components/AccountingSyncStatusBadge.vue.d.ts +7 -0
- package/dist/modules/accounting/components/ExactGlAccountField.vue.d.ts +12 -0
- package/dist/modules/accounting/components/ExactLogo.vue.d.ts +3 -0
- package/dist/modules/accounting/composables/exactLookupError.composable.d.ts +19 -0
- package/dist/modules/accounting/models/accountingConnection.model.d.ts +34 -0
- package/dist/modules/accounting/models/accountingConnection.transformer.d.ts +23 -0
- package/dist/modules/accounting/models/accountingConnection.transformer.spec.d.ts +1 -0
- package/dist/modules/accounting/models/accountingConnectionReadiness.util.d.ts +10 -0
- package/dist/modules/accounting/models/accountingConnectionUuid.model.d.ts +3 -0
- package/dist/modules/accounting/models/accountingError.util.d.ts +13 -0
- package/dist/modules/accounting/models/accountingError.util.spec.d.ts +1 -0
- package/dist/modules/accounting/models/accountingPostingProfileForm.model.d.ts +14 -0
- package/dist/modules/accounting/models/accountingPostingProfileForm.model.spec.d.ts +1 -0
- package/dist/modules/accounting/models/accountingPostingProfileUpdateForm.model.d.ts +17 -0
- package/dist/modules/accounting/models/exactAccountingConnectForm.model.d.ts +9 -0
- package/dist/modules/accounting/models/exactAccountingConnectForm.model.spec.d.ts +1 -0
- package/dist/modules/accounting/models/exactLookupOption.model.d.ts +5 -0
- package/dist/modules/accounting/models/exactLookupOption.util.d.ts +4 -0
- package/dist/modules/accounting/models/exactRegion.util.d.ts +5 -0
- package/dist/modules/accounting/models/exactRegion.util.spec.d.ts +1 -0
- package/dist/modules/accounting/routes/accounting.routes.d.ts +9 -0
- package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionDetails.vue.d.ts +7 -0
- package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionNotice.vue.d.ts +11 -0
- package/dist/modules/accounting/use-cases/settings/components/AccountingPostingProfileForm.vue.d.ts +8 -0
- package/dist/modules/accounting/use-cases/settings/components/ExactAccountingConnectForm.vue.d.ts +12 -0
- package/dist/modules/accounting/use-cases/settings/composables/accountingAuthorizationResult.composable.d.ts +5 -0
- package/dist/modules/accounting/use-cases/settings/composables/exactConnect.composable.d.ts +11 -0
- package/dist/modules/accounting/use-cases/settings/dialogs/AccountingConnectionDisconnectDialog.vue.d.ts +11 -0
- package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsView.vue.d.ts +9 -0
- package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
- package/dist/{plainDate.transformer-Bhiz9jW7.js → plainDate.transformer-BxvJpJOv.js} +4 -17
- package/dist/{reminderConfig.query-DHMHVOeX.js → reminderConfig.query-nb1P7ufx.js} +38 -37
- package/dist/types/queryKey.type.d.ts +3 -2
- package/dist/ui/data-provider/DataProvider.vue.d.ts +5 -1
- package/package.json +1 -1
- package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +0 -319
- package/dist/invoiceApprovalStatus.util-Bqq_bILG.js +0 -83
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import "./api.util-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as e } from "./i18n.lib-C8TA6PCf.js";
|
|
2
|
+
import "./api.util-BkwbrwEm.js";
|
|
3
|
+
import { d as t, t as n } from "./documentTitle.composable-Bxu0YL71.js";
|
|
4
|
+
import { G as r, M as i, N as a, St as o, dt as s, f as c, ft as l, gt as u, mt as d, n as f } from "./dist-DaJ08k0k.js";
|
|
5
5
|
import { n as p } from "./dist-CyUNvdkD.js";
|
|
6
6
|
import { t as m } from "./formango.util-D5c2ql--.js";
|
|
7
|
-
import { t as h } from "./DataProvider-
|
|
8
|
-
import { t as
|
|
9
|
-
import { a as
|
|
10
|
-
import { z as
|
|
11
|
-
import { useI18n as
|
|
12
|
-
import { Fragment as
|
|
13
|
-
import { ApiErrorUtil as
|
|
14
|
-
import { Temporal as
|
|
15
|
-
import { UIBadge as
|
|
7
|
+
import { t as h } from "./DataProvider-Dj5ckiN2.js";
|
|
8
|
+
import { t as ee } from "./ReminderTemplatesPanel-DxmfU2xK.js";
|
|
9
|
+
import { a as g, i as _, n as v, o as y, r as b, t as x } from "./invoiceApproval.service-DEvaL-MH.js";
|
|
10
|
+
import { z as S } from "zod";
|
|
11
|
+
import { useI18n as C } from "vue-i18n";
|
|
12
|
+
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createVNode as A, defineComponent as j, mergeProps as M, openBlock as N, ref as P, renderList as F, toDisplayString as te, unref as I, withCtx as L } from "vue";
|
|
13
|
+
import { ApiErrorUtil as R, useMutation as z, useQuery as B } from "@wisemen/vue-core-api-utils";
|
|
14
|
+
import { Temporal as V } from "temporal-polyfill";
|
|
15
|
+
import { UIBadge as H, UIButton as U, UIDashboardPage as ne, UIDashboardPageContent as re, UIDashboardPageLoadingState as W, UIDateField as G, UIDateRangeField as K, UIDialogBody as ie, UIDialogFooter as q, UIDialogFooterCancel as J, UIDialogFooterSubmit as ae, UIDialogHeader as oe, UIEmptyState as se, UIForm as ce, UIFormDialog as le, UIFormFieldGroup as ue, UIFormSubmitButton as de, UIIconButton as Y, UINumberField as fe, UISelect as pe, UITabs as me, UITabsItem as he, UITabsList as ge, UIText as X, UITextField as _e, createSelectOptions as ve, useOverlay as ye, useToast as Z } from "@wisemen/vue-core-design-system";
|
|
16
16
|
import { useForm as be } from "formango";
|
|
17
17
|
//#region src/modules/invoice-approval/api/queries/approvalReminderConfig.query.ts
|
|
18
18
|
function xe() {
|
|
19
|
-
return
|
|
19
|
+
return B("approvalReminderConfig", {
|
|
20
20
|
params: {},
|
|
21
|
-
queryFn: () =>
|
|
21
|
+
queryFn: () => x.getReminderConfigs()
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/modules/invoice-approval/api/mutations/approvalMailTemplateUpdate.mutation.ts
|
|
26
26
|
function Se() {
|
|
27
27
|
return z({
|
|
28
|
-
queryFn: (e) =>
|
|
28
|
+
queryFn: (e) => x.updateMailTemplate(e.body),
|
|
29
29
|
queryKeysToInvalidate: { approvalReminderConfig: {} }
|
|
30
30
|
});
|
|
31
31
|
}
|
|
@@ -33,18 +33,18 @@ function Se() {
|
|
|
33
33
|
//#region src/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.ts
|
|
34
34
|
function Ce() {
|
|
35
35
|
return z({
|
|
36
|
-
queryFn: (e) =>
|
|
36
|
+
queryFn: (e) => x.updateReminderConfigs(e.body),
|
|
37
37
|
queryKeysToInvalidate: { approvalReminderConfig: {} }
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/modules/invoice-approval/models/approvalReminderConfigForm.model.ts
|
|
42
|
-
var we = 2, Te =
|
|
43
|
-
offsetDays:
|
|
44
|
-
schedule:
|
|
45
|
-
sequence:
|
|
46
|
-
template:
|
|
47
|
-
}), Ee =
|
|
42
|
+
var we = 2, Te = S.object({
|
|
43
|
+
offsetDays: S.number().int().min(1).max(365),
|
|
44
|
+
schedule: S.enum(t),
|
|
45
|
+
sequence: S.number().int().min(1).max(we),
|
|
46
|
+
template: g
|
|
47
|
+
}), Ee = S.object({ reminders: S.array(Te).length(we) }).superRefine((n, r) => {
|
|
48
48
|
n.reminders[0]?.schedule !== t.AFTER_APPROVAL_REQUEST && r.addIssue({
|
|
49
49
|
code: "custom",
|
|
50
50
|
message: e.global.t("wise_invoicing.invoice_approval.settings.validation.level_one_after_request"),
|
|
@@ -75,15 +75,15 @@ var we = 2, Te = C.object({
|
|
|
75
75
|
]
|
|
76
76
|
}), i = n;
|
|
77
77
|
}
|
|
78
|
-
}), De =
|
|
79
|
-
mailTemplate:
|
|
78
|
+
}), De = S.object({
|
|
79
|
+
mailTemplate: g,
|
|
80
80
|
reminderConfig: Ee
|
|
81
81
|
});
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/modules/invoice-approval/api/mutations/approvalFollowUpPauseUpdate.mutation.ts
|
|
84
84
|
function Oe() {
|
|
85
85
|
return z({
|
|
86
|
-
queryFn: (e) =>
|
|
86
|
+
queryFn: (e) => x.updateFollowUpPause(e.params.pauseUuid, e.body),
|
|
87
87
|
queryKeysToInvalidate: {
|
|
88
88
|
approvalFollowUpPauseIndex: {},
|
|
89
89
|
invoiceApprovalIndex: {}
|
|
@@ -93,9 +93,9 @@ function Oe() {
|
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region src/modules/invoice-approval/api/queries/approvalFollowUpPauseIndex.query.ts
|
|
95
95
|
function Q(e) {
|
|
96
|
-
return
|
|
96
|
+
return B("approvalFollowUpPauseIndex", {
|
|
97
97
|
params: { isPast: e },
|
|
98
|
-
queryFn: () =>
|
|
98
|
+
queryFn: () => x.getFollowUpPauses(e)
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
//#endregion
|
|
@@ -119,20 +119,20 @@ var ke = {
|
|
|
119
119
|
}
|
|
120
120
|
static countYearsToNextOccurrence(e, t) {
|
|
121
121
|
let n = Math.max(1, t.year - e.year);
|
|
122
|
-
return
|
|
122
|
+
return V.PlainDate.compare(e.add({ years: n }), t) < 0 ? n + 1 : n;
|
|
123
123
|
}
|
|
124
124
|
static findOverlap(e, t, n) {
|
|
125
|
-
return e.find((e) =>
|
|
125
|
+
return e.find((e) => V.PlainDate.compare(e.startDate, n) <= 0 && V.PlainDate.compare(t, e.endDate) <= 0) ?? null;
|
|
126
126
|
}
|
|
127
127
|
static findUpcomingOccurrence(e, t, n) {
|
|
128
128
|
return e.map((e) => ({
|
|
129
129
|
startDate: e.startDate.add({ years: this.countYearsToNextOccurrence(e.endDate, t) }),
|
|
130
130
|
pause: e
|
|
131
|
-
})).filter((e) => this.countDaysUntilStart(e.startDate, t) <= n).toSorted((e, t) =>
|
|
131
|
+
})).filter((e) => this.countDaysUntilStart(e.startDate, t) <= n).toSorted((e, t) => V.PlainDate.compare(e.startDate, t.startDate)).at(0) ?? null;
|
|
132
132
|
}
|
|
133
133
|
static format(e, t, n, r = !1) {
|
|
134
134
|
let i = e.year === t.year, a = r && i ? ke : Ae, o = t.toLocaleString(n, a);
|
|
135
|
-
return
|
|
135
|
+
return V.PlainDate.compare(e, t) === 0 ? o : `${e.toLocaleString(n, i ? ke : Ae)} – ${o}`;
|
|
136
136
|
}
|
|
137
137
|
static formatStartsIn(e, t, n) {
|
|
138
138
|
let r = new Intl.RelativeTimeFormat(n, { numeric: "auto" }), i = this.countDaysUntilStart(e, t);
|
|
@@ -148,7 +148,7 @@ var ke = {
|
|
|
148
148
|
}, je = { class: "flex items-center justify-between gap-lg px-xl py-lg" }, Me = {
|
|
149
149
|
key: 0,
|
|
150
150
|
class: "flex min-w-0 flex-1 flex-col gap-xxs"
|
|
151
|
-
}, Ne = { class: "flex shrink-0 items-center gap-xs" }, Pe = /* @__PURE__ */
|
|
151
|
+
}, Ne = { class: "flex shrink-0 items-center gap-xs" }, Pe = /* @__PURE__ */ j({
|
|
152
152
|
__name: "ApprovalFollowUpPauseRow",
|
|
153
153
|
props: {
|
|
154
154
|
isPast: { type: Boolean },
|
|
@@ -162,63 +162,63 @@ var ke = {
|
|
|
162
162
|
"update"
|
|
163
163
|
],
|
|
164
164
|
setup(e, { emit: t }) {
|
|
165
|
-
let n = e, o = t,
|
|
166
|
-
let e = $.format(n.pause.startDate, n.pause.endDate,
|
|
167
|
-
return `${e} · ${
|
|
168
|
-
}),
|
|
165
|
+
let n = e, o = t, c = C(), l = V.Now.plainDateISO(), u = T(() => {
|
|
166
|
+
let e = $.format(n.pause.startDate, n.pause.endDate, c.locale.value, n.isYearHidden), t = $.countDays(n.pause.startDate, n.pause.endDate);
|
|
167
|
+
return `${e} · ${c.t("wise_invoicing.invoice_approval.settings.pauses.days", { count: t }, t)}`;
|
|
168
|
+
}), d = T(() => !n.isPast && V.PlainDate.compare(n.pause.startDate, l) <= 0), f = T(() => d.value && V.PlainDate.compare(n.pause.endDate, l) > 0), p = T(() => {
|
|
169
169
|
if (n.isPast) return null;
|
|
170
|
-
if (
|
|
171
|
-
let e = $.countDaysLeft(n.pause.endDate,
|
|
172
|
-
return
|
|
170
|
+
if (d.value) {
|
|
171
|
+
let e = $.countDaysLeft(n.pause.endDate, l);
|
|
172
|
+
return c.t("wise_invoicing.invoice_approval.settings.pauses.days_left", { count: e }, e);
|
|
173
173
|
}
|
|
174
|
-
return
|
|
175
|
-
}), m =
|
|
176
|
-
return (e, t) => (
|
|
174
|
+
return c.t("wise_invoicing.invoice_approval.settings.pauses.starts_in", { relative: $.formatStartsIn(n.pause.startDate, l, c.locale.value) });
|
|
175
|
+
}), m = T(() => n.pause.startDate.add({ years: $.countYearsToNextOccurrence(n.pause.endDate, l) }).year);
|
|
176
|
+
return (e, t) => (N(), O("li", je, [n.isPast ? (N(), O("div", Me, [A(I(X), {
|
|
177
177
|
text: n.pause.name,
|
|
178
178
|
class: "text-sm font-medium text-primary"
|
|
179
|
-
}, null, 8, ["text"]),
|
|
180
|
-
text:
|
|
179
|
+
}, null, 8, ["text"]), A(I(X), {
|
|
180
|
+
text: u.value,
|
|
181
181
|
class: "text-sm text-tertiary"
|
|
182
|
-
}, null, 8, ["text"])])) : (
|
|
182
|
+
}, null, 8, ["text"])])) : (N(), O("button", {
|
|
183
183
|
key: 1,
|
|
184
184
|
class: "flex min-w-0 flex-1 cursor-pointer flex-col gap-xxs text-left",
|
|
185
185
|
type: "button",
|
|
186
186
|
onClick: t[0] ||= (e) => o("update")
|
|
187
|
-
}, [
|
|
187
|
+
}, [A(I(X), {
|
|
188
188
|
text: n.pause.name,
|
|
189
189
|
class: "text-sm font-medium text-primary"
|
|
190
|
-
}, null, 8, ["text"]),
|
|
191
|
-
text:
|
|
190
|
+
}, null, 8, ["text"]), A(I(X), {
|
|
191
|
+
text: u.value,
|
|
192
192
|
class: "text-sm text-tertiary"
|
|
193
|
-
}, null, 8, ["text"])])),
|
|
193
|
+
}, null, 8, ["text"])])), k("div", Ne, [p.value === null ? D("", !0) : (N(), E(I(H), {
|
|
194
194
|
key: 0,
|
|
195
|
-
color:
|
|
195
|
+
color: d.value ? "success" : "gray",
|
|
196
196
|
label: p.value,
|
|
197
197
|
size: "sm"
|
|
198
|
-
}, null, 8, ["color", "label"])), n.isPast ? (
|
|
198
|
+
}, null, 8, ["color", "label"])), n.isPast ? (N(), E(I(Y), {
|
|
199
199
|
key: 1,
|
|
200
|
-
icon:
|
|
201
|
-
label:
|
|
200
|
+
icon: I(a),
|
|
201
|
+
label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.copy_to_year", {
|
|
202
202
|
name: n.pause.name,
|
|
203
203
|
year: m.value
|
|
204
204
|
}),
|
|
205
205
|
variant: "tertiary",
|
|
206
206
|
onClick: t[1] ||= (e) => o("copy")
|
|
207
|
-
}, null, 8, ["icon", "label"])) : (
|
|
208
|
-
icon:
|
|
209
|
-
label:
|
|
207
|
+
}, null, 8, ["icon", "label"])) : (N(), O(w, { key: 2 }, [A(I(Y), {
|
|
208
|
+
icon: I(i),
|
|
209
|
+
label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.edit", { name: n.pause.name }),
|
|
210
210
|
variant: "tertiary",
|
|
211
211
|
onClick: t[2] ||= (e) => o("update")
|
|
212
|
-
}, null, 8, ["icon", "label"]), f.value ? (
|
|
212
|
+
}, null, 8, ["icon", "label"]), f.value ? (N(), E(I(Y), {
|
|
213
213
|
key: 0,
|
|
214
|
-
icon:
|
|
215
|
-
label:
|
|
214
|
+
icon: I(s),
|
|
215
|
+
label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.end_today", { name: n.pause.name }),
|
|
216
216
|
variant: "tertiary",
|
|
217
217
|
onClick: t[3] ||= (e) => o("end")
|
|
218
|
-
}, null, 8, ["icon", "label"])) :
|
|
218
|
+
}, null, 8, ["icon", "label"])) : d.value ? D("", !0) : (N(), E(I(Y), {
|
|
219
219
|
key: 1,
|
|
220
|
-
icon:
|
|
221
|
-
label:
|
|
220
|
+
icon: I(r),
|
|
221
|
+
label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.delete_label", { name: n.pause.name }),
|
|
222
222
|
variant: "tertiary",
|
|
223
223
|
onClick: t[4] ||= (e) => o("delete")
|
|
224
224
|
}, null, 8, ["icon", "label"]))], 64))])]));
|
|
@@ -229,7 +229,7 @@ var ke = {
|
|
|
229
229
|
}, Ie = { class: "flex flex-col divide-y divide-secondary rounded-md border border-secondary" }, Le = {
|
|
230
230
|
key: 1,
|
|
231
231
|
class: "flex flex-col divide-y divide-secondary rounded-md border border-secondary"
|
|
232
|
-
}, Re = /* @__PURE__ */
|
|
232
|
+
}, Re = /* @__PURE__ */ j({
|
|
233
233
|
__name: "ApprovalFollowUpPauseList",
|
|
234
234
|
props: {
|
|
235
235
|
isGroupedByYear: { type: Boolean },
|
|
@@ -243,7 +243,7 @@ var ke = {
|
|
|
243
243
|
"update"
|
|
244
244
|
],
|
|
245
245
|
setup(e, { emit: t }) {
|
|
246
|
-
let n = e, r = t, i =
|
|
246
|
+
let n = e, r = t, i = T(() => {
|
|
247
247
|
let e = [];
|
|
248
248
|
for (let t of n.pauses) {
|
|
249
249
|
let n = e.find((e) => e.year === t.startDate.year);
|
|
@@ -254,13 +254,13 @@ var ke = {
|
|
|
254
254
|
}
|
|
255
255
|
return e;
|
|
256
256
|
});
|
|
257
|
-
return (e, t) => n.isGroupedByYear ? (
|
|
257
|
+
return (e, t) => n.isGroupedByYear ? (N(), O("div", Fe, [(N(!0), O(w, null, F(i.value, (e) => (N(), O("div", {
|
|
258
258
|
key: e.year,
|
|
259
259
|
class: "flex flex-col gap-sm"
|
|
260
|
-
}, [
|
|
260
|
+
}, [A(I(X), {
|
|
261
261
|
text: String(e.year),
|
|
262
262
|
class: "text-xs font-medium text-tertiary"
|
|
263
|
-
}, null, 8, ["text"]),
|
|
263
|
+
}, null, 8, ["text"]), k("ul", Ie, [(N(!0), O(w, null, F(e.pauses, (e) => (N(), E(Pe, {
|
|
264
264
|
key: e.uuid,
|
|
265
265
|
"is-past": n.isPast,
|
|
266
266
|
"is-year-hidden": !0,
|
|
@@ -276,7 +276,7 @@ var ke = {
|
|
|
276
276
|
"onDelete",
|
|
277
277
|
"onEnd",
|
|
278
278
|
"onUpdate"
|
|
279
|
-
]))), 128))])]))), 128))])) : (
|
|
279
|
+
]))), 128))])]))), 128))])) : (N(), O("ul", Le, [(N(!0), O(w, null, F(n.pauses, (e) => (N(), E(Pe, {
|
|
280
280
|
key: e.uuid,
|
|
281
281
|
"is-past": n.isPast,
|
|
282
282
|
"is-year-hidden": !1,
|
|
@@ -294,31 +294,31 @@ var ke = {
|
|
|
294
294
|
"onUpdate"
|
|
295
295
|
]))), 128))]));
|
|
296
296
|
}
|
|
297
|
-
}), ze = { class: "flex flex-col gap-xl" }, Be = { class: "flex flex-col" }, Ve = ["aria-label"], He = ["aria-label"], Ue = { key: 0 }, We = ["aria-label"], Ge = 60, Ke = 3, qe = /* @__PURE__ */
|
|
297
|
+
}), ze = { class: "flex flex-col gap-xl" }, Be = { class: "flex flex-col" }, Ve = ["aria-label"], He = ["aria-label"], Ue = { key: 0 }, We = ["aria-label"], Ge = 60, Ke = 3, qe = /* @__PURE__ */ j({
|
|
298
298
|
__name: "ApprovalFollowUpPausesPanel",
|
|
299
299
|
props: { dialogs: {} },
|
|
300
300
|
setup(e) {
|
|
301
|
-
let t = e, n =
|
|
301
|
+
let t = e, n = C(), r = Z(), i = Oe(), a = V.Now.plainDateISO(), s = Q(!1), c = T(() => s.result.value.match({
|
|
302
302
|
err: () => [],
|
|
303
303
|
loading: () => [],
|
|
304
304
|
ok: (e) => e
|
|
305
|
-
})),
|
|
305
|
+
})), d = T(() => c.value.filter((e) => V.PlainDate.compare(e.startDate, a) <= 0)), p = T(() => c.value.filter((e) => V.PlainDate.compare(e.startDate, a) > 0)), m = P(!1), h = T(() => p.value.length > Ke), ee = T(() => m.value ? p.value : p.value.slice(0, Ke)), g = Q(!0), _ = T(() => g.result.value.match({
|
|
306
306
|
err: () => [],
|
|
307
307
|
loading: () => [],
|
|
308
308
|
ok: (e) => e
|
|
309
|
-
})),
|
|
310
|
-
if (
|
|
311
|
-
let { startDate: e, pause: t } =
|
|
309
|
+
})), v = P(!1), y = T(() => $.findUpcomingOccurrence(_.value, a, Ge)), b = T(() => {
|
|
310
|
+
if (y.value === null) return n.t("wise_invoicing.invoice_approval.settings.pauses.empty_description");
|
|
311
|
+
let { startDate: e, pause: t } = y.value;
|
|
312
312
|
return n.t("wise_invoicing.invoice_approval.settings.pauses.suggestion", {
|
|
313
313
|
name: t.name,
|
|
314
314
|
period: $.format(t.startDate, t.endDate, n.locale.value),
|
|
315
315
|
year: e.year
|
|
316
316
|
});
|
|
317
317
|
});
|
|
318
|
-
async function
|
|
319
|
-
|
|
318
|
+
async function x() {
|
|
319
|
+
y.value !== null && await t.dialogs.openCopy(y.value.pause);
|
|
320
320
|
}
|
|
321
|
-
async function
|
|
321
|
+
async function S(e) {
|
|
322
322
|
let t = await i.execute({
|
|
323
323
|
body: {
|
|
324
324
|
name: e.name,
|
|
@@ -331,24 +331,24 @@ var ke = {
|
|
|
331
331
|
});
|
|
332
332
|
t.isErr() ? r.apiError(t.error) : r.show({ message: n.t("wise_invoicing.invoice_approval.settings.pauses.end_success", { name: e.name }) });
|
|
333
333
|
}
|
|
334
|
-
return (e, r) => (
|
|
335
|
-
|
|
336
|
-
text:
|
|
334
|
+
return (e, r) => (N(), O("div", ze, [
|
|
335
|
+
k("div", Be, [A(I(X), {
|
|
336
|
+
text: I(n).t("wise_invoicing.invoice_approval.settings.pauses.description"),
|
|
337
337
|
truncate: !1,
|
|
338
338
|
class: "text-sm text-tertiary"
|
|
339
|
-
}, null, 8, ["text"]),
|
|
340
|
-
text:
|
|
339
|
+
}, null, 8, ["text"]), A(I(X), {
|
|
340
|
+
text: I(n).t("wise_invoicing.invoice_approval.settings.pauses.scope_note"),
|
|
341
341
|
truncate: !1,
|
|
342
342
|
class: "text-sm text-tertiary"
|
|
343
343
|
}, null, 8, ["text"])]),
|
|
344
|
-
|
|
344
|
+
I(s).isError.value ? (N(), E(I(se), {
|
|
345
345
|
key: 0,
|
|
346
|
-
title:
|
|
347
|
-
description:
|
|
348
|
-
icon:
|
|
346
|
+
title: I(n).t("wise_invoicing.invoice_approval.settings.pauses.load_error_title"),
|
|
347
|
+
description: I(n).t("wise_invoicing.invoice_approval.settings.pauses.load_error_description"),
|
|
348
|
+
icon: I(o),
|
|
349
349
|
"primary-action": {
|
|
350
|
-
label:
|
|
351
|
-
onClick:
|
|
350
|
+
label: I(n).t("wise_invoicing.invoice_approval.settings.pauses.retry"),
|
|
351
|
+
onClick: I(s).refetch,
|
|
352
352
|
type: "button"
|
|
353
353
|
}
|
|
354
354
|
}, null, 8, [
|
|
@@ -356,14 +356,14 @@ var ke = {
|
|
|
356
356
|
"description",
|
|
357
357
|
"icon",
|
|
358
358
|
"primary-action"
|
|
359
|
-
])) :
|
|
359
|
+
])) : c.value.length === 0 && !I(s).isLoading.value ? (N(), E(I(se), {
|
|
360
360
|
key: 1,
|
|
361
|
-
title:
|
|
362
|
-
description:
|
|
363
|
-
icon:
|
|
364
|
-
"primary-action":
|
|
365
|
-
label:
|
|
366
|
-
onClick:
|
|
361
|
+
title: I(n).t("wise_invoicing.invoice_approval.settings.pauses.empty_title"),
|
|
362
|
+
description: b.value,
|
|
363
|
+
icon: I(u),
|
|
364
|
+
"primary-action": y.value === null ? null : {
|
|
365
|
+
label: I(n).t("wise_invoicing.invoice_approval.settings.pauses.suggestion_action", { year: y.value.startDate.year }),
|
|
366
|
+
onClick: x,
|
|
367
367
|
type: "button"
|
|
368
368
|
}
|
|
369
369
|
}, null, 8, [
|
|
@@ -371,34 +371,34 @@ var ke = {
|
|
|
371
371
|
"description",
|
|
372
372
|
"icon",
|
|
373
373
|
"primary-action"
|
|
374
|
-
])) :
|
|
375
|
-
|
|
374
|
+
])) : D("", !0),
|
|
375
|
+
d.value.length > 0 ? (N(), O("section", {
|
|
376
376
|
key: 2,
|
|
377
|
-
"aria-label":
|
|
377
|
+
"aria-label": I(n).t("wise_invoicing.invoice_approval.settings.pauses.active"),
|
|
378
378
|
class: "flex flex-col gap-md"
|
|
379
|
-
}, [
|
|
380
|
-
text:
|
|
379
|
+
}, [A(I(X), {
|
|
380
|
+
text: I(n).t("wise_invoicing.invoice_approval.settings.pauses.active"),
|
|
381
381
|
class: "text-sm font-medium text-primary"
|
|
382
|
-
}, null, 8, ["text"]),
|
|
382
|
+
}, null, 8, ["text"]), A(Re, {
|
|
383
383
|
"is-grouped-by-year": !1,
|
|
384
384
|
"is-past": !1,
|
|
385
|
-
pauses:
|
|
386
|
-
onEnd:
|
|
385
|
+
pauses: d.value,
|
|
386
|
+
onEnd: S,
|
|
387
387
|
onUpdate: t.dialogs.openUpdate
|
|
388
|
-
}, null, 8, ["pauses", "onUpdate"])], 8, Ve)) :
|
|
389
|
-
p.value.length > 0 ? (
|
|
388
|
+
}, null, 8, ["pauses", "onUpdate"])], 8, Ve)) : D("", !0),
|
|
389
|
+
p.value.length > 0 ? (N(), O("section", {
|
|
390
390
|
key: 3,
|
|
391
|
-
"aria-label":
|
|
391
|
+
"aria-label": I(n).t("wise_invoicing.invoice_approval.settings.pauses.planned"),
|
|
392
392
|
class: "flex flex-col gap-md"
|
|
393
393
|
}, [
|
|
394
|
-
|
|
395
|
-
text:
|
|
394
|
+
A(I(X), {
|
|
395
|
+
text: I(n).t("wise_invoicing.invoice_approval.settings.pauses.planned_count", { count: p.value.length }),
|
|
396
396
|
class: "text-sm font-medium text-primary"
|
|
397
397
|
}, null, 8, ["text"]),
|
|
398
|
-
|
|
398
|
+
A(Re, {
|
|
399
399
|
"is-grouped-by-year": m.value,
|
|
400
400
|
"is-past": !1,
|
|
401
|
-
pauses:
|
|
401
|
+
pauses: ee.value,
|
|
402
402
|
onDelete: t.dialogs.openDelete,
|
|
403
403
|
onUpdate: t.dialogs.openUpdate
|
|
404
404
|
}, null, 8, [
|
|
@@ -407,35 +407,35 @@ var ke = {
|
|
|
407
407
|
"onDelete",
|
|
408
408
|
"onUpdate"
|
|
409
409
|
]),
|
|
410
|
-
h.value ? (
|
|
411
|
-
label: m.value ?
|
|
410
|
+
h.value ? (N(), O("div", Ue, [A(I(U), {
|
|
411
|
+
label: m.value ? I(n).t("wise_invoicing.invoice_approval.settings.pauses.show_less") : I(n).t("wise_invoicing.invoice_approval.settings.pauses.show_more_planned", { count: p.value.length - Ke }),
|
|
412
412
|
size: "sm",
|
|
413
413
|
variant: "tertiary",
|
|
414
414
|
onClick: r[0] ||= (e) => m.value = !m.value
|
|
415
|
-
}, null, 8, ["label"])])) :
|
|
416
|
-
], 8, He)) :
|
|
417
|
-
|
|
415
|
+
}, null, 8, ["label"])])) : D("", !0)
|
|
416
|
+
], 8, He)) : D("", !0),
|
|
417
|
+
_.value.length > 0 ? (N(), O("section", {
|
|
418
418
|
key: 4,
|
|
419
|
-
"aria-label":
|
|
419
|
+
"aria-label": I(n).t("wise_invoicing.invoice_approval.settings.pauses.past"),
|
|
420
420
|
class: "flex flex-col gap-md"
|
|
421
|
-
}, [
|
|
422
|
-
"aria-expanded":
|
|
423
|
-
"icon-left":
|
|
424
|
-
label:
|
|
421
|
+
}, [k("div", null, [A(I(U), {
|
|
422
|
+
"aria-expanded": v.value,
|
|
423
|
+
"icon-left": v.value ? I(l) : I(f),
|
|
424
|
+
label: I(n).t("wise_invoicing.invoice_approval.settings.pauses.past_count", { count: _.value.length }),
|
|
425
425
|
size: "sm",
|
|
426
426
|
variant: "tertiary",
|
|
427
|
-
onClick: r[1] ||= (e) =>
|
|
427
|
+
onClick: r[1] ||= (e) => v.value = !v.value
|
|
428
428
|
}, null, 8, [
|
|
429
429
|
"aria-expanded",
|
|
430
430
|
"icon-left",
|
|
431
431
|
"label"
|
|
432
|
-
])]),
|
|
432
|
+
])]), v.value ? (N(), E(Re, {
|
|
433
433
|
key: 0,
|
|
434
434
|
"is-grouped-by-year": !0,
|
|
435
435
|
"is-past": !0,
|
|
436
|
-
pauses:
|
|
436
|
+
pauses: _.value,
|
|
437
437
|
onCopy: t.dialogs.openCopy
|
|
438
|
-
}, null, 8, ["pauses", "onCopy"])) :
|
|
438
|
+
}, null, 8, ["pauses", "onCopy"])) : D("", !0)], 8, We)) : D("", !0)
|
|
439
439
|
]));
|
|
440
440
|
}
|
|
441
441
|
});
|
|
@@ -443,7 +443,7 @@ var ke = {
|
|
|
443
443
|
//#region src/modules/invoice-approval/api/mutations/approvalFollowUpPauseDelete.mutation.ts
|
|
444
444
|
function Je() {
|
|
445
445
|
return z({
|
|
446
|
-
queryFn: (e) =>
|
|
446
|
+
queryFn: (e) => x.deleteFollowUpPause(e.params.pauseUuid),
|
|
447
447
|
queryKeysToInvalidate: {
|
|
448
448
|
approvalFollowUpPauseIndex: {},
|
|
449
449
|
invoiceApprovalIndex: {}
|
|
@@ -452,38 +452,38 @@ function Je() {
|
|
|
452
452
|
}
|
|
453
453
|
//#endregion
|
|
454
454
|
//#region src/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseDeleteDialog.vue
|
|
455
|
-
var Ye = /* @__PURE__ */
|
|
455
|
+
var Ye = /* @__PURE__ */ j({
|
|
456
456
|
__name: "ApprovalFollowUpPauseDeleteDialog",
|
|
457
457
|
props: { pause: {} },
|
|
458
458
|
emits: ["close"],
|
|
459
459
|
setup(e, { emit: t }) {
|
|
460
|
-
let n = e,
|
|
460
|
+
let n = e, i = t, a = C(), o = Z(), s = Je(), c = be({
|
|
461
461
|
initialState: {},
|
|
462
|
-
schema:
|
|
462
|
+
schema: S.object({}),
|
|
463
463
|
onSubmit: async () => {
|
|
464
464
|
let e = await s.execute({ params: { pauseUuid: n.pause.uuid } });
|
|
465
|
-
e.isErr() ? o.apiError(e.error) : (o.show({ message:
|
|
465
|
+
e.isErr() ? o.apiError(e.error) : (o.show({ message: a.t("wise_invoicing.invoice_approval.settings.pauses.delete_success") }), i("close"));
|
|
466
466
|
},
|
|
467
467
|
onSubmitError: () => {
|
|
468
468
|
o.unableToSave();
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
|
-
return (e, t) => (
|
|
472
|
-
form:
|
|
471
|
+
return (e, t) => (N(), E(I(le), {
|
|
472
|
+
form: I(c),
|
|
473
473
|
size: "sm",
|
|
474
|
-
onClose: t[0] ||= (e) =>
|
|
474
|
+
onClose: t[0] ||= (e) => i("close")
|
|
475
475
|
}, {
|
|
476
|
-
default:
|
|
477
|
-
title:
|
|
478
|
-
description:
|
|
479
|
-
icon:
|
|
476
|
+
default: L(() => [A(I(oe), {
|
|
477
|
+
title: I(a).t("wise_invoicing.invoice_approval.settings.pauses.delete_title", { name: n.pause.name }),
|
|
478
|
+
description: I(a).t("wise_invoicing.invoice_approval.settings.pauses.delete_description"),
|
|
479
|
+
icon: I(r),
|
|
480
480
|
"icon-variant": "error"
|
|
481
481
|
}, null, 8, [
|
|
482
482
|
"title",
|
|
483
483
|
"description",
|
|
484
484
|
"icon"
|
|
485
|
-
]),
|
|
486
|
-
default:
|
|
485
|
+
]), A(I(q), null, {
|
|
486
|
+
default: L(() => [A(I(J)), A(I(ae), { label: I(a).t("wise_invoicing.invoice_approval.settings.pauses.delete") }, null, 8, ["label"])]),
|
|
487
487
|
_: 1
|
|
488
488
|
})]),
|
|
489
489
|
_: 1
|
|
@@ -494,16 +494,16 @@ var Ye = /* @__PURE__ */ M({
|
|
|
494
494
|
//#region src/modules/invoice-approval/api/mutations/approvalFollowUpPauseCreate.mutation.ts
|
|
495
495
|
function Xe() {
|
|
496
496
|
return z({
|
|
497
|
-
queryFn: (e) =>
|
|
497
|
+
queryFn: (e) => x.createFollowUpPause(e.body),
|
|
498
498
|
queryKeysToInvalidate: {
|
|
499
499
|
approvalFollowUpPauseIndex: {},
|
|
500
500
|
invoiceApprovalIndex: {}
|
|
501
501
|
}
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
-
var Ze =
|
|
505
|
-
name:
|
|
506
|
-
period:
|
|
504
|
+
var Ze = S.object({
|
|
505
|
+
name: S.string().trim().min(1, e.global.t("wise_invoicing.invoice_approval.settings.validation.required")).max(100),
|
|
506
|
+
period: S.object({
|
|
507
507
|
from: p.nullable(),
|
|
508
508
|
until: p.nullable()
|
|
509
509
|
})
|
|
@@ -512,16 +512,16 @@ var Ze = C.object({
|
|
|
512
512
|
code: "custom",
|
|
513
513
|
message: e.global.t("wise_invoicing.invoice_approval.settings.validation.required"),
|
|
514
514
|
path: ["period"]
|
|
515
|
-
}) :
|
|
515
|
+
}) : V.PlainDate.compare(t.period.until, t.period.from) < 0 ? n.addIssue({
|
|
516
516
|
code: "custom",
|
|
517
517
|
message: e.global.t("wise_invoicing.invoice_approval.settings.pauses.end_before_start"),
|
|
518
518
|
path: ["period"]
|
|
519
|
-
}) :
|
|
519
|
+
}) : V.PlainDate.compare(t.period.until, V.Now.plainDateISO()) < 0 && n.addIssue({
|
|
520
520
|
code: "custom",
|
|
521
521
|
message: e.global.t("wise_invoicing.invoice_approval.settings.pauses.period_in_past"),
|
|
522
522
|
path: ["period"]
|
|
523
523
|
});
|
|
524
|
-
}), Qe = "approval_follow_up_pause_overlap", $e = /* @__PURE__ */
|
|
524
|
+
}), Qe = "approval_follow_up_pause_overlap", $e = /* @__PURE__ */ j({
|
|
525
525
|
__name: "ApprovalFollowUpPauseFormDialog",
|
|
526
526
|
props: {
|
|
527
527
|
copyOf: {},
|
|
@@ -529,7 +529,7 @@ var Ze = C.object({
|
|
|
529
529
|
},
|
|
530
530
|
emits: ["close"],
|
|
531
531
|
setup(e, { emit: t }) {
|
|
532
|
-
let n = e, r = t, i =
|
|
532
|
+
let n = e, r = t, i = C(), a = V.Now.plainDateISO(), o = Z(), s = Xe(), l = Oe(), u = Q(!1), d = Q(!0), f = T(() => [u, d].flatMap((e) => e.result.value.match({
|
|
533
533
|
err: () => [],
|
|
534
534
|
loading: () => [],
|
|
535
535
|
ok: (e) => e
|
|
@@ -542,7 +542,7 @@ var Ze = C.object({
|
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
544
|
let h = be({
|
|
545
|
-
initialState: n.copyOf === null ?
|
|
545
|
+
initialState: n.copyOf === null ? y.toForm(n.pause) : y.toNextOccurrenceForm(n.copyOf, $.countYearsToNextOccurrence(n.copyOf.endDate, a)),
|
|
546
546
|
schema: Ze,
|
|
547
547
|
onSubmit: async (e) => {
|
|
548
548
|
let t = p(e.period.from, e.period.until);
|
|
@@ -553,12 +553,12 @@ var Ze = C.object({
|
|
|
553
553
|
}]);
|
|
554
554
|
return;
|
|
555
555
|
}
|
|
556
|
-
let a = n.pause === null ? await
|
|
556
|
+
let a = n.pause === null ? await s.execute({ body: e }) : await l.execute({
|
|
557
557
|
body: e,
|
|
558
558
|
params: { pauseUuid: n.pause.uuid }
|
|
559
559
|
});
|
|
560
560
|
if (a.isErr()) {
|
|
561
|
-
if (
|
|
561
|
+
if (R.isExpectedApiError(a.error) && R.getApiErrorCode(a.error) === Qe) {
|
|
562
562
|
h.addErrors([{
|
|
563
563
|
message: i.t("wise_invoicing.invoice_approval.settings.pauses.overlap"),
|
|
564
564
|
path: "period"
|
|
@@ -571,72 +571,72 @@ var Ze = C.object({
|
|
|
571
571
|
onSubmitError: () => {
|
|
572
572
|
o.unableToSave();
|
|
573
573
|
}
|
|
574
|
-
}),
|
|
574
|
+
}), ee = h.register("name"), g = h.register("period", {
|
|
575
575
|
from: null,
|
|
576
576
|
until: null
|
|
577
|
-
}),
|
|
577
|
+
}), _ = T(() => n.pause !== null && V.PlainDate.compare(n.pause.startDate, a) <= 0), v = T(() => {
|
|
578
578
|
if (n.pause === null) return "";
|
|
579
|
-
let e = i.t("wise_invoicing.invoice_approval.settings.pauses.started_on", { date: $.format(n.pause.startDate, n.pause.startDate, i.locale.value) }), t =
|
|
580
|
-
if (t === null ||
|
|
579
|
+
let e = i.t("wise_invoicing.invoice_approval.settings.pauses.started_on", { date: $.format(n.pause.startDate, n.pause.startDate, i.locale.value) }), t = g.modelValue.value.until;
|
|
580
|
+
if (t === null || V.PlainDate.compare(t, n.pause.startDate) < 0) return e;
|
|
581
581
|
let r = $.countDays(n.pause.startDate, t);
|
|
582
582
|
return `${e} · ${i.t("wise_invoicing.invoice_approval.settings.pauses.days", { count: r }, r)}`;
|
|
583
583
|
});
|
|
584
|
-
function
|
|
585
|
-
|
|
586
|
-
from:
|
|
584
|
+
function b(e) {
|
|
585
|
+
g["onUpdate:modelValue"]({
|
|
586
|
+
from: g.modelValue.value.from,
|
|
587
587
|
until: e
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
|
-
let
|
|
591
|
-
let e =
|
|
592
|
-
return e !== null &&
|
|
593
|
-
}),
|
|
594
|
-
let { from: e, until: t } =
|
|
595
|
-
if (e === null || t === null ||
|
|
590
|
+
let x = T(() => {
|
|
591
|
+
let e = g.modelValue.value.from;
|
|
592
|
+
return e !== null && V.PlainDate.compare(e, a) <= 0;
|
|
593
|
+
}), S = T(() => {
|
|
594
|
+
let { from: e, until: t } = g.modelValue.value;
|
|
595
|
+
if (e === null || t === null || V.PlainDate.compare(e, t) > 0) return i.t("wise_invoicing.invoice_approval.settings.pauses.period_hint");
|
|
596
596
|
let n = $.countDays(e, t);
|
|
597
597
|
return i.t("wise_invoicing.invoice_approval.settings.pauses.period_summary", {
|
|
598
598
|
days: i.t("wise_invoicing.invoice_approval.settings.pauses.days", { count: n }, n),
|
|
599
599
|
period: $.format(e, t, i.locale.value)
|
|
600
600
|
});
|
|
601
601
|
});
|
|
602
|
-
return (e, t) => (
|
|
603
|
-
form:
|
|
602
|
+
return (e, t) => (N(), E(I(le), {
|
|
603
|
+
form: I(h),
|
|
604
604
|
size: "sm",
|
|
605
605
|
onClose: t[0] ||= (e) => r("close")
|
|
606
606
|
}, {
|
|
607
|
-
default:
|
|
608
|
-
|
|
609
|
-
title:
|
|
610
|
-
description:
|
|
607
|
+
default: L(() => [
|
|
608
|
+
A(I(oe), {
|
|
609
|
+
title: I(i).t(n.pause === null ? "wise_invoicing.invoice_approval.settings.pauses.create_title" : "wise_invoicing.invoice_approval.settings.pauses.update_title"),
|
|
610
|
+
description: I(i).t("wise_invoicing.invoice_approval.settings.pauses.dialog_description"),
|
|
611
611
|
"is-description-hidden": n.pause !== null,
|
|
612
|
-
icon:
|
|
612
|
+
icon: I(c)
|
|
613
613
|
}, null, 8, [
|
|
614
614
|
"title",
|
|
615
615
|
"description",
|
|
616
616
|
"is-description-hidden",
|
|
617
617
|
"icon"
|
|
618
618
|
]),
|
|
619
|
-
|
|
620
|
-
default:
|
|
621
|
-
default:
|
|
622
|
-
|
|
619
|
+
A(I(ie), null, {
|
|
620
|
+
default: L(() => [A(I(ue), null, {
|
|
621
|
+
default: L(() => [
|
|
622
|
+
A(I(_e), M(I(m)(I(ee)), {
|
|
623
623
|
"is-required": !0,
|
|
624
|
-
label:
|
|
625
|
-
placeholder:
|
|
624
|
+
label: I(i).t("wise_invoicing.invoice_approval.settings.pauses.name"),
|
|
625
|
+
placeholder: I(i).t("wise_invoicing.invoice_approval.settings.pauses.name_placeholder"),
|
|
626
626
|
"data-lpignore": "true",
|
|
627
627
|
"data-1p-ignore": ""
|
|
628
628
|
}), null, 16, ["label", "placeholder"]),
|
|
629
|
-
|
|
629
|
+
_.value ? (N(), E(I(G), {
|
|
630
630
|
key: 0,
|
|
631
|
-
"error-message":
|
|
632
|
-
hint:
|
|
631
|
+
"error-message": I(m)(I(g)).errorMessage,
|
|
632
|
+
hint: v.value,
|
|
633
633
|
"is-required": !0,
|
|
634
|
-
"is-touched":
|
|
635
|
-
label:
|
|
636
|
-
"min-date":
|
|
637
|
-
"model-value":
|
|
638
|
-
onBlur:
|
|
639
|
-
"onUpdate:modelValue":
|
|
634
|
+
"is-touched": I(g).isTouched.value,
|
|
635
|
+
label: I(i).t("wise_invoicing.invoice_approval.settings.pauses.end_date"),
|
|
636
|
+
"min-date": I(a),
|
|
637
|
+
"model-value": I(g).modelValue.value.until,
|
|
638
|
+
onBlur: I(g).onBlur,
|
|
639
|
+
"onUpdate:modelValue": b
|
|
640
640
|
}, null, 8, [
|
|
641
641
|
"error-message",
|
|
642
642
|
"hint",
|
|
@@ -645,24 +645,24 @@ var Ze = C.object({
|
|
|
645
645
|
"min-date",
|
|
646
646
|
"model-value",
|
|
647
647
|
"onBlur"
|
|
648
|
-
])) : (
|
|
649
|
-
hint:
|
|
648
|
+
])) : (N(), E(I(K), M({ key: 1 }, I(m)(I(g)), {
|
|
649
|
+
hint: S.value,
|
|
650
650
|
"is-required": !0,
|
|
651
|
-
label:
|
|
651
|
+
label: I(i).t("wise_invoicing.invoice_approval.settings.pauses.period")
|
|
652
652
|
}), null, 16, ["hint", "label"])),
|
|
653
|
-
|
|
653
|
+
x.value && !_.value ? (N(), E(I(X), {
|
|
654
654
|
key: 2,
|
|
655
|
-
text:
|
|
655
|
+
text: I(i).t("wise_invoicing.invoice_approval.settings.pauses.starts_today_hint"),
|
|
656
656
|
truncate: !1,
|
|
657
657
|
class: "text-sm text-tertiary"
|
|
658
|
-
}, null, 8, ["text"])) :
|
|
658
|
+
}, null, 8, ["text"])) : D("", !0)
|
|
659
659
|
]),
|
|
660
660
|
_: 1
|
|
661
661
|
})]),
|
|
662
662
|
_: 1
|
|
663
663
|
}),
|
|
664
|
-
|
|
665
|
-
default:
|
|
664
|
+
A(I(q), null, {
|
|
665
|
+
default: L(() => [A(I(J)), A(I(de), { label: I(i).t("shared.save_changes") }, null, 8, ["label"])]),
|
|
666
666
|
_: 1
|
|
667
667
|
})
|
|
668
668
|
]),
|
|
@@ -703,7 +703,7 @@ function et() {
|
|
|
703
703
|
var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { class: "flex flex-col gap-lg sm:flex-row sm:items-start sm:justify-between" }, rt = { class: "text-md font-semibold text-primary" }, it = { class: "mt-xs text-sm text-secondary" }, at = { class: "grid grid-cols-1 gap-lg md:grid-cols-2" }, ot = {
|
|
704
704
|
key: 2,
|
|
705
705
|
class: "flex flex-col"
|
|
706
|
-
}, st = /* @__PURE__ */
|
|
706
|
+
}, st = /* @__PURE__ */ j({
|
|
707
707
|
__name: "ApprovalReminderSettingsView",
|
|
708
708
|
props: {
|
|
709
709
|
approvalMailTemplate: {},
|
|
@@ -727,34 +727,34 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
|
|
|
727
727
|
}, s = {
|
|
728
728
|
[t.AFTER_APPROVAL_REQUEST]: "wise_invoicing.invoice_approval.settings.schedule.after_approval_request",
|
|
729
729
|
[t.AFTER_LAST_REMINDER]: "wise_invoicing.invoice_approval.settings.schedule.after_last_reminder"
|
|
730
|
-
}, c =
|
|
730
|
+
}, c = C(), l = Z(), u = n(), f = Ce(), p = Se(), h = et(), g = P("reminders"), y = P("request"), x = P("en-US");
|
|
731
731
|
u.set(() => c.t("wise_invoicing.invoice_approval.settings.title"));
|
|
732
|
-
let
|
|
733
|
-
mailTemplate:
|
|
734
|
-
reminderConfig:
|
|
732
|
+
let S = T(() => ({
|
|
733
|
+
mailTemplate: b.toForm(r.approvalMailTemplate),
|
|
734
|
+
reminderConfig: v.toForm(r.reminderConfigs)
|
|
735
735
|
}));
|
|
736
|
-
function
|
|
737
|
-
return JSON.stringify(
|
|
736
|
+
function D(e) {
|
|
737
|
+
return JSON.stringify(v.toDto(e.reminderConfig)) !== JSON.stringify(v.toDto(S.value.reminderConfig));
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
return JSON.stringify(
|
|
739
|
+
function j(e) {
|
|
740
|
+
return JSON.stringify(b.toDto(e.mailTemplate)) !== JSON.stringify(b.toDto(S.value.mailTemplate));
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
let t = e?.split(".") ?? [], n =
|
|
744
|
-
t[0] === "mailTemplate" ? (
|
|
742
|
+
function R(e) {
|
|
743
|
+
let t = e?.split(".") ?? [], n = _.find((e) => t.includes(e));
|
|
744
|
+
t[0] === "mailTemplate" ? (g.value = "templates", y.value = "request") : t.includes("template") ? (g.value = "templates", y.value = t[2] === "0" ? "reminder-1" : "reminder-2") : g.value = "reminders", n !== void 0 && (x.value = n);
|
|
745
745
|
}
|
|
746
746
|
let z = be({
|
|
747
|
-
initialState:
|
|
747
|
+
initialState: S,
|
|
748
748
|
schema: De,
|
|
749
749
|
onSubmit: async (e) => {
|
|
750
|
-
if (
|
|
751
|
-
let t = await
|
|
750
|
+
if (D(e)) {
|
|
751
|
+
let t = await f.execute({ body: e.reminderConfig });
|
|
752
752
|
if (t.isErr()) {
|
|
753
753
|
l.apiError(t.error);
|
|
754
754
|
return;
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
if (
|
|
757
|
+
if (j(e)) {
|
|
758
758
|
let t = await p.execute({ body: e.mailTemplate });
|
|
759
759
|
if (t.isErr()) {
|
|
760
760
|
l.apiError(t.error);
|
|
@@ -764,10 +764,10 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
|
|
|
764
764
|
l.show({ message: c.t("wise_invoicing.invoice_approval.settings.success") });
|
|
765
765
|
},
|
|
766
766
|
onSubmitError: ({ errors: e }) => {
|
|
767
|
-
|
|
767
|
+
R(e[0]?.path), l.unableToSave();
|
|
768
768
|
}
|
|
769
|
-
}),
|
|
770
|
-
let t =
|
|
769
|
+
}), B = z.registerArray("reminderConfig.reminders"), V = i.map((e) => {
|
|
770
|
+
let t = B.register(`${e.index}`), n = t.register("template");
|
|
771
771
|
return {
|
|
772
772
|
offsetDays: t.register("offsetDays"),
|
|
773
773
|
schedule: t.register("schedule"),
|
|
@@ -786,9 +786,9 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
|
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
|
-
}),
|
|
790
|
-
"reminder-1":
|
|
791
|
-
"reminder-2":
|
|
789
|
+
}), H = {
|
|
790
|
+
"reminder-1": V[0].template,
|
|
791
|
+
"reminder-2": V[1].template,
|
|
792
792
|
request: {
|
|
793
793
|
"en-US": {
|
|
794
794
|
body: z.register("mailTemplate.en-US.body"),
|
|
@@ -803,84 +803,84 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
|
|
|
803
803
|
subject: z.register("mailTemplate.nl-BE.subject")
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
|
-
},
|
|
807
|
-
get: () =>
|
|
806
|
+
}, W = T({
|
|
807
|
+
get: () => y.value,
|
|
808
808
|
set: (e) => {
|
|
809
809
|
let t = a.find((t) => t === e);
|
|
810
|
-
t !== void 0 && (
|
|
810
|
+
t !== void 0 && (y.value = t);
|
|
811
811
|
}
|
|
812
|
-
}),
|
|
813
|
-
get: () =>
|
|
812
|
+
}), G = T({
|
|
813
|
+
get: () => x.value,
|
|
814
814
|
set: (e) => {
|
|
815
|
-
let t =
|
|
816
|
-
t !== void 0 && (
|
|
815
|
+
let t = _.find((t) => t === e);
|
|
816
|
+
t !== void 0 && (x.value = t);
|
|
817
817
|
}
|
|
818
818
|
});
|
|
819
|
-
function
|
|
820
|
-
let n =
|
|
819
|
+
function K(e, t) {
|
|
820
|
+
let n = H[e][t];
|
|
821
821
|
return (n.subject.modelValue.value ?? "").trim() === "" || (n.body.modelValue.value ?? "").trim() === "";
|
|
822
822
|
}
|
|
823
|
-
let
|
|
824
|
-
hasMissingContent:
|
|
823
|
+
let ie = T(() => a.map((e) => ({
|
|
824
|
+
hasMissingContent: K(e, x.value),
|
|
825
825
|
label: c.t(o[e]),
|
|
826
826
|
value: e
|
|
827
|
-
}))),
|
|
828
|
-
hasMissingContent:
|
|
827
|
+
}))), q = T(() => _.map((e) => ({
|
|
828
|
+
hasMissingContent: K(y.value, e),
|
|
829
829
|
label: c.t(`wise_invoicing.invoice_approval.settings.templates.locale.${e}`),
|
|
830
830
|
value: e
|
|
831
|
-
}))),
|
|
832
|
-
language: c.t(`wise_invoicing.invoice_approval.settings.templates.locale_name.${
|
|
833
|
-
template: c.t(o[
|
|
831
|
+
}))), J = T(() => c.t("wise_invoicing.invoice_approval.settings.templates.card_title", {
|
|
832
|
+
language: c.t(`wise_invoicing.invoice_approval.settings.templates.locale_name.${x.value}`),
|
|
833
|
+
template: c.t(o[y.value])
|
|
834
834
|
}));
|
|
835
|
-
function
|
|
835
|
+
function ae(e) {
|
|
836
836
|
return ve([e === 0 ? t.AFTER_APPROVAL_REQUEST : t.AFTER_LAST_REMINDER]);
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function oe(e) {
|
|
839
839
|
return c.t(s[e]);
|
|
840
840
|
}
|
|
841
|
-
return (e, t) => (
|
|
842
|
-
description:
|
|
843
|
-
title:
|
|
841
|
+
return (e, t) => (N(), E(I(ne), {
|
|
842
|
+
description: I(c).t("wise_invoicing.invoice_approval.settings.description"),
|
|
843
|
+
title: I(c).t("wise_invoicing.invoice_approval.settings.title")
|
|
844
844
|
}, {
|
|
845
|
-
default:
|
|
846
|
-
default:
|
|
847
|
-
form:
|
|
845
|
+
default: L(() => [A(I(re), null, {
|
|
846
|
+
default: L(() => [A(I(ce), {
|
|
847
|
+
form: I(z),
|
|
848
848
|
"prompt-on-unsaved-changes": !0
|
|
849
849
|
}, {
|
|
850
|
-
default:
|
|
851
|
-
|
|
850
|
+
default: L(() => [k("div", tt, [
|
|
851
|
+
k("div", nt, [k("div", null, [k("h2", rt, te(I(c).t("wise_invoicing.invoice_approval.settings.title")), 1), k("p", it, te(I(c).t("wise_invoicing.invoice_approval.settings.description")), 1)]), g.value === "pauses" ? (N(), E(I(U), {
|
|
852
852
|
key: 0,
|
|
853
|
-
"icon-left":
|
|
854
|
-
label:
|
|
853
|
+
"icon-left": I(d),
|
|
854
|
+
label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.add"),
|
|
855
855
|
class: "shrink-0",
|
|
856
|
-
onClick:
|
|
856
|
+
onClick: I(h).openCreate
|
|
857
857
|
}, null, 8, [
|
|
858
858
|
"icon-left",
|
|
859
859
|
"label",
|
|
860
860
|
"onClick"
|
|
861
|
-
])) : (
|
|
861
|
+
])) : (N(), E(I(de), {
|
|
862
862
|
key: 1,
|
|
863
|
-
label:
|
|
863
|
+
label: I(c).t("shared.save_changes"),
|
|
864
864
|
class: "shrink-0"
|
|
865
865
|
}, null, 8, ["label"]))]),
|
|
866
|
-
|
|
867
|
-
modelValue:
|
|
868
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
869
|
-
"aria-label":
|
|
866
|
+
A(I(me), {
|
|
867
|
+
modelValue: g.value,
|
|
868
|
+
"onUpdate:modelValue": t[0] ||= (e) => g.value = e,
|
|
869
|
+
"aria-label": I(c).t("wise_invoicing.invoice_approval.settings.navigation"),
|
|
870
870
|
variant: "button-border"
|
|
871
871
|
}, {
|
|
872
|
-
default:
|
|
873
|
-
default:
|
|
874
|
-
|
|
875
|
-
label:
|
|
872
|
+
default: L(() => [A(I(ge), null, {
|
|
873
|
+
default: L(() => [
|
|
874
|
+
A(I(he), {
|
|
875
|
+
label: I(c).t("wise_invoicing.invoice_approval.settings.reminders.tab"),
|
|
876
876
|
value: "reminders"
|
|
877
877
|
}, null, 8, ["label"]),
|
|
878
|
-
|
|
879
|
-
label:
|
|
878
|
+
A(I(he), {
|
|
879
|
+
label: I(c).t("wise_invoicing.invoice_approval.settings.templates.tab"),
|
|
880
880
|
value: "templates"
|
|
881
881
|
}, null, 8, ["label"]),
|
|
882
|
-
|
|
883
|
-
label:
|
|
882
|
+
A(I(he), {
|
|
883
|
+
label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.tab"),
|
|
884
884
|
value: "pauses"
|
|
885
885
|
}, null, 8, ["label"])
|
|
886
886
|
]),
|
|
@@ -888,45 +888,45 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
|
|
|
888
888
|
})]),
|
|
889
889
|
_: 1
|
|
890
890
|
}, 8, ["modelValue", "aria-label"]),
|
|
891
|
-
|
|
892
|
-
text:
|
|
891
|
+
g.value === "reminders" ? (N(), O(w, { key: 0 }, [A(I(X), {
|
|
892
|
+
text: I(c).t("wise_invoicing.invoice_approval.settings.reminders.description"),
|
|
893
893
|
truncate: !1,
|
|
894
894
|
class: "text-sm text-tertiary"
|
|
895
|
-
}, null, 8, ["text"]), (
|
|
895
|
+
}, null, 8, ["text"]), (N(), O(w, null, F(i, (e) => k("div", {
|
|
896
896
|
key: e.index,
|
|
897
897
|
class: "flex flex-col gap-md"
|
|
898
|
-
}, [
|
|
899
|
-
text:
|
|
898
|
+
}, [A(I(X), {
|
|
899
|
+
text: I(c).t(e.labelKey),
|
|
900
900
|
class: "text-sm font-medium text-primary"
|
|
901
|
-
}, null, 8, ["text"]),
|
|
901
|
+
}, null, 8, ["text"]), k("div", at, [A(I(fe), M({ ref_for: !0 }, I(m)(I(V)[e.index].offsetDays), {
|
|
902
902
|
"is-required": !0,
|
|
903
|
-
label:
|
|
903
|
+
label: I(c).t("wise_invoicing.invoice_approval.settings.offset_days"),
|
|
904
904
|
max: 365,
|
|
905
905
|
min: 1,
|
|
906
906
|
step: 1
|
|
907
|
-
}), null, 16, ["label"]),
|
|
908
|
-
"display-fn":
|
|
907
|
+
}), null, 16, ["label"]), A(I(pe), M({ ref_for: !0 }, I(m)(I(V)[e.index].schedule), {
|
|
908
|
+
"display-fn": oe,
|
|
909
909
|
"is-required": !0,
|
|
910
|
-
items:
|
|
911
|
-
label:
|
|
912
|
-
}), null, 16, ["items", "label"])])])), 64))], 64)) :
|
|
910
|
+
items: ae(e.index),
|
|
911
|
+
label: I(c).t("wise_invoicing.invoice_approval.settings.schedule_label")
|
|
912
|
+
}), null, 16, ["items", "label"])])])), 64))], 64)) : g.value === "pauses" ? (N(), E(qe, {
|
|
913
913
|
key: 1,
|
|
914
|
-
dialogs:
|
|
915
|
-
}, null, 8, ["dialogs"])) : (
|
|
916
|
-
text:
|
|
914
|
+
dialogs: I(h)
|
|
915
|
+
}, null, 8, ["dialogs"])) : (N(), O("div", ot, [A(I(X), {
|
|
916
|
+
text: I(c).t("wise_invoicing.invoice_approval.settings.templates.description"),
|
|
917
917
|
truncate: !1,
|
|
918
918
|
class: "text-sm text-tertiary"
|
|
919
|
-
}, null, 8, ["text"]),
|
|
920
|
-
"active-level":
|
|
921
|
-
"onUpdate:activeLevel": t[1] ||= (e) =>
|
|
922
|
-
"active-locale":
|
|
923
|
-
"onUpdate:activeLocale": t[2] ||= (e) =>
|
|
924
|
-
"body-field":
|
|
919
|
+
}, null, 8, ["text"]), A(ee, {
|
|
920
|
+
"active-level": W.value,
|
|
921
|
+
"onUpdate:activeLevel": t[1] ||= (e) => W.value = e,
|
|
922
|
+
"active-locale": G.value,
|
|
923
|
+
"onUpdate:activeLocale": t[2] ||= (e) => G.value = e,
|
|
924
|
+
"body-field": H[y.value][x.value].body,
|
|
925
925
|
"can-update": !0,
|
|
926
|
-
"card-title":
|
|
927
|
-
"level-items":
|
|
928
|
-
"locale-items":
|
|
929
|
-
"subject-field":
|
|
926
|
+
"card-title": J.value,
|
|
927
|
+
"level-items": ie.value,
|
|
928
|
+
"locale-items": q.value,
|
|
929
|
+
"subject-field": H[y.value][x.value].subject
|
|
930
930
|
}, null, 8, [
|
|
931
931
|
"active-level",
|
|
932
932
|
"active-locale",
|
|
@@ -944,16 +944,16 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
|
|
|
944
944
|
_: 1
|
|
945
945
|
}, 8, ["description", "title"]));
|
|
946
946
|
}
|
|
947
|
-
}), ct = /* @__PURE__ */
|
|
947
|
+
}), ct = /* @__PURE__ */ j({
|
|
948
948
|
__name: "ApprovalReminderSettingsViewDataProvider",
|
|
949
949
|
setup(e) {
|
|
950
950
|
let t = xe();
|
|
951
|
-
return (e, n) => (
|
|
952
|
-
default:
|
|
951
|
+
return (e, n) => (N(), E(h, { queries: { reminderConfigs: I(t) } }, {
|
|
952
|
+
default: L(({ data: e }) => [A(st, {
|
|
953
953
|
"approval-mail-template": e.reminderConfigs.approvalMailTemplate,
|
|
954
954
|
"reminder-configs": e.reminderConfigs.items
|
|
955
955
|
}, null, 8, ["approval-mail-template", "reminder-configs"])]),
|
|
956
|
-
loading:
|
|
956
|
+
loading: L(() => [A(I(W), { breadcrumbs: [] })]),
|
|
957
957
|
_: 1
|
|
958
958
|
}, 8, ["queries"]));
|
|
959
959
|
}
|