@wisemen/wise-invoicing-web 0.15.0 → 0.16.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 (30) hide show
  1. package/dist/{BillingDocumentDetailViewDataProvider-K8QVuCtI.js → BillingDocumentDetailViewDataProvider-CA71dgRN.js} +7 -7
  2. package/dist/{BillingDocumentPdf-BpYV-MB_.js → BillingDocumentPdf-CvUxfHDH.js} +2 -2
  3. package/dist/{CreditNoteDetailViewDataProvider-ByHCzSGZ.js → CreditNoteDetailViewDataProvider-DK7hkA8d.js} +7 -7
  4. package/dist/{CreditNotePdfViewDataProvider-D0hj-_1J.js → CreditNotePdfViewDataProvider-DcQxB1p4.js} +2 -2
  5. package/dist/{DunningCaseSendDialog-DJIAECl_.js → DunningCaseSendDialog-BWbEi9Vr.js} +1 -1
  6. package/dist/{InvoiceApprovalOutOfSyncIndicator-DRLzZatG.js → InvoiceApprovalOutOfSyncIndicator-CptL1bbz.js} +2 -2
  7. package/dist/{InvoiceApprovalOverviewView-C7LBkaHK.js → InvoiceApprovalOverviewView-dsTZWXyZ.js} +6 -6
  8. package/dist/{InvoiceApprovalStatusBadge-XgtBxKPI.js → InvoiceApprovalStatusBadge-6cSp2XOq.js} +2 -2
  9. package/dist/{InvoiceApproveDialogDataProvider-DFd_rXoy.js → InvoiceApproveDialogDataProvider-DsxA74kh.js} +3 -3
  10. package/dist/{InvoiceDeliverySendDialog-BmW2eWtJ.js → InvoiceDeliverySendDialog-byobpQe1.js} +1 -1
  11. package/dist/{InvoiceDetailViewDataProvider-S163bg0K.js → InvoiceDetailViewDataProvider-DgNkoQNH.js} +20 -20
  12. package/dist/{InvoicePdfView-BCgS0GO_.js → InvoicePdfView-CA-nt_Qs.js} +1 -1
  13. package/dist/{InvoicePdfViewDataProvider-DoYpOj5M.js → InvoicePdfViewDataProvider-CVgcgc9t.js} +2 -2
  14. package/dist/{InvoicePublicProFormaPdfViewDataProvider-Cz9Fr8rQ.js → InvoicePublicProFormaPdfViewDataProvider-BIhn-msJ.js} +2 -2
  15. package/dist/{IssuerSettingsViewDataProvider-CuejFv7W.js → IssuerSettingsViewDataProvider-2Gk7FgL2.js} +2 -2
  16. package/dist/{billingDocumentDetail.transformer-BtVYdWrF.js → billingDocumentDetail.transformer-DFlbGUZp.js} +1 -1
  17. package/dist/{creditNoteDetail.query-BDvfVNOc.js → creditNoteDetail.query-D7J1umi4.js} +2 -2
  18. package/dist/{dist-BMzyJZTx.js → dist-B33lNwLw.js} +1 -1
  19. package/dist/{dist-Cdbpkd3Y.js → dist-ByzJNujV.js} +69 -50
  20. package/dist/{dist-BZgvL8_m.js → dist-Ck8ZEByl.js} +3 -3
  21. package/dist/{dist-BFx8U4Su.js → dist-CwkVU5yS.js} +1 -1
  22. package/dist/index.js +176 -184
  23. package/dist/{invoice.service-LSITh7TF.js → invoice.service-NBqJSMkg.js} +2 -2
  24. package/dist/{invoiceCustomer.service-CE3MnTtT.js → invoiceCustomer.service-D13Cwb13.js} +1 -1
  25. package/dist/{invoiceDeliveryStatus.util-DLjHAcja.js → invoiceDeliveryStatus.util-BExQWz3m.js} +1 -1
  26. package/dist/{invoiceDetail.query-uWOmp9yL.js → invoiceDetail.query-CLvnFeZh.js} +1 -1
  27. package/dist/{issuerSettings.query-CPwR1VvA.js → issuerSettings.query-P_gGS0ER.js} +1 -1
  28. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +0 -10
  29. package/dist/style.css +1 -1
  30. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -5,38 +5,38 @@ import { n as S, r as C, t as ee } from "./useCurrencyFormat.composable-MtZaqKnO
5
5
  import { n as w, t as te } from "./invoicingConfig.composable-BebjIIAC.js";
6
6
  import { t as ne } from "./search.composable-CU9OpyUB.js";
7
7
  import { n as re, t as ie } from "./src-Vz2dm4sM.js";
8
- import { o as ae, s as oe, t as T } from "./invoice.service-LSITh7TF.js";
8
+ import { o as ae, s as oe, t as T } from "./invoice.service-NBqJSMkg.js";
9
9
  import { n as se, t as ce } from "./address.transformer-jGddczLV.js";
10
10
  import { t as le } from "./addressForm.model-C853zEtX.js";
11
- import { a as ue, i as de, o as fe, r as pe, s as me, t as he } from "./InvoiceDeliverySendDialog-BmW2eWtJ.js";
11
+ import { a as ue, i as de, o as fe, r as pe, s as me, t as he } from "./InvoiceDeliverySendDialog-byobpQe1.js";
12
12
  import { n as ge, t as _e } from "./download.util-LyRpGWKA.js";
13
13
  import { i as ve, n as ye, r as be, t as E } from "./reminderConfig.query-s-gBYoPo.js";
14
14
  import { n as xe, r as Se, t as Ce } from "./plainDate.transformer-Bhiz9jW7.js";
15
15
  import { n as we, t as Te } from "./percentage.util-Bl78kSSk.js";
16
- import { Ct as Ee, F as De, L as Oe, M as ke, N as Ae, P as je, Q as Me, Tt as Ne, W as Pe, ct as Fe, d as Ie, dt as Le, i as Re, it as ze, l as Be, lt as Ve, mt as He, nt as Ue, rt as We, u as Ge, xt as Ke } from "./dist-BMzyJZTx.js";
17
- import { a as qe, i as Je, n as Ye, o as Xe, r as Ze, s as Qe, t as $e } from "./DunningCaseSendDialog-DJIAECl_.js";
16
+ import { Ct as Ee, F as De, L as Oe, M as ke, N as Ae, P as je, Q as Me, Tt as Ne, W as Pe, ct as Fe, d as Ie, dt as Le, i as Re, it as ze, l as Be, lt as Ve, mt as He, nt as Ue, rt as We, u as Ge, xt as Ke } from "./dist-B33lNwLw.js";
17
+ import { a as qe, i as Je, n as Ye, o as Xe, r as Ze, s as Qe, t as $e } from "./DunningCaseSendDialog-BWbEi9Vr.js";
18
18
  import { n as et, t as tt } from "./customerUuid.model-ClN4Vi9n.js";
19
- import { n as nt, r as rt } from "./dist-Cdbpkd3Y.js";
19
+ import { r as nt, t as rt } from "./dist-ByzJNujV.js";
20
20
  import { t as it } from "./DataProvider-BtnD-BzI.js";
21
- import { a as at, c as ot, d as st, f as ct, i as lt, l as ut, n as dt, o as ft, r as pt, s as mt, t as ht, u as gt } from "./dist-BZgvL8_m.js";
21
+ import { a as at, c as ot, d as st, f as ct, i as lt, l as ut, n as dt, o as ft, r as pt, s as mt, t as ht, u as gt } from "./dist-Ck8ZEByl.js";
22
22
  import { t as _t } from "./formango.util-D5c2ql--.js";
23
23
  import { t as vt } from "./invoiceApprovalStatus.util-CYWPHuJD.js";
24
- import { n as yt, t as bt } from "./InvoiceApprovalOutOfSyncIndicator-DRLzZatG.js";
25
- import { a as xt, i as St, n as Ct, r as wt, t as Tt } from "./invoiceDeliveryStatus.util-DLjHAcja.js";
26
- import { t as Et } from "./InvoiceApprovalStatusBadge-XgtBxKPI.js";
27
- import { t as Dt } from "./issuerSettings.query-CPwR1VvA.js";
24
+ import { n as yt, t as bt } from "./InvoiceApprovalOutOfSyncIndicator-CptL1bbz.js";
25
+ import { a as xt, i as St, n as Ct, r as wt, t as Tt } from "./invoiceDeliveryStatus.util-BExQWz3m.js";
26
+ import { t as Et } from "./InvoiceApprovalStatusBadge-6cSp2XOq.js";
27
+ import { t as Dt } from "./issuerSettings.query-P_gGS0ER.js";
28
28
  import { t as Ot } from "./dashboard-BaWGNEek.js";
29
- import { t as kt } from "./InvoicePdfView-BCgS0GO_.js";
29
+ import { t as kt } from "./InvoicePdfView-CA-nt_Qs.js";
30
30
  import { z as D } from "zod";
31
31
  import { useI18n as O } from "vue-i18n";
32
- import { Fragment as k, computed as A, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createTextVNode as F, createVNode as I, defineComponent as L, isRef as At, mergeModels as jt, mergeProps as Mt, nextTick as Nt, normalizeClass as R, normalizeStyle as Pt, onMounted as Ft, onUnmounted as It, openBlock as z, ref as B, renderList as V, renderSlot as Lt, resolveDynamicComponent as Rt, shallowRef as zt, toDisplayString as H, toValue as Bt, unref as U, useModel as Vt, watch as Ht, withCtx as W, withKeys as Ut, withModifiers as Wt } from "vue";
33
- import { useQueryClient as Gt } from "@tanstack/vue-query";
34
- import { QueryClient as Kt, SortUtil as qt, getTanstackQueryClient as Jt, useMutation as Yt, useOffsetInfiniteQuery as Xt, useQuery as Zt } from "@wisemen/vue-core-api-utils";
35
- import { useLocalStorage as Qt } from "@vueuse/core";
36
- import { RouterLink as $t, useRouter as en } from "vue-router";
32
+ import { Fragment as k, computed as A, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createTextVNode as F, createVNode as I, defineComponent as L, isRef as At, mergeModels as jt, mergeProps as Mt, nextTick as Nt, normalizeClass as R, normalizeStyle as Pt, onMounted as Ft, onUnmounted as It, openBlock as z, ref as B, renderList as V, renderSlot as Lt, resolveDynamicComponent as Rt, toDisplayString as H, toValue as zt, unref as U, useModel as Bt, watch as Vt, withCtx as W, withKeys as Ht, withModifiers as Ut } from "vue";
33
+ import { useQueryClient as Wt } from "@tanstack/vue-query";
34
+ import { QueryClient as Gt, SortUtil as Kt, getTanstackQueryClient as qt, useMutation as Jt, useOffsetInfiniteQuery as Yt, useQuery as Xt } from "@wisemen/vue-core-api-utils";
35
+ import { useLocalStorage as Zt } from "@vueuse/core";
36
+ import { RouterLink as Qt, useRouter as $t } from "vue-router";
37
37
  import { Temporal as G } from "temporal-polyfill";
