@wisemen/wise-invoicing-web 1.0.0 → 1.2.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 (92) hide show
  1. package/dist/AccountingSettingsViewDataProvider-BtDPqr_P.js +981 -0
  2. package/dist/{ApprovalReminderSettingsViewDataProvider-DyrHExKn.js → ApprovalReminderSettingsViewDataProvider-CuFo2JF5.js} +287 -287
  3. package/dist/{BillingDocumentDetailViewDataProvider-kFzqhrxW.js → BillingDocumentDetailViewDataProvider-qKW6LiRR.js} +1629 -1604
  4. package/dist/{BillingDocumentPdf-Dp6HSypy.js → BillingDocumentPdf-CgnrE4eq.js} +5 -5
  5. package/dist/{DataProvider-BtnD-BzI.js → DataProvider-Dj5ckiN2.js} +6 -9
  6. package/dist/{DunningCaseSendDialog-1S6OD9wd.js → DunningCaseSendDialog-CQ1yvbUt.js} +36 -36
  7. package/dist/{InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js → InvoiceApprovalOutOfSyncIndicator-BeqzoD3H.js} +2 -2
  8. package/dist/{InvoiceApprovalOverviewView-DM_LiO19.js → InvoiceApprovalOverviewView-B0ulYsYy.js} +230 -230
  9. package/dist/{InvoiceApprovalStatusBadge-mbYHYU3x.js → InvoiceApprovalStatusBadge-BZuyVHKk.js} +4 -4
  10. package/dist/{InvoicePdfView-YbDJpTIA.js → InvoicePdfView-BBTa7EaO.js} +2 -2
  11. package/dist/{InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js → InvoicePublicProFormaPdfViewDataProvider-_Tbt2pTv.js} +4 -4
  12. package/dist/{InvoiceRejectDialogDataProvider-yegAlkDB.js → InvoiceRejectDialogDataProvider-ma2UsSzC.js} +33 -33
  13. package/dist/{InvoiceStatusBadge-Bo5PDjEy.js → InvoiceStatusBadge-JIR1gUDL.js} +3 -3
  14. package/dist/{InvoicingFileUploadProvider-DVh22OUB.js → InvoicingFileUploadProvider-B-eq6i9v.js} +14 -14
  15. package/dist/{IssuerSettingsViewDataProvider-BgSFemZr.js → IssuerSettingsViewDataProvider-CHyCCy9K.js} +66 -66
  16. package/dist/{PeppolSettingsViewDataProvider-_Bx0xx9e.js → PeppolSettingsViewDataProvider-j1btvXOf.js} +4 -4
  17. package/dist/{api.util-lGbimoKL.js → api.util-BkwbrwEm.js} +1026 -800
  18. package/dist/billingDocumentDetail.transformer-B-GSRQc0.js +324 -0
  19. package/dist/client/index.d.ts +2 -2
  20. package/dist/client/sdk.gen.d.ts +10 -1
  21. package/dist/client/types.gen.d.ts +452 -1
  22. package/dist/client/zod.gen.d.ts +524 -0
  23. package/dist/composables/invoicingConfig.composable.d.ts +3 -0
  24. package/dist/{creditNoteDetail.query-CqJeWeRV.js → creditNoteDetail.query-Tg4s5B8Q.js} +34 -34
  25. package/dist/{customFieldDefinitionIndex.query-Co7hoMow.js → customFieldDefinitionIndex.query-DtMibcTn.js} +28 -28
  26. package/dist/{deliveryReason.util-ny1rA7Sm.js → deliveryReason.util-BuCD1Fuz.js} +6 -6
  27. package/dist/{dist-CrNFh-CR.js → dist-AbMUaDf-.js} +93 -93
  28. package/dist/{dist-DmVrfBOT.js → dist-DaJ08k0k.js} +231 -119
  29. package/dist/{documentTitle.composable-aTEYXgaZ.js → documentTitle.composable-Bxu0YL71.js} +27 -19
  30. package/dist/{i18n.lib-B1H9r0km.js → i18n.lib-C8TA6PCf.js} +162 -2
  31. package/dist/index.d.ts +160 -0
  32. package/dist/index.js +1576 -1554
  33. package/dist/instant.transformer-KmBsH3E9.js +18 -0
  34. package/dist/{invoice.service-D9ubyWPb.js → invoice.service-BtgRZKrv.js} +152 -151
  35. package/dist/{invoiceApproval.service-BtDIOHIo.js → invoiceApproval.service-DEvaL-MH.js} +22 -21
  36. package/dist/invoiceApprovalStatus.util-NpxAuQ0t.js +83 -0
  37. package/dist/{invoiceCustomer.service-D0AtVrLg.js → invoiceCustomer.service-Cowdna7o.js} +6 -6
  38. package/dist/{invoiceDetail.query-BNL6MkvC.js → invoiceDetail.query-nEhWRrdL.js} +1 -1
  39. package/dist/{invoicingConfig.composable-DEF0lzNP.js → invoicingConfig.composable-CW47czLa.js} +20 -19
  40. package/dist/{issuerSettings.query-Cu-I6OAg.js → issuerSettings.query-CIWw1Zku.js} +27 -27
  41. package/dist/libs/i18n.lib.d.ts +160 -0
  42. package/dist/locales/en-US.json.d.ts +81 -1
  43. package/dist/locales/nl-BE.json.d.ts +81 -1
  44. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +7 -1
  45. package/dist/modules/accounting/api/mutations/accountingConnectionDisconnect.mutation.d.ts +4 -0
  46. package/dist/modules/accounting/api/mutations/accountingPostingProfileUpdate.mutation.d.ts +15 -0
  47. package/dist/modules/accounting/api/mutations/exactAccountingConnect.mutation.d.ts +6 -0
  48. package/dist/modules/accounting/api/queries/accountingConnection.query.d.ts +1 -0
  49. package/dist/modules/accounting/api/queries/exactAuthorizationConfig.query.d.ts +1 -0
  50. package/dist/modules/accounting/api/queries/exactGlAccounts.query.d.ts +3 -0
  51. package/dist/modules/accounting/api/queries/exactJournals.query.d.ts +3 -0
  52. package/dist/modules/accounting/api/query-keys/accounting.queryKeys.d.ts +24 -0
  53. package/dist/modules/accounting/api/services/accountingConnection.service.d.ts +19 -0
  54. package/dist/modules/accounting/components/AccountingPostingProfileFields.vue.d.ts +14 -0
  55. package/dist/modules/accounting/components/AccountingSyncStatusBadge.vue.d.ts +7 -0
  56. package/dist/modules/accounting/components/ExactGlAccountField.vue.d.ts +12 -0
  57. package/dist/modules/accounting/components/ExactLogo.vue.d.ts +3 -0
  58. package/dist/modules/accounting/composables/exactLookupError.composable.d.ts +19 -0
  59. package/dist/modules/accounting/models/accountingConnection.model.d.ts +34 -0
  60. package/dist/modules/accounting/models/accountingConnection.transformer.d.ts +23 -0
  61. package/dist/modules/accounting/models/accountingConnection.transformer.spec.d.ts +1 -0
  62. package/dist/modules/accounting/models/accountingConnectionReadiness.util.d.ts +10 -0
  63. package/dist/modules/accounting/models/accountingConnectionUuid.model.d.ts +3 -0
  64. package/dist/modules/accounting/models/accountingError.util.d.ts +13 -0
  65. package/dist/modules/accounting/models/accountingError.util.spec.d.ts +1 -0
  66. package/dist/modules/accounting/models/accountingPostingProfileForm.model.d.ts +14 -0
  67. package/dist/modules/accounting/models/accountingPostingProfileForm.model.spec.d.ts +1 -0
  68. package/dist/modules/accounting/models/accountingPostingProfileUpdateForm.model.d.ts +17 -0
  69. package/dist/modules/accounting/models/exactAccountingConnectForm.model.d.ts +9 -0
  70. package/dist/modules/accounting/models/exactAccountingConnectForm.model.spec.d.ts +1 -0
  71. package/dist/modules/accounting/models/exactLookupOption.model.d.ts +5 -0
  72. package/dist/modules/accounting/models/exactLookupOption.util.d.ts +4 -0
  73. package/dist/modules/accounting/models/exactRegion.util.d.ts +5 -0
  74. package/dist/modules/accounting/models/exactRegion.util.spec.d.ts +1 -0
  75. package/dist/modules/accounting/routes/accounting.routes.d.ts +9 -0
  76. package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionDetails.vue.d.ts +7 -0
  77. package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionNotice.vue.d.ts +11 -0
  78. package/dist/modules/accounting/use-cases/settings/components/AccountingPostingProfileForm.vue.d.ts +8 -0
  79. package/dist/modules/accounting/use-cases/settings/components/ExactAccountingConnectForm.vue.d.ts +12 -0
  80. package/dist/modules/accounting/use-cases/settings/composables/accountingAuthorizationResult.composable.d.ts +5 -0
  81. package/dist/modules/accounting/use-cases/settings/composables/exactConnect.composable.d.ts +11 -0
  82. package/dist/modules/accounting/use-cases/settings/dialogs/AccountingConnectionDisconnectDialog.vue.d.ts +11 -0
  83. package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsView.vue.d.ts +9 -0
  84. package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsViewDataProvider.vue.d.ts +3 -0
  85. package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
  86. package/dist/{plainDate.transformer-Bhiz9jW7.js → plainDate.transformer-BxvJpJOv.js} +4 -17
  87. package/dist/{reminderConfig.query-DHMHVOeX.js → reminderConfig.query-nb1P7ufx.js} +38 -37
  88. package/dist/types/queryKey.type.d.ts +3 -2
  89. package/dist/ui/data-provider/DataProvider.vue.d.ts +5 -1
  90. package/package.json +1 -1
  91. package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +0 -319
  92. package/dist/invoiceApprovalStatus.util-Bqq_bILG.js +0 -83
