@wisemen/wise-invoicing-web 0.1.1 → 0.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 (206) hide show
  1. package/dist/ApprovalReminderSettingsViewDataProvider-D-qXZrPT.js +151 -0
  2. package/dist/{BillingDocumentDetailViewDataProvider-f5goWm_i.js → BillingDocumentDetailViewDataProvider-DDdtlW-2.js} +1386 -1450
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-5vi2pgRM.js → BillingDocumentPdf-ehdFB6mr.js} +4 -4
  5. package/dist/{CreditNoteDetailViewDataProvider-Byd1QvfY.js → CreditNoteDetailViewDataProvider-11a-JO3H.js} +201 -201
  6. package/dist/{CreditNotePdfViewDataProvider-DI4eQkpM.js → CreditNotePdfViewDataProvider-bfeaya3P.js} +3 -3
  7. package/dist/{CustomFieldValueText-BGbQwhON.js → CustomFieldValueText-CZQXGE5F.js} +81 -81
  8. package/dist/DataProvider-C3uEds9v.js +75 -0
  9. package/dist/{DunningCaseDetailViewDataProvider-DKuuysqS.js → DunningCaseDetailViewDataProvider-DC-ziMoO.js} +35 -35
  10. package/dist/{DunningCaseOverviewView-aWttPLrC.js → DunningCaseOverviewView-y_bCmi5j.js} +180 -180
  11. package/dist/{DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js → DunningCaseReminderPdfViewDataProvider-DNODfED_.js} +22 -23
  12. package/dist/{DunningCaseSendDialog-DyvA5R1p.js → DunningCaseSendDialog-BPXcqit5.js} +82 -82
  13. package/dist/InvoiceApprovalOverviewView-DZ14mi4L.js +870 -0
  14. package/dist/InvoiceApprovalStatusBadge-U-dW2hR4.js +161 -0
  15. package/dist/InvoiceApproveDialog-2LXneG2r.js +308 -0
  16. package/dist/InvoiceDetailViewDataProvider-BYeaaQzL.js +2156 -0
  17. package/dist/InvoiceOverviewBulkSendApprovalDialog-99dfuN4i.js +318 -0
  18. package/dist/InvoiceOverviewViewDataProvider-CZIQeftL.js +1620 -0
  19. package/dist/{InvoicePdfView-C-7m2g3b.js → InvoicePdfView-BJRTg_TH.js} +2 -2
  20. package/dist/{InvoicePdfViewDataProvider-BPiK110e.js → InvoicePdfViewDataProvider-CwI_uGm3.js} +4 -4
  21. package/dist/InvoicePublicPdfViewDataProvider-uZUfsr5K.js +45 -0
  22. package/dist/InvoicingFileUploadProvider-D9Xk4rQM.js +94 -0
  23. package/dist/{IssuerSettingsViewDataProvider-COqHGUE6.js → IssuerSettingsViewDataProvider-CGRa8F-2.js} +4 -4
  24. package/dist/{ReminderSettingsViewDataProvider-Dys4bUU7.js → ReminderSettingsViewDataProvider-1ucp3z2T.js} +58 -58
  25. package/dist/{api.util-BCSgCfpS.js → api.util-C_kMGlJN.js} +1456 -846
  26. package/dist/{billingDocumentDetail.transformer-BBn9R_cx.js → billingDocumentDetail.transformer-Da6_-Hv9.js} +58 -59
  27. package/dist/client/index.d.ts +2 -2
  28. package/dist/client/sdk.gen.d.ts +18 -1
  29. package/dist/client/types.gen.d.ts +1059 -106
  30. package/dist/client/zod.gen.d.ts +32759 -16136
  31. package/dist/{creditNoteDetail.query-BcPsB96h.js → creditNoteDetail.query-DLR7L0Ep.js} +30 -30
  32. package/dist/{dist-BBjpqvUl.js → dist-CoztMdYH.js} +614 -614
  33. package/dist/{dist-D9lp7NDv.js → dist-Cxdm09Lp.js} +210 -98
  34. package/dist/{documentTitle.composable-4ApFl9TZ.js → documentTitle.composable-DsBbzhXN.js} +23 -15
  35. package/dist/{customFieldValue.util-BwsX8exl.js → download.util-B5Q7KUC9.js} +6 -6
  36. package/dist/{i18n.lib-C6eb-F-e.js → i18n.lib-Cvr8pcDw.js} +272 -8
  37. package/dist/index.d.ts +297 -31
  38. package/dist/index.js +344 -324
  39. package/dist/invoice.service-DEEA9mal.js +745 -0
  40. package/dist/invoiceApproval.service-DvL3LliM.js +72 -0
  41. package/dist/invoiceApprovalStatus.util-3Zh10Pj8.js +79 -0
  42. package/dist/invoiceDeliveryStatus.util-nCsqDypY.js +211 -0
  43. package/dist/{invoiceDetail.query-Cek8nyaw.js → invoiceDetail.query-CRoH_SgM.js} +1 -1
  44. package/dist/{invoicingConfig.composable-DTmad1fe.js → invoicingConfig.composable-rxjGK882.js} +2 -2
  45. package/dist/{issuerSettings.query-Bvz-Oj5D.js → issuerSettings.query-Dc5gsaEm.js} +5 -5
  46. package/dist/libs/i18n.lib.d.ts +270 -6
  47. package/dist/locales/en-US.json.d.ts +136 -4
  48. package/dist/locales/nl-BE.json.d.ts +136 -4
  49. package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +0 -1
  50. package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +16 -0
  51. package/dist/modules/invoice/api/mutations/invoiceArchiveApproval.mutation.d.ts +6 -0
  52. package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +5 -0
  53. package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +4 -0
  54. package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +9 -0
  55. package/dist/modules/invoice/api/mutations/invoiceRestoreFromProForma.mutation.d.ts +4 -0
  56. package/dist/modules/invoice/api/mutations/invoiceSendApproval.mutation.d.ts +5 -0
  57. package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +4 -0
  58. package/dist/modules/invoice/api/services/invoice.service.d.ts +14 -1
  59. package/dist/modules/invoice/components/InvoiceApprovalOutOfSyncIndicator.vue.d.ts +3 -0
  60. package/dist/{ui/DisplayState.vue.d.ts → modules/invoice/components/InvoiceApprovalStatusBadge.vue.d.ts} +7 -10
  61. package/dist/modules/invoice/components/InvoiceApprovalStatusChip.vue.d.ts +16 -0
  62. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalTransformers.spec.d.ts +1 -0
  63. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUuid.model.d.ts +3 -0
  64. package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +5 -0
  65. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +13 -0
  66. package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +5 -0
  67. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +7 -0
  68. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.spec.d.ts +1 -0
  69. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +13 -1
  70. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +1 -0
  71. package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +4 -0
  72. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +3 -0
  73. package/dist/modules/invoice/models/invoice/invoiceApproval.transformer.d.ts +7 -0
  74. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +34 -0
  75. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +10 -0
  76. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.spec.d.ts +1 -0
  77. package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +19 -0
  78. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +4 -0
  79. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +5 -0
  80. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
  81. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalArchiveDialog.vue.d.ts +13 -0
  82. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalRevertDialog.vue.d.ts +15 -0
  83. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +13 -0
  84. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceFinalizeOutOfSyncDialog.vue.d.ts +21 -0
  85. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +13 -0
  86. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +3 -0
  87. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableApprovalCell.vue.d.ts +9 -0
  88. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +3 -0
  89. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +1 -0
  90. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +12 -0
  91. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +2 -0
  92. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +0 -5
  93. package/dist/modules/invoice-approval/actions/invoiceApproval.actions.d.ts +5 -0
  94. package/dist/modules/invoice-approval/actions/invoiceApprovalArchive.action.d.ts +1 -0
  95. package/dist/modules/invoice-approval/actions/invoiceApprovalMarkAsApproved.action.d.ts +1 -0
  96. package/dist/modules/invoice-approval/actions/invoiceApprovalReject.action.d.ts +1 -0
  97. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -0
  98. package/dist/modules/invoice-approval/actions/invoiceApprovalUnmarkAsNeedsApproval.action.d.ts +1 -0
  99. package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +8 -0
  100. package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -0
  101. package/dist/modules/invoice-approval/api/queries/invoiceApprovalIndex.query.d.ts +3 -0
  102. package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +15 -0
  103. package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -0
  104. package/dist/modules/invoice-approval/components/InvoiceApprovalReminderLevelIndicator.vue.d.ts +7 -0
  105. package/dist/modules/invoice-approval/models/approvalReminderConfig.transformer.d.ts +6 -0
  106. package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +11 -0
  107. package/dist/modules/invoice-approval/models/approvalReminderConfigForm.spec.d.ts +1 -0
  108. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +21 -0
  109. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.d.ts +5 -0
  110. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.model.d.ts +9 -0
  111. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.d.ts +6 -0
  112. package/dist/modules/invoice-approval/routes/invoiceApproval.routes.d.ts +24 -0
  113. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewActionsCell.vue.d.ts +7 -0
  114. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewAmountCell.vue.d.ts +7 -0
  115. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewInvoiceCell.vue.d.ts +7 -0
  116. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewMetrics.vue.d.ts +18 -0
  117. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewNextReminderCell.vue.d.ts +7 -0
  118. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewStatusCell.vue.d.ts +7 -0
  119. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +42 -0
  120. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +10 -0
  121. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewTableColumns.composable.d.ts +3 -0
  122. package/dist/modules/invoice-approval/use-cases/overview/views/InvoiceApprovalOverviewView.vue.d.ts +3 -0
  123. package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +7 -0
  124. package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsViewDataProvider.vue.d.ts +3 -0
  125. package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
  126. package/dist/{plainDate.transformer-BxvJpJOv.js → plainDate.transformer-Bhiz9jW7.js} +17 -4
  127. package/dist/reminderConfig.query-snaHQmrY.js +309 -0
  128. package/dist/routes/invoicingRoutes.composable.d.ts +14 -6
  129. package/dist/search.composable-CU9OpyUB.js +52 -0
  130. package/dist/{src-BFgnUugN.js → src-DUSgQTKr.js} +45 -45
  131. package/dist/style.css +1 -1
  132. package/dist/types/queryKey.type.d.ts +3 -2
  133. package/dist/utils/html.util.d.ts +4 -0
  134. package/package.json +2 -1
  135. package/dist/AddOpenBoundaryIcon-9SqBHfoz.js +0 -25
  136. package/dist/AirlineIcon-Z6sH_StM.js +0 -26
  137. package/dist/AirplaneIcon-C-nSkD1w.js +0 -19
  138. package/dist/AirportIcon-m4itDKCV.js +0 -16
  139. package/dist/AlertTriangleIcon-DtYLCC-Y.js +0 -23
  140. package/dist/AllocationsIcon-hcg93Sll.js +0 -16
  141. package/dist/ArrowNarrowRightIcon-2-Sml68f.js +0 -23
  142. package/dist/AssetIcon-qOYs6Wna.js +0 -16
  143. package/dist/BarChartIcon-DDyzpV_3.js +0 -22
  144. package/dist/BellIcon-DF1OBFta.js +0 -21
  145. package/dist/BuildingIcon-CC5PMNeP.js +0 -22
  146. package/dist/ChargerIcon-aM_endLr.js +0 -16
  147. package/dist/ChevronDownIcon-4QiK-Z6-.js +0 -23
  148. package/dist/ChevronUpIcon-qBsjZ5Dz.js +0 -23
  149. package/dist/ClockIcon-BNiPCaiB.js +0 -23
  150. package/dist/ClockSnoozeIcon-BxGfwJB6.js +0 -23
  151. package/dist/CopyIcon-DH5ly0dZ.js +0 -19
  152. package/dist/DataProvider-Dj34ljUX.js +0 -75
  153. package/dist/DownloadCloudIcon-Cf8ftklG.js +0 -22
  154. package/dist/EditIcon-Dr7OHBBR.js +0 -21
  155. package/dist/EraserIcon-B1VJSvdI.js +0 -23
  156. package/dist/FileIcon-ssmQI5Yl.js +0 -23
  157. package/dist/FilterLinesIcon-C7YdyPBk.js +0 -23
  158. package/dist/GlobeIcon-BfRM6Ike.js +0 -22
  159. package/dist/HelpIcon-BrJ49P5y.js +0 -22
  160. package/dist/HourGlassIcon-D9rfU1Is.js +0 -22
  161. package/dist/InfoCircleIcon-Ee0SyiMc.js +0 -23
  162. package/dist/InvoiceDetailViewDataProvider-BU6jZfD7.js +0 -1670
  163. package/dist/InvoiceOverviewViewDataProvider-i8tXATJE.js +0 -1677
  164. package/dist/InvoicePublicPdfViewDataProvider-BJe-8hC5.js +0 -45
  165. package/dist/KeyboardIcon-T3o_g-1c.js +0 -22
  166. package/dist/LinkExternalIcon-BkHS4fCx.js +0 -22
  167. package/dist/LinkIcon-DuPwae98.js +0 -22
  168. package/dist/MarkerIcon-B1Jqenjb.js +0 -28
  169. package/dist/MobileBatteryIcon-GZ1SMRDV.js +0 -16
  170. package/dist/MonitorIcon-pbK22reU.js +0 -22
  171. package/dist/NotificationIcon-Ctv8vyWt.js +0 -19
  172. package/dist/ParkingIcon-DnUPW3pB.js +0 -24
  173. package/dist/PlanningIcon-CXvrskgj.js +0 -16
  174. package/dist/PreferenceIcon-BHS8uDyi.js +0 -22
  175. package/dist/ReceiptCheckIcon-QTestqCJ.js +0 -23
  176. package/dist/RefreshIcon-DShY-aoS.js +0 -22
  177. package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +0 -28
  178. package/dist/RewindIcon-GWg2AQax.js +0 -22
  179. package/dist/SettingsIcon-CBLJ6B5u.js +0 -25
  180. package/dist/ShieldIcon-CVnrOcxl.js +0 -19
  181. package/dist/ShieldOffIcon-B9l0dDVb.js +0 -23
  182. package/dist/SignOutIcon-CmDkjJ5F.js +0 -21
  183. package/dist/SlashCircleIcon-jY5FBko5.js +0 -22
  184. package/dist/StandIcon-CoYnBLMn.js +0 -23
  185. package/dist/StarsIcon-D7ZlqOW7.js +0 -22
  186. package/dist/StopwatchIcon-BK0vh1lg.js +0 -22
  187. package/dist/TargetIcon-HMWj77-Q.js +0 -22
  188. package/dist/ThreeDotsIcon-BtFruOKz.js +0 -32
  189. package/dist/ToolIcon-DRfDb7fE.js +0 -22
  190. package/dist/TrashIcon-BwxBjHv5.js +0 -19
  191. package/dist/TurnaroundIcon-b1X61TwZ.js +0 -27
  192. package/dist/UploadCloudIcon-BF0equKg.js +0 -22
  193. package/dist/UserIcon-B0rCC6KE.js +0 -22
  194. package/dist/UsersIcon-cK5l_zKG.js +0 -22
  195. package/dist/VerifiedIcon-CELYlqcv.js +0 -22
  196. package/dist/WifiIcon--JPvMNEF.js +0 -23
  197. package/dist/WifiOffIcon-BS2KftcP.js +0 -23
  198. package/dist/ZapIcon-BHwcIQc0.js +0 -23
  199. package/dist/ZoomInIcon-Cu6r915V.js +0 -23
  200. package/dist/ZoomOutIcon-DwB4FRj-.js +0 -23
  201. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  202. package/dist/instant.transformer-KmBsH3E9.js +0 -18
  203. package/dist/invoice.service-Bb8VqQvc.js +0 -635
  204. package/dist/invoiceDeliveryStatus.util-BPkGCQM6.js +0 -331
  205. package/dist/reminderConfig.query-DsJNqqi7.js +0 -331
  206. package/dist/search.composable-BCtYqudV.js +0 -52
