@wisemen/wise-invoicing-web 0.11.3 → 0.12.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 (68) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-BOzuwgOd.js → ApprovalReminderSettingsViewDataProvider-BnHeEMZD.js} +4 -4
  2. package/dist/{BillingDocumentDetailViewDataProvider-a3kGQ6K1.js → BillingDocumentDetailViewDataProvider-Dm8C5WNN.js} +1257 -1181
  3. package/dist/{BillingDocumentPdf-DrOZdixo.js → BillingDocumentPdf-57ksqoPW.js} +4 -4
  4. package/dist/{CreditNoteDetailViewDataProvider-9CTOmMw8.js → CreditNoteDetailViewDataProvider-CC4gnwSN.js} +149 -147
  5. package/dist/{CreditNotePdfViewDataProvider-DX_y_ZIS.js → CreditNotePdfViewDataProvider-C9vgN3kV.js} +3 -3
  6. package/dist/{CustomFieldValueText-DZzqLZ0K.js → CustomFieldValueText-CvWq0fl_.js} +3 -3
  7. package/dist/{DunningCaseSendDialog-BFGLaor0.js → DunningCaseSendDialog-CfWSrquA.js} +3 -3
  8. package/dist/{InvoiceApprovalOutOfSyncIndicator-Pc40MY4q.js → InvoiceApprovalOutOfSyncIndicator-CKLAraIU.js} +1 -1
  9. package/dist/{InvoiceApprovalOverviewView-wBqCXtEF.js → InvoiceApprovalOverviewView-DpL-vV8_.js} +7 -7
  10. package/dist/{InvoiceApprovalStatusBadge-C2Wj9b_Z.js → InvoiceApprovalStatusBadge-oVWkCqZY.js} +3 -3
  11. package/dist/{InvoiceApproveDialogDataProvider-DUeMi7qI.js → InvoiceApproveDialogDataProvider-serNDdl9.js} +7 -7
  12. package/dist/{InvoiceDetailViewDataProvider-Dy4AN8tQ.js → InvoiceDetailViewDataProvider-BaT7fgsi.js} +566 -566
  13. package/dist/{InvoicePdfView-B-DBwFx-.js → InvoicePdfView-MaBnd78V.js} +2 -2
  14. package/dist/{InvoicePdfViewDataProvider-aRN8o_EF.js → InvoicePdfViewDataProvider-BIHBY608.js} +3 -3
  15. package/dist/{InvoicePublicProFormaPdfViewDataProvider-CGddJNyW.js → InvoicePublicProFormaPdfViewDataProvider-KY8pN59k.js} +3 -3
  16. package/dist/{InvoicingFileUploadProvider-BsK5eRGE.js → InvoicingFileUploadProvider-CxmF68sz.js} +2 -2
  17. package/dist/IssuerSettingsViewDataProvider-DJzVZS8Q.js +543 -0
  18. package/dist/{PeppolSettingsViewDataProvider-CH0iMxBL.js → PeppolSettingsViewDataProvider-C7lwtu7n.js} +2 -2
  19. package/dist/{api.util-B3JqQVJA.js → api.util-Ct8FnoLB.js} +628 -547
  20. package/dist/{billingDocumentDetail.transformer-CcnSe7Fz.js → billingDocumentDetail.transformer-B3ypgtIv.js} +4 -2
  21. package/dist/client/index.d.ts +1 -1
  22. package/dist/client/types.gen.d.ts +177 -7
  23. package/dist/client/zod.gen.d.ts +406 -6
  24. package/dist/composables/invoicingConfig.composable.d.ts +15 -0
  25. package/dist/{creditNoteDetail.query-BVbXoNt-.js → creditNoteDetail.query-C2BYvPKC.js} +5 -3
  26. package/dist/{documentTitle.composable-RvqrZTBa.js → documentTitle.composable-BqZWKGw1.js} +35 -29
  27. package/dist/{i18n.lib-BkdaaKCs.js → i18n.lib-8sQYo5_y.js} +101 -7
  28. package/dist/index.d.ts +96 -2
  29. package/dist/index.js +734 -714
  30. package/dist/{invoice.service-CXCNJz0L.js → invoice.service-CtePUw1R.js} +7 -4
  31. package/dist/{invoiceApproval.service-DR9g1Dek.js → invoiceApproval.service-CQzG8_wX.js} +2 -2
  32. package/dist/{invoiceApprovalStatus.util-Nd4E3qlZ.js → invoiceApprovalStatus.util-C4su45dU.js} +2 -2
  33. package/dist/{invoiceCustomer.service-CknXiBt9.js → invoiceCustomer.service-CzbM3ey1.js} +2 -2
  34. package/dist/{invoiceDetail.query-Cp9AnTrw.js → invoiceDetail.query-NNAoIuWN.js} +1 -1
  35. package/dist/{invoiceIndexCache.util-By0N8jal.js → invoiceIndexCache.util-DI0WM-eW.js} +3 -3
  36. package/dist/{invoicingConfig.composable-k8p1Y_eJ.js → invoicingConfig.composable-DXJ71Uq_.js} +20 -18
  37. package/dist/issuerSettings.query-ggEHdk0S.js +204 -0
  38. package/dist/libs/i18n.lib.d.ts +96 -2
  39. package/dist/locales/en-US.json.d.ts +50 -3
  40. package/dist/locales/nl-BE.json.d.ts +51 -4
  41. package/dist/models/billing-document/billingDocumentCreditable.util.d.ts +19 -0
  42. package/dist/models/billing-document/billingDocumentCreditable.util.spec.d.ts +1 -0
  43. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -0
  44. package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +2 -0
  45. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +4 -1
  46. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
  47. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +1 -1
  48. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.spec.d.ts +1 -0
  49. package/dist/modules/settings/api/mutations/issuerSettingsUpdate.mutation.d.ts +22 -1
  50. package/dist/modules/settings/models/issuer-settings/invoiceSequenceFormat.util.d.ts +16 -0
  51. package/dist/modules/settings/models/issuer-settings/invoiceSequenceFormat.util.spec.d.ts +1 -0
  52. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +7 -2
  53. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.d.ts +2 -0
  54. package/dist/modules/settings/models/issuer-settings/issuerSettingsForm.model.d.ts +23 -2
  55. package/dist/modules/settings/use-cases/overview/components/InvoiceSequenceFormatFields.vue.d.ts +11 -0
  56. package/dist/modules/settings/use-cases/overview/components/InvoiceSequenceNumberPreview.vue.d.ts +12 -0
  57. package/dist/modules/settings/use-cases/overview/components/InvoiceSequencePreviewCard.vue.d.ts +13 -0
  58. package/dist/modules/settings/use-cases/overview/components/SharedSequencePreviewCard.vue.d.ts +8 -0
  59. package/dist/modules/settings/use-cases/overview/composables/sequenceFormatFields.composable.d.ts +16 -0
  60. package/dist/{reminderConfig.query-BIfCEIYX.js → reminderConfig.query-C2xT3DJH.js} +2 -2
  61. package/dist/style.css +1 -1
  62. package/dist/types/apiError.type.d.ts +2 -2
  63. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +24 -0
  64. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +4 -0
  65. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +4 -0
  66. package/package.json +1 -1
  67. package/dist/IssuerSettingsViewDataProvider-BlKorJfv.js +0 -189
  68. package/dist/issuerSettings.query-BOgWdNmP.js +0 -118
