@wisemen/wise-invoicing-web 0.0.4 → 0.0.6

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 (91) hide show
  1. package/dist/{BillingDocumentDetailViewDataProvider-pePmiXWb.js → BillingDocumentDetailViewDataProvider-BGE-p_FL.js} +953 -863
  2. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  3. package/dist/{BillingDocumentPdf-Dg5JlQE1.js → BillingDocumentPdf-Ca81NkZq.js} +4 -4
  4. package/dist/{CreditNoteDetailViewDataProvider-C-A0jyVr.js → CreditNoteDetailViewDataProvider-b5dY_4mH.js} +181 -181
  5. package/dist/{CreditNotePdfViewDataProvider-DNUvFVDj.js → CreditNotePdfViewDataProvider-C2QqCdQ7.js} +3 -3
  6. package/dist/{CustomFieldValueText-DDQq-975.js → CustomFieldValueText-ne5yy02J.js} +2 -2
  7. package/dist/DataProvider-Dj34ljUX.js +75 -0
  8. package/dist/{DunningCaseDetailViewDataProvider-0WV-7-vg.js → DunningCaseDetailViewDataProvider-jsh-LlGx.js} +68 -59
  9. package/dist/DunningCaseOverviewView-WbXalMt6.js +747 -0
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js → DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js} +1 -1
  11. package/dist/DunningCaseSendDialog-D7jAZ8yT.js +349 -0
  12. package/dist/{InvoiceDetailViewDataProvider-BDL9lAWe.js → InvoiceDetailViewDataProvider-BAVdcJay.js} +589 -498
  13. package/dist/{InvoiceOverviewViewDataProvider-B_jrcC_8.js → InvoiceOverviewViewDataProvider-BT9cuQXw.js} +546 -482
  14. package/dist/{InvoicePdfView-Bygb-9z6.js → InvoicePdfView-BpIaYdZX.js} +2 -2
  15. package/dist/{InvoicePdfViewDataProvider-nBk3XNrE.js → InvoicePdfViewDataProvider-DGCnmNE-.js} +3 -3
  16. package/dist/{InvoicePublicPdfViewDataProvider-DHJP_-7-.js → InvoicePublicPdfViewDataProvider-KV0_hKUI.js} +3 -3
  17. package/dist/{IssuerSettingsViewDataProvider-Dk_Q6w6f.js → IssuerSettingsViewDataProvider-Bs4rEES2.js} +4 -4
  18. package/dist/ReminderSettingsViewDataProvider-D4bRLLXx.js +711 -0
  19. package/dist/{api.util-Dm_TQedZ.js → api.util-BCSgCfpS.js} +528 -509
  20. package/dist/{billingDocumentDetail.transformer-zMTbka5p.js → billingDocumentDetail.transformer-DIKAl4_L.js} +58 -89
  21. package/dist/client/index.d.ts +1 -1
  22. package/dist/client/types.gen.d.ts +28 -5
  23. package/dist/client/zod.gen.d.ts +869 -623
  24. package/dist/{creditNoteDetail.query-BZqgZRSu.js → creditNoteDetail.query-DHP69UiB.js} +13 -13
  25. package/dist/{dist-DP8KNFVD.js → dist-D9lp7NDv.js} +20 -36
  26. package/dist/{dist-DJ8yJcb9.js → dist-PErDVE6-.js} +621 -671
  27. package/dist/{documentTitle.composable-CeaFddr1.js → documentTitle.composable-4ApFl9TZ.js} +10 -8
  28. package/dist/{i18n.lib-DUbAMBRb.js → i18n.lib-BGcQ_OBF.js} +50 -2
  29. package/dist/index.d.ts +51 -2
  30. package/dist/index.js +78 -78
  31. package/dist/{invoice.service-ChHEtXBA.js → invoice.service-DG5eacZC.js} +46 -46
  32. package/dist/{invoiceDeliveryStatus.util-BsA-MlA3.js → invoiceDeliveryStatus.util-CX-IdqAu.js} +28 -28
  33. package/dist/{invoiceDetail.query-O_CGvdwg.js → invoiceDetail.query-C_IMGjOX.js} +1 -1
  34. package/dist/{invoicingConfig.composable-c6w_aMm1.js → invoicingConfig.composable-Kad_HHx_.js} +2 -2
  35. package/dist/{issuerSettings.query-RqtrZFaB.js → issuerSettings.query-6wnSPphB.js} +2 -2
  36. package/dist/libs/i18n.lib.d.ts +50 -2
  37. package/dist/locales/en-US.json.d.ts +25 -1
  38. package/dist/locales/nl-BE.json.d.ts +25 -1
  39. package/dist/models/billing-document/billingDocumentLineItemGroupUpdateForm.model.d.ts +9 -3
  40. package/dist/modules/dunning-case/actions/dunningCase.actions.d.ts +12 -0
  41. package/dist/modules/dunning-case/actions/dunningCaseNavigateToCustomer.action.d.ts +1 -0
  42. package/dist/modules/dunning-case/actions/dunningCaseNavigateToDetail.action.d.ts +1 -0
  43. package/dist/modules/dunning-case/api/mutations/reminderConfigUpdate.mutation.d.ts +2 -0
  44. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +12 -3
  45. package/dist/modules/dunning-case/models/reminderConfigForm.model.d.ts +3 -1
  46. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +13 -0
  47. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewCustomerCell.vue.d.ts +7 -0
  48. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewDaysOverdueCell.vue.d.ts +7 -0
  49. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewLastReminderCell.vue.d.ts +7 -0
  50. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewLevelCell.vue.d.ts +7 -0
  51. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewMetrics.vue.d.ts +8 -0
  52. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewOutstandingCell.vue.d.ts +7 -0
  53. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewReminderCell.vue.d.ts +7 -0
  54. package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewActionsCell.spec.d.ts +1 -0
  55. package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewLastReminderCell.spec.d.ts +1 -0
  56. package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewReminderCell.spec.d.ts +1 -0
  57. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +24 -0
  58. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +8 -0
  59. package/dist/modules/dunning-case/use-cases/send/dialogs/dunningCaseBulkSendDialog.spec.d.ts +1 -0
  60. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +3 -1
  61. package/dist/modules/dunning-case/use-cases/settings/components/reminderLadderFeeNotice.spec.d.ts +1 -0
  62. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +3 -1
  63. package/dist/modules/invoice/api/invoiceIndexCache.util.d.ts +4 -4
  64. package/dist/modules/invoice/api/queries/invoiceUserSearch.query.d.ts +3 -0
  65. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +8 -0
  66. package/dist/modules/invoice/api/services/invoiceUser.service.d.ts +6 -0
  67. package/dist/modules/invoice/components/form/InvoiceFormPreparedByField.vue.d.ts +16 -0
  68. package/dist/modules/invoice/models/invoice/update/invoicePreparer.model.d.ts +4 -0
  69. package/dist/modules/invoice/models/invoice/update/invoicePreparer.transformer.d.ts +5 -0
  70. package/dist/modules/invoice/models/invoice/update/invoiceUserSearchQueryParams.model.d.ts +3 -0
  71. package/dist/modules/invoice/models/invoice/update/invoiceUserSearchQueryParams.transformer.d.ts +6 -0
  72. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +1 -0
  73. package/dist/{plainDate.transformer-BxvJpJOv.js → plainDate.transformer-Dfe5r84P.js} +32 -1
  74. package/dist/{reminderConfig.query-DzTN2AvU.js → reminderConfig.query-hmDNKreg.js} +105 -91
  75. package/dist/search.composable-BCtYqudV.js +52 -0
  76. package/dist/style.css +1 -1
  77. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +6 -6
  78. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +1 -1
  79. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +2 -2
  80. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.spec.d.ts +1 -0
  81. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +3 -1
  82. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +2 -0
  83. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableTextField.vue.d.ts +1 -0
  84. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +19 -0
  85. package/dist/ui/data-provider/DataProviderErrorState.vue.d.ts +7 -0
  86. package/dist/ui/data-provider/dataProviderErrorState.spec.d.ts +1 -0
  87. package/package.json +6 -1
  88. package/dist/DataProvider-CfHLB3rH.js +0 -48
  89. package/dist/DunningCaseOverviewView-CHdzfbhb.js +0 -553
  90. package/dist/DunningCaseSendDialog-DBtwr2ue.js +0 -350
  91. package/dist/ReminderSettingsViewDataProvider-CDBjfU7R.js +0 -668
