@wisemen/wise-invoicing-web 0.19.0 → 1.0.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 (107) hide show
  1. package/dist/ApprovalReminderSettingsViewDataProvider-DyrHExKn.js +962 -0
  2. package/dist/{BillingDocumentDetailViewDataProvider-BZCFhsjA.js → BillingDocumentDetailViewDataProvider-kFzqhrxW.js} +1632 -1619
  3. package/dist/{BillingDocumentPdf-DMTwOlzG.js → BillingDocumentPdf-Dp6HSypy.js} +10 -10
  4. package/dist/{DunningCaseSendDialog-DfMYo2LV.js → DunningCaseSendDialog-1S6OD9wd.js} +36 -36
  5. package/dist/{InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js → InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js} +16 -13
  6. package/dist/{InvoiceApprovalOverviewView-BH5rJgk6.js → InvoiceApprovalOverviewView-DM_LiO19.js} +237 -237
  7. package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-mbYHYU3x.js} +6 -6
  8. package/dist/{InvoicePdfView-DRqX3P-X.js → InvoicePdfView-YbDJpTIA.js} +2 -2
  9. package/dist/{InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js → InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js} +3 -3
  10. package/dist/InvoiceRejectDialogDataProvider-yegAlkDB.js +410 -0
  11. package/dist/{InvoiceStatusBadge-BI41yxpr.js → InvoiceStatusBadge-Bo5PDjEy.js} +23 -23
  12. package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-DVh22OUB.js} +2 -2
  13. package/dist/{IssuerSettingsViewDataProvider-nNg0lR7Y.js → IssuerSettingsViewDataProvider-BgSFemZr.js} +66 -66
  14. package/dist/{PeppolSettingsViewDataProvider-CFelH70Q.js → PeppolSettingsViewDataProvider-_Bx0xx9e.js} +3 -3
  15. package/dist/ReminderTemplatesPanel-DxmfU2xK.js +103 -0
  16. package/dist/{api.util-sW4gNny-.js → api.util-lGbimoKL.js} +814 -667
  17. package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +319 -0
  18. package/dist/client/index.d.ts +2 -2
  19. package/dist/client/sdk.gen.d.ts +12 -7
  20. package/dist/client/types.gen.d.ts +396 -94
  21. package/dist/client/zod.gen.d.ts +3003 -401
  22. package/dist/{creditNoteDetail.query-C4DvgGFR.js → creditNoteDetail.query-CqJeWeRV.js} +25 -25
  23. package/dist/{customFieldDefinitionIndex.query-BBqxMfvT.js → customFieldDefinitionIndex.query-Co7hoMow.js} +75 -66
  24. package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-ny1rA7Sm.js} +6 -6
  25. package/dist/{dist-47-1LAzT.js → dist-CrNFh-CR.js} +59 -59
  26. package/dist/{dist-B33lNwLw.js → dist-DmVrfBOT.js} +149 -79
  27. package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-aTEYXgaZ.js} +37 -35
  28. package/dist/html.util-vG4ow95N.js +52 -0
  29. package/dist/{i18n.lib-DckceEsg.js → i18n.lib-B1H9r0km.js} +198 -26
  30. package/dist/index.d.ts +184 -12
  31. package/dist/index.js +1990 -1829
  32. package/dist/{invoice.service-v9uIoFgR.js → invoice.service-D9ubyWPb.js} +224 -181
  33. package/dist/invoiceApproval.service-BtDIOHIo.js +182 -0
  34. package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-Bqq_bILG.js} +29 -29
  35. package/dist/{invoiceCustomer.service-Bl4vN_U5.js → invoiceCustomer.service-D0AtVrLg.js} +6 -6
  36. package/dist/{invoiceDetail.query-MElhxTMM.js → invoiceDetail.query-BNL6MkvC.js} +1 -1
  37. package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-DEF0lzNP.js} +2 -2
  38. package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-Cu-I6OAg.js} +30 -30
  39. package/dist/libs/i18n.lib.d.ts +184 -12
  40. package/dist/locales/en-US.json.d.ts +99 -13
  41. package/dist/locales/nl-BE.json.d.ts +99 -13
  42. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -2
  43. package/dist/models/file-reference/fileReference.transformer.d.ts +3 -0
  44. package/dist/modules/invoice/api/mutations/invoiceApprovalUpdate.mutation.d.ts +16 -0
  45. package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +2 -2
  46. package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
  47. package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +2 -2
  48. package/dist/modules/invoice/api/mutations/invoiceSetApprovalMode.mutation.d.ts +7 -0
  49. package/dist/modules/invoice/api/services/invoice.service.d.ts +7 -5
  50. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.model.d.ts +3 -0
  51. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.transformer.d.ts +6 -0
  52. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalModeForm.model.d.ts +7 -0
  53. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalNote.model.d.ts +2 -0
  54. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdate.transformer.d.ts +7 -0
  55. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdateForm.model.d.ts +13 -0
  56. package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +3 -0
  57. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +2 -2
  58. package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +3 -0
  59. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +2 -2
  60. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +7 -1
  61. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
  62. package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +1 -0
  63. package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +13 -0
  64. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +2 -0
  65. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalModeDialog.vue.d.ts +13 -0
  66. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalUpdateDialog.vue.d.ts +16 -0
  67. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +4 -0
  68. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +4 -0
  69. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialogDataProvider.vue.d.ts +13 -0
  70. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
  71. package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseCreate.mutation.d.ts +7 -0
  72. package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseDelete.mutation.d.ts +4 -0
  73. package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseUpdate.mutation.d.ts +10 -0
  74. package/dist/modules/invoice-approval/api/mutations/approvalMailTemplateUpdate.mutation.d.ts +14 -0
  75. package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +14 -1
  76. package/dist/modules/invoice-approval/api/queries/approvalFollowUpPauseIndex.query.d.ts +2 -0
  77. package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -1
  78. package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +9 -2
  79. package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -2
  80. package/dist/modules/invoice-approval/models/approvalFollowUpPause.model.d.ts +11 -0
  81. package/dist/modules/invoice-approval/models/approvalFollowUpPause.transformer.d.ts +11 -0
  82. package/dist/modules/invoice-approval/models/approvalFollowUpPauseForm.model.d.ts +11 -0
  83. package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.d.ts +6 -0
  84. package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.spec.d.ts +1 -0
  85. package/dist/modules/invoice-approval/models/approvalMailTemplateForm.model.d.ts +18 -0
  86. package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +15 -2
  87. package/dist/modules/invoice-approval/models/approvalSettingsForm.model.d.ts +39 -0
  88. package/dist/modules/invoice-approval/models/approvalSettingsForm.spec.d.ts +1 -0
  89. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
  90. package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseList.vue.d.ts +20 -0
  91. package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseRow.vue.d.ts +20 -0
  92. package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPausesPanel.vue.d.ts +7 -0
  93. package/dist/modules/invoice-approval/use-cases/settings/composables/approvalFollowUpPauseDialogs.composable.d.ts +8 -0
  94. package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseDeleteDialog.vue.d.ts +11 -0
  95. package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseFormDialog.vue.d.ts +14 -0
  96. package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +2 -1
  97. package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.d.ts +41 -0
  98. package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.spec.d.ts +1 -0
  99. package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-DHMHVOeX.js} +67 -114
  100. package/dist/style.css +1 -1
  101. package/package.json +1 -1
  102. package/dist/ApprovalReminderSettingsViewDataProvider-C1cI6KQq.js +0 -147
  103. package/dist/InvoiceRejectDialog-_5i8eFuk.js +0 -361
  104. package/dist/billingDocumentDetail.transformer-Ifa6tWtE.js +0 -310
  105. package/dist/invoiceApproval.service-DXIKgCI_.js +0 -72
  106. package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +0 -4
  107. package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +0 -4
