@wisemen/wise-invoicing-web 0.9.0 → 0.10.1

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 (73) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js → ApprovalReminderSettingsViewDataProvider-BS2YoGgl.js} +3 -3
  2. package/dist/{BillingDocumentDetailViewDataProvider-LDF8-wk8.js → BillingDocumentDetailViewDataProvider-SiA3wKE3.js} +59 -55
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-BYn3lUyl.js → BillingDocumentPdf-TtgJo1fO.js} +70 -64
  5. package/dist/{CreditNoteDetailViewDataProvider-rfc8cExF.js → CreditNoteDetailViewDataProvider-DM1LLE4c.js} +6 -6
  6. package/dist/{CreditNotePdfViewDataProvider-Co4R7QJx.js → CreditNotePdfViewDataProvider-PFBp22fM.js} +3 -3
  7. package/dist/{CustomFieldValueText-BP4bKQh7.js → CustomFieldValueText-WtQNcTYC.js} +2 -2
  8. package/dist/{DunningCaseDetailViewDataProvider-BNByfQTc.js → DunningCaseDetailViewDataProvider-CErdX-pv.js} +4 -4
  9. package/dist/{DunningCaseOverviewView-Dvwaw597.js → DunningCaseOverviewView-WwD9JXjB.js} +3 -3
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-D1avIVyK.js → DunningCaseReminderPdfViewDataProvider-D-CfDeC8.js} +1 -1
  11. package/dist/{DunningCaseSendDialog-DwB_jFum.js → DunningCaseSendDialog-BVO1RRnK.js} +3 -3
  12. package/dist/{InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js → InvoiceApprovalOutOfSyncIndicator-DjdyQOVZ.js} +1 -1
  13. package/dist/{InvoiceApprovalOverviewView-jawT-M1t.js → InvoiceApprovalOverviewView-DIaEGjCD.js} +6 -6
  14. package/dist/{InvoiceApprovalStatusBadge-D6Sr6JmN.js → InvoiceApprovalStatusBadge-C2Wj9b_Z.js} +2 -2
  15. package/dist/{InvoiceApproveDialogDataProvider-Bwb8bP1e.js → InvoiceApproveDialogDataProvider-C2gzD-Qi.js} +6 -6
  16. package/dist/{InvoiceDetailViewDataProvider-BYYhc2v7.js → InvoiceDetailViewDataProvider-Cgr1UV3A.js} +14 -14
  17. package/dist/{InvoiceOverviewViewDataProvider-CLgV-Jcv.js → InvoiceOverviewViewDataProvider-iGeaSZr2.js} +650 -613
  18. package/dist/{InvoicePdfView-BIDvRCr4.js → InvoicePdfView-HE5xfefh.js} +1 -1
  19. package/dist/{InvoicePdfViewDataProvider-Ct1HBqqa.js → InvoicePdfViewDataProvider-D_nfLvjE.js} +3 -3
  20. package/dist/{InvoicePublicPdfViewDataProvider-DS0Q-BEX.js → InvoicePublicPdfViewDataProvider-BfH3d4Yp.js} +3 -3
  21. package/dist/{InvoicePublicProFormaPdfViewDataProvider-DqWKGeAm.js → InvoicePublicProFormaPdfViewDataProvider-DuULDBXH.js} +3 -3
  22. package/dist/{InvoicingFileUploadProvider-Dl1LvCPm.js → InvoicingFileUploadProvider-BsK5eRGE.js} +1 -1
  23. package/dist/{IssuerSettingsViewDataProvider-CXyyCvoZ.js → IssuerSettingsViewDataProvider-Ca7GPCDE.js} +2 -2
  24. package/dist/{PeppolSettingsViewDataProvider-Cptga29B.js → PeppolSettingsViewDataProvider-ZdJQGqux.js} +1 -1
  25. package/dist/{ReminderSettingsViewDataProvider-BZgzQIxM.js → ReminderSettingsViewDataProvider-DKn_gUae.js} +3 -3
  26. package/dist/{api.util-CR2xLnNj.js → api.util-B3JqQVJA.js} +918 -880
  27. package/dist/{billingDocumentDetail.transformer-D1f6Nv-U.js → billingDocumentDetail.transformer-SThiU53H.js} +1 -1
  28. package/dist/client/index.d.ts +2 -2
  29. package/dist/client/sdk.gen.d.ts +32 -1
  30. package/dist/client/types.gen.d.ts +94 -9
  31. package/dist/client/zod.gen.d.ts +317 -9
  32. package/dist/composables/invoicingConfig.composable.d.ts +2 -0
  33. package/dist/{creditNoteDetail.query-DGeG9_sO.js → creditNoteDetail.query-CJFCcuup.js} +2 -2
  34. package/dist/{i18n.lib-MOiHLIGc.js → i18n.lib-CN9MRGQ0.js} +2 -6
  35. package/dist/index.d.ts +2 -6
  36. package/dist/index.js +27 -27
  37. package/dist/{invoice.service-Fv4F4aZq.js → invoice.service-CqfnsDYm.js} +221 -227
  38. package/dist/{invoiceApproval.service-DJvXagC7.js → invoiceApproval.service-DR9g1Dek.js} +2 -2
  39. package/dist/{invoiceApprovalStatus.util-B98WeAf0.js → invoiceApprovalStatus.util-Nd4E3qlZ.js} +1 -1
  40. package/dist/{invoiceCustomer.service-CDyrtcwH.js → invoiceCustomer.service-D55paEPq.js} +2 -2
  41. package/dist/{invoiceDetail.query-UHE0NCLh.js → invoiceDetail.query-CbfNqxKy.js} +1 -1
  42. package/dist/{invoiceIndexCache.util-CLM7FO6z.js → invoiceIndexCache.util-DrAs1VPN.js} +2 -2
  43. package/dist/{invoicingConfig.composable-UC7tGtBj.js → invoicingConfig.composable-DnGwITQJ.js} +15 -14
  44. package/dist/{issuerSettings.query-CoiXblSm.js → issuerSettings.query-BOgWdNmP.js} +1 -1
  45. package/dist/libs/i18n.lib.d.ts +2 -6
  46. package/dist/locales/en-US.json.d.ts +1 -3
  47. package/dist/locales/nl-BE.json.d.ts +1 -3
  48. package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +2 -2
  49. package/dist/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.d.ts +2 -2
  50. package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +2 -2
  51. package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
  52. package/dist/modules/invoice/api/services/invoice.service.d.ts +9 -8
  53. package/dist/modules/invoice/models/invoice/bulk/invoiceBulkTarget.model.d.ts +15 -0
  54. package/dist/modules/invoice/models/invoice/bulk/invoiceBulkTarget.transformer.d.ts +10 -0
  55. package/dist/modules/invoice/models/invoice/bulk/invoiceBulkTarget.transformer.spec.d.ts +1 -0
  56. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.d.ts +7 -1
  57. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +0 -3
  58. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkActionPlan.composable.d.ts +36 -0
  59. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkActionPlan.composable.spec.d.ts +1 -0
  60. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +4 -1
  61. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +1 -1
  62. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +28 -15
  63. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.spec.d.ts +1 -0
  64. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewTableColumns.composable.d.ts +0 -4
  65. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkFinalizeDialog.vue.d.ts +2 -0
  66. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkMarkAsReadyDialog.vue.d.ts +2 -0
  67. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +2 -0
  68. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +2 -0
  69. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +2 -2
  70. package/dist/{reminderConfig.query-aRFzY6uZ.js → reminderConfig.query-BIfCEIYX.js} +1 -1
  71. package/dist/style.css +1 -1
  72. package/package.json +1 -1
  73. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSelectionCell.vue.d.ts +0 -10