38
- import { UIAutocomplete as tn, UIBadge as nn, UIButton as K, UIColumnLayout as q, UIDashboardPage as rn, UIDashboardPageActions as an, UIDashboardPageContent as on, UIDashboardPageLoadingState as sn, UIDateRangePicker as cn, UIDetailListGroup as ln, UIDetailListGroupSeparator as un, UIDialog as dn, UIDialogBody as fn, UIDialogFooter as pn, UIDialogFooterCancel as mn, UIDialogFooterPrimary as hn, UIDialogFooterSubmit as gn, UIDialogHeader as _n, UIEmptyState as vn, UIFeaturedIcon as yn, UIForm as bn, UIFormDialog as xn, UILoader as Sn, UINumberField as Cn, UIPopover as wn, UIRowLayout as J, UISelect as Tn, UITable as En, UITableCell as Y, UITableCellInteractiveElement as Dn, UITableCellText as On, UITabs as kn, UITabsItem as An, UITabsList as jn, UIText as X, UITextField as Mn, UITextareaField as Nn, UIThemeProvider as Pn, UITooltip as Fn, UITooltipContent as In, createAutocompleteOptions as Ln, createComponent as Z, createSelectOptions as Rn, defineTableColumns as zn, useOverlay as Bn, useSort as Vn, useTableCustomizeColumns as Hn, useToast as Un } from "@wisemen/vue-core-design-system";
39
- import { createAction as Wn, useViewModels as Gn } from "@wisemen/vue-core-actions";
38
+ import { UIAutocomplete as en, UIBadge as tn, UIButton as K, UIColumnLayout as q, UIDashboardPage as nn, UIDashboardPageActions as rn, UIDashboardPageContent as an, UIDashboardPageLoadingState as on, UIDateRangePicker as sn, UIDetailListGroup as cn, UIDetailListGroupSeparator as ln, UIDialog as un, UIDialogBody as dn, UIDialogFooter as fn, UIDialogFooterCancel as pn, UIDialogFooterPrimary as mn, UIDialogFooterSubmit as hn, UIDialogHeader as gn, UIEmptyState as _n, UIFeaturedIcon as vn, UIForm as yn, UIFormDialog as bn, UILoader as xn, UINumberField as Sn, UIPopover as Cn, UIRowLayout as J, UISelect as wn, UITable as Tn, UITableCell as Y, UITableCellInteractiveElement as En, UITableCellText as Dn, UITabs as On, UITabsItem as kn, UITabsList as An, UIText as X, UITextField as jn, UITextareaField as Mn, UIThemeProvider as Nn, UITooltip as Pn, UITooltipContent as Fn, createAutocompleteOptions as In, createComponent as Z, createSelectOptions as Ln, defineTableColumns as Rn, useOverlay as zn, useSort as Bn, useTableCustomizeColumns as Vn, useToast as Hn } from "@wisemen/vue-core-design-system";
39
+ import { createAction as Un, useActionManagerStore as Wn, useViewModels as Gn } from "@wisemen/vue-core-actions";
40
40
  import { useForm as Kn } from "formango";
41
41
  import { useRouteQuery as qn } from "@vueuse/router";
42
42
  //#region \0rolldown/runtime.js
@@ -180,7 +180,7 @@ function Qn(e) {
180
180
  //#endregion
181
181
  //#region src/composables/invoicingQueryInvalidation.composable.ts
182
182
  function $n() {
183
- let e = new Kt(Gt());
183
+ let e = new Gt(Wt());
184
184
  async function t() {
185
185
  await e.invalidate("invoiceIndex");
186
186
  }
@@ -198,7 +198,7 @@ function tr(e) {
198
198
  dunningCaseUuids: e.params.dunningCaseUuids?.value,
199
199
  level: e.params.level?.value
200
200
  }));
