@wisemen/wise-invoicing-web 0.1.1 → 0.3.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 (253) hide show
  1. package/dist/ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js +151 -0
  2. package/dist/{BillingDocumentDetailViewDataProvider-f5goWm_i.js → BillingDocumentDetailViewDataProvider-TJUwMhtn.js} +1499 -1407
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-5vi2pgRM.js → BillingDocumentPdf-PU9Ldfhs.js} +20 -13
  5. package/dist/{CreditNoteDetailViewDataProvider-Byd1QvfY.js → CreditNoteDetailViewDataProvider-DOPmal5D.js} +166 -166
  6. package/dist/{CreditNotePdfViewDataProvider-DI4eQkpM.js → CreditNotePdfViewDataProvider-BH7MaReQ.js} +3 -3
  7. package/dist/{CustomFieldValueText-BGbQwhON.js → CustomFieldValueText-BjRVovZL.js} +72 -72
  8. package/dist/DataProvider-C3uEds9v.js +75 -0
  9. package/dist/DunningCaseDetailViewDataProvider-CW8ijY3H.js +439 -0
  10. package/dist/DunningCaseOverviewView-Cfo-4VIw.js +799 -0
  11. package/dist/{DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js → DunningCaseReminderPdfViewDataProvider-Dr-CS_VQ.js} +25 -25
  12. package/dist/DunningCaseSendDialog-BYFXJYMM.js +360 -0
  13. package/dist/InvoiceApprovalOutOfSyncIndicator-CP2GLaeh.js +45 -0
  14. package/dist/InvoiceApprovalOverviewView-Cjdu9iZC.js +814 -0
  15. package/dist/InvoiceApprovalStatusBadge-CcX8agTF.js +127 -0
  16. package/dist/InvoiceApproveDialogDataProvider-4wNAetBn.js +377 -0
  17. package/dist/InvoiceDetailViewDataProvider-C9O3hXGo.js +2214 -0
  18. package/dist/InvoiceOverviewViewDataProvider-DBdw7FvZ.js +1892 -0
  19. package/dist/{InvoicePdfView-C-7m2g3b.js → InvoicePdfView-CvU9bRVd.js} +10 -4
  20. package/dist/{InvoicePdfViewDataProvider-BPiK110e.js → InvoicePdfViewDataProvider-CFjHQ58K.js} +4 -4
  21. package/dist/InvoicePublicPdfViewDataProvider-DDv-LdBU.js +45 -0
  22. package/dist/InvoicePublicProFormaPdfViewDataProvider-BTjJnELb.js +47 -0
  23. package/dist/InvoicingFileUploadProvider-Kcq7kSSt.js +94 -0
  24. package/dist/{IssuerSettingsViewDataProvider-COqHGUE6.js → IssuerSettingsViewDataProvider-BuSIVnIl.js} +4 -4
  25. package/dist/{ReminderSettingsViewDataProvider-Dys4bUU7.js → ReminderSettingsViewDataProvider-CH7gSXnj.js} +68 -70
  26. package/dist/{api.util-BCSgCfpS.js → api.util-CkIRZS3h.js} +1537 -872
  27. package/dist/{billingDocumentDetail.transformer-BBn9R_cx.js → billingDocumentDetail.transformer-Bfd8geNo.js} +60 -63
  28. package/dist/client/index.d.ts +2 -2
  29. package/dist/client/sdk.gen.d.ts +19 -1
  30. package/dist/client/types.gen.d.ts +1155 -119
  31. package/dist/client/zod.gen.d.ts +25353 -8465
  32. package/dist/composables/sending-refetch/sendingRefetch.composable.d.ts +7 -0
  33. package/dist/composables/sending-refetch/sendingRefetch.composable.spec.d.ts +1 -0
  34. package/dist/{creditNoteDetail.query-BcPsB96h.js → creditNoteDetail.query-tLnfqsEB.js} +32 -32
  35. package/dist/customerUuid.model-ClN4Vi9n.js +18 -0
  36. package/dist/{dist-D9lp7NDv.js → dist-BD7Allff.js} +270 -110
  37. package/dist/{dist-BBjpqvUl.js → dist-D5agTXFI.js} +605 -605
  38. package/dist/{documentTitle.composable-4ApFl9TZ.js → documentTitle.composable-CRJjS6p-.js} +25 -15
  39. package/dist/{customFieldValue.util-BwsX8exl.js → download.util-B5Q7KUC9.js} +6 -6
  40. package/dist/{i18n.lib-C6eb-F-e.js → i18n.lib--mzprLMR.js} +336 -38
  41. package/dist/index.d.ts +349 -49
  42. package/dist/index.js +347 -335
  43. package/dist/invoice.service-B1w16_Md.js +757 -0
  44. package/dist/invoiceApproval.service-BHAJmFkU.js +72 -0
  45. package/dist/invoiceApprovalStatus.util-DohOKR4q.js +83 -0
  46. package/dist/invoiceCustomer.service-DpVfpQUD.js +39 -0
  47. package/dist/{invoiceDetail.query-Cek8nyaw.js → invoiceDetail.query-CfyNSXLS.js} +1 -1
  48. package/dist/invoiceIndexCache.util-jHsrFwcA.js +288 -0
  49. package/dist/{invoicingConfig.composable-DTmad1fe.js → invoicingConfig.composable-COn1rKRf.js} +2 -2
  50. package/dist/{issuerSettings.query-Bvz-Oj5D.js → issuerSettings.query-CDFk2GiP.js} +6 -5
  51. package/dist/libs/i18n.lib.d.ts +322 -24
  52. package/dist/locales/en-US.json.d.ts +168 -19
  53. package/dist/locales/nl-BE.json.d.ts +168 -19
  54. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +8 -1
  55. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.d.ts +12 -0
  56. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.spec.d.ts +1 -0
  57. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -6
  58. package/dist/modules/dunning-case/api/mutations/dunningCaseReminderRetry.mutation.d.ts +4 -0
  59. package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +2 -1
  60. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +5 -0
  61. package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +0 -1
  62. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +0 -4
  63. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +0 -1
  64. package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +1 -0
  65. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +2 -0
  66. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +2 -2
  67. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.spec.d.ts +1 -0
  68. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +1 -0
  69. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +0 -4
  70. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +2 -1
  71. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +4 -4
  72. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +2 -2
  73. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.spec.d.ts +1 -0
  74. package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +16 -0
  75. package/dist/modules/invoice/api/mutations/invoiceArchiveApproval.mutation.d.ts +6 -0
  76. package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +5 -0
  77. package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +4 -0
  78. package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +17 -0
  79. package/dist/modules/invoice/api/mutations/invoiceRestoreFromProForma.mutation.d.ts +4 -0
  80. package/dist/modules/invoice/api/mutations/invoiceSendApproval.mutation.d.ts +5 -0
  81. package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +4 -0
  82. package/dist/modules/invoice/api/queries/invoicePublicProFormaDetail.query.d.ts +2 -0
  83. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +6 -0
  84. package/dist/modules/invoice/api/services/invoice.service.d.ts +15 -1
  85. package/dist/modules/invoice/components/InvoiceApprovalOutOfSyncIndicator.vue.d.ts +3 -0
  86. package/dist/{ui/DisplayState.vue.d.ts → modules/invoice/components/InvoiceApprovalStatusBadge.vue.d.ts} +7 -10
  87. package/dist/modules/invoice/components/InvoiceApprovalStatusChip.vue.d.ts +16 -0
  88. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalTransformers.spec.d.ts +1 -0
  89. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUuid.model.d.ts +3 -0
  90. package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +5 -0
  91. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +15 -0
  92. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.spec.d.ts +1 -0
  93. package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +5 -0
  94. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +15 -0
  95. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.spec.d.ts +1 -0
  96. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +14 -1
  97. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +1 -0
  98. package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +4 -0
  99. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +3 -1
  100. package/dist/modules/invoice/models/invoice/invoiceApproval.transformer.d.ts +7 -0
  101. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +27 -0
  102. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +12 -0
  103. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.spec.d.ts +1 -0
  104. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.spec.d.ts +1 -0
  105. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +2 -1
  106. package/dist/modules/invoice/routes/invoice.routes.d.ts +4 -0
  107. package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +19 -0
  108. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +4 -0
  109. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +5 -0
  110. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
  111. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalArchiveDialog.vue.d.ts +13 -0
  112. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalRevertDialog.vue.d.ts +15 -0
  113. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +14 -0
  114. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialogDataProvider.vue.d.ts +13 -0
  115. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceFinalizeOutOfSyncDialog.vue.d.ts +21 -0
  116. package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentDeleteDialog.vue.d.ts +13 -0
  117. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +13 -0
  118. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +3 -0
  119. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableApprovalCell.vue.d.ts +9 -0
  120. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +3 -1
  121. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +11 -9
  122. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +3 -2
  123. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +14 -0
  124. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +9 -4
  125. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.spec.d.ts +1 -0
  126. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +0 -5
  127. package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +1 -0
  128. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +4 -1
  129. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +1 -0
  130. package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicProFormaPdfViewDataProvider.vue.d.ts +3 -0
  131. package/dist/modules/invoice-approval/actions/invoiceApproval.actions.d.ts +5 -0
  132. package/dist/modules/invoice-approval/actions/invoiceApprovalArchive.action.d.ts +1 -0
  133. package/dist/modules/invoice-approval/actions/invoiceApprovalMarkAsApproved.action.d.ts +1 -0
  134. package/dist/modules/invoice-approval/actions/invoiceApprovalReject.action.d.ts +1 -0
  135. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +3 -0
  136. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.spec.d.ts +1 -0
  137. package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +8 -0
  138. package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -0
  139. package/dist/modules/invoice-approval/api/queries/invoiceApprovalIndex.query.d.ts +3 -0
  140. package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +15 -0
  141. package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -0
  142. package/dist/modules/invoice-approval/components/InvoiceApprovalReminderLevelIndicator.vue.d.ts +7 -0
  143. package/dist/modules/invoice-approval/models/approvalReminderConfig.transformer.d.ts +6 -0
  144. package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +11 -0
  145. package/dist/modules/invoice-approval/models/approvalReminderConfigForm.spec.d.ts +1 -0
  146. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +21 -0
  147. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.d.ts +5 -0
  148. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.spec.d.ts +1 -0
  149. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.model.d.ts +9 -0
  150. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.d.ts +6 -0
  151. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.spec.d.ts +1 -0
  152. package/dist/modules/invoice-approval/routes/invoiceApproval.routes.d.ts +24 -0
  153. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewActionsCell.vue.d.ts +7 -0
  154. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewAmountCell.vue.d.ts +7 -0
  155. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewInvoiceCell.vue.d.ts +7 -0
  156. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewMetrics.vue.d.ts +18 -0
  157. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewNextReminderCell.vue.d.ts +7 -0
  158. package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewStatusCell.vue.d.ts +7 -0
  159. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +41 -0
  160. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +5 -0
  161. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewTableColumns.composable.d.ts +3 -0
  162. package/dist/modules/invoice-approval/use-cases/overview/views/InvoiceApprovalOverviewView.vue.d.ts +3 -0
  163. package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +7 -0
  164. package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsViewDataProvider.vue.d.ts +3 -0
  165. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +1 -0
  166. package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
  167. package/dist/{plainDate.transformer-BxvJpJOv.js → plainDate.transformer-Bhiz9jW7.js} +17 -4
  168. package/dist/reminderConfig.query-DSO0ekC_.js +316 -0
  169. package/dist/routes/invoicingPublicRoutes.composable.d.ts +4 -0
  170. package/dist/routes/invoicingRoutes.composable.d.ts +14 -6
  171. package/dist/search.composable-CU9OpyUB.js +52 -0
  172. package/dist/{src-BFgnUugN.js → src-DUSgQTKr.js} +45 -45
  173. package/dist/style.css +1 -1
  174. package/dist/types/queryKey.type.d.ts +3 -2
  175. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityApprovalDetails.vue.d.ts +7 -0
  176. package/dist/utils/html.util.d.ts +4 -0
  177. package/package.json +3 -2
  178. package/dist/AddOpenBoundaryIcon-9SqBHfoz.js +0 -25
  179. package/dist/AirlineIcon-Z6sH_StM.js +0 -26
  180. package/dist/AirplaneIcon-C-nSkD1w.js +0 -19
  181. package/dist/AirportIcon-m4itDKCV.js +0 -16
  182. package/dist/AlertTriangleIcon-DtYLCC-Y.js +0 -23
  183. package/dist/AllocationsIcon-hcg93Sll.js +0 -16
  184. package/dist/ArrowNarrowRightIcon-2-Sml68f.js +0 -23
  185. package/dist/AssetIcon-qOYs6Wna.js +0 -16
  186. package/dist/BarChartIcon-DDyzpV_3.js +0 -22
  187. package/dist/BellIcon-DF1OBFta.js +0 -21
  188. package/dist/BuildingIcon-CC5PMNeP.js +0 -22
  189. package/dist/ChargerIcon-aM_endLr.js +0 -16
  190. package/dist/ChevronDownIcon-4QiK-Z6-.js +0 -23
  191. package/dist/ChevronUpIcon-qBsjZ5Dz.js +0 -23
  192. package/dist/ClockIcon-BNiPCaiB.js +0 -23
  193. package/dist/ClockSnoozeIcon-BxGfwJB6.js +0 -23
  194. package/dist/CopyIcon-DH5ly0dZ.js +0 -19
  195. package/dist/DataProvider-Dj34ljUX.js +0 -75
  196. package/dist/DownloadCloudIcon-Cf8ftklG.js +0 -22
  197. package/dist/DunningCaseDetailViewDataProvider-DKuuysqS.js +0 -409
  198. package/dist/DunningCaseOverviewView-aWttPLrC.js +0 -747
  199. package/dist/DunningCaseSendDialog-DyvA5R1p.js +0 -349
  200. package/dist/EditIcon-Dr7OHBBR.js +0 -21
  201. package/dist/EraserIcon-B1VJSvdI.js +0 -23
  202. package/dist/FileIcon-ssmQI5Yl.js +0 -23
  203. package/dist/FilterLinesIcon-C7YdyPBk.js +0 -23
  204. package/dist/GlobeIcon-BfRM6Ike.js +0 -22
  205. package/dist/HelpIcon-BrJ49P5y.js +0 -22
  206. package/dist/HourGlassIcon-D9rfU1Is.js +0 -22
  207. package/dist/InfoCircleIcon-Ee0SyiMc.js +0 -23
  208. package/dist/InvoiceDetailViewDataProvider-BU6jZfD7.js +0 -1670
  209. package/dist/InvoiceOverviewViewDataProvider-i8tXATJE.js +0 -1677
  210. package/dist/InvoicePublicPdfViewDataProvider-BJe-8hC5.js +0 -45
  211. package/dist/KeyboardIcon-T3o_g-1c.js +0 -22
  212. package/dist/LinkExternalIcon-BkHS4fCx.js +0 -22
  213. package/dist/LinkIcon-DuPwae98.js +0 -22
  214. package/dist/MarkerIcon-B1Jqenjb.js +0 -28
  215. package/dist/MobileBatteryIcon-GZ1SMRDV.js +0 -16
  216. package/dist/MonitorIcon-pbK22reU.js +0 -22
  217. package/dist/NotificationIcon-Ctv8vyWt.js +0 -19
  218. package/dist/ParkingIcon-DnUPW3pB.js +0 -24
  219. package/dist/PlanningIcon-CXvrskgj.js +0 -16
  220. package/dist/PreferenceIcon-BHS8uDyi.js +0 -22
  221. package/dist/ReceiptCheckIcon-QTestqCJ.js +0 -23
  222. package/dist/RefreshIcon-DShY-aoS.js +0 -22
  223. package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +0 -28
  224. package/dist/RewindIcon-GWg2AQax.js +0 -22
  225. package/dist/SettingsIcon-CBLJ6B5u.js +0 -25
  226. package/dist/ShieldIcon-CVnrOcxl.js +0 -19
  227. package/dist/ShieldOffIcon-B9l0dDVb.js +0 -23
  228. package/dist/SignOutIcon-CmDkjJ5F.js +0 -21
  229. package/dist/SlashCircleIcon-jY5FBko5.js +0 -22
  230. package/dist/StandIcon-CoYnBLMn.js +0 -23
  231. package/dist/StarsIcon-D7ZlqOW7.js +0 -22
  232. package/dist/StopwatchIcon-BK0vh1lg.js +0 -22
  233. package/dist/TargetIcon-HMWj77-Q.js +0 -22
  234. package/dist/ThreeDotsIcon-BtFruOKz.js +0 -32
  235. package/dist/ToolIcon-DRfDb7fE.js +0 -22
  236. package/dist/TrashIcon-BwxBjHv5.js +0 -19
  237. package/dist/TurnaroundIcon-b1X61TwZ.js +0 -27
  238. package/dist/UploadCloudIcon-BF0equKg.js +0 -22
  239. package/dist/UserIcon-B0rCC6KE.js +0 -22
  240. package/dist/UsersIcon-cK5l_zKG.js +0 -22
  241. package/dist/VerifiedIcon-CELYlqcv.js +0 -22
  242. package/dist/WifiIcon--JPvMNEF.js +0 -23
  243. package/dist/WifiOffIcon-BS2KftcP.js +0 -23
  244. package/dist/ZapIcon-BHwcIQc0.js +0 -23
  245. package/dist/ZoomInIcon-Cu6r915V.js +0 -23
  246. package/dist/ZoomOutIcon-DwB4FRj-.js +0 -23
  247. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  248. package/dist/customerUuid.model-GUFYq3O2.js +0 -5
  249. package/dist/instant.transformer-KmBsH3E9.js +0 -18
  250. package/dist/invoice.service-Bb8VqQvc.js +0 -635
  251. package/dist/invoiceDeliveryStatus.util-BPkGCQM6.js +0 -331
  252. package/dist/reminderConfig.query-DsJNqqi7.js +0 -331
  253. package/dist/search.composable-BCtYqudV.js +0 -52