@@ -1,26 +1,26 @@
1
- import { t as e } from "./i18n.lib-BkdaaKCs.js";
2
- import "./api.util-B3JqQVJA.js";
3
- import { b as t, r as n } from "./documentTitle.composable-RvqrZTBa.js";
1
+ import { t as e } from "./i18n.lib-8sQYo5_y.js";
2
+ import "./api.util-Ct8FnoLB.js";
3
+ import { b as t, r as n } from "./documentTitle.composable-BqZWKGw1.js";
4
4
  import { n as r } from "./address.transformer-jGddczLV.js";
5
- import { a as i, i as a, n as o, r as s, t as c } from "./CustomFieldValueText-DZzqLZ0K.js";
5
+ import { a as i, i as a, n as o, r as s, t as c } from "./CustomFieldValueText-CvWq0fl_.js";
6
6
  import { n as l, t as u } from "./download.util-LyRpGWKA.js";
7
7
  import { L as d, T as f, Tt as p, U as m, V as h, b as g, dt as _, i as ee, it as v, nt as y, q as b, u as x } from "./dist-BMzyJZTx.js";
8
- import { n as S, t as C } from "./dist-Cdbpkd3Y.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-BVbXoNt-.js";
11
- import { C as O, S as te, _ as k, a as ne, b as re, c as ie, d as ae, f as oe, g as se, h as ce, i as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e, v as ve, x as ye, y as be } from "./BillingDocumentDetailViewDataProvider-a3kGQ6K1.js";
12
- import { r as xe } from "./InvoicingFileUploadProvider-BsK5eRGE.js";
13
- import Se, { 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 Ce, createVNode as L, defineComponent as R, mergeProps as z, normalizeClass as B, openBlock as V, ref as we, renderList as Te, renderSlot as Ee, resolveDynamicComponent as De, unref as H, withCtx as U } from "vue";
16
- import { useKeysetInfiniteQuery as Oe, useMutation as W } from "@wisemen/vue-core-api-utils";
17
- import { useRouter as ke } from "vue-router";
18
- import { UIAnimateHeight as Ae, UIBadge as je, UIClickableElement as Me, UIColumnLayout as G, UIDateField as Ne, UIDialogFooter as Pe, UIDialogFooterCancel as Fe, UIDialogFooterSubmit as Ie, UIDialogHeader as Le, UIForm as K, UIFormDialog as Re, UIRowLayout as q, UISeparator as ze, UIText as J, UITextField as Be, useOverlay as Ve, useToast as Y } from "@wisemen/vue-core-design-system";
8
+ import { n as te, t as S } from "./dist-Cdbpkd3Y.js";
9
+ import { t as C } from "./formango.util-D5c2ql--.js";
10
+ import { n as w, r as T, t as E } from "./creditNoteDetail.query-C2BYvPKC.js";
11
+ import { C as D, S as ne, _ as O, a as re, b as ie, c as k, d as ae, f as oe, g as se, h as ce, i as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e, v as ve, w as A, x as ye, y as be } from "./BillingDocumentDetailViewDataProvider-Dm8C5WNN.js";
12
+ import { r as xe } from "./InvoicingFileUploadProvider-CxmF68sz.js";
13
+ import Se, { 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 Ce, createVNode as R, defineComponent as z, mergeProps as we, normalizeClass as B, openBlock as V, ref as Te, renderList as Ee, renderSlot as De, resolveDynamicComponent as Oe, unref as H, withCtx as U } from "vue";
16
+ import { useKeysetInfiniteQuery as ke, useMutation as W } from "@wisemen/vue-core-api-utils";
17
+ import { useRouter as Ae } from "vue-router";
18
+ import { UIAnimateHeight as je, UIBadge as Me, UIClickableElement as Ne, UIColumnLayout as G, UIDateField as Pe, UIDialogFooter as Fe, UIDialogFooterCancel as Ie, UIDialogFooterSubmit as Le, UIDialogHeader as Re, UIForm as K, UIFormDialog as ze, UIRowLayout as q, UISeparator as Be, UIText as J, UITextField as Ve, useOverlay as He, 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) => T.update(e.params.creditNoteUuid, e.body),
23
+ queryFn: (e) => w.update(e.params.creditNoteUuid, e.body),
24
24
  queryKeysToInvalidate: {
25
25
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
26
26
  invoiceIndex: {}
@@ -29,23 +29,23 @@ function Z() {
29
29
  }
30
30
  //#endregion
31
31
  //#region src/modules/credit-note/models/update/creditNoteUpdateForm.model.ts
32
- var He = A.object({
33
- issuedOn: C,
34
- externalRemarks: A.string().nullable(),
35
- poNumber: A.string().nullable(),
36
- subject: A.string().nullable()
32
+ var Ue = j.object({
33
+ issuedOn: S,
34
+ externalRemarks: j.string().nullable(),
35
+ poNumber: j.string().nullable(),
36
+ subject: j.string().nullable()
37
37
  }).superRefine((t, n) => {
38
38
  t.externalRemarks?.trim() === "" && n.addIssue({
39
39
  code: "custom",
40
40
  message: e.global.t("wise_invoicing.credit_note.finalize.validation.external_remarks_required"),
41
41
  path: ["externalRemarks"]
42
42
  });
43
- }), Ue = A.object({ subject: A.string().nullable() });
43
+ }), We = j.object({ subject: j.string().nullable() });
44
44
  //#endregion
45
45
  //#region src/modules/credit-note/api/mutations/creditNoteFinalize.mutation.ts
46
- function We() {
46
+ function Ge() {
47
47
  return W({
48
- queryFn: (e) => T.finalize(e.params.creditNoteUuid),
48
+ queryFn: (e) => w.finalize(e.params.creditNoteUuid),
49
49
  queryKeysToInvalidate: {
50
50
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
51
51
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -55,9 +55,9 @@ function We() {
55
55
  }
56
56
  //#endregion
57
57
  //#region src/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.ts
58
- function Ge() {
58
+ function Ke() {
59
59
  return W({
60
- queryFn: (e) => T.markAsDraft(e.params.creditNoteUuid),
60
+ queryFn: (e) => w.markAsDraft(e.params.creditNoteUuid),
61
61
  queryKeysToInvalidate: {
62
62
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
63
63
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -67,9 +67,9 @@ function Ge() {
67
67
  }
68
68
  //#endregion
69
69
  //#region src/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.ts
70
- function Ke() {
70
+ function qe() {
71
71
  return W({
72
- queryFn: (e) => T.markAsReady(e.params.creditNoteUuid),
72
+ queryFn: (e) => w.markAsReady(e.params.creditNoteUuid),
73
73
  queryKeysToInvalidate: {
74
74
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
75
75
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -79,44 +79,44 @@ function Ke() {
79
79
  }
80
80
  //#endregion
81
81
  //#region src/modules/credit-note/api/mutations/creditNoteSend.mutation.ts
82
- function qe() {
82
+ function Je() {
83
83
  return W({
84
- queryFn: (e) => T.send(e.params.creditNoteUuid),
84
+ queryFn: (e) => w.send(e.params.creditNoteUuid),
85
85
  queryKeysToInvalidate: { creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid } }
86
86
  });
87
87
  }
88
88
  //#endregion
89
89
  //#region src/modules/credit-note/api/mutations/creditNoteDelete.mutation.ts
90
- function Je() {
90
+ function Ye() {
91
91
  return W({
92
- queryFn: (e) => T.delete(e.params.creditNoteUuid),
92
+ queryFn: (e) => w.delete(e.params.creditNoteUuid),
93
93
  queryKeysToInvalidate: { invoiceIndex: {} }
94
94
  });
95
95
  }
96
96
  //#endregion
97
97
  //#region src/modules/credit-note/use-cases/detail/dialogs/CreditNoteDeleteDialog.vue
98
- var Ye = /* @__PURE__ */ R({
98
+ var Xe = /* @__PURE__ */ z({
99
99
  __name: "CreditNoteDeleteDialog",
100
100
  props: { creditNote: {} },
101
101
  emits: ["close", "deleted"],
102
102
  setup(e, { emit: t }) {
103
- let n = e, r = t, i = j(), a = ke(), o = Y(), s = Je(), c = N(() => n.creditNote.sequence ?? n.creditNote.subject ?? i.t("wise_invoicing.credit_note.detail.fallback_title")), l = X({
103
+ let n = e, r = t, i = M(), a = Ae(), o = Y(), s = Ye(), c = P(() => n.creditNote.sequence ?? n.creditNote.subject ?? i.t("wise_invoicing.credit_note.detail.fallback_title")), l = X({
104
104
  schema: Se.object({}),
105
105
  onSubmit: async () => {
106
106
  let e = await s.execute({ params: { creditNoteUuid: n.creditNote.uuid } });
107
107
  e.isErr() ? o.apiError(e.error) : (o.show({ message: c.value }), r("deleted"), r("close"), await a.push({ name: "invoicing-invoice-overview" }));
108
108
  }
109
109
  });
110
- return (e, t) => (V(), P(H(Re), {
110
+ return (e, t) => (V(), F(H(ze), {
111
111
  form: H(l),
112
112
  size: "xs",
113
113
  onClose: t[0] ||= (e) => r("close")
114
114
  }, {
115
- default: U(() => [L(H(Le), {
115
+ default: U(() => [R(H(Re), {
116
116
  title: H(i).t("wise_invoicing.credit_note.delete.title"),
117
117
  description: H(i).t("wise_invoicing.credit_note.delete.description", { creditNoteIdentifier: c.value })
118
- }, null, 8, ["title", "description"]), L(H(Pe), null, {
119
- right: U(() => [L(H(Fe)), L(H(Ie), {
118
+ }, null, 8, ["title", "description"]), R(H(Fe), null, {
119
+ right: U(() => [R(H(Ie)), R(H(Le), {
120
120
  "is-destructive": !0,
121
121
  label: H(i).t("wise_invoicing.credit_note.delete.submit_button")
122
122
  }, null, 8, ["label"])]),
@@ -128,9 +128,9 @@ var Ye = /* @__PURE__ */ R({
128
128
  });
129
129
  //#endregion
130
130
  //#region src/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.ts
131
- function Xe(e) {
132
- let n = j(), r = Y(), i = Ve(), a = i.create(Ye), s = i.create(re), c = We(), l = Ge(), g = Ke(), _ = qe(), { shouldSkipConfirmation: v } = ye(), y = N(() => e.value.originalInvoice?.uuid ?? e.value.uuid), b = N(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
133
- async function x() {
131
+ function Ze(e) {
132
+ let n = M(), r = Y(), i = He(), a = i.create(Xe), s = i.create(ie), c = Ge(), l = Ke(), g = qe(), _ = Je(), { shouldSkipConfirmation: v } = ye(), y = P(() => e.value.originalInvoice?.uuid ?? e.value.uuid), b = P(() => ne.getSummary(e.value)?.isExceeded ?? !1), x = P(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
133
+ async function te() {
134
134
  let t = await g.execute({ params: {
135
135
  creditNoteUuid: e.value.uuid,
136
136
  invoiceUuid: y.value
@@ -150,7 +150,7 @@ function Xe(e) {
150
150
  onConfirm: S
151
151
  });
152
152
  }
153
- async function w() {
153
+ async function T() {
154
154
  let t = await l.execute({ params: {
155
155
  creditNoteUuid: e.value.uuid,
156
156
  invoiceUuid: y.value
@@ -165,7 +165,7 @@ function Xe(e) {
165
165
  await a.open({ creditNote: e.value });
166
166
  }
167
167
  async function O() {
168
- let t = await T.getByUuid(e.value.uuid);
168
+ let t = await w.getByUuid(e.value.uuid);
169
169
  if (t.isErr()) {
170
170
  r.apiError(t.error);
171
171
  return;
@@ -178,7 +178,7 @@ function Xe(e) {
178
178
  let a = await xe.getDownloadUrl(i.uuid);
179
179
  a !== null && u.downloadUrl(a, i.name);
180
180
  }
181
- let te = N(() => [
181
+ let re = P(() => [
182
182
  {
183
183
  isLoading: _.isLoading.value,
184
184
  iconLeft: p,
@@ -194,29 +194,31 @@ function Xe(e) {
194
194
  key: "markAsReady",
195
195
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
196
196
  visible: e.value.status === t.DRAFT,
197
- onClick: x
197
+ onClick: te
198
198
  },
199
199
  {
200
+ isDisabled: b.value,
200
201
  isLoading: c.isLoading.value,
202
+ disabledReason: b.value ? n.t("wise_invoicing.credit_note.finalize.exceeds_creditable_amount") : null,
201
203
  iconRight: d,
202
204
  key: "finalize",
203
205
  label: n.t("wise_invoicing.invoice.detail.actions.finalize"),
204
206
  visible: e.value.status === t.READY,
205
207
  onClick: C
206
208
  }
207
- ].filter((e) => e.visible)), k = N(() => {
209
+ ].filter((e) => e.visible)), k = P(() => {
208
210
  let r = [{
209
211
  icon: f,
210
212
  key: "downloadPdf",
211
213
  label: n.t("wise_invoicing.common.download_pdf"),
212
- visible: b.value,
214
+ visible: x.value,
213
215
  onSelect: O
214
216
  }, {
215
217
  icon: m,
216
218
  key: "backToDraft",
217
219
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
218
220
  visible: e.value.status === t.READY,
219
- onSelect: w
221
+ onSelect: T
220
222
  }], i = [{
221
223
  icon: h,
222
224
  key: "delete",
@@ -233,14 +235,14 @@ function Xe(e) {
233
235
  }].filter((e) => e.items.length > 0);
234
236
  });
235
237
  return {
236
- isActionMenuVisible: N(() => k.value.length > 0),
238
+ isActionMenuVisible: P(() => k.value.length > 0),
237
239
  menuGroups: k,
238
- primaryButtons: te
240
+ primaryButtons: re
239
241
  };
240
242
  }
241
243
  //#endregion
242
244
  //#region src/modules/credit-note/use-cases/detail/components/CreditNoteDetailHeaderSection.vue
243
- var Ze = /* @__PURE__ */ R({
245
+ var Qe = /* @__PURE__ */ z({
244
246
  __name: "CreditNoteDetailHeaderSection",
245
247
  props: {
246
248
  isPdfViewActive: { type: Boolean },
@@ -248,13 +250,13 @@ var Ze = /* @__PURE__ */ R({
248
250
  },
249
251
  emits: ["togglePdfView"],
250
252
  setup(e, { emit: n }) {
251
- let r = e, i = n, a = j(), o = Y(), s = Z(), { menuGroups: c, primaryButtons: l } = Xe(N(() => r.creditNote)), u = N(() => new te(r.creditNote.status)), d = N(() => u.value.color), f = N(() => a.t(u.value.translationKey)), p = N(() => r.creditNote.status !== t.DRAFT && r.creditNote.status !== t.READY), m = X({
253
+ let r = e, i = n, a = M(), o = Y(), s = Z(), { menuGroups: c, primaryButtons: l } = Ze(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({
252
254
  initialState: { subject: r.creditNote.subject },
253
- schema: Ue,
255
+ schema: We,
254
256
  onSubmit: async (e) => {
255
257
  let t = await s.execute({
256
258
  body: {
257
- ...E.toForm(r.creditNote),
259
+ ...T.toForm(r.creditNote),
258
260
  subject: e.subject
259
261
  },
260
262
  params: { creditNoteUuid: r.creditNote.uuid }
@@ -262,11 +264,11 @@ var Ze = /* @__PURE__ */ R({
262
264
  t.isErr() && o.apiError(t.error);
263
265
  }
264
266
  }), h = m.register("subject");
265
- return O({ form: m }), (e, t) => (V(), P(H(K), {
267
+ return A({ form: m }), (e, t) => (V(), F(H(K), {
266
268
  form: H(m),
267
269
  "prompt-on-unsaved-changes": !1
268
270
  }, {
269
- default: U(() => [L(ve, {
271
+ default: U(() => [R(ve, {
270
272
  "fallback-title": H(a).t("wise_invoicing.credit_note.detail.fallback_title"),
271
273
  "is-disabled": p.value,
272
274
  sequence: r.creditNote.sequence,
@@ -276,7 +278,7 @@ var Ze = /* @__PURE__ */ R({
276
278
  "subject-field": H(h),
277
279
  "subject-placeholder": H(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
278
280
  }, {
279
- actions: U(() => [L(k, {
281
+ actions: U(() => [R(O, {
280
282
  "is-pdf-view-active": r.isPdfViewActive,
281
283
  "menu-groups": H(c),
282
284
  "primary-buttons": H(l),
@@ -286,11 +288,11 @@ var Ze = /* @__PURE__ */ R({
286
288
  "menu-groups",
287
289
  "primary-buttons"
288
290
  ])]),
289
- status: U(() => [L(H(q), {
291
+ status: U(() => [R(H(q), {
290
292
  gap: "xs",
291
293
  class: "flex-wrap items-start"
292
294
  }, {
293
- default: U(() => [r.creditNote.isOverdue ? (V(), P(be, { key: 0 })) : F("", !0)]),
295
+ default: U(() => [r.creditNote.isOverdue ? (V(), F(be, { key: 0 })) : I("", !0)]),
294
296
  _: 1
295
297
  })]),
296
298
  _: 1
@@ -307,13 +309,13 @@ var Ze = /* @__PURE__ */ R({
307
309
  _: 1
308
310
  }, 8, ["form"]));
309
311
  }
310
- }), Qe = /* @__PURE__ */ R({
312
+ }), $e = /* @__PURE__ */ z({
311
313
  __name: "CreditNoteDetailRemarksSection",
312
314
  props: { creditNote: {} },
313
315
  setup(e) {
314
- let n = e, r = j(), i = Y(), a = Z(), o = X({
315
- initialState: N(() => E.toForm(n.creditNote)),
316
- schema: He,
316
+ let n = e, r = M(), i = Y(), a = Z(), o = X({
317
+ initialState: P(() => T.toForm(n.creditNote)),
318
+ schema: Ue,
317
319
  onSubmit: async (e) => {
318
320
  let t = await a.execute({
319
321
  body: e,
@@ -321,12 +323,12 @@ var Ze = /* @__PURE__ */ R({
321
323
  });
322
324
  t.isErr() && i.apiError(t.error);
323
325
  }
324
- }), s = o.register("externalRemarks"), c = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
325
- return O({ form: o }), (e, t) => (V(), P(H(K), {
326
+ }), s = o.register("externalRemarks"), c = P(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
327
+ return A({ form: o }), (e, t) => (V(), F(H(K), {
326
328
  form: H(o),
327
329
  "prompt-on-unsaved-changes": !1
328
330
  }, {
329
- default: U(() => [L(se, {
331
+ default: U(() => [R(se, {
330
332
  "is-disabled": c.value,
331
333
  placeholder: H(r).t("wise_invoicing.invoice.detail.remarks.placeholder"),
332
334
  "remarks-field": H(s),
@@ -343,23 +345,23 @@ var Ze = /* @__PURE__ */ R({
343
345
  });
344
346
  //#endregion
345
347
  //#region src/modules/credit-note/api/queries/creditNoteActivityLogIndex.query.ts
346
- function $e(e) {
347
- return Oe("creditNoteActivityLogIndex", {
348
+ function et(e) {
349
+ return ke("creditNoteActivityLogIndex", {
348
350
  params: { creditNoteUuid: e },
349
- queryFn: (t) => T.getActivityLogs(e.value, { pagination: t })
351
+ queryFn: (t) => w.getActivityLogs(e.value, { pagination: t })
350
352
  });
351
353
  }
352
354
  //#endregion
353
355
  //#region src/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarActivityTab.vue
354
- var et = /* @__PURE__ */ R({
356
+ var tt = /* @__PURE__ */ z({
355
357
  __name: "CreditNoteDetailSidebarActivityTab",
356
358
  props: { creditNote: {} },
357
359
  setup(e) {
358
- let t = e, r = j(), { hasNextPage: i, isFetchingNextPage: a, isLoading: o, fetchNextPage: s, result: c } = $e(N(() => t.creditNote.uuid)), l = N(() => c.value.unwrapOr({
360
+ let t = e, r = M(), { hasNextPage: i, isFetchingNextPage: a, isLoading: o, fetchNextPage: s, result: c } = et(P(() => t.creditNote.uuid)), l = P(() => c.value.unwrapOr({
359
361
  data: [],
360
362
  meta: { next: null }
361
363
  }).data);
362
- return (e, c) => (V(), P(ce, {
364
+ return (e, c) => (V(), F(ce, {
363
365
  "current-billing-document": {
364
366
  role: H(n).CREDIT_NOTE,
365
367
  uuid: t.creditNote.uuid
@@ -380,7 +382,7 @@ var et = /* @__PURE__ */ R({
380
382
  "is-loading"
381
383
  ]));
382
384
  }
383
- }), Q = /* @__PURE__ */ R({
385
+ }), Q = /* @__PURE__ */ z({
384
386
  __name: "BillingDocumentDetailSidebarInfoItem",
385
387
  props: {
386
388
  hasError: {
@@ -392,25 +394,25 @@ var et = /* @__PURE__ */ R({
392
394
  },
393
395
  setup(e) {
394
396
  let t = e;
395
- return (e, n) => (V(), P(H(q), null, {
397
+ return (e, n) => (V(), F(H(q), null, {
396
398
  default: U(() => [
397
- (V(), P(De(t.icon), { class: B([{
399
+ (V(), F(Oe(t.icon), { class: B([{
398
400
  "text-error-primary": t.hasError,
399
401
  "text-tertiary": !t.hasError
400
402
  }, "size-3.5 shrink-0"]) }, null, 8, ["class"])),
401
- L(H(J), {
403
+ R(H(J), {
402
404
  text: t.label,
403
405
  class: B([{
404
406
  "text-error-primary": t.hasError,
405
407
  "text-tertiary": !t.hasError
406
408
  }, "w-24 shrink-0 text-xs"])
407
409
  }, null, 8, ["text", "class"]),
408
- Ee(e.$slots, "default")
410
+ De(e.$slots, "default")
409
411
  ]),
410
412
  _: 3
411
413
  }));
412
414
  }
413
- }), $ = /* @__PURE__ */ R({
415
+ }), $ = /* @__PURE__ */ z({
414
416
  __name: "BillingDocumentDetailSidebarPartySection",
415
417
  props: {
416
418
  title: {},
@@ -423,71 +425,71 @@ var et = /* @__PURE__ */ R({
423
425
  email: { default: null }
424
426
  },
425
427
  setup(e) {
426
- let t = e, n = we(t.isDefaultOpen);
428
+ let t = e, n = Te(t.isDefaultOpen);
427
429
  function i() {
428
430
  n.value = !n.value;
429
431
  }
430
- return (e, a) => (V(), P(H(G), { class: "w-full" }, {
431
- default: U(() => [L(H(q), { justify: "between" }, {
432
- default: U(() => [L(H(Me), { class: "rounded-sm" }, {
432
+ return (e, a) => (V(), F(H(G), { class: "w-full" }, {
433
+ default: U(() => [R(H(q), { justify: "between" }, {
434
+ default: U(() => [R(H(Ne), { class: "rounded-sm" }, {
433
435
  default: U(() => [Ce("button", {
434
436
  type: "button",
435
437
  class: "flex w-full items-center gap-sm",
436
438
  onClick: i
437
439
  }, [
438
- L(H(J), {
440
+ R(H(J), {
439
441
  text: t.title,
440
442
  class: "text-xs font-semibold text-primary"
441
443
  }, null, 8, ["text"]),
442
- L(H(je), {
444
+ R(H(Me), {
443
445
  label: t.name,
444
446
  color: "gray",
445
447
  variant: "outline"
446
448
  }, null, 8, ["label"]),
447
- L(H(v), { class: B([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
449
+ R(H(v), { class: B([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
448
450
  ])]),
449
451
  _: 1
450
452
  })]),
451
453
  _: 1
452
- }), L(H(Ae), null, {
453
- default: U(() => [n.value ? (V(), P(H(G), {
454
+ }), R(H(je), null, {
455
+ default: U(() => [n.value ? (V(), F(H(G), {
454
456
  key: 0,
455
457
  gap: "xs"
456
458
  }, {
457
459
  default: U(() => [
458
- L(H(J), {
460
+ R(H(J), {
459
461
  text: t.name,
460
462
  class: "text-xs font-medium text-primary"
461
463
  }, null, 8, ["text"]),
462
- t.address ? (V(), P(H(J), {
464
+ t.address ? (V(), F(H(J), {
463
465
  key: 0,
464
466
  truncate: !1,
465
467
  text: H(r).format(t.address),
466
468
  class: "text-xs text-primary"
467
- }, null, 8, ["text"])) : F("", !0),
468
- t.email ? (V(), P(H(J), {
469
+ }, null, 8, ["text"])) : I("", !0),
470
+ t.email ? (V(), F(H(J), {
469
471
  key: 1,
470
472
  text: t.email,
471
473
  class: "text-xs text-primary"
472
- }, null, 8, ["text"])) : F("", !0)
474
+ }, null, 8, ["text"])) : I("", !0)
473
475
  ]),
474
476
  _: 1
475
- })) : F("", !0)]),
477
+ })) : I("", !0)]),
476
478
  _: 1
477
479
  })]),
478
480
  _: 1
479
481
  }));
480
482
  }
481
- }), tt = /* @__PURE__ */ R({
483
+ }), nt = /* @__PURE__ */ z({
482
484
  __name: "CreditNoteDetailSidebarInfoTab",
483
485
  props: {
484
486
  creditNote: {},
485
487
  customFieldDefinitions: {}
486
488
  },
487
489
  setup(e) {
488
- let n = e, r = j(), i = Y(), a = Z(), o = X({
489
- initialState: N(() => E.toForm(n.creditNote)),
490
- schema: He,
490
+ let n = e, r = M(), i = Y(), a = Z(), o = X({
491
+ initialState: P(() => T.toForm(n.creditNote)),
492
+ schema: Ue,
491
493
  onSubmit: async (e) => {
492
494
  let t = await a.execute({
493
495
  body: e,
@@ -495,38 +497,38 @@ var et = /* @__PURE__ */ R({
495
497
  });
496
498
  t.isErr() && i.apiError(t.error);
497
499
  }
498
- }), u = N(() => l.listByDefinitions(n.customFieldDefinitions, n.creditNote.customFields)), d = o.register("issuedOn"), f = o.register("poNumber"), p = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
499
- return O({ form: o }), (e, t) => (V(), P(H(K), {
500
+ }), u = P(() => l.listByDefinitions(n.customFieldDefinitions, n.creditNote.customFields)), d = o.register("issuedOn"), f = o.register("poNumber"), p = P(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
501
+ return A({ form: o }), (e, t) => (V(), F(H(K), {
500
502
  form: H(o),
501
503
  "prompt-on-unsaved-changes": !1
502
504
  }, {
503
- default: U(() => [L(H(G), {
505
+ default: U(() => [R(H(G), {
504
506
  gap: "lg",
505
507
  class: "px-2xl py-xl"
506
508
  }, {
507
509
  default: U(() => [
508
- L(H(G), null, {
509
- default: U(() => [L(H(J), {
510
+ R(H(G), null, {
511
+ default: U(() => [R(H(J), {
510
512
  text: H(r).t("wise_invoicing.invoice.detail.sidebar.general"),
511
513
  class: "text-xs font-semibold text-primary"
512
- }, null, 8, ["text"]), L(H(G), { gap: "lg" }, {
514
+ }, null, 8, ["text"]), R(H(G), { gap: "lg" }, {
513
515
  default: U(() => [
514
- L(Q, {
516
+ R(Q, {
515
517
  icon: H(g),
516
518
  label: H(r).t("wise_invoicing.invoice.detail.header.invoice_id")
517
519
  }, {
518
- default: U(() => [L(H(J), {
520
+ default: U(() => [R(H(J), {
519
521
  text: n.creditNote.sequence ?? "-",
520
522
  class: "text-xs text-primary"
521
523
  }, null, 8, ["text"])]),
522
524
  _: 1
523
525
  }, 8, ["icon", "label"]),
524
- L(Q, {
526
+ R(Q, {
525
527
  icon: H(b),
526
528
  "has-error": H(f).errors.value.length > 0,
527
529
  label: H(r).t("wise_invoicing.invoice.detail.header.po_number")
528
530
  }, {
529
- default: U(() => [L(H(Be), z(H(w)(H(f)), {
531
+ default: U(() => [R(H(Ve), we(H(C)(H(f)), {
530
532
  "is-disabled": p.value,
531
533
  label: null,
532
534
  class: "w-full"
@@ -537,34 +539,34 @@ var et = /* @__PURE__ */ R({
537
539
  "has-error",
538
540
  "label"
539
541
  ]),
540
- L(Q, {
542
+ R(Q, {
541
543
  icon: H(x),
542
544
  label: H(r).t("wise_invoicing.invoice.detail.header.issuer")
543
545
  }, {
544
- default: U(() => [L(H(J), {
546
+ default: U(() => [R(H(J), {
545
547
  text: n.creditNote.issuer.name ?? "-",
546
548
  class: "text-xs text-primary"
547
549
  }, null, 8, ["text"])]),
548
550
  _: 1
549
551
  }, 8, ["icon", "label"]),
550
- L(Q, {
552
+ R(Q, {
551
553
  icon: H(y),
552
554
  "has-error": H(d).errors.value.length > 0,
553
555
  label: H(r).t("wise_invoicing.invoice.detail.header.invoice_date")
554
556
  }, {
555
- default: U(() => [L(H(Ne), z({ "is-disabled": p.value }, H(w)(H(d))), null, 16, ["is-disabled"])]),
557
+ default: U(() => [R(H(Pe), we({ "is-disabled": p.value }, H(C)(H(d))), null, 16, ["is-disabled"])]),
556
558
  _: 1
557
559
  }, 8, [
558
560
  "icon",
559
561
  "has-error",
560
562
  "label"
561
563
  ]),
562
- (V(!0), I(M, null, Te(u.value, (e) => (V(), P(Q, {
564
+ (V(!0), L(N, null, Ee(u.value, (e) => (V(), F(Q, {
563
565
  key: e.definition.uuid,
564
566
  icon: H(ue)[e.definition.type],
565
567
  label: H(s).getLabel(e.definition, H(r).locale.value)
566
568
  }, {
567
- default: U(() => [L(c, {
569
+ default: U(() => [R(c, {
568
570
  definition: e.definition,
569
571
  value: e.value
570
572
  }, null, 8, ["definition", "value"])]),
@@ -575,9 +577,9 @@ var et = /* @__PURE__ */ R({
575
577
  })]),
576
578
  _: 1
577
579
  }),
578
- L(H(ze)),
579
- L(pe, { "original-invoice": n.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
580
- L($, {
580
+ R(H(Be)),
581
+ R(pe, { "original-invoice": n.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
582
+ R($, {
581
583
  "is-default-open": !0,
582
584
  name: n.creditNote.customer.name ?? "-",
583
585
  title: H(r).t("wise_invoicing.invoice.detail.header.bill_to"),
@@ -589,8 +591,8 @@ var et = /* @__PURE__ */ R({
589
591
  "address",
590
592
  "email"
591
593
  ]),
592
- L(H(ze)),
593
- L($, {
594
+ R(H(Be)),
595
+ R($, {
594
596
  name: n.creditNote.issuer.email ?? "-",
595
597
  title: H(r).t("wise_invoicing.invoice.detail.header.bill_from"),
596
598
  address: n.creditNote.issuer.address
@@ -605,20 +607,20 @@ var et = /* @__PURE__ */ R({
605
607
  _: 1
606
608
  }, 8, ["form"]));
607
609
  }
608
- }), nt = /* @__PURE__ */ R({
610
+ }), rt = /* @__PURE__ */ z({
609
611
  __name: "CreditNoteDetailSidebar",
610
612
  props: {
611
613
  creditNote: {},
612
614
  customFieldDefinitions: {}
613
615
  },
614
616
  setup(e) {
615
- let t = e, n = j(), r = S(), i = N(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.creditNote.updatedAt) }));
616
- return (e, n) => (V(), P(oe, {
617
+ let t = e, n = M(), r = te(), i = P(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.creditNote.updatedAt) }));
618
+ return (e, n) => (V(), F(oe, {
617
619
  "billing-document": t.creditNote,
618
620
  "updated-footer": i.value
619
621
  }, {
620
- activity: U(() => [L(et, { "credit-note": t.creditNote }, null, 8, ["credit-note"])]),
621
- info: U(() => [L(tt, {
622
+ activity: U(() => [R(tt, { "credit-note": t.creditNote }, null, 8, ["credit-note"])]),
623
+ info: U(() => [R(nt, {
622
624
  "credit-note": t.creditNote,
623
625
  "custom-field-definitions": t.customFieldDefinitions
624
626
  }, null, 8, ["credit-note", "custom-field-definitions"])]),
@@ -628,9 +630,9 @@ var et = /* @__PURE__ */ R({
628
630
  });
629
631
  //#endregion
630
632
  //#region src/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.ts
631
- function rt() {
633
+ function it() {
632
634
  return W({
633
- queryFn: (e) => T.updateLines(e.params.creditNoteUuid, e.body),
635
+ queryFn: (e) => w.updateLines(e.params.creditNoteUuid, e.body),
634
636
  queryKeysToInvalidate: {
635
637
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
636
638
  invoiceIndex: {}
@@ -639,15 +641,15 @@ function rt() {
639
641
  }
640
642
  //#endregion
641
643
  //#region src/modules/credit-note/use-cases/detail/components/table/CreditNoteLineItemsTableSection.vue
642
- var it = /* @__PURE__ */ R({
644
+ var at = /* @__PURE__ */ z({
643
645
  __name: "CreditNoteLineItemsTableSection",
644
646
  props: {
645
647
  creditNote: {},
646
648
  customFieldDefinitions: {}
647
649
  },
648
650
  setup(e) {
649
- let t = e, n = N(() => t.creditNote), r = rt(), i = le({
650
- isSaving: N(() => r.isLoading.value),
651
+ let t = e, n = P(() => t.creditNote), r = it(), i = le({
652
+ isSaving: P(() => r.isLoading.value),
651
653
  billingDocument: () => n.value,
652
654
  customFieldDefinitions: () => t.customFieldDefinitions,
653
655
  updateLines: (e) => r.execute({
@@ -655,24 +657,24 @@ var it = /* @__PURE__ */ R({
655
657
  params: { creditNoteUuid: t.creditNote.uuid }
656
658
  })
657
659
  });
658
- return ae(i), (e, n) => (V(), P(fe, null, {
660
+ return ae(i), (e, n) => (V(), F(fe, null, {
659
661
  default: U(() => [
660
- L(he, { "show-apply-discount": !1 }),
661
- L(ie),
662
- L(ne, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
663
- L(_e)
662
+ R(he, { "show-apply-discount": !1 }),
663
+ R(k),
664
+ R(re, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
665
+ R(_e)
664
666
  ]),
665
667
  _: 1
666
668
  }));
667
669
  }
668
- }), at = /* @__PURE__ */ R({
670
+ }), ot = /* @__PURE__ */ z({
669
671
  __name: "CreditNoteDetailView",
670
672
  props: {
671
673
  creditNote: {},
672
674
  customFieldDefinitions: {}
673
675
  },
674
676
  setup(e) {
675
- let t = e, n = j(), r = we(!1), a = N(() => s.filterByView(t.customFieldDefinitions, i.CREDIT_NOTE_DETAIL)), o = N(() => [
677
+ let t = e, n = M(), r = Te(!1), a = P(() => s.filterByView(t.customFieldDefinitions, i.CREDIT_NOTE_DETAIL)), o = P(() => [
676
678
  {
677
679
  label: n.t("wise_invoicing.invoice.overview.title"),
678
680
  to: { name: "invoicing-invoice-overview" }
@@ -687,29 +689,29 @@ var it = /* @__PURE__ */ R({
687
689
  { label: n.t("wise_invoicing.invoice.detail.credit_notes.untitled") },
688
690
  { label: t.creditNote.sequence ?? n.t("wise_invoicing.credit_note.detail.fallback_title") }
689
691
  ]);
690
- return (e, i) => (V(), P(me, {
692
+ return (e, i) => (V(), F(me, {
691
693
  "billing-document": t.creditNote,
692
694
  breadcrumbs: o.value,
693
695
  title: H(n).t("wise_invoicing.credit_note.detail.fallback_title")
694
696
  }, {
695
- header: U(() => [L(Ze, {
697
+ header: U(() => [R(Qe, {
696
698
  "credit-note": t.creditNote,
697
699
  "is-pdf-view-active": r.value,
698
700
  class: "w-full",
699
701
  onTogglePdfView: i[0] ||= (e) => r.value = !r.value
700
702
  }, null, 8, ["credit-note", "is-pdf-view-active"])]),
701
- default: U(() => [r.value ? (V(), P(de, {
703
+ default: U(() => [r.value ? (V(), F(de, {
702
704
  key: 0,
703
705
  "billing-document": t.creditNote,
704
706
  class: "w-full"
705
- }, null, 8, ["billing-document"])) : (V(), I(M, { key: 1 }, [L(it, {
707
+ }, null, 8, ["billing-document"])) : (V(), L(N, { key: 1 }, [R(at, {
706
708
  "credit-note": t.creditNote,
707
709
  "custom-field-definitions": a.value
708
- }, null, 8, ["credit-note", "custom-field-definitions"]), L(Qe, {
710
+ }, null, 8, ["credit-note", "custom-field-definitions"]), R($e, {
709
711
  "credit-note": t.creditNote,
710
712
  class: "w-full"
711
713
  }, null, 8, ["credit-note"])], 64))]),
712
- sidebar: U(() => [L(nt, {
714
+ sidebar: U(() => [R(rt, {
713
715
  "credit-note": t.creditNote,
714
716
  "custom-field-definitions": a.value
715
717
  }, null, 8, ["credit-note", "custom-field-definitions"])]),
@@ -720,20 +722,20 @@ var it = /* @__PURE__ */ R({
720
722
  "title"
721
723
  ]));
722
724
  }
723
- }), ot = /* @__PURE__ */ R({
725
+ }), st = /* @__PURE__ */ z({
724
726
  __name: "CreditNoteDetailViewDataProvider",
725
727
  props: { creditNoteUuid: {} },
726
728
  setup(e) {
727
- let t = e, n = j(), r = N(() => [{
729
+ let t = e, n = M(), r = P(() => [{
728
730
  label: n.t("wise_invoicing.invoice.overview.title"),
729
731
  to: { name: "invoicing-invoice-overview" }
730
- }]), i = D(N(() => t.creditNoteUuid)), o = a();
731
- return (e, t) => (V(), P(ge, {
732
+ }]), i = E(P(() => t.creditNoteUuid)), o = a();
733
+ return (e, t) => (V(), F(ge, {
732
734
  "custom-field-definitions-query": H(o),
733
735
  query: H(i),
734
736
  "loading-breadcrumbs": r.value
735
737
  }, {
736
- default: U(({ billingDocument: e, customFieldDefinitions: t }) => [L(at, {
738
+ default: U(({ billingDocument: e, customFieldDefinitions: t }) => [R(ot, {
737
739
  "credit-note": e,
738
740
  "custom-field-definitions": t
739
741
  }, null, 8, ["credit-note", "custom-field-definitions"])]),
@@ -746,4 +748,4 @@ var it = /* @__PURE__ */ R({
746
748
  }
747
749
  });
748
750
  //#endregion
749
- export { ot as default };
751
+ export { st as default };