@wisemen/wise-invoicing-web 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js → ApprovalReminderSettingsViewDataProvider-zMiQCYJI.js} +1 -1
  2. package/dist/{BillingDocumentDetailViewDataProvider-V5c_cJwt.js → BillingDocumentDetailViewDataProvider-CvIY5PkX.js} +72 -84
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-BYn3lUyl.js → BillingDocumentPdf-unchUddW.js} +68 -62
  5. package/dist/{CreditNoteDetailViewDataProvider-BqLYeBUQ.js → CreditNoteDetailViewDataProvider-sYgZYTGA.js} +3 -3
  6. package/dist/{CreditNotePdfViewDataProvider-Co4R7QJx.js → CreditNotePdfViewDataProvider-CEog3yg4.js} +2 -2
  7. package/dist/{CustomFieldValueText-BP4bKQh7.js → CustomFieldValueText-BLqu_dSP.js} +1 -1
  8. package/dist/{DunningCaseDetailViewDataProvider-BNByfQTc.js → DunningCaseDetailViewDataProvider-RwcDBSoU.js} +2 -2
  9. package/dist/{DunningCaseOverviewView-Dvwaw597.js → DunningCaseOverviewView-DCoHPpsV.js} +2 -2
  10. package/dist/{DunningCaseSendDialog-DwB_jFum.js → DunningCaseSendDialog-ybWpcDSu.js} +1 -1
  11. package/dist/{InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js → InvoiceApprovalOutOfSyncIndicator-Br7dIeVh.js} +1 -1
  12. package/dist/{InvoiceApprovalOverviewView-jawT-M1t.js → InvoiceApprovalOverviewView-CIRgP9Te.js} +2 -2
  13. package/dist/{InvoiceApproveDialogDataProvider-Bwb8bP1e.js → InvoiceApproveDialogDataProvider-Cf1Ar7tH.js} +2 -2
  14. package/dist/{InvoiceDetailViewDataProvider-DSG6VnDh.js → InvoiceDetailViewDataProvider-CStQkka5.js} +9 -9
  15. package/dist/{InvoiceOverviewViewDataProvider-CLgV-Jcv.js → InvoiceOverviewViewDataProvider-C5OBVOfy.js} +649 -612
  16. package/dist/{InvoicePdfView-BIDvRCr4.js → InvoicePdfView-BR3kWz1Z.js} +1 -1
  17. package/dist/{InvoicePdfViewDataProvider-Ct1HBqqa.js → InvoicePdfViewDataProvider--PHFxD5U.js} +3 -3
  18. package/dist/{InvoicePublicPdfViewDataProvider-DS0Q-BEX.js → InvoicePublicPdfViewDataProvider-CP3zlMFC.js} +3 -3
  19. package/dist/{InvoicePublicProFormaPdfViewDataProvider-DqWKGeAm.js → InvoicePublicProFormaPdfViewDataProvider-BJJw0mZv.js} +3 -3
  20. package/dist/{ReminderSettingsViewDataProvider-BZgzQIxM.js → ReminderSettingsViewDataProvider-DYUclTJG.js} +1 -1
  21. package/dist/composables/invoicingConfig.composable.d.ts +2 -0
  22. package/dist/{i18n.lib-MOiHLIGc.js → i18n.lib-CN9MRGQ0.js} +2 -6
  23. package/dist/index.d.ts +2 -6
  24. package/dist/index.js +21 -21
  25. package/dist/{invoice.service-Fv4F4aZq.js → invoice.service-Yw5_HhZ9.js} +221 -227
  26. package/dist/{invoiceCustomer.service-CDyrtcwH.js → invoiceCustomer.service-BWBjCw9i.js} +1 -1
  27. package/dist/{invoiceDetail.query-UHE0NCLh.js → invoiceDetail.query-BTd7SVPv.js} +1 -1
  28. package/dist/{invoiceIndexCache.util-CLM7FO6z.js → invoiceIndexCache.util-DKExdA6g.js} +1 -1
  29. package/dist/{invoicingConfig.composable-UC7tGtBj.js → invoicingConfig.composable-SNsMETxy.js} +14 -13
  30. package/dist/libs/i18n.lib.d.ts +2 -6
  31. package/dist/locales/en-US.json.d.ts +1 -3
  32. package/dist/locales/nl-BE.json.d.ts +1 -3
  33. package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +2 -2
  34. package/dist/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.d.ts +2 -2
  35. package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +2 -2
  36. package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
  37. package/dist/modules/invoice/api/services/invoice.service.d.ts +9 -8
  38. package/dist/modules/invoice/models/invoice/bulk/invoiceBulkTarget.model.d.ts +15 -0
  39. package/dist/modules/invoice/models/invoice/bulk/invoiceBulkTarget.transformer.d.ts +10 -0
  40. package/dist/modules/invoice/models/invoice/bulk/invoiceBulkTarget.transformer.spec.d.ts +1 -0
  41. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.d.ts +7 -1
  42. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +0 -3
  43. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkActionPlan.composable.d.ts +36 -0
  44. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkActionPlan.composable.spec.d.ts +1 -0
  45. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +4 -1
  46. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +1 -1
  47. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +28 -15
  48. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.spec.d.ts +1 -0
  49. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewTableColumns.composable.d.ts +0 -4
  50. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkFinalizeDialog.vue.d.ts +2 -0
  51. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkMarkAsReadyDialog.vue.d.ts +2 -0
  52. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +2 -0
  53. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +2 -0
  54. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +2 -2
  55. package/dist/style.css +1 -1
  56. package/package.json +1 -1
  57. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSelectionCell.vue.d.ts +0 -10
