@wisemen/wise-invoicing-web 0.2.0 → 0.3.1

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 (118) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-D-qXZrPT.js → ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js} +4 -4
  2. package/dist/{BillingDocumentDetailViewDataProvider-DDdtlW-2.js → BillingDocumentDetailViewDataProvider-Dub07ybW.js} +1373 -1217
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-ehdFB6mr.js → BillingDocumentPdf-DgtUB45R.js} +20 -13
  5. package/dist/{CreditNoteDetailViewDataProvider-11a-JO3H.js → CreditNoteDetailViewDataProvider-BxNfC6yO.js} +90 -90
  6. package/dist/{CreditNotePdfViewDataProvider-bfeaya3P.js → CreditNotePdfViewDataProvider-D0j8qqK-.js} +2 -2
  7. package/dist/{CustomFieldValueText-CZQXGE5F.js → CustomFieldValueText-Cuhs9sRn.js} +26 -26
  8. package/dist/DunningCaseDetailViewDataProvider-ou1FfNWQ.js +439 -0
  9. package/dist/{DunningCaseOverviewView-y_bCmi5j.js → DunningCaseOverviewView--zaPD0-c.js} +255 -203
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-DNODfED_.js → DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js} +5 -4
  11. package/dist/{DunningCaseSendDialog-BPXcqit5.js → DunningCaseSendDialog-Co4oLFtZ.js} +83 -72
  12. package/dist/InvoiceApprovalOutOfSyncIndicator-H6H7kjAE.js +45 -0
  13. package/dist/InvoiceApprovalOverviewView-Bw-6rkon.js +814 -0
  14. package/dist/InvoiceApprovalStatusBadge-IyzJ--TJ.js +127 -0
  15. package/dist/InvoiceApproveDialogDataProvider-8G-11W1e.js +377 -0
  16. package/dist/{InvoiceDetailViewDataProvider-BYeaaQzL.js → InvoiceDetailViewDataProvider-B9gul2ei.js} +750 -692
  17. package/dist/InvoiceOverviewViewDataProvider-5KgIdhfL.js +1892 -0
  18. package/dist/{InvoicePdfView-BJRTg_TH.js → InvoicePdfView-5sJ-u_gT.js} +10 -4
  19. package/dist/{InvoicePdfViewDataProvider-CwI_uGm3.js → InvoicePdfViewDataProvider-BLVXDPv6.js} +3 -3
  20. package/dist/{InvoicePublicPdfViewDataProvider-uZUfsr5K.js → InvoicePublicPdfViewDataProvider-CnhYazmB.js} +3 -3
  21. package/dist/InvoicePublicProFormaPdfViewDataProvider-CcvGISK6.js +47 -0
  22. package/dist/{InvoicingFileUploadProvider-D9Xk4rQM.js → InvoicingFileUploadProvider-Kcq7kSSt.js} +2 -2
  23. package/dist/{IssuerSettingsViewDataProvider-CGRa8F-2.js → IssuerSettingsViewDataProvider-BuSIVnIl.js} +3 -3
  24. package/dist/{ReminderSettingsViewDataProvider-1ucp3z2T.js → ReminderSettingsViewDataProvider-CH7gSXnj.js} +100 -102
  25. package/dist/{api.util-C_kMGlJN.js → api.util-CkIRZS3h.js} +985 -930
  26. package/dist/{billingDocumentDetail.transformer-Da6_-Hv9.js → billingDocumentDetail.transformer-Bfd8geNo.js} +5 -7
  27. package/dist/client/index.d.ts +2 -2
  28. package/dist/client/sdk.gen.d.ts +2 -1
  29. package/dist/client/types.gen.d.ts +114 -31
  30. package/dist/client/zod.gen.d.ts +343 -78
  31. package/dist/composables/sending-refetch/sendingRefetch.composable.d.ts +7 -0
  32. package/dist/composables/sending-refetch/sendingRefetch.composable.spec.d.ts +1 -0
  33. package/dist/{creditNoteDetail.query-DLR7L0Ep.js → creditNoteDetail.query-tLnfqsEB.js} +27 -27
  34. package/dist/customerUuid.model-ClN4Vi9n.js +18 -0
  35. package/dist/{dist-Cxdm09Lp.js → dist-BQbaoN5W.js} +144 -96
  36. package/dist/{dist-CoztMdYH.js → dist-CGZBUnWK.js} +62 -62
  37. package/dist/{dist-boJIIxnT.js → dist-Cdbpkd3Y.js} +1 -1
  38. package/dist/{documentTitle.composable-DsBbzhXN.js → documentTitle.composable-CRJjS6p-.js} +19 -17
  39. package/dist/{i18n.lib-Cvr8pcDw.js → i18n.lib--mzprLMR.js} +88 -54
  40. package/dist/index.d.ts +56 -22
  41. package/dist/index.js +193 -201
  42. package/dist/{invoice.service-DEEA9mal.js → invoice.service-B1w16_Md.js} +184 -172
  43. package/dist/{invoiceApproval.service-DvL3LliM.js → invoiceApproval.service-BHAJmFkU.js} +8 -8
  44. package/dist/{invoiceApprovalStatus.util-3Zh10Pj8.js → invoiceApprovalStatus.util-DohOKR4q.js} +42 -38
  45. package/dist/invoiceCustomer.service-DpVfpQUD.js +39 -0
  46. package/dist/{invoiceDetail.query-CRoH_SgM.js → invoiceDetail.query-CfyNSXLS.js} +1 -1
  47. package/dist/{invoiceDeliveryStatus.util-nCsqDypY.js → invoiceIndexCache.util-BDLs7W9m.js} +128 -51
  48. package/dist/{invoicingConfig.composable-rxjGK882.js → invoicingConfig.composable-COn1rKRf.js} +2 -2
  49. package/dist/{issuerSettings.query-Dc5gsaEm.js → issuerSettings.query-CDFk2GiP.js} +3 -2
  50. package/dist/libs/i18n.lib.d.ts +56 -22
  51. package/dist/locales/en-US.json.d.ts +44 -27
  52. package/dist/locales/nl-BE.json.d.ts +44 -27
  53. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +8 -1
  54. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.d.ts +12 -0
  55. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.spec.d.ts +1 -0
  56. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -6
  57. package/dist/modules/dunning-case/api/mutations/dunningCaseReminderRetry.mutation.d.ts +4 -0
  58. package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +2 -1
  59. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +5 -0
  60. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +0 -4
  61. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +0 -1
  62. package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +1 -0
  63. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +2 -0
  64. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +2 -2
  65. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.spec.d.ts +1 -0
  66. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +1 -0
  67. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +0 -4
  68. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +2 -1
  69. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +4 -4
  70. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +2 -2
  71. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.spec.d.ts +1 -0
  72. package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +8 -0
  73. package/dist/modules/invoice/api/queries/invoicePublicProFormaDetail.query.d.ts +2 -0
  74. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +6 -0
  75. package/dist/modules/invoice/api/services/invoice.service.d.ts +1 -0
  76. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +4 -2
  77. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.spec.d.ts +1 -0
  78. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +8 -0
  79. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +1 -0
  80. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +2 -3
  81. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +2 -9
  82. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +4 -2
  83. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.spec.d.ts +1 -0
  84. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +2 -1
  85. package/dist/modules/invoice/routes/invoice.routes.d.ts +4 -0
  86. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +1 -0
  87. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialogDataProvider.vue.d.ts +13 -0
  88. package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentDeleteDialog.vue.d.ts +13 -0
  89. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +2 -3
  90. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +11 -9
  91. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +2 -2
  92. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +3 -1
  93. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +7 -4
  94. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.spec.d.ts +1 -0
  95. package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +1 -0
  96. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +4 -1
  97. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +1 -0
  98. package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicProFormaPdfViewDataProvider.vue.d.ts +3 -0
  99. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +2 -0
  100. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.spec.d.ts +1 -0
  101. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.spec.d.ts +1 -0
  102. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.spec.d.ts +1 -0
  103. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +5 -6
  104. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +0 -5
  105. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +1 -0
  106. package/dist/{reminderConfig.query-snaHQmrY.js → reminderConfig.query-DSO0ekC_.js} +112 -105
  107. package/dist/routes/invoicingPublicRoutes.composable.d.ts +4 -0
  108. package/dist/style.css +1 -1
  109. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityApprovalDetails.vue.d.ts +7 -0
  110. package/package.json +3 -3
  111. package/dist/DunningCaseDetailViewDataProvider-DC-ziMoO.js +0 -409
  112. package/dist/InvoiceApprovalOverviewView-DZ14mi4L.js +0 -870
  113. package/dist/InvoiceApprovalStatusBadge-U-dW2hR4.js +0 -161
  114. package/dist/InvoiceApproveDialog-2LXneG2r.js +0 -308
  115. package/dist/InvoiceOverviewBulkSendApprovalDialog-99dfuN4i.js +0 -318
  116. package/dist/InvoiceOverviewViewDataProvider-CZIQeftL.js +0 -1620
  117. package/dist/customerUuid.model-GUFYq3O2.js +0 -5
  118. package/dist/modules/invoice-approval/actions/invoiceApprovalUnmarkAsNeedsApproval.action.d.ts +0 -1
