@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,5 +1,5 @@
1
- import { t as e } from "./documentTitle.composable-4ApFl9TZ.js";
2
- import { t } from "./BillingDocumentPdf-5vi2pgRM.js";
1
+ import { t as e } from "./documentTitle.composable-DsBbzhXN.js";
2
+ import { t } from "./BillingDocumentPdf-ehdFB6mr.js";
3
3
  import { useI18n as n } from "vue-i18n";
4
4
  import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s } from "vue";
5
5
  //#region src/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue?vue&type=script&setup=true&lang.ts
@@ -1,7 +1,7 @@
1
- import { n as e } from "./invoicingConfig.composable-DTmad1fe.js";
2
- import { t } from "./DataProvider-Dj34ljUX.js";
3
- import { t as n } from "./InvoicePdfView-C-7m2g3b.js";
4
- import { t as r } from "./invoiceDetail.query-Cek8nyaw.js";
1
+ import { n as e } from "./invoicingConfig.composable-rxjGK882.js";
2
+ import { t } from "./DataProvider-C3uEds9v.js";
3
+ import { t as n } from "./InvoicePdfView-BJRTg_TH.js";
4
+ import { t as r } from "./invoiceDetail.query-CRoH_SgM.js";
5
5
  import { useI18n as i } from "vue-i18n";
6
6
  import { computed as a, createBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, openBlock as u, resolveDynamicComponent as d, unref as f, withCtx as p } from "vue";
7
7
  import { UIText as m } from "@wisemen/vue-core-design-system";
