@wisemen/wise-invoicing-web 0.6.0 → 0.8.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 (66) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-r9DcFi76.js → ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js} +4 -4
  2. package/dist/{BillingDocumentDetailViewDataProvider-CsqBeAiA.js → BillingDocumentDetailViewDataProvider-V5c_cJwt.js} +1544 -1459
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-thrvzGfh.js → BillingDocumentPdf-BYn3lUyl.js} +8 -7
  5. package/dist/{CreditNoteDetailViewDataProvider-D6IMBwLn.js → CreditNoteDetailViewDataProvider-BqLYeBUQ.js} +230 -223
  6. package/dist/CreditNotePdfViewDataProvider-Co4R7QJx.js +22 -0
  7. package/dist/{CustomFieldValueText-BRpCwCqJ.js → CustomFieldValueText-BP4bKQh7.js} +53 -38
  8. package/dist/{DunningCaseDetailViewDataProvider-DTotyRX8.js → DunningCaseDetailViewDataProvider-BNByfQTc.js} +13 -13
  9. package/dist/{DunningCaseOverviewView-kDq7UY5e.js → DunningCaseOverviewView-Dvwaw597.js} +23 -23
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-DgKA-7lX.js → DunningCaseReminderPdfViewDataProvider-D1avIVyK.js} +1 -1
  11. package/dist/{DunningCaseSendDialog-DVfBVtgr.js → DunningCaseSendDialog-DwB_jFum.js} +8 -8
  12. package/dist/{InvoiceApprovalOutOfSyncIndicator-DPlrqqOs.js → InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js} +2 -2
  13. package/dist/{InvoiceApprovalOverviewView-B6naRElx.js → InvoiceApprovalOverviewView-jawT-M1t.js} +213 -213
  14. package/dist/{InvoiceApprovalStatusBadge-CDc_Pwsm.js → InvoiceApprovalStatusBadge-D6Sr6JmN.js} +4 -4
  15. package/dist/{InvoiceApproveDialogDataProvider-CK6ij8X1.js → InvoiceApproveDialogDataProvider-Bwb8bP1e.js} +16 -16
  16. package/dist/{InvoiceDetailViewDataProvider-BKurQPAV.js → InvoiceDetailViewDataProvider-DSG6VnDh.js} +592 -586
  17. package/dist/{InvoiceOverviewViewDataProvider-ChoyCi5L.js → InvoiceOverviewViewDataProvider-CLgV-Jcv.js} +440 -440
  18. package/dist/{InvoicePdfView-DLEKQ29O.js → InvoicePdfView-BIDvRCr4.js} +2 -2
  19. package/dist/{InvoicePdfViewDataProvider-C-b7iXiH.js → InvoicePdfViewDataProvider-Ct1HBqqa.js} +3 -3
  20. package/dist/{InvoicePublicPdfViewDataProvider-DZ4WQsvi.js → InvoicePublicPdfViewDataProvider-DS0Q-BEX.js} +3 -3
  21. package/dist/{InvoicePublicProFormaPdfViewDataProvider-CsF8fPlp.js → InvoicePublicProFormaPdfViewDataProvider-DqWKGeAm.js} +3 -3
  22. package/dist/{InvoicingFileUploadProvider-t64Qiyn6.js → InvoicingFileUploadProvider-Dl1LvCPm.js} +2 -2
  23. package/dist/{IssuerSettingsViewDataProvider-Cc8R6ekd.js → IssuerSettingsViewDataProvider-CXyyCvoZ.js} +3 -3
  24. package/dist/{PeppolSettingsViewDataProvider-DpVIfFVG.js → PeppolSettingsViewDataProvider-Cptga29B.js} +2 -2
  25. package/dist/{ReminderSettingsViewDataProvider-QOh3LpMX.js → ReminderSettingsViewDataProvider-BZgzQIxM.js} +4 -4
  26. package/dist/{api.util-Do9BEwG4.js → api.util-CR2xLnNj.js} +536 -515
  27. package/dist/{billingDocumentDetail.transformer-BAOQ3Zrg.js → billingDocumentDetail.transformer-D1f6Nv-U.js} +8 -2
  28. package/dist/client/index.d.ts +1 -1
  29. package/dist/client/types.gen.d.ts +23 -17
  30. package/dist/client/zod.gen.d.ts +360 -0
  31. package/dist/composables/invoicingConfig.composable.d.ts +16 -3
  32. package/dist/{creditNoteDetail.query-C1rr54m1.js → creditNoteDetail.query-DGeG9_sO.js} +3 -3
  33. package/dist/{dist-DCbLgB6Y.js → dist-BMzyJZTx.js} +258 -114
  34. package/dist/{dist-CZAOPudv.js → dist-DALBiuub.js} +133 -133
  35. package/dist/{documentTitle.composable-C3k1m0Nz.js → documentTitle.composable-RvqrZTBa.js} +1 -1
  36. package/dist/{download.util-B5Q7KUC9.js → download.util-LyRpGWKA.js} +9 -0
  37. package/dist/{i18n.lib-Bkz_R954.js → i18n.lib-MOiHLIGc.js} +4 -0
  38. package/dist/index.d.ts +6 -2
  39. package/dist/index.js +219 -204
  40. package/dist/{invoice.service-DrI2ULIR.js → invoice.service-Fv4F4aZq.js} +3 -3
  41. package/dist/{invoiceApproval.service-Dpxiru7l.js → invoiceApproval.service-DJvXagC7.js} +2 -2
  42. package/dist/{invoiceApprovalStatus.util-CdOAcPzv.js → invoiceApprovalStatus.util-B98WeAf0.js} +2 -2
  43. package/dist/{invoiceCustomer.service-RRFosiYR.js → invoiceCustomer.service-CDyrtcwH.js} +2 -2
  44. package/dist/{invoiceDetail.query-BmtHdfj0.js → invoiceDetail.query-UHE0NCLh.js} +1 -1
  45. package/dist/{invoiceIndexCache.util-DKtJorc_.js → invoiceIndexCache.util-CLM7FO6z.js} +3 -3
  46. package/dist/{invoicingConfig.composable-CMTYHHS9.js → invoicingConfig.composable-UC7tGtBj.js} +14 -10
  47. package/dist/{issuerSettings.query-CKDhoStt.js → issuerSettings.query-CoiXblSm.js} +2 -2
  48. package/dist/libs/i18n.lib.d.ts +4 -0
  49. package/dist/locales/en-US.json.d.ts +2 -0
  50. package/dist/locales/nl-BE.json.d.ts +2 -0
  51. package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +0 -1
  52. package/dist/modules/custom-field/components/customFieldTypeIcon.d.ts +16 -0
  53. package/dist/modules/custom-field/components/customFieldValueText.spec.d.ts +1 -0
  54. package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.d.ts +16 -0
  55. package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.spec.d.ts +1 -0
  56. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +1 -1
  57. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
  58. package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +1 -0
  59. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
  60. package/dist/{reminderConfig.query-yImUS5qt.js → reminderConfig.query-aRFzY6uZ.js} +2 -2
  61. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +114 -0
  62. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +57 -36
  63. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +6 -1
  64. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.spec.d.ts +1 -0
  65. package/package.json +1 -1
  66. package/dist/CreditNotePdfViewDataProvider-C4z1NE3Q.js +0 -21
