@wisemen/wise-invoicing-web 0.14.0 → 0.16.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 (72) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-DlsyA-ZR.js → ApprovalReminderSettingsViewDataProvider-CpGYtZKw.js} +4 -4
  2. package/dist/{BillingDocumentDetailViewDataProvider-D3-X20WR.js → BillingDocumentDetailViewDataProvider-CA71dgRN.js} +1693 -1611
  3. package/dist/{BillingDocumentPdf-CcmP3N34.js → BillingDocumentPdf-CvUxfHDH.js} +10 -10
  4. package/dist/{CreditNoteDetailViewDataProvider-X-m10Sqr.js → CreditNoteDetailViewDataProvider-DK7hkA8d.js} +236 -224
  5. package/dist/{CreditNotePdfViewDataProvider-jWh6REbj.js → CreditNotePdfViewDataProvider-DcQxB1p4.js} +3 -3
  6. package/dist/{DunningCaseSendDialog-DUyOH14Q.js → DunningCaseSendDialog-BWbEi9Vr.js} +13 -13
  7. package/dist/{InvoiceApprovalOutOfSyncIndicator-DzY8gqnD.js → InvoiceApprovalOutOfSyncIndicator-CptL1bbz.js} +2 -2
  8. package/dist/{InvoiceApprovalOverviewView-CoIGxCMN.js → InvoiceApprovalOverviewView-dsTZWXyZ.js} +68 -68
  9. package/dist/{InvoiceApprovalStatusBadge-C9O_mb1l.js → InvoiceApprovalStatusBadge-6cSp2XOq.js} +5 -5
  10. package/dist/{InvoiceApproveDialogDataProvider-hVuyszuo.js → InvoiceApproveDialogDataProvider-DsxA74kh.js} +8 -8
  11. package/dist/InvoiceDeliverySendDialog-byobpQe1.js +445 -0
  12. package/dist/{InvoiceDetailViewDataProvider-DBlmJs3o.js → InvoiceDetailViewDataProvider-DgNkoQNH.js} +484 -471
  13. package/dist/{InvoicePdfView-DBVwRo3q.js → InvoicePdfView-CA-nt_Qs.js} +2 -2
  14. package/dist/{InvoicePdfViewDataProvider-CHLE3XdC.js → InvoicePdfViewDataProvider-CVgcgc9t.js} +3 -3
  15. package/dist/{InvoicePublicProFormaPdfViewDataProvider-DECBZhaP.js → InvoicePublicProFormaPdfViewDataProvider-BIhn-msJ.js} +3 -3
  16. package/dist/{InvoicingFileUploadProvider-BZRLmEsv.js → InvoicingFileUploadProvider-DFjM7Xcj.js} +2 -2
  17. package/dist/{IssuerSettingsViewDataProvider-DrXmGKtc.js → IssuerSettingsViewDataProvider-2Gk7FgL2.js} +60 -60
  18. package/dist/PeppolSettingsViewDataProvider-CLgFRfm_.js +196 -0
  19. package/dist/{api.util-BxDrxtn6.js → api.util-DMgdn9-w.js} +979 -951
  20. package/dist/{billingDocumentDetail.transformer-I1L4zrOM.js → billingDocumentDetail.transformer-DFlbGUZp.js} +3 -3
  21. package/dist/client/index.d.ts +2 -2
  22. package/dist/client/sdk.gen.d.ts +6 -4
  23. package/dist/client/types.gen.d.ts +274 -177
  24. package/dist/client/zod.gen.d.ts +3944 -4241
  25. package/dist/creditNoteDetail.query-D7J1umi4.js +127 -0
  26. package/dist/deliveryReason.util-iMVhwjiW.js +95 -0
  27. package/dist/{dist-BMzyJZTx.js → dist-B33lNwLw.js} +1 -1
  28. package/dist/{dist-Cdbpkd3Y.js → dist-ByzJNujV.js} +69 -50
  29. package/dist/{dist-BZgvL8_m.js → dist-Ck8ZEByl.js} +3 -3
  30. package/dist/{dist-BFx8U4Su.js → dist-CwkVU5yS.js} +1 -1
  31. package/dist/{documentTitle.composable-BqZWKGw1.js → documentTitle.composable-QdSLs6eT.js} +11 -7
  32. package/dist/{i18n.lib-7EI865En.js → i18n.lib-CEXUpXfo.js} +98 -2
  33. package/dist/index.d.ts +96 -0
  34. package/dist/index.js +1484 -1480
  35. package/dist/{invoice.service-DfMS-JGk.js → invoice.service-NBqJSMkg.js} +226 -236
  36. package/dist/{invoiceApproval.service-CvvAZxJH.js → invoiceApproval.service-Bk--tRnu.js} +5 -5
  37. package/dist/{invoiceApprovalStatus.util-QhwQpmWI.js → invoiceApprovalStatus.util-CYWPHuJD.js} +30 -30
  38. package/dist/{invoiceCustomer.service-DSAI1dGB.js → invoiceCustomer.service-D13Cwb13.js} +6 -6
  39. package/dist/{invoiceIndexCache.util-DduYusET.js → invoiceDeliveryStatus.util-BExQWz3m.js} +51 -124
  40. package/dist/{invoiceDetail.query-qPz6hTNU.js → invoiceDetail.query-CLvnFeZh.js} +1 -1
  41. package/dist/{invoicingConfig.composable-DT17tqnm.js → invoicingConfig.composable-BebjIIAC.js} +2 -2
  42. package/dist/{issuerSettings.query-DYmr_dfw.js → issuerSettings.query-P_gGS0ER.js} +17 -17
  43. package/dist/libs/i18n.lib.d.ts +96 -0
  44. package/dist/locales/en-US.json.d.ts +49 -1
  45. package/dist/locales/nl-BE.json.d.ts +49 -1
  46. package/dist/modules/credit-note/api/services/creditNote.service.d.ts +0 -1
  47. package/dist/modules/invoice/api/services/invoice.service.d.ts +1 -4
  48. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +2 -12
  49. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +0 -10
  50. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +4 -2
  51. package/dist/modules/invoice-delivery/api/mutations/invoiceDeliverySend.mutation.d.ts +4 -0
  52. package/dist/modules/invoice-delivery/api/mutations/invoiceReminderSend.mutation.d.ts +3 -0
  53. package/dist/modules/invoice-delivery/api/queries/invoiceDeliveries.query.d.ts +2 -0
  54. package/dist/modules/invoice-delivery/api/query-keys/invoiceDelivery.queryKeys.d.ts +7 -0
  55. package/dist/modules/invoice-delivery/api/services/invoiceDelivery.service.d.ts +9 -0
  56. package/dist/modules/invoice-delivery/components/form/InvoiceDeliveryFormEmailField.vue.d.ts +7 -0
  57. package/dist/modules/invoice-delivery/components/form/InvoiceDeliveryFormPeppolField.vue.d.ts +9 -0
  58. package/dist/modules/invoice-delivery/models/deliveryInvoiceIndex.builder.d.ts +9 -0
  59. package/dist/modules/invoice-delivery/models/invoiceDelivery.model.d.ts +43 -0
  60. package/dist/modules/invoice-delivery/models/invoiceDelivery.transformer.d.ts +7 -0
  61. package/dist/modules/invoice-delivery/models/invoiceDeliverySendForm.model.d.ts +6 -0
  62. package/dist/modules/invoice-delivery/use-cases/send/dialogs/InvoiceDeliverySendDialog.vue.d.ts +16 -0
  63. package/dist/modules/invoice-delivery/use-cases/status/components/InvoiceDeliveryStatus.vue.d.ts +6 -0
  64. package/dist/{reminderConfig.query-BoNWAhZP.js → reminderConfig.query-s-gBYoPo.js} +12 -12
  65. package/dist/style.css +1 -1
  66. package/package.json +10 -10
  67. package/dist/CustomFieldValueText-C9yV_CrJ.js +0 -219
  68. package/dist/PeppolSettingsViewDataProvider-BesduXML.js +0 -262
  69. package/dist/creditNoteDetail.query-BurujY-Y.js +0 -131
  70. package/dist/modules/credit-note/api/mutations/creditNoteSend.mutation.d.ts +0 -4
  71. package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +0 -5
  72. package/dist/modules/invoice/api/mutations/invoiceSend.mutation.d.ts +0 -4
