@wisemen/wise-invoicing-web 0.16.0 → 0.18.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 (57) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-CpGYtZKw.js → ApprovalReminderSettingsViewDataProvider-BZBuz6EF.js} +4 -4
  2. package/dist/{BillingDocumentDetailViewDataProvider-CA71dgRN.js → BillingDocumentDetailViewDataProvider-BCADHPFR.js} +1080 -1079
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-CvUxfHDH.js → BillingDocumentPdf-ddBlGdIN.js} +4 -4
  5. package/dist/{CreditNoteDetailViewDataProvider-DK7hkA8d.js → CreditNoteDetailViewDataProvider-Donn5pVv.js} +222 -205
  6. package/dist/{CreditNotePdfViewDataProvider-DcQxB1p4.js → CreditNotePdfViewDataProvider-c-apCeCW.js} +3 -3
  7. package/dist/{DunningCaseSendDialog-BWbEi9Vr.js → DunningCaseSendDialog-fgL9OsV8.js} +3 -3
  8. package/dist/{InvoiceApprovalOutOfSyncIndicator-CptL1bbz.js → InvoiceApprovalOutOfSyncIndicator-BoPBNXx1.js} +1 -1
  9. package/dist/{InvoiceApprovalOverviewView-dsTZWXyZ.js → InvoiceApprovalOverviewView-BIiJ6gen.js} +9 -9
  10. package/dist/{InvoiceApprovalStatusBadge-6cSp2XOq.js → InvoiceApprovalStatusBadge-CaVSCtI0.js} +4 -4
  11. package/dist/{InvoiceApproveDialogDataProvider-DsxA74kh.js → InvoiceApproveDialogDataProvider-C9NhZX-D.js} +7 -7
  12. package/dist/{InvoiceDeliverySendDialog-byobpQe1.js → InvoiceDeliverySendDialog-BICcd6Cf.js} +186 -114
  13. package/dist/{InvoiceDetailViewDataProvider-DgNkoQNH.js → InvoiceDetailViewDataProvider-BppXFT6D.js} +609 -600
  14. package/dist/{InvoicePdfView-CA-nt_Qs.js → InvoicePdfView-BRJaAErd.js} +2 -2
  15. package/dist/{InvoicePdfViewDataProvider-CVgcgc9t.js → InvoicePdfViewDataProvider-J7NP1Dhh.js} +3 -3
  16. package/dist/{InvoicePublicProFormaPdfViewDataProvider-BIhn-msJ.js → InvoicePublicProFormaPdfViewDataProvider-mZaggXYf.js} +3 -3
  17. package/dist/{InvoicingFileUploadProvider-DFjM7Xcj.js → InvoicingFileUploadProvider-rU9APFrt.js} +2 -2
  18. package/dist/{IssuerSettingsViewDataProvider-2Gk7FgL2.js → IssuerSettingsViewDataProvider-D13f6rvi.js} +4 -4
  19. package/dist/{PeppolSettingsViewDataProvider-CLgFRfm_.js → PeppolSettingsViewDataProvider-DymLdaRM.js} +3 -3
  20. package/dist/{api.util-DMgdn9-w.js → api.util-sW4gNny-.js} +832 -779
  21. package/dist/{billingDocumentDetail.transformer-DFlbGUZp.js → billingDocumentDetail.transformer-DcNMzl46.js} +3 -2
  22. package/dist/client/index.d.ts +1 -1
  23. package/dist/client/sdk.gen.d.ts +1 -1
  24. package/dist/client/types.gen.d.ts +134 -70
  25. package/dist/client/zod.gen.d.ts +15385 -11665
  26. package/dist/{creditNoteDetail.query-D7J1umi4.js → creditNoteDetail.query-DiS_-xFz.js} +5 -3
  27. package/dist/{deliveryReason.util-iMVhwjiW.js → deliveryReason.util-KBh3q_-P.js} +2 -2
  28. package/dist/{dist-Ck8ZEByl.js → dist-C99_-gWv.js} +2 -2
  29. package/dist/{dist-ByzJNujV.js → dist-CyUNvdkD.js} +1 -1
  30. package/dist/{documentTitle.composable-QdSLs6eT.js → documentTitle.composable-Dl8Cm3v3.js} +1 -1
  31. package/dist/{i18n.lib-CEXUpXfo.js → i18n.lib-DckceEsg.js} +12 -2
  32. package/dist/index.d.ts +10 -0
  33. package/dist/index.js +789 -844
  34. package/dist/{invoice.service-NBqJSMkg.js → invoice.service-2QiktTs9.js} +14 -6
  35. package/dist/{invoiceApproval.service-Bk--tRnu.js → invoiceApproval.service-DXIKgCI_.js} +2 -2
  36. package/dist/{invoiceApprovalStatus.util-CYWPHuJD.js → invoiceApprovalStatus.util-CB5pi_hm.js} +2 -2
  37. package/dist/{invoiceCustomer.service-D13Cwb13.js → invoiceCustomer.service-BNQJt1KV.js} +2 -2
  38. package/dist/{invoiceDeliveryStatus.util-BExQWz3m.js → invoiceDeliveryStatus.util-Dp9hD1Tj.js} +3 -3
  39. package/dist/{invoiceDetail.query-CLvnFeZh.js → invoiceDetail.query-MIrBYgNS.js} +1 -1
  40. package/dist/{invoicingConfig.composable-BebjIIAC.js → invoicingConfig.composable-D-hxnEnh.js} +2 -2
  41. package/dist/{issuerSettings.query-P_gGS0ER.js → issuerSettings.query-CR7EtvNm.js} +2 -2
  42. package/dist/libs/i18n.lib.d.ts +10 -0
  43. package/dist/locales/en-US.json.d.ts +6 -1
  44. package/dist/locales/nl-BE.json.d.ts +6 -1
  45. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
  46. package/dist/modules/credit-note/api/mutations/creditNoteUpdate.mutation.d.ts +1 -0
  47. package/dist/modules/credit-note/models/update/creditNoteUpdateForm.model.d.ts +1 -0
  48. package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +1 -0
  49. package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +1 -0
  50. package/dist/modules/invoice/api/services/invoice.service.d.ts +1 -1
  51. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreateForm.model.d.ts +1 -1
  52. package/dist/modules/invoice/models/invoice/update/invoiceUpdateForm.model.d.ts +1 -0
  53. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +11 -1
  54. package/dist/{reminderConfig.query-s-gBYoPo.js → reminderConfig.query-DJmhJp6W.js} +2 -2
  55. package/dist/style.css +1 -1
  56. package/dist/types/apiError.type.d.ts +2 -2
  57. package/package.json +4 -4
@@ -1,26 +1,26 @@
1
- import { t as e } from "./i18n.lib-CEXUpXfo.js";
2
- import "./api.util-DMgdn9-w.js";
3
- import { S as t, b as n, r, x as i } from "./documentTitle.composable-QdSLs6eT.js";
1
+ import { t as e } from "./i18n.lib-DckceEsg.js";
2
+ import "./api.util-sW4gNny-.js";
3
+ import { S as t, b as n, r, x as i } from "./documentTitle.composable-Dl8Cm3v3.js";
4
4
  import { n as a } from "./address.transformer-jGddczLV.js";
