@wisemen/wise-invoicing-web 0.5.0 → 0.7.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 (93) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-CD0Seawd.js → ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js} +4 -4
  2. package/dist/{BillingDocumentDetailViewDataProvider-BgVYrLu8.js → BillingDocumentDetailViewDataProvider-TX-tovKU.js} +1708 -1576
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-LYvPMzYT.js → BillingDocumentPdf-c-7N80u4.js} +266 -205
  5. package/dist/{CreditNoteDetailViewDataProvider-CpSIbMM2.js → CreditNoteDetailViewDataProvider-BNT0h67Q.js} +196 -189
  6. package/dist/{CreditNotePdfViewDataProvider-Dtnu9gS3.js → CreditNotePdfViewDataProvider-qgOuhUf_.js} +2 -2
  7. package/dist/{CustomFieldValueText-DA0aPKwC.js → CustomFieldValueText-BP4bKQh7.js} +68 -38
  8. package/dist/{DunningCaseDetailViewDataProvider-DutSCkco.js → DunningCaseDetailViewDataProvider-BNByfQTc.js} +13 -13
  9. package/dist/{DunningCaseOverviewView-D8o4VMQD.js → DunningCaseOverviewView-Dvwaw597.js} +23 -23
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js → DunningCaseReminderPdfViewDataProvider-D1avIVyK.js} +1 -1
  11. package/dist/{DunningCaseSendDialog-DGg7bXeZ.js → DunningCaseSendDialog-DwB_jFum.js} +17 -17
  12. package/dist/{InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js → InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js} +2 -2
  13. package/dist/{InvoiceApprovalOverviewView-C4MI4IqD.js → InvoiceApprovalOverviewView-jawT-M1t.js} +213 -213
  14. package/dist/{InvoiceApprovalStatusBadge-BJ3Q18bf.js → InvoiceApprovalStatusBadge-D6Sr6JmN.js} +4 -4
  15. package/dist/{InvoiceApproveDialogDataProvider-CMZ0zDZo.js → InvoiceApproveDialogDataProvider-Bwb8bP1e.js} +16 -16
  16. package/dist/{InvoiceDetailViewDataProvider-k1yIeHYP.js → InvoiceDetailViewDataProvider-B8mMYTQf.js} +648 -642
  17. package/dist/{InvoiceOverviewViewDataProvider-BrgmweRE.js → InvoiceOverviewViewDataProvider-CLgV-Jcv.js} +501 -501
  18. package/dist/{InvoicePdfView-CB8gx8TE.js → InvoicePdfView-C518PlHp.js} +2 -2
  19. package/dist/{InvoicePdfViewDataProvider-Cs4Gqa0h.js → InvoicePdfViewDataProvider-ClfBkHUZ.js} +3 -3
  20. package/dist/{InvoicePublicPdfViewDataProvider-BaSvVJ8W.js → InvoicePublicPdfViewDataProvider-CoXBj3Je.js} +3 -3
  21. package/dist/{InvoicePublicProFormaPdfViewDataProvider-S3N9E91M.js → InvoicePublicProFormaPdfViewDataProvider-WlVD7sw1.js} +3 -3
  22. package/dist/{InvoicingFileUploadProvider-BLBjPKqx.js → InvoicingFileUploadProvider-Dl1LvCPm.js} +2 -2
  23. package/dist/{IssuerSettingsViewDataProvider-BStn0jFI.js → IssuerSettingsViewDataProvider-CXyyCvoZ.js} +51 -46
  24. package/dist/PeppolSettingsViewDataProvider-Cptga29B.js +276 -0
  25. package/dist/{ReminderSettingsViewDataProvider-BotrOSmS.js → ReminderSettingsViewDataProvider-BZgzQIxM.js} +63 -63
  26. package/dist/{api.util-D6m6OY3_.js → api.util-CR2xLnNj.js} +785 -670
  27. package/dist/{billingDocumentDetail.transformer-Da-Nt4bI.js → billingDocumentDetail.transformer-D1f6Nv-U.js} +9 -2
  28. package/dist/client/index.d.ts +2 -2
  29. package/dist/client/sdk.gen.d.ts +4 -1
  30. package/dist/client/types.gen.d.ts +240 -56
  31. package/dist/client/zod.gen.d.ts +4206 -1343
  32. package/dist/composables/invoicingConfig.composable.d.ts +12 -0
  33. package/dist/{creditNoteDetail.query-Yb8TdZNm.js → creditNoteDetail.query-DGeG9_sO.js} +15 -15
  34. package/dist/{dist-DCbLgB6Y.js → dist-BMzyJZTx.js} +258 -114
  35. package/dist/{dist-BpDuRYDT.js → dist-DALBiuub.js} +134 -134
  36. package/dist/{documentTitle.composable-CRJjS6p-.js → documentTitle.composable-RvqrZTBa.js} +28 -26
  37. package/dist/{download.util-B5Q7KUC9.js → download.util-LyRpGWKA.js} +9 -0
  38. package/dist/{i18n.lib-DBxdqkbJ.js → i18n.lib-MOiHLIGc.js} +58 -2
  39. package/dist/index.d.ts +59 -2
  40. package/dist/index.js +232 -212
  41. package/dist/{invoice.service-DWDl9XRh.js → invoice.service-Fv4F4aZq.js} +39 -38
  42. package/dist/{invoiceApproval.service-Fwlxgd9o.js → invoiceApproval.service-DJvXagC7.js} +7 -7
  43. package/dist/{invoiceApprovalStatus.util-q-zHLdFV.js → invoiceApprovalStatus.util-B98WeAf0.js} +2 -2
  44. package/dist/{invoiceCustomer.service-DOexR54S.js → invoiceCustomer.service-CDyrtcwH.js} +6 -6
  45. package/dist/{invoiceDetail.query-B5w0Vlsy.js → invoiceDetail.query-UHE0NCLh.js} +1 -1
  46. package/dist/{invoiceIndexCache.util-CUlp4R7R.js → invoiceIndexCache.util-CLM7FO6z.js} +3 -3
  47. package/dist/{invoicingConfig.composable-CaWQMTP1.js → invoicingConfig.composable-UC7tGtBj.js} +14 -10
  48. package/dist/{issuerSettings.query-BHuLjV9P.js → issuerSettings.query-CoiXblSm.js} +2 -2
  49. package/dist/libs/i18n.lib.d.ts +56 -0
  50. package/dist/locales/en-US.json.d.ts +29 -1
  51. package/dist/locales/nl-BE.json.d.ts +29 -1
  52. package/dist/models/billing-document/billingDocumentAdvancePayment.util.d.ts +9 -0
  53. package/dist/models/billing-document/billingDocumentAdvancePayment.util.spec.d.ts +1 -0
  54. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
  55. package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +0 -1
  56. package/dist/modules/custom-field/components/customFieldList.spec.d.ts +1 -0
  57. package/dist/modules/custom-field/components/customFieldTypeIcon.d.ts +16 -0
  58. package/dist/modules/custom-field/components/customFieldValueText.spec.d.ts +1 -0
  59. package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.d.ts +16 -0
  60. package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.spec.d.ts +1 -0
  61. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.model.d.ts +6 -0
  62. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.spec.d.ts +1 -0
  63. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.d.ts +6 -0
  64. package/dist/modules/custom-field/models/custom-field-definition/customFieldViewKey.model.d.ts +9 -0
  65. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +1 -1
  66. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
  67. package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +3 -1
  68. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +1 -0
  69. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
  70. package/dist/modules/invoice-delivery/api/mutations/peppolConnectionUpdate.mutation.d.ts +6 -0
  71. package/dist/modules/invoice-delivery/api/queries/peppolConnection.query.d.ts +1 -0
  72. package/dist/modules/invoice-delivery/api/query-keys/invoiceDelivery.queryKeys.d.ts +6 -0
  73. package/dist/modules/invoice-delivery/api/services/peppolConnection.service.d.ts +8 -0
  74. package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormApiKeyField.vue.d.ts +8 -0
  75. package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormCompanyField.vue.d.ts +11 -0
  76. package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormEnabledField.vue.d.ts +7 -0
  77. package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormProviderField.vue.d.ts +9 -0
  78. package/dist/modules/invoice-delivery/index.d.ts +1 -0
  79. package/dist/modules/invoice-delivery/models/deliveryReason.util.d.ts +6 -0
  80. package/dist/modules/invoice-delivery/models/peppolConnection.model.d.ts +18 -0
  81. package/dist/modules/invoice-delivery/models/peppolConnection.transformer.d.ts +9 -0
  82. package/dist/modules/invoice-delivery/models/peppolConnectionForm.model.d.ts +9 -0
  83. package/dist/modules/invoice-delivery/use-cases/settings/views/PeppolSettingsView.vue.d.ts +7 -0
  84. package/dist/modules/invoice-delivery/use-cases/settings/views/PeppolSettingsViewDataProvider.vue.d.ts +3 -0
  85. package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
  86. package/dist/{reminderConfig.query-C4J6m4ER.js → reminderConfig.query-aRFzY6uZ.js} +22 -22
  87. package/dist/style.css +1 -1
  88. package/dist/types/queryKey.type.d.ts +2 -1
  89. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +114 -0
  90. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +57 -36
  91. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +6 -1
  92. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.spec.d.ts +1 -0
  93. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,37 +1,37 @@
