@wisemen/wise-invoicing-web 0.0.2 → 0.0.4

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 (605) hide show
  1. package/dist/AddOpenBoundaryIcon-9SqBHfoz.js +25 -0
  2. package/dist/AirlineIcon-Z6sH_StM.js +26 -0
  3. package/dist/AirplaneIcon-C-nSkD1w.js +19 -0
  4. package/dist/AirportIcon-m4itDKCV.js +16 -0
  5. package/dist/AlertTriangleIcon-DtYLCC-Y.js +23 -0
  6. package/dist/AllocationsIcon-hcg93Sll.js +16 -0
  7. package/dist/ArrowNarrowRightIcon-2-Sml68f.js +23 -0
  8. package/dist/AssetIcon-qOYs6Wna.js +16 -0
  9. package/dist/BarChartIcon-DDyzpV_3.js +22 -0
  10. package/dist/BellIcon-DF1OBFta.js +21 -0
  11. package/dist/BillingDocumentDetailViewDataProvider-pePmiXWb.js +5248 -0
  12. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  13. package/dist/BillingDocumentPdf-Dg5JlQE1.js +726 -0
  14. package/dist/BuildingIcon-CC5PMNeP.js +22 -0
  15. package/dist/ChargerIcon-aM_endLr.js +16 -0
  16. package/dist/ChevronDownIcon-4QiK-Z6-.js +23 -0
  17. package/dist/ChevronUpIcon-qBsjZ5Dz.js +23 -0
  18. package/dist/ClockIcon-BNiPCaiB.js +23 -0
  19. package/dist/ClockSnoozeIcon-BxGfwJB6.js +23 -0
  20. package/dist/CopyIcon-DH5ly0dZ.js +19 -0
  21. package/dist/CreditNoteDetailViewDataProvider-C-A0jyVr.js +751 -0
  22. package/dist/CreditNotePdfViewDataProvider-DNUvFVDj.js +21 -0
  23. package/dist/CustomFieldValueText-DDQq-975.js +189 -0
  24. package/dist/DataProvider-CfHLB3rH.js +48 -0
  25. package/dist/DownloadCloudIcon-Cf8ftklG.js +22 -0
  26. package/dist/DunningCaseDetailViewDataProvider-0WV-7-vg.js +400 -0
  27. package/dist/DunningCaseOverviewView-CHdzfbhb.js +553 -0
  28. package/dist/DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js +239 -0
  29. package/dist/DunningCaseSendDialog-DBtwr2ue.js +350 -0
  30. package/dist/EditIcon-Dr7OHBBR.js +21 -0
  31. package/dist/EraserIcon-B1VJSvdI.js +23 -0
  32. package/dist/FileIcon-ssmQI5Yl.js +23 -0
  33. package/dist/FilterLinesIcon-C7YdyPBk.js +23 -0
  34. package/dist/GlobeIcon-BfRM6Ike.js +22 -0
  35. package/dist/HelpIcon-BrJ49P5y.js +22 -0
  36. package/dist/HourGlassIcon-D9rfU1Is.js +22 -0
  37. package/dist/InfoCircleIcon-Ee0SyiMc.js +23 -0
  38. package/dist/InvoiceDetailViewDataProvider-BDL9lAWe.js +1579 -0
  39. package/dist/InvoiceOverviewViewDataProvider-B_jrcC_8.js +1613 -0
  40. package/dist/InvoicePdfView-Bygb-9z6.js +17 -0
  41. package/dist/InvoicePdfViewDataProvider-nBk3XNrE.js +21 -0
  42. package/dist/InvoicePublicPdfViewDataProvider-DHJP_-7-.js +44 -0
  43. package/dist/IssuerSettingsViewDataProvider-Dk_Q6w6f.js +188 -0
  44. package/dist/KeyboardIcon-T3o_g-1c.js +22 -0
  45. package/dist/LinkExternalIcon-BkHS4fCx.js +22 -0
  46. package/dist/LinkIcon-DuPwae98.js +22 -0
  47. package/dist/MarkerIcon-B1Jqenjb.js +28 -0
  48. package/dist/MobileBatteryIcon-GZ1SMRDV.js +16 -0
  49. package/dist/MonitorIcon-pbK22reU.js +22 -0
  50. package/dist/NotificationIcon-Ctv8vyWt.js +19 -0
  51. package/dist/ParkingIcon-DnUPW3pB.js +24 -0
  52. package/dist/PlanningIcon-CXvrskgj.js +16 -0
  53. package/dist/PreferenceIcon-BHS8uDyi.js +22 -0
  54. package/dist/ReceiptCheckIcon-QTestqCJ.js +23 -0
  55. package/dist/RefreshIcon-DShY-aoS.js +22 -0
  56. package/dist/ReminderSettingsViewDataProvider-CDBjfU7R.js +668 -0
  57. package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +28 -0
  58. package/dist/RewindIcon-GWg2AQax.js +22 -0
  59. package/dist/SettingsIcon-CBLJ6B5u.js +25 -0
  60. package/dist/ShieldIcon-CVnrOcxl.js +19 -0
  61. package/dist/ShieldOffIcon-B9l0dDVb.js +23 -0
  62. package/dist/SignOutIcon-CmDkjJ5F.js +21 -0
  63. package/dist/SlashCircleIcon-jY5FBko5.js +22 -0
  64. package/dist/StandIcon-CoYnBLMn.js +23 -0
  65. package/dist/StarsIcon-D7ZlqOW7.js +22 -0
  66. package/dist/StopwatchIcon-BK0vh1lg.js +22 -0
  67. package/dist/TargetIcon-HMWj77-Q.js +22 -0
  68. package/dist/ThreeDotsIcon-BtFruOKz.js +32 -0
  69. package/dist/ToolIcon-DRfDb7fE.js +22 -0
  70. package/dist/TrashIcon-BwxBjHv5.js +19 -0
  71. package/dist/TurnaroundIcon-b1X61TwZ.js +27 -0
  72. package/dist/UploadCloudIcon-BF0equKg.js +22 -0
  73. package/dist/UserIcon-B0rCC6KE.js +22 -0
  74. package/dist/UsersIcon-cK5l_zKG.js +22 -0
  75. package/dist/VerifiedIcon-CELYlqcv.js +22 -0
  76. package/dist/WifiIcon--JPvMNEF.js +23 -0
  77. package/dist/WifiOffIcon-BS2KftcP.js +23 -0
  78. package/dist/ZapIcon-BHwcIQc0.js +23 -0
  79. package/dist/ZoomInIcon-Cu6r915V.js +23 -0
  80. package/dist/ZoomOutIcon-DwB4FRj-.js +23 -0
  81. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  82. package/dist/address.transformer-B8C0pwT1.js +167 -0
  83. package/dist/addressForm.model-C853zEtX.js +20 -0
  84. package/dist/api.util-Dm_TQedZ.js +2948 -0
  85. package/dist/billingDocumentDetail.transformer-zMTbka5p.js +334 -0
  86. package/dist/client/client/client.gen.d.ts +2 -0
  87. package/dist/client/client/index.d.ts +10 -0
  88. package/dist/client/client/types.gen.d.ts +120 -0
  89. package/dist/client/client/utils.gen.d.ts +37 -0
  90. package/dist/client/client.gen.d.ts +12 -0
  91. package/dist/client/core/auth.gen.d.ts +25 -0
  92. package/dist/client/core/bodySerializer.gen.d.ts +25 -0
  93. package/dist/client/core/params.gen.d.ts +43 -0
  94. package/dist/client/core/pathSerializer.gen.d.ts +33 -0
  95. package/dist/client/core/queryKeySerializer.gen.d.ts +18 -0
  96. package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
  97. package/dist/client/core/types.gen.d.ts +83 -0
  98. package/dist/client/core/utils.gen.d.ts +19 -0
  99. package/dist/client/index.d.ts +2 -0
  100. package/dist/client/sdk.gen.d.ts +123 -0
  101. package/dist/client/types.gen.d.ts +4894 -0
  102. package/dist/client/zod.gen.d.ts +67202 -0
  103. package/dist/composables/created.composable.d.ts +1 -0
  104. package/dist/composables/currency-format/useCurrencyFormat.composable.d.ts +12 -0
  105. package/dist/composables/document-title/documentTitle.composable.d.ts +8 -0
  106. package/dist/composables/form-auto-save/formAutoSave.composable.d.ts +14 -0
  107. package/dist/composables/invoicingConfig.composable.d.ts +24 -0
  108. package/dist/composables/invoicingQueryInvalidation.composable.d.ts +9 -0
  109. package/dist/composables/invoicingQueryInvalidation.composable.spec.d.ts +1 -0
  110. package/dist/composables/is-selector-visible/isSelectorVisible.composable.d.ts +1 -0
  111. package/dist/composables/paginated-cache/paginatedCache.composable.d.ts +8 -0
  112. package/dist/composables/routeQueryState.composable.d.ts +12 -0
  113. package/dist/composables/search/search.composable.d.ts +12 -0
  114. package/dist/composables/sort.composable.d.ts +3 -0
  115. package/dist/composables/virtual-scrolling/virtualScrolling.composable.d.ts +31 -0
  116. package/dist/creditNoteDetail.query-BZqgZRSu.js +122 -0
  117. package/dist/customerUuid.model-GUFYq3O2.js +5 -0
  118. package/dist/dashboard-BaWGNEek.js +5 -0
  119. package/dist/dist-DJ8yJcb9.js +2499 -0
  120. package/dist/dist-DP8KNFVD.js +927 -0
  121. package/dist/dist-YTXTCfo1.js +333 -0
  122. package/dist/documentTitle.composable-CeaFddr1.js +68 -0
  123. package/dist/download.util-PjaUQR6r.js +9 -0
  124. package/dist/formango.util-D5c2ql--.js +12 -0
  125. package/dist/i18n.lib-DUbAMBRb.js +1440 -0
  126. package/dist/index.d.ts +1603 -2873
  127. package/dist/index.js +749 -42
  128. package/dist/invoice.service-ChHEtXBA.js +629 -0
  129. package/dist/invoiceDeliveryStatus.util-BsA-MlA3.js +331 -0
  130. package/dist/invoiceDetail.query-O_CGvdwg.js +11 -0
  131. package/dist/invoicingConfig.composable-c6w_aMm1.js +60 -0
  132. package/dist/issuerSettings.query-RqtrZFaB.js +116 -0
  133. package/dist/libs/http.lib.d.ts +5 -0
  134. package/dist/libs/i18n.lib.d.ts +1439 -0
  135. package/dist/locales/en-US.json.d.ts +718 -0
  136. package/dist/locales/nl-BE.json.d.ts +718 -0
  137. package/dist/locales/ui-en-US.json.d.ts +66 -0
  138. package/dist/locales/ui-nl-BE.json.d.ts +66 -0
  139. package/dist/models/address/address.model.d.ts +15 -0
  140. package/dist/models/address/address.transformer.d.ts +11 -0
  141. package/dist/models/address/address.util.d.ts +11 -0
  142. package/dist/models/address/addressForm.model.d.ts +15 -0
  143. package/dist/models/address/addressForm.transformer.d.ts +8 -0
  144. package/dist/models/address/addressForm.transformer.spec.d.ts +1 -0
  145. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +21 -0
  146. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.transformer.d.ts +5 -0
  147. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +136 -0
  148. package/dist/models/billing-document/billingDocumentDetail.transformer.d.ts +5 -0
  149. package/dist/models/billing-document/billingDocumentDiscount.model.d.ts +9 -0
  150. package/dist/models/billing-document/billingDocumentDiscount.transformer.d.ts +6 -0
  151. package/dist/models/billing-document/billingDocumentDisplay.util.d.ts +7 -0
  152. package/dist/models/billing-document/billingDocumentLineItemGroupUpdateForm.model.d.ts +6 -0
  153. package/dist/models/billing-document/billingDocumentLineItemUpdateForm.model.d.ts +21 -0
  154. package/dist/models/billing-document/billingDocumentStatusEnum.model.d.ts +12 -0
  155. package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +27 -0
  156. package/dist/models/billing-document/billingDocumentVatSummary.util.d.ts +4 -0
  157. package/dist/models/billing-document/billingDocumentVatSummary.util.spec.d.ts +1 -0
  158. package/dist/models/customer/customerDetail.model.d.ts +6 -0
  159. package/dist/models/customer/customerDetail.transformer.d.ts +5 -0
  160. package/dist/models/customer/customerUuid.model.d.ts +3 -0
  161. package/dist/models/file-reference/fileReference.dto.d.ts +13 -0
  162. package/dist/models/file-reference/fileReference.model.d.ts +13 -0
  163. package/dist/models/file-reference/fileReference.transformer.d.ts +9 -0
  164. package/dist/models/file-reference/fileReferenceForm.model.d.ts +10 -0
  165. package/dist/modules/credit-note/api/mutations/creditNoteDelete.mutation.d.ts +4 -0
  166. package/dist/modules/credit-note/api/mutations/creditNoteFinalize.mutation.d.ts +6 -0
  167. package/dist/modules/credit-note/api/mutations/creditNoteMarkAsDraft.mutation.d.ts +6 -0
  168. package/dist/modules/credit-note/api/mutations/creditNoteMarkAsReady.mutation.d.ts +6 -0
  169. package/dist/modules/credit-note/api/mutations/creditNoteSend.mutation.d.ts +4 -0
  170. package/dist/modules/credit-note/api/mutations/creditNoteUpdate.mutation.d.ts +9 -0
  171. package/dist/modules/credit-note/api/mutations/creditNoteUpdateLines.mutation.d.ts +4 -0
  172. package/dist/modules/credit-note/api/queries/creditNoteActivityLogIndex.query.d.ts +3 -0
  173. package/dist/modules/credit-note/api/queries/creditNoteDetail.query.d.ts +3 -0
  174. package/dist/modules/credit-note/api/query-keys/creditNote.queryKeys.d.ts +17 -0
  175. package/dist/modules/credit-note/api/services/creditNote.service.d.ts +18 -0
  176. package/dist/modules/credit-note/models/creditNoteUuid.model.d.ts +3 -0
  177. package/dist/modules/credit-note/models/detail/creditNoteDetail.model.d.ts +4 -0
  178. package/dist/modules/credit-note/models/detail/creditNoteDetail.transformer.d.ts +5 -0
  179. package/dist/modules/credit-note/models/update/creditNoteUpdate.transformer.d.ts +7 -0
  180. package/dist/modules/credit-note/models/update/creditNoteUpdateForm.model.d.ts +11 -0
  181. package/dist/modules/credit-note/models/update/creditNoteUpdateLines.model.d.ts +2 -0
  182. package/dist/modules/credit-note/models/update/creditNoteUpdateLines.transformer.d.ts +5 -0
  183. package/dist/modules/credit-note/routes/creditNote.routes.d.ts +26 -0
  184. package/dist/modules/credit-note/use-cases/detail/components/CreditNoteDetailHeaderSection.vue.d.ts +12 -0
  185. package/dist/modules/credit-note/use-cases/detail/components/CreditNoteDetailRemarksSection.vue.d.ts +7 -0
  186. package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebar.vue.d.ts +9 -0
  187. package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarActivityTab.vue.d.ts +7 -0
  188. package/dist/modules/credit-note/use-cases/detail/components/sidebar/CreditNoteDetailSidebarInfoTab.vue.d.ts +9 -0
  189. package/dist/modules/credit-note/use-cases/detail/components/table/CreditNoteLineItemsTableSection.vue.d.ts +9 -0
  190. package/dist/modules/credit-note/use-cases/detail/composables/creditNoteDetailHeaderActions.composable.d.ts +8 -0
  191. package/dist/modules/credit-note/use-cases/detail/dialogs/CreditNoteDeleteDialog.vue.d.ts +13 -0
  192. package/dist/modules/credit-note/use-cases/detail/views/CreditNoteDetailView.vue.d.ts +9 -0
  193. package/dist/modules/credit-note/use-cases/detail/views/CreditNoteDetailViewDataProvider.vue.d.ts +7 -0
  194. package/dist/modules/credit-note/use-cases/pdf/views/CreditNotePdfViewDataProvider.vue.d.ts +7 -0
  195. package/dist/modules/custom-field/api/queries/customFieldDefinitionIndex.query.d.ts +3 -0
  196. package/dist/modules/custom-field/api/query-keys/customFieldDefinition.queryKeys.d.ts +10 -0
  197. package/dist/modules/custom-field/api/services/customFieldDefinition.service.d.ts +6 -0
  198. package/dist/modules/custom-field/components/CustomFieldFieldset.vue.d.ts +21 -0
  199. package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +10 -0
  200. package/dist/modules/custom-field/components/CustomFieldValueInput.vue.d.ts +23 -0
  201. package/dist/modules/custom-field/components/CustomFieldValueText.vue.d.ts +10 -0
  202. package/dist/modules/custom-field/components/customFieldFieldset.spec.d.ts +1 -0
  203. package/dist/modules/custom-field/components/customFieldValueInput.spec.d.ts +1 -0
  204. package/dist/modules/custom-field/composables/customFieldValueModel.composable.d.ts +28 -0
  205. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.model.d.ts +24 -0
  206. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.d.ts +5 -0
  207. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.d.ts +8 -0
  208. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.spec.d.ts +1 -0
  209. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinitionIndexQueryParams.model.d.ts +4 -0
  210. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinitionUuid.model.d.ts +3 -0
  211. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +12 -0
  212. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.transformer.d.ts +8 -0
  213. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.transformer.spec.d.ts +1 -0
  214. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
  215. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.spec.d.ts +1 -0
  216. package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +13 -0
  217. package/dist/modules/dunning-case/api/mutations/dunningCaseBulkSend.mutation.d.ts +5 -0
  218. package/dist/modules/dunning-case/api/mutations/dunningCaseSend.mutation.d.ts +4 -0
  219. package/dist/modules/dunning-case/api/mutations/reminderConfigUpdate.mutation.d.ts +24 -0
  220. package/dist/modules/dunning-case/api/queries/dunningCaseCustomerByExternalId.query.d.ts +2 -0
  221. package/dist/modules/dunning-case/api/queries/dunningCaseCustomerIndex.query.d.ts +6 -0
  222. package/dist/modules/dunning-case/api/queries/dunningCaseDetail.query.d.ts +3 -0
  223. package/dist/modules/dunning-case/api/queries/dunningCaseIndex.query.d.ts +8 -0
  224. package/dist/modules/dunning-case/api/queries/reminderConfig.query.d.ts +1 -0
  225. package/dist/modules/dunning-case/api/query-keys/dunningCase.queryKeys.d.ts +55 -0
  226. package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +19 -0
  227. package/dist/modules/dunning-case/api/services/dunningCaseCustomer.service.d.ts +11 -0
  228. package/dist/modules/dunning-case/components/DunningCaseReminderLevelIndicator.vue.d.ts +9 -0
  229. package/dist/modules/dunning-case/components/DunningCaseReminderStatusIndicator.vue.d.ts +9 -0
  230. package/dist/modules/dunning-case/components/dunningCaseReminderLevelIndicator.spec.d.ts +1 -0
  231. package/dist/modules/dunning-case/components/dunningCaseReminderStatusIndicator.spec.d.ts +1 -0
  232. package/dist/modules/dunning-case/index.d.ts +4 -0
  233. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +107 -0
  234. package/dist/modules/dunning-case/models/dunningCase.model.spec.d.ts +1 -0
  235. package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +13 -0
  236. package/dist/modules/dunning-case/models/dunningCase.transformer.spec.d.ts +1 -0
  237. package/dist/modules/dunning-case/models/dunningCaseCustomer.model.d.ts +9 -0
  238. package/dist/modules/dunning-case/models/reminderConfigForm.model.d.ts +31 -0
  239. package/dist/modules/dunning-case/models/reminderConfigForm.model.spec.d.ts +1 -0
  240. package/dist/modules/dunning-case/models/reminderTimeline.util.d.ts +9 -0
  241. package/dist/modules/dunning-case/models/reminderTimeline.util.spec.d.ts +1 -0
  242. package/dist/modules/dunning-case/routes/dunningCase.routes.d.ts +37 -0
  243. package/dist/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue.d.ts +7 -0
  244. package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailView.vue.d.ts +7 -0
  245. package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailViewDataProvider.vue.d.ts +7 -0
  246. package/dist/modules/dunning-case/use-cases/detail/views/dunningCaseDetailView.spec.d.ts +1 -0
  247. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewFilters.composable.d.ts +5 -0
  248. package/dist/modules/dunning-case/use-cases/overview/views/DunningCaseOverviewView.vue.d.ts +3 -0
  249. package/dist/modules/dunning-case/use-cases/overview/views/dunningCaseOverviewView.spec.d.ts +1 -0
  250. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.d.ts +2 -0
  251. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.service.d.ts +5 -0
  252. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfFooter.vue.d.ts +7 -0
  253. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +20 -0
  254. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.d.ts +8 -0
  255. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.spec.d.ts +1 -0
  256. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfView.vue.d.ts +7 -0
  257. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfViewDataProvider.vue.d.ts +3 -0
  258. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendStat.vue.d.ts +9 -0
  259. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseBulkSendSummary.vue.d.ts +8 -0
  260. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendFeeRow.vue.d.ts +8 -0
  261. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendInvoiceRow.vue.d.ts +8 -0
  262. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendInvoiceSummary.vue.d.ts +8 -0
  263. package/dist/modules/dunning-case/use-cases/send/components/DunningCaseSendRecipientAlert.vue.d.ts +7 -0
  264. package/dist/modules/dunning-case/use-cases/send/composables/dunningCaseReminderSubject.composable.d.ts +6 -0
  265. package/dist/modules/dunning-case/use-cases/send/composables/dunningCaseSendRecipient.composable.d.ts +16 -0
  266. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +10 -0
  267. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseSendDialog.vue.d.ts +12 -0
  268. package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.d.ts +16 -0
  269. package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.spec.d.ts +1 -0
  270. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderFeeNotice.vue.d.ts +3 -0
  271. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderPanel.vue.d.ts +12 -0
  272. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +26 -0
  273. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderTimeline.vue.d.ts +13 -0
  274. package/dist/modules/dunning-case/use-cases/settings/components/ReminderTemplateTabs.vue.d.ts +20 -0
  275. package/dist/modules/dunning-case/use-cases/settings/components/ReminderTemplatesPanel.vue.d.ts +24 -0
  276. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +41 -0
  277. package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsView.vue.d.ts +7 -0
  278. package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsViewDataProvider.vue.d.ts +3 -0
  279. package/dist/modules/invoice/actions/invoice.actions.d.ts +5 -0
  280. package/dist/modules/invoice/actions/invoiceNavigateToDetail.action.d.ts +1 -0
  281. package/dist/modules/invoice/api/invoiceIndexCache.util.d.ts +11 -0
  282. package/dist/modules/invoice/api/invoiceIndexCache.util.spec.d.ts +1 -0
  283. package/dist/modules/invoice/api/mutations/invoiceApplyDiscount.mutation.d.ts +9 -0
  284. package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +5 -0
  285. package/dist/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.d.ts +5 -0
  286. package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +5 -0
  287. package/dist/modules/invoice/api/mutations/invoiceCreate.mutation.d.ts +7 -0
  288. package/dist/modules/invoice/api/mutations/invoiceCreateCreditNote.mutation.d.ts +4 -0
  289. package/dist/modules/invoice/api/mutations/invoiceDelete.mutation.d.ts +4 -0
  290. package/dist/modules/invoice/api/mutations/invoiceDuplicate.mutation.d.ts +4 -0
  291. package/dist/modules/invoice/api/mutations/invoiceFinalize.mutation.d.ts +4 -0
  292. package/dist/modules/invoice/api/mutations/invoiceMarkAsDraft.mutation.d.ts +4 -0
  293. package/dist/modules/invoice/api/mutations/invoiceMarkAsPaid.mutation.d.ts +4 -0
  294. package/dist/modules/invoice/api/mutations/invoiceMarkAsProtested.mutation.d.ts +4 -0
  295. package/dist/modules/invoice/api/mutations/invoiceMarkAsReady.mutation.d.ts +4 -0
  296. package/dist/modules/invoice/api/mutations/invoicePaymentCreate.mutation.d.ts +11 -0
  297. package/dist/modules/invoice/api/mutations/invoicePaymentDelete.mutation.d.ts +6 -0
  298. package/dist/modules/invoice/api/mutations/invoiceSend.mutation.d.ts +4 -0
  299. package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +16 -0
  300. package/dist/modules/invoice/api/mutations/invoiceUpdateAttachments.mutation.d.ts +13 -0
  301. package/dist/modules/invoice/api/mutations/invoiceUpdateLines.mutation.d.ts +4 -0
  302. package/dist/modules/invoice/api/mutations/invoiceWithdrawProtest.mutation.d.ts +4 -0
  303. package/dist/modules/invoice/api/queries/invoiceActivityLogIndex.query.d.ts +3 -0
  304. package/dist/modules/invoice/api/queries/invoiceCustomerDetail.query.d.ts +6 -0
  305. package/dist/modules/invoice/api/queries/invoiceCustomerSearch.query.d.ts +7 -0
  306. package/dist/modules/invoice/api/queries/invoiceDetail.query.d.ts +3 -0
  307. package/dist/modules/invoice/api/queries/invoiceIndex.query.d.ts +3 -0
  308. package/dist/modules/invoice/api/queries/invoicePaymentIndex.query.d.ts +3 -0
  309. package/dist/modules/invoice/api/queries/invoicePublicDetail.query.d.ts +2 -0
  310. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +55 -0
  311. package/dist/modules/invoice/api/services/fileUpload.service.d.ts +9 -0
  312. package/dist/modules/invoice/api/services/fileUpload.service.spec.d.ts +1 -0
  313. package/dist/modules/invoice/api/services/invoice.service.d.ts +48 -0
  314. package/dist/modules/invoice/api/services/invoiceCustomer.service.d.ts +9 -0
  315. package/dist/modules/invoice/components/InvoiceDeliveryStatusBadge.vue.d.ts +10 -0
  316. package/dist/modules/invoice/components/InvoiceDisputedBadge.vue.d.ts +8 -0
  317. package/dist/modules/invoice/components/InvoiceOverdueBadge.vue.d.ts +8 -0
  318. package/dist/modules/invoice/components/InvoiceSettlementStatusBadge.vue.d.ts +18 -0
  319. package/dist/modules/invoice/components/InvoiceStatusBadge.vue.d.ts +10 -0
  320. package/dist/modules/invoice/components/form/InvoiceFormCustomerField.vue.d.ts +16 -0
  321. package/dist/modules/invoice/models/invoice/create/invoiceCreate.transformer.d.ts +5 -0
  322. package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.model.d.ts +9 -0
  323. package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.transformer.d.ts +5 -0
  324. package/dist/modules/invoice/models/invoice/create/invoiceCreateForm.model.d.ts +9 -0
  325. package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.model.d.ts +3 -0
  326. package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.transformer.d.ts +6 -0
  327. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +4 -0
  328. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +5 -0
  329. package/dist/modules/invoice/models/invoice/index/invoiceDateRange.model.d.ts +5 -0
  330. package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +27 -0
  331. package/dist/modules/invoice/models/invoice/index/invoiceIndex.transformer.d.ts +5 -0
  332. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +16 -0
  333. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.d.ts +7 -0
  334. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.spec.d.ts +1 -0
  335. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.model.d.ts +6 -0
  336. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.d.ts +6 -0
  337. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.spec.d.ts +1 -0
  338. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.model.d.ts +20 -0
  339. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.d.ts +11 -0
  340. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.spec.d.ts +1 -0
  341. package/dist/modules/invoice/models/invoice/invoiceStatus.model.d.ts +11 -0
  342. package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +7 -0
  343. package/dist/modules/invoice/models/invoice/payment/invoicePayment.model.d.ts +13 -0
  344. package/dist/modules/invoice/models/invoice/payment/invoicePayment.transformer.d.ts +5 -0
  345. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.d.ts +5 -0
  346. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreateForm.model.d.ts +11 -0
  347. package/dist/modules/invoice/models/invoice/payment/paymentUuid.model.d.ts +3 -0
  348. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +56 -0
  349. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +5 -0
  350. package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscount.transformer.d.ts +5 -0
  351. package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscountForm.model.d.ts +9 -0
  352. package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdate.transformer.d.ts +7 -0
  353. package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdateForm.model.d.ts +12 -0
  354. package/dist/modules/invoice/models/invoice/update/invoiceLineItemUpdateForm.model.d.ts +11 -0
  355. package/dist/modules/invoice/models/invoice/update/invoiceSubjectUpdateForm.model.d.ts +6 -0
  356. package/dist/modules/invoice/models/invoice/update/invoiceUpdate.transformer.d.ts +7 -0
  357. package/dist/modules/invoice/models/invoice/update/invoiceUpdateForm.model.d.ts +16 -0
  358. package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.model.d.ts +2 -0
  359. package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.transformer.d.ts +5 -0
  360. package/dist/modules/invoice/models/invoiceUuid.model.d.ts +3 -0
  361. package/dist/modules/invoice/routes/invoice.routes.d.ts +38 -0
  362. package/dist/modules/invoice/use-cases/create/dialogs/InvoiceCreateDialog.vue.d.ts +7 -0
  363. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +12 -0
  364. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailLinkedCreditNotesSection.vue.d.ts +7 -0
  365. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailRemarksSection.vue.d.ts +7 -0
  366. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebar.vue.d.ts +9 -0
  367. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarActivityTab.vue.d.ts +7 -0
  368. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarInfoTab.vue.d.ts +9 -0
  369. package/dist/modules/invoice/use-cases/detail/components/sidebar/invoiceDetailSidebarInfoTab.spec.d.ts +1 -0
  370. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentActionsCell.vue.d.ts +8 -0
  371. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentManualCell.vue.d.ts +7 -0
  372. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsSection.vue.d.ts +7 -0
  373. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsTableTextCell.vue.d.ts +6 -0
  374. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceLineItemsTableSection.vue.d.ts +9 -0
  375. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +9 -0
  376. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +6 -0
  377. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApplyDiscountDialog.vue.d.ts +11 -0
  378. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceDeleteDialog.vue.d.ts +13 -0
  379. package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentCreateDialog.vue.d.ts +11 -0
  380. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceUpdateDialog.vue.d.ts +13 -0
  381. package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailView.vue.d.ts +9 -0
  382. package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailViewDataProvider.vue.d.ts +7 -0
  383. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +22 -0
  384. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableAmountCell.vue.d.ts +7 -0
  385. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableCustomFieldCell.vue.d.ts +9 -0
  386. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableDueDateCell.vue.d.ts +8 -0
  387. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableIssuedDateCell.vue.d.ts +7 -0
  388. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableLifecycleCell.vue.d.ts +8 -0
  389. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableNameCell.vue.d.ts +9 -0
  390. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSelectionCell.vue.d.ts +10 -0
  391. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSentCell.vue.d.ts +7 -0
  392. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSequenceCell.vue.d.ts +6 -0
  393. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableStatusCell.vue.d.ts +7 -0
  394. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +15 -0
  395. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.spec.d.ts +1 -0
  396. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.d.ts +11 -0
  397. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.spec.d.ts +1 -0
  398. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +16 -0
  399. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +12 -0
  400. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +18 -0
  401. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewTableColumns.composable.d.ts +14 -0
  402. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +25 -0
  403. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkFinalizeDialog.vue.d.ts +12 -0
  404. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkMarkAsReadyDialog.vue.d.ts +12 -0
  405. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +12 -0
  406. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +29 -0
  407. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +25 -0
  408. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewViewDataProvider.vue.d.ts +16 -0
  409. package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +7 -0
  410. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfFooterSection.vue.d.ts +7 -0
  411. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfHeaderSection.vue.d.ts +8 -0
  412. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfLinesTable.vue.d.ts +8 -0
  413. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfSummarySection.vue.d.ts +8 -0
  414. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableCell.vue.d.ts +16 -0
  415. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableHeaderCell.vue.d.ts +6 -0
  416. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +3 -0
  417. package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +30 -0
  418. package/dist/modules/invoice/use-cases/pdf/components/invoicePdfLinesTable.spec.d.ts +1 -0
  419. package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +42 -0
  420. package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.spec.d.ts +1 -0
  421. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +7 -0
  422. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfViewDataProvider.vue.d.ts +7 -0
  423. package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicPdfViewDataProvider.vue.d.ts +3 -0
  424. package/dist/modules/settings/api/mutations/issuerSettingsUpdate.mutation.d.ts +25 -0
  425. package/dist/modules/settings/api/queries/issuerSettings.query.d.ts +1 -0
  426. package/dist/modules/settings/api/query-keys/issuerSettings.queryKeys.d.ts +6 -0
  427. package/dist/modules/settings/api/services/issuerSettings.service.d.ts +7 -0
  428. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +15 -0
  429. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.d.ts +8 -0
  430. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.spec.d.ts +1 -0
  431. package/dist/modules/settings/models/issuer-settings/issuerSettingsForm.model.d.ts +28 -0
  432. package/dist/modules/settings/routes/settings.routes.d.ts +23 -0
  433. package/dist/modules/settings/use-cases/overview/components/IssuerSettingsForm.vue.d.ts +7 -0
  434. package/dist/modules/settings/use-cases/overview/views/IssuerSettingsView.vue.d.ts +7 -0
  435. package/dist/modules/settings/use-cases/overview/views/IssuerSettingsViewDataProvider.vue.d.ts +3 -0
  436. package/dist/plainDate.transformer-BxvJpJOv.js +39 -0
  437. package/dist/reminderConfig.query-DzTN2AvU.js +316 -0
  438. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  439. package/dist/routes/invoicingPublicRoutes.composable.d.ts +9 -0
  440. package/dist/routes/invoicingRoutes.composable.d.ts +73 -0
  441. package/dist/routes/invoicingRoutes.composable.spec.d.ts +1 -0
  442. package/dist/routes/invoicingStandaloneRoutes.composable.d.ts +17 -0
  443. package/dist/src-BFgnUugN.js +123 -0
  444. package/dist/style.css +2 -1
  445. package/dist/types/apiError.type.d.ts +7 -0
  446. package/dist/types/query.type.d.ts +20 -0
  447. package/dist/types/queryKey.type.d.ts +8 -0
  448. package/dist/ui/DateRangeFilterButton.vue.d.ts +15 -0
  449. package/dist/ui/DisplayState.vue.d.ts +16 -0
  450. package/dist/ui/billing-document/BillingDocumentDetailHeaderSection.vue.d.ts +28 -0
  451. package/dist/ui/billing-document/BillingDocumentDetailLayout.vue.d.ts +22 -0
  452. package/dist/ui/billing-document/BillingDocumentDetailPage.vue.d.ts +24 -0
  453. package/dist/ui/billing-document/BillingDocumentDetailRemarksSection.vue.d.ts +10 -0
  454. package/dist/ui/billing-document/BillingDocumentDetailViewDataProvider.vue.d.ts +31 -0
  455. package/dist/ui/billing-document/BillingDocumentFinalizeDialog.vue.d.ts +11 -0
  456. package/dist/ui/billing-document/BillingDocumentHeaderActions.vue.d.ts +13 -0
  457. package/dist/ui/billing-document/BillingDocumentPdfViewer.vue.d.ts +7 -0
  458. package/dist/ui/billing-document/billingDocumentHeaderActions.types.d.ts +24 -0
  459. package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.d.ts +14 -0
  460. package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.spec.d.ts +1 -0
  461. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebar.vue.d.ts +20 -0
  462. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityContent.vue.d.ts +20 -0
  463. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityTab.vue.d.ts +3 -0
  464. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarAttachmentsTab.vue.d.ts +7 -0
  465. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarHeader.vue.d.ts +14 -0
  466. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarInfoItem.vue.d.ts +21 -0
  467. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarLayout.vue.d.ts +16 -0
  468. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarOriginalInvoiceSection.vue.d.ts +7 -0
  469. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarPartySection.vue.d.ts +12 -0
  470. package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +16 -0
  471. package/dist/ui/billing-document/table/BillingDocumentLineItemsBulkActionBar.vue.d.ts +3 -0
  472. package/dist/ui/billing-document/table/BillingDocumentLineItemsDragHandle.vue.d.ts +3 -0
  473. package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +16 -0
  474. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGrid.vue.d.ts +3 -0
  475. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +14 -0
  476. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableHeader.vue.d.ts +12 -0
  477. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableRow.vue.d.ts +10 -0
  478. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableSection.vue.d.ts +13 -0
  479. package/dist/ui/billing-document/table/BillingDocumentLineItemsTotals.vue.d.ts +7 -0
  480. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +2773 -0
  481. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.d.ts +22 -0
  482. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.spec.d.ts +1 -0
  483. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +484 -0
  484. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +41 -0
  485. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.spec.d.ts +1 -0
  486. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +41 -0
  487. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsSelection.composable.d.ts +16 -0
  488. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +13 -0
  489. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableCustomField.vue.d.ts +21 -0
  490. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +35 -0
  491. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableNumberField.vue.d.ts +26 -0
  492. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableSelectField.vue.d.ts +35 -0
  493. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableTextField.vue.d.ts +23 -0
  494. package/dist/ui/billing-document/table/field/billingDocumentLineItemsTableNumberField.spec.d.ts +1 -0
  495. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +90 -0
  496. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.spec.d.ts +1 -0
  497. package/dist/ui/billing-document/useBillingDocumentFinalizePreference.composable.d.ts +4 -0
  498. package/dist/ui/customer-invoice-list/CustomerInvoiceList.vue.d.ts +16 -0
  499. package/dist/ui/customer-invoice-list/CustomerInvoiceTable.vue.d.ts +6 -0
  500. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue.d.ts +8 -0
  501. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableInvoiceNumberCell.vue.d.ts +6 -0
  502. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableTextCell.vue.d.ts +6 -0
  503. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +3 -0
  504. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.d.ts +9 -0
  505. package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.d.ts +8 -0
  506. package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.spec.d.ts +1 -0
  507. package/dist/ui/dashboard/index.d.ts +7 -0
  508. package/dist/ui/data-provider/DataProvider.vue.d.ts +27 -0
  509. package/dist/ui/file-upload/InvoicingFileUploadProvider.vue.d.ts +13 -0
  510. package/dist/ui/file-upload/invoicingFileUpload.adapter.d.ts +2 -0
  511. package/dist/useCurrencyFormat.composable-MtZaqKnO.js +38 -0
  512. package/dist/utils/api.util.d.ts +5 -0
  513. package/dist/utils/context.util.d.ts +1 -0
  514. package/dist/utils/createComponent.d.ts +4 -0
  515. package/dist/utils/download.util.d.ts +3 -0
  516. package/dist/utils/formango.util.d.ts +8 -0
  517. package/dist/utils/image.util.d.ts +3 -0
  518. package/dist/utils/instant.transformer.d.ts +7 -0
  519. package/dist/utils/map.util.d.ts +2 -0
  520. package/dist/utils/monetary/currency.model.d.ts +180 -0
  521. package/dist/utils/monetary/monetary.model.d.ts +6 -0
  522. package/dist/utils/monetary/monetary.util.d.ts +8 -0
  523. package/dist/utils/monetary/monetaryDto.model.d.ts +9 -0
  524. package/dist/utils/number.util.d.ts +4 -0
  525. package/dist/utils/percentage.util.d.ts +13 -0
  526. package/dist/utils/plainDate.transformer.d.ts +7 -0
  527. package/dist/utils/search.util.d.ts +3 -0
  528. package/package.json +26 -25
  529. package/dist/AddOpenBoundaryIcon-LcnpqCb7.js +0 -28
  530. package/dist/AirlineIcon-29r8leGB.js +0 -31
  531. package/dist/AirplaneIcon-B9jZP9r0.js +0 -21
  532. package/dist/AirportIcon-C4PxDtDr.js +0 -18
  533. package/dist/AlertTriangleIcon-BD58hKRP.js +0 -24
  534. package/dist/AllocationsIcon-BQan6NWO.js +0 -18
  535. package/dist/ArrowNarrowRightIcon-BA1c_QRh.js +0 -24
  536. package/dist/AssetIcon-DnK5wAyN.js +0 -18
  537. package/dist/BarChartIcon-CKrBCh6x.js +0 -24
  538. package/dist/BellIcon-BT2cGatU.js +0 -23
  539. package/dist/BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-C5j9jPsk.js +0 -5374
  540. package/dist/BuildingIcon-CUOTWDHc.js +0 -24
  541. package/dist/ChargerIcon-BhrjeyKv.js +0 -18
  542. package/dist/ChevronDownIcon-DljNUnFk.js +0 -24
  543. package/dist/ChevronUpIcon-CoxFAIp_.js +0 -24
  544. package/dist/ClockIcon-CTnAGb9i.js +0 -24
  545. package/dist/ClockSnoozeIcon-BRoTw_Vn.js +0 -24
  546. package/dist/CopyIcon-JiNI8Dfg.js +0 -21
  547. package/dist/CreditNoteDetailViewDataProvider-Cy1j_m3I.js +0 -871
  548. package/dist/CreditNotePdfViewDataProvider-B7-HFIKD.js +0 -36
  549. package/dist/DownloadCloudIcon-DKHwnpvk.js +0 -24
  550. package/dist/EditIcon-DtGrCf8G.js +0 -23
  551. package/dist/EraserIcon-Cb0Ep_Yq.js +0 -24
  552. package/dist/FileIcon-C4wGvJpt.js +0 -26
  553. package/dist/FilterLinesIcon-B7wPXDy1.js +0 -24
  554. package/dist/GlobeIcon-B-Idmck1.js +0 -24
  555. package/dist/HelpIcon-CdKWaEaB.js +0 -26
  556. package/dist/HourGlassIcon-CQLPiXVW.js +0 -24
  557. package/dist/InfoCircleIcon-5gjQoNog.js +0 -24
  558. package/dist/InvoiceDetailViewDataProvider-4lGG7Wtq.js +0 -1918
  559. package/dist/InvoiceOverviewView-Boqvwabl.js +0 -4
  560. package/dist/InvoicePdfViewDataProvider-CJ3fL71W.js +0 -36
  561. package/dist/InvoicePublicPdfViewDataProvider-CzgGk_V5.js +0 -4
  562. package/dist/IssuerSettingsViewDataProvider-TM-bmC55.js +0 -249
  563. package/dist/KeyboardIcon-DlAp0VUG.js +0 -24
  564. package/dist/LinkExternalIcon-BPO_c7Ke.js +0 -24
  565. package/dist/LinkIcon-9M0uzW4a.js +0 -24
  566. package/dist/MarkerIcon-pId64QTW.js +0 -31
  567. package/dist/MobileBatteryIcon-Dq6Vh0d5.js +0 -18
  568. package/dist/MonitorIcon-PsvDF5LA.js +0 -24
  569. package/dist/NotificationIcon-C-mhyH5v.js +0 -21
  570. package/dist/ParkingIcon-BD0RoGv5.js +0 -29
  571. package/dist/PlanningIcon-BBIuwW2I.js +0 -18
  572. package/dist/PreferenceIcon-zR5mjygu.js +0 -24
  573. package/dist/ReceiptCheckIcon-CHEEnJEK.js +0 -24
  574. package/dist/RefreshIcon-CfjOS7Vw.js +0 -24
  575. package/dist/RemoveOpenBoundaryIcon-CEbBT9CX.js +0 -31
  576. package/dist/RewindIcon-9PFea9gA.js +0 -24
  577. package/dist/SettingsIcon-CSIbrANE.js +0 -28
  578. package/dist/ShieldIcon-CU4mxKxP.js +0 -21
  579. package/dist/ShieldOffIcon-D6_I1MKn.js +0 -24
  580. package/dist/SignOutIcon-ClrPsj39.js +0 -23
  581. package/dist/SlashCircleIcon-DBy7XjBm.js +0 -24
  582. package/dist/StandIcon-vV8J4-3H.js +0 -24
  583. package/dist/StarsIcon-RO6wNbsC.js +0 -26
  584. package/dist/StopwatchIcon-DubYBmeN.js +0 -24
  585. package/dist/TargetIcon-BwVw7rVC.js +0 -24
  586. package/dist/ThreeDotsIcon-BvRfi-Lm.js +0 -32
  587. package/dist/ToolIcon-Dw-vgiL1.js +0 -24
  588. package/dist/TrashIcon-Dh6ASxXd.js +0 -21
  589. package/dist/TurnaroundIcon-Hn5nPhvb.js +0 -30
  590. package/dist/UploadCloudIcon-BV7b8ygQ.js +0 -24
  591. package/dist/UserIcon-BRrPmqkm.js +0 -24
  592. package/dist/UsersIcon-fORcf4YV.js +0 -24
  593. package/dist/VerifiedIcon-BtqxtP6h.js +0 -26
  594. package/dist/WifiIcon-Bd9TvVVJ.js +0 -24
  595. package/dist/WifiOffIcon-CpATjY4j.js +0 -24
  596. package/dist/ZapIcon-BG6cVpfC.js +0 -24
  597. package/dist/ZoomInIcon-CQ_R4Ydf.js +0 -24
  598. package/dist/ZoomOutIcon-DlcCdCda.js +0 -24
  599. package/dist/creditNoteDetail.query-Dj6oKRTO.js +0 -159
  600. package/dist/index-CYV9qUlg.js +0 -23375
  601. package/dist/index-DCE3vzbe.js +0 -7
  602. package/dist/invoiceDetail.query-Wtw3VSKd.js +0 -13
  603. package/dist/issuerSettings.query-H5-5e_KF.js +0 -130
  604. package/dist/style.d.ts +0 -1
  605. /package/dist/{index.css → DunningCaseReminderPdfViewDataProvider.css} +0 -0