package/dist/index.js CHANGED
@@ -1,36 +1,37 @@
1
- import { n as e, r as t } from "./i18n.lib-Cvr8pcDw.js";
2
- import "./api.util-C_kMGlJN.js";
3
- import { O as n, T as r, b as i, l as a, t as o, y as s } from "./documentTitle.composable-DsBbzhXN.js";
1
+ import { n as e, r as t } from "./i18n.lib--mzprLMR.js";
2
+ import "./api.util-CkIRZS3h.js";
3
+ import { E as n, b as r, k as i, t as a, u as o, x as s } from "./documentTitle.composable-CRJjS6p-.js";
4
4
  import { n as c, r as l, t as u } from "./useCurrencyFormat.composable-MtZaqKnO.js";
5
- import { n as d, t as f } from "./invoicingConfig.composable-rxjGK882.js";
5
+ import { n as d, t as f } from "./invoicingConfig.composable-COn1rKRf.js";
6
6
  import { t as p } from "./search.composable-CU9OpyUB.js";
7
7
  import { t as m } from "./src-DUSgQTKr.js";
8
- import { r as ee, t as h } from "./InvoiceOverviewViewDataProvider-CZIQeftL.js";
8
+ import { r as ee, t as h } from "./InvoiceOverviewViewDataProvider-5KgIdhfL.js";
9
9
  import { n as g } from "./address.transformer-jGddczLV.js";
10
10
  import { t as _ } from "./addressForm.model-C853zEtX.js";
11
11
  import { n as v, t as y } from "./download.util-B5Q7KUC9.js";
12
- import { n as b } from "./plainDate.transformer-Bhiz9jW7.js";
13
- import { n as x, t as S } from "./percentage.util-Bl78kSSk.js";
14
- import { r as C, t as te } from "./DunningCaseOverviewView-y_bCmi5j.js";
15
- import { D as w, U as ne, Y as re, w as T } from "./dist-Cxdm09Lp.js";
16
- import { o as ie } from "./DunningCaseSendDialog-BPXcqit5.js";
17
- import { n as ae } from "./dist-boJIIxnT.js";
18
- import { t as oe } from "./DunningCaseDetailViewDataProvider-DC-ziMoO.js";
19
- import { a as se, i as ce, l as E, n as le, o as ue, r as de, s as fe, t as D } from "./dist-CoztMdYH.js";
20
- import { t as pe } from "./DunningCaseReminderPdfViewDataProvider-DNODfED_.js";
21
- import { t as me } from "./ReminderSettingsViewDataProvider-1ucp3z2T.js";
22
- import { r as he, t as ge } from "./InvoicePublicPdfViewDataProvider-uZUfsr5K.js";
23
- import { n as O } from "./CustomFieldValueText-CZQXGE5F.js";
24
- import { z as k } from "zod";
25
- import { useI18n as A } from "vue-i18n";
26
- import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createVNode as L, defineComponent as R, openBlock as z, renderList as B, toDisplayString as V, unref as H, withCtx as U } from "vue";
12
+ import { n as b } from "./reminderConfig.query-DSO0ekC_.js";
13
+ import { n as x } from "./plainDate.transformer-Bhiz9jW7.js";
14
+ import { n as S, t as C } from "./percentage.util-Bl78kSSk.js";
15
+ import { r as w, t as te } from "./DunningCaseOverviewView--zaPD0-c.js";
16
+ import { E as ne, G as re, Z as ie } from "./dist-BQbaoN5W.js";
17
+ import { s as ae } from "./DunningCaseSendDialog-Co4oLFtZ.js";
18
+ import { n as oe } from "./dist-Cdbpkd3Y.js";
19
+ import { t as se } from "./DunningCaseDetailViewDataProvider-ou1FfNWQ.js";
20
+ import { a as T, i as E, l as D, n as ce, o as le, r as ue, s as de, t as O } from "./dist-CGZBUnWK.js";
21
+ import { t as fe } from "./DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js";
22
+ import { t as pe } from "./ReminderSettingsViewDataProvider-CH7gSXnj.js";
23
+ import { r as me, t as he } from "./InvoicePublicPdfViewDataProvider-CnhYazmB.js";
24
+ import { n as k } from "./CustomFieldValueText-Cuhs9sRn.js";
25
+ import { z as A } from "zod";
26
+ import { useI18n as j } from "vue-i18n";
27
+ import { Fragment as ge, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as L, createVNode as R, defineComponent as z, openBlock as B, toDisplayString as V, unref as H, withCtx as U } from "vue";
27
28
  import { useQueryClient as _e } from "@tanstack/vue-query";