@@ -0,0 +1,45 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { n as t } from "./invoicingConfig.composable-rxjGK882.js";
3
+ import { t as n } from "./invoice.service-DEEA9mal.js";
4
+ import { t as r } from "./DataProvider-C3uEds9v.js";
5
+ import { t as i } from "./InvoicePdfView-BJRTg_TH.js";
6
+ import { useI18n as a } from "vue-i18n";
7
+ import { computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, openBlock as f, resolveDynamicComponent as p, unref as m, watch as h, withCtx as g } from "vue";
8
+ import { useQuery as _ } from "@wisemen/vue-core-api-utils";
9
+ import { useRouter as v } from "vue-router";
10
+ import { UIText as y } from "@wisemen/vue-core-design-system";
11
+ import { useRouteQuery as b } from "@vueuse/router";
12
+ //#region src/modules/invoice/api/queries/invoicePublicDetail.query.ts
13
+ function x(e) {
14
+ return _("invoicePublicDetail", {
15
+ isEnabled: o(() => e.value !== null),
16
+ params: { token: e },
17
+ queryFn: () => {
18
+ if (e.value === null) throw Error("Token is required to fetch invoice public detail");
19
+ return n.getPublicDetail(e.value);
20
+ }
21
+ });
22
+ }
23
+ //#endregion
24
+ //#region src/modules/invoice/use-cases/pdf/views/InvoicePublicPdfViewDataProvider.vue?vue&type=script&setup=true&lang.ts
25
+ var S = { class: "flex min-h-screen items-center justify-center bg-secondary" }, C = {
26
+ key: 1,
27
+ class: "flex min-h-screen items-center justify-center bg-secondary"
28
+ }, w = /*@__PURE__*/ d({
29
+ __name: "InvoicePublicPdfViewDataProvider",
30
+ setup(e) {
31
+ let n = a(), d = t(), _ = o(() => d.invoicePdfComponent.value ?? i), w = v(), T = b("token", null), E = x(o(() => T.value));
32
+ return h(o(() => T.value === null || E.result.value?.isErr() === !0), async (e) => {
33
+ e && await w.replace({ name: "index" });
34
+ }, { immediate: !0 }), (e, t) => m(T) === null ? (f(), c("div", C, [u(m(y), { text: m(n).t("wise_invoicing.common.loading") }, null, 8, ["text"])])) : (f(), s(r, {
35
+ key: 0,
36
+ queries: { invoice: m(E) }
37
+ }, {
38
+ default: g(({ data: e }) => [(f(), s(p(_.value), { invoice: e.invoice }, null, 8, ["invoice"]))]),
39
+ loading: g(() => [l("div", S, [u(m(y), { text: m(n).t("wise_invoicing.common.loading") }, null, 8, ["text"])])]),
40
+ _: 1
41
+ }, 8, ["queries"]));
42
+ }
43
+ }), T = /* @__PURE__ */ e({ default: () => E }), E = w;
44
+ //#endregion
45
+ export { T as n, x as r, E as t };
@@ -0,0 +1,94 @@
1
+ import { _ as e, f as t, t as n, u as r } from "./api.util-C_kMGlJN.js";
2
+ import { x as i } from "./documentTitle.composable-DsBbzhXN.js";
3
+ import { z as a } from "zod";
4
+ import { createBlock as o, defineComponent as s, openBlock as c, renderSlot as l, unref as u, withCtx as d } from "vue";
5
+ import { UIConfigProvider as f, useInjectConfigContext as p } from "@wisemen/vue-core-design-system";
6
+ //#region src/modules/invoice/api/services/fileUpload.service.ts
7
+ var m = new Set(Object.values(i)), h = class a {
8
+ static async confirmUpload(e, t) {
9
+ let i = await n.fromPromise(r({
10
+ body: { blurHash: t },
11
+ path: { file: e }
12
+ }));
13
+ return n.void(i);
14
+ }
15
+ static async getDownloadUrl(t) {
16
+ let n = await e({
17
+ parseAs: "blob",
18
+ responseStyle: "fields",
19
+ path: { file: t }
20
+ });
21
+ return n.data === void 0 ? null : n.response.url;
22
+ }
23
+ static async getFileInfo(e, r) {
24
+ return (await n.fromPromise(t({ body: {
25
+ name: e,
26
+ mimeType: a.normalizeMimeType(r)
27
+ } }))).map((e) => ({
28
+ uuid: e.data.uuid,
29
+ uploadUrl: e.data.uploadUrl
30
+ }));
31
+ }
32
+ static normalizeMimeType(e) {
33
+ return m.has(e) ? e : i.APPLICATION_OCTET_STREAM;
34
+ }
35
+ static preprocess(e) {
36
+ let t = a.normalizeMimeType(e.type);
37
+ return e.type === t ? Promise.resolve(e) : Promise.resolve(new File([e], e.name, {
38
+ lastModified: e.lastModified,
39
+ type: t
40
+ }));
41
+ }
42
+ }, g = a.object({
43
+ uuid: a.string(),
44
+ name: a.string(),
45
+ blurHash: a.string().nullable(),
46
+ mimeType: a.string(),
47
+ order: a.number(),
48
+ url: a.string().nullable()
49
+ }), _ = {
50
+ confirmUpload: async (e, t) => {
51
+ let n = await h.confirmUpload(e, t);
52
+ if (n.isErr()) throw n.error;
53
+ },
54
+ getFileInfo: async (e, t) => {
55
+ let n = await h.getFileInfo(e, t);
56
+ if (n.isErr()) throw n.error;
57
+ return n.value;
58
+ }
59
+ }, v = /* @__PURE__ */ s({
60
+ __name: "InvoicingFileUploadProvider",
61
+ setup(e) {
62
+ let t = p();
63
+ return (e, n) => (c(), o(u(f), {
64
+ "address-autocomplete-adapter": u(t).addressAutocompleteAdapter.value,
65
+ "auto-close-toast": u(t).autoCloseToast.value,
66
+ "date-locale": u(t).dateLocale.value,
67
+ "file-upload-adapter": u(_),
68
+ "google-maps-api-key": u(t).googleMapsApiKey.value,
69
+ "hour-cycle": u(t).hourCycle.value,
70
+ locale: u(t).locale.value,
71
+ "number-format": u(t).numberFormat.value,
72
+ "project-name": u(t).projectName.value,
73
+ "reduced-motion": u(t).reducedMotion.value,
74
+ "show-navigation-arrows-in-top-bar": u(t).showNavigationArrowsInTopBar.value
75
+ }, {
76
+ default: d(() => [l(e.$slots, "default")]),
77
+ _: 3
78
+ }, 8, [
79
+ "address-autocomplete-adapter",
80
+ "auto-close-toast",
81
+ "date-locale",
82
+ "file-upload-adapter",
83
+ "google-maps-api-key",
84
+ "hour-cycle",
85
+ "locale",
86
+ "number-format",
87
+ "project-name",
88
+ "reduced-motion",
89
+ "show-navigation-arrows-in-top-bar"
90
+ ]));
91
+ }
92
+ });
93
+ //#endregion
94
+ export { g as n, h as r, v as t };
@@ -1,10 +1,10 @@
1
- import "./api.util-BCSgCfpS.js";
2
- import { a as e, t } from "./documentTitle.composable-4ApFl9TZ.js";
1
+ import "./api.util-C_kMGlJN.js";
2
+ import { s as e, t } from "./documentTitle.composable-DsBbzhXN.js";
3
3
  import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