@@ -1,7 +1,7 @@
1
- import { n as e } from "./invoicingConfig.composable-DT17tqnm.js";
1
+ import { n as e } from "./invoicingConfig.composable-BebjIIAC.js";
2
2
  import { t } from "./DataProvider-BtnD-BzI.js";
3
- import { t as n } from "./InvoicePdfView-DBVwRo3q.js";
4
- import { t as r } from "./creditNoteDetail.query-BurujY-Y.js";
3
+ import { t as n } from "./InvoicePdfView-CA-nt_Qs.js";
4
+ import { t as r } from "./creditNoteDetail.query-D7J1umi4.js";
5
5
  import { useI18n as i } from "vue-i18n";
6
6
  import { computed as a, createBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, openBlock as u, resolveDynamicComponent as d, unref as f, withCtx as p } from "vue";
7
7
  import { UIText as m } from "@wisemen/vue-core-design-system";
@@ -1,8 +1,8 @@
1
- import { nt as e, rt as t, t as n } from "./api.util-BxDrxtn6.js";
1
+ import { it as e, rt as t, t as n } from "./api.util-DMgdn9-w.js";
2
2
  import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
3
- import { n as i } from "./invoicingConfig.composable-DT17tqnm.js";
4
- import { n as a, r as o, t as s } from "./reminderConfig.query-BoNWAhZP.js";
5
- import { Tt as c, ft as l, m as u } from "./dist-BMzyJZTx.js";
3
+ import { n as i } from "./invoicingConfig.composable-BebjIIAC.js";
4
+ import { n as a, r as o, t as s } from "./reminderConfig.query-s-gBYoPo.js";
5
+ import { Tt as c, ft as l, m as u } from "./dist-B33lNwLw.js";
6
6
  import { t as d } from "./customerUuid.model-ClN4Vi9n.js";