@@ -1,9 +1,9 @@
1
- import { t as e } from "./i18n.lib-MOiHLIGc.js";
2
- import "./api.util-CR2xLnNj.js";
1
+ import { t as e } from "./i18n.lib-CN9MRGQ0.js";
2
+ import "./api.util-B3JqQVJA.js";
3
3
  import { s as t, t as n } from "./documentTitle.composable-RvqrZTBa.js";
4
4
  import { t as r } from "./DataProvider-C3uEds9v.js";
5
5
  import { t as i } from "./formango.util-D5c2ql--.js";
6
- import { n as a, t as o } from "./invoiceApproval.service-DJvXagC7.js";
6
+ import { n as a, t as o } from "./invoiceApproval.service-DR9g1Dek.js";
7
7
  import { z as s } from "zod";
8
8
  import { useI18n as c } from "vue-i18n";
9
9
  import { Fragment as l, computed as u, createBlock as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, mergeProps as g, openBlock as _, renderList as v, unref as y, withCtx as b } from "vue";
@@ -1,9 +1,9 @@
1
- import "./api.util-CR2xLnNj.js";
1
+ import "./api.util-B3JqQVJA.js";
2
2
  import { O as e, _ as t, b as n, f as r, g as i, i as a, k as o, l as s, n as c, o as l, r as u, t as d, u as f, x as p } from "./documentTitle.composable-RvqrZTBa.js";
3
3
  import { n as m, r as h, t as g } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { n as _ } from "./invoicingConfig.composable-UC7tGtBj.js";
5
- import { r as v, t as y } from "./invoice.service-Fv4F4aZq.js";
6
- import { r as b, t as x } from "./CustomFieldValueText-BP4bKQh7.js";
4
+ import { n as _ } from "./invoicingConfig.composable-DnGwITQJ.js";
5
+ import { r as v, t as y } from "./invoice.service-CqfnsDYm.js";
6
+ import { r as b, t as x } from "./CustomFieldValueText-WtQNcTYC.js";
7
7
  import { n as S } from "./download.util-LyRpGWKA.js";
8
8
  import { t as ee } from "./percentage.util-Bl78kSSk.js";
9
9
  import { $ as C, B as te, C as ne, D as re, E as ie, J as ae, K as w, L as oe, M as se, O as ce, Q as le, R as ue, S as de, St as fe, Tt as pe, W as me, X as he, Y as ge, Z as _e, _ as ve, _t as ye, at as be, c as xe, ct as Se, et as Ce, f as we, ft as Te, g as Ee, gt as De, h as Oe, ht as ke, it as Ae, k as je, nt as Me, o as Ne, ot as Pe, p as Fe, q as Ie, r as Le, s as Re, t as ze, tt as Be, v as Ve, vt as He, w as Ue, wt as We, x as Ge, xt as Ke, y as qe, z as Je } from "./dist-BMzyJZTx.js";
@@ -11,11 +11,11 @@ import { n as Ye } from "./dist-Cdbpkd3Y.js";
11
11
  import { t as Xe } from "./DataProvider-C3uEds9v.js";
12
12
  import { t as Ze } from "./formango.util-D5c2ql--.js";
13
13
  import { t as Qe } from "./dist-BFx8U4Su.js";
14
- import { t as $e } from "./invoiceApprovalStatus.util-B98WeAf0.js";
15
- import { t as et } from "./InvoiceApprovalStatusBadge-D6Sr6JmN.js";
14
+ import { t as $e } from "./invoiceApprovalStatus.util-Nd4E3qlZ.js";
15
+ import { t as et } from "./InvoiceApprovalStatusBadge-C2Wj9b_Z.js";
16
16
  import { t as tt } from "./dashboard-BaWGNEek.js";
17
- import { n as nt, r as rt, t as it } from "./BillingDocumentPdf-BYn3lUyl.js";
18
- import { n as at, r as ot, t as st } from "./InvoicingFileUploadProvider-Dl1LvCPm.js";
17
+ import { n as nt, r as rt, t as it } from "./BillingDocumentPdf-TtgJo1fO.js";
18
+ import { n as at, r as ot, t as st } from "./InvoicingFileUploadProvider-BsK5eRGE.js";
19
19
  import ct, { z as T } from "zod";
20
20
  import { useI18n as E } from "vue-i18n";
21
21
  import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createStaticVNode as lt, createTextVNode as ut, createVNode as N, defineComponent as P, getCurrentInstance as dt, guardReactiveProps as ft, h as pt, inject as mt, isRef as ht, mergeModels as gt, mergeProps as F, nextTick as _t, normalizeClass as vt, normalizeProps as yt, normalizeStyle as bt, onBeforeUnmount as xt, onMounted as St, onUnmounted as Ct, openBlock as I, provide as wt, reactive as Tt, ref as L, renderList as R, renderSlot as Et, resolveDynamicComponent as Dt, toDisplayString as z, toRefs as Ot, unref as B, useAttrs as kt, useModel as At, useTemplateRef as jt, vShow as Mt, watch as Nt, withCtx as V, withDirectives as Pt, withKeys as Ft, withModifiers as It } from "vue";