4
  import { t as r } from "./addressForm.model-C853zEtX.js";
5
- import { t as i } from "./DataProvider-Dj34ljUX.js";
5
+ import { t as i } from "./DataProvider-C3uEds9v.js";
6
6
  import { t as a } from "./formango.util-D5c2ql--.js";
7
- import { n as o, r as s, t as c } from "./issuerSettings.query-Bvz-Oj5D.js";
7
+ import { n as o, r as s, t as c } from "./issuerSettings.query-Dc5gsaEm.js";
8
8
  import { t as l } from "./dashboard-BaWGNEek.js";
9
9
  import { z as u } from "zod";
10
10
  import { useI18n as d } from "vue-i18n";
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "./i18n.lib-C6eb-F-e.js";
3
- import "./api.util-BCSgCfpS.js";
4
- import { a as n, d as r, t as i, y as a } from "./documentTitle.composable-4ApFl9TZ.js";
5
- import { i as o, n as s, r as c, t as l } from "./reminderConfig.query-DsJNqqi7.js";
6
- import { t as u } from "./DataProvider-Dj34ljUX.js";
2
+ import { t } from "./i18n.lib-Cvr8pcDw.js";
3
+ import "./api.util-C_kMGlJN.js";
4
+ import { C as n, p as r, s as i, t as a } from "./documentTitle.composable-DsBbzhXN.js";
5
+ import { i as o, n as s, r as c, t as l } from "./reminderConfig.query-snaHQmrY.js";
6
+ import { t as u } from "./DataProvider-C3uEds9v.js";
7
7
  import { t as d } from "./formango.util-D5c2ql--.js";
8
8
  import { z as f } from "zod";
9
9
  import { useI18n as p } from "vue-i18n";