@@ -1,4 +1,4 @@
1
- import { t as e } from "./i18n.lib-MOiHLIGc.js";
1
+ import { t as e } from "./i18n.lib-CN9MRGQ0.js";
2
2
  import "./api.util-CR2xLnNj.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";
@@ -1,9 +1,9 @@
1
1
  import "./api.util-CR2xLnNj.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-SNsMETxy.js";
5
+ import { r as v, t as y } from "./invoice.service-Yw5_HhZ9.js";
6
+ import { r as b, t as x } from "./CustomFieldValueText-BLqu_dSP.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";
@@ -14,7 +14,7 @@ import { t as Qe } from "./dist-BFx8U4Su.js";
14
14
  import { t as $e } from "./invoiceApprovalStatus.util-B98WeAf0.js";
15
15
  import { t as et } from "./InvoiceApprovalStatusBadge-D6Sr6JmN.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";
17
+ import { n as nt, r as rt, t as it } from "./BillingDocumentPdf-unchUddW.js";
18
18
  import { n as at, r as ot, t as st } from "./InvoicingFileUploadProvider-Dl1LvCPm.js";
19
19
  import ct, { z as T } from "zod";
20
20
  import { useI18n as E } from "vue-i18n";
@@ -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);
1542
1539
  }
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),
1540
+ function m(e) {
1541
+ o.value = !1, r.mutations.moveSelectedLinesToGroup(e);
1542
+ }
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
  });
