@wisemen/wise-invoicing-web 0.0.2 → 0.0.3

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 (592) 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-CwonTh2r.js +5248 -0
  12. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  13. package/dist/BillingDocumentPdf-GWCCjE6F.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-CaucKK9o.js +751 -0
  22. package/dist/CreditNotePdfViewDataProvider-CDkvm-3m.js +21 -0
  23. package/dist/CustomFieldValueText-CC9spLWf.js +189 -0
  24. package/dist/DataProvider-CfHLB3rH.js +48 -0
  25. package/dist/DownloadCloudIcon-Cf8ftklG.js +22 -0
  26. package/dist/DunningCaseDetailViewDataProvider-1Ui9yqUb.js +403 -0
  27. package/dist/DunningCaseOverviewView-Bvwaj4_y.js +507 -0
  28. package/dist/DunningCaseReminderPdfViewDataProvider-CVnr9ge6.js +236 -0
  29. package/dist/EditIcon-Dr7OHBBR.js +21 -0
  30. package/dist/EraserIcon-B1VJSvdI.js +23 -0
  31. package/dist/FileIcon-ssmQI5Yl.js +23 -0
  32. package/dist/FilterLinesIcon-C7YdyPBk.js +23 -0
  33. package/dist/GlobeIcon-BfRM6Ike.js +22 -0
  34. package/dist/HelpIcon-BrJ49P5y.js +22 -0
  35. package/dist/HourGlassIcon-D9rfU1Is.js +22 -0
  36. package/dist/InfoCircleIcon-Ee0SyiMc.js +23 -0
  37. package/dist/InvoiceDetailViewDataProvider-DfRDFCEb.js +1578 -0
  38. package/dist/InvoiceOverviewViewDataProvider-CNK7H5r2.js +1613 -0
  39. package/dist/InvoicePdfView-CrWU8Xa-.js +17 -0
  40. package/dist/InvoicePdfViewDataProvider-nHZoeRxn.js +21 -0
  41. package/dist/InvoicePublicPdfViewDataProvider-CXWSg2pq.js +44 -0
  42. package/dist/IssuerSettingsViewDataProvider-DcA6rgOJ.js +188 -0
  43. package/dist/KeyboardIcon-T3o_g-1c.js +22 -0
  44. package/dist/LinkExternalIcon-BkHS4fCx.js +22 -0
  45. package/dist/LinkIcon-DuPwae98.js +22 -0
  46. package/dist/MarkerIcon-B1Jqenjb.js +28 -0
  47. package/dist/MobileBatteryIcon-GZ1SMRDV.js +16 -0
  48. package/dist/MonitorIcon-pbK22reU.js +22 -0
  49. package/dist/NotificationIcon-Ctv8vyWt.js +19 -0
  50. package/dist/ParkingIcon-DnUPW3pB.js +24 -0
  51. package/dist/PermissionGuard-DDw-lDGL.js +301 -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-C4qz2Rli.js +502 -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-tmy9Tf_b.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 +26 -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/permission-guard/permissionGuard.composable.d.ts +4 -0
  113. package/dist/composables/routeQueryState.composable.d.ts +12 -0
  114. package/dist/composables/search/search.composable.d.ts +12 -0
  115. package/dist/composables/sort.composable.d.ts +3 -0
  116. package/dist/composables/virtual-scrolling/virtualScrolling.composable.d.ts +31 -0
  117. package/dist/creditNoteDetail.query-BM2saU0n.js +122 -0
  118. package/dist/customerUuid.model-GUFYq3O2.js +5 -0
  119. package/dist/dashboard-BaWGNEek.js +5 -0
  120. package/dist/dist-DJ8yJcb9.js +2499 -0
  121. package/dist/dist-DP8KNFVD.js +927 -0
  122. package/dist/dist-YTXTCfo1.js +333 -0
  123. package/dist/documentTitle.composable-D7XA-8iJ.js +70 -0
  124. package/dist/download.util-PjaUQR6r.js +9 -0
  125. package/dist/formango.util-D5c2ql--.js +12 -0
  126. package/dist/index.d.ts +1603 -2873
  127. package/dist/index.js +750 -42
  128. package/dist/invoice.service-PsmVGGTR.js +629 -0
  129. package/dist/invoiceDeliveryStatus.util-CL8K78pD.js +331 -0
  130. package/dist/invoiceDetail.query-D2eFdE0j.js +11 -0
  131. package/dist/invoicingConfig.composable-AjojW4qE.js +1498 -0
  132. package/dist/issuerSettings.query-d5i7Wd7j.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 +9 -0
  224. package/dist/modules/dunning-case/api/queries/dunningCaseIndex.query.spec.d.ts +1 -0
  225. package/dist/modules/dunning-case/api/queries/reminderConfig.query.d.ts +1 -0
  226. package/dist/modules/dunning-case/api/query-keys/dunningCase.queryKeys.d.ts +55 -0
  227. package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +19 -0
  228. package/dist/modules/dunning-case/api/services/dunningCaseCustomer.service.d.ts +11 -0
  229. package/dist/modules/dunning-case/components/DunningCaseReminderLevelIndicator.vue.d.ts +9 -0
  230. package/dist/modules/dunning-case/components/DunningCaseReminderStatusIndicator.vue.d.ts +9 -0
  231. package/dist/modules/dunning-case/components/dunningCaseReminderLevelIndicator.spec.d.ts +1 -0
  232. package/dist/modules/dunning-case/components/dunningCaseReminderStatusIndicator.spec.d.ts +1 -0
  233. package/dist/modules/dunning-case/index.d.ts +4 -0
  234. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +107 -0
  235. package/dist/modules/dunning-case/models/dunningCase.model.spec.d.ts +1 -0
  236. package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +13 -0
  237. package/dist/modules/dunning-case/models/dunningCase.transformer.spec.d.ts +1 -0
  238. package/dist/modules/dunning-case/models/dunningCaseCustomer.model.d.ts +9 -0
  239. package/dist/modules/dunning-case/models/reminderConfigForm.model.d.ts +31 -0
  240. package/dist/modules/dunning-case/models/reminderConfigForm.model.spec.d.ts +1 -0
  241. package/dist/modules/dunning-case/models/reminderTimeline.util.d.ts +9 -0
  242. package/dist/modules/dunning-case/models/reminderTimeline.util.spec.d.ts +1 -0
  243. package/dist/modules/dunning-case/routes/dunningCase.routes.d.ts +37 -0
  244. package/dist/modules/dunning-case/use-cases/customer/components/CustomerDunningCasesSection.vue.d.ts +7 -0
  245. package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailView.vue.d.ts +7 -0
  246. package/dist/modules/dunning-case/use-cases/detail/views/DunningCaseDetailViewDataProvider.vue.d.ts +7 -0
  247. package/dist/modules/dunning-case/use-cases/detail/views/dunningCaseDetailView.spec.d.ts +1 -0
  248. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewFilters.composable.d.ts +5 -0
  249. package/dist/modules/dunning-case/use-cases/overview/views/DunningCaseOverviewView.vue.d.ts +3 -0
  250. package/dist/modules/dunning-case/use-cases/overview/views/dunningCaseOverviewView.spec.d.ts +1 -0
  251. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.d.ts +2 -0
  252. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.service.d.ts +5 -0
  253. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfFooter.vue.d.ts +7 -0
  254. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +20 -0
  255. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.d.ts +8 -0
  256. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.spec.d.ts +1 -0
  257. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfView.vue.d.ts +7 -0
  258. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfViewDataProvider.vue.d.ts +3 -0
  259. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +10 -0
  260. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseSendDialog.vue.d.ts +12 -0
  261. package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.d.ts +3 -0
  262. package/dist/modules/dunning-case/use-cases/send/utils/dunningCaseSend.util.spec.d.ts +1 -0
  263. package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsView.vue.d.ts +7 -0
  264. package/dist/modules/dunning-case/use-cases/settings/views/ReminderSettingsViewDataProvider.vue.d.ts +3 -0
  265. package/dist/modules/invoice/actions/invoice.actions.d.ts +5 -0
  266. package/dist/modules/invoice/actions/invoiceNavigateToDetail.action.d.ts +1 -0
  267. package/dist/modules/invoice/api/invoiceIndexCache.util.d.ts +11 -0
  268. package/dist/modules/invoice/api/invoiceIndexCache.util.spec.d.ts +1 -0
  269. package/dist/modules/invoice/api/mutations/invoiceApplyDiscount.mutation.d.ts +9 -0
  270. package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +5 -0
  271. package/dist/modules/invoice/api/mutations/invoiceBulkMarkAsReady.mutation.d.ts +5 -0
  272. package/dist/modules/invoice/api/mutations/invoiceBulkSend.mutation.d.ts +5 -0
  273. package/dist/modules/invoice/api/mutations/invoiceCreate.mutation.d.ts +7 -0
  274. package/dist/modules/invoice/api/mutations/invoiceCreateCreditNote.mutation.d.ts +4 -0
  275. package/dist/modules/invoice/api/mutations/invoiceDelete.mutation.d.ts +4 -0
  276. package/dist/modules/invoice/api/mutations/invoiceDuplicate.mutation.d.ts +4 -0
  277. package/dist/modules/invoice/api/mutations/invoiceFinalize.mutation.d.ts +4 -0
  278. package/dist/modules/invoice/api/mutations/invoiceMarkAsDraft.mutation.d.ts +4 -0
  279. package/dist/modules/invoice/api/mutations/invoiceMarkAsPaid.mutation.d.ts +4 -0
  280. package/dist/modules/invoice/api/mutations/invoiceMarkAsProtested.mutation.d.ts +4 -0
  281. package/dist/modules/invoice/api/mutations/invoiceMarkAsReady.mutation.d.ts +4 -0
  282. package/dist/modules/invoice/api/mutations/invoicePaymentCreate.mutation.d.ts +11 -0
  283. package/dist/modules/invoice/api/mutations/invoicePaymentDelete.mutation.d.ts +6 -0
  284. package/dist/modules/invoice/api/mutations/invoiceSend.mutation.d.ts +4 -0
  285. package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +16 -0
  286. package/dist/modules/invoice/api/mutations/invoiceUpdateAttachments.mutation.d.ts +13 -0
  287. package/dist/modules/invoice/api/mutations/invoiceUpdateLines.mutation.d.ts +4 -0
  288. package/dist/modules/invoice/api/mutations/invoiceWithdrawProtest.mutation.d.ts +4 -0
  289. package/dist/modules/invoice/api/queries/invoiceActivityLogIndex.query.d.ts +3 -0
  290. package/dist/modules/invoice/api/queries/invoiceCustomerDetail.query.d.ts +6 -0
  291. package/dist/modules/invoice/api/queries/invoiceCustomerSearch.query.d.ts +7 -0
  292. package/dist/modules/invoice/api/queries/invoiceDetail.query.d.ts +3 -0
  293. package/dist/modules/invoice/api/queries/invoiceIndex.query.d.ts +3 -0
  294. package/dist/modules/invoice/api/queries/invoicePaymentIndex.query.d.ts +3 -0
  295. package/dist/modules/invoice/api/queries/invoicePublicDetail.query.d.ts +2 -0
  296. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +55 -0
  297. package/dist/modules/invoice/api/services/fileUpload.service.d.ts +9 -0
  298. package/dist/modules/invoice/api/services/fileUpload.service.spec.d.ts +1 -0
  299. package/dist/modules/invoice/api/services/invoice.service.d.ts +48 -0
  300. package/dist/modules/invoice/api/services/invoiceCustomer.service.d.ts +9 -0
  301. package/dist/modules/invoice/components/InvoiceDeliveryStatusBadge.vue.d.ts +10 -0
  302. package/dist/modules/invoice/components/InvoiceDisputedBadge.vue.d.ts +8 -0
  303. package/dist/modules/invoice/components/InvoiceOverdueBadge.vue.d.ts +8 -0
  304. package/dist/modules/invoice/components/InvoiceSettlementStatusBadge.vue.d.ts +18 -0
  305. package/dist/modules/invoice/components/InvoiceStatusBadge.vue.d.ts +10 -0
  306. package/dist/modules/invoice/components/form/InvoiceFormCustomerField.vue.d.ts +16 -0
  307. package/dist/modules/invoice/models/invoice/create/invoiceCreate.transformer.d.ts +5 -0
  308. package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.model.d.ts +9 -0
  309. package/dist/modules/invoice/models/invoice/create/invoiceCreateCustomer.transformer.d.ts +5 -0
  310. package/dist/modules/invoice/models/invoice/create/invoiceCreateForm.model.d.ts +9 -0
  311. package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.model.d.ts +3 -0
  312. package/dist/modules/invoice/models/invoice/create/invoiceCustomerSearchQueryParams.transformer.d.ts +6 -0
  313. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +4 -0
  314. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +5 -0
  315. package/dist/modules/invoice/models/invoice/index/invoiceDateRange.model.d.ts +5 -0
  316. package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +27 -0
  317. package/dist/modules/invoice/models/invoice/index/invoiceIndex.transformer.d.ts +5 -0
  318. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +16 -0
  319. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.d.ts +7 -0
  320. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.transformer.spec.d.ts +1 -0
  321. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.model.d.ts +6 -0
  322. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.d.ts +6 -0
  323. package/dist/modules/invoice/models/invoice/invoiceDeliveryStatus.util.spec.d.ts +1 -0
  324. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.model.d.ts +20 -0
  325. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.d.ts +11 -0
  326. package/dist/modules/invoice/models/invoice/invoiceSettlementStatus.util.spec.d.ts +1 -0
  327. package/dist/modules/invoice/models/invoice/invoiceStatus.model.d.ts +11 -0
  328. package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +7 -0
  329. package/dist/modules/invoice/models/invoice/payment/invoicePayment.model.d.ts +13 -0
  330. package/dist/modules/invoice/models/invoice/payment/invoicePayment.transformer.d.ts +5 -0
  331. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.d.ts +5 -0
  332. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreateForm.model.d.ts +11 -0
  333. package/dist/modules/invoice/models/invoice/payment/paymentUuid.model.d.ts +3 -0
  334. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +56 -0
  335. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +5 -0
  336. package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscount.transformer.d.ts +5 -0
  337. package/dist/modules/invoice/models/invoice/update/invoiceApplyDiscountForm.model.d.ts +9 -0
  338. package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdate.transformer.d.ts +7 -0
  339. package/dist/modules/invoice/models/invoice/update/invoiceAttachmentsUpdateForm.model.d.ts +12 -0
  340. package/dist/modules/invoice/models/invoice/update/invoiceLineItemUpdateForm.model.d.ts +11 -0
  341. package/dist/modules/invoice/models/invoice/update/invoiceSubjectUpdateForm.model.d.ts +6 -0
  342. package/dist/modules/invoice/models/invoice/update/invoiceUpdate.transformer.d.ts +7 -0
  343. package/dist/modules/invoice/models/invoice/update/invoiceUpdateForm.model.d.ts +16 -0
  344. package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.model.d.ts +2 -0
  345. package/dist/modules/invoice/models/invoice/update/invoiceUpdateLines.transformer.d.ts +5 -0
  346. package/dist/modules/invoice/models/invoiceUuid.model.d.ts +3 -0
  347. package/dist/modules/invoice/routes/invoice.routes.d.ts +38 -0
  348. package/dist/modules/invoice/use-cases/create/dialogs/InvoiceCreateDialog.vue.d.ts +7 -0
  349. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +12 -0
  350. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailLinkedCreditNotesSection.vue.d.ts +7 -0
  351. package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailRemarksSection.vue.d.ts +7 -0
  352. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebar.vue.d.ts +9 -0
  353. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarActivityTab.vue.d.ts +7 -0
  354. package/dist/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarInfoTab.vue.d.ts +9 -0
  355. package/dist/modules/invoice/use-cases/detail/components/sidebar/invoiceDetailSidebarInfoTab.spec.d.ts +1 -0
  356. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentActionsCell.vue.d.ts +8 -0
  357. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentManualCell.vue.d.ts +7 -0
  358. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsSection.vue.d.ts +7 -0
  359. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentsTableTextCell.vue.d.ts +6 -0
  360. package/dist/modules/invoice/use-cases/detail/components/table/InvoiceLineItemsTableSection.vue.d.ts +9 -0
  361. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +9 -0
  362. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +6 -0
  363. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApplyDiscountDialog.vue.d.ts +11 -0
  364. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceDeleteDialog.vue.d.ts +13 -0
  365. package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentCreateDialog.vue.d.ts +11 -0
  366. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceUpdateDialog.vue.d.ts +13 -0
  367. package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailView.vue.d.ts +9 -0
  368. package/dist/modules/invoice/use-cases/detail/views/InvoiceDetailViewDataProvider.vue.d.ts +7 -0
  369. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +22 -0
  370. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableAmountCell.vue.d.ts +7 -0
  371. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableCustomFieldCell.vue.d.ts +9 -0
  372. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableDueDateCell.vue.d.ts +8 -0
  373. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableIssuedDateCell.vue.d.ts +7 -0
  374. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableLifecycleCell.vue.d.ts +8 -0
  375. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableNameCell.vue.d.ts +9 -0
  376. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSelectionCell.vue.d.ts +10 -0
  377. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSentCell.vue.d.ts +7 -0
  378. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableSequenceCell.vue.d.ts +6 -0
  379. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableStatusCell.vue.d.ts +7 -0
  380. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.d.ts +15 -0
  381. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewBulkSendEligibility.composable.spec.d.ts +1 -0
  382. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.d.ts +11 -0
  383. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewCustomFieldFilter.util.spec.d.ts +1 -0
  384. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +16 -0
  385. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +12 -0
  386. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +18 -0
  387. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewTableColumns.composable.d.ts +14 -0
  388. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +25 -0
  389. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkFinalizeDialog.vue.d.ts +12 -0
  390. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkMarkAsReadyDialog.vue.d.ts +12 -0
  391. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendDialog.vue.d.ts +12 -0
  392. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +29 -0
  393. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +25 -0
  394. package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewViewDataProvider.vue.d.ts +16 -0
  395. package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +7 -0
  396. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfFooterSection.vue.d.ts +7 -0
  397. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfHeaderSection.vue.d.ts +8 -0
  398. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfLinesTable.vue.d.ts +8 -0
  399. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfSummarySection.vue.d.ts +8 -0
  400. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableCell.vue.d.ts +16 -0
  401. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfTableHeaderCell.vue.d.ts +6 -0
  402. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +3 -0
  403. package/dist/modules/invoice/use-cases/pdf/components/invoicePdf.types.d.ts +30 -0
  404. package/dist/modules/invoice/use-cases/pdf/components/invoicePdfLinesTable.spec.d.ts +1 -0
  405. package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.d.ts +42 -0
  406. package/dist/modules/invoice/use-cases/pdf/utils/invoicePdf.util.spec.d.ts +1 -0
  407. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +7 -0
  408. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfViewDataProvider.vue.d.ts +7 -0
  409. package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicPdfViewDataProvider.vue.d.ts +3 -0
  410. package/dist/modules/settings/api/mutations/issuerSettingsUpdate.mutation.d.ts +25 -0
  411. package/dist/modules/settings/api/queries/issuerSettings.query.d.ts +1 -0
  412. package/dist/modules/settings/api/query-keys/issuerSettings.queryKeys.d.ts +6 -0
  413. package/dist/modules/settings/api/services/issuerSettings.service.d.ts +7 -0
  414. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +15 -0
  415. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.d.ts +8 -0
  416. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.spec.d.ts +1 -0
  417. package/dist/modules/settings/models/issuer-settings/issuerSettingsForm.model.d.ts +28 -0
  418. package/dist/modules/settings/routes/settings.routes.d.ts +23 -0
  419. package/dist/modules/settings/use-cases/overview/components/IssuerSettingsForm.vue.d.ts +7 -0
  420. package/dist/modules/settings/use-cases/overview/views/IssuerSettingsView.vue.d.ts +7 -0
  421. package/dist/modules/settings/use-cases/overview/views/IssuerSettingsViewDataProvider.vue.d.ts +3 -0
  422. package/dist/plainDate.transformer-BxvJpJOv.js +39 -0
  423. package/dist/reminderConfig.query-C7I3M2pu.js +329 -0
  424. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  425. package/dist/routes/invoicingPublicRoutes.composable.d.ts +9 -0
  426. package/dist/routes/invoicingRoutes.composable.d.ts +73 -0
  427. package/dist/routes/invoicingRoutes.composable.spec.d.ts +1 -0
  428. package/dist/routes/invoicingStandaloneRoutes.composable.d.ts +17 -0
  429. package/dist/src-BFgnUugN.js +123 -0
  430. package/dist/style.css +2 -1
  431. package/dist/types/apiError.type.d.ts +7 -0
  432. package/dist/types/query.type.d.ts +20 -0
  433. package/dist/types/queryKey.type.d.ts +8 -0
  434. package/dist/ui/DateRangeFilterButton.vue.d.ts +15 -0
  435. package/dist/ui/DisplayState.vue.d.ts +16 -0
  436. package/dist/ui/billing-document/BillingDocumentDetailHeaderSection.vue.d.ts +28 -0
  437. package/dist/ui/billing-document/BillingDocumentDetailLayout.vue.d.ts +22 -0
  438. package/dist/ui/billing-document/BillingDocumentDetailPage.vue.d.ts +24 -0
  439. package/dist/ui/billing-document/BillingDocumentDetailRemarksSection.vue.d.ts +10 -0
  440. package/dist/ui/billing-document/BillingDocumentDetailViewDataProvider.vue.d.ts +31 -0
  441. package/dist/ui/billing-document/BillingDocumentFinalizeDialog.vue.d.ts +11 -0
  442. package/dist/ui/billing-document/BillingDocumentHeaderActions.vue.d.ts +13 -0
  443. package/dist/ui/billing-document/BillingDocumentPdfViewer.vue.d.ts +7 -0
  444. package/dist/ui/billing-document/billingDocumentHeaderActions.types.d.ts +24 -0
  445. package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.d.ts +14 -0
  446. package/dist/ui/billing-document/billingDocumentPdfPreviewRoute.util.spec.d.ts +1 -0
  447. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebar.vue.d.ts +20 -0
  448. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityContent.vue.d.ts +20 -0
  449. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityTab.vue.d.ts +3 -0
  450. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarAttachmentsTab.vue.d.ts +7 -0
  451. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarHeader.vue.d.ts +14 -0
  452. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarInfoItem.vue.d.ts +21 -0
  453. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarLayout.vue.d.ts +16 -0
  454. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarOriginalInvoiceSection.vue.d.ts +7 -0
  455. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarPartySection.vue.d.ts +12 -0
  456. package/dist/ui/billing-document/table/BillingDocumentLineItemDeleteDialog.vue.d.ts +16 -0
  457. package/dist/ui/billing-document/table/BillingDocumentLineItemsBulkActionBar.vue.d.ts +3 -0
  458. package/dist/ui/billing-document/table/BillingDocumentLineItemsDragHandle.vue.d.ts +3 -0
  459. package/dist/ui/billing-document/table/BillingDocumentLineItemsInsertIndicator.vue.d.ts +16 -0
  460. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGrid.vue.d.ts +3 -0
  461. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableGroupRow.vue.d.ts +14 -0
  462. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableHeader.vue.d.ts +12 -0
  463. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableRow.vue.d.ts +10 -0
  464. package/dist/ui/billing-document/table/BillingDocumentLineItemsTableSection.vue.d.ts +13 -0
  465. package/dist/ui/billing-document/table/BillingDocumentLineItemsTotals.vue.d.ts +7 -0
  466. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +2773 -0
  467. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.d.ts +22 -0
  468. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.spec.d.ts +1 -0
  469. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +484 -0
  470. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.d.ts +41 -0
  471. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsKeyboardNav.composable.spec.d.ts +1 -0
  472. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +41 -0
  473. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsSelection.composable.d.ts +16 -0
  474. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +13 -0
  475. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableCustomField.vue.d.ts +21 -0
  476. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +35 -0
  477. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableNumberField.vue.d.ts +26 -0
  478. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableSelectField.vue.d.ts +35 -0
  479. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableTextField.vue.d.ts +23 -0
  480. package/dist/ui/billing-document/table/field/billingDocumentLineItemsTableNumberField.spec.d.ts +1 -0
  481. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +90 -0
  482. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.spec.d.ts +1 -0
  483. package/dist/ui/billing-document/useBillingDocumentFinalizePreference.composable.d.ts +4 -0
  484. package/dist/ui/customer-invoice-list/CustomerInvoiceList.vue.d.ts +16 -0
  485. package/dist/ui/customer-invoice-list/CustomerInvoiceTable.vue.d.ts +6 -0
  486. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableBadgeCell.vue.d.ts +8 -0
  487. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableInvoiceNumberCell.vue.d.ts +6 -0
  488. package/dist/ui/customer-invoice-list/components/CustomerInvoiceTableTextCell.vue.d.ts +6 -0
  489. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +3 -0
  490. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableFilters.composable.d.ts +9 -0
  491. package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.d.ts +8 -0
  492. package/dist/ui/customer-invoice-list/utils/customerInvoiceTable.util.spec.d.ts +1 -0
  493. package/dist/ui/dashboard/index.d.ts +7 -0
  494. package/dist/ui/data-provider/DataProvider.vue.d.ts +27 -0
  495. package/dist/ui/file-upload/InvoicingFileUploadProvider.vue.d.ts +13 -0
  496. package/dist/ui/file-upload/invoicingFileUpload.adapter.d.ts +2 -0
  497. package/dist/ui/permission-guard/PermissionGuard.vue.d.ts +22 -0
  498. package/dist/useCurrencyFormat.composable-MtZaqKnO.js +38 -0
  499. package/dist/utils/api.util.d.ts +5 -0
  500. package/dist/utils/context.util.d.ts +1 -0
  501. package/dist/utils/createComponent.d.ts +4 -0
  502. package/dist/utils/download.util.d.ts +3 -0
  503. package/dist/utils/formango.util.d.ts +8 -0
  504. package/dist/utils/image.util.d.ts +3 -0
  505. package/dist/utils/instant.transformer.d.ts +7 -0
  506. package/dist/utils/map.util.d.ts +2 -0
  507. package/dist/utils/monetary/currency.model.d.ts +180 -0
  508. package/dist/utils/monetary/monetary.model.d.ts +6 -0
  509. package/dist/utils/monetary/monetary.util.d.ts +8 -0
  510. package/dist/utils/monetary/monetaryDto.model.d.ts +9 -0
  511. package/dist/utils/number.util.d.ts +4 -0
  512. package/dist/utils/percentage.util.d.ts +13 -0
  513. package/dist/utils/plainDate.transformer.d.ts +7 -0
  514. package/dist/utils/search.util.d.ts +3 -0
  515. package/package.json +26 -25
  516. package/dist/AddOpenBoundaryIcon-LcnpqCb7.js +0 -28
  517. package/dist/AirlineIcon-29r8leGB.js +0 -31
  518. package/dist/AirplaneIcon-B9jZP9r0.js +0 -21
  519. package/dist/AirportIcon-C4PxDtDr.js +0 -18
  520. package/dist/AlertTriangleIcon-BD58hKRP.js +0 -24
  521. package/dist/AllocationsIcon-BQan6NWO.js +0 -18
  522. package/dist/ArrowNarrowRightIcon-BA1c_QRh.js +0 -24
  523. package/dist/AssetIcon-DnK5wAyN.js +0 -18
  524. package/dist/BarChartIcon-CKrBCh6x.js +0 -24
  525. package/dist/BellIcon-BT2cGatU.js +0 -23
  526. package/dist/BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-C5j9jPsk.js +0 -5374
  527. package/dist/BuildingIcon-CUOTWDHc.js +0 -24
  528. package/dist/ChargerIcon-BhrjeyKv.js +0 -18
  529. package/dist/ChevronDownIcon-DljNUnFk.js +0 -24
  530. package/dist/ChevronUpIcon-CoxFAIp_.js +0 -24
  531. package/dist/ClockIcon-CTnAGb9i.js +0 -24
  532. package/dist/ClockSnoozeIcon-BRoTw_Vn.js +0 -24
  533. package/dist/CopyIcon-JiNI8Dfg.js +0 -21
  534. package/dist/CreditNoteDetailViewDataProvider-Cy1j_m3I.js +0 -871
  535. package/dist/CreditNotePdfViewDataProvider-B7-HFIKD.js +0 -36
  536. package/dist/DownloadCloudIcon-DKHwnpvk.js +0 -24
  537. package/dist/EditIcon-DtGrCf8G.js +0 -23
  538. package/dist/EraserIcon-Cb0Ep_Yq.js +0 -24
  539. package/dist/FileIcon-C4wGvJpt.js +0 -26
  540. package/dist/FilterLinesIcon-B7wPXDy1.js +0 -24
  541. package/dist/GlobeIcon-B-Idmck1.js +0 -24
  542. package/dist/HelpIcon-CdKWaEaB.js +0 -26
  543. package/dist/HourGlassIcon-CQLPiXVW.js +0 -24
  544. package/dist/InfoCircleIcon-5gjQoNog.js +0 -24
  545. package/dist/InvoiceDetailViewDataProvider-4lGG7Wtq.js +0 -1918
  546. package/dist/InvoiceOverviewView-Boqvwabl.js +0 -4
  547. package/dist/InvoicePdfViewDataProvider-CJ3fL71W.js +0 -36
  548. package/dist/InvoicePublicPdfViewDataProvider-CzgGk_V5.js +0 -4
  549. package/dist/IssuerSettingsViewDataProvider-TM-bmC55.js +0 -249
  550. package/dist/KeyboardIcon-DlAp0VUG.js +0 -24
  551. package/dist/LinkExternalIcon-BPO_c7Ke.js +0 -24
  552. package/dist/LinkIcon-9M0uzW4a.js +0 -24
  553. package/dist/MarkerIcon-pId64QTW.js +0 -31
  554. package/dist/MobileBatteryIcon-Dq6Vh0d5.js +0 -18
  555. package/dist/MonitorIcon-PsvDF5LA.js +0 -24
  556. package/dist/NotificationIcon-C-mhyH5v.js +0 -21
  557. package/dist/ParkingIcon-BD0RoGv5.js +0 -29
  558. package/dist/PlanningIcon-BBIuwW2I.js +0 -18
  559. package/dist/PreferenceIcon-zR5mjygu.js +0 -24
  560. package/dist/ReceiptCheckIcon-CHEEnJEK.js +0 -24
  561. package/dist/RefreshIcon-CfjOS7Vw.js +0 -24
  562. package/dist/RemoveOpenBoundaryIcon-CEbBT9CX.js +0 -31
  563. package/dist/RewindIcon-9PFea9gA.js +0 -24
  564. package/dist/SettingsIcon-CSIbrANE.js +0 -28
  565. package/dist/ShieldIcon-CU4mxKxP.js +0 -21
  566. package/dist/ShieldOffIcon-D6_I1MKn.js +0 -24
  567. package/dist/SignOutIcon-ClrPsj39.js +0 -23
  568. package/dist/SlashCircleIcon-DBy7XjBm.js +0 -24
  569. package/dist/StandIcon-vV8J4-3H.js +0 -24
  570. package/dist/StarsIcon-RO6wNbsC.js +0 -26
  571. package/dist/StopwatchIcon-DubYBmeN.js +0 -24
  572. package/dist/TargetIcon-BwVw7rVC.js +0 -24
  573. package/dist/ThreeDotsIcon-BvRfi-Lm.js +0 -32
  574. package/dist/ToolIcon-Dw-vgiL1.js +0 -24
  575. package/dist/TrashIcon-Dh6ASxXd.js +0 -21
  576. package/dist/TurnaroundIcon-Hn5nPhvb.js +0 -30
  577. package/dist/UploadCloudIcon-BV7b8ygQ.js +0 -24
  578. package/dist/UserIcon-BRrPmqkm.js +0 -24
  579. package/dist/UsersIcon-fORcf4YV.js +0 -24
  580. package/dist/VerifiedIcon-BtqxtP6h.js +0 -26
  581. package/dist/WifiIcon-Bd9TvVVJ.js +0 -24
  582. package/dist/WifiOffIcon-CpATjY4j.js +0 -24
  583. package/dist/ZapIcon-BG6cVpfC.js +0 -24
  584. package/dist/ZoomInIcon-CQ_R4Ydf.js +0 -24
  585. package/dist/ZoomOutIcon-DlcCdCda.js +0 -24
  586. package/dist/creditNoteDetail.query-Dj6oKRTO.js +0 -159
  587. package/dist/index-CYV9qUlg.js +0 -23375
  588. package/dist/index-DCE3vzbe.js +0 -7
  589. package/dist/invoiceDetail.query-Wtw3VSKd.js +0 -13
  590. package/dist/issuerSettings.query-H5-5e_KF.js +0 -130
  591. package/dist/style.d.ts +0 -1
  592. /package/dist/{index.css → DunningCaseReminderPdfViewDataProvider.css} +0 -0