28
29
  import { QueryClient as ve, SortUtil as ye, useQuery as be } from "@wisemen/vue-core-api-utils";
29
- import { RouterLink as W, useRouter as xe } from "vue-router";
30
- import { UIBadge as G, UIEmptyState as Se, UIRowLayout as K, UITable as Ce, UITableCell as q, UITableCellText as we, UIText as J, UITextField as Te, createComponent as Y, defineTableColumns as Ee, useSort as De } from "@wisemen/vue-core-design-system";
31
- import { createAction as Oe } from "@wisemen/vue-core-actions";
30
+ import { RouterLink as xe, useRouter as Se } from "vue-router";
31
+ import { UIBadge as Ce, UIDetailListGroup as we, UIDetailListGroupSeparator as Te, UIEmptyState as Ee, UIFeaturedIcon as De, UIRowLayout as W, UITable as Oe, UITableCell as G, UITableCellText as ke, UIText as K, UITextField as Ae, createComponent as q, defineTableColumns as je, useSort as Me } from "@wisemen/vue-core-design-system";
32
+ import { createAction as Ne } from "@wisemen/vue-core-actions";
32
33
  //#region src/locales/ui-en-US.json
33
- var ke = {
34
+ var Pe = {
34
35
  "component.api_error.default_message": "An unexpected error occurred.",
35
36
  "component.api_error.default_title": "Error",
36
37
  "component.autocomplete.more_results_available": "More results may be available. Narrow your search criteria.",
@@ -92,7 +93,7 @@ var ke = {
92
93
  "shared.clear": "Clear",
93
94
  "shared.close": "Close",
94
95
  "shared.options": "Options"
95
- }, Ae = {
96
+ }, Fe = {
96
97
  "component.api_error.default_message": "Er is een onverwachte fout opgetreden.",
97
98
  "component.api_error.default_title": "Fout",
98
99
  "component.autocomplete.more_results_available": "Er zijn mogelijk meer resultaten beschikbaar. Verfijn uw zoekcriteria.",
@@ -157,12 +158,12 @@ var ke = {
157
158
  };
158
159
  //#endregion
159
160
  //#region src/composables/created.composable.ts
160
- function je(e) {
161
+ function Ie(e) {
161
162
  e();
162
163
  }
163
164
  //#endregion
164
165
  //#region src/composables/invoicingQueryInvalidation.composable.ts
165
- function Me() {
166
+ function Le() {
166
167
  let e = new ve(_e());
167
168
  async function t() {
168
169
  await e.invalidate("invoiceIndex");
@@ -171,86 +172,73 @@ function Me() {
171
172
  }
172
173
  //#endregion
173
174
  //#region src/modules/credit-note/models/creditNoteUuid.model.ts
174
- var Ne = k.uuid().brand("CreditNoteUuid");
175
+ var Re = A.uuid().brand("CreditNoteUuid");
175
176
  //#endregion
176
177
  //#region src/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.ts
177
- function Pe(e) {
178
+ function ze(e) {
178
179
  return be("dunningCaseCustomerByExternalId", {
179
180
  isEnabled: M(() => e.value !== null),
180
181
  params: { externalId: e },
181
- queryFn: () => ie.getUuidByExternalId(e.value ?? "")
182
+ queryFn: () => ae.getUuidByExternalId(e.value ?? "")
182
183
  });
183
184
  }
184
185
  //#endregion
185
186
  //#region src/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue?vue&type=script&setup=true&lang.ts
186
- var Fe = { key: 0 }, Ie = { class: "mb-md text-sm font-semibold text-primary" }, Le = { class: "flex size-(--spacing-4xl) shrink-0 items-center justify-center rounded-full bg-brand-100 text-brand-600" }, Re = { class: "min-w-0 flex-1" }, ze = { class: "flex min-w-0 flex-wrap items-center gap-sm" }, Be = { class: "text-sm font-semibold wrap-break-word text-primary" }, Ve = { class: "mt-xs block text-sm text-secondary" }, He = {
187
+ var Be = { class: "min-w-0 flex-1" }, Ve = { class: "flex min-w-0 flex-wrap items-center gap-sm" }, He = { class: "truncate text-xs font-semibold text-primary" }, Ue = {
187
188
  key: 0,
188
- class: "rounded-lg border border-secondary bg-primary"
189
- }, Ue = { class: "cursor-pointer px-lg py-md text-sm font-medium text-primary" }, We = { class: "border-t border-secondary" }, Ge = { class: "flex size-(--spacing-4xl) shrink-0 items-center justify-center rounded-full bg-secondary text-secondary" }, Ke = { class: "min-w-0 flex-1" }, qe = { class: "block truncate text-primary" }, Je = { class: "mt-xxs block text-xs text-secondary tabular-nums" }, Ye = /* @__PURE__ */ R({
189
+ class: "inline-flex shrink-0 items-center gap-xs rounded-sm border border-secondary px-sm py-px text-xs text-primary"
190
+ }, We = { class: "mt-xxs block truncate text-xs text-secondary tabular-nums" }, Ge = /* @__PURE__ */ z({
190
191
  __name: "CustomerDunningCasesSection",
191
192
  props: {
192
193
  customerUuid: {},
193
194
  externalId: {}
194
195
  },
195
196
  setup(e) {
196
- let t = e, n = A(), r = l(), i = Pe(M(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = M(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = C({
197
+ let t = e, n = j(), r = l(), i = ze(M(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = M(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = w({
197
198
  isEnabled: M(() => a.value !== void 0),
198
199
  params: {
199
200
  customerUuid: a,
200
201
  isOpen: M(() => !0)
201
202
  }
202
- }), s = C({
203
- isEnabled: M(() => a.value !== void 0),
204
- params: {
205
- customerUuid: a,
206
- isOpen: M(() => !1)
207
- }
208
- }), c = M(() => o.result.value.isOk() ? o.result.value.getValue().data : []), u = M(() => s.result.value.isOk() ? s.result.value.getValue().data : []);
209
- return (e, t) => c.value.length > 0 || u.value.length > 0 ? (z(), F("section", Fe, [
210
- I("h2", Ie, V(H(n).t("module.dunning_case.customer.title")), 1),
211
- (z(!0), F(j, null, B(c.value, (e) => (z(), N(H(W), {
212
- key: e.uuid,
213
- to: {
214
- name: "dunning-case-detail",
215
- params: { dunningCaseUuid: e.uuid }
216
- },
217
- class: "mb-md flex w-fit max-w-full items-center gap-lg rounded-lg border border-secondary bg-primary p-lg shadow-sm hover:bg-secondary sm:max-w-2xl"
218
- }, {
219
- default: U(() => [
220
- I("span", Le, [L(H(T), { class: "size-(--spacing-xl)" })]),
221
- I("span", Re, [I("span", ze, [I("span", Be, V(H(n).t("module.dunning_case.customer.open_case")), 1), L(H(G), {
222
- label: e.level === 0 ? H(n).t("module.dunning_case.level.none") : H(n).t("module.dunning_case.level.reminder", { level: e.level }),
223
- color: "brand",
224
- size: "sm",
225
- variant: "translucent"
226
- }, null, 8, ["label"])]), I("span", Ve, V(H(n).t("module.dunning_case.customer.outstanding", { amount: H(r).formatMonetary(e.outstandingBalance) })), 1)]),
227
- L(H(w), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
228
- ]),
229
- _: 2
230
- }, 1032, ["to"]))), 128)),
231
- u.value.length > 0 ? (z(), F("details", He, [I("summary", Ue, V(H(n).t("module.dunning_case.customer.closed_cases", { count: u.value.length })), 1), I("div", We, [(z(!0), F(j, null, B(u.value, (e) => (z(), N(H(W), {
232
- key: e.uuid,
203
+ }), s = M(() => o.result.value.isOk() ? o.result.value.getValue().data[0] ?? null : null);
204
+ function c(e) {
205
+ return e === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: e });
206
+ }
207
+ return (e, t) => s.value === null ? P("", !0) : (B(), F(ge, { key: 0 }, [R(H(Te)), R(H(we), {
208
+ "collapse-options": {
209
+ isCollapsible: !0,
210
+ isOpenByDefault: !0,
211
+ badge: { label: H(r).formatMonetary(s.value.outstandingBalance) }
212
+ },
213
+ label: H(n).t("module.dunning_case.customer.title")
214
+ }, {
215
+ default: U(() => [R(H(xe), {
233
216
  to: {
234
217
  name: "dunning-case-detail",
235
- params: { dunningCaseUuid: e.uuid }
218
+ params: { dunningCaseUuid: s.value.uuid }
236
219
  },
237
- class: "flex items-center justify-between gap-lg border-b border-secondary px-lg py-md text-sm last:border-b-0 hover:bg-secondary"
220
+ class: "flex w-full items-center gap-md rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
238
221
  }, {
239
- default: U(() => [
240
- I("span", Ge, [L(H(T), { class: "size-(--spacing-xl)" })]),
241
- I("span", Ke, [I("span", qe, V(H(n).t("module.dunning_case.customer.closed_case")), 1), I("span", Je, V(H(r).formatMonetary(e.outstandingBalance)), 1)]),
242
- L(H(w), { class: "size-(--spacing-xl) shrink-0 text-tertiary" })
243
- ]),
244
- _: 2
245
- }, 1032, ["to"]))), 128))])])) : P("", !0)
246
- ])) : P("", !0);
222
+ default: U(() => [R(H(De), {
223
+ icon: H(ne),
224
+ color: "brand",
225
+ size: "md",
226
+ variant: "translucent"
227
+ }, null, 8, ["icon"]), I("span", Be, [I("span", Ve, [I("span", He, V(H(n).t("module.dunning_case.customer.open_case")), 1), s.value.level === null ? P("", !0) : (B(), F("span", Ue, [R(b, {
228
+ level: s.value.level,
229
+ size: "sm"
230
+ }, null, 8, ["level"]), L(" " + V(c(s.value.level)), 1)]))]), I("span", We, V(H(n).t("module.dunning_case.customer.outstanding", { amount: H(r).formatMonetary(s.value.outstandingBalance) })), 1)])]),
231
+ _: 1
232
+ }, 8, ["to"])]),
233
+ _: 1
234
+ }, 8, ["collapse-options", "label"])], 64));
247
235
  }
248
236
  });
249
237
  //#endregion
250
238
  //#region src/modules/invoice/actions/invoiceNavigateToDetail.action.ts
251
- function Xe() {
252
- let e = xe();
253
- return Oe({
239
+ function Ke() {
240
+ let e = Se();
241
+ return Ne({
254
242
  id: "invoice-navigate-to-detail",
255
243
  isApplicable: (e) => e.hasTargetedModelsOfType("Invoice"),
256
244
  name: (e) => {
@@ -259,7 +247,7 @@ function Xe() {
259
247
  },
260
248
  execute: (t) => {
261
249
  let n = t.targetedModelOfTypeOrThrow("Invoice");
262
- n.type === i.STANDARD ? e.push({
250
+ n.type === s.STANDARD ? e.push({
263
251
  name: "invoicing-invoice-detail",
264
252
  params: { invoiceUuid: n.uuid }
265
253
  }) : e.push({
@@ -271,55 +259,55 @@ function Xe() {
271
259
  }
272
260
  //#endregion
273
261
  //#region src/modules/invoice/models/invoiceUuid.model.ts
274
- var Ze = k.uuid().brand("InvoiceUuid");
262
+ var qe = A.uuid().brand("InvoiceUuid");
275
263
  //#endregion
276
264
  //#region ../router/src/createRoutes.ts
277
- function X(e) {
265
+ function J(e) {
278
266
  return e;
279
267
  }
280
268
  //#endregion
281
269
  //#region src/modules/dunning-case/routes/dunningCase.routes.ts
282
- var Qe = X([{
270
+ var Je = J([{
283
271
  name: "dunning-case-module",
284
272
  path: "/dunning-cases",
285
273
  redirect: { name: "dunning-case-overview" },
286
274
  children: [{
287
275
  name: "dunning-case-overview",
288
276
  path: "",
289
- component: () => import("./DunningCaseOverviewView-y_bCmi5j.js").then((e) => e.n),
277
+ component: () => import("./DunningCaseOverviewView--zaPD0-c.js").then((e) => e.n),
290
278
  meta: { permission: "dunning-case.read" }
291
279
  }, {
292
280
  name: "dunning-case-detail",
293
281
  props: !0,
294
282
  path: ":dunningCaseUuid",
295
- component: () => import("./DunningCaseDetailViewDataProvider-DC-ziMoO.js").then((e) => e.n),
283
+ component: () => import("./DunningCaseDetailViewDataProvider-ou1FfNWQ.js").then((e) => e.n),
296
284
  meta: { permission: "dunning-case.read" }
297
285
  }]
298
- }]), $e = X([{
286
+ }]), Ye = J([{
299
287
  name: "dunning-case-settings-module",
300
288
  path: "payment-reminders",
301
- component: () => import("./ReminderSettingsViewDataProvider-1ucp3z2T.js").then((e) => e.n),
289
+ component: () => import("./ReminderSettingsViewDataProvider-CH7gSXnj.js").then((e) => e.n),
302
290
  meta: { permission: "reminder-config.read" }
303
- }]), et = X([{
291
+ }]), Xe = J([{
304
292
  name: "dunning-case-reminder-pdf",
305
293
  path: "/dunning-case-reminder-pdf",
306
- component: () => import("./DunningCaseReminderPdfViewDataProvider-DNODfED_.js").then((e) => e.n)
307
- }]), tt = X([{
294
+ component: () => import("./DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js").then((e) => e.n)
295
+ }]), Ze = J([{
308
296
  name: "invoice-approval-module",
309
297
  path: "/invoicing/approvals",
310
298
  redirect: { name: "invoice-approval-overview" },
311
299
  children: [{
312
300
  name: "invoice-approval-overview",
313
301
  path: "",
314
- component: () => import("./InvoiceApprovalOverviewView-DZ14mi4L.js"),
302
+ component: () => import("./InvoiceApprovalOverviewView-Bw-6rkon.js"),
315
303
  meta: { permission: "invoice-approval.read" }
316
304
  }]
317
- }]), nt = X([{
305
+ }]), Qe = J([{
318
306
  name: "invoice-approval-settings-module",
319
307
  path: "approval-reminders",
320
- component: () => import("./ApprovalReminderSettingsViewDataProvider-D-qXZrPT.js"),
308
+ component: () => import("./ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js"),
321
309
  meta: { permission: "reminder-config.read" }
322
- }]), rt = [
310
+ }]), $e = [
323
311
  {
324
312
  name: "invoicing-settings-module",
325
313
  path: "invoicing",
@@ -327,53 +315,57 @@ var Qe = X([{
327
315
  children: [{
328
316
  name: "invoicing-settings-overview",
329
317
  path: "",
330
- component: () => import("./IssuerSettingsViewDataProvider-CGRa8F-2.js"),
318
+ component: () => import("./IssuerSettingsViewDataProvider-BuSIVnIl.js"),
331
319
  meta: { permission: "issuer.read" }
332
320
  }]
333
321
  },
334
- ...$e,
335
- ...nt
322
+ ...Ye,
323
+ ...Qe
336
324
  ];
337
325
  //#endregion
338
326
  //#region src/modules/invoice/routes/invoice.routes.ts
339
- function it(e) {
340
- return X([{
327
+ function et(e) {
328
+ return J([{
341
329
  name: "invoicing-module",
342
330
  path: "/invoicing/invoices",
343
331
  redirect: { name: "invoicing-invoice-overview" },
344
332
  children: [{
345
333
  name: "invoicing-invoice-overview",
346
334
  path: "",
347
- component: e ?? (() => import("./InvoiceOverviewViewDataProvider-CZIQeftL.js").then((e) => e.n)),
335
+ component: e ?? (() => import("./InvoiceOverviewViewDataProvider-5KgIdhfL.js").then((e) => e.n)),
348
336
  meta: { permission: "invoice.read" }
349
337
  }, {
350
338
  name: "invoicing-invoice-detail",
351
339
  props: !0,
352
340
  path: ":invoiceUuid",
353
- component: () => import("./InvoiceDetailViewDataProvider-BYeaaQzL.js"),
341
+ component: () => import("./InvoiceDetailViewDataProvider-B9gul2ei.js"),
354
342
  meta: { permission: "invoice.read" }
355
343
  }]
356
344
  }]);
357
345
  }
358
- var at = X([{
346
+ var tt = J([{
359
347
  name: "invoicing-invoice-pdf-preview",
360
348
  props: !0,
361
349
  path: "/invoicing/invoices/:invoiceUuid/pdf",
362
- component: () => import("./InvoicePdfViewDataProvider-CwI_uGm3.js"),
350
+ component: () => import("./InvoicePdfViewDataProvider-BLVXDPv6.js"),
363
351
  meta: { permission: "invoice.read" }
364
- }]), ot = X([{
352
+ }]), nt = J([{
365
353
  name: "invoicing-invoice-public-pdf-preview",
366
354
  path: "/pdf",
367
- component: () => import("./InvoicePublicPdfViewDataProvider-uZUfsr5K.js").then((e) => e.n)
355
+ component: () => import("./InvoicePublicPdfViewDataProvider-CnhYazmB.js").then((e) => e.n)
356
+ }, {
357
+ name: "invoicing-invoice-public-pro-forma-pdf-preview",
358
+ path: "/pro-forma-pdf",
359
+ component: () => import("./InvoicePublicProFormaPdfViewDataProvider-CcvGISK6.js")
368
360
  }]);
369
361
  //#endregion
370
362
  //#region src/routes/invoicingPublicRoutes.composable.ts
371
- function st() {
372
- return [...ot, ...et];
363
+ function rt() {
364
+ return [...nt, ...Xe];
373
365
  }
374
366
  //#endregion
375
367
  //#region src/modules/credit-note/routes/creditNote.routes.ts
376
- var ct = [{
368
+ var it = [{
377
369
  name: "invoicing-credit-note-module",
378
370
  path: "/invoicing/credit-notes",
379
371
  redirect: { name: "invoicing-invoice-overview" },
@@ -381,47 +373,47 @@ var ct = [{
381
373
  name: "invoicing-credit-note-detail",
382
374
  props: !0,
383
375
  path: ":creditNoteUuid",
384
- component: () => import("./CreditNoteDetailViewDataProvider-11a-JO3H.js"),
376
+ component: () => import("./CreditNoteDetailViewDataProvider-BxNfC6yO.js"),
385
377
  meta: { permission: "invoice.read" }
386
378
  }]
387
- }], lt = [{
379
+ }], at = [{
388
380
  name: "invoicing-credit-note-pdf-preview",
389
381
  props: !0,
390
382
  path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
391
- component: () => import("./CreditNotePdfViewDataProvider-bfeaya3P.js"),
383
+ component: () => import("./CreditNotePdfViewDataProvider-D0j8qqK-.js"),
392
384
  meta: { permission: "invoice.read" }
393
385
  }];
394
386
  //#endregion
395
387
  //#region src/routes/invoicingRoutes.composable.ts
396
- function ut(e) {
397
- return X([{
388
+ function Y(e) {
389
+ return J([{
398
390
  path: "",
399
391
  children: [
400
- ...it(e?.invoiceOverviewComponent),
401
- ...ct,
402
- ...Qe,
403
- ...tt
392
+ ...et(e?.invoiceOverviewComponent),
393
+ ...it,
394
+ ...Je,
395
+ ...Ze
404
396
  ]
405
397
  }]);
406
398
  }
407
399
  //#endregion
408
400
  //#region src/routes/invoicingStandaloneRoutes.composable.ts
409
- function dt() {
410
- return [...lt, ...at];
401
+ function ot() {
402
+ return [...at, ...tt];
411
403
  }
412
404
  //#endregion
413
405
  //#region src/types/apiError.type.ts
414
- var Z = {
406
+ var X = {
415
407
  invoice_has_no_lines: "wise_invoicing.api_error.invoice_has_no_lines",
416
408
  invoice_not_editable: "wise_invoicing.api_error.invoice_not_editable"
417
409
  };
418
- function ft() {
419
- let e = A();
420
- return { messages: M(() => Object.fromEntries(Object.entries(Z).map(([t, n]) => [t, e.t(n)]))) };
410
+ function st() {
411
+ let e = j();
412
+ return { messages: M(() => Object.fromEntries(Object.entries(X).map(([t, n]) => [t, e.t(n)]))) };
421
413
  }
422
414
  //#endregion
423
415
  //#region src/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue
424
- var Q = /* @__PURE__ */ R({
416
+ var Z = /* @__PURE__ */ z({
425
417
  __name: "CustomerInvoiceTableBadgeCell",
426
418
  props: {
427
419
  color: {},
@@ -429,8 +421,8 @@ var Q = /* @__PURE__ */ R({
429
421
  },
430
422
  setup(e) {
431
423
  let t = e;
432
- return (e, n) => (z(), N(H(q), null, {
433
- default: U(() => [L(H(G), {
424
+ return (e, n) => (B(), N(H(G), null, {
425
+ default: U(() => [R(H(Ce), {
434
426
  label: t.label,
435
427
  color: t.color,
436
428
  size: "sm"
@@ -438,32 +430,32 @@ var Q = /* @__PURE__ */ R({
438
430
  _: 1
439
431
  }));
440
432
  }
441
- }), pt = /* @__PURE__ */ R({
433
+ }), ct = /* @__PURE__ */ z({
442
434
  __name: "CustomerInvoiceTableInvoiceNumberCell",
443
435
  props: { sequence: {} },
444
436
  setup(e) {
445
437
  let t = e;
446
- return (e, n) => (z(), N(H(q), null, {
447
- default: U(() => [L(H(J), {
438
+ return (e, n) => (B(), N(H(G), null, {
439
+ default: U(() => [R(H(K), {
448
440
  text: t.sequence ?? "-",
449
441
  class: "text-xs font-medium text-primary"
450
442
  }, null, 8, ["text"])]),
451
443
  _: 1
452
444
  }));
453
445
  }
454
- }), $ = /* @__PURE__ */ R({
446
+ }), Q = /* @__PURE__ */ z({
455
447
  __name: "CustomerInvoiceTableTextCell",
456
448
  props: { text: {} },
457
449
  setup(e) {
458
450
  let t = e;
459
- return (e, n) => (z(), N(H(q), null, {
460
- default: U(() => [L(H(we), { text: t.text ?? "-" }, null, 8, ["text"])]),
451
+ return (e, n) => (B(), N(H(G), null, {
452
+ default: U(() => [R(H(ke), { text: t.text ?? "-" }, null, 8, ["text"])]),
461
453
  _: 1
462
454
  }));
463
455
  }
464
- }), mt = class {
456
+ }), $ = class {
465
457
  static getStatusBadgeColor(e) {
466
- return e === s.OVERDUE || e === s.PROTESTED ? "error" : "gray";
458
+ return e === r.OVERDUE || e === r.PROTESTED ? "error" : "gray";
467
459
  }
468
460
  static getVatAmount(e) {
469
461
  return {
@@ -474,20 +466,20 @@ var Q = /* @__PURE__ */ R({
474
466
  };
475
467
  //#endregion
476
468
  //#region src/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.ts
477
- function ht() {
478
- let e = A(), t = ae(), r = l();
479
- function a(e) {
469
+ function lt() {
470
+ let e = j(), t = oe(), n = l();
471
+ function r(e) {
480
472
  return e === null ? null : t.formatPlainDate(e);
481
473
  }
482
- return M(() => Ee()([
474
+ return M(() => je()([
483
475
  {
484
476
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
485
- key: n.SEQUENCE,
477
+ key: i.SEQUENCE,
486
478
  size: {
487
479
  max: "9.625rem",
488
480
  min: "9.625rem"
489
481
  },
490
- component: (e) => Y(pt, { sequence: e.sequence })
482
+ component: (e) => q(ct, { sequence: e.sequence })
491
483
  },
492
484
  {
493
485
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.status"),
@@ -496,19 +488,19 @@ function ht() {
496
488
  max: "6.4375rem",
497
489
  min: "6.4375rem"
498
490
  },
499
- component: (t) => Y(Q, {
500
- color: mt.getStatusBadgeColor(t.status),
501
- label: e.t(O.getMetadata(t.status).translationKey)
491
+ component: (t) => q(Z, {
492
+ color: $.getStatusBadgeColor(t.status),
493
+ label: e.t(k.getMetadata(t.status).translationKey)
502
494
  })
503
495
  },
504
496
  {
505
497
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
506
- key: n.ISSUED_ON,
498
+ key: i.ISSUED_ON,
507
499
  size: {
508
500
  max: "8.125rem",
509
501
  min: "8.125rem"
510
502
  },
511
- component: (e) => Y($, { text: a(e.issuedOn) })
503
+ component: (e) => q(Q, { text: r(e.issuedOn) })
512
504
  },
513
505
  {
514
506
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.due_date"),
@@ -517,7 +509,7 @@ function ht() {
517
509
  max: "7.125rem",
518
510
  min: "7.125rem"
519
511
  },
520
- component: (e) => Y($, { text: a(e.dueOn) })
512
+ component: (e) => q(Q, { text: r(e.dueOn) })
521
513
  },
522
514
  {
523
515
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.type"),
@@ -526,19 +518,19 @@ function ht() {
526
518
  max: "7.875rem",
527
519
  min: "7.875rem"
528
520
  },
529
- component: (t) => Y(Q, {
521
+ component: (t) => q(Z, {
530
522
  color: "gray",
531
- label: e.t(t.type === i.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
523
+ label: e.t(t.type === s.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
532
524
  })
533
525
  },
534
526
  {
535
527
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
536
- key: n.NET_AMOUNT,
528
+ key: i.NET_AMOUNT,
537
529
  size: {
538
530
  max: "8.25rem",
539
531
  min: "8.25rem"
540
532
  },
541
- component: (e) => Y($, { text: r.formatMonetary(e.total) })
533
+ component: (e) => q(Q, { text: n.formatMonetary(e.total) })
542
534
  },
543
535
  {
544
536
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.vat"),
@@ -547,7 +539,7 @@ function ht() {
547
539
  max: "8.25rem",
548
540
  min: "8.25rem"
549
541
  },
550
- component: (e) => Y($, { text: r.formatMonetary(mt.getVatAmount(e)) })
542
+ component: (e) => q(Q, { text: n.formatMonetary($.getVatAmount(e)) })
551
543
  },
552
544
  {
553
545
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_incl_vat"),
@@ -556,7 +548,7 @@ function ht() {
556
548
  max: "8.25rem",
557
549
  min: "8.25rem"
558
550
  },
559
- component: (e) => Y($, { text: r.formatMonetary(e.grossAmount) })
551
+ component: (e) => q(Q, { text: n.formatMonetary(e.grossAmount) })
560
552
  },
561
553
  {
562
554
  headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_due"),
@@ -565,30 +557,30 @@ function ht() {
565
557
  max: "1fr",
566
558
  min: "8.3125rem"
567
559
  },
568
- component: (e) => Y($, { text: e.balanceDueAmount === null ? null : r.formatMonetary(e.balanceDueAmount) })
560
+ component: (e) => q(Q, { text: e.balanceDueAmount === null ? null : n.formatMonetary(e.balanceDueAmount) })
569
561
  }
570
562
  ]));
571
563
  }
572
564
  //#endregion
573
565
  //#region src/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.ts
574
- function gt() {
575
- let e = A(), t = ce({
566
+ function ut() {
567
+ let e = j(), t = E({
576
568
  actionGroup: { name: "customer-invoices" },
577
569
  filters: [
578
- se({
570
+ T({
579
571
  defaultValue: {
580
- operator: de.INCLUDES,
572
+ operator: ue.INCLUDES,
581
573
  value: []
582
574
  },
583
575
  disableOperators: !0,
584
- displayFn: (t) => e.t(O.getMetadata(t).translationKey),
576
+ displayFn: (t) => e.t(k.getMetadata(t).translationKey),
585
577
  key: "statuses",
586
578
  label: e.t("wise_invoicing.customer_invoice_list.filters.status"),
587
- options: () => Object.values(s)
579
+ options: () => Object.values(r)
588
580
  }),
589
- E({
581
+ D({
590
582
  defaultValue: {
591
- operator: D.IS_BETWEEN,
583
+ operator: O.IS_BETWEEN,
592
584
  value: {
593
585
  from: null,
594
586
  until: null
@@ -598,9 +590,9 @@ function gt() {
598
590
  key: "issuedOnRange",
599
591
  label: e.t("wise_invoicing.invoice.overview.filters.issued_on")
600
592
  }),
601
- E({
593
+ D({
602
594
  defaultValue: {
603
- operator: D.IS_BETWEEN,
595
+ operator: O.IS_BETWEEN,
604
596
  value: {
605
597
  from: null,
606
598
  until: null
@@ -630,37 +622,37 @@ function gt() {
630
622
  }
631
623
  //#endregion
632
624
  //#region src/ui/customer-invoice-list/CustomerInvoiceTable.vue?vue&type=script&setup=true&lang.ts
633
- var _t = { class: "flex min-h-0 flex-1 flex-col" }, vt = {
625
+ var dt = { class: "flex min-h-0 flex-1 flex-col" }, ft = {
634
626
  key: 1,
635
627
  class: "flex min-h-0 flex-1 flex-col"
636
- }, yt = /* @__PURE__ */ R({
628
+ }, pt = /* @__PURE__ */ z({
637
629
  __name: "CustomerInvoiceTable",
638
630
  props: { externalId: {} },
639
631
  setup(e) {
640
- let t = e, r = A(), a = ht(), o = p({ debounceMs: 300 }), { issuedOnRange: s, dueOnRange: c, filters: l, statuses: u } = gt();
641
- le(l);
642
- let d = De({
632
+ let t = e, n = j(), r = lt(), a = p({ debounceMs: 300 }), { issuedOnRange: o, dueOnRange: c, filters: l, statuses: u } = ut();
633
+ ce(l);
634
+ let d = Me({
643
635
  initialValues: [{
644
636
  direction: "desc",
645
- key: n.ISSUED_ON
637
+ key: i.ISSUED_ON
646
638
  }],
647
639
  keys: [
648
- n.SEQUENCE,
649
- n.ISSUED_ON,
650
- n.NET_AMOUNT
640
+ i.SEQUENCE,
641
+ i.ISSUED_ON,
642
+ i.NET_AMOUNT
651
643
  ]
652
644
  }), { isFetching: f, isFetchingNextPage: m, isLoading: h, fetchNextPage: g, result: _ } = ee({ params: {
653
645
  filters: M(() => ({
654
- issuedOnRange: s.value,
646
+ issuedOnRange: o.value,
655
647
  customerExternalIds: [t.externalId],
656
648
  dueOnRange: c.value,
657
649
  statuses: u.value
658
650
  })),
659
- search: o.debouncedSearch,
651
+ search: a.debouncedSearch,
660
652
  sort: d.values
661
- } }), v = M(() => _.value.isOk() ? _.value.getValue().data : []), y = M(() => _.value.isErr() ? _.value.getError() : null), b = M(() => l.activeFilters.value.length), x = M(() => (o.debouncedSearch.value?.trim().length ?? 0) > 0), S = M(() => !h.value && !f.value && y.value === null && v.value.length === 0 && o.search.value === "" && b.value === 0);
653
+ } }), v = M(() => _.value.isOk() ? _.value.getValue().data : []), y = M(() => _.value.isErr() ? _.value.getError() : null), b = M(() => l.activeFilters.value.length), x = M(() => (a.debouncedSearch.value?.trim().length ?? 0) > 0), S = M(() => !h.value && !f.value && y.value === null && v.value.length === 0 && a.search.value === "" && b.value === 0);
662
654
  function C(e) {
663
- return e.type === i.CREDIT_NOTE ? {
655
+ return e.type === s.CREDIT_NOTE ? {
664
656
  name: "invoicing-credit-note-detail",
665
657
  params: { creditNoteUuid: e.uuid }
666
658
  } : {
@@ -668,53 +660,53 @@ var _t = { class: "flex min-h-0 flex-1 flex-col" }, vt = {
668
660
  params: { invoiceUuid: e.uuid }
669
661
  };
670
662
  }
671
- return (e, t) => (z(), F("div", _t, [L(H(K), {
663
+ return (e, t) => (B(), F("div", dt, [R(H(W), {
672
664
  align: "center",
673
665
  justify: "between",
674
666
  class: "border-b border-secondary bg-secondary px-lg py-md"
675
667
  }, {
676
- default: U(() => [L(H(K), {
668
+ default: U(() => [R(H(W), {
677
669
  align: "center",
678
670
  gap: "md",
679
671
  class: "min-w-0"
680
672
  }, {
681
- default: U(() => [L(H(J), {
682
- text: H(r).t("wise_invoicing.customer_invoice_list.title"),
673
+ default: U(() => [R(H(K), {
674
+ text: H(n).t("wise_invoicing.customer_invoice_list.title"),
683
675
  class: "shrink-0 text-sm font-semibold text-primary"
684
- }, null, 8, ["text"]), L(H(ue))]),
676
+ }, null, 8, ["text"]), R(H(le))]),
685
677
  _: 1
686
- }), S.value ? P("", !0) : (z(), N(H(K), {
678
+ }), S.value ? P("", !0) : (B(), N(H(W), {
687
679
  key: 0,
688
680
  justify: "end"
689
681
  }, {
690
- default: U(() => [L(H(Te), {
691
- modelValue: H(o).search.value,
692
- "onUpdate:modelValue": t[0] ||= (e) => H(o).search.value = e,
682
+ default: U(() => [R(H(Ae), {
683
+ modelValue: H(a).search.value,
684
+ "onUpdate:modelValue": t[0] ||= (e) => H(a).search.value = e,
693
685
  label: null,
694
- "icon-left": H(ne),
695
- placeholder: H(r).t("wise_invoicing.common.search"),
686
+ "icon-left": H(re),
687
+ placeholder: H(n).t("wise_invoicing.common.search"),
696
688
  size: "sm",
697
689
  type: "search"
698
690
  }, null, 8, [
699
691
  "modelValue",
700
692
  "icon-left",
701
693
  "placeholder"
702
- ]), L(H(fe))]),
694
+ ]), R(H(de))]),
703
695
  _: 1
704
696
  }))]),
705
697
  _: 1
706
- }), S.value ? (z(), N(H(Se), {
698
+ }), S.value ? (B(), N(H(Ee), {
707
699
  key: 0,
708
- icon: H(re),
709
- title: H(r).t("wise_invoicing.customer_invoice_list.empty_state.title"),
710
- description: H(r).t("wise_invoicing.customer_invoice_list.empty_state.description"),
700
+ icon: H(ie),
701
+ title: H(n).t("wise_invoicing.customer_invoice_list.empty_state.title"),
702
+ description: H(n).t("wise_invoicing.customer_invoice_list.empty_state.description"),
711
703
  class: "py-7xl"
712
704
  }, null, 8, [
713
705
  "icon",
714
706
  "title",
715
707
  "description"
716
- ])) : (z(), F("div", vt, [L(H(Ce), {
717
- columns: H(a),
708
+ ])) : (B(), F("div", ft, [R(H(Oe), {
709
+ columns: H(r),
718
710
  data: v.value,
719
711
  sort: H(d),
720
712
  "is-loading": H(h),
@@ -725,7 +717,7 @@ var _t = { class: "flex min-h-0 flex-1 flex-col" }, vt = {
725
717
  "get-key": (e) => e.uuid,
726
718
  "get-link": C,
727
719
  onNextPage: H(g),
728
- onClearSearch: t[1] ||= (e) => H(o).clear(),
720
+ onClearSearch: t[1] ||= (e) => H(a).clear(),
729
721
  onClearFilters: t[2] ||= (e) => H(l).clearAll()
730
722
  }, null, 8, [
731
723
  "columns",
@@ -740,32 +732,32 @@ var _t = { class: "flex min-h-0 flex-1 flex-col" }, vt = {
740
732
  "onNextPage"
741
733
  ])]))]));
742
734
  }
743
- }), bt = /* @__PURE__ */ R({
735
+ }), mt = /* @__PURE__ */ z({
744
736
  __name: "CustomerInvoiceList",
745
737
  props: { externalId: {} },
746
738
  setup(e) {
747
739
  let t = e, n = M(() => typeof t.externalId == "string" && t.externalId !== "" ? t.externalId : null);
748
- return (e, t) => n.value === null ? P("", !0) : (z(), N(yt, {
740
+ return (e, t) => n.value === null ? P("", !0) : (B(), N(pt, {
749
741
  key: n.value,
750
742
  "external-id": n.value
751
743
  }, null, 8, ["external-id"]));
752
744
  }
753
- }), xt = class {
745
+ }), ht = class {
754
746
  static format(e, t = 0) {
755
747
  return new Intl.NumberFormat(void 0, { maximumFractionDigits: t }).format(e);
756
748
  }
757
749
  static randomBetween(e, t) {
758
750
  return Math.floor(Math.random() * (t - e + 1)) + e;
759
751
  }
760
- }, St = {
752
+ }, gt = {
761
753
  "en-US": {
762
754
  ...t,
763
- ...ke
755
+ ...Pe
764
756
  },
765
757
  "nl-BE": {
766
758
  ...e,
767
- ...Ae
759
+ ...Fe
768
760
  }
769
761
  };
770
762
  //#endregion
771
- export { g as AddressUtil, y as DownloadUtil, b as MonetaryTransformer, xt as NumberUtil, S as Percentage, x as PercentageTransformer, r as SortDirection, ye as SortUtil, a as WiseInvoicingCustomFieldType, v as WiseInvoicingCustomFieldValueUtil, Ye as WiseInvoicingCustomerDunningCasesSection, bt as WiseInvoicingCustomerInvoiceList, oe as WiseInvoicingDunningCaseDetailView, te as WiseInvoicingDunningCaseOverviewView, pe as WiseInvoicingDunningCaseReminderPdfView, h as WiseInvoicingInvoiceOverviewView, ge as WiseInvoicingInvoicePublicPdfViewDataProvider, me as WiseInvoicingReminderSettingsView, _ as addressFormSchema, Ne as creditNoteUuidSchema, f as initWiseInvoicingConfig, Ze as invoiceUuidSchema, je as onCreated, u as toMajorUnits, c as toMinorUnits, l as useCurrencyFormat, o as useDocumentTitle, Xe as useInvoiceNavigateToDetailAction, p as useSearch, m as useSort, ft as useWiseInvoicingApiError, d as useWiseInvoicingConfig, C as useWiseInvoicingDunningCaseIndexQuery, he as useWiseInvoicingInvoicePublicDetailQuery, st as useWiseInvoicingPublicRoutes, Me as useWiseInvoicingQueryInvalidation, ut as useWiseInvoicingRoutes, dt as useWiseInvoicingStandaloneRoutes, Z as wiseInvoicingApiErrorI18nKeys, St as wiseInvoicingLocales, rt as wiseInvoicingSettingsRoutes };
763
+ export { g as AddressUtil, y as DownloadUtil, x as MonetaryTransformer, ht as NumberUtil, C as Percentage, S as PercentageTransformer, n as SortDirection, ye as SortUtil, o as WiseInvoicingCustomFieldType, v as WiseInvoicingCustomFieldValueUtil, Ge as WiseInvoicingCustomerDunningCasesSection, mt as WiseInvoicingCustomerInvoiceList, se as WiseInvoicingDunningCaseDetailView, te as WiseInvoicingDunningCaseOverviewView, fe as WiseInvoicingDunningCaseReminderPdfView, h as WiseInvoicingInvoiceOverviewView, he as WiseInvoicingInvoicePublicPdfViewDataProvider, pe as WiseInvoicingReminderSettingsView, _ as addressFormSchema, Re as creditNoteUuidSchema, f as initWiseInvoicingConfig, qe as invoiceUuidSchema, Ie as onCreated, u as toMajorUnits, c as toMinorUnits, l as useCurrencyFormat, a as useDocumentTitle, Ke as useInvoiceNavigateToDetailAction, p as useSearch, m as useSort, st as useWiseInvoicingApiError, d as useWiseInvoicingConfig, w as useWiseInvoicingDunningCaseIndexQuery, me as useWiseInvoicingInvoicePublicDetailQuery, rt as useWiseInvoicingPublicRoutes, Le as useWiseInvoicingQueryInvalidation, Y as useWiseInvoicingRoutes, ot as useWiseInvoicingStandaloneRoutes, X as wiseInvoicingApiErrorI18nKeys, gt as wiseInvoicingLocales, $e as wiseInvoicingSettingsRoutes };