@@ -1521,36 +1521,36 @@ var [Mr, Nr] = jr("BillingDocumentLineItemsTable"), Pr = [
1521
1521
  }, zr = { class: "w-40 py-xxs" }, Br = ["onClick"], Vr = { class: "max-h-64 w-44 overflow-y-auto py-xxs" }, Hr = ["onClick"], Ur = { class: "max-h-64 w-64 overflow-y-auto py-xxs" }, Wr = ["onClick"], Gr = /* @__PURE__ */ P({
1522
1522
  __name: "BillingDocumentLineItemsBulkActionBar",
1523
1523
  setup(e) {
1524
- let t = E(), n = Nr(), r = L(!1), i = L(!1), a = L(!1), o = O(() => n.rows.value.filter(W.isGroupRow)), s = O(() => W.canGroupSelectedRows(n.rows.value, new Set(n.selection.selectedIds.value)) ? null : t.t("wise_invoicing.invoice.detail.line_items.max_group_level", { max: 4 }));
1525
- function c(e) {
1526
- return n.structure.value.groups.get(e.id)?.level ?? 1;
1527
- }
1524
+ let t = E(), n = _(), r = Nr(), i = L(!1), a = L(!1), o = L(!1), s = O(() => r.rows.value.filter(W.isGroupRow)), c = O(() => W.canGroupSelectedRows(r.rows.value, new Set(r.selection.selectedIds.value)) ? null : t.t("wise_invoicing.invoice.detail.line_items.max_group_level", { max: 4 }));
1528
1525
  function l(e) {
1529
- return t.t(`wise_invoicing.invoice.detail.line_items.units.${e}`);
1526
+ return r.structure.value.groups.get(e.id)?.level ?? 1;
1530
1527
  }
1531
1528
  function u(e) {
1532
- return e.name === "" ? t.t("wise_invoicing.invoice.detail.line_items.group_label") : e.name;
1529
+ return t.t(`wise_invoicing.invoice.detail.line_items.units.${e}`);
1533
1530
  }
1534
1531
  function d(e) {
1535
- r.value = !1, n.mutations.setVatRateForSelectedLines(e);
1532
+ return e.name === "" ? t.t("wise_invoicing.invoice.detail.line_items.group_label") : e.name;
1536
1533
  }
1537
1534
  function f(e) {
1538
- i.value = !1, n.mutations.setUnitForSelectedLines(e);
1535
+ i.value = !1, r.mutations.setVatRateForSelectedLines(e);
1539
1536
  }
1540
1537
  function p(e) {
1541
- a.value = !1, n.mutations.moveSelectedLinesToGroup(e);
1538
+ a.value = !1, r.mutations.setUnitForSelectedLines(e);
1539
+ }
1540
+ function m(e) {
1541
+ o.value = !1, r.mutations.moveSelectedLinesToGroup(e);
1542
1542
  }
1543
- return (e, m) => B(n).isEditable.value && B(n).selection.selectedCount.value > 0 ? (I(), j("div", Ir, [M("div", Lr, [
1544
- M("span", Rr, z(B(t).t("wise_invoicing.invoice.detail.line_items.items_selected", { count: B(n).selection.selectedCount.value })), 1),
1545
- m[8] ||= M("span", { class: "mx-xxs h-5 w-px bg-secondary" }, null, -1),
1543
+ return (e, h) => B(r).isEditable.value && B(r).selection.selectedCount.value > 0 ? (I(), j("div", Ir, [M("div", Lr, [
1544
+ M("span", Rr, z(B(t).t("wise_invoicing.invoice.detail.line_items.items_selected", { count: B(r).selection.selectedCount.value })), 1),
1545
+ h[8] ||= M("span", { class: "mx-xxs h-5 w-px bg-secondary" }, null, -1),
1546
1546
  N(B(Jt), {
1547
1547
  label: B(t).t("wise_invoicing.invoice.detail.line_items.bulk_group"),
1548
1548
  "icon-left": B(be),
1549
- "is-disabled": s.value !== null,
1550
- "disabled-reason": s.value,
1549
+ "is-disabled": c.value !== null,
1550
+ "disabled-reason": c.value,
1551
1551
  size: "sm",
1552
1552
  variant: "tertiary",
1553
- onClick: m[0] ||= (e) => B(n).mutations.groupSelectedLines()
1553
+ onClick: h[0] ||= (e) => B(r).mutations.groupSelectedLines()
1554
1554
  }, null, 8, [
1555
1555
  "label",
1556
1556
  "icon-left",
@@ -1562,11 +1562,11 @@ var [Mr, Nr] = jr("BillingDocumentLineItemsTable"), Pr = [
1562
1562
  "icon-left": B(ve),
1563
1563
  size: "sm",
1564
1564
  variant: "tertiary",
1565
- onClick: m[1] ||= (e) => B(n).mutations.duplicateSelectedLines()
1565
+ onClick: h[1] ||= (e) => B(r).mutations.duplicateSelectedLines()
1566
1566
  }, null, 8, ["label", "icon-left"]),
1567
1567
  N(B(yn), {
1568
- "is-open": r.value,
1569
- "onUpdate:isOpen": m[2] ||= (e) => r.value = e,
1568
+ "is-open": i.value,
1569
+ "onUpdate:isOpen": h[2] ||= (e) => i.value = e,
1570
1570
  "popover-side-offset": 6,
1571
1571
  "popover-align": "center",
1572
1572
  "popover-side": "top"
@@ -1586,13 +1586,14 @@ var [Mr, Nr] = jr("BillingDocumentLineItemsTable"), Pr = [
1586
1586
  key: e,
1587
1587
  class: "flex w-full items-center px-md py-sm text-left text-sm text-primary transition-colors hover:bg-secondary",
1588
1588
  type: "button",
1589
- onClick: (t) => d(e)
1589
+ onClick: (t) => f(e)
1590
1590
  }, z(Number(e)) + "% ", 9, Br))), 128))])]),
1591
1591
  _: 1
1592
1592
  }, 8, ["is-open"]),
1593
- N(B(yn), {
1594
- "is-open": i.value,
1595
- "onUpdate:isOpen": m[3] ||= (e) => i.value = e,
1593
+ B(n).isUnitVisible.value ? (I(), k(B(yn), {
1594
+ key: 0,
1595
+ "is-open": a.value,
1596
+ "onUpdate:isOpen": h[3] ||= (e) => a.value = e,
1596
1597
  "popover-side-offset": 6,
1597
1598
  "popover-align": "center",
1598
1599
  "popover-side": "top"
@@ -1612,14 +1613,14 @@ var [Mr, Nr] = jr("BillingDocumentLineItemsTable"), Pr = [
1612
1613
  key: e,
1613
1614
  class: "flex w-full items-center px-md py-sm text-left text-sm text-primary transition-colors hover:bg-secondary",
1614
1615
  type: "button",
1615
- onClick: (t) => f(e)
1616
- }, z(l(e)), 9, Hr))), 128))])]),
1616
+ onClick: (t) => p(e)
1617
+ }, z(u(e)), 9, Hr))), 128))])]),
1617
1618
  _: 1
1618
- }, 8, ["is-open"]),
1619
- o.value.length > 0 ? (I(), k(B(yn), {
1620
- key: 0,
1621
- "is-open": a.value,
1622
- "onUpdate:isOpen": m[5] ||= (e) => a.value = e,
1619
+ }, 8, ["is-open"])) : A("", !0),
1620
+ s.value.length > 0 ? (I(), k(B(yn), {
1621
+ key: 1,
1622
+ "is-open": o.value,
1623
+ "onUpdate:isOpen": h[5] ||= (e) => o.value = e,
1623
1624
  "popover-side-offset": 6,
1624
1625
  "popover-align": "center",
1625
1626
  "popover-side": "top"
@@ -1638,30 +1639,30 @@ var [Mr, Nr] = jr("BillingDocumentLineItemsTable"), Pr = [
1638
1639
  content: V(() => [M("div", Ur, [M("button", {
1639
1640
  class: "flex w-full items-center truncate border-b border-secondary px-md py-sm text-left text-sm text-tertiary transition-colors hover:bg-secondary",
1640
1641
  type: "button",
1641
- onClick: m[4] ||= (e) => p(null)
1642
- }, z(B(t).t("wise_invoicing.invoice.detail.line_items.move_to_top_level")), 1), (I(!0), j(D, null, R(o.value, (e) => (I(), j("button", {
1642
+ onClick: h[4] ||= (e) => m(null)
1643
+ }, z(B(t).t("wise_invoicing.invoice.detail.line_items.move_to_top_level")), 1), (I(!0), j(D, null, R(s.value, (e) => (I(), j("button", {
1643
1644
  key: e.id,
1644
- style: bt({ paddingLeft: `calc(var(--spacing-md) + ${c(e) - 1}rem)` }),
1645
- class: vt([c(e) === 1 ? "font-medium" : void 0, "flex w-full items-center truncate py-sm pr-md text-left text-sm text-primary transition-colors hover:bg-secondary"]),
1645
+ style: bt({ paddingLeft: `calc(var(--spacing-md) + ${l(e) - 1}rem)` }),
1646
+ class: vt([l(e) === 1 ? "font-medium" : void 0, "flex w-full items-center truncate py-sm pr-md text-left text-sm text-primary transition-colors hover:bg-secondary"]),
1646
1647
  type: "button",
1647
- onClick: (t) => p(e.id)
1648
- }, z(u(e)), 15, Wr))), 128))])]),
1648
+ onClick: (t) => m(e.id)
1649
+ }, z(d(e)), 15, Wr))), 128))])]),
1649
1650
  _: 1
