@wisemen/wise-invoicing-web 0.3.1 → 0.4.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/{ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js → ApprovalReminderSettingsViewDataProvider-IuReavOR.js} +3 -3
- package/dist/{BillingDocumentDetailViewDataProvider-Dub07ybW.js → BillingDocumentDetailViewDataProvider-B3I6UIKY.js} +2201 -1728
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-DgtUB45R.js → BillingDocumentPdf-rFqmLUPy.js} +226 -219
- package/dist/{CreditNoteDetailViewDataProvider-BxNfC6yO.js → CreditNoteDetailViewDataProvider-CQRnG2Fz.js} +41 -41
- package/dist/{CreditNotePdfViewDataProvider-D0j8qqK-.js → CreditNotePdfViewDataProvider-RytwPWH5.js} +2 -2
- package/dist/{CustomFieldValueText-Cuhs9sRn.js → CustomFieldValueText-DA0aPKwC.js} +1 -1
- package/dist/{DunningCaseDetailViewDataProvider-ou1FfNWQ.js → DunningCaseDetailViewDataProvider-BRYbYgTw.js} +64 -64
- package/dist/{DunningCaseOverviewView--zaPD0-c.js → DunningCaseOverviewView-D0vScVF1.js} +125 -125
- package/dist/{DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js → DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js} +1 -1
- package/dist/{DunningCaseSendDialog-Co4oLFtZ.js → DunningCaseSendDialog-CV66_tMv.js} +8 -8
- package/dist/{InvoiceApprovalOutOfSyncIndicator-H6H7kjAE.js → InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-Bw-6rkon.js → InvoiceApprovalOverviewView-CcMqr2jH.js} +213 -213
- package/dist/{InvoiceApprovalStatusBadge-IyzJ--TJ.js → InvoiceApprovalStatusBadge-BJ3Q18bf.js} +3 -3
- package/dist/{InvoiceApproveDialogDataProvider-8G-11W1e.js → InvoiceApproveDialogDataProvider-DaCEHgs0.js} +7 -7
- package/dist/{InvoiceDetailViewDataProvider-B9gul2ei.js → InvoiceDetailViewDataProvider-B5uZY8Qy.js} +46 -46
- package/dist/{InvoiceOverviewViewDataProvider-5KgIdhfL.js → InvoiceOverviewViewDataProvider-BrgmweRE.js} +57 -57
- package/dist/{InvoicePdfView-5sJ-u_gT.js → InvoicePdfView-CPEX7E9W.js} +1 -1
- package/dist/{InvoicePdfViewDataProvider-BLVXDPv6.js → InvoicePdfViewDataProvider-T4-8A2OD.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-CnhYazmB.js → InvoicePublicPdfViewDataProvider-BkHZoPSZ.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-CcvGISK6.js → InvoicePublicProFormaPdfViewDataProvider-CfkArXbC.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-Kcq7kSSt.js → InvoicingFileUploadProvider-BLBjPKqx.js} +1 -1
- package/dist/{IssuerSettingsViewDataProvider-BuSIVnIl.js → IssuerSettingsViewDataProvider-BStn0jFI.js} +2 -2
- package/dist/{ReminderSettingsViewDataProvider-CH7gSXnj.js → ReminderSettingsViewDataProvider-CjX7afDs.js} +3 -3
- package/dist/{api.util-CkIRZS3h.js → api.util-D6m6OY3_.js} +15 -6
- package/dist/{billingDocumentDetail.transformer-Bfd8geNo.js → billingDocumentDetail.transformer-Da-Nt4bI.js} +37 -29
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.gen.d.ts +16 -2
- package/dist/client/zod.gen.d.ts +28 -0
- package/dist/{creditNoteDetail.query-tLnfqsEB.js → creditNoteDetail.query-Yb8TdZNm.js} +22 -18
- package/dist/{dist-CGZBUnWK.js → dist-BpDuRYDT.js} +130 -130
- package/dist/{dist-BQbaoN5W.js → dist-DCbLgB6Y.js} +181 -101
- package/dist/{i18n.lib--mzprLMR.js → i18n.lib-CKs3ExEl.js} +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +32 -31
- package/dist/{invoice.service-B1w16_Md.js → invoice.service-DWDl9XRh.js} +214 -209
- package/dist/{invoiceApproval.service-BHAJmFkU.js → invoiceApproval.service-Fwlxgd9o.js} +2 -2
- package/dist/{invoiceApprovalStatus.util-DohOKR4q.js → invoiceApprovalStatus.util-q-zHLdFV.js} +1 -1
- package/dist/{invoiceCustomer.service-DpVfpQUD.js → invoiceCustomer.service-DOexR54S.js} +2 -2
- package/dist/{invoiceDetail.query-CfyNSXLS.js → invoiceDetail.query-B5w0Vlsy.js} +1 -1
- package/dist/{invoiceIndexCache.util-BDLs7W9m.js → invoiceIndexCache.util-CUlp4R7R.js} +2 -2
- package/dist/{invoicingConfig.composable-COn1rKRf.js → invoicingConfig.composable-DjFexycc.js} +2 -2
- package/dist/{issuerSettings.query-CDFk2GiP.js → issuerSettings.query-BHuLjV9P.js} +1 -1
- package/dist/libs/i18n.lib.d.ts +28 -0
- package/dist/locales/en-US.json.d.ts +14 -0
- package/dist/locales/nl-BE.json.d.ts +14 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentLineGroup.util.d.ts +15 -0
- package/dist/models/billing-document/billingDocumentLineGroup.util.spec.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +4 -1
- package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +5 -0
- package/dist/{reminderConfig.query-DSO0ekC_.js → reminderConfig.query-C4J6m4ER.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/apiError.type.d.ts +2 -2
- package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +1 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +3 -0
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +5 -2
- package/dist/ui/billing-document/table/BillingDocumentLineItemsTreeIndent.vue.d.ts +17 -0
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +78 -18
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +14 -4
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +6 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +8 -4
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +16 -3
- package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +163 -26
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib
|
|
2
|
-
import "./api.util-
|
|
1
|
+
import { t as e } from "./i18n.lib-CKs3ExEl.js";
|
|
2
|
+
import "./api.util-D6m6OY3_.js";
|
|
3
3
|
import { b as t, r as n } from "./documentTitle.composable-CRJjS6p-.js";
|
|
4
4
|
import { n as r } from "./address.transformer-jGddczLV.js";
|
|
5
5
|
import { t as i } from "./download.util-B5Q7KUC9.js";
|
|
6
|
-
import {
|
|
6
|
+
import { B as a, I as o, P as s, Y as c, _ as l, gt as u, i as d, j as f, l as p, nt as m, q as h, x as g } from "./dist-DCbLgB6Y.js";
|
|
7
7
|
import { n as _, t as v } from "./dist-Cdbpkd3Y.js";
|
|
8
8
|
import { t as y } from "./formango.util-D5c2ql--.js";
|
|
9
|
-
import { i as b, n as ee } from "./CustomFieldValueText-
|
|
10
|
-
import { n as x, r as S, t as C } from "./creditNoteDetail.query-
|
|
11
|
-
import { C as w, S as T, _ as E, a as D, b as te, c as O, d as k, f as A, g as ne, h as re, i as ie, m as ae, n as oe, o as se, p as ce, r as le, s as ue, t as de, u as fe, v as pe, x as me, y as he } from "./BillingDocumentDetailViewDataProvider-
|
|
12
|
-
import { r as ge } from "./InvoicingFileUploadProvider-
|
|
9
|
+
import { i as b, n as ee } from "./CustomFieldValueText-DA0aPKwC.js";
|
|
10
|
+
import { n as x, r as S, t as C } from "./creditNoteDetail.query-Yb8TdZNm.js";
|
|
11
|
+
import { C as w, S as T, _ as E, a as D, b as te, c as O, d as k, f as A, g as ne, h as re, i as ie, m as ae, n as oe, o as se, p as ce, r as le, s as ue, t as de, u as fe, v as pe, x as me, y as he } from "./BillingDocumentDetailViewDataProvider-B3I6UIKY.js";
|
|
12
|
+
import { r as ge } from "./InvoicingFileUploadProvider-BLBjPKqx.js";
|
|
13
13
|
import _e, { z as j } from "zod";
|
|
14
14
|
import { useI18n as M } from "vue-i18n";
|
|
15
15
|
import { Fragment as ve, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as ye, createElementVNode as be, createVNode as I, defineComponent as L, mergeProps as R, normalizeClass as z, openBlock as B, ref as V, renderSlot as xe, resolveDynamicComponent as Se, unref as H, withCtx as U } from "vue";
|
|
@@ -133,7 +133,7 @@ var We = /* @__PURE__ */ L({
|
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.ts
|
|
135
135
|
function Ge(e) {
|
|
136
|
-
let n = M(), r = Y(), a = Ie(),
|
|
136
|
+
let n = M(), r = Y(), a = Ie(), c = a.create(We), l = a.create(te), p = ze(), m = Be(), h = Ve(), _ = He(), { shouldSkipConfirmation: v } = me(), y = N(() => e.value.originalInvoice?.uuid ?? e.value.uuid), b = N(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
|
|
137
137
|
async function S() {
|
|
138
138
|
let t = await h.execute({ params: {
|
|
139
139
|
creditNoteUuid: e.value.uuid,
|
|
@@ -146,7 +146,7 @@ function Ge(e) {
|
|
|
146
146
|
r.show({ message: n.t("wise_invoicing.credit_note.mark_as_ready.success") });
|
|
147
147
|
}
|
|
148
148
|
async function C() {
|
|
149
|
-
let t = await
|
|
149
|
+
let t = await p.execute({ params: {
|
|
150
150
|
creditNoteUuid: e.value.uuid,
|
|
151
151
|
invoiceUuid: y.value
|
|
152
152
|
} });
|
|
@@ -157,13 +157,13 @@ function Ge(e) {
|
|
|
157
157
|
await C();
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
|
-
await
|
|
160
|
+
await l.open({
|
|
161
161
|
billingDocumentType: "credit_note",
|
|
162
162
|
onConfirm: C
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
async function T() {
|
|
166
|
-
let t = await
|
|
166
|
+
let t = await m.execute({ params: {
|
|
167
167
|
creditNoteUuid: e.value.uuid,
|
|
168
168
|
invoiceUuid: y.value
|
|
169
169
|
} });
|
|
@@ -182,7 +182,7 @@ function Ge(e) {
|
|
|
182
182
|
r.show({ message: n.t("wise_invoicing.credit_note.send.success") });
|
|
183
183
|
}
|
|
184
184
|
async function D() {
|
|
185
|
-
await
|
|
185
|
+
await c.open({ creditNote: e.value });
|
|
186
186
|
}
|
|
187
187
|
async function O() {
|
|
188
188
|
let t = await x.getByUuid(e.value.uuid);
|
|
@@ -201,7 +201,7 @@ function Ge(e) {
|
|
|
201
201
|
let k = N(() => [
|
|
202
202
|
{
|
|
203
203
|
isLoading: _.isLoading.value,
|
|
204
|
-
iconLeft:
|
|
204
|
+
iconLeft: u,
|
|
205
205
|
key: "send",
|
|
206
206
|
label: n.t("wise_invoicing.invoice.detail.actions.send"),
|
|
207
207
|
variant: "primary",
|
|
@@ -210,15 +210,15 @@ function Ge(e) {
|
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
isLoading: h.isLoading.value,
|
|
213
|
-
iconRight:
|
|
213
|
+
iconRight: d,
|
|
214
214
|
key: "markAsReady",
|
|
215
215
|
label: n.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
|
|
216
216
|
visible: e.value.status === t.DRAFT,
|
|
217
217
|
onClick: S
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
|
-
isLoading:
|
|
221
|
-
iconRight:
|
|
220
|
+
isLoading: p.isLoading.value,
|
|
221
|
+
iconRight: f,
|
|
222
222
|
key: "finalize",
|
|
223
223
|
label: n.t("wise_invoicing.invoice.detail.actions.finalize"),
|
|
224
224
|
visible: e.value.status === t.READY,
|
|
@@ -232,13 +232,13 @@ function Ge(e) {
|
|
|
232
232
|
visible: b.value,
|
|
233
233
|
onSelect: O
|
|
234
234
|
}, {
|
|
235
|
-
icon:
|
|
235
|
+
icon: o,
|
|
236
236
|
key: "backToDraft",
|
|
237
237
|
label: n.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
|
|
238
238
|
visible: e.value.status === t.READY,
|
|
239
239
|
onSelect: T
|
|
240
240
|
}], i = [{
|
|
241
|
-
icon:
|
|
241
|
+
icon: s,
|
|
242
242
|
key: "delete",
|
|
243
243
|
label: n.t("wise_invoicing.credit_note.detail.actions.delete"),
|
|
244
244
|
visible: ee.isEditable(e.value.status),
|
|
@@ -268,18 +268,18 @@ var Ke = /* @__PURE__ */ L({
|
|
|
268
268
|
},
|
|
269
269
|
emits: ["togglePdfView"],
|
|
270
270
|
setup(e, { emit: n }) {
|
|
271
|
-
let r = e, i = n,
|
|
271
|
+
let r = e, i = n, a = M(), o = Y(), s = Z(), { menuGroups: c, primaryButtons: l } = Ge(N(() => r.creditNote)), u = N(() => new T(r.creditNote.status)), d = N(() => u.value.color), f = N(() => a.t(u.value.translationKey)), p = N(() => r.creditNote.status !== t.DRAFT && r.creditNote.status !== t.READY), h = X({
|
|
272
272
|
initialState: { subject: r.creditNote.subject },
|
|
273
273
|
schema: Re,
|
|
274
274
|
onSubmit: async (e) => {
|
|
275
|
-
let t = await
|
|
275
|
+
let t = await s.execute({
|
|
276
276
|
body: {
|
|
277
277
|
...S.toForm(r.creditNote),
|
|
278
278
|
subject: e.subject
|
|
279
279
|
},
|
|
280
280
|
params: { creditNoteUuid: r.creditNote.uuid }
|
|
281
281
|
});
|
|
282
|
-
t.isErr() &&
|
|
282
|
+
t.isErr() && o.apiError(t.error);
|
|
283
283
|
}
|
|
284
284
|
}), g = h.register("subject");
|
|
285
285
|
return w({ form: h }), (e, t) => (B(), P(H(K), {
|
|
@@ -287,19 +287,19 @@ var Ke = /* @__PURE__ */ L({
|
|
|
287
287
|
"prompt-on-unsaved-changes": !1
|
|
288
288
|
}, {
|
|
289
289
|
default: U(() => [I(pe, {
|
|
290
|
-
"fallback-title": H(
|
|
291
|
-
"is-disabled":
|
|
290
|
+
"fallback-title": H(a).t("wise_invoicing.credit_note.detail.fallback_title"),
|
|
291
|
+
"is-disabled": p.value,
|
|
292
292
|
sequence: r.creditNote.sequence,
|
|
293
|
-
"status-color":
|
|
294
|
-
"status-label":
|
|
295
|
-
icon: H(
|
|
293
|
+
"status-color": d.value,
|
|
294
|
+
"status-label": f.value,
|
|
295
|
+
icon: H(m),
|
|
296
296
|
"subject-field": H(g),
|
|
297
|
-
"subject-placeholder": H(
|
|
297
|
+
"subject-placeholder": H(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
|
|
298
298
|
}, {
|
|
299
299
|
actions: U(() => [I(E, {
|
|
300
300
|
"is-pdf-view-active": r.isPdfViewActive,
|
|
301
|
-
"menu-groups": H(
|
|
302
|
-
"primary-buttons": H(
|
|
301
|
+
"menu-groups": H(c),
|
|
302
|
+
"primary-buttons": H(l),
|
|
303
303
|
onTogglePdfView: t[0] ||= (e) => i("togglePdfView")
|
|
304
304
|
}, null, 8, [
|
|
305
305
|
"is-pdf-view-active",
|
|
@@ -463,7 +463,7 @@ var Ye = /* @__PURE__ */ L({
|
|
|
463
463
|
color: "gray",
|
|
464
464
|
variant: "outline"
|
|
465
465
|
}, null, 8, ["label"]),
|
|
466
|
-
I(H(
|
|
466
|
+
I(H(c), { class: z([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
|
|
467
467
|
])]),
|
|
468
468
|
_: 1
|
|
469
469
|
})]),
|
|
@@ -496,19 +496,19 @@ var Ye = /* @__PURE__ */ L({
|
|
|
496
496
|
customFieldDefinitions: {}
|
|
497
497
|
},
|
|
498
498
|
setup(e) {
|
|
499
|
-
let n = e, r = M(), i = Y(),
|
|
499
|
+
let n = e, r = M(), i = Y(), o = Z(), s = X({
|
|
500
500
|
initialState: N(() => S.toForm(n.creditNote)),
|
|
501
501
|
schema: Le,
|
|
502
502
|
onSubmit: async (e) => {
|
|
503
|
-
let t = await
|
|
503
|
+
let t = await o.execute({
|
|
504
504
|
body: e,
|
|
505
505
|
params: { creditNoteUuid: n.creditNote.uuid }
|
|
506
506
|
});
|
|
507
507
|
t.isErr() && i.apiError(t.error);
|
|
508
508
|
}
|
|
509
|
-
}), c =
|
|
510
|
-
return w({ form:
|
|
511
|
-
form: H(
|
|
509
|
+
}), c = s.register("issuedOn"), u = s.register("poNumber"), d = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
|
|
510
|
+
return w({ form: s }), (e, t) => (B(), P(H(K), {
|
|
511
|
+
form: H(s),
|
|
512
512
|
"prompt-on-unsaved-changes": !1
|
|
513
513
|
}, {
|
|
514
514
|
default: U(() => [I(H(G), {
|
|
@@ -523,7 +523,7 @@ var Ye = /* @__PURE__ */ L({
|
|
|
523
523
|
}, null, 8, ["text"]), I(H(G), { gap: "lg" }, {
|
|
524
524
|
default: U(() => [
|
|
525
525
|
I(Q, {
|
|
526
|
-
icon: H(
|
|
526
|
+
icon: H(l),
|
|
527
527
|
label: H(r).t("wise_invoicing.invoice.detail.header.invoice_id")
|
|
528
528
|
}, {
|
|
529
529
|
default: U(() => [I(H(J), {
|
|
@@ -533,11 +533,11 @@ var Ye = /* @__PURE__ */ L({
|
|
|
533
533
|
_: 1
|
|
534
534
|
}, 8, ["icon", "label"]),
|
|
535
535
|
I(Q, {
|
|
536
|
-
icon: H(
|
|
537
|
-
"has-error": H(
|
|
536
|
+
icon: H(a),
|
|
537
|
+
"has-error": H(u).errors.value.length > 0,
|
|
538
538
|
label: H(r).t("wise_invoicing.invoice.detail.header.po_number")
|
|
539
539
|
}, {
|
|
540
|
-
default: U(() => [I(H(Fe), R(H(y)(H(
|
|
540
|
+
default: U(() => [I(H(Fe), R(H(y)(H(u)), {
|
|
541
541
|
"is-disabled": d.value,
|
|
542
542
|
label: null,
|
|
543
543
|
class: "w-full"
|
|
@@ -549,7 +549,7 @@ var Ye = /* @__PURE__ */ L({
|
|
|
549
549
|
"label"
|
|
550
550
|
]),
|
|
551
551
|
I(Q, {
|
|
552
|
-
icon: H(
|
|
552
|
+
icon: H(p),
|
|
553
553
|
label: H(r).t("wise_invoicing.invoice.detail.header.issuer")
|
|
554
554
|
}, {
|
|
555
555
|
default: U(() => [I(H(J), {
|
|
@@ -559,7 +559,7 @@ var Ye = /* @__PURE__ */ L({
|
|
|
559
559
|
_: 1
|
|
560
560
|
}, 8, ["icon", "label"]),
|
|
561
561
|
I(Q, {
|
|
562
|
-
icon: H(
|
|
562
|
+
icon: H(h),
|
|
563
563
|
"has-error": H(c).errors.value.length > 0,
|
|
564
564
|
label: H(r).t("wise_invoicing.invoice.detail.header.invoice_date")
|
|
565
565
|
}, {
|
package/dist/{CreditNotePdfViewDataProvider-D0j8qqK-.js → CreditNotePdfViewDataProvider-RytwPWH5.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./DataProvider-C3uEds9v.js";
|
|
2
|
-
import { t } from "./InvoicePdfView-
|
|
3
|
-
import { t as n } from "./creditNoteDetail.query-
|
|
2
|
+
import { t } from "./InvoicePdfView-CPEX7E9W.js";
|
|
3
|
+
import { t as n } from "./creditNoteDetail.query-Yb8TdZNm.js";
|
|
4
4
|
import { useI18n as r } from "vue-i18n";
|
|
5
5
|
import { computed as i, createBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, openBlock as l, unref as u, withCtx as d } from "vue";
|
|
6
6
|
import { UIText as f } from "@wisemen/vue-core-design-system";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as e, t } from "./api.util-
|
|
1
|
+
import { Y as e, t } from "./api.util-D6m6OY3_.js";
|
|
2
2
|
import { b as n, u as r, y as i } from "./documentTitle.composable-CRJjS6p-.js";
|
|
3
3
|
import { r as a } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
4
|
import { n as o } from "./dist-Cdbpkd3Y.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import "./api.util-
|
|
2
|
+
import "./api.util-D6m6OY3_.js";
|
|
3
3
|
import { T as t, t as n } from "./documentTitle.composable-CRJjS6p-.js";
|
|
4
4
|
import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
5
|
-
import { n as i } from "./invoicingConfig.composable-
|
|
6
|
-
import { n as a } from "./reminderConfig.query-
|
|
7
|
-
import {
|
|
8
|
-
import { a as u, i as ne, n as re, o as d, r as ie, t as ae } from "./DunningCaseSendDialog-
|
|
5
|
+
import { n as i } from "./invoicingConfig.composable-DjFexycc.js";
|
|
6
|
+
import { n as a } from "./reminderConfig.query-C4J6m4ER.js";
|
|
7
|
+
import { D as o, Y as ee, at as te, et as s, ft as c, gt as l } from "./dist-DCbLgB6Y.js";
|
|
8
|
+
import { a as u, i as ne, n as re, o as d, r as ie, t as ae } from "./DunningCaseSendDialog-CV66_tMv.js";
|
|
9
9
|
import { n as f } from "./customerUuid.model-ClN4Vi9n.js";
|
|
10
10
|
import { n as oe } from "./dist-Cdbpkd3Y.js";
|
|
11
11
|
import { t as p } from "./DataProvider-C3uEds9v.js";
|
|
@@ -63,17 +63,17 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
63
63
|
__name: "DunningCaseDetailView",
|
|
64
64
|
props: { dunningCase: {} },
|
|
65
65
|
setup(e) {
|
|
66
|
-
let d = e, f = m(), p = ge(), C = _e(), P = r(), I = oe(),
|
|
67
|
-
function
|
|
66
|
+
let d = e, f = m(), p = ge(), C = _e(), P = r(), I = oe(), L = n(), R = i(), z = le(), B = ie(), V = E("overdue");
|
|
67
|
+
function H(e) {
|
|
68
68
|
return e.payments.length > 0 || e.creditNotes.length > 0;
|
|
69
69
|
}
|
|
70
|
-
let
|
|
71
|
-
|
|
70
|
+
let U = E(d.dunningCase.invoices.find(H)?.uuid ?? null);
|
|
71
|
+
L.set(() => d.dunningCase.customer.name), ve(g(() => [{
|
|
72
72
|
key: d.dunningCase.uuid,
|
|
73
73
|
modelName: "DunningCase",
|
|
74
74
|
...d.dunningCase
|
|
75
75
|
}]));
|
|
76
|
-
let
|
|
76
|
+
let W = g(() => {
|
|
77
77
|
let e = d.dunningCase.invoices.flatMap((e) => [...e.payments.map((t) => ({
|
|
78
78
|
sortDate: t.date.toString(),
|
|
79
79
|
amount: t.amount,
|
|
@@ -106,33 +106,33 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
106
106
|
key: `closed-${d.dunningCase.closedAt.toString()}`,
|
|
107
107
|
type: "case-closed"
|
|
108
108
|
}), e.toSorted((e, t) => t.sortDate.localeCompare(e.sortDate));
|
|
109
|
-
}),
|
|
109
|
+
}), G = g(() => d.dunningCase.invoices.filter((e) => j.PlainDate.compare(e.dueOn, j.Now.plainDateISO()) < 0).toSorted((e, t) => j.PlainDate.compare(e.dueOn, t.dueOn))), Bt = g(() => d.dunningCase.invoices.filter((e) => j.PlainDate.compare(e.dueOn, j.Now.plainDateISO()) >= 0).toSorted((e, t) => j.PlainDate.compare(e.dueOn, t.dueOn))), K = g(() => V.value === "overdue" ? G.value : Bt.value), q = g(() => d.dunningCase.invoices.filter((e) => e.isDisputed).length), J = g(() => u(d.dunningCase.latestCreatedReminder)), Y = g(() => G.value.filter((e) => !e.isDisputed)), X = g(() => Y.value.reduce((e, t) => ({
|
|
110
110
|
...e,
|
|
111
111
|
amount: e.amount + t.balanceDueAmount.amount
|
|
112
112
|
}), {
|
|
113
113
|
...d.dunningCase.outstandingBalance,
|
|
114
114
|
amount: 0
|
|
115
|
-
})),
|
|
115
|
+
})), Z = g(() => ne(Y.value, d.dunningCase.outstandingBalance)), Vt = g(() => Z.value.map((e, t) => ({
|
|
116
116
|
amount: e,
|
|
117
117
|
level: t
|
|
118
118
|
})));
|
|
119
|
-
function
|
|
120
|
-
return
|
|
119
|
+
function Ht(e) {
|
|
120
|
+
return X.value.amount === 0 ? 0 : e / X.value.amount * 100;
|
|
121
121
|
}
|
|
122
|
-
let
|
|
122
|
+
let Q = g(() => R.getCustomerDetailRoute(d.dunningCase.customer.uuid)), Ut = g(() => [{
|
|
123
123
|
label: f.t("module.dunning_case.title"),
|
|
124
124
|
to: { name: "dunning-case-overview" }
|
|
125
125
|
}, { label: d.dunningCase.customer.name }]);
|
|
126
|
-
function
|
|
127
|
-
|
|
126
|
+
function Wt() {
|
|
127
|
+
Q.value !== null && z.push(Q.value);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Gt(e) {
|
|
130
130
|
return e === 0 ? f.t("module.dunning_case.detail.overdue") : Zt(e);
|
|
131
131
|
}
|
|
132
132
|
function Kt(e, t) {
|
|
133
133
|
return f.t("module.dunning_case.detail.outstanding_split_tooltip", {
|
|
134
134
|
amount: P.formatMonetary(t),
|
|
135
|
-
label:
|
|
135
|
+
label: Gt(e)
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
function qt(e) {
|
|
@@ -183,7 +183,7 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
183
183
|
}
|
|
184
184
|
async function en() {
|
|
185
185
|
if (d.dunningCase.latestCreatedReminder === null) return;
|
|
186
|
-
let e = await
|
|
186
|
+
let e = await B.execute({ params: { dunningCaseReminderUuid: d.dunningCase.latestCreatedReminder.uuid } });
|
|
187
187
|
if (e.isErr()) {
|
|
188
188
|
C.apiError(e.error);
|
|
189
189
|
return;
|
|
@@ -194,34 +194,34 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
function tn(e) {
|
|
197
|
-
|
|
197
|
+
U.value = U.value === e ? null : e;
|
|
198
198
|
}
|
|
199
199
|
return (e, t) => (T(), _(k(ue), {
|
|
200
|
-
breadcrumbs:
|
|
200
|
+
breadcrumbs: Ut.value,
|
|
201
201
|
title: d.dunningCase.customer.name
|
|
202
202
|
}, {
|
|
203
203
|
default: A(() => [S(k(de), null, {
|
|
204
204
|
default: A(() => [b("div", ye, [
|
|
205
205
|
b("div", be, [b("div", null, [
|
|
206
206
|
b("div", xe, [
|
|
207
|
-
b("h2", Se, [
|
|
207
|
+
b("h2", Se, [Q.value === null ? (T(), y("span", Ce, O(d.dunningCase.customer.name), 1)) : (T(), y("button", {
|
|
208
208
|
key: 0,
|
|
209
209
|
class: "hover:underline",
|
|
210
210
|
type: "button",
|
|
211
|
-
onClick:
|
|
211
|
+
onClick: Wt
|
|
212
212
|
}, O(d.dunningCase.customer.name), 1))]),
|
|
213
213
|
b("span", we, [S(a, { level: d.dunningCase.level }, null, 8, ["level"]), x(" " + O(Zt(d.dunningCase.level)), 1)]),
|
|
214
214
|
S(re, {
|
|
215
215
|
"blocked-reason": null,
|
|
216
|
-
status:
|
|
216
|
+
status: J.value
|
|
217
217
|
}, null, 8, ["status"])
|
|
218
218
|
]),
|
|
219
219
|
d.dunningCase.customer.vatNumber || d.dunningCase.customer.email ? (T(), y("p", Te, O([d.dunningCase.customer.vatNumber, d.dunningCase.customer.email].filter(Boolean).join(" · ")), 1)) : v("", !0),
|
|
220
220
|
b("p", Ee, O(k(f).t("module.dunning_case.detail.last_synced", { date: k(I).toDateTime(d.dunningCase.updatedAt) })), 1)
|
|
221
|
-
]), d.dunningCase.canSendReminder ||
|
|
221
|
+
]), d.dunningCase.canSendReminder || J.value === "sending" ? (T(), _(k(N), {
|
|
222
222
|
key: 0,
|
|
223
|
-
"icon-right": k(
|
|
224
|
-
"is-loading":
|
|
223
|
+
"icon-right": k(l),
|
|
224
|
+
"is-loading": J.value === "sending",
|
|
225
225
|
label: k(f).t("module.dunning_case.detail.send"),
|
|
226
226
|
class: "w-fit self-start lg:ml-auto",
|
|
227
227
|
size: "sm",
|
|
@@ -232,8 +232,8 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
232
232
|
"label"
|
|
233
233
|
])) : d.dunningCase.canRetryReminder ? (T(), _(k(N), {
|
|
234
234
|
key: 1,
|
|
235
|
-
"icon-right": k(
|
|
236
|
-
"is-loading": k(
|
|
235
|
+
"icon-right": k(l),
|
|
236
|
+
"is-loading": k(B).result.value.isLoading(),
|
|
237
237
|
label: k(f).t("module.dunning_case.detail.retry"),
|
|
238
238
|
class: "w-fit self-start lg:ml-auto",
|
|
239
239
|
size: "sm",
|
|
@@ -252,7 +252,7 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
252
252
|
collected: k(P).formatMonetary(d.dunningCase.totalPaid)
|
|
253
253
|
})), 1),
|
|
254
254
|
d.dunningCase.totalCredited.amount > 0 ? (T(), y("p", Me, O(k(f).t("module.dunning_case.detail.credited_summary", { credited: k(P).formatMonetary(d.dunningCase.totalCredited) })), 1)) : v("", !0),
|
|
255
|
-
b("div", Ne, [(T(!0), y(h, null, D(
|
|
255
|
+
b("div", Ne, [(T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("span", {
|
|
256
256
|
key: t,
|
|
257
257
|
class: w([{
|
|
258
258
|
"bg-quaternary": t === 0,
|
|
@@ -260,10 +260,10 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
260
260
|
"bg-error-solid": t === 3,
|
|
261
261
|
"bg-warning-solid": t === 2
|
|
262
262
|
}, "h-full"]),
|
|
263
|
-
style: se({ width: `${
|
|
263
|
+
style: se({ width: `${Ht(e.amount)}%` })
|
|
264
264
|
}, null, 6))), 128))])
|
|
265
265
|
]),
|
|
266
|
-
b("div", Pe, [(T(!0), y(h, null, D(
|
|
266
|
+
b("div", Pe, [(T(!0), y(h, null, D(Vt.value, (e) => (T(), _(k(me), {
|
|
267
267
|
key: e.level,
|
|
268
268
|
"popover-side-offset": 8,
|
|
269
269
|
"popover-align": "start",
|
|
@@ -278,24 +278,24 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
278
278
|
"bg-brand-500": e.level === 1,
|
|
279
279
|
"bg-error-solid": e.level === 3,
|
|
280
280
|
"bg-warning-solid": e.level === 2
|
|
281
|
-
}, "size-(--spacing-sm) shrink-0 rounded-full"]) }, null, 2), b("span", Le, O(
|
|
281
|
+
}, "size-(--spacing-sm) shrink-0 rounded-full"]) }, null, 2), b("span", Le, O(Gt(e.level)), 1)]), b("span", Re, O(k(P).formatMonetary(e.amount)), 1)], 8, Fe)]),
|
|
282
282
|
content: A(() => [S(k(he), { class: "max-w-80! text-sm!" }, {
|
|
283
283
|
default: A(() => [x(O(Kt(e.level, e.amount)), 1)]),
|
|
284
284
|
_: 2
|
|
285
285
|
}, 1024)]),
|
|
286
286
|
_: 2
|
|
287
287
|
}, 1024))), 128))]),
|
|
288
|
-
b("div", ze, [b("span", Be, [S(k(
|
|
289
|
-
b("div", We, [b("span", Ge, [S(k(
|
|
288
|
+
b("div", ze, [b("span", Be, [S(k(o), { class: "size-(--spacing-xl) text-brand-700" })]), b("div", Ve, [b("p", He, O(k(f).t("module.dunning_case.detail.next_reminder")), 1), b("p", Ue, O(d.dunningCase.nextReminderOn === null ? k(f).t("module.dunning_case.overview.not_scheduled") : k(I).formatPlainDate(d.dunningCase.nextReminderOn)), 1)])]),
|
|
289
|
+
b("div", We, [b("span", Ge, [S(k(s), { class: "size-(--spacing-xl) text-brand-700" })]), b("div", null, [
|
|
290
290
|
b("p", Ke, O(k(f).t("module.dunning_case.detail.invoices")), 1),
|
|
291
291
|
b("p", qe, O(d.dunningCase.invoices.length), 1),
|
|
292
|
-
|
|
292
|
+
q.value > 0 ? (T(), y("p", Je, O(k(f).t("module.dunning_case.detail.protested_count", { count: q.value })), 1)) : v("", !0)
|
|
293
293
|
])])
|
|
294
294
|
]),
|
|
295
295
|
b("div", Ye, [b("main", Xe, [b("div", Ze, [
|
|
296
296
|
b("div", Qe, [S(k(fe), {
|
|
297
|
-
modelValue:
|
|
298
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
297
|
+
modelValue: V.value,
|
|
298
|
+
"onUpdate:modelValue": t[0] ||= (e) => V.value = e,
|
|
299
299
|
"aria-label": k(f).t("module.dunning_case.detail.invoice_tabs"),
|
|
300
300
|
variant: "underline"
|
|
301
301
|
}, {
|
|
@@ -311,24 +311,24 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
311
311
|
})]),
|
|
312
312
|
_: 1
|
|
313
313
|
}, 8, ["modelValue", "aria-label"])]),
|
|
314
|
-
b("div", $e, [
|
|
314
|
+
b("div", $e, [K.value.length > 0 ? (T(), y("table", et, [b("thead", null, [b("tr", tt, [
|
|
315
315
|
b("th", nt, O(k(f).t("module.dunning_case.detail.table.invoice")), 1),
|
|
316
316
|
b("th", rt, O(k(f).t("module.dunning_case.detail.table.due_date")), 1),
|
|
317
317
|
b("th", it, O(k(f).t("module.dunning_case.detail.table.level")), 1),
|
|
318
318
|
b("th", at, O(k(f).t("module.dunning_case.detail.table.status")), 1),
|
|
319
319
|
b("th", ot, O(k(f).t("module.dunning_case.detail.table.remaining")), 1)
|
|
320
|
-
])]), b("tbody", null, [(T(!0), y(h, null, D(
|
|
320
|
+
])]), b("tbody", null, [(T(!0), y(h, null, D(K.value, (e) => (T(), y(h, { key: e.uuid }, [b("tr", { class: w([{ "opacity-60": e.isDisputed }, "border-b border-secondary"]) }, [
|
|
321
321
|
b("td", { class: w([{
|
|
322
|
-
"before:opacity-0":
|
|
323
|
-
"before:opacity-100":
|
|
324
|
-
}, "relative px-xl py-md before:absolute before:inset-y-0 before:left-0 before:w-(--spacing-xxs) before:bg-brand-500"]) }, [b("div", st, [
|
|
322
|
+
"before:opacity-0": U.value !== e.uuid,
|
|
323
|
+
"before:opacity-100": U.value === e.uuid
|
|
324
|
+
}, "relative px-xl py-md before:absolute before:inset-y-0 before:left-0 before:w-(--spacing-xxs) before:bg-brand-500"]) }, [b("div", st, [H(e) ? (T(), y("button", {
|
|
325
325
|
key: 0,
|
|
326
|
-
"aria-expanded":
|
|
327
|
-
"aria-label": k(f).t(
|
|
326
|
+
"aria-expanded": U.value === e.uuid,
|
|
327
|
+
"aria-label": k(f).t(U.value === e.uuid ? "module.dunning_case.detail.collapse_updates" : "module.dunning_case.detail.expand_updates", { invoice: e.sequence }),
|
|
328
328
|
class: "mt-xxs flex size-(--spacing-xl) shrink-0 items-center justify-center text-secondary hover:text-primary",
|
|
329
329
|
type: "button",
|
|
330
330
|
onClick: (t) => tn(e.uuid)
|
|
331
|
-
}, [S(k(ee), { class: w([{ "rotate-180":
|
|
331
|
+
}, [S(k(ee), { class: w([{ "rotate-180": U.value === e.uuid }, "size-(--spacing-xl) transition-transform duration-200 ease-out motion-reduce:transition-none"]) }, null, 8, ["class"])], 8, ct)) : (T(), y("span", lt)), b("div", ut, [S(k(ce), {
|
|
332
332
|
to: {
|
|
333
333
|
name: "invoicing-invoice-detail",
|
|
334
334
|
params: { invoiceUuid: e.uuid }
|
|
@@ -345,11 +345,11 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
345
345
|
color: "error",
|
|
346
346
|
size: "sm",
|
|
347
347
|
variant: "translucent"
|
|
348
|
-
}, null, 8, ["label"])) :
|
|
348
|
+
}, null, 8, ["label"])) : V.value === "overdue" ? (T(), y("span", mt, [S(a, {
|
|
349
349
|
level: e.level,
|
|
350
350
|
size: "sm"
|
|
351
351
|
}, null, 8, ["level"]), x(" " + O(e.level === 0 ? "–" : e.level), 1)])) : v("", !0)]),
|
|
352
|
-
b("td", ht, [b("div", gt, [e.isDisputed ? (T(), y("p", _t, O(k(f).t("module.dunning_case.detail.excluded")), 1)) :
|
|
352
|
+
b("td", ht, [b("div", gt, [e.isDisputed ? (T(), y("p", _t, O(k(f).t("module.dunning_case.detail.excluded")), 1)) : V.value === "outstanding" ? (T(), _(k(M), {
|
|
353
353
|
key: 1,
|
|
354
354
|
label: k(f).t("module.dunning_case.detail.not_yet_due"),
|
|
355
355
|
color: "gray",
|
|
@@ -363,11 +363,11 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
363
363
|
variant: "translucent"
|
|
364
364
|
}, null, 8, ["label", "color"]))])]),
|
|
365
365
|
b("td", vt, [b("p", yt, O(k(P).formatMonetary(e.balanceDueAmount)), 1), e.balanceDueAmount.amount === e.grossAmount.amount ? v("", !0) : (T(), y("p", bt, " /" + O(k(P).formatMonetary(e.grossAmount)), 1))])
|
|
366
|
-
], 2),
|
|
366
|
+
], 2), H(e) ? (T(), y("tr", {
|
|
367
367
|
key: `${e.uuid}-updates`,
|
|
368
|
-
class: w({ "border-b border-secondary":
|
|
369
|
-
"aria-hidden":
|
|
370
|
-
}, [b("td", St, [b("div", { class: w([
|
|
368
|
+
class: w({ "border-b border-secondary": U.value === e.uuid }),
|
|
369
|
+
"aria-hidden": U.value !== e.uuid
|
|
370
|
+
}, [b("td", St, [b("div", { class: w([U.value === e.uuid ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0", "grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none"]) }, [b("div", Ct, [b("div", wt, [(T(!0), y(h, null, D(e.payments, (e) => (T(), y("span", {
|
|
371
371
|
key: e.uuid,
|
|
372
372
|
class: "inline-flex items-center gap-sm rounded-sm bg-success-primary px-md py-sm text-success-primary"
|
|
373
373
|
}, [t[1] ||= b("span", { class: "size-(--spacing-sm) shrink-0 rounded-full bg-success-solid" }, null, -1), x(" " + O(k(f).t("module.dunning_case.detail.payment_line", {
|
|
@@ -380,9 +380,9 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
380
380
|
amount: k(P).formatMonetary(e.grossAmount),
|
|
381
381
|
date: k(I).formatPlainDate(e.finalizedOn),
|
|
382
382
|
sequence: e.sequence
|
|
383
|
-
})), 1)]))), 128))])])], 2)])], 10, xt)) : v("", !0)], 64))), 128))])])) : (T(), y("div", Tt, [b("span", Et, [S(k(
|
|
384
|
-
|
|
385
|
-
])]), b("aside", Nt, [b("h2", Pt, O(k(f).t("module.dunning_case.detail.activity")), 1), b("ol", Ft, [(T(!0), y(h, null, D(
|
|
383
|
+
})), 1)]))), 128))])])], 2)])], 10, xt)) : v("", !0)], 64))), 128))])])) : (T(), y("div", Tt, [b("span", Et, [S(k(c), { class: "size-(--spacing-xl) text-primary" })]), b("p", Dt, O(k(f).t(V.value === "overdue" ? "module.dunning_case.detail.empty_overdue" : "module.dunning_case.detail.empty_outstanding")), 1)]))]),
|
|
384
|
+
V.value === "overdue" ? (T(), y("div", Ot, [b("div", kt, [b("span", null, O(k(f).t("module.dunning_case.detail.total_outstanding")), 1), b("span", At, O(k(P).formatMonetary(X.value)), 1)]), b("div", jt, [b("span", null, O(d.dunningCase.level === 0 ? k(f).t("module.dunning_case.detail.reminder_fee") : k(f).t("module.dunning_case.detail.fee", { level: d.dunningCase.level })), 1), b("span", Mt, O(k(P).formatMonetary(d.dunningCase.totalFee)), 1)])])) : v("", !0)
|
|
385
|
+
])]), b("aside", Nt, [b("h2", Pt, O(k(f).t("module.dunning_case.detail.activity")), 1), b("ol", Ft, [(T(!0), y(h, null, D(W.value, (e, t) => (T(), y("li", {
|
|
386
386
|
key: e.key,
|
|
387
387
|
class: "flex gap-md"
|
|
388
388
|
}, [b("div", It, [b("span", { class: w([{
|
|
@@ -390,29 +390,29 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
390
390
|
"bg-error-secondary": e.type === "reminder-due",
|
|
391
391
|
"bg-success-secondary": e.type === "payment" || e.type === "case-closed",
|
|
392
392
|
"bg-tertiary": e.type === "credit-note"
|
|
393
|
-
}, "flex size-(--spacing-3xl) shrink-0 items-center justify-center rounded-full"]) }, [e.type === "reminder-due" ? (T(), _(k(
|
|
393
|
+
}, "flex size-(--spacing-3xl) shrink-0 items-center justify-center rounded-full"]) }, [e.type === "reminder-due" ? (T(), _(k(o), {
|
|
394
394
|
key: 0,
|
|
395
395
|
class: "size-(--spacing-lg) text-error-primary"
|
|
396
396
|
})) : e.type === "payment" ? (T(), _(k(te), {
|
|
397
397
|
key: 1,
|
|
398
398
|
class: "size-(--spacing-lg) text-success-primary"
|
|
399
|
-
})) : e.type === "credit-note" ? (T(), _(k(
|
|
399
|
+
})) : e.type === "credit-note" ? (T(), _(k(s), {
|
|
400
400
|
key: 2,
|
|
401
401
|
class: "size-(--spacing-lg) text-secondary"
|
|
402
|
-
})) : e.type === "reminder-sent" ? (T(), _(k(
|
|
402
|
+
})) : e.type === "reminder-sent" ? (T(), _(k(l), {
|
|
403
403
|
key: 3,
|
|
404
404
|
class: "size-(--spacing-lg) text-brand-tertiary"
|
|
405
|
-
})) : e.type === "case-closed" ? (T(), _(k(
|
|
405
|
+
})) : e.type === "case-closed" ? (T(), _(k(c), {
|
|
406
406
|
key: 4,
|
|
407
407
|
class: "size-(--spacing-lg) text-success-primary"
|
|
408
|
-
})) : v("", !0)], 2), t <
|
|
408
|
+
})) : v("", !0)], 2), t < W.value.length - 1 ? (T(), y("span", Lt)) : v("", !0)]), b("div", { class: w([{ "pb-xl": t < W.value.length - 1 }, "pt-xs"]) }, [b("p", Rt, O(Jt(e)), 1), b("p", zt, O(Yt(e)), 1)], 2)]))), 128))])])])
|
|
409
409
|
])]),
|
|
410
410
|
_: 1
|
|
411
411
|
})]),
|
|
412
412
|
_: 1
|
|
413
413
|
}, 8, ["breadcrumbs", "title"]));
|
|
414
414
|
}
|
|
415
|
-
}),
|
|
415
|
+
}), L = /*@__PURE__*/ C({
|
|
416
416
|
__name: "DunningCaseDetailViewDataProvider",
|
|
417
417
|
props: { dunningCaseUuid: {} },
|
|
418
418
|
setup(e) {
|
|
@@ -434,6 +434,6 @@ var ye = { class: "flex flex-col gap-4xl" }, be = { class: "flex flex-col gap-lg
|
|
|
434
434
|
_: 1
|
|
435
435
|
}, 8, ["queries"]));
|
|
436
436
|
}
|
|
437
|
-
}),
|
|
437
|
+
}), R = /* @__PURE__ */ e({ default: () => z }), z = L;
|
|
438
438
|
//#endregion
|
|
439
|
-
export {
|
|
439
|
+
export { R as n, z as t };
|