@@ -1,81 +1,34 @@
1
- import { L as e, Q as t, R as n, _t as r, at as i, j as a, ot as o, s, t as c } from "./api.util-sW4gNny-.js";
2
- import { D as l, _ as u, c as d, g as f } from "./documentTitle.composable-Dl8Cm3v3.js";
1
+ import { M as e, R as t, St as n, dt as r, nt as i, s as a, t as o, ut as s, z as c } from "./api.util-lGbimoKL.js";
2
+ import { O as l, _ as u, l as d, v as f } from "./documentTitle.composable-aTEYXgaZ.js";
3
3
  import { n as p, t as m } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
4
  import { n as h, r as g, t as _ } from "./plainDate.transformer-Bhiz9jW7.js";
5
5
  import { n as v, t as y } from "./percentage.util-Bl78kSSk.js";
6
- import { Fragment as b, computed as x, createElementBlock as S, createElementVNode as C, defineComponent as w, normalizeClass as T, openBlock as E, renderList as D } from "vue";
7
- import { useQuery as O } from "@wisemen/vue-core-api-utils";
8
- //#region src/utils/html.util.ts
9
- var k = /* @__PURE__ */ new Set(/* @__PURE__ */ "address.article.aside.blockquote.div.dl.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hr.li.main.nav.ol.p.pre.section.table.tbody.td.tfoot.th.thead.tr.ul".split("."));
10
- function A(e) {
11
- return e.nodeType === 3;
12
- }
13
- function j(e) {
14
- return e.nodeType === 1;
15
- }
16
- function M(e) {
17
- let t = e;
18
- for (; t.startsWith("\n\n");) t = t.slice(2);
19
- for (; t.endsWith("\n\n");) t = t.slice(0, -2);
20
- return t;
21
- }
22
- function N(e) {
23
- let t = "";
24
- function n(e) {
25
- t += e.replaceAll("\xA0", " ");
26
- }
27
- function r(e) {
28
- if (A(e)) {
29
- n(e.data);
30
- return;
31
- }
32
- if (!j(e)) return;
33
- let i = e.tagName.toLowerCase();
34
- if (i === "script" || i === "style") return;
35
- if (i === "br") {
36
- n("\n");
37
- return;
38
- }
39
- let a = k.has(i);
40
- a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
41
- for (let t of e.childNodes) r(t);
42
- a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
43
- }
44
- for (let t of e) r(t);
45
- return t;
46
- }
47
- function P(e) {
48
- return e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#39;");
49
- }
50
- var F = class {
51
- static fromPlainText(e) {
52
- return `<p>${e.split("\n").map((e) => P(e)).join("<br>")}</p>`;
53
- }
54
- static toPlainText(e) {
55
- return M(N(new DOMParser().parseFromString(e, "text/html").body.childNodes));
56
- }
57
- }, I = [
6
+ import { t as b } from "./html.util-vG4ow95N.js";
7
+ import { Fragment as x, computed as S, createElementBlock as C, createElementVNode as w, defineComponent as T, normalizeClass as E, openBlock as D, renderList as O } from "vue";
8
+ import { useQuery as k } from "@wisemen/vue-core-api-utils";
9
+ //#region src/modules/dunning-case/models/dunningCase.transformer.ts
10
+ var A = [
58
11
  "en-US",
59
12
  "nl-BE",
60
13
  "fr-BE"
61
- ], L = [
14
+ ], j = [
62
15
  1,
63
16
  2,
64
17
  3
65
18
  ];
66
- function R(e) {
19
+ function M(e) {
67
20
  return e === null || e === "infinity" || e === "-infinity";
68
21
  }
69
- function z(e) {
70
- return R(e) ? null : g.fromDto(e);
22
+ function N(e) {
23
+ return M(e) ? null : g.fromDto(e);
71
24
  }
72
- function B(e) {
73
- return R(e) ? null : _.fromDto(e);
25
+ function P(e) {
26
+ return M(e) ? null : _.fromDto(e);
74
27
  }
75
- function V(e, t) {
28
+ function F(e, t) {
76
29
  return e.items.find((e) => e.locale === t)?.value ?? "";
77
30
  }
78
- function H() {
31
+ function I() {
79
32
  return {
80
33
  "en-US": {
81
34
  body: "",
@@ -91,39 +44,39 @@ function H() {
91
44
  }
92
45
  };
93
46
  }
94
- function U(e, t, n) {
47
+ function L(e, t, n) {
95
48
  let r = t?.fee.amount ?? null;
96
49
  return {
97
50
  feeAmount: r === null ? 0 : m(r.amount, r.precision),
98
51
  feeCurrency: r?.currency ?? n.currency,
99
52
  feePercentage: t?.fee.percentage?.value ?? 0,
100
53
  feePrecision: r?.precision ?? n.precision,
101
- feeType: t?.fee.type ?? f.AMOUNT,
54
+ feeType: t?.fee.type ?? u.AMOUNT,
102
55
  offsetDays: t?.offsetDays ?? e,
103
56
  schedule: t?.schedule ?? l.AFTER_DUE_DATE,
104
57
  sequence: e,
105
- template: t?.template ?? H()
58
+ template: t?.template ?? I()
106
59
  };
107
60
  }
108
- function W(e, t) {
61
+ function R(e, t) {
109
62
  return {
110
- body: F.toPlainText(V(e.body, t)),
111
- subject: V(e.subject, t)
63
+ body: b.toPlainText(F(e.body, t)),
64
+ subject: F(e.subject, t)
112
65
  };
113
66
  }
114
- function G(e, t) {
115
- return { items: I.map((n) => ({
67
+ function z(e, t) {
68
+ return { items: A.map((n) => ({
116
69
  locale: n,
117
- value: t === "body" ? F.fromPlainText(e[n][t]) : e[n][t]
70
+ value: t === "body" ? b.fromPlainText(e[n][t]) : e[n][t]
118
71
  })) };
119
72
  }
120
- var K = class e {
73
+ var B = class e {
121
74
  static fromDetailDto(t) {
122
75
  return {
123
76
  uuid: t.uuid,
124
77
  closedAt: g.fromNullableDto(t.closedAt),
125
78
  createdAt: g.fromDto(t.createdAt),
126
- lastReminderSentAt: z(t.lastReminderSentAt),
79
+ lastReminderSentAt: N(t.lastReminderSentAt),
127
80
  nextReminderOn: _.fromNullableDto(t.nextReminderOn),
128
81
  updatedAt: g.fromDto(t.updatedAt),
129
82
  blockedReason: t.blockedReason,
@@ -143,8 +96,8 @@ var K = class e {
143
96
  static fromIndexDto(t) {
144
97
  return {
145
98
  uuid: t.uuid,
146
- lastReminderSentAt: z(t.lastReminderSentAt),
147
- nextReminderOn: B(t.nextReminderOn),
99
+ lastReminderSentAt: N(t.lastReminderSentAt),
100
+ nextReminderOn: P(t.nextReminderOn),
148
101
  blockedReason: t.blockedReason,
149
102
  canRetryReminder: t.canRetryReminder,
150
103
  canSendReminder: t.canSendReminder,
@@ -193,25 +146,25 @@ var K = class e {
193
146
  schedule: e.schedule,
194
147
  sequence: e.sequence,
195
148
  template: {
196
- "en-US": W(e.template, "en-US"),
197
- "fr-BE": W(e.template, "fr-BE"),
198
- "nl-BE": W(e.template, "nl-BE")
149
+ "en-US": R(e.template, "en-US"),
150
+ "fr-BE": R(e.template, "fr-BE"),
151
+ "nl-BE": R(e.template, "nl-BE")
199
152
  }
200
153
  };
201
154
  }
202
155
  static fromReminderDto(e) {
203
156
  return e === null ? null : {
204
157
  uuid: e.uuid,
205
- sentAt: z(e.sentAt),
158
+ sentAt: N(e.sentAt),
206
159
  hasErrors: e.hasErrors
207
160
  };
208
161
  }
209
162
  static reminderConfigsToDto(e) {
210
163
  return e.reminders.map((e) => ({
211
- fee: e.feeType === f.PERCENTAGE ? {
164
+ fee: e.feeType === u.PERCENTAGE ? {
212
165
  amount: null,
213
166
  percentage: v.toDto(new y(e.feePercentage)),
214
- type: f.PERCENTAGE
167
+ type: u.PERCENTAGE
215
168
  } : {
216
169
  amount: {
217
170
  amount: p(e.feeAmount, e.feePrecision),
@@ -219,14 +172,14 @@ var K = class e {
219
172
  precision: e.feePrecision
220
173
  },
221
174
  percentage: null,
222
- type: f.AMOUNT
175
+ type: u.AMOUNT
223
176
  },
224
177
  offsetDays: e.offsetDays,
225
178
  schedule: e.schedule,
226
179
  sequence: e.sequence,
227
180
  template: {
228
- body: G(e.template, "body"),
229
- subject: G(e.template, "subject")
181
+ body: z(e.template, "body"),
182
+ subject: z(e.template, "subject")
230
183
  }
231
184
  }));
232
185
  }
@@ -235,82 +188,82 @@ var K = class e {
235
188
  currency: t?.currency ?? d.EUR,
236
189
  precision: t?.precision ?? 2
237
190
  };
238
- return { reminders: L.map((t) => U(t, e.find((e) => e.sequence === t), n)) };
191
+ return { reminders: j.map((t) => L(t, e.find((e) => e.sequence === t), n)) };
239
192
  }
240
193
  };
241
194
  //#endregion
242
195
  //#region src/modules/dunning-case/api/services/dunningCase.service.ts
243
- function q(e) {
196
+ function V(e) {
244
197
  return {
245
198
  customerUuid: e.customerUuid,
246
199
  isOpen: e.isOpen,
247
200
  dunningCaseUuids: e.dunningCaseUuids === void 0 ? void 0 : {
248
- scope: u.INCLUDE,
201
+ scope: f.INCLUDE,
249
202
  values: e.dunningCaseUuids
250
203
  },
251
204
  level: e.level
252
205
  };
253
206
  }
254
- var J = class {
207
+ var H = class {
255
208
  static async getAll(e) {
256
- return (await c.fromPromise(o({ query: {
257
- filter: q(e),
209
+ return (await o.fromPromise(r({ query: {
210
+ filter: V(e),
258
211
  pagination: e.pagination
259
212
  } }))).map((e) => ({
260
- data: e.data.items.map(K.fromIndexDto),
213
+ data: e.data.items.map(B.fromIndexDto),
261
214
  meta: e.data.meta
262
215
  }));
263
216
  }
264
217
  static async getByUuid(e) {
265
- return (await c.fromPromise(i({ path: { uuid: e } }))).map((e) => K.fromDetailDto(e.data));
218
+ return (await o.fromPromise(s({ path: { uuid: e } }))).map((e) => B.fromDetailDto(e.data));
266
219
  }
267
220
  static async getReminderConfigs() {
268
- return (await c.fromPromise(r())).map((e) => e.data.items.map(K.fromReminderConfigDto));
221
+ return (await o.fromPromise(n())).map((e) => e.data.items.map(B.fromReminderConfigDto));
269
222
  }
270
- static async previewBulk(e) {
271
- return (await c.fromPromise(a({ query: { filter: q(e) } }))).map((e) => e.data);
223
+ static async previewBulk(t) {
224
+ return (await o.fromPromise(e({ query: { filter: V(t) } }))).map((e) => e.data);
272
225
  }
273
- static async retry(t) {
274
- let n = await c.fromPromise(e({ path: { uuid: t } }));
275
- return c.void(n);
226
+ static async retry(e) {
227
+ let n = await o.fromPromise(t({ path: { uuid: e } }));
228
+ return o.void(n);
276
229
  }
277
230
  static async send(e) {
278
- let t = await c.fromPromise(n({ path: { uuid: e } }));
279
- return c.void(t);
231
+ let t = await o.fromPromise(c({ path: { uuid: e } }));
232
+ return o.void(t);
280
233
  }
281
234
  static async sendBulk(e) {
282
- return (await c.fromPromise(s({ query: { filter: q(e) } }))).map((e) => e.data);
235
+ return (await o.fromPromise(a({ query: { filter: V(e) } }))).map((e) => e.data);
283
236
  }
284
237
  static async updateReminderConfigs(e) {
285
- let n = await c.fromPromise(t({ body: { reminders: K.reminderConfigsToDto(e) } }));
286
- return c.void(n);
238
+ let t = await o.fromPromise(i({ body: { reminders: B.reminderConfigsToDto(e) } }));
239
+ return o.void(t);
287
240
  }
288
- }, Y = {
241
+ }, U = {
289
242
  class: "flex shrink-0 gap-xxs",
290
243
  "aria-hidden": "true"
291
- }, X = /* @__PURE__ */ w({
244
+ }, W = /* @__PURE__ */ T({
292
245
  __name: "DunningCaseReminderLevelIndicator",
293
246
  props: {
294
247
  level: {},
295
248
  size: { default: "md" }
296
249
  },
297
250
  setup(e) {
298
- let t = e, n = x(() => Math.min(3, Math.max(0, t.level ?? 0))), r = x(() => t.level === 3 ? "error" : t.level === 2 ? "warning" : "brand"), i = x(() => t.size === "sm" ? "h-(--spacing-sm) w-(--spacing-md)" : "h-(--spacing-sm) w-(--spacing-lg)");
299
- return (e, t) => (E(), S("span", Y, [(E(), S(b, null, D(3, (e) => C("span", {
251
+ let t = e, n = S(() => Math.min(3, Math.max(0, t.level ?? 0))), r = S(() => t.level === 3 ? "error" : t.level === 2 ? "warning" : "brand"), i = S(() => t.size === "sm" ? "h-(--spacing-sm) w-(--spacing-md)" : "h-(--spacing-sm) w-(--spacing-lg)");
252
+ return (e, t) => (D(), C("span", U, [(D(), C(x, null, O(3, (e) => w("span", {
300
253
  key: e,
301
- class: T([[i.value, e <= n.value ? {
254
+ class: E([[i.value, e <= n.value ? {
302
255
  "border-brand-500 bg-brand-500": r.value === "brand",
303
256
  "border-warning-500 bg-warning-solid": r.value === "warning",
304
257
  "border-error bg-error-solid": r.value === "error"
305
258
  } : "border-secondary bg-primary"], "rounded-full border"])
306
259
  }, null, 2)), 64))]));
307
260
  }
308
- }), Z = 3e5;
309
- function Q() {
310
- return O("reminderConfig", {
311
- staleTime: Z,
312
- queryFn: () => J.getReminderConfigs()
261
+ }), G = 3e5;
262
+ function K() {
263
+ return k("reminderConfig", {
264
+ staleTime: G,
265
+ queryFn: () => H.getReminderConfigs()
313
266
  });
314
267
  }
315
268
  //#endregion
316
- export { K as i, X as n, J as r, Q as t };
269
+ export { B as i, W as n, H as r, K as t };