@wisemen/wise-invoicing-web 0.0.1 → 0.0.2

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 (81) hide show
  1. package/dist/{AddOpenBoundaryIcon-a0ytyQW0.js → AddOpenBoundaryIcon-LcnpqCb7.js} +1 -1
  2. package/dist/{AirlineIcon-XwORvusp.js → AirlineIcon-29r8leGB.js} +1 -1
  3. package/dist/{AirplaneIcon-BEkI03Xx.js → AirplaneIcon-B9jZP9r0.js} +1 -1
  4. package/dist/{AirportIcon-C3h1LiZq.js → AirportIcon-C4PxDtDr.js} +1 -1
  5. package/dist/{AlertTriangleIcon-AZHk_XdR.js → AlertTriangleIcon-BD58hKRP.js} +1 -1
  6. package/dist/{AllocationsIcon-CkpunEan.js → AllocationsIcon-BQan6NWO.js} +1 -1
  7. package/dist/{ArrowNarrowRightIcon-CytKHL2k.js → ArrowNarrowRightIcon-BA1c_QRh.js} +1 -1
  8. package/dist/{AssetIcon-A3TJtt5E.js → AssetIcon-DnK5wAyN.js} +1 -1
  9. package/dist/{BarChartIcon-Bsa3V_np.js → BarChartIcon-CKrBCh6x.js} +1 -1
  10. package/dist/{BellIcon-BfXQ8Jws.js → BellIcon-BT2cGatU.js} +1 -1
  11. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  12. package/dist/{BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-Bgw4mFeY.js → BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-C5j9jPsk.js} +2104 -2027
  13. package/dist/{BuildingIcon-Cm37WXHP.js → BuildingIcon-CUOTWDHc.js} +1 -1
  14. package/dist/{ChargerIcon-DrS9Hazp.js → ChargerIcon-BhrjeyKv.js} +1 -1
  15. package/dist/{ChevronDownIcon-gIUiA8v4.js → ChevronDownIcon-DljNUnFk.js} +1 -1
  16. package/dist/{ChevronUpIcon-BkwAZanA.js → ChevronUpIcon-CoxFAIp_.js} +1 -1
  17. package/dist/{ClockIcon-Cid1T0BU.js → ClockIcon-CTnAGb9i.js} +1 -1
  18. package/dist/{ClockSnoozeIcon-B1i2bXpx.js → ClockSnoozeIcon-BRoTw_Vn.js} +1 -1
  19. package/dist/{CopyIcon-DOdfevS_.js → CopyIcon-JiNI8Dfg.js} +1 -1
  20. package/dist/{CreditNoteDetailViewDataProvider-DcQG7_9T.js → CreditNoteDetailViewDataProvider-Cy1j_m3I.js} +12 -12
  21. package/dist/{CreditNotePdfViewDataProvider-t80KC3zC.js → CreditNotePdfViewDataProvider-B7-HFIKD.js} +2 -2
  22. package/dist/{DownloadCloudIcon-Bws0z_Lo.js → DownloadCloudIcon-DKHwnpvk.js} +1 -1
  23. package/dist/{EditIcon-dTEv1VbR.js → EditIcon-DtGrCf8G.js} +1 -1
  24. package/dist/{EraserIcon-D2AnLU8H.js → EraserIcon-Cb0Ep_Yq.js} +1 -1
  25. package/dist/{FileIcon-C6hafpr3.js → FileIcon-C4wGvJpt.js} +1 -1
  26. package/dist/{FilterLinesIcon-BONkY4PH.js → FilterLinesIcon-B7wPXDy1.js} +1 -1
  27. package/dist/{GlobeIcon-FypkJoR2.js → GlobeIcon-B-Idmck1.js} +1 -1
  28. package/dist/{HelpIcon-CZYQyf8M.js → HelpIcon-CdKWaEaB.js} +1 -1
  29. package/dist/{HourGlassIcon-BZOAeq1R.js → HourGlassIcon-CQLPiXVW.js} +1 -1
  30. package/dist/{InfoCircleIcon-CChSBSvU.js → InfoCircleIcon-5gjQoNog.js} +1 -1
  31. package/dist/{InvoiceDetailViewDataProvider-Dy7Gel9o.js → InvoiceDetailViewDataProvider-4lGG7Wtq.js} +430 -422
  32. package/dist/InvoiceOverviewView-Boqvwabl.js +4 -0
  33. package/dist/{InvoicePdfViewDataProvider-BLOLBg8f.js → InvoicePdfViewDataProvider-CJ3fL71W.js} +4 -4
  34. package/dist/InvoicePublicPdfViewDataProvider-CzgGk_V5.js +4 -0
  35. package/dist/{IssuerSettingsViewDataProvider-DZkWQL1y.js → IssuerSettingsViewDataProvider-TM-bmC55.js} +2 -2
  36. package/dist/{KeyboardIcon-DxZhamNr.js → KeyboardIcon-DlAp0VUG.js} +1 -1
  37. package/dist/{LinkExternalIcon-CNM5oAbx.js → LinkExternalIcon-BPO_c7Ke.js} +1 -1
  38. package/dist/{LinkIcon-DTNaK8oh.js → LinkIcon-9M0uzW4a.js} +1 -1
  39. package/dist/{MarkerIcon-Dp4v37Ny.js → MarkerIcon-pId64QTW.js} +1 -1
  40. package/dist/{MobileBatteryIcon-Buyc8k3l.js → MobileBatteryIcon-Dq6Vh0d5.js} +1 -1
  41. package/dist/{MonitorIcon-6utDReTQ.js → MonitorIcon-PsvDF5LA.js} +1 -1
  42. package/dist/{NotificationIcon-DzGLW6dE.js → NotificationIcon-C-mhyH5v.js} +1 -1
  43. package/dist/{ParkingIcon-CR4VGiTb.js → ParkingIcon-BD0RoGv5.js} +1 -1
  44. package/dist/{PlanningIcon-CjeBl0ld.js → PlanningIcon-BBIuwW2I.js} +1 -1
  45. package/dist/{PreferenceIcon-BgrcKZ-o.js → PreferenceIcon-zR5mjygu.js} +1 -1
  46. package/dist/{ReceiptCheckIcon-C28VfROE.js → ReceiptCheckIcon-CHEEnJEK.js} +1 -1
  47. package/dist/{RefreshIcon-DaXNUJIT.js → RefreshIcon-CfjOS7Vw.js} +1 -1
  48. package/dist/{RemoveOpenBoundaryIcon-DRRSq0H2.js → RemoveOpenBoundaryIcon-CEbBT9CX.js} +1 -1
  49. package/dist/{RewindIcon-BDXokF_B.js → RewindIcon-9PFea9gA.js} +1 -1
  50. package/dist/{SettingsIcon-CRGzsAR5.js → SettingsIcon-CSIbrANE.js} +1 -1
  51. package/dist/{ShieldIcon-D_B27hak.js → ShieldIcon-CU4mxKxP.js} +1 -1
  52. package/dist/{ShieldOffIcon-DhrrZ04Q.js → ShieldOffIcon-D6_I1MKn.js} +1 -1
  53. package/dist/{SignOutIcon-BvHviBhP.js → SignOutIcon-ClrPsj39.js} +1 -1
  54. package/dist/{SlashCircleIcon-CZK8PQW3.js → SlashCircleIcon-DBy7XjBm.js} +1 -1
  55. package/dist/{StandIcon-BwyMh8CM.js → StandIcon-vV8J4-3H.js} +1 -1
  56. package/dist/{StarsIcon-BzLUvuRu.js → StarsIcon-RO6wNbsC.js} +1 -1
  57. package/dist/{StopwatchIcon-C_FPm3or.js → StopwatchIcon-DubYBmeN.js} +1 -1
  58. package/dist/{TargetIcon-oklHOKhV.js → TargetIcon-BwVw7rVC.js} +1 -1
  59. package/dist/{ThreeDotsIcon-BBlmsVbB.js → ThreeDotsIcon-BvRfi-Lm.js} +1 -1
  60. package/dist/{ToolIcon-BA3-Cx2i.js → ToolIcon-Dw-vgiL1.js} +1 -1
  61. package/dist/{TrashIcon-CStVAH50.js → TrashIcon-Dh6ASxXd.js} +1 -1
  62. package/dist/{TurnaroundIcon-DtNeWU1p.js → TurnaroundIcon-Hn5nPhvb.js} +1 -1
  63. package/dist/{UploadCloudIcon-BQvK4JT3.js → UploadCloudIcon-BV7b8ygQ.js} +1 -1
  64. package/dist/{UserIcon-M9J9Rh8O.js → UserIcon-BRrPmqkm.js} +1 -1
  65. package/dist/{UsersIcon-Bpb0pO6w.js → UsersIcon-fORcf4YV.js} +1 -1
  66. package/dist/{VerifiedIcon-C9sK4Nmp.js → VerifiedIcon-BtqxtP6h.js} +1 -1
  67. package/dist/{WifiIcon-CLYoI7rL.js → WifiIcon-Bd9TvVVJ.js} +1 -1
  68. package/dist/{WifiOffIcon-0wO76FFe.js → WifiOffIcon-CpATjY4j.js} +1 -1
  69. package/dist/{ZapIcon-BAwpUZyX.js → ZapIcon-BG6cVpfC.js} +1 -1
  70. package/dist/{ZoomInIcon-CkXOQsMm.js → ZoomInIcon-CQ_R4Ydf.js} +1 -1
  71. package/dist/{ZoomOutIcon-CyCQzjwt.js → ZoomOutIcon-DlcCdCda.js} +1 -1
  72. package/dist/{creditNoteDetail.query-Dh6ej-uj.js → creditNoteDetail.query-Dj6oKRTO.js} +6 -6
  73. package/dist/{index-B7DH4ueV.js → index-CYV9qUlg.js} +5502 -4948
  74. package/dist/index.d.ts +34 -0
  75. package/dist/index.js +19 -19
  76. package/dist/{invoiceDetail.query-CDW3Zr_C.js → invoiceDetail.query-Wtw3VSKd.js} +1 -1
  77. package/dist/{issuerSettings.query-EHtcG78N.js → issuerSettings.query-H5-5e_KF.js} +1 -1
  78. package/dist/style.css +1 -1
  79. package/package.json +1 -1
  80. package/dist/InvoiceOverviewView-McZ6JthM.js +0 -4
  81. package/dist/InvoicePublicPdfViewDataProvider-CpxVyTdw.js +0 -4
@@ -1,25 +1,25 @@
1
- import { openBlock as r, createElementBlock as N, createElementVNode as B, defineComponent as I, computed as c, createBlock as v, unref as e, withCtx as s, createVNode as o, Fragment as ae, renderList as Fe, ref as Te, watch as ri, createCommentVNode as x, mergeProps as T, createSlots as ui, toDisplayString as Pe } from "vue";
2
- import { useI18n as D } from "vue-i18n";
3
- import { u as di } from "./invoiceDetail.query-CDW3Zr_C.js";
4
- import { d as ge, I as h, e as Me, p as se, f as K, g as L, h as vi, S as _e, i as Se, L as mi, A as Le, j as pi, D as _i, F as fi, k as gi, l as yi, T as bi, m as wi, n as Ii, o as ye, R as $e, q as xi, r as Di, s as hi, u as Y, v as ve, w as ki, x as Ui, y as be, E as Ci, t as P, P as Si, H as Ai, U as Ei, z as Fi, B as me, G as qe, J as Ti, K as Pi, C as Re, M as Mi, N as V, O as Li } from "./index-B7DH4ueV.js";
5
- import { UIBadge as Q, UITooltip as $i, UITooltipContent as qi, UIColumnLayout as ze, UIText as q, useToast as R, UIFormDialog as le, UIDialogHeader as ce, UIDialogFooter as re, UIDialogFooterCancel as ue, UIDialogFooterSubmit as we, useOverlay as de, UIForm as Oe, UIRowLayout as J, UIDialogBody as Ie, UIFormFieldGroup as xe, UIFormFieldGrid as De, UIDateField as te, UITextField as oe, UIDetailList as Ri, UIDetailListGroup as pe, UIDetailListGroupItem as $, UIDetailListGroupItemLabel as O, UIDetailListGroupItemValueText as j, UIIconButton as je, UIDetailListGroupSeparator as Ae, UITableCell as he, UITableCellInteractiveElement as zi, defineTableColumns as Oi, createComponent as H, UINumberField as fe, UIFormSubmitButton as ji, UIConfirmDialog as Vi, UIBadgeLabel as Ee, UIBadgeSeparator as Bi, UIButton as Ni, UITable as Ki, createSelectOptions as Gi, UISelect as Hi } from "@wisemen/vue-core-design-system";
1
+ import { openBlock as r, createElementBlock as K, createElementVNode as N, defineComponent as x, computed as c, createBlock as v, unref as e, withCtx as s, createVNode as o, Fragment as ae, renderList as Te, ref as Pe, watch as di, createCommentVNode as D, mergeProps as P, createSlots as vi, toDisplayString as Me } from "vue";
2
+ import { useI18n as h } from "vue-i18n";
3
+ import { u as mi } from "./invoiceDetail.query-Wtw3VSKd.js";
4
+ import { d as ge, I as k, e as Le, p as se, f as G, g as $, h as pi, S as _e, i as Ae, L as _i, A as $e, j as fi, D as gi, F as yi, k as bi, l as wi, T as Ii, m as xi, n as Di, o as ye, R as qe, q as hi, r as ki, s as Ui, u as X, v as ve, w as Ci, x as Si, y as Ai, z as be, E as Ei, t as M, P as Fi, H as Ti, U as Pi, B as Mi, G as me, J as Re, K as Li, M as $i, C as Oe, N as qi, O as B, Q as Ri } from "./index-CYV9qUlg.js";
5
+ import { UIBadge as Q, UITooltip as Oi, UITooltipContent as zi, UIColumnLayout as ze, UIText as R, useToast as O, UIFormDialog as le, UIDialogHeader as ce, UIDialogFooter as re, UIDialogFooterCancel as ue, UIDialogFooterSubmit as we, useOverlay as de, UIForm as Ve, UIRowLayout as Y, UIDialogBody as Ie, UIFormFieldGroup as xe, UIFormFieldGrid as De, UIDateField as te, UITextField as oe, UIDetailList as Vi, UIDetailListGroup as pe, UIDetailListGroupItem as q, UIDetailListGroupItemLabel as V, UIDetailListGroupItemValueText as j, UIIconButton as je, UIDetailListGroupSeparator as Ee, UITableCell as he, UITableCellInteractiveElement as ji, defineTableColumns as Bi, createComponent as H, UINumberField as fe, UIFormSubmitButton as Ni, UIConfirmDialog as Ki, UIBadgeLabel as Fe, UIBadgeSeparator as Gi, UIButton as Hi, UITable as Qi, createSelectOptions as Zi, UISelect as Wi } from "@wisemen/vue-core-design-system";
6
6
  import { useForm as Z } from "formango";
