@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,31 +1,31 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "./documentTitle.composable-4ApFl9TZ.js";
2
+ import { t } from "./documentTitle.composable-DsBbzhXN.js";
3
3
  import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { t as r } from "./search.composable-BCtYqudV.js";
5
- import { n as i } from "./invoicingConfig.composable-DTmad1fe.js";
6
- import { n as a, r as o } from "./reminderConfig.query-DsJNqqi7.js";
7
- import { $ as s, N as c, S as l, c as u, k as d, l as f, tt as p } from "./dist-D9lp7NDv.js";
8
- import { i as m, o as h, r as g, t as _ } from "./DunningCaseSendDialog-DyvA5R1p.js";
9
- import { f as v, i as y, n as ee, o as te, r as b, s as ne } from "./dist-BBjpqvUl.js";
10
- import { createAction as x } from "@wisemen/vue-core-actions";
11
- import { useRouter as S } from "vue-router";
12
- import { z as C } from "zod";
13
- import { useI18n as w } from "vue-i18n";
14
- 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, nextTick as re, normalizeClass as N, normalizeStyle as P, onMounted as F, openBlock as I, ref as L, renderList as R, toDisplayString as z, unref as B, watch as V, withCtx as H } from "vue";
15
- import { useMutation as U, useOffsetInfiniteQuery as W } from "@wisemen/vue-core-api-utils";
16
- import { Temporal as G } from "temporal-polyfill";
17
- import { UIBadge as ie, UIButton as K, UIDashboardPage as ae, UIDialogBody as q, UIDialogFooter as J, UIDialogFooterCancel as Y, UIDialogFooterPrimary as X, UIDialogHeader as oe, UIFormDialog as se, UITable as ce, UITableCell as Z, UITableCellInteractiveElement as le, UITabs as ue, UITabsItem as de, UITabsList as fe, createComponent as Q, defineTableColumns as pe, useOverlay as me, useToast as he } from "@wisemen/vue-core-design-system";
4
+ import { n as r } from "./invoicingConfig.composable-rxjGK882.js";
5
+ import { t as i } from "./search.composable-CU9OpyUB.js";
6
+ import { n as a, r as o } from "./reminderConfig.query-snaHQmrY.js";
7
+ import { C as s, M as c, R as l, c as u, ct as d, l as f, ot as p } from "./dist-Cxdm09Lp.js";
8
+ import { i as m, o as h, r as g, t as _ } from "./DunningCaseSendDialog-BPXcqit5.js";
9
+ import { f as v, i as y, n as ee, o as te, r as b, s as ne } from "./dist-CoztMdYH.js";
10
+ import { z as re } from "zod";
11
+ import { useI18n as x } from "vue-i18n";
12
+ import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createVNode as O, defineComponent as k, nextTick as A, normalizeClass as j, normalizeStyle as M, onMounted as N, openBlock as P, ref as F, renderList as I, toDisplayString as L, unref as R, watch as ie, withCtx as z } from "vue";
13
+ import { useMutation as B, useOffsetInfiniteQuery as V } from "@wisemen/vue-core-api-utils";
14
+ import { useRouter as H } from "vue-router";
15
+ import { Temporal as U } from "temporal-polyfill";
16
+ import { UIBadge as W, UIButton as G, UIDashboardPage as ae, UIDialogBody as K, UIDialogFooter as q, UIDialogFooterCancel as J, UIDialogFooterPrimary as Y, UIDialogHeader as X, UIFormDialog as oe, UITable as se, UITableCell as Z, UITableCellInteractiveElement as ce, UITabs as le, UITabsItem as ue, UITabsList as de, createComponent as Q, defineTableColumns as fe, useOverlay as pe, useToast as me } from "@wisemen/vue-core-design-system";
17
+ import { createAction as he } from "@wisemen/vue-core-actions";
18
18
  import { useForm as ge } from "formango";
19
19
  //#region src/modules/dunning-case/api/queries/dunningCaseIndex.query.ts