7
7
  import { z as f } from "zod";
8
8
  import { useI18n as p } from "vue-i18n";
@@ -15,10 +15,10 @@ import { UIBadge as P, UIColumnLayout as F, UIDialogBody as I, UIDialogFooter as
15
15
  import { useForm as U } from "formango";
16
16
  //#region src/modules/dunning-case/api/services/dunningCaseCustomer.service.ts
17
17
  var W = class {
18
- static async getAll(t, r) {
19
- return (await n.fromPromise(e({ query: {
18
+ static async getAll(e, r) {
19
+ return (await n.fromPromise(t({ query: {
20
20
  pagination: r,
21
- search: t
21
+ search: e
22
22
  } }))).map((e) => ({
23
23
  data: e.data.items.map((e) => ({
24
24
  uuid: e.uuid,
@@ -27,15 +27,15 @@ var W = class {
27
27
  meta: e.data.meta
28
28
  }));
29
29
  }
30
- static async getRecipients(e) {
30
+ static async getRecipients(t) {
31
31
  let r = [], i = 0, a = 0;
32
32
  do {
33
- let o = await n.fromPromise(t({
33
+ let o = await n.fromPromise(e({
34
34
  query: { pagination: {
35
35
  limit: 100,
36
36
  offset: i
37
37
  } },
38
- path: { uuid: e }
38
+ path: { uuid: t }
39
39
  }));
40
40
  if (o.isErr()) return te(o.error);
41
41
  if (r.push(...o.value.data.items.map((e) => ({
@@ -45,9 +45,9 @@ var W = class {
45
45
  } while (i < a);
46
46
  return ne(r);
47
47
  }
48
- static async getUuidByExternalId(t) {
49
- return (await n.fromPromise(e({ query: {
50
- filter: { externalId: t },
48
+ static async getUuidByExternalId(e) {
49
+ return (await n.fromPromise(t({ query: {
50
+ filter: { externalId: e },
51
51
  pagination: {
52
52
  limit: 1,
53
53
  offset: 0
@@ -1,5 +1,5 @@
1
- import { ft as e } from "./dist-BMzyJZTx.js";
2
- import { t } from "./invoiceCustomer.service-DSAI1dGB.js";
1
+ import { ft as e } from "./dist-B33lNwLw.js";
2
+ import { t } from "./invoiceCustomer.service-D13Cwb13.js";
3
3
  import { useI18n as n } from "vue-i18n";
4
4
  import { computed as r, createBlock as i, createVNode as a, defineComponent as o, openBlock as s, unref as c, withCtx as l } from "vue";
5
5
  import { useOffsetInfiniteQuery as u } from "@wisemen/vue-core-api-utils";
@@ -1,15 +1,15 @@
1
- import "./api.util-BxDrxtn6.js";
2
- import { _ as e, a as t, o as n, t as r } from "./documentTitle.composable-BqZWKGw1.js";
1
+ import "./api.util-DMgdn9-w.js";
2
+ import { a as e, o as t, t as n, y as r } from "./documentTitle.composable-QdSLs6eT.js";
3
3
  import { r as i } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
4
  import { t as a } from "./search.composable-CU9OpyUB.js";
5
- import { Ct as o, G as s, H as c, Q as l, R as u, S as d, Tt as f, W as p, Y as m, et as h, ft as g, i as _, l as ee } from "./dist-BMzyJZTx.js";
6
- import { n as v } from "./dist-Cdbpkd3Y.js";
7
- import { f as y, i as b, n as te, o as ne, r as x, s as re } from "./dist-BZgvL8_m.js";
8
- import { t as S } from "./invoiceApprovalStatus.util-QhwQpmWI.js";
9
- import { n as ie, t as ae } from "./InvoiceApprovalOutOfSyncIndicator-DzY8gqnD.js";
10
- import { t as C } from "./InvoiceApprovalStatusBadge-C9O_mb1l.js";
11
- import { i as w, n as T, r as E, t as D } from "./InvoiceApproveDialogDataProvider-hVuyszuo.js";
12
- import { t as O } from "./invoiceApproval.service-CvvAZxJH.js";
5
+ import { Ct as o, G as s, H as c, Q as l, R as u, S as d, Tt as f, W as p, Y as m, et as h, ft as ee, i as g, l as te } from "./dist-B33lNwLw.js";
6
+ import { r as _ } from "./dist-ByzJNujV.js";
7
+ import { f as v, i as y, n as ne, o as re, r as b, s as ie } from "./dist-Ck8ZEByl.js";
8
+ import { t as x } from "./invoiceApprovalStatus.util-CYWPHuJD.js";
9
+ import { n as ae, t as S } from "./InvoiceApprovalOutOfSyncIndicator-CptL1bbz.js";
10
+ import { t as C } from "./InvoiceApprovalStatusBadge-6cSp2XOq.js";
11
+ import { i as w, n as T, r as E, t as D } from "./InvoiceApproveDialogDataProvider-DsxA74kh.js";
12
+ import { t as O } from "./invoiceApproval.service-Bk--tRnu.js";
13
13
  import { useI18n as k } from "vue-i18n";
14
14
  import { Fragment as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createVNode as I, defineComponent as L, isRef as oe, nextTick as R, normalizeClass as z, normalizeStyle as se, openBlock as B, ref as ce, renderList as V, resolveDynamicComponent as le, unref as H, withCtx as U } from "vue";
15
15
  import { useOffsetInfiniteQuery as ue } from "@wisemen/vue-core-api-utils";
@@ -19,20 +19,20 @@ import { createAction as Q } from "@wisemen/vue-core-actions";
19
19
  import { useRouteQuery as we } from "@vueuse/router";
20
20
  //#region src/modules/invoice-approval/actions/invoiceApprovalArchive.action.ts
21
21
  function Te() {
22
- let t = k(), n = Z().create(w);
22
+ let e = k(), t = Z().create(w);
23
23
  return Q({
24
24
  id: "invoice-approval-archive",
25
- isApplicable: (t) => {
26
- if (!t.hasTargetedModelsOfType("InvoiceApproval")) return !1;
27
- let n = t.targetedModelOfTypeOrThrow("InvoiceApproval");
28
- return n.approval.status === e.REQUESTED || n.approval.status === e.EXPIRED;
25
+ isApplicable: (e) => {
26
+ if (!e.hasTargetedModelsOfType("InvoiceApproval")) return !1;
27
+ let t = e.targetedModelOfTypeOrThrow("InvoiceApproval");
28
+ return t.approval.status === r.REQUESTED || t.approval.status === r.EXPIRED;
29
29
  },
30
- name: () => t.t("wise_invoicing.invoice.detail.actions.archive_approval"),
30
+ name: () => e.t("wise_invoicing.invoice.detail.actions.archive_approval"),
31
31
  execute: async (e) => {
32
- let t = e.targetedModelOfTypeOrThrow("InvoiceApproval");
33
- await n.open({
34
- approvalUuid: t.uuid,
35
- invoiceUuid: t.invoiceUuid
32
+ let n = e.targetedModelOfTypeOrThrow("InvoiceApproval");
33
+ await t.open({
34
+ approvalUuid: n.uuid,
35
+ invoiceUuid: n.invoiceUuid
36
36
  });
37
37
  },
38
38
  icon: () => s
@@ -41,16 +41,16 @@ function Te() {
41
41
  //#endregion
42
42
  //#region src/modules/invoice-approval/actions/invoiceApprovalReject.action.ts
43
43
  function Ee() {
44
- let t = k(), n = Z().create(E);
44
+ let e = k(), t = Z().create(E);
45
45
  return Q({
46
46
  id: "invoice-approval-reject",
47
- isApplicable: (t) => t.hasTargetedModelsOfType("InvoiceApproval") ? t.targetedModelOfTypeOrThrow("InvoiceApproval").approval.status === e.REQUESTED : !1,
48
- name: () => t.t("wise_invoicing.invoice.detail.actions.reject_approval"),
47
+ isApplicable: (e) => e.hasTargetedModelsOfType("InvoiceApproval") ? e.targetedModelOfTypeOrThrow("InvoiceApproval").approval.status === r.REQUESTED : !1,
48
+ name: () => e.t("wise_invoicing.invoice.detail.actions.reject_approval"),
49
49
  execute: async (e) => {
50
- let t = e.targetedModelOfTypeOrThrow("InvoiceApproval");
51
- await n.open({
52
- approvalUuid: t.uuid,
53
- invoiceUuid: t.invoiceUuid
50
+ let n = e.targetedModelOfTypeOrThrow("InvoiceApproval");
51
+ await t.open({
52
+ approvalUuid: n.uuid,
53
+ invoiceUuid: n.invoiceUuid
54
54
  });
55
55
  },
56
56
  icon: () => m
@@ -58,8 +58,8 @@ function Ee() {
58
58
  }
59
59
  //#endregion
60
60
  //#region src/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.ts
61
- function De(t) {
62
- return t.approval.status === e.REJECTED || t.approval.status === e.EXPIRED || t.hasChangesSinceApprovalSent;
61
+ function De(e) {
62
+ return e.approval.status === r.REJECTED || e.approval.status === r.EXPIRED || e.hasChangesSinceApprovalSent;
63
63
  }
64
64
  function Oe() {
65
65
  let e = k(), t = Ce(), n = T();
@@ -112,7 +112,7 @@ var ke = { class: "grid min-w-0 grid-cols-1 gap-xl lg:grid-cols-2" }, Ae = { cla
112
112
  count: n.outOfSyncCount,
113
113
  countClass: "text-warning-primary",
114
114
  description: i.t("wise_invoicing.invoice_approval.overview.metrics.out_of_sync_description"),
115
- icon: g,
115
+ icon: ee,
116
116
  iconClass: "bg-brand-secondary text-brand-secondary",
117
117
  key: "out-of-sync",
118
118
  label: i.t("wise_invoicing.invoice_approval.overview.tabs.out_of_sync")
@@ -256,11 +256,11 @@ function Pe(e) {
256
256
  //#region src/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.ts
257
257
  var $ = {
258
258
  all: {},
259
- awaiting: { approvalStatus: t.AWAITING_APPROVAL },
259
+ awaiting: { approvalStatus: e.AWAITING_APPROVAL },
260
260
  "out-of-sync": { hasChangesSinceApprovalSent: !0 },
261
- rejected: { approvalStatus: t.REJECTED },
262
- "reminder-1": { approvalStatus: t.REMINDER_1 },
263
- "reminder-2": { approvalStatus: t.REMINDER_2 }
261
+ rejected: { approvalStatus: e.REJECTED },
262
+ "reminder-1": { approvalStatus: e.REMINDER_1 },
263
+ "reminder-2": { approvalStatus: e.REMINDER_2 }
264
264
  };
265
265
  function Fe(e) {
266
266
  function t(t) {
@@ -321,11 +321,11 @@ function Fe(e) {
321
321
  //#endregion
322
322
  //#region src/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.ts
323
323
  function Ie() {
324
- let e = k(), t = a({ debounceMs: 250 }), n = ie({ params: { search: t.debouncedSearch } }), r = j(() => n.result.value.isOk() ? n.result.value.getValue().data : []), i = b({
324
+ let e = k(), t = a({ debounceMs: 250 }), n = ae({ params: { search: t.debouncedSearch } }), r = j(() => n.result.value.isOk() ? n.result.value.getValue().data : []), i = y({
325
325
  actionGroup: { name: "invoice-approvals" },
326
- filters: [y({
326
+ filters: [v({
327
327
  defaultValue: {
328
- operator: x.INCLUDES,
328
+ operator: b.INCLUDES,
329
329
  value: []
330
330
  },
331
331
  disableOperators: !0,
@@ -349,7 +349,7 @@ function Le() {
349
349
  isApplicable: (e) => {
350
350
  if (!e.hasTargetedModelsOfType("InvoiceApproval")) return !1;
351
351
  let t = e.targetedModelOfTypeOrThrow("InvoiceApproval");
352
- return S.canMarkAsApproved(t.approval.status);
352
+ return x.canMarkAsApproved(t.approval.status);
353
353
  },
354
354
  name: () => e.t("wise_invoicing.invoice.detail.actions.mark_as_approved"),
355
355
  execute: async (e) => {
@@ -359,7 +359,7 @@ function Le() {
359
359
  invoiceUuid: n.invoiceUuid
360
360
  });
361
361
  },
362
- icon: () => _
362
+ icon: () => g
363
363
  });
364
364
  }
365
365
  //#endregion
@@ -450,7 +450,7 @@ var Re = /* @__PURE__ */ L({
450
450
  __name: "InvoiceApprovalOverviewNextReminderCell",
451
451
  props: { item: {} },
452
452
  setup(e) {
453
- let t = e, n = k(), r = v(), i = j(() => t.item.hasChangesSinceApprovalSent), a = j(() => {
453
+ let t = e, n = k(), r = _(), i = j(() => t.item.hasChangesSinceApprovalSent), a = j(() => {
454
454
  let e = t.item.nextReminderOn;
455
455
  return e === null ? null : de.Now.plainDateISO().until(e, { largestUnit: "days" }).days;
456
456
  }), o = j(() => {
@@ -459,7 +459,7 @@ var Re = /* @__PURE__ */ L({
459
459
  }), s = j(() => {
460
460
  let e = t.item.approval, i = e.reminderSentAt;
461
461
  return i !== null && e.level !== null ? n.t("wise_invoicing.invoice_approval.overview.last_reminder", {
462
- level: n.t(S.getReminderLevelTranslationKey(e.level)),
462
+ level: n.t(x.getReminderLevelTranslationKey(e.level)),
463
463
  time: r.toRelativeTime(i)
464
464
  }) : e.sentAt === null ? n.t("wise_invoicing.invoice_approval.overview.not_sent_yet") : n.t("wise_invoicing.invoice_approval.overview.request_sent", { time: r.toRelativeTime(e.sentAt) });
465
465
  }), c = {
@@ -494,7 +494,7 @@ var Re = /* @__PURE__ */ L({
494
494
  __name: "InvoiceApprovalReminderLevelIndicator",
495
495
  props: { level: {} },
496
496
  setup(e) {
497
- let t = e, r = j(() => Math.min(We, t.level)), i = j(() => t.level === n._2);
497
+ let n = e, r = j(() => Math.min(We, n.level)), i = j(() => n.level === t._2);
498
498
  return (e, t) => (B(), P("span", Ue, [(B(), P(A, null, V(We, (e) => F("span", {
499
499
  key: e,
500
500
  class: z([e <= r.value ? i.value ? "border-error bg-error-solid" : "\n border-warning-500 bg-warning-solid\n " : "border-secondary bg-primary", "h-(--spacing-sm) w-(--spacing-md) rounded-full border"])
@@ -503,18 +503,18 @@ var Re = /* @__PURE__ */ L({
503
503
  }), Ke = /* @__PURE__ */ L({
504
504
  __name: "InvoiceApprovalOverviewStatusCell",
505
505
  props: { item: {} },
506
- setup(t) {
507
- let n = t, r = k(), i = j(() => n.item.approval.status === e.REQUESTED ? n.item.approval.level : null), a = j(() => i.value === 2 ? r.t("wise_invoicing.invoice.approval_status.r2") : r.t("wise_invoicing.invoice.approval_status.r1"));
508
- return (e, t) => (B(), M(H(J), null, {
506
+ setup(e) {
507
+ let t = e, n = k(), i = j(() => t.item.approval.status === r.REQUESTED ? t.item.approval.level : null), a = j(() => i.value === 2 ? n.t("wise_invoicing.invoice.approval_status.r2") : n.t("wise_invoicing.invoice.approval_status.r1"));
508
+ return (e, n) => (B(), M(H(J), null, {
509
509
  default: U(() => [I(H(q), {
510
510
  align: "center",
511
511
  gap: "xs"
512
512
  }, {
513
513
  default: U(() => [i.value === null ? (B(), M(C, {
514
514
  key: 1,
515
- approval: n.item.approval,
516
- rejection: n.item.rejectionReason === null ? null : {
517
- reason: n.item.rejectionReason,
515
+ approval: t.item.approval,
516
+ rejection: t.item.rejectionReason === null ? null : {
517
+ reason: t.item.rejectionReason,
518
518
  remark: null
519
519
  },
520
520
  "requires-prior-approval": !0
@@ -529,7 +529,7 @@ var Re = /* @__PURE__ */ L({
529
529
  class: "text-xs text-primary"
530
530
  }, null, 8, ["text"])]),
531
531
  _: 1
532
- })), n.item.hasChangesSinceApprovalSent ? (B(), M(ae, { key: 2 })) : N("", !0)]),
532
+ })), t.item.hasChangesSinceApprovalSent ? (B(), M(S, { key: 2 })) : N("", !0)]),
533
533
  _: 1
534
534
  })]),
535
535
  _: 1
@@ -593,9 +593,9 @@ function qe() {
593
593
  var Je = /* @__PURE__ */ L({
594
594
  __name: "InvoiceApprovalOverviewView",
595
595
  setup(e) {
596
- let t = k(), n = r(), i = we("tab", "awaiting"), a = ce(!0), { customerUuid: s, filters: u } = Ie();
597
- te(u);
598
- let { hasCountError: f, isFetchingNextPage: h, isLoading: _, counts: v, data: y, error: b, fetchNextPage: x, needsAttentionTotal: S, reminderCountTotal: ie, tabCounts: ae } = Fe({
596
+ let t = k(), r = n(), i = we("tab", "awaiting"), a = ce(!0), { customerUuid: s, filters: u } = Ie();
597
+ ne(u);
598
+ let { hasCountError: f, isFetchingNextPage: h, isLoading: g, counts: _, data: v, error: y, fetchNextPage: b, needsAttentionTotal: x, reminderCountTotal: ae, tabCounts: S } = Fe({
599
599
  customerUuid: s,
600
600
  activeTab: j(() => i.value)
601
601
  }), C = j(() => u.activeFilters.value.length), w = j(() => [
@@ -610,7 +610,7 @@ var Je = /* @__PURE__ */ L({
610
610
  label: t.t("wise_invoicing.invoice.approval_status.awaiting_approval")
611
611
  },
612
612
  {
613
- icon: ee,
613
+ icon: te,
614
614
  key: "reminder-1",
615
615
  label: t.t("wise_invoicing.invoice.approval_status.r1")
616
616
  },
@@ -625,19 +625,19 @@ var Je = /* @__PURE__ */ L({
625
625
  label: t.t("wise_invoicing.invoice.approval_status.rejected")
626
626
  },
627
627
  {
628
- icon: g,
628
+ icon: ee,
629
629
  key: "out-of-sync",
630
630
  label: t.t("wise_invoicing.invoice_approval.overview.tabs.out_of_sync")
631
631
  }
632
632
  ]);
633
- n.set(() => t.t("wise_invoicing.invoice_approval.title"));
633
+ r.set(() => t.t("wise_invoicing.invoice_approval.title"));
634
634
  let T = Oe(), E = Ee(), D = Te(), O = j(() => [
635
635
  T,
636
636
  E,
637
637
  D
638
- ]), F = j(() => !_.value && b.value === null && y.value.length === 0 && C.value === 0), L = qe();
638
+ ]), F = j(() => !g.value && y.value === null && v.value.length === 0 && C.value === 0), L = qe();
639
639
  function R(e) {
640
- let t = ae.value[e];
640
+ let t = S.value[e];
641
641
  return t === null ? null : {
642
642
  type: "count",
643
643
  value: t
@@ -686,12 +686,12 @@ var Je = /* @__PURE__ */ L({
686
686
  a.value ? (B(), M(Ne, {
687
687
  key: 0,
688
688
  "has-count-error": H(f),
689
- "needs-attention-total": H(S),
690
- "out-of-sync-count": H(v).outOfSync,
691
- "rejected-count": H(v).rejected,
692
- "reminder-count-total": H(ie),
693
- "reminder-one-count": H(v).reminderOne,
694
- "reminder-two-count": H(v).reminderTwo,
689
+ "needs-attention-total": H(x),
690
+ "out-of-sync-count": H(_).outOfSync,
691
+ "rejected-count": H(_).rejected,
692
+ "reminder-count-total": H(ae),
693
+ "reminder-one-count": H(_).reminderOne,
694
+ "reminder-two-count": H(_).reminderTwo,
695
695
  onShowOutOfSync: n[1] ||= (e) => i.value = "out-of-sync",
696
696
  onShowRejected: n[2] ||= (e) => i.value = "rejected"
697
697
  }, null, 8, [
@@ -753,7 +753,7 @@ var Je = /* @__PURE__ */ L({
753
753
  key: 0,
754
754
  text: H(t).t("wise_invoicing.common.no_active_filters"),
755
755
  class: "px-sm text-xs text-secondary"
756
- }, null, 8, ["text"])) : (B(), M(H(ne), { key: 1 })), I(H(re))]),
756
+ }, null, 8, ["text"])) : (B(), M(H(re), { key: 1 })), I(H(ie))]),
757
757
  _: 1
758
758
  }),
759
759
  F.value ? (B(), M(H(he), {
@@ -767,8 +767,8 @@ var Je = /* @__PURE__ */ L({
767
767
  "active-filter-count": C.value,
768
768
  actions: O.value,
769
769
  columns: H(L),
770
- data: H(y),
771
- error: H(b),
770
+ data: H(v),
771
+ error: H(y),
772
772
  "get-action-model": (e) => ({
773
773
  ...e,
774
774
  key: e.uuid,
@@ -777,9 +777,9 @@ var Je = /* @__PURE__ */ L({
777
777
  "get-key": (e) => e.uuid,
778
778
  "get-link": z,
779
779
  "is-fetching-next-page": H(h),
780
- "is-loading": H(_),
780
+ "is-loading": H(g),
781
781
  onClearFilters: n[4] ||= (e) => H(u).clearAll(),
782
- onNextPage: H(x)
782
+ onNextPage: H(b)
783
783
  }, null, 8, [
784
784
  "active-filter-count",
785
785
  "actions",
@@ -1,8 +1,8 @@
1
- import "./api.util-BxDrxtn6.js";
2
- import { a as e, o as t } from "./documentTitle.composable-BqZWKGw1.js";
3
- import { $ as n, S as r } from "./dist-BMzyJZTx.js";
4
- import { n as i } from "./dist-Cdbpkd3Y.js";
5
- import { t as a } from "./invoiceApprovalStatus.util-QhwQpmWI.js";
1
+ import "./api.util-DMgdn9-w.js";
2
+ import { a as e, o as t } from "./documentTitle.composable-QdSLs6eT.js";
3
+ import { $ as n, S as r } from "./dist-B33lNwLw.js";
4
+ import { r as i } from "./dist-ByzJNujV.js";
5
+ import { t as a } from "./invoiceApprovalStatus.util-CYWPHuJD.js";
6
6
  import { useI18n as o } from "vue-i18n";
7
7
  import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, openBlock as g, renderList as _, unref as v, withCtx as y } from "vue";
8
8
  import { UIBadge as b, UIText as x, UITooltip as S, UITooltipContent as C } from "@wisemen/vue-core-design-system";
@@ -1,13 +1,13 @@
1
- import { t as e } from "./i18n.lib-7EI865En.js";
2
- import "./api.util-BxDrxtn6.js";
3
- import { g as t } from "./documentTitle.composable-BqZWKGw1.js";
4
- import { t as n } from "./invoice.service-DfMS-JGk.js";
5
- import { G as r, ft as i, xt as a } from "./dist-BMzyJZTx.js";
1
+ import { t as e } from "./i18n.lib-CEXUpXfo.js";
2
+ import "./api.util-DMgdn9-w.js";
3
+ import { v as t } from "./documentTitle.composable-QdSLs6eT.js";
4
+ import { t as n } from "./invoice.service-NBqJSMkg.js";
5
+ import { G as r, ft as i, xt as a } from "./dist-B33lNwLw.js";
6
6
  import { t as o } from "./DataProvider-BtnD-BzI.js";
7
7
  import { t as s } from "./formango.util-D5c2ql--.js";
8
- import { t as c } from "./invoiceApprovalStatus.util-QhwQpmWI.js";
9
- import { t as l } from "./issuerSettings.query-DYmr_dfw.js";
10
- import { n as u, r as d, t as f } from "./InvoicingFileUploadProvider-BZRLmEsv.js";
8
+ import { t as c } from "./invoiceApprovalStatus.util-CYWPHuJD.js";
9
+ import { t as l } from "./issuerSettings.query-P_gGS0ER.js";
10
+ import { n as u, r as d, t as f } from "./InvoicingFileUploadProvider-DFjM7Xcj.js";
11
11
  import { z as p } from "zod";
12
12
  import { useI18n as m } from "vue-i18n";
13
13
  import { computed as h, createBlock as g, createVNode as _, defineComponent as v, mergeProps as y, openBlock as b, unref as x, withCtx as S } from "vue";