201
- return Xt("dunningCaseIndex", {
201
+ return Yt("dunningCaseIndex", {
202
202
  isEnabled: A(() => e.isEnabled?.value ?? !0),
203
203
  params: { queryParams: t },
204
204
  queryFn: (e) => be.getAll({
@@ -210,7 +210,7 @@ function tr(e) {
210
210
  //#endregion
211
211
  //#region src/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.ts
212
212
  function nr(e) {
213
- return Zt("dunningCaseCustomerByExternalId", {
213
+ return Xt("dunningCaseCustomerByExternalId", {
214
214
  isEnabled: A(() => e.value !== null),
215
215
  params: { externalId: e },
216
216
  queryFn: () => Qe.getUuidByExternalId(e.value ?? "")
@@ -238,7 +238,7 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
238
238
  function c(e) {
239
239
  return e === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: e });
240
240
  }
241
- return (e, t) => s.value === null ? M("", !0) : (z(), N(k, { key: 0 }, [I(U(un)), I(U(ln), {
241
+ return (e, t) => s.value === null ? M("", !0) : (z(), N(k, { key: 0 }, [I(U(ln)), I(U(cn), {
242
242
  "collapse-options": {
243
243
  isCollapsible: !0,
244
244
  isOpenByDefault: !0,
@@ -246,14 +246,14 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
246
246
  },
247
247
  label: U(n).t("module.dunning_case.customer.title")
248
248
  }, {
249
- default: W(() => [I(U($t), {
249
+ default: W(() => [I(U(Qt), {
250
250
  to: {
251
251
  name: "dunning-case-detail",
252
252
  params: { dunningCaseUuid: s.value.uuid }
253
253
  },
254
254
  class: "flex w-full items-center gap-md rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
255
255
  }, {
256
- default: W(() => [I(U(yn), {
256
+ default: W(() => [I(U(vn), {
257
257
  icon: U(De),
258
258
  color: "brand",
259
259
  size: "md",
@@ -314,7 +314,7 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
314
314
  __name: "DunningCaseDetailView",
315
315
  props: { dunningCase: {} },
316
316
  setup(e) {
317
- let t = e, n = O(), r = Bn(), i = Un(), a = C(), o = nt(), s = v(), c = w(), l = en(), u = Ze(), d = B("overdue");
317
+ let t = e, n = O(), r = zn(), i = Hn(), a = C(), o = nt(), s = v(), c = w(), l = $t(), u = Ze(), d = B("overdue");
318
318
  function f(e) {
319
319
  return e.payments.length > 0 || e.creditNotes.length > 0;
320
320
  }
@@ -443,11 +443,11 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
443
443
  function _e(e) {
444
444
  p.value = p.value === e ? null : e;
445
445
  }
446
- return (e, r) => (z(), j(U(rn), {
446
+ return (e, r) => (z(), j(U(nn), {
447
447
  breadcrumbs: ae.value,
448
448
  title: t.dunningCase.customer.name
449
449
  }, {
450
- default: W(() => [I(U(on), null, {
450
+ default: W(() => [I(U(an), null, {
451
451
  default: W(() => [P("div", lr, [
452
452
  P("div", ur, [P("div", null, [
453
453
  P("div", dr, [
@@ -510,7 +510,7 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
510
510
  style: Pt({ width: `${re(e.amount)}%` })
511
511
  }, null, 6))), 128))])
512
512
  ]),
513
- P("div", wr, [(z(!0), N(k, null, V(ne.value, (e) => (z(), j(U(Fn), {
513
+ P("div", wr, [(z(!0), N(k, null, V(ne.value, (e) => (z(), j(U(Pn), {
514
514
  key: e.level,
515
515
  "popover-side-offset": 8,
516
516
  "popover-align": "start",
@@ -526,7 +526,7 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
526
526
  "bg-error-solid": e.level === 3,
527
527
  "bg-warning-solid": e.level === 2
528
528
  }, "size-(--spacing-sm) shrink-0 rounded-full"]) }, null, 2), P("span", Dr, H(T(e.level)), 1)]), P("span", Or, H(U(a).formatMonetary(e.amount)), 1)], 8, Tr)]),
529
- content: W(() => [I(U(In), { class: "max-w-80! text-sm!" }, {
529
+ content: W(() => [I(U(Fn), { class: "max-w-80! text-sm!" }, {
530
530
  default: W(() => [F(H(se(e.level, e.amount)), 1)]),
531
531
  _: 2
532
532
  }, 1024)]),
@@ -540,17 +540,17 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
540
540
  ])])
541
541
  ]),
542
542
  P("div", zr, [P("main", Br, [P("div", Vr, [
543
- P("div", Hr, [I(U(kn), {
543
+ P("div", Hr, [I(U(On), {
544
544
  modelValue: d.value,
545
545
  "onUpdate:modelValue": r[0] ||= (e) => d.value = e,
546
546
  "aria-label": U(n).t("module.dunning_case.detail.invoice_tabs"),
547
547
  variant: "underline"
548
548
  }, {
549
- default: W(() => [I(U(jn), null, {
550
- default: W(() => [I(U(An), {
549
+ default: W(() => [I(U(An), null, {
550
+ default: W(() => [I(U(kn), {
551
551
  label: U(n).t("module.dunning_case.detail.overdue_invoices"),
552
552
  value: "overdue"
553
- }, null, 8, ["label"]), I(U(An), {
553
+ }, null, 8, ["label"]), I(U(kn), {
554
554
  label: U(n).t("module.dunning_case.detail.outstanding_invoices"),
555
555
  value: "outstanding"
556
556
  }, null, 8, ["label"])]),
@@ -575,7 +575,7 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
575
575
  class: "mt-xxs flex size-(--spacing-xl) shrink-0 items-center justify-center text-secondary hover:text-primary",
576
576
  type: "button",
577
577
  onClick: (t) => _e(e.uuid)
578
- }, [I(U(ze), { class: R([{ "rotate-180": p.value === e.uuid }, "size-(--spacing-xl) transition-transform duration-200 ease-out motion-reduce:transition-none"]) }, null, 8, ["class"])], 8, Qr)) : (z(), N("span", $r)), P("div", ei, [I(U($t), {
578
+ }, [I(U(ze), { class: R([{ "rotate-180": p.value === e.uuid }, "size-(--spacing-xl) transition-transform duration-200 ease-out motion-reduce:transition-none"]) }, null, 8, ["class"])], 8, Qr)) : (z(), N("span", $r)), P("div", ei, [I(U(Qt), {
579
579
  to: {
580
580
  name: "invoicing-invoice-detail",
581
581
  params: { invoiceUuid: e.uuid }
@@ -586,7 +586,7 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
586
586
  _: 2
587
587
  }, 1032, ["to"]), e.subject === null ? M("", !0) : (z(), N("p", ti, H(e.subject), 1))])])], 2),
588
588
  P("td", ni, [P("span", { class: R([e.isDisputed ? "text-secondary" : de(e) > 0 ? "text-error-primary" : "text-primary", "inline-flex items-center gap-xs whitespace-nowrap"]) }, [F(H(U(o).formatPlainDate(e.dueOn)) + " ", 1), P("span", { class: R([!e.isDisputed && de(e) > 0 ? "\n border-error bg-error-primary\n text-error-primary\n " : "border-secondary bg-secondary text-secondary", "rounded-sm border px-sm py-px font-sans text-xs"]) }, H(fe(e)), 3)], 2)]),
589
- P("td", ri, [e.isDisputed ? (z(), j(U(nn), {
589
+ P("td", ri, [e.isDisputed ? (z(), j(U(tn), {
590
590
  key: 0,
591
591
  label: U(n).t("module.dunning_case.detail.protested"),
592
592
  color: "error",
@@ -596,13 +596,13 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
596
596
  level: e.level,
597
597
  size: "sm"
598
598
  }, null, 8, ["level"]), F(" " + H(e.level === 0 ? "–" : e.level), 1)])) : M("", !0)]),
599
- P("td", ai, [P("div", oi, [e.isDisputed ? (z(), N("p", si, H(U(n).t("module.dunning_case.detail.excluded")), 1)) : d.value === "outstanding" ? (z(), j(U(nn), {
599
+ P("td", ai, [P("div", oi, [e.isDisputed ? (z(), N("p", si, H(U(n).t("module.dunning_case.detail.excluded")), 1)) : d.value === "outstanding" ? (z(), j(U(tn), {
600
600
  key: 1,
601
601
  label: U(n).t("module.dunning_case.detail.not_yet_due"),
602
602
  color: "gray",
603
603
  size: "sm",
604
604
  variant: "translucent"
605
- }, null, 8, ["label"])) : (z(), j(U(nn), {
605
+ }, null, 8, ["label"])) : (z(), j(U(tn), {
606
606
  key: 2,
607
607
  label: U(n).t(`module.dunning_case.settlement_status.${e.settlementStatus}`),
608
608
  color: me(e.settlementStatus),
@@ -677,7 +677,7 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
677
677
  }]);
678
678
  return (e, t) => (z(), j(it, { queries: { dunningCase: U(r) } }, {
679
679
  default: W(({ data: e }) => [I(Ai, { "dunning-case": e.dunningCase }, null, 8, ["dunning-case"])]),
680
- loading: W(() => [I(U(sn), { breadcrumbs: i.value }, null, 8, ["breadcrumbs"])]),
680
+ loading: W(() => [I(U(on), { breadcrumbs: i.value }, null, 8, ["breadcrumbs"])]),
681
681
  _: 1
682
682
  }, 8, ["queries"]));
683
683
  }
@@ -685,8 +685,8 @@ var rr = { class: "min-w-0 flex-1" }, ir = { class: "flex min-w-0 flex-wrap item
685
685
  //#endregion
686
686
  //#region src/modules/dunning-case/actions/dunningCaseNavigateToCustomer.action.ts
687
687
  function Pi() {
688
- let e = O(), t = en(), n = w();
689
- return Wn({
688
+ let e = O(), t = $t(), n = w();
689
+ return Un({
690
690
  id: "dunning-case-navigate-to-customer",
691
691
  isApplicable: (e) => {
692
692
  let t = e.targetedModelOfType("DunningCase");
@@ -703,8 +703,8 @@ function Pi() {
703
703
  //#endregion
704
704
  //#region src/modules/dunning-case/actions/dunningCaseNavigateToDetail.action.ts
705
705
  function Fi() {
706
- let e = O(), t = en();
707
- return Wn({
706
+ let e = O(), t = $t();
707
+ return Un({
708
708
  id: "dunning-case-navigate-to-detail",
709
709
  isApplicable: (e) => e.hasTargetedModelsOfType("DunningCase"),
710
710
  name: () => e.t("module.dunning_case.overview.menu.view_case"),
@@ -834,7 +834,7 @@ function Yi(e) {
834
834
  //#region src/modules/dunning-case/api/queries/dunningCaseCustomerIndex.query.ts
835
835
  function Xi(e) {
836
836
  let t = A(() => ({ search: e.params.search?.value }));
837
- return Xt("dunningCaseCustomerIndex", {
837
+ return Yt("dunningCaseCustomerIndex", {
838
838
  params: { queryParams: t },
839
839
  queryFn: (e) => Qe.getAll(t.value.search, e)
840
840
  });
@@ -856,7 +856,7 @@ function Zi() {
856
856
  options: async (e) => i.values.value.customerUuids.value.length > 0 ? [] : (t.updateSearch(e), await Nt(), r.value.map((e) => e.uuid))
857
857
  })]
858
858
  });
859
- return Ht(() => i.values.value.customerUuids, (e) => {
859
+ return Vt(() => i.values.value.customerUuids, (e) => {
860
860
  (e.operator !== pt.INCLUDES || e.value.length > 1) && (i.values.value.customerUuids = {
861
861
  operator: pt.INCLUDES,
862
862
  value: e.value.slice(-1)
@@ -882,7 +882,7 @@ var Qi = { class: "flex w-full items-center justify-end gap-xs" }, $i = /* @__PU
882
882
  setup(e, { emit: t }) {
883
883
  let n = e, r = t, i = O(), a = w(), o = A(() => a.getCustomerDetailRoute(n.item.customer.uuid)), s = A(() => n.item.blockedReason !== null), c = A(() => qe(n.item.latestCreatedReminder)), l = A(() => n.item.canRetryReminder ? i.t("module.dunning_case.overview.retry") : s.value ? i.t("module.dunning_case.overview.blocked") : n.item.nextReminderOn === null ? i.t("module.dunning_case.overview.not_scheduled") : i.t("module.dunning_case.overview.send"));
884
884
  return (t, n) => (z(), j(U(Y), null, {
885
- default: W(() => [I(U(Dn), { class: "w-full" }, {
885
+ default: W(() => [I(U(En), { class: "w-full" }, {
886
886
  default: W(() => [P("div", Qi, [s.value && o.value !== null ? (z(), j(U(K), {
887
887
  key: 0,
888
888
  "icon-right": U(je),
@@ -997,7 +997,7 @@ var Qi = { class: "flex w-full items-center justify-end gap-xs" }, $i = /* @__PU
997
997
  return G.PlainDate.compare(e, G.Now.plainDateISO()) <= 0;
998
998
  }
999
999
  return (t, n) => (z(), j(U(Y), null, {
1000
- default: W(() => [P("div", ua, [e.item.nextReminderOn === null ? M("", !0) : (z(), j(U(nn), {
1000
+ default: W(() => [P("div", ua, [e.item.nextReminderOn === null ? M("", !0) : (z(), j(U(tn), {
1001
1001
  key: 0,
1002
1002
  color: a(e.item.nextReminderOn) ? "success" : "warning",
1003
1003
  label: i(e.item.nextReminderOn),
@@ -1015,7 +1015,7 @@ var Qi = { class: "flex w-full items-center justify-end gap-xs" }, $i = /* @__PU
1015
1015
  //#region src/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.ts
1016
1016
  function fa(e) {
1017
1017
  let t = O();
1018
- return A(() => zn()([
1018
+ return A(() => Rn()([
1019
1019
  {
1020
1020
  headerLabel: t.t("module.dunning_case.overview.table.customer"),
1021
1021
  key: "customer",
@@ -1089,7 +1089,7 @@ function fa(e) {
1089
1089
  //#endregion
1090
1090
  //#region src/modules/dunning-case/api/mutations/dunningCaseBulkSend.mutation.ts
1091
1091
  function pa() {
1092
- return Yt({
1092
+ return Jt({
1093
1093
  queryFn: (e) => be.sendBulk(e.params.queryParams),
1094
1094
  queryKeysToInvalidate: {
1095
1095
  dunningCaseDetail: {},
@@ -1182,7 +1182,7 @@ var ma = /* @__PURE__ */ L({
1182
1182
  function o(e) {
1183
1183
  return Object.hasOwn(a, e);
1184
1184
  }
1185
- let s = O(), c = Un(), l = pa(), u = B(null), d = B(!0), f = A(() => u.value?.meta.processed ?? 0);
1185
+ let s = O(), c = Hn(), l = pa(), u = B(null), d = B(!0), f = A(() => u.value?.meta.processed ?? 0);
1186
1186
  function p(e) {
1187
1187
  let t = e.errors.at(0)?.errors.at(0)?.code;
1188
1188
  return t !== void 0 && o(t) ? s.t(a[t]) : s.t("module.dunning_case.bulk_send.skip_reason.unknown");
@@ -1228,13 +1228,13 @@ var ma = /* @__PURE__ */ L({
1228
1228
  }
1229
1229
  return Ft(() => {
1230
1230
  g();
1231
- }), (e, t) => (z(), j(U(xn), {
1231
+ }), (e, t) => (z(), j(U(bn), {
1232
1232
  form: U(h),
1233
1233
  size: "md",
1234
1234
  onClose: t[0] ||= (e) => r("close")
1235
1235
  }, {
1236
1236
  default: W(() => [
1237
- I(U(_n), {
1237
+ I(U(gn), {
1238
1238
  title: d.value ? U(s).t("module.dunning_case.bulk_send.title") : U(s).t("module.dunning_case.bulk_send.confirm_question", { count: f.value }),
1239
1239
  description: U(s).t("module.dunning_case.bulk_send.description"),
1240
1240
  "has-separator": !1,
@@ -1244,7 +1244,7 @@ var ma = /* @__PURE__ */ L({
1244
1244
  "description",
1245
1245
  "icon"
1246
1246
  ]),
1247
- I(U(fn), null, {
1247
+ I(U(dn), null, {
1248
1248
  default: W(() => [u.value === null ? (z(), N("p", ba, H(U(s).t("module.dunning_case.bulk_send.loading")), 1)) : (z(), j(ya, {
1249
1249
  key: 1,
1250
1250
  "processable-count": u.value.meta.processed,
@@ -1257,8 +1257,8 @@ var ma = /* @__PURE__ */ L({
1257
1257
  ]))]),
1258
1258
  _: 1
1259
1259
  }),
1260
- I(U(pn), { "has-separator": !1 }, {
1261
- right: W(() => [I(U(mn)), I(U(hn), {
1260
+ I(U(fn), { "has-separator": !1 }, {
1261
+ right: W(() => [I(U(pn)), I(U(mn), {
1262
1262
  "icon-right": U(Ne),
1263
1263
  "is-disabled": d.value || f.value === 0,
1264
1264
  "is-loading": U(h).isSubmitting.value,
@@ -1286,7 +1286,7 @@ var ma = /* @__PURE__ */ L({
1286
1286
  }, Ma = { class: "relative flex min-h-0 flex-1 flex-col" }, Na = /*@__PURE__*/ L({
1287
1287
  __name: "DunningCaseOverviewView",
1288
1288
  setup(e) {
1289
- let t = O(), n = Bn(), r = Un(), i = en(), a = v(), o = w(), s = Ze(), c = B("all"), l = A(() => [
1289
+ let t = O(), n = zn(), r = Hn(), i = $t(), a = v(), o = w(), s = Ze(), c = B("all"), l = A(() => [
1290
1290
  {
1291
1291
  icon: Me,
1292
1292
  key: "all",
@@ -1344,7 +1344,7 @@ var ma = /* @__PURE__ */ L({
1344
1344
  onSend: te,
1345
1345
  onViewCustomer: ie
1346
1346
  });
1347
- return (e, n) => (z(), j(U(rn), {
1347
+ return (e, n) => (z(), j(U(nn), {
1348
1348
  title: U(t).t("module.dunning_case.title"),
1349
1349
  "is-title-hidden": !0
1350
1350
  }, {
@@ -1369,14 +1369,14 @@ var ma = /* @__PURE__ */ L({
1369
1369
  "level-count-total"
1370
1370
  ])])) : M("", !0),
1371
1371
  P("div", Oa, [
1372
- P("div", ka, [I(U(kn), {
1372
+ P("div", ka, [I(U(On), {
1373
1373
  modelValue: c.value,
1374
1374
  "onUpdate:modelValue": n[1] ||= (e) => c.value = e,
1375
1375
  "aria-label": U(t).t("module.dunning_case.overview.filter_label"),
1376
1376
  variant: "button-border"
1377
1377
  }, {
1378
- default: W(() => [I(U(jn), null, {
1379
- default: W(() => [(z(!0), N(k, null, V(l.value, (e) => (z(), j(U(An), {
1378
+ default: W(() => [I(U(An), null, {
1379
+ default: W(() => [(z(!0), N(k, null, V(l.value, (e) => (z(), j(U(kn), {
1380
1380
  key: e.key,
1381
1381
  config: { left: {
1382
1382
  icon: e.icon,
@@ -1399,7 +1399,7 @@ var ma = /* @__PURE__ */ L({
1399
1399
  onClick: re
1400
1400
  }, null, 8, ["icon-right", "label"])]),
1401
1401
  P("div", Aa, [ee.value === 0 ? (z(), N("p", ja, H(U(t).t("module.dunning_case.overview.no_active_filters")), 1)) : (z(), j(U(ft), { key: 1 })), I(U(mt))]),
1402
- P("div", Ma, [I(U(En), {
1402
+ P("div", Ma, [I(U(Tn), {
1403
1403
  "active-filter-count": ee.value,
1404
1404
  columns: U(se),
1405
1405
  data: U(_),
@@ -1500,7 +1500,7 @@ var ma = /* @__PURE__ */ L({
1500
1500
  //#endregion
1501
1501
  //#region src/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.ts
1502
1502
  function Ra(e) {
1503
- return Zt("dunningCaseReminderPdf", {
1503
+ return Xt("dunningCaseReminderPdf", {
1504
1504
  isEnabled: A(() => e.value !== null),
1505
1505
  params: { token: e },
1506
1506
  queryFn: () => {
@@ -1892,12 +1892,12 @@ var za = /* @__PURE__ */ L({
1892
1892
  title: t.t("module.dunning_case.pdf.load_error_title"),
1893
1893
  description: t.t("module.dunning_case.pdf.load_error_description")
1894
1894
  } : null);
1895
- return (e, n) => (z(), j(U(Pn), { appearance: "light" }, {
1895
+ return (e, n) => (z(), j(U(Nn), { appearance: "light" }, {
1896
1896
  default: W(() => [i.value === null ? (z(), N("main", {
1897
1897
  key: 1,
1898
1898
  "data-pdf-error": a.value !== null || void 0,
1899
1899
  class: "flex min-h-screen items-center justify-center bg-secondary p-xl text-primary"
1900
- }, [a.value === null ? (z(), N("p", co, H(U(t).t("module.dunning_case.common.loading")), 1)) : (z(), j(U(vn), {
1900
+ }, [a.value === null ? (z(), N("p", co, H(U(t).t("module.dunning_case.common.loading")), 1)) : (z(), j(U(_n), {
1901
1901
  key: 0,
1902
1902
  description: a.value.description,
1903
1903
  title: a.value.title
@@ -1912,7 +1912,7 @@ var za = /* @__PURE__ */ L({
1912
1912
  //#endregion
1913
1913
  //#region src/modules/dunning-case/api/mutations/reminderConfigUpdate.mutation.ts
1914
1914
  function po() {
1915
- return Yt({
1915
+ return Jt({
1916
1916
  queryFn: (e) => be.updateReminderConfigs(e.body),
1917
1917
  queryKeysToInvalidate: { reminderConfig: {} }
1918
1918
  });
@@ -1999,7 +1999,7 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
1999
1999
  "updateSchedule"
2000
2000
  ],
2001
2001
  setup(e, { emit: t }) {
2002
- let n = e, r = t, i = O(), a = A(() => !n.canUpdate || n.level === 1), s = A(() => n.feeTypeField.modelValue.value ?? m.AMOUNT), c = A(() => Rn([m.AMOUNT, m.PERCENTAGE])), l = {
2002
+ let n = e, r = t, i = O(), a = A(() => !n.canUpdate || n.level === 1), s = A(() => n.feeTypeField.modelValue.value ?? m.AMOUNT), c = A(() => Ln([m.AMOUNT, m.PERCENTAGE])), l = {
2003
2003
  maximumFractionDigits: 2,
2004
2004
  minimumFractionDigits: 0
2005
2005
  }, u = { maximumFractionDigits: 2 }, d = A(() => n.feeCurrency === void 0 ? "" : new Intl.NumberFormat(i.locale.value, {
@@ -2017,7 +2017,7 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2017
2017
  level: n.level,
2018
2018
  size: "md"
2019
2019
  }, null, 8, ["level"])]),
2020
- P("div", ko, [P("span", Ao, H(U(i).t("module.dunning_case.settings.ladder.trigger")), 1), I(U(Tn), Mt(U(_t)(n.scheduleField), {
2020
+ P("div", ko, [P("span", Ao, H(U(i).t("module.dunning_case.settings.ladder.trigger")), 1), I(U(wn), Mt(U(_t)(n.scheduleField), {
2021
2021
  "aria-label": U(i).t("module.dunning_case.settings.ladder.trigger"),
2022
2022
  "display-fn": f,
2023
2023
  "is-disabled": a.value,
@@ -2034,7 +2034,7 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2034
2034
  onFocusoutCapture: t[2] ||= (e) => r("commitOffset"),
2035
2035
  onInputCapture: t[3] ||= (e) => r("typeOffset", !0),
2036
2036
  onInput: t[4] ||= (e) => r("typeOffset", !1)
2037
- }, [I(U(Cn), Mt(U(_t)(n.offsetField), {
2037
+ }, [I(U(Sn), Mt(U(_t)(n.offsetField), {
2038
2038
  "aria-label": U(i).t("module.dunning_case.settings.ladder.offset"),
2039
2039
  "is-disabled": !n.canUpdate,
2040
2040
  label: null,
@@ -2045,7 +2045,7 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2045
2045
  size: "sm",
2046
2046
  "onUpdate:modelValue": t[1] ||= (e) => r("updateOffset", e)
2047
2047
  }), null, 16, ["aria-label", "is-disabled"]), P("span", No, H(U(i).t("module.dunning_case.settings.ladder.day_hint", { day: n.absoluteDay })), 1)], 32)]),
2048
- P("div", Po, [P("span", Fo, H(U(i).t("module.dunning_case.settings.ladder.fee")), 1), P("div", Io, [P("div", Lo, [I(U(Tn), Mt(U(_t)(n.feeTypeField), {
2048
+ P("div", Po, [P("span", Fo, H(U(i).t("module.dunning_case.settings.ladder.fee")), 1), P("div", Io, [P("div", Lo, [I(U(wn), Mt(U(_t)(n.feeTypeField), {
2049
2049
  "aria-label": U(i).t("module.dunning_case.settings.ladder.fee_type"),
2050
2050
  "display-fn": p,
2051
2051
  "is-disabled": !n.canUpdate,
@@ -2055,7 +2055,7 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2055
2055
  "aria-label",
2056
2056
  "is-disabled",
2057
2057
  "items"
2058
- ])]), P("div", Ro, [s.value === U(m).PERCENTAGE ? (z(), j(U(Cn), Mt({ key: 0 }, U(_t)(n.feePercentageField), {
2058
+ ])]), P("div", Ro, [s.value === U(m).PERCENTAGE ? (z(), j(U(Sn), Mt({ key: 0 }, U(_t)(n.feePercentageField), {
2059
2059
  "aria-label": U(i).t("module.dunning_case.settings.ladder.fee"),
2060
2060
  "format-options": u,
2061
2061
  "is-disabled": !n.canUpdate,
@@ -2067,7 +2067,7 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2067
2067
  }), {
2068
2068
  right: W(() => [...t[5] ||= [P("span", { class: "pr-md text-xs text-secondary" }, " % ", -1)]]),
2069
2069
  _: 1
2070
- }, 16, ["aria-label", "is-disabled"])) : (z(), j(U(Cn), Mt({ key: 1 }, U(_t)(n.feeField), {
2070
+ }, 16, ["aria-label", "is-disabled"])) : (z(), j(U(Sn), Mt({ key: 1 }, U(_t)(n.feeField), {
2071
2071
  "aria-label": U(i).t("module.dunning_case.settings.ladder.fee"),
2072
2072
  "format-options": l,
2073
2073
  "is-disabled": !n.canUpdate,
@@ -2152,7 +2152,7 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2152
2152
  key: e.sequence,
2153
2153
  style: Pt({ left: `${u(e.absoluteDay)}%` }),
2154
2154
  class: "absolute top-0 z-10 -translate-x-1/2"
2155
- }, [I(U(Fn), {
2155
+ }, [I(U(Pn), {
2156
2156
  "is-open": c.value === r || s.value === r,
2157
2157
  "popover-side-offset": 8,
2158
2158
  "popover-align": "center",
@@ -2172,7 +2172,7 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2172
2172
  disabled: !n.canUpdate,
2173
2173
  role: "slider",
2174
2174
  type: "button",
2175
- onKeydown: [Ut(Wt((e) => f(r, -1), ["prevent"]), ["left"]), Ut(Wt((e) => f(r, 1), ["prevent"]), ["right"])],
2175
+ onKeydown: [Ht(Ut((e) => f(r, -1), ["prevent"]), ["left"]), Ht(Ut((e) => f(r, 1), ["prevent"]), ["right"])],
2176
2176
  onPointercancel: (e) => g(r, e),
2177
2177
  onPointerdown: (e) => m(r, e),
2178
2178
  onPointerenter: (e) => c.value = r,
@@ -2180,7 +2180,7 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2180
2180
  onPointermove: (e) => h(r, e),
2181
2181
  onPointerup: (e) => g(r, e)
2182
2182
  }, H(e.sequence), 43, Go)]),
2183
- content: W(() => [I(U(In), { class: "rounded-md! bg-primary-solid! px-lg! py-md! text-sm font-semibold! whitespace-nowrap! text-white!" }, {
2183
+ content: W(() => [I(U(Fn), { class: "rounded-md! bg-primary-solid! px-lg! py-md! text-sm font-semibold! whitespace-nowrap! text-white!" }, {
2184
2184
  default: W(() => [F(H(U(a).t("module.dunning_case.settings.ladder.day", { day: e.absoluteDay })), 1)]),
2185
2185
  _: 2
2186
2186
  }, 1024)]),
@@ -2262,18 +2262,18 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2262
2262
  }),
2263
2263
  emits: ["update:modelValue"],
2264
2264
  setup(e) {
2265
- let t = e, n = Vt(e, "modelValue"), r = O();
2265
+ let t = e, n = Bt(e, "modelValue"), r = O();
2266
2266
  function i(e) {
2267
2267
  return e.hasMissingContent ? `${e.label}, ${r.t("module.dunning_case.settings.templates.missing")}` : e.label;
2268
2268
  }
2269
- return (e, r) => (z(), N("div", ns, [P("p", rs, H(t.caption), 1), I(U(kn), {
2269
+ return (e, r) => (z(), N("div", ns, [P("p", rs, H(t.caption), 1), I(U(On), {
2270
2270
  modelValue: n.value,
2271
2271
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
2272
2272
  "aria-label": t.caption,
2273
2273
  variant: "button-brand"
2274
2274
  }, {
2275
- default: W(() => [I(U(jn), null, {
2276
- default: W(() => [(z(!0), N(k, null, V(t.items, (e) => (z(), j(U(An), {
2275
+ default: W(() => [I(U(An), null, {
2276
+ default: W(() => [(z(!0), N(k, null, V(t.items, (e) => (z(), j(U(kn), {
2277
2277
  key: e.value,
2278
2278
  "aria-label": i(e),
2279
2279
  config: e.hasMissingContent ? { indicator: {
@@ -2313,7 +2313,7 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2313
2313
  }),
2314
2314
  emits: ["update:activeLevel", "update:activeLocale"],
2315
2315
  setup(e) {
2316
- let t = e, n = Vt(e, "activeLevel"), r = Vt(e, "activeLocale"), i = O();
2316
+ let t = e, n = Bt(e, "activeLevel"), r = Bt(e, "activeLocale"), i = O();
2317
2317
  return (e, a) => (z(), N("div", as, [P("div", os, [I(is, {
2318
2318
  modelValue: n.value,
2319
2319
  "onUpdate:modelValue": a[0] ||= (e) => n.value = e,
@@ -2332,12 +2332,12 @@ var yo = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, bo = { class: "roun
2332
2332
  "modelValue",
2333
2333
  "caption",
2334
2334
  "items"
2335
- ])]), P("div", ss, [P("div", cs, [P("h2", ls, H(t.cardTitle), 1)]), t.subjectField !== void 0 && t.bodyField !== void 0 ? (z(), N("div", us, [I(U(Mn), Mt(U(_t)(t.subjectField), {
2335
+ ])]), P("div", ss, [P("div", cs, [P("h2", ls, H(t.cardTitle), 1)]), t.subjectField !== void 0 && t.bodyField !== void 0 ? (z(), N("div", us, [I(U(jn), Mt(U(_t)(t.subjectField), {
2336
2336
  "is-disabled": !t.canUpdate,
2337
2337
  "is-required": !0,
2338
2338
  label: U(i).t("module.dunning_case.settings.templates.subject"),
2339
2339
  size: "sm"
2340
- }), null, 16, ["is-disabled", "label"]), I(U(Nn), Mt(U(_t)(t.bodyField), {
2340
+ }), null, 16, ["is-disabled", "label"]), I(U(Mn), Mt(U(_t)(t.bodyField), {
2341
2341
  "is-disabled": !t.canUpdate,
2342
2342
  "is-required": !0,
2343
2343
  label: U(i).t("module.dunning_case.settings.templates.content"),
@@ -2434,7 +2434,7 @@ var vs = { class: "mx-auto w-full max-w-340" }, ys = { class: "flex flex-col gap
2434
2434
  "en-US",
2435
2435
  "nl-BE",
2436
2436
  "fr-BE"
2437
- ], i = [o.AFTER_DUE_DATE, o.AFTER_LAST_REMINDER], a = O(), s = Un(), c = v(), l = po(), u = B("ladder"), d = B(0), f = B("en-US");
2437
+ ], i = [o.AFTER_DUE_DATE, o.AFTER_LAST_REMINDER], a = O(), s = Hn(), c = v(), l = po(), u = B("ladder"), d = B(0), f = B("en-US");
2438
2438
  c.set(() => a.t("module.dunning_case.settings.title"));
2439
2439
  let p = Kn({
2440
2440
  initialState: A(() => ve.reminderConfigsToForm(t.reminderConfigs)),
@@ -2469,7 +2469,7 @@ var vs = { class: "mx-auto w-full max-w-340" }, ys = { class: "flex flex-col gap
2469
2469
  offsetDays: t.register("offsetDays"),
2470
2470
  schedule: t.register("schedule")
2471
2471
  };
2472
- }), g = B(!0), _ = A(() => Rn(i)), y = _s({
2472
+ }), g = B(!0), _ = A(() => Ln(i)), y = _s({
2473
2473
  canUpdate: g,
2474
2474
  fields: h,
2475
2475
  items: A(() => (p.state.value.reminders ?? []).map((e, t) => ({
@@ -2507,12 +2507,12 @@ var vs = { class: "mx-auto w-full max-w-340" }, ys = { class: "flex flex-col gap
2507
2507
  language: a.t(`module.dunning_case.settings.locale_name.${f.value}`),
2508
2508
  level: d.value + 1
2509
2509
  }));
2510
- return Ht(() => t.reminderConfigs, y.reset, { immediate: !0 }), (e, t) => (z(), j(U(rn), {
2510
+ return Vt(() => t.reminderConfigs, y.reset, { immediate: !0 }), (e, t) => (z(), j(U(nn), {
2511
2511
  title: U(a).t("module.dunning_case.settings.title"),
2512
2512
  subtitle: U(a).t("module.dunning_case.settings.subtitle")
2513
2513
  }, {
2514
- default: W(() => [I(U(on), null, {
2515
- default: W(() => [I(U(bn), {
2514
+ default: W(() => [I(U(an), null, {
2515
+ default: W(() => [I(U(yn), {
2516
2516
  form: U(p),
2517
2517
  "prompt-on-unsaved-changes": !0
2518
2518
  }, {
@@ -2529,18 +2529,18 @@ var vs = { class: "mx-auto w-full max-w-340" }, ys = { class: "flex flex-col gap
2529
2529
  "label",
2530
2530
  "onClick"
2531
2531
  ])) : M("", !0)]),
2532
- I(U(kn), {
2532
+ I(U(On), {
2533
2533
  modelValue: u.value,
2534
2534
  "onUpdate:modelValue": t[0] ||= (e) => u.value = e,
2535
2535
  "aria-label": U(a).t("module.dunning_case.settings.navigation"),
2536
2536
  class: "mt-xl",
2537
2537
  variant: "button-border"
2538
2538
  }, {
2539
- default: W(() => [I(U(jn), null, {
2540
- default: W(() => [I(U(An), {
2539
+ default: W(() => [I(U(An), null, {
2540
+ default: W(() => [I(U(kn), {
2541
2541
  label: U(a).t("module.dunning_case.settings.ladder.tab"),
2542
2542
  value: "ladder"
2543
- }, null, 8, ["label"]), I(U(An), {
2543
+ }, null, 8, ["label"]), I(U(kn), {
2544
2544
  label: U(a).t("module.dunning_case.settings.templates.tab"),
2545
2545
  value: "templates"
2546
2546
  }, null, 8, ["label"])]),
@@ -2595,7 +2595,7 @@ var vs = { class: "mx-auto w-full max-w-340" }, ys = { class: "flex flex-col gap
2595
2595
  let t = E();
2596
2596
  return (e, n) => (z(), j(it, { queries: { reminderConfigs: U(t) } }, {
2597
2597
  default: W(({ data: e }) => [I(Ss, { "reminder-configs": e.reminderConfigs }, null, 8, ["reminder-configs"])]),
2598
- loading: W(() => [I(U(sn), { breadcrumbs: [] })]),
2598
+ loading: W(() => [I(U(on), { breadcrumbs: [] })]),
2599
2599
  _: 1
2600
2600
  }, 8, ["queries"]));
2601
2601
  }
@@ -2603,8 +2603,8 @@ var vs = { class: "mx-auto w-full max-w-340" }, ys = { class: "flex flex-col gap
2603
2603
  //#endregion
2604
2604
  //#region src/modules/invoice/actions/invoiceNavigateToDetail.action.ts
2605
2605
  function Es() {
2606
- let e = en();
2607
- return Wn({
2606
+ let e = $t();
2607
+ return Un({
2608
2608
  id: "invoice-navigate-to-detail",
2609
2609
  isApplicable: (e) => e.hasTargetedModelsOfType("Invoice"),
2610
2610
  name: (e) => {
@@ -2626,7 +2626,7 @@ function Es() {
2626
2626
  //#endregion
2627
2627
  //#region src/modules/invoice/api/queries/invoicePublicDetail.query.ts
2628
2628
  function Ds(e) {
2629
- return Zt("invoicePublicDetail", {
2629
+ return Xt("invoicePublicDetail", {
2630
2630
  isEnabled: A(() => e.value !== null),
2631
2631
  params: { token: e },
2632
2632
  queryFn: () => {
@@ -2646,7 +2646,7 @@ function ks(e) {
2646
2646
  search: e?.params?.search?.value,
2647
2647
  sort: e?.params?.sort?.value ?? []
2648
2648
  }));
2649
- return Xt("invoiceIndex", {
2649
+ return Yt("invoiceIndex", {
2650
2650
  params: { queryParams: t },
2651
2651
  queryFn: (t) => T.getAll({
2652
2652
  filters: e?.params?.filters?.value,
@@ -2659,7 +2659,7 @@ function ks(e) {
2659
2659
  //#endregion
2660
2660
  //#region src/modules/invoice/api/mutations/invoiceCreate.mutation.ts
2661
2661
  function As() {
2662
- return Yt({
2662
+ return Jt({
2663
2663
  queryFn: (e) => T.create(e.body),
2664
2664
  queryKeysToInvalidate: { invoiceIndex: {} }
2665
2665
  });
@@ -2675,7 +2675,7 @@ var js = /* @__PURE__ */ L({
2675
2675
  },
2676
2676
  emits: ["nextPage", "updateSearch"],
2677
2677
  setup(e, { emit: t }) {
2678
- let n = e, r = t, i = O(), a = A(() => Ln(n.customers));
2678
+ let n = e, r = t, i = O(), a = A(() => In(n.customers));
2679
2679
  function o(e) {
2680
2680
  return e.name;
2681
2681
  }
@@ -2698,7 +2698,7 @@ var js = /* @__PURE__ */ L({
2698
2698
  function u(e) {
2699
2699
  n.field.setValue(e), e !== null && r("updateSearch", "");
2700
2700
  }
2701
- return (e, t) => (z(), j(U(tn), Mt(U(_t)(n.field), {
2701
+ return (e, t) => (z(), j(U(en), Mt(U(_t)(n.field), {
2702
2702
  "display-fn": o,
2703
2703
  "get-item-config": c,
2704
2704
  "is-loading": n.isLoading,
@@ -2725,7 +2725,7 @@ var js = /* @__PURE__ */ L({
2725
2725
  __name: "InvoiceCreateDialog",
2726
2726
  emits: ["close"],
2727
2727
  setup(e, { emit: t }) {
2728
- let n = t, r = O(), i = Un(), a = en(), o = As(), s = ne({ debounceMs: 250 }), c = yt({ params: { search: s.debouncedSearch } }), l = A(() => c.result.value.match({
2728
+ let n = t, r = O(), i = Hn(), a = $t(), o = As(), s = ne({ debounceMs: 250 }), c = yt({ params: { search: s.debouncedSearch } }), l = A(() => c.result.value.match({
2729
2729
  err: () => [],
2730
2730
  loading: () => [],
2731
2731
  ok: (e) => e.data
@@ -2743,13 +2743,13 @@ var js = /* @__PURE__ */ L({
2743
2743
  function f(e) {
2744
2744
  s.updateSearch(e);
2745
2745
  }
2746
- return (e, t) => (z(), j(U(xn), {
2746
+ return (e, t) => (z(), j(U(bn), {
2747
2747
  form: U(u),
2748
2748
  size: "xs",
2749
2749
  onClose: t[0] ||= (e) => n("close")
2750
2750
  }, {
2751
2751
  default: W(() => [
2752
- I(U(_n), {
2752
+ I(U(gn), {
2753
2753
  title: U(r).t("wise_invoicing.invoice.create.modal_title"),
2754
2754
  description: U(r).t("wise_invoicing.invoice.create.modal_description"),
2755
2755
  icon: U(Ue)
@@ -2758,7 +2758,7 @@ var js = /* @__PURE__ */ L({
2758
2758
  "description",
2759
2759
  "icon"
2760
2760
  ]),
2761
- I(U(fn), null, {
2761
+ I(U(dn), null, {
2762
2762
  default: W(() => [I(js, {
2763
2763
  customers: l.value,
2764
2764
  field: U(d),
@@ -2773,8 +2773,8 @@ var js = /* @__PURE__ */ L({
2773
2773
  ])]),
2774
2774
  _: 1
2775
2775
  }),
2776
- I(U(pn), null, {
2777
- right: W(() => [I(U(mn), { label: "cancel" }), I(U(gn), { label: U(r).t("wise_invoicing.invoice.create.confirm") }, null, 8, ["label"])]),
2776
+ I(U(fn), null, {
2777
+ right: W(() => [I(U(pn), { label: "cancel" }), I(U(hn), { label: U(r).t("wise_invoicing.invoice.create.confirm") }, null, 8, ["label"])]),
2778
2778
  _: 1
2779
2779
  })
2780
2780
  ]),
@@ -3163,7 +3163,7 @@ function Us() {
3163
3163
  let e = t.invoiceOverviewTabs.value;
3164
3164
  return n.value.filter((t) => e[t.key]?.isHidden !== !0).map((t) => ({
3165
3165
  key: t.key,
3166
- label: Bt(e[t.key]?.label) ?? t.label
3166
+ label: zt(e[t.key]?.label) ?? t.label
3167
3167
  }));
3168
3168
  })
3169
3169
  };
@@ -3172,37 +3172,32 @@ function Us() {
3172
3172
  //#region src/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.ts
3173
3173
  var Ws = {
3174
3174
  items: [],
3175
- type: "includes"
3175
+ type: "include"
3176
3176
  };
3177
3177
  function Gs(e) {
3178
- let t = zt(Ws), n = B(0), r = A(() => t.value.type === "excludes"), i = A(() => new Set(t.value.items.map((e) => e.uuid))), a = A(() => e.rows().filter((e) => {
3178
+ let t = Wn(), n = A(() => t.tableSelection ?? Ws), r = A(() => n.value.type === "exclude"), i = A(() => new Set(n.value.items)), a = A(() => e.rows().filter((e) => {
3179
3179
  let t = i.value.has(e.uuid);
3180
3180
  return r.value ? !t : t;
3181
3181
  })), o = A(() => {
3182
3182
  if (!r.value) return null;
3183
- let n = t.value.items.map((e) => e.uuid);
3183
+ let t = n.value.items.map((e) => Os.parse(e));
3184
3184
  return {
3185
- count: Math.max(e.totalCount() - n.length, 0),
3185
+ count: Math.max(e.totalCount() - t.length, 0),
3186
3186
  target: {
3187
- excludedInvoiceUuids: n,
3187
+ excludedInvoiceUuids: t,
3188
3188
  queryParams: e.queryParams(),
3189
3189
  type: "matching"
3190
3190
  }
3191
3191
  };
3192
3192
  }), s = A(() => o.value?.count ?? a.value.length);
3193
- function c(e) {
3194
- t.value = e;
3195
- }
3196
- function l() {
3197
- (r.value || t.value.items.length !== 0) && (t.value = Ws, n.value += 1);
3193
+ function c() {
3194
+ (r.value || n.value.items.length !== 0) && t.clearTableSelection();
3198
3195
  }
3199
- return Ht(e.queryParams, l, { deep: !0 }), {
3200
- clearSelection: l,
3196
+ return Vt(e.queryParams, c, { deep: !0 }), {
3197
+ clearSelection: c,
3201
3198
  matching: o,
3202
3199
  selectedCount: s,
3203
- selectedInvoices: a,
3204
- tableKey: n,
3205
- onSelect: c
3200
+ selectedInvoices: a
3206
3201
  };
3207
3202
  }
3208
3203
  //#endregion
@@ -3273,7 +3268,7 @@ var Ks = { class: "font-medium text-secondary" }, qs = ["title"], Js = /* @__PUR
3273
3268
  },
3274
3269
  setup(e) {
3275
3270
  return (t, n) => (z(), j(U(Y), null, {
3276
- default: W(() => [e.value === void 0 ? (z(), j(U(On), {
3271
+ default: W(() => [e.value === void 0 ? (z(), j(U(Dn), {
3277
3272
  key: 1,
3278
3273
  text: "-"
3279
3274
  })) : (z(), j(pe, {
@@ -3305,7 +3300,7 @@ var Ks = { class: "font-medium text-secondary" }, qs = ["title"], Js = /* @__PUR
3305
3300
  "text-primary": !t.isOverdue
3306
3301
  }, "text-sm"]),
3307
3302
  text: r.value
3308
- }, null, 8, ["class", "text"]), i.value === null ? M("", !0) : (z(), j(U(nn), {
3303
+ }, null, 8, ["class", "text"]), i.value === null ? M("", !0) : (z(), j(U(tn), {
3309
3304
  key: 0,
3310
3305
  label: i.value,
3311
3306
  color: "error",
@@ -3383,26 +3378,26 @@ var Ks = { class: "font-medium text-secondary" }, qs = ["title"], Js = /* @__PUR
3383
3378
  default: W(() => [r.value ? (z(), j(U(Re), {
3384
3379
  key: 0,
3385
3380
  class: "size-4 text-brand-600"
3386
- })) : t.deliveryStatus === U(d).PROCESSING ? (z(), j(U(Sn), {
3381
+ })) : t.deliveryStatus === U(d).PROCESSING ? (z(), j(U(xn), {
3387
3382
  key: 1,
3388
3383
  "aria-label": U(n).t("wise_invoicing.invoice.delivery_status.processing"),
3389
3384
  "aria-hidden": "false",
3390
3385
  role: "img",
3391
3386
  class: "size-4 text-tertiary"
3392
- }, null, 8, ["aria-label"])) : t.deliveryStatus === U(d).FAILED ? (z(), j(U(Fn), {
3387
+ }, null, 8, ["aria-label"])) : t.deliveryStatus === U(d).FAILED ? (z(), j(U(Pn), {
3393
3388
  key: 2,
3394
3389
  "popover-side-offset": 8,
3395
3390
  "popover-align": "center",
3396
3391
  "popover-side": "bottom"
3397
3392
  }, {
3398
- trigger: W(() => [I(U(Dn), null, {
3393
+ trigger: W(() => [I(U(En), null, {
3399
3394
  default: W(() => [I(U(Ie), {
3400
3395
  "aria-label": U(n).t("wise_invoicing.invoice.overview.send_failed"),
3401
3396
  class: "size-4 text-error-primary"
3402
3397
  }, null, 8, ["aria-label"])]),
3403
3398
  _: 1
3404
3399
  })]),
3405
- content: W(() => [I(U(In), null, {
3400
+ content: W(() => [I(U(Fn), null, {
3406
3401
  default: W(() => [I(U(X), {
3407
3402
  text: U(n).t("wise_invoicing.invoice.overview.send_failed"),
3408
3403
  class: "text-sm text-primary"
@@ -3419,7 +3414,7 @@ var Ks = { class: "font-medium text-secondary" }, qs = ["title"], Js = /* @__PUR
3419
3414
  props: { sequence: {} },
3420
3415
  setup(e) {
3421
3416
  return (t, n) => (z(), j(U(Y), null, {
3422
- default: W(() => [I(U(On), { text: e.sequence ?? "-" }, null, 8, ["text"])]),
3417
+ default: W(() => [I(U(Dn), { text: e.sequence ?? "-" }, null, 8, ["text"])]),
3423
3418
  _: 1
3424
3419
  }));
3425
3420
  }
@@ -3467,7 +3462,7 @@ function sc(e) {
3467
3462
  value: t.customFields.find((t) => t.definitionUuid === e.uuid)
3468
3463
  })
3469
3464
  })) ?? [];
3470
- return zn()([
3465
+ return Rn()([
3471
3466
  {
3472
3467
  headerLabel: t.t("wise_invoicing.invoice.overview.columns.recipient"),
3473
3468
  key: s.CUSTOMER,
@@ -3570,7 +3565,7 @@ function sc(e) {
3570
3565
  //#endregion
3571
3566
  //#region src/modules/invoice/api/mutations/invoiceBulkDelete.mutation.ts
3572
3567
  function cc() {
3573
- return Yt({
3568
+ return Jt({
3574
3569
  queryFn: (e) => T.bulkDelete(e.params.target),
3575
3570
  queryKeysToInvalidate: {
3576
3571
  invoiceDetail: {},
@@ -3747,12 +3742,12 @@ var pc = {
3747
3742
  emits: ["close", "confirm"],
3748
3743
  setup(e, { emit: t }) {
3749
3744
  let n = e, r = t;
3750
- return (e, t) => (z(), j(U(dn), {
3745
+ return (e, t) => (z(), j(U(un), {
3751
3746
  size: "sm",
3752
3747
  onClose: t[1] ||= (e) => r("close")
3753
3748
  }, {
3754
3749
  default: W(() => [
3755
- I(U(_n), {
3750
+ I(U(gn), {
3756
3751
  title: n.title,
3757
3752
  description: n.description,
3758
3753
  icon: n.icon
@@ -3761,7 +3756,7 @@ var pc = {
3761
3756
  "description",
3762
3757
  "icon"
3763
3758
  ]),
3764
- I(U(fn), null, {
3759
+ I(U(dn), null, {
3765
3760
  default: W(() => [I(U(q), null, {
3766
3761
  default: W(() => [n.previewErrorLabel === null ? n.isPreviewLoading ? (z(), N("p", mc, H(n.loadingLabel), 1)) : (z(), N(k, { key: 2 }, [n.processableCount > 0 ? (z(), N("p", hc, H(n.processableLabel), 1)) : (z(), N("p", gc, H(n.noneProcessableLabel), 1)), n.skippedInvoices.length > 0 ? (z(), j(U(q), {
3767
3762
  key: 2,
@@ -3773,7 +3768,7 @@ var pc = {
3773
3768
  key: e.uuid,
3774
3769
  gap: "none"
3775
3770
  }, {
3776
- default: W(() => [I(U($t), {
3771
+ default: W(() => [I(U(Qt), {
3777
3772
  to: U($).getInvoiceDetailLink(e),
3778
3773
  class: "text-sm text-brand-primary hover:underline"
3779
3774
  }, {
@@ -3790,8 +3785,8 @@ var pc = {
3790
3785
  })]),
3791
3786
  _: 1
3792
3787
  }),
3793
- I(U(pn), null, {
3794
- right: W(() => [I(U(mn)), I(U(hn), {
3788
+ I(U(fn), null, {
3789
+ right: W(() => [I(U(pn)), I(U(mn), {
3795
3790
  "is-destructive": n.isDestructive ?? !1,
3796
3791
  "is-disabled": n.isPreviewLoading || n.processableCount === 0,
3797
3792
  "is-loading": n.isSubmitting,
@@ -3818,7 +3813,7 @@ var pc = {
3818
3813
  },
3819
3814
  emits: ["close"],
3820
3815
  setup(e, { emit: t }) {
3821
- let n = e, r = t, i = O(), a = Un(), o = cc(), s = B(!0), c = B(!1), l = B(null), u = B(null), { previewTarget: d, processableCount: f, skippedCount: p, skippedInvoices: m, submitTarget: h, titleCount: g } = fc({
3816
+ let n = e, r = t, i = O(), a = Hn(), o = cc(), s = B(!0), c = B(!1), l = B(null), u = B(null), { previewTarget: d, processableCount: f, skippedCount: p, skippedInvoices: m, submitTarget: h, titleCount: g } = fc({
3822
3817
  eligibleInvoices: () => n.invoices.filter((e) => de.isEditable(e.status)),
3823
3818
  invoices: () => n.invoices,
3824
3819
  matching: () => n.matching,
@@ -3903,13 +3898,13 @@ function kc(e, t) {
3903
3898
  return n.every((n) => Oc(e[n], t.patch[n])) ? !0 : n.some((n) => n in t.serverValues && !Oc(e[n], t.serverValues[n]));
3904
3899
  }
3905
3900
  function Ac() {
3906
- return Jt().getQueryCache().findAll({ predicate: (e) => e.queryKey[0] === "invoiceIndex" }).flatMap((e) => Ec(e.state.data));
3901
+ return qt().getQueryCache().findAll({ predicate: (e) => e.queryKey[0] === "invoiceIndex" }).flatMap((e) => Ec(e.state.data));
3907
3902
  }
3908
3903
  function jc(e, t) {
3909
3904
  return e === void 0 ? {} : Object.fromEntries(Dc(t).map((t) => [t, e[t]]));
3910
3905
  }
3911
3906
  function Mc() {
3912
- new Kt(Jt()).update("invoiceIndex", {
3907
+ new Gt(qt()).update("invoiceIndex", {
3913
3908
  by: (e) => Sc.has(e.uuid),
3914
3909
  value: (e) => ({
3915
3910
  ...e,
@@ -3934,7 +3929,7 @@ function Fc(e) {
3934
3929
  Nc(Ec(t)), Sc.size === 0 ? Pc() : Mc();
3935
3930
  }
3936
3931
  function Ic() {
3937
- let e = Jt().getQueryCache();
3932
+ let e = qt().getQueryCache();
3938
3933
  Cc !== e && (Pc(), Cc = e, wc = e.subscribe(Fc));
3939
3934
  }
3940
3935
  var Lc = class {
@@ -3961,7 +3956,7 @@ var Lc = class {
3961
3956
  //#endregion
3962
3957
  //#region src/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.ts
3963
3958
  function Rc() {
3964
- return Yt({
3959
+ return Jt({
3965
3960
  queryFn: (e) => T.bulkFinalize(e.params.target),
3966
3961
  queryKeysToInvalidate: { invoiceDetail: {} }
3967
3962
  });
@@ -3977,7 +3972,7 @@ var zc = /* @__PURE__ */ L({
3977
3972
  },
3978
3973
  emits: ["close"],
3979
3974
  setup(e, { emit: t }) {
3980
- let n = e, r = t, i = O(), a = Un(), o = Rc(), s = B(!0), c = B(!1), u = B(null), d = B(null), { getProcessedInvoiceUuids: f, previewTarget: p, processableCount: m, skippedCount: h, skippedInvoices: g, submitTarget: _, titleCount: v } = fc({
3975
+ let n = e, r = t, i = O(), a = Hn(), o = Rc(), s = B(!0), c = B(!1), u = B(null), d = B(null), { getProcessedInvoiceUuids: f, previewTarget: p, processableCount: m, skippedCount: h, skippedInvoices: g, submitTarget: _, titleCount: v } = fc({
3981
3976
  eligibleInvoices: () => n.invoices.filter((e) => e.status === l.READY),
3982
3977
  invoices: () => n.invoices,
3983
3978
  matching: () => n.matching,
@@ -4058,7 +4053,7 @@ var zc = /* @__PURE__ */ L({
4058
4053
  //#endregion
4059
4054
  //#region src/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.ts
4060
4055
  function Bc() {
4061
- return Yt({
4056
+ return Jt({
4062
4057
  queryFn: (e) => T.bulkMarkAsReady(e.params.target),
4063
4058
  queryKeysToInvalidate: { invoiceDetail: {} }
4064
4059
  });
@@ -4074,7 +4069,7 @@ var Vc = /* @__PURE__ */ L({
4074
4069
  },
4075
4070
  emits: ["close"],
4076
4071
  setup(e, { emit: t }) {
4077
- let n = e, r = t, i = O(), a = Un(), o = Bc(), s = B(!0), c = B(!1), u = B(null), d = B(null), { getProcessedInvoiceUuids: f, previewTarget: p, processableCount: m, skippedCount: h, skippedInvoices: g, submitTarget: _, titleCount: v } = fc({
4072
+ let n = e, r = t, i = O(), a = Hn(), o = Bc(), s = B(!0), c = B(!1), u = B(null), d = B(null), { getProcessedInvoiceUuids: f, previewTarget: p, processableCount: m, skippedCount: h, skippedInvoices: g, submitTarget: _, titleCount: v } = fc({
4078
4073
  eligibleInvoices: () => n.invoices.filter((e) => e.status === l.DRAFT),
4079
4074
  invoices: () => n.invoices,
4080
4075
  matching: () => n.matching,
@@ -4147,7 +4142,7 @@ var Vc = /* @__PURE__ */ L({
4147
4142
  //#endregion
4148
4143
  //#region src/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.ts
4149
4144
  function Hc() {
4150
- return Yt({
4145
+ return Jt({
4151
4146
  queryFn: (e) => T.bulkSendApproval(e.params.target),
4152
4147
  queryKeysToInvalidate: {
4153
4148
  invoiceApprovalIndex: {},
@@ -4166,7 +4161,7 @@ var Uc = /* @__PURE__ */ L({
4166
4161
  },
4167
4162
  emits: ["close"],
4168
4163
  setup(e, { emit: t }) {
4169
- let n = e, r = t, i = O(), a = Un(), o = Hc(), s = B(!0), c = B(!1), l = B(null), d = B(null), { getProcessedInvoiceUuids: f, previewTarget: p, processableCount: m, skippedCount: h, skippedInvoices: g, submitTarget: _, titleCount: v } = fc({
4164
+ let n = e, r = t, i = O(), a = Hn(), o = Hc(), s = B(!0), c = B(!1), l = B(null), d = B(null), { getProcessedInvoiceUuids: f, previewTarget: p, processableCount: m, skippedCount: h, skippedInvoices: g, submitTarget: _, titleCount: v } = fc({
4170
4165
  eligibleInvoices: () => n.invoices.filter((e) => {
4171
4166
  let t = vt.getDisplayStatus({
4172
4167
  approval: e.approval,
@@ -4308,11 +4303,11 @@ var Uc = /* @__PURE__ */ L({
4308
4303
  }),
4309
4304
  emits: ["update:modelValue"],
4310
4305
  setup(e) {
4311
- let t = e, n = Vt(e, "modelValue"), r = O(), i = B(!1), a = B({
4306
+ let t = e, n = Bt(e, "modelValue"), r = O(), i = B(!1), a = B({
4312
4307
  from: null,
4313
4308
  until: null
4314
4309
  });
4315
- Ht(i, (e) => {
4310
+ Vt(i, (e) => {
4316
4311
  e && (a.value = {
4317
4312
  from: n.value?.from ?? null,
4318
4313
  until: n.value?.until ?? null
@@ -4328,7 +4323,7 @@ var Uc = /* @__PURE__ */ L({
4328
4323
  function u() {
4329
4324
  n.value = null, i.value = !1;
4330
4325
  }
4331
- return (e, n) => (z(), j(U(wn), {
4326
+ return (e, n) => (z(), j(U(Cn), {
4332
4327
  "is-open": i.value,
4333
4328
  "onUpdate:isOpen": n[1] ||= (e) => i.value = e,
4334
4329
  "popover-side": "bottom",
@@ -4344,7 +4339,7 @@ var Uc = /* @__PURE__ */ L({
4344
4339
  "label",
4345
4340
  "icon-right"
4346
4341
  ])]),
4347
- content: W(() => [I(U(cn), {
4342
+ content: W(() => [I(U(sn), {
4348
4343
  modelValue: a.value,
4349
4344
  "onUpdate:modelValue": n[0] ||= (e) => a.value = e,
4350
4345
  class: "p-lg"
@@ -4383,7 +4378,7 @@ var Uc = /* @__PURE__ */ L({
4383
4378
  onCreateInvoice: { type: Function }
4384
4379
  },
4385
4380
  setup(e) {
4386
- let t = e, n = O(), r = v(), i = Bn(), o = i.create(Fs), c = i.create(bc), f = i.create(zc), p = i.create(Vc), m = i.create(Wc), h = i.create(Uc), g = ne({ debounceMs: 300 }), _ = Us(), y = qn("tab", _.tabs.value[0]?.key ?? "all"), b = ie({
4381
+ let t = e, n = O(), r = v(), i = zn(), o = i.create(Fs), c = i.create(bc), f = i.create(zc), p = i.create(Vc), m = i.create(Wc), h = i.create(Uc), g = ne({ debounceMs: 300 }), _ = Us(), y = qn("tab", _.tabs.value[0]?.key ?? "all"), b = ie({
4387
4382
  initialValues: [{
4388
4383
  direction: "desc",
4389
4384
  key: s.ISSUED_ON
@@ -4426,10 +4421,10 @@ var Uc = /* @__PURE__ */ L({
4426
4421
  refetch: ge,
4427
4422
  sendingUuids: () => ye.value.filter((e) => e.deliveryStatus === d.PROCESSING).map((e) => e.uuid)
4428
4423
  });
4429
- let xe = sc({ customFieldDefinitions: () => x.value }), { customizedColumns: Se, customizeTableAction: Ce } = Hn({
4424
+ let xe = sc({ customFieldDefinitions: () => x.value }), { customizedColumns: Se, customizeTableAction: Ce } = Vn({
4430
4425
  actionGroup: ve,
4431
4426
  availableColumns: xe,
4432
- initialState: Qt("invoice-overview-columns", []).value
4427
+ initialState: Zt("invoice-overview-columns", []).value
4433
4428
  }), we = A(() => _e.value.isErr() ? _e.value.getError() : null), Te = A(() => re.activeFilters.value.length), Ee = A(() => (g.debouncedSearch.value?.trim().length ?? 0) > 0), De = A(() => E.matching.value !== null), Oe = A(() => De.value || E.selectedInvoices.value.some((e) => de.isEditable(e.status))), ke = A(() => De.value || E.selectedInvoices.value.some((e) => e.status === l.READY)), Ae = A(() => De.value || E.selectedInvoices.value.some((e) => e.status === l.DRAFT)), { canSend: je } = Rs({
4434
4429
  matching: () => E.matching.value,
4435
4430
  selectedInvoices: () => E.selectedInvoices.value
@@ -4511,14 +4506,14 @@ var Uc = /* @__PURE__ */ L({
4511
4506
  params: { invoiceUuid: e.uuid }
4512
4507
  };
4513
4508
  }
4514
- return (e, t) => (z(), j(U(rn), { title: U(n).t("wise_invoicing.invoice.overview.title") }, {
4515
- "page-actions-left": W(() => [I(U(kn), {
4509
+ return (e, t) => (z(), j(U(nn), { title: U(n).t("wise_invoicing.invoice.overview.title") }, {
4510
+ "page-actions-left": W(() => [I(U(On), {
4516
4511
  modelValue: U(y),
4517
4512
  "onUpdate:modelValue": t[0] ||= (e) => At(y) ? y.value = e : null,
4518
4513
  variant: "button-border"
4519
4514
  }, {
4520
- default: W(() => [I(U(jn), null, {
4521
- default: W(() => [(z(!0), N(k, null, V(U(_).tabs.value, (e) => (z(), j(U(An), {
4515
+ default: W(() => [I(U(An), null, {
4516
+ default: W(() => [(z(!0), N(k, null, V(U(_).tabs.value, (e) => (z(), j(U(kn), {
4522
4517
  key: e.key,
4523
4518
  value: e.key,
4524
4519
  label: e.label
@@ -4528,13 +4523,13 @@ var Uc = /* @__PURE__ */ L({
4528
4523
  _: 1
4529
4524
  }, 8, ["modelValue"])]),
4530
4525
  default: W(() => [
4531
- I(U(an), null, {
4526
+ I(U(rn), null, {
4532
4527
  left: W(() => [I(U(J), { class: "items-stretch" }, {
4533
4528
  default: W(() => [I(Gc, {
4534
4529
  modelValue: se.value,
4535
4530
  "onUpdate:modelValue": t[1] ||= (e) => se.value = e,
4536
4531
  "aria-label": U(n).t("wise_invoicing.invoice.overview.filters.issued_on")
4537
- }, null, 8, ["modelValue", "aria-label"]), I(U(Mn), {
4532
+ }, null, 8, ["modelValue", "aria-label"]), I(U(jn), {
4538
4533
  modelValue: U(g).search.value,
4539
4534
  "onUpdate:modelValue": t[2] ||= (e) => U(g).search.value = e,
4540
4535
  label: null,
@@ -4558,15 +4553,14 @@ var Uc = /* @__PURE__ */ L({
4558
4553
  })]),
4559
4554
  _: 3
4560
4555
  }),
4561
- I(U(an), null, {
4556
+ I(U(rn), null, {
4562
4557
  default: W(() => [I(U(J), { justify: "between" }, {
4563
4558
  default: W(() => [I(U(ft)), I(U(mt))]),
4564
4559
  _: 1
4565
4560
  })]),
4566
4561
  _: 1
4567
4562
  }),
4568
- P("div", Kc, [(z(), j(U(En), {
4569
- key: U(E).tableKey.value,
4563
+ P("div", Kc, [I(U(Tn), {
4570
4564
  columns: U(Se),
4571
4565
  data: ye.value,
4572
4566
  "is-loading": U(pe),
@@ -4585,8 +4579,7 @@ var Uc = /* @__PURE__ */ L({
4585
4579
  }),
4586
4580
  onNextPage: U(he),
4587
4581
  onClearSearch: t[3] ||= (e) => U(g).clear(),
4588
- onClearFilters: t[4] ||= (e) => U(re).clearAll(),
4589
- onSelect: U(E).onSelect
4582
+ onClearFilters: t[4] ||= (e) => U(re).clearAll()
4590
4583
  }, null, 8, [
4591
4584
  "columns",
4592
4585
  "data",
@@ -4598,9 +4591,8 @@ var Uc = /* @__PURE__ */ L({
4598
4591
  "get-key",
4599
4592
  "header-actions",
4600
4593
  "get-action-model",
4601
- "onNextPage",
4602
- "onSelect"
4603
- ])), I(Ls, {
4594
+ "onNextPage"
4595
+ ]), I(Ls, {
4604
4596
  "can-delete": Oe.value,
4605
4597
  "can-finalize": ke.value,
4606
4598
  "can-mark-as-ready": Ae.value,
@@ -4656,8 +4648,8 @@ var Uc = /* @__PURE__ */ L({
4656
4648
  }, $c = /*@__PURE__*/ L({
4657
4649
  __name: "InvoicePublicPdfViewDataProvider",
4658
4650
  setup(e) {
4659
- let t = O(), n = w(), r = A(() => n.invoicePdfComponent.value ?? kt), i = en(), a = qn("token", null), o = Ds(A(() => a.value));
4660
- return Ht(A(() => a.value === null || o.result.value?.isErr() === !0), async (e) => {
4651
+ let t = O(), n = w(), r = A(() => n.invoicePdfComponent.value ?? kt), i = $t(), a = qn("token", null), o = Ds(A(() => a.value));
4652
+ return Vt(A(() => a.value === null || o.result.value?.isErr() === !0), async (e) => {
4661
4653
  e && await i.replace({ name: "index" });
4662
4654
  }, { immediate: !0 }), (e, n) => U(a) === null ? (z(), N("div", Qc, [I(U(X), { text: U(t).t("wise_invoicing.common.loading") }, null, 8, ["text"])])) : (z(), j(it, {
4663
4655
  key: 0,
@@ -4708,7 +4700,7 @@ var rl = nl([{
4708
4700
  children: [{
4709
4701
  name: "invoice-approval-overview",
4710
4702
  path: "",
4711
- component: () => import("./InvoiceApprovalOverviewView-C7LBkaHK.js"),
4703
+ component: () => import("./InvoiceApprovalOverviewView-dsTZWXyZ.js"),
4712
4704
  meta: { permission: "invoice-approval.read" }
4713
4705
  }]
4714
4706
  }]), sl = nl([{
@@ -4729,7 +4721,7 @@ var rl = nl([{
4729
4721
  }, {
4730
4722
  name: "invoicing-settings-overview",
4731
4723
  path: "",
4732
- component: () => import("./IssuerSettingsViewDataProvider-CuejFv7W.js"),
4724
+ component: () => import("./IssuerSettingsViewDataProvider-2Gk7FgL2.js"),
4733
4725
  meta: { permission: "issuer.read" }
4734
4726
  }]
4735
4727
  },
@@ -4752,7 +4744,7 @@ function ll(e) {
4752
4744
  name: "invoicing-invoice-detail",
4753
4745
  props: !0,
4754
4746
  path: ":invoiceUuid",
4755
- component: () => import("./InvoiceDetailViewDataProvider-S163bg0K.js"),
4747
+ component: () => import("./InvoiceDetailViewDataProvider-DgNkoQNH.js"),
4756
4748
  meta: { permission: "invoice.read" }
4757
4749
  }]
4758
4750
  }]);
@@ -4761,7 +4753,7 @@ var ul = nl([{
4761
4753
  name: "invoicing-invoice-pdf-preview",
4762
4754
  props: !0,
4763
4755
  path: "/invoicing/invoices/:invoiceUuid/pdf",
4764
- component: () => import("./InvoicePdfViewDataProvider-DoYpOj5M.js"),
4756
+ component: () => import("./InvoicePdfViewDataProvider-CVgcgc9t.js"),
4765
4757
  meta: { permission: "invoice.read" }
4766
4758
  }]), dl = nl([{
4767
4759
  name: "invoicing-invoice-public-pdf-preview",
@@ -4770,7 +4762,7 @@ var ul = nl([{
4770
4762
  }, {
4771
4763
  name: "invoicing-invoice-public-pro-forma-pdf-preview",
4772
4764
  path: "/pro-forma-pdf",
4773
- component: () => import("./InvoicePublicProFormaPdfViewDataProvider-Cz9Fr8rQ.js")
4765
+ component: () => import("./InvoicePublicProFormaPdfViewDataProvider-BIhn-msJ.js")
4774
4766
  }]);
4775
4767
  //#endregion
4776
4768
  //#region src/routes/invoicingPublicRoutes.composable.ts
@@ -4787,14 +4779,14 @@ var pl = [{
4787
4779
  name: "invoicing-credit-note-detail",
4788
4780
  props: !0,
4789
4781
  path: ":creditNoteUuid",
4790
- component: () => import("./CreditNoteDetailViewDataProvider-ByHCzSGZ.js"),
4782
+ component: () => import("./CreditNoteDetailViewDataProvider-DK7hkA8d.js"),
4791
4783
  meta: { permission: "invoice.read" }
4792
4784
  }]
4793
4785
  }], ml = [{
4794
4786
  name: "invoicing-credit-note-pdf-preview",
4795
4787
  props: !0,
4796
4788
  path: "/invoicing/credit-notes/:creditNoteUuid/pdf",
4797
- component: () => import("./CreditNotePdfViewDataProvider-D0hj-_1J.js"),
4789
+ component: () => import("./CreditNotePdfViewDataProvider-DcQxB1p4.js"),
4798
4790
  meta: { permission: "invoice.read" }
4799
4791
  }];
4800
4792
  //#endregion
@@ -4843,7 +4835,7 @@ var yl = /* @__PURE__ */ L({
4843
4835
  setup(e) {
4844
4836
  let t = e;
4845
4837
  return (e, n) => (z(), j(U(Y), null, {
4846
- default: W(() => [I(U(nn), {
4838
+ default: W(() => [I(U(tn), {
4847
4839
  label: t.label,
4848
4840
  color: t.color,
4849
4841
  size: "sm"
@@ -4870,7 +4862,7 @@ var yl = /* @__PURE__ */ L({
4870
4862
  setup(e) {
4871
4863
  let t = e;
4872
4864
  return (e, n) => (z(), j(U(Y), null, {
4873
- default: W(() => [I(U(On), { text: t.text ?? "-" }, null, 8, ["text"])]),
4865
+ default: W(() => [I(U(Dn), { text: t.text ?? "-" }, null, 8, ["text"])]),
4874
4866
  _: 1
4875
4867
  }));
4876
4868
  }
@@ -4892,7 +4884,7 @@ function Cl(e) {
4892
4884
  function i(e) {
4893
4885
  return e === null ? null : n.formatPlainDate(e);
4894
4886
  }
4895
- return A(() => zn()([
4887
+ return A(() => Rn()([
4896
4888
  {
4897
4889
  headerLabel: t.t("wise_invoicing.customer_invoice_list.columns.invoice_number"),
4898
4890
  key: s.SEQUENCE,
@@ -5078,17 +5070,17 @@ var Tl = { class: "flex min-h-0 flex-1 flex-col" }, El = {
5078
5070
  customFieldDefinitions: {}
5079
5071
  },
5080
5072
  setup(e) {
5081
- let t = e, n = O(), r = Cl({ customFieldDefinitions: () => t.customFieldDefinitions }), i = { name: () => n.t("wise_invoicing.customer_invoice_list.title") }, o = Qt("customer-invoice-list-columns", []), { customizedColumns: c, customizeTableAction: l } = Hn({
5073
+ let t = e, n = O(), r = Cl({ customFieldDefinitions: () => t.customFieldDefinitions }), i = { name: () => n.t("wise_invoicing.customer_invoice_list.title") }, o = Zt("customer-invoice-list-columns", []), { customizedColumns: c, customizeTableAction: l } = Vn({
5082
5074
  actionGroup: i,
5083
5075
  availableColumns: r,
5084
5076
  initialState: o.value
5085
5077
  });
5086
- Ht(c, (e) => {
5078
+ Vt(c, (e) => {
5087
5079
  o.value = e.map((e) => e.key);
5088
5080
  });
5089
5081
  let u = ne({ debounceMs: 300 }), { issuedOnRange: d, dueOnRange: f, filters: p, statuses: m } = wl();
5090
5082
  dt(p);
5091
- let h = Vn({
5083
+ let h = Bn({
5092
5084
  initialValues: [{
5093
5085
  direction: "desc",
5094
5086
  key: s.ISSUED_ON
@@ -5136,7 +5128,7 @@ var Tl = { class: "flex min-h-0 flex-1 flex-col" }, El = {
5136
5128
  key: 0,
5137
5129
  justify: "end"
5138
5130
  }, {
5139
- default: W(() => [I(U(Mn), {
5131
+ default: W(() => [I(U(jn), {
5140
5132
  modelValue: U(u).search.value,
5141
5133
  "onUpdate:modelValue": t[0] ||= (e) => U(u).search.value = e,
5142
5134
  label: null,
@@ -5152,7 +5144,7 @@ var Tl = { class: "flex min-h-0 flex-1 flex-col" }, El = {
5152
5144
  _: 1
5153
5145
  }))]),
5154
5146
  _: 1
5155
- }), w.value ? (z(), j(U(vn), {
5147
+ }), w.value ? (z(), j(U(_n), {
5156
5148
  key: 0,
5157
5149
  icon: U(Ve),
5158
5150
  title: U(n).t("wise_invoicing.customer_invoice_list.empty_state.title"),
@@ -5162,7 +5154,7 @@ var Tl = { class: "flex min-h-0 flex-1 flex-col" }, El = {
5162
5154
  "icon",
5163
5155
  "title",
5164
5156
  "description"
5165
- ])) : (z(), N("div", El, [I(U(En), {
5157
+ ])) : (z(), N("div", El, [I(U(Tn), {
5166
5158
  columns: U(c),
5167
5159
  data: x.value,
5168
5160
  sort: U(h),
@@ -5223,4 +5215,4 @@ var Tl = { class: "flex min-h-0 flex-1 flex-col" }, El = {
5223
5215
  }
5224
5216
  };
5225
5217
  //#endregion
5226
- export { se as AddressUtil, _e as DownloadUtil, xe as MonetaryTransformer, kl as NumberUtil, Te as Percentage, we as PercentageTransformer, c as SortDirection, qt as SortUtil, g as WiseInvoicingCustomFieldEntityType, y as WiseInvoicingCustomFieldType, ge as WiseInvoicingCustomFieldValueUtil, me as WiseInvoicingCustomFieldViewKey, cr as WiseInvoicingCustomerDunningCasesSection, Ol as WiseInvoicingCustomerInvoiceList, Ni as WiseInvoicingDunningCaseDetailView, Fa as WiseInvoicingDunningCaseOverviewView, fo as WiseInvoicingDunningCaseReminderPdfView, Xc as WiseInvoicingInvoiceOverviewView, tl as WiseInvoicingInvoicePublicPdfViewDataProvider, Ts as WiseInvoicingReminderSettingsView, le as addressFormSchema, er as creditNoteUuidSchema, te as initWiseInvoicingConfig, Os as invoiceUuidSchema, Qn as onCreated, ee as toMajorUnits, S as toMinorUnits, C as useCurrencyFormat, v as useDocumentTitle, Es as useInvoiceNavigateToDetailAction, ne as useSearch, ie as useSort, vl as useWiseInvoicingApiError, w as useWiseInvoicingConfig, tr as useWiseInvoicingDunningCaseIndexQuery, Ds as useWiseInvoicingInvoicePublicDetailQuery, fl as useWiseInvoicingPublicRoutes, $n as useWiseInvoicingQueryInvalidation, hl as useWiseInvoicingRoutes, gl as useWiseInvoicingStandaloneRoutes, _l as wiseInvoicingApiErrorI18nKeys, Al as wiseInvoicingLocales, cl as wiseInvoicingSettingsRoutes };
5218
+ export { se as AddressUtil, _e as DownloadUtil, xe as MonetaryTransformer, kl as NumberUtil, Te as Percentage, we as PercentageTransformer, c as SortDirection, Kt as SortUtil, g as WiseInvoicingCustomFieldEntityType, y as WiseInvoicingCustomFieldType, ge as WiseInvoicingCustomFieldValueUtil, me as WiseInvoicingCustomFieldViewKey, cr as WiseInvoicingCustomerDunningCasesSection, Ol as WiseInvoicingCustomerInvoiceList, Ni as WiseInvoicingDunningCaseDetailView, Fa as WiseInvoicingDunningCaseOverviewView, fo as WiseInvoicingDunningCaseReminderPdfView, Xc as WiseInvoicingInvoiceOverviewView, tl as WiseInvoicingInvoicePublicPdfViewDataProvider, Ts as WiseInvoicingReminderSettingsView, le as addressFormSchema, er as creditNoteUuidSchema, te as initWiseInvoicingConfig, Os as invoiceUuidSchema, Qn as onCreated, ee as toMajorUnits, S as toMinorUnits, C as useCurrencyFormat, v as useDocumentTitle, Es as useInvoiceNavigateToDetailAction, ne as useSearch, ie as useSort, vl as useWiseInvoicingApiError, w as useWiseInvoicingConfig, tr as useWiseInvoicingDunningCaseIndexQuery, Ds as useWiseInvoicingInvoicePublicDetailQuery, fl as useWiseInvoicingPublicRoutes, $n as useWiseInvoicingQueryInvalidation, hl as useWiseInvoicingRoutes, gl as useWiseInvoicingStandaloneRoutes, _l as wiseInvoicingApiErrorI18nKeys, Al as wiseInvoicingLocales, cl as wiseInvoicingSettingsRoutes };