package/dist/index.js CHANGED
@@ -1,37 +1,37 @@
1
- import { n as e, r as t } from "./i18n.lib-Bkz_R954.js";
2
- import "./api.util-Do9BEwG4.js";
3
- import { A as n, D as r, b as i, t as a, u as o, x as s } from "./documentTitle.composable-C3k1m0Nz.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-CMTYHHS9.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-ChoyCi5L.js";
9
- import { n as g } from "./address.transformer-jGddczLV.js";
10
- import { t as _ } from "./addressForm.model-C853zEtX.js";
11
- import { a as v, n as y } from "./CustomFieldValueText-BRpCwCqJ.js";
12
- import { n as b, t as x } from "./download.util-B5Q7KUC9.js";
13
- import { n as S } from "./reminderConfig.query-yImUS5qt.js";
14
- import { n as C } from "./plainDate.transformer-Bhiz9jW7.js";
15
- import { n as te, t as ne } from "./percentage.util-Bl78kSSk.js";
16
- import { r as w, t as re } from "./DunningCaseOverviewView-kDq7UY5e.js";
17
- import { J as ie, et as T, k as E } from "./dist-DCbLgB6Y.js";
18
- import { s as D } from "./DunningCaseSendDialog-DVfBVtgr.js";
19
- import { n as O } from "./dist-Cdbpkd3Y.js";
20
- import { t as ae } from "./DunningCaseDetailViewDataProvider-DTotyRX8.js";
21
- import { a as oe, i as se, l as k, n as ce, o as le, r as ue, s as de, t as A } from "./dist-CZAOPudv.js";
22
- import { t as fe } from "./DunningCaseReminderPdfViewDataProvider-DgKA-7lX.js";
23
- import { t as pe } from "./ReminderSettingsViewDataProvider-QOh3LpMX.js";
24
- import { r as me, t as he } from "./InvoicePublicPdfViewDataProvider-DZ4WQsvi.js";
25
- import { z as j } from "zod";
26
- import { useI18n as M } from "vue-i18n";
27
- import { Fragment as ge, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as L, createTextVNode as _e, createVNode as R, defineComponent as z, openBlock as B, toDisplayString as V, unref as H, withCtx as U } from "vue";
28
- import { useQueryClient as ve } from "@tanstack/vue-query";
29
- import { QueryClient as ye, SortUtil as be, useQuery as xe } from "@wisemen/vue-core-api-utils";
30
- import { RouterLink as Se, useRouter as Ce } from "vue-router";
31
- import { UIBadge as we, UIDetailListGroup as Te, UIDetailListGroupSeparator as Ee, UIEmptyState as De, UIFeaturedIcon as Oe, UIRowLayout as W, UITable as ke, UITableCell as G, UITableCellText as Ae, UIText as K, UITextField as je, createComponent as q, defineTableColumns as Me, useSort as Ne } from "@wisemen/vue-core-design-system";
32
- import { createAction as Pe } 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-DS0Q-BEX.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 Fe = {
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 Fe = {
93
93
  "shared.clear": "Clear",
94
94
  "shared.close": "Close",
95
95
  "shared.options": "Options"
96
- }, Ie = {
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 Fe = {
158
158
  };
159
159
  //#endregion
160
160
  //#region src/composables/created.composable.ts
161
- function Le(e) {
161
+ function Be(e) {
162
162
  e();
163
163
  }
164
164
  //#endregion
165
165
  //#region src/composables/invoicingQueryInvalidation.composable.ts
166
- function Re() {
167
- let e = new ye(ve());
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 Re() {
172
172
  }
173
173
  //#endregion
174
174
  //#region src/modules/credit-note/models/creditNoteUuid.model.ts
175
- var ze = j.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 Be(e) {
179
- return xe("dunningCaseCustomerByExternalId", {
180
- isEnabled: N(() => e.value !== null),
178
+ function Ue(e) {
179
+ return we("dunningCaseCustomerByExternalId", {
180
+ isEnabled: P(() => e.value !== null),
181
181
  params: { externalId: e },
182
- queryFn: () => D.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 Ve = { class: "min-w-0 flex-1" }, He = { class: "flex min-w-0 flex-wrap items-center gap-sm" }, Ue = { class: "truncate text-xs font-semibold text-primary" }, We = {
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
- }, Ge = { class: "mt-xxs block truncate text-xs text-secondary tabular-nums" }, Ke = /* @__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 = M(), r = l(), i = Be(N(() => t.customerUuid === void 0 ? t.externalId ?? null : null)), a = N(() => t.customerUuid === void 0 ? i.result.value.isOk() ? i.result.value.getValue() ?? void 0 : void 0 : t.customerUuid), o = w({
198
- isEnabled: N(() => 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: N(() => !0)
201
+ isOpen: P(() => !0)
202
202
  }
203
- }), s = N(() => 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 ? F("", !0) : (B(), I(ge, { key: 0 }, [R(H(Ee)), R(H(Te), {
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(Se), {
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(Oe), {
223
- icon: H(E),
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"]), L("span", Ve, [L("span", He, [L("span", Ue, V(H(n).t("module.dunning_case.customer.open_case")), 1), s.value.level === null ? F("", !0) : (B(), I("span", We, [R(S, {
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"]), _e(" " + V(c(s.value.level)), 1)]))]), L("span", Ge, 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 Ve = { class: "min-w-0 flex-1" }, He = { 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 qe() {
240
- let e = Ce();
241
- return Pe({
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 qe() {
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,55 +259,55 @@ function qe() {
259
259
  }
260
260
  //#endregion
261
261
  //#region src/modules/invoice/models/invoiceUuid.model.ts
262
- var Je = j.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 Ye = 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-kDq7UY5e.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-DTotyRX8.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
- }]), Xe = J([{
286
+ }]), $e = Y([{
287
287
  name: "dunning-case-settings-module",
288
288
  path: "payment-reminders",
289
- component: () => import("./ReminderSettingsViewDataProvider-QOh3LpMX.js").then((e) => e.n),
289
+ component: () => import("./ReminderSettingsViewDataProvider-BZgzQIxM.js").then((e) => e.n),
290
290
  meta: { permission: "reminder-config.read" }
291
- }]), Ze = J([{
291
+ }]), et = Y([{
292
292
  name: "dunning-case-reminder-pdf",
293
293
  path: "/dunning-case-reminder-pdf",
294
- component: () => import("./DunningCaseReminderPdfViewDataProvider-DgKA-7lX.js").then((e) => e.n)
295
- }]), Qe = 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-B6naRElx.js"),
302
+ component: () => import("./InvoiceApprovalOverviewView-jawT-M1t.js"),
303
303
  meta: { permission: "invoice-approval.read" }
304
304
  }]
305
- }]), $e = J([{
305
+ }]), nt = Y([{
306
306
  name: "invoice-approval-settings-module",
307
307
  path: "approval-reminders",
308
- component: () => import("./ApprovalReminderSettingsViewDataProvider-r9DcFi76.js"),
308
+ component: () => import("./ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js"),
309
309
  meta: { permission: "reminder-config.read" }
310
- }]), et = [
310
+ }]), rt = [
311
311
  {
312
312
  name: "invoicing-settings-module",
313
313
  path: "invoicing",
@@ -315,62 +315,62 @@ var Ye = J([{
315
315
  children: [{
316
316
  name: "invoicing-peppol-settings",
317
317
  path: "peppol",
318
- component: () => import("./PeppolSettingsViewDataProvider-DpVIfFVG.js"),
318
+ component: () => import("./PeppolSettingsViewDataProvider-Cptga29B.js"),
319
319
  meta: { permission: "peppol-connection.update" }
320
320
  }, {
321
321
  name: "invoicing-settings-overview",
322
322
  path: "",
323
- component: () => import("./IssuerSettingsViewDataProvider-Cc8R6ekd.js"),
323
+ component: () => import("./IssuerSettingsViewDataProvider-CXyyCvoZ.js"),
324
324
  meta: { permission: "issuer.read" }
325
325
  }]
326
326
  },
327
- ...Xe,
328
- ...$e
327
+ ...$e,
328
+ ...nt
329
329
  ];
330
330
  //#endregion
331
331
  //#region src/modules/invoice/routes/invoice.routes.ts
332
- function tt(e) {
333
- return J([{
332
+ function it(e) {
333
+ return Y([{
334
334
  name: "invoicing-module",
335
335
  path: "/invoicing/invoices",
336
336
  redirect: { name: "invoicing-invoice-overview" },
337
337
  children: [{
338
338
  name: "invoicing-invoice-overview",
339
339
  path: "",
340
- component: e ?? (() => import("./InvoiceOverviewViewDataProvider-ChoyCi5L.js").then((e) => e.n)),
340
+ component: e ?? (() => import("./InvoiceOverviewViewDataProvider-CLgV-Jcv.js").then((e) => e.n)),
341
341
  meta: { permission: "invoice.read" }
342
342
  }, {
343
343
  name: "invoicing-invoice-detail",
344
344
  props: !0,
345
345
  path: ":invoiceUuid",
346
- component: () => import("./InvoiceDetailViewDataProvider-BKurQPAV.js"),
346
+ component: () => import("./InvoiceDetailViewDataProvider-DSG6VnDh.js"),
347
347
  meta: { permission: "invoice.read" }
348
348
  }]
349
349
  }]);
350
350
  }
351
- var nt = J([{
351
+ var at = Y([{
352
352
  name: "invoicing-invoice-pdf-preview",
353
353
  props: !0,
354
354
  path: "/invoicing/invoices/:invoiceUuid/pdf",
355
- component: () => import("./InvoicePdfViewDataProvider-C-b7iXiH.js"),
355
+ component: () => import("./InvoicePdfViewDataProvider-Ct1HBqqa.js"),
356
356
  meta: { permission: "invoice.read" }
357
- }]), rt = J([{
357
+ }]), ot = Y([{
358
358
  name: "invoicing-invoice-public-pdf-preview",
359
359
  path: "/pdf",
360
- component: () => import("./InvoicePublicPdfViewDataProvider-DZ4WQsvi.js").then((e) => e.n)
360
+ component: () => import("./InvoicePublicPdfViewDataProvider-DS0Q-BEX.js").then((e) => e.n)
361
361
  }, {
362
362
  name: "invoicing-invoice-public-pro-forma-pdf-preview",
363
363
  path: "/pro-forma-pdf",
364
- component: () => import("./InvoicePublicProFormaPdfViewDataProvider-CsF8fPlp.js")
364
+ component: () => import("./InvoicePublicProFormaPdfViewDataProvider-DqWKGeAm.js")
365
365
  }]);
366
366
  //#endregion
367
367
  //#region src/routes/invoicingPublicRoutes.composable.ts
368
- function it() {
369
- return [...rt, ...Ze];
368
+ function st() {
369
+ return [...ot, ...et];
370
370
  }
371
371
  //#endregion
372
372
  //#region src/modules/credit-note/routes/creditNote.routes.ts
373
- var at = [{
373
+ var ct = [{
374
374
  name: "invoicing-credit-note-module",
375
375
  path: "/invoicing/credit-notes",
376
376
  redirect: { name: "invoicing-invoice-overview" },
@@ -378,33 +378,33 @@ var at = [{
378
378
  name: "invoicing-credit-note-detail",
379
379
  props: !0,
380
380
  path: ":creditNoteUuid",
381
- component: () => import("./CreditNoteDetailViewDataProvider-D6IMBwLn.js"),
381
+ component: () => import("./CreditNoteDetailViewDataProvider-BqLYeBUQ.js"),
382
382
  meta: { permission: "invoice.read" }
383
383
  }]
384
- }], Y = [{
384
+ }], lt = [{
385
385
  name: "invoicing-credit-note-pdf-preview",
386
386
  props: !0,
387
387
  path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
388
- component: () => import("./CreditNotePdfViewDataProvider-C4z1NE3Q.js"),
388
+ component: () => import("./CreditNotePdfViewDataProvider-Co4R7QJx.js"),
389
389
  meta: { permission: "invoice.read" }
390
390
  }];
391
391
  //#endregion
392
392
  //#region src/routes/invoicingRoutes.composable.ts
393
- function ot(e) {
394
- return J([{
393
+ function ut(e) {
394
+ return Y([{
395
395
  path: "",
396
396
  children: [
397
- ...tt(e?.invoiceOverviewComponent),
398
- ...at,
399
- ...Ye,
400
- ...Qe
397
+ ...it(e?.invoiceOverviewComponent),
398
+ ...ct,
399
+ ...Qe,
400
+ ...tt
401
401
  ]
402
402
  }]);
403
403
  }
404
404
  //#endregion
405
405
  //#region src/routes/invoicingStandaloneRoutes.composable.ts
406
- function st() {
407
- return [...Y, ...nt];
406
+ function dt() {
407
+ return [...lt, ...at];
408
408
  }
409
409
  //#endregion
410
410
  //#region src/types/apiError.type.ts
@@ -413,13 +413,13 @@ var X = {
413
413
  invoice_line_group_max_depth_exceeded: "wise_invoicing.api_error.invoice_line_group_max_depth_exceeded",
414
414
  invoice_not_editable: "wise_invoicing.api_error.invoice_not_editable"
415
415
  };
416
- function ct() {
417
- let e = M();
418
- return { messages: N(() => 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)]))) };
419
419
  }
420
420
  //#endregion
421
421
  //#region src/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue
422
- var Z = /* @__PURE__ */ z({
422
+ var Z = /* @__PURE__ */ B({
423
423
  __name: "CustomerInvoiceTableBadgeCell",
424
424
  props: {
425
425
  color: {},
@@ -427,8 +427,8 @@ var Z = /* @__PURE__ */ z({
427
427
  },
428
428
  setup(e) {
429
429
  let t = e;
430
- return (e, n) => (B(), P(H(G), null, {
431
- default: U(() => [R(H(we), {
430
+ return (e, n) => (V(), F(U(K), null, {
431
+ default: W(() => [z(U(De), {
432
432
  label: t.label,
433
433
  color: t.color,
434
434
  size: "sm"
@@ -436,26 +436,26 @@ var Z = /* @__PURE__ */ z({
436
436
  _: 1
437
437
  }));
438
438
  }
439
- }), lt = /* @__PURE__ */ z({
439
+ }), pt = /* @__PURE__ */ B({
440
440
  __name: "CustomerInvoiceTableInvoiceNumberCell",
441
441
  props: { sequence: {} },
442
442
  setup(e) {
443
443
  let t = e;
444
- return (e, n) => (B(), P(H(G), null, {
445
- default: U(() => [R(H(K), {
444
+ return (e, n) => (V(), F(U(K), null, {
445
+ default: W(() => [z(U(q), {
446
446
  text: t.sequence ?? "-",
447
447
  class: "text-xs font-medium text-primary"
448
448
  }, null, 8, ["text"])]),
449
449
  _: 1
450
450
  }));
451
451
  }
452
- }), Q = /* @__PURE__ */ z({
452
+ }), Q = /* @__PURE__ */ B({
453
453
  __name: "CustomerInvoiceTableTextCell",
454
454
  props: { text: {} },
455
455
  setup(e) {
456
456
  let t = e;
457
- return (e, n) => (B(), P(H(G), null, {
458
- default: U(() => [R(H(Ae), { 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"])]),
459
459
  _: 1
460
460
  }));
461
461
  }
@@ -472,121 +472,133 @@ var Z = /* @__PURE__ */ z({
472
472
  };
473
473
  //#endregion
474
474
  //#region src/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.ts
475
- function ut() {
476
- let e = M(), t = O(), r = l();
477
- function i(e) {
478
- 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);
479
479
  }
480
- return N(() => Me()([
480
+ return P(() => Fe()([
481
481
  {
482
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
482
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
483
483
  key: n.SEQUENCE,
484
484
  size: {
485
485
  max: "9.625rem",
486
486
  min: "9.625rem"
487
487
  },
488
- component: (e) => q(lt, { sequence: e.sequence })
488
+ component: (e) => J(pt, { sequence: e.sequence })
489
489
  },
490
490
  {
491
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.status"),
491
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.status"),
492
492
  key: "status",
493
493
  size: {
494
494
  max: "6.4375rem",
495
495
  min: "6.4375rem"
496
496
  },
497
- component: (t) => q(Z, {
498
- color: $.getStatusBadgeColor(t.status),
499
- label: e.t(y.getMetadata(t.status).translationKey)
497
+ component: (e) => J(Z, {
498
+ color: $.getStatusBadgeColor(e.status),
499
+ label: t.t(x.getMetadata(e.status).translationKey)
500
500
  })
501
501
  },
502
502
  {
503
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
503
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.invoice_date"),
504
504
  key: n.ISSUED_ON,
505
505
  size: {
506
506
  max: "8.125rem",
507
507
  min: "8.125rem"
508
508
  },
509
- component: (e) => q(Q, { text: i(e.issuedOn) })
509
+ component: (e) => J(Q, { text: a(e.issuedOn) })
510
510
  },
511
511
  {
512
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.due_date"),
512
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.due_date"),
513
513
  key: "dueOn",
514
514
  size: {
515
515
  max: "7.125rem",
516
516
  min: "7.125rem"
517
517
  },
518
- component: (e) => q(Q, { text: i(e.dueOn) })
518
+ component: (e) => J(Q, { text: a(e.dueOn) })
519
519
  },
520
520
  {
521
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.type"),
521
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.type"),
522
522
  key: "type",
523
523
  size: {
524
524
  max: "7.875rem",
525
525
  min: "7.875rem"
526
526
  },
527
- component: (t) => q(Z, {
527
+ component: (e) => J(Z, {
528
528
  color: "gray",
529
- 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")
530
530
  })
531
531
  },
532
532
  {
533
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
533
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_excl_vat"),
534
534
  key: n.NET_AMOUNT,
535
535
  size: {
536
536
  max: "8.25rem",
537
537
  min: "8.25rem"
538
538
  },
539
- component: (e) => q(Q, { text: r.formatMonetary(e.total) })
539
+ component: (e) => J(Q, { text: i.formatMonetary(e.total) })
540
540
  },
541
541
  {
542
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.vat"),
542
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.vat"),
543
543
  key: "vat",
544
544
  size: {
545
545
  max: "8.25rem",
546
546
  min: "8.25rem"
547
547
  },
548
- component: (e) => q(Q, { text: r.formatMonetary($.getVatAmount(e)) })
548
+ component: (e) => J(Q, { text: i.formatMonetary($.getVatAmount(e)) })
549
549
  },
550
550
  {
551
- 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"),
552
552
  key: "grossAmount",
553
553
  size: {
554
554
  max: "8.25rem",
555
555
  min: "8.25rem"
556
556
  },
557
- component: (e) => q(Q, { text: r.formatMonetary(e.grossAmount) })
557
+ component: (e) => J(Q, { text: i.formatMonetary(e.grossAmount) })
558
558
  },
559
559
  {
560
- headerLabel: e.t("wise_invoicing.customer_invoice_list.columns.amount_due"),
560
+ headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.amount_due"),
561
561
  key: "balanceDueAmount",
562
562
  size: {
563
563
  max: "1fr",
564
564
  min: "8.3125rem"
565
565
  },
566
- component: (e) => q(Q, { text: e.balanceDueAmount === null ? null : r.formatMonetary(e.balanceDueAmount) })
567
- }
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
+ }))
568
580
  ]));
569
581
  }
570
582
  //#endregion
571
583
  //#region src/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.ts
572
- function dt() {
573
- let e = M(), t = se({
584
+ function ht() {
585
+ let e = N(), t = ue({
574
586
  actionGroup: { name: "customer-invoices" },
575
587
  filters: [
576
- oe({
588
+ le({
577
589
  defaultValue: {
578
- operator: ue.INCLUDES,
590
+ operator: pe.INCLUDES,
579
591
  value: []
580
592
  },
581
593
  disableOperators: !0,
582
- displayFn: (t) => e.t(y.getMetadata(t).translationKey),
594
+ displayFn: (t) => e.t(x.getMetadata(t).translationKey),
583
595
  key: "statuses",
584
596
  label: e.t("wise_invoicing.customer_invoice_list.filters.status"),
585
597
  options: () => Object.values(i)
586
598
  }),
587
- k({
599
+ A({
588
600
  defaultValue: {
589
- operator: A.IS_BETWEEN,
601
+ operator: j.IS_BETWEEN,
590
602
  value: {
591
603
  from: null,
592
604
  until: null
@@ -596,9 +608,9 @@ function dt() {
596
608
  key: "issuedOnRange",
597
609
  label: e.t("wise_invoicing.invoice.overview.filters.issued_on")
598
610
  }),
599
- k({
611
+ A({
600
612
  defaultValue: {
601
- operator: A.IS_BETWEEN,
613
+ operator: j.IS_BETWEEN,
602
614
  value: {
603
615
  from: null,
604
616
  until: null
@@ -609,16 +621,16 @@ function dt() {
609
621
  label: e.t("wise_invoicing.invoice.overview.filters.due_on")
610
622
  })
611
623
  ]
612
- }), n = N(() => {
624
+ }), n = P(() => {
613
625
  let e = t.values.value.statuses.value;
614
626
  return e?.length ? e : null;
615
627
  });
616
628
  return {
617
- issuedOnRange: N(() => {
629
+ issuedOnRange: P(() => {
618
630
  let e = t.values.value.issuedOnRange.value;
619
631
  return e.from === null || e.until === null ? null : e;
620
632
  }),
621
- dueOnRange: N(() => {
633
+ dueOnRange: P(() => {
622
634
  let e = t.values.value.dueOnRange.value;
623
635
  return e.from === null || e.until === null ? null : e;
624
636
  }),
@@ -628,16 +640,19 @@ function dt() {
628
640
  }
629
641
  //#endregion
630
642
  //#region src/ui/customer-invoice-list/CustomerInvoiceTable.vue?vue&type=script&setup=true&lang.ts
631
- var ft = { class: "flex min-h-0 flex-1 flex-col" }, pt = {
643
+ var gt = { class: "flex min-h-0 flex-1 flex-col" }, _t = {
632
644
  key: 1,
633
645
  class: "flex min-h-0 flex-1 flex-col"
634
- }, mt = /* @__PURE__ */ z({
646
+ }, vt = /* @__PURE__ */ B({
635
647
  __name: "CustomerInvoiceTable",
636
648
  props: { externalId: {} },
637
649
  setup(e) {
638
- let t = e, r = M(), i = ut(), a = p({ debounceMs: 300 }), { issuedOnRange: o, dueOnRange: c, filters: l, statuses: u } = dt();
639
- ce(l);
640
- let d = Ne({
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({
641
656
  initialValues: [{
642
657
  direction: "desc",
643
658
  key: n.ISSUED_ON
@@ -647,18 +662,18 @@ var ft = { class: "flex min-h-0 flex-1 flex-col" }, pt = {
647
662
  n.ISSUED_ON,
648
663
  n.NET_AMOUNT
649
664
  ]
650
- }), { isFetching: f, isFetchingNextPage: m, isLoading: h, fetchNextPage: g, result: _ } = ee({ params: {
651
- filters: N(() => ({
652
- issuedOnRange: o.value,
665
+ }), { isFetching: g, isFetchingNextPage: _, isLoading: v, fetchNextPage: y, result: x } = ee({ params: {
666
+ filters: P(() => ({
667
+ issuedOnRange: u.value,
653
668
  customerExternalIds: [t.externalId],
654
- dueOnRange: c.value,
655
- statuses: u.value
669
+ dueOnRange: d.value,
670
+ statuses: p.value
656
671
  })),
657
- search: a.debouncedSearch,
658
- sort: d.values
659
- } }), v = N(() => _.value.isOk() ? _.value.getValue().data : []), y = N(() => _.value.isErr() ? _.value.getError() : null), b = N(() => l.activeFilters.value.length), x = N(() => (a.debouncedSearch.value?.trim().length ?? 0) > 0), S = N(() => !h.value && !f.value && y.value === null && v.value.length === 0 && a.search.value === "" && b.value === 0);
660
- function C(e) {
661
- 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 ? {
662
677
  name: "invoicing-credit-note-detail",
663
678
  params: { creditNoteUuid: e.uuid }
664
679
  } : {
@@ -666,65 +681,65 @@ var ft = { class: "flex min-h-0 flex-1 flex-col" }, pt = {
666
681
  params: { invoiceUuid: e.uuid }
667
682
  };
668
683
  }
669
- return (e, t) => (B(), I("div", ft, [R(H(W), {
684
+ return (e, t) => (V(), L("div", gt, [z(U(G), {
670
685
  align: "center",
671
686
  justify: "between",
672
687
  class: "border-b border-secondary bg-secondary px-lg py-md"
673
688
  }, {
674
- default: U(() => [R(H(W), {
689
+ default: W(() => [z(U(G), {
675
690
  align: "center",
676
691
  gap: "md",
677
692
  class: "min-w-0"
678
693
  }, {
679
- default: U(() => [R(H(K), {
680
- text: H(r).t("wise_invoicing.customer_invoice_list.title"),
694
+ default: W(() => [z(U(q), {
695
+ text: U(r).t("wise_invoicing.customer_invoice_list.title"),
681
696
  class: "shrink-0 text-sm font-semibold text-primary"
682
- }, null, 8, ["text"]), R(H(le))]),
697
+ }, null, 8, ["text"]), z(U(fe))]),
683
698
  _: 1
684
- }), S.value ? F("", !0) : (B(), P(H(W), {
699
+ }), D.value ? I("", !0) : (V(), F(U(G), {
685
700
  key: 0,
686
701
  justify: "end"
687
702
  }, {
688
- default: U(() => [R(H(je), {
689
- modelValue: H(a).search.value,
690
- "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,
691
706
  label: null,
692
- "icon-left": H(ie),
693
- placeholder: H(r).t("wise_invoicing.common.search"),
707
+ "icon-left": U(ae),
708
+ placeholder: U(r).t("wise_invoicing.common.search"),
694
709
  size: "sm",
695
710
  type: "search"
696
711
  }, null, 8, [
697
712
  "modelValue",
698
713
  "icon-left",
699
714
  "placeholder"
700
- ]), R(H(de))]),
715
+ ]), z(U(me))]),
701
716
  _: 1
702
717
  }))]),
703
718
  _: 1
704
- }), S.value ? (B(), P(H(De), {
719
+ }), D.value ? (V(), F(U(Ae), {
705
720
  key: 0,
706
- icon: H(T),
707
- title: H(r).t("wise_invoicing.customer_invoice_list.empty_state.title"),
708
- description: H(r).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"),
709
724
  class: "py-7xl"
710
725
  }, null, 8, [
711
726
  "icon",
712
727
  "title",
713
728
  "description"
714
- ])) : (B(), I("div", pt, [R(H(ke), {
715
- columns: H(i),
716
- data: v.value,
717
- sort: H(d),
718
- "is-loading": H(h),
719
- "is-fetching-next-page": H(m),
720
- error: y.value,
721
- "has-active-search": x.value,
722
- "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,
723
738
  "get-key": (e) => e.uuid,
724
- "get-link": C,
725
- onNextPage: H(g),
726
- onClearSearch: t[1] ||= (e) => H(a).clear(),
727
- 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()
728
743
  }, null, 8, [
729
744
  "columns",
730
745
  "data",
@@ -738,32 +753,32 @@ var ft = { class: "flex min-h-0 flex-1 flex-col" }, pt = {
738
753
  "onNextPage"
739
754
  ])]))]));
740
755
  }
741
- }), ht = /* @__PURE__ */ z({
756
+ }), yt = /* @__PURE__ */ B({
742
757
  __name: "CustomerInvoiceList",
743
758
  props: { externalId: {} },
744
759
  setup(e) {
745
- let t = e, n = N(() => typeof t.externalId == "string" && t.externalId !== "" ? t.externalId : null);
746
- return (e, t) => n.value === null ? F("", !0) : (B(), P(mt, {
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, {
747
762
  key: n.value,
748
763
  "external-id": n.value
749
764
  }, null, 8, ["external-id"]));
750
765
  }
751
- }), gt = class {
766
+ }), bt = class {
752
767
  static format(e, t = 0) {
753
768
  return new Intl.NumberFormat(void 0, { maximumFractionDigits: t }).format(e);
754
769
  }
755
770
  static randomBetween(e, t) {
756
771
  return Math.floor(Math.random() * (t - e + 1)) + e;
757
772
  }
758
- }, _t = {
773
+ }, xt = {
759
774
  "en-US": {
760
775
  ...t,
761
- ...Fe
776
+ ...Re
762
777
  },
763
778
  "nl-BE": {
764
779
  ...e,
765
- ...Ie
780
+ ...ze
766
781
  }
767
782
  };
768
783
  //#endregion
769
- export { g as AddressUtil, x as DownloadUtil, C as MonetaryTransformer, gt as NumberUtil, ne as Percentage, te as PercentageTransformer, r as SortDirection, be as SortUtil, o as WiseInvoicingCustomFieldType, b as WiseInvoicingCustomFieldValueUtil, v as WiseInvoicingCustomFieldViewKey, Ke as WiseInvoicingCustomerDunningCasesSection, ht as WiseInvoicingCustomerInvoiceList, ae as WiseInvoicingDunningCaseDetailView, re as WiseInvoicingDunningCaseOverviewView, fe as WiseInvoicingDunningCaseReminderPdfView, h as WiseInvoicingInvoiceOverviewView, he as WiseInvoicingInvoicePublicPdfViewDataProvider, pe as WiseInvoicingReminderSettingsView, _ as addressFormSchema, ze as creditNoteUuidSchema, f as initWiseInvoicingConfig, Je as invoiceUuidSchema, Le as onCreated, u as toMajorUnits, c as toMinorUnits, l as useCurrencyFormat, a as useDocumentTitle, qe as useInvoiceNavigateToDetailAction, p as useSearch, m as useSort, ct as useWiseInvoicingApiError, d as useWiseInvoicingConfig, w as useWiseInvoicingDunningCaseIndexQuery, me as useWiseInvoicingInvoicePublicDetailQuery, it as useWiseInvoicingPublicRoutes, Re as useWiseInvoicingQueryInvalidation, ot as useWiseInvoicingRoutes, st as useWiseInvoicingStandaloneRoutes, X as wiseInvoicingApiErrorI18nKeys, _t as wiseInvoicingLocales, et 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 };