5
- import { a as o, i as s, o as c, r as l, s as u, t as d } from "./InvoiceDeliverySendDialog-byobpQe1.js";
6
- import { n as f, t as p } from "./download.util-LyRpGWKA.js";
7
- import { L as m, T as h, Tt as ee, U as te, V as ne, _ as re, b as g, dt as ie, i as ae, it as _, nt as v, q as y, u as oe } from "./dist-B33lNwLw.js";
8
- import { n as b, r as x } from "./dist-ByzJNujV.js";
9
- import { t as S } from "./formango.util-D5c2ql--.js";
10
- import { n as C, r as w, t as T } from "./creditNoteDetail.query-D7J1umi4.js";
11
- import { C as se, E, S as ce, T as D, _ as O, a as k, b as le, c as ue, d as de, f as fe, g as A, h as pe, i as me, l as he, m as ge, n as _e, o as ve, p as ye, r as be, s as xe, t as Se, v as Ce, w as we, x as Te, y as Ee } from "./BillingDocumentDetailViewDataProvider-CA71dgRN.js";
12
- import { r as De } from "./InvoicingFileUploadProvider-DFjM7Xcj.js";
13
- import Oe, { z as j } from "zod";
14
- import { useI18n as M } from "vue-i18n";
15
- import { Fragment as N, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as ke, createVNode as R, defineComponent as z, mergeProps as Ae, normalizeClass as B, openBlock as V, ref as je, renderList as Me, renderSlot as Ne, resolveDynamicComponent as Pe, unref as H, withCtx as U } from "vue";
16
- import { useKeysetInfiniteQuery as Fe, useMutation as W } from "@wisemen/vue-core-api-utils";
17
- import { useRouter as Ie } from "vue-router";
18
- import { UIAnimateHeight as Le, UIBadge as Re, UIClickableElement as ze, UIColumnLayout as G, UIDateField as Be, UIDialogFooter as Ve, UIDialogFooterCancel as He, UIDialogFooterSubmit as Ue, UIDialogHeader as We, UIForm as K, UIFormDialog as Ge, UIRowLayout as q, UISeparator as Ke, UIText as J, UITextField as qe, useOverlay as Je, useToast as Y } from "@wisemen/vue-core-design-system";
5
+ import { a as o, c as s, i as c, o as l, r as u, s as d, t as f } from "./InvoiceDeliverySendDialog-BICcd6Cf.js";
6
+ import { n as p, t as m } from "./download.util-LyRpGWKA.js";
7
+ import { L as h, T as g, Tt as ee, U as te, V as ne, _ as re, b as _, dt as v, i as ie, it as ae, nt as y, q as b, u as x } from "./dist-B33lNwLw.js";
8
+ import { n as S, r as C } from "./dist-CyUNvdkD.js";
9
+ import { t as w } from "./formango.util-D5c2ql--.js";
10
+ import { n as T, r as E, t as D } from "./creditNoteDetail.query-DiS_-xFz.js";
11
+ import { C as oe, E as O, S as se, T as ce, _ as le, a as ue, b as de, c as fe, d as pe, f as k, g as me, h as he, i as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, s as Ce, t as we, v as Te, w as Ee, x as De, y as Oe } from "./BillingDocumentDetailViewDataProvider-BCADHPFR.js";
12
+ import { r as ke } from "./InvoicingFileUploadProvider-rU9APFrt.js";
13
+ import Ae, { z as A } from "zod";
14
+ import { useI18n as j } from "vue-i18n";
15
+ import { Fragment as M, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as je, createVNode as L, defineComponent as R, mergeProps as z, normalizeClass as B, openBlock as V, ref as Me, renderList as Ne, renderSlot as Pe, resolveDynamicComponent as Fe, unref as H, withCtx as U } from "vue";
16
+ import { useKeysetInfiniteQuery as Ie, useMutation as W } from "@wisemen/vue-core-api-utils";
17
+ import { useRouter as Le } from "vue-router";
18
+ import { UIAnimateHeight as Re, UIBadge as ze, UIClickableElement as Be, UIColumnLayout as G, UIDateField as Ve, UIDialogFooter as He, UIDialogFooterCancel as Ue, UIDialogFooterSubmit as We, UIDialogHeader as Ge, UIForm as K, UIFormDialog as Ke, UIRowLayout as q, UISeparator as qe, UIText as J, UITextField as Je, useOverlay as Ye, useToast as Y } from "@wisemen/vue-core-design-system";
19
19
  import { useForm as X } from "formango";
20
20
  //#region src/modules/credit-note/api/mutations/creditNoteUpdate.mutation.ts