1
- import { n as e, r as t } from "./i18n.lib-DBxdqkbJ.js";
2
- import "./api.util-D6m6OY3_.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
- 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-CaWQMTP1.js";
6
- import { t as p } from "./search.composable-CU9OpyUB.js";
7
- import { t as m } from "./src-DUSgQTKr.js";
8
- import { r as ee, t as h } from "./InvoiceOverviewViewDataProvider-BrgmweRE.js";
9
- import { n as g } from "./address.transformer-jGddczLV.js";
10
- import { t as _ } from "./addressForm.model-C853zEtX.js";
11
- import { n as v, t as y } from "./download.util-B5Q7KUC9.js";
12
- import { n as b } from "./reminderConfig.query-C4J6m4ER.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-D8o4VMQD.js";
16
- import { J as ne, et as re, k as ie } from "./dist-DCbLgB6Y.js";
17
- import { s as ae } from "./DunningCaseSendDialog-DGg7bXeZ.js";
18
- import { n as oe } from "./dist-Cdbpkd3Y.js";
19
- import { t as se } from "./DunningCaseDetailViewDataProvider-DutSCkco.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-BpDuRYDT.js";
21
- import { t as fe } from "./DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js";
22
- import { t as pe } from "./ReminderSettingsViewDataProvider-BotrOSmS.js";
23
- import { r as me, t as he } from "./InvoicePublicPdfViewDataProvider-BaSvVJ8W.js";
24
- import { n as k } from "./CustomFieldValueText-DA0aPKwC.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";
28
- import { useQueryClient as _e } from "@tanstack/vue-query";
29
- import { QueryClient as ve, SortUtil as ye, useQuery as be } from "@wisemen/vue-core-api-utils";
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";
1
+ import { n as e, r as t } from "./i18n.lib-MOiHLIGc.js";
2
+ import "./api.util-CR2xLnNj.js";
3
+ import { A as n, D as r, b as i, l as a, t as o, u as s, x as c } from "./documentTitle.composable-RvqrZTBa.js";
4
+ import { n as l, r as u, t as d } from "./useCurrencyFormat.composable-MtZaqKnO.js";
5
+ import { n as f, t as p } from "./invoicingConfig.composable-UC7tGtBj.js";
6
+ import { t as m } from "./search.composable-CU9OpyUB.js";
7
+ import { t as h } from "./src-DUSgQTKr.js";
8
+ import { i as ee, r as g, t as _ } from "./InvoiceOverviewViewDataProvider-CLgV-Jcv.js";
9
+ import { n as v } from "./address.transformer-jGddczLV.js";
10
+ import { t as y } from "./addressForm.model-C853zEtX.js";
11
+ import { a as b, i as te, n as x, r as S } from "./CustomFieldValueText-BP4bKQh7.js";
12
+ import { n as C, t as w } from "./download.util-LyRpGWKA.js";
13
+ import { n as T } from "./reminderConfig.query-aRFzY6uZ.js";
14
+ import { n as E } from "./plainDate.transformer-Bhiz9jW7.js";
15
+ import { n as D, t as O } from "./percentage.util-Bl78kSSk.js";
16
+ import { r as k, t as ne } from "./DunningCaseOverviewView-Dvwaw597.js";
17
+ import { F as re, lt as ie, rt as ae } from "./dist-BMzyJZTx.js";
18
+ import { s as oe } from "./DunningCaseSendDialog-DwB_jFum.js";
19
+ import { n as se } from "./dist-Cdbpkd3Y.js";
20
+ import { t as ce } from "./DunningCaseDetailViewDataProvider-BNByfQTc.js";
21
+ import { a as le, i as ue, l as A, n as de, o as fe, r as pe, s as me, t as j } from "./dist-DALBiuub.js";
22
+ import { t as he } from "./DunningCaseReminderPdfViewDataProvider-D1avIVyK.js";
23
+ import { t as ge } from "./ReminderSettingsViewDataProvider-BZgzQIxM.js";
24
+ import { r as _e, t as ve } from "./InvoicePublicPdfViewDataProvider-CoXBj3Je.js";
25
+ import { z as M } from "zod";
26
+ import { useI18n as N } from "vue-i18n";
27
+ import { Fragment as ye, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createTextVNode as be, createVNode as z, defineComponent as B, openBlock as V, toDisplayString as H, unref as U, withCtx as W } from "vue";
28
+ import { useQueryClient as xe } from "@tanstack/vue-query";
29
+ import { QueryClient as Se, SortUtil as Ce, useQuery as we } from "@wisemen/vue-core-api-utils";
30
+ import { RouterLink as Te, useRouter as Ee } from "vue-router";
31
+ import { UIBadge as De, UIDetailListGroup as Oe, UIDetailListGroupSeparator as ke, UIEmptyState as Ae, UIFeaturedIcon as je, UIRowLayout as G, UITable as Me, UITableCell as K, UITableCellText as Ne, UIText as q, UITextField as Pe, createComponent as J, defineTableColumns as Fe, useSort as Ie } from "@wisemen/vue-core-design-system";
32
+ import { createAction as Le } from "@wisemen/vue-core-actions";
33
33
  //#region src/locales/ui-en-US.json