@@ -0,0 +1,1613 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import "./api.util-Dm_TQedZ.js";
3
+ import { C as t, a as n, c as r, f as i, h as a, m as o, o as s, p as c, s as l, t as u, y as d } from "./documentTitle.composable-CeaFddr1.js";
4
+ import { n as f, r as p, t as m } from "./useCurrencyFormat.composable-MtZaqKnO.js";
5
+ import { a as h, c as g, d as _, f as v, i as y, l as b, n as ee, o as te, p as ne, r as x, s as re, t as S, u as ie } from "./dist-DJ8yJcb9.js";
6
+ import { t as ae } from "./src-BFgnUugN.js";
7
+ import { t as C } from "./invoice.service-ChHEtXBA.js";
8
+ import { t as oe } from "./plainDate.transformer-BxvJpJOv.js";
9
+ import { a as se } from "./billingDocumentDetail.transformer-zMTbka5p.js";
10
+ import { K as w, L as ce, R as le, U as T, nt as E, w as ue } from "./dist-DP8KNFVD.js";
11
+ import { n as D } from "./dist-YTXTCfo1.js";
12
+ import { i as de, n as O, r as fe, t as pe } from "./CustomFieldValueText-DDQq-975.js";
13
+ import { t as me } from "./customerUuid.model-GUFYq3O2.js";
14
+ import { t as he } from "./DataProvider-CfHLB3rH.js";
15
+ import { t as ge } from "./formango.util-D5c2ql--.js";
16
+ import { c as _e, l as ve, n as ye, o as be, s as xe, t as Se, u as Ce } from "./invoiceDeliveryStatus.util-BsA-MlA3.js";
17
+ import { t as we } from "./issuerSettings.query-RqtrZFaB.js";
18
+ import { t as Te } from "./dashboard-BaWGNEek.js";
19
+ import { RouterLink as Ee, useRouter as De } from "vue-router";
20
+ import { z as k } from "zod";
21
+ import { useI18n as A } from "vue-i18n";
22
+ import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createTextVNode as Oe, createVNode as L, defineComponent as R, isRef as ke, mergeModels as Ae, mergeProps as je, normalizeClass as Me, onMounted as Ne, openBlock as z, ref as B, renderList as Pe, renderSlot as Fe, toDisplayString as V, unref as H, useModel as Ie, watch as Le, withCtx as U } from "vue";
23
+ import { QueryClient as Re, getTanstackQueryClient as ze, useMutation as W, useOffsetInfiniteQuery as Be } from "@wisemen/vue-core-api-utils";
24
+ import { useLocalStorage as Ve, watchDebounced as He } from "@vueuse/core";
25
+ import { Temporal as Ue } from "temporal-polyfill";
26
+ import { UIAutocomplete as We, UIBadge as Ge, UIButton as G, UICheckbox as Ke, UIColumnLayout as K, UIDashboardPage as qe, UIDashboardPageActions as Je, UIDateRangePicker as Ye, UIDialog as Xe, UIDialogBody as Ze, UIDialogFooter as Qe, UIDialogFooterCancel as $e, UIDialogFooterPrimary as et, UIDialogFooterSubmit as tt, UIDialogHeader as nt, UIFormDialog as rt, UIPopover as it, UIRowLayout as q, UITable as at, UITableCell as J, UITableCellInteractiveElement as ot, UITableCellText as st, UITabs as ct, UITabsItem as lt, UITabsList as ut, UIText as dt, UITextField as ft, createAutocompleteOptions as pt, createComponent as Y, defineTableColumns as mt, useOverlay as ht, useTableCustomizeColumns as gt, useToast as X } from "@wisemen/vue-core-design-system";
27
+ import { useForm as _t } from "formango";
28
+ import { useRouteQuery as vt } from "@vueuse/router";
29
+ //#region src/modules/invoice/api/queries/invoiceIndex.query.ts
30
+ function yt(e) {
31
+ let t = M(() => ({
32
+ filters: e?.params?.filters?.value,
33
+ search: e?.params?.search?.value,
34
+ sort: e?.params?.sort?.value ?? []
35
+ }));
36
+ return Be("invoiceIndex", {
37
+ params: { queryParams: t },
38
+ queryFn: (t) => C.getAll({
39
+ filters: e?.params?.filters?.value,
40
+ pagination: t,
41
+ search: e?.params?.search?.value,
42
+ sort: e?.params?.sort?.value ?? []
43
+ })
44
+ });
45
+ }
46
+ //#endregion
47
+ //#region src/modules/invoice/api/mutations/invoiceCreate.mutation.ts
48
+ function bt() {
49
+ return W({
50
+ queryFn: (e) => C.create(e.body),
51
+ queryKeysToInvalidate: { invoiceIndex: {} }
52
+ });
53
+ }
54
+ //#endregion
55
+ //#region src/modules/invoice/api/queries/invoiceCustomerSearch.query.ts
56
+ function xt(e) {
57
+ let t = M(() => ({ search: e.params.search?.value }));
58
+ return Be("invoiceCustomerSearch", {
59
+ params: { queryParams: t },
60
+ queryFn: (t) => Ce.getAll({
61
+ pagination: t,
62
+ search: e.params.search?.value ?? ""
63
+ })
64
+ });
65
+ }
66
+ //#endregion
67
+ //#region src/modules/invoice/components/form/InvoiceFormCustomerField.vue
68
+ var St = /* @__PURE__ */ R({
69
+ __name: "InvoiceFormCustomerField",
70
+ props: {
71
+ isLoading: { type: Boolean },
72
+ customers: {},
73
+ field: {}
74
+ },
75
+ emits: ["nextPage", "updateSearch"],
76
+ setup(e, { emit: t }) {
77
+ let n = e, i = t, a = A(), o = M(() => pt(n.customers));
78
+ function s(e) {
79
+ return e.name;
80
+ }
81
+ function c(e) {
82
+ switch (e) {
83
+ case r.BUSINESS: return a.t("wise_invoicing.customer.type.business");
84
+ case r.INDIVIDUAL: return a.t("wise_invoicing.customer.type.individual");
85
+ }
86
+ return "-";
87
+ }
88
+ function l(e) {
89
+ return { description: {
90
+ layout: "block",
91
+ value: c(e.type)
92
+ } };
93
+ }
94
+ function u(e) {
95
+ i("updateSearch", e);
96
+ }
97
+ function d(e) {
98
+ n.field.setValue(e), e !== null && i("updateSearch", "");
99
+ }
100
+ return (e, t) => (z(), N(H(We), je(H(ge)(n.field), {
101
+ "display-fn": s,
102
+ "get-item-config": l,
103
+ "is-loading": n.isLoading,
104
+ "is-required": !0,
105
+ items: o.value,
106
+ label: H(a).t("wise_invoicing.invoice.create.fields.customer"),
107
+ placeholder: H(a).t("component.autocomplete.search_placeholder"),
108
+ "search-mode": "remote",
109
+ onNextPage: t[0] ||= (e) => i("nextPage"),
110
+ "onUpdate:modelValue": d,
111
+ "onUpdate:search": u
112
+ }), null, 16, [
113
+ "is-loading",
114
+ "items",
115
+ "label",
116
+ "placeholder"
117
+ ]));
118
+ }
119
+ }), Ct = k.enum(r), wt = k.object({
120
+ uuid: me,
121
+ name: k.string().min(1),
122
+ type: Ct
123
+ }), Tt = k.object({ customer: wt }), Et = /* @__PURE__ */ R({
124
+ __name: "InvoiceCreateDialog",
125
+ emits: ["close"],
126
+ setup(e, { emit: t }) {
127
+ let n = t, r = A(), i = X(), a = De(), o = bt(), s = ne({ debounceMs: 250 }), c = xt({ params: { search: s.debouncedSearch } }), l = M(() => c.result.value.match({
128
+ err: () => [],
129
+ loading: () => [],
130
+ ok: (e) => e.data
131
+ })), u = _t({
132
+ initialState: { customer: null },
133
+ schema: Tt,
134
+ onSubmit: async (e) => {
135
+ let t = await o.execute({ body: e });
136
+ if (t.isErr()) {
137
+ i.apiError(t.error);
138
+ return;
139
+ }
140
+ n("close"), await a.push({
141
+ name: "invoicing-invoice-detail",
142
+ params: { invoiceUuid: t.value }
143
+ });
144
+ }
145
+ }), d = u.register("customer");
146
+ function f(e) {
147
+ s.updateSearch(e);
148
+ }
149
+ return (e, t) => (z(), N(H(rt), {
150
+ form: H(u),
151
+ size: "xs",
152
+ onClose: t[0] ||= (e) => n("close")
153
+ }, {
154
+ default: U(() => [
155
+ L(H(nt), {
156
+ title: H(r).t("wise_invoicing.invoice.create.modal_title"),
157
+ description: H(r).t("wise_invoicing.invoice.create.modal_description"),
158
+ icon: H(ce),
159
+ "is-description-visible": !0
160
+ }, null, 8, [
161
+ "title",
162
+ "description",
163
+ "icon"
164
+ ]),
165
+ L(H(Ze), null, {
166
+ default: U(() => [L(St, {
167
+ customers: l.value,
168
+ field: H(d),
169
+ "is-loading": H(c).isLoading.value,
170
+ onNextPage: H(c).fetchNextPage,
171
+ onUpdateSearch: f
172
+ }, null, 8, [
173
+ "customers",
174
+ "field",
175
+ "is-loading",
176
+ "onNextPage"
177
+ ])]),
178
+ _: 1
179
+ }),
180
+ L(H(Qe), null, {
181
+ right: U(() => [L(H($e), { label: "cancel" }), L(H(tt), { label: H(r).t("wise_invoicing.invoice.create.confirm") }, null, 8, ["label"])]),
182
+ _: 1
183
+ })
184
+ ]),
185
+ _: 1
186
+ }, 8, ["form"]));
187
+ }
188
+ }), Dt = {
189
+ key: 0,
190
+ class: "pointer-events-none fixed inset-x-0 bottom-4 z-20 flex justify-center px-lg"
191
+ }, Ot = { class: "text-sm text-secondary" }, kt = /* @__PURE__ */ R({
192
+ __name: "InvoiceOverviewBulkActionBar",
193
+ props: {
194
+ canFinalize: { type: Boolean },
195
+ canMarkAsReady: { type: Boolean },
196
+ canSelectAll: { type: Boolean },
197
+ canSend: { type: Boolean },
198
+ selectedCount: {}
199
+ },
200
+ emits: [
201
+ "cancel",
202
+ "finalize",
203
+ "markAsReady",
204
+ "selectAll",
205
+ "send"
206
+ ],
207
+ setup(e, { emit: t }) {
208
+ let n = e, r = t, i = A();
209
+ return (e, t) => n.selectedCount > 0 ? (z(), F("div", Dt, [L(H(q), { class: "pointer-events-auto rounded-xl border border-secondary bg-primary px-lg py-sm shadow-lg" }, {
210
+ default: U(() => [
211
+ I("span", Ot, V(H(i).t("wise_invoicing.invoice.overview.bulk.selected_documents", { count: n.selectedCount })), 1),
212
+ n.canMarkAsReady ? (z(), N(H(G), {
213
+ key: 0,
214
+ label: H(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.action"),
215
+ onClick: t[0] ||= (e) => r("markAsReady")
216
+ }, null, 8, ["label"])) : P("", !0),
217
+ n.canFinalize ? (z(), N(H(G), {
218
+ key: 1,
219
+ label: H(i).t("wise_invoicing.invoice.overview.bulk.finalize.action"),
220
+ onClick: t[1] ||= (e) => r("finalize")
221
+ }, null, 8, ["label"])) : P("", !0),
222
+ n.canSend ? (z(), N(H(G), {
223
+ key: 2,
224
+ label: H(i).t("wise_invoicing.invoice.overview.bulk.send.action"),
225
+ onClick: t[2] ||= (e) => r("send")
226
+ }, null, 8, ["label"])) : P("", !0),
227
+ n.canSelectAll ? (z(), N(H(G), {
228
+ key: 3,
229
+ label: H(i).t("wise_invoicing.invoice.overview.bulk.select_all"),
230
+ variant: "secondary",
231
+ onClick: t[3] ||= (e) => r("selectAll")
232
+ }, null, 8, ["label"])) : P("", !0),
233
+ L(H(G), {
234
+ label: H(i).t("wise_invoicing.invoice.overview.bulk.cancel"),
235
+ variant: "tertiary",
236
+ onClick: t[4] ||= (e) => r("cancel")
237
+ }, null, 8, ["label"])
238
+ ]),
239
+ _: 1
240
+ })])) : P("", !0);
241
+ }
242
+ });
243
+ //#endregion
244
+ //#region src/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.ts
245
+ function At(e) {
246
+ let t = B(null), n = M(() => e.selectedInvoices().filter((e) => e.status === o.FINALIZED).map((e) => e.uuid)), r = M(() => n.value.toSorted().join(","));
247
+ return He(r, async (e) => {
248
+ let i = n.value;
249
+ if (i.length === 0) {
250
+ t.value = null;
251
+ return;
252
+ }
253
+ let a = await C.previewBulkSend(i);
254
+ r.value === e && (t.value = a.isErr() ? i.length : a.value.meta.processed);
255
+ }, { debounce: 300 }), { canSend: M(() => n.value.length > 0 && (t.value ?? 0) > 0) };
256
+ }
257
+ //#endregion
258
+ //#region src/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.ts
259
+ function Z(e) {
260
+ return Array.isArray(e) && e.every((e) => typeof e == "string");
261
+ }
262
+ function jt(e, t) {
263
+ try {
264
+ switch (e) {
265
+ case l.DATE: return oe.toDto(oe.fromDto(t));
266
+ case l.TIMESTAMP: return se.toDto(se.fromDto(t));
267
+ default: return t;
268
+ }
269
+ } catch {
270
+ return null;
271
+ }
272
+ }
273
+ var Q = class {
274
+ static getFreeformOptions(e, t) {
275
+ let n = t.trim();
276
+ if (n.length === 0) return [];
277
+ let r = jt(e.type, n);
278
+ return r === null ? [] : [r];
279
+ }
280
+ static getKey(e) {
281
+ return `custom-field-${e.uuid}`;
282
+ }
283
+ static getMajorUnitRule(e, t, n) {
284
+ let r = this.getRuleNumber(e, t);
285
+ return r === void 0 || n === void 0 ? void 0 : m(r, n);
286
+ }
287
+ static getMonetaryCurrency(e, t) {
288
+ let r = e.rules?.currencies;
289
+ if (!Array.isArray(r)) return t;
290
+ let i = new Set(Object.values(n)), a = r.filter((e) => typeof e == "string" && i.has(e));
291
+ return a.includes(t) ? t : a[0] ?? t;
292
+ }
293
+ static getRuleNumber(e, t) {
294
+ let n = e.rules?.[t];
295
+ return typeof n == "number" ? n : void 0;
296
+ }
297
+ static toFilters(e, t, n) {
298
+ switch (e.type) {
299
+ case l.BOOLEAN: return typeof t == "boolean" ? [{
300
+ definitionUuid: e.uuid,
301
+ type: l.BOOLEAN,
302
+ value: t
303
+ }] : [];
304
+ case l.MONETARY: {
305
+ let r = this.getRuleNumber(e, "precision"), i = this.getMonetaryCurrency(e, n);
306
+ return typeof t == "number" && r !== void 0 ? [{
307
+ definitionUuid: e.uuid,
308
+ type: l.MONETARY,
309
+ value: {
310
+ amount: f(t, r),
311
+ currency: i,
312
+ precision: r
313
+ }
314
+ }] : [];
315
+ }
316
+ case l.NUMBER: return typeof t == "number" ? [{
317
+ definitionUuid: e.uuid,
318
+ type: l.NUMBER,
319
+ value: t
320
+ }] : [];
321
+ case l.MULTI_SELECT: return Z(t) && t.length > 0 ? [{
322
+ definitionUuid: e.uuid,
323
+ type: l.MULTI_SELECT,
324
+ value: t
325
+ }] : [];
326
+ case l.TEXT_ARRAY: return Z(t) && t.length > 0 ? [{
327
+ definitionUuid: e.uuid,
328
+ type: l.TEXT_ARRAY,
329
+ value: t
330
+ }] : [];
331
+ case l.DATE: return Z(t) ? t.map((t) => ({
332
+ definitionUuid: e.uuid,
333
+ type: l.DATE,
334
+ value: t
335
+ })) : [];
336
+ case l.SINGLE_SELECT: return Z(t) ? t.map((t) => ({
337
+ definitionUuid: e.uuid,
338
+ type: l.SINGLE_SELECT,
339
+ value: t
340
+ })) : [];
341
+ case l.TEXT: return Z(t) ? t.map((t) => ({
342
+ definitionUuid: e.uuid,
343
+ type: l.TEXT,
344
+ value: t
345
+ })) : [];
346
+ case l.TIMESTAMP: return Z(t) ? t.map((t) => ({
347
+ definitionUuid: e.uuid,
348
+ type: l.TIMESTAMP,
349
+ value: t
350
+ })) : [];
351
+ default: throw TypeError("Unsupported custom field definition type");
352
+ }
353
+ }
354
+ };
355
+ //#endregion
356
+ //#region src/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.ts
357
+ function Mt(e) {
358
+ let t = A(), n = ne({ debounceMs: 250 }), r = xt({ params: { search: n.debouncedSearch } }), i = M(() => r.result.value.match({
359
+ err: () => [],
360
+ loading: () => [],
361
+ ok: (e) => e.data
362
+ })), a = e.customFieldDefinitions.map((n) => {
363
+ let r = Q.getKey(n), i = O.getLabel(n, t.locale.value);
364
+ switch (n.type) {
365
+ case l.BOOLEAN: return g({
366
+ entityLabel: i,
367
+ key: r,
368
+ label: i
369
+ });
370
+ case l.MONETARY: {
371
+ let t = Q.getRuleNumber(n, "precision"), a = Q.getMonetaryCurrency(n, e.currency);
372
+ return _({
373
+ customUnit: a,
374
+ defaultValue: {
375
+ operator: ie.EQUALS,
376
+ value: null
377
+ },
378
+ disableOperators: !0,
379
+ key: r,
380
+ label: i,
381
+ max: Q.getMajorUnitRule(n, "max", t),
382
+ min: Q.getMajorUnitRule(n, "min", t),
383
+ step: t === void 0 ? void 0 : 1 / 10 ** t
384
+ });
385
+ }
386
+ case l.NUMBER: return _({
387
+ defaultValue: {
388
+ operator: ie.EQUALS,
389
+ value: null
390
+ },
391
+ disableOperators: !0,
392
+ key: r,
393
+ label: i,
394
+ max: Q.getRuleNumber(n, "max"),
395
+ min: Q.getRuleNumber(n, "min")
396
+ });
397
+ case l.MULTI_SELECT:
398
+ case l.SINGLE_SELECT: return h({
399
+ defaultValue: {
400
+ operator: x.INCLUDES,
401
+ value: []
402
+ },
403
+ disableOperators: !0,
404
+ displayFn: (e) => O.getChoiceLabel(n, e, t.locale.value),
405
+ key: r,
406
+ label: i,
407
+ options: () => n.choices.map((e) => e.value)
408
+ });
409
+ case l.DATE:
410
+ case l.TEXT:
411
+ case l.TEXT_ARRAY:
412
+ case l.TIMESTAMP: return v({
413
+ defaultValue: {
414
+ operator: x.INCLUDES,
415
+ value: []
416
+ },
417
+ disableOperators: !0,
418
+ displayFn: (e) => e,
419
+ key: r,
420
+ label: i,
421
+ options: (e) => Promise.resolve(Q.getFreeformOptions(n, e))
422
+ });
423
+ default: throw TypeError("Unsupported custom field definition type");
424
+ }
425
+ }), o = y({
426
+ actionGroup: { name: "invoices" },
427
+ filters: [
428
+ v({
429
+ defaultValue: {
430
+ operator: x.INCLUDES,
431
+ value: []
432
+ },
433
+ disableOperators: !0,
434
+ displayFn: (e) => i.value.find((t) => t.uuid === e)?.name ?? e,
435
+ key: "customerUuids",
436
+ label: t.t("wise_invoicing.invoice.overview.filters.customer"),
437
+ options: async (e) => (n.updateSearch(e), await new Promise((e) => setTimeout(e, 0)), i.value.map((e) => e.uuid))
438
+ }),
439
+ b({
440
+ defaultValue: {
441
+ operator: S.IS_BETWEEN,
442
+ value: {
443
+ from: null,
444
+ until: null
445
+ }
446
+ },
447
+ disableOperators: !0,
448
+ key: "dueOnRange",
449
+ label: t.t("wise_invoicing.invoice.overview.filters.due_on")
450
+ }),
451
+ h({
452
+ defaultValue: {
453
+ operator: x.INCLUDES,
454
+ value: []
455
+ },
456
+ disableOperators: !0,
457
+ displayFn: (e) => t.t(de.getLifecycleMetadata(e).translationKey),
458
+ key: "lifecycleStatuses",
459
+ label: t.t("wise_invoicing.invoice.overview.filters.lifecycle"),
460
+ options: () => Object.values(c)
461
+ }),
462
+ ...a
463
+ ]
464
+ }), s = M(() => {
465
+ let e = o.values.value.customerUuids.value;
466
+ return e?.length ? e : null;
467
+ }), u = M(() => {
468
+ let e = o.values.value.dueOnRange.value;
469
+ return e.from === null || e.until === null ? null : e;
470
+ });
471
+ return {
472
+ customerUuids: s,
473
+ customFields: M(() => {
474
+ let t = o.values.value;
475
+ return e.customFieldDefinitions.flatMap((n) => {
476
+ let r = t[Q.getKey(n)], i = typeof r == "object" && r && "value" in r ? r.value : r;
477
+ return Q.toFilters(n, i, e.currency);
478
+ });
479
+ }),
480
+ dueOnRange: u,
481
+ filters: o,
482
+ lifecycleStatuses: M(() => {
483
+ let e = o.values.value.lifecycleStatuses.value;
484
+ return e?.length ? e : null;
485
+ })
486
+ };
487
+ }
488
+ //#endregion
489
+ //#region src/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.ts
490
+ var Nt = {
491
+ awaiting_payment: {
492
+ settlementStatuses: [d.UNPAID, d.PARTIALLY_PAID],
493
+ statuses: [o.SENT]
494
+ },
495
+ credited: { settlementStatuses: [d.CREDITED] },
496
+ overdue: { isOverdue: !0 },
497
+ paid: { settlementStatuses: [d.PAID, d.OVERPAID] },
498
+ settled: { settlementStatuses: [d.SETTLED] }
499
+ };
500
+ function Pt() {
501
+ let e = A();
502
+ return {
503
+ getFilters: (e) => e === "all" ? {} : Nt[e],
504
+ tabs: M(() => [
505
+ {
506
+ key: "all",
507
+ label: e.t("wise_invoicing.invoice.overview.tabs.all")
508
+ },
509
+ {
510
+ key: "awaiting_payment",
511
+ label: e.t("wise_invoicing.invoice.overview.tabs.awaiting_payment")
512
+ },
513
+ {
514
+ key: "paid",
515
+ label: e.t("wise_invoicing.invoice.overview.tabs.paid")
516
+ },
517
+ {
518
+ key: "overdue",
519
+ label: e.t("wise_invoicing.invoice.overview.tabs.overdue")
520
+ },
521
+ {
522
+ key: "credited",
523
+ label: e.t("wise_invoicing.invoice.overview.tabs.credited")
524
+ },
525
+ {
526
+ key: "settled",
527
+ label: e.t("wise_invoicing.invoice.overview.tabs.settled")
528
+ }
529
+ ])
530
+ };
531
+ }
532
+ //#endregion
533
+ //#region src/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.ts
534
+ function Ft(e) {
535
+ let t = B([]), n = M(() => {
536
+ let n = new Set(t.value);
537
+ return e.rows().filter((e) => n.has(e.uuid));
538
+ }), r = M(() => {
539
+ let t = e.rows();
540
+ return t.length > 0 && n.value.length === t.length;
541
+ }), i = M(() => e.rows().length > 0 && !r.value), a = M(() => n.value.length);
542
+ function o(e) {
543
+ return t.value.includes(e);
544
+ }
545
+ function s() {
546
+ let n = new Set(e.rows().map((e) => e.uuid));
547
+ t.value = t.value.filter((e) => n.has(e));
548
+ }
549
+ function c(e) {
550
+ if (o(e)) {
551
+ t.value = t.value.filter((t) => t !== e);
552
+ return;
553
+ }
554
+ t.value = [...t.value, e];
555
+ }
556
+ function l() {
557
+ t.value = e.rows().map((e) => e.uuid);
558
+ }
559
+ function u() {
560
+ t.value = [];
561
+ }
562
+ return {
563
+ isSelected: o,
564
+ allSelected: r,
565
+ canSelectAll: i,
566
+ clearSelection: u,
567
+ selectAll: l,
568
+ selectedCount: a,
569
+ selectedIds: t,
570
+ selectedInvoices: n,
571
+ syncSelection: s,
572
+ toggleRow: c
573
+ };
574
+ }
575
+ //#endregion
576
+ //#region src/modules/invoice/use-cases/overview/components/InvoiceOverviewTableAmountCell.vue?vue&type=script&setup=true&lang.ts
577
+ var It = { class: "font-medium text-secondary" }, Lt = ["title"], Rt = /* @__PURE__ */ R({
578
+ __name: "InvoiceOverviewTableAmountCell",
579
+ props: { value: {} },
580
+ setup(e) {
581
+ let t = e, n = A(), r = p(), i = M(() => r.formatMonetary(t.value.total)), a = M(() => {
582
+ let e = ve.getSubtextParts({
583
+ balanceDueAmount: t.value.balanceDueAmount,
584
+ grossAmount: t.value.grossAmount,
585
+ paidAmount: t.value.paidAmount,
586
+ settlementStatus: t.value.settlementStatus,
587
+ totalCreditedAmount: t.value.totalCreditedAmount
588
+ });
589
+ return e == null ? null : e.paidAmount !== null && e.overpaidAmount !== null ? n.t("wise_invoicing.invoice.status_subtext.paid_overpaid", {
590
+ overpaidAmount: r.formatMonetary(e.overpaidAmount),
591
+ paidAmount: r.formatMonetary(e.paidAmount)
592
+ }) : e.paidAmount !== null && e.creditedAmount !== null ? n.t("wise_invoicing.invoice.status_subtext.paid_credited", {
593
+ creditedAmount: r.formatMonetary(e.creditedAmount),
594
+ paidAmount: r.formatMonetary(e.paidAmount)
595
+ }) : e.paidAmount === null ? e.creditedAmount === null ? null : n.t("wise_invoicing.invoice.status_subtext.credited", { creditedAmount: r.formatMonetary(e.creditedAmount) }) : n.t("wise_invoicing.invoice.status_subtext.paid", { paidAmount: r.formatMonetary(e.paidAmount) });
596
+ });
597
+ return (e, t) => (z(), N(H(J), null, {
598
+ default: U(() => [L(H(K), {
599
+ gap: "xxs",
600
+ class: "text-sm/tight"
601
+ }, {
602
+ default: U(() => [I("span", It, V(i.value), 1), a.value === null ? P("", !0) : (z(), F("span", {
603
+ key: 0,
604
+ title: a.value,
605
+ class: "truncate text-xs text-secondary"
606
+ }, V(a.value), 9, Lt))]),
607
+ _: 1
608
+ })]),
609
+ _: 1
610
+ }));
611
+ }
612
+ }), zt = /* @__PURE__ */ R({
613
+ __name: "InvoiceOverviewTableCustomFieldCell",
614
+ props: {
615
+ definition: {},
616
+ value: {}
617
+ },
618
+ setup(e) {
619
+ return (t, n) => (z(), N(H(J), null, {
620
+ default: U(() => [e.value === void 0 ? (z(), N(H(dt), {
621
+ key: 1,
622
+ text: "-",
623
+ class: "text-sm/5 text-primary"
624
+ })) : (z(), N(pe, {
625
+ key: 0,
626
+ definition: e.definition,
627
+ value: e.value,
628
+ size: "md"
629
+ }, null, 8, ["definition", "value"]))]),
630
+ _: 1
631
+ }));
632
+ }
633
+ }), Bt = /* @__PURE__ */ R({
634
+ __name: "InvoiceOverviewTableDueDateCell",
635
+ props: {
636
+ isOverdue: { type: Boolean },
637
+ value: {}
638
+ },
639
+ setup(e) {
640
+ let t = e, n = D(), r = M(() => t.value === null ? "-" : n.formatPlainDate(t.value)), i = M(() => {
641
+ if (!t.isOverdue || t.value === null) return null;
642
+ let e = t.value.toZonedDateTime(Ue.Now.timeZoneId()).toInstant();
643
+ return n.toRelativeTime(e);
644
+ });
645
+ return (e, n) => (z(), N(H(J), null, {
646
+ default: U(() => [L(H(q), { gap: "sm" }, {
647
+ default: U(() => [L(H(dt), {
648
+ class: Me([{
649
+ "text-error-primary": t.isOverdue,
650
+ "text-primary": !t.isOverdue
651
+ }, "text-sm"]),
652
+ text: r.value
653
+ }, null, 8, ["class", "text"]), i.value === null ? P("", !0) : (z(), N(H(Ge), {
654
+ key: 0,
655
+ label: i.value,
656
+ color: "error",
657
+ size: "sm",
658
+ variant: "translucent"
659
+ }, null, 8, ["label"]))]),
660
+ _: 1
661
+ })]),
662
+ _: 1
663
+ }));
664
+ }
665
+ }), Vt = /* @__PURE__ */ R({
666
+ __name: "InvoiceOverviewTableIssuedDateCell",
667
+ props: { value: {} },
668
+ setup(e) {
669
+ let t = e, n = D(), r = M(() => t.value === null ? "-" : n.formatPlainDate(t.value));
670
+ return (e, t) => (z(), N(H(J), null, {
671
+ default: U(() => [L(H(dt), {
672
+ text: r.value,
673
+ class: "text-sm/5 text-primary"
674
+ }, null, 8, ["text"])]),
675
+ _: 1
676
+ }));
677
+ }
678
+ }), Ht = /* @__PURE__ */ R({
679
+ __name: "InvoiceOverviewTableLifecycleCell",
680
+ props: {
681
+ isDisputed: { type: Boolean },
682
+ lifecycleStatus: {}
683
+ },
684
+ setup(e) {
685
+ let t = e;
686
+ return (e, n) => (z(), N(H(J), null, {
687
+ default: U(() => [L(H(q), { gap: "xs" }, {
688
+ default: U(() => [L(xe, { "lifecycle-status": t.lifecycleStatus }, null, 8, ["lifecycle-status"]), t.isDisputed ? (z(), N(_e, { key: 0 })) : P("", !0)]),
689
+ _: 1
690
+ })]),
691
+ _: 1
692
+ }));
693
+ }
694
+ }), Ut = { class: "flex flex-col leading-tight" }, Wt = ["title"], Gt = ["title"], Kt = /* @__PURE__ */ R({
695
+ __name: "InvoiceOverviewTableNameCell",
696
+ props: {
697
+ customerName: {},
698
+ subject: {},
699
+ type: {}
700
+ },
701
+ setup(e) {
702
+ let t = e, n = A();
703
+ return (e, r) => (z(), N(H(J), null, {
704
+ default: U(() => [I("div", Ut, [L(H(q), null, {
705
+ default: U(() => [I("span", {
706
+ title: t.customerName,
707
+ class: "truncate text-sm/4 font-medium text-primary"
708
+ }, V(t.customerName), 9, Wt), t.type === H(a).CREDIT_NOTE ? (z(), N(H(w), {
709
+ key: 0,
710
+ "aria-label": H(n).t("wise_invoicing.invoice.type.credit_note"),
711
+ class: "size-3 shrink-0 text-warning-primary",
712
+ role: "img"
713
+ }, null, 8, ["aria-label"])) : P("", !0)]),
714
+ _: 1
715
+ }), I("span", {
716
+ title: t.subject ?? void 0,
717
+ class: "truncate text-xs/4 text-secondary"
718
+ }, V(t.subject ?? "-"), 9, Gt)])]),
719
+ _: 1
720
+ }));
721
+ }
722
+ }), qt = /* @__PURE__ */ R({
723
+ __name: "InvoiceOverviewTableSelectionCell",
724
+ props: { isSelected: { type: Boolean } },
725
+ emits: ["toggle"],
726
+ setup(e, { emit: t }) {
727
+ let n = e, r = t, i = A();
728
+ return (e, t) => (z(), N(H(J), null, {
729
+ default: U(() => [L(H(ot), null, {
730
+ default: U(() => [L(H(Ke), {
731
+ label: H(i).t("wise_invoicing.invoice.overview.bulk.select_document"),
732
+ "model-value": n.isSelected,
733
+ "is-label-hidden": !0,
734
+ class: "mx-auto",
735
+ "onUpdate:modelValue": t[0] ||= (e) => r("toggle")
736
+ }, null, 8, ["label", "model-value"])]),
737
+ _: 1
738
+ })]),
739
+ _: 1
740
+ }));
741
+ }
742
+ }), Jt = /* @__PURE__ */ R({
743
+ __name: "InvoiceOverviewTableSentCell",
744
+ props: { deliveryStatus: {} },
745
+ setup(e) {
746
+ let t = e, n = M(() => [i.SENT, i.VIEWED].includes(t.deliveryStatus));
747
+ return (e, t) => (z(), N(H(J), null, {
748
+ default: U(() => [n.value ? (z(), N(H(be), {
749
+ key: 0,
750
+ class: "size-4 text-brand-600"
751
+ })) : P("", !0)]),
752
+ _: 1
753
+ }));
754
+ }
755
+ }), Yt = /* @__PURE__ */ R({
756
+ __name: "InvoiceOverviewTableSequenceCell",
757
+ props: { sequence: {} },
758
+ setup(e) {
759
+ return (t, n) => (z(), N(H(J), null, {
760
+ default: U(() => [L(H(st), { text: e.sequence ?? "-" }, null, 8, ["text"])]),
761
+ _: 1
762
+ }));
763
+ }
764
+ }), Xt = /* @__PURE__ */ R({
765
+ __name: "InvoiceOverviewTableStatusCell",
766
+ props: { value: {} },
767
+ setup(e) {
768
+ let t = e, n = M(() => t.value.type === a.CREDIT_NOTE), r = M(() => Se.isSent(t.value.deliveryStatus));
769
+ return (e, i) => (z(), N(H(J), null, {
770
+ default: U(() => [n.value ? P("", !0) : (z(), N(ye, {
771
+ key: 0,
772
+ "is-sent": r.value,
773
+ "balance-due-amount": t.value.balanceDueAmount,
774
+ "gross-amount": t.value.grossAmount,
775
+ "paid-amount": t.value.paidAmount,
776
+ "settlement-status": t.value.settlementStatus,
777
+ "show-subtext": !1,
778
+ "total-credited-amount": t.value.totalCreditedAmount
779
+ }, null, 8, [
780
+ "is-sent",
781
+ "balance-due-amount",
782
+ "gross-amount",
783
+ "paid-amount",
784
+ "settlement-status",
785
+ "total-credited-amount"
786
+ ]))]),
787
+ _: 1
788
+ }));
789
+ }
790
+ });
791
+ //#endregion
792
+ //#region src/modules/invoice/use-cases/overview/composables/invoiceOverviewTableColumns.composable.ts
793
+ function Zt(e) {
794
+ let n = A();
795
+ return M(() => {
796
+ let r = e?.selection, i = e?.customFieldDefinitions?.().map((e) => ({
797
+ headerLabel: O.getLabel(e, n.locale.value),
798
+ key: Q.getKey(e),
799
+ size: {
800
+ max: "1fr",
801
+ min: "10rem"
802
+ },
803
+ component: (t) => Y(zt, {
804
+ definition: e,
805
+ value: t.customFields.find((t) => t.definitionUuid === e.uuid)
806
+ })
807
+ })) ?? [], a = r === void 0 ? [] : [{
808
+ headerLabel: "",
809
+ key: "selection",
810
+ size: {
811
+ max: "2.5rem",
812
+ min: "2.5rem"
813
+ },
814
+ component: (e) => Y(qt, {
815
+ isSelected: r.isSelected(e.uuid),
816
+ onToggle: () => r.toggleRow(e.uuid)
817
+ })
818
+ }];
819
+ return mt()([
820
+ ...a,
821
+ {
822
+ headerLabel: n.t("wise_invoicing.invoice.overview.columns.recipient"),
823
+ key: t.CUSTOMER,
824
+ size: {
825
+ max: "16rem",
826
+ min: "16rem"
827
+ },
828
+ component: (e) => Y(Kt, {
829
+ customerName: e.customerName,
830
+ subject: e.subject,
831
+ type: e.type
832
+ })
833
+ },
834
+ {
835
+ headerLabel: n.t("wise_invoicing.invoice.overview.columns.id"),
836
+ key: t.SEQUENCE,
837
+ size: {
838
+ max: "9rem",
839
+ min: "9rem"
840
+ },
841
+ component: (e) => Y(Yt, { sequence: e.sequence })
842
+ },
843
+ {
844
+ headerLabel: n.t("wise_invoicing.invoice.overview.columns.lifecycle"),
845
+ key: "lifecycleStatus",
846
+ size: {
847
+ max: "12rem",
848
+ min: "8rem"
849
+ },
850
+ component: (e) => Y(Ht, {
851
+ isDisputed: e.isDisputed,
852
+ lifecycleStatus: e.lifecycleStatus
853
+ })
854
+ },
855
+ {
856
+ headerLabel: n.t("wise_invoicing.invoice.overview.columns.invoice_date"),
857
+ key: t.ISSUED_ON,
858
+ size: {
859
+ max: "8rem",
860
+ min: "8rem"
861
+ },
862
+ component: (e) => Y(Vt, { value: e.issuedOn })
863
+ },
864
+ {
865
+ headerLabel: n.t("wise_invoicing.invoice.overview.columns.sent"),
866
+ key: "deliveryStatus",
867
+ size: {
868
+ max: "8rem",
869
+ min: "8rem"
870
+ },
871
+ component: (e) => Y(Jt, { deliveryStatus: e.deliveryStatus })
872
+ },
873
+ {
874
+ headerLabel: n.t("wise_invoicing.invoice.overview.columns.settlement"),
875
+ key: "status",
876
+ size: {
877
+ max: "10rem",
878
+ min: "10rem"
879
+ },
880
+ component: (e) => Y(Xt, { value: e })
881
+ },
882
+ {
883
+ headerLabel: n.t("wise_invoicing.invoice.overview.columns.due_date"),
884
+ key: "dueOn",
885
+ size: {
886
+ max: "14rem",
887
+ min: "12rem"
888
+ },
889
+ component: (e) => Y(Bt, {
890
+ isOverdue: e.isOverdue,
891
+ value: e.dueOn
892
+ })
893
+ },
894
+ {
895
+ headerLabel: n.t("wise_invoicing.invoice.overview.columns.amount_excl_vat"),
896
+ key: t.NET_AMOUNT,
897
+ size: {
898
+ max: "1fr",
899
+ min: "10rem"
900
+ },
901
+ component: (e) => Y(Rt, { value: e })
902
+ },
903
+ ...i
904
+ ]);
905
+ });
906
+ }
907
+ //#endregion
908
+ //#region src/modules/invoice/api/invoiceIndexCache.util.ts
909
+ var Qt = [
910
+ 250,
911
+ 750,
912
+ 1500,
913
+ 2500
914
+ ], $t = class {
915
+ static reflectBulkAction(e, t) {
916
+ let n = new Re(ze()), r = new Set(e);
917
+ function i() {
918
+ n.update("invoiceIndex", {
919
+ by: (e) => r.has(e.uuid),
920
+ value: (e) => ({
921
+ ...e,
922
+ ...t
923
+ })
924
+ });
925
+ }
926
+ i();
927
+ for (let e of Qt) setTimeout(i, e);
928
+ }
929
+ };
930
+ //#endregion
931
+ //#region src/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.ts
932
+ function en() {
933
+ return W({
934
+ queryFn: (e) => C.bulkFinalize(e.params.invoiceUuids),
935
+ queryKeysToInvalidate: { invoiceIndex: {} }
936
+ });
937
+ }
938
+ //#endregion
939
+ //#region src/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.ts
940
+ var $ = class {
941
+ static createEmptyPreview() {
942
+ return {
943
+ skipped: [],
944
+ meta: {
945
+ processed: 0,
946
+ skipped: 0,
947
+ total: 0
948
+ }
949
+ };
950
+ }
951
+ static createSkippedToast(e) {
952
+ let t = [], n = {};
953
+ for (let [r, i] of e.invoices.entries()) {
954
+ let e = `invoice${r}`;
955
+ t.push(`{${e}}`), n[e] = {
956
+ label: this.getInvoiceLabel(i),
957
+ to: this.getInvoiceDetailLink(i)
958
+ };
959
+ }
960
+ let r = t.join(", ");
961
+ return {
962
+ id: e.id,
963
+ duration: Infinity,
964
+ interactableModels: n,
965
+ message: r === "" ? e.message : `${e.message} ${r}`,
966
+ variant: "error"
967
+ };
968
+ }
969
+ static getInvoiceDetailLink(e) {
970
+ return e.type === a.CREDIT_NOTE ? {
971
+ name: "invoicing-credit-note-detail",
972
+ params: { creditNoteUuid: e.uuid }
973
+ } : {
974
+ name: "invoicing-invoice-detail",
975
+ params: { invoiceUuid: e.uuid }
976
+ };
977
+ }
978
+ static getInvoiceLabel(e) {
979
+ return e.sequence ?? e.subject ?? e.customerName;
980
+ }
981
+ static getUnskippedInvoiceUuids(e, t) {
982
+ let n = new Set(t.map((e) => e.uuid));
983
+ return e.filter((e) => !n.has(e.uuid)).map((e) => e.uuid);
984
+ }
985
+ }, tn = {
986
+ key: 0,
987
+ class: "text-sm text-secondary"
988
+ }, nn = {
989
+ key: 0,
990
+ class: "text-sm text-primary"
991
+ }, rn = {
992
+ key: 1,
993
+ class: "text-sm text-secondary"
994
+ }, an = { class: "text-sm text-secondary" }, on = /* @__PURE__ */ R({
995
+ __name: "InvoiceOverviewBulkActionDialog",
996
+ props: {
997
+ title: {},
998
+ isPreviewLoading: { type: Boolean },
999
+ isSubmitting: { type: Boolean },
1000
+ confirmLabel: {},
1001
+ description: {},
1002
+ icon: {},
1003
+ loadingLabel: {},
1004
+ noneProcessableLabel: {},
1005
+ processableCount: {},
1006
+ processableLabel: {},
1007
+ skippedInvoices: {},
1008
+ skippedPreviewLabel: {}
1009
+ },
1010
+ emits: ["close", "confirm"],
1011
+ setup(e, { emit: t }) {
1012
+ let n = e, r = t;
1013
+ return (e, t) => (z(), N(H(Xe), {
1014
+ size: "sm",
1015
+ onClose: t[1] ||= (e) => r("close")
1016
+ }, {
1017
+ default: U(() => [
1018
+ L(H(nt), {
1019
+ title: n.title,
1020
+ description: n.description,
1021
+ icon: n.icon,
1022
+ "is-description-visible": !0
1023
+ }, null, 8, [
1024
+ "title",
1025
+ "description",
1026
+ "icon"
1027
+ ]),
1028
+ L(H(Ze), null, {
1029
+ default: U(() => [L(H(K), null, {
1030
+ default: U(() => [n.isPreviewLoading ? (z(), F("p", tn, V(n.loadingLabel), 1)) : (z(), F(j, { key: 1 }, [n.processableCount > 0 ? (z(), F("p", nn, V(n.processableLabel), 1)) : (z(), F("p", rn, V(n.noneProcessableLabel), 1)), n.skippedInvoices.length > 0 ? (z(), N(H(K), {
1031
+ key: 2,
1032
+ gap: "sm",
1033
+ class: "rounded-lg border border-secondary bg-secondary p-md"
1034
+ }, {
1035
+ default: U(() => [I("p", an, V(n.skippedPreviewLabel), 1), L(H(K), { gap: "xs" }, {
1036
+ default: U(() => [(z(!0), F(j, null, Pe(n.skippedInvoices, (e) => (z(), N(H(Ee), {
1037
+ key: e.uuid,
1038
+ to: H($).getInvoiceDetailLink(e),
1039
+ class: "text-sm text-brand-primary hover:underline"
1040
+ }, {
1041
+ default: U(() => [Oe(V(H($).getInvoiceLabel(e)), 1)]),
1042
+ _: 2
1043
+ }, 1032, ["to"]))), 128))]),
1044
+ _: 1
1045
+ })]),
1046
+ _: 1
1047
+ })) : P("", !0)], 64))]),
1048
+ _: 1
1049
+ })]),
1050
+ _: 1
1051
+ }),
1052
+ L(H(Qe), null, {
1053
+ right: U(() => [L(H($e)), L(H(et), {
1054
+ "is-disabled": n.isPreviewLoading || n.processableCount === 0,
1055
+ "is-loading": n.isSubmitting,
1056
+ label: n.confirmLabel,
1057
+ onClick: t[0] ||= (e) => r("confirm")
1058
+ }, null, 8, [
1059
+ "is-disabled",
1060
+ "is-loading",
1061
+ "label"
1062
+ ])]),
1063
+ _: 1
1064
+ })
1065
+ ]),
1066
+ _: 1
1067
+ }));
1068
+ }
1069
+ }), sn = /* @__PURE__ */ R({
1070
+ __name: "InvoiceOverviewBulkFinalizeDialog",
1071
+ props: {
1072
+ invoices: {},
1073
+ onFinalized: { type: Function }
1074
+ },
1075
+ emits: ["close"],
1076
+ setup(e, { emit: t }) {
1077
+ let n = e, r = t, i = A(), a = X(), s = en(), l = B(!0), u = B(!1), d = B(null), f = M(() => n.invoices.filter((e) => e.status === o.READY)), p = M(() => f.value.map((e) => e.uuid)), m = M(() => d.value?.meta.processed ?? 0), h = M(() => $.getUnskippedInvoiceUuids(f.value, d.value?.skipped ?? [])), g = M(() => {
1078
+ let e = new Set(h.value);
1079
+ return n.invoices.filter((t) => !e.has(t.uuid));
1080
+ }), _ = M(() => g.value.length);
1081
+ async function v() {
1082
+ let e = h.value;
1083
+ if (e.length === 0 || u.value) return;
1084
+ u.value = !0;
1085
+ let t = await s.execute({ params: { invoiceUuids: e } });
1086
+ if (u.value = !1, t.isErr()) {
1087
+ a.apiError(t.error);
1088
+ return;
1089
+ }
1090
+ let l = new Set(t.value.skipped.map((e) => e.uuid)), f = e.filter((e) => !l.has(e));
1091
+ d.value = t.value, f.length > 0 && $t.reflectBulkAction(f, {
1092
+ lifecycleStatus: c.FINALIZED,
1093
+ status: o.FINALIZED
1094
+ }), t.value.meta.processed > 0 && a.show({ message: i.t("wise_invoicing.invoice.overview.bulk.finalize.success", { count: t.value.meta.processed }) }), _.value > 0 && a.show($.createSkippedToast({
1095
+ id: "invoice-overview-bulk-finalize-skipped",
1096
+ invoices: g.value,
1097
+ message: i.t("wise_invoicing.invoice.overview.bulk.finalize.skipped", { count: _.value })
1098
+ })), t.value.meta.processed !== 0 && (n.onFinalized(), r("close"));
1099
+ }
1100
+ async function y() {
1101
+ if (l.value = !0, p.value.length === 0) {
1102
+ d.value = $.createEmptyPreview(), l.value = !1;
1103
+ return;
1104
+ }
1105
+ let e = await C.previewBulkFinalize(p.value);
1106
+ if (e.isErr()) {
1107
+ a.apiError(e.error), r("close");
1108
+ return;
1109
+ }
1110
+ d.value = e.value, l.value = !1;
1111
+ }
1112
+ return Ne(() => {
1113
+ y();
1114
+ }), (e, t) => (z(), N(on, {
1115
+ "confirm-label": H(i).t("wise_invoicing.invoice.overview.bulk.finalize.confirm"),
1116
+ description: H(i).t("wise_invoicing.invoice.overview.bulk.finalize.description"),
1117
+ icon: H(ue),
1118
+ "is-preview-loading": l.value,
1119
+ "is-submitting": u.value,
1120
+ "loading-label": H(i).t("wise_invoicing.invoice.overview.bulk.finalize.loading"),
1121
+ "none-processable-label": H(i).t("wise_invoicing.invoice.overview.bulk.finalize.none_processable"),
1122
+ "processable-count": m.value,
1123
+ "processable-label": H(i).t("wise_invoicing.invoice.overview.bulk.finalize.processable", { count: m.value }),
1124
+ "skipped-invoices": g.value,
1125
+ "skipped-preview-label": H(i).t("wise_invoicing.invoice.overview.bulk.finalize.skipped_preview", { count: _.value }),
1126
+ title: H(i).t("wise_invoicing.invoice.overview.bulk.finalize.title", { count: n.invoices.length }),
1127
+ onClose: t[0] ||= (e) => r("close"),
1128
+ onConfirm: v
1129
+ }, null, 8, [
1130
+ "confirm-label",
1131
+ "description",
1132
+ "icon",
1133
+ "is-preview-loading",
1134
+ "is-submitting",
1135
+ "loading-label",
1136
+ "none-processable-label",
1137
+ "processable-count",
1138
+ "processable-label",
1139
+ "skipped-invoices",
1140
+ "skipped-preview-label",
1141
+ "title"
1142
+ ]));
1143
+ }
1144
+ });
1145
+ //#endregion
1146
+ //#region src/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.ts
1147
+ function cn() {
1148
+ return W({
1149
+ queryFn: (e) => C.bulkMarkAsReady(e.params.invoiceUuids),
1150
+ queryKeysToInvalidate: { invoiceIndex: {} }
1151
+ });
1152
+ }
1153
+ //#endregion
1154
+ //#region src/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkMarkAsReadyDialog.vue
1155
+ var ln = /* @__PURE__ */ R({
1156
+ __name: "InvoiceOverviewBulkMarkAsReadyDialog",
1157
+ props: {
1158
+ invoices: {},
1159
+ onMarkedAsReady: { type: Function }
1160
+ },
1161
+ emits: ["close"],
1162
+ setup(e, { emit: t }) {
1163
+ let n = e, r = t, i = A(), a = X(), s = cn(), l = B(!0), u = B(!1), d = B(null), f = M(() => n.invoices.filter((e) => e.status === o.DRAFT)), p = M(() => f.value.map((e) => e.uuid)), m = M(() => d.value?.meta.processed ?? 0), h = M(() => $.getUnskippedInvoiceUuids(f.value, d.value?.skipped ?? [])), g = M(() => {
1164
+ let e = new Set(h.value);
1165
+ return n.invoices.filter((t) => !e.has(t.uuid));
1166
+ }), _ = M(() => g.value.length);
1167
+ async function v() {
1168
+ let e = h.value;
1169
+ if (e.length === 0 || u.value) return;
1170
+ u.value = !0;
1171
+ let t = await s.execute({ params: { invoiceUuids: e } });
1172
+ if (u.value = !1, t.isErr()) {
1173
+ a.apiError(t.error);
1174
+ return;
1175
+ }
1176
+ let l = new Set(t.value.skipped.map((e) => e.uuid)), f = e.filter((e) => !l.has(e));
1177
+ d.value = t.value, f.length > 0 && $t.reflectBulkAction(f, {
1178
+ lifecycleStatus: c.READY,
1179
+ status: o.READY
1180
+ }), t.value.meta.processed > 0 && a.show({ message: i.t("wise_invoicing.invoice.overview.bulk.mark_as_ready.success", { count: t.value.meta.processed }) }), _.value > 0 && a.show($.createSkippedToast({
1181
+ id: "invoice-overview-bulk-mark-as-ready-skipped",
1182
+ invoices: g.value,
1183
+ message: i.t("wise_invoicing.invoice.overview.bulk.mark_as_ready.skipped", { count: _.value })
1184
+ })), t.value.meta.processed !== 0 && (n.onMarkedAsReady(), r("close"));
1185
+ }
1186
+ async function y() {
1187
+ if (l.value = !0, p.value.length === 0) {
1188
+ d.value = $.createEmptyPreview(), l.value = !1;
1189
+ return;
1190
+ }
1191
+ let e = await C.previewBulkMarkAsReady(p.value);
1192
+ if (e.isErr()) {
1193
+ a.apiError(e.error), r("close");
1194
+ return;
1195
+ }
1196
+ d.value = e.value, l.value = !1;
1197
+ }
1198
+ return Ne(() => {
1199
+ y();
1200
+ }), (e, t) => (z(), N(on, {
1201
+ "confirm-label": H(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.confirm"),
1202
+ description: H(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.description"),
1203
+ icon: H(ce),
1204
+ "is-preview-loading": l.value,
1205
+ "is-submitting": u.value,
1206
+ "loading-label": H(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.loading"),
1207
+ "none-processable-label": H(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.none_processable"),
1208
+ "processable-count": m.value,
1209
+ "processable-label": H(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.processable", { count: m.value }),
1210
+ "skipped-invoices": g.value,
1211
+ "skipped-preview-label": H(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.skipped_preview", { count: _.value }),
1212
+ title: H(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.title", { count: n.invoices.length }),
1213
+ onClose: t[0] ||= (e) => r("close"),
1214
+ onConfirm: v
1215
+ }, null, 8, [
1216
+ "confirm-label",
1217
+ "description",
1218
+ "icon",
1219
+ "is-preview-loading",
1220
+ "is-submitting",
1221
+ "loading-label",
1222
+ "none-processable-label",
1223
+ "processable-count",
1224
+ "processable-label",
1225
+ "skipped-invoices",
1226
+ "skipped-preview-label",
1227
+ "title"
1228
+ ]));
1229
+ }
1230
+ });
1231
+ //#endregion
1232
+ //#region src/modules/invoice/api/mutations/invoiceBulkSend.mutation.ts
1233
+ function un() {
1234
+ return W({
1235
+ queryFn: (e) => C.bulkSend(e.params.invoiceUuids),
1236
+ queryKeysToInvalidate: { invoiceIndex: {} }
1237
+ });
1238
+ }
1239
+ //#endregion
1240
+ //#region src/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue
1241
+ var dn = /* @__PURE__ */ R({
1242
+ __name: "InvoiceOverviewBulkSendDialog",
1243
+ props: {
1244
+ invoices: {},
1245
+ onSent: { type: Function }
1246
+ },
1247
+ emits: ["close"],
1248
+ setup(e, { emit: t }) {
1249
+ let n = e, r = t, a = A(), s = X(), c = un(), l = B(!0), u = B(!1), d = B(null), f = M(() => n.invoices.filter((e) => e.status === o.FINALIZED)), p = M(() => f.value.map((e) => e.uuid)), m = M(() => d.value?.meta.processed ?? 0), h = M(() => $.getUnskippedInvoiceUuids(f.value, d.value?.skipped ?? [])), g = M(() => {
1250
+ let e = new Set(h.value);
1251
+ return n.invoices.filter((t) => !e.has(t.uuid));
1252
+ }), _ = M(() => g.value.length);
1253
+ async function v() {
1254
+ let e = h.value;
1255
+ if (e.length === 0 || u.value) return;
1256
+ u.value = !0;
1257
+ let t = await c.execute({ params: { invoiceUuids: e } });
1258
+ if (u.value = !1, t.isErr()) {
1259
+ s.apiError(t.error);
1260
+ return;
1261
+ }
1262
+ let o = new Set(t.value.skipped.map((e) => e.uuid)), l = e.filter((e) => !o.has(e));
1263
+ d.value = t.value, l.length > 0 && $t.reflectBulkAction(l, { deliveryStatus: i.PROCESSING }), t.value.meta.processed > 0 && s.show({ message: a.t("wise_invoicing.invoice.overview.bulk.send.success", { count: t.value.meta.processed }) }), _.value > 0 && s.show($.createSkippedToast({
1264
+ id: "invoice-overview-bulk-send-skipped",
1265
+ invoices: g.value,
1266
+ message: a.t("wise_invoicing.invoice.overview.bulk.send.skipped", { count: _.value })
1267
+ })), t.value.meta.processed !== 0 && (n.onSent(), r("close"));
1268
+ }
1269
+ async function y() {
1270
+ if (l.value = !0, p.value.length === 0) {
1271
+ d.value = $.createEmptyPreview(), l.value = !1;
1272
+ return;
1273
+ }
1274
+ let e = await C.previewBulkSend(p.value);
1275
+ if (e.isErr()) {
1276
+ s.apiError(e.error), r("close");
1277
+ return;
1278
+ }
1279
+ d.value = e.value, l.value = !1;
1280
+ }
1281
+ return Ne(() => {
1282
+ y();
1283
+ }), (e, t) => (z(), N(on, {
1284
+ "confirm-label": H(a).t("wise_invoicing.invoice.overview.bulk.send.confirm"),
1285
+ description: H(a).t("wise_invoicing.invoice.overview.bulk.send.description"),
1286
+ icon: H(E),
1287
+ "is-preview-loading": l.value,
1288
+ "is-submitting": u.value,
1289
+ "loading-label": H(a).t("wise_invoicing.invoice.overview.bulk.send.loading"),
1290
+ "none-processable-label": H(a).t("wise_invoicing.invoice.overview.bulk.send.none_processable"),
1291
+ "processable-count": m.value,
1292
+ "processable-label": H(a).t("wise_invoicing.invoice.overview.bulk.send.processable", { count: m.value }),
1293
+ "skipped-invoices": g.value,
1294
+ "skipped-preview-label": H(a).t("wise_invoicing.invoice.overview.bulk.send.skipped_preview", { count: _.value }),
1295
+ title: H(a).t("wise_invoicing.invoice.overview.bulk.send.title", { count: n.invoices.length }),
1296
+ onClose: t[0] ||= (e) => r("close"),
1297
+ onConfirm: v
1298
+ }, null, 8, [
1299
+ "confirm-label",
1300
+ "description",
1301
+ "icon",
1302
+ "is-preview-loading",
1303
+ "is-submitting",
1304
+ "loading-label",
1305
+ "none-processable-label",
1306
+ "processable-count",
1307
+ "processable-label",
1308
+ "skipped-invoices",
1309
+ "skipped-preview-label",
1310
+ "title"
1311
+ ]));
1312
+ }
1313
+ }), fn = /* @__PURE__ */ R({
1314
+ __name: "DateRangeFilterButton",
1315
+ props: /*@__PURE__*/ Ae({ ariaLabel: {} }, {
1316
+ modelValue: { default: null },
1317
+ modelModifiers: {}
1318
+ }),
1319
+ emits: ["update:modelValue"],
1320
+ setup(e) {
1321
+ let t = e, n = Ie(e, "modelValue"), r = A(), i = B(!1), a = B({
1322
+ from: null,
1323
+ until: null
1324
+ });
1325
+ Le(i, (e) => {
1326
+ e && (a.value = {
1327
+ from: n.value?.from ?? null,
1328
+ until: n.value?.until ?? null
1329
+ });
1330
+ });
1331
+ let o = D(), s = M(() => n.value === null ? r.t("component.date_range_filter_button.select_dates") : n.value.from !== null && n.value.until !== null && n.value.from.equals(n.value.until) ? o.formatPlainDate(n.value.from) : `${n.value.from === null ? "-" : o.formatPlainDate(n.value.from)} - ${n.value.until === null ? "-" : o.formatPlainDate(n.value.until)}`);
1332
+ function c() {
1333
+ n.value = a.value.from !== null || a.value.until !== null ? { ...a.value } : null, i.value = !1;
1334
+ }
1335
+ function l() {
1336
+ i.value = !1;
1337
+ }
1338
+ function u() {
1339
+ n.value = null, i.value = !1;
1340
+ }
1341
+ return (e, n) => (z(), N(H(it), {
1342
+ "is-open": i.value,
1343
+ "onUpdate:isOpen": n[1] ||= (e) => i.value = e,
1344
+ "popover-side": "bottom",
1345
+ "popover-align": "end"
1346
+ }, {
1347
+ trigger: U(() => [L(H(G), {
1348
+ "aria-label": t.ariaLabel,
1349
+ label: s.value,
1350
+ "icon-right": H(T),
1351
+ variant: "secondary"
1352
+ }, null, 8, [
1353
+ "aria-label",
1354
+ "label",
1355
+ "icon-right"
1356
+ ])]),
1357
+ content: U(() => [L(H(Ye), {
1358
+ modelValue: a.value,
1359
+ "onUpdate:modelValue": n[0] ||= (e) => a.value = e,
1360
+ class: "p-lg"
1361
+ }, null, 8, ["modelValue"]), L(H(q), {
1362
+ justify: "end",
1363
+ gap: "sm",
1364
+ class: "border-t border-secondary p-md"
1365
+ }, {
1366
+ default: U(() => [
1367
+ L(H(G), {
1368
+ label: H(r).t("shared.cancel"),
1369
+ variant: "tertiary",
1370
+ onClick: l
1371
+ }, null, 8, ["label"]),
1372
+ L(H(G), {
1373
+ label: H(r).t("shared.clear"),
1374
+ variant: "tertiary",
1375
+ onClick: u
1376
+ }, null, 8, ["label"]),
1377
+ L(H(G), {
1378
+ label: H(r).t("component.filters_date_range_dialog.apply"),
1379
+ variant: "primary",
1380
+ onClick: c
1381
+ }, null, 8, ["label"])
1382
+ ]),
1383
+ _: 1
1384
+ })]),
1385
+ _: 1
1386
+ }, 8, ["is-open"]));
1387
+ }
1388
+ }), pn = { class: "relative flex min-h-0 flex-1 flex-col" }, mn = /* @__PURE__ */ R({
1389
+ __name: "InvoiceOverviewView",
1390
+ props: {
1391
+ currency: {},
1392
+ customFieldDefinitions: {},
1393
+ onCreateInvoice: { type: Function }
1394
+ },
1395
+ setup(e) {
1396
+ let n = e, r = A(), i = u(), s = ht(), c = s.create(Et), l = s.create(sn), d = s.create(ln), f = s.create(dn), p = ne({ debounceMs: 300 }), m = vt("tab", "all"), h = ae({
1397
+ initialValues: [{
1398
+ direction: "desc",
1399
+ key: t.ISSUED_ON
1400
+ }],
1401
+ keys: [
1402
+ t.CUSTOMER,
1403
+ t.SEQUENCE,
1404
+ t.ISSUED_ON,
1405
+ t.NET_AMOUNT
1406
+ ]
1407
+ }), g = Pt(), { customerUuids: _, customFields: v, dueOnRange: y, filters: b, lifecycleStatuses: x } = Mt({
1408
+ currency: n.currency,
1409
+ customFieldDefinitions: n.customFieldDefinitions
1410
+ });
1411
+ ee(b);
1412
+ let S = B(null), ie = M(() => g.getFilters(m.value)), { isFetchingNextPage: C, isLoading: oe, fetchNextPage: se, result: w } = yt({ params: {
1413
+ filters: M(() => ({
1414
+ issuedOnRange: S.value,
1415
+ customerUuids: _.value,
1416
+ customFields: v.value,
1417
+ dueOnRange: y.value,
1418
+ lifecycleStatuses: x.value,
1419
+ ...ie.value
1420
+ })),
1421
+ search: p.debouncedSearch,
1422
+ sort: h.values
1423
+ } });
1424
+ i.set(() => r.t("wise_invoicing.invoice.overview.title"));
1425
+ let ce = { name: () => r.t("wise_invoicing.invoice.overview.title") }, T = M(() => w.value.isOk() ? w.value.getValue().data : []), E = Ft({ rows: () => T.value }), ue = Zt({
1426
+ customFieldDefinitions: () => n.customFieldDefinitions,
1427
+ selection: {
1428
+ isSelected: E.isSelected,
1429
+ toggleRow: E.toggleRow
1430
+ }
1431
+ }), { customizedColumns: D, customizeTableAction: de } = gt({
1432
+ actionGroup: ce,
1433
+ availableColumns: ue,
1434
+ initialState: Ve("invoice-overview-columns", []).value
1435
+ }), O = M(() => w.value.isErr() ? w.value.getError() : null), fe = M(() => b.activeFilters.value.length), pe = M(() => (p.debouncedSearch.value?.trim().length ?? 0) > 0), me = M(() => E.selectedInvoices.value.some((e) => e.status === o.READY)), he = M(() => E.selectedInvoices.value.some((e) => e.status === o.DRAFT)), { canSend: ge } = At({ selectedInvoices: () => E.selectedInvoices.value });
1436
+ Le(T, () => {
1437
+ E.syncSelection();
1438
+ });
1439
+ function _e() {
1440
+ if (n.onCreateInvoice !== void 0) {
1441
+ n.onCreateInvoice();
1442
+ return;
1443
+ }
1444
+ c.open();
1445
+ }
1446
+ async function ve() {
1447
+ await d.open({
1448
+ invoices: E.selectedInvoices.value,
1449
+ onMarkedAsReady: () => {
1450
+ E.clearSelection();
1451
+ }
1452
+ });
1453
+ }
1454
+ async function ye() {
1455
+ await l.open({
1456
+ invoices: E.selectedInvoices.value,
1457
+ onFinalized: () => {
1458
+ E.clearSelection();
1459
+ }
1460
+ });
1461
+ }
1462
+ async function be() {
1463
+ await f.open({
1464
+ invoices: E.selectedInvoices.value,
1465
+ onSent: () => {
1466
+ E.clearSelection();
1467
+ }
1468
+ });
1469
+ }
1470
+ function xe(e) {
1471
+ return e.type === a.CREDIT_NOTE ? {
1472
+ name: "invoicing-credit-note-detail",
1473
+ params: { creditNoteUuid: e.uuid }
1474
+ } : {
1475
+ name: "invoicing-invoice-detail",
1476
+ params: { invoiceUuid: e.uuid }
1477
+ };
1478
+ }
1479
+ return (e, t) => (z(), N(H(qe), { title: H(r).t("wise_invoicing.invoice.overview.title") }, {
1480
+ "page-actions-left": U(() => [L(H(ct), {
1481
+ modelValue: H(m),
1482
+ "onUpdate:modelValue": t[0] ||= (e) => ke(m) ? m.value = e : null,
1483
+ variant: "button-border"
1484
+ }, {
1485
+ default: U(() => [L(H(ut), null, {
1486
+ default: U(() => [(z(!0), F(j, null, Pe(H(g).tabs.value, (e) => (z(), N(H(lt), {
1487
+ key: e.key,
1488
+ value: e.key,
1489
+ label: e.label
1490
+ }, null, 8, ["value", "label"]))), 128))]),
1491
+ _: 1
1492
+ })]),
1493
+ _: 1
1494
+ }, 8, ["modelValue"])]),
1495
+ "page-actions-right": U(() => [L(H(q), {
1496
+ justify: "between",
1497
+ class: "items-stretch"
1498
+ }, {
1499
+ default: U(() => [L(fn, {
1500
+ modelValue: S.value,
1501
+ "onUpdate:modelValue": t[1] ||= (e) => S.value = e,
1502
+ "aria-label": H(r).t("wise_invoicing.invoice.overview.filters.issued_on")
1503
+ }, null, 8, ["modelValue", "aria-label"]), L(H(q), { justify: "end" }, {
1504
+ default: U(() => [
1505
+ L(H(ft), {
1506
+ modelValue: H(p).search.value,
1507
+ "onUpdate:modelValue": t[2] ||= (e) => H(p).search.value = e,
1508
+ label: null,
1509
+ "icon-left": H(le),
1510
+ placeholder: H(r).t("wise_invoicing.common.search"),
1511
+ size: "sm",
1512
+ type: "search"
1513
+ }, null, 8, [
1514
+ "modelValue",
1515
+ "icon-left",
1516
+ "placeholder"
1517
+ ]),
1518
+ Fe(e.$slots, "actions"),
1519
+ L(H(G), {
1520
+ label: H(r).t("wise_invoicing.invoice.create.title"),
1521
+ onClick: _e
1522
+ }, null, 8, ["label"])
1523
+ ]),
1524
+ _: 3
1525
+ })]),
1526
+ _: 3
1527
+ })]),
1528
+ default: U(() => [L(H(Je), null, {
1529
+ default: U(() => [L(H(q), { justify: "between" }, {
1530
+ default: U(() => [L(H(te)), L(H(re))]),
1531
+ _: 1
1532
+ })]),
1533
+ _: 1
1534
+ }), I("div", pn, [L(H(at), {
1535
+ columns: H(D),
1536
+ data: T.value,
1537
+ "is-loading": H(oe),
1538
+ "is-fetching-next-page": H(C),
1539
+ error: O.value,
1540
+ "has-active-search": pe.value,
1541
+ "active-filter-count": fe.value,
1542
+ "get-key": (e) => e.uuid,
1543
+ "header-actions": [H(de)],
1544
+ "get-link": xe,
1545
+ "get-action-model": (e) => ({
1546
+ modelName: "Invoice",
1547
+ key: e.uuid,
1548
+ ...e
1549
+ }),
1550
+ onNextPage: H(se),
1551
+ onClearSearch: t[3] ||= (e) => H(p).clear(),
1552
+ onClearFilters: t[4] ||= (e) => H(b).clearAll()
1553
+ }, null, 8, [
1554
+ "columns",
1555
+ "data",
1556
+ "is-loading",
1557
+ "is-fetching-next-page",
1558
+ "error",
1559
+ "has-active-search",
1560
+ "active-filter-count",
1561
+ "get-key",
1562
+ "header-actions",
1563
+ "get-action-model",
1564
+ "onNextPage"
1565
+ ]), L(kt, {
1566
+ "can-finalize": me.value,
1567
+ "can-select-all": H(E).canSelectAll.value,
1568
+ "can-mark-as-ready": he.value,
1569
+ "can-send": H(ge),
1570
+ "selected-count": H(E).selectedCount.value,
1571
+ onCancel: t[5] ||= (e) => H(E).clearSelection(),
1572
+ onFinalize: t[6] ||= (e) => ye(),
1573
+ onMarkAsReady: t[7] ||= (e) => ve(),
1574
+ onSelectAll: t[8] ||= (e) => H(E).selectAll(),
1575
+ onSend: t[9] ||= (e) => be()
1576
+ }, null, 8, [
1577
+ "can-finalize",
1578
+ "can-select-all",
1579
+ "can-mark-as-ready",
1580
+ "can-send",
1581
+ "selected-count"
1582
+ ])])]),
1583
+ _: 3
1584
+ }, 8, ["title"]));
1585
+ }
1586
+ }), hn = /*@__PURE__*/ R({
1587
+ __name: "InvoiceOverviewViewDataProvider",
1588
+ props: { onCreateInvoice: { type: Function } },
1589
+ setup(e) {
1590
+ let t = fe(M(() => ({ entityTypes: [s.INVOICE] }))), n = we();
1591
+ return (r, i) => (z(), N(he, { queries: {
1592
+ customFieldDefinitions: H(t),
1593
+ issuerSettings: H(n)
1594
+ } }, {
1595
+ default: U(({ data: t }) => [L(mn, {
1596
+ currency: t.issuerSettings.currency,
1597
+ "custom-field-definitions": t.customFieldDefinitions,
1598
+ "on-create-invoice": e.onCreateInvoice
1599
+ }, {
1600
+ actions: U(() => [Fe(r.$slots, "actions")]),
1601
+ _: 3
1602
+ }, 8, [
1603
+ "currency",
1604
+ "custom-field-definitions",
1605
+ "on-create-invoice"
1606
+ ])]),
1607
+ loading: U(() => [L(H(Te).PageLoadingState, { breadcrumbs: [] })]),
1608
+ _: 3
1609
+ }, 8, ["queries"]));
1610
+ }
1611
+ }), gn = /* @__PURE__ */ e({ default: () => _n }), _n = hn;
1612
+ //#endregion
1613
+ export { gn as n, yt as r, _n as t };