@@ -0,0 +1,1578 @@
1
+ import { n as e, r as t } from "./invoicingConfig.composable-AjojW4qE.js";
2
+ import "./api.util-Dm_TQedZ.js";
3
+ import { _ as n, a as r, f as i, l as a, m as o, o as s, p as c, r as l } from "./documentTitle.composable-D7XA-8iJ.js";
4
+ import { r as u } from "./useCurrencyFormat.composable-MtZaqKnO.js";
5
+ import { a as d, i as f, n as p, t as m } from "./invoice.service-PsmVGGTR.js";
6
+ import { t as h } from "./download.util-PjaUQR6r.js";
7
+ import { r as g } from "./address.transformer-B8C0pwT1.js";
8
+ import { $ as _, D as v, G as y, L as b, M as ee, N as te, O as ne, Z as re, f as ie, g as ae, h as oe, i as se, l as x, nt as ce, t as le, v as S, w as ue } from "./dist-DP8KNFVD.js";
9
+ import { n as C, t as w } from "./dist-YTXTCfo1.js";
10
+ import { i as T, n as E, r as de } from "./CustomFieldValueText-CC9spLWf.js";
11
+ import { t as D } from "./formango.util-D5c2ql--.js";
12
+ import { a as fe, c as pe, i as me, n as he, o as ge, r as _e, s as ve, t as ye, u as be } from "./invoiceDeliveryStatus.util-CL8K78pD.js";
13
+ import { t as xe } from "./issuerSettings.query-d5i7Wd7j.js";
14
+ import { C as Se, S as Ce, T as we, _ as Te, a as Ee, b as De, c as Oe, d as ke, f as Ae, g as je, h as Me, i as Ne, l as Pe, m as Fe, n as Ie, o as Le, p as Re, r as ze, s as Be, t as Ve, u as He, v as Ue, w as We, x as Ge, y as Ke } from "./BillingDocumentDetailViewDataProvider-CwonTh2r.js";
15
+ import { t as qe } from "./invoiceDetail.query-D2eFdE0j.js";
16
+ import { RouterLink as Je, useRouter as Ye } from "vue-router";
17
+ import Xe, { z as O } from "zod";
18
+ import { useI18n as k } from "vue-i18n";
19
+ import { Fragment as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createSlots as Ze, createVNode as I, defineComponent as L, mergeModels as Qe, mergeProps as R, openBlock as z, ref as $e, renderList as et, toDisplayString as tt, unref as B, useModel as nt, watch as rt, withCtx as V } from "vue";
20
+ import { useKeysetInfiniteQuery as it, useMutation as H, useQuery as at } from "@wisemen/vue-core-api-utils";
21
+ import { Temporal as ot } from "temporal-polyfill";
22
+ import { UIBadge as U, UIBadgeLabel as st, UIBadgeSeparator as ct, UIButton as lt, UIColumnLayout as ut, UIConfirmDialog as dt, UIDateField as ft, UIDetailList as pt, UIDetailListGroup as mt, UIDetailListGroupItem as W, UIDetailListGroupItemLabel as G, UIDetailListGroupItemValueText as K, UIDetailListGroupSeparator as ht, UIDialogBody as gt, UIDialogFooter as _t, UIDialogFooterCancel as vt, UIDialogFooterSubmit as yt, UIDialogHeader as bt, UIForm as xt, UIFormDialog as q, UIFormFieldGrid as St, UIFormFieldGroup as Ct, UIFormSubmitButton as wt, UIIconButton as Tt, UINumberField as Et, UIRowLayout as J, UISelect as Dt, UITable as Ot, UITableCell as kt, UITableCellInteractiveElement as At, UIText as Y, UITextField as jt, createComponent as X, createSelectOptions as Mt, defineTableColumns as Nt, useOverlay as Pt, useToast as Z } from "@wisemen/vue-core-design-system";
23
+ import { useForm as Q } from "formango";
24
+ //#region src/modules/invoice/api/mutations/invoiceUpdate.mutation.ts
25
+ function Ft() {
26
+ return H({
27
+ queryFn: (e) => m.update(e.params.invoiceUuid, e.body),
28
+ queryKeysToInvalidate: {
29
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
30
+ invoiceIndex: {}
31
+ }
32
+ });
33
+ }
34
+ //#endregion
35
+ //#region src/modules/invoice/components/InvoiceDeliveryStatusBadge.vue
36
+ var It = /* @__PURE__ */ L({
37
+ __name: "InvoiceDeliveryStatusBadge",
38
+ props: {
39
+ deliveryStatus: {},
40
+ size: { default: "sm" }
41
+ },
42
+ setup(e) {
43
+ let t = e, n = k(), r = j(() => ye.getMetadata(t.deliveryStatus)), i = j(() => n.t(r.value.translationKey));
44
+ return (e, n) => (z(), M(B(U), {
45
+ label: i.value,
46
+ color: r.value.tone,
47
+ size: t.size,
48
+ variant: "translucent"
49
+ }, null, 8, [
50
+ "label",
51
+ "color",
52
+ "size"
53
+ ]));
54
+ }
55
+ }), Lt = O.string().nullable(), Rt = O.object({ subject: Lt });
56
+ //#endregion
57
+ //#region src/modules/invoice/api/mutations/invoiceCreateCreditNote.mutation.ts
58
+ function zt() {
59
+ return H({
60
+ queryFn: (e) => m.createCreditNote(e.params.invoiceUuid),
61
+ queryKeysToInvalidate: {
62
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
63
+ invoiceIndex: {}
64
+ }
65
+ });
66
+ }
67
+ //#endregion
68
+ //#region src/modules/invoice/api/mutations/invoiceDuplicate.mutation.ts
69
+ function Bt() {
70
+ return H({
71
+ queryFn: (e) => m.duplicate(e.params.invoiceUuid),
72
+ queryKeysToInvalidate: { invoiceIndex: {} }
73
+ });
74
+ }
75
+ //#endregion
76
+ //#region src/modules/invoice/api/mutations/invoiceFinalize.mutation.ts
77
+ function Vt() {
78
+ return H({
79
+ queryFn: (e) => m.finalize(e.params.invoiceUuid),
80
+ queryKeysToInvalidate: {
81
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
82
+ invoiceIndex: {}
83
+ }
84
+ });
85
+ }
86
+ //#endregion
87
+ //#region src/modules/invoice/api/mutations/invoiceMarkAsDraft.mutation.ts
88
+ function Ht() {
89
+ return H({
90
+ queryFn: (e) => m.markAsDraft(e.params.invoiceUuid),
91
+ queryKeysToInvalidate: {
92
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
93
+ invoiceIndex: {}
94
+ }
95
+ });
96
+ }
97
+ //#endregion
98
+ //#region src/modules/invoice/api/mutations/invoiceMarkAsPaid.mutation.ts
99
+ function Ut() {
100
+ return H({
101
+ queryFn: (e) => m.markAsPaid(e.params.invoiceUuid),
102
+ queryKeysToInvalidate: {
103
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
104
+ invoiceIndex: {}
105
+ }
106
+ });
107
+ }
108
+ //#endregion
109
+ //#region src/modules/invoice/api/mutations/invoiceMarkAsProtested.mutation.ts
110
+ function Wt() {
111
+ return H({
112
+ queryFn: (e) => m.markAsProtested(e.params.invoiceUuid),
113
+ queryKeysToInvalidate: {
114
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
115
+ invoiceIndex: {}
116
+ }
117
+ });
118
+ }
119
+ //#endregion
120
+ //#region src/modules/invoice/api/mutations/invoiceMarkAsReady.mutation.ts
121
+ function Gt() {
122
+ return H({
123
+ queryFn: (e) => m.markAsReady(e.params.invoiceUuid),
124
+ queryKeysToInvalidate: {
125
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
126
+ invoiceIndex: {}
127
+ }
128
+ });
129
+ }
130
+ //#endregion
131
+ //#region src/modules/invoice/api/mutations/invoiceSend.mutation.ts
132
+ function Kt() {
133
+ return H({
134
+ queryFn: (e) => m.send(e.params.invoiceUuid),
135
+ queryKeysToInvalidate: {
136
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
137
+ invoiceIndex: {}
138
+ }
139
+ });
140
+ }
141
+ //#endregion
142
+ //#region src/modules/invoice/api/mutations/invoiceWithdrawProtest.mutation.ts
143
+ function qt() {
144
+ return H({
145
+ queryFn: (e) => m.withdrawProtest(e.params.invoiceUuid),
146
+ queryKeysToInvalidate: {
147
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
148
+ invoiceIndex: {}
149
+ }
150
+ });
151
+ }
152
+ //#endregion
153
+ //#region src/modules/invoice/api/mutations/invoiceDelete.mutation.ts
154
+ function Jt() {
155
+ return H({
156
+ queryFn: (e) => m.delete(e.params.invoiceUuid),
157
+ queryKeysToInvalidate: { invoiceIndex: {} }
158
+ });
159
+ }
160
+ //#endregion
161
+ //#region src/modules/invoice/use-cases/detail/dialogs/InvoiceDeleteDialog.vue
162
+ var Yt = /* @__PURE__ */ L({
163
+ __name: "InvoiceDeleteDialog",
164
+ props: { invoice: {} },
165
+ emits: ["close", "deleted"],
166
+ setup(e, { emit: t }) {
167
+ let n = e, r = t, i = k(), a = Ye(), o = Z(), s = Jt(), c = Q({
168
+ schema: Xe.object({}),
169
+ onSubmit: async () => {
170
+ let e = await s.execute({ params: { invoiceUuid: n.invoice.uuid } });
171
+ if (e.isErr()) {
172
+ o.apiError(e.error);
173
+ return;
174
+ }
175
+ o.show({ message: i.t("wise_invoicing.invoice.delete.success_toast") }), r("deleted"), r("close"), await a.push({ name: "invoicing-invoice-overview" });
176
+ }
177
+ });
178
+ return (e, t) => (z(), M(B(q), {
179
+ form: B(c),
180
+ size: "xs",
181
+ onClose: t[0] ||= (e) => r("close")
182
+ }, {
183
+ default: V(() => [I(B(bt), {
184
+ title: B(i).t("wise_invoicing.invoice.delete.title"),
185
+ description: B(i).t("wise_invoicing.invoice.delete.description"),
186
+ "is-description-visible": !0
187
+ }, null, 8, ["title", "description"]), I(B(_t), null, {
188
+ right: V(() => [I(B(vt), { label: "cancel" }), I(B(yt), {
189
+ "is-destructive": !0,
190
+ label: B(i).t("wise_invoicing.invoice.delete.submit_button")
191
+ }, null, 8, ["label"])]),
192
+ _: 1
193
+ })]),
194
+ _: 1
195
+ }, 8, ["form"]));
196
+ }
197
+ });
198
+ //#endregion
199
+ //#region src/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.ts
200
+ function Xt(e) {
201
+ let t = k(), n = Z(), r = Ye(), i = Pt(), a = i.create(Yt), s = i.create(Ge), l = Kt(), u = zt(), d = Bt(), f = Vt(), p = Ht(), g = Ut(), b = Wt(), ee = Gt(), re = qt(), { shouldSkipConfirmation: oe } = Ce(), x = $e(null), le = j(() => T.getMetadata(e.value.status)), S = j(() => x.value ?? e.value.isDisputed), C = j(() => e.value.status !== o.DRAFT && e.value.status !== o.READY), w = j(() => e.value.lifecycleStatus === c.FINALIZED);
202
+ function E(e) {
203
+ return le.value.actions.includes(e);
204
+ }
205
+ rt(() => e.value.isDisputed, (e) => {
206
+ x.value === e && (x.value = null);
207
+ });
208
+ async function de() {
209
+ let r = await f.execute({ params: { invoiceUuid: e.value.uuid } });
210
+ return r.isErr() ? (n.apiError(r.error), !1) : (n.show({ message: t.t("wise_invoicing.invoice.finalize.success") }), !0);
211
+ }
212
+ async function D() {
213
+ if (oe.value) {
214
+ await de();
215
+ return;
216
+ }
217
+ await s.open({
218
+ billingDocumentType: "invoice",
219
+ onConfirm: de
220
+ });
221
+ }
222
+ async function fe() {
223
+ let r = await ee.execute({ params: { invoiceUuid: e.value.uuid } });
224
+ if (r.isErr()) {
225
+ n.apiError(r.error);
226
+ return;
227
+ }
228
+ n.show({ message: t.t("wise_invoicing.invoice.mark_as_ready.success") });
229
+ }
230
+ async function pe() {
231
+ let r = await p.execute({ params: { invoiceUuid: e.value.uuid } });
232
+ if (r.isErr()) {
233
+ n.apiError(r.error);
234
+ return;
235
+ }
236
+ n.show({ message: t.t("wise_invoicing.invoice.mark_as_draft.success") });
237
+ }
238
+ async function me() {
239
+ let r = await g.execute({ params: { invoiceUuid: e.value.uuid } });
240
+ if (r.isErr()) {
241
+ n.apiError(r.error);
242
+ return;
243
+ }
244
+ n.show({ message: t.t("wise_invoicing.invoice.mark_as_paid.success") });
245
+ }
246
+ async function he() {
247
+ x.value = !0;
248
+ let r = await b.execute({ params: { invoiceUuid: e.value.uuid } });
249
+ if (r.isErr()) {
250
+ x.value = null, n.apiError(r.error);
251
+ return;
252
+ }
253
+ n.show({ message: t.t("wise_invoicing.invoice.mark_as_disputed.success") });
254
+ }
255
+ async function ge() {
256
+ x.value = !1;
257
+ let r = await re.execute({ params: { invoiceUuid: e.value.uuid } });
258
+ if (r.isErr()) {
259
+ x.value = null, n.apiError(r.error);
260
+ return;
261
+ }
262
+ n.show({ message: t.t("wise_invoicing.invoice.withdraw_dispute.success") });
263
+ }
264
+ async function _e() {
265
+ let r = await l.execute({ params: { invoiceUuid: e.value.uuid } });
266
+ if (r.isErr()) {
267
+ n.apiError(r.error);
268
+ return;
269
+ }
270
+ n.show({ message: t.t("wise_invoicing.invoice.send.success") });
271
+ }
272
+ async function ve() {
273
+ await a.open({ invoice: e.value });
274
+ }
275
+ async function ye() {
276
+ let r = await m.getByUuid(e.value.uuid);
277
+ if (r.isErr()) {
278
+ n.apiError(r.error);
279
+ return;
280
+ }
281
+ let i = r.value.file;
282
+ if (i === null) {
283
+ n.show({ message: t.t("wise_invoicing.invoice.download_pdf.generation_in_progress") });
284
+ return;
285
+ }
286
+ let a = await Se.getDownloadUrl(i.uuid);
287
+ a !== null && h.downloadUrl(a, i.name);
288
+ }
289
+ async function be() {
290
+ let i = await d.execute({ params: { invoiceUuid: e.value.uuid } });
291
+ if (i.isErr()) {
292
+ n.apiError(i.error);
293
+ return;
294
+ }
295
+ n.show({
296
+ button: {
297
+ label: t.t("wise_invoicing.invoice.duplicate.view_action"),
298
+ onClick: () => {
299
+ r.push({
300
+ name: "invoicing-invoice-detail",
301
+ params: { invoiceUuid: i.value }
302
+ });
303
+ }
304
+ },
305
+ message: t.t("wise_invoicing.invoice.duplicate.success")
306
+ });
307
+ }
308
+ async function xe() {
309
+ let i = await u.execute({ params: { invoiceUuid: e.value.uuid } });
310
+ if (i.isErr()) {
311
+ n.apiError(i.error);
312
+ return;
313
+ }
314
+ n.show({
315
+ button: {
316
+ label: t.t("wise_invoicing.credit_note.create.view_action"),
317
+ onClick: () => {
318
+ r.push({
319
+ name: "invoicing-credit-note-detail",
320
+ params: { creditNoteUuid: i.value }
321
+ });
322
+ }
323
+ },
324
+ message: t.t("wise_invoicing.credit_note.create.success")
325
+ });
326
+ }
327
+ let we = j(() => [
328
+ {
329
+ isLoading: l.isLoading.value,
330
+ iconLeft: ce,
331
+ key: "send",
332
+ label: t.t("wise_invoicing.invoice.detail.actions.send"),
333
+ variant: "primary",
334
+ visible: e.value.status === o.FINALIZED,
335
+ onClick: _e
336
+ },
337
+ {
338
+ isLoading: ee.isLoading.value,
339
+ iconRight: se,
340
+ key: "markAsReady",
341
+ label: t.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
342
+ visible: E("markAsReady"),
343
+ onClick: fe
344
+ },
345
+ {
346
+ isLoading: f.isLoading.value,
347
+ iconLeft: ue,
348
+ key: "finalize",
349
+ label: t.t("wise_invoicing.invoice.detail.actions.finalize"),
350
+ visible: E("finalize"),
351
+ onClick: D
352
+ }
353
+ ].filter((e) => e.visible)), Te = j(() => {
354
+ let n = [
355
+ {
356
+ icon: y,
357
+ key: "markAsProtested",
358
+ label: t.t("wise_invoicing.invoice.detail.actions.mark_as_disputed"),
359
+ visible: w.value && !S.value,
360
+ onSelect: he
361
+ },
362
+ {
363
+ icon: _,
364
+ key: "markAsPaid",
365
+ label: t.t("wise_invoicing.invoice.detail.actions.mark_as_paid"),
366
+ visible: E("markAsPaid"),
367
+ onSelect: me
368
+ },
369
+ {
370
+ icon: se,
371
+ key: "withdrawProtest",
372
+ label: t.t("wise_invoicing.invoice.detail.actions.withdraw_dispute"),
373
+ visible: w.value && S.value,
374
+ onSelect: ge
375
+ }
376
+ ], r = [
377
+ o.FINALIZED,
378
+ o.PAID,
379
+ o.SENT,
380
+ o.OVERDUE,
381
+ o.PROTESTED
382
+ ].includes(e.value.status), i = [
383
+ {
384
+ icon: ae,
385
+ key: "downloadPdf",
386
+ label: t.t("wise_invoicing.common.download_pdf"),
387
+ visible: C.value,
388
+ onSelect: ye
389
+ },
390
+ {
391
+ icon: ne,
392
+ key: "backToDraft",
393
+ label: t.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
394
+ visible: E("markAsDraft"),
395
+ onSelect: pe
396
+ },
397
+ {
398
+ icon: ie,
399
+ key: "duplicate",
400
+ label: t.t("wise_invoicing.invoice.detail.actions.duplicate"),
401
+ visible: !0,
402
+ onSelect: be
403
+ }
404
+ ], a = [{
405
+ icon: te,
406
+ key: "createCreditNote",
407
+ label: t.t("wise_invoicing.invoice.detail.header.cancel_with_credit_note"),
408
+ visible: r,
409
+ onSelect: xe
410
+ }, {
411
+ icon: v,
412
+ key: "delete",
413
+ label: t.t("wise_invoicing.invoice.detail.actions.delete"),
414
+ visible: le.value.isEditable,
415
+ onSelect: ve
416
+ }];
417
+ return [
418
+ {
419
+ items: n.filter((e) => e.visible),
420
+ key: "lifecycle"
421
+ },
422
+ {
423
+ items: i.filter((e) => e.visible),
424
+ key: "secondary"
425
+ },
426
+ {
427
+ items: a.filter((e) => e.visible),
428
+ key: "destructive"
429
+ }
430
+ ].filter((e) => e.items.length > 0);
431
+ });
432
+ return {
433
+ isActionMenuVisible: j(() => Te.value.length > 0),
434
+ isDisputed: S,
435
+ menuGroups: Te,
436
+ primaryButtons: we
437
+ };
438
+ }
439
+ //#endregion
440
+ //#region src/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue
441
+ var Zt = /* @__PURE__ */ L({
442
+ __name: "InvoiceDetailHeaderSection",
443
+ props: {
444
+ isPdfViewActive: { type: Boolean },
445
+ invoice: {}
446
+ },
447
+ emits: ["togglePdfView"],
448
+ setup(e, { emit: t }) {
449
+ let n = e, r = t, a = k(), o = Z(), { isDisputed: s, menuGroups: c, primaryButtons: l } = Xt(j(() => n.invoice)), u = Ft(), d = j(() => new We(n.invoice.status)), f = j(() => d.value.color), m = j(() => a.t(d.value.translationKey)), h = j(() => n.invoice.deliveryStatus !== i.UNSENT), g = j(() => ye.isSent(n.invoice.deliveryStatus)), _ = j(() => !T.isEditable(n.invoice.status)), v = Q({
450
+ initialState: { subject: n.invoice.subject },
451
+ schema: Rt,
452
+ onSubmit: async (e) => {
453
+ let t = await u.execute({
454
+ body: {
455
+ ...p.toForm(n.invoice),
456
+ subject: e.subject
457
+ },
458
+ params: { invoiceUuid: n.invoice.uuid }
459
+ });
460
+ t.isErr() && o.apiError(t.error);
461
+ }
462
+ }), y = v.register("subject");
463
+ return we({ form: v }), (e, t) => (z(), M(B(xt), {
464
+ form: B(v),
465
+ "prompt-on-unsaved-changes": !1
466
+ }, {
467
+ default: V(() => [I(Ke, {
468
+ "fallback-title": B(a).t("wise_invoicing.invoice.detail.fallback_title"),
469
+ "is-disabled": _.value,
470
+ sequence: n.invoice.sequence,
471
+ "status-color": f.value,
472
+ "status-label": m.value,
473
+ icon: B(b),
474
+ "subject-field": B(y),
475
+ "subject-placeholder": B(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
476
+ }, {
477
+ actions: V(() => [I(Ue, {
478
+ "is-pdf-view-active": n.isPdfViewActive,
479
+ "menu-groups": B(c),
480
+ "primary-buttons": B(l),
481
+ onTogglePdfView: t[0] ||= (e) => r("togglePdfView")
482
+ }, null, 8, [
483
+ "is-pdf-view-active",
484
+ "menu-groups",
485
+ "primary-buttons"
486
+ ])]),
487
+ status: V(() => [I(B(J), {
488
+ gap: "xs",
489
+ class: "flex-wrap items-start"
490
+ }, {
491
+ default: V(() => [
492
+ I(ve, { "lifecycle-status": n.invoice.lifecycleStatus }, null, 8, ["lifecycle-status"]),
493
+ I(he, {
494
+ "is-sent": g.value,
495
+ "balance-due-amount": n.invoice.balanceDueAmount,
496
+ "gross-amount": n.invoice.grossAmount,
497
+ "paid-amount": n.invoice.paidAmount,
498
+ "settlement-status": n.invoice.settlementStatus,
499
+ "total-credited-amount": n.invoice.totalCreditedAmount
500
+ }, null, 8, [
501
+ "is-sent",
502
+ "balance-due-amount",
503
+ "gross-amount",
504
+ "paid-amount",
505
+ "settlement-status",
506
+ "total-credited-amount"
507
+ ]),
508
+ n.invoice.isOverdue ? (z(), M(De, { key: 0 })) : N("", !0),
509
+ B(s) ? (z(), M(pe, { key: 1 })) : N("", !0),
510
+ h.value ? (z(), M(It, {
511
+ key: 2,
512
+ "delivery-status": n.invoice.deliveryStatus
513
+ }, null, 8, ["delivery-status"])) : N("", !0)
514
+ ]),
515
+ _: 1
516
+ })]),
517
+ _: 1
518
+ }, 8, [
519
+ "fallback-title",
520
+ "is-disabled",
521
+ "sequence",
522
+ "status-color",
523
+ "status-label",
524
+ "icon",
525
+ "subject-field",
526
+ "subject-placeholder"
527
+ ])]),
528
+ _: 1
529
+ }, 8, ["form"]));
530
+ }
531
+ }), Qt = { class: "grid w-full grid-cols-1 gap-md lg:grid-cols-3" }, $t = /* @__PURE__ */ L({
532
+ __name: "InvoiceDetailLinkedCreditNotesSection",
533
+ props: { invoice: {} },
534
+ setup(e) {
535
+ let t = e, n = k(), r = u(), i = j(() => t.invoice.creditNotes.map((e) => {
536
+ let t = new We(e.status);
537
+ return {
538
+ uuid: e.uuid,
539
+ title: e.sequence === null ? n.t("wise_invoicing.invoice.detail.credit_notes.untitled") : n.t("wise_invoicing.invoice.detail.credit_notes.card_title", { sequence: e.sequence }),
540
+ amountLabel: r.formatMonetary(a(e)),
541
+ statusColor: t.color,
542
+ statusLabel: n.t(t.translationKey)
543
+ };
544
+ }));
545
+ function a(e) {
546
+ return {
547
+ ...e.grossAmount,
548
+ amount: e.grossAmount.amount > 0 ? -e.grossAmount.amount : e.grossAmount.amount
549
+ };
550
+ }
551
+ return (e, t) => i.value.length > 0 ? (z(), M(B(ut), {
552
+ key: 0,
553
+ as: "section",
554
+ gap: "md",
555
+ class: "w-full"
556
+ }, {
557
+ default: V(() => [I(B(Y), {
558
+ text: B(n).t("wise_invoicing.invoice.detail.credit_notes.title"),
559
+ as: "h2",
560
+ class: "text-sm font-semibold text-primary"
561
+ }, null, 8, ["text"]), F("div", Qt, [(z(!0), P(A, null, et(i.value, (e) => (z(), M(B(Je), {
562
+ key: e.uuid,
563
+ to: {
564
+ name: "invoicing-credit-note-detail",
565
+ params: { creditNoteUuid: e.uuid }
566
+ },
567
+ class: "min-w-0 rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
568
+ }, {
569
+ default: V(() => [I(B(J), {
570
+ align: "center",
571
+ gap: "md",
572
+ class: "min-w-0"
573
+ }, {
574
+ default: V(() => [
575
+ I(B(Y), {
576
+ text: e.title,
577
+ class: "min-w-0 flex-1 truncate text-xs font-semibold text-primary"
578
+ }, null, 8, ["text"]),
579
+ I(B(U), {
580
+ label: e.statusLabel,
581
+ color: e.statusColor,
582
+ size: "sm",
583
+ variant: "translucent"
584
+ }, null, 8, ["label", "color"]),
585
+ I(B(U), {
586
+ label: e.amountLabel,
587
+ variant: "translucent",
588
+ size: "sm"
589
+ }, null, 8, ["label"])
590
+ ]),
591
+ _: 2
592
+ }, 1024)]),
593
+ _: 2
594
+ }, 1032, ["to"]))), 128))])]),
595
+ _: 1
596
+ })) : N("", !0);
597
+ }
598
+ }), en = O.object({
599
+ deliveredOn: w.nullable(),
600
+ dueOn: w,
601
+ issuedOn: w,
602
+ customFields: O.array(O.custom()),
603
+ externalRemarks: O.string().nullable(),
604
+ poNumber: O.string().nullable(),
605
+ preparedBy: O.object({
606
+ uuid: O.uuid(),
607
+ name: O.string()
608
+ }),
609
+ subject: O.string().nullable()
610
+ }).superRefine((e, n) => {
611
+ Temporal.PlainDate.compare(e.dueOn, e.issuedOn) < 0 && n.addIssue({
612
+ code: "custom",
613
+ message: t.global.t("invoicing.invoice.validation.due_date_after_issue_date"),
614
+ path: ["dueOn"]
615
+ });
616
+ }), tn = /* @__PURE__ */ L({
617
+ __name: "InvoiceDetailRemarksSection",
618
+ props: { invoice: {} },
619
+ setup(e) {
620
+ let t = e, n = k(), r = Z(), i = Ft(), a = Q({
621
+ initialState: j(() => p.toForm(t.invoice)),
622
+ schema: en,
623
+ onSubmit: async (e) => {
624
+ let n = await i.execute({
625
+ body: e,
626
+ params: { invoiceUuid: t.invoice.uuid }
627
+ });
628
+ n.isErr() && r.apiError(n.error);
629
+ }
630
+ }), o = a.register("externalRemarks"), s = j(() => !T.isEditable(t.invoice.status));
631
+ return we({ form: a }), (e, t) => (z(), M(B(xt), {
632
+ form: B(a),
633
+ "prompt-on-unsaved-changes": !1
634
+ }, {
635
+ default: V(() => [I(Te, {
636
+ "is-disabled": s.value,
637
+ placeholder: B(n).t("wise_invoicing.invoice.detail.remarks.placeholder"),
638
+ "remarks-field": B(o),
639
+ title: B(n).t("wise_invoicing.invoice.detail.remarks.title")
640
+ }, null, 8, [
641
+ "is-disabled",
642
+ "placeholder",
643
+ "remarks-field",
644
+ "title"
645
+ ])]),
646
+ _: 1
647
+ }, 8, ["form"]));
648
+ }
649
+ });
650
+ //#endregion
651
+ //#region src/modules/invoice/api/queries/invoiceActivityLogIndex.query.ts
652
+ function nn(e) {
653
+ return it("invoiceActivityLogIndex", {
654
+ params: { invoiceUuid: e },
655
+ queryFn: (t) => m.getActivityLogs(e.value, { pagination: t })
656
+ });
657
+ }
658
+ //#endregion
659
+ //#region src/modules/invoice/use-cases/detail/components/sidebar/InvoiceDetailSidebarActivityTab.vue
660
+ var rn = /* @__PURE__ */ L({
661
+ __name: "InvoiceDetailSidebarActivityTab",
662
+ props: { invoice: {} },
663
+ setup(e) {
664
+ let t = e, n = k(), { hasNextPage: r, isFetchingNextPage: i, isLoading: a, fetchNextPage: o, result: s } = nn(j(() => t.invoice.uuid)), c = j(() => s.value.unwrapOr({
665
+ data: [],
666
+ meta: { next: null }
667
+ }).data);
668
+ return (e, s) => (z(), M(je, {
669
+ "current-billing-document": {
670
+ role: B(l).INVOICE,
671
+ uuid: t.invoice.uuid
672
+ },
673
+ "empty-message": B(n).t("wise_invoicing.invoice.detail.sidebar.activity_empty"),
674
+ entries: c.value,
675
+ "fetch-next-page": B(o),
676
+ "has-next-page": B(r),
677
+ "is-fetching-next-page": B(i),
678
+ "is-loading": B(a)
679
+ }, null, 8, [
680
+ "current-billing-document",
681
+ "empty-message",
682
+ "entries",
683
+ "fetch-next-page",
684
+ "has-next-page",
685
+ "is-fetching-next-page",
686
+ "is-loading"
687
+ ]));
688
+ }
689
+ }), an = /* @__PURE__ */ L({
690
+ __name: "CustomFieldFieldset",
691
+ props: /*@__PURE__*/ Qe({
692
+ isDisabled: { type: Boolean },
693
+ currency: {},
694
+ definitions: {},
695
+ precision: {},
696
+ size: {}
697
+ }, {
698
+ modelValue: { required: !0 },
699
+ modelModifiers: {}
700
+ }),
701
+ emits: ["update:modelValue"],
702
+ setup(e) {
703
+ let t = e, n = nt(e, "modelValue");
704
+ function r(e) {
705
+ return He.findByDefinition(n.value, e);
706
+ }
707
+ function i(e, t) {
708
+ n.value = He.upsert(n.value, e, t);
709
+ }
710
+ return (e, n) => t.definitions.length > 0 ? (z(), M(B(ut), {
711
+ key: 0,
712
+ gap: t.size === "sm" ? "xs" : "md",
713
+ align: "stretch"
714
+ }, {
715
+ default: V(() => [(z(!0), P(A, null, et(t.definitions, (e) => (z(), M(Pe, {
716
+ key: e.uuid,
717
+ currency: t.currency,
718
+ definition: e,
719
+ "is-disabled": t.isDisabled,
720
+ "model-value": r(e.uuid),
721
+ precision: t.precision,
722
+ size: t.size,
723
+ "onUpdate:modelValue": (t) => i(e.uuid, t)
724
+ }, null, 8, [
725
+ "currency",
726
+ "definition",
727
+ "is-disabled",
728
+ "model-value",
729
+ "precision",
730
+ "size",
731
+ "onUpdate:modelValue"
732
+ ]))), 128))]),
733
+ _: 1
734
+ }, 8, ["gap"])) : N("", !0);
735
+ }
736
+ });
737
+ //#endregion
738
+ //#region src/modules/invoice/api/queries/invoiceCustomerDetail.query.ts
739
+ function on(e) {
740
+ return at("invoiceCustomerDetail", {
741
+ params: { customerUuid: e },
742
+ queryFn: () => be.getByUuid(e.value)
743
+ });
744
+ }
745
+ //#endregion
746
+ //#region src/modules/invoice/use-cases/detail/dialogs/InvoiceUpdateDialog.vue
747
+ var sn = /* @__PURE__ */ L({
748
+ __name: "InvoiceUpdateDialog",
749
+ props: {
750
+ customFieldDefinitions: {},
751
+ invoice: {}
752
+ },
753
+ emits: ["close"],
754
+ setup(t, { emit: n }) {
755
+ let r = t, i = n, a = k(), o = Z(), s = Ft(), c = xe(), l = e(), u = on(j(() => r.invoice.customer.uuid)), d = j(() => {
756
+ let e = u.result.value;
757
+ if (e.isOk()) return e.getValue().defaultPaymentTermDays;
758
+ let t = c.result.value;
759
+ return t.isOk() ? t.getValue().defaultPaymentTermDays ?? 0 : 0;
760
+ }), f = Q({
761
+ initialState: j(() => p.toForm(r.invoice)),
762
+ schema: en,
763
+ onSubmit: async (e) => {
764
+ let t = await s.execute({
765
+ body: e,
766
+ params: { invoiceUuid: r.invoice.uuid }
767
+ });
768
+ if (t.isErr()) {
769
+ o.apiError(t.error);
770
+ return;
771
+ }
772
+ i("close");
773
+ },
774
+ onSubmitError: () => {
775
+ o.unableToSave();
776
+ }
777
+ }), m = f.register("issuedOn"), h = f.register("dueOn"), g = f.register("deliveredOn"), _ = f.register("poNumber"), v = f.register("subject"), y = f.register("customFields"), b = j({
778
+ get: () => y.modelValue.value ?? [],
779
+ set: (e) => {
780
+ y.setValue(e);
781
+ }
782
+ });
783
+ function ee(e) {
784
+ e !== null && h.setValue(e.add({ days: d.value }));
785
+ }
786
+ return (e, t) => (z(), M(B(q), {
787
+ form: B(f),
788
+ size: "sm",
789
+ onClose: t[1] ||= (e) => i("close")
790
+ }, {
791
+ default: V(() => [
792
+ I(B(bt), {
793
+ icon: B(re),
794
+ "is-description-visible": !1,
795
+ title: B(a).t("wise_invoicing.invoice.detail.header.edit_info"),
796
+ description: ""
797
+ }, null, 8, ["icon", "title"]),
798
+ I(B(gt), null, {
799
+ default: V(() => [I(B(Ct), null, {
800
+ default: V(() => [I(B(St), {
801
+ lg: 2,
802
+ sm: 1
803
+ }, {
804
+ default: V(() => [
805
+ I(B(ft), R(B(D)(B(m)), {
806
+ label: B(a).t("wise_invoicing.invoice.detail.header.invoice_date"),
807
+ "is-required": !0,
808
+ "onUpdate:modelValue": ee
809
+ }), null, 16, ["label"]),
810
+ I(B(ft), R(B(D)(B(h)), {
811
+ label: B(a).t("wise_invoicing.invoice.detail.header.due_date"),
812
+ "is-required": !0,
813
+ "min-date": B(m).modelValue.value
814
+ }), null, 16, ["label", "min-date"]),
815
+ B(l).isDeliveryDateVisible.value ? (z(), M(B(ft), R({ key: 0 }, B(D)(B(g)), { label: B(a).t("wise_invoicing.invoice.detail.header.delivery_date") }), null, 16, ["label"])) : N("", !0),
816
+ I(B(jt), R(B(D)(B(_)), { label: B(a).t("wise_invoicing.invoice.detail.header.po_number") }), null, 16, ["label"]),
817
+ I(B(jt), R(B(D)(B(v)), {
818
+ label: B(a).t("wise_invoicing.invoice.detail.header.subject"),
819
+ placeholder: B(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
820
+ }), null, 16, ["label", "placeholder"])
821
+ ]),
822
+ _: 1
823
+ }), I(an, {
824
+ modelValue: b.value,
825
+ "onUpdate:modelValue": t[0] ||= (e) => b.value = e,
826
+ currency: r.invoice.currency,
827
+ definitions: r.customFieldDefinitions,
828
+ "is-disabled": !0,
829
+ precision: r.invoice.grossAmount.precision,
830
+ class: "w-full"
831
+ }, null, 8, [
832
+ "modelValue",
833
+ "currency",
834
+ "definitions",
835
+ "precision"
836
+ ])]),
837
+ _: 1
838
+ })]),
839
+ _: 1
840
+ }),
841
+ I(B(_t), null, {
842
+ right: V(() => [I(B(vt), { label: "cancel" }), I(B(yt), { label: B(a).t("wise_invoicing.invoice.detail.header.edit_info") }, null, 8, ["label"])]),
843
+ _: 1
844
+ })
845
+ ]),
846
+ _: 1
847
+ }, 8, ["form"]));
848
+ }
849
+ }), cn = /* @__PURE__ */ L({
850
+ __name: "InvoiceDetailSidebarInfoTab",
851
+ props: {
852
+ customFieldDefinitions: {},
853
+ invoice: {}
854
+ },
855
+ setup(t) {
856
+ let n = t, r = k(), i = C(), a = e(), o = Pt().create(sn), c = j(() => T.isEditable(n.invoice.status)), l = j(() => E.filterByEntityType(n.customFieldDefinitions, s.INVOICE)), u = j(() => {
857
+ if (!n.invoice.isOverdue) return null;
858
+ let e = n.invoice.dueOn.toZonedDateTime(ot.Now.timeZoneId()).toInstant();
859
+ return i.toRelativeTime(e);
860
+ });
861
+ async function d() {
862
+ await o.open({
863
+ customFieldDefinitions: l.value,
864
+ invoice: n.invoice
865
+ });
866
+ }
867
+ function f(e) {
868
+ return e === null ? "-" : i.formatPlainDate(e);
869
+ }
870
+ return (e, t) => (z(), M(B(pt), { class: "px-2xl py-xl" }, {
871
+ default: V(() => [
872
+ I(B(mt), { label: B(r).t("wise_invoicing.invoice.detail.sidebar.general") }, Ze({
873
+ default: V(() => [
874
+ I(B(W), null, {
875
+ default: V(() => [I(B(G), {
876
+ icon: B(oe),
877
+ label: B(r).t("wise_invoicing.invoice.detail.header.invoice_id")
878
+ }, null, 8, ["icon", "label"]), I(B(K), { text: n.invoice.sequence ?? "-" }, null, 8, ["text"])]),
879
+ _: 1
880
+ }),
881
+ I(B(W), null, {
882
+ default: V(() => [I(B(G), {
883
+ icon: B(ee),
884
+ label: B(r).t("wise_invoicing.invoice.detail.header.po_number")
885
+ }, null, 8, ["icon", "label"]), I(B(K), { text: n.invoice.poNumber ?? "-" }, null, 8, ["text"])]),
886
+ _: 1
887
+ }),
888
+ I(B(W), null, {
889
+ default: V(() => [I(B(G), {
890
+ icon: B(x),
891
+ label: B(r).t("wise_invoicing.invoice.detail.header.issuer")
892
+ }, null, 8, ["icon", "label"]), I(B(K), { text: n.invoice.issuer.name ?? "-" }, null, 8, ["text"])]),
893
+ _: 1
894
+ }),
895
+ I(B(W), null, {
896
+ default: V(() => [I(B(G), {
897
+ icon: B(b),
898
+ label: B(r).t("wise_invoicing.invoice.detail.header.invoice_date")
899
+ }, null, 8, ["icon", "label"]), I(B(K), { text: f(n.invoice.issueOn) }, null, 8, ["text"])]),
900
+ _: 1
901
+ }),
902
+ I(B(W), null, {
903
+ default: V(() => [I(B(G), {
904
+ icon: B(y),
905
+ label: B(r).t("wise_invoicing.invoice.detail.header.due_date"),
906
+ variant: n.invoice.isOverdue ? "error" : "default"
907
+ }, null, 8, [
908
+ "icon",
909
+ "label",
910
+ "variant"
911
+ ]), I(B(J), { gap: "xs" }, {
912
+ default: V(() => [I(B(K), {
913
+ text: f(n.invoice.dueOn),
914
+ variant: n.invoice.isOverdue ? "error" : "default"
915
+ }, null, 8, ["text", "variant"]), u.value === null ? N("", !0) : (z(), M(B(U), {
916
+ key: 0,
917
+ label: u.value,
918
+ color: "error",
919
+ size: "sm",
920
+ variant: "translucent"
921
+ }, null, 8, ["label"]))]),
922
+ _: 1
923
+ })]),
924
+ _: 1
925
+ }),
926
+ B(a).isDeliveryDateVisible.value ? (z(), M(B(W), { key: 0 }, {
927
+ default: V(() => [I(B(G), {
928
+ icon: B(ce),
929
+ label: B(r).t("wise_invoicing.invoice.detail.header.delivery_date")
930
+ }, null, 8, ["icon", "label"]), I(B(K), { text: f(n.invoice.deliveredOn) }, null, 8, ["text"])]),
931
+ _: 1
932
+ })) : N("", !0),
933
+ I(Me, {
934
+ definitions: n.customFieldDefinitions,
935
+ values: n.invoice.customFields
936
+ }, null, 8, ["definitions", "values"])
937
+ ]),
938
+ _: 2
939
+ }, [c.value ? {
940
+ name: "actions",
941
+ fn: V(() => [I(B(Tt), {
942
+ icon: B(S),
943
+ label: B(r).t("wise_invoicing.invoice.detail.header.edit_info"),
944
+ variant: "tertiary",
945
+ onClick: d
946
+ }, null, 8, ["icon", "label"])]),
947
+ key: "0"
948
+ } : void 0]), 1032, ["label"]),
949
+ I(Fe, { "original-invoice": n.invoice.originalInvoice }, null, 8, ["original-invoice"]),
950
+ I(B(ht)),
951
+ I(B(mt), {
952
+ label: B(r).t("wise_invoicing.invoice.detail.header.bill_to"),
953
+ "collapse-options": {
954
+ isCollapsible: !0,
955
+ isOpenByDefault: !0,
956
+ badge: { label: n.invoice.customer.name ?? "-" }
957
+ }
958
+ }, {
959
+ default: V(() => [I(B(W), { orientation: "vertical" }, {
960
+ default: V(() => [I(B(Y), {
961
+ text: n.invoice.customer.name ?? "-",
962
+ class: "text-xs font-medium"
963
+ }, null, 8, ["text"]), n.invoice.customer.address ? (z(), P(A, { key: 0 }, [I(B(Y), {
964
+ text: B(g).formatLines(n.invoice.customer.address)[0] ?? "",
965
+ class: "text-xs"
966
+ }, null, 8, ["text"]), n.invoice.customer.address ? (z(), M(B(Y), {
967
+ key: 0,
968
+ text: B(g).formatLines(n.invoice.customer.address)[1] ?? "",
969
+ class: "text-xs"
970
+ }, null, 8, ["text"])) : N("", !0)], 64)) : N("", !0)]),
971
+ _: 1
972
+ })]),
973
+ _: 1
974
+ }, 8, ["label", "collapse-options"]),
975
+ I(B(ht)),
976
+ I(B(mt), {
977
+ label: B(r).t("wise_invoicing.invoice.detail.header.bill_from"),
978
+ "collapse-options": {
979
+ isCollapsible: !0,
980
+ isOpenByDefault: !1,
981
+ badge: { label: n.invoice.issuer.email ?? "-" }
982
+ }
983
+ }, {
984
+ default: V(() => [I(B(W), { orientation: "vertical" }, {
985
+ default: V(() => [I(B(G), { label: n.invoice.issuer.email ?? "-" }, null, 8, ["label"]), n.invoice.issuer.address ? (z(), M(B(K), {
986
+ key: 0,
987
+ text: B(g).format(n.invoice.issuer.address)
988
+ }, null, 8, ["text"])) : N("", !0)]),
989
+ _: 1
990
+ })]),
991
+ _: 1
992
+ }, 8, ["label", "collapse-options"])
993
+ ]),
994
+ _: 1
995
+ }));
996
+ }
997
+ }), ln = /* @__PURE__ */ L({
998
+ __name: "InvoiceDetailSidebar",
999
+ props: {
1000
+ customFieldDefinitions: {},
1001
+ invoice: {}
1002
+ },
1003
+ setup(e) {
1004
+ let t = e, n = k(), r = C(), i = j(() => n.t("wise_invoicing.invoice.detail.sidebar.updated_on", { date: r.toDateTime(t.invoice.updatedAt) }));
1005
+ return (e, n) => (z(), M(Re, {
1006
+ "billing-document": t.invoice,
1007
+ "updated-footer": i.value
1008
+ }, {
1009
+ activity: V(() => [I(rn, { invoice: t.invoice }, null, 8, ["invoice"])]),
1010
+ info: V(() => [I(cn, {
1011
+ "custom-field-definitions": t.customFieldDefinitions,
1012
+ invoice: t.invoice
1013
+ }, null, 8, ["custom-field-definitions", "invoice"])]),
1014
+ _: 1
1015
+ }, 8, ["billing-document", "updated-footer"]));
1016
+ }
1017
+ });
1018
+ //#endregion
1019
+ //#region src/modules/invoice/api/mutations/invoicePaymentDelete.mutation.ts
1020
+ function un() {
1021
+ return H({
1022
+ queryFn: (e) => m.deletePayment(e.params.invoiceUuid, e.params.paymentUuid),
1023
+ queryKeysToInvalidate: {
1024
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
1025
+ invoicePaymentIndex: { invoiceUuid: (e) => e.invoiceUuid }
1026
+ }
1027
+ });
1028
+ }
1029
+ //#endregion
1030
+ //#region src/modules/invoice/api/queries/invoicePaymentIndex.query.ts
1031
+ function dn(e) {
1032
+ return at("invoicePaymentIndex", {
1033
+ params: { invoiceUuid: e },
1034
+ queryFn: () => m.getPayments(e.value)
1035
+ });
1036
+ }
1037
+ //#endregion
1038
+ //#region src/modules/invoice/use-cases/detail/components/table/InvoiceDetailPaymentActionsCell.vue
1039
+ var fn = /* @__PURE__ */ L({
1040
+ __name: "InvoiceDetailPaymentActionsCell",
1041
+ props: {
1042
+ payment: {},
1043
+ onDelete: { type: Function }
1044
+ },
1045
+ setup(e) {
1046
+ let t = e, r = k();
1047
+ return (e, i) => (z(), M(B(kt), null, {
1048
+ default: V(() => [I(B(At), null, {
1049
+ default: V(() => [t.payment.source === B(n).MANUAL ? (z(), M(B(Tt), {
1050
+ key: 0,
1051
+ label: B(r).t("wise_invoicing.invoice.detail.payments.delete.title"),
1052
+ icon: B(_e),
1053
+ size: "sm",
1054
+ variant: "tertiary",
1055
+ onClick: i[0] ||= (e) => t.onDelete(t.payment)
1056
+ }, null, 8, ["label", "icon"])) : N("", !0)]),
1057
+ _: 1
1058
+ })]),
1059
+ _: 1
1060
+ }));
1061
+ }
1062
+ }), pn = /* @__PURE__ */ L({
1063
+ __name: "InvoiceDetailPaymentManualCell",
1064
+ props: { payment: {} },
1065
+ setup(e) {
1066
+ let t = e;
1067
+ return (e, r) => (z(), M(B(kt), null, {
1068
+ default: V(() => [t.payment.source === B(n).MANUAL ? (z(), M(B(ge), {
1069
+ key: 0,
1070
+ class: "size-4 text-brand-600"
1071
+ })) : N("", !0)]),
1072
+ _: 1
1073
+ }));
1074
+ }
1075
+ }), $ = /* @__PURE__ */ L({
1076
+ __name: "InvoiceDetailPaymentsTableTextCell",
1077
+ props: { text: {} },
1078
+ setup(e) {
1079
+ let t = e;
1080
+ return (e, n) => (z(), M(B(kt), null, {
1081
+ default: V(() => [I(B(Y), {
1082
+ text: t.text ?? "-",
1083
+ class: "text-sm/5 text-primary"
1084
+ }, null, 8, ["text"])]),
1085
+ _: 1
1086
+ }));
1087
+ }
1088
+ });
1089
+ //#endregion
1090
+ //#region src/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.ts
1091
+ function mn(e) {
1092
+ let t = k(), n = C(), r = u();
1093
+ return j(() => Nt()([
1094
+ {
1095
+ headerLabel: t.t("wise_invoicing.invoice.detail.payments.columns.date"),
1096
+ key: "date",
1097
+ size: {
1098
+ max: "12rem",
1099
+ min: "12rem"
1100
+ },
1101
+ component: (e) => X($, { text: n.formatPlainDate(e.date) })
1102
+ },
1103
+ {
1104
+ headerLabel: t.t("wise_invoicing.invoice.detail.payments.columns.reference"),
1105
+ key: "reference",
1106
+ size: {
1107
+ max: "14rem",
1108
+ min: "12rem"
1109
+ },
1110
+ component: (e) => X($, { text: e.paymentReference ?? "—" })
1111
+ },
1112
+ {
1113
+ headerLabel: t.t("wise_invoicing.invoice.detail.payments.columns.remark"),
1114
+ key: "remark",
1115
+ size: {
1116
+ max: "1fr",
1117
+ min: "12rem"
1118
+ },
1119
+ component: (e) => X($, { text: e.remarks ?? "—" })
1120
+ },
1121
+ {
1122
+ headerLabel: t.t("wise_invoicing.invoice.detail.payments.columns.manual"),
1123
+ key: "manual",
1124
+ size: {
1125
+ max: "6rem",
1126
+ min: "6rem"
1127
+ },
1128
+ component: (e) => X(pn, { payment: e })
1129
+ },
1130
+ {
1131
+ headerLabel: t.t("wise_invoicing.invoice.detail.payments.columns.amount"),
1132
+ key: "amount",
1133
+ size: {
1134
+ max: "10rem",
1135
+ min: "10rem"
1136
+ },
1137
+ component: (e) => X($, { text: r.formatMonetary(e.amount) })
1138
+ },
1139
+ {
1140
+ headerLabel: "",
1141
+ key: "actions",
1142
+ size: {
1143
+ max: "5rem",
1144
+ min: "5rem"
1145
+ },
1146
+ component: (t) => X(fn, {
1147
+ payment: t,
1148
+ onDelete: e.onDelete
1149
+ })
1150
+ }
1151
+ ]));
1152
+ }
1153
+ //#endregion
1154
+ //#region src/modules/invoice/api/mutations/invoicePaymentCreate.mutation.ts
1155
+ function hn() {
1156
+ return H({
1157
+ queryFn: (e) => m.createPayment(e.params.invoiceUuid, e.body),
1158
+ queryKeysToInvalidate: {
1159
+ invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid },
1160
+ invoicePaymentIndex: { invoiceUuid: (e) => e.invoiceUuid }
1161
+ }
1162
+ });
1163
+ }
1164
+ //#endregion
1165
+ //#region src/modules/invoice/models/invoice/payment/invoicePaymentCreateForm.model.ts
1166
+ var gn = O.object({
1167
+ amount: O.number().positive(),
1168
+ currency: O.enum(r),
1169
+ date: f,
1170
+ paymentReference: O.string().nullable(),
1171
+ precision: O.number().int().nonnegative(),
1172
+ remarks: O.string().nullable()
1173
+ }), _n = { class: "pr-md text-xs text-secondary" }, vn = /* @__PURE__ */ L({
1174
+ __name: "InvoicePaymentCreateDialog",
1175
+ props: { invoice: {} },
1176
+ emits: ["close"],
1177
+ setup(e, { emit: t }) {
1178
+ let n = e, r = t, i = k(), a = Z(), o = u(), s = hn(), c = j(() => o.getSymbol(n.invoice.grossAmount.currency)), l = Q({
1179
+ initialState: {
1180
+ amount: null,
1181
+ currency: n.invoice.grossAmount.currency,
1182
+ date: d.getToday(),
1183
+ paymentReference: null,
1184
+ precision: n.invoice.grossAmount.precision,
1185
+ remarks: null
1186
+ },
1187
+ schema: gn,
1188
+ onSubmit: async (e) => {
1189
+ let t = await s.execute({
1190
+ body: e,
1191
+ params: { invoiceUuid: n.invoice.uuid }
1192
+ });
1193
+ if (t.isErr()) {
1194
+ a.apiError(t.error);
1195
+ return;
1196
+ }
1197
+ a.show({ message: i.t("wise_invoicing.invoice.detail.payments.create.success") }), r("close");
1198
+ },
1199
+ onSubmitError: () => {
1200
+ a.unableToSave();
1201
+ }
1202
+ }), f = l.register("amount"), p = l.register("date"), m = l.register("paymentReference"), h = l.register("remarks");
1203
+ return (e, t) => (z(), M(B(q), {
1204
+ form: B(l),
1205
+ size: "sm",
1206
+ onClose: t[0] ||= (e) => r("close")
1207
+ }, {
1208
+ default: V(() => [
1209
+ I(B(bt), {
1210
+ title: B(i).t("wise_invoicing.invoice.detail.payments.create.title"),
1211
+ description: B(i).t("wise_invoicing.invoice.detail.payments.create.description"),
1212
+ icon: B(fe),
1213
+ "is-description-visible": !0
1214
+ }, null, 8, [
1215
+ "title",
1216
+ "description",
1217
+ "icon"
1218
+ ]),
1219
+ I(B(gt), null, {
1220
+ default: V(() => [I(B(Ct), null, {
1221
+ default: V(() => [I(B(St), {
1222
+ lg: 2,
1223
+ sm: 1
1224
+ }, {
1225
+ default: V(() => [
1226
+ I(B(Et), R(B(D)(B(f)), {
1227
+ "is-required": !0,
1228
+ label: B(i).t("wise_invoicing.invoice.detail.payments.create.fields.amount"),
1229
+ min: .01,
1230
+ step: .01
1231
+ }), {
1232
+ right: V(() => [F("span", _n, tt(c.value.symbol), 1)]),
1233
+ _: 1
1234
+ }, 16, ["label"]),
1235
+ I(B(ft), R(B(D)(B(p)), {
1236
+ "is-required": !0,
1237
+ label: B(i).t("wise_invoicing.invoice.detail.payments.create.fields.date")
1238
+ }), null, 16, ["label"]),
1239
+ I(B(jt), R(B(D)(B(m)), { label: B(i).t("wise_invoicing.invoice.detail.payments.create.fields.reference") }), null, 16, ["label"]),
1240
+ I(B(jt), R(B(D)(B(h)), { label: B(i).t("wise_invoicing.invoice.detail.payments.create.fields.remarks") }), null, 16, ["label"])
1241
+ ]),
1242
+ _: 1
1243
+ })]),
1244
+ _: 1
1245
+ })]),
1246
+ _: 1
1247
+ }),
1248
+ I(B(_t), null, {
1249
+ right: V(() => [I(B(vt), { label: "cancel" }), I(B(wt), { label: B(i).t("wise_invoicing.invoice.detail.payments.create.submit") }, null, 8, ["label"])]),
1250
+ _: 1
1251
+ })
1252
+ ]),
1253
+ _: 1
1254
+ }, 8, ["form"]));
1255
+ }
1256
+ }), yn = /* @__PURE__ */ L({
1257
+ __name: "InvoiceDetailPaymentsSection",
1258
+ props: { invoice: {} },
1259
+ setup(e) {
1260
+ let t = e, n = k(), r = u(), i = j(() => t.invoice.uuid), a = j(() => t.invoice.balanceDueAmount === null ? null : r.formatMonetary(t.invoice.balanceDueAmount)), { isLoading: o, result: s } = dn(i), c = Pt(), l = Z(), d = c.create(vn), f = c.create(dt), p = un(), m = j(() => s.value.match({
1261
+ err: () => [],
1262
+ loading: () => [],
1263
+ ok: (e) => e
1264
+ })), h = j(() => s.value.match({
1265
+ err: (e) => e,
1266
+ loading: () => null,
1267
+ ok: () => null
1268
+ })), g = j(() => !T.getMetadata(t.invoice.status).isTerminal);
1269
+ function _() {
1270
+ d.open({ invoice: t.invoice });
1271
+ }
1272
+ function v(e) {
1273
+ f.open({
1274
+ title: n.t("wise_invoicing.invoice.detail.payments.delete.title"),
1275
+ isDestructive: !0,
1276
+ confirmLabel: n.t("wise_invoicing.invoice.detail.payments.delete.submit"),
1277
+ description: n.t("wise_invoicing.invoice.detail.payments.delete.description"),
1278
+ onConfirm: async () => {
1279
+ let r = await p.execute({ params: {
1280
+ invoiceUuid: t.invoice.uuid,
1281
+ paymentUuid: e.uuid
1282
+ } });
1283
+ if (r.isErr()) {
1284
+ l.apiError(r.error);
1285
+ return;
1286
+ }
1287
+ l.show({ message: n.t("wise_invoicing.invoice.detail.payments.delete.success") }), f.close();
1288
+ }
1289
+ });
1290
+ }
1291
+ let y = mn({ onDelete: v });
1292
+ return (e, t) => (z(), M(Le, null, {
1293
+ default: V(() => [I(B(J), {
1294
+ justify: "between",
1295
+ class: "w-full gap-lg border-b border-secondary px-lg py-md"
1296
+ }, {
1297
+ default: V(() => [I(B(J), { gap: "sm" }, {
1298
+ default: V(() => [I(B(Y), {
1299
+ text: B(n).t("wise_invoicing.invoice.detail.payments.title"),
1300
+ as: "h2",
1301
+ class: "text-sm font-semibold text-primary"
1302
+ }, null, 8, ["text"]), a.value === null ? N("", !0) : (z(), M(B(U), {
1303
+ key: 0,
1304
+ color: "gray",
1305
+ size: "sm",
1306
+ variant: "outline"
1307
+ }, {
1308
+ default: V(() => [
1309
+ I(B(st), { label: B(n).t("wise_invoicing.invoice.detail.payments.balance_due") }, null, 8, ["label"]),
1310
+ I(B(ct)),
1311
+ I(B(st), { label: a.value }, null, 8, ["label"])
1312
+ ]),
1313
+ _: 1
1314
+ }))]),
1315
+ _: 1
1316
+ }), g.value ? (z(), M(B(lt), {
1317
+ key: 0,
1318
+ label: B(n).t("wise_invoicing.invoice.detail.payments.add"),
1319
+ "icon-left": B(me),
1320
+ size: "sm",
1321
+ onClick: _
1322
+ }, null, 8, ["label", "icon-left"])) : N("", !0)]),
1323
+ _: 1
1324
+ }), I(B(Ot), {
1325
+ "active-filter-count": 0,
1326
+ columns: B(y),
1327
+ data: m.value,
1328
+ error: h.value,
1329
+ "get-key": (e) => e.uuid,
1330
+ "has-active-search": !1,
1331
+ "header-actions": [],
1332
+ "is-fetching-next-page": !1,
1333
+ "is-loading": B(o)
1334
+ }, null, 8, [
1335
+ "columns",
1336
+ "data",
1337
+ "error",
1338
+ "get-key",
1339
+ "is-loading"
1340
+ ])]),
1341
+ _: 1
1342
+ }));
1343
+ }
1344
+ });
1345
+ //#endregion
1346
+ //#region src/modules/invoice/api/mutations/invoiceUpdateLines.mutation.ts
1347
+ function bn() {
1348
+ return H({
1349
+ queryFn: (e) => m.updateLines(e.params.invoiceUuid, e.body),
1350
+ queryKeysToInvalidate: { invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid } }
1351
+ });
1352
+ }
1353
+ //#endregion
1354
+ //#region src/modules/invoice/api/mutations/invoiceApplyDiscount.mutation.ts
1355
+ function xn() {
1356
+ return H({
1357
+ queryFn: (e) => m.applyDiscount(e.params.invoiceUuid, e.body),
1358
+ queryKeysToInvalidate: { invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid } }
1359
+ });
1360
+ }
1361
+ //#endregion
1362
+ //#region src/modules/invoice/models/invoice/update/invoiceApplyDiscountForm.model.ts
1363
+ var Sn = O.object({
1364
+ currency: O.enum(r),
1365
+ precision: O.number().int().nonnegative(),
1366
+ type: O.enum(a),
1367
+ value: O.number()
1368
+ }).refine((e) => e.type !== a.PERCENTAGE || e.value <= 100, { path: ["value"] }), Cn = { class: "pr-md text-xs text-secondary" }, wn = /* @__PURE__ */ L({
1369
+ __name: "InvoiceApplyDiscountDialog",
1370
+ props: { invoice: {} },
1371
+ emits: ["close"],
1372
+ setup(e, { emit: t }) {
1373
+ let n = e, r = t, i = k(), o = Z(), s = u(), c = xn(), l = j(() => Mt([a.PERCENTAGE, a.AMOUNT])), d = Q({
1374
+ initialState: {
1375
+ currency: n.invoice.grossAmount.currency,
1376
+ precision: n.invoice.grossAmount.precision,
1377
+ type: a.PERCENTAGE,
1378
+ value: null
1379
+ },
1380
+ schema: Sn,
1381
+ onSubmit: async (e) => {
1382
+ let t = await c.execute({
1383
+ body: e,
1384
+ params: { invoiceUuid: n.invoice.uuid }
1385
+ });
1386
+ if (t.isErr()) {
1387
+ o.apiError(t.error);
1388
+ return;
1389
+ }
1390
+ r("close");
1391
+ },
1392
+ onSubmitError: () => {
1393
+ o.unableToSave();
1394
+ }
1395
+ }), f = d.register("value"), p = d.register("type"), m = j(() => p.modelValue.value === a.PERCENTAGE), h = j(() => p.modelValue.value === a.AMOUNT), g = j(() => s.getSymbol(n.invoice.grossAmount.currency));
1396
+ function _(e) {
1397
+ return i.t(`wise_invoicing.invoice.detail.global_discount.type.${e}`);
1398
+ }
1399
+ return (e, t) => (z(), M(B(q), {
1400
+ form: B(d),
1401
+ size: "sm",
1402
+ onClose: t[0] ||= (e) => r("close")
1403
+ }, {
1404
+ default: V(() => [
1405
+ I(B(bt), {
1406
+ title: B(i).t("wise_invoicing.invoice.detail.line_items.global_discount"),
1407
+ description: B(i).t("wise_invoicing.invoice.detail.global_discount.description"),
1408
+ icon: B(le),
1409
+ "is-description-visible": !0
1410
+ }, null, 8, [
1411
+ "title",
1412
+ "description",
1413
+ "icon"
1414
+ ]),
1415
+ I(B(gt), null, {
1416
+ default: V(() => [I(B(Ct), null, {
1417
+ default: V(() => [I(B(St), {
1418
+ lg: 2,
1419
+ sm: 1
1420
+ }, {
1421
+ default: V(() => [
1422
+ I(B(Dt), R(B(D)(B(p)), {
1423
+ "display-fn": _,
1424
+ "is-required": !0,
1425
+ items: l.value,
1426
+ label: B(i).t("wise_invoicing.invoice.detail.global_discount.type.label")
1427
+ }), null, 16, ["items", "label"]),
1428
+ m.value ? (z(), M(B(Et), R({ key: 0 }, B(D)(B(f)), {
1429
+ hint: B(i).t("wise_invoicing.invoice.detail.global_discount.amount.hint"),
1430
+ "is-required": !0,
1431
+ label: B(i).t("wise_invoicing.invoice.detail.global_discount.amount.label"),
1432
+ max: 100,
1433
+ min: 0,
1434
+ step: .01
1435
+ }), {
1436
+ right: V(() => [...t[1] ||= [F("span", { class: "pr-md text-xs text-secondary" }, " % ", -1)]]),
1437
+ _: 1
1438
+ }, 16, ["hint", "label"])) : N("", !0),
1439
+ h.value ? (z(), M(B(Et), R({ key: 1 }, B(D)(B(f)), {
1440
+ "is-required": !0,
1441
+ label: B(i).t("wise_invoicing.invoice.detail.global_discount.amount.label"),
1442
+ min: .01,
1443
+ step: .01
1444
+ }), {
1445
+ right: V(() => [F("span", Cn, tt(g.value.symbol), 1)]),
1446
+ _: 1
1447
+ }, 16, ["label"])) : N("", !0)
1448
+ ]),
1449
+ _: 1
1450
+ })]),
1451
+ _: 1
1452
+ })]),
1453
+ _: 1
1454
+ }),
1455
+ I(B(_t), null, {
1456
+ right: V(() => [I(B(vt), { label: "cancel" }), I(B(yt), { label: B(i).t("wise_invoicing.invoice.detail.global_discount.confirm") }, null, 8, ["label"])]),
1457
+ _: 1
1458
+ })
1459
+ ]),
1460
+ _: 1
1461
+ }, 8, ["form"]));
1462
+ }
1463
+ }), Tn = /* @__PURE__ */ L({
1464
+ __name: "InvoiceLineItemsTableSection",
1465
+ props: {
1466
+ customFieldDefinitions: {},
1467
+ invoice: {}
1468
+ },
1469
+ setup(t) {
1470
+ let n = t, r = j(() => n.invoice), i = e(), a = bn(), o = j(() => T.isEditable(n.invoice.status)), s = Ne({
1471
+ isSaving: j(() => a.isLoading.value),
1472
+ billingDocument: () => r.value,
1473
+ canEdit: o,
1474
+ customFieldDefinitions: () => n.customFieldDefinitions,
1475
+ updateLines: (e) => a.execute({
1476
+ body: e,
1477
+ params: { invoiceUuid: n.invoice.uuid }
1478
+ })
1479
+ }), c = Pt().create(wn);
1480
+ function l() {
1481
+ c.open({ invoice: n.invoice });
1482
+ }
1483
+ return Ae(s), (e, t) => (z(), M(Le, null, {
1484
+ default: V(() => [
1485
+ I(Be, {
1486
+ "show-apply-discount": B(i).isGlobalDiscountEnabled.value,
1487
+ onApplyDiscount: l
1488
+ }, null, 8, ["show-apply-discount"]),
1489
+ I(Oe),
1490
+ I(Ee, { "billing-document": n.invoice }, null, 8, ["billing-document"]),
1491
+ I(ke)
1492
+ ]),
1493
+ _: 1
1494
+ }));
1495
+ }
1496
+ }), En = /* @__PURE__ */ L({
1497
+ __name: "InvoiceDetailView",
1498
+ props: {
1499
+ customFieldDefinitions: {},
1500
+ invoice: {}
1501
+ },
1502
+ setup(e) {
1503
+ let t = e, n = k(), r = $e(!1), i = j(() => [{
1504
+ label: n.t("wise_invoicing.invoice.overview.title"),
1505
+ to: { name: "invoicing-invoice-overview" }
1506
+ }, { label: t.invoice.sequence ?? t.invoice.subject ?? n.t("wise_invoicing.invoice.detail.fallback_title") }]);
1507
+ return (e, a) => (z(), M(ze, {
1508
+ "billing-document": t.invoice,
1509
+ breadcrumbs: i.value,
1510
+ title: B(n).t("wise_invoicing.invoice.detail.fallback_title")
1511
+ }, {
1512
+ header: V(() => [I(Zt, {
1513
+ invoice: t.invoice,
1514
+ "is-pdf-view-active": r.value,
1515
+ class: "w-full",
1516
+ onTogglePdfView: a[0] ||= (e) => r.value = !r.value
1517
+ }, null, 8, ["invoice", "is-pdf-view-active"])]),
1518
+ default: V(() => [r.value ? (z(), M(Ie, {
1519
+ key: 0,
1520
+ "billing-document": t.invoice,
1521
+ class: "w-full"
1522
+ }, null, 8, ["billing-document"])) : (z(), P(A, { key: 1 }, [
1523
+ I(Tn, {
1524
+ "custom-field-definitions": t.customFieldDefinitions,
1525
+ invoice: t.invoice
1526
+ }, null, 8, ["custom-field-definitions", "invoice"]),
1527
+ B(T).isEditable(t.invoice.status) ? N("", !0) : (z(), M(yn, {
1528
+ key: 0,
1529
+ invoice: t.invoice,
1530
+ class: "w-full"
1531
+ }, null, 8, ["invoice"])),
1532
+ I($t, {
1533
+ invoice: t.invoice,
1534
+ class: "w-full"
1535
+ }, null, 8, ["invoice"]),
1536
+ I(tn, {
1537
+ invoice: t.invoice,
1538
+ class: "w-full"
1539
+ }, null, 8, ["invoice"])
1540
+ ], 64))]),
1541
+ sidebar: V(() => [I(ln, {
1542
+ "custom-field-definitions": t.customFieldDefinitions,
1543
+ invoice: t.invoice
1544
+ }, null, 8, ["custom-field-definitions", "invoice"])]),
1545
+ _: 1
1546
+ }, 8, [
1547
+ "billing-document",
1548
+ "breadcrumbs",
1549
+ "title"
1550
+ ]));
1551
+ }
1552
+ }), Dn = /* @__PURE__ */ L({
1553
+ __name: "InvoiceDetailViewDataProvider",
1554
+ props: { invoiceUuid: {} },
1555
+ setup(e) {
1556
+ let t = e, n = k(), r = j(() => [{
1557
+ label: n.t("wise_invoicing.invoice.overview.title"),
1558
+ to: { name: "invoicing-invoice-overview" }
1559
+ }]), i = qe(j(() => t.invoiceUuid)), a = de();
1560
+ return (e, t) => (z(), M(Ve, {
1561
+ "custom-field-definitions-query": B(a),
1562
+ query: B(i),
1563
+ "loading-breadcrumbs": r.value
1564
+ }, {
1565
+ default: V(({ billingDocument: e, customFieldDefinitions: t }) => [I(En, {
1566
+ "custom-field-definitions": t,
1567
+ invoice: e
1568
+ }, null, 8, ["custom-field-definitions", "invoice"])]),
1569
+ _: 1
1570
+ }, 8, [
1571
+ "custom-field-definitions-query",
1572
+ "query",
1573
+ "loading-breadcrumbs"
1574
+ ]));
1575
+ }
1576
+ });
1577
+ //#endregion
1578
+ export { Dn as default };