@@ -1,25 +1,26 @@
1
- import { t as e } from "./i18n.lib-C6eb-F-e.js";
2
- import "./api.util-BCSgCfpS.js";
3
- import { h as t, r as n } from "./documentTitle.composable-4ApFl9TZ.js";
4
- import { n as r } from "./customFieldValue.util-BwsX8exl.js";
5
- import { n as i } from "./address.transformer-jGddczLV.js";
6
- import { D as a, G as o, I as s, O as c, R as l, g as u, h as d, i as f, j as p, l as m, tt as h, w as g } from "./dist-D9lp7NDv.js";
7
- import { n as _, t as ee } from "./dist-boJIIxnT.js";
8
- import { i as te, r as v } from "./CustomFieldValueText-BGbQwhON.js";
1
+ import { t as e } from "./i18n.lib--mzprLMR.js";
2
+ import "./api.util-CkIRZS3h.js";
3
+ import { b as t, r as n } from "./documentTitle.composable-CRJjS6p-.js";
4
+ import { n as r } from "./address.transformer-jGddczLV.js";
5
+ import { t as i } from "./download.util-B5Q7KUC9.js";
6
+ import { $ as a, K as o, L as s, N as c, O as l, W as u, dt as d, g as f, i as p, j as m, l as h, y as g } from "./dist-BD7Allff.js";
7
+ import { n as _, t as v } from "./dist-boJIIxnT.js";
9
8
  import { t as y } from "./formango.util-D5c2ql--.js";