7
- import Qi, { z as w } from "zod";
8
- import { _ as Zi, u as Wi, F as Ji, B as Ve, a as Be, b as Yi, c as Xi, d as en, e as nn, f as tn, g as on, h as an, i as Ne, j as sn, k as ln, l as cn, m as rn, n as un, o as dn, p as vn, q as mn, r as pn } from "./BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-Bgw4mFeY.js";
9
- import { useMutation as S, useKeysetInfiniteQuery as _n, useQuery as fn } from "@wisemen/vue-core-api-utils";
10
- import { Temporal as Ke } from "temporal-polyfill";
11
- import { useRouter as Ge, RouterLink as gn } from "vue-router";
12
- import { u as yn } from "./issuerSettings.query-EHtcG78N.js";
13
- const bn = {}, wn = {
7
+ import Ji, { z as I } from "zod";
8
+ import { _ as Yi, u as Xi, F as en, B as Be, a as Ne, b as nn, c as tn, d as on, e as an, f as sn, g as ln, h as cn, i as Ke, j as rn, k as un, l as dn, m as vn, n as mn, o as pn, p as _n, q as fn, r as gn } from "./BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-C5j9jPsk.js";
9
+ import { useMutation as E, useKeysetInfiniteQuery as yn, useQuery as Ge } from "@wisemen/vue-core-api-utils";
10
+ import { Temporal as He } from "temporal-polyfill";
11
+ import { useRouter as Qe, RouterLink as bn } from "vue-router";
12
+ import { u as wn } from "./issuerSettings.query-H5-5e_KF.js";
13
+ const In = {}, xn = {
14
14
  width: "100%",
15
15
  height: "100%",
16
16
  viewBox: "0 0 24 24",
17
17
  fill: "none",
18
18
  xmlns: "http://www.w3.org/2000/svg"
19
19
  };
20
- function In(i, n) {
21
- return r(), N("svg", wn, [...n[0] || (n[0] = [
22
- B("path", {
20
+ function Dn(i, n) {
21
+ return r(), K("svg", xn, [...n[0] || (n[0] = [
22
+ N("path", {
23
23
  d: "M6 16C6 18.2091 7.79086 20 10 20H14C16.2091 20 18 18.2091 18 16C18 13.7909 16.2091 12 14 12H10C7.79086 12 6 10.2091 6 8C6 5.79086 7.79086 4 10 4H14C16.2091 4 18 5.79086 18 8M12 2V22",
24
24
  stroke: "currentColor",
25
25
  "stroke-width": "2",
@@ -28,16 +28,16 @@ function In(i, n) {
28
28
  }, null, -1)
29
29
  ])]);
30
30
  }
31
- const xn = /* @__PURE__ */ ge(bn, [["render", In]]), Dn = {}, hn = {
31
+ const hn = /* @__PURE__ */ ge(In, [["render", Dn]]), kn = {}, Un = {
32
32
  width: "100%",
33
33
  height: "100%",
34
34
  viewBox: "0 0 24 24",
35
35
  fill: "none",
36
36
  xmlns: "http://www.w3.org/2000/svg"
37
37
  };
38
- function kn(i, n) {
39
- return r(), N("svg", hn, [...n[0] || (n[0] = [
40
- B("path", {
38
+ function Cn(i, n) {
39
+ return r(), K("svg", Un, [...n[0] || (n[0] = [
40
+ N("path", {
41
41
  d: "M12 5V19M5 12H19",
42
42
  stroke: "currentColor",
43
43
  "stroke-width": "2",
@@ -46,16 +46,16 @@ function kn(i, n) {
46
46
  }, null, -1)
47
47
  ])]);
48
48
  }
49
- const Un = /* @__PURE__ */ ge(Dn, [["render", kn]]), Cn = {}, Sn = {
49
+ const Sn = /* @__PURE__ */ ge(kn, [["render", Cn]]), An = {}, En = {
50
50
  width: "100%",
51
51
  height: "100%",
52
52
  viewBox: "0 0 24 24",
53
53
  fill: "none",
54
54
  xmlns: "http://www.w3.org/2000/svg"
55
55
  };
56
- function An(i, n) {
57
- return r(), N("svg", Sn, [...n[0] || (n[0] = [
58
- B("path", {
56
+ function Fn(i, n) {
57
+ return r(), K("svg", En, [...n[0] || (n[0] = [
58
+ N("path", {
59
59
  d: "M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6",
60
60
  stroke: "currentColor",
61
61
  "stroke-width": "2",
@@ -64,10 +64,10 @@ function An(i, n) {
64
64
  }, null, -1)
65
65
  ])]);
66
66
  }
67
- const En = /* @__PURE__ */ ge(Cn, [["render", An]]);
67
+ const Tn = /* @__PURE__ */ ge(An, [["render", Fn]]);
68
68
  function ke() {
69
- return S({
70
- queryFn: (i) => h.update(
69
+ return E({
70
+ queryFn: (i) => k.update(
71
71
  i.params.invoiceUuid,
72
72
  i.body
73
73
  ),
@@ -79,15 +79,15 @@ function ke() {
79
79
  }
80
80
  });
81
81
  }
82
- const Fn = /* @__PURE__ */ I({
82
+ const Pn = /* @__PURE__ */ x({
83
83
  __name: "InvoiceDeliveryStatusBadge",
84
84
  props: {
85
85
  deliveryStatus: {},
86
86
  size: { default: "sm" }
87
87
  },
88
88
  setup(i) {
89
- const n = i, t = D(), l = c(
90
- () => Me.getMetadata(n.deliveryStatus)
89
+ const n = i, t = h(), l = c(
90
+ () => Le.getMetadata(n.deliveryStatus)
91
91
  ), a = c(() => t.t(l.value.translationKey));
92
92
  return (m, d) => (r(), v(e(Q), {
93
93
  label: a.value,
@@ -96,22 +96,22 @@ const Fn = /* @__PURE__ */ I({
96
96
  variant: "translucent"
97
97
  }, null, 8, ["label", "color", "size"]));
98
98
  }
99
- }), Tn = /* @__PURE__ */ I({
99
+ }), Mn = /* @__PURE__ */ x({
100
100
  __name: "InvoiceReminderBadge",
101
101
  props: {
102
102
  reminders: {},
103
103
  size: { default: "sm" }
104
104
  },
105
105
  setup(i) {
106
- const n = i, t = D(), l = se(), a = c(() => t.t("wise_invoicing.invoice.reminder.badge", {
106
+ const n = i, t = h(), l = se(), a = c(() => t.t("wise_invoicing.invoice.reminder.badge", {
107
107
  count: n.reminders.length
108
108
  }));
109
109
  function m(d) {
110
110
  return l.formatPlainDate(
111
- d.toZonedDateTimeISO(Ke.Now.timeZoneId()).toPlainDate()
111
+ d.toZonedDateTimeISO(He.Now.timeZoneId()).toPlainDate()
112
112
  );
113
113
  }
114
- return (d, f) => (r(), v(e($i), {
114
+ return (d, f) => (r(), v(e(Oi), {
115
115
  "popover-side-offset": 8,
116
116
  "popover-align": "start",
117
117
  "popover-side": "bottom"
@@ -125,14 +125,14 @@ const Fn = /* @__PURE__ */ I({
125
125
  }, null, 8, ["label", "size"])
126
126
  ]),
127
127
  content: s(() => [
128
- o(e(qi), null, {
128
+ o(e(zi), null, {
129
129
  default: s(() => [
130
130
  o(e(ze), {
131
131
  gap: "xs",
132
132
  class: "max-w-80"
133
133
  }, {
134
134
  default: s(() => [
135
- (r(!0), N(ae, null, Fe(n.reminders, (p, _) => (r(), v(e(q), {
135
+ (r(!0), K(ae, null, Te(n.reminders, (p, _) => (r(), v(e(R), {
136
136
  key: p.uuid,
137
137
  text: e(t).t("wise_invoicing.invoice.reminder.tooltip_line", {
138
138
  number: _ + 1,
@@ -150,12 +150,12 @@ const Fn = /* @__PURE__ */ I({
150
150
  _: 1
151
151
  }));
152
152
  }
153
- }), Pn = w.string().nullable(), Mn = w.object({
154
- subject: Pn
153
+ }), Ln = I.string().nullable(), $n = I.object({
154
+ subject: Ln
155
155
  });
156
- function Ln() {
157
- return S({
158
- queryFn: (i) => h.createCreditNote(
156
+ function qn() {
157
+ return E({
158
+ queryFn: (i) => k.createCreditNote(
159
159
  i.params.invoiceUuid
160
160
  ),
161
161
  queryKeysToInvalidate: {
@@ -166,9 +166,9 @@ function Ln() {
166
166
  }
167
167
  });
168
168
  }
169
- function $n() {
170
- return S({
171
- queryFn: (i) => h.duplicate(
169
+ function Rn() {
170
+ return E({
171
+ queryFn: (i) => k.duplicate(
172
172
  i.params.invoiceUuid
173
173
  ),
174
174
  queryKeysToInvalidate: {
@@ -176,9 +176,9 @@ function $n() {
176
176
  }
177
177
  });
178
178
  }
179
- function qn() {
180
- return S({
181
- queryFn: (i) => h.finalize(
179
+ function On() {
180
+ return E({
181
+ queryFn: (i) => k.finalize(
182
182
  i.params.invoiceUuid
183
183
  ),
184
184
  queryKeysToInvalidate: {
@@ -189,9 +189,9 @@ function qn() {
189
189
  }
190
190
  });
191
191
  }
192
- function Rn() {
193
- return S({
194
- queryFn: (i) => h.markAsDraft(
192
+ function zn() {
193
+ return E({
194
+ queryFn: (i) => k.markAsDraft(
195
195
  i.params.invoiceUuid
196
196
  ),
197
197
  queryKeysToInvalidate: {
@@ -202,9 +202,9 @@ function Rn() {
202
202
  }
203
203
  });
204
204
  }
205
- function zn() {
206
- return S({
207
- queryFn: (i) => h.markAsPaid(
205
+ function Vn() {
206
+ return E({
207
+ queryFn: (i) => k.markAsPaid(
208
208
  i.params.invoiceUuid
209
209
  ),
210
210
  queryKeysToInvalidate: {
@@ -215,9 +215,9 @@ function zn() {
215
215
  }
216
216
  });
217
217
  }
218
- function On() {
219
- return S({
220
- queryFn: (i) => h.markAsProtested(
218
+ function jn() {
219
+ return E({
220
+ queryFn: (i) => k.markAsProtested(
221
221
  i.params.invoiceUuid
222
222
  ),
223
223
  queryKeysToInvalidate: {
@@ -228,9 +228,9 @@ function On() {
228
228
  }
229
229
  });
230
230
  }
231
- function jn() {
232
- return S({
233
- queryFn: (i) => h.markAsReady(
231
+ function Bn() {
232
+ return E({
233
+ queryFn: (i) => k.markAsReady(
234
234
  i.params.invoiceUuid
235
235
  ),
236
236
  queryKeysToInvalidate: {
@@ -241,9 +241,9 @@ function jn() {
241
241
  }
242
242
  });
243
243
  }
244
- function Vn() {
245
- return S({
246
- queryFn: (i) => h.send(
244
+ function Nn() {
245
+ return E({
246
+ queryFn: (i) => k.send(
247
247
  i.params.invoiceUuid
248
248
  ),
249
249
  queryKeysToInvalidate: {
@@ -254,9 +254,9 @@ function Vn() {
254
254
  }
255
255
  });
256
256
  }
257
- function Bn() {
258
- return S({
259
- queryFn: (i) => h.withdrawProtest(
257
+ function Kn() {
258
+ return E({
259
+ queryFn: (i) => k.withdrawProtest(
260
260
  i.params.invoiceUuid
261
261
  ),
262
262
  queryKeysToInvalidate: {
@@ -267,23 +267,23 @@ function Bn() {
267
267
  }
268
268
  });
269
269
  }
270
- function Nn() {
271
- return S({
272
- queryFn: (i) => h.delete(i.params.invoiceUuid),
270
+ function Gn() {
271
+ return E({
272
+ queryFn: (i) => k.delete(i.params.invoiceUuid),
273
273
  queryKeysToInvalidate: {
274
274
  invoiceIndex: {}
275
275
  }
276
276
  });
277
277
  }
278
- const Kn = /* @__PURE__ */ I({
278
+ const Hn = /* @__PURE__ */ x({
279
279
  __name: "InvoiceDeleteDialog",
280
280
  props: {
281
281
  invoice: {}
282
282
  },
283
283
  emits: ["close", "deleted"],
284
284
  setup(i, { emit: n }) {
285
- const t = i, l = n, a = D(), m = Ge(), d = R(), f = Nn(), p = Z({
286
- schema: Qi.object({}),
285
+ const t = i, l = n, a = h(), m = Qe(), d = O(), f = Gn(), p = Z({
286
+ schema: Ji.object({}),
287
287
  onSubmit: async () => {
288
288
  const _ = await f.execute({
289
289
  params: {
@@ -327,17 +327,17 @@ const Kn = /* @__PURE__ */ I({
327
327
  }, 8, ["form"]));
328
328
  }
329
329
  });
330
- function Gn(i) {
331
- const n = D(), t = R(), l = Ge(), a = de(), m = a.create(Kn), d = a.create(Zi), f = Vn(), p = Ln(), _ = $n(), g = qn(), b = Rn(), E = zn(), M = On(), F = jn(), U = Bn(), {
332
- shouldSkipConfirmation: C
333
- } = Wi(), y = Te(null), A = c(() => K.getMetadata(i.value.status)), k = c(() => y.value ?? i.value.isDisputed), G = c(() => i.value.status !== L.DRAFT && i.value.status !== L.READY), X = c(() => i.value.lifecycleStatus === vi.FINALIZED), Qe = c(() => (i.value.status === L.SENT || i.value.status === L.OVERDUE) && i.value.reminders.length < i.value.maxReminderCount);
330
+ function Qn(i) {
331
+ const n = h(), t = O(), l = Qe(), a = de(), m = a.create(Hn), d = a.create(Yi), f = Nn(), p = qn(), _ = Rn(), g = On(), b = zn(), U = Vn(), T = jn(), F = Bn(), C = Kn(), {
332
+ shouldSkipConfirmation: S
333
+ } = Xi(), w = Pe(null), L = c(() => G.getMetadata(i.value.status)), y = c(() => w.value ?? i.value.isDisputed), A = c(() => i.value.status !== $.DRAFT && i.value.status !== $.READY), W = c(() => i.value.lifecycleStatus === pi.FINALIZED), We = c(() => (i.value.status === $.SENT || i.value.status === $.OVERDUE) && i.value.maxReminderCount > 0), Ue = c(() => i.value.reminders.length >= i.value.maxReminderCount);
334
334
  function ee(u) {
335
- return A.value.actions.includes(u);
335
+ return L.value.actions.includes(u);
336
336
  }
337
- ri(() => i.value.isDisputed, (u) => {
338
- y.value === u && (y.value = null);
337
+ di(() => i.value.isDisputed, (u) => {
338
+ w.value === u && (w.value = null);
339
339
  });
340
- async function Ue() {
340
+ async function Ce() {
341
341
  const u = await g.execute({
342
342
  params: {
343
343
  invoiceUuid: i.value.uuid
@@ -347,17 +347,17 @@ function Gn(i) {
347
347
  message: n.t("wise_invoicing.invoice.finalize.success")
348
348
  }), !0);
349
349
  }
350
- async function Ze() {
351
- if (C.value) {
352
- await Ue();
350
+ async function Je() {
351
+ if (S.value) {
352
+ await Ce();
353
353
  return;
354
354
  }
355
355
  await d.open({
356
356
  billingDocumentType: "invoice",
357
- onConfirm: Ue
357
+ onConfirm: Ce
358
358
  });
359
359
  }
360
- async function We() {
360
+ async function Ye() {
361
361
  const u = await F.execute({
362
362
  params: {
363
363
  invoiceUuid: i.value.uuid
@@ -371,7 +371,7 @@ function Gn(i) {
371
371
  message: n.t("wise_invoicing.invoice.mark_as_ready.success")
372
372
  });
373
373
  }
374
- async function Je() {
374
+ async function Xe() {
375
375
  const u = await b.execute({
376
376
  params: {
377
377
  invoiceUuid: i.value.uuid
@@ -385,8 +385,8 @@ function Gn(i) {
385
385
  message: n.t("wise_invoicing.invoice.mark_as_draft.success")
386
386
  });
387
387
  }
388
- async function Ye() {
389
- const u = await E.execute({
388
+ async function ei() {
389
+ const u = await U.execute({
390
390
  params: {
391
391
  invoiceUuid: i.value.uuid
392
392
  }
@@ -399,37 +399,37 @@ function Gn(i) {
399
399
  message: n.t("wise_invoicing.invoice.mark_as_paid.success")
400
400
  });
401
401
  }
402
- async function Xe() {
403
- y.value = !0;
404
- const u = await M.execute({
402
+ async function ii() {
403
+ w.value = !0;
404
+ const u = await T.execute({
405
405
  params: {
406
406
  invoiceUuid: i.value.uuid
407
407
  }
408
408
  });
409
409
  if (u.isErr()) {
410
- y.value = null, t.apiError(u.error);
410
+ w.value = null, t.apiError(u.error);
411
411
  return;
412
412
  }
413
413
  t.show({
414
414
  message: n.t("wise_invoicing.invoice.mark_as_disputed.success")
415
415
  });
416
416
  }
417
- async function ei() {
418
- y.value = !1;
419
- const u = await U.execute({
417
+ async function ni() {
418
+ w.value = !1;
419
+ const u = await C.execute({
420
420
  params: {
421
421
  invoiceUuid: i.value.uuid
422
422
  }
423
423
  });
424
424
  if (u.isErr()) {
425
- y.value = null, t.apiError(u.error);
425
+ w.value = null, t.apiError(u.error);
426
426
  return;
427
427
  }
428
428
  t.show({
429
429
  message: n.t("wise_invoicing.invoice.withdraw_dispute.success")
430
430
  });
431
431
  }
432
- async function ii() {
432
+ async function ti() {
433
433
  const u = await f.execute({
434
434
  params: {
435
435
  invoiceUuid: i.value.uuid
@@ -443,7 +443,7 @@ function Gn(i) {
443
443
  message: n.t("wise_invoicing.invoice.send.success")
444
444
  });
445
445
  }
446
- async function ni() {
446
+ async function oi() {
447
447
  const u = await f.execute({
448
448
  params: {
449
449
  invoiceUuid: i.value.uuid
@@ -457,28 +457,28 @@ function Gn(i) {
457
457
  message: n.t("wise_invoicing.invoice.reminder.success")
458
458
  });
459
459
  }
460
- async function ti() {
460
+ async function ai() {
461
461
  await m.open({
462
462
  invoice: i.value
463
463
  });
464
464
  }
465
- async function oi() {
466
- const u = await h.getByUuid(i.value.uuid);
465
+ async function si() {
466
+ const u = await k.getByUuid(i.value.uuid);
467
467
  if (u.isErr()) {
468
468
  t.apiError(u.error);
469
469
  return;
470
470
  }
471
- const W = u.value.file;
472
- if (W === null) {
471
+ const J = u.value.file;
472
+ if (J === null) {
473
473
  t.show({
474
474
  message: n.t("wise_invoicing.invoice.download_pdf.generation_in_progress")
475
475
  });
476
476
  return;
477
477
  }
478
- const ie = await Ji.getDownloadUrl(W.uuid);
479
- ie !== null && wi.downloadUrl(ie, W.name);
478
+ const ie = await en.getDownloadUrl(J.uuid);
479
+ ie !== null && xi.downloadUrl(ie, J.name);
480
480
  }
481
- async function ai() {
481
+ async function li() {
482
482
  const u = await _.execute({
483
483
  params: {
484
484
  invoiceUuid: i.value.uuid
@@ -503,7 +503,7 @@ function Gn(i) {
503
503
  message: n.t("wise_invoicing.invoice.duplicate.success")
504
504
  });
505
505
  }
506
- async function si() {
506
+ async function ci() {
507
507
  const u = await p.execute({
508
508
  params: {
509
509
  invoiceUuid: i.value.uuid
@@ -528,106 +528,108 @@ function Gn(i) {
528
528
  message: n.t("wise_invoicing.credit_note.create.success")
529
529
  });
530
530
  }
531
- const li = c(() => [
531
+ const ri = c(() => [
532
532
  {
533
533
  isLoading: f.isLoading.value,
534
534
  iconLeft: _e,
535
535
  key: "send",
536
536
  label: n.t("wise_invoicing.invoice.detail.actions.send"),
537
537
  variant: "primary",
538
- visible: i.value.status === L.FINALIZED,
539
- onClick: ii
538
+ visible: i.value.status === $.FINALIZED,
539
+ onClick: ti
540
540
  },
541
541
  {
542
+ isDisabled: Ue.value,
542
543
  isLoading: f.isLoading.value,
544
+ disabledReason: Ue.value ? n.t("wise_invoicing.invoice.reminder.max_reached") : null,
543
545
  iconLeft: _e,
544
546
  key: "sendReminder",
545
547
  label: n.t("wise_invoicing.invoice.detail.header.send_reminder"),
546
548
  variant: "primary",
547
- visible: Qe.value,
548
- onClick: ni
549
+ visible: We.value,
550
+ onClick: oi
549
551
  },
550
552
  {
551
553
  isLoading: F.isLoading.value,
552
- iconRight: Se,
554
+ iconRight: Ae,
553
555
  key: "markAsReady",
554
556
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
555
557
  visible: ee("markAsReady"),
556
- onClick: We
558
+ onClick: Ye
557
559
  },
558
560
  {
559
561
  isLoading: g.isLoading.value,
560
- iconLeft: mi,
562
+ iconLeft: _i,
561
563
  key: "finalize",
562
564
  label: n.t("wise_invoicing.invoice.detail.actions.finalize"),
563
565
  visible: ee("finalize"),
564
- onClick: Ze
566
+ onClick: Je
565
567
  }
566
- ].filter((u) => u.visible)), Ce = c(() => {
568
+ ].filter((u) => u.visible)), Se = c(() => {
567
569
  const u = [
568
570
  {
569
- icon: Le,
571
+ icon: $e,
570
572
  key: "markAsProtested",
571
573
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_disputed"),
572
- visible: X.value && !k.value,
573
- onSelect: Xe
574
+ visible: W.value && !y.value,
575
+ onSelect: ii
574
576
  },
575
577
  {
576
- icon: pi,
578
+ icon: fi,
577
579
  key: "markAsPaid",
578
580
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_paid"),
579
581
  visible: ee("markAsPaid"),
580
- onSelect: Ye
582
+ onSelect: ei
581
583
  },
582
584
  {
583
- icon: Se,
585
+ icon: Ae,
584
586
  key: "withdrawProtest",
585
587
  label: n.t("wise_invoicing.invoice.detail.actions.withdraw_dispute"),
586
- visible: X.value && k.value,
587
- onSelect: ei
588
+ visible: W.value && y.value,
589
+ onSelect: ni
588
590
  }
589
- ], W = [
590
- L.FINALIZED,
591
- L.PAID,
592
- L.SENT,
593
- L.OVERDUE,
594
- L.PROTESTED
591
+ ], J = [
592
+ $.FINALIZED,
593
+ $.PAID,
594
+ $.SENT,
595
+ $.OVERDUE,
596
+ $.PROTESTED
595
597
  ].includes(i.value.status), ie = [
596
598
  {
597
- icon: _i,
599
+ icon: gi,
598
600
  key: "downloadPdf",
599
601
  label: n.t("wise_invoicing.common.download_pdf"),
600
- visible: G.value,
601
- onSelect: oi
602
+ visible: A.value,
603
+ onSelect: si
602
604
  },
603
605
  {
604
- icon: fi,
606
+ icon: yi,
605
607
  key: "backToDraft",
606
608
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
607
609
  visible: ee("markAsDraft"),
608
- onSelect: Je
610
+ onSelect: Xe
609
611
  },
610
612
  {
611
- icon: gi,
613
+ icon: bi,
612
614
  key: "duplicate",
613
615
  label: n.t("wise_invoicing.invoice.detail.actions.duplicate"),
614
616
  visible: !0,
615
- onSelect: ai
617
+ onSelect: li
616
618
  }
617
- ], ci = [
619
+ ], ui = [
618
620
  {
619
- icon: yi,
621
+ icon: wi,
620
622
  key: "createCreditNote",
621
623
  label: n.t("wise_invoicing.invoice.detail.header.cancel_with_credit_note"),
622
- visible: W,
623
- onSelect: si
624
+ visible: J,
625
+ onSelect: ci
624
626
  },
625
627
  {
626
- icon: bi,
628
+ icon: Ii,
627
629
  key: "delete",
628
630
  label: n.t("wise_invoicing.invoice.detail.actions.delete"),
629
- visible: A.value.isEditable,
630
- onSelect: ti
631
+ visible: L.value.isEditable,
632
+ onSelect: ai
631
633
  }
632
634
  ];
633
635
  return [
@@ -640,19 +642,19 @@ function Gn(i) {
640
642
  key: "secondary"
641
643
  },
642
644
  {
643
- items: ci.filter((z) => z.visible),
645
+ items: ui.filter((z) => z.visible),
644
646
  key: "destructive"
645
647
  }
646
648
  ].filter((z) => z.items.length > 0);
647
649
  });
648
650
  return {
649
- isActionMenuVisible: c(() => Ce.value.length > 0),
650
- isDisputed: k,
651
- menuGroups: Ce,
652
- primaryButtons: li
651
+ isActionMenuVisible: c(() => Se.value.length > 0),
652
+ isDisputed: y,
653
+ menuGroups: Se,
654
+ primaryButtons: ri
653
655
  };
654
656
  }
655
- const Hn = /* @__PURE__ */ I({
657
+ const Zn = /* @__PURE__ */ x({
656
658
  __name: "InvoiceDetailHeaderSection",
657
659
  props: {
658
660
  isPdfViewActive: { type: Boolean },
@@ -660,63 +662,63 @@ const Hn = /* @__PURE__ */ I({
660
662
  },
661
663
  emits: ["togglePdfView"],
662
664
  setup(i, { emit: n }) {
663
- const t = i, l = n, a = D(), m = R(), {
665
+ const t = i, l = n, a = h(), m = O(), {
664
666
  isDisputed: d,
665
667
  menuGroups: f,
666
668
  primaryButtons: p
667
- } = Gn(c(() => t.invoice)), _ = ke(), g = c(() => new Ve(t.invoice.status)), b = c(() => g.value.color), E = c(() => a.t(g.value.translationKey)), M = c(() => t.invoice.deliveryStatus !== Ii.UNSENT || t.invoice.reminders.length > 0), F = c(() => Me.isSent(t.invoice.deliveryStatus)), U = c(() => !K.isEditable(t.invoice.status)), C = Z({
669
+ } = Qn(c(() => t.invoice)), _ = ke(), g = c(() => new Be(t.invoice.status)), b = c(() => g.value.color), U = c(() => a.t(g.value.translationKey)), T = c(() => t.invoice.deliveryStatus !== Di.UNSENT || t.invoice.reminders.length > 0), F = c(() => Le.isSent(t.invoice.deliveryStatus)), C = c(() => !G.isEditable(t.invoice.status)), S = Z({
668
670
  initialState: {
669
671
  subject: t.invoice.subject
670
672
  },
671
- schema: Mn,
672
- onSubmit: async (A) => {
673
- const k = await _.execute({
673
+ schema: $n,
674
+ onSubmit: async (L) => {
675
+ const y = await _.execute({
674
676
  body: {
675
677
  ...ye.toForm(t.invoice),
676
- subject: A.subject
678
+ subject: L.subject
677
679
  },
678
680
  params: {
679
681
  invoiceUuid: t.invoice.uuid
680
682
  }
681
683
  });
682
- k.isErr() && m.apiError(k.error);
684
+ y.isErr() && m.apiError(y.error);
683
685
  }
684
- }), y = C.register("subject");
685
- return Be({
686
- form: C
687
- }), (A, k) => (r(), v(e(Oe), {
688
- form: e(C),
686
+ }), w = S.register("subject");
687
+ return Ne({
688
+ form: S
689
+ }), (L, y) => (r(), v(e(Ve), {
690
+ form: e(S),
689
691
  "prompt-on-unsaved-changes": !1
690
692
  }, {
691
693
  default: s(() => [
692
- o(Yi, {
694
+ o(nn, {
693
695
  "fallback-title": e(a).t("wise_invoicing.invoice.detail.fallback_title"),
694
- "is-disabled": U.value,
696
+ "is-disabled": C.value,
695
697
  sequence: t.invoice.sequence,
696
698
  "status-color": b.value,
697
- "status-label": E.value,
698
- icon: e($e),
699
- "subject-field": e(y),
699
+ "status-label": U.value,
700
+ icon: e(qe),
701
+ "subject-field": e(w),
700
702
  "subject-placeholder": e(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
701
703
  }, {
702
704
  actions: s(() => [
703
- o(en, {
705
+ o(on, {
704
706
  "is-pdf-view-active": t.isPdfViewActive,
705
707
  "menu-groups": e(f),
706
708
  "primary-buttons": e(p),
707
- onTogglePdfView: k[0] || (k[0] = (G) => l("togglePdfView"))
709
+ onTogglePdfView: y[0] || (y[0] = (A) => l("togglePdfView"))
708
710
  }, null, 8, ["is-pdf-view-active", "menu-groups", "primary-buttons"])
709
711
  ]),
710
712
  status: s(() => [
711
- o(e(J), {
713
+ o(e(Y), {
712
714
  gap: "xs",
713
715
  class: "flex-wrap items-start"
714
716
  }, {
715
717
  default: s(() => [
716
- o(xi, {
718
+ o(hi, {
717
719
  "lifecycle-status": t.invoice.lifecycleStatus
718
720
  }, null, 8, ["lifecycle-status"]),
719
- o(Di, {
721
+ o(ki, {
720
722
  "is-sent": F.value,
721
723
  "balance-due-amount": t.invoice.balanceDueAmount,
722
724
  "gross-amount": t.invoice.grossAmount,
@@ -724,16 +726,16 @@ const Hn = /* @__PURE__ */ I({
724
726
  "settlement-status": t.invoice.settlementStatus,
725
727
  "total-credited-amount": t.invoice.totalCreditedAmount
726
728
  }, null, 8, ["is-sent", "balance-due-amount", "gross-amount", "paid-amount", "settlement-status", "total-credited-amount"]),
727
- t.invoice.isOverdue ? (r(), v(Xi, { key: 0 })) : x("", !0),
728
- e(d) ? (r(), v(hi, { key: 1 })) : x("", !0),
729
- M.value ? (r(), v(Fn, {
729
+ t.invoice.isOverdue ? (r(), v(tn, { key: 0 })) : D("", !0),
730
+ e(d) ? (r(), v(Ui, { key: 1 })) : D("", !0),
731
+ T.value ? (r(), v(Pn, {
730
732
  key: 2,
731
733
  "delivery-status": t.invoice.deliveryStatus
732
- }, null, 8, ["delivery-status"])) : x("", !0),
733
- t.invoice.reminders.length > 0 ? (r(), v(Tn, {
734
+ }, null, 8, ["delivery-status"])) : D("", !0),
735
+ t.invoice.reminders.length > 0 ? (r(), v(Mn, {
734
736
  key: 3,
735
737
  reminders: t.invoice.reminders
736
- }, null, 8, ["reminders"])) : x("", !0)
738
+ }, null, 8, ["reminders"])) : D("", !0)
737
739
  ]),
738
740
  _: 1
739
741
  })
@@ -744,14 +746,14 @@ const Hn = /* @__PURE__ */ I({
744
746
  _: 1
745
747
  }, 8, ["form"]));
746
748
  }
747
- }), Qn = { class: "grid w-full grid-cols-1 gap-md lg:grid-cols-3" }, Zn = /* @__PURE__ */ I({
749
+ }), Wn = { class: "grid w-full grid-cols-1 gap-md lg:grid-cols-3" }, Jn = /* @__PURE__ */ x({
748
750
  __name: "InvoiceDetailLinkedCreditNotesSection",
749
751
  props: {
750
752
  invoice: {}
751
753
  },
752
754
  setup(i) {
753
- const n = i, t = D(), l = Y(), a = c(() => n.invoice.creditNotes.map((d) => {
754
- const f = new Ve(d.status);
755
+ const n = i, t = h(), l = X(), a = c(() => n.invoice.creditNotes.map((d) => {
756
+ const f = new Be(d.status);
755
757
  return {
756
758
  uuid: d.uuid,
757
759
  title: d.sequence === null ? t.t("wise_invoicing.invoice.detail.credit_notes.untitled") : t.t("wise_invoicing.invoice.detail.credit_notes.card_title", {
@@ -775,13 +777,13 @@ const Hn = /* @__PURE__ */ I({
775
777
  class: "w-full"
776
778
  }, {
777
779
  default: s(() => [
778
- o(e(q), {
780
+ o(e(R), {
779
781
  text: e(t).t("wise_invoicing.invoice.detail.credit_notes.title"),
780
782
  as: "h2",
781
783
  class: "text-sm font-semibold text-primary"
782
784
  }, null, 8, ["text"]),
783
- B("div", Qn, [
784
- (r(!0), N(ae, null, Fe(a.value, (p) => (r(), v(e(gn), {
785
+ N("div", Wn, [
786
+ (r(!0), K(ae, null, Te(a.value, (p) => (r(), v(e(bn), {
785
787
  key: p.uuid,
786
788
  to: {
787
789
  name: "invoicing-credit-note-detail",
@@ -790,13 +792,13 @@ const Hn = /* @__PURE__ */ I({
790
792
  class: "min-w-0 rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
791
793
  }, {
792
794
  default: s(() => [
793
- o(e(J), {
795
+ o(e(Y), {
794
796
  align: "center",
795
797
  gap: "md",
796
798
  class: "min-w-0"
797
799
  }, {
798
800
  default: s(() => [
799
- o(e(q), {
801
+ o(e(R), {
800
802
  text: p.title,
801
803
  class: "min-w-0 flex-1 truncate text-xs font-semibold text-primary"
802
804
  }, null, 8, ["text"]),
@@ -820,36 +822,36 @@ const Hn = /* @__PURE__ */ I({
820
822
  ])
821
823
  ]),
822
824
  _: 1
823
- })) : x("", !0);
825
+ })) : D("", !0);
824
826
  }
825
- }), He = w.object({
827
+ }), Ze = I.object({
826
828
  deliveredOn: ve.nullable(),
827
829
  dueOn: ve,
828
830
  issuedOn: ve,
829
- externalRemarks: w.string().nullable(),
830
- poNumber: w.string().nullable(),
831
- preparedBy: w.object({
832
- uuid: w.uuid(),
833
- name: w.string()
831
+ externalRemarks: I.string().nullable(),
832
+ poNumber: I.string().nullable(),
833
+ preparedBy: I.object({
834
+ uuid: I.uuid(),
835
+ name: I.string()
834
836
  }),
835
- subject: w.string().nullable()
837
+ subject: I.string().nullable()
836
838
  }).superRefine((i, n) => {
837
839
  Temporal.PlainDate.compare(i.dueOn, i.issuedOn) < 0 && n.addIssue({
838
840
  code: "custom",
839
- message: ki.global.t("invoicing.invoice.validation.due_date_after_issue_date"),
841
+ message: Ci.global.t("invoicing.invoice.validation.due_date_after_issue_date"),
840
842
  path: [
841
843
  "dueOn"
842
844
  ]
843
845
  });
844
- }), Wn = /* @__PURE__ */ I({
846
+ }), Yn = /* @__PURE__ */ x({
845
847
  __name: "InvoiceDetailRemarksSection",
846
848
  props: {
847
849
  invoice: {}
848
850
  },
849
851
  setup(i) {
850
- const n = i, t = D(), l = R(), a = ke(), m = Z({
852
+ const n = i, t = h(), l = O(), a = ke(), m = Z({
851
853
  initialState: c(() => ye.toForm(n.invoice)),
852
- schema: He,
854
+ schema: Ze,
853
855
  onSubmit: async (p) => {
854
856
  const _ = await a.execute({
855
857
  body: p,
@@ -859,15 +861,15 @@ const Hn = /* @__PURE__ */ I({
859
861
  });
860
862
  _.isErr() && l.apiError(_.error);
861
863
  }
862
- }), d = m.register("externalRemarks"), f = c(() => !K.isEditable(n.invoice.status));
863
- return Be({
864
+ }), d = m.register("externalRemarks"), f = c(() => !G.isEditable(n.invoice.status));
865
+ return Ne({
864
866
  form: m
865
- }), (p, _) => (r(), v(e(Oe), {
867
+ }), (p, _) => (r(), v(e(Ve), {
866
868
  form: e(m),
867
869
  "prompt-on-unsaved-changes": !1
868
870
  }, {
869
871
  default: s(() => [
870
- o(nn, {
872
+ o(an, {
871
873
  "is-disabled": f.value,
872
874
  placeholder: e(t).t("wise_invoicing.invoice.detail.remarks.placeholder"),
873
875
  "remarks-field": e(d),
@@ -878,37 +880,37 @@ const Hn = /* @__PURE__ */ I({
878
880
  }, 8, ["form"]));
879
881
  }
880
882
  });
881
- function Jn(i) {
882
- return _n("invoiceActivityLogIndex", {
883
+ function Xn(i) {
884
+ return yn("invoiceActivityLogIndex", {
883
885
  params: {
884
886
  invoiceUuid: i
885
887
  },
886
- queryFn: (n) => h.getActivityLogs(i.value, {
888
+ queryFn: (n) => k.getActivityLogs(i.value, {
887
889
  pagination: n
888
890
  })
889
891
  });
890
892
  }
891
- const Yn = /* @__PURE__ */ I({
893
+ const et = /* @__PURE__ */ x({
892
894
  __name: "InvoiceDetailSidebarActivityTab",
893
895
  props: {
894
896
  invoice: {}
895
897
  },
896
898
  setup(i) {
897
- const n = i, t = D(), {
899
+ const n = i, t = h(), {
898
900
  hasNextPage: l,
899
901
  isFetchingNextPage: a,
900
902
  isLoading: m,
901
903
  fetchNextPage: d,
902
904
  result: f
903
- } = Jn(c(() => n.invoice.uuid)), p = c(() => f.value.unwrapOr({
905
+ } = Xn(c(() => n.invoice.uuid)), p = c(() => f.value.unwrapOr({
904
906
  data: [],
905
907
  meta: {
906
908
  next: null
907
909
  }
908
910
  }).data);
909
- return (_, g) => (r(), v(tn, {
911
+ return (_, g) => (r(), v(sn, {
910
912
  "current-billing-document": {
911
- role: e(Ui).INVOICE,
913
+ role: e(Si).INVOICE,
912
914
  uuid: n.invoice.uuid
913
915
  },
914
916
  "empty-message": e(t).t("wise_invoicing.invoice.detail.sidebar.activity_empty"),
@@ -919,19 +921,31 @@ const Yn = /* @__PURE__ */ I({
919
921
  "is-loading": e(m)
920
922
  }, null, 8, ["current-billing-document", "empty-message", "entries", "fetch-next-page", "has-next-page", "is-fetching-next-page", "is-loading"]));
921
923
  }
922
- }), Xn = /* @__PURE__ */ I({
924
+ });
925
+ function it(i) {
926
+ return Ge("invoiceCustomerDetail", {
927
+ params: {
928
+ customerUuid: i
929
+ },
930
+ queryFn: () => Ai.getByUuid(i.value)
931
+ });
932
+ }
933
+ const nt = /* @__PURE__ */ x({
923
934
  __name: "InvoiceUpdateDialog",
924
935
  props: {
925
936
  invoice: {}
926
937
  },
927
938
  emits: ["close"],
928
939
  setup(i, { emit: n }) {
929
- const t = i, l = n, a = D(), m = R(), d = ke(), f = yn(), p = be(), _ = c(() => {
930
- const y = f.result.value;
931
- return y.isOk() ? y.getValue().defaultPaymentTermDays ?? 0 : 0;
932
- }), g = Z({
940
+ const t = i, l = n, a = h(), m = O(), d = ke(), f = wn(), p = be(), _ = c(() => t.invoice.customer.uuid), g = it(_), b = c(() => {
941
+ const y = g.result.value;
942
+ if (y.isOk())
943
+ return y.getValue().defaultPaymentTermDays;
944
+ const A = f.result.value;
945
+ return A.isOk() ? A.getValue().defaultPaymentTermDays ?? 0 : 0;
946
+ }), U = Z({
933
947
  initialState: c(() => ye.toForm(t.invoice)),
934
- schema: He,
948
+ schema: Ze,
935
949
  onSubmit: async (y) => {
936
950
  const A = await d.execute({
937
951
  body: y,
@@ -948,20 +962,20 @@ const Yn = /* @__PURE__ */ I({
948
962
  onSubmitError: () => {
949
963
  m.unableToSave();
950
964
  }
951
- }), b = g.register("issuedOn"), E = g.register("dueOn"), M = g.register("deliveredOn"), F = g.register("poNumber"), U = g.register("subject");
952
- function C(y) {
953
- y !== null && E.setValue(y.add({
954
- days: _.value
965
+ }), T = U.register("issuedOn"), F = U.register("dueOn"), C = U.register("deliveredOn"), S = U.register("poNumber"), w = U.register("subject");
966
+ function L(y) {
967
+ y !== null && F.setValue(y.add({
968
+ days: b.value
955
969
  }));
956
970
  }
957
971
  return (y, A) => (r(), v(e(le), {
958
- form: e(g),
972
+ form: e(U),
959
973
  size: "sm",
960
- onClose: A[0] || (A[0] = (k) => l("close"))
974
+ onClose: A[0] || (A[0] = (W) => l("close"))
961
975
  }, {
962
976
  default: s(() => [
963
977
  o(e(ce), {
964
- icon: e(Ci),
978
+ icon: e(Ei),
965
979
  "is-description-visible": !1,
966
980
  title: e(a).t("wise_invoicing.invoice.detail.header.edit_info"),
967
981
  description: ""
@@ -975,23 +989,23 @@ const Yn = /* @__PURE__ */ I({
975
989
  sm: 1
976
990
  }, {
977
991
  default: s(() => [
978
- o(e(te), T(e(P)(e(b)), {
992
+ o(e(te), P(e(M)(e(T)), {
979
993
  label: e(a).t("wise_invoicing.invoice.detail.header.invoice_date"),
980
994
  "is-required": !0,
981
- "onUpdate:modelValue": C
995
+ "onUpdate:modelValue": L
982
996
  }), null, 16, ["label"]),
983
- o(e(te), T(e(P)(e(E)), {
997
+ o(e(te), P(e(M)(e(F)), {
984
998
  label: e(a).t("wise_invoicing.invoice.detail.header.due_date"),
985
999
  "is-required": !0,
986
- "min-date": e(b).modelValue.value
1000
+ "min-date": e(T).modelValue.value
987
1001
  }), null, 16, ["label", "min-date"]),
988
- e(p).isDeliveryDateVisible.value ? (r(), v(e(te), T({ key: 0 }, e(P)(e(M)), {
1002
+ e(p).isDeliveryDateVisible.value ? (r(), v(e(te), P({ key: 0 }, e(M)(e(C)), {
989
1003
  label: e(a).t("wise_invoicing.invoice.detail.header.delivery_date")
990
- }), null, 16, ["label"])) : x("", !0),
991
- o(e(oe), T(e(P)(e(F)), {
1004
+ }), null, 16, ["label"])) : D("", !0),
1005
+ o(e(oe), P(e(M)(e(S)), {
992
1006
  label: e(a).t("wise_invoicing.invoice.detail.header.po_number")
993
1007
  }), null, 16, ["label"]),
994
- o(e(oe), T(e(P)(e(U)), {
1008
+ o(e(oe), P(e(M)(e(w)), {
995
1009
  label: e(a).t("wise_invoicing.invoice.detail.header.subject"),
996
1010
  placeholder: e(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
997
1011
  }), null, 16, ["label", "placeholder"])
@@ -1017,16 +1031,16 @@ const Yn = /* @__PURE__ */ I({
1017
1031
  _: 1
1018
1032
  }, 8, ["form"]));
1019
1033
  }
1020
- }), et = /* @__PURE__ */ I({
1034
+ }), tt = /* @__PURE__ */ x({
1021
1035
  __name: "InvoiceDetailSidebarInfoTab",
1022
1036
  props: {
1023
1037
  invoice: {}
1024
1038
  },
1025
1039
  setup(i) {
1026
- const n = i, t = D(), l = se(), a = be(), d = de().create(Xn), f = c(() => K.isEditable(n.invoice.status)), p = c(() => {
1040
+ const n = i, t = h(), l = se(), a = be(), d = de().create(nt), f = c(() => G.isEditable(n.invoice.status)), p = c(() => {
1027
1041
  if (!n.invoice.isOverdue)
1028
1042
  return null;
1029
- const b = n.invoice.dueOn.toZonedDateTime(Ke.Now.timeZoneId()).toInstant();
1043
+ const b = n.invoice.dueOn.toZonedDateTime(He.Now.timeZoneId()).toInstant();
1030
1044
  return l.toRelativeTime(b);
1031
1045
  });
1032
1046
  async function _() {
@@ -1037,16 +1051,16 @@ const Yn = /* @__PURE__ */ I({
1037
1051
  function g(b) {
1038
1052
  return b === null ? "-" : l.formatPlainDate(b);
1039
1053
  }
1040
- return (b, E) => (r(), v(e(Ri), { class: "px-2xl py-xl" }, {
1054
+ return (b, U) => (r(), v(e(Vi), { class: "px-2xl py-xl" }, {
1041
1055
  default: s(() => [
1042
1056
  o(e(pe), {
1043
1057
  label: e(t).t("wise_invoicing.invoice.detail.sidebar.general")
1044
- }, ui({
1058
+ }, vi({
1045
1059
  default: s(() => [
1046
- o(e($), null, {
1060
+ o(e(q), null, {
1047
1061
  default: s(() => [
1048
- o(e(O), {
1049
- icon: e(Si),
1062
+ o(e(V), {
1063
+ icon: e(Fi),
1050
1064
  label: e(t).t("wise_invoicing.invoice.detail.header.invoice_id")
1051
1065
  }, null, 8, ["icon", "label"]),
1052
1066
  o(e(j), {
@@ -1055,10 +1069,10 @@ const Yn = /* @__PURE__ */ I({
1055
1069
  ]),
1056
1070
  _: 1
1057
1071
  }),
1058
- o(e($), null, {
1072
+ o(e(q), null, {
1059
1073
  default: s(() => [
1060
- o(e(O), {
1061
- icon: e(Ai),
1074
+ o(e(V), {
1075
+ icon: e(Ti),
1062
1076
  label: e(t).t("wise_invoicing.invoice.detail.header.po_number")
1063
1077
  }, null, 8, ["icon", "label"]),
1064
1078
  o(e(j), {
@@ -1067,10 +1081,10 @@ const Yn = /* @__PURE__ */ I({
1067
1081
  ]),
1068
1082
  _: 1
1069
1083
  }),
1070
- o(e($), null, {
1084
+ o(e(q), null, {
1071
1085
  default: s(() => [
1072
- o(e(O), {
1073
- icon: e(Ei),
1086
+ o(e(V), {
1087
+ icon: e(Pi),
1074
1088
  label: e(t).t("wise_invoicing.invoice.detail.header.issuer")
1075
1089
  }, null, 8, ["icon", "label"]),
1076
1090
  o(e(j), {
@@ -1079,10 +1093,10 @@ const Yn = /* @__PURE__ */ I({
1079
1093
  ]),
1080
1094
  _: 1
1081
1095
  }),
1082
- o(e($), null, {
1096
+ o(e(q), null, {
1083
1097
  default: s(() => [
1084
- o(e(O), {
1085
- icon: e($e),
1098
+ o(e(V), {
1099
+ icon: e(qe),
1086
1100
  label: e(t).t("wise_invoicing.invoice.detail.header.invoice_date")
1087
1101
  }, null, 8, ["icon", "label"]),
1088
1102
  o(e(j), {
@@ -1091,17 +1105,14 @@ const Yn = /* @__PURE__ */ I({
1091
1105
  ]),
1092
1106
  _: 1
1093
1107
  }),
1094
- o(e($), null, {
1108
+ o(e(q), null, {
1095
1109
  default: s(() => [
1096
- o(e(O), {
1097
- icon: e(Le),
1110
+ o(e(V), {
1111
+ icon: e($e),
1098
1112
  label: e(t).t("wise_invoicing.invoice.detail.header.due_date"),
1099
1113
  variant: n.invoice.isOverdue ? "error" : "default"
1100
1114
  }, null, 8, ["icon", "label", "variant"]),
1101
- o(e(J), {
1102
- gap: "xs",
1103
- class: "items-center"
1104
- }, {
1115
+ o(e(Y), { gap: "xs" }, {
1105
1116
  default: s(() => [
1106
1117
  o(e(j), {
1107
1118
  text: g(n.invoice.dueOn),
@@ -1113,16 +1124,16 @@ const Yn = /* @__PURE__ */ I({
1113
1124
  color: "error",
1114
1125
  size: "sm",
1115
1126
  variant: "translucent"
1116
- }, null, 8, ["label"])) : x("", !0)
1127
+ }, null, 8, ["label"])) : D("", !0)
1117
1128
  ]),
1118
1129
  _: 1
1119
1130
  })
1120
1131
  ]),
1121
1132
  _: 1
1122
1133
  }),
1123
- e(a).isDeliveryDateVisible.value ? (r(), v(e($), { key: 0 }, {
1134
+ e(a).isDeliveryDateVisible.value ? (r(), v(e(q), { key: 0 }, {
1124
1135
  default: s(() => [
1125
- o(e(O), {
1136
+ o(e(V), {
1126
1137
  icon: e(_e),
1127
1138
  label: e(t).t("wise_invoicing.invoice.detail.header.delivery_date")
1128
1139
  }, null, 8, ["icon", "label"]),
@@ -1131,7 +1142,7 @@ const Yn = /* @__PURE__ */ I({
1131
1142
  }, null, 8, ["text"])
1132
1143
  ]),
1133
1144
  _: 1
1134
- })) : x("", !0)
1145
+ })) : D("", !0)
1135
1146
  ]),
1136
1147
  _: 2
1137
1148
  }, [
@@ -1139,7 +1150,7 @@ const Yn = /* @__PURE__ */ I({
1139
1150
  name: "actions",
1140
1151
  fn: s(() => [
1141
1152
  o(e(je), {
1142
- icon: e(Fi),
1153
+ icon: e(Mi),
1143
1154
  label: e(t).t("wise_invoicing.invoice.detail.header.edit_info"),
1144
1155
  variant: "tertiary",
1145
1156
  onClick: _
@@ -1148,10 +1159,10 @@ const Yn = /* @__PURE__ */ I({
1148
1159
  key: "0"
1149
1160
  } : void 0
1150
1161
  ]), 1032, ["label"]),
1151
- o(on, {
1162
+ o(ln, {
1152
1163
  "original-invoice": n.invoice.originalInvoice
1153
1164
  }, null, 8, ["original-invoice"]),
1154
- o(e(Ae)),
1165
+ o(e(Ee)),
1155
1166
  o(e(pe), {
1156
1167
  label: e(t).t("wise_invoicing.invoice.detail.header.bill_to"),
1157
1168
  "collapse-options": {
@@ -1163,30 +1174,30 @@ const Yn = /* @__PURE__ */ I({
1163
1174
  }
1164
1175
  }, {
1165
1176
  default: s(() => [
1166
- o(e($), { orientation: "vertical" }, {
1177
+ o(e(q), { orientation: "vertical" }, {
1167
1178
  default: s(() => [
1168
- o(e(q), {
1179
+ o(e(R), {
1169
1180
  text: n.invoice.customer.name ?? "-",
1170
1181
  class: "text-xs font-medium"
1171
1182
  }, null, 8, ["text"]),
1172
- n.invoice.customer.address ? (r(), N(ae, { key: 0 }, [
1173
- o(e(q), {
1183
+ n.invoice.customer.address ? (r(), K(ae, { key: 0 }, [
1184
+ o(e(R), {
1174
1185
  text: e(me).formatLines(n.invoice.customer.address)[0] ?? "",
1175
1186
  class: "text-xs"
1176
1187
  }, null, 8, ["text"]),
1177
- n.invoice.customer.address ? (r(), v(e(q), {
1188
+ n.invoice.customer.address ? (r(), v(e(R), {
1178
1189
  key: 0,
1179
1190
  text: e(me).formatLines(n.invoice.customer.address)[1] ?? "",
1180
1191
  class: "text-xs"
1181
- }, null, 8, ["text"])) : x("", !0)
1182
- ], 64)) : x("", !0)
1192
+ }, null, 8, ["text"])) : D("", !0)
1193
+ ], 64)) : D("", !0)
1183
1194
  ]),
1184
1195
  _: 1
1185
1196
  })
1186
1197
  ]),
1187
1198
  _: 1
1188
1199
  }, 8, ["label", "collapse-options"]),
1189
- o(e(Ae)),
1200
+ o(e(Ee)),
1190
1201
  o(e(pe), {
1191
1202
  label: e(t).t("wise_invoicing.invoice.detail.header.bill_from"),
1192
1203
  "collapse-options": {
@@ -1198,15 +1209,15 @@ const Yn = /* @__PURE__ */ I({
1198
1209
  }
1199
1210
  }, {
1200
1211
  default: s(() => [
1201
- o(e($), { orientation: "vertical" }, {
1212
+ o(e(q), { orientation: "vertical" }, {
1202
1213
  default: s(() => [
1203
- o(e(O), {
1214
+ o(e(V), {
1204
1215
  label: n.invoice.issuer.email ?? "-"
1205
1216
  }, null, 8, ["label"]),
1206
1217
  n.invoice.issuer.address ? (r(), v(e(j), {
1207
1218
  key: 0,
1208
1219
  text: e(me).format(n.invoice.issuer.address)
1209
- }, null, 8, ["text"])) : x("", !0)
1220
+ }, null, 8, ["text"])) : D("", !0)
1210
1221
  ]),
1211
1222
  _: 1
1212
1223
  })
@@ -1217,26 +1228,26 @@ const Yn = /* @__PURE__ */ I({
1217
1228
  _: 1
1218
1229
  }));
1219
1230
  }
1220
- }), it = /* @__PURE__ */ I({
1231
+ }), ot = /* @__PURE__ */ x({
1221
1232
  __name: "InvoiceDetailSidebar",
1222
1233
  props: {
1223
1234
  invoice: {}
1224
1235
  },
1225
1236
  setup(i) {
1226
- const n = i, t = D(), l = se(), a = c(() => t.t("wise_invoicing.invoice.detail.sidebar.updated_on", {
1237
+ const n = i, t = h(), l = se(), a = c(() => t.t("wise_invoicing.invoice.detail.sidebar.updated_on", {
1227
1238
  date: l.toDateTime(n.invoice.updatedAt)
1228
1239
  }));
1229
- return (m, d) => (r(), v(an, {
1240
+ return (m, d) => (r(), v(cn, {
1230
1241
  "billing-document": n.invoice,
1231
1242
  "updated-footer": a.value
1232
1243
  }, {
1233
1244
  activity: s(() => [
1234
- o(Yn, {
1245
+ o(et, {
1235
1246
  invoice: n.invoice
1236
1247
  }, null, 8, ["invoice"])
1237
1248
  ]),
1238
1249
  info: s(() => [
1239
- o(et, {
1250
+ o(tt, {
1240
1251
  invoice: n.invoice
1241
1252
  }, null, 8, ["invoice"])
1242
1253
  ]),
@@ -1244,9 +1255,9 @@ const Yn = /* @__PURE__ */ I({
1244
1255
  }, 8, ["billing-document", "updated-footer"]));
1245
1256
  }
1246
1257
  });
1247
- function nt() {
1248
- return S({
1249
- queryFn: (i) => h.deletePayment(
1258
+ function at() {
1259
+ return E({
1260
+ queryFn: (i) => k.deletePayment(
1250
1261
  i.params.invoiceUuid,
1251
1262
  i.params.paymentUuid
1252
1263
  ),
@@ -1260,34 +1271,34 @@ function nt() {
1260
1271
  }
1261
1272
  });
1262
1273
  }
1263
- function tt(i) {
1264
- return fn("invoicePaymentIndex", {
1274
+ function st(i) {
1275
+ return Ge("invoicePaymentIndex", {
1265
1276
  params: {
1266
1277
  invoiceUuid: i
1267
1278
  },
1268
- queryFn: () => h.getPayments(i.value)
1279
+ queryFn: () => k.getPayments(i.value)
1269
1280
  });
1270
1281
  }
1271
- const ot = /* @__PURE__ */ I({
1282
+ const lt = /* @__PURE__ */ x({
1272
1283
  __name: "InvoiceDetailPaymentActionsCell",
1273
1284
  props: {
1274
1285
  payment: {},
1275
1286
  onDelete: { type: Function }
1276
1287
  },
1277
1288
  setup(i) {
1278
- const n = i, t = D();
1289
+ const n = i, t = h();
1279
1290
  return (l, a) => (r(), v(e(he), null, {
1280
1291
  default: s(() => [
1281
- o(e(zi), null, {
1292
+ o(e(ji), null, {
1282
1293
  default: s(() => [
1283
- n.payment.source === e(qe).MANUAL ? (r(), v(e(je), {
1294
+ n.payment.source === e(Re).MANUAL ? (r(), v(e(je), {
1284
1295
  key: 0,
1285
1296
  label: e(t).t("wise_invoicing.invoice.detail.payments.delete.title"),
1286
- icon: e(En),
1297
+ icon: e(Tn),
1287
1298
  size: "sm",
1288
1299
  variant: "tertiary",
1289
1300
  onClick: a[0] || (a[0] = (m) => n.onDelete(n.payment))
1290
- }, null, 8, ["label", "icon"])) : x("", !0)
1301
+ }, null, 8, ["label", "icon"])) : D("", !0)
1291
1302
  ]),
1292
1303
  _: 1
1293
1304
  })
@@ -1295,7 +1306,7 @@ const ot = /* @__PURE__ */ I({
1295
1306
  _: 1
1296
1307
  }));
1297
1308
  }
1298
- }), at = /* @__PURE__ */ I({
1309
+ }), ct = /* @__PURE__ */ x({
1299
1310
  __name: "InvoiceDetailPaymentManualCell",
1300
1311
  props: {
1301
1312
  payment: {}
@@ -1304,15 +1315,15 @@ const ot = /* @__PURE__ */ I({
1304
1315
  const n = i;
1305
1316
  return (t, l) => (r(), v(e(he), null, {
1306
1317
  default: s(() => [
1307
- n.payment.source === e(qe).MANUAL ? (r(), v(e(Ti), {
1318
+ n.payment.source === e(Re).MANUAL ? (r(), v(e(Li), {
1308
1319
  key: 0,
1309
1320
  class: "size-4 text-brand-600"
1310
- })) : x("", !0)
1321
+ })) : D("", !0)
1311
1322
  ]),
1312
1323
  _: 1
1313
1324
  }));
1314
1325
  }
1315
- }), ne = /* @__PURE__ */ I({
1326
+ }), ne = /* @__PURE__ */ x({
1316
1327
  __name: "InvoiceDetailPaymentsTableTextCell",
1317
1328
  props: {
1318
1329
  text: {}
@@ -1321,7 +1332,7 @@ const ot = /* @__PURE__ */ I({
1321
1332
  const n = i;
1322
1333
  return (t, l) => (r(), v(e(he), null, {
1323
1334
  default: s(() => [
1324
- o(e(q), {
1335
+ o(e(R), {
1325
1336
  text: n.text ?? "-",
1326
1337
  class: "text-sm/5 text-primary"
1327
1338
  }, null, 8, ["text"])
@@ -1330,9 +1341,9 @@ const ot = /* @__PURE__ */ I({
1330
1341
  }));
1331
1342
  }
1332
1343
  });
1333
- function st(i) {
1334
- const n = D(), t = se(), l = Y();
1335
- return c(() => Oi()([
1344
+ function rt(i) {
1345
+ const n = h(), t = se(), l = X();
1346
+ return c(() => Bi()([
1336
1347
  {
1337
1348
  headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.date"),
1338
1349
  key: "date",
@@ -1373,7 +1384,7 @@ function st(i) {
1373
1384
  max: "6rem",
1374
1385
  min: "6rem"
1375
1386
  },
1376
- component: (a) => H(at, {
1387
+ component: (a) => H(ct, {
1377
1388
  payment: a
1378
1389
  })
1379
1390
  },
@@ -1395,16 +1406,16 @@ function st(i) {
1395
1406
  max: "5rem",
1396
1407
  min: "5rem"
1397
1408
  },
1398
- component: (a) => H(ot, {
1409
+ component: (a) => H(lt, {
1399
1410
  payment: a,
1400
1411
  onDelete: i.onDelete
1401
1412
  })
1402
1413
  }
1403
1414
  ]));
1404
1415
  }
1405
- function lt() {
1406
- return S({
1407
- queryFn: (i) => h.createPayment(
1416
+ function ut() {
1417
+ return E({
1418
+ queryFn: (i) => k.createPayment(
1408
1419
  i.params.invoiceUuid,
1409
1420
  i.body
1410
1421
  ),
@@ -1418,39 +1429,39 @@ function lt() {
1418
1429
  }
1419
1430
  });
1420
1431
  }
1421
- const ct = w.object({
1422
- amount: w.number().positive(),
1423
- currency: w.enum(Re),
1424
- date: Pi,
1425
- paymentReference: w.string().nullable(),
1426
- precision: w.number().int().nonnegative(),
1427
- remarks: w.string().nullable()
1428
- }), rt = { class: "pr-md text-xs text-secondary" }, ut = /* @__PURE__ */ I({
1432
+ const dt = I.object({
1433
+ amount: I.number().positive(),
1434
+ currency: I.enum(Oe),
1435
+ date: $i,
1436
+ paymentReference: I.string().nullable(),
1437
+ precision: I.number().int().nonnegative(),
1438
+ remarks: I.string().nullable()
1439
+ }), vt = { class: "pr-md text-xs text-secondary" }, mt = /* @__PURE__ */ x({
1429
1440
  __name: "InvoicePaymentCreateDialog",
1430
1441
  props: {
1431
1442
  invoice: {}
1432
1443
  },
1433
1444
  emits: ["close"],
1434
1445
  setup(i, { emit: n }) {
1435
- const t = i, l = n, a = D(), m = R(), d = Y(), f = lt(), p = c(() => d.getSymbol(t.invoice.grossAmount.currency)), _ = Z({
1446
+ const t = i, l = n, a = h(), m = O(), d = X(), f = ut(), p = c(() => d.getSymbol(t.invoice.grossAmount.currency)), _ = Z({
1436
1447
  initialState: {
1437
1448
  amount: null,
1438
1449
  currency: t.invoice.grossAmount.currency,
1439
- date: Mi.getToday(),
1450
+ date: qi.getToday(),
1440
1451
  paymentReference: null,
1441
1452
  precision: t.invoice.grossAmount.precision,
1442
1453
  remarks: null
1443
1454
  },
1444
- schema: ct,
1455
+ schema: dt,
1445
1456
  onSubmit: async (F) => {
1446
- const U = await f.execute({
1457
+ const C = await f.execute({
1447
1458
  body: F,
1448
1459
  params: {
1449
1460
  invoiceUuid: t.invoice.uuid
1450
1461
  }
1451
1462
  });
1452
- if (U.isErr()) {
1453
- m.apiError(U.error);
1463
+ if (C.isErr()) {
1464
+ m.apiError(C.error);
1454
1465
  return;
1455
1466
  }
1456
1467
  m.show({
@@ -1460,17 +1471,17 @@ const ct = w.object({
1460
1471
  onSubmitError: () => {
1461
1472
  m.unableToSave();
1462
1473
  }
1463
- }), g = _.register("amount"), b = _.register("date"), E = _.register("paymentReference"), M = _.register("remarks");
1464
- return (F, U) => (r(), v(e(le), {
1474
+ }), g = _.register("amount"), b = _.register("date"), U = _.register("paymentReference"), T = _.register("remarks");
1475
+ return (F, C) => (r(), v(e(le), {
1465
1476
  form: e(_),
1466
1477
  size: "sm",
1467
- onClose: U[0] || (U[0] = (C) => l("close"))
1478
+ onClose: C[0] || (C[0] = (S) => l("close"))
1468
1479
  }, {
1469
1480
  default: s(() => [
1470
1481
  o(e(ce), {
1471
1482
  title: e(a).t("wise_invoicing.invoice.detail.payments.create.title"),
1472
1483
  description: e(a).t("wise_invoicing.invoice.detail.payments.create.description"),
1473
- icon: e(xn),
1484
+ icon: e(hn),
1474
1485
  "is-description-visible": !0
1475
1486
  }, null, 8, ["title", "description", "icon"]),
1476
1487
  o(e(Ie), null, {
@@ -1482,25 +1493,25 @@ const ct = w.object({
1482
1493
  sm: 1
1483
1494
  }, {
1484
1495
  default: s(() => [
1485
- o(e(fe), T(e(P)(e(g)), {
1496
+ o(e(fe), P(e(M)(e(g)), {
1486
1497
  "is-required": !0,
1487
1498
  label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.amount"),
1488
1499
  min: 0.01,
1489
1500
  step: 0.01
1490
1501
  }), {
1491
1502
  right: s(() => [
1492
- B("span", rt, Pe(p.value.symbol), 1)
1503
+ N("span", vt, Me(p.value.symbol), 1)
1493
1504
  ]),
1494
1505
  _: 1
1495
1506
  }, 16, ["label"]),
1496
- o(e(te), T(e(P)(e(b)), {
1507
+ o(e(te), P(e(M)(e(b)), {
1497
1508
  "is-required": !0,
1498
1509
  label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.date")
1499
1510
  }), null, 16, ["label"]),
1500
- o(e(oe), T(e(P)(e(E)), {
1511
+ o(e(oe), P(e(M)(e(U)), {
1501
1512
  label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.reference")
1502
1513
  }), null, 16, ["label"]),
1503
- o(e(oe), T(e(P)(e(M)), {
1514
+ o(e(oe), P(e(M)(e(T)), {
1504
1515
  label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.remarks")
1505
1516
  }), null, 16, ["label"])
1506
1517
  ]),
@@ -1515,7 +1526,7 @@ const ct = w.object({
1515
1526
  o(e(re), null, {
1516
1527
  right: s(() => [
1517
1528
  o(e(ue), { label: "cancel" }),
1518
- o(e(ji), {
1529
+ o(e(Ni), {
1519
1530
  label: e(a).t("wise_invoicing.invoice.detail.payments.create.submit")
1520
1531
  }, null, 8, ["label"])
1521
1532
  ]),
@@ -1525,44 +1536,44 @@ const ct = w.object({
1525
1536
  _: 1
1526
1537
  }, 8, ["form"]));
1527
1538
  }
1528
- }), dt = /* @__PURE__ */ I({
1539
+ }), pt = /* @__PURE__ */ x({
1529
1540
  __name: "InvoiceDetailPaymentsSection",
1530
1541
  props: {
1531
1542
  invoice: {}
1532
1543
  },
1533
1544
  setup(i) {
1534
- const n = i, t = D(), l = Y(), a = c(() => n.invoice.uuid), m = c(() => n.invoice.balanceDueAmount === null ? null : l.formatMonetary(n.invoice.balanceDueAmount)), {
1545
+ const n = i, t = h(), l = X(), a = c(() => n.invoice.uuid), m = c(() => n.invoice.balanceDueAmount === null ? null : l.formatMonetary(n.invoice.balanceDueAmount)), {
1535
1546
  isLoading: d,
1536
1547
  result: f
1537
- } = tt(a), p = de(), _ = R(), g = p.create(ut), b = p.create(Vi), E = nt(), M = c(() => f.value.match({
1548
+ } = st(a), p = de(), _ = O(), g = p.create(mt), b = p.create(Ki), U = at(), T = c(() => f.value.match({
1538
1549
  err: () => [],
1539
1550
  loading: () => [],
1540
- ok: (k) => k
1551
+ ok: (y) => y
1541
1552
  })), F = c(() => f.value.match({
1542
- err: (k) => k,
1553
+ err: (y) => y,
1543
1554
  loading: () => null,
1544
1555
  ok: () => null
1545
- })), U = c(() => !K.getMetadata(n.invoice.status).isTerminal);
1546
- function C() {
1556
+ })), C = c(() => !G.getMetadata(n.invoice.status).isTerminal);
1557
+ function S() {
1547
1558
  g.open({
1548
1559
  invoice: n.invoice
1549
1560
  });
1550
1561
  }
1551
- function y(k) {
1562
+ function w(y) {
1552
1563
  b.open({
1553
1564
  title: t.t("wise_invoicing.invoice.detail.payments.delete.title"),
1554
1565
  isDestructive: !0,
1555
1566
  confirmLabel: t.t("wise_invoicing.invoice.detail.payments.delete.submit"),
1556
1567
  description: t.t("wise_invoicing.invoice.detail.payments.delete.description"),
1557
1568
  onConfirm: async () => {
1558
- const G = await E.execute({
1569
+ const A = await U.execute({
1559
1570
  params: {
1560
1571
  invoiceUuid: n.invoice.uuid,
1561
- paymentUuid: k.uuid
1572
+ paymentUuid: y.uuid
1562
1573
  }
1563
1574
  });
1564
- if (G.isErr()) {
1565
- _.apiError(G.error);
1575
+ if (A.isErr()) {
1576
+ _.apiError(A.error);
1566
1577
  return;
1567
1578
  }
1568
1579
  _.show({
@@ -1571,22 +1582,19 @@ const ct = w.object({
1571
1582
  }
1572
1583
  });
1573
1584
  }
1574
- const A = st({
1575
- onDelete: y
1585
+ const L = rt({
1586
+ onDelete: w
1576
1587
  });
1577
- return (k, G) => (r(), v(Ne, null, {
1588
+ return (y, A) => (r(), v(Ke, null, {
1578
1589
  default: s(() => [
1579
- o(e(J), {
1590
+ o(e(Y), {
1580
1591
  justify: "between",
1581
1592
  class: "w-full gap-lg border-b border-secondary px-lg py-md"
1582
1593
  }, {
1583
1594
  default: s(() => [
1584
- o(e(J), {
1585
- gap: "sm",
1586
- class: "items-center"
1587
- }, {
1595
+ o(e(Y), { gap: "sm" }, {
1588
1596
  default: s(() => [
1589
- o(e(q), {
1597
+ o(e(R), {
1590
1598
  text: e(t).t("wise_invoicing.invoice.detail.payments.title"),
1591
1599
  as: "h2",
1592
1600
  class: "text-sm font-semibold text-primary"
@@ -1598,33 +1606,33 @@ const ct = w.object({
1598
1606
  variant: "outline"
1599
1607
  }, {
1600
1608
  default: s(() => [
1601
- o(e(Ee), {
1609
+ o(e(Fe), {
1602
1610
  label: e(t).t("wise_invoicing.invoice.detail.payments.balance_due")
1603
1611
  }, null, 8, ["label"]),
1604
- o(e(Bi)),
1605
- o(e(Ee), { label: m.value }, null, 8, ["label"])
1612
+ o(e(Gi)),
1613
+ o(e(Fe), { label: m.value }, null, 8, ["label"])
1606
1614
  ]),
1607
1615
  _: 1
1608
- })) : x("", !0)
1616
+ })) : D("", !0)
1609
1617
  ]),
1610
1618
  _: 1
1611
1619
  }),
1612
- U.value ? (r(), v(e(Ni), {
1620
+ C.value ? (r(), v(e(Hi), {
1613
1621
  key: 0,
1614
1622
  label: e(t).t("wise_invoicing.invoice.detail.payments.add"),
1615
- "icon-left": e(Un),
1623
+ "icon-left": e(Sn),
1616
1624
  size: "sm",
1617
- onClick: C
1618
- }, null, 8, ["label", "icon-left"])) : x("", !0)
1625
+ onClick: S
1626
+ }, null, 8, ["label", "icon-left"])) : D("", !0)
1619
1627
  ]),
1620
1628
  _: 1
1621
1629
  }),
1622
- o(e(Ki), {
1630
+ o(e(Qi), {
1623
1631
  "active-filter-count": 0,
1624
- columns: e(A),
1625
- data: M.value,
1632
+ columns: e(L),
1633
+ data: T.value,
1626
1634
  error: F.value,
1627
- "get-key": (X) => X.uuid,
1635
+ "get-key": (W) => W.uuid,
1628
1636
  "has-active-search": !1,
1629
1637
  "header-actions": [],
1630
1638
  "is-fetching-next-page": !1,
@@ -1635,9 +1643,9 @@ const ct = w.object({
1635
1643
  }));
1636
1644
  }
1637
1645
  });
1638
- function vt() {
1639
- return S({
1640
- queryFn: (i) => h.updateLines(
1646
+ function _t() {
1647
+ return E({
1648
+ queryFn: (i) => k.updateLines(
1641
1649
  i.params.invoiceUuid,
1642
1650
  i.body
1643
1651
  ),
@@ -1648,9 +1656,9 @@ function vt() {
1648
1656
  }
1649
1657
  });
1650
1658
  }
1651
- function mt() {
1652
- return S({
1653
- queryFn: (i) => h.applyDiscount(
1659
+ function ft() {
1660
+ return E({
1661
+ queryFn: (i) => k.applyDiscount(
1654
1662
  i.params.invoiceUuid,
1655
1663
  i.body
1656
1664
  ),
@@ -1661,42 +1669,42 @@ function mt() {
1661
1669
  }
1662
1670
  });
1663
1671
  }
1664
- const pt = w.object({
1665
- currency: w.enum(Re),
1666
- precision: w.number().int().nonnegative(),
1667
- type: w.enum(V),
1668
- value: w.number()
1669
- }).refine((i) => i.type !== V.PERCENTAGE || i.value <= 100, {
1672
+ const gt = I.object({
1673
+ currency: I.enum(Oe),
1674
+ precision: I.number().int().nonnegative(),
1675
+ type: I.enum(B),
1676
+ value: I.number()
1677
+ }).refine((i) => i.type !== B.PERCENTAGE || i.value <= 100, {
1670
1678
  path: [
1671
1679
  "value"
1672
1680
  ]
1673
- }), _t = { class: "pr-md text-xs text-secondary" }, ft = /* @__PURE__ */ I({
1681
+ }), yt = { class: "pr-md text-xs text-secondary" }, bt = /* @__PURE__ */ x({
1674
1682
  __name: "InvoiceApplyDiscountDialog",
1675
1683
  props: {
1676
1684
  invoice: {}
1677
1685
  },
1678
1686
  emits: ["close"],
1679
1687
  setup(i, { emit: n }) {
1680
- const t = i, l = n, a = D(), m = R(), d = Y(), f = mt(), p = c(() => Gi([
1681
- V.PERCENTAGE,
1682
- V.AMOUNT
1688
+ const t = i, l = n, a = h(), m = O(), d = X(), f = ft(), p = c(() => Zi([
1689
+ B.PERCENTAGE,
1690
+ B.AMOUNT
1683
1691
  ])), _ = Z({
1684
1692
  initialState: {
1685
1693
  currency: t.invoice.grossAmount.currency,
1686
1694
  precision: t.invoice.grossAmount.precision,
1687
- type: V.PERCENTAGE,
1695
+ type: B.PERCENTAGE,
1688
1696
  value: null
1689
1697
  },
1690
- schema: pt,
1691
- onSubmit: async (C) => {
1692
- const y = await f.execute({
1693
- body: C,
1698
+ schema: gt,
1699
+ onSubmit: async (S) => {
1700
+ const w = await f.execute({
1701
+ body: S,
1694
1702
  params: {
1695
1703
  invoiceUuid: t.invoice.uuid
1696
1704
  }
1697
1705
  });
1698
- if (y.isErr()) {
1699
- m.apiError(y.error);
1706
+ if (w.isErr()) {
1707
+ m.apiError(w.error);
1700
1708
  return;
1701
1709
  }
1702
1710
  l("close");
@@ -1704,20 +1712,20 @@ const pt = w.object({
1704
1712
  onSubmitError: () => {
1705
1713
  m.unableToSave();
1706
1714
  }
1707
- }), g = _.register("value"), b = _.register("type"), E = c(() => b.modelValue.value === V.PERCENTAGE), M = c(() => b.modelValue.value === V.AMOUNT), F = c(() => d.getSymbol(t.invoice.grossAmount.currency));
1708
- function U(C) {
1709
- return a.t(`wise_invoicing.invoice.detail.global_discount.type.${C}`);
1715
+ }), g = _.register("value"), b = _.register("type"), U = c(() => b.modelValue.value === B.PERCENTAGE), T = c(() => b.modelValue.value === B.AMOUNT), F = c(() => d.getSymbol(t.invoice.grossAmount.currency));
1716
+ function C(S) {
1717
+ return a.t(`wise_invoicing.invoice.detail.global_discount.type.${S}`);
1710
1718
  }
1711
- return (C, y) => (r(), v(e(le), {
1719
+ return (S, w) => (r(), v(e(le), {
1712
1720
  form: e(_),
1713
1721
  size: "sm",
1714
- onClose: y[0] || (y[0] = (A) => l("close"))
1722
+ onClose: w[0] || (w[0] = (L) => l("close"))
1715
1723
  }, {
1716
1724
  default: s(() => [
1717
1725
  o(e(ce), {
1718
1726
  title: e(a).t("wise_invoicing.invoice.detail.line_items.global_discount"),
1719
1727
  description: e(a).t("wise_invoicing.invoice.detail.global_discount.description"),
1720
- icon: e(Li),
1728
+ icon: e(Ri),
1721
1729
  "is-description-visible": !0
1722
1730
  }, null, 8, ["title", "description", "icon"]),
1723
1731
  o(e(Ie), null, {
@@ -1729,13 +1737,13 @@ const pt = w.object({
1729
1737
  sm: 1
1730
1738
  }, {
1731
1739
  default: s(() => [
1732
- o(e(Hi), T(e(P)(e(b)), {
1733
- "display-fn": U,
1740
+ o(e(Wi), P(e(M)(e(b)), {
1741
+ "display-fn": C,
1734
1742
  "is-required": !0,
1735
1743
  items: p.value,
1736
1744
  label: e(a).t("wise_invoicing.invoice.detail.global_discount.type.label")
1737
1745
  }), null, 16, ["items", "label"]),
1738
- E.value ? (r(), v(e(fe), T({ key: 0 }, e(P)(e(g)), {
1746
+ U.value ? (r(), v(e(fe), P({ key: 0 }, e(M)(e(g)), {
1739
1747
  hint: e(a).t("wise_invoicing.invoice.detail.global_discount.amount.hint"),
1740
1748
  "is-required": !0,
1741
1749
  label: e(a).t("wise_invoicing.invoice.detail.global_discount.amount.label"),
@@ -1743,22 +1751,22 @@ const pt = w.object({
1743
1751
  min: 0,
1744
1752
  step: 0.01
1745
1753
  }), {
1746
- right: s(() => [...y[1] || (y[1] = [
1747
- B("span", { class: "pr-md text-xs text-secondary" }, " % ", -1)
1754
+ right: s(() => [...w[1] || (w[1] = [
1755
+ N("span", { class: "pr-md text-xs text-secondary" }, " % ", -1)
1748
1756
  ])]),
1749
1757
  _: 1
1750
- }, 16, ["hint", "label"])) : x("", !0),
1751
- M.value ? (r(), v(e(fe), T({ key: 1 }, e(P)(e(g)), {
1758
+ }, 16, ["hint", "label"])) : D("", !0),
1759
+ T.value ? (r(), v(e(fe), P({ key: 1 }, e(M)(e(g)), {
1752
1760
  "is-required": !0,
1753
1761
  label: e(a).t("wise_invoicing.invoice.detail.global_discount.amount.label"),
1754
1762
  min: 0.01,
1755
1763
  step: 0.01
1756
1764
  }), {
1757
1765
  right: s(() => [
1758
- B("span", _t, Pe(F.value.symbol), 1)
1766
+ N("span", yt, Me(F.value.symbol), 1)
1759
1767
  ]),
1760
1768
  _: 1
1761
- }, 16, ["label"])) : x("", !0)
1769
+ }, 16, ["label"])) : D("", !0)
1762
1770
  ]),
1763
1771
  _: 1
1764
1772
  })
@@ -1781,13 +1789,13 @@ const pt = w.object({
1781
1789
  _: 1
1782
1790
  }, 8, ["form"]));
1783
1791
  }
1784
- }), gt = /* @__PURE__ */ I({
1792
+ }), wt = /* @__PURE__ */ x({
1785
1793
  __name: "InvoiceLineItemsTableSection",
1786
1794
  props: {
1787
1795
  invoice: {}
1788
1796
  },
1789
1797
  setup(i) {
1790
- const n = i, t = c(() => n.invoice), l = be(), a = vt(), m = c(() => K.isEditable(n.invoice.status)), d = sn({
1798
+ const n = i, t = c(() => n.invoice), l = be(), a = _t(), m = c(() => G.isEditable(n.invoice.status)), d = rn({
1791
1799
  isSaving: c(() => a.isLoading.value),
1792
1800
  billingDocument: () => t.value,
1793
1801
  canEdit: m,
@@ -1797,34 +1805,34 @@ const pt = w.object({
1797
1805
  invoiceUuid: n.invoice.uuid
1798
1806
  }
1799
1807
  })
1800
- }), p = de().create(ft);
1808
+ }), p = de().create(bt);
1801
1809
  function _() {
1802
1810
  p.open({
1803
1811
  invoice: n.invoice
1804
1812
  });
1805
1813
  }
1806
- return ln(d), (g, b) => (r(), v(Ne, null, {
1814
+ return un(d), (g, b) => (r(), v(Ke, null, {
1807
1815
  default: s(() => [
1808
- o(cn, {
1816
+ o(dn, {
1809
1817
  "show-apply-discount": e(l).isGlobalDiscountEnabled.value,
1810
1818
  onApplyDiscount: _
1811
1819
  }, null, 8, ["show-apply-discount"]),
1812
- o(rn),
1813
- o(un, {
1820
+ o(vn),
1821
+ o(mn, {
1814
1822
  "billing-document": n.invoice
1815
1823
  }, null, 8, ["billing-document"]),
1816
- o(dn)
1824
+ o(pn)
1817
1825
  ]),
1818
1826
  _: 1
1819
1827
  }));
1820
1828
  }
1821
- }), yt = /* @__PURE__ */ I({
1829
+ }), It = /* @__PURE__ */ x({
1822
1830
  __name: "InvoiceDetailView",
1823
1831
  props: {
1824
1832
  invoice: {}
1825
1833
  },
1826
1834
  setup(i) {
1827
- const n = i, t = D(), l = Te(!1), a = c(() => [
1835
+ const n = i, t = h(), l = Pe(!1), a = c(() => [
1828
1836
  {
1829
1837
  label: t.t("wise_invoicing.invoice.overview.title"),
1830
1838
  to: {
@@ -1835,13 +1843,13 @@ const pt = w.object({
1835
1843
  label: n.invoice.sequence ?? n.invoice.subject ?? t.t("wise_invoicing.invoice.detail.fallback_title")
1836
1844
  }
1837
1845
  ]);
1838
- return (m, d) => (r(), v(vn, {
1846
+ return (m, d) => (r(), v(_n, {
1839
1847
  "billing-document": n.invoice,
1840
1848
  breadcrumbs: a.value,
1841
1849
  title: e(t).t("wise_invoicing.invoice.detail.fallback_title")
1842
1850
  }, {
1843
1851
  header: s(() => [
1844
- o(Hn, {
1852
+ o(Zn, {
1845
1853
  invoice: n.invoice,
1846
1854
  "is-pdf-view-active": l.value,
1847
1855
  class: "w-full",
@@ -1849,62 +1857,62 @@ const pt = w.object({
1849
1857
  }, null, 8, ["invoice", "is-pdf-view-active"])
1850
1858
  ]),
1851
1859
  default: s(() => [
1852
- l.value ? (r(), v(mn, {
1860
+ l.value ? (r(), v(fn, {
1853
1861
  key: 0,
1854
1862
  "billing-document": n.invoice,
1855
1863
  class: "w-full"
1856
- }, null, 8, ["billing-document"])) : (r(), N(ae, { key: 1 }, [
1857
- o(gt, {
1864
+ }, null, 8, ["billing-document"])) : (r(), K(ae, { key: 1 }, [
1865
+ o(wt, {
1858
1866
  invoice: n.invoice
1859
1867
  }, null, 8, ["invoice"]),
1860
- e(K).isEditable(n.invoice.status) ? x("", !0) : (r(), v(dt, {
1868
+ e(G).isEditable(n.invoice.status) ? D("", !0) : (r(), v(pt, {
1861
1869
  key: 0,
1862
1870
  invoice: n.invoice,
1863
1871
  class: "w-full"
1864
1872
  }, null, 8, ["invoice"])),
1865
- o(Zn, {
1873
+ o(Jn, {
1866
1874
  invoice: n.invoice,
1867
1875
  class: "w-full"
1868
1876
  }, null, 8, ["invoice"]),
1869
- o(Wn, {
1877
+ o(Yn, {
1870
1878
  invoice: n.invoice,
1871
1879
  class: "w-full"
1872
1880
  }, null, 8, ["invoice"])
1873
1881
  ], 64))
1874
1882
  ]),
1875
1883
  sidebar: s(() => [
1876
- o(it, {
1884
+ o(ot, {
1877
1885
  invoice: n.invoice
1878
1886
  }, null, 8, ["invoice"])
1879
1887
  ]),
1880
1888
  _: 1
1881
1889
  }, 8, ["billing-document", "breadcrumbs", "title"]));
1882
1890
  }
1883
- }), Tt = /* @__PURE__ */ I({
1891
+ }), Lt = /* @__PURE__ */ x({
1884
1892
  __name: "InvoiceDetailViewDataProvider",
1885
1893
  props: {
1886
1894
  invoiceUuid: {}
1887
1895
  },
1888
1896
  setup(i) {
1889
- const n = i, t = D(), l = c(() => [
1897
+ const n = i, t = h(), l = c(() => [
1890
1898
  {
1891
1899
  label: t.t("wise_invoicing.invoice.overview.title"),
1892
1900
  to: {
1893
1901
  name: "invoicing-invoice-overview"
1894
1902
  }
1895
1903
  }
1896
- ]), a = di(c(() => n.invoiceUuid));
1897
- return (m, d) => (r(), v(pn, {
1904
+ ]), a = mi(c(() => n.invoiceUuid));
1905
+ return (m, d) => (r(), v(gn, {
1898
1906
  query: e(a),
1899
1907
  "loading-breadcrumbs": l.value
1900
1908
  }, {
1901
1909
  default: s(({ billingDocument: f }) => [
1902
- o(yt, { invoice: f }, null, 8, ["invoice"])
1910
+ o(It, { invoice: f }, null, 8, ["invoice"])
1903
1911
  ]),
1904
1912
  _: 1
1905
1913
  }, 8, ["query", "loading-breadcrumbs"]));
1906
1914
  }
1907
1915
  });
1908
1916
  export {
1909
- Tt as default
1917
+ Lt as default
1910
1918
  };