34
- var Pe = {
34
+ var Re = {
35
35
  "component.api_error.default_message": "An unexpected error occurred.",
36
36
  "component.api_error.default_title": "Error",
37
37
  "component.autocomplete.more_results_available": "More results may be available. Narrow your search criteria.",
@@ -93,7 +93,7 @@ var Pe = {
93
93
  "shared.clear": "Clear",
94
94
  "shared.close": "Close",
95
95
  "shared.options": "Options"
96
- }, Fe = {
96
+ }, ze = {
97
97
  "component.api_error.default_message": "Er is een onverwachte fout opgetreden.",
98
98
  "component.api_error.default_title": "Fout",
99
99
  "component.autocomplete.more_results_available": "Er zijn mogelijk meer resultaten beschikbaar. Verfijn uw zoekcriteria.",
@@ -158,13 +158,13 @@ var Pe = {
158
158
  };
159
159
  //#endregion
160
160
  //#region src/composables/created.composable.ts
161
- function Ie(e) {
161
+ function Be(e) {
162
162
  e();
163
163
  }
164
164
  //#endregion
165
165
  //#region src/composables/invoicingQueryInvalidation.composable.ts
166
- function Le() {
167
- let e = new ve(_e());
166
+ function Ve() {
167
+ let e = new Se(xe());
168
168
  async function t() {
169
169
  await e.invalidate("invoiceIndex");
170
170
  }
@@ -172,62 +172,62 @@ function Le() {
172
172
  }
173
173
  //#endregion
174
174
  //#region src/modules/credit-note/models/creditNoteUuid.model.ts
175
- var Re = A.uuid().brand("CreditNoteUuid");
175
+ var He = M.uuid().brand("CreditNoteUuid");
176
176
  //#endregion
177
177
  //#region src/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.ts
178
- function ze(e) {
179
- return be("dunningCaseCustomerByExternalId", {
180
- isEnabled: M(() => e.value !== null),
178
+ function Ue(e) {
179
+ return we("dunningCaseCustomerByExternalId", {
180
+ isEnabled: P(() => e.value !== null),
181
181
  params: { externalId: e },
182
- queryFn: () => ae.getUuidByExternalId(e.value ?? "")
182
+ queryFn: () => oe.getUuidByExternalId(e.value ?? "")
183
183
  });
184
184
  }
185
185
  //#endregion
186
186
  //#region src/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue?vue&type=script&setup=true&lang.ts
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
+ var We = { class: "min-w-0 flex-1" }, Ge = { class: "flex min-w-0 flex-wrap items-center gap-sm" }, Ke = { class: "truncate text-xs font-semibold text-primary" }, qe = {
188
188
  key: 0,
189
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
+ }, Je = { class: "mt-xxs block truncate text-xs text-secondary tabular-nums" }, Ye = /* @__PURE__ */ B({
191
191
  __name: "CustomerDunningCasesSection",
192
192
  props: {
193
193
  customerUuid: {},
194
194
  externalId: {}
195
195
  },
196
196
  setup(e) {
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({
198
- isEnabled: M(() => a.value !== void 0),
197
+ let t = e, n = N(), r = u(), i = Ue(P(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = P(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = k({
198
+ isEnabled: P(() => a.value !== void 0),
199
199
  params: {
200
200
  customerUuid: a,
201
- isOpen: M(() => !0)
201
+ isOpen: P(() => !0)
202
202
  }
203
- }), s = M(() => o.result.value.isOk() ? o.result.value.getValue().data[0] ?? null : null);
203
+ }), s = P(() => o.result.value.isOk() ? o.result.value.getValue().data[0] ?? null : null);
204
204
  function c(e) {
205
205
  return e === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: e });
206
206
  }
207
- return (e, t) => s.value === null ? P("", !0) : (B(), F(ge, { key: 0 }, [R(H(Te)), R(H(we), {
207
+ return (e, t) => s.value === null ? I("", !0) : (V(), L(ye, { key: 0 }, [z(U(ke)), z(U(Oe), {
208
208
  "collapse-options": {
209
209
  isCollapsible: !0,
210
210
  isOpenByDefault: !0,
211
- badge: { label: H(r).formatMonetary(s.value.outstandingBalance) }
211
+ badge: { label: U(r).formatMonetary(s.value.outstandingBalance) }
212
212
  },
213
- label: H(n).t("module.dunning_case.customer.title")
213
+ label: U(n).t("module.dunning_case.customer.title")
214
214
  }, {
215
- default: U(() => [R(H(xe), {
215
+ default: W(() => [z(U(Te), {
216
216
  to: {
217
217
  name: "dunning-case-detail",
218
218
  params: { dunningCaseUuid: s.value.uuid }
219
219
  },
220
220
  class: "flex w-full items-center gap-md rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
221
221
  }, {
222
- default: U(() => [R(H(De), {
223
- icon: H(ie),
222
+ default: W(() => [z(U(je), {
223
+ icon: U(re),
224
224
  color: "brand",
225
225
  size: "md",
226
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, {
227
+ }, null, 8, ["icon"]), R("span", We, [R("span", Ge, [R("span", Ke, H(U(n).t("module.dunning_case.customer.open_case")), 1), s.value.level === null ? I("", !0) : (V(), L("span", qe, [z(T, {
228
228
  level: s.value.level,
229
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)])]),
230
+ }, null, 8, ["level"]), be(" " + H(c(s.value.level)), 1)]))]), R("span", Je, H(U(n).t("module.dunning_case.customer.outstanding", { amount: U(r).formatMonetary(s.value.outstandingBalance) })), 1)])]),
231
231
  _: 1
232
232
  }, 8, ["to"])]),
233
233
  _: 1
@@ -236,9 +236,9 @@ var Be = { class: "min-w-0 flex-1" }, Ve = { class: "flex min-w-0 flex-wrap item
236
236
  });
237
237
  //#endregion
238
238
  //#region src/modules/invoice/actions/invoiceNavigateToDetail.action.ts
239
- function Ke() {
240
- let e = Se();
241
- return Ne({
239
+ function Xe() {
240
+ let e = Ee();
241
+ return Le({
242
242
  id: "invoice-navigate-to-detail",
243
243
  isApplicable: (e) => e.hasTargetedModelsOfType("Invoice"),
244
244
  name: (e) => {
@@ -247,7 +247,7 @@ function Ke() {
247
247
  },
248
248
  execute: (t) => {
249
249
  let n = t.targetedModelOfTypeOrThrow("Invoice");
250
- n.type === s.STANDARD ? e.push({
250
+ n.type === c.STANDARD ? e.push({
251
251
  name: "invoicing-invoice-detail",
252
252
  params: { invoiceUuid: n.uuid }
253
253
  }) : e.push({
@@ -259,113 +259,118 @@ function Ke() {
259
259
  }
260
260
  //#endregion
261
261
  //#region src/modules/invoice/models/invoiceUuid.model.ts
262
- var qe = A.uuid().brand("InvoiceUuid");
262
+ var Ze = M.uuid().brand("InvoiceUuid");
263
263
  //#endregion
264
264
  //#region ../router/src/createRoutes.ts
265
- function J(e) {
265
+ function Y(e) {
266
266
  return e;
267
267
  }
268
268
  //#endregion
269
269
  //#region src/modules/dunning-case/routes/dunningCase.routes.ts
270
- var Je = J([{
270
+ var Qe = Y([{
271
271
  name: "dunning-case-module",
272
272
  path: "/dunning-cases",
273
273
  redirect: { name: "dunning-case-overview" },
274
274
  children: [{
275
275
  name: "dunning-case-overview",
276
276
  path: "",
277
- component: () => import("./DunningCaseOverviewView-D8o4VMQD.js").then((e) => e.n),
277
+ component: () => import("./DunningCaseOverviewView-Dvwaw597.js").then((e) => e.n),
278
278
  meta: { permission: "dunning-case.read" }
279
279
  }, {
280
280
  name: "dunning-case-detail",
281
281
  props: !0,
282
282
  path: ":dunningCaseUuid",
283
- component: () => import("./DunningCaseDetailViewDataProvider-DutSCkco.js").then((e) => e.n),
283
+ component: () => import("./DunningCaseDetailViewDataProvider-BNByfQTc.js").then((e) => e.n),
284
284
  meta: { permission: "dunning-case.read" }
285
285
  }]
286
- }]), Ye = J([{
286
+ }]), $e = Y([{
287
287
  name: "dunning-case-settings-module",
288
288
  path: "payment-reminders",
289
- component: () => import("./ReminderSettingsViewDataProvider-BotrOSmS.js").then((e) => e.n),
289
+ component: () => import("./ReminderSettingsViewDataProvider-BZgzQIxM.js").then((e) => e.n),
290
290
  meta: { permission: "reminder-config.read" }
291
- }]), Xe = J([{
291
+ }]), et = Y([{
292
292
  name: "dunning-case-reminder-pdf",
293
293
  path: "/dunning-case-reminder-pdf",
294
- component: () => import("./DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js").then((e) => e.n)
295
- }]), Ze = J([{
294
+ component: () => import("./DunningCaseReminderPdfViewDataProvider-D1avIVyK.js").then((e) => e.n)
295
+ }]), tt = Y([{
296
296
  name: "invoice-approval-module",
297
297
  path: "/invoicing/approvals",
298
298
  redirect: { name: "invoice-approval-overview" },
299
299
  children: [{
300
300
  name: "invoice-approval-overview",
301
301
  path: "",
302
- component: () => import("./InvoiceApprovalOverviewView-C4MI4IqD.js"),
302
+ component: () => import("./InvoiceApprovalOverviewView-jawT-M1t.js"),
303
303
  meta: { permission: "invoice-approval.read" }
304
304
  }]
305
- }]), Qe = J([{
305
+ }]), nt = Y([{
306
306
  name: "invoice-approval-settings-module",
307
307
  path: "approval-reminders",
308
- component: () => import("./ApprovalReminderSettingsViewDataProvider-CD0Seawd.js"),
308
+ component: () => import("./ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js"),
309
309
  meta: { permission: "reminder-config.read" }
310
- }]), $e = [
310
+ }]), rt = [
311
311
  {
312
312
  name: "invoicing-settings-module",
313
313
  path: "invoicing",
314
314
  redirect: { name: "invoicing-settings-overview" },
315
315
  children: [{
316
+ name: "invoicing-peppol-settings",
317
+ path: "peppol",
318
+ component: () => import("./PeppolSettingsViewDataProvider-Cptga29B.js"),
319
+ meta: { permission: "peppol-connection.update" }
320
+ }, {
316
321
  name: "invoicing-settings-overview",
317
322
  path: "",
318
- component: () => import("./IssuerSettingsViewDataProvider-BStn0jFI.js"),
323
+ component: () => import("./IssuerSettingsViewDataProvider-CXyyCvoZ.js"),
319
324
  meta: { permission: "issuer.read" }
320
325
  }]
321
326
  },
322
- ...Ye,
323
- ...Qe
327
+ ...$e,
328
+ ...nt
324
329
  ];
325
330
  //#endregion
326
331
  //#region src/modules/invoice/routes/invoice.routes.ts
327
- function et(e) {
328
- return J([{
332
+ function it(e) {
333
+ return Y([{
329
334
  name: "invoicing-module",
330
335
  path: "/invoicing/invoices",
331
336
  redirect: { name: "invoicing-invoice-overview" },
332
337
  children: [{
333
338
  name: "invoicing-invoice-overview",
334
339
  path: "",
335
- component: e ?? (() => import("./InvoiceOverviewViewDataProvider-BrgmweRE.js").then((e) => e.n)),
340
+ component: e ?? (() => import("./InvoiceOverviewViewDataProvider-CLgV-Jcv.js").then((e) => e.n)),
336
341
  meta: { permission: "invoice.read" }
337
342
  }, {
338
343
  name: "invoicing-invoice-detail",
339
344
  props: !0,
340
345
  path: ":invoiceUuid",
341
- component: () => import("./InvoiceDetailViewDataProvider-k1yIeHYP.js"),
346
+ component: () => import("./InvoiceDetailViewDataProvider-B8mMYTQf.js"),
342
347
  meta: { permission: "invoice.read" }
343
348
  }]
344
349
  }]);
345
350
  }
346
- var tt = J([{
351
+ var at = Y([{
347
352
  name: "invoicing-invoice-pdf-preview",
348
353
  props: !0,
349
354
  path: "/invoicing/invoices/:invoiceUuid/pdf",
350
- component: () => import("./InvoicePdfViewDataProvider-Cs4Gqa0h.js"),
355
+ component: () => import("./InvoicePdfViewDataProvider-ClfBkHUZ.js"),
351
356
  meta: { permission: "invoice.read" }
352
- }]), nt = J([{
357
+ }]), ot = Y([{
353
358
  name: "invoicing-invoice-public-pdf-preview",
354
359
  path: "/pdf",
355
- component: () => import("./InvoicePublicPdfViewDataProvider-BaSvVJ8W.js").then((e) => e.n)
360
+ component: () => import("./InvoicePublicPdfViewDataProvider-CoXBj3Je.js").then((e) => e.n)
356
361
  }, {
357
362
  name: "invoicing-invoice-public-pro-forma-pdf-preview",
358
363
  path: "/pro-forma-pdf",
359
- component: () => import("./InvoicePublicProFormaPdfViewDataProvider-S3N9E91M.js")
364
+ component: () => import("./InvoicePublicProFormaPdfViewDataProvider-WlVD7sw1.js")
360
365
  }]);
361
366
  //#endregion
362
367
  //#region src/routes/invoicingPublicRoutes.composable.ts
363
- function rt() {
364
- return [...nt, ...Xe];
368
+ function st() {
369
+ return [...ot, ...et];
365
370
  }
366
371
  //#endregion
367
372
  //#region src/modules/credit-note/routes/creditNote.routes.ts
368
- var it = [{
373
+ var ct = [{
369
374
  name: "invoicing-credit-note-module",
370
375
  path: "/invoicing/credit-notes",
371
376
  redirect: { name: "invoicing-invoice-overview" },
@@ -373,33 +378,33 @@ var it = [{
373
378
  name: "invoicing-credit-note-detail",
374
379
  props: !0,
375
380
  path: ":creditNoteUuid",
376
- component: () => import("./CreditNoteDetailViewDataProvider-CpSIbMM2.js"),
381
+ component: () => import("./CreditNoteDetailViewDataProvider-BNT0h67Q.js"),
377
382
  meta: { permission: "invoice.read" }
378
383
  }]
379
- }], at = [{
384
+ }], lt = [{
380
385
  name: "invoicing-credit-note-pdf-preview",
381
386
  props: !0,
382
387
  path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
383
- component: () => import("./CreditNotePdfViewDataProvider-Dtnu9gS3.js"),
388
+ component: () => import("./CreditNotePdfViewDataProvider-qgOuhUf_.js"),
384
389
  meta: { permission: "invoice.read" }
385
390
  }];
386
391
  //#endregion
387
392
  //#region src/routes/invoicingRoutes.composable.ts
388
- function Y(e) {
389
- return J([{
393
+ function ut(e) {
394
+ return Y([{
390
395
  path: "",
391
396
  children: [
392
- ...et(e?.invoiceOverviewComponent),
393
- ...it,
394
- ...Je,
395
- ...Ze
397
+ ...it(e?.invoiceOverviewComponent),
398
+ ...ct,
399
+ ...Qe,
400
+ ...tt
396
401
  ]
397
402
  }]);
398
403
  }
399
404
  //#endregion
400
405
  //#region src/routes/invoicingStandaloneRoutes.composable.ts
401
- function ot() {
402
- return [...at, ...tt];
406
+ function dt() {
407
+ return [...lt, ...at];
403
408
  }
404
409
  //#endregion
405
410
  //#region src/types/apiError.type.ts
@@ -408,13 +413,13 @@ var X = {
408
413
  invoice_line_group_max_depth_exceeded: "wise_invoicing.api_error.invoice_line_group_max_depth_exceeded",
409
414
  invoice_not_editable: "wise_invoicing.api_error.invoice_not_editable"
410
415
  };
411
- function st() {
412
- let e = j();
413
- return { messages: M(() => Object.fromEntries(Object.entries(X).map(([t, n]) => [t, e.t(n)]))) };
416
+ function ft() {
417
+ let e = N();
418
+ return { messages: P(() => Object.fromEntries(Object.entries(X).map(([t, n]) => [t, e.t(n)]))) };
414
419
  }
415
420
  //#endregion
416
421
  //#region src/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue
417
- var Z = /* @__PURE__ */ z({
422
+ var Z = /* @__PURE__ */ B({
418
423
  __name: "CustomerInvoiceTableBadgeCell",
419
424
  props: {
420
425
  color: {},
@@ -422,8 +427,8 @@ var Z = /* @__PURE__ */ z({
422
427
  },
423
428
  setup(e) {
424
429
  let t = e;
425
- return (e, n) => (B(), N(H(G), null, {
426
- default: U(() => [R(H(Ce), {
430
+ return (e, n) => (V(), F(U(K), null, {
431
+ default: W(() => [z(U(De), {
427
432
  label: t.label,
428
433
  color: t.color,
429
434
  size: "sm"
@@ -431,32 +436,32 @@ var Z = /* @__PURE__ */ z({
431
436
  _: 1
432
437
  }));
433
438
  }
434
- }), ct = /* @__PURE__ */ z({
439
+ }), pt = /* @__PURE__ */ B({
435
440
  __name: "CustomerInvoiceTableInvoiceNumberCell",
436
441
  props: { sequence: {} },
437
442
  setup(e) {
438
443
  let t = e;
439
- return (e, n) => (B(), N(H(G), null, {
440
- default: U(() => [R(H(K), {
444
+ return (e, n) => (V(), F(U(K), null, {
445
+ default: W(() => [z(U(q), {
441
446
  text: t.sequence ?? "-",
442
447
  class: "text-xs font-medium text-primary"
443
448
  }, null, 8, ["text"])]),
444
449
  _: 1
445
450
  }));
446
451
  }
447
- }), Q = /* @__PURE__ */ z({
452
+ }), Q = /* @__PURE__ */ B({
448
453
  __name: "CustomerInvoiceTableTextCell",
449
454
  props: { text: {} },
450
455
  setup(e) {
451
456
  let t = e;
452
- return (e, n) => (B(), N(H(G), null, {
453
- default: U(() => [R(H(ke), { text: t.text ?? "-" }, null, 8, ["text"])]),
457
+ return (e, n) => (V(), F(U(K), null, {
458
+ default: W(() => [z(U(Ne), { text: t.text ?? "-" }, null, 8, ["text"])]),
454
459
  _: 1
455
460
  }));
456
461
  }
457
462
  }), $ = class {
458
463
  static getStatusBadgeColor(e) {
459
- return e === r.OVERDUE || e === r.PROTESTED ? "error" : "gray";
464
+ return e === i.OVERDUE || e === i.PROTESTED ? "error" : "gray";
460
465
  }
461
466
  static getVatAmount(e) {
462
467
  return {
@@ -467,121 +472,133 @@ var Z = /* @__PURE__ */ z({
467
472
  };
468
473
  //#endregion
469
474
  //#region src/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.ts
470
- function lt() {
471
- let e = j(), t = oe(), n = l();
472
- function r(e) {
473
- return e === null ? null : t.formatPlainDate(e);
475
+ function mt(e) {
476
+ let t = N(), r = se(), i = u();
477
+ function a(e) {
478
+ return e === null ? null : r.formatPlainDate(e);
474
479
  }
475
- return M(() => je()([
480
+ return P(() => Fe()([
476
481
  {
477
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
478
- key: i.SEQUENCE,
482
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
483
+ key: n.SEQUENCE,
479
484
  size: {
480
485
  max: "9.625rem",
481
486
  min: "9.625rem"
482
487
  },
483
- component: (e) => q(ct, { sequence: e.sequence })
488
+ component: (e) => J(pt, { sequence: e.sequence })
484
489
  },
485
490
  {
486
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.status"),
491
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.status"),
487
492
  key: "status",
488
493
  size: {
489
494
  max: "6.4375rem",
490
495
  min: "6.4375rem"
491
496
  },
492
- component: (t) => q(Z, {
493
- color: $.getStatusBadgeColor(t.status),
494
- label: e.t(k.getMetadata(t.status).translationKey)
497
+ component: (e) => J(Z, {
498
+ color: $.getStatusBadgeColor(e.status),
499
+ label: t.t(x.getMetadata(e.status).translationKey)
495
500
  })
496
501
  },
497
502
  {
498
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
499
- key: i.ISSUED_ON,
503
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
504
+ key: n.ISSUED_ON,
500
505
  size: {
501
506
  max: "8.125rem",
502
507
  min: "8.125rem"
503
508
  },
504
- component: (e) => q(Q, { text: r(e.issuedOn) })
509
+ component: (e) => J(Q, { text: a(e.issuedOn) })
505
510
  },
506
511
  {
507
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.due_date"),
512
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.due_date"),
508
513
  key: "dueOn",
509
514
  size: {
510
515
  max: "7.125rem",
511
516
  min: "7.125rem"
512
517
  },
513
- component: (e) => q(Q, { text: r(e.dueOn) })
518
+ component: (e) => J(Q, { text: a(e.dueOn) })
514
519
  },
515
520
  {
516
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.type"),
521
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.type"),
517
522
  key: "type",
518
523
  size: {
519
524
  max: "7.875rem",
520
525
  min: "7.875rem"
521
526
  },
522
- component: (t) => q(Z, {
527
+ component: (e) => J(Z, {
523
528
  color: "gray",
524
- label: e.t(t.type === s.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
529
+ label: t.t(e.type === c.CREDIT_NOTE ? "wise_invoicing.invoice.type.credit_note" : "wise_invoicing.invoice.type.standard")
525
530
  })
526
531
  },
527
532
  {
528
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
529
- key: i.NET_AMOUNT,
533
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
534
+ key: n.NET_AMOUNT,
530
535
  size: {
531
536
  max: "8.25rem",
532
537
  min: "8.25rem"
533
538
  },
534
- component: (e) => q(Q, { text: n.formatMonetary(e.total) })
539
+ component: (e) => J(Q, { text: i.formatMonetary(e.total) })
535
540
  },
536
541
  {
537
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.vat"),
542
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.vat"),
538
543
  key: "vat",
539
544
  size: {
540
545
  max: "8.25rem",
541
546
  min: "8.25rem"
542
547
  },
543
- component: (e) => q(Q, { text: n.formatMonetary($.getVatAmount(e)) })
548
+ component: (e) => J(Q, { text: i.formatMonetary($.getVatAmount(e)) })
544
549
  },
545
550
  {
546
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_incl_vat"),
551
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_incl_vat"),
547
552
  key: "grossAmount",
548
553
  size: {
549
554
  max: "8.25rem",
550
555
  min: "8.25rem"
551
556
  },
552
- component: (e) => q(Q, { text: n.formatMonetary(e.grossAmount) })
557
+ component: (e) => J(Q, { text: i.formatMonetary(e.grossAmount) })
553
558
  },
554
559
  {
555
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_due"),
560
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_due"),
556
561
  key: "balanceDueAmount",
557
562
  size: {
558
563
  max: "1fr",
559
564
  min: "8.3125rem"
560
565
  },
561
- component: (e) => q(Q, { text: e.balanceDueAmount === null ? null : n.formatMonetary(e.balanceDueAmount) })
562
- }
566
+ component: (e) => J(Q, { text: e.balanceDueAmount === null ? null : i.formatMonetary(e.balanceDueAmount) })
567
+ },
568
+ ...e.customFieldDefinitions().map((e) => ({
569
+ headerLabel: S.getLabel(e, t.locale.value),
570
+ key: `custom-field-${e.uuid}`,
571
+ size: {
572
+ max: "1fr",
573
+ min: "10rem"
574
+ },
575
+ component: (t) => J(g, {
576
+ definition: e,
577
+ value: t.customFields.find((t) => t.definitionUuid === e.uuid)
578
+ })
579
+ }))
563
580
  ]));
564
581
  }
565
582
  //#endregion
566
583
  //#region src/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.ts
567
- function ut() {
568
- let e = j(), t = E({
584
+ function ht() {
585
+ let e = N(), t = ue({
569
586
  actionGroup: { name: "customer-invoices" },
570
587
  filters: [
571
- T({
588
+ le({
572
589
  defaultValue: {
573
- operator: ue.INCLUDES,
590
+ operator: pe.INCLUDES,
574
591
  value: []
575
592
  },
576
593
  disableOperators: !0,
577
- displayFn: (t) => e.t(k.getMetadata(t).translationKey),
594
+ displayFn: (t) => e.t(x.getMetadata(t).translationKey),
578
595
  key: "statuses",
579
596
  label: e.t("wise_invoicing.customer_invoice_list.filters.status"),
580
- options: () => Object.values(r)
597
+ options: () => Object.values(i)
581
598
  }),
582
- D({
599
+ A({
583
600
  defaultValue: {
584
- operator: O.IS_BETWEEN,
601
+ operator: j.IS_BETWEEN,
585
602
  value: {
586
603
  from: null,
587
604
  until: null
@@ -591,9 +608,9 @@ function ut() {
591
608
  key: "issuedOnRange",
592
609
  label: e.t("wise_invoicing.invoice.overview.filters.issued_on")
593
610
  }),
594
- D({
611
+ A({
595
612
  defaultValue: {
596
- operator: O.IS_BETWEEN,
613
+ operator: j.IS_BETWEEN,
597
614
  value: {
598
615
  from: null,
599
616
  until: null
@@ -604,16 +621,16 @@ function ut() {
604
621
  label: e.t("wise_invoicing.invoice.overview.filters.due_on")
605
622
  })
606
623
  ]
607
- }), n = M(() => {
624
+ }), n = P(() => {
608
625
  let e = t.values.value.statuses.value;
609
626
  return e?.length ? e : null;
610
627
  });
611
628
  return {
612
- issuedOnRange: M(() => {
629
+ issuedOnRange: P(() => {
613
630
  let e = t.values.value.issuedOnRange.value;
614
631
  return e.from === null || e.until === null ? null : e;
615
632
  }),
616
- dueOnRange: M(() => {
633
+ dueOnRange: P(() => {
617
634
  let e = t.values.value.dueOnRange.value;
618
635
  return e.from === null || e.until === null ? null : e;
619
636
  }),
@@ -623,37 +640,40 @@ function ut() {
623
640
  }
624
641
  //#endregion
625
642
  //#region src/ui/customer-invoice-list/CustomerInvoiceTable.vue?vue&type=script&setup=true&lang.ts
626
- var dt = { class: "flex min-h-0 flex-1 flex-col" }, ft = {
643
+ var gt = { class: "flex min-h-0 flex-1 flex-col" }, _t = {
627
644
  key: 1,
628
645
  class: "flex min-h-0 flex-1 flex-col"
629
- }, pt = /* @__PURE__ */ z({
646
+ }, vt = /* @__PURE__ */ B({
630
647
  __name: "CustomerInvoiceTable",
631
648
  props: { externalId: {} },
632
649
  setup(e) {
633
- let t = e, n = j(), r = lt(), a = p({ debounceMs: 300 }), { issuedOnRange: o, dueOnRange: c, filters: l, statuses: u } = ut();
634
- ce(l);
635
- let d = Me({
650
+ let t = e, r = N(), i = te(P(() => ({ entityTypes: [a.INVOICE] }))), o = P(() => {
651
+ let e = i.result.value;
652
+ return e.isOk() ? S.filterByView(e.getValue(), b.INVOICE_OVERVIEW) : [];
653
+ }), s = mt({ customFieldDefinitions: () => o.value }), l = m({ debounceMs: 300 }), { issuedOnRange: u, dueOnRange: d, filters: f, statuses: p } = ht();
654
+ de(f);
655
+ let h = Ie({
636
656
  initialValues: [{
637
657
  direction: "desc",
638
- key: i.ISSUED_ON
658
+ key: n.ISSUED_ON
639
659
  }],
640
660
  keys: [
641
- i.SEQUENCE,
642
- i.ISSUED_ON,
643
- i.NET_AMOUNT
661
+ n.SEQUENCE,
662
+ n.ISSUED_ON,
663
+ n.NET_AMOUNT
644
664
  ]
645
- }), { isFetching: f, isFetchingNextPage: m, isLoading: h, fetchNextPage: g, result: _ } = ee({ params: {
646
- filters: M(() => ({
647
- issuedOnRange: o.value,
665
+ }), { isFetching: g, isFetchingNextPage: _, isLoading: v, fetchNextPage: y, result: x } = ee({ params: {
666
+ filters: P(() => ({
667
+ issuedOnRange: u.value,
648
668
  customerExternalIds: [t.externalId],
649
- dueOnRange: c.value,
650
- statuses: u.value
669
+ dueOnRange: d.value,
670
+ statuses: p.value
651
671
  })),
652
- search: a.debouncedSearch,
653
- sort: d.values
654
- } }), 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);
655
- function C(e) {
656
- return e.type === s.CREDIT_NOTE ? {
672
+ search: l.debouncedSearch,
673
+ sort: h.values
674
+ } }), C = P(() => x.value.isOk() ? x.value.getValue().data : []), w = P(() => x.value.isErr() ? x.value.getError() : null), T = P(() => f.activeFilters.value.length), E = P(() => (l.debouncedSearch.value?.trim().length ?? 0) > 0), D = P(() => !v.value && !g.value && w.value === null && C.value.length === 0 && l.search.value === "" && T.value === 0);
675
+ function O(e) {
676
+ return e.type === c.CREDIT_NOTE ? {
657
677
  name: "invoicing-credit-note-detail",
658
678
  params: { creditNoteUuid: e.uuid }
659
679
  } : {
@@ -661,65 +681,65 @@ var dt = { class: "flex min-h-0 flex-1 flex-col" }, ft = {
661
681
  params: { invoiceUuid: e.uuid }
662
682
  };
663
683
  }
664
- return (e, t) => (B(), F("div", dt, [R(H(W), {
684
+ return (e, t) => (V(), L("div", gt, [z(U(G), {
665
685
  align: "center",
666
686
  justify: "between",
667
687
  class: "border-b border-secondary bg-secondary px-lg py-md"
668
688
  }, {
669
- default: U(() => [R(H(W), {
689
+ default: W(() => [z(U(G), {
670
690
  align: "center",
671
691
  gap: "md",
672
692
  class: "min-w-0"
673
693
  }, {
674
- default: U(() => [R(H(K), {
675
- text: H(n).t("wise_invoicing.customer_invoice_list.title"),
694
+ default: W(() => [z(U(q), {
695
+ text: U(r).t("wise_invoicing.customer_invoice_list.title"),
676
696
  class: "shrink-0 text-sm font-semibold text-primary"
677
- }, null, 8, ["text"]), R(H(le))]),
697
+ }, null, 8, ["text"]), z(U(fe))]),
678
698
  _: 1
679
- }), S.value ? P("", !0) : (B(), N(H(W), {
699
+ }), D.value ? I("", !0) : (V(), F(U(G), {
680
700
  key: 0,
681
701
  justify: "end"
682
702
  }, {
683
- default: U(() => [R(H(Ae), {
684
- modelValue: H(a).search.value,
685
- "onUpdate:modelValue": t[0] ||= (e) => H(a).search.value = e,
703
+ default: W(() => [z(U(Pe), {
704
+ modelValue: U(l).search.value,
705
+ "onUpdate:modelValue": t[0] ||= (e) => U(l).search.value = e,
686
706
  label: null,
687
- "icon-left": H(ne),
688
- placeholder: H(n).t("wise_invoicing.common.search"),
707
+ "icon-left": U(ae),
708
+ placeholder: U(r).t("wise_invoicing.common.search"),
689
709
  size: "sm",
690
710
  type: "search"
691
711
  }, null, 8, [
692
712
  "modelValue",
693
713
  "icon-left",
694
714
  "placeholder"
695
- ]), R(H(de))]),
715
+ ]), z(U(me))]),
696
716
  _: 1
697
717
  }))]),
698
718
  _: 1
699
- }), S.value ? (B(), N(H(Ee), {
719
+ }), D.value ? (V(), F(U(Ae), {
700
720
  key: 0,
701
- icon: H(re),
702
- title: H(n).t("wise_invoicing.customer_invoice_list.empty_state.title"),
703
- description: H(n).t("wise_invoicing.customer_invoice_list.empty_state.description"),
721
+ icon: U(ie),
722
+ title: U(r).t("wise_invoicing.customer_invoice_list.empty_state.title"),
723
+ description: U(r).t("wise_invoicing.customer_invoice_list.empty_state.description"),
704
724
  class: "py-7xl"
705
725
  }, null, 8, [
706
726
  "icon",
707
727
  "title",
708
728
  "description"
709
- ])) : (B(), F("div", ft, [R(H(Oe), {
710
- columns: H(r),
711
- data: v.value,
712
- sort: H(d),
713
- "is-loading": H(h),
714
- "is-fetching-next-page": H(m),
715
- error: y.value,
716
- "has-active-search": x.value,
717
- "active-filter-count": b.value,
729
+ ])) : (V(), L("div", _t, [z(U(Me), {
730
+ columns: U(s),
731
+ data: C.value,
732
+ sort: U(h),
733
+ "is-loading": U(v),
734
+ "is-fetching-next-page": U(_),
735
+ error: w.value,
736
+ "has-active-search": E.value,
737
+ "active-filter-count": T.value,
718
738
  "get-key": (e) => e.uuid,
719
- "get-link": C,
720
- onNextPage: H(g),
721
- onClearSearch: t[1] ||= (e) => H(a).clear(),
722
- onClearFilters: t[2] ||= (e) => H(l).clearAll()
739
+ "get-link": O,
740
+ onNextPage: U(y),
741
+ onClearSearch: t[1] ||= (e) => U(l).clear(),
742
+ onClearFilters: t[2] ||= (e) => U(f).clearAll()
723
743
  }, null, 8, [
724
744
  "columns",
725
745
  "data",
@@ -733,32 +753,32 @@ var dt = { class: "flex min-h-0 flex-1 flex-col" }, ft = {
733
753
  "onNextPage"
734
754
  ])]))]));
735
755
  }
736
- }), mt = /* @__PURE__ */ z({
756
+ }), yt = /* @__PURE__ */ B({
737
757
  __name: "CustomerInvoiceList",
738
758
  props: { externalId: {} },
739
759
  setup(e) {
740
- let t = e, n = M(() => typeof t.externalId == "string" && t.externalId !== "" ? t.externalId : null);
741
- return (e, t) => n.value === null ? P("", !0) : (B(), N(pt, {
760
+ let t = e, n = P(() => typeof t.externalId == "string" && t.externalId !== "" ? t.externalId : null);
761
+ return (e, t) => n.value === null ? I("", !0) : (V(), F(vt, {
742
762
  key: n.value,
743
763
  "external-id": n.value
744
764
  }, null, 8, ["external-id"]));
745
765
  }
746
- }), ht = class {
766
+ }), bt = class {
747
767
  static format(e, t = 0) {
748
768
  return new Intl.NumberFormat(void 0, { maximumFractionDigits: t }).format(e);
749
769
  }
750
770
  static randomBetween(e, t) {
751
771
  return Math.floor(Math.random() * (t - e + 1)) + e;
752
772
  }
753
- }, gt = {
773
+ }, xt = {
754
774
  "en-US": {
755
775
  ...t,
756
- ...Pe
776
+ ...Re
757
777
  },
758
778
  "nl-BE": {
759
779
  ...e,
760
- ...Fe
780
+ ...ze
761
781
  }
762
782
  };
763
783
  //#endregion
764
- 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 };
784
+ export { v as AddressUtil, w as DownloadUtil, E as MonetaryTransformer, bt as NumberUtil, O as Percentage, D as PercentageTransformer, r as SortDirection, Ce as SortUtil, a as WiseInvoicingCustomFieldEntityType, s as WiseInvoicingCustomFieldType, C as WiseInvoicingCustomFieldValueUtil, b as WiseInvoicingCustomFieldViewKey, Ye as WiseInvoicingCustomerDunningCasesSection, yt as WiseInvoicingCustomerInvoiceList, ce as WiseInvoicingDunningCaseDetailView, ne as WiseInvoicingDunningCaseOverviewView, he as WiseInvoicingDunningCaseReminderPdfView, _ as WiseInvoicingInvoiceOverviewView, ve as WiseInvoicingInvoicePublicPdfViewDataProvider, ge as WiseInvoicingReminderSettingsView, y as addressFormSchema, He as creditNoteUuidSchema, p as initWiseInvoicingConfig, Ze as invoiceUuidSchema, Be as onCreated, d as toMajorUnits, l as toMinorUnits, u as useCurrencyFormat, o as useDocumentTitle, Xe as useInvoiceNavigateToDetailAction, m as useSearch, h as useSort, ft as useWiseInvoicingApiError, f as useWiseInvoicingConfig, k as useWiseInvoicingDunningCaseIndexQuery, _e as useWiseInvoicingInvoicePublicDetailQuery, st as useWiseInvoicingPublicRoutes, Ve as useWiseInvoicingQueryInvalidation, ut as useWiseInvoicingRoutes, dt as useWiseInvoicingStandaloneRoutes, X as wiseInvoicingApiErrorI18nKeys, xt as wiseInvoicingLocales, rt as wiseInvoicingSettingsRoutes };