@@ -1,24 +1,24 @@
1
- import { t as e } from "./i18n.lib-DUbAMBRb.js";
2
- import "./api.util-Dm_TQedZ.js";
3
- import { m as t, r as n } from "./documentTitle.composable-CeaFddr1.js";
1
+ import { t as e } from "./i18n.lib-BGcQ_OBF.js";
2
+ import "./api.util-BCSgCfpS.js";
3
+ import { h as t, r as n } from "./documentTitle.composable-4ApFl9TZ.js";
4
4
  import { t as r } from "./download.util-PjaUQR6r.js";
5
5
  import { r as i } from "./address.transformer-B8C0pwT1.js";
6
- import { D as a, K as o, L as s, M as c, O as l, g as u, h as d, i as f, l as p, nt as m, w as h, z as g } from "./dist-DP8KNFVD.js";
6
+ import { D as a, G as o, I as s, O as c, R as l, g as u, h as d, i as f, j as p, l as m, tt as h, w as g } from "./dist-D9lp7NDv.js";
7
7
  import { n as _, t as v } from "./dist-YTXTCfo1.js";
8
- import { i as ee, r as y } from "./CustomFieldValueText-DDQq-975.js";
8
+ import { i as ee, r as y } from "./CustomFieldValueText-ne5yy02J.js";
9
9
  import { t as b } from "./formango.util-D5c2ql--.js";
10
- import { n as x, r as S, t as C } from "./creditNoteDetail.query-BZqgZRSu.js";
11
- import { C as te, S as ne, T as w, _ as T, a as E, b as D, c as re, d as O, f as k, g as ie, h as ae, i as oe, m as se, n as ce, o as le, p as ue, r as de, s as fe, t as pe, v as me, w as he, x as ge, y as _e } from "./BillingDocumentDetailViewDataProvider-pePmiXWb.js";
12
- import { useRouter as ve } from "vue-router";
13
- import ye, { z as A } from "zod";
14
- import { useI18n as j } from "vue-i18n";
15
- import { Fragment as be, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as xe, createElementVNode as Se, createVNode as F, defineComponent as I, mergeProps as L, normalizeClass as R, openBlock as z, ref as B, renderSlot as Ce, resolveDynamicComponent as we, unref as V, withCtx as H } from "vue";
16
- import { useKeysetInfiniteQuery as Te, useMutation as U } from "@wisemen/vue-core-api-utils";
17
- import { UIAnimateHeight as Ee, UIBadge as De, UIClickableElement as Oe, UIColumnLayout as W, UIDateField as ke, UIDialogFooter as Ae, UIDialogFooterCancel as je, UIDialogFooterSubmit as Me, UIDialogHeader as Ne, UIForm as G, UIFormDialog as Pe, UIRowLayout as K, UISeparator as q, UIText as J, UITextField as Fe, useOverlay as Ie, useToast as Y } from "@wisemen/vue-core-design-system";
18
- import { useForm as X } from "formango";
10
+ import { n as x, r as S, t as C } from "./creditNoteDetail.query-DHP69UiB.js";
11
+ import { C as te, S as ne, T as w, _ as T, a as E, b as D, c as O, d as k, f as A, g as re, h as ie, i as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, v as pe, w as me, x as he, y as ge } from "./BillingDocumentDetailViewDataProvider-BGE-p_FL.js";
12
+ import { useRouter as _e } from "vue-router";
13
+ import ve, { z as j } from "zod";
14
+ import { useI18n as M } from "vue-i18n";
15
+ import { Fragment as ye, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as be, createElementVNode as xe, createVNode as I, defineComponent as L, mergeProps as R, normalizeClass as z, openBlock as B, ref as V, renderSlot as Se, resolveDynamicComponent as Ce, unref as H, withCtx as U } from "vue";
16
+ import { useKeysetInfiniteQuery as we, useMutation as W } from "@wisemen/vue-core-api-utils";
17
+ import { UIAnimateHeight as Te, UIBadge as Ee, UIClickableElement as De, UIColumnLayout as G, UIDateField as Oe, UIDialogFooter as ke, UIDialogFooterCancel as Ae, UIDialogFooterSubmit as je, UIDialogHeader as Me, UIForm as K, UIFormDialog as Ne, UIRowLayout as q, UISeparator as J, UIText as Y, UITextField as Pe, useOverlay as Fe, useToast as X } from "@wisemen/vue-core-design-system";
18
+ import { useForm as Z } from "formango";
19
19
  //#region src/modules/credit-note/api/mutations/creditNoteUpdate.mutation.ts