@@ -1,31 +1,31 @@
1
- import { t as e } from "./i18n.lib-B1H9r0km.js";
2
- import "./api.util-lGbimoKL.js";
3
- import { c as t, t as n } from "./documentTitle.composable-aTEYXgaZ.js";
4
- import { M as r, N as i, W as a, ct as o, f as s, ft as c, gt as l, n as u, st as d, ut as f } from "./dist-DmVrfBOT.js";
1
+ import { t as e } from "./i18n.lib-C8TA6PCf.js";
2
+ import "./api.util-BkwbrwEm.js";
3
+ import { d as t, t as n } from "./documentTitle.composable-Bxu0YL71.js";
4
+ import { G as r, M as i, N as a, St as o, dt as s, f as c, ft as l, gt as u, mt as d, n as f } from "./dist-DaJ08k0k.js";
5
5
  import { n as p } from "./dist-CyUNvdkD.js";
6
6
  import { t as m } from "./formango.util-D5c2ql--.js";
7
- import { t as h } from "./DataProvider-BtnD-BzI.js";
8
- import { t as g } from "./ReminderTemplatesPanel-DxmfU2xK.js";
9
- import { a as _, i as v, n as y, o as b, r as x, t as S } from "./invoiceApproval.service-BtDIOHIo.js";
10
- import { z as C } from "zod";
11
- import { useI18n as w } from "vue-i18n";
12
- import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createVNode as j, defineComponent as M, mergeProps as N, openBlock as P, ref as F, renderList as I, toDisplayString as ee, unref as L, withCtx as R } from "vue";
13
- import { ApiErrorUtil as te, useMutation as z, useQuery as ne } from "@wisemen/vue-core-api-utils";
14
- import { Temporal as B } from "temporal-polyfill";
15
- import { UIBadge as V, UIButton as H, UIDashboardPage as re, UIDashboardPageContent as ie, UIDashboardPageLoadingState as U, UIDateField as W, UIDateRangeField as G, UIDialogBody as ae, UIDialogFooter as K, UIDialogFooterCancel as q, UIDialogFooterSubmit as oe, UIDialogHeader as J, UIEmptyState as se, UIForm as ce, UIFormDialog as le, UIFormFieldGroup as ue, UIFormSubmitButton as de, UIIconButton as Y, UINumberField as fe, UISelect as pe, UITabs as me, UITabsItem as he, UITabsList as ge, UIText as X, UITextField as _e, createSelectOptions as ve, useOverlay as ye, useToast as Z } from "@wisemen/vue-core-design-system";
7
+ import { t as h } from "./DataProvider-Dj5ckiN2.js";
8
+ import { t as ee } from "./ReminderTemplatesPanel-DxmfU2xK.js";
9
+ import { a as g, i as _, n as v, o as y, r as b, t as x } from "./invoiceApproval.service-DEvaL-MH.js";
10
+ import { z as S } from "zod";
11
+ import { useI18n as C } from "vue-i18n";
12
+ import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createVNode as A, defineComponent as j, mergeProps as M, openBlock as N, ref as P, renderList as F, toDisplayString as te, unref as I, withCtx as L } from "vue";
13
+ import { ApiErrorUtil as R, useMutation as z, useQuery as B } from "@wisemen/vue-core-api-utils";
14
+ import { Temporal as V } from "temporal-polyfill";
15
+ import { UIBadge as H, UIButton as U, UIDashboardPage as ne, UIDashboardPageContent as re, UIDashboardPageLoadingState as W, UIDateField as G, UIDateRangeField as K, UIDialogBody as ie, UIDialogFooter as q, UIDialogFooterCancel as J, UIDialogFooterSubmit as ae, UIDialogHeader as oe, UIEmptyState as se, UIForm as ce, UIFormDialog as le, UIFormFieldGroup as ue, UIFormSubmitButton as de, UIIconButton as Y, UINumberField as fe, UISelect as pe, UITabs as me, UITabsItem as he, UITabsList as ge, UIText as X, UITextField as _e, createSelectOptions as ve, useOverlay as ye, useToast as Z } from "@wisemen/vue-core-design-system";
16
16
  import { useForm as be } from "formango";
17
17
  //#region src/modules/invoice-approval/api/queries/approvalReminderConfig.query.ts