@@ -5916,48 +5920,32 @@ var Oc = { class: "text-sm font-semibold text-primary" }, kc = { class: "w-10 te
5916
5920
  function m() {
5917
5921
  return Array.from(s.value?.querySelectorAll("[data-pdf-page]") ?? []);
5918
5922
  }
5919
- function h(e) {
5920
- let t = m()[e - 1];
5921
- t !== void 0 && t.scrollIntoView({
5922
- behavior: "smooth",
5923
- block: "start"
5924
- });
5923
+ function h() {
5924
+ let e = m();
5925
+ c.value = e.length, o.value = Math.min(Math.max(o.value, 1), Math.max(e.length, 1));
5926
+ for (let [t, n] of e.entries()) n.style.display = t === o.value - 1 ? "" : "none";
5925
5927
  }
5926
- function g() {
5927
- o.value > 1 && h(o.value - 1);
5928
+ function g(e) {
5929
+ o.value = e, h(), s.value?.scrollTo({ top: 0 });
5928
5930
  }
5929
5931
  function v() {
5930
- o.value < c.value && h(o.value + 1);
5932
+ o.value > 1 && g(o.value - 1);
5931
5933
  }
5932
5934
  function y() {
5935
+ o.value < c.value && g(o.value + 1);
5936
+ }
5937
+ function b() {
5933
5938
  let e = r.resolve(Dc(t.billingDocument));
5934
5939
  window.open(e.href, "_blank", "noopener,noreferrer");
5935
5940
  }
5936
- let b = null, x = null;
5937
- function S() {
5938
- if (s.value === null) return;
5939
- b?.disconnect();
5940
- let e = m();
5941
- if (c.value = e.length, e.length !== 0) {
5942
- b = new IntersectionObserver((t) => {
5943
- for (let n of t) if (n.isIntersecting) {
5944
- let t = e.indexOf(n.target);
5945
- t !== -1 && (o.value = t + 1);
5946
- }
5947
- }, {
5948
- root: s.value,
5949
- threshold: .5
5950
- });
5951
- for (let t of e) b.observe(t);
5952
- }
5953
- }
5941
+ let x = null;
5954
5942
  return St(() => {
5955
- S(), s.value !== null && (x = new MutationObserver(S), x.observe(s.value, {
5943
+ h(), s.value !== null && (x = new MutationObserver(h), x.observe(s.value, {
5956
5944
  childList: !0,
5957
5945
  subtree: !0
5958
5946
  }));
5959
5947
  }), Ct(() => {
5960
- b?.disconnect(), x?.disconnect();
5948
+ x?.disconnect();
5961
5949
  }), (e, r) => (I(), k(B(Zt), {
5962
5950
  gap: "none",
5963
5951
  class: "flex-1 overflow-hidden rounded-xl border border-secondary"
@@ -5971,7 +5959,7 @@ var Oc = { class: "text-sm font-semibold text-primary" }, kc = { class: "w-10 te
5971
5959
  icon: B(Ne),
5972
5960
  label: B(n).t("wise_invoicing.common.pdf_viewer.expand"),
5973
5961
  variant: "tertiary",
5974
- onClick: y
5962
+ onClick: b
5975
5963
  }, null, 8, ["icon", "label"])]),
5976
5964
  _: 1
5977
5965
  }),
@@ -5981,7 +5969,7 @@ var Oc = { class: "text-sm font-semibold text-primary" }, kc = { class: "w-10 te
5981
5969
  class: "flex min-h-0 w-full flex-1 flex-col overflow-y-auto bg-tertiary py-lg"
5982
5970
  }, [M("div", {
5983
5971
  style: bt({ zoom: a.value / 100 }),
5984
- class: "p-2xl"
5972
+ class: "p-2xl **:data-pdf-page:mt-0"
5985
5973
  }, [l.value === null ? (I(), k(it, {
5986
5974
  key: 1,
5987
5975
  "billing-document": t.billingDocument
@@ -6000,7 +5988,7 @@ var Oc = { class: "text-sm font-semibold text-primary" }, kc = { class: "w-10 te
6000
5988
  icon: B(Le),
6001
5989
  label: B(n).t("wise_invoicing.common.pdf_viewer.previous_page"),
6002
5990
  variant: "tertiary",
6003
- onClick: g
5991
+ onClick: v
6004
5992
  }, null, 8, [
6005
5993
  "disabled",
6006
5994
  "icon",
@@ -6012,7 +6000,7 @@ var Oc = { class: "text-sm font-semibold text-primary" }, kc = { class: "w-10 te
6012
6000
  label: B(n).t("wise_invoicing.common.pdf_viewer.next_page"),
6013
6001
  size: "sm",
6014
6002
  variant: "tertiary",
6015
- onClick: v
6003
+ onClick: y
6016
6004
  }, null, 8, [
6017
6005
  "disabled",
6018
6006
  "icon",
@@ -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,7 +1,7 @@
1
1
  import "./api.util-CR2xLnNj.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-SNsMETxy.js";
5
5
  import { n as a } from "./address.transformer-jGddczLV.js";
6
6
  import { bt as o } from "./dist-BMzyJZTx.js";
7
7
  import { i as s } from "./billingDocumentDetail.transformer-D1f6Nv-U.js";
@@ -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 };