21
21
  function Z() {
22
22
  return W({
23
- queryFn: (e) => C.update(e.params.creditNoteUuid, e.body),
23
+ queryFn: (e) => T.update(e.params.creditNoteUuid, e.body),
24
24
  queryKeysToInvalidate: {
25
25
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
26
26
  invoiceIndex: {}
@@ -29,23 +29,24 @@ function Z() {
29
29
  }
30
30
  //#endregion
31
31
  //#region src/modules/credit-note/models/update/creditNoteUpdateForm.model.ts
32
- var Ye = j.object({
33
- issuedOn: b,
34
- externalRemarks: j.string().nullable(),
35
- poNumber: j.string().nullable(),
36
- subject: j.string().nullable()
32
+ var Xe = A.object({
33
+ issuedOn: S,
34
+ externalRemarks: A.string().nullable(),
35
+ poNumber: A.string().nullable(),
36
+ reference: A.string().nullable(),
37
+ subject: A.string().nullable()
37
38
  }).superRefine((t, n) => {
38
39
  t.externalRemarks?.trim() === "" && n.addIssue({
39
40
  code: "custom",
40
41
  message: e.global.t("wise_invoicing.credit_note.finalize.validation.external_remarks_required"),
41
42
  path: ["externalRemarks"]
42
43
  });
43
- }), Xe = j.object({ subject: j.string().nullable() });
44
+ }), Ze = A.object({ subject: A.string().nullable() });
44
45
  //#endregion
45
46
  //#region src/modules/credit-note/api/mutations/creditNoteCopyToInvoice.mutation.ts
46
- function Ze() {
47
+ function Qe() {
47
48
  return W({
48
- queryFn: (e) => C.copyToInvoice(e.params.creditNoteUuid),
49
+ queryFn: (e) => T.copyToInvoice(e.params.creditNoteUuid),
49
50
  queryKeysToInvalidate: {
50
51
  creditNoteActivityLogIndex: { creditNoteUuid: (e) => e.creditNoteUuid },
51
52
  invoiceIndex: {}
@@ -54,9 +55,9 @@ function Ze() {
54
55
  }
55
56
  //#endregion
56
57
  //#region src/modules/credit-note/api/mutations/creditNoteFinalize.mutation.ts
57
- function Qe() {
58
+ function $e() {
58
59
  return W({
59
- queryFn: (e) => C.finalize(e.params.creditNoteUuid),
60
+ queryFn: (e) => T.finalize(e.params.creditNoteUuid),
60
61
  queryKeysToInvalidate: {
61
62
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
62
63
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -66,9 +67,9 @@ function Qe() {
66
67
  }
67
68
  //#endregion
68
69
  //#region src/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.ts
69
- function $e() {
70
+ function et() {
70
71
  return W({
71
- queryFn: (e) => C.markAsDraft(e.params.creditNoteUuid),
72
+ queryFn: (e) => T.markAsDraft(e.params.creditNoteUuid),
72
73
  queryKeysToInvalidate: {
73
74
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
74
75
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -78,9 +79,9 @@ function $e() {
78
79
  }
79
80
  //#endregion
80
81
  //#region src/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.ts
81
- function et() {
82
+ function tt() {
82
83
  return W({
83
- queryFn: (e) => C.markAsReady(e.params.creditNoteUuid),
84
+ queryFn: (e) => T.markAsReady(e.params.creditNoteUuid),
84
85
  queryKeysToInvalidate: {
85
86
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
86
87
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -90,36 +91,36 @@ function et() {
90
91
  }
91
92
  //#endregion
92
93
  //#region src/modules/credit-note/api/mutations/creditNoteDelete.mutation.ts
93
- function tt() {
94
+ function nt() {
94
95
  return W({
95
- queryFn: (e) => C.delete(e.params.creditNoteUuid),
96
+ queryFn: (e) => T.delete(e.params.creditNoteUuid),
96
97
  queryKeysToInvalidate: { invoiceIndex: {} }
97
98
  });
98
99
  }
99
100
  //#endregion
100
101
  //#region src/modules/credit-note/use-cases/detail/dialogs/CreditNoteDeleteDialog.vue
101
- var nt = /* @__PURE__ */ z({
102
+ var rt = /* @__PURE__ */ R({
102
103
  __name: "CreditNoteDeleteDialog",
103
104
  props: { creditNote: {} },
104
105
  emits: ["close", "deleted"],
105
106
  setup(e, { emit: t }) {
106
- let n = e, r = t, i = M(), a = Ie(), o = Y(), s = tt(), c = P(() => n.creditNote.sequence ?? n.creditNote.subject ?? i.t("wise_invoicing.credit_note.detail.fallback_title")), l = X({
107
- schema: Oe.object({}),
107
+ let n = e, r = t, i = j(), a = Le(), o = Y(), s = nt(), c = N(() => n.creditNote.sequence ?? n.creditNote.subject ?? i.t("wise_invoicing.credit_note.detail.fallback_title")), l = X({
108
+ schema: Ae.object({}),
108
109
  onSubmit: async () => {
109
110
  let e = await s.execute({ params: { creditNoteUuid: n.creditNote.uuid } });
110
111
  e.isErr() ? o.apiError(e.error) : (o.show({ message: c.value }), r("deleted"), r("close"), await a.push({ name: "invoicing-invoice-overview" }));
111
112
  }
112
113
  });
113
- return (e, t) => (V(), F(H(Ge), {
114
+ return (e, t) => (V(), P(H(Ke), {
114
115
  form: H(l),
115
116
  size: "xs",
116
117
  onClose: t[0] ||= (e) => r("close")
117
118
  }, {
118
- default: U(() => [R(H(We), {
119
+ default: U(() => [L(H(Ge), {
119
120
  title: H(i).t("wise_invoicing.credit_note.delete.title"),
120
121
  description: H(i).t("wise_invoicing.credit_note.delete.description", { creditNoteIdentifier: c.value })
121
- }, null, 8, ["title", "description"]), R(H(Ve), null, {
122
- right: U(() => [R(H(He)), R(H(Ue), {
122
+ }, null, 8, ["title", "description"]), L(H(He), null, {
123
+ right: U(() => [L(H(Ue)), L(H(We), {
123
124
  "is-destructive": !0,
124
125
  label: H(i).t("wise_invoicing.credit_note.delete.submit_button")
125
126
  }, null, 8, ["label"])]),
@@ -131,37 +132,37 @@ var nt = /* @__PURE__ */ z({
131
132
  });
132
133
  //#endregion
133
134
  //#region src/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.ts
134
- function rt(e) {
135
- let r = M(), a = Y(), o = Ie(), c = Je(), l = c.create(nt), u = c.create(Te), f = Ze(), g = Qe(), ie = $e(), _ = et(), v = c.create(d), y = se(), { shouldSkipConfirmation: oe } = ce(), b = P(() => e.value.originalInvoice?.uuid ?? e.value.uuid), x = P(() => we.getSummary(e.value)?.isExceeded ?? !1), S = P(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
135
+ function it(e) {
136
+ let r = j(), a = Y(), s = Le(), c = Ye(), l = c.create(rt), u = c.create(De), d = Qe(), p = $e(), _ = et(), v = tt(), ae = c.create(f), y = oe(), { shouldSkipConfirmation: b } = se(), x = N(() => e.value.originalInvoice?.uuid ?? e.value.uuid), S = N(() => Ee.getSummary(e.value)?.isExceeded ?? !1), C = N(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
136
137
  async function w() {
137
- let t = await _.execute({ params: {
138
+ let t = await v.execute({ params: {
138
139
  creditNoteUuid: e.value.uuid,
139
- invoiceUuid: b.value
140
+ invoiceUuid: x.value
140
141
  } });
141
142
  t.isErr() ? a.apiError(t.error) : a.show({ message: r.t("wise_invoicing.credit_note.mark_as_ready.success") });
142
143
  }
143
- async function T() {
144
- let t = await g.execute({ params: {
144
+ async function E() {
145
+ let t = await p.execute({ params: {
145
146
  creditNoteUuid: e.value.uuid,
146
- invoiceUuid: b.value
147
+ invoiceUuid: x.value
147
148
  } });
148
149
  return t.isErr() ? (a.apiError(t.error), !1) : (a.show({ message: r.t("wise_invoicing.credit_note.finalize.success") }), !0);
149
150
  }
150
- async function E() {
151
- oe.value ? await T() : await u.open({
151
+ async function D() {
152
+ b.value ? await E() : await u.open({
152
153
  billingDocumentType: "credit_note",
153
- onConfirm: T
154
+ onConfirm: E
154
155
  });
155
156
  }
156
- async function D() {
157
- let t = await ie.execute({ params: {
157
+ async function O() {
158
+ let t = await _.execute({ params: {
158
159
  creditNoteUuid: e.value.uuid,
159
- invoiceUuid: b.value
160
+ invoiceUuid: x.value
160
161
  } });
161
162
  t.isErr() ? a.apiError(t.error) : a.show({ message: r.t("wise_invoicing.credit_note.mark_as_draft.success") });
162
163
  }
163
- async function O() {
164
- await v.open({
164
+ async function ce() {
165
+ await ae.open({
165
166
  invoiceUuid: e.value.uuid,
166
167
  documents: [{
167
168
  uuid: e.value.uuid,
@@ -169,18 +170,18 @@ function rt(e) {
169
170
  }]
170
171
  });
171
172
  }
172
- async function k() {
173
+ async function le() {
173
174
  if (y.isLoading.value) return;
174
175
  let t = await y.execute({ params: { invoiceUuid: e.value.uuid } });
175
176
  t.isErr() ? a.apiError(t.error) : a.show({ message: r.t("wise_invoicing.delivery.reminder.sent") });
176
177
  }
177
- async function le() {
178
- let t = await f.execute({ params: { creditNoteUuid: e.value.uuid } });
178
+ async function ue() {
179
+ let t = await d.execute({ params: { creditNoteUuid: e.value.uuid } });
179
180
  t.isErr() ? a.apiError(t.error) : a.show({
180
181
  button: {
181
182
  label: r.t("wise_invoicing.credit_note.copy_to_invoice.view_action"),
182
183
  onClick: () => {
183
- o.push({
184
+ s.push({
184
185
  name: "invoicing-invoice-detail",
185
186
  params: { invoiceUuid: t.value }
186
187
  });
@@ -189,11 +190,11 @@ function rt(e) {
189
190
  message: r.t("wise_invoicing.credit_note.copy_to_invoice.success")
190
191
  });
191
192
  }
192
- async function ue() {
193
+ async function de() {
193
194
  await l.open({ creditNote: e.value });
194
195
  }
195
- async function de() {
196
- let t = await C.getByUuid(e.value.uuid);
196
+ async function fe() {
197
+ let t = await T.getByUuid(e.value.uuid);
197
198
  if (t.isErr()) {
198
199
  a.apiError(t.error);
199
200
  return;
@@ -203,10 +204,10 @@ function rt(e) {
203
204
  a.show({ message: r.t("wise_invoicing.invoice.download_pdf.generation_in_progress") });
204
205
  return;
205
206
  }
206
- let i = await De.getDownloadUrl(n.uuid);
207
- i !== null && p.downloadUrl(i, n.name);
207
+ let i = await ke.getDownloadUrl(n.uuid);
208
+ i !== null && m.downloadUrl(i, n.name);
208
209
  }
209
- let fe = P(() => [
210
+ let pe = N(() => [
210
211
  {
211
212
  isLoading: !1,
212
213
  iconLeft: ee,
@@ -214,80 +215,80 @@ function rt(e) {
214
215
  label: r.t("wise_invoicing.invoice.detail.actions.send"),
215
216
  variant: "primary",
216
217
  visible: e.value.lifecycleStatus === i.FINALIZED,
217
- onClick: O
218
+ onClick: ce
218
219
  },
219
220
  {
220
- isLoading: _.isLoading.value,
221
- iconRight: ae,
221
+ isLoading: v.isLoading.value,
222
+ iconRight: ie,
222
223
  key: "markAsReady",
223
224
  label: r.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
224
225
  visible: e.value.status === t.DRAFT,
225
226
  onClick: w
226
227
  },
227
228
  {
228
- isDisabled: x.value,
229
- isLoading: g.isLoading.value,
230
- disabledReason: x.value ? r.t("wise_invoicing.credit_note.finalize.exceeds_creditable_amount") : null,
231
- iconRight: m,
229
+ isDisabled: S.value,
230
+ isLoading: p.isLoading.value,
231
+ disabledReason: S.value ? r.t("wise_invoicing.credit_note.finalize.exceeds_creditable_amount") : null,
232
+ iconRight: h,
232
233
  key: "finalize",
233
234
  label: r.t("wise_invoicing.invoice.detail.actions.finalize"),
234
235
  visible: e.value.status === t.READY,
235
- onClick: E
236
+ onClick: D
236
237
  }
237
- ].filter((e) => e.visible)), A = P(() => {
238
+ ].filter((e) => e.visible)), k = N(() => {
238
239
  let a = [
239
240
  {
240
241
  icon: ee,
241
242
  key: "sendReminder",
242
243
  label: r.t("wise_invoicing.delivery.reminder.action"),
243
244
  visible: e.value.lifecycleStatus === i.FINALIZED && [n.SENT, n.VIEWED].includes(e.value.deliveryStatus),
244
- onSelect: k
245
+ onSelect: le
245
246
  },
246
247
  {
247
- icon: h,
248
+ icon: g,
248
249
  key: "downloadPdf",
249
250
  label: r.t("wise_invoicing.common.download_pdf"),
250
- visible: S.value,
251
- onSelect: de
251
+ visible: C.value,
252
+ onSelect: fe
252
253
  },
253
254
  {
254
255
  icon: te,
255
256
  key: "backToDraft",
256
257
  label: r.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
257
258
  visible: e.value.status === t.READY,
258
- onSelect: D
259
+ onSelect: O
259
260
  },
260
261
  {
261
262
  icon: re,
262
263
  key: "copyToInvoice",
263
264
  label: r.t("wise_invoicing.credit_note.detail.actions.copy_to_invoice"),
264
265
  visible: !0,
265
- onSelect: le
266
+ onSelect: ue
266
267
  }
267
- ], o = [{
268
+ ], s = [{
268
269
  icon: ne,
269
270
  key: "delete",
270
271
  label: r.t("wise_invoicing.credit_note.detail.actions.delete"),
271
- visible: s.isEditable(e.value.status),
272
- onSelect: ue
272
+ visible: o.isEditable(e.value.status),
273
+ onSelect: de
273
274
  }];
274
275
  return [{
275
276
  items: a.filter((e) => e.visible),
276
277
  key: "secondary"
277
278
  }, {
278
- items: o.filter((e) => e.visible),
279
+ items: s.filter((e) => e.visible),
279
280
  key: "destructive"
280
281
  }].filter((e) => e.items.length > 0);
281
282
  });
282
283
  return {
283
- isActionMenuVisible: P(() => A.value.length > 0),
284
- menuGroups: A,
285
- primaryButtons: fe
284
+ isActionMenuVisible: N(() => k.value.length > 0),
285
+ menuGroups: k,
286
+ primaryButtons: pe
286
287
  };
287
288
  }
288
289
  //#endregion
289
290
  //#region src/modules/credit-note/use-cases/detail/components/CreditNoteDetailHeaderSection.vue
290
- var it = /* @__PURE__ */ z({
291
+ var at = /* @__PURE__ */ R({
291
292
  __name: "CreditNoteDetailHeaderSection",
292
293
  props: {
293
294
  isPdfViewActive: { type: Boolean },
@@ -295,35 +296,35 @@ var it = /* @__PURE__ */ z({
295
296
  },
296
297
  emits: ["togglePdfView"],
297
298
  setup(e, { emit: n }) {
298
- let r = e, i = n, a = M(), o = Y(), s = Z(), { menuGroups: c, primaryButtons: l } = rt(P(() => r.creditNote)), u = P(() => new D(r.creditNote.status)), d = P(() => u.value.color), f = P(() => a.t(u.value.translationKey)), p = P(() => r.creditNote.status !== t.DRAFT && r.creditNote.status !== t.READY), m = X({
299
+ let r = e, i = n, a = j(), o = Y(), s = Z(), { menuGroups: c, primaryButtons: l } = it(N(() => r.creditNote)), d = N(() => new ce(r.creditNote.status)), f = N(() => d.value.color), p = N(() => a.t(d.value.translationKey)), m = N(() => r.creditNote.status !== t.DRAFT && r.creditNote.status !== t.READY), h = X({
299
300
  initialState: { subject: r.creditNote.subject },
300
- schema: Xe,
301
+ schema: Ze,
301
302
  onSubmit: async (e) => {
302
303
  let t = await s.execute({
303
304
  body: {
304
- ...w.toForm(r.creditNote),
305
+ ...E.toForm(r.creditNote),
305
306
  subject: e.subject
306
307
  },
307
308
  params: { creditNoteUuid: r.creditNote.uuid }
308
309
  });
309
- t.isErr() && o.apiError(t.error);
310
+ t.isErr() ? o.apiError(t.error) : u.reflectBulkAction([r.creditNote.uuid], { subject: e.subject });
310
311
  }
311
- }), h = m.register("subject");
312
- return E({ form: m }), (e, t) => (V(), F(H(K), {
313
- form: H(m),
312
+ }), g = h.register("subject");
313
+ return O({ form: h }), (e, t) => (V(), P(H(K), {
314
+ form: H(h),
314
315
  "prompt-on-unsaved-changes": !1
315
316
  }, {
316
- default: U(() => [R(Ee, {
317
+ default: U(() => [L(Oe, {
317
318
  "fallback-title": H(a).t("wise_invoicing.credit_note.detail.fallback_title"),
318
- "is-disabled": p.value,
319
+ "is-disabled": m.value,
319
320
  sequence: r.creditNote.sequence,
320
- "status-color": d.value,
321
- "status-label": f.value,
322
- icon: H(ie),
323
- "subject-field": H(h),
321
+ "status-color": f.value,
322
+ "status-label": p.value,
323
+ icon: H(v),
324
+ "subject-field": H(g),
324
325
  "subject-placeholder": H(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
325
326
  }, {
326
- actions: U(() => [R(Ce, {
327
+ actions: U(() => [L(Te, {
327
328
  "is-pdf-view-active": r.isPdfViewActive,
328
329
  "menu-groups": H(c),
329
330
  "primary-buttons": H(l),
@@ -333,11 +334,11 @@ var it = /* @__PURE__ */ z({
333
334
  "menu-groups",
334
335
  "primary-buttons"
335
336
  ])]),
336
- status: U(() => [R(H(q), {
337
+ status: U(() => [L(H(q), {
337
338
  gap: "xs",
338
339
  class: "flex-wrap items-start"
339
340
  }, {
340
- default: U(() => [r.creditNote.isOverdue ? (V(), F(le, { key: 0 })) : I("", !0)]),
341
+ default: U(() => [r.creditNote.isOverdue ? (V(), P(de, { key: 0 })) : F("", !0)]),
341
342
  _: 1
342
343
  })]),
343
344
  _: 1
@@ -354,13 +355,13 @@ var it = /* @__PURE__ */ z({
354
355
  _: 1
355
356
  }, 8, ["form"]));
356
357
  }
357
- }), at = /* @__PURE__ */ z({
358
+ }), ot = /* @__PURE__ */ R({
358
359
  __name: "CreditNoteDetailRemarksSection",
359
360
  props: { creditNote: {} },
360
361
  setup(e) {
361
- let n = e, r = M(), i = Y(), a = Z(), o = X({
362
- initialState: P(() => w.toForm(n.creditNote)),
363
- schema: Ye,
362
+ let n = e, r = j(), i = Y(), a = Z(), o = X({
363
+ initialState: N(() => E.toForm(n.creditNote)),
364
+ schema: Xe,
364
365
  onSubmit: async (e) => {
365
366
  let t = await a.execute({
366
367
  body: e,
@@ -368,12 +369,12 @@ var it = /* @__PURE__ */ z({
368
369
  });
369
370
  t.isErr() && i.apiError(t.error);
370
371
  }
371
- }), s = o.register("externalRemarks"), c = P(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
372
- return E({ form: o }), (e, t) => (V(), F(H(K), {
372
+ }), s = o.register("externalRemarks"), c = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
373
+ return O({ form: o }), (e, t) => (V(), P(H(K), {
373
374
  form: H(o),
374
375
  "prompt-on-unsaved-changes": !1
375
376
  }, {
376
- default: U(() => [R(O, {
377
+ default: U(() => [L(le, {
377
378
  "is-disabled": c.value,
378
379
  placeholder: H(r).t("wise_invoicing.invoice.detail.remarks.placeholder"),
379
380
  "remarks-field": H(s),
@@ -390,23 +391,23 @@ var it = /* @__PURE__ */ z({
390
391
  });
391
392
  //#endregion
392
393
  //#region src/modules/credit-note/api/queries/creditNoteActivityLogIndex.query.ts
393
- function ot(e) {
394
- return Fe("creditNoteActivityLogIndex", {
394
+ function st(e) {
395
+ return Ie("creditNoteActivityLogIndex", {
395
396
  params: { creditNoteUuid: e },
396
- queryFn: (t) => C.getActivityLogs(e.value, { pagination: t })
397
+ queryFn: (t) => T.getActivityLogs(e.value, { pagination: t })
397
398
  });
398
399
  }
399
400
  //#endregion
400
401
  //#region src/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarActivityTab.vue
401
- var st = /* @__PURE__ */ z({
402
+ var ct = /* @__PURE__ */ R({
402
403
  __name: "CreditNoteDetailSidebarActivityTab",
403
404
  props: { creditNote: {} },
404
405
  setup(e) {
405
- let t = e, n = M(), { hasNextPage: i, isFetchingNextPage: a, isLoading: o, fetchNextPage: s, result: c } = ot(P(() => t.creditNote.uuid)), l = P(() => c.value.unwrapOr({
406
+ let t = e, n = j(), { hasNextPage: i, isFetchingNextPage: a, isLoading: o, fetchNextPage: s, result: c } = st(N(() => t.creditNote.uuid)), l = N(() => c.value.unwrapOr({
406
407
  data: [],
407
408
  meta: { next: null }
408
409
  }).data);
409
- return (e, c) => (V(), F(A, {
410
+ return (e, c) => (V(), P(me, {
410
411
  "current-billing-document": {
411
412
  role: H(r).CREDIT_NOTE,
412
413
  uuid: t.creditNote.uuid
@@ -427,7 +428,7 @@ var st = /* @__PURE__ */ z({
427
428
  "is-loading"
428
429
  ]));
429
430
  }
430
- }), Q = /* @__PURE__ */ z({
431
+ }), Q = /* @__PURE__ */ R({
431
432
  __name: "BillingDocumentDetailSidebarInfoItem",
432
433
  props: {
433
434
  hasError: {
@@ -439,25 +440,25 @@ var st = /* @__PURE__ */ z({
439
440
  },
440
441
  setup(e) {
441
442
  let t = e;
442
- return (e, n) => (V(), F(H(q), null, {
443
+ return (e, n) => (V(), P(H(q), null, {
443
444
  default: U(() => [
444
- (V(), F(Pe(t.icon), { class: B([{
445
+ (V(), P(Fe(t.icon), { class: B([{
445
446
  "text-error-primary": t.hasError,
446
447
  "text-tertiary": !t.hasError
447
448
  }, "size-3.5 shrink-0"]) }, null, 8, ["class"])),
448
- R(H(J), {
449
+ L(H(J), {
449
450
  text: t.label,
450
451
  class: B([{
451
452
  "text-error-primary": t.hasError,
452
453
  "text-tertiary": !t.hasError
453
454
  }, "w-24 shrink-0 text-xs"])
454
455
  }, null, 8, ["text", "class"]),
455
- Ne(e.$slots, "default")
456
+ Pe(e.$slots, "default")
456
457
  ]),
457
458
  _: 3
458
459
  }));
459
460
  }
460
- }), $ = /* @__PURE__ */ z({
461
+ }), $ = /* @__PURE__ */ R({
461
462
  __name: "BillingDocumentDetailSidebarPartySection",
462
463
  props: {
463
464
  title: {},
@@ -470,71 +471,71 @@ var st = /* @__PURE__ */ z({
470
471
  email: { default: null }
471
472
  },
472
473
  setup(e) {
473
- let t = e, n = je(t.isDefaultOpen);
474
+ let t = e, n = Me(t.isDefaultOpen);
474
475
  function r() {
475
476
  n.value = !n.value;
476
477
  }
477
- return (e, i) => (V(), F(H(G), { class: "w-full" }, {
478
- default: U(() => [R(H(q), { justify: "between" }, {
479
- default: U(() => [R(H(ze), { class: "rounded-sm" }, {
480
- default: U(() => [ke("button", {
478
+ return (e, i) => (V(), P(H(G), { class: "w-full" }, {
479
+ default: U(() => [L(H(q), { justify: "between" }, {
480
+ default: U(() => [L(H(Be), { class: "rounded-sm" }, {
481
+ default: U(() => [je("button", {
481
482
  type: "button",
482
483
  class: "flex w-full items-center gap-sm",
483
484
  onClick: r
484
485
  }, [
485
- R(H(J), {
486
+ L(H(J), {
486
487
  text: t.title,
487
488
  class: "text-xs font-semibold text-primary"
488
489
  }, null, 8, ["text"]),
489
- R(H(Re), {
490
+ L(H(ze), {
490
491
  label: t.name,
491
492
  color: "gray",
492
493
  variant: "outline"
493
494
  }, null, 8, ["label"]),
494
- R(H(_), { class: B([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
495
+ L(H(ae), { class: B([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
495
496
  ])]),
496
497
  _: 1
497
498
  })]),
498
499
  _: 1
499
- }), R(H(Le), null, {
500
- default: U(() => [n.value ? (V(), F(H(G), {
500
+ }), L(H(Re), null, {
501
+ default: U(() => [n.value ? (V(), P(H(G), {
501
502
  key: 0,
502
503
  gap: "xs"
503
504
  }, {
504
505
  default: U(() => [
505
- R(H(J), {
506
+ L(H(J), {
506
507
  text: t.name,
507
508
  class: "text-xs font-medium text-primary"
508
509
  }, null, 8, ["text"]),
509
- t.address ? (V(), F(H(J), {
510
+ t.address ? (V(), P(H(J), {
510
511
  key: 0,
511
512
  truncate: !1,
512
513
  text: H(a).format(t.address),
513
514
  class: "text-xs text-primary"
514
- }, null, 8, ["text"])) : I("", !0),
515
- t.email ? (V(), F(H(J), {
515
+ }, null, 8, ["text"])) : F("", !0),
516
+ t.email ? (V(), P(H(J), {
516
517
  key: 1,
517
518
  text: t.email,
518
519
  class: "text-xs text-primary"
519
- }, null, 8, ["text"])) : I("", !0)
520
+ }, null, 8, ["text"])) : F("", !0)
520
521
  ]),
521
522
  _: 1
522
- })) : I("", !0)]),
523
+ })) : F("", !0)]),
523
524
  _: 1
524
525
  })]),
525
526
  _: 1
526
527
  }));
527
528
  }
528
- }), ct = /* @__PURE__ */ z({
529
+ }), lt = /* @__PURE__ */ R({
529
530
  __name: "CreditNoteDetailSidebarInfoTab",
530
531
  props: {
531
532
  creditNote: {},
532
533
  customFieldDefinitions: {}
533
534
  },
534
535
  setup(e) {
535
- let n = e, r = M(), i = Y(), a = Z(), s = X({
536
- initialState: P(() => w.toForm(n.creditNote)),
537
- schema: Ye,
536
+ let n = e, r = j(), i = Y(), a = Z(), o = X({
537
+ initialState: N(() => E.toForm(n.creditNote)),
538
+ schema: Xe,
538
539
  onSubmit: async (e) => {
539
540
  let t = await a.execute({
540
541
  body: e,
@@ -542,39 +543,55 @@ var st = /* @__PURE__ */ z({
542
543
  });
543
544
  t.isErr() && i.apiError(t.error);
544
545
  }
545
- }), c = P(() => f.listByDefinitions(n.customFieldDefinitions, n.creditNote.customFields)), u = s.register("issuedOn"), d = s.register("poNumber"), p = P(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
546
- return E({ form: s }), (e, t) => (V(), F(H(K), {
547
- form: H(s),
546
+ }), s = N(() => p.listByDefinitions(n.customFieldDefinitions, n.creditNote.customFields)), u = o.register("issuedOn"), d = o.register("poNumber"), f = o.register("reference"), m = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
547
+ return O({ form: o }), (e, t) => (V(), P(H(K), {
548
+ form: H(o),
548
549
  "prompt-on-unsaved-changes": !1
549
550
  }, {
550
- default: U(() => [R(H(G), {
551
+ default: U(() => [L(H(G), {
551
552
  gap: "lg",
552
553
  class: "px-2xl py-xl"
553
554
  }, {
554
555
  default: U(() => [
555
- R(H(G), null, {
556
- default: U(() => [R(H(J), {
556
+ L(H(G), null, {
557
+ default: U(() => [L(H(J), {
557
558
  text: H(r).t("wise_invoicing.invoice.detail.sidebar.general"),
558
559
  class: "text-xs font-semibold text-primary"
559
- }, null, 8, ["text"]), R(H(G), { gap: "lg" }, {
560
+ }, null, 8, ["text"]), L(H(G), { gap: "lg" }, {
560
561
  default: U(() => [
561
- R(Q, {
562
- icon: H(g),
562
+ L(Q, {
563
+ icon: H(_),
563
564
  label: H(r).t("wise_invoicing.invoice.detail.header.invoice_id")
564
565
  }, {
565
- default: U(() => [R(H(J), {
566
+ default: U(() => [L(H(J), {
566
567
  text: n.creditNote.sequence ?? "-",
567
568
  class: "text-xs text-primary"
568
569
  }, null, 8, ["text"])]),
569
570
  _: 1
570
571
  }, 8, ["icon", "label"]),
571
- R(Q, {
572
- icon: H(y),
572
+ L(Q, {
573
+ icon: H(b),
573
574
  "has-error": H(d).errors.value.length > 0,
574
575
  label: H(r).t("wise_invoicing.invoice.detail.header.po_number")
575
576
  }, {
576
- default: U(() => [R(H(qe), Ae(H(S)(H(d)), {
577
- "is-disabled": p.value,
577
+ default: U(() => [L(H(Je), z(H(w)(H(d)), {
578
+ "is-disabled": m.value,
579
+ label: null,
580
+ class: "w-full"
581
+ }), null, 16, ["is-disabled"])]),
582
+ _: 1
583
+ }, 8, [
584
+ "icon",
585
+ "has-error",
586
+ "label"
587
+ ]),
588
+ L(Q, {
589
+ icon: H(b),
590
+ "has-error": H(f).errors.value.length > 0,
591
+ label: H(r).t("wise_invoicing.invoice.detail.header.reference")
592
+ }, {
593
+ default: U(() => [L(H(Je), z(H(w)(H(f)), {
594
+ "is-disabled": m.value,
578
595
  label: null,
579
596
  class: "w-full"
580
597
  }), null, 16, ["is-disabled"])]),
@@ -584,34 +601,34 @@ var st = /* @__PURE__ */ z({
584
601
  "has-error",
585
602
  "label"
586
603
  ]),
587
- R(Q, {
588
- icon: H(oe),
604
+ L(Q, {
605
+ icon: H(x),
589
606
  label: H(r).t("wise_invoicing.invoice.detail.header.issuer")
590
607
  }, {
591
- default: U(() => [R(H(J), {
608
+ default: U(() => [L(H(J), {
592
609
  text: n.creditNote.issuer.name ?? "-",
593
610
  class: "text-xs text-primary"
594
611
  }, null, 8, ["text"])]),
595
612
  _: 1
596
613
  }, 8, ["icon", "label"]),
597
- R(Q, {
598
- icon: H(v),
614
+ L(Q, {
615
+ icon: H(y),
599
616
  "has-error": H(u).errors.value.length > 0,
600
617
  label: H(r).t("wise_invoicing.invoice.detail.header.invoice_date")
601
618
  }, {
602
- default: U(() => [R(H(Be), Ae({ "is-disabled": p.value }, H(S)(H(u))), null, 16, ["is-disabled"])]),
619
+ default: U(() => [L(H(Ve), z({ "is-disabled": m.value }, H(w)(H(u))), null, 16, ["is-disabled"])]),
603
620
  _: 1
604
621
  }, 8, [
605
622
  "icon",
606
623
  "has-error",
607
624
  "label"
608
625
  ]),
609
- (V(!0), L(N, null, Me(c.value, (e) => (V(), F(Q, {
626
+ (V(!0), I(M, null, Ne(s.value, (e) => (V(), P(Q, {
610
627
  key: e.definition.uuid,
611
- icon: H(pe)[e.definition.type],
612
- label: H(o).getLabel(e.definition, H(r).locale.value)
628
+ icon: H(he)[e.definition.type],
629
+ label: H(l).getLabel(e.definition, H(r).locale.value)
613
630
  }, {
614
- default: U(() => [R(l, {
631
+ default: U(() => [L(c, {
615
632
  definition: e.definition,
616
633
  value: e.value
617
634
  }, null, 8, ["definition", "value"])]),
@@ -622,9 +639,9 @@ var st = /* @__PURE__ */ z({
622
639
  })]),
623
640
  _: 1
624
641
  }),
625
- R(H(Ke)),
626
- R(ge, { "original-invoice": n.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
627
- R($, {
642
+ L(H(qe)),
643
+ L(ve, { "original-invoice": n.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
644
+ L($, {
628
645
  "is-default-open": !0,
629
646
  name: n.creditNote.customer.name ?? "-",
630
647
  title: H(r).t("wise_invoicing.invoice.detail.header.bill_to"),
@@ -636,8 +653,8 @@ var st = /* @__PURE__ */ z({
636
653
  "address",
637
654
  "email"
638
655
  ]),
639
- R(H(Ke)),
640
- R($, {
656
+ L(H(qe)),
657
+ L($, {
641
658
  name: n.creditNote.issuer.email ?? "-",
642
659
  title: H(r).t("wise_invoicing.invoice.detail.header.bill_from"),
643
660
  address: n.creditNote.issuer.address
@@ -652,20 +669,20 @@ var st = /* @__PURE__ */ z({
652
669
  _: 1
653
670
  }, 8, ["form"]));
654
671
  }
655
- }), lt = /* @__PURE__ */ z({
672
+ }), ut = /* @__PURE__ */ R({
656
673
  __name: "CreditNoteDetailSidebar",
657
674
  props: {
658
675
  creditNote: {},
659
676
  customFieldDefinitions: {}
660
677
  },
661
678
  setup(e) {
662
- let t = e, n = M(), r = x(), i = P(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.creditNote.updatedAt) }));
663
- return (e, n) => (V(), F(ye, {
679
+ let t = e, n = j(), r = C(), i = N(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.creditNote.updatedAt) }));
680
+ return (e, n) => (V(), P(xe, {
664
681
  "billing-document": t.creditNote,
665
682
  "updated-footer": i.value
666
683
  }, {
667
- activity: U(() => [R(st, { "credit-note": t.creditNote }, null, 8, ["credit-note"])]),
668
- info: U(() => [R(ct, {
684
+ activity: U(() => [L(ct, { "credit-note": t.creditNote }, null, 8, ["credit-note"])]),
685
+ info: U(() => [L(lt, {
669
686
  "credit-note": t.creditNote,
670
687
  "custom-field-definitions": t.customFieldDefinitions
671
688
  }, null, 8, ["credit-note", "custom-field-definitions"])]),
@@ -675,9 +692,9 @@ var st = /* @__PURE__ */ z({
675
692
  });
676
693
  //#endregion
677
694
  //#region src/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.ts
678
- function ut() {
695
+ function dt() {
679
696
  return W({
680
- queryFn: (e) => C.updateLines(e.params.creditNoteUuid, e.body),
697
+ queryFn: (e) => T.updateLines(e.params.creditNoteUuid, e.body),
681
698
  queryKeysToInvalidate: {
682
699
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
683
700
  invoiceIndex: {}
@@ -686,15 +703,15 @@ function ut() {
686
703
  }
687
704
  //#endregion
688
705
  //#region src/modules/credit-note/use-cases/detail/components/table/CreditNoteLineItemsTableSection.vue
689
- var dt = /* @__PURE__ */ z({
706
+ var ft = /* @__PURE__ */ R({
690
707
  __name: "CreditNoteLineItemsTableSection",
691
708
  props: {
692
709
  creditNote: {},
693
710
  customFieldDefinitions: {}
694
711
  },
695
712
  setup(e) {
696
- let t = e, n = P(() => t.creditNote), r = ut(), i = k({
697
- isSaving: P(() => r.isLoading.value),
713
+ let t = e, n = N(() => t.creditNote), r = dt(), i = ue({
714
+ isSaving: N(() => r.isLoading.value),
698
715
  billingDocument: () => n.value,
699
716
  customFieldDefinitions: () => t.customFieldDefinitions,
700
717
  updateLines: (e) => r.execute({
@@ -702,24 +719,24 @@ var dt = /* @__PURE__ */ z({
702
719
  params: { creditNoteUuid: t.creditNote.uuid }
703
720
  })
704
721
  });
705
- return fe(i), (e, n) => (V(), F(xe, null, {
722
+ return k(i), (e, n) => (V(), P(Ce, null, {
706
723
  default: U(() => [
707
- R(ue, { "show-apply-discount": !1 }),
708
- R(he),
709
- R(ve, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
710
- R(de)
724
+ L(fe, { "show-apply-discount": !1 }),
725
+ L(_e),
726
+ L(be, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
727
+ L(pe)
711
728
  ]),
712
729
  _: 1
713
730
  }));
714
731
  }
715
- }), ft = /* @__PURE__ */ z({
732
+ }), pt = /* @__PURE__ */ R({
716
733
  __name: "CreditNoteDetailView",
717
734
  props: {
718
735
  creditNote: {},
719
736
  customFieldDefinitions: {}
720
737
  },
721
738
  setup(e) {
722
- let t = e, n = M(), r = je(!1), a = P(() => o.filterByView(t.customFieldDefinitions, u.CREDIT_NOTE_DETAIL)), s = P(() => [
739
+ let t = e, n = j(), r = Me(!1), a = N(() => l.filterByView(t.customFieldDefinitions, s.CREDIT_NOTE_DETAIL)), o = N(() => [
723
740
  {
724
741
  label: n.t("wise_invoicing.invoice.overview.title"),
725
742
  to: { name: "invoicing-invoice-overview" }
@@ -734,32 +751,32 @@ var dt = /* @__PURE__ */ z({
734
751
  { label: n.t("wise_invoicing.invoice.detail.credit_notes.untitled") },
735
752
  { label: t.creditNote.sequence ?? n.t("wise_invoicing.credit_note.detail.fallback_title") }
736
753
  ]);
737
- return (e, o) => (V(), F(be, {
754
+ return (e, s) => (V(), P(Se, {
738
755
  "billing-document": t.creditNote,
739
- breadcrumbs: s.value,
756
+ breadcrumbs: o.value,
740
757
  title: H(n).t("wise_invoicing.credit_note.detail.fallback_title")
741
758
  }, {
742
- header: U(() => [R(it, {
759
+ header: U(() => [L(at, {
743
760
  "credit-note": t.creditNote,
744
761
  "is-pdf-view-active": r.value,
745
762
  class: "w-full",
746
- onTogglePdfView: o[0] ||= (e) => r.value = !r.value
763
+ onTogglePdfView: s[0] ||= (e) => r.value = !r.value
747
764
  }, null, 8, ["credit-note", "is-pdf-view-active"])]),
748
- default: U(() => [t.creditNote.lifecycleStatus === H(i).FINALIZED ? (V(), F(me, {
765
+ default: U(() => [t.creditNote.lifecycleStatus === H(i).FINALIZED ? (V(), P(ge, {
749
766
  key: 0,
750
767
  "invoice-uuid": t.creditNote.uuid
751
- }, null, 8, ["invoice-uuid"])) : I("", !0), r.value ? (V(), F(_e, {
768
+ }, null, 8, ["invoice-uuid"])) : F("", !0), r.value ? (V(), P(ye, {
752
769
  key: 1,
753
770
  "billing-document": t.creditNote,
754
771
  class: "w-full"
755
- }, null, 8, ["billing-document"])) : (V(), L(N, { key: 2 }, [R(dt, {
772
+ }, null, 8, ["billing-document"])) : (V(), I(M, { key: 2 }, [L(ft, {
756
773
  "credit-note": t.creditNote,
757
774
  "custom-field-definitions": a.value
758
- }, null, 8, ["credit-note", "custom-field-definitions"]), R(at, {
775
+ }, null, 8, ["credit-note", "custom-field-definitions"]), L(ot, {
759
776
  "credit-note": t.creditNote,
760
777
  class: "w-full"
761
778
  }, null, 8, ["credit-note"])], 64))]),
762
- sidebar: U(() => [R(lt, {
779
+ sidebar: U(() => [L(ut, {
763
780
  "credit-note": t.creditNote,
764
781
  "custom-field-definitions": a.value
765
782
  }, null, 8, ["credit-note", "custom-field-definitions"])]),
@@ -770,20 +787,20 @@ var dt = /* @__PURE__ */ z({
770
787
  "title"
771
788
  ]));
772
789
  }
773
- }), pt = /* @__PURE__ */ z({
790
+ }), mt = /* @__PURE__ */ R({
774
791
  __name: "CreditNoteDetailViewDataProvider",
775
792
  props: { creditNoteUuid: {} },
776
793
  setup(e) {
777
- let t = e, n = M(), r = P(() => [{
794
+ let t = e, n = j(), r = N(() => [{
778
795
  label: n.t("wise_invoicing.invoice.overview.title"),
779
796
  to: { name: "invoicing-invoice-overview" }
780
- }]), i = T(P(() => t.creditNoteUuid)), a = c();
781
- return (e, t) => (V(), F(Se, {
797
+ }]), i = D(N(() => t.creditNoteUuid)), a = d();
798
+ return (e, t) => (V(), P(we, {
782
799
  "custom-field-definitions-query": H(a),
783
800
  query: H(i),
784
801
  "loading-breadcrumbs": r.value
785
802
  }, {
786
- default: U(({ billingDocument: e, customFieldDefinitions: t }) => [R(ft, {
803
+ default: U(({ billingDocument: e, customFieldDefinitions: t }) => [L(pt, {
787
804
  "credit-note": e,
788
805
  "custom-field-definitions": t
789
806
  }, null, 8, ["credit-note", "custom-field-definitions"])]),
@@ -796,4 +813,4 @@ var dt = /* @__PURE__ */ z({
796
813
  }
797
814
  });
798
815
  //#endregion
799
- export { pt as default };
816
+ export { mt as default };