1650
1651
  }, 8, ["is-open"])) : A("", !0),
1651
- m[9] ||= M("span", { class: "mx-xxs h-5 w-px bg-secondary" }, null, -1),
1652
+ h[9] ||= M("span", { class: "mx-xxs h-5 w-px bg-secondary" }, null, -1),
1652
1653
  N(B(gn), {
1653
1654
  icon: B(se),
1654
1655
  label: B(t).t("wise_invoicing.invoice.detail.line_items.delete_all"),
1655
1656
  size: "sm",
1656
1657
  variant: "destructive-tertiary",
1657
- onClick: m[6] ||= (e) => B(n).mutations.deleteSelectedLines()
1658
+ onClick: h[6] ||= (e) => B(r).mutations.deleteSelectedLines()
1658
1659
  }, null, 8, ["icon", "label"]),
1659
1660
  N(B(gn), {
1660
1661
  icon: B(C),
1661
1662
  label: B(t).t("wise_invoicing.invoice.detail.line_items.bulk_clear"),
1662
1663
  size: "sm",
1663
1664
  variant: "tertiary",
1664
- onClick: m[7] ||= (e) => B(n).selection.clearSelection()
1665
+ onClick: h[7] ||= (e) => B(r).selection.clearSelection()
1665
1666
  }, null, 8, ["icon", "label"])
1666
1667
  ])])) : A("", !0);
1667
1668
  }