18
18
  function xe() {
19
- return ne("approvalReminderConfig", {
19
+ return B("approvalReminderConfig", {
20
20
  params: {},
21
- queryFn: () => S.getReminderConfigs()
21
+ queryFn: () => x.getReminderConfigs()
22
22
  });
23
23
  }
24
24
  //#endregion
25
25
  //#region src/modules/invoice-approval/api/mutations/approvalMailTemplateUpdate.mutation.ts
26
26
  function Se() {
27
27
  return z({
28
- queryFn: (e) => S.updateMailTemplate(e.body),
28
+ queryFn: (e) => x.updateMailTemplate(e.body),
29
29
  queryKeysToInvalidate: { approvalReminderConfig: {} }
30
30
  });
31
31
  }
@@ -33,18 +33,18 @@ function Se() {
33
33
  //#region src/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.ts
34
34
  function Ce() {
35
35
  return z({
36
- queryFn: (e) => S.updateReminderConfigs(e.body),
36
+ queryFn: (e) => x.updateReminderConfigs(e.body),
37
37
  queryKeysToInvalidate: { approvalReminderConfig: {} }
38
38
  });
39
39
  }
40
40
  //#endregion
41
41
  //#region src/modules/invoice-approval/models/approvalReminderConfigForm.model.ts
42
- var we = 2, Te = C.object({
43
- offsetDays: C.number().int().min(1).max(365),
44
- schedule: C.enum(t),
45
- sequence: C.number().int().min(1).max(we),
46
- template: _
47
- }), Ee = C.object({ reminders: C.array(Te).length(we) }).superRefine((n, r) => {
42
+ var we = 2, Te = S.object({
43
+ offsetDays: S.number().int().min(1).max(365),
44
+ schedule: S.enum(t),
45
+ sequence: S.number().int().min(1).max(we),
46
+ template: g
47
+ }), Ee = S.object({ reminders: S.array(Te).length(we) }).superRefine((n, r) => {
48
48
  n.reminders[0]?.schedule !== t.AFTER_APPROVAL_REQUEST && r.addIssue({
49
49
  code: "custom",
50
50
  message: e.global.t("wise_invoicing.invoice_approval.settings.validation.level_one_after_request"),
@@ -75,15 +75,15 @@ var we = 2, Te = C.object({
75
75
  ]
76
76
  }), i = n;
77
77
  }
78
- }), De = C.object({
79
- mailTemplate: _,
78
+ }), De = S.object({
79
+ mailTemplate: g,
80
80
  reminderConfig: Ee
81
81
  });
82
82
  //#endregion
83
83
  //#region src/modules/invoice-approval/api/mutations/approvalFollowUpPauseUpdate.mutation.ts
84
84
  function Oe() {
85
85
  return z({
86
- queryFn: (e) => S.updateFollowUpPause(e.params.pauseUuid, e.body),
86
+ queryFn: (e) => x.updateFollowUpPause(e.params.pauseUuid, e.body),
87
87
  queryKeysToInvalidate: {
88
88
  approvalFollowUpPauseIndex: {},
89
89
  invoiceApprovalIndex: {}
@@ -93,9 +93,9 @@ function Oe() {
93
93
  //#endregion
94
94
  //#region src/modules/invoice-approval/api/queries/approvalFollowUpPauseIndex.query.ts
95
95
  function Q(e) {
96
- return ne("approvalFollowUpPauseIndex", {
96
+ return B("approvalFollowUpPauseIndex", {
97
97
  params: { isPast: e },
98
- queryFn: () => S.getFollowUpPauses(e)
98
+ queryFn: () => x.getFollowUpPauses(e)
99
99
  });
100
100
  }
101
101
  //#endregion
@@ -119,20 +119,20 @@ var ke = {
119
119
  }
120
120
  static countYearsToNextOccurrence(e, t) {
121
121
  let n = Math.max(1, t.year - e.year);
122
- return B.PlainDate.compare(e.add({ years: n }), t) < 0 ? n + 1 : n;
122
+ return V.PlainDate.compare(e.add({ years: n }), t) < 0 ? n + 1 : n;
123
123
  }
124
124
  static findOverlap(e, t, n) {
125
- return e.find((e) => B.PlainDate.compare(e.startDate, n) <= 0 && B.PlainDate.compare(t, e.endDate) <= 0) ?? null;
125
+ return e.find((e) => V.PlainDate.compare(e.startDate, n) <= 0 && V.PlainDate.compare(t, e.endDate) <= 0) ?? null;
126
126
  }
127
127
  static findUpcomingOccurrence(e, t, n) {
128
128
  return e.map((e) => ({
129
129
  startDate: e.startDate.add({ years: this.countYearsToNextOccurrence(e.endDate, t) }),
130
130
  pause: e
131
- })).filter((e) => this.countDaysUntilStart(e.startDate, t) <= n).toSorted((e, t) => B.PlainDate.compare(e.startDate, t.startDate)).at(0) ?? null;
131
+ })).filter((e) => this.countDaysUntilStart(e.startDate, t) <= n).toSorted((e, t) => V.PlainDate.compare(e.startDate, t.startDate)).at(0) ?? null;
132
132
  }
133
133
  static format(e, t, n, r = !1) {
134
134
  let i = e.year === t.year, a = r && i ? ke : Ae, o = t.toLocaleString(n, a);
135
- return B.PlainDate.compare(e, t) === 0 ? o : `${e.toLocaleString(n, i ? ke : Ae)} – ${o}`;
135
+ return V.PlainDate.compare(e, t) === 0 ? o : `${e.toLocaleString(n, i ? ke : Ae)} – ${o}`;
136
136
  }
137
137
  static formatStartsIn(e, t, n) {
138
138
  let r = new Intl.RelativeTimeFormat(n, { numeric: "auto" }), i = this.countDaysUntilStart(e, t);
@@ -148,7 +148,7 @@ var ke = {
148
148
  }, je = { class: "flex items-center justify-between gap-lg px-xl py-lg" }, Me = {
149
149
  key: 0,
150
150
  class: "flex min-w-0 flex-1 flex-col gap-xxs"
151
- }, Ne = { class: "flex shrink-0 items-center gap-xs" }, Pe = /* @__PURE__ */ M({
151
+ }, Ne = { class: "flex shrink-0 items-center gap-xs" }, Pe = /* @__PURE__ */ j({
152
152
  __name: "ApprovalFollowUpPauseRow",
153
153
  props: {
154
154
  isPast: { type: Boolean },
@@ -162,63 +162,63 @@ var ke = {
162
162
  "update"
163
163
  ],
164
164
  setup(e, { emit: t }) {
165
- let n = e, o = t, s = w(), c = B.Now.plainDateISO(), l = E(() => {
166
- let e = $.format(n.pause.startDate, n.pause.endDate, s.locale.value, n.isYearHidden), t = $.countDays(n.pause.startDate, n.pause.endDate);
167
- return `${e} · ${s.t("wise_invoicing.invoice_approval.settings.pauses.days", { count: t }, t)}`;
168
- }), u = E(() => !n.isPast && B.PlainDate.compare(n.pause.startDate, c) <= 0), f = E(() => u.value && B.PlainDate.compare(n.pause.endDate, c) > 0), p = E(() => {
165
+ let n = e, o = t, c = C(), l = V.Now.plainDateISO(), u = T(() => {
166
+ let e = $.format(n.pause.startDate, n.pause.endDate, c.locale.value, n.isYearHidden), t = $.countDays(n.pause.startDate, n.pause.endDate);
167
+ return `${e} · ${c.t("wise_invoicing.invoice_approval.settings.pauses.days", { count: t }, t)}`;
168
+ }), d = T(() => !n.isPast && V.PlainDate.compare(n.pause.startDate, l) <= 0), f = T(() => d.value && V.PlainDate.compare(n.pause.endDate, l) > 0), p = T(() => {
169
169
  if (n.isPast) return null;
170
- if (u.value) {
171
- let e = $.countDaysLeft(n.pause.endDate, c);
172
- return s.t("wise_invoicing.invoice_approval.settings.pauses.days_left", { count: e }, e);
170
+ if (d.value) {
171
+ let e = $.countDaysLeft(n.pause.endDate, l);
172
+ return c.t("wise_invoicing.invoice_approval.settings.pauses.days_left", { count: e }, e);
173
173
  }
174
- return s.t("wise_invoicing.invoice_approval.settings.pauses.starts_in", { relative: $.formatStartsIn(n.pause.startDate, c, s.locale.value) });
175
- }), m = E(() => n.pause.startDate.add({ years: $.countYearsToNextOccurrence(n.pause.endDate, c) }).year);
176
- return (e, t) => (P(), k("li", je, [n.isPast ? (P(), k("div", Me, [j(L(X), {
174
+ return c.t("wise_invoicing.invoice_approval.settings.pauses.starts_in", { relative: $.formatStartsIn(n.pause.startDate, l, c.locale.value) });
175
+ }), m = T(() => n.pause.startDate.add({ years: $.countYearsToNextOccurrence(n.pause.endDate, l) }).year);
176
+ return (e, t) => (N(), O("li", je, [n.isPast ? (N(), O("div", Me, [A(I(X), {
177
177
  text: n.pause.name,
178
178
  class: "text-sm font-medium text-primary"
179
- }, null, 8, ["text"]), j(L(X), {
180
- text: l.value,
179
+ }, null, 8, ["text"]), A(I(X), {
180
+ text: u.value,
181
181
  class: "text-sm text-tertiary"
182
- }, null, 8, ["text"])])) : (P(), k("button", {
182
+ }, null, 8, ["text"])])) : (N(), O("button", {
183
183
  key: 1,
184
184
  class: "flex min-w-0 flex-1 cursor-pointer flex-col gap-xxs text-left",
185
185
  type: "button",
186
186
  onClick: t[0] ||= (e) => o("update")
187
- }, [j(L(X), {
187
+ }, [A(I(X), {
188
188
  text: n.pause.name,
189
189
  class: "text-sm font-medium text-primary"
190
- }, null, 8, ["text"]), j(L(X), {
191
- text: l.value,
190
+ }, null, 8, ["text"]), A(I(X), {
191
+ text: u.value,
192
192
  class: "text-sm text-tertiary"
193
- }, null, 8, ["text"])])), A("div", Ne, [p.value === null ? O("", !0) : (P(), D(L(V), {
193
+ }, null, 8, ["text"])])), k("div", Ne, [p.value === null ? D("", !0) : (N(), E(I(H), {
194
194
  key: 0,
195
- color: u.value ? "success" : "gray",
195
+ color: d.value ? "success" : "gray",
196
196
  label: p.value,
197
197
  size: "sm"
198
- }, null, 8, ["color", "label"])), n.isPast ? (P(), D(L(Y), {
198
+ }, null, 8, ["color", "label"])), n.isPast ? (N(), E(I(Y), {
199
199
  key: 1,
200
- icon: L(i),
201
- label: L(s).t("wise_invoicing.invoice_approval.settings.pauses.copy_to_year", {
200
+ icon: I(a),
201
+ label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.copy_to_year", {
202
202
  name: n.pause.name,
203
203
  year: m.value
204
204
  }),
205
205
  variant: "tertiary",
206
206
  onClick: t[1] ||= (e) => o("copy")
207
- }, null, 8, ["icon", "label"])) : (P(), k(T, { key: 2 }, [j(L(Y), {
208
- icon: L(r),
209
- label: L(s).t("wise_invoicing.invoice_approval.settings.pauses.edit", { name: n.pause.name }),
207
+ }, null, 8, ["icon", "label"])) : (N(), O(w, { key: 2 }, [A(I(Y), {
208
+ icon: I(i),
209
+ label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.edit", { name: n.pause.name }),
210
210
  variant: "tertiary",
211
211
  onClick: t[2] ||= (e) => o("update")
212
- }, null, 8, ["icon", "label"]), f.value ? (P(), D(L(Y), {
212
+ }, null, 8, ["icon", "label"]), f.value ? (N(), E(I(Y), {
213
213
  key: 0,
214
- icon: L(d),
215
- label: L(s).t("wise_invoicing.invoice_approval.settings.pauses.end_today", { name: n.pause.name }),
214
+ icon: I(s),
215
+ label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.end_today", { name: n.pause.name }),
216
216
  variant: "tertiary",
217
217
  onClick: t[3] ||= (e) => o("end")
218
- }, null, 8, ["icon", "label"])) : u.value ? O("", !0) : (P(), D(L(Y), {
218
+ }, null, 8, ["icon", "label"])) : d.value ? D("", !0) : (N(), E(I(Y), {
219
219
  key: 1,
220
- icon: L(a),
221
- label: L(s).t("wise_invoicing.invoice_approval.settings.pauses.delete_label", { name: n.pause.name }),
220
+ icon: I(r),
221
+ label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.delete_label", { name: n.pause.name }),
222
222
  variant: "tertiary",
223
223
  onClick: t[4] ||= (e) => o("delete")
224
224
  }, null, 8, ["icon", "label"]))], 64))])]));
@@ -229,7 +229,7 @@ var ke = {
229
229
  }, Ie = { class: "flex flex-col divide-y divide-secondary rounded-md border border-secondary" }, Le = {
230
230
  key: 1,
231
231
  class: "flex flex-col divide-y divide-secondary rounded-md border border-secondary"
232
- }, Re = /* @__PURE__ */ M({
232
+ }, Re = /* @__PURE__ */ j({
233
233
  __name: "ApprovalFollowUpPauseList",
234
234
  props: {
235
235
  isGroupedByYear: { type: Boolean },
@@ -243,7 +243,7 @@ var ke = {
243
243
  "update"
244
244
  ],
245
245
  setup(e, { emit: t }) {
246
- let n = e, r = t, i = E(() => {
246
+ let n = e, r = t, i = T(() => {
247
247
  let e = [];
248
248
  for (let t of n.pauses) {
249
249
  let n = e.find((e) => e.year === t.startDate.year);
@@ -254,13 +254,13 @@ var ke = {
254
254
  }
255
255
  return e;
256
256
  });
257
- return (e, t) => n.isGroupedByYear ? (P(), k("div", Fe, [(P(!0), k(T, null, I(i.value, (e) => (P(), k("div", {
257
+ return (e, t) => n.isGroupedByYear ? (N(), O("div", Fe, [(N(!0), O(w, null, F(i.value, (e) => (N(), O("div", {
258
258
  key: e.year,
259
259
  class: "flex flex-col gap-sm"
260
- }, [j(L(X), {
260
+ }, [A(I(X), {
261
261
  text: String(e.year),
262
262
  class: "text-xs font-medium text-tertiary"
263
- }, null, 8, ["text"]), A("ul", Ie, [(P(!0), k(T, null, I(e.pauses, (e) => (P(), D(Pe, {
263
+ }, null, 8, ["text"]), k("ul", Ie, [(N(!0), O(w, null, F(e.pauses, (e) => (N(), E(Pe, {
264
264
  key: e.uuid,
265
265
  "is-past": n.isPast,
266
266
  "is-year-hidden": !0,
@@ -276,7 +276,7 @@ var ke = {
276
276
  "onDelete",
277
277
  "onEnd",
278
278
  "onUpdate"
279
- ]))), 128))])]))), 128))])) : (P(), k("ul", Le, [(P(!0), k(T, null, I(n.pauses, (e) => (P(), D(Pe, {
279
+ ]))), 128))])]))), 128))])) : (N(), O("ul", Le, [(N(!0), O(w, null, F(n.pauses, (e) => (N(), E(Pe, {
280
280
  key: e.uuid,
281
281
  "is-past": n.isPast,
282
282
  "is-year-hidden": !1,
@@ -294,31 +294,31 @@ var ke = {
294
294
  "onUpdate"
295
295
  ]))), 128))]));
296
296
  }
297
- }), ze = { class: "flex flex-col gap-xl" }, Be = { class: "flex flex-col" }, Ve = ["aria-label"], He = ["aria-label"], Ue = { key: 0 }, We = ["aria-label"], Ge = 60, Ke = 3, qe = /* @__PURE__ */ M({
297
+ }), ze = { class: "flex flex-col gap-xl" }, Be = { class: "flex flex-col" }, Ve = ["aria-label"], He = ["aria-label"], Ue = { key: 0 }, We = ["aria-label"], Ge = 60, Ke = 3, qe = /* @__PURE__ */ j({
298
298
  __name: "ApprovalFollowUpPausesPanel",
299
299
  props: { dialogs: {} },
300
300
  setup(e) {
301
- let t = e, n = w(), r = Z(), i = Oe(), a = B.Now.plainDateISO(), s = Q(!1), d = E(() => s.result.value.match({
301
+ let t = e, n = C(), r = Z(), i = Oe(), a = V.Now.plainDateISO(), s = Q(!1), c = T(() => s.result.value.match({
302
302
  err: () => [],
303
303
  loading: () => [],
304
304
  ok: (e) => e
305
- })), f = E(() => d.value.filter((e) => B.PlainDate.compare(e.startDate, a) <= 0)), p = E(() => d.value.filter((e) => B.PlainDate.compare(e.startDate, a) > 0)), m = F(!1), h = E(() => p.value.length > Ke), g = E(() => m.value ? p.value : p.value.slice(0, Ke)), _ = Q(!0), v = E(() => _.result.value.match({
305
+ })), d = T(() => c.value.filter((e) => V.PlainDate.compare(e.startDate, a) <= 0)), p = T(() => c.value.filter((e) => V.PlainDate.compare(e.startDate, a) > 0)), m = P(!1), h = T(() => p.value.length > Ke), ee = T(() => m.value ? p.value : p.value.slice(0, Ke)), g = Q(!0), _ = T(() => g.result.value.match({
306
306
  err: () => [],
307
307
  loading: () => [],
308
308
  ok: (e) => e
309
- })), y = F(!1), b = E(() => $.findUpcomingOccurrence(v.value, a, Ge)), x = E(() => {
310
- if (b.value === null) return n.t("wise_invoicing.invoice_approval.settings.pauses.empty_description");
311
- let { startDate: e, pause: t } = b.value;
309
+ })), v = P(!1), y = T(() => $.findUpcomingOccurrence(_.value, a, Ge)), b = T(() => {
310
+ if (y.value === null) return n.t("wise_invoicing.invoice_approval.settings.pauses.empty_description");
311
+ let { startDate: e, pause: t } = y.value;
312
312
  return n.t("wise_invoicing.invoice_approval.settings.pauses.suggestion", {
313
313
  name: t.name,
314
314
  period: $.format(t.startDate, t.endDate, n.locale.value),
315
315
  year: e.year
316
316
  });
317
317
  });
318
- async function S() {
319
- b.value !== null && await t.dialogs.openCopy(b.value.pause);
318
+ async function x() {
319
+ y.value !== null && await t.dialogs.openCopy(y.value.pause);
320
320
  }
321
- async function C(e) {
321
+ async function S(e) {
322
322
  let t = await i.execute({
323
323
  body: {
324
324
  name: e.name,
@@ -331,24 +331,24 @@ var ke = {
331
331
  });
332
332
  t.isErr() ? r.apiError(t.error) : r.show({ message: n.t("wise_invoicing.invoice_approval.settings.pauses.end_success", { name: e.name }) });
333
333
  }
334
- return (e, r) => (P(), k("div", ze, [
335
- A("div", Be, [j(L(X), {
336
- text: L(n).t("wise_invoicing.invoice_approval.settings.pauses.description"),
334
+ return (e, r) => (N(), O("div", ze, [
335
+ k("div", Be, [A(I(X), {
336
+ text: I(n).t("wise_invoicing.invoice_approval.settings.pauses.description"),
337
337
  truncate: !1,
338
338
  class: "text-sm text-tertiary"
339
- }, null, 8, ["text"]), j(L(X), {
340
- text: L(n).t("wise_invoicing.invoice_approval.settings.pauses.scope_note"),
339
+ }, null, 8, ["text"]), A(I(X), {
340
+ text: I(n).t("wise_invoicing.invoice_approval.settings.pauses.scope_note"),
341
341
  truncate: !1,
342
342
  class: "text-sm text-tertiary"
343
343
  }, null, 8, ["text"])]),
344
- L(s).isError.value ? (P(), D(L(se), {
344
+ I(s).isError.value ? (N(), E(I(se), {
345
345
  key: 0,
346
- title: L(n).t("wise_invoicing.invoice_approval.settings.pauses.load_error_title"),
347
- description: L(n).t("wise_invoicing.invoice_approval.settings.pauses.load_error_description"),
348
- icon: L(l),
346
+ title: I(n).t("wise_invoicing.invoice_approval.settings.pauses.load_error_title"),
347
+ description: I(n).t("wise_invoicing.invoice_approval.settings.pauses.load_error_description"),
348
+ icon: I(o),
349
349
  "primary-action": {
350
- label: L(n).t("wise_invoicing.invoice_approval.settings.pauses.retry"),
351
- onClick: L(s).refetch,
350
+ label: I(n).t("wise_invoicing.invoice_approval.settings.pauses.retry"),
351
+ onClick: I(s).refetch,
352
352
  type: "button"
353
353
  }
354
354
  }, null, 8, [
@@ -356,14 +356,14 @@ var ke = {
356
356
  "description",
357
357
  "icon",
358
358
  "primary-action"
359
- ])) : d.value.length === 0 && !L(s).isLoading.value ? (P(), D(L(se), {
359
+ ])) : c.value.length === 0 && !I(s).isLoading.value ? (N(), E(I(se), {
360
360
  key: 1,
361
- title: L(n).t("wise_invoicing.invoice_approval.settings.pauses.empty_title"),
362
- description: x.value,
363
- icon: L(c),
364
- "primary-action": b.value === null ? null : {
365
- label: L(n).t("wise_invoicing.invoice_approval.settings.pauses.suggestion_action", { year: b.value.startDate.year }),
366
- onClick: S,
361
+ title: I(n).t("wise_invoicing.invoice_approval.settings.pauses.empty_title"),
362
+ description: b.value,
363
+ icon: I(u),
364
+ "primary-action": y.value === null ? null : {
365
+ label: I(n).t("wise_invoicing.invoice_approval.settings.pauses.suggestion_action", { year: y.value.startDate.year }),
366
+ onClick: x,
367
367
  type: "button"
368
368
  }
369
369
  }, null, 8, [
@@ -371,34 +371,34 @@ var ke = {
371
371
  "description",
372
372
  "icon",
373
373
  "primary-action"
374
- ])) : O("", !0),
375
- f.value.length > 0 ? (P(), k("section", {
374
+ ])) : D("", !0),
375
+ d.value.length > 0 ? (N(), O("section", {
376
376
  key: 2,
377
- "aria-label": L(n).t("wise_invoicing.invoice_approval.settings.pauses.active"),
377
+ "aria-label": I(n).t("wise_invoicing.invoice_approval.settings.pauses.active"),
378
378
  class: "flex flex-col gap-md"
379
- }, [j(L(X), {
380
- text: L(n).t("wise_invoicing.invoice_approval.settings.pauses.active"),
379
+ }, [A(I(X), {
380
+ text: I(n).t("wise_invoicing.invoice_approval.settings.pauses.active"),
381
381
  class: "text-sm font-medium text-primary"
382
- }, null, 8, ["text"]), j(Re, {
382
+ }, null, 8, ["text"]), A(Re, {
383
383
  "is-grouped-by-year": !1,
384
384
  "is-past": !1,
385
- pauses: f.value,
386
- onEnd: C,
385
+ pauses: d.value,
386
+ onEnd: S,
387
387
  onUpdate: t.dialogs.openUpdate
388
- }, null, 8, ["pauses", "onUpdate"])], 8, Ve)) : O("", !0),
389
- p.value.length > 0 ? (P(), k("section", {
388
+ }, null, 8, ["pauses", "onUpdate"])], 8, Ve)) : D("", !0),
389
+ p.value.length > 0 ? (N(), O("section", {
390
390
  key: 3,
391
- "aria-label": L(n).t("wise_invoicing.invoice_approval.settings.pauses.planned"),
391
+ "aria-label": I(n).t("wise_invoicing.invoice_approval.settings.pauses.planned"),
392
392
  class: "flex flex-col gap-md"
393
393
  }, [
394
- j(L(X), {
395
- text: L(n).t("wise_invoicing.invoice_approval.settings.pauses.planned_count", { count: p.value.length }),
394
+ A(I(X), {
395
+ text: I(n).t("wise_invoicing.invoice_approval.settings.pauses.planned_count", { count: p.value.length }),
396
396
  class: "text-sm font-medium text-primary"
397
397
  }, null, 8, ["text"]),
398
- j(Re, {
398
+ A(Re, {
399
399
  "is-grouped-by-year": m.value,
400
400
  "is-past": !1,
401
- pauses: g.value,
401
+ pauses: ee.value,
402
402
  onDelete: t.dialogs.openDelete,
403
403
  onUpdate: t.dialogs.openUpdate
404
404
  }, null, 8, [
@@ -407,35 +407,35 @@ var ke = {
407
407
  "onDelete",
408
408
  "onUpdate"
409
409
  ]),
410
- h.value ? (P(), k("div", Ue, [j(L(H), {
411
- label: m.value ? L(n).t("wise_invoicing.invoice_approval.settings.pauses.show_less") : L(n).t("wise_invoicing.invoice_approval.settings.pauses.show_more_planned", { count: p.value.length - Ke }),
410
+ h.value ? (N(), O("div", Ue, [A(I(U), {
411
+ label: m.value ? I(n).t("wise_invoicing.invoice_approval.settings.pauses.show_less") : I(n).t("wise_invoicing.invoice_approval.settings.pauses.show_more_planned", { count: p.value.length - Ke }),
412
412
  size: "sm",
413
413
  variant: "tertiary",
414
414
  onClick: r[0] ||= (e) => m.value = !m.value
415
- }, null, 8, ["label"])])) : O("", !0)
416
- ], 8, He)) : O("", !0),
417
- v.value.length > 0 ? (P(), k("section", {
415
+ }, null, 8, ["label"])])) : D("", !0)
416
+ ], 8, He)) : D("", !0),
417
+ _.value.length > 0 ? (N(), O("section", {
418
418
  key: 4,
419
- "aria-label": L(n).t("wise_invoicing.invoice_approval.settings.pauses.past"),
419
+ "aria-label": I(n).t("wise_invoicing.invoice_approval.settings.pauses.past"),
420
420
  class: "flex flex-col gap-md"
421
- }, [A("div", null, [j(L(H), {
422
- "aria-expanded": y.value,
423
- "icon-left": y.value ? L(o) : L(u),
424
- label: L(n).t("wise_invoicing.invoice_approval.settings.pauses.past_count", { count: v.value.length }),
421
+ }, [k("div", null, [A(I(U), {
422
+ "aria-expanded": v.value,
423
+ "icon-left": v.value ? I(l) : I(f),
424
+ label: I(n).t("wise_invoicing.invoice_approval.settings.pauses.past_count", { count: _.value.length }),
425
425
  size: "sm",
426
426
  variant: "tertiary",
427
- onClick: r[1] ||= (e) => y.value = !y.value
427
+ onClick: r[1] ||= (e) => v.value = !v.value
428
428
  }, null, 8, [
429
429
  "aria-expanded",
430
430
  "icon-left",
431
431
  "label"
432
- ])]), y.value ? (P(), D(Re, {
432
+ ])]), v.value ? (N(), E(Re, {
433
433
  key: 0,
434
434
  "is-grouped-by-year": !0,
435
435
  "is-past": !0,
436
- pauses: v.value,
436
+ pauses: _.value,
437
437
  onCopy: t.dialogs.openCopy
438
- }, null, 8, ["pauses", "onCopy"])) : O("", !0)], 8, We)) : O("", !0)
438
+ }, null, 8, ["pauses", "onCopy"])) : D("", !0)], 8, We)) : D("", !0)
439
439
  ]));
440
440
  }
441
441
  });
@@ -443,7 +443,7 @@ var ke = {
443
443
  //#region src/modules/invoice-approval/api/mutations/approvalFollowUpPauseDelete.mutation.ts
444
444
  function Je() {
445
445
  return z({
446
- queryFn: (e) => S.deleteFollowUpPause(e.params.pauseUuid),
446
+ queryFn: (e) => x.deleteFollowUpPause(e.params.pauseUuid),
447
447
  queryKeysToInvalidate: {
448
448
  approvalFollowUpPauseIndex: {},
449
449
  invoiceApprovalIndex: {}
@@ -452,38 +452,38 @@ function Je() {
452
452
  }
453
453
  //#endregion
454
454
  //#region src/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseDeleteDialog.vue
455
- var Ye = /* @__PURE__ */ M({
455
+ var Ye = /* @__PURE__ */ j({
456
456
  __name: "ApprovalFollowUpPauseDeleteDialog",
457
457
  props: { pause: {} },
458
458
  emits: ["close"],
459
459
  setup(e, { emit: t }) {
460
- let n = e, r = t, i = w(), o = Z(), s = Je(), c = be({
460
+ let n = e, i = t, a = C(), o = Z(), s = Je(), c = be({
461
461
  initialState: {},
462
- schema: C.object({}),
462
+ schema: S.object({}),
463
463
  onSubmit: async () => {
464
464
  let e = await s.execute({ params: { pauseUuid: n.pause.uuid } });
465
- e.isErr() ? o.apiError(e.error) : (o.show({ message: i.t("wise_invoicing.invoice_approval.settings.pauses.delete_success") }), r("close"));
465
+ e.isErr() ? o.apiError(e.error) : (o.show({ message: a.t("wise_invoicing.invoice_approval.settings.pauses.delete_success") }), i("close"));
466
466
  },
467
467
  onSubmitError: () => {
468
468
  o.unableToSave();
469
469
  }
470
470
  });
471
- return (e, t) => (P(), D(L(le), {
472
- form: L(c),
471
+ return (e, t) => (N(), E(I(le), {
472
+ form: I(c),
473
473
  size: "sm",
474
- onClose: t[0] ||= (e) => r("close")
474
+ onClose: t[0] ||= (e) => i("close")
475
475
  }, {
476
- default: R(() => [j(L(J), {
477
- title: L(i).t("wise_invoicing.invoice_approval.settings.pauses.delete_title", { name: n.pause.name }),
478
- description: L(i).t("wise_invoicing.invoice_approval.settings.pauses.delete_description"),
479
- icon: L(a),
476
+ default: L(() => [A(I(oe), {
477
+ title: I(a).t("wise_invoicing.invoice_approval.settings.pauses.delete_title", { name: n.pause.name }),
478
+ description: I(a).t("wise_invoicing.invoice_approval.settings.pauses.delete_description"),
479
+ icon: I(r),
480
480
  "icon-variant": "error"
481
481
  }, null, 8, [
482
482
  "title",
483
483
  "description",
484
484
  "icon"
485
- ]), j(L(K), null, {
486
- default: R(() => [j(L(q)), j(L(oe), { label: L(i).t("wise_invoicing.invoice_approval.settings.pauses.delete") }, null, 8, ["label"])]),
485
+ ]), A(I(q), null, {
486
+ default: L(() => [A(I(J)), A(I(ae), { label: I(a).t("wise_invoicing.invoice_approval.settings.pauses.delete") }, null, 8, ["label"])]),
487
487
  _: 1
488
488
  })]),
489
489
  _: 1
@@ -494,16 +494,16 @@ var Ye = /* @__PURE__ */ M({
494
494
  //#region src/modules/invoice-approval/api/mutations/approvalFollowUpPauseCreate.mutation.ts
495
495
  function Xe() {
496
496
  return z({
497
- queryFn: (e) => S.createFollowUpPause(e.body),
497
+ queryFn: (e) => x.createFollowUpPause(e.body),
498
498
  queryKeysToInvalidate: {
499
499
  approvalFollowUpPauseIndex: {},
500
500
  invoiceApprovalIndex: {}
501
501
  }
502
502
  });
503
503
  }
504
- var Ze = C.object({
505
- name: C.string().trim().min(1, e.global.t("wise_invoicing.invoice_approval.settings.validation.required")).max(100),
506
- period: C.object({
504
+ var Ze = S.object({
505
+ name: S.string().trim().min(1, e.global.t("wise_invoicing.invoice_approval.settings.validation.required")).max(100),
506
+ period: S.object({
507
507
  from: p.nullable(),
508
508
  until: p.nullable()
509
509
  })
@@ -512,16 +512,16 @@ var Ze = C.object({
512
512
  code: "custom",
513
513
  message: e.global.t("wise_invoicing.invoice_approval.settings.validation.required"),
514
514
  path: ["period"]
515
- }) : B.PlainDate.compare(t.period.until, t.period.from) < 0 ? n.addIssue({
515
+ }) : V.PlainDate.compare(t.period.until, t.period.from) < 0 ? n.addIssue({
516
516
  code: "custom",
517
517
  message: e.global.t("wise_invoicing.invoice_approval.settings.pauses.end_before_start"),
518
518
  path: ["period"]
519
- }) : B.PlainDate.compare(t.period.until, B.Now.plainDateISO()) < 0 && n.addIssue({
519
+ }) : V.PlainDate.compare(t.period.until, V.Now.plainDateISO()) < 0 && n.addIssue({
520
520
  code: "custom",
521
521
  message: e.global.t("wise_invoicing.invoice_approval.settings.pauses.period_in_past"),
522
522
  path: ["period"]
523
523
  });
524
- }), Qe = "approval_follow_up_pause_overlap", $e = /* @__PURE__ */ M({
524
+ }), Qe = "approval_follow_up_pause_overlap", $e = /* @__PURE__ */ j({
525
525
  __name: "ApprovalFollowUpPauseFormDialog",
526
526
  props: {
527
527
  copyOf: {},
@@ -529,7 +529,7 @@ var Ze = C.object({
529
529
  },
530
530
  emits: ["close"],
531
531
  setup(e, { emit: t }) {
532
- let n = e, r = t, i = w(), a = B.Now.plainDateISO(), o = Z(), c = Xe(), l = Oe(), u = Q(!1), d = Q(!0), f = E(() => [u, d].flatMap((e) => e.result.value.match({
532
+ let n = e, r = t, i = C(), a = V.Now.plainDateISO(), o = Z(), s = Xe(), l = Oe(), u = Q(!1), d = Q(!0), f = T(() => [u, d].flatMap((e) => e.result.value.match({
533
533
  err: () => [],
534
534
  loading: () => [],
535
535
  ok: (e) => e
@@ -542,7 +542,7 @@ var Ze = C.object({
542
542
  });
543
543
  }
544
544
  let h = be({
545
- initialState: n.copyOf === null ? b.toForm(n.pause) : b.toNextOccurrenceForm(n.copyOf, $.countYearsToNextOccurrence(n.copyOf.endDate, a)),
545
+ initialState: n.copyOf === null ? y.toForm(n.pause) : y.toNextOccurrenceForm(n.copyOf, $.countYearsToNextOccurrence(n.copyOf.endDate, a)),
546
546
  schema: Ze,
547
547
  onSubmit: async (e) => {
548
548
  let t = p(e.period.from, e.period.until);
@@ -553,12 +553,12 @@ var Ze = C.object({
553
553
  }]);
554
554
  return;
555
555
  }
556
- let a = n.pause === null ? await c.execute({ body: e }) : await l.execute({
556
+ let a = n.pause === null ? await s.execute({ body: e }) : await l.execute({
557
557
  body: e,
558
558
  params: { pauseUuid: n.pause.uuid }
559
559
  });
560
560
  if (a.isErr()) {
561
- if (te.isExpectedApiError(a.error) && te.getApiErrorCode(a.error) === Qe) {
561
+ if (R.isExpectedApiError(a.error) && R.getApiErrorCode(a.error) === Qe) {
562
562
  h.addErrors([{
563
563
  message: i.t("wise_invoicing.invoice_approval.settings.pauses.overlap"),
564
564
  path: "period"
@@ -571,72 +571,72 @@ var Ze = C.object({
571
571
  onSubmitError: () => {
572
572
  o.unableToSave();
573
573
  }
574
- }), g = h.register("name"), _ = h.register("period", {
574
+ }), ee = h.register("name"), g = h.register("period", {
575
575
  from: null,
576
576
  until: null
577
- }), v = E(() => n.pause !== null && B.PlainDate.compare(n.pause.startDate, a) <= 0), y = E(() => {
577
+ }), _ = T(() => n.pause !== null && V.PlainDate.compare(n.pause.startDate, a) <= 0), v = T(() => {
578
578
  if (n.pause === null) return "";
579
- let e = i.t("wise_invoicing.invoice_approval.settings.pauses.started_on", { date: $.format(n.pause.startDate, n.pause.startDate, i.locale.value) }), t = _.modelValue.value.until;
580
- if (t === null || B.PlainDate.compare(t, n.pause.startDate) < 0) return e;
579
+ let e = i.t("wise_invoicing.invoice_approval.settings.pauses.started_on", { date: $.format(n.pause.startDate, n.pause.startDate, i.locale.value) }), t = g.modelValue.value.until;
580
+ if (t === null || V.PlainDate.compare(t, n.pause.startDate) < 0) return e;
581
581
  let r = $.countDays(n.pause.startDate, t);
582
582
  return `${e} · ${i.t("wise_invoicing.invoice_approval.settings.pauses.days", { count: r }, r)}`;
583
583
  });
584
- function x(e) {
585
- _["onUpdate:modelValue"]({
586
- from: _.modelValue.value.from,
584
+ function b(e) {
585
+ g["onUpdate:modelValue"]({
586
+ from: g.modelValue.value.from,
587
587
  until: e
588
588
  });
589
589
  }
590
- let S = E(() => {
591
- let e = _.modelValue.value.from;
592
- return e !== null && B.PlainDate.compare(e, a) <= 0;
593
- }), C = E(() => {
594
- let { from: e, until: t } = _.modelValue.value;
595
- if (e === null || t === null || B.PlainDate.compare(e, t) > 0) return i.t("wise_invoicing.invoice_approval.settings.pauses.period_hint");
590
+ let x = T(() => {
591
+ let e = g.modelValue.value.from;
592
+ return e !== null && V.PlainDate.compare(e, a) <= 0;
593
+ }), S = T(() => {
594
+ let { from: e, until: t } = g.modelValue.value;
595
+ if (e === null || t === null || V.PlainDate.compare(e, t) > 0) return i.t("wise_invoicing.invoice_approval.settings.pauses.period_hint");
596
596
  let n = $.countDays(e, t);
597
597
  return i.t("wise_invoicing.invoice_approval.settings.pauses.period_summary", {
598
598
  days: i.t("wise_invoicing.invoice_approval.settings.pauses.days", { count: n }, n),
599
599
  period: $.format(e, t, i.locale.value)
600
600
  });
601
601
  });
602
- return (e, t) => (P(), D(L(le), {
603
- form: L(h),
602
+ return (e, t) => (N(), E(I(le), {
603
+ form: I(h),
604
604
  size: "sm",
605
605
  onClose: t[0] ||= (e) => r("close")
606
606
  }, {
607
- default: R(() => [
608
- j(L(J), {
609
- title: L(i).t(n.pause === null ? "wise_invoicing.invoice_approval.settings.pauses.create_title" : "wise_invoicing.invoice_approval.settings.pauses.update_title"),
610
- description: L(i).t("wise_invoicing.invoice_approval.settings.pauses.dialog_description"),
607
+ default: L(() => [
608
+ A(I(oe), {
609
+ title: I(i).t(n.pause === null ? "wise_invoicing.invoice_approval.settings.pauses.create_title" : "wise_invoicing.invoice_approval.settings.pauses.update_title"),
610
+ description: I(i).t("wise_invoicing.invoice_approval.settings.pauses.dialog_description"),
611
611
  "is-description-hidden": n.pause !== null,
612
- icon: L(s)
612
+ icon: I(c)
613
613
  }, null, 8, [
614
614
  "title",
615
615
  "description",
616
616
  "is-description-hidden",
617
617
  "icon"
618
618
  ]),
619
- j(L(ae), null, {
620
- default: R(() => [j(L(ue), null, {
621
- default: R(() => [
622
- j(L(_e), N(L(m)(L(g)), {
619
+ A(I(ie), null, {
620
+ default: L(() => [A(I(ue), null, {
621
+ default: L(() => [
622
+ A(I(_e), M(I(m)(I(ee)), {
623
623
  "is-required": !0,
624
- label: L(i).t("wise_invoicing.invoice_approval.settings.pauses.name"),
625
- placeholder: L(i).t("wise_invoicing.invoice_approval.settings.pauses.name_placeholder"),
624
+ label: I(i).t("wise_invoicing.invoice_approval.settings.pauses.name"),
625
+ placeholder: I(i).t("wise_invoicing.invoice_approval.settings.pauses.name_placeholder"),
626
626
  "data-lpignore": "true",
627
627
  "data-1p-ignore": ""
628
628
  }), null, 16, ["label", "placeholder"]),
629
- v.value ? (P(), D(L(W), {
629
+ _.value ? (N(), E(I(G), {
630
630
  key: 0,
631
- "error-message": L(m)(L(_)).errorMessage,
632
- hint: y.value,
631
+ "error-message": I(m)(I(g)).errorMessage,
632
+ hint: v.value,
633
633
  "is-required": !0,
634
- "is-touched": L(_).isTouched.value,
635
- label: L(i).t("wise_invoicing.invoice_approval.settings.pauses.end_date"),
636
- "min-date": L(a),
637
- "model-value": L(_).modelValue.value.until,
638
- onBlur: L(_).onBlur,
639
- "onUpdate:modelValue": x
634
+ "is-touched": I(g).isTouched.value,
635
+ label: I(i).t("wise_invoicing.invoice_approval.settings.pauses.end_date"),
636
+ "min-date": I(a),
637
+ "model-value": I(g).modelValue.value.until,
638
+ onBlur: I(g).onBlur,
639
+ "onUpdate:modelValue": b
640
640
  }, null, 8, [
641
641
  "error-message",
642
642
  "hint",
@@ -645,24 +645,24 @@ var Ze = C.object({
645
645
  "min-date",
646
646
  "model-value",
647
647
  "onBlur"
648
- ])) : (P(), D(L(G), N({ key: 1 }, L(m)(L(_)), {
649
- hint: C.value,
648
+ ])) : (N(), E(I(K), M({ key: 1 }, I(m)(I(g)), {
649
+ hint: S.value,
650
650
  "is-required": !0,
651
- label: L(i).t("wise_invoicing.invoice_approval.settings.pauses.period")
651
+ label: I(i).t("wise_invoicing.invoice_approval.settings.pauses.period")
652
652
  }), null, 16, ["hint", "label"])),
653
- S.value && !v.value ? (P(), D(L(X), {
653
+ x.value && !_.value ? (N(), E(I(X), {
654
654
  key: 2,
655
- text: L(i).t("wise_invoicing.invoice_approval.settings.pauses.starts_today_hint"),
655
+ text: I(i).t("wise_invoicing.invoice_approval.settings.pauses.starts_today_hint"),
656
656
  truncate: !1,
657
657
  class: "text-sm text-tertiary"
658
- }, null, 8, ["text"])) : O("", !0)
658
+ }, null, 8, ["text"])) : D("", !0)
659
659
  ]),
660
660
  _: 1
661
661
  })]),
662
662
  _: 1
663
663
  }),
664
- j(L(K), null, {
665
- default: R(() => [j(L(q)), j(L(de), { label: L(i).t("shared.save_changes") }, null, 8, ["label"])]),
664
+ A(I(q), null, {
665
+ default: L(() => [A(I(J)), A(I(de), { label: I(i).t("shared.save_changes") }, null, 8, ["label"])]),
666
666
  _: 1
667
667
  })
668
668
  ]),
@@ -703,7 +703,7 @@ function et() {
703
703
  var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { class: "flex flex-col gap-lg sm:flex-row sm:items-start sm:justify-between" }, rt = { class: "text-md font-semibold text-primary" }, it = { class: "mt-xs text-sm text-secondary" }, at = { class: "grid grid-cols-1 gap-lg md:grid-cols-2" }, ot = {
704
704
  key: 2,
705
705
  class: "flex flex-col"
706
- }, st = /* @__PURE__ */ M({
706
+ }, st = /* @__PURE__ */ j({
707
707
  __name: "ApprovalReminderSettingsView",
708
708
  props: {
709
709
  approvalMailTemplate: {},
@@ -727,34 +727,34 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
727
727
  }, s = {
728
728
  [t.AFTER_APPROVAL_REQUEST]: "wise_invoicing.invoice_approval.settings.schedule.after_approval_request",
729
729
  [t.AFTER_LAST_REMINDER]: "wise_invoicing.invoice_approval.settings.schedule.after_last_reminder"
730
- }, c = w(), l = Z(), u = n(), d = Ce(), p = Se(), h = et(), _ = F("reminders"), b = F("request"), S = F("en-US");
730
+ }, c = C(), l = Z(), u = n(), f = Ce(), p = Se(), h = et(), g = P("reminders"), y = P("request"), x = P("en-US");
731
731
  u.set(() => c.t("wise_invoicing.invoice_approval.settings.title"));
732
- let C = E(() => ({
733
- mailTemplate: x.toForm(r.approvalMailTemplate),
734
- reminderConfig: y.toForm(r.reminderConfigs)
732
+ let S = T(() => ({
733
+ mailTemplate: b.toForm(r.approvalMailTemplate),
734
+ reminderConfig: v.toForm(r.reminderConfigs)
735
735
  }));
736
- function O(e) {
737
- return JSON.stringify(y.toDto(e.reminderConfig)) !== JSON.stringify(y.toDto(C.value.reminderConfig));
736
+ function D(e) {
737
+ return JSON.stringify(v.toDto(e.reminderConfig)) !== JSON.stringify(v.toDto(S.value.reminderConfig));
738
738
  }
739
- function M(e) {
740
- return JSON.stringify(x.toDto(e.mailTemplate)) !== JSON.stringify(x.toDto(C.value.mailTemplate));
739
+ function j(e) {
740
+ return JSON.stringify(b.toDto(e.mailTemplate)) !== JSON.stringify(b.toDto(S.value.mailTemplate));
741
741
  }
742
- function te(e) {
743
- let t = e?.split(".") ?? [], n = v.find((e) => t.includes(e));
744
- t[0] === "mailTemplate" ? (_.value = "templates", b.value = "request") : t.includes("template") ? (_.value = "templates", b.value = t[2] === "0" ? "reminder-1" : "reminder-2") : _.value = "reminders", n !== void 0 && (S.value = n);
742
+ function R(e) {
743
+ let t = e?.split(".") ?? [], n = _.find((e) => t.includes(e));
744
+ t[0] === "mailTemplate" ? (g.value = "templates", y.value = "request") : t.includes("template") ? (g.value = "templates", y.value = t[2] === "0" ? "reminder-1" : "reminder-2") : g.value = "reminders", n !== void 0 && (x.value = n);
745
745
  }
746
746
  let z = be({
747
- initialState: C,
747
+ initialState: S,
748
748
  schema: De,
749
749
  onSubmit: async (e) => {
750
- if (O(e)) {
751
- let t = await d.execute({ body: e.reminderConfig });
750
+ if (D(e)) {
751
+ let t = await f.execute({ body: e.reminderConfig });
752
752
  if (t.isErr()) {
753
753
  l.apiError(t.error);
754
754
  return;
755
755
  }
756
756
  }
757
- if (M(e)) {
757
+ if (j(e)) {
758
758
  let t = await p.execute({ body: e.mailTemplate });
759
759
  if (t.isErr()) {
760
760
  l.apiError(t.error);
@@ -764,10 +764,10 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
764
764
  l.show({ message: c.t("wise_invoicing.invoice_approval.settings.success") });
765
765
  },
766
766
  onSubmitError: ({ errors: e }) => {
767
- te(e[0]?.path), l.unableToSave();
767
+ R(e[0]?.path), l.unableToSave();
768
768
  }
769
- }), ne = z.registerArray("reminderConfig.reminders"), B = i.map((e) => {
770
- let t = ne.register(`${e.index}`), n = t.register("template");
769
+ }), B = z.registerArray("reminderConfig.reminders"), V = i.map((e) => {
770
+ let t = B.register(`${e.index}`), n = t.register("template");
771
771
  return {
772
772
  offsetDays: t.register("offsetDays"),
773
773
  schedule: t.register("schedule"),
@@ -786,9 +786,9 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
786
786
  }
787
787
  }
788
788
  };
789
- }), V = {
790
- "reminder-1": B[0].template,
791
- "reminder-2": B[1].template,
789
+ }), H = {
790
+ "reminder-1": V[0].template,
791
+ "reminder-2": V[1].template,
792
792
  request: {
793
793
  "en-US": {
794
794
  body: z.register("mailTemplate.en-US.body"),
@@ -803,84 +803,84 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
803
803
  subject: z.register("mailTemplate.nl-BE.subject")
804
804
  }
805
805
  }
806
- }, U = E({
807
- get: () => b.value,
806
+ }, W = T({
807
+ get: () => y.value,
808
808
  set: (e) => {
809
809
  let t = a.find((t) => t === e);
810
- t !== void 0 && (b.value = t);
810
+ t !== void 0 && (y.value = t);
811
811
  }
812
- }), W = E({
813
- get: () => S.value,
812
+ }), G = T({
813
+ get: () => x.value,
814
814
  set: (e) => {
815
- let t = v.find((t) => t === e);
816
- t !== void 0 && (S.value = t);
815
+ let t = _.find((t) => t === e);
816
+ t !== void 0 && (x.value = t);
817
817
  }
818
818
  });
819
- function G(e, t) {
820
- let n = V[e][t];
819
+ function K(e, t) {
820
+ let n = H[e][t];
821
821
  return (n.subject.modelValue.value ?? "").trim() === "" || (n.body.modelValue.value ?? "").trim() === "";
822
822
  }
823
- let ae = E(() => a.map((e) => ({
824
- hasMissingContent: G(e, S.value),
823
+ let ie = T(() => a.map((e) => ({
824
+ hasMissingContent: K(e, x.value),
825
825
  label: c.t(o[e]),
826
826
  value: e
827
- }))), K = E(() => v.map((e) => ({
828
- hasMissingContent: G(b.value, e),
827
+ }))), q = T(() => _.map((e) => ({
828
+ hasMissingContent: K(y.value, e),
829
829
  label: c.t(`wise_invoicing.invoice_approval.settings.templates.locale.${e}`),
830
830
  value: e
831
- }))), q = E(() => c.t("wise_invoicing.invoice_approval.settings.templates.card_title", {
832
- language: c.t(`wise_invoicing.invoice_approval.settings.templates.locale_name.${S.value}`),
833
- template: c.t(o[b.value])
831
+ }))), J = T(() => c.t("wise_invoicing.invoice_approval.settings.templates.card_title", {
832
+ language: c.t(`wise_invoicing.invoice_approval.settings.templates.locale_name.${x.value}`),
833
+ template: c.t(o[y.value])
834
834
  }));
835
- function oe(e) {
835
+ function ae(e) {
836
836
  return ve([e === 0 ? t.AFTER_APPROVAL_REQUEST : t.AFTER_LAST_REMINDER]);
837
837
  }
838
- function J(e) {
838
+ function oe(e) {
839
839
  return c.t(s[e]);
840
840
  }
841
- return (e, t) => (P(), D(L(re), {
842
- description: L(c).t("wise_invoicing.invoice_approval.settings.description"),
843
- title: L(c).t("wise_invoicing.invoice_approval.settings.title")
841
+ return (e, t) => (N(), E(I(ne), {
842
+ description: I(c).t("wise_invoicing.invoice_approval.settings.description"),
843
+ title: I(c).t("wise_invoicing.invoice_approval.settings.title")
844
844
  }, {
845
- default: R(() => [j(L(ie), null, {
846
- default: R(() => [j(L(ce), {
847
- form: L(z),
845
+ default: L(() => [A(I(re), null, {
846
+ default: L(() => [A(I(ce), {
847
+ form: I(z),
848
848
  "prompt-on-unsaved-changes": !0
849
849
  }, {
850
- default: R(() => [A("div", tt, [
851
- A("div", nt, [A("div", null, [A("h2", rt, ee(L(c).t("wise_invoicing.invoice_approval.settings.title")), 1), A("p", it, ee(L(c).t("wise_invoicing.invoice_approval.settings.description")), 1)]), _.value === "pauses" ? (P(), D(L(H), {
850
+ default: L(() => [k("div", tt, [
851
+ k("div", nt, [k("div", null, [k("h2", rt, te(I(c).t("wise_invoicing.invoice_approval.settings.title")), 1), k("p", it, te(I(c).t("wise_invoicing.invoice_approval.settings.description")), 1)]), g.value === "pauses" ? (N(), E(I(U), {
852
852
  key: 0,
853
- "icon-left": L(f),
854
- label: L(c).t("wise_invoicing.invoice_approval.settings.pauses.add"),
853
+ "icon-left": I(d),
854
+ label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.add"),
855
855
  class: "shrink-0",
856
- onClick: L(h).openCreate
856
+ onClick: I(h).openCreate
857
857
  }, null, 8, [
858
858
  "icon-left",
859
859
  "label",
860
860
  "onClick"
861
- ])) : (P(), D(L(de), {
861
+ ])) : (N(), E(I(de), {
862
862
  key: 1,
863
- label: L(c).t("shared.save_changes"),
863
+ label: I(c).t("shared.save_changes"),
864
864
  class: "shrink-0"
865
865
  }, null, 8, ["label"]))]),
866
- j(L(me), {
867
- modelValue: _.value,
868
- "onUpdate:modelValue": t[0] ||= (e) => _.value = e,
869
- "aria-label": L(c).t("wise_invoicing.invoice_approval.settings.navigation"),
866
+ A(I(me), {
867
+ modelValue: g.value,
868
+ "onUpdate:modelValue": t[0] ||= (e) => g.value = e,
869
+ "aria-label": I(c).t("wise_invoicing.invoice_approval.settings.navigation"),
870
870
  variant: "button-border"
871
871
  }, {
872
- default: R(() => [j(L(ge), null, {
873
- default: R(() => [
874
- j(L(he), {
875
- label: L(c).t("wise_invoicing.invoice_approval.settings.reminders.tab"),
872
+ default: L(() => [A(I(ge), null, {
873
+ default: L(() => [
874
+ A(I(he), {
875
+ label: I(c).t("wise_invoicing.invoice_approval.settings.reminders.tab"),
876
876
  value: "reminders"
877
877
  }, null, 8, ["label"]),
878
- j(L(he), {
879
- label: L(c).t("wise_invoicing.invoice_approval.settings.templates.tab"),
878
+ A(I(he), {
879
+ label: I(c).t("wise_invoicing.invoice_approval.settings.templates.tab"),
880
880
  value: "templates"
881
881
  }, null, 8, ["label"]),
882
- j(L(he), {
883
- label: L(c).t("wise_invoicing.invoice_approval.settings.pauses.tab"),
882
+ A(I(he), {
883
+ label: I(c).t("wise_invoicing.invoice_approval.settings.pauses.tab"),
884
884
  value: "pauses"
885
885
  }, null, 8, ["label"])
886
886
  ]),
@@ -888,45 +888,45 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
888
888
  })]),
889
889
  _: 1
890
890
  }, 8, ["modelValue", "aria-label"]),
891
- _.value === "reminders" ? (P(), k(T, { key: 0 }, [j(L(X), {
892
- text: L(c).t("wise_invoicing.invoice_approval.settings.reminders.description"),
891
+ g.value === "reminders" ? (N(), O(w, { key: 0 }, [A(I(X), {
892
+ text: I(c).t("wise_invoicing.invoice_approval.settings.reminders.description"),
893
893
  truncate: !1,
894
894
  class: "text-sm text-tertiary"
895
- }, null, 8, ["text"]), (P(), k(T, null, I(i, (e) => A("div", {
895
+ }, null, 8, ["text"]), (N(), O(w, null, F(i, (e) => k("div", {
896
896
  key: e.index,
897
897
  class: "flex flex-col gap-md"
898
- }, [j(L(X), {
899
- text: L(c).t(e.labelKey),
898
+ }, [A(I(X), {
899
+ text: I(c).t(e.labelKey),
900
900
  class: "text-sm font-medium text-primary"
901
- }, null, 8, ["text"]), A("div", at, [j(L(fe), N({ ref_for: !0 }, L(m)(L(B)[e.index].offsetDays), {
901
+ }, null, 8, ["text"]), k("div", at, [A(I(fe), M({ ref_for: !0 }, I(m)(I(V)[e.index].offsetDays), {
902
902
  "is-required": !0,
903
- label: L(c).t("wise_invoicing.invoice_approval.settings.offset_days"),
903
+ label: I(c).t("wise_invoicing.invoice_approval.settings.offset_days"),
904
904
  max: 365,
905
905
  min: 1,
906
906
  step: 1
907
- }), null, 16, ["label"]), j(L(pe), N({ ref_for: !0 }, L(m)(L(B)[e.index].schedule), {
908
- "display-fn": J,
907
+ }), null, 16, ["label"]), A(I(pe), M({ ref_for: !0 }, I(m)(I(V)[e.index].schedule), {
908
+ "display-fn": oe,
909
909
  "is-required": !0,
910
- items: oe(e.index),
911
- label: L(c).t("wise_invoicing.invoice_approval.settings.schedule_label")
912
- }), null, 16, ["items", "label"])])])), 64))], 64)) : _.value === "pauses" ? (P(), D(qe, {
910
+ items: ae(e.index),
911
+ label: I(c).t("wise_invoicing.invoice_approval.settings.schedule_label")
912
+ }), null, 16, ["items", "label"])])])), 64))], 64)) : g.value === "pauses" ? (N(), E(qe, {
913
913
  key: 1,
914
- dialogs: L(h)
915
- }, null, 8, ["dialogs"])) : (P(), k("div", ot, [j(L(X), {
916
- text: L(c).t("wise_invoicing.invoice_approval.settings.templates.description"),
914
+ dialogs: I(h)
915
+ }, null, 8, ["dialogs"])) : (N(), O("div", ot, [A(I(X), {
916
+ text: I(c).t("wise_invoicing.invoice_approval.settings.templates.description"),
917
917
  truncate: !1,
918
918
  class: "text-sm text-tertiary"
919
- }, null, 8, ["text"]), j(g, {
920
- "active-level": U.value,
921
- "onUpdate:activeLevel": t[1] ||= (e) => U.value = e,
922
- "active-locale": W.value,
923
- "onUpdate:activeLocale": t[2] ||= (e) => W.value = e,
924
- "body-field": V[b.value][S.value].body,
919
+ }, null, 8, ["text"]), A(ee, {
920
+ "active-level": W.value,
921
+ "onUpdate:activeLevel": t[1] ||= (e) => W.value = e,
922
+ "active-locale": G.value,
923
+ "onUpdate:activeLocale": t[2] ||= (e) => G.value = e,
924
+ "body-field": H[y.value][x.value].body,
925
925
  "can-update": !0,
926
- "card-title": q.value,
927
- "level-items": ae.value,
928
- "locale-items": K.value,
929
- "subject-field": V[b.value][S.value].subject
926
+ "card-title": J.value,
927
+ "level-items": ie.value,
928
+ "locale-items": q.value,
929
+ "subject-field": H[y.value][x.value].subject
930
930
  }, null, 8, [
931
931
  "active-level",
932
932
  "active-locale",
@@ -944,16 +944,16 @@ var tt = { class: "mx-auto flex w-full max-w-340 flex-col gap-xl" }, nt = { clas
944
944
  _: 1
945
945
  }, 8, ["description", "title"]));
946
946
  }
947
- }), ct = /* @__PURE__ */ M({
947
+ }), ct = /* @__PURE__ */ j({
948
948
  __name: "ApprovalReminderSettingsViewDataProvider",
949
949
  setup(e) {
950
950
  let t = xe();
951
- return (e, n) => (P(), D(h, { queries: { reminderConfigs: L(t) } }, {
952
- default: R(({ data: e }) => [j(st, {
951
+ return (e, n) => (N(), E(h, { queries: { reminderConfigs: I(t) } }, {
952
+ default: L(({ data: e }) => [A(st, {
953
953
  "approval-mail-template": e.reminderConfigs.approvalMailTemplate,
954
954
  "reminder-configs": e.reminderConfigs.items
955
955
  }, null, 8, ["approval-mail-template", "reminder-configs"])]),
956
- loading: R(() => [j(L(U), { breadcrumbs: [] })]),
956
+ loading: L(() => [A(I(W), { breadcrumbs: [] })]),
957
957
  _: 1
958
958
  }, 8, ["queries"]));
959
959
  }