10
- import { n as b, r as x, t as S } from "./creditNoteDetail.query-BcPsB96h.js";
11
- import { C, S as ne, _ as w, a as T, b as re, c as E, d as D, f as O, g as k, h as ie, i as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe, v as me, w as A, x as he, y as ge } from "./BillingDocumentDetailViewDataProvider-f5goWm_i.js";
12
- import { useRouter as _e } from "vue-router";
13
- import ve, { z as j } from "zod";
9
+ import { i as b, n as ee } from "./CustomFieldValueText-BjRVovZL.js";
10
+ import { n as x, r as S, t as C } from "./creditNoteDetail.query-tLnfqsEB.js";
11
+ import { C as w, S as T, _ as E, a as D, b as te, c as O, d as k, f as A, g as ne, h as re, i as ie, m as ae, n as oe, o as se, p as ce, r as le, s as ue, t as de, u as fe, v as pe, x as me, y as he } from "./BillingDocumentDetailViewDataProvider-TJUwMhtn.js";
12
+ import { r as ge } from "./InvoicingFileUploadProvider-Kcq7kSSt.js";
13
+ import _e, { z as j } from "zod";
14
14
  import { useI18n as M } from "vue-i18n";
15
- import { Fragment as ye, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as be, createElementVNode as xe, createVNode as I, defineComponent as L, mergeProps as R, normalizeClass as z, openBlock as B, ref as V, renderSlot as Se, resolveDynamicComponent as Ce, unref as H, withCtx as U } from "vue";
16
- import { useKeysetInfiniteQuery as we, useMutation as W } from "@wisemen/vue-core-api-utils";
17
- import { UIAnimateHeight as Te, UIBadge as Ee, UIClickableElement as De, UIColumnLayout as G, UIDateField as Oe, UIDialogFooter as ke, UIDialogFooterCancel as Ae, UIDialogFooterSubmit as je, UIDialogHeader as Me, UIForm as K, UIFormDialog as Ne, UIRowLayout as q, UISeparator as J, UIText as Y, UITextField as Pe, useOverlay as Fe, useToast as X } from "@wisemen/vue-core-design-system";
18
- import { useForm as Z } from "formango";
15
+ import { Fragment as ve, computed as N, createBlock as P, createCommentVNode as F, createElementBlock as ye, createElementVNode as be, createVNode as I, defineComponent as L, mergeProps as R, normalizeClass as z, openBlock as B, ref as V, renderSlot as xe, resolveDynamicComponent as Se, unref as H, withCtx as U } from "vue";
16
+ import { useKeysetInfiniteQuery as Ce, useMutation as W } from "@wisemen/vue-core-api-utils";
17
+ import { useRouter as we } from "vue-router";
18
+ import { UIAnimateHeight as Te, UIBadge as Ee, UIClickableElement as De, UIColumnLayout as G, UIDateField as Oe, UIDialogFooter as ke, UIDialogFooterCancel as Ae, UIDialogFooterSubmit as je, UIDialogHeader as Me, UIForm as K, UIFormDialog as Ne, UIRowLayout as q, UISeparator as Pe, UIText as J, UITextField as Fe, useOverlay as Ie, useToast as Y } from "@wisemen/vue-core-design-system";
19
+ import { useForm as X } from "formango";
19
20
  //#region src/modules/credit-note/api/mutations/creditNoteUpdate.mutation.ts