20
- function Z() {
21
- return U({
20
+ function Q() {
21
+ return W({
22
22
  queryFn: (e) => x.update(e.params.creditNoteUuid, e.body),
23
23
  queryKeysToInvalidate: {
24
24
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
@@ -28,22 +28,22 @@ function Z() {
28
28
  }
29
29
  //#endregion
30
30
  //#region src/modules/credit-note/models/update/creditNoteUpdateForm.model.ts
31
- var Q = A.object({
31
+ var Ie = j.object({
32
32
  issuedOn: v,
33
- externalRemarks: A.string().nullable(),
34
- poNumber: A.string().nullable(),
35
- subject: A.string().nullable()
33
+ externalRemarks: j.string().nullable(),
34
+ poNumber: j.string().nullable(),
35
+ subject: j.string().nullable()
36
36
  }).superRefine((t, n) => {
37
37
  t.externalRemarks?.trim() === "" && n.addIssue({
38
38
  code: "custom",
39
39
  message: e.global.t("wise_invoicing.credit_note.finalize.validation.external_remarks_required"),
40
40
  path: ["externalRemarks"]
41
41
  });
42
- }), Le = A.object({ subject: A.string().nullable() });
42
+ }), Le = j.object({ subject: j.string().nullable() });
43
43
  //#endregion
44
44
  //#region src/modules/credit-note/api/mutations/creditNoteFinalize.mutation.ts
45
45
  function Re() {
46
- return U({
46
+ return W({
47
47
  queryFn: (e) => x.finalize(e.params.creditNoteUuid),
48
48
  queryKeysToInvalidate: {
49
49
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
@@ -55,7 +55,7 @@ function Re() {
55
55
  //#endregion
56
56
  //#region src/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.ts
57
57
  function ze() {
58
- return U({
58
+ return W({
59
59
  queryFn: (e) => x.markAsDraft(e.params.creditNoteUuid),
60
60
  queryKeysToInvalidate: {
61
61
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
@@ -67,7 +67,7 @@ function ze() {
67
67
  //#endregion
68
68
  //#region src/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.ts
69
69
  function Be() {
70
- return U({
70
+ return W({
71
71
  queryFn: (e) => x.markAsReady(e.params.creditNoteUuid),
72
72
  queryKeysToInvalidate: {
73
73
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
@@ -79,7 +79,7 @@ function Be() {
79
79
  //#endregion
80
80
  //#region src/modules/credit-note/api/mutations/creditNoteSend.mutation.ts
81
81
  function Ve() {
82
- return U({
82
+ return W({
83
83
  queryFn: (e) => x.send(e.params.creditNoteUuid),
84
84
  queryKeysToInvalidate: { creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid } }
85
85
  });
@@ -87,20 +87,20 @@ function Ve() {
87
87
  //#endregion
88
88
  //#region src/modules/credit-note/api/mutations/creditNoteDelete.mutation.ts
89
89
  function He() {
90
- return U({
90
+ return W({
91
91
  queryFn: (e) => x.delete(e.params.creditNoteUuid),
92
92
  queryKeysToInvalidate: { invoiceIndex: {} }
93
93
  });
94
94
  }
95
95
  //#endregion
96
96
  //#region src/modules/credit-note/use-cases/detail/dialogs/CreditNoteDeleteDialog.vue
97
- var Ue = /* @__PURE__ */ I({
97
+ var Ue = /* @__PURE__ */ L({
98
98
  __name: "CreditNoteDeleteDialog",
99
99
  props: { creditNote: {} },
100
100
  emits: ["close", "deleted"],
101
101
  setup(e, { emit: t }) {
102
- let n = e, r = t, i = j(), a = ve(), o = Y(), s = He(), c = M(() => n.creditNote.sequence ?? n.creditNote.subject ?? i.t("wise_invoicing.credit_note.detail.fallback_title")), l = X({
103
- schema: ye.object({}),
102
+ let n = e, r = t, i = M(), a = _e(), o = X(), s = He(), c = N(() => n.creditNote.sequence ?? n.creditNote.subject ?? i.t("wise_invoicing.credit_note.detail.fallback_title")), l = Z({
103
+ schema: ve.object({}),
104
104
  onSubmit: async () => {
105
105
  let e = await s.execute({ params: { creditNoteUuid: n.creditNote.uuid } });
106
106
  if (e.isErr()) {
@@ -110,19 +110,19 @@ var Ue = /* @__PURE__ */ I({
110
110
  o.show({ message: c.value }), r("deleted"), r("close"), await a.push({ name: "invoicing-invoice-overview" });
111
111
  }
112
112
  });
113
- return (e, t) => (z(), N(V(Pe), {
114
- form: V(l),
113
+ return (e, t) => (B(), P(H(Ne), {
114
+ form: H(l),
115
115
  size: "xs",
116
116
  onClose: t[0] ||= (e) => r("close")
117
117
  }, {
118
- default: H(() => [F(V(Ne), {
119
- title: V(i).t("wise_invoicing.credit_note.delete.title"),
120
- description: V(i).t("wise_invoicing.credit_note.delete.description", { creditNoteIdentifier: c.value }),
118
+ default: U(() => [I(H(Me), {
119
+ title: H(i).t("wise_invoicing.credit_note.delete.title"),
120
+ description: H(i).t("wise_invoicing.credit_note.delete.description", { creditNoteIdentifier: c.value }),
121
121
  "is-description-visible": !0
122
- }, null, 8, ["title", "description"]), F(V(Ae), null, {
123
- right: H(() => [F(V(je), { label: "cancel" }), F(V(Me), {
122
+ }, null, 8, ["title", "description"]), I(H(ke), null, {
123
+ right: U(() => [I(H(Ae), { label: "cancel" }), I(H(je), {
124
124
  "is-destructive": !0,
125
- label: V(i).t("wise_invoicing.credit_note.delete.submit_button")
125
+ label: H(i).t("wise_invoicing.credit_note.delete.submit_button")
126
126
  }, null, 8, ["label"])]),
127
127
  _: 1
128
128
  })]),
@@ -133,9 +133,9 @@ var Ue = /* @__PURE__ */ I({
133
133
  //#endregion
134
134
  //#region src/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.ts
135
135
  function We(e) {
136
- let n = j(), i = Y(), o = Ie(), s = o.create(Ue), c = o.create(ge), d = Re(), p = ze(), g = Be(), _ = Ve(), { shouldSkipConfirmation: v } = ne(), y = M(() => e.value.originalInvoice?.uuid ?? e.value.uuid), b = M(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
136
+ let n = M(), i = X(), o = Fe(), s = o.create(Ue), l = o.create(he), d = Re(), p = ze(), m = Be(), _ = Ve(), { shouldSkipConfirmation: v } = ne(), y = N(() => e.value.originalInvoice?.uuid ?? e.value.uuid), b = N(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
137
137
  async function S() {
138
- let t = await g.execute({ params: {
138
+ let t = await m.execute({ params: {
139
139
  creditNoteUuid: e.value.uuid,
140
140
  invoiceUuid: y.value
141
141
  } });
@@ -157,7 +157,7 @@ function We(e) {
157
157
  await C();
158
158
  return;
159
159
  }
160
- await c.open({
160
+ await l.open({
161
161
  billingDocumentType: "credit_note",
162
162
  onConfirm: C
163
163
  });
@@ -184,7 +184,7 @@ function We(e) {
184
184
  async function D() {
185
185
  await s.open({ creditNote: e.value });
186
186
  }
187
- async function re() {
187
+ async function O() {
188
188
  let t = await x.getByUuid(e.value.uuid);
189
189
  if (t.isErr()) {
190
190
  i.apiError(t.error);
@@ -198,10 +198,10 @@ function We(e) {
198
198
  let o = await te.getDownloadUrl(a.uuid);
199
199
  o !== null && r.downloadUrl(o, a.name);
200
200
  }
201
- let O = M(() => [
201
+ let k = N(() => [
202
202
  {
203
203
  isLoading: _.isLoading.value,
204
- iconLeft: m,
204
+ iconLeft: h,
205
205
  key: "send",
206
206
  label: n.t("wise_invoicing.invoice.detail.actions.send"),
207
207
  variant: "primary",
@@ -209,7 +209,7 @@ function We(e) {
209
209
  onClick: E
210
210
  },
211
211
  {
212
- isLoading: g.isLoading.value,
212
+ isLoading: m.isLoading.value,
213
213
  iconRight: f,
214
214
  key: "markAsReady",
215
215
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
@@ -218,21 +218,21 @@ function We(e) {
218
218
  },
219
219
  {
220
220
  isLoading: d.isLoading.value,
221
- iconRight: h,
221
+ iconRight: g,
222
222
  key: "finalize",
223
223
  label: n.t("wise_invoicing.invoice.detail.actions.finalize"),
224
224
  visible: e.value.status === t.READY,
225
225
  onClick: w
226
226
  }
227
- ].filter((e) => e.visible)), k = M(() => {
227
+ ].filter((e) => e.visible)), A = N(() => {
228
228
  let r = [{
229
229
  icon: u,
230
230
  key: "downloadPdf",
231
231
  label: n.t("wise_invoicing.common.download_pdf"),
232
232
  visible: b.value,
233
- onSelect: re
233
+ onSelect: O
234
234
  }, {
235
- icon: l,
235
+ icon: c,
236
236
  key: "backToDraft",
237
237
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
238
238
  visible: e.value.status === t.READY,
@@ -253,14 +253,14 @@ function We(e) {
253
253
  }].filter((e) => e.items.length > 0);
254
254
  });
255
255
  return {
256
- isActionMenuVisible: M(() => k.value.length > 0),
257
- menuGroups: k,
258
- primaryButtons: O
256
+ isActionMenuVisible: N(() => A.value.length > 0),
257
+ menuGroups: A,
258
+ primaryButtons: k
259
259
  };
260
260
  }
261
261
  //#endregion
262
262
  //#region src/modules/credit-note/use-cases/detail/components/CreditNoteDetailHeaderSection.vue
263
- var Ge = /* @__PURE__ */ I({
263
+ var Ge = /* @__PURE__ */ L({
264
264
  __name: "CreditNoteDetailHeaderSection",
265
265
  props: {
266
266
  isPdfViewActive: { type: Boolean },
@@ -268,7 +268,7 @@ var Ge = /* @__PURE__ */ I({
268
268
  },
269
269
  emits: ["togglePdfView"],
270
270
  setup(e, { emit: n }) {
271
- let r = e, i = n, a = j(), s = Y(), c = Z(), { menuGroups: l, primaryButtons: u } = We(M(() => r.creditNote)), d = M(() => new he(r.creditNote.status)), f = M(() => d.value.color), p = M(() => a.t(d.value.translationKey)), m = M(() => r.creditNote.status !== t.DRAFT && r.creditNote.status !== t.READY), h = X({
271
+ let r = e, i = n, a = M(), s = X(), c = Q(), { menuGroups: l, primaryButtons: u } = We(N(() => r.creditNote)), d = N(() => new me(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 = Z({
272
272
  initialState: { subject: r.creditNote.subject },
273
273
  schema: Le,
274
274
  onSubmit: async (e) => {
@@ -282,35 +282,35 @@ var Ge = /* @__PURE__ */ I({
282
282
  t.isErr() && s.apiError(t.error);
283
283
  }
284
284
  }), g = h.register("subject");
285
- return w({ form: h }), (e, t) => (z(), N(V(G), {
286
- form: V(h),
285
+ return w({ form: h }), (e, t) => (B(), P(H(K), {
286
+ form: H(h),
287
287
  "prompt-on-unsaved-changes": !1
288
288
  }, {
289
- default: H(() => [F(_e, {
290
- "fallback-title": V(a).t("wise_invoicing.credit_note.detail.fallback_title"),
289
+ default: U(() => [I(ge, {
290
+ "fallback-title": H(a).t("wise_invoicing.credit_note.detail.fallback_title"),
291
291
  "is-disabled": m.value,
292
292
  sequence: r.creditNote.sequence,
293
293
  "status-color": f.value,
294
294
  "status-label": p.value,
295
- icon: V(o),
296
- "subject-field": V(g),
297
- "subject-placeholder": V(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
295
+ icon: H(o),
296
+ "subject-field": H(g),
297
+ "subject-placeholder": H(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
298
298
  }, {
299
- actions: H(() => [F(me, {
299
+ actions: U(() => [I(pe, {
300
300
  "is-pdf-view-active": r.isPdfViewActive,
301
- "menu-groups": V(l),
302
- "primary-buttons": V(u),
301
+ "menu-groups": H(l),
302
+ "primary-buttons": H(u),
303
303
  onTogglePdfView: t[0] ||= (e) => i("togglePdfView")
304
304
  }, null, 8, [
305
305
  "is-pdf-view-active",
306
306
  "menu-groups",
307
307
  "primary-buttons"
308
308
  ])]),
309
- status: H(() => [F(V(K), {
309
+ status: U(() => [I(H(q), {
310
310
  gap: "xs",
311
311
  class: "flex-wrap items-start"
312
312
  }, {
313
- default: H(() => [r.creditNote.isOverdue ? (z(), N(D, { key: 0 })) : P("", !0)]),
313
+ default: U(() => [r.creditNote.isOverdue ? (B(), P(D, { key: 0 })) : F("", !0)]),
314
314
  _: 1
315
315
  })]),
316
316
  _: 1
@@ -327,13 +327,13 @@ var Ge = /* @__PURE__ */ I({
327
327
  _: 1
328
328
  }, 8, ["form"]));
329
329
  }
330
- }), Ke = /* @__PURE__ */ I({
330
+ }), Ke = /* @__PURE__ */ L({
331
331
  __name: "CreditNoteDetailRemarksSection",
332
332
  props: { creditNote: {} },
333
333
  setup(e) {
334
- let n = e, r = j(), i = Y(), a = Z(), o = X({
335
- initialState: M(() => S.toForm(n.creditNote)),
336
- schema: Q,
334
+ let n = e, r = M(), i = X(), a = Q(), o = Z({
335
+ initialState: N(() => S.toForm(n.creditNote)),
336
+ schema: Ie,
337
337
  onSubmit: async (e) => {
338
338
  let t = await a.execute({
339
339
  body: e,
@@ -341,16 +341,16 @@ var Ge = /* @__PURE__ */ I({
341
341
  });
342
342
  t.isErr() && i.apiError(t.error);
343
343
  }
344
- }), s = o.register("externalRemarks"), c = M(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
345
- return w({ form: o }), (e, t) => (z(), N(V(G), {
346
- form: V(o),
344
+ }), s = o.register("externalRemarks"), c = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
345
+ return w({ form: o }), (e, t) => (B(), P(H(K), {
346
+ form: H(o),
347
347
  "prompt-on-unsaved-changes": !1
348
348
  }, {
349
- default: H(() => [F(T, {
349
+ default: U(() => [I(T, {
350
350
  "is-disabled": c.value,
351
- placeholder: V(r).t("wise_invoicing.invoice.detail.remarks.placeholder"),
352
- "remarks-field": V(s),
353
- title: V(r).t("wise_invoicing.invoice.detail.remarks.title")
351
+ placeholder: H(r).t("wise_invoicing.invoice.detail.remarks.placeholder"),
352
+ "remarks-field": H(s),
353
+ title: H(r).t("wise_invoicing.invoice.detail.remarks.title")
354
354
  }, null, 8, [
355
355
  "is-disabled",
356
356
  "placeholder",
@@ -364,32 +364,32 @@ var Ge = /* @__PURE__ */ I({
364
364
  //#endregion
365
365
  //#region src/modules/credit-note/api/queries/creditNoteActivityLogIndex.query.ts
366
366
  function qe(e) {
367
- return Te("creditNoteActivityLogIndex", {
367
+ return we("creditNoteActivityLogIndex", {
368
368
  params: { creditNoteUuid: e },
369
369
  queryFn: (t) => x.getActivityLogs(e.value, { pagination: t })
370
370
  });
371
371
  }
372
372
  //#endregion
373
373
  //#region src/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarActivityTab.vue
374
- var Je = /* @__PURE__ */ I({
374
+ var Je = /* @__PURE__ */ L({
375
375
  __name: "CreditNoteDetailSidebarActivityTab",
376
376
  props: { creditNote: {} },
377
377
  setup(e) {
378
- let t = e, r = j(), { hasNextPage: i, isFetchingNextPage: a, isLoading: o, fetchNextPage: s, result: c } = qe(M(() => t.creditNote.uuid)), l = M(() => c.value.unwrapOr({
378
+ let t = e, r = M(), { hasNextPage: i, isFetchingNextPage: a, isLoading: o, fetchNextPage: s, result: c } = qe(N(() => t.creditNote.uuid)), l = N(() => c.value.unwrapOr({
379
379
  data: [],
380
380
  meta: { next: null }
381
381
  }).data);
382
- return (e, c) => (z(), N(ie, {
382
+ return (e, c) => (B(), P(re, {
383
383
  "current-billing-document": {
384
- role: V(n).CREDIT_NOTE,
384
+ role: H(n).CREDIT_NOTE,
385
385
  uuid: t.creditNote.uuid
386
386
  },
387
- "empty-message": V(r).t("wise_invoicing.credit_note.detail.sidebar.activity_empty"),
387
+ "empty-message": H(r).t("wise_invoicing.credit_note.detail.sidebar.activity_empty"),
388
388
  entries: l.value,
389
- "fetch-next-page": V(s),
390
- "has-next-page": V(i),
391
- "is-fetching-next-page": V(a),
392
- "is-loading": V(o)
389
+ "fetch-next-page": H(s),
390
+ "has-next-page": H(i),
391
+ "is-fetching-next-page": H(a),
392
+ "is-loading": H(o)
393
393
  }, null, 8, [
394
394
  "current-billing-document",
395
395
  "empty-message",
@@ -400,7 +400,7 @@ var Je = /* @__PURE__ */ I({
400
400
  "is-loading"
401
401
  ]));
402
402
  }
403
- }), $ = /* @__PURE__ */ I({
403
+ }), $ = /* @__PURE__ */ L({
404
404
  __name: "BillingDocumentDetailSidebarInfoItem",
405
405
  props: {
406
406
  hasError: {
@@ -412,25 +412,25 @@ var Je = /* @__PURE__ */ I({
412
412
  },
413
413
  setup(e) {
414
414
  let t = e;
415
- return (e, n) => (z(), N(V(K), null, {
416
- default: H(() => [
417
- (z(), N(we(t.icon), { class: R([{
415
+ return (e, n) => (B(), P(H(q), null, {
416
+ default: U(() => [
417
+ (B(), P(Ce(t.icon), { class: z([{
418
418
  "text-error-primary": t.hasError,
419
419
  "text-tertiary": !t.hasError
420
420
  }, "size-3.5 shrink-0"]) }, null, 8, ["class"])),
421
- F(V(J), {
421
+ I(H(Y), {
422
422
  text: t.label,
423
- class: R([{
423
+ class: z([{
424
424
  "text-error-primary": t.hasError,
425
425
  "text-tertiary": !t.hasError
426
426
  }, "w-24 shrink-0 text-xs"])
427
427
  }, null, 8, ["text", "class"]),
428
- Ce(e.$slots, "default")
428
+ Se(e.$slots, "default")
429
429
  ]),
430
430
  _: 3
431
431
  }));
432
432
  }
433
- }), Ye = /* @__PURE__ */ I({
433
+ }), Ye = /* @__PURE__ */ L({
434
434
  __name: "BillingDocumentDetailSidebarPartySection",
435
435
  props: {
436
436
  title: {},
@@ -442,63 +442,63 @@ var Je = /* @__PURE__ */ I({
442
442
  address: {}
443
443
  },
444
444
  setup(e) {
445
- let t = e, n = B(t.isDefaultOpen);
445
+ let t = e, n = V(t.isDefaultOpen);
446
446
  function r() {
447
447
  n.value = !n.value;
448
448
  }
449
- return (e, a) => (z(), N(V(W), { class: "w-full" }, {
450
- default: H(() => [F(V(K), { justify: "between" }, {
451
- default: H(() => [F(V(Oe), { class: "rounded-sm" }, {
452
- default: H(() => [Se("button", {
449
+ return (e, a) => (B(), P(H(G), { class: "w-full" }, {
450
+ default: U(() => [I(H(q), { justify: "between" }, {
451
+ default: U(() => [I(H(De), { class: "rounded-sm" }, {
452
+ default: U(() => [xe("button", {
453
453
  type: "button",
454
454
  class: "flex w-full items-center gap-sm",
455
455
  onClick: r
456
456
  }, [
457
- F(V(J), {
457
+ I(H(Y), {
458
458
  text: t.title,
459
459
  class: "text-xs font-semibold text-primary"
460
460
  }, null, 8, ["text"]),
461
- F(V(De), {
461
+ I(H(Ee), {
462
462
  label: t.name,
463
463
  color: "gray",
464
464
  variant: "outline"
465
465
  }, null, 8, ["label"]),
466
- F(V(g), { class: R([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
466
+ I(H(l), { class: z([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
467
467
  ])]),
468
468
  _: 1
469
469
  })]),
470
470
  _: 1
471
- }), F(V(Ee), null, {
472
- default: H(() => [n.value ? (z(), N(V(W), {
471
+ }), I(H(Te), null, {
472
+ default: U(() => [n.value ? (B(), P(H(G), {
473
473
  key: 0,
474
474
  gap: "xs"
475
475
  }, {
476
- default: H(() => [F(V(J), {
476
+ default: U(() => [I(H(Y), {
477
477
  text: t.name,
478
478
  class: "text-xs font-medium text-primary"
479
- }, null, 8, ["text"]), t.address ? (z(), N(V(J), {
479
+ }, null, 8, ["text"]), t.address ? (B(), P(H(Y), {
480
480
  key: 0,
481
481
  truncate: !1,
482
- text: V(i).format(t.address),
482
+ text: H(i).format(t.address),
483
483
  class: "text-xs text-primary"
484
- }, null, 8, ["text"])) : P("", !0)]),
484
+ }, null, 8, ["text"])) : F("", !0)]),
485
485
  _: 1
486
- })) : P("", !0)]),
486
+ })) : F("", !0)]),
487
487
  _: 1
488
488
  })]),
489
489
  _: 1
490
490
  }));
491
491
  }
492
- }), Xe = /* @__PURE__ */ I({
492
+ }), Xe = /* @__PURE__ */ L({
493
493
  __name: "CreditNoteDetailSidebarInfoTab",
494
494
  props: {
495
495
  creditNote: {},
496
496
  customFieldDefinitions: {}
497
497
  },
498
498
  setup(e) {
499
- let n = e, r = j(), i = Y(), a = Z(), o = X({
500
- initialState: M(() => S.toForm(n.creditNote)),
501
- schema: Q,
499
+ let n = e, r = M(), i = X(), a = Q(), o = Z({
500
+ initialState: N(() => S.toForm(n.creditNote)),
501
+ schema: Ie,
502
502
  onSubmit: async (e) => {
503
503
  let t = await a.execute({
504
504
  body: e,
@@ -506,39 +506,39 @@ var Je = /* @__PURE__ */ I({
506
506
  });
507
507
  t.isErr() && i.apiError(t.error);
508
508
  }
509
- }), l = o.register("issuedOn"), u = o.register("poNumber"), f = M(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
510
- return w({ form: o }), (e, t) => (z(), N(V(G), {
511
- form: V(o),
509
+ }), c = o.register("issuedOn"), l = o.register("poNumber"), u = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
510
+ return w({ form: o }), (e, t) => (B(), P(H(K), {
511
+ form: H(o),
512
512
  "prompt-on-unsaved-changes": !1
513
513
  }, {
514
- default: H(() => [F(V(W), {
514
+ default: U(() => [I(H(G), {
515
515
  gap: "lg",
516
516
  class: "px-2xl py-xl"
517
517
  }, {
518
- default: H(() => [
519
- F(V(W), null, {
520
- default: H(() => [F(V(J), {
521
- text: V(r).t("wise_invoicing.invoice.detail.sidebar.general"),
518
+ default: U(() => [
519
+ I(H(G), null, {
520
+ default: U(() => [I(H(Y), {
521
+ text: H(r).t("wise_invoicing.invoice.detail.sidebar.general"),
522
522
  class: "text-xs font-semibold text-primary"
523
- }, null, 8, ["text"]), F(V(W), { gap: "lg" }, {
524
- default: H(() => [
525
- F($, {
526
- icon: V(d),
527
- label: V(r).t("wise_invoicing.invoice.detail.header.invoice_id")
523
+ }, null, 8, ["text"]), I(H(G), { gap: "lg" }, {
524
+ default: U(() => [
525
+ I($, {
526
+ icon: H(d),
527
+ label: H(r).t("wise_invoicing.invoice.detail.header.invoice_id")
528
528
  }, {
529
- default: H(() => [F(V(J), {
529
+ default: U(() => [I(H(Y), {
530
530
  text: n.creditNote.sequence ?? "-",
531
531
  class: "text-xs text-primary"
532
532
  }, null, 8, ["text"])]),
533
533
  _: 1
534
534
  }, 8, ["icon", "label"]),
535
- F($, {
536
- icon: V(c),
537
- "has-error": V(u).errors.value.length > 0,
538
- label: V(r).t("wise_invoicing.invoice.detail.header.po_number")
535
+ I($, {
536
+ icon: H(p),
537
+ "has-error": H(l).errors.value.length > 0,
538
+ label: H(r).t("wise_invoicing.invoice.detail.header.po_number")
539
539
  }, {
540
- default: H(() => [F(V(Fe), L(V(b)(V(u)), {
541
- "is-disabled": f.value,
540
+ default: U(() => [I(H(Pe), R(H(b)(H(l)), {
541
+ "is-disabled": u.value,
542
542
  label: null,
543
543
  class: "w-full"
544
544
  }), null, 16, ["is-disabled"])]),
@@ -548,29 +548,29 @@ var Je = /* @__PURE__ */ I({
548
548
  "has-error",
549
549
  "label"
550
550
  ]),
551
- F($, {
552
- icon: V(p),
553
- label: V(r).t("wise_invoicing.invoice.detail.header.issuer")
551
+ I($, {
552
+ icon: H(m),
553
+ label: H(r).t("wise_invoicing.invoice.detail.header.issuer")
554
554
  }, {
555
- default: H(() => [F(V(J), {
555
+ default: U(() => [I(H(Y), {
556
556
  text: n.creditNote.issuer.name ?? "-",
557
557
  class: "text-xs text-primary"
558
558
  }, null, 8, ["text"])]),
559
559
  _: 1
560
560
  }, 8, ["icon", "label"]),
561
- F($, {
562
- icon: V(s),
563
- "has-error": V(l).errors.value.length > 0,
564
- label: V(r).t("wise_invoicing.invoice.detail.header.invoice_date")
561
+ I($, {
562
+ icon: H(s),
563
+ "has-error": H(c).errors.value.length > 0,
564
+ label: H(r).t("wise_invoicing.invoice.detail.header.invoice_date")
565
565
  }, {
566
- default: H(() => [F(V(ke), L({ "is-disabled": f.value }, V(b)(V(l))), null, 16, ["is-disabled"])]),
566
+ default: U(() => [I(H(Oe), R({ "is-disabled": u.value }, H(b)(H(c))), null, 16, ["is-disabled"])]),
567
567
  _: 1
568
568
  }, 8, [
569
569
  "icon",
570
570
  "has-error",
571
571
  "label"
572
572
  ]),
573
- F(ae, {
573
+ I(ie, {
574
574
  definitions: n.customFieldDefinitions,
575
575
  values: n.creditNote.customFields
576
576
  }, null, 8, ["definitions", "values"])
@@ -579,22 +579,22 @@ var Je = /* @__PURE__ */ I({
579
579
  })]),
580
580
  _: 1
581
581
  }),
582
- F(V(q)),
583
- F(se, { "original-invoice": n.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
584
- F(Ye, {
582
+ I(H(J)),
583
+ I(oe, { "original-invoice": n.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
584
+ I(Ye, {
585
585
  "is-default-open": !0,
586
586
  name: n.creditNote.customer.name ?? "-",
587
- title: V(r).t("wise_invoicing.invoice.detail.header.bill_to"),
587
+ title: H(r).t("wise_invoicing.invoice.detail.header.bill_to"),
588
588
  address: n.creditNote.customer.address
589
589
  }, null, 8, [
590
590
  "name",
591
591
  "title",
592
592
  "address"
593
593
  ]),
594
- F(V(q)),
595
- F(Ye, {
594
+ I(H(J)),
595
+ I(Ye, {
596
596
  name: n.creditNote.issuer.email ?? "-",
597
- title: V(r).t("wise_invoicing.invoice.detail.header.bill_from"),
597
+ title: H(r).t("wise_invoicing.invoice.detail.header.bill_from"),
598
598
  address: n.creditNote.issuer.address
599
599
  }, null, 8, [
600
600
  "name",
@@ -607,20 +607,20 @@ var Je = /* @__PURE__ */ I({
607
607
  _: 1
608
608
  }, 8, ["form"]));
609
609
  }
610
- }), Ze = /* @__PURE__ */ I({
610
+ }), Ze = /* @__PURE__ */ L({
611
611
  __name: "CreditNoteDetailSidebar",
612
612
  props: {
613
613
  creditNote: {},
614
614
  customFieldDefinitions: {}
615
615
  },
616
616
  setup(e) {
617
- let t = e, n = j(), r = _(), i = M(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.creditNote.updatedAt) }));
618
- return (e, n) => (z(), N(ue, {
617
+ let t = e, n = M(), r = _(), i = N(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.creditNote.updatedAt) }));
618
+ return (e, n) => (B(), P(le, {
619
619
  "billing-document": t.creditNote,
620
620
  "updated-footer": i.value
621
621
  }, {
622
- activity: H(() => [F(Je, { "credit-note": t.creditNote }, null, 8, ["credit-note"])]),
623
- info: H(() => [F(Xe, {
622
+ activity: U(() => [I(Je, { "credit-note": t.creditNote }, null, 8, ["credit-note"])]),
623
+ info: U(() => [I(Xe, {
624
624
  "credit-note": t.creditNote,
625
625
  "custom-field-definitions": t.customFieldDefinitions
626
626
  }, null, 8, ["credit-note", "custom-field-definitions"])]),
@@ -631,7 +631,7 @@ var Je = /* @__PURE__ */ I({
631
631
  //#endregion
632
632
  //#region src/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.ts
633
633
  function Qe() {
634
- return U({
634
+ return W({
635
635
  queryFn: (e) => x.updateLines(e.params.creditNoteUuid, e.body),
636
636
  queryKeysToInvalidate: {
637
637
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
@@ -641,15 +641,15 @@ function Qe() {
641
641
  }
642
642
  //#endregion
643
643
  //#region src/modules/credit-note/use-cases/detail/components/table/CreditNoteLineItemsTableSection.vue
644
- var $e = /* @__PURE__ */ I({
644
+ var $e = /* @__PURE__ */ L({
645
645
  __name: "CreditNoteLineItemsTableSection",
646
646
  props: {
647
647
  creditNote: {},
648
648
  customFieldDefinitions: {}
649
649
  },
650
650
  setup(e) {
651
- let t = e, n = M(() => t.creditNote), r = Qe(), i = oe({
652
- isSaving: M(() => r.isLoading.value),
651
+ let t = e, n = N(() => t.creditNote), r = Qe(), i = ae({
652
+ isSaving: N(() => r.isLoading.value),
653
653
  billingDocument: () => n.value,
654
654
  customFieldDefinitions: () => t.customFieldDefinitions,
655
655
  updateLines: (e) => r.execute({
@@ -657,24 +657,24 @@ var $e = /* @__PURE__ */ I({
657
657
  params: { creditNoteUuid: t.creditNote.uuid }
658
658
  })
659
659
  });
660
- return k(i), (e, n) => (z(), N(le, null, {
661
- default: H(() => [
662
- F(fe, { "show-apply-discount": !1 }),
663
- F(re),
664
- F(E, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
665
- F(O)
660
+ return A(i), (e, n) => (B(), P(ce, null, {
661
+ default: U(() => [
662
+ I(de, { "show-apply-discount": !1 }),
663
+ I(O),
664
+ I(E, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
665
+ I(k)
666
666
  ]),
667
667
  _: 1
668
668
  }));
669
669
  }
670
- }), et = /* @__PURE__ */ I({
670
+ }), et = /* @__PURE__ */ L({
671
671
  __name: "CreditNoteDetailView",
672
672
  props: {
673
673
  creditNote: {},
674
674
  customFieldDefinitions: {}
675
675
  },
676
676
  setup(e) {
677
- let t = e, n = j(), r = B(!1), i = M(() => [
677
+ let t = e, n = M(), r = V(!1), i = N(() => [
678
678
  {
679
679
  label: n.t("wise_invoicing.invoice.overview.title"),
680
680
  to: { name: "invoicing-invoice-overview" }
@@ -689,29 +689,29 @@ var $e = /* @__PURE__ */ I({
689
689
  { label: n.t("wise_invoicing.invoice.detail.credit_notes.untitled") },
690
690
  { label: t.creditNote.sequence ?? n.t("wise_invoicing.credit_note.detail.fallback_title") }
691
691
  ]);
692
- return (e, a) => (z(), N(de, {
692
+ return (e, a) => (B(), P(ue, {
693
693
  "billing-document": t.creditNote,
694
694
  breadcrumbs: i.value,
695
- title: V(n).t("wise_invoicing.credit_note.detail.fallback_title")
695
+ title: H(n).t("wise_invoicing.credit_note.detail.fallback_title")
696
696
  }, {
697
- header: H(() => [F(Ge, {
697
+ header: U(() => [I(Ge, {
698
698
  "credit-note": t.creditNote,
699
699
  "is-pdf-view-active": r.value,
700
700
  class: "w-full",
701
701
  onTogglePdfView: a[0] ||= (e) => r.value = !r.value
702
702
  }, null, 8, ["credit-note", "is-pdf-view-active"])]),
703
- default: H(() => [r.value ? (z(), N(ce, {
703
+ default: U(() => [r.value ? (B(), P(se, {
704
704
  key: 0,
705
705
  "billing-document": t.creditNote,
706
706
  class: "w-full"
707
- }, null, 8, ["billing-document"])) : (z(), xe(be, { key: 1 }, [F($e, {
707
+ }, null, 8, ["billing-document"])) : (B(), be(ye, { key: 1 }, [I($e, {
708
708
  "credit-note": t.creditNote,
709
709
  "custom-field-definitions": t.customFieldDefinitions
710
- }, null, 8, ["credit-note", "custom-field-definitions"]), F(Ke, {
710
+ }, null, 8, ["credit-note", "custom-field-definitions"]), I(Ke, {
711
711
  "credit-note": t.creditNote,
712
712
  class: "w-full"
713
713
  }, null, 8, ["credit-note"])], 64))]),
714
- sidebar: H(() => [F(Ze, {
714
+ sidebar: U(() => [I(Ze, {
715
715
  "credit-note": t.creditNote,
716
716
  "custom-field-definitions": t.customFieldDefinitions
717
717
  }, null, 8, ["credit-note", "custom-field-definitions"])]),
@@ -722,20 +722,20 @@ var $e = /* @__PURE__ */ I({
722
722
  "title"
723
723
  ]));
724
724
  }
725
- }), tt = /* @__PURE__ */ I({
725
+ }), tt = /* @__PURE__ */ L({
726
726
  __name: "CreditNoteDetailViewDataProvider",
727
727
  props: { creditNoteUuid: {} },
728
728
  setup(e) {
729
- let t = e, n = j(), r = M(() => [{
729
+ let t = e, n = M(), r = N(() => [{
730
730
  label: n.t("wise_invoicing.invoice.overview.title"),
731
731
  to: { name: "invoicing-invoice-overview" }
732
- }]), i = C(M(() => t.creditNoteUuid)), a = y();
733
- return (e, t) => (z(), N(pe, {
734
- "custom-field-definitions-query": V(a),
735
- query: V(i),
732
+ }]), i = C(N(() => t.creditNoteUuid)), a = y();
733
+ return (e, t) => (B(), P(fe, {
734
+ "custom-field-definitions-query": H(a),
735
+ query: H(i),
736
736
  "loading-breadcrumbs": r.value
737
737
  }, {
738
- default: H(({ billingDocument: e, customFieldDefinitions: t }) => [F(et, {
738
+ default: U(({ billingDocument: e, customFieldDefinitions: t }) => [I(et, {
739
739
  "credit-note": e,
740
740
  "custom-field-definitions": t
741
741
  }, null, 8, ["credit-note", "custom-field-definitions"])]),