@wisemen/wise-invoicing-web 0.0.3 → 0.0.4
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/{BillingDocumentDetailViewDataProvider-CwonTh2r.js → BillingDocumentDetailViewDataProvider-pePmiXWb.js} +332 -332
- package/dist/{BillingDocumentPdf-GWCCjE6F.js → BillingDocumentPdf-Dg5JlQE1.js} +8 -8
- package/dist/{CreditNoteDetailViewDataProvider-CaucKK9o.js → CreditNoteDetailViewDataProvider-C-A0jyVr.js} +5 -5
- package/dist/{CreditNotePdfViewDataProvider-CDkvm-3m.js → CreditNotePdfViewDataProvider-DNUvFVDj.js} +2 -2
- package/dist/{CustomFieldValueText-CC9spLWf.js → CustomFieldValueText-DDQq-975.js} +1 -1
- package/dist/{DunningCaseDetailViewDataProvider-1Ui9yqUb.js → DunningCaseDetailViewDataProvider-0WV-7-vg.js} +110 -113
- package/dist/DunningCaseOverviewView-CHdzfbhb.js +553 -0
- package/dist/{DunningCaseReminderPdfViewDataProvider-CVnr9ge6.js → DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js} +4 -1
- package/dist/DunningCaseSendDialog-DBtwr2ue.js +350 -0
- package/dist/{InvoiceDetailViewDataProvider-DfRDFCEb.js → InvoiceDetailViewDataProvider-BDL9lAWe.js} +175 -174
- package/dist/{InvoiceOverviewViewDataProvider-CNK7H5r2.js → InvoiceOverviewViewDataProvider-B_jrcC_8.js} +54 -54
- package/dist/{InvoicePdfView-CrWU8Xa-.js → InvoicePdfView-Bygb-9z6.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-nHZoeRxn.js → InvoicePdfViewDataProvider-nBk3XNrE.js} +2 -2
- package/dist/{InvoicePublicPdfViewDataProvider-CXWSg2pq.js → InvoicePublicPdfViewDataProvider-DHJP_-7-.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-DcA6rgOJ.js → IssuerSettingsViewDataProvider-Dk_Q6w6f.js} +2 -2
- package/dist/ReminderSettingsViewDataProvider-CDBjfU7R.js +668 -0
- package/dist/{billingDocumentDetail.transformer-tmy9Tf_b.js → billingDocumentDetail.transformer-zMTbka5p.js} +1 -1
- package/dist/composables/invoicingConfig.composable.d.ts +0 -2
- package/dist/{creditNoteDetail.query-BM2saU0n.js → creditNoteDetail.query-BZqgZRSu.js} +2 -2
- package/dist/{documentTitle.composable-D7XA-8iJ.js → documentTitle.composable-CeaFddr1.js} +28 -30
- package/dist/{invoicingConfig.composable-AjojW4qE.js → i18n.lib-DUbAMBRb.js} +8 -66
- package/dist/index.js +156 -157
- package/dist/{invoice.service-PsmVGGTR.js → invoice.service-ChHEtXBA.js} +13 -13
- package/dist/{invoiceDeliveryStatus.util-CL8K78pD.js → invoiceDeliveryStatus.util-BsA-MlA3.js} +27 -27
- package/dist/{invoiceDetail.query-D2eFdE0j.js → invoiceDetail.query-O_CGvdwg.js} +1 -1
- package/dist/invoicingConfig.composable-c6w_aMm1.js +60 -0
- package/dist/{issuerSettings.query-d5i7Wd7j.js → issuerSettings.query-RqtrZFaB.js} +1 -1
- package/dist/modules/dunning-case/api/queries/dunningCaseIndex.query.d.ts +0 -1
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendStat.vue.d.ts +9 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendSummary.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendFeeRow.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendInvoiceRow.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendInvoiceSummary.vue.d.ts +8 -0
- package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendRecipientAlert.vue.d.ts +7 -0
- package/dist/modules/dunning-case/use-cases/send/composables/dunningCaseReminderSubject.composable.d.ts +6 -0
- package/dist/modules/dunning-case/use-cases/send/composables/dunningCaseSendRecipient.composable.d.ts +16 -0
- package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.d.ts +13 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderFeeNotice.vue.d.ts +3 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderPanel.vue.d.ts +12 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +26 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderTimeline.vue.d.ts +13 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderTemplateTabs.vue.d.ts +20 -0
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderTemplatesPanel.vue.d.ts +24 -0
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +41 -0
- package/dist/{reminderConfig.query-C7I3M2pu.js → reminderConfig.query-DzTN2AvU.js} +87 -100
- package/package.json +1 -1
- package/dist/DunningCaseOverviewView-Bvwaj4_y.js +0 -507
- package/dist/PermissionGuard-DDw-lDGL.js +0 -301
- package/dist/ReminderSettingsViewDataProvider-C4qz2Rli.js +0 -502
- package/dist/composables/permission-guard/permissionGuard.composable.d.ts +0 -4
- package/dist/modules/dunning-case/api/queries/dunningCaseIndex.query.spec.d.ts +0 -1
- package/dist/ui/permission-guard/PermissionGuard.vue.d.ts +0 -22
|
@@ -1,60 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Temporal as S } from "temporal-polyfill";
|
|
8
|
-
//#region src/composables/permission-guard/permissionGuard.composable.ts
|
|
9
|
-
function C() {
|
|
10
|
-
let t = e();
|
|
11
|
-
function n(e, n = "any") {
|
|
12
|
-
let r = Array.isArray(e) ? e : [e];
|
|
13
|
-
return n === "all" ? r.every(t.hasPermission) : r.some(t.hasPermission);
|
|
14
|
-
}
|
|
15
|
-
return { has: n };
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
1
|
+
import { B as e, E as t, J as n, P as r, V as i, a, t as o, w as s } from "./api.util-Dm_TQedZ.js";
|
|
2
|
+
import { d as c } from "./documentTitle.composable-CeaFddr1.js";
|
|
3
|
+
import { n as l, t as u } from "./plainDate.transformer-BxvJpJOv.js";
|
|
4
|
+
import { Fragment as d, computed as f, createElementBlock as p, createElementVNode as m, defineComponent as h, normalizeClass as g, openBlock as _, renderList as v } from "vue";
|
|
5
|
+
import { useQuery as y } from "@wisemen/vue-core-api-utils";
|
|
6
|
+
import { Temporal as b } from "temporal-polyfill";
|
|
18
7
|
//#region src/modules/dunning-case/models/dunningCase.transformer.ts
|
|
19
|
-
var
|
|
8
|
+
var x = [
|
|
20
9
|
"en-US",
|
|
21
10
|
"nl-BE",
|
|
22
11
|
"fr-BE"
|
|
23
|
-
],
|
|
24
|
-
function
|
|
12
|
+
], S = /* @__PURE__ */ new Set(/* @__PURE__ */ "address.article.aside.blockquote.div.dl.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hr.li.main.nav.ol.p.pre.section.table.tbody.td.tfoot.th.thead.tr.ul".split(".")), C = /^\/?([a-z][a-z0-9-]*)/i, w = /&(#(?:x[\da-f]+|\d+)|[a-z][\da-z]+);/gi;
|
|
13
|
+
function T(e) {
|
|
25
14
|
return e.nodeType === 3;
|
|
26
15
|
}
|
|
27
|
-
function
|
|
16
|
+
function E(e) {
|
|
28
17
|
return e.nodeType === 1;
|
|
29
18
|
}
|
|
30
|
-
function
|
|
19
|
+
function D(e) {
|
|
31
20
|
let t = e;
|
|
32
21
|
for (; t.startsWith("\n\n");) t = t.slice(2);
|
|
33
22
|
for (; t.endsWith("\n\n");) t = t.slice(0, -2);
|
|
34
23
|
return t;
|
|
35
24
|
}
|
|
36
|
-
function
|
|
25
|
+
function O(e) {
|
|
37
26
|
let t = globalThis.DOMParser;
|
|
38
|
-
return
|
|
27
|
+
return D(t === void 0 ? M(e) : k(new t().parseFromString(e, "text/html").body.childNodes));
|
|
39
28
|
}
|
|
40
|
-
function
|
|
29
|
+
function k(e) {
|
|
41
30
|
let t = "";
|
|
42
31
|
function n(e) {
|
|
43
32
|
t += e.replaceAll("\xA0", " ");
|
|
44
33
|
}
|
|
45
34
|
function r(e) {
|
|
46
|
-
if (
|
|
35
|
+
if (T(e)) {
|
|
47
36
|
n(e.data);
|
|
48
37
|
return;
|
|
49
38
|
}
|
|
50
|
-
if (!
|
|
39
|
+
if (!E(e)) return;
|
|
51
40
|
let i = e.tagName.toLowerCase();
|
|
52
41
|
if (i === "script" || i === "style") return;
|
|
53
42
|
if (i === "br") {
|
|
54
43
|
n("\n");
|
|
55
44
|
return;
|
|
56
45
|
}
|
|
57
|
-
let a =
|
|
46
|
+
let a = S.has(i);
|
|
58
47
|
a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
|
|
59
48
|
for (let t of e.childNodes) r(t);
|
|
60
49
|
a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
|
|
@@ -62,16 +51,16 @@ function M(e) {
|
|
|
62
51
|
for (let t of e) r(t);
|
|
63
52
|
return t;
|
|
64
53
|
}
|
|
65
|
-
function
|
|
66
|
-
return `<p>${e.split("\n").map((e) =>
|
|
54
|
+
function A(e) {
|
|
55
|
+
return `<p>${e.split("\n").map((e) => j(e)).join("<br>")}</p>`;
|
|
67
56
|
}
|
|
68
|
-
function
|
|
57
|
+
function j(e) {
|
|
69
58
|
return e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
70
59
|
}
|
|
71
|
-
function
|
|
60
|
+
function M(e) {
|
|
72
61
|
let t = "", n = 0, r = null;
|
|
73
62
|
function i(e) {
|
|
74
|
-
t +=
|
|
63
|
+
t += N(e.replaceAll("\xA0", " "));
|
|
75
64
|
}
|
|
76
65
|
function a() {
|
|
77
66
|
t.length > 0 && !t.endsWith("\n") && (t += "\n\n");
|
|
@@ -93,7 +82,7 @@ function F(e) {
|
|
|
93
82
|
r === null && i(e.slice(o));
|
|
94
83
|
break;
|
|
95
84
|
}
|
|
96
|
-
let l = e.slice(o + 1, c).trim(), u = l.startsWith("/"), d =
|
|
85
|
+
let l = e.slice(o + 1, c).trim(), u = l.startsWith("/"), d = C.exec(l)?.[1]?.toLowerCase();
|
|
97
86
|
if (d === void 0) {
|
|
98
87
|
n = c + 1;
|
|
99
88
|
continue;
|
|
@@ -106,11 +95,11 @@ function F(e) {
|
|
|
106
95
|
r = u ? null : d, n = c + 1;
|
|
107
96
|
continue;
|
|
108
97
|
}
|
|
109
|
-
d === "br" ? t += "\n" :
|
|
98
|
+
d === "br" ? t += "\n" : S.has(d) && (a(), (u || l.endsWith("/")) && a()), n = c + 1;
|
|
110
99
|
}
|
|
111
100
|
return t;
|
|
112
101
|
}
|
|
113
|
-
function
|
|
102
|
+
function N(e) {
|
|
114
103
|
let t = {
|
|
115
104
|
amp: "&",
|
|
116
105
|
apos: "'",
|
|
@@ -119,26 +108,26 @@ function I(e) {
|
|
|
119
108
|
nbsp: " ",
|
|
120
109
|
quot: "\""
|
|
121
110
|
};
|
|
122
|
-
return e.replace(
|
|
111
|
+
return e.replace(w, (e, n) => n.startsWith("#x") || n.startsWith("#X") ? String.fromCodePoint(Number.parseInt(n.slice(2), 16)) : n.startsWith("#") ? String.fromCodePoint(Number.parseInt(n.slice(1), 10)) : t[n.toLowerCase()] ?? e);
|
|
123
112
|
}
|
|
124
|
-
function
|
|
113
|
+
function P(e, t) {
|
|
125
114
|
return e.items.find((e) => e.locale === t)?.value ?? "";
|
|
126
115
|
}
|
|
127
|
-
function
|
|
128
|
-
return { items:
|
|
116
|
+
function F(e, t) {
|
|
117
|
+
return { items: x.map((n) => ({
|
|
129
118
|
locale: n,
|
|
130
|
-
value: t === "body" ?
|
|
119
|
+
value: t === "body" ? A(e[n][t]) : e[n][t]
|
|
131
120
|
})) };
|
|
132
121
|
}
|
|
133
|
-
var
|
|
122
|
+
var I = class e {
|
|
134
123
|
static fromDetailDto(t) {
|
|
135
124
|
return {
|
|
136
125
|
uuid: t.uuid,
|
|
137
|
-
closedAt: t.closedAt === null ? null :
|
|
138
|
-
createdAt:
|
|
126
|
+
closedAt: t.closedAt === null ? null : b.Instant.from(t.closedAt),
|
|
127
|
+
createdAt: b.Instant.from(t.createdAt),
|
|
139
128
|
lastReminderSentAt: e.fromNullableInstant(t.lastReminderSentAt),
|
|
140
|
-
nextReminderOn:
|
|
141
|
-
updatedAt:
|
|
129
|
+
nextReminderOn: u.fromNullableDto(t.nextReminderOn),
|
|
130
|
+
updatedAt: b.Instant.from(t.updatedAt),
|
|
142
131
|
isClosed: t.isClosed,
|
|
143
132
|
blockedReason: t.blockedReason,
|
|
144
133
|
canSendReminder: t.canSendReminder,
|
|
@@ -146,75 +135,75 @@ var z = class e {
|
|
|
146
135
|
invoices: t.invoices.map(e.fromInvoiceDto),
|
|
147
136
|
latestCreatedReminder: e.fromReminderDto(t.latestCreatedReminder),
|
|
148
137
|
level: t.level ?? 0,
|
|
149
|
-
outstandingBalance:
|
|
150
|
-
totalCredited:
|
|
151
|
-
totalFee:
|
|
152
|
-
totalInvoiced:
|
|
153
|
-
totalPaid:
|
|
138
|
+
outstandingBalance: l.fromDto(t.outstandingBalance),
|
|
139
|
+
totalCredited: l.fromDto(t.totalCredited),
|
|
140
|
+
totalFee: l.fromDto(t.totalFee),
|
|
141
|
+
totalInvoiced: l.fromDto(t.totalInvoiced),
|
|
142
|
+
totalPaid: l.fromDto(t.totalPaid)
|
|
154
143
|
};
|
|
155
144
|
}
|
|
156
145
|
static fromIndexDto(t) {
|
|
157
146
|
return {
|
|
158
147
|
uuid: t.uuid,
|
|
159
148
|
lastReminderSentAt: e.fromNullableInstant(t.lastReminderSentAt),
|
|
160
|
-
nextReminderOn: t.nextReminderOn === null || t.nextReminderOn === "infinity" || t.nextReminderOn === "-infinity" ? null :
|
|
149
|
+
nextReminderOn: t.nextReminderOn === null || t.nextReminderOn === "infinity" || t.nextReminderOn === "-infinity" ? null : u.fromDto(t.nextReminderOn),
|
|
161
150
|
blockedReason: t.blockedReason,
|
|
162
151
|
canSendReminder: t.canSendReminder,
|
|
163
152
|
customer: t.customer,
|
|
164
153
|
daysOverdue: t.daysOverdue,
|
|
165
154
|
latestCreatedReminder: e.fromReminderDto(t.latestCreatedReminder),
|
|
166
155
|
level: t.level,
|
|
167
|
-
outstandingBalance:
|
|
156
|
+
outstandingBalance: l.fromDto(t.outstandingBalance)
|
|
168
157
|
};
|
|
169
158
|
}
|
|
170
159
|
static fromInvoiceDto(e) {
|
|
171
160
|
return {
|
|
172
161
|
uuid: e.uuid,
|
|
173
|
-
dueOn:
|
|
162
|
+
dueOn: u.fromDto(e.dueOn),
|
|
174
163
|
isDisputed: e.isDisputed,
|
|
175
|
-
balanceDueAmount:
|
|
164
|
+
balanceDueAmount: l.fromDto(e.balanceDueAmount),
|
|
176
165
|
creditNotes: e.creditNotes.map((e) => ({
|
|
177
166
|
uuid: e.uuid,
|
|
178
|
-
finalizedOn:
|
|
179
|
-
grossAmount:
|
|
167
|
+
finalizedOn: u.fromDto(e.finalizedOn),
|
|
168
|
+
grossAmount: l.fromDto(e.grossAmount),
|
|
180
169
|
sequence: e.sequence
|
|
181
170
|
})),
|
|
182
|
-
grossAmount:
|
|
171
|
+
grossAmount: l.fromDto(e.grossAmount),
|
|
183
172
|
level: e.level,
|
|
184
|
-
paidAmount:
|
|
173
|
+
paidAmount: l.fromDto(e.paidAmount),
|
|
185
174
|
payments: e.payments.map((e) => ({
|
|
186
175
|
uuid: e.uuid,
|
|
187
|
-
amount:
|
|
188
|
-
date:
|
|
176
|
+
amount: l.fromDto(e.amount),
|
|
177
|
+
date: u.fromDto(e.date)
|
|
189
178
|
})),
|
|
190
179
|
sequence: e.sequence,
|
|
191
180
|
settlementStatus: e.settlementStatus,
|
|
192
181
|
subject: e.subject,
|
|
193
|
-
totalCreditedAmount:
|
|
182
|
+
totalCreditedAmount: l.fromDto(e.totalCreditedAmount)
|
|
194
183
|
};
|
|
195
184
|
}
|
|
196
185
|
static fromNullableInstant(e) {
|
|
197
|
-
return e === null || e === "infinity" || e === "-infinity" ? null :
|
|
186
|
+
return e === null || e === "infinity" || e === "-infinity" ? null : b.Instant.from(e);
|
|
198
187
|
}
|
|
199
188
|
static fromReminderConfigDto(e) {
|
|
200
189
|
return {
|
|
201
190
|
uuid: e.uuid,
|
|
202
|
-
fee:
|
|
191
|
+
fee: l.fromDto(e.fee),
|
|
203
192
|
offsetDays: e.offsetDays,
|
|
204
193
|
schedule: e.schedule,
|
|
205
194
|
sequence: e.sequence,
|
|
206
195
|
template: {
|
|
207
196
|
"en-US": {
|
|
208
|
-
body:
|
|
209
|
-
subject:
|
|
197
|
+
body: O(P(e.template.body, "en-US")),
|
|
198
|
+
subject: P(e.template.subject, "en-US")
|
|
210
199
|
},
|
|
211
200
|
"fr-BE": {
|
|
212
|
-
body:
|
|
213
|
-
subject:
|
|
201
|
+
body: O(P(e.template.body, "fr-BE")),
|
|
202
|
+
subject: P(e.template.subject, "fr-BE")
|
|
214
203
|
},
|
|
215
204
|
"nl-BE": {
|
|
216
|
-
body:
|
|
217
|
-
subject:
|
|
205
|
+
body: O(P(e.template.body, "nl-BE")),
|
|
206
|
+
subject: P(e.template.subject, "nl-BE")
|
|
218
207
|
}
|
|
219
208
|
}
|
|
220
209
|
};
|
|
@@ -236,8 +225,8 @@ var z = class e {
|
|
|
236
225
|
schedule: e.schedule,
|
|
237
226
|
sequence: e.sequence,
|
|
238
227
|
template: {
|
|
239
|
-
body:
|
|
240
|
-
subject:
|
|
228
|
+
body: F(e.template, "body"),
|
|
229
|
+
subject: F(e.template, "subject")
|
|
241
230
|
}
|
|
242
231
|
}));
|
|
243
232
|
}
|
|
@@ -255,75 +244,73 @@ var z = class e {
|
|
|
255
244
|
};
|
|
256
245
|
//#endregion
|
|
257
246
|
//#region src/modules/dunning-case/api/services/dunningCase.service.ts
|
|
258
|
-
function
|
|
247
|
+
function L(e) {
|
|
259
248
|
return {
|
|
260
249
|
customerUuid: e.customerUuid,
|
|
261
250
|
isOpen: e.isOpen,
|
|
262
251
|
dunningCaseUuids: e.dunningCaseUuids === void 0 ? void 0 : {
|
|
263
|
-
scope:
|
|
252
|
+
scope: c.INCLUDE,
|
|
264
253
|
values: e.dunningCaseUuids
|
|
265
254
|
},
|
|
266
255
|
level: e.level
|
|
267
256
|
};
|
|
268
257
|
}
|
|
269
|
-
var
|
|
258
|
+
var R = class {
|
|
270
259
|
static async getAll(e) {
|
|
271
|
-
return (await
|
|
272
|
-
filter:
|
|
260
|
+
return (await o.fromPromise(i({ query: {
|
|
261
|
+
filter: L(e),
|
|
273
262
|
pagination: e.pagination
|
|
274
263
|
} }))).map((e) => ({
|
|
275
|
-
data: e.data.items.map(
|
|
264
|
+
data: e.data.items.map(I.fromIndexDto),
|
|
276
265
|
meta: e.data.meta
|
|
277
266
|
}));
|
|
278
267
|
}
|
|
279
|
-
static async getByUuid(
|
|
280
|
-
return (await
|
|
268
|
+
static async getByUuid(t) {
|
|
269
|
+
return (await o.fromPromise(e({ path: { uuid: t } }))).map((e) => I.fromDetailDto(e.data));
|
|
281
270
|
}
|
|
282
271
|
static async getReminderConfigs() {
|
|
283
|
-
return (await
|
|
272
|
+
return (await o.fromPromise(n())).map((e) => e.data.items.map(I.fromReminderConfigDto));
|
|
284
273
|
}
|
|
285
274
|
static async previewBulk(e) {
|
|
286
|
-
return (await
|
|
275
|
+
return (await o.fromPromise(s({ query: { filter: L(e) } }))).map((e) => e.data);
|
|
287
276
|
}
|
|
288
277
|
static async send(e) {
|
|
289
|
-
let
|
|
290
|
-
return
|
|
278
|
+
let n = await o.fromPromise(t({ path: { uuid: e } }));
|
|
279
|
+
return o.void(n);
|
|
291
280
|
}
|
|
292
281
|
static async sendBulk(e) {
|
|
293
|
-
return (await
|
|
282
|
+
return (await o.fromPromise(a({ query: { filter: L(e) } }))).map((e) => e.data);
|
|
294
283
|
}
|
|
295
284
|
static async updateReminderConfigs(e) {
|
|
296
|
-
let t = await
|
|
297
|
-
return
|
|
285
|
+
let t = await o.fromPromise(r({ body: { reminders: I.reminderConfigsToDto(e) } }));
|
|
286
|
+
return o.void(t);
|
|
298
287
|
}
|
|
299
|
-
},
|
|
288
|
+
}, z = {
|
|
300
289
|
class: "flex shrink-0 gap-xxs",
|
|
301
290
|
"aria-hidden": "true"
|
|
302
|
-
},
|
|
291
|
+
}, B = /* @__PURE__ */ h({
|
|
303
292
|
__name: "DunningCaseReminderLevelIndicator",
|
|
304
293
|
props: {
|
|
305
294
|
level: {},
|
|
306
295
|
size: { default: "md" }
|
|
307
296
|
},
|
|
308
297
|
setup(e) {
|
|
309
|
-
let t = e, n =
|
|
310
|
-
return (e, t) => (
|
|
298
|
+
let t = e, n = f(() => Math.min(3, Math.max(0, t.level ?? 0))), r = f(() => t.level === 3 ? "error" : t.level === 2 ? "warning" : "brand"), i = f(() => t.size === "sm" ? "h-(--spacing-sm) w-(--spacing-md)" : "h-(--spacing-sm) w-(--spacing-lg)");
|
|
299
|
+
return (e, t) => (_(), p("span", z, [(_(), p(d, null, v(3, (e) => m("span", {
|
|
311
300
|
key: e,
|
|
312
|
-
class:
|
|
301
|
+
class: g([[i.value, e <= n.value ? {
|
|
313
302
|
"border-brand-500 bg-brand-500": r.value === "brand",
|
|
314
303
|
"border-warning-500 bg-warning-solid": r.value === "warning",
|
|
315
304
|
"border-error bg-error-solid": r.value === "error"
|
|
316
305
|
} : "border-secondary bg-primary"], "rounded-full border"])
|
|
317
306
|
}, null, 2)), 64))]));
|
|
318
307
|
}
|
|
319
|
-
}),
|
|
320
|
-
function
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
isEnabled: m(() => e.has(u.REMINDER_CONFIG_READ)),
|
|
325
|
-
queryFn: () => V.getReminderConfigs()
|
|
308
|
+
}), V = 3e5;
|
|
309
|
+
function H() {
|
|
310
|
+
return y("reminderConfig", {
|
|
311
|
+
staleTime: V,
|
|
312
|
+
queryFn: () => R.getReminderConfigs()
|
|
326
313
|
});
|
|
327
314
|
}
|
|
328
315
|
//#endregion
|
|
329
|
-
export {
|
|
316
|
+
export { I as i, B as n, R as r, H as t };
|
package/package.json
CHANGED