@wisemen/wise-invoicing-web 0.3.0 → 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.
Files changed (68) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js → ApprovalReminderSettingsViewDataProvider-IuReavOR.js} +3 -3
  2. package/dist/{BillingDocumentDetailViewDataProvider-TJUwMhtn.js → BillingDocumentDetailViewDataProvider-B3I6UIKY.js} +2201 -1728
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-PU9Ldfhs.js → BillingDocumentPdf-rFqmLUPy.js} +226 -219
  5. package/dist/{CreditNoteDetailViewDataProvider-DOPmal5D.js → CreditNoteDetailViewDataProvider-CQRnG2Fz.js} +42 -42
  6. package/dist/{CreditNotePdfViewDataProvider-BH7MaReQ.js → CreditNotePdfViewDataProvider-RytwPWH5.js} +2 -2
  7. package/dist/{CustomFieldValueText-BjRVovZL.js → CustomFieldValueText-DA0aPKwC.js} +2 -2
  8. package/dist/{DunningCaseDetailViewDataProvider-CW8ijY3H.js → DunningCaseDetailViewDataProvider-BRYbYgTw.js} +65 -65
  9. package/dist/{DunningCaseOverviewView-Cfo-4VIw.js → DunningCaseOverviewView-D0vScVF1.js} +125 -125
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-Dr-CS_VQ.js → DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js} +2 -2
  11. package/dist/{DunningCaseSendDialog-BYFXJYMM.js → DunningCaseSendDialog-CV66_tMv.js} +8 -8
  12. package/dist/{InvoiceApprovalOutOfSyncIndicator-CP2GLaeh.js → InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js} +2 -2
  13. package/dist/{InvoiceApprovalOverviewView-Cjdu9iZC.js → InvoiceApprovalOverviewView-CcMqr2jH.js} +213 -213
  14. package/dist/{InvoiceApprovalStatusBadge-CcX8agTF.js → InvoiceApprovalStatusBadge-BJ3Q18bf.js} +4 -4
  15. package/dist/{InvoiceApproveDialogDataProvider-4wNAetBn.js → InvoiceApproveDialogDataProvider-DaCEHgs0.js} +7 -7
  16. package/dist/{InvoiceDetailViewDataProvider-C9O3hXGo.js → InvoiceDetailViewDataProvider-B5uZY8Qy.js} +47 -47
  17. package/dist/{InvoiceOverviewViewDataProvider-DBdw7FvZ.js → InvoiceOverviewViewDataProvider-BrgmweRE.js} +57 -57
  18. package/dist/{InvoicePdfView-CvU9bRVd.js → InvoicePdfView-CPEX7E9W.js} +1 -1
  19. package/dist/{InvoicePdfViewDataProvider-CFjHQ58K.js → InvoicePdfViewDataProvider-T4-8A2OD.js} +3 -3
  20. package/dist/{InvoicePublicPdfViewDataProvider-DDv-LdBU.js → InvoicePublicPdfViewDataProvider-BkHZoPSZ.js} +3 -3
  21. package/dist/{InvoicePublicProFormaPdfViewDataProvider-BTjJnELb.js → InvoicePublicProFormaPdfViewDataProvider-CfkArXbC.js} +3 -3
  22. package/dist/{InvoicingFileUploadProvider-Kcq7kSSt.js → InvoicingFileUploadProvider-BLBjPKqx.js} +1 -1
  23. package/dist/{IssuerSettingsViewDataProvider-BuSIVnIl.js → IssuerSettingsViewDataProvider-BStn0jFI.js} +2 -2
  24. package/dist/{ReminderSettingsViewDataProvider-CH7gSXnj.js → ReminderSettingsViewDataProvider-CjX7afDs.js} +3 -3
  25. package/dist/{api.util-CkIRZS3h.js → api.util-D6m6OY3_.js} +15 -6
  26. package/dist/{billingDocumentDetail.transformer-Bfd8geNo.js → billingDocumentDetail.transformer-Da-Nt4bI.js} +37 -29
  27. package/dist/client/index.d.ts +1 -1
  28. package/dist/client/types.gen.d.ts +16 -2
  29. package/dist/client/zod.gen.d.ts +28 -0
  30. package/dist/{creditNoteDetail.query-tLnfqsEB.js → creditNoteDetail.query-Yb8TdZNm.js} +22 -18
  31. package/dist/{dist-D5agTXFI.js → dist-BpDuRYDT.js} +132 -132
  32. package/dist/{dist-boJIIxnT.js → dist-Cdbpkd3Y.js} +1 -1
  33. package/dist/{dist-BD7Allff.js → dist-DCbLgB6Y.js} +182 -102
  34. package/dist/{i18n.lib--mzprLMR.js → i18n.lib-CKs3ExEl.js} +28 -0
  35. package/dist/index.d.ts +28 -0
  36. package/dist/index.js +33 -32
  37. package/dist/{invoice.service-B1w16_Md.js → invoice.service-DWDl9XRh.js} +214 -209
  38. package/dist/{invoiceApproval.service-BHAJmFkU.js → invoiceApproval.service-Fwlxgd9o.js} +2 -2
  39. package/dist/{invoiceApprovalStatus.util-DohOKR4q.js → invoiceApprovalStatus.util-q-zHLdFV.js} +1 -1
  40. package/dist/{invoiceCustomer.service-DpVfpQUD.js → invoiceCustomer.service-DOexR54S.js} +2 -2
  41. package/dist/{invoiceDetail.query-CfyNSXLS.js → invoiceDetail.query-B5w0Vlsy.js} +1 -1
  42. package/dist/{invoiceIndexCache.util-jHsrFwcA.js → invoiceIndexCache.util-CUlp4R7R.js} +2 -2
  43. package/dist/{invoicingConfig.composable-COn1rKRf.js → invoicingConfig.composable-DjFexycc.js} +2 -2
  44. package/dist/{issuerSettings.query-CDFk2GiP.js → issuerSettings.query-BHuLjV9P.js} +1 -1
  45. package/dist/libs/i18n.lib.d.ts +28 -0
  46. package/dist/locales/en-US.json.d.ts +14 -0
  47. package/dist/locales/nl-BE.json.d.ts +14 -0
  48. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
  49. package/dist/models/billing-document/billingDocumentLineGroup.util.d.ts +15 -0
  50. package/dist/models/billing-document/billingDocumentLineGroup.util.spec.d.ts +1 -0
  51. package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +1 -0
  52. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +1 -0
  53. package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +4 -1
  54. package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +5 -0
  55. package/dist/{reminderConfig.query-DSO0ekC_.js → reminderConfig.query-C4J6m4ER.js} +1 -1
  56. package/dist/style.css +1 -1
  57. package/dist/types/apiError.type.d.ts +2 -2
  58. package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +1 -0
  59. package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +3 -0
  60. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +5 -2
  61. package/dist/ui/billing-document/table/BillingDocumentLineItemsTreeIndent.vue.d.ts +17 -0
  62. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +78 -18
  63. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +14 -4
  64. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +6 -0
  65. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +8 -4
  66. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +16 -3
  67. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +163 -26
  68. package/package.json +2 -2