@@ -2262,7 +2263,7 @@ var ni = /* @__PURE__ */ P({
2262
2263
  "popover-side": "top"
2263
2264
  }, {
2264
2265
  trigger: V(() => [N(B(_n), {
2265
- value: String(C.value.length),
2266
+ value: String(ee.value),
2266
2267
  "aria-label": w.value,
2267
2268
  class: "shrink-0",
2268
2269
  color: "gray",
@@ -2916,11 +2917,14 @@ var Di = /* @__PURE__ */ P({
2916
2917
  }, Pi = {
2917
2918
  class: "sticky left-(--line-items-item-start) z-10 bg-inherit p-none",
2918
2919
  "data-line-item-drag-preview": ""
2919
- }, Fi = { class: "p-none" }, Ii = { class: "p-none" }, Li = { class: "p-none" }, Ri = { class: "p-none" }, zi = {
2920
+ }, Fi = { class: "p-none" }, Ii = { class: "p-none" }, Li = {
2920
2921
  key: 1,
2921
2922
  class: "p-none"
2922
- }, Bi = { class: "px-lg py-none text-right text-xs text-tertiary tabular-nums" }, Vi = { class: "p-none" }, Hi = { class: "px-lg py-none text-right text-xs text-tertiary tabular-nums" }, Ui = {
2923
+ }, Ri = { class: "p-none" }, zi = {
2923
2924
  key: 2,
2925
+ class: "p-none"
2926
+ }, Bi = { class: "px-lg py-none text-right text-xs text-tertiary tabular-nums" }, Vi = { class: "p-none" }, Hi = { class: "px-lg py-none text-right text-xs text-tertiary tabular-nums" }, Ui = {
2927
+ key: 3,
2924
2928
  class: "sticky right-0 z-10 bg-inherit px-md py-none"
2925
2929
  }, Wi = /*#__PURE__*/ pi(/* @__PURE__ */ P({
2926
2930
  __name: "BillingDocumentLineItemsTableRow",
@@ -3073,7 +3077,7 @@ var Di = /* @__PURE__ */ P({
3073
3077
  "is-disabled",
3074
3078
  "label"
3075
3079
  ])]),
3076
- M("td", Li, [N(Ai, F({
3080
+ B(i).isUnitVisible.value ? (I(), j("td", Li, [N(Ai, F({
3077
3081
  id: w("unit"),
3078
3082
  "is-disabled": !B(o).isEditable.value,
3079
3083
  label: B(n).t("wise_invoicing.invoice.detail.line_items.unit"),
@@ -3083,7 +3087,7 @@ var Di = /* @__PURE__ */ P({
3083
3087
  "is-disabled",
3084
3088
  "label",
3085
3089
  "options"
3086
- ])]),
3090
+ ])])) : A("", !0),
3087
3091
  M("td", Ri, [N(Oi, F({
3088
3092
  id: w("unit-price"),
3089
3093
  "is-disabled": !B(o).isEditable.value,
@@ -3185,7 +3189,7 @@ var Di = /* @__PURE__ */ P({
3185
3189
  })])) : A("", !0)
3186
3190
  ], 8, Mi));
3187
3191
  }
3188
- }), [["__scopeId", "data-v-35ab0cb8"]]), Gi = "input, [role=\"combobox\"]", Ki = "[data-line-item-row][data-line-item-row-type=\"line\"]";
3192
+ }), [["__scopeId", "data-v-41245a21"]]), Gi = "input, [role=\"combobox\"]", Ki = "[data-line-item-row][data-line-item-row-type=\"line\"]";
3189
3193
  function qi(e) {
3190
3194
  return e.key === "Escape" ? { type: "blur" } : e.hasPrimaryModifier && (e.key === "d" || e.key === "D") ? { type: "duplicate" } : e.hasPrimaryModifier && e.key === "]" ? { type: "indent" } : e.hasPrimaryModifier && e.key === "[" ? { type: "outdent" } : e.key === "Enter" ? { type: "addLine" } : e.key === "Backspace" ? e.colIndex === 0 && e.isFieldEmpty && e.atStart ? { type: "deleteEmpty" } : null : e.key === "ArrowUp" ? e.rowIndex > 0 ? {
3191
3195
  colIndex: e.colIndex,
@@ -4857,10 +4861,10 @@ var Ys = { class: "relative" }, Xs = { class: "border-b border-secondary bg-seco
4857
4861
  label: t.t("wise_invoicing.invoice.detail.line_items.qty"),
4858
4862
  widthInRem: s
4859
4863
  },
4860
- {
4864
+ ...r.isUnitVisible.value ? [{
4861
4865
  label: t.t("wise_invoicing.invoice.detail.line_items.unit"),
4862
4866
  widthInRem: 7
4863
- },
4867
+ }] : [],
4864
4868
  {
4865
4869
  align: "right",
4866
4870
  label: t.t("wise_invoicing.invoice.detail.line_items.unit_price"),
@@ -4948,7 +4952,7 @@ var Ys = { class: "relative" }, Xs = { class: "border-b border-secondary bg-seco
4948
4952
  Nt(ee, async () => {
4949
4953
  ae.value += 1, await _t(), C();
4950
4954
  }, { flush: "post" });
4951
- let w = L(/* @__PURE__ */ new Set()), oe = L(null), se;
4955
+ let w = L(new Set(n.structure.value.groups.keys())), oe = L(null), se;
4952
4956
  xt(() => {
4953
4957
  se !== void 0 && clearTimeout(se);
4954
4958
  });
@@ -1 +1 @@
1
- [data-is-number-input=true][data-v-7f300ea2]{appearance:textfield}[data-is-number-input=true][data-v-7f300ea2]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}[data-is-number-input=true][data-v-7f300ea2]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}@media (prefers-reduced-motion:no-preference){[data-line-item-row][data-appearing]>td[data-v-35ab0cb8]{animation:.22s ease-out billing-document-line-item-appear-35ab0cb8}@keyframes billing-document-line-item-appear-35ab0cb8{0%{opacity:0;transform:translateY(-.25rem)}to{opacity:1;transform:none}}}[data-line-item-row].billing-document-line-items-table-row--ghost>td{background-color:var(--bg-secondary)}[data-line-item-row].billing-document-line-items-table-row--ghost>td>*{opacity:.4}[data-line-item-row].billing-document-line-items-table-row--ghost>td[data-line-item-drag-preview]>*{transform:translateX(var(--line-items-drop-shift,0))}[data-line-item-row].billing-document-line-items-table-row--ghost>td[data-line-item-drag-preview]:not(.sticky){position:relative}[data-line-item-row].billing-document-line-items-table-row--ghost>td[data-line-item-drag-preview]:before{content:"";z-index:1;top:-1px;left:var(--line-items-drop-indent,0rem);background-color:var(--border-brand);pointer-events:none;border-radius:1px;width:200vw;height:2px;position:absolute}[data-line-item-row].billing-document-line-items-table-row--fallback{border:1px solid var(--border-secondary);border-radius:var(--radius-lg);background-color:var(--bg-primary);box-shadow:var(--shadow-lg);pointer-events:none;align-items:center;overflow:hidden;width:auto!important;min-width:0!important;max-width:22rem!important;height:2.75rem!important;display:flex!important}[data-line-item-row].billing-document-line-items-table-row--fallback>td{display:none!important}[data-line-item-row].billing-document-line-items-table-row--fallback>td[data-line-item-drag-preview]{background-color:#0000;position:static;width:auto!important;min-width:0!important;max-width:none!important;display:block!important}[data-line-item-row].billing-document-line-items-table-row--fallback>td:has([data-line-item-drag-handle]){background-color:#0000;position:static;width:auto!important;min-width:0!important;max-width:none!important;display:block!important}[data-line-item-row].billing-document-line-items-table-row--fallback>td[data-line-item-drag-preview]{flex:1;min-width:14rem!important}[data-line-item-row].billing-document-line-items-table-row--fallback [data-line-item-tree-indent]{padding-left:0!important}[data-line-item-row].billing-document-line-items-table-row--chosen>td,[data-line-item-row].billing-document-line-items-table-row--drag>td{background-color:var(--bg-primary)}[data-line-item-row].billing-document-line-items-table-row--chosen [data-line-item-drag-handle],[data-line-item-row].billing-document-line-items-table-row--drag [data-line-item-drag-handle],[data-line-item-row].billing-document-line-items-table-row--fallback [data-line-item-drag-handle]{color:var(--text-secondary);cursor:grabbing;opacity:1}
1
+ [data-is-number-input=true][data-v-7f300ea2]{appearance:textfield}[data-is-number-input=true][data-v-7f300ea2]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}[data-is-number-input=true][data-v-7f300ea2]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}@media (prefers-reduced-motion:no-preference){[data-line-item-row][data-appearing]>td[data-v-41245a21]{animation:.22s ease-out billing-document-line-item-appear-41245a21}@keyframes billing-document-line-item-appear-41245a21{0%{opacity:0;transform:translateY(-.25rem)}to{opacity:1;transform:none}}}[data-line-item-row].billing-document-line-items-table-row--ghost>td{background-color:var(--bg-secondary)}[data-line-item-row].billing-document-line-items-table-row--ghost>td>*{opacity:.4}[data-line-item-row].billing-document-line-items-table-row--ghost>td[data-line-item-drag-preview]>*{transform:translateX(var(--line-items-drop-shift,0))}[data-line-item-row].billing-document-line-items-table-row--ghost>td[data-line-item-drag-preview]:not(.sticky){position:relative}[data-line-item-row].billing-document-line-items-table-row--ghost>td[data-line-item-drag-preview]:before{content:"";z-index:1;top:-1px;left:var(--line-items-drop-indent,0rem);background-color:var(--border-brand);pointer-events:none;border-radius:1px;width:200vw;height:2px;position:absolute}[data-line-item-row].billing-document-line-items-table-row--fallback{border:1px solid var(--border-secondary);border-radius:var(--radius-lg);background-color:var(--bg-primary);box-shadow:var(--shadow-lg);pointer-events:none;align-items:center;overflow:hidden;width:auto!important;min-width:0!important;max-width:22rem!important;height:2.75rem!important;display:flex!important}[data-line-item-row].billing-document-line-items-table-row--fallback>td{display:none!important}[data-line-item-row].billing-document-line-items-table-row--fallback>td[data-line-item-drag-preview]{background-color:#0000;position:static;width:auto!important;min-width:0!important;max-width:none!important;display:block!important}[data-line-item-row].billing-document-line-items-table-row--fallback>td:has([data-line-item-drag-handle]){background-color:#0000;position:static;width:auto!important;min-width:0!important;max-width:none!important;display:block!important}[data-line-item-row].billing-document-line-items-table-row--fallback>td[data-line-item-drag-preview]{flex:1;min-width:14rem!important}[data-line-item-row].billing-document-line-items-table-row--fallback [data-line-item-tree-indent]{padding-left:0!important}[data-line-item-row].billing-document-line-items-table-row--chosen>td,[data-line-item-row].billing-document-line-items-table-row--drag>td{background-color:var(--bg-primary)}[data-line-item-row].billing-document-line-items-table-row--chosen [data-line-item-drag-handle],[data-line-item-row].billing-document-line-items-table-row--drag [data-line-item-drag-handle],[data-line-item-row].billing-document-line-items-table-row--fallback [data-line-item-drag-handle]{color:var(--text-secondary);cursor:grabbing;opacity:1}
@@ -1,10 +1,10 @@
1
- import "./api.util-CR2xLnNj.js";
1
+ import "./api.util-B3JqQVJA.js";
2
2
  import { b as e, x as t } from "./documentTitle.composable-RvqrZTBa.js";
3
3
  import { n, t as r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { n as i } from "./invoicingConfig.composable-UC7tGtBj.js";
4
+ import { n as i } from "./invoicingConfig.composable-DnGwITQJ.js";
5
5
  import { n as a } from "./address.transformer-jGddczLV.js";
6
6
  import { bt as o } from "./dist-BMzyJZTx.js";
7
- import { i as s } from "./billingDocumentDetail.transformer-D1f6Nv-U.js";
7
+ import { i as s } from "./billingDocumentDetail.transformer-SThiU53H.js";
8
8
  import { useI18n as c } from "vue-i18n";
9
9
  import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, normalizeClass as v, normalizeStyle as y, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, withCtx as T } from "vue";
10
10
  import { UIColumnLayout as E, UIRowLayout as D, UISeparator as O, UIText as k } from "@wisemen/vue-core-design-system";
@@ -446,113 +446,119 @@ var A = "-", j = 32, ee = 512, te = 640, M = 576, N = 704, P = 52, ne = 34, F =
446
446
  let t = e;
447
447
  return (e, n) => (b(), p("th", H, C(t.label), 1));
448
448
  }
449
- }), W = { class: "mt-2xl w-full" }, G = { class: "w-full table-fixed border-separate border-spacing-0 overflow-hidden rounded-xs border border-secondary" }, K = { class: "table-header-group" }, q = {
449
+ }), W = { class: "mt-2xl w-full" }, G = { class: "w-full table-fixed border-separate border-spacing-0 overflow-hidden rounded-xs border border-secondary" }, K = {
450
+ key: 0,
451
+ class: "w-[8%]"
452
+ }, q = { class: "table-header-group" }, J = {
450
453
  key: 0,
451
454
  class: "break-inside-avoid bg-secondary [page-break-inside:avoid]"
452
- }, J = { class: "font-semibold" }, Y = {
455
+ }, Y = ["colspan"], X = { class: "font-semibold" }, re = {
453
456
  key: 0,
454
457
  class: "ml-xs text-tertiary"
455
- }, X = {
458
+ }, ie = {
456
459
  key: 0,
457
460
  class: "mt-xxs whitespace-pre-line text-tertiary"
458
- }, re = { key: 0 }, ie = {
459
- colspan: "7",
460
- class: "px-lg py-sm text-center text-xxs text-secondary"
461
- }, ae = /* @__PURE__ */ _({
461
+ }, ae = { key: 0 }, oe = ["colspan"], se = /* @__PURE__ */ _({
462
462
  __name: "InvoicePdfLinesTable",
463
463
  props: {
464
464
  isCreditNote: { type: Boolean },
465
465
  rows: {}
466
466
  },
467
467
  setup(e) {
468
- let t = e, n = c(), r = n.locale;
469
- function i(e) {
470
- return R.formatMonetary(e, r.value);
468
+ let t = e, n = c(), r = i(), a = n.locale, o = u(() => r.isUnitVisible.value ? 7 : 6);
469
+ function s(e) {
470
+ return R.formatMonetary(e, a.value);
471
471
  }
472
- function a(e) {
473
- return e === null ? "" : R.formatMonetary(e, r.value);
472
+ function _(e) {
473
+ return e === null ? "" : R.formatMonetary(e, a.value);
474
474
  }
475
- function o(e) {
475
+ function S(e) {
476
476
  let n = t.isCreditNote ? {
477
477
  ...e,
478
478
  amount: -e.amount
479
479
  } : e;
480
- return R.formatMonetary(n, r.value);
480
+ return R.formatMonetary(n, a.value);
481
481
  }
482
- function s(e) {
482
+ function E(e) {
483
483
  return R.formatMonetary(R.getDisplayLineGrossAmount(e.grossAmount, {
484
484
  isCreditNote: t.isCreditNote,
485
485
  isDiscount: e.isDiscount
486
- }), r.value);
486
+ }), a.value);
487
487
  }
488
- function u(e) {
489
- return R.formatNumber(t.isCreditNote ? -e : e, r.value);
488
+ function D(e) {
489
+ return R.formatNumber(t.isCreditNote ? -e : e, a.value);
490
490
  }
491
- function d(e) {
492
- return e.toString(r.value);
491
+ function O(e) {
492
+ return e.toString(a.value);
493
493
  }
494
- function _(e) {
494
+ function k(e) {
495
495
  return { paddingLeft: `calc(var(--spacing-lg) + ${e} * var(--spacing-md))` };
496
496
  }
497
- return (e, r) => (b(), p("div", W, [m("table", G, [
498
- r[0] ||= m("colgroup", null, [
499
- m("col", { class: "w-auto" }),
500
- m("col", { class: "w-[8%]" }),
501
- m("col", { class: "w-[8%]" }),
502
- m("col", { class: "w-[14%]" }),
503
- m("col", { class: "w-[16%]" }),
504
- m("col", { class: "w-[4%]" }),
505
- m("col", { class: "w-[12%]" })
506
- ], -1),
507
- m("thead", K, [m("tr", null, [
497
+ return (e, i) => (b(), p("div", W, [m("table", G, [
498
+ m("colgroup", null, [
499
+ i[0] ||= m("col", { class: "w-auto" }, null, -1),
500
+ w(r).isUnitVisible.value ? (b(), p("col", K)) : f("", !0),
501
+ i[1] ||= m("col", { class: "w-[8%]" }, null, -1),
502
+ i[2] ||= m("col", { class: "w-[14%]" }, null, -1),
503
+ i[3] ||= m("col", { class: "w-[16%]" }, null, -1),
504
+ i[4] ||= m("col", { class: "w-[4%]" }, null, -1),
505
+ i[5] ||= m("col", { class: "w-[12%]" }, null, -1)
506
+ ]),
507
+ m("thead", q, [m("tr", null, [
508
508
  g(U, {
509
509
  label: w(n).t("wise_invoicing.invoice.detail.line_items.item"),
510
510
  class: "text-left!"
511
511
  }, null, 8, ["label"]),
512
- g(U, { label: w(n).t("wise_invoicing.invoice.detail.line_items.unit") }, null, 8, ["label"]),
512
+ w(r).isUnitVisible.value ? (b(), d(U, {
513
+ key: 0,
514
+ label: w(n).t("wise_invoicing.invoice.detail.line_items.unit")
515
+ }, null, 8, ["label"])) : f("", !0),
513
516
  g(U, { label: w(n).t("wise_invoicing.invoice.detail.line_items.qty") }, null, 8, ["label"]),
514
517
  g(U, { label: w(n).t("wise_invoicing.invoice.detail.line_items.unit_price") }, null, 8, ["label"]),
515
518
  g(U, { label: w(n).t("wise_invoicing.invoice.detail.line_items.price_excl_vat") }, null, 8, ["label"]),
516
519
  g(U, { label: w(n).t("wise_invoicing.invoice.detail.line_items.vat") }, null, 8, ["label"]),
517
520
  g(U, { label: w(n).t("wise_invoicing.invoice.detail.line_items.total") }, null, 8, ["label"])
518
521
  ])]),
519
- m("tbody", null, [(b(!0), p(l, null, x(t.rows, (e, t) => (b(), p(l, { key: e.type === "group" ? e.uuid : e.line.uuid }, [e.type === "group" ? (b(), p("tr", q, [m("td", {
520
- style: y(_(e.depth)),
521
- colspan: "6",
522
+ m("tbody", null, [(b(!0), p(l, null, x(t.rows, (e, t) => (b(), p(l, { key: e.type === "group" ? e.uuid : e.line.uuid }, [e.type === "group" ? (b(), p("tr", J, [m("td", {
523
+ style: y(k(e.depth)),
524
+ colspan: o.value - 1,
522
525
  class: "border-y border-secondary py-sm pr-lg align-middle text-xxs wrap-break-word text-primary"
523
- }, [m("span", J, C(e.name), 1), e.description !== null && e.description !== "" ? (b(), p("span", Y, C(e.description), 1)) : f("", !0)], 4), m("td", { class: v([e.depth === 0 ? "font-semibold text-primary" : "\n font-medium text-secondary\n ", "border-y border-secondary px-lg py-sm text-right align-middle text-xxs whitespace-nowrap"]) }, C(a(e.total)), 3)])) : (b(), p("tr", {
526
+ }, [m("span", X, C(e.name), 1), e.description !== null && e.description !== "" ? (b(), p("span", re, C(e.description), 1)) : f("", !0)], 12, Y), m("td", { class: v([e.depth === 0 ? "font-semibold text-primary" : "\n font-medium text-secondary\n ", "border-y border-secondary px-lg py-sm text-right align-middle text-xxs whitespace-nowrap"]) }, C(_(e.total)), 3)])) : (b(), p("tr", {
524
527
  key: 1,
525
528
  class: v([t % 2 == 1 ? "bg-secondary" : "bg-primary", "break-inside-avoid [page-break-inside:avoid]"])
526
529
  }, [
527
530
  m("td", {
528
- style: y(_(e.depth)),
531
+ style: y(k(e.depth)),
529
532
  class: "py-sm pr-lg align-middle text-xxs font-medium wrap-break-word text-primary"
530
- }, [m("div", null, C(e.line.name), 1), e.line.description !== null && e.line.description !== "" ? (b(), p("div", X, C(e.line.description), 1)) : f("", !0)], 4),
531
- g(V, null, {
533
+ }, [m("div", null, C(e.line.name), 1), e.line.description !== null && e.line.description !== "" ? (b(), p("div", ie, C(e.line.description), 1)) : f("", !0)], 4),
534
+ w(r).isUnitVisible.value ? (b(), d(V, { key: 0 }, {
532
535
  default: T(() => [h(C(e.line.unit), 1)]),
533
536
  _: 2
534
- }, 1024),
537
+ }, 1024)) : f("", !0),
535
538
  g(V, null, {
536
- default: T(() => [h(C(u(e.line.quantity)), 1)]),
539
+ default: T(() => [h(C(D(e.line.quantity)), 1)]),
537
540
  _: 2
538
541
  }, 1024),
539
542
  g(V, null, {
540
- default: T(() => [h(C(i(e.line.unitPrice)), 1)]),
543
+ default: T(() => [h(C(s(e.line.unitPrice)), 1)]),
541
544
  _: 2
542
545
  }, 1024),
543
546
  g(V, null, {
544
- default: T(() => [h(C(o(e.line.netAmount)), 1)]),
547
+ default: T(() => [h(C(S(e.line.netAmount)), 1)]),
545
548
  _: 2
546
549
  }, 1024),
547
550
  g(V, null, {
548
- default: T(() => [h(C(d(e.line.vatRatePercentage)), 1)]),
551
+ default: T(() => [h(C(O(e.line.vatRatePercentage)), 1)]),
549
552
  _: 2
550
553
  }, 1024),
551
554
  g(V, { bold: !0 }, {
552
- default: T(() => [h(C(s(e.line)), 1)]),
555
+ default: T(() => [h(C(E(e.line)), 1)]),
553
556
  _: 2
554
557
  }, 1024)
555
- ], 2))], 64))), 128)), t.rows.length === 0 ? (b(), p("tr", re, [m("td", ie, C(w(n).t("wise_invoicing.invoice.detail.line_items.empty")), 1)])) : f("", !0)])
558
+ ], 2))], 64))), 128)), t.rows.length === 0 ? (b(), p("tr", ae, [m("td", {
559
+ colspan: o.value,
560
+ class: "px-lg py-sm text-center text-xxs text-secondary"
561
+ }, C(w(n).t("wise_invoicing.invoice.detail.line_items.empty")), 9, oe)])) : f("", !0)])
556
562
  ])]));
557
563
  }
558
564
  }), Z = class {
@@ -567,10 +573,10 @@ var A = "-", j = 32, ee = 512, te = 640, M = 576, N = 704, P = 52, ne = 34, F =
567
573
  static sortByVatRate(e) {
568
574
  return e.toSorted((e, t) => Number(e.vatRate) - Number(t.vatRate));
569
575
  }
570
- }, oe = { class: "grid grid-cols-[auto_1px_auto] items-end gap-x-2xl align-bottom" }, $ = { class: "grid h-min grid-cols-[auto_auto_auto] gap-x-lg gap-y-sm text-xs" }, se = {
576
+ }, ce = { class: "grid grid-cols-[auto_1px_auto] items-end gap-x-2xl align-bottom" }, le = { class: "grid h-min grid-cols-[auto_auto_auto] gap-x-lg gap-y-sm text-xs" }, $ = {
571
577
  key: 0,
572
578
  class: "mt-4xl text-xs text-primary"
573
- }, ce = /* @__PURE__ */ _({
579
+ }, ue = /* @__PURE__ */ _({
574
580
  __name: "InvoicePdfSummarySection",
575
581
  props: {
576
582
  hasLines: { type: Boolean },
@@ -611,8 +617,8 @@ var A = "-", j = 32, ee = 512, te = 640, M = 576, N = 704, P = 52, ne = 34, F =
611
617
  let t = n.invoice.lines.find((t) => t.vatRate === e);
612
618
  return t === void 0 ? r.t("wise_invoicing.invoice.detail.totals.vat") : t.vatRatePercentage.toString(i.value);
613
619
  }
614
- return (e, t) => (b(), p("div", { class: v([n.hasLines ? "mt-xl" : "mt-4xl", "break-inside-avoid [page-break-inside:avoid]"]) }, [m("div", oe, [
615
- m("div", $, [
620
+ return (e, t) => (b(), p("div", { class: v([n.hasLines ? "mt-xl" : "mt-4xl", "break-inside-avoid [page-break-inside:avoid]"]) }, [m("div", ce, [
621
+ m("div", le, [
616
622
  t[0] ||= m("span", { class: "min-w-12" }, null, -1),
617
623
  g(w(k), {
618
624
  text: w(r).t("wise_invoicing.invoice.detail.totals.excl_vat"),
@@ -734,7 +740,7 @@ var A = "-", j = 32, ee = 512, te = 640, M = 576, N = 704, P = 52, ne = 34, F =
734
740
  ]),
735
741
  _: 1
736
742
  })
737
- ]), n.invoice.externalRemarks ? (b(), p("section", se, [g(w(k), {
743
+ ]), n.invoice.externalRemarks ? (b(), p("section", $, [g(w(k), {
738
744
  text: w(r).t("wise_invoicing.invoice.pdf.summary.remarks"),
739
745
  truncate: !1,
740
746
  as: "h2",
@@ -745,17 +751,17 @@ var A = "-", j = 32, ee = 512, te = 640, M = 576, N = 704, P = 52, ne = 34, F =
745
751
  as: "p"
746
752
  }, null, 8, ["text"])])) : f("", !0)], 2));
747
753
  }
748
- }), le = {
754
+ }), de = {
749
755
  "aria-hidden": "true",
750
756
  class: "pointer-events-none absolute inset-0 flex transform-[rotate(-34deg)] items-center justify-center text-[42mm] leading-none font-bold whitespace-nowrap text-primary uppercase opacity-[0.05] select-none"
751
- }, ue = /* @__PURE__ */ _({
757
+ }, fe = /* @__PURE__ */ _({
752
758
  __name: "InvoicePdfWatermark",
753
759
  props: { label: {} },
754
760
  setup(e) {
755
761
  let t = e, n = c();
756
- return (e, r) => (b(), p("div", le, C(t.label ?? w(n).t("wise_invoicing.invoice.status.draft")), 1));
762
+ return (e, r) => (b(), p("div", de, C(t.label ?? w(n).t("wise_invoicing.invoice.status.draft")), 1));
757
763
  }
758
- }), de = { class: "absolute right-9 bottom-9 text-xs leading-none font-medium text-tertiary" }, fe = /* @__PURE__ */ _({
764
+ }), pe = { class: "absolute right-9 bottom-9 text-xs leading-none font-medium text-tertiary" }, me = /* @__PURE__ */ _({
759
765
  __name: "BillingDocumentPdf",
760
766
  props: {
761
767
  billingDocument: {},
@@ -775,7 +781,7 @@ var A = "-", j = 32, ee = 512, te = 640, M = 576, N = 704, P = 52, ne = 34, F =
775
781
  class: v([t > 0 ? "\n mt-4xl\n print:mt-0\n " : "", "relative mx-auto box-border flex h-[297mm] w-[210mm] break-after-page flex-col overflow-hidden bg-primary px-5xl pt-5xl pb-2xl text-primary shadow-card [-webkit-print-color-adjust:exact] [page-break-after:always] [print-color-adjust:exact] last:break-after-auto last:[page-break-after:auto] print:mx-none print:min-h-auto print:w-auto print:shadow-none"]),
776
782
  "data-pdf-page": ""
777
783
  }, [
778
- i.value ? (b(), d(ue, {
784
+ i.value ? (b(), d(fe, {
779
785
  key: 0,
780
786
  label: r.watermark
781
787
  }, null, 8, ["label"])) : f("", !0),
@@ -783,20 +789,20 @@ var A = "-", j = 32, ee = 512, te = 640, M = 576, N = 704, P = 52, ne = 34, F =
783
789
  invoice: r.billingDocument,
784
790
  "page-type": e.headerType
785
791
  }, null, 8, ["invoice", "page-type"]),
786
- e.rows.length > 0 || r.billingDocument.lines.length === 0 ? (b(), d(ae, {
792
+ e.rows.length > 0 || r.billingDocument.lines.length === 0 ? (b(), d(se, {
787
793
  key: 1,
788
794
  "is-credit-note": a.value,
789
795
  rows: e.rows
790
796
  }, null, 8, ["is-credit-note", "rows"])) : f("", !0),
791
- e.isLastPage ? (b(), d(ce, {
797
+ e.isLastPage ? (b(), d(ue, {
792
798
  key: 2,
793
799
  "has-lines": e.rows.length > 0 || r.billingDocument.lines.length === 0,
794
800
  invoice: r.billingDocument
795
801
  }, null, 8, ["has-lines", "invoice"])) : f("", !0),
796
802
  g(z, { invoice: r.billingDocument }, null, 8, ["invoice"]),
797
- m("span", de, C(t + 1) + "/" + C(s.value.length), 1)
803
+ m("span", pe, C(t + 1) + "/" + C(s.value.length), 1)
798
804
  ], 2))), 128));
799
805
  }
800
806
  });
801
807
  //#endregion
802
- export { Q as n, Z as r, fe as t };
808
+ export { Q as n, Z as r, me as t };
@@ -1,15 +1,15 @@
1
- import { t as e } from "./i18n.lib-MOiHLIGc.js";
2
- import "./api.util-CR2xLnNj.js";
1
+ import { t as e } from "./i18n.lib-CN9MRGQ0.js";
2
+ import "./api.util-B3JqQVJA.js";
3
3
  import { b as t, r as n } from "./documentTitle.composable-RvqrZTBa.js";
4
4
  import { n as r } from "./address.transformer-jGddczLV.js";
5
- import { a as i, i as a, n as o, r as s, t as c } from "./CustomFieldValueText-BP4bKQh7.js";
5
+ import { a as i, i as a, n as o, r as s, t as c } from "./CustomFieldValueText-WtQNcTYC.js";
6
6
  import { n as l, t as u } from "./download.util-LyRpGWKA.js";
7
7
  import { L as d, T as f, Tt as p, U as m, V as h, b as g, dt as _, i as ee, it as v, nt as y, q as b, u as x } from "./dist-BMzyJZTx.js";
8
8
  import { n as S, t as C } from "./dist-Cdbpkd3Y.js";
9
9
  import { t as w } from "./formango.util-D5c2ql--.js";
10
- import { n as T, r as E, t as D } from "./creditNoteDetail.query-DGeG9_sO.js";
11
- import { C as O, S as te, _ as k, a as ne, b as re, c as ie, d as ae, f as oe, g as se, h as ce, i as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e, v as ve, x as ye, y as be } from "./BillingDocumentDetailViewDataProvider-LDF8-wk8.js";
12
- import { r as xe } from "./InvoicingFileUploadProvider-Dl1LvCPm.js";
10
+ import { n as T, r as E, t as D } from "./creditNoteDetail.query-CJFCcuup.js";
11
+ import { C as O, S as te, _ as k, a as ne, b as re, c as ie, d as ae, f as oe, g as se, h as ce, i as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e, v as ve, x as ye, y as be } from "./BillingDocumentDetailViewDataProvider-SiA3wKE3.js";
12
+ import { r as xe } from "./InvoicingFileUploadProvider-BsK5eRGE.js";
13
13
  import Se, { z as A } from "zod";
14
14
  import { useI18n as j } from "vue-i18n";
15
15
  import { Fragment as M, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as I, createElementVNode as Ce, createVNode as L, defineComponent as R, mergeProps as z, normalizeClass as B, openBlock as V, ref as we, renderList as Te, renderSlot as Ee, resolveDynamicComponent as De, unref as H, withCtx as U } from "vue";
@@ -1,7 +1,7 @@
1
- import { n as e } from "./invoicingConfig.composable-UC7tGtBj.js";
1
+ import { n as e } from "./invoicingConfig.composable-DnGwITQJ.js";
2
2
  import { t } from "./DataProvider-C3uEds9v.js";
3
- import { t as n } from "./InvoicePdfView-BIDvRCr4.js";
4
- import { t as r } from "./creditNoteDetail.query-DGeG9_sO.js";
3
+ import { t as n } from "./InvoicePdfView-HE5xfefh.js";
4
+ import { t as r } from "./creditNoteDetail.query-CJFCcuup.js";
5
5
  import { useI18n as i } from "vue-i18n";
6
6
  import { computed as a, createBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, openBlock as u, resolveDynamicComponent as d, unref as f, withCtx as p } from "vue";
7
7
  import { UIText as m } from "@wisemen/vue-core-design-system";
@@ -1,7 +1,7 @@
1
- import { Z as e, t } from "./api.util-CR2xLnNj.js";
1
+ import { Z as e, t } from "./api.util-B3JqQVJA.js";
2
2
  import { b as n, u as r, y as i } from "./documentTitle.composable-RvqrZTBa.js";
3
3
  import { r as a } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { n as o } from "./invoicingConfig.composable-UC7tGtBj.js";
4
+ import { n as o } from "./invoicingConfig.composable-DnGwITQJ.js";
5
5
  import { n as s } from "./dist-Cdbpkd3Y.js";
6
6
  import { useI18n as c } from "vue-i18n";
7
7
  import { computed as l, createBlock as u, createTextVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
@@ -1,11 +1,11 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import "./api.util-CR2xLnNj.js";
2
+ import "./api.util-B3JqQVJA.js";
3
3
  import { E as t, t as n } from "./documentTitle.composable-RvqrZTBa.js";
4
4
  import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
5
- import { n as i } from "./invoicingConfig.composable-UC7tGtBj.js";
6
- import { n as a } from "./reminderConfig.query-aRFzY6uZ.js";
5
+ import { n as i } from "./invoicingConfig.composable-DnGwITQJ.js";
6
+ import { n as a } from "./reminderConfig.query-BIfCEIYX.js";
7
7
  import { N as o, Tt as s, it as ee, lt as c, mt as te, xt as l } from "./dist-BMzyJZTx.js";
8
- import { a as u, i as ne, n as re, o as d, r as ie, t as ae } from "./DunningCaseSendDialog-DwB_jFum.js";
8
+ import { a as u, i as ne, n as re, o as d, r as ie, t as ae } from "./DunningCaseSendDialog-BVO1RRnK.js";
9
9
  import { n as f } from "./customerUuid.model-ClN4Vi9n.js";
10
10
  import { n as oe } from "./dist-Cdbpkd3Y.js";
11
11
  import { t as p } from "./DataProvider-C3uEds9v.js";