20
- function Q() {
21
+ function Z() {
21
22
  return W({
22
- queryFn: (e) => b.update(e.params.creditNoteUuid, e.body),
23
+ queryFn: (e) => x.update(e.params.creditNoteUuid, e.body),
23
24
  queryKeysToInvalidate: {
24
25
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
25
26
  invoiceIndex: {}
@@ -28,8 +29,8 @@ function Q() {
28
29
  }
29
30
  //#endregion
30
31
  //#region src/modules/credit-note/models/update/creditNoteUpdateForm.model.ts
31
- var Ie = j.object({
32
- issuedOn: ee,
32
+ var Le = j.object({
33
+ issuedOn: v,
33
34
  externalRemarks: j.string().nullable(),
34
35
  poNumber: j.string().nullable(),
35
36
  subject: j.string().nullable()
@@ -39,12 +40,12 @@ var Ie = j.object({
39
40
  message: e.global.t("wise_invoicing.credit_note.finalize.validation.external_remarks_required"),
40
41
  path: ["externalRemarks"]
41
42
  });
42
- }), Le = j.object({ subject: j.string().nullable() });
43
+ }), Re = j.object({ subject: j.string().nullable() });
43
44
  //#endregion
44
45
  //#region src/modules/credit-note/api/mutations/creditNoteFinalize.mutation.ts
45
- function Re() {
46
+ function ze() {
46
47
  return W({
47
- queryFn: (e) => b.finalize(e.params.creditNoteUuid),
48
+ queryFn: (e) => x.finalize(e.params.creditNoteUuid),
48
49
  queryKeysToInvalidate: {
49
50
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
50
51
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -54,9 +55,9 @@ function Re() {
54
55
  }
55
56
  //#endregion
56
57
  //#region src/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.ts
57
- function ze() {
58
+ function Be() {
58
59
  return W({
59
- queryFn: (e) => b.markAsDraft(e.params.creditNoteUuid),
60
+ queryFn: (e) => x.markAsDraft(e.params.creditNoteUuid),
60
61
  queryKeysToInvalidate: {
61
62
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
62
63
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -66,9 +67,9 @@ function ze() {
66
67
  }
67
68
  //#endregion
68
69
  //#region src/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.ts
69
- function Be() {
70
+ function Ve() {
70
71
  return W({
71
- queryFn: (e) => b.markAsReady(e.params.creditNoteUuid),
72
+ queryFn: (e) => x.markAsReady(e.params.creditNoteUuid),
72
73
  queryKeysToInvalidate: {
73
74
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
74
75
  invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
@@ -78,29 +79,29 @@ function Be() {
78
79
  }
79
80
  //#endregion
80
81
  //#region src/modules/credit-note/api/mutations/creditNoteSend.mutation.ts
81
- function Ve() {
82
+ function He() {
82
83
  return W({
83
- queryFn: (e) => b.send(e.params.creditNoteUuid),
84
+ queryFn: (e) => x.send(e.params.creditNoteUuid),
84
85
  queryKeysToInvalidate: { creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid } }
85
86
  });
86
87
  }
87
88
  //#endregion
88
89
  //#region src/modules/credit-note/api/mutations/creditNoteDelete.mutation.ts
89
- function He() {
90
+ function Ue() {
90
91
  return W({
91
- queryFn: (e) => b.delete(e.params.creditNoteUuid),
92
+ queryFn: (e) => x.delete(e.params.creditNoteUuid),
92
93
  queryKeysToInvalidate: { invoiceIndex: {} }
93
94
  });
94
95
  }
95
96
  //#endregion
96
97
  //#region src/modules/credit-note/use-cases/detail/dialogs/CreditNoteDeleteDialog.vue
97
- var Ue = /* @__PURE__ */ L({
98
+ var We = /* @__PURE__ */ L({
98
99
  __name: "CreditNoteDeleteDialog",
99
100
  props: { creditNote: {} },
100
101
  emits: ["close", "deleted"],
101
102
  setup(e, { emit: t }) {
102
- let n = e, r = t, i = M(), a = _e(), o = X(), s = He(), c = N(() => n.creditNote.sequence ?? n.creditNote.subject ?? i.t("wise_invoicing.credit_note.detail.fallback_title")), l = Z({
103
- schema: ve.object({}),
103
+ let n = e, r = t, i = M(), a = we(), o = Y(), s = Ue(), c = N(() => n.creditNote.sequence ?? n.creditNote.subject ?? i.t("wise_invoicing.credit_note.detail.fallback_title")), l = X({
104
+ schema: _e.object({}),
104
105
  onSubmit: async () => {
105
106
  let e = await s.execute({ params: { creditNoteUuid: n.creditNote.uuid } });
106
107
  if (e.isErr()) {
@@ -117,10 +118,9 @@ var Ue = /* @__PURE__ */ L({
117
118
  }, {
118
119
  default: U(() => [I(H(Me), {
119
120
  title: H(i).t("wise_invoicing.credit_note.delete.title"),
120
- description: H(i).t("wise_invoicing.credit_note.delete.description", { creditNoteIdentifier: c.value }),
121
- "is-description-visible": !0
121
+ description: H(i).t("wise_invoicing.credit_note.delete.description", { creditNoteIdentifier: c.value })
122
122
  }, null, 8, ["title", "description"]), I(H(ke), null, {
123
- right: U(() => [I(H(Ae), { label: "cancel" }), I(H(je), {
123
+ right: U(() => [I(H(Ae)), I(H(je), {
124
124
  "is-destructive": !0,
125
125
  label: H(i).t("wise_invoicing.credit_note.delete.submit_button")
126
126
  }, null, 8, ["label"])]),
@@ -132,117 +132,117 @@ var Ue = /* @__PURE__ */ L({
132
132
  });
133
133
  //#endregion
134
134
  //#region src/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.ts
135
- function We(e) {
136
- let n = M(), i = X(), o = Fe(), s = o.create(Ue), l = o.create(re), d = Re(), p = ze(), m = Be(), _ = Ve(), { shouldSkipConfirmation: ee } = he(), v = N(() => e.value.originalInvoice?.uuid ?? e.value.uuid), y = N(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
137
- async function x() {
138
- let t = await m.execute({ params: {
135
+ function Ge(e) {
136
+ let n = M(), r = Y(), a = Ie(), o = a.create(We), s = a.create(te), u = ze(), f = Be(), h = Ve(), _ = He(), { shouldSkipConfirmation: v } = me(), y = N(() => e.value.originalInvoice?.uuid ?? e.value.uuid), b = N(() => e.value.status !== t.DRAFT && e.value.status !== t.READY);
137
+ async function S() {
138
+ let t = await h.execute({ params: {
139
139
  creditNoteUuid: e.value.uuid,
140
- invoiceUuid: v.value
140
+ invoiceUuid: y.value
141
141
  } });
142
142
  if (t.isErr()) {
143
- i.apiError(t.error);
143
+ r.apiError(t.error);
144
144
  return;
145
145
  }
146
- i.show({ message: n.t("wise_invoicing.credit_note.mark_as_ready.success") });
146
+ r.show({ message: n.t("wise_invoicing.credit_note.mark_as_ready.success") });
147
147
  }
148
- async function S() {
149
- let t = await d.execute({ params: {
148
+ async function C() {
149
+ let t = await u.execute({ params: {
150
150
  creditNoteUuid: e.value.uuid,
151
- invoiceUuid: v.value
151
+ invoiceUuid: y.value
152
152
  } });
153
- return t.isErr() ? (i.apiError(t.error), !1) : (i.show({ message: n.t("wise_invoicing.credit_note.finalize.success") }), !0);
153
+ return t.isErr() ? (r.apiError(t.error), !1) : (r.show({ message: n.t("wise_invoicing.credit_note.finalize.success") }), !0);
154
154
  }
155
- async function C() {
156
- if (ee.value) {
157
- await S();
155
+ async function w() {
156
+ if (v.value) {
157
+ await C();
158
158
  return;
159
159
  }
160
- await l.open({
160
+ await s.open({
161
161
  billingDocumentType: "credit_note",
162
- onConfirm: S
162
+ onConfirm: C
163
163
  });
164
164
  }
165
- async function w() {
166
- let t = await p.execute({ params: {
165
+ async function T() {
166
+ let t = await f.execute({ params: {
167
167
  creditNoteUuid: e.value.uuid,
168
- invoiceUuid: v.value
168
+ invoiceUuid: y.value
169
169
  } });
170
170
  if (t.isErr()) {
171
- i.apiError(t.error);
171
+ r.apiError(t.error);
172
172
  return;
173
173
  }
174
- i.show({ message: n.t("wise_invoicing.credit_note.mark_as_draft.success") });
174
+ r.show({ message: n.t("wise_invoicing.credit_note.mark_as_draft.success") });
175
175
  }
176
- async function T() {
176
+ async function E() {
177
177
  let t = await _.execute({ params: { creditNoteUuid: e.value.uuid } });
178
178
  if (t.isErr()) {
179
- i.apiError(t.error);
179
+ r.apiError(t.error);
180
180
  return;
181
181
  }
182
- i.show({ message: n.t("wise_invoicing.credit_note.send.success") });
183
- }
184
- async function E() {
185
- await s.open({ creditNote: e.value });
182
+ r.show({ message: n.t("wise_invoicing.credit_note.send.success") });
186
183
  }
187
184
  async function D() {
188
- let t = await b.getByUuid(e.value.uuid);
185
+ await o.open({ creditNote: e.value });
186
+ }
187
+ async function O() {
188
+ let t = await x.getByUuid(e.value.uuid);
189
189
  if (t.isErr()) {
190
- i.apiError(t.error);
190
+ r.apiError(t.error);
191
191
  return;
192
192
  }
193
193
  let a = t.value.file;
194
194
  if (a === null) {
195
- i.show({ message: n.t("wise_invoicing.invoice.download_pdf.generation_in_progress") });
195
+ r.show({ message: n.t("wise_invoicing.invoice.download_pdf.generation_in_progress") });
196
196
  return;
197
197
  }
198
- let o = await ne.getDownloadUrl(a.uuid);
199
- o !== null && r.downloadUrl(o, a.name);
198
+ let o = await ge.getDownloadUrl(a.uuid);
199
+ o !== null && i.downloadUrl(o, a.name);
200
200
  }
201
- let O = N(() => [
201
+ let k = N(() => [
202
202
  {
203
203
  isLoading: _.isLoading.value,
204
- iconLeft: h,
204
+ iconLeft: d,
205
205
  key: "send",
206
206
  label: n.t("wise_invoicing.invoice.detail.actions.send"),
207
207
  variant: "primary",
208
208
  visible: e.value.status === t.FINALIZED,
209
- onClick: T
209
+ onClick: E
210
210
  },
211
211
  {
212
- isLoading: m.isLoading.value,
213
- iconRight: f,
212
+ isLoading: h.isLoading.value,
213
+ iconRight: p,
214
214
  key: "markAsReady",
215
215
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
216
216
  visible: e.value.status === t.DRAFT,
217
- onClick: x
217
+ onClick: S
218
218
  },
219
219
  {
220
- isLoading: d.isLoading.value,
221
- iconRight: g,
220
+ isLoading: u.isLoading.value,
221
+ iconRight: l,
222
222
  key: "finalize",
223
223
  label: n.t("wise_invoicing.invoice.detail.actions.finalize"),
224
224
  visible: e.value.status === t.READY,
225
- onClick: C
225
+ onClick: w
226
226
  }
227
- ].filter((e) => e.visible)), k = N(() => {
227
+ ].filter((e) => e.visible)), A = N(() => {
228
228
  let r = [{
229
- icon: u,
229
+ icon: g,
230
230
  key: "downloadPdf",
231
231
  label: n.t("wise_invoicing.common.download_pdf"),
232
- visible: y.value,
233
- onSelect: D
232
+ visible: b.value,
233
+ onSelect: O
234
234
  }, {
235
235
  icon: c,
236
236
  key: "backToDraft",
237
237
  label: n.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
238
238
  visible: e.value.status === t.READY,
239
- onSelect: w
239
+ onSelect: T
240
240
  }], i = [{
241
- icon: a,
241
+ icon: m,
242
242
  key: "delete",
243
243
  label: n.t("wise_invoicing.credit_note.detail.actions.delete"),
244
- visible: te.isEditable(e.value.status),
245
- onSelect: E
244
+ visible: ee.isEditable(e.value.status),
245
+ onSelect: D
246
246
  }];
247
247
  return [{
248
248
  items: r.filter((e) => e.visible),
@@ -253,14 +253,14 @@ function We(e) {
253
253
  }].filter((e) => e.items.length > 0);
254
254
  });
255
255
  return {
256
- isActionMenuVisible: N(() => k.value.length > 0),
257
- menuGroups: k,
258
- primaryButtons: O
256
+ isActionMenuVisible: N(() => A.value.length > 0),
257
+ menuGroups: A,
258
+ primaryButtons: k
259
259
  };
260
260
  }
261
261
  //#endregion
262
262
  //#region src/modules/credit-note/use-cases/detail/components/CreditNoteDetailHeaderSection.vue
263
- var Ge = /* @__PURE__ */ L({
263
+ var Ke = /* @__PURE__ */ L({
264
264
  __name: "CreditNoteDetailHeaderSection",
265
265
  props: {
266
266
  isPdfViewActive: { type: Boolean },
@@ -268,13 +268,13 @@ var Ge = /* @__PURE__ */ L({
268
268
  },
269
269
  emits: ["togglePdfView"],
270
270
  setup(e, { emit: n }) {
271
- let r = e, i = n, a = M(), s = X(), c = Q(), { menuGroups: l, primaryButtons: u } = We(N(() => r.creditNote)), d = N(() => new C(r.creditNote.status)), f = N(() => d.value.color), p = N(() => a.t(d.value.translationKey)), m = N(() => r.creditNote.status !== t.DRAFT && r.creditNote.status !== t.READY), h = Z({
271
+ let r = e, i = n, o = M(), s = Y(), c = Z(), { menuGroups: l, primaryButtons: u } = Ge(N(() => r.creditNote)), d = N(() => new T(r.creditNote.status)), f = N(() => d.value.color), p = N(() => o.t(d.value.translationKey)), m = N(() => r.creditNote.status !== t.DRAFT && r.creditNote.status !== t.READY), h = X({
272
272
  initialState: { subject: r.creditNote.subject },
273
- schema: Le,
273
+ schema: Re,
274
274
  onSubmit: async (e) => {
275
275
  let t = await c.execute({
276
276
  body: {
277
- ...x.toForm(r.creditNote),
277
+ ...S.toForm(r.creditNote),
278
278
  subject: e.subject
279
279
  },
280
280
  params: { creditNoteUuid: r.creditNote.uuid }
@@ -282,21 +282,21 @@ var Ge = /* @__PURE__ */ L({
282
282
  t.isErr() && s.apiError(t.error);
283
283
  }
284
284
  }), g = h.register("subject");
285
- return A({ form: h }), (e, t) => (B(), P(H(K), {
285
+ return w({ form: h }), (e, t) => (B(), P(H(K), {
286
286
  form: H(h),
287
287
  "prompt-on-unsaved-changes": !1
288
288
  }, {
289
- default: U(() => [I(me, {
290
- "fallback-title": H(a).t("wise_invoicing.credit_note.detail.fallback_title"),
289
+ default: U(() => [I(pe, {
290
+ "fallback-title": H(o).t("wise_invoicing.credit_note.detail.fallback_title"),
291
291
  "is-disabled": m.value,
292
292
  sequence: r.creditNote.sequence,
293
293
  "status-color": f.value,
294
294
  "status-label": p.value,
295
- icon: H(o),
295
+ icon: H(a),
296
296
  "subject-field": H(g),
297
- "subject-placeholder": H(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
297
+ "subject-placeholder": H(o).t("wise_invoicing.invoice.detail.header.subject_placeholder")
298
298
  }, {
299
- actions: U(() => [I(w, {
299
+ actions: U(() => [I(E, {
300
300
  "is-pdf-view-active": r.isPdfViewActive,
301
301
  "menu-groups": H(l),
302
302
  "primary-buttons": H(u),
@@ -310,7 +310,7 @@ var Ge = /* @__PURE__ */ L({
310
310
  gap: "xs",
311
311
  class: "flex-wrap items-start"
312
312
  }, {
313
- default: U(() => [r.creditNote.isOverdue ? (B(), P(ge, { key: 0 })) : F("", !0)]),
313
+ default: U(() => [r.creditNote.isOverdue ? (B(), P(he, { key: 0 })) : F("", !0)]),
314
314
  _: 1
315
315
  })]),
316
316
  _: 1
@@ -327,13 +327,13 @@ var Ge = /* @__PURE__ */ L({
327
327
  _: 1
328
328
  }, 8, ["form"]));
329
329
  }
330
- }), Ke = /* @__PURE__ */ L({
330
+ }), qe = /* @__PURE__ */ L({
331
331
  __name: "CreditNoteDetailRemarksSection",
332
332
  props: { creditNote: {} },
333
333
  setup(e) {
334
- let n = e, r = M(), i = X(), a = Q(), o = Z({
335
- initialState: N(() => x.toForm(n.creditNote)),
336
- schema: Ie,
334
+ let n = e, r = M(), i = Y(), a = Z(), o = X({
335
+ initialState: N(() => S.toForm(n.creditNote)),
336
+ schema: Le,
337
337
  onSubmit: async (e) => {
338
338
  let t = await a.execute({
339
339
  body: e,
@@ -342,11 +342,11 @@ var Ge = /* @__PURE__ */ L({
342
342
  t.isErr() && i.apiError(t.error);
343
343
  }
344
344
  }), s = o.register("externalRemarks"), c = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
345
- return A({ form: o }), (e, t) => (B(), P(H(K), {
345
+ return w({ form: o }), (e, t) => (B(), P(H(K), {
346
346
  form: H(o),
347
347
  "prompt-on-unsaved-changes": !1
348
348
  }, {
349
- default: U(() => [I(k, {
349
+ default: U(() => [I(ne, {
350
350
  "is-disabled": c.value,
351
351
  placeholder: H(r).t("wise_invoicing.invoice.detail.remarks.placeholder"),
352
352
  "remarks-field": H(s),
@@ -363,23 +363,23 @@ var Ge = /* @__PURE__ */ L({
363
363
  });
364
364
  //#endregion
365
365
  //#region src/modules/credit-note/api/queries/creditNoteActivityLogIndex.query.ts
366
- function qe(e) {
367
- return we("creditNoteActivityLogIndex", {
366
+ function Je(e) {
367
+ return Ce("creditNoteActivityLogIndex", {
368
368
  params: { creditNoteUuid: e },
369
- queryFn: (t) => b.getActivityLogs(e.value, { pagination: t })
369
+ queryFn: (t) => x.getActivityLogs(e.value, { pagination: t })
370
370
  });
371
371
  }
372
372
  //#endregion
373
373
  //#region src/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarActivityTab.vue
374
- var Je = /* @__PURE__ */ L({
374
+ var Ye = /* @__PURE__ */ L({
375
375
  __name: "CreditNoteDetailSidebarActivityTab",
376
376
  props: { creditNote: {} },
377
377
  setup(e) {
378
- let t = e, r = M(), { hasNextPage: i, isFetchingNextPage: a, isLoading: o, fetchNextPage: s, result: c } = qe(N(() => t.creditNote.uuid)), l = N(() => c.value.unwrapOr({
378
+ let t = e, r = M(), { hasNextPage: i, isFetchingNextPage: a, isLoading: o, fetchNextPage: s, result: c } = Je(N(() => t.creditNote.uuid)), l = N(() => c.value.unwrapOr({
379
379
  data: [],
380
380
  meta: { next: null }
381
381
  }).data);
382
- return (e, c) => (B(), P(ie, {
382
+ return (e, c) => (B(), P(re, {
383
383
  "current-billing-document": {
384
384
  role: H(n).CREDIT_NOTE,
385
385
  uuid: t.creditNote.uuid
@@ -400,7 +400,7 @@ var Je = /* @__PURE__ */ L({
400
400
  "is-loading"
401
401
  ]));
402
402
  }
403
- }), $ = /* @__PURE__ */ L({
403
+ }), Q = /* @__PURE__ */ L({
404
404
  __name: "BillingDocumentDetailSidebarInfoItem",
405
405
  props: {
406
406
  hasError: {
@@ -414,23 +414,23 @@ var Je = /* @__PURE__ */ L({
414
414
  let t = e;
415
415
  return (e, n) => (B(), P(H(q), null, {
416
416
  default: U(() => [
417
- (B(), P(Ce(t.icon), { class: z([{
417
+ (B(), P(Se(t.icon), { class: z([{
418
418
  "text-error-primary": t.hasError,
419
419
  "text-tertiary": !t.hasError
420
420
  }, "size-3.5 shrink-0"]) }, null, 8, ["class"])),
421
- I(H(Y), {
421
+ I(H(J), {
422
422
  text: t.label,
423
423
  class: z([{
424
424
  "text-error-primary": t.hasError,
425
425
  "text-tertiary": !t.hasError
426
426
  }, "w-24 shrink-0 text-xs"])
427
427
  }, null, 8, ["text", "class"]),
428
- Se(e.$slots, "default")
428
+ xe(e.$slots, "default")
429
429
  ]),
430
430
  _: 3
431
431
  }));
432
432
  }
433
- }), Ye = /* @__PURE__ */ L({
433
+ }), $ = /* @__PURE__ */ L({
434
434
  __name: "BillingDocumentDetailSidebarPartySection",
435
435
  props: {
436
436
  title: {},
@@ -443,18 +443,18 @@ var Je = /* @__PURE__ */ L({
443
443
  },
444
444
  setup(e) {
445
445
  let t = e, n = V(t.isDefaultOpen);
446
- function r() {
446
+ function i() {
447
447
  n.value = !n.value;
448
448
  }
449
449
  return (e, a) => (B(), P(H(G), { class: "w-full" }, {
450
450
  default: U(() => [I(H(q), { justify: "between" }, {
451
451
  default: U(() => [I(H(De), { class: "rounded-sm" }, {
452
- default: U(() => [xe("button", {
452
+ default: U(() => [be("button", {
453
453
  type: "button",
454
454
  class: "flex w-full items-center gap-sm",
455
- onClick: r
455
+ onClick: i
456
456
  }, [
457
- I(H(Y), {
457
+ I(H(J), {
458
458
  text: t.title,
459
459
  class: "text-xs font-semibold text-primary"
460
460
  }, null, 8, ["text"]),
@@ -463,7 +463,7 @@ var Je = /* @__PURE__ */ L({
463
463
  color: "gray",
464
464
  variant: "outline"
465
465
  }, null, 8, ["label"]),
466
- I(H(l), { class: z([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
466
+ I(H(o), { class: z([{ "rotate-180": n.value }, "size-4 text-tertiary transition-all duration-100"]) }, null, 8, ["class"])
467
467
  ])]),
468
468
  _: 1
469
469
  })]),
@@ -473,13 +473,13 @@ var Je = /* @__PURE__ */ L({
473
473
  key: 0,
474
474
  gap: "xs"
475
475
  }, {
476
- default: U(() => [I(H(Y), {
476
+ default: U(() => [I(H(J), {
477
477
  text: t.name,
478
478
  class: "text-xs font-medium text-primary"
479
- }, null, 8, ["text"]), t.address ? (B(), P(H(Y), {
479
+ }, null, 8, ["text"]), t.address ? (B(), P(H(J), {
480
480
  key: 0,
481
481
  truncate: !1,
482
- text: H(i).format(t.address),
482
+ text: H(r).format(t.address),
483
483
  class: "text-xs text-primary"
484
484
  }, null, 8, ["text"])) : F("", !0)]),
485
485
  _: 1
@@ -496,9 +496,9 @@ var Je = /* @__PURE__ */ L({
496
496
  customFieldDefinitions: {}
497
497
  },
498
498
  setup(e) {
499
- let n = e, r = M(), i = X(), a = Q(), o = Z({
500
- initialState: N(() => x.toForm(n.creditNote)),
501
- schema: Ie,
499
+ let n = e, r = M(), i = Y(), a = Z(), o = X({
500
+ initialState: N(() => S.toForm(n.creditNote)),
501
+ schema: Le,
502
502
  onSubmit: async (e) => {
503
503
  let t = await a.execute({
504
504
  body: e,
@@ -506,8 +506,8 @@ var Je = /* @__PURE__ */ L({
506
506
  });
507
507
  t.isErr() && i.apiError(t.error);
508
508
  }
509
- }), c = o.register("issuedOn"), l = o.register("poNumber"), u = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
510
- return A({ form: o }), (e, t) => (B(), P(H(K), {
509
+ }), c = o.register("issuedOn"), l = o.register("poNumber"), d = N(() => n.creditNote.status !== t.DRAFT && n.creditNote.status !== t.READY);
510
+ return w({ form: o }), (e, t) => (B(), P(H(K), {
511
511
  form: H(o),
512
512
  "prompt-on-unsaved-changes": !1
513
513
  }, {
@@ -517,28 +517,28 @@ var Je = /* @__PURE__ */ L({
517
517
  }, {
518
518
  default: U(() => [
519
519
  I(H(G), null, {
520
- default: U(() => [I(H(Y), {
520
+ default: U(() => [I(H(J), {
521
521
  text: H(r).t("wise_invoicing.invoice.detail.sidebar.general"),
522
522
  class: "text-xs font-semibold text-primary"
523
523
  }, null, 8, ["text"]), I(H(G), { gap: "lg" }, {
524
524
  default: U(() => [
525
- I($, {
526
- icon: H(d),
525
+ I(Q, {
526
+ icon: H(f),
527
527
  label: H(r).t("wise_invoicing.invoice.detail.header.invoice_id")
528
528
  }, {
529
- default: U(() => [I(H(Y), {
529
+ default: U(() => [I(H(J), {
530
530
  text: n.creditNote.sequence ?? "-",
531
531
  class: "text-xs text-primary"
532
532
  }, null, 8, ["text"])]),
533
533
  _: 1
534
534
  }, 8, ["icon", "label"]),
535
- I($, {
536
- icon: H(p),
535
+ I(Q, {
536
+ icon: H(s),
537
537
  "has-error": H(l).errors.value.length > 0,
538
538
  label: H(r).t("wise_invoicing.invoice.detail.header.po_number")
539
539
  }, {
540
- default: U(() => [I(H(Pe), R(H(y)(H(l)), {
541
- "is-disabled": u.value,
540
+ default: U(() => [I(H(Fe), R(H(y)(H(l)), {
541
+ "is-disabled": d.value,
542
542
  label: null,
543
543
  class: "w-full"
544
544
  }), null, 16, ["is-disabled"])]),
@@ -548,29 +548,29 @@ var Je = /* @__PURE__ */ L({
548
548
  "has-error",
549
549
  "label"
550
550
  ]),
551
- I($, {
552
- icon: H(m),
551
+ I(Q, {
552
+ icon: H(h),
553
553
  label: H(r).t("wise_invoicing.invoice.detail.header.issuer")
554
554
  }, {
555
- default: U(() => [I(H(Y), {
555
+ default: U(() => [I(H(J), {
556
556
  text: n.creditNote.issuer.name ?? "-",
557
557
  class: "text-xs text-primary"
558
558
  }, null, 8, ["text"])]),
559
559
  _: 1
560
560
  }, 8, ["icon", "label"]),
561
- I($, {
562
- icon: H(s),
561
+ I(Q, {
562
+ icon: H(u),
563
563
  "has-error": H(c).errors.value.length > 0,
564
564
  label: H(r).t("wise_invoicing.invoice.detail.header.invoice_date")
565
565
  }, {
566
- default: U(() => [I(H(Oe), R({ "is-disabled": u.value }, H(y)(H(c))), null, 16, ["is-disabled"])]),
566
+ default: U(() => [I(H(Oe), R({ "is-disabled": d.value }, H(y)(H(c))), null, 16, ["is-disabled"])]),
567
567
  _: 1
568
568
  }, 8, [
569
569
  "icon",
570
570
  "has-error",
571
571
  "label"
572
572
  ]),
573
- I(oe, {
573
+ I(ae, {
574
574
  definitions: n.customFieldDefinitions,
575
575
  values: n.creditNote.customFields
576
576
  }, null, 8, ["definitions", "values"])
@@ -579,9 +579,9 @@ var Je = /* @__PURE__ */ L({
579
579
  })]),
580
580
  _: 1
581
581
  }),
582
- I(H(J)),
583
- I(le, { "original-invoice": n.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
584
- I(Ye, {
582
+ I(H(Pe)),
583
+ I(ce, { "original-invoice": n.creditNote.originalInvoice }, null, 8, ["original-invoice"]),
584
+ I($, {
585
585
  "is-default-open": !0,
586
586
  name: n.creditNote.customer.name ?? "-",
587
587
  title: H(r).t("wise_invoicing.invoice.detail.header.bill_to"),
@@ -591,8 +591,8 @@ var Je = /* @__PURE__ */ L({
591
591
  "title",
592
592
  "address"
593
593
  ]),
594
- I(H(J)),
595
- I(Ye, {
594
+ I(H(Pe)),
595
+ I($, {
596
596
  name: n.creditNote.issuer.email ?? "-",
597
597
  title: H(r).t("wise_invoicing.invoice.detail.header.bill_from"),
598
598
  address: n.creditNote.issuer.address
@@ -615,11 +615,11 @@ var Je = /* @__PURE__ */ L({
615
615
  },
616
616
  setup(e) {
617
617
  let t = e, n = M(), r = _(), i = N(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.creditNote.updatedAt) }));
618
- return (e, n) => (B(), P(O, {
618
+ return (e, n) => (B(), P(A, {
619
619
  "billing-document": t.creditNote,
620
620
  "updated-footer": i.value
621
621
  }, {
622
- activity: U(() => [I(Je, { "credit-note": t.creditNote }, null, 8, ["credit-note"])]),
622
+ activity: U(() => [I(Ye, { "credit-note": t.creditNote }, null, 8, ["credit-note"])]),
623
623
  info: U(() => [I(Xe, {
624
624
  "credit-note": t.creditNote,
625
625
  "custom-field-definitions": t.customFieldDefinitions
@@ -632,7 +632,7 @@ var Je = /* @__PURE__ */ L({
632
632
  //#region src/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.ts
633
633
  function Qe() {
634
634
  return W({
635
- queryFn: (e) => b.updateLines(e.params.creditNoteUuid, e.body),
635
+ queryFn: (e) => x.updateLines(e.params.creditNoteUuid, e.body),
636
636
  queryKeysToInvalidate: {
637
637
  creditNoteDetail: { creditNoteUuid: (e) => e.creditNoteUuid },
638
638
  invoiceIndex: {}
@@ -648,7 +648,7 @@ var $e = /* @__PURE__ */ L({
648
648
  customFieldDefinitions: {}
649
649
  },
650
650
  setup(e) {
651
- let t = e, n = N(() => t.creditNote), r = Qe(), i = ae({
651
+ let t = e, n = N(() => t.creditNote), r = Qe(), i = ie({
652
652
  isSaving: N(() => r.isLoading.value),
653
653
  billingDocument: () => n.value,
654
654
  customFieldDefinitions: () => t.customFieldDefinitions,
@@ -657,12 +657,12 @@ var $e = /* @__PURE__ */ L({
657
657
  params: { creditNoteUuid: t.creditNote.uuid }
658
658
  })
659
659
  });
660
- return D(i), (e, n) => (B(), P(ce, null, {
660
+ return k(i), (e, n) => (B(), P(se, null, {
661
661
  default: U(() => [
662
- I(de, { "show-apply-discount": !1 }),
663
- I(E),
664
- I(T, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
665
- I(pe)
662
+ I(ue, { "show-apply-discount": !1 }),
663
+ I(O),
664
+ I(D, { "billing-document": t.creditNote }, null, 8, ["billing-document"]),
665
+ I(fe)
666
666
  ]),
667
667
  _: 1
668
668
  }));
@@ -689,25 +689,25 @@ var $e = /* @__PURE__ */ L({
689
689
  { label: n.t("wise_invoicing.invoice.detail.credit_notes.untitled") },
690
690
  { label: t.creditNote.sequence ?? n.t("wise_invoicing.credit_note.detail.fallback_title") }
691
691
  ]);
692
- return (e, a) => (B(), P(ue, {
692
+ return (e, a) => (B(), P(le, {
693
693
  "billing-document": t.creditNote,
694
694
  breadcrumbs: i.value,
695
695
  title: H(n).t("wise_invoicing.credit_note.detail.fallback_title")
696
696
  }, {
697
- header: U(() => [I(Ge, {
697
+ header: U(() => [I(Ke, {
698
698
  "credit-note": t.creditNote,
699
699
  "is-pdf-view-active": r.value,
700
700
  class: "w-full",
701
701
  onTogglePdfView: a[0] ||= (e) => r.value = !r.value
702
702
  }, null, 8, ["credit-note", "is-pdf-view-active"])]),
703
- default: U(() => [r.value ? (B(), P(se, {
703
+ default: U(() => [r.value ? (B(), P(oe, {
704
704
  key: 0,
705
705
  "billing-document": t.creditNote,
706
706
  class: "w-full"
707
- }, null, 8, ["billing-document"])) : (B(), be(ye, { key: 1 }, [I($e, {
707
+ }, null, 8, ["billing-document"])) : (B(), ye(ve, { key: 1 }, [I($e, {
708
708
  "credit-note": t.creditNote,
709
709
  "custom-field-definitions": t.customFieldDefinitions
710
- }, null, 8, ["credit-note", "custom-field-definitions"]), I(Ke, {
710
+ }, null, 8, ["credit-note", "custom-field-definitions"]), I(qe, {
711
711
  "credit-note": t.creditNote,
712
712
  class: "w-full"
713
713
  }, null, 8, ["credit-note"])], 64))]),
@@ -729,8 +729,8 @@ var $e = /* @__PURE__ */ L({
729
729
  let t = e, n = M(), r = N(() => [{
730
730
  label: n.t("wise_invoicing.invoice.overview.title"),
731
731
  to: { name: "invoicing-invoice-overview" }
732
- }]), i = S(N(() => t.creditNoteUuid)), a = v();
733
- return (e, t) => (B(), P(fe, {
732
+ }]), i = C(N(() => t.creditNoteUuid)), a = b();
733
+ return (e, t) => (B(), P(de, {
734
734
  "custom-field-definitions-query": H(a),
735
735
  query: H(i),
736
736
  "loading-breadcrumbs": r.value