@@ -1,15 +1,15 @@
1
- import { t as e } from "./i18n.lib--mzprLMR.js";
2
- import "./api.util-CkIRZS3h.js";
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 { $ as a, K as o, L as s, N as c, O as l, W as u, dt as d, g as f, i as p, j as m, l as h, y as g } from "./dist-BD7Allff.js";
7
- import { n as _, t as v } from "./dist-boJIIxnT.js";
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
+ 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-BjRVovZL.js";
10
- import { n as x, r as S, t as C } from "./creditNoteDetail.query-tLnfqsEB.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-TJUwMhtn.js";
12
- import { r as ge } from "./InvoicingFileUploadProvider-Kcq7kSSt.js";
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(), o = a.create(We), s = a.create(te), u = ze(), f = 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);
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 u.execute({ params: {
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 s.open({
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 f.execute({ params: {
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 o.open({ creditNote: e.value });
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: d,
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: p,
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: u.isLoading.value,
221
- iconRight: l,
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: c,
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: m,
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, o = M(), s = Y(), c = Z(), { menuGroups: l, primaryButtons: u } = Ge(N(() => r.creditNote)), d = N(() => new T(r.creditNote.status)), f = N(() => d.value.color), p = N(() => o.t(d.value.translationKey)), m = N(() => r.creditNote.status !== t.DRAFT && r.creditNote.status !== t.READY), h = X({
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 c.execute({
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() && s.apiError(t.error);
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(o).t("wise_invoicing.credit_note.detail.fallback_title"),
291
- "is-disabled": m.value,
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": f.value,
294
- "status-label": p.value,
295
- icon: H(a),
293
+ "status-color": d.value,
294
+ "status-label": f.value,
295
+ icon: H(m),
296
296
  "subject-field": H(g),
297
- "subject-placeholder": H(o).t("wise_invoicing.invoice.detail.header.subject_placeholder")
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(l),
302
- "primary-buttons": H(u),
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(o), { class: z([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
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(), a = Z(), o = X({
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 a.execute({
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 = o.register("issuedOn"), l = o.register("poNumber"), d = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
510
- return w({ form: o }), (e, t) => (B(), P(H(K), {
511
- form: H(o),
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(f),
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(s),
537
- "has-error": H(l).errors.value.length > 0,
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(l)), {
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(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(u),
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
  }, {
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./DataProvider-C3uEds9v.js";
2
- import { t } from "./InvoicePdfView-CvU9bRVd.js";
3
- import { t as n } from "./creditNoteDetail.query-tLnfqsEB.js";
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,7 +1,7 @@
1
- import { Y as e, t } from "./api.util-CkIRZS3h.js";
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
- import { n as o } from "./dist-boJIIxnT.js";
4
+ import { n as o } from "./dist-Cdbpkd3Y.js";
5
5
  import { useI18n as s } from "vue-i18n";
6
6
  import { computed as c, createBlock as l, defineComponent as u, normalizeClass as d, openBlock as f, unref as p } from "vue";
7
7
  import { useQuery as m } from "@wisemen/vue-core-api-utils";
@@ -1,13 +1,13 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import "./api.util-CkIRZS3h.js";
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-COn1rKRf.js";
6
- import { n as a } from "./reminderConfig.query-DSO0ekC_.js";
7
- import { K as ee, Z as o, ct as s, dt as c, nt as te, w as l } from "./dist-BD7Allff.js";
8
- import { a as u, i as ne, n as re, o as d, r as ie, t as ae } from "./DunningCaseSendDialog-BYFXJYMM.js";
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
- import { n as oe } from "./dist-boJIIxnT.js";
10
+ import { n as oe } from "./dist-Cdbpkd3Y.js";
11
11
  import { t as p } from "./DataProvider-C3uEds9v.js";
12
12
  import { useI18n as m } from "vue-i18n";
13
13
  import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, normalizeClass as w, normalizeStyle as se, openBlock as T, ref as E, renderList as D, toDisplayString as O, unref as k, withCtx as A } from "vue";
@@ -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(), Bt = n(), L = i(), R = le(), z = ie(), B = E("overdue");
67
- function V(e) {
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 H = E(d.dunningCase.invoices.find(V)?.uuid ?? null);
71
- Bt.set(() => d.dunningCase.customer.name), ve(g(() => [{
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 U = g(() => {
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
- }), W = 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))), Vt = 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))), G = g(() => B.value === "overdue" ? W.value : Vt.value), K = g(() => d.dunningCase.invoices.filter((e) => e.isDisputed).length), q = g(() => u(d.dunningCase.latestCreatedReminder)), J = g(() => W.value.filter((e) => !e.isDisputed)), Y = g(() => J.value.reduce((e, t) => ({
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
- })), X = g(() => ne(J.value, d.dunningCase.outstandingBalance)), Ht = g(() => X.value.map((e, t) => ({
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 Ut(e) {
120
- return Y.value.amount === 0 ? 0 : e / Y.value.amount * 100;
119
+ function Ht(e) {
120
+ return X.value.amount === 0 ? 0 : e / X.value.amount * 100;
121
121
  }
122
- let Z = g(() => L.getCustomerDetailRoute(d.dunningCase.customer.uuid)), Wt = g(() => [{
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 Gt() {
127
- Z.value !== null && R.push(Z.value);
126
+ function Wt() {
127
+ Q.value !== null && z.push(Q.value);
128
128
  }
129
- function Q(e) {
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: Q(e)
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 z.execute({ params: { dunningCaseReminderUuid: d.dunningCase.latestCreatedReminder.uuid } });
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
- H.value = H.value === e ? null : e;
197
+ U.value = U.value === e ? null : e;
198
198
  }
199
199
  return (e, t) => (T(), _(k(ue), {
200
- breadcrumbs: Wt.value,
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, [Z.value === null ? (T(), y("span", Ce, O(d.dunningCase.customer.name), 1)) : (T(), y("button", {
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: Gt
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: q.value
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 || q.value === "sending" ? (T(), _(k(N), {
221
+ ]), d.dunningCase.canSendReminder || J.value === "sending" ? (T(), _(k(N), {
222
222
  key: 0,
223
- "icon-right": k(c),
224
- "is-loading": q.value === "sending",
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(c),
236
- "is-loading": k(z).result.value.isLoading(),
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(X.value, (e, t) => (T(), y("span", {
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: `${Ut(e.amount)}%` })
263
+ style: se({ width: `${Ht(e.amount)}%` })
264
264
  }, null, 6))), 128))])
265
265
  ]),
266
- b("div", Pe, [(T(!0), y(h, null, D(Ht.value, (e) => (T(), _(k(me), {
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(Q(e.level)), 1)]), b("span", Re, O(k(P).formatMonetary(e.amount)), 1)], 8, Fe)]),
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(l), { 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(o), { class: "size-(--spacing-xl) text-brand-700" })]), b("div", null, [
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
- K.value > 0 ? (T(), y("p", Je, O(k(f).t("module.dunning_case.detail.protested_count", { count: K.value })), 1)) : v("", !0)
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: B.value,
298
- "onUpdate:modelValue": t[0] ||= (e) => B.value = 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, [G.value.length > 0 ? (T(), y("table", et, [b("thead", null, [b("tr", tt, [
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(G.value, (e) => (T(), y(h, { key: e.uuid }, [b("tr", { class: w([{ "opacity-60": e.isDisputed }, "border-b border-secondary"]) }, [
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": H.value !== e.uuid,
323
- "before:opacity-100": H.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, [V(e) ? (T(), y("button", {
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": H.value === e.uuid,
327
- "aria-label": k(f).t(H.value === e.uuid ? "module.dunning_case.detail.collapse_updates" : "module.dunning_case.detail.expand_updates", { invoice: e.sequence }),
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": H.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), {
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"])) : B.value === "overdue" ? (T(), y("span", mt, [S(a, {
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)) : B.value === "outstanding" ? (T(), _(k(M), {
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), V(e) ? (T(), y("tr", {
366
+ ], 2), H(e) ? (T(), y("tr", {
367
367
  key: `${e.uuid}-updates`,
368
- class: w({ "border-b border-secondary": H.value === e.uuid }),
369
- "aria-hidden": H.value !== e.uuid
370
- }, [b("td", St, [b("div", { class: w([H.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", {
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(s), { class: "size-(--spacing-xl) text-primary" })]), b("p", Dt, O(k(f).t(B.value === "overdue" ? "module.dunning_case.detail.empty_overdue" : "module.dunning_case.detail.empty_outstanding")), 1)]))]),
384
- B.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(Y.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(U.value, (e, t) => (T(), y("li", {
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(l), {
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(o), {
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(c), {
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(s), {
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 < U.value.length - 1 ? (T(), y("span", Lt)) : v("", !0)]), b("div", { class: w([{ "pb-xl": t < U.value.length - 1 }, "pt-xs"]) }, [b("p", Rt, O(Jt(e)), 1), b("p", zt, O(Yt(e)), 1)], 2)]))), 128))])])])
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
- }), Bt = /*@__PURE__*/ C({
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
- }), L = /* @__PURE__ */ e({ default: () => R }), R = Bt;
437
+ }), R = /* @__PURE__ */ e({ default: () => z }), z = L;
438
438
  //#endregion
439
- export { L as n, R as t };
439
+ export { R as n, z as t };