@@ -28,20 +28,20 @@ var J = f.object({
28
28
  subject: f.string().refine(q, t.global.t("module.dunning_case.settings.validation.required"))
29
29
  }), ue = f.object({
30
30
  feeAmount: f.number().min(0),
31
- feeCurrency: f.enum(n),
31
+ feeCurrency: f.enum(i),
32
32
  feePercentage: f.number().min(0).max(100),
33
33
  feePrecision: f.number().int().min(0),
34
34
  feeType: f.enum(r),
35
35
  offsetDays: f.number().int().min(1),
36
- schedule: f.enum(a),
36
+ schedule: f.enum(n),
37
37
  sequence: f.number().int().min(1).max(3),
38
38
  template: f.object({
39
39
  "en-US": J,
40
40
  "fr-BE": J,
41
41
  "nl-BE": J
42
42
  })
43
- }), de = f.object({ reminders: f.array(ue).length(3) }).superRefine((e, n) => {
44
- e.reminders[0]?.schedule !== a.AFTER_DUE_DATE && n.addIssue({
43
+ }), de = f.object({ reminders: f.array(ue).length(3) }).superRefine((e, r) => {
44
+ e.reminders[0]?.schedule !== n.AFTER_DUE_DATE && r.addIssue({
45
45
  code: "custom",
46
46
  message: t.global.t("module.dunning_case.settings.validation.level_one_due_date"),
47
47
  path: [
@@ -50,18 +50,18 @@ var J = f.object({
50
50
  "schedule"
51
51
  ]
52
52
  });
53
- let r = 0;
54
- for (let [i, o] of e.reminders.entries()) {
55
- let e = o.schedule === a.AFTER_DUE_DATE ? o.offsetDays : r + o.offsetDays;
56
- i > 0 && e <= r && n.addIssue({
53
+ let i = 0;
54
+ for (let [a, o] of e.reminders.entries()) {
55
+ let e = o.schedule === n.AFTER_DUE_DATE ? o.offsetDays : i + o.offsetDays;
56
+ a > 0 && e <= i && r.addIssue({
57
57
  code: "custom",
58
58
  message: t.global.t("module.dunning_case.settings.validation.chronological"),
59
59
  path: [
60
60
  "reminders",
61
- i,
61
+ a,
62
62
  "offsetDays"
63
63
  ]
64
- }), r = e;
64
+ }), i = e;
65
65
  }
66
66
  });
67
67
  function fe(e) {
@@ -100,31 +100,31 @@ var pe = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, me = { class: "roun
100
100
  "updateSchedule"
101
101
  ],
102
102
  setup(e, { emit: t }) {
103
- let n = e, i = t, o = p(), c = h(() => !n.canUpdate || n.level === 1), l = h(() => n.feeTypeField.modelValue.value ?? r.AMOUNT), u = h(() => G([r.AMOUNT, r.PERCENTAGE])), f = {
103
+ let i = e, a = t, o = p(), c = h(() => !i.canUpdate || i.level === 1), l = h(() => i.feeTypeField.modelValue.value ?? r.AMOUNT), u = h(() => G([r.AMOUNT, r.PERCENTAGE])), f = {
104
104
  maximumFractionDigits: 2,
105
105
  minimumFractionDigits: 0
106
- }, m = { maximumFractionDigits: 2 }, _ = h(() => n.feeCurrency === void 0 ? "" : new Intl.NumberFormat(o.locale.value, {
107
- currency: n.feeCurrency,
106
+ }, m = { maximumFractionDigits: 2 }, _ = h(() => i.feeCurrency === void 0 ? "" : new Intl.NumberFormat(o.locale.value, {
107
+ currency: i.feeCurrency,
108
108
  style: "currency"
109
- }).formatToParts(0).find((e) => e.type === "currency")?.value ?? n.feeCurrency);
109
+ }).formatToParts(0).find((e) => e.type === "currency")?.value ?? i.feeCurrency);
110
110
  function b(e) {
111
- return o.t(e === a.AFTER_DUE_DATE ? "module.dunning_case.settings.ladder.after_due_date" : "module.dunning_case.settings.ladder.after_previous");
111
+ return o.t(e === n.AFTER_DUE_DATE ? "module.dunning_case.settings.ladder.after_due_date" : "module.dunning_case.settings.ladder.after_previous");
112
112
  }
113
113
  function S(e) {
114
114
  return o.t(e === r.PERCENTAGE ? "module.dunning_case.settings.ladder.fee_type_percentage" : "module.dunning_case.settings.ladder.fee_type_amount");
115
115
  }
116
116
  return (e, t) => (O(), v("div", be, [
117
- y("div", xe, [y("span", Se, j(M(o).t("module.dunning_case.level.reminder", { level: n.level })), 1), x(s, {
118
- level: n.level,
117
+ y("div", xe, [y("span", Se, j(M(o).t("module.dunning_case.level.reminder", { level: i.level })), 1), x(s, {
118
+ level: i.level,
119
119
  size: "md"
120
120
  }, null, 8, ["level"])]),
121
- y("div", Ce, [y("span", we, j(M(o).t("module.dunning_case.settings.ladder.trigger")), 1), x(M(V), w(M(d)(n.scheduleField), {
121
+ y("div", Ce, [y("span", we, j(M(o).t("module.dunning_case.settings.ladder.trigger")), 1), x(M(V), w(M(d)(i.scheduleField), {
122
122
  "aria-label": M(o).t("module.dunning_case.settings.ladder.trigger"),
123
123
  "display-fn": b,
124
124
  "is-disabled": c.value,
125
- items: n.scheduleItems,
125
+ items: i.scheduleItems,
126
126
  label: null,
127
- "onUpdate:modelValue": t[0] ||= (e) => i("updateSchedule", e)
127
+ "onUpdate:modelValue": t[0] ||= (e) => a("updateSchedule", e)
128
128
  }), null, 16, [
129
129
  "aria-label",
130
130
  "is-disabled",
@@ -132,33 +132,33 @@ var pe = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, me = { class: "roun
132
132
  ])]),
133
133
  y("div", Te, [y("span", Ee, j(M(o).t("module.dunning_case.settings.ladder.offset")), 1), y("div", {
134
134
  class: "flex flex-col items-start gap-xs sm:flex-row sm:items-center",
135
- onFocusoutCapture: t[2] ||= (e) => i("commitOffset", e),
136
- onInputCapture: t[3] ||= (e) => i("updateOffsetFromInput", e)
137
- }, [x(M(B), w(M(d)(n.offsetField), {
135
+ onFocusoutCapture: t[2] ||= (e) => a("commitOffset", e),
136
+ onInputCapture: t[3] ||= (e) => a("updateOffsetFromInput", e)
137
+ }, [x(M(B), w(M(d)(i.offsetField), {
138
138
  "aria-label": M(o).t("module.dunning_case.settings.ladder.offset"),
139
- "is-disabled": !n.canUpdate,
139
+ "is-disabled": !i.canUpdate,
140
140
  label: null,
141
141
  min: 1,
142
142
  "show-controls": !0,
143
143
  step: 1,
144
144
  class: "w-30",
145
145
  size: "sm",
146
- "onUpdate:modelValue": t[1] ||= (e) => i("updateOffset", e)
147
- }), null, 16, ["aria-label", "is-disabled"]), y("span", De, j(M(o).t("module.dunning_case.settings.ladder.day_hint", { day: n.absoluteDay })), 1)], 32)]),
148
- y("div", Oe, [y("span", ke, j(M(o).t("module.dunning_case.settings.ladder.fee")), 1), y("div", Ae, [y("div", je, [x(M(V), w(M(d)(n.feeTypeField), {
146
+ "onUpdate:modelValue": t[1] ||= (e) => a("updateOffset", e)
147
+ }), null, 16, ["aria-label", "is-disabled"]), y("span", De, j(M(o).t("module.dunning_case.settings.ladder.day_hint", { day: i.absoluteDay })), 1)], 32)]),
148
+ y("div", Oe, [y("span", ke, j(M(o).t("module.dunning_case.settings.ladder.fee")), 1), y("div", Ae, [y("div", je, [x(M(V), w(M(d)(i.feeTypeField), {
149
149
  "aria-label": M(o).t("module.dunning_case.settings.ladder.fee_type"),
150
150
  "display-fn": S,
151
- "is-disabled": !n.canUpdate,
151
+ "is-disabled": !i.canUpdate,
152
152
  items: u.value,
153
153
  label: null
154
154
  }), null, 16, [
155
155
  "aria-label",
156
156
  "is-disabled",
157
157
  "items"
158
- ])]), y("div", Me, [l.value === M(r).PERCENTAGE ? (O(), g(M(B), w({ key: 0 }, M(d)(n.feePercentageField), {
158
+ ])]), y("div", Me, [l.value === M(r).PERCENTAGE ? (O(), g(M(B), w({ key: 0 }, M(d)(i.feePercentageField), {
159
159
  "aria-label": M(o).t("module.dunning_case.settings.ladder.fee"),
160
160
  "format-options": m,
161
- "is-disabled": !n.canUpdate,
161
+ "is-disabled": !i.canUpdate,
162
162
  label: null,
163
163
  max: 100,
164
164
  min: 0,
@@ -167,10 +167,10 @@ var pe = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, me = { class: "roun
167
167
  }), {
168
168
  right: P(() => [...t[4] ||= [y("span", { class: "pr-md text-xs text-secondary" }, " % ", -1)]]),
169
169
  _: 1
170
- }, 16, ["aria-label", "is-disabled"])) : (O(), g(M(B), w({ key: 1 }, M(d)(n.feeField), {
170
+ }, 16, ["aria-label", "is-disabled"])) : (O(), g(M(B), w({ key: 1 }, M(d)(i.feeField), {
171
171
  "aria-label": M(o).t("module.dunning_case.settings.ladder.fee"),
172
172
  "format-options": f,
173
- "is-disabled": !n.canUpdate,
173
+ "is-disabled": !i.canUpdate,
174
174
  label: null,
175
175
  min: 0,
176
176
  step: .01,
@@ -453,22 +453,22 @@ var pe = { class: "mt-3xl flex max-w-260 flex-col gap-md" }, me = { class: "roun
453
453
  return r[n] = { ...t }, r;
454
454
  }
455
455
  static getAbsoluteDay(e, t) {
456
- let n = 0;
457
- for (let r of t.slice(0, e + 1)) r.schedule === a.AFTER_DUE_DATE ? n = r.offsetDays : n += r.offsetDays;
458
- return n;
456
+ let r = 0;
457
+ for (let i of t.slice(0, e + 1)) i.schedule === n.AFTER_DUE_DATE ? r = i.offsetDays : r += i.offsetDays;
458
+ return r;
459
459
  }
460
460
  }, at = 60, Z = 15;
461
461
  function Q(e) {
462
462
  let t = k([]);
463
- function n(e) {
463
+ function r(e) {
464
464
  return X.getAbsoluteDay(e, t.value);
465
465
  }
466
- let r = h(() => {
467
- let t = e.items.value.length - 1, r = t < 0 ? 0 : n(t), i = Math.ceil(r / Z) * Z;
466
+ let i = h(() => {
467
+ let t = e.items.value.length - 1, n = t < 0 ? 0 : r(t), i = Math.ceil(n / Z) * Z;
468
468
  return Math.max(at, i);
469
- }), i = h(() => e.items.value.map((e, t) => ({
470
- absoluteDay: n(t),
471
- minimumDay: t === 0 ? 1 : n(t - 1) + 1,
469
+ }), a = h(() => e.items.value.map((e, t) => ({
470
+ absoluteDay: r(t),
471
+ minimumDay: t === 0 ? 1 : r(t - 1) + 1,
472
472
  sequence: e.sequence
473
473
  })));
474
474
  function o() {
@@ -504,20 +504,20 @@ function Q(e) {
504
504
  function d(t, n) {
505
505
  e.fields[t]?.schedule["onUpdate:modelValue"](n), s(t);
506
506
  }
507
- function f(t, i) {
507
+ function f(t, a) {
508
508
  let o = e.items.value[t], c = e.fields[t]?.offsetDays;
509
509
  if (o === void 0 || c === void 0 || !e.canUpdate.value) return;
510
- let l = t === 0 ? 0 : n(t - 1), u = o.schedule === a.AFTER_DUE_DATE ? 1 : l + 1, d = Math.min(r.value, Math.max(u, i)), f = o.schedule === a.AFTER_DUE_DATE ? d : d - l;
510
+ let l = t === 0 ? 0 : r(t - 1), u = o.schedule === n.AFTER_DUE_DATE ? 1 : l + 1, d = Math.min(i.value, Math.max(u, a)), f = o.schedule === n.AFTER_DUE_DATE ? d : d - l;
511
511
  c.setValue(f), s(t);
512
512
  }
513
513
  return {
514
514
  commitOffset: c,
515
- getAbsoluteDay: n,
515
+ getAbsoluteDay: r,
516
516
  items: e.items,
517
- markers: i,
517
+ markers: a,
518
518
  reset: o,
519
519
  setAbsoluteDay: f,
520
- timelineDays: r,
520
+ timelineDays: i,
521
521
  updateOffset: u,
522
522
  updateOffsetFromInput: l,
523
523
  updateSchedule: d
@@ -529,15 +529,15 @@ var ot = { class: "mx-auto w-full max-w-340" }, st = { class: "flex flex-col gap
529
529
  __name: "ReminderSettingsView",
530
530
  props: { reminderConfigs: {} },
531
531
  setup(e) {
532
- let t = e, n = [
532
+ let t = e, r = [
533
533
  0,
534
534
  1,
535
535
  2
536
- ], r = [
536
+ ], i = [
537
537
  "en-US",
538
538
  "nl-BE",
539
539
  "fr-BE"
540
- ], s = [a.AFTER_DUE_DATE, a.AFTER_LAST_REMINDER], c = p(), l = K(), u = i(), d = le(), f = k("ladder"), m = k(0), v = k("en-US");
540
+ ], s = [n.AFTER_DUE_DATE, n.AFTER_LAST_REMINDER], c = p(), l = K(), u = a(), d = le(), f = k("ladder"), m = k(0), v = k("en-US");
541
541
  u.set(() => c.t("module.dunning_case.settings.title"));
542
542
  let b = ce({
543
543
  initialState: h(() => o.reminderConfigsToForm(t.reminderConfigs)),
@@ -553,7 +553,7 @@ var ot = { class: "mx-auto w-full max-w-340" }, st = { class: "flex flex-col gap
553
553
  onSubmitError: () => {
554
554
  l.unableToSave();
555
555
  }
556
- }), S = b.registerArray("reminders"), C = n.map((e) => {
556
+ }), S = b.registerArray("reminders"), C = r.map((e) => {
557
557
  let t = S.register(`${e}`), n = t.register("template");
558
558
  return {
559
559
  feeAmount: t.register("feeAmount"),
@@ -582,7 +582,7 @@ var ot = { class: "mx-auto w-full max-w-340" }, st = { class: "flex flex-col gap
582
582
  items: h(() => (b.state.value.reminders ?? []).map((e, t) => ({
583
583
  feeCurrency: e?.feeCurrency,
584
584
  offsetDays: e?.offsetDays ?? 0,
585
- schedule: e?.schedule ?? a.AFTER_DUE_DATE,
585
+ schedule: e?.schedule ?? n.AFTER_DUE_DATE,
586
586
  sequence: e?.sequence ?? t + 1
587
587
  })))
588
588
  }), D = h({
@@ -594,7 +594,7 @@ var ot = { class: "mx-auto w-full max-w-340" }, st = { class: "flex flex-col gap
594
594
  }), A = h({
595
595
  get: () => v.value,
596
596
  set: (e) => {
597
- let t = r.find((t) => t === e);
597
+ let t = i.find((t) => t === e);
598
598
  t !== void 0 && (v.value = t);
599
599
  }
600
600
  });
@@ -606,7 +606,7 @@ var ot = { class: "mx-auto w-full max-w-340" }, st = { class: "flex flex-col gap
606
606
  hasMissingContent: N(t, v.value),
607
607
  label: c.t("module.dunning_case.level.reminder", { level: t + 1 }),
608
608
  value: String(t)
609
- }))), L = h(() => r.map((e) => ({
609
+ }))), L = h(() => i.map((e) => ({
610
610
  hasMissingContent: N(m.value, e),
611
611
  label: c.t(`module.dunning_case.settings.locale.${e}`),
612
612
  value: e