20
20
  function $(e) {
21
- let t = E(() => ({
21
+ let t = C(() => ({
22
22
  customerUuid: e.params.customerUuid?.value,
23
23
  isOpen: e.params.isOpen?.value,
24
24
  dunningCaseUuids: e.params.dunningCaseUuids?.value,
25
25
  level: e.params.level?.value
26
26
  }));
27
- return W("dunningCaseIndex", {
28
- isEnabled: E(() => e.isEnabled?.value ?? !0),
27
+ return V("dunningCaseIndex", {
28
+ isEnabled: C(() => e.isEnabled?.value ?? !0),
29
29
  params: { queryParams: t },
30
30
  queryFn: (e) => o.getAll({
31
31
  ...t.value,
@@ -36,8 +36,8 @@ function $(e) {
36
36
  //#endregion
37
37
  //#region src/modules/dunning-case/actions/dunningCaseNavigateToCustomer.action.ts
38
38
  function _e() {
39
- let e = w(), t = S(), n = i();
40
- return x({
39
+ let e = x(), t = H(), n = r();
40
+ return he({
41
41
  id: "dunning-case-navigate-to-customer",
42
42
  isApplicable: (e) => {
43
43
  let t = e.targetedModelOfType("DunningCase");
@@ -54,8 +54,8 @@ function _e() {
54
54
  //#endregion
55
55
  //#region src/modules/dunning-case/actions/dunningCaseNavigateToDetail.action.ts
56
56
  function ve() {
57
- let e = w(), t = S();
58
- return x({
57
+ let e = x(), t = H();
58
+ return he({
59
59
  id: "dunning-case-navigate-to-detail",
60
60
  isApplicable: (e) => e.hasTargetedModelsOfType("DunningCase"),
61
61
  name: () => e.t("module.dunning_case.overview.menu.view_case"),
@@ -66,12 +66,12 @@ function ve() {
66
66
  params: { dunningCaseUuid: n.uuid }
67
67
  });
68
68
  },
69
- icon: () => d
69
+ icon: () => c
70
70
  });
71
71
  }
72
72
  //#endregion
73
73
  //#region src/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewMetrics.vue?vue&type=script&setup=true&lang.ts
74
- var ye = ["aria-label"], be = { class: "text-xs font-semibold text-secondary uppercase" }, xe = { class: "mt-xl font-mono text-4xl font-semibold text-primary" }, Se = { class: "mt-xs text-sm text-secondary" }, Ce = { class: "lg:col-span-2" }, we = { class: "flex h-1.5 w-full overflow-hidden rounded-full bg-secondary" }, Te = { class: "mt-xl grid grid-cols-1 gap-md sm:grid-cols-3" }, Ee = { class: "flex min-w-0 items-center gap-sm" }, De = { class: "truncate text-sm text-secondary" }, Oe = { class: "shrink-0 font-mono text-sm font-semibold text-primary tabular-nums" }, ke = /* @__PURE__ */ M({
74
+ var ye = ["aria-label"], be = { class: "text-xs font-semibold text-secondary uppercase" }, xe = { class: "mt-xl font-mono text-4xl font-semibold text-primary" }, Se = { class: "mt-xs text-sm text-secondary" }, Ce = { class: "lg:col-span-2" }, we = { class: "flex h-1.5 w-full overflow-hidden rounded-full bg-secondary" }, Te = { class: "mt-xl grid grid-cols-1 gap-md sm:grid-cols-3" }, Ee = { class: "flex min-w-0 items-center gap-sm" }, De = { class: "truncate text-sm text-secondary" }, Oe = { class: "shrink-0 font-mono text-sm font-semibold text-primary tabular-nums" }, ke = /* @__PURE__ */ k({
75
75
  __name: "DunningCaseOverviewMetrics",
76
76
  props: {
77
77
  hasLevelCountError: { type: Boolean },
@@ -79,61 +79,61 @@ var ye = ["aria-label"], be = { class: "text-xs font-semibold text-secondary upp
79
79
  levelCountTotal: {}
80
80
  },
81
81
  setup(e) {
82
- let t = e, n = w(), r = E(() => t.hasLevelCountError ? n.t("module.dunning_case.overview.metrics_unavailable") : t.levelCountTotal === null ? n.t("module.dunning_case.common.loading") : n.t("module.dunning_case.overview.case_count", { count: t.levelCountTotal }));
82
+ let t = e, n = x(), r = C(() => t.hasLevelCountError ? n.t("module.dunning_case.overview.metrics_unavailable") : t.levelCountTotal === null ? n.t("module.dunning_case.common.loading") : n.t("module.dunning_case.overview.case_count", { count: t.levelCountTotal }));
83
83
  function i(e) {
84
84
  return e === 0 ? n.t("module.dunning_case.level.none") : n.t("module.dunning_case.level.reminder", { level: e });
85
85
  }
86
- return (t, a) => (I(), k("section", {
87
- "aria-label": B(n).t("module.dunning_case.overview.levels"),
86
+ return (t, a) => (P(), E("section", {
87
+ "aria-label": R(n).t("module.dunning_case.overview.levels"),
88
88
  class: "grid min-w-0 grid-cols-1 gap-2xl rounded-lg border border-secondary bg-primary p-2xl shadow-sm lg:grid-cols-3 lg:items-center"
89
- }, [A("div", null, [
90
- A("p", be, z(B(n).t("module.dunning_case.overview.levels")), 1),
91
- A("p", xe, z(e.levelCountTotal ?? "—"), 1),
92
- A("p", Se, z(r.value), 1)
93
- ]), A("div", Ce, [A("div", we, [(I(!0), k(T, null, R(e.levelCounts, (e, t) => (I(), k("span", {
89
+ }, [D("div", null, [
90
+ D("p", be, L(R(n).t("module.dunning_case.overview.levels")), 1),
91
+ D("p", xe, L(e.levelCountTotal ?? "—"), 1),
92
+ D("p", Se, L(r.value), 1)
93
+ ]), D("div", Ce, [D("div", we, [(P(!0), E(S, null, I(e.levelCounts, (e, t) => (P(), E("span", {
94
94
  key: t,
95
- class: N({
95
+ class: j({
96
96
  "bg-brand-500": t === 0,
97
97
  "bg-error-solid": t === 2,
98
98
  "bg-warning-solid": t === 1
99
99
  }),
100
- style: P({ flexGrow: e ?? 0 })
101
- }, null, 6))), 128))]), A("div", Te, [(I(!0), k(T, null, R(e.levelCounts, (e, t) => (I(), k("div", {
100
+ style: M({ flexGrow: e ?? 0 })
101
+ }, null, 6))), 128))]), D("div", Te, [(P(!0), E(S, null, I(e.levelCounts, (e, t) => (P(), E("div", {
102
102
  key: t,
103
103
  class: "flex items-center justify-between gap-xl"
104
- }, [A("div", Ee, [A("span", { class: N([{
104
+ }, [D("div", Ee, [D("span", { class: j([{
105
105
  "bg-brand-500": t === 0,
106
106
  "bg-error-solid": t === 2,
107
107
  "bg-warning-solid": t === 1
108
- }, "size-2 shrink-0 rounded-full"]) }, null, 2), A("p", De, z(i(t + 1)), 1)]), A("p", Oe, z(e ?? "—"), 1)]))), 128))])])], 8, ye));
108
+ }, "size-2 shrink-0 rounded-full"]) }, null, 2), D("p", De, L(i(t + 1)), 1)]), D("p", Oe, L(e ?? "—"), 1)]))), 128))])])], 8, ye));
109
109
  }
110
110
  });
111
111
  //#endregion
112
112
  //#region src/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.ts
113
113
  function Ae(e) {
114
- let t = E(() => !0), { isFetchingNextPage: n, isLoading: r, fetchNextPage: i, result: a } = $({ params: {
114
+ let t = C(() => !0), { isFetchingNextPage: n, isLoading: r, fetchNextPage: i, result: a } = $({ params: {
115
115
  customerUuid: e.customerUuid,
116
116
  isOpen: t,
117
- level: E(() => e.activeLevel.value ?? void 0)
118
- } }), o = E(() => a.value.isOk() ? a.value.getValue().data : []), s = E(() => a.value.isErr() ? a.value.getError() : null), c = $({ params: {
117
+ level: C(() => e.activeLevel.value ?? void 0)
118
+ } }), o = C(() => a.value.isOk() ? a.value.getValue().data : []), s = C(() => a.value.isErr() ? a.value.getError() : null), c = $({ params: {
119
119
  customerUuid: e.customerUuid,
120
120
  isOpen: t,
121
- level: E(() => 1)
121
+ level: C(() => 1)
122
122
  } }), l = $({ params: {
123
123
  customerUuid: e.customerUuid,
124
124
  isOpen: t,
125
- level: E(() => 2)
125
+ level: C(() => 2)
126
126
  } }), u = $({ params: {
127
127
  customerUuid: e.customerUuid,
128
128
  isOpen: t,
129
- level: E(() => 3)
130
- } }), d = E(() => [
129
+ level: C(() => 3)
130
+ } }), d = C(() => [
131
131
  c,
132
132
  l,
133
133
  u
134
134
  ].map((e) => e.result.value.isOk() ? e.result.value.getValue().meta.total : null));
135
135
  return {
136
- hasLevelCountError: E(() => [
136
+ hasLevelCountError: C(() => [
137
137
  c,
138
138
  l,
139
139
  u
@@ -144,15 +144,15 @@ function Ae(e) {
144
144
  error: s,
145
145
  fetchNextPage: i,
146
146
  levelCounts: d,
147
- levelCountTotal: E(() => d.value.every((e) => e !== null) ? d.value.reduce((e, t) => e + t, 0) : null),
147
+ levelCountTotal: C(() => d.value.every((e) => e !== null) ? d.value.reduce((e, t) => e + t, 0) : null),
148
148
  result: a
149
149
  };
150
150
  }
151
151
  //#endregion
152
152
  //#region src/modules/dunning-case/api/queries/dunningCaseCustomerIndex.query.ts
153
153
  function je(e) {
154
- let t = E(() => ({ search: e.params.search?.value }));
155
- return W("dunningCaseCustomerIndex", {
154
+ let t = C(() => ({ search: e.params.search?.value }));
155
+ return V("dunningCaseCustomerIndex", {
156
156
  params: { queryParams: t },
157
157
  queryFn: (e) => h.getAll(t.value.search, e)
158
158
  });
@@ -160,7 +160,7 @@ function je(e) {
160
160
  //#endregion
161
161
  //#region src/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewFilters.composable.ts
162
162
  function Me() {
163
- let e = w(), t = r({ debounceMs: 250 }), n = je({ params: { search: t.debouncedSearch } }), i = E(() => n.result.value.isOk() ? n.result.value.getValue().data : []), a = y({
163
+ let e = x(), t = i({ debounceMs: 250 }), n = je({ params: { search: t.debouncedSearch } }), r = C(() => n.result.value.isOk() ? n.result.value.getValue().data : []), a = y({
164
164
  actionGroup: { name: "dunning-cases" },
165
165
  filters: [v({
166
166
  defaultValue: {
@@ -168,13 +168,13 @@ function Me() {
168
168
  value: []
169
169
  },
170
170
  disableOperators: !0,
171
- displayFn: (e) => i.value.find((t) => t.uuid === e)?.name ?? e,
171
+ displayFn: (e) => r.value.find((t) => t.uuid === e)?.name ?? e,
172
172
  key: "customerUuids",
173
173
  label: e.t("module.dunning_case.overview.filter_customer"),
174
- options: async (e) => a.values.value.customerUuids.value.length > 0 ? [] : (t.updateSearch(e), await re(), i.value.map((e) => e.uuid))
174
+ options: async (e) => a.values.value.customerUuids.value.length > 0 ? [] : (t.updateSearch(e), await A(), r.value.map((e) => e.uuid))
175
175
  })]
176
176
  });
177
- return V(() => a.values.value.customerUuids, (e) => {
177
+ return ie(() => a.values.value.customerUuids, (e) => {
178
178
  (e.operator !== b.INCLUDES || e.value.length > 1) && (a.values.value.customerUuids = {
179
179
  operator: b.INCLUDES,
180
180
  value: e.value.slice(-1)
@@ -183,36 +183,36 @@ function Me() {
183
183
  deep: !0,
184
184
  immediate: !0
185
185
  }), {
186
- customerUuid: E(() => a.values.value.customerUuids.value[0]),
186
+ customerUuid: C(() => a.values.value.customerUuids.value[0]),
187
187
  filters: a
188
188
  };
189
189
  }
190
190
  //#endregion
191
191
  //#region src/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue?vue&type=script&setup=true&lang.ts
192
- var Ne = { class: "flex w-full items-center justify-end gap-xs" }, Pe = /* @__PURE__ */ M({
192
+ var Ne = { class: "flex w-full items-center justify-end gap-xs" }, Pe = /* @__PURE__ */ k({
193
193
  __name: "DunningCaseOverviewActionsCell",
194
194
  props: { item: {} },
195
195
  emits: ["send", "viewCustomer"],
196
196
  setup(e, { emit: t }) {
197
- let n = e, r = t, a = w(), o = i(), s = E(() => o.getCustomerDetailRoute(n.item.customer.uuid)), c = E(() => n.item.blockedReason !== null), u = E(() => g(n.item.latestCreatedReminder)), d = E(() => c.value ? a.t("module.dunning_case.overview.blocked") : n.item.nextReminderOn === null ? a.t("module.dunning_case.overview.not_scheduled") : a.t("module.dunning_case.overview.send"));
198
- return (t, n) => (I(), D(B(Z), null, {
199
- default: H(() => [j(B(le), { class: "w-full" }, {
200
- default: H(() => [A("div", Ne, [c.value && s.value !== null ? (I(), D(B(K), {
197
+ let n = e, i = t, a = x(), o = r(), c = C(() => o.getCustomerDetailRoute(n.item.customer.uuid)), l = C(() => n.item.blockedReason !== null), u = C(() => g(n.item.latestCreatedReminder)), f = C(() => l.value ? a.t("module.dunning_case.overview.blocked") : n.item.nextReminderOn === null ? a.t("module.dunning_case.overview.not_scheduled") : a.t("module.dunning_case.overview.send"));
198
+ return (t, n) => (P(), w(R(Z), null, {
199
+ default: z(() => [O(R(ce), { class: "w-full" }, {
200
+ default: z(() => [D("div", Ne, [l.value && c.value !== null ? (P(), w(R(G), {
201
201
  key: 0,
202
- "icon-right": B(l),
203
- label: B(a).t("module.dunning_case.overview.fix"),
202
+ "icon-right": R(s),
203
+ label: R(a).t("module.dunning_case.overview.fix"),
204
204
  size: "sm",
205
205
  variant: "secondary",
206
- onClick: n[0] ||= (e) => r("viewCustomer")
207
- }, null, 8, ["icon-right", "label"])) : (I(), D(B(K), {
206
+ onClick: n[0] ||= (e) => i("viewCustomer")
207
+ }, null, 8, ["icon-right", "label"])) : (P(), w(R(G), {
208
208
  key: 1,
209
- "icon-right": e.item.canSendReminder ? B(p) : void 0,
210
- "is-disabled": c.value || !e.item.canSendReminder,
209
+ "icon-right": e.item.canSendReminder ? R(d) : void 0,
210
+ "is-disabled": l.value || !e.item.canSendReminder,
211
211
  "is-loading": u.value === "sending",
212
- label: d.value,
212
+ label: f.value,
213
213
  size: "sm",
214
214
  variant: "secondary",
215
- onClick: n[1] ||= (e) => r("send")
215
+ onClick: n[1] ||= (e) => i("send")
216
216
  }, null, 8, [
217
217
  "icon-right",
218
218
  "is-disabled",
@@ -224,38 +224,38 @@ var Ne = { class: "flex w-full items-center justify-end gap-xs" }, Pe = /* @__PU
224
224
  _: 1
225
225
  }));
226
226
  }
227
- }), Fe = { class: "truncate text-sm font-medium text-primary" }, Ie = /* @__PURE__ */ M({
227
+ }), Fe = { class: "truncate text-sm font-medium text-primary" }, Ie = /* @__PURE__ */ k({
228
228
  __name: "DunningCaseOverviewCustomerCell",
229
229
  props: { item: {} },
230
230
  setup(e) {
231
- return (t, n) => (I(), D(B(Z), null, {
232
- default: H(() => [A("span", Fe, z(e.item.customer.name), 1)]),
231
+ return (t, n) => (P(), w(R(Z), null, {
232
+ default: z(() => [D("span", Fe, L(e.item.customer.name), 1)]),
233
233
  _: 1
234
234
  }));
235
235
  }
236
- }), Le = /* @__PURE__ */ M({
236
+ }), Le = /* @__PURE__ */ k({
237
237
  __name: "DunningCaseOverviewDaysOverdueCell",
238
238
  props: { item: {} },
239
239
  setup(e) {
240
- return (t, n) => (I(), D(B(Z), null, {
241
- default: H(() => [A("span", { class: N([{
240
+ return (t, n) => (P(), w(R(Z), null, {
241
+ default: z(() => [D("span", { class: j([{
242
242
  "text-error-primary": e.item.level === 3,
243
243
  "text-primary": e.item.level !== 3
244
- }, "w-full text-right font-mono text-sm tabular-nums"]) }, z(e.item.daysOverdue), 3)]),
244
+ }, "w-full text-right font-mono text-sm tabular-nums"]) }, L(e.item.daysOverdue), 3)]),
245
245
  _: 1
246
246
  }));
247
247
  }
248
248
  }), Re = {
249
249
  key: 0,
250
250
  class: "font-mono text-xs text-secondary tabular-nums"
251
- }, ze = /* @__PURE__ */ M({
251
+ }, ze = /* @__PURE__ */ k({
252
252
  __name: "DunningCaseOverviewLastReminderCell",
253
253
  props: { item: {} },
254
254
  setup(e) {
255
- let t = e, n = w(), r = E(() => {
255
+ let t = e, n = x(), r = C(() => {
256
256
  if (t.item.level === null) return null;
257
257
  if (t.item.lastReminderSentAt === null) return n.t("module.dunning_case.overview.last_reminder_not_sent");
258
- let e = G.Now.instant().epochMilliseconds - t.item.lastReminderSentAt.epochMilliseconds, r = Math.floor(e / 36e5);
258
+ let e = U.Now.instant().epochMilliseconds - t.item.lastReminderSentAt.epochMilliseconds, r = Math.floor(e / 36e5);
259
259
  return r < 1 ? n.t("module.dunning_case.overview.last_reminder_sent_just_now", { level: t.item.level }) : r < 24 ? n.t("module.dunning_case.overview.last_reminder_sent_hours", {
260
260
  hours: r,
261
261
  level: t.item.level
@@ -264,60 +264,60 @@ var Ne = { class: "flex w-full items-center justify-end gap-xs" }, Pe = /* @__PU
264
264
  level: t.item.level
265
265
  });
266
266
  });
267
- return (e, t) => (I(), D(B(Z), null, {
268
- default: H(() => [r.value === null ? O("", !0) : (I(), k("span", Re, z(r.value), 1))]),
267
+ return (e, t) => (P(), w(R(Z), null, {
268
+ default: z(() => [r.value === null ? T("", !0) : (P(), E("span", Re, L(r.value), 1))]),
269
269
  _: 1
270
270
  }));
271
271
  }
272
272
  }), Be = {
273
273
  key: 0,
274
274
  class: "flex min-w-0 items-center gap-sm"
275
- }, Ve = { class: "truncate text-xs text-primary" }, He = /* @__PURE__ */ M({
275
+ }, Ve = { class: "truncate text-xs text-primary" }, He = /* @__PURE__ */ k({
276
276
  __name: "DunningCaseOverviewLevelCell",
277
277
  props: { item: {} },
278
278
  setup(e) {
279
- let t = w();
279
+ let t = x();
280
280
  function n(e) {
281
281
  return e === 0 ? t.t("module.dunning_case.level.none") : t.t("module.dunning_case.level.reminder", { level: e });
282
282
  }
283
- return (t, r) => (I(), D(B(Z), null, {
284
- default: H(() => [e.item.level === null ? O("", !0) : (I(), k("div", Be, [j(a, {
283
+ return (t, r) => (P(), w(R(Z), null, {
284
+ default: z(() => [e.item.level === null ? T("", !0) : (P(), E("div", Be, [O(a, {
285
285
  level: e.item.level,
286
286
  size: "sm"
287
- }, null, 8, ["level"]), A("span", Ve, z(n(e.item.level)), 1)]))]),
287
+ }, null, 8, ["level"]), D("span", Ve, L(n(e.item.level)), 1)]))]),
288
288
  _: 1
289
289
  }));
290
290
  }
291
- }), Ue = { class: "w-full text-right font-mono text-sm font-medium text-primary tabular-nums" }, We = /* @__PURE__ */ M({
291
+ }), Ue = { class: "w-full text-right font-mono text-sm font-medium text-primary tabular-nums" }, We = /* @__PURE__ */ k({
292
292
  __name: "DunningCaseOverviewOutstandingCell",
293
293
  props: { item: {} },
294
294
  setup(e) {
295
295
  let t = n();
296
- return (n, r) => (I(), D(B(Z), null, {
297
- default: H(() => [A("span", Ue, z(B(t).formatMonetary(e.item.outstandingBalance)), 1)]),
296
+ return (n, r) => (P(), w(R(Z), null, {
297
+ default: z(() => [D("span", Ue, L(R(t).formatMonetary(e.item.outstandingBalance)), 1)]),
298
298
  _: 1
299
299
  }));
300
300
  }
301
- }), Ge = { class: "flex flex-col items-start gap-xxs" }, Ke = /* @__PURE__ */ M({
301
+ }), Ge = { class: "flex flex-col items-start gap-xxs" }, Ke = /* @__PURE__ */ k({
302
302
  __name: "DunningCaseOverviewReminderCell",
303
303
  props: { item: {} },
304
304
  setup(e) {
305
- let t = e, n = w(), r = E(() => g(t.item.latestCreatedReminder));
305
+ let t = e, n = x(), r = C(() => g(t.item.latestCreatedReminder));
306
306
  function i(e) {
307
- let t = G.Now.plainDateISO().until(e, { largestUnit: "days" }).days;
307
+ let t = U.Now.plainDateISO().until(e, { largestUnit: "days" }).days;
308
308
  return t <= 0 ? n.t("module.dunning_case.overview.due_today") : n.t("module.dunning_case.overview.due_in_days", { count: t });
309
309
  }
310
310
  function a(e) {
311
- return G.PlainDate.compare(e, G.Now.plainDateISO()) <= 0;
311
+ return U.PlainDate.compare(e, U.Now.plainDateISO()) <= 0;
312
312
  }
313
- return (t, n) => (I(), D(B(Z), null, {
314
- default: H(() => [A("div", Ge, [e.item.nextReminderOn === null ? O("", !0) : (I(), D(B(ie), {
313
+ return (t, n) => (P(), w(R(Z), null, {
314
+ default: z(() => [D("div", Ge, [e.item.nextReminderOn === null ? T("", !0) : (P(), w(R(W), {
315
315
  key: 0,
316
316
  color: a(e.item.nextReminderOn) ? "success" : "warning",
317
317
  label: i(e.item.nextReminderOn),
318
318
  size: "sm",
319
319
  variant: "translucent"
320
- }, null, 8, ["color", "label"])), j(m, {
320
+ }, null, 8, ["color", "label"])), O(m, {
321
321
  "blocked-reason": e.item.blockedReason,
322
322
  status: r.value
323
323
  }, null, 8, ["blocked-reason", "status"])])]),
@@ -328,8 +328,8 @@ var Ne = { class: "flex w-full items-center justify-end gap-xs" }, Pe = /* @__PU
328
328
  //#endregion
329
329
  //#region src/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.ts
330
330
  function qe(e) {
331
- let t = w();
332
- return E(() => pe()([
331
+ let t = x();
332
+ return C(() => fe()([
333
333
  {
334
334
  headerLabel: t.t("module.dunning_case.overview.table.customer"),
335
335
  key: "customer",
@@ -402,7 +402,7 @@ function qe(e) {
402
402
  //#endregion
403
403
  //#region src/modules/dunning-case/api/mutations/dunningCaseBulkSend.mutation.ts
404
404
  function Je() {
405
- return U({
405
+ return B({
406
406
  queryFn: (e) => o.sendBulk(e.params.queryParams),
407
407
  queryKeysToInvalidate: {
408
408
  dunningCaseDetail: {},
@@ -412,7 +412,7 @@ function Je() {
412
412
  }
413
413
  //#endregion
414
414
  //#region src/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendStat.vue
415
- var Ye = /* @__PURE__ */ M({
415
+ var Ye = /* @__PURE__ */ k({
416
416
  __name: "DunningCaseBulkSendStat",
417
417
  props: {
418
418
  hasSeparator: { type: Boolean },
@@ -422,20 +422,20 @@ var Ye = /* @__PURE__ */ M({
422
422
  },
423
423
  setup(e) {
424
424
  let t = e;
425
- return (e, n) => (I(), k("div", { class: N([{ "border-r border-secondary": t.hasSeparator }, "p-lg"]) }, [A("p", { class: N([{
425
+ return (e, n) => (P(), E("div", { class: j([{ "border-r border-secondary": t.hasSeparator }, "p-lg"]) }, [D("p", { class: j([{
426
426
  "text-primary": t.tone === "default",
427
427
  "text-success-primary": t.tone === "success",
428
428
  "text-warning-primary": t.tone === "warning"
429
- }, "font-mono text-2xl font-semibold tabular-nums"]) }, z(t.value), 3), A("p", { class: N([{
429
+ }, "font-mono text-2xl font-semibold tabular-nums"]) }, L(t.value), 3), D("p", { class: j([{
430
430
  "text-secondary": t.tone === "default",
431
431
  "text-success-primary": t.tone === "success",
432
432
  "text-warning-primary": t.tone === "warning"
433
- }, "mt-xs text-xs font-medium uppercase"]) }, z(t.label), 3)], 2));
433
+ }, "mt-xs text-xs font-medium uppercase"]) }, L(t.label), 3)], 2));
434
434
  }
435
435
  }), Xe = { class: "flex flex-col gap-md" }, Ze = { class: "grid grid-cols-3 overflow-hidden rounded-md border border-secondary" }, Qe = { class: "rounded-md bg-success-primary px-lg py-md text-sm font-medium text-success-primary" }, $e = {
436
436
  key: 0,
437
437
  class: "rounded-md border border-secondary px-lg py-md text-sm text-secondary"
438
- }, et = /* @__PURE__ */ M({
438
+ }, et = /* @__PURE__ */ k({
439
439
  __name: "DunningCaseBulkSendSummary",
440
440
  props: {
441
441
  processableCount: {},
@@ -443,7 +443,7 @@ var Ye = /* @__PURE__ */ M({
443
443
  totalCount: {}
444
444
  },
445
445
  setup(e) {
446
- let t = e, n = w(), r = E(() => [
446
+ let t = e, n = x(), r = C(() => [
447
447
  {
448
448
  label: n.t("module.dunning_case.bulk_send.total"),
449
449
  tone: "default",
@@ -460,8 +460,8 @@ var Ye = /* @__PURE__ */ M({
460
460
  value: t.skippedCount
461
461
  }
462
462
  ]);
463
- return (e, i) => (I(), k("div", Xe, [
464
- A("div", Ze, [(I(!0), k(T, null, R(r.value, (e, t) => (I(), D(Ye, {
463
+ return (e, i) => (P(), E("div", Xe, [
464
+ D("div", Ze, [(P(!0), E(S, null, I(r.value, (e, t) => (P(), w(Ye, {
465
465
  key: e.label,
466
466
  "has-separator": t < r.value.length - 1,
467
467
  label: e.label,
@@ -473,14 +473,14 @@ var Ye = /* @__PURE__ */ M({
473
473
  "tone",
474
474
  "value"
475
475
  ]))), 128))]),
476
- A("p", Qe, z(B(n).t("module.dunning_case.bulk_send.processable", { count: t.processableCount })), 1),
477
- t.skippedCount > 0 ? (I(), k("p", $e, z(B(n).t("module.dunning_case.bulk_send.skipped", { count: t.skippedCount })), 1)) : O("", !0)
476
+ D("p", Qe, L(R(n).t("module.dunning_case.bulk_send.processable", { count: t.processableCount })), 1),
477
+ t.skippedCount > 0 ? (P(), E("p", $e, L(R(n).t("module.dunning_case.bulk_send.skipped", { count: t.skippedCount })), 1)) : T("", !0)
478
478
  ]));
479
479
  }
480
480
  }), tt = {
481
481
  key: 0,
482
482
  class: "text-sm text-secondary"
483
- }, nt = /* @__PURE__ */ M({
483
+ }, nt = /* @__PURE__ */ k({
484
484
  __name: "DunningCaseBulkSendDialog",
485
485
  props: { onSent: { type: Function } },
486
486
  emits: ["close"],
@@ -495,7 +495,7 @@ var Ye = /* @__PURE__ */ M({
495
495
  function s(e) {
496
496
  return Object.hasOwn(a, e);
497
497
  }
498
- let c = w(), l = he(), u = Je(), d = L(null), f = L(!0), m = E(() => d.value?.meta.processed ?? 0);
498
+ let c = x(), l = me(), u = Je(), f = F(null), p = F(!0), m = C(() => f.value?.meta.processed ?? 0);
499
499
  function h(e) {
500
500
  let t = e.errors.at(0)?.errors.at(0)?.code;
501
501
  return t !== void 0 && s(t) ? c.t(a[t]) : c.t("module.dunning_case.bulk_send.skip_reason.unknown");
@@ -512,7 +512,7 @@ var Ye = /* @__PURE__ */ M({
512
512
  })).join(", ");
513
513
  }
514
514
  let _ = ge({
515
- schema: C.object({}),
515
+ schema: re.object({}),
516
516
  onSubmit: async () => {
517
517
  let e = await u.execute({ params: { queryParams: i } });
518
518
  if (e.isErr()) {
@@ -541,32 +541,32 @@ var Ye = /* @__PURE__ */ M({
541
541
  l.apiError(e.error), r("close");
542
542
  return;
543
543
  }
544
- d.value = e.value, f.value = !1;
544
+ f.value = e.value, p.value = !1;
545
545
  }
546
- return F(() => {
546
+ return N(() => {
547
547
  v();
548
- }), (e, t) => (I(), D(B(se), {
549
- form: B(_),
548
+ }), (e, t) => (P(), w(R(oe), {
549
+ form: R(_),
550
550
  size: "md",
551
551
  onClose: t[0] ||= (e) => r("close")
552
552
  }, {
553
- default: H(() => [
554
- j(B(oe), {
555
- title: f.value ? B(c).t("module.dunning_case.bulk_send.title") : B(c).t("module.dunning_case.bulk_send.confirm_question", { count: m.value }),
556
- description: B(c).t("module.dunning_case.bulk_send.description"),
553
+ default: z(() => [
554
+ O(R(X), {
555
+ title: p.value ? R(c).t("module.dunning_case.bulk_send.title") : R(c).t("module.dunning_case.bulk_send.confirm_question", { count: m.value }),
556
+ description: R(c).t("module.dunning_case.bulk_send.description"),
557
557
  "has-separator": !1,
558
- icon: B(p)
558
+ icon: R(d)
559
559
  }, null, 8, [
560
560
  "title",
561
561
  "description",
562
562
  "icon"
563
563
  ]),
564
- j(B(q), null, {
565
- default: H(() => [d.value === null ? (I(), k("p", tt, z(B(c).t("module.dunning_case.bulk_send.loading")), 1)) : (I(), D(et, {
564
+ O(R(K), null, {
565
+ default: z(() => [f.value === null ? (P(), E("p", tt, L(R(c).t("module.dunning_case.bulk_send.loading")), 1)) : (P(), w(et, {
566
566
  key: 1,
567
- "processable-count": d.value.meta.processed,
568
- "skipped-count": d.value.meta.skipped,
569
- "total-count": d.value.meta.total
567
+ "processable-count": f.value.meta.processed,
568
+ "skipped-count": f.value.meta.skipped,
569
+ "total-count": f.value.meta.total
570
570
  }, null, 8, [
571
571
  "processable-count",
572
572
  "skipped-count",
@@ -574,13 +574,13 @@ var Ye = /* @__PURE__ */ M({
574
574
  ]))]),
575
575
  _: 1
576
576
  }),
577
- j(B(J), { "has-separator": !1 }, {
578
- right: H(() => [j(B(Y)), j(B(X), {
579
- "icon-right": B(p),
580
- "is-disabled": f.value || m.value === 0,
581
- "is-loading": B(_).isSubmitting.value,
582
- label: B(c).t("module.dunning_case.bulk_send.confirm", { count: m.value }),
583
- onClick: B(_).submit
577
+ O(R(q), { "has-separator": !1 }, {
578
+ right: z(() => [O(R(J)), O(R(Y), {
579
+ "icon-right": R(d),
580
+ "is-disabled": p.value || m.value === 0,
581
+ "is-loading": R(_).isSubmitting.value,
582
+ label: R(c).t("module.dunning_case.bulk_send.confirm", { count: m.value }),
583
+ onClick: R(_).submit
584
584
  }, null, 8, [
585
585
  "icon-right",
586
586
  "is-disabled",
@@ -600,12 +600,12 @@ var Ye = /* @__PURE__ */ M({
600
600
  }, lt = { class: "flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border border-secondary bg-primary shadow-sm" }, ut = { class: "flex flex-col gap-md border-b border-secondary p-sm md:flex-row md:items-center md:justify-between" }, dt = { class: "flex items-center justify-between gap-md border-b border-secondary p-sm" }, ft = {
601
601
  key: 0,
602
602
  class: "px-sm text-xs text-secondary"
603
- }, pt = { class: "relative flex min-h-0 flex-1 flex-col" }, mt = /*@__PURE__*/ M({
603
+ }, pt = { class: "relative flex min-h-0 flex-1 flex-col" }, mt = /*@__PURE__*/ k({
604
604
  __name: "DunningCaseOverviewView",
605
605
  setup(e) {
606
- let n = w(), r = me(), a = S(), o = t(), l = i(), f = L("all"), m = E(() => [
606
+ let n = x(), i = pe(), a = H(), o = t(), s = r(), f = F("all"), m = C(() => [
607
607
  {
608
- icon: c,
608
+ icon: l,
609
609
  key: "all",
610
610
  label: n.t("module.dunning_case.overview.filter_all")
611
611
  },
@@ -624,22 +624,22 @@ var Ye = /* @__PURE__ */ M({
624
624
  key: "level-3",
625
625
  label: n.t("module.dunning_case.level.reminder", { level: 3 })
626
626
  }
627
- ]), h = E(() => f.value === "all" ? null : Number(f.value.replace("level-", ""))), g = L(!0), { customerUuid: v, filters: y } = Me();
627
+ ]), h = C(() => f.value === "all" ? null : Number(f.value.replace("level-", ""))), g = F(!0), { customerUuid: v, filters: y } = Me();
628
628
  ee(y), o.set(() => n.t("module.dunning_case.title"));
629
- let { hasLevelCountError: b, isFetchingNextPage: x, isLoading: C, data: M, error: re, fetchNextPage: N, levelCounts: P, levelCountTotal: F, result: V } = Ae({
629
+ let { hasLevelCountError: b, isFetchingNextPage: re, isLoading: k, data: A, error: j, fetchNextPage: M, levelCounts: N, levelCountTotal: ie, result: B } = Ae({
630
630
  customerUuid: v,
631
631
  activeLevel: h
632
- }), U = E(() => y.activeFilters.value.length);
633
- function W(e) {
634
- r.create(_, { props: { dunningCaseUuid: e.uuid } }).open();
632
+ }), V = C(() => y.activeFilters.value.length);
633
+ function U(e) {
634
+ i.create(_, { props: { dunningCaseUuid: e.uuid } }).open();
635
635
  }
636
- function G() {
637
- r.create(nt, { props: { onSent: () => {
638
- V.value;
636
+ function W() {
637
+ i.create(nt, { props: { onSent: () => {
638
+ B.value;
639
639
  } } }).open();
640
640
  }
641
- function ie(e) {
642
- let t = l.getCustomerDetailRoute(e.customer.uuid);
641
+ function K(e) {
642
+ let t = s.getCustomerDetailRoute(e.customer.uuid);
643
643
  t !== null && a.push(t);
644
644
  }
645
645
  function q(e) {
@@ -649,42 +649,42 @@ var Ye = /* @__PURE__ */ M({
649
649
  };
650
650
  }
651
651
  let J = ve(), Y = _e(), X = qe({
652
- onSend: W,
653
- onViewCustomer: ie
652
+ onSend: U,
653
+ onViewCustomer: K
654
654
  });
655
- return (e, t) => (I(), D(B(ae), {
656
- title: B(n).t("module.dunning_case.title"),
655
+ return (e, t) => (P(), w(R(ae), {
656
+ title: R(n).t("module.dunning_case.title"),
657
657
  "is-title-hidden": !0
658
658
  }, {
659
- default: H(() => [A("div", rt, [
660
- A("div", it, [A("div", null, [A("h2", at, z(B(n).t("module.dunning_case.title")), 1), A("p", ot, z(B(n).t("module.dunning_case.overview.description")), 1)]), A("div", st, [j(B(K), {
661
- "icon-left": g.value ? B(s) : B(d),
662
- label: B(n).t(g.value ? "module.dunning_case.overview.hide_metrics" : "module.dunning_case.overview.show_metrics"),
659
+ default: z(() => [D("div", rt, [
660
+ D("div", it, [D("div", null, [D("h2", at, L(R(n).t("module.dunning_case.title")), 1), D("p", ot, L(R(n).t("module.dunning_case.overview.description")), 1)]), D("div", st, [O(R(G), {
661
+ "icon-left": g.value ? R(p) : R(c),
662
+ label: R(n).t(g.value ? "module.dunning_case.overview.hide_metrics" : "module.dunning_case.overview.show_metrics"),
663
663
  variant: "secondary",
664
664
  onClick: t[0] ||= (e) => g.value = !g.value
665
- }, null, 8, ["icon-left", "label"]), j(B(K), {
666
- "icon-right": B(p),
667
- label: B(n).t("module.dunning_case.overview.send_all"),
668
- onClick: G
665
+ }, null, 8, ["icon-left", "label"]), O(R(G), {
666
+ "icon-right": R(d),
667
+ label: R(n).t("module.dunning_case.overview.send_all"),
668
+ onClick: W
669
669
  }, null, 8, ["icon-right", "label"])])]),
670
- g.value ? (I(), k("div", ct, [j(ke, {
671
- "has-level-count-error": B(b),
672
- "level-counts": B(P),
673
- "level-count-total": B(F)
670
+ g.value ? (P(), E("div", ct, [O(ke, {
671
+ "has-level-count-error": R(b),
672
+ "level-counts": R(N),
673
+ "level-count-total": R(ie)
674
674
  }, null, 8, [
675
675
  "has-level-count-error",
676
676
  "level-counts",
677
677
  "level-count-total"
678
- ])])) : O("", !0),
679
- A("div", lt, [
680
- A("div", ut, [j(B(ue), {
678
+ ])])) : T("", !0),
679
+ D("div", lt, [
680
+ D("div", ut, [O(R(le), {
681
681
  modelValue: f.value,
682
682
  "onUpdate:modelValue": t[1] ||= (e) => f.value = e,
683
- "aria-label": B(n).t("module.dunning_case.overview.filter_label"),
683
+ "aria-label": R(n).t("module.dunning_case.overview.filter_label"),
684
684
  variant: "button-border"
685
685
  }, {
686
- default: H(() => [j(B(fe), null, {
687
- default: H(() => [(I(!0), k(T, null, R(m.value, (e) => (I(), D(B(de), {
686
+ default: z(() => [O(R(de), null, {
687
+ default: z(() => [(P(!0), E(S, null, I(m.value, (e) => (P(), w(R(ue), {
688
688
  key: e.key,
689
689
  config: { left: {
690
690
  icon: e.icon,
@@ -700,31 +700,31 @@ var Ye = /* @__PURE__ */ M({
700
700
  _: 1
701
701
  })]),
702
702
  _: 1
703
- }, 8, ["modelValue", "aria-label"]), j(B(K), {
704
- "icon-right": B(p),
705
- label: B(n).t("module.dunning_case.overview.send_all"),
703
+ }, 8, ["modelValue", "aria-label"]), O(R(G), {
704
+ "icon-right": R(d),
705
+ label: R(n).t("module.dunning_case.overview.send_all"),
706
706
  size: "sm",
707
- onClick: G
707
+ onClick: W
708
708
  }, null, 8, ["icon-right", "label"])]),
709
- A("div", dt, [U.value === 0 ? (I(), k("p", ft, z(B(n).t("module.dunning_case.overview.no_active_filters")), 1)) : (I(), D(B(te), { key: 1 })), j(B(ne))]),
710
- A("div", pt, [j(B(ce), {
711
- "active-filter-count": U.value,
712
- columns: B(X),
713
- data: B(M),
714
- error: B(re),
709
+ D("div", dt, [V.value === 0 ? (P(), E("p", ft, L(R(n).t("module.dunning_case.overview.no_active_filters")), 1)) : (P(), w(R(te), { key: 1 })), O(R(ne))]),
710
+ D("div", pt, [O(R(se), {
711
+ "active-filter-count": V.value,
712
+ columns: R(X),
713
+ data: R(A),
714
+ error: R(j),
715
715
  "get-key": (e) => e.uuid,
716
- actions: [B(J), B(Y)],
716
+ actions: [R(J), R(Y)],
717
717
  "get-action-model": (e) => ({
718
718
  key: e.uuid,
719
719
  modelName: "DunningCase",
720
720
  ...e
721
721
  }),
722
722
  "get-link": q,
723
- "is-fetching-next-page": B(x),
724
- "is-loading": B(C),
723
+ "is-fetching-next-page": R(re),
724
+ "is-loading": R(k),
725
725
  variant: "full-page",
726
- onClearFilters: t[2] ||= (e) => B(y).clearAll(),
727
- onNextPage: B(N)
726
+ onClearFilters: t[2] ||= (e) => R(y).clearAll(),
727
+ onNextPage: R(M)
728
728
  }, null, 8, [
729
729
  "active-filter-count",
730
730
  "columns",