@@ -1,10 +1,9 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { K as t, t as n } from "./api.util-BCSgCfpS.js";
2
+ import { at as t, t as n } from "./api.util-C_kMGlJN.js";
3
3
  import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { n as i } from "./src-BFgnUugN.js";
5
- import { n as a, t as o } from "./plainDate.transformer-BxvJpJOv.js";
6
- import { n as s, t as c } from "./address.transformer-jGddczLV.js";
7
- import { t as l } from "./instant.transformer-KmBsH3E9.js";
4
+ import { n as i } from "./src-DUSgQTKr.js";
5
+ import { n as a, t as o } from "./address.transformer-jGddczLV.js";
6
+ import { n as s, r as c, t as l } from "./plainDate.transformer-Bhiz9jW7.js";
8
7
  import { n as u, r as ee } from "./dist-boJIIxnT.js";
9
8
  import { useI18n as d } from "vue-i18n";
10
9
  import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as te, createVNode as v, defineComponent as y, normalizeClass as b, onUnmounted as x, openBlock as S, renderList as C, toDisplayString as w, unref as T, withCtx as E } from "vue";
@@ -15,35 +14,35 @@ import { useRouteQuery as M } from "@vueuse/router";
15
14
  var N = class e {
16
15
  static fromInvoiceDto(e) {
17
16
  return {
18
- dueOn: o.fromDto(e.dueOn),
19
- issuedOn: o.fromDto(e.issuedOn),
17
+ dueOn: l.fromDto(e.dueOn),
18
+ issuedOn: l.fromDto(e.issuedOn),
20
19
  isNew: e.isNew,
21
20
  daysOverdue: e.daysOverdue,
22
- fee: a.fromDto(e.fee),
21
+ fee: s.fromDto(e.fee),
23
22
  level: e.level,
24
- outstandingBalance: a.fromDto(e.outstandingBalance),
23
+ outstandingBalance: s.fromDto(e.outstandingBalance),
25
24
  sequence: e.sequence
26
25
  };
27
26
  }
28
27
  static fromOutstandingInvoiceDto(e) {
29
28
  return {
30
- dueOn: o.fromDto(e.dueOn),
31
- issuedOn: o.fromDto(e.issuedOn),
29
+ dueOn: l.fromDto(e.dueOn),
30
+ issuedOn: l.fromDto(e.issuedOn),
32
31
  isNew: !1,
33
32
  daysOverdue: e.daysOverdue,
34
33
  fee: null,
35
34
  level: null,
36
- outstandingBalance: a.fromDto(e.outstandingBalance),
35
+ outstandingBalance: s.fromDto(e.outstandingBalance),
37
36
  sequence: e.sequence
38
37
  };
39
38
  }
40
39
  static fromPublicDto(t) {
41
40
  return {
42
- createdAt: l.fromDto(t.createdAt),
43
- sentAt: l.fromNullableDto(t.sentAt),
41
+ createdAt: c.fromDto(t.createdAt),
42
+ sentAt: c.fromNullableDto(t.sentAt),
44
43
  issuer: {
45
44
  name: t.issuer.name,
46
- address: c.fromNullableDto(t.issuer.address),
45
+ address: o.fromNullableDto(t.issuer.address),
47
46
  alternativeBankAccountNumber: t.issuer.alternativeBankAccountNumber,
48
47
  bankAccountNumber: t.issuer.bankAccountNumber,
49
48
  email: t.issuer.email,
@@ -53,7 +52,7 @@ var N = class e {
53
52
  },
54
53
  customer: {
55
54
  name: t.customer.name,
56
- address: c.fromNullableDto(t.customer.address),
55
+ address: o.fromNullableDto(t.customer.address),
57
56
  locale: t.customer.locale
58
57
  },
59
58
  invoices: t.invoices.map(e.fromInvoiceDto).toSorted((e, t) => (t.level ?? 0) - (e.level ?? 0) || t.outstandingBalance.amount - e.outstandingBalance.amount),
@@ -63,7 +62,7 @@ var N = class e {
63
62
  name: t.recipient.name,
64
63
  email: t.recipient.email
65
64
  },
66
- totalFee: a.fromDto(t.totalFee)
65
+ totalFee: s.fromDto(t.totalFee)
67
66
  };
68
67
  }
69
68
  }, P = class {
@@ -92,11 +91,11 @@ var I = /* @__PURE__ */ y({
92
91
  __name: "DunningCaseReminderPdfFooter",
93
92
  props: { issuer: {} },
94
93
  setup(e) {
95
- let t = e, n = d(), r = p(() => t.issuer.name ?? n.t("module.dunning_case.pdf.not_available")), i = p(() => s.formatLines(t.issuer.address).join(", ")), a = p(() => t.issuer.bankAccountNumber ?? t.issuer.alternativeBankAccountNumber);
96
- function o(...e) {
94
+ let t = e, n = d(), r = p(() => t.issuer.name ?? n.t("module.dunning_case.pdf.not_available")), i = p(() => a.formatLines(t.issuer.address).join(", ")), o = p(() => t.issuer.bankAccountNumber ?? t.issuer.alternativeBankAccountNumber);
95
+ function s(...e) {
97
96
  return e.flatMap(([e, t]) => t === null || t === "" ? [] : `${e}: ${t}`);
98
97
  }
99
- let c = p(() => [o([n.t("module.dunning_case.pdf.footer.email"), t.issuer.email], [n.t("module.dunning_case.pdf.footer.phone"), t.issuer.phoneNumber]), o([n.t("module.dunning_case.pdf.footer.address"), i.value], [n.t("module.dunning_case.pdf.footer.vat_number"), t.issuer.vatNumber], [n.t("module.dunning_case.pdf.footer.iban"), a.value])].filter((e) => e.length > 0));
98
+ let c = p(() => [s([n.t("module.dunning_case.pdf.footer.email"), t.issuer.email], [n.t("module.dunning_case.pdf.footer.phone"), t.issuer.phoneNumber]), s([n.t("module.dunning_case.pdf.footer.address"), i.value], [n.t("module.dunning_case.pdf.footer.vat_number"), t.issuer.vatNumber], [n.t("module.dunning_case.pdf.footer.iban"), o.value])].filter((e) => e.length > 0));
100
99
  return (e, t) => (S(), m(T(O), {
101
100
  as: "footer",
102
101
  align: "stretch",
@@ -169,7 +168,7 @@ var I = /* @__PURE__ */ y({
169
168
  __name: "DunningCaseReminderPdfHeader",
170
169
  props: { reminder: {} },
171
170
  setup(e) {
172
- let t = e, n = d(), r = u(), i = p(() => t.reminder.issuer.name ?? n.t("module.dunning_case.pdf.not_available")), a = p(() => s.formatLines(t.reminder.customer.address)), o = p(() => n.t(z.getLetterCopy(t.reminder.level).subtitleKey)), c = p(() => t.reminder.sentAt === null ? n.t("module.dunning_case.pdf.created_date") : n.t("module.dunning_case.pdf.reminder_date")), l = p(() => r.toDate(t.reminder.sentAt ?? t.reminder.createdAt));
171
+ let t = e, n = d(), r = u(), i = p(() => t.reminder.issuer.name ?? n.t("module.dunning_case.pdf.not_available")), o = p(() => a.formatLines(t.reminder.customer.address)), s = p(() => n.t(z.getLetterCopy(t.reminder.level).subtitleKey)), c = p(() => t.reminder.sentAt === null ? n.t("module.dunning_case.pdf.created_date") : n.t("module.dunning_case.pdf.reminder_date")), l = p(() => r.toDate(t.reminder.sentAt ?? t.reminder.createdAt));
173
172
  return (e, r) => (S(), m(T(O), {
174
173
  as: "header",
175
174
  align: "center",
@@ -196,7 +195,7 @@ var I = /* @__PURE__ */ y({
196
195
  class: "text-lg/7 font-medium"
197
196
  }, null, 8, ["text"]),
198
197
  v(T(A), {
199
- text: o.value,
198
+ text: s.value,
200
199
  truncate: !1,
201
200
  as: "p",
202
201
  class: "text-secondary"
@@ -213,7 +212,7 @@ var I = /* @__PURE__ */ y({
213
212
  class: "leading-3.5 font-semibold"
214
213
  }, null, 8, ["text"]), _("div", null, [
215
214
  _("p", null, w(t.reminder.customer.name), 1),
216
- (S(!0), g(f, null, C(a.value, (e) => (S(), g("p", { key: e }, w(e), 1))), 128)),
215
+ (S(!0), g(f, null, C(o.value, (e) => (S(), g("p", { key: e }, w(e), 1))), 128)),
217
216
  _("p", null, w(t.reminder.recipient.email), 1)
218
217
  ])]),
219
218
  _: 1
@@ -1,24 +1,24 @@
1
- import { R as e, t, z as n } from "./api.util-BCSgCfpS.js";
1
+ import { X as e, Z as t, t as n } from "./api.util-C_kMGlJN.js";
2
2
  import { r } from "./useCurrencyFormat.composable-MtZaqKnO.js";
3
- import { n as i } from "./invoicingConfig.composable-DTmad1fe.js";
4
- import { n as a, r as o, t as s } from "./reminderConfig.query-DsJNqqi7.js";
5
- import { K as c, d as l, tt as u } from "./dist-D9lp7NDv.js";
3
+ import { n as i } from "./invoicingConfig.composable-rxjGK882.js";
4
+ import { n as a, r as o, t as s } from "./reminderConfig.query-snaHQmrY.js";
5
+ import { Q as c, ct as l, d as u } from "./dist-Cxdm09Lp.js";
6
6
  import { t as d } from "./customerUuid.model-GUFYq3O2.js";
7
- import { useRouter as f } from "vue-router";
8
- import { z as p } from "zod";
9
- import { useI18n as m } from "vue-i18n";
10
- import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, normalizeClass as w, openBlock as T, ref as E, renderList as D, toDisplayString as O, unref as k, watch as A, withCtx as j } from "vue";
11
- import { useMutation as ee, useQuery as M } from "@wisemen/vue-core-api-utils";
7
+ import { z as f } from "zod";
8
+ import { useI18n as p } from "vue-i18n";
9
+ import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, normalizeClass as C, openBlock as w, ref as T, renderList as E, toDisplayString as D, unref as O, watch as k, withCtx as A } from "vue";
10
+ import { useMutation as j, useQuery as ee } from "@wisemen/vue-core-api-utils";
11
+ import { useRouter as M } from "vue-router";
12
12
  import { Temporal as N } from "temporal-polyfill";
13
13
  import { err as te, ok as ne } from "neverthrow";
14
14
  import { UIBadge as P, UIColumnLayout as F, UIDialogBody as I, UIDialogFooter as L, UIDialogFooterCancel as R, UIDialogFooterPrimary as z, UIDialogHeader as B, UIFormDialog as V, useToast as H } from "@wisemen/vue-core-design-system";
15
15
  import { useForm as U } from "formango";
16
16
  //#region src/modules/dunning-case/api/services/dunningCaseCustomer.service.ts
17
17
  var W = class {
18
- static async getAll(n, r) {
19
- return (await t.fromPromise(e({ query: {
18
+ static async getAll(t, r) {
19
+ return (await n.fromPromise(e({ query: {
20
20
  pagination: r,
21
- search: n
21
+ search: t
22
22
  } }))).map((e) => ({
23
23
  data: e.data.items.map((e) => ({
24
24
  uuid: e.uuid,
@@ -30,7 +30,7 @@ var W = class {
30
30
  static async getRecipients(e) {
31
31
  let r = [], i = 0, a = 0;
32
32
  do {
33
- let o = await t.fromPromise(n({
33
+ let o = await n.fromPromise(t({
34
34
  query: { pagination: {
35
35
  limit: 100,
36
36
  offset: i
@@ -45,9 +45,9 @@ var W = class {
45
45
  } while (i < a);
46
46
  return ne(r);
47
47
  }
48
- static async getUuidByExternalId(n) {
49
- return (await t.fromPromise(e({ query: {
50
- filter: { externalId: n },
48
+ static async getUuidByExternalId(t) {
49
+ return (await n.fromPromise(e({ query: {
50
+ filter: { externalId: t },
51
51
  pagination: {
52
52
  limit: 1,
53
53
  offset: 0
@@ -56,7 +56,7 @@ var W = class {
56
56
  }
57
57
  }, G = 3e4;
58
58
  function K(e) {
59
- return M("dunningCaseDetail", {
59
+ return ee("dunningCaseDetail", {
60
60
  staleTime: G,
61
61
  params: { dunningCaseUuid: e },
62
62
  queryFn: () => o.getByUuid(e.value)
@@ -64,27 +64,27 @@ function K(e) {
64
64
  }
65
65
  //#endregion
66
66
  //#region src/modules/dunning-case/components/DunningCaseReminderStatusIndicator.vue
67
- var q = /* @__PURE__ */ C({
67
+ var q = /* @__PURE__ */ S({
68
68
  __name: "DunningCaseReminderStatusIndicator",
69
69
  props: {
70
70
  blockedReason: {},
71
71
  status: {}
72
72
  },
73
73
  setup(e) {
74
- let t = e, n = m(), r = {
74
+ let t = e, n = p(), r = {
75
75
  icon: c,
76
76
  type: "icon"
77
77
  };
78
- return (e, i) => t.blockedReason === null ? t.status === "failed" ? (T(), _(k(P), {
78
+ return (e, i) => t.blockedReason === null ? t.status === "failed" ? (w(), g(O(P), {
79
79
  key: 1,
80
- label: k(n).t("module.dunning_case.reminder_status.failed"),
80
+ label: O(n).t("module.dunning_case.reminder_status.failed"),
81
81
  left: r,
82
82
  color: "warning",
83
83
  size: "sm",
84
84
  variant: "translucent"
85
- }, null, 8, ["label"])) : v("", !0) : (T(), _(k(P), {
85
+ }, null, 8, ["label"])) : _("", !0) : (w(), g(O(P), {
86
86
  key: 0,
87
- label: k(n).t(`module.dunning_case.blocked_reason.${t.blockedReason}`),
87
+ label: O(n).t(`module.dunning_case.blocked_reason.${t.blockedReason}`),
88
88
  left: r,
89
89
  color: "error",
90
90
  size: "sm",
@@ -92,7 +92,7 @@ var q = /* @__PURE__ */ C({
92
92
  }, null, 8, ["label"]));
93
93
  }
94
94
  });
95
- p.uuid().brand("DunningCaseUuid");
95
+ f.uuid().brand("DunningCaseUuid");
96
96
  function J(e) {
97
97
  return e === null ? "none" : e.hasErrors ? "failed" : e.sentAt === null ? "sending" : "sent";
98
98
  }
@@ -113,7 +113,7 @@ function Y(e, t) {
113
113
  //#endregion
114
114
  //#region src/modules/dunning-case/api/mutations/dunningCaseSend.mutation.ts
115
115
  function X() {
116
- return ee({
116
+ return j({
117
117
  queryFn: (e) => o.send(e.params.dunningCaseUuid),
118
118
  queryKeysToInvalidate: {
119
119
  dunningCaseDetail: { dunningCaseUuid: (e) => e.dunningCaseUuid },
@@ -123,15 +123,15 @@ function X() {
123
123
  }
124
124
  //#endregion
125
125
  //#region src/modules/dunning-case/use-cases/send/components/DunningCaseSendFeeRow.vue?vue&type=script&setup=true&lang.ts
126
- var Z = { class: "flex items-center justify-between gap-lg px-lg py-xs" }, re = { class: "text-xs text-secondary" }, ie = { class: "font-mono text-xs font-medium text-primary tabular-nums" }, ae = /* @__PURE__ */ C({
126
+ var Z = { class: "flex items-center justify-between gap-lg px-lg py-xs" }, re = { class: "text-xs text-secondary" }, ie = { class: "font-mono text-xs font-medium text-primary tabular-nums" }, ae = /* @__PURE__ */ S({
127
127
  __name: "DunningCaseSendFeeRow",
128
128
  props: {
129
129
  fee: {},
130
130
  level: {}
131
131
  },
132
132
  setup(e) {
133
- let t = e, n = m(), i = r();
134
- return (e, r) => (T(), y("dl", Z, [b("dt", re, O(k(n).t("module.dunning_case.detail.reminder_fee")) + " · " + O(k(n).t("module.dunning_case.level.reminder", { level: t.level })), 1), b("dd", ie, O(k(i).formatMonetary(t.fee)), 1)]));
133
+ let t = e, n = p(), i = r();
134
+ return (e, r) => (w(), v("dl", Z, [y("dt", re, D(O(n).t("module.dunning_case.detail.reminder_fee")) + " · " + D(O(n).t("module.dunning_case.level.reminder", { level: t.level })), 1), y("dd", ie, D(O(i).formatMonetary(t.fee)), 1)]));
135
135
  }
136
136
  });
137
137
  //#endregion
@@ -165,60 +165,60 @@ var le = { class: "min-w-0" }, ue = { class: "flex min-w-0 items-center gap-sm"
165
165
  }, me = {
166
166
  key: 2,
167
167
  class: "flex shrink-0 gap-xxs"
168
- }, he = { class: "font-mono text-xs font-medium text-primary tabular-nums" }, ge = /* @__PURE__ */ C({
168
+ }, he = { class: "font-mono text-xs font-medium text-primary tabular-nums" }, ge = /* @__PURE__ */ S({
169
169
  __name: "DunningCaseSendInvoiceRow",
170
170
  props: {
171
171
  hasSeparator: { type: Boolean },
172
172
  invoice: {}
173
173
  },
174
174
  setup(e) {
175
- let t = e, n = m(), i = r();
176
- return (e, r) => (T(), y("div", { class: w([{ "border-t border-secondary": t.hasSeparator }, "grid grid-cols-[minmax(0,1fr)_auto] items-center gap-lg px-lg py-xs"]) }, [b("div", le, [b("div", ue, [b("p", de, O(t.invoice.sequence), 1), t.invoice.isDisputed ? (T(), y("span", fe, " · " + O(k(n).t("module.dunning_case.detail.protested")), 1)) : k(Q)(t.invoice) ? (T(), y("span", pe, " (" + O(k(n).t("module.dunning_case.send.not_yet_due")) + ") ", 1)) : (T(), y("span", me, [S(a, {
175
+ let t = e, n = p(), i = r();
176
+ return (e, r) => (w(), v("div", { class: C([{ "border-t border-secondary": t.hasSeparator }, "grid grid-cols-[minmax(0,1fr)_auto] items-center gap-lg px-lg py-xs"]) }, [y("div", le, [y("div", ue, [y("p", de, D(t.invoice.sequence), 1), t.invoice.isDisputed ? (w(), v("span", fe, " · " + D(O(n).t("module.dunning_case.detail.protested")), 1)) : O(Q)(t.invoice) ? (w(), v("span", pe, " (" + D(O(n).t("module.dunning_case.send.not_yet_due")) + ") ", 1)) : (w(), v("span", me, [x(a, {
177
177
  level: t.invoice.level,
178
178
  size: "sm"
179
- }, null, 8, ["level"])]))])]), b("p", he, O(t.invoice.isDisputed ? "—" : k(i).formatMonetary(t.invoice.balanceDueAmount)), 1)], 2));
179
+ }, null, 8, ["level"])]))])]), y("p", he, D(t.invoice.isDisputed ? "—" : O(i).formatMonetary(t.invoice.balanceDueAmount)), 1)], 2));
180
180
  }
181
- }), _e = { class: "w-full overflow-hidden rounded-md border border-secondary bg-primary shadow-xs" }, ve = { class: "flex items-start justify-between gap-lg border-b border-secondary px-lg py-md" }, ye = { class: "min-w-0" }, be = { class: "text-sm font-semibold text-primary" }, xe = { class: "shrink-0" }, Se = { class: "max-h-72 overflow-y-auto border-b border-secondary" }, Ce = { class: "flex items-center justify-between gap-xl bg-secondary px-lg py-md" }, we = { class: "text-sm font-medium text-primary" }, Te = { class: "font-mono text-xl font-semibold text-primary tabular-nums" }, Ee = /* @__PURE__ */ C({
181
+ }), _e = { class: "w-full overflow-hidden rounded-md border border-secondary bg-primary shadow-xs" }, ve = { class: "flex items-start justify-between gap-lg border-b border-secondary px-lg py-md" }, ye = { class: "min-w-0" }, be = { class: "text-sm font-semibold text-primary" }, xe = { class: "shrink-0" }, Se = { class: "max-h-72 overflow-y-auto border-b border-secondary" }, Ce = { class: "flex items-center justify-between gap-xl bg-secondary px-lg py-md" }, we = { class: "text-sm font-medium text-primary" }, Te = { class: "font-mono text-xl font-semibold text-primary tabular-nums" }, Ee = /* @__PURE__ */ S({
182
182
  __name: "DunningCaseSendInvoiceSummary",
183
183
  props: {
184
184
  dunningCase: {},
185
185
  subject: {}
186
186
  },
187
187
  setup(e) {
188
- let t = e, n = m(), i = r(), a = g(() => ce(t.dunningCase.invoices, t.dunningCase.totalFee.amount > 0)), o = g(() => t.dunningCase.level === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: t.dunningCase.level }));
189
- return (e, r) => (T(), y("section", _e, [
190
- b("div", ve, [b("div", ye, [b("p", be, O(t.subject ?? k(n).t("module.dunning_case.detail.invoices")), 1)]), b("span", xe, [S(k(P), {
188
+ let t = e, n = p(), i = r(), a = h(() => ce(t.dunningCase.invoices, t.dunningCase.totalFee.amount > 0)), o = h(() => t.dunningCase.level === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: t.dunningCase.level }));
189
+ return (e, r) => (w(), v("section", _e, [
190
+ y("div", ve, [y("div", ye, [y("p", be, D(t.subject ?? O(n).t("module.dunning_case.detail.invoices")), 1)]), y("span", xe, [x(O(P), {
191
191
  label: o.value,
192
192
  color: "gray",
193
193
  size: "sm",
194
194
  variant: "translucent"
195
195
  }, null, 8, ["label"])])]),
196
- b("div", Se, [(T(!0), y(h, null, D(a.value, (e, n) => (T(), y(h, { key: e.type === "fee" ? "fee" : e.invoice.uuid }, [e.type === "fee" ? (T(), _(ae, {
196
+ y("div", Se, [(w(!0), v(m, null, E(a.value, (e, n) => (w(), v(m, { key: e.type === "fee" ? "fee" : e.invoice.uuid }, [e.type === "fee" ? (w(), g(ae, {
197
197
  key: 0,
198
198
  fee: t.dunningCase.totalFee,
199
199
  level: t.dunningCase.level
200
- }, null, 8, ["fee", "level"])) : (T(), _(ge, {
200
+ }, null, 8, ["fee", "level"])) : (w(), g(ge, {
201
201
  key: 1,
202
202
  "has-separator": a.value[n - 1]?.type === "fee",
203
203
  invoice: e.invoice
204
204
  }, null, 8, ["has-separator", "invoice"]))], 64))), 128))]),
205
- b("dl", Ce, [b("dt", we, O(k(n).t("module.dunning_case.send.outstanding_balance")), 1), b("dd", Te, O(k(i).formatMonetary(t.dunningCase.outstandingBalance)), 1)])
205
+ y("dl", Ce, [y("dt", we, D(O(n).t("module.dunning_case.send.outstanding_balance")), 1), y("dd", Te, D(O(i).formatMonetary(t.dunningCase.outstandingBalance)), 1)])
206
206
  ]));
207
207
  }
208
- }), De = { class: "rounded-md border border-secondary bg-secondary p-md" }, $ = { class: "text-sm text-error-primary" }, Oe = /* @__PURE__ */ C({
208
+ }), De = { class: "rounded-md border border-secondary bg-secondary p-md" }, $ = { class: "text-sm text-error-primary" }, Oe = /* @__PURE__ */ S({
209
209
  __name: "DunningCaseSendRecipientAlert",
210
210
  props: { customerDetailRoute: {} },
211
211
  setup(e) {
212
- let t = e, n = m(), r = f();
212
+ let t = e, n = p(), r = M();
213
213
  function i() {
214
214
  t.customerDetailRoute !== null && r.push(t.customerDetailRoute);
215
215
  }
216
- return (e, r) => (T(), y("div", De, [b("p", $, [x(O(k(n).t("module.dunning_case.send.no_default_recipient_description")) + " ", 1), t.customerDetailRoute === null ? v("", !0) : (T(), y("button", {
216
+ return (e, r) => (w(), v("div", De, [y("p", $, [b(D(O(n).t("module.dunning_case.send.no_default_recipient_description")) + " ", 1), t.customerDetailRoute === null ? _("", !0) : (w(), v("button", {
217
217
  key: 0,
218
218
  class: "font-medium underline hover:no-underline",
219
219
  type: "button",
220
220
  onClick: i
221
- }, O(k(n).t("module.dunning_case.send.open_customer")), 1))])]));
221
+ }, D(O(n).t("module.dunning_case.send.open_customer")), 1))])]));
222
222
  }
223
223
  });
224
224
  //#endregion
@@ -227,8 +227,8 @@ function ke(e) {
227
227
  return e === "fr-BE" || e === "nl-BE" ? e : "en-US";
228
228
  }
229
229
  function Ae(e) {
230
- let t = m(), n = s();
231
- return g(() => {
230
+ let t = p(), n = s();
231
+ return h(() => {
232
232
  let r = e.value;
233
233
  return r === null || !n.result.value.isOk() ? null : n.result.value.getValue().find((e) => e.sequence === r)?.template[ke(t.locale.value)].subject || null;
234
234
  });
@@ -236,8 +236,8 @@ function Ae(e) {
236
236
  //#endregion
237
237
  //#region src/modules/dunning-case/use-cases/send/composables/dunningCaseSendRecipient.composable.ts
238
238
  function je(e) {
239
- let t = E(void 0), n = E(!0);
240
- return A(e, async (e) => {
239
+ let t = T(void 0), n = T(!0);
240
+ return k(e, async (e) => {
241
241
  if (t.value = void 0, n.value = !0, e === null) return;
242
242
  let r = await W.getRecipients(d.parse(e));
243
243
  if (r.isErr()) {
@@ -246,7 +246,7 @@ function je(e) {
246
246
  }
247
247
  t.value = r.value.find((e) => e.isDefault)?.email ?? null, n.value = !1;
248
248
  }, { immediate: !0 }), {
249
- isMissing: g(() => t.value === null),
249
+ isMissing: h(() => t.value === null),
250
250
  isPending: n,
251
251
  defaultEmail: t
252
252
  };
@@ -256,7 +256,7 @@ function je(e) {
256
256
  var Me = {
257
257
  key: 0,
258
258
  class: "text-sm text-secondary"
259
- }, Ne = { class: "flex w-full items-start gap-md rounded-md bg-secondary px-lg py-md text-secondary" }, Pe = { class: "text-xs/relaxed" }, Fe = /* @__PURE__ */ C({
259
+ }, Ne = { class: "flex w-full items-start gap-md rounded-md bg-secondary px-lg py-md text-secondary" }, Pe = { class: "text-xs/relaxed" }, Fe = /* @__PURE__ */ S({
260
260
  __name: "DunningCaseSendDialog",
261
261
  props: {
262
262
  dunningCaseUuid: {},
@@ -264,13 +264,13 @@ var Me = {
264
264
  },
265
265
  emits: ["close"],
266
266
  setup(e, { emit: t }) {
267
- let n = e, r = t, a = m(), o = H(), s = i(), c = X(), d = K(g(() => n.dunningCaseUuid)), f = g(() => d.result.value.isOk() ? d.result.value.getValue() : null), x = je(g(() => f.value?.customer.uuid ?? null)), C = Ae(g(() => f.value?.level ?? null)), w = g(() => {
268
- let e = f.value?.customer.uuid;
267
+ let n = e, r = t, a = p(), o = H(), s = i(), c = X(), d = K(h(() => n.dunningCaseUuid)), b = h(() => d.result.value.isOk() ? d.result.value.getValue() : null), S = je(h(() => b.value?.customer.uuid ?? null)), C = Ae(h(() => b.value?.level ?? null)), T = h(() => {
268
+ let e = b.value?.customer.uuid;
269
269
  return e === void 0 ? null : s.getCustomerDetailRoute(e);
270
- }), E = g(() => f.value === null ? 0 : se(f.value.invoices).length), D = g(() => typeof x.defaultEmail.value == "string" ? a.t("module.dunning_case.send.grouped_to", { email: x.defaultEmail.value }) : x.isMissing.value ? a.t("module.dunning_case.send.no_default_recipient") : a.t("module.dunning_case.send.description")), A = U({
271
- schema: p.object({}),
270
+ }), E = h(() => b.value === null ? 0 : se(b.value.invoices).length), k = h(() => typeof S.defaultEmail.value == "string" ? a.t("module.dunning_case.send.grouped_to", { email: S.defaultEmail.value }) : S.isMissing.value ? a.t("module.dunning_case.send.no_default_recipient") : a.t("module.dunning_case.send.description")), j = U({
271
+ schema: f.object({}),
272
272
  onSubmit: async () => {
273
- if (x.isMissing.value) {
273
+ if (S.isMissing.value) {
274
274
  o.show({ message: a.t("module.dunning_case.send.no_default_recipient_blocked") });
275
275
  return;
276
276
  }
@@ -281,56 +281,56 @@ var Me = {
281
281
  }
282
282
  o.show({
283
283
  duration: Infinity,
284
- message: a.t("module.dunning_case.send.success", { customer: f.value?.customer.name ?? "" })
284
+ message: a.t("module.dunning_case.send.success", { customer: b.value?.customer.name ?? "" })
285
285
  }), n.onSent?.(), r("close");
286
286
  }
287
287
  });
288
- return (e, t) => (T(), _(k(V), {
289
- form: k(A),
288
+ return (e, t) => (w(), g(O(V), {
289
+ form: O(j),
290
290
  size: "lg",
291
291
  onClose: t[0] ||= (e) => r("close")
292
292
  }, {
293
- default: j(() => [
294
- S(k(B), {
295
- title: k(a).t("module.dunning_case.send.title", {
296
- customer: f.value?.customer.name ?? "",
297
- level: f.value?.level ?? ""
293
+ default: A(() => [
294
+ x(O(B), {
295
+ title: O(a).t("module.dunning_case.send.title", {
296
+ customer: b.value?.customer.name ?? "",
297
+ level: b.value?.level ?? ""
298
298
  }),
299
- description: D.value,
299
+ description: k.value,
300
300
  "has-separator": !1,
301
- icon: k(u)
301
+ icon: O(l)
302
302
  }, null, 8, [
303
303
  "title",
304
304
  "description",
305
305
  "icon"
306
306
  ]),
307
- S(k(I), null, {
308
- default: j(() => [S(k(F), { gap: "lg" }, {
309
- default: j(() => [k(d).isLoading.value ? (T(), y("p", Me, O(k(a).t("module.dunning_case.common.loading")), 1)) : f.value === null ? v("", !0) : (T(), y(h, { key: 1 }, [
310
- k(x).isMissing.value ? (T(), _(Oe, {
307
+ x(O(I), null, {
308
+ default: A(() => [x(O(F), { gap: "lg" }, {
309
+ default: A(() => [O(d).isLoading.value ? (w(), v("p", Me, D(O(a).t("module.dunning_case.common.loading")), 1)) : b.value === null ? _("", !0) : (w(), v(m, { key: 1 }, [
310
+ O(S).isMissing.value ? (w(), g(Oe, {
311
311
  key: 0,
312
- "customer-detail-route": w.value
313
- }, null, 8, ["customer-detail-route"])) : v("", !0),
314
- S(Ee, {
315
- "dunning-case": f.value,
316
- subject: k(C)
312
+ "customer-detail-route": T.value
313
+ }, null, 8, ["customer-detail-route"])) : _("", !0),
314
+ x(Ee, {
315
+ "dunning-case": b.value,
316
+ subject: O(C)
317
317
  }, null, 8, ["dunning-case", "subject"]),
318
- b("div", Ne, [S(k(l), { class: "mt-xxs size-(--spacing-xl) shrink-0" }), b("p", Pe, O(k(a).t("module.dunning_case.send.impact", {
318
+ y("div", Ne, [x(O(u), { class: "mt-xxs size-(--spacing-xl) shrink-0" }), y("p", Pe, D(O(a).t("module.dunning_case.send.impact", {
319
319
  count: E.value,
320
- level: f.value.level
320
+ level: b.value.level
321
321
  })), 1)])
322
322
  ], 64))]),
323
323
  _: 1
324
324
  })]),
325
325
  _: 1
326
326
  }),
327
- S(k(L), { "has-separator": !1 }, {
328
- right: j(() => [S(k(R)), S(k(z), {
329
- "icon-right": k(u),
330
- "is-disabled": f.value === null || k(x).isPending.value || k(x).isMissing.value,
331
- "is-loading": k(A).isSubmitting.value,
332
- label: k(a).t("module.dunning_case.send.send_now"),
333
- onClick: k(A).submit
327
+ x(O(L), { "has-separator": !1 }, {
328
+ right: A(() => [x(O(R)), x(O(z), {
329
+ "icon-right": O(l),
330
+ "is-disabled": b.value === null || O(S).isPending.value || O(S).isMissing.value,
331
+ "is-loading": O(j).isSubmitting.value,
332
+ label: O(a).t("module.dunning_case.send.send_now"),
333
+ onClick: O(j).submit
334
334
  }, null, 8, [
335
335
  "icon-right",
336
336
  "is-disabled",