@wisemen/wise-invoicing-web 0.0.1 → 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 -2839
  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-a0ytyQW0.js +0 -28
  517. package/dist/AirlineIcon-XwORvusp.js +0 -31
  518. package/dist/AirplaneIcon-BEkI03Xx.js +0 -21
  519. package/dist/AirportIcon-C3h1LiZq.js +0 -18
  520. package/dist/AlertTriangleIcon-AZHk_XdR.js +0 -24
  521. package/dist/AllocationsIcon-CkpunEan.js +0 -18
  522. package/dist/ArrowNarrowRightIcon-CytKHL2k.js +0 -24
  523. package/dist/AssetIcon-A3TJtt5E.js +0 -18
  524. package/dist/BarChartIcon-Bsa3V_np.js +0 -24
  525. package/dist/BellIcon-BfXQ8Jws.js +0 -23
  526. package/dist/BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-Bgw4mFeY.js +0 -5297
  527. package/dist/BuildingIcon-Cm37WXHP.js +0 -24
  528. package/dist/ChargerIcon-DrS9Hazp.js +0 -18
  529. package/dist/ChevronDownIcon-gIUiA8v4.js +0 -24
  530. package/dist/ChevronUpIcon-BkwAZanA.js +0 -24
  531. package/dist/ClockIcon-Cid1T0BU.js +0 -24
  532. package/dist/ClockSnoozeIcon-B1i2bXpx.js +0 -24
  533. package/dist/CopyIcon-DOdfevS_.js +0 -21
  534. package/dist/CreditNoteDetailViewDataProvider-DcQG7_9T.js +0 -871
  535. package/dist/CreditNotePdfViewDataProvider-t80KC3zC.js +0 -36
  536. package/dist/DownloadCloudIcon-Bws0z_Lo.js +0 -24
  537. package/dist/EditIcon-dTEv1VbR.js +0 -23
  538. package/dist/EraserIcon-D2AnLU8H.js +0 -24
  539. package/dist/FileIcon-C6hafpr3.js +0 -26
  540. package/dist/FilterLinesIcon-BONkY4PH.js +0 -24
  541. package/dist/GlobeIcon-FypkJoR2.js +0 -24
  542. package/dist/HelpIcon-CZYQyf8M.js +0 -26
  543. package/dist/HourGlassIcon-BZOAeq1R.js +0 -24
  544. package/dist/InfoCircleIcon-CChSBSvU.js +0 -24
  545. package/dist/InvoiceDetailViewDataProvider-Dy7Gel9o.js +0 -1910
  546. package/dist/InvoiceOverviewView-McZ6JthM.js +0 -4
  547. package/dist/InvoicePdfViewDataProvider-BLOLBg8f.js +0 -36
  548. package/dist/InvoicePublicPdfViewDataProvider-CpxVyTdw.js +0 -4
  549. package/dist/IssuerSettingsViewDataProvider-DZkWQL1y.js +0 -249
  550. package/dist/KeyboardIcon-DxZhamNr.js +0 -24
  551. package/dist/LinkExternalIcon-CNM5oAbx.js +0 -24
  552. package/dist/LinkIcon-DTNaK8oh.js +0 -24
  553. package/dist/MarkerIcon-Dp4v37Ny.js +0 -31
  554. package/dist/MobileBatteryIcon-Buyc8k3l.js +0 -18
  555. package/dist/MonitorIcon-6utDReTQ.js +0 -24
  556. package/dist/NotificationIcon-DzGLW6dE.js +0 -21
  557. package/dist/ParkingIcon-CR4VGiTb.js +0 -29
  558. package/dist/PlanningIcon-CjeBl0ld.js +0 -18
  559. package/dist/PreferenceIcon-BgrcKZ-o.js +0 -24
  560. package/dist/ReceiptCheckIcon-C28VfROE.js +0 -24
  561. package/dist/RefreshIcon-DaXNUJIT.js +0 -24
  562. package/dist/RemoveOpenBoundaryIcon-DRRSq0H2.js +0 -31
  563. package/dist/RewindIcon-BDXokF_B.js +0 -24
  564. package/dist/SettingsIcon-CRGzsAR5.js +0 -28
  565. package/dist/ShieldIcon-D_B27hak.js +0 -21
  566. package/dist/ShieldOffIcon-DhrrZ04Q.js +0 -24
  567. package/dist/SignOutIcon-BvHviBhP.js +0 -23
  568. package/dist/SlashCircleIcon-CZK8PQW3.js +0 -24
  569. package/dist/StandIcon-BwyMh8CM.js +0 -24
  570. package/dist/StarsIcon-BzLUvuRu.js +0 -26
  571. package/dist/StopwatchIcon-C_FPm3or.js +0 -24
  572. package/dist/TargetIcon-oklHOKhV.js +0 -24
  573. package/dist/ThreeDotsIcon-BBlmsVbB.js +0 -32
  574. package/dist/ToolIcon-BA3-Cx2i.js +0 -24
  575. package/dist/TrashIcon-CStVAH50.js +0 -21
  576. package/dist/TurnaroundIcon-DtNeWU1p.js +0 -30
  577. package/dist/UploadCloudIcon-BQvK4JT3.js +0 -24
  578. package/dist/UserIcon-M9J9Rh8O.js +0 -24
  579. package/dist/UsersIcon-Bpb0pO6w.js +0 -24
  580. package/dist/VerifiedIcon-C9sK4Nmp.js +0 -26
  581. package/dist/WifiIcon-CLYoI7rL.js +0 -24
  582. package/dist/WifiOffIcon-0wO76FFe.js +0 -24
  583. package/dist/ZapIcon-BAwpUZyX.js +0 -24
  584. package/dist/ZoomInIcon-CkXOQsMm.js +0 -24
  585. package/dist/ZoomOutIcon-CyCQzjwt.js +0 -24
  586. package/dist/creditNoteDetail.query-Dh6ej-uj.js +0 -159
  587. package/dist/index-B7DH4ueV.js +0 -22821
  588. package/dist/index-DCE3vzbe.js +0 -7
  589. package/dist/invoiceDetail.query-CDW3Zr_C.js +0 -13
  590. package/dist/issuerSettings.query-EHtcG78N.js +0 -130
  591. package/dist/style.d.ts +0 -1
  592. /package/dist/{index.css → DunningCaseReminderPdfViewDataProvider.css} +0 -0
@@ -1,1910 +0,0 @@
1
- import { openBlock as r, createElementBlock as N, createElementVNode as B, defineComponent as I, computed as c, createBlock as v, unref as e, withCtx as s, createVNode as o, Fragment as ae, renderList as Fe, ref as Te, watch as ri, createCommentVNode as x, mergeProps as T, createSlots as ui, toDisplayString as Pe } from "vue";
2
- import { useI18n as D } from "vue-i18n";
3
- import { u as di } from "./invoiceDetail.query-CDW3Zr_C.js";
4
- import { d as ge, I as h, e as Me, p as se, f as K, g as L, h as vi, S as _e, i as Se, L as mi, A as Le, j as pi, D as _i, F as fi, k as gi, l as yi, T as bi, m as wi, n as Ii, o as ye, R as $e, q as xi, r as Di, s as hi, u as Y, v as ve, w as ki, x as Ui, y as be, E as Ci, t as P, P as Si, H as Ai, U as Ei, z as Fi, B as me, G as qe, J as Ti, K as Pi, C as Re, M as Mi, N as V, O as Li } from "./index-B7DH4ueV.js";
5
- import { UIBadge as Q, UITooltip as $i, UITooltipContent as qi, UIColumnLayout as ze, UIText as q, useToast as R, UIFormDialog as le, UIDialogHeader as ce, UIDialogFooter as re, UIDialogFooterCancel as ue, UIDialogFooterSubmit as we, useOverlay as de, UIForm as Oe, UIRowLayout as J, UIDialogBody as Ie, UIFormFieldGroup as xe, UIFormFieldGrid as De, UIDateField as te, UITextField as oe, UIDetailList as Ri, UIDetailListGroup as pe, UIDetailListGroupItem as $, UIDetailListGroupItemLabel as O, UIDetailListGroupItemValueText as j, UIIconButton as je, UIDetailListGroupSeparator as Ae, UITableCell as he, UITableCellInteractiveElement as zi, defineTableColumns as Oi, createComponent as H, UINumberField as fe, UIFormSubmitButton as ji, UIConfirmDialog as Vi, UIBadgeLabel as Ee, UIBadgeSeparator as Bi, UIButton as Ni, UITable as Ki, createSelectOptions as Gi, UISelect as Hi } from "@wisemen/vue-core-design-system";
6
- import { useForm as Z } from "formango";
7
- import Qi, { z as w } from "zod";
8
- import { _ as Zi, u as Wi, F as Ji, B as Ve, a as Be, b as Yi, c as Xi, d as en, e as nn, f as tn, g as on, h as an, i as Ne, j as sn, k as ln, l as cn, m as rn, n as un, o as dn, p as vn, q as mn, r as pn } from "./BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-Bgw4mFeY.js";
9
- import { useMutation as S, useKeysetInfiniteQuery as _n, useQuery as fn } from "@wisemen/vue-core-api-utils";
10
- import { Temporal as Ke } from "temporal-polyfill";
11
- import { useRouter as Ge, RouterLink as gn } from "vue-router";
12
- import { u as yn } from "./issuerSettings.query-EHtcG78N.js";
13
- const bn = {}, wn = {
14
- width: "100%",
15
- height: "100%",
16
- viewBox: "0 0 24 24",
17
- fill: "none",
18
- xmlns: "http://www.w3.org/2000/svg"
19
- };
20
- function In(i, n) {
21
- return r(), N("svg", wn, [...n[0] || (n[0] = [
22
- B("path", {
23
- d: "M6 16C6 18.2091 7.79086 20 10 20H14C16.2091 20 18 18.2091 18 16C18 13.7909 16.2091 12 14 12H10C7.79086 12 6 10.2091 6 8C6 5.79086 7.79086 4 10 4H14C16.2091 4 18 5.79086 18 8M12 2V22",
24
- stroke: "currentColor",
25
- "stroke-width": "2",
26
- "stroke-linecap": "round",
27
- "stroke-linejoin": "round"
28
- }, null, -1)
29
- ])]);
30
- }
31
- const xn = /* @__PURE__ */ ge(bn, [["render", In]]), Dn = {}, hn = {
32
- width: "100%",
33
- height: "100%",
34
- viewBox: "0 0 24 24",
35
- fill: "none",
36
- xmlns: "http://www.w3.org/2000/svg"
37
- };
38
- function kn(i, n) {
39
- return r(), N("svg", hn, [...n[0] || (n[0] = [
40
- B("path", {
41
- d: "M12 5V19M5 12H19",
42
- stroke: "currentColor",
43
- "stroke-width": "2",
44
- "stroke-linecap": "round",
45
- "stroke-linejoin": "round"
46
- }, null, -1)
47
- ])]);
48
- }
49
- const Un = /* @__PURE__ */ ge(Dn, [["render", kn]]), Cn = {}, Sn = {
50
- width: "100%",
51
- height: "100%",
52
- viewBox: "0 0 24 24",
53
- fill: "none",
54
- xmlns: "http://www.w3.org/2000/svg"
55
- };
56
- function An(i, n) {
57
- return r(), N("svg", Sn, [...n[0] || (n[0] = [
58
- B("path", {
59
- d: "M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6",
60
- stroke: "currentColor",
61
- "stroke-width": "2",
62
- "stroke-linecap": "round",
63
- "stroke-linejoin": "round"
64
- }, null, -1)
65
- ])]);
66
- }
67
- const En = /* @__PURE__ */ ge(Cn, [["render", An]]);
68
- function ke() {
69
- return S({
70
- queryFn: (i) => h.update(
71
- i.params.invoiceUuid,
72
- i.body
73
- ),
74
- queryKeysToInvalidate: {
75
- invoiceDetail: {
76
- invoiceUuid: (i) => i.invoiceUuid
77
- },
78
- invoiceIndex: {}
79
- }
80
- });
81
- }
82
- const Fn = /* @__PURE__ */ I({
83
- __name: "InvoiceDeliveryStatusBadge",
84
- props: {
85
- deliveryStatus: {},
86
- size: { default: "sm" }
87
- },
88
- setup(i) {
89
- const n = i, t = D(), l = c(
90
- () => Me.getMetadata(n.deliveryStatus)
91
- ), a = c(() => t.t(l.value.translationKey));
92
- return (m, d) => (r(), v(e(Q), {
93
- label: a.value,
94
- color: l.value.tone,
95
- size: n.size,
96
- variant: "translucent"
97
- }, null, 8, ["label", "color", "size"]));
98
- }
99
- }), Tn = /* @__PURE__ */ I({
100
- __name: "InvoiceReminderBadge",
101
- props: {
102
- reminders: {},
103
- size: { default: "sm" }
104
- },
105
- setup(i) {
106
- const n = i, t = D(), l = se(), a = c(() => t.t("wise_invoicing.invoice.reminder.badge", {
107
- count: n.reminders.length
108
- }));
109
- function m(d) {
110
- return l.formatPlainDate(
111
- d.toZonedDateTimeISO(Ke.Now.timeZoneId()).toPlainDate()
112
- );
113
- }
114
- return (d, f) => (r(), v(e($i), {
115
- "popover-side-offset": 8,
116
- "popover-align": "start",
117
- "popover-side": "bottom"
118
- }, {
119
- trigger: s(() => [
120
- o(e(Q), {
121
- label: a.value,
122
- size: n.size,
123
- color: "gray",
124
- variant: "translucent"
125
- }, null, 8, ["label", "size"])
126
- ]),
127
- content: s(() => [
128
- o(e(qi), null, {
129
- default: s(() => [
130
- o(e(ze), {
131
- gap: "xs",
132
- class: "max-w-80"
133
- }, {
134
- default: s(() => [
135
- (r(!0), N(ae, null, Fe(n.reminders, (p, _) => (r(), v(e(q), {
136
- key: p.uuid,
137
- text: e(t).t("wise_invoicing.invoice.reminder.tooltip_line", {
138
- number: _ + 1,
139
- date: m(p.sentAt)
140
- }),
141
- class: "text-sm text-primary"
142
- }, null, 8, ["text"]))), 128))
143
- ]),
144
- _: 1
145
- })
146
- ]),
147
- _: 1
148
- })
149
- ]),
150
- _: 1
151
- }));
152
- }
153
- }), Pn = w.string().nullable(), Mn = w.object({
154
- subject: Pn
155
- });
156
- function Ln() {
157
- return S({
158
- queryFn: (i) => h.createCreditNote(
159
- i.params.invoiceUuid
160
- ),
161
- queryKeysToInvalidate: {
162
- invoiceDetail: {
163
- invoiceUuid: (i) => i.invoiceUuid
164
- },
165
- invoiceIndex: {}
166
- }
167
- });
168
- }
169
- function $n() {
170
- return S({
171
- queryFn: (i) => h.duplicate(
172
- i.params.invoiceUuid
173
- ),
174
- queryKeysToInvalidate: {
175
- invoiceIndex: {}
176
- }
177
- });
178
- }
179
- function qn() {
180
- return S({
181
- queryFn: (i) => h.finalize(
182
- i.params.invoiceUuid
183
- ),
184
- queryKeysToInvalidate: {
185
- invoiceDetail: {
186
- invoiceUuid: (i) => i.invoiceUuid
187
- },
188
- invoiceIndex: {}
189
- }
190
- });
191
- }
192
- function Rn() {
193
- return S({
194
- queryFn: (i) => h.markAsDraft(
195
- i.params.invoiceUuid
196
- ),
197
- queryKeysToInvalidate: {
198
- invoiceDetail: {
199
- invoiceUuid: (i) => i.invoiceUuid
200
- },
201
- invoiceIndex: {}
202
- }
203
- });
204
- }
205
- function zn() {
206
- return S({
207
- queryFn: (i) => h.markAsPaid(
208
- i.params.invoiceUuid
209
- ),
210
- queryKeysToInvalidate: {
211
- invoiceDetail: {
212
- invoiceUuid: (i) => i.invoiceUuid
213
- },
214
- invoiceIndex: {}
215
- }
216
- });
217
- }
218
- function On() {
219
- return S({
220
- queryFn: (i) => h.markAsProtested(
221
- i.params.invoiceUuid
222
- ),
223
- queryKeysToInvalidate: {
224
- invoiceDetail: {
225
- invoiceUuid: (i) => i.invoiceUuid
226
- },
227
- invoiceIndex: {}
228
- }
229
- });
230
- }
231
- function jn() {
232
- return S({
233
- queryFn: (i) => h.markAsReady(
234
- i.params.invoiceUuid
235
- ),
236
- queryKeysToInvalidate: {
237
- invoiceDetail: {
238
- invoiceUuid: (i) => i.invoiceUuid
239
- },
240
- invoiceIndex: {}
241
- }
242
- });
243
- }
244
- function Vn() {
245
- return S({
246
- queryFn: (i) => h.send(
247
- i.params.invoiceUuid
248
- ),
249
- queryKeysToInvalidate: {
250
- invoiceDetail: {
251
- invoiceUuid: (i) => i.invoiceUuid
252
- },
253
- invoiceIndex: {}
254
- }
255
- });
256
- }
257
- function Bn() {
258
- return S({
259
- queryFn: (i) => h.withdrawProtest(
260
- i.params.invoiceUuid
261
- ),
262
- queryKeysToInvalidate: {
263
- invoiceDetail: {
264
- invoiceUuid: (i) => i.invoiceUuid
265
- },
266
- invoiceIndex: {}
267
- }
268
- });
269
- }
270
- function Nn() {
271
- return S({
272
- queryFn: (i) => h.delete(i.params.invoiceUuid),
273
- queryKeysToInvalidate: {
274
- invoiceIndex: {}
275
- }
276
- });
277
- }
278
- const Kn = /* @__PURE__ */ I({
279
- __name: "InvoiceDeleteDialog",
280
- props: {
281
- invoice: {}
282
- },
283
- emits: ["close", "deleted"],
284
- setup(i, { emit: n }) {
285
- const t = i, l = n, a = D(), m = Ge(), d = R(), f = Nn(), p = Z({
286
- schema: Qi.object({}),
287
- onSubmit: async () => {
288
- const _ = await f.execute({
289
- params: {
290
- invoiceUuid: t.invoice.uuid
291
- }
292
- });
293
- if (_.isErr()) {
294
- d.apiError(_.error);
295
- return;
296
- }
297
- d.show({
298
- message: a.t("wise_invoicing.invoice.delete.success_toast")
299
- }), l("deleted"), l("close"), await m.push({
300
- name: "invoicing-invoice-overview"
301
- });
302
- }
303
- });
304
- return (_, g) => (r(), v(e(le), {
305
- form: e(p),
306
- size: "xs",
307
- onClose: g[0] || (g[0] = (b) => l("close"))
308
- }, {
309
- default: s(() => [
310
- o(e(ce), {
311
- title: e(a).t("wise_invoicing.invoice.delete.title"),
312
- description: e(a).t("wise_invoicing.invoice.delete.description"),
313
- "is-description-visible": !0
314
- }, null, 8, ["title", "description"]),
315
- o(e(re), null, {
316
- right: s(() => [
317
- o(e(ue), { label: "cancel" }),
318
- o(e(we), {
319
- "is-destructive": !0,
320
- label: e(a).t("wise_invoicing.invoice.delete.submit_button")
321
- }, null, 8, ["label"])
322
- ]),
323
- _: 1
324
- })
325
- ]),
326
- _: 1
327
- }, 8, ["form"]));
328
- }
329
- });
330
- function Gn(i) {
331
- const n = D(), t = R(), l = Ge(), a = de(), m = a.create(Kn), d = a.create(Zi), f = Vn(), p = Ln(), _ = $n(), g = qn(), b = Rn(), E = zn(), M = On(), F = jn(), U = Bn(), {
332
- shouldSkipConfirmation: C
333
- } = Wi(), y = Te(null), A = c(() => K.getMetadata(i.value.status)), k = c(() => y.value ?? i.value.isDisputed), G = c(() => i.value.status !== L.DRAFT && i.value.status !== L.READY), X = c(() => i.value.lifecycleStatus === vi.FINALIZED), Qe = c(() => (i.value.status === L.SENT || i.value.status === L.OVERDUE) && i.value.reminders.length < i.value.maxReminderCount);
334
- function ee(u) {
335
- return A.value.actions.includes(u);
336
- }
337
- ri(() => i.value.isDisputed, (u) => {
338
- y.value === u && (y.value = null);
339
- });
340
- async function Ue() {
341
- const u = await g.execute({
342
- params: {
343
- invoiceUuid: i.value.uuid
344
- }
345
- });
346
- return u.isErr() ? (t.apiError(u.error), !1) : (t.show({
347
- message: n.t("wise_invoicing.invoice.finalize.success")
348
- }), !0);
349
- }
350
- async function Ze() {
351
- if (C.value) {
352
- await Ue();
353
- return;
354
- }
355
- await d.open({
356
- billingDocumentType: "invoice",
357
- onConfirm: Ue
358
- });
359
- }
360
- async function We() {
361
- const u = await F.execute({
362
- params: {
363
- invoiceUuid: i.value.uuid
364
- }
365
- });
366
- if (u.isErr()) {
367
- t.apiError(u.error);
368
- return;
369
- }
370
- t.show({
371
- message: n.t("wise_invoicing.invoice.mark_as_ready.success")
372
- });
373
- }
374
- async function Je() {
375
- const u = await b.execute({
376
- params: {
377
- invoiceUuid: i.value.uuid
378
- }
379
- });
380
- if (u.isErr()) {
381
- t.apiError(u.error);
382
- return;
383
- }
384
- t.show({
385
- message: n.t("wise_invoicing.invoice.mark_as_draft.success")
386
- });
387
- }
388
- async function Ye() {
389
- const u = await E.execute({
390
- params: {
391
- invoiceUuid: i.value.uuid
392
- }
393
- });
394
- if (u.isErr()) {
395
- t.apiError(u.error);
396
- return;
397
- }
398
- t.show({
399
- message: n.t("wise_invoicing.invoice.mark_as_paid.success")
400
- });
401
- }
402
- async function Xe() {
403
- y.value = !0;
404
- const u = await M.execute({
405
- params: {
406
- invoiceUuid: i.value.uuid
407
- }
408
- });
409
- if (u.isErr()) {
410
- y.value = null, t.apiError(u.error);
411
- return;
412
- }
413
- t.show({
414
- message: n.t("wise_invoicing.invoice.mark_as_disputed.success")
415
- });
416
- }
417
- async function ei() {
418
- y.value = !1;
419
- const u = await U.execute({
420
- params: {
421
- invoiceUuid: i.value.uuid
422
- }
423
- });
424
- if (u.isErr()) {
425
- y.value = null, t.apiError(u.error);
426
- return;
427
- }
428
- t.show({
429
- message: n.t("wise_invoicing.invoice.withdraw_dispute.success")
430
- });
431
- }
432
- async function ii() {
433
- const u = await f.execute({
434
- params: {
435
- invoiceUuid: i.value.uuid
436
- }
437
- });
438
- if (u.isErr()) {
439
- t.apiError(u.error);
440
- return;
441
- }
442
- t.show({
443
- message: n.t("wise_invoicing.invoice.send.success")
444
- });
445
- }
446
- async function ni() {
447
- const u = await f.execute({
448
- params: {
449
- invoiceUuid: i.value.uuid
450
- }
451
- });
452
- if (u.isErr()) {
453
- t.apiError(u.error);
454
- return;
455
- }
456
- t.show({
457
- message: n.t("wise_invoicing.invoice.reminder.success")
458
- });
459
- }
460
- async function ti() {
461
- await m.open({
462
- invoice: i.value
463
- });
464
- }
465
- async function oi() {
466
- const u = await h.getByUuid(i.value.uuid);
467
- if (u.isErr()) {
468
- t.apiError(u.error);
469
- return;
470
- }
471
- const W = u.value.file;
472
- if (W === null) {
473
- t.show({
474
- message: n.t("wise_invoicing.invoice.download_pdf.generation_in_progress")
475
- });
476
- return;
477
- }
478
- const ie = await Ji.getDownloadUrl(W.uuid);
479
- ie !== null && wi.downloadUrl(ie, W.name);
480
- }
481
- async function ai() {
482
- const u = await _.execute({
483
- params: {
484
- invoiceUuid: i.value.uuid
485
- }
486
- });
487
- if (u.isErr()) {
488
- t.apiError(u.error);
489
- return;
490
- }
491
- t.show({
492
- button: {
493
- label: n.t("wise_invoicing.invoice.duplicate.view_action"),
494
- onClick: () => {
495
- l.push({
496
- name: "invoicing-invoice-detail",
497
- params: {
498
- invoiceUuid: u.value
499
- }
500
- });
501
- }
502
- },
503
- message: n.t("wise_invoicing.invoice.duplicate.success")
504
- });
505
- }
506
- async function si() {
507
- const u = await p.execute({
508
- params: {
509
- invoiceUuid: i.value.uuid
510
- }
511
- });
512
- if (u.isErr()) {
513
- t.apiError(u.error);
514
- return;
515
- }
516
- t.show({
517
- button: {
518
- label: n.t("wise_invoicing.credit_note.create.view_action"),
519
- onClick: () => {
520
- l.push({
521
- name: "invoicing-credit-note-detail",
522
- params: {
523
- creditNoteUuid: u.value
524
- }
525
- });
526
- }
527
- },
528
- message: n.t("wise_invoicing.credit_note.create.success")
529
- });
530
- }
531
- const li = c(() => [
532
- {
533
- isLoading: f.isLoading.value,
534
- iconLeft: _e,
535
- key: "send",
536
- label: n.t("wise_invoicing.invoice.detail.actions.send"),
537
- variant: "primary",
538
- visible: i.value.status === L.FINALIZED,
539
- onClick: ii
540
- },
541
- {
542
- isLoading: f.isLoading.value,
543
- iconLeft: _e,
544
- key: "sendReminder",
545
- label: n.t("wise_invoicing.invoice.detail.header.send_reminder"),
546
- variant: "primary",
547
- visible: Qe.value,
548
- onClick: ni
549
- },
550
- {
551
- isLoading: F.isLoading.value,
552
- iconRight: Se,
553
- key: "markAsReady",
554
- label: n.t("wise_invoicing.invoice.detail.actions.mark_as_ready"),
555
- visible: ee("markAsReady"),
556
- onClick: We
557
- },
558
- {
559
- isLoading: g.isLoading.value,
560
- iconLeft: mi,
561
- key: "finalize",
562
- label: n.t("wise_invoicing.invoice.detail.actions.finalize"),
563
- visible: ee("finalize"),
564
- onClick: Ze
565
- }
566
- ].filter((u) => u.visible)), Ce = c(() => {
567
- const u = [
568
- {
569
- icon: Le,
570
- key: "markAsProtested",
571
- label: n.t("wise_invoicing.invoice.detail.actions.mark_as_disputed"),
572
- visible: X.value && !k.value,
573
- onSelect: Xe
574
- },
575
- {
576
- icon: pi,
577
- key: "markAsPaid",
578
- label: n.t("wise_invoicing.invoice.detail.actions.mark_as_paid"),
579
- visible: ee("markAsPaid"),
580
- onSelect: Ye
581
- },
582
- {
583
- icon: Se,
584
- key: "withdrawProtest",
585
- label: n.t("wise_invoicing.invoice.detail.actions.withdraw_dispute"),
586
- visible: X.value && k.value,
587
- onSelect: ei
588
- }
589
- ], W = [
590
- L.FINALIZED,
591
- L.PAID,
592
- L.SENT,
593
- L.OVERDUE,
594
- L.PROTESTED
595
- ].includes(i.value.status), ie = [
596
- {
597
- icon: _i,
598
- key: "downloadPdf",
599
- label: n.t("wise_invoicing.common.download_pdf"),
600
- visible: G.value,
601
- onSelect: oi
602
- },
603
- {
604
- icon: fi,
605
- key: "backToDraft",
606
- label: n.t("wise_invoicing.invoice.detail.actions.mark_as_draft"),
607
- visible: ee("markAsDraft"),
608
- onSelect: Je
609
- },
610
- {
611
- icon: gi,
612
- key: "duplicate",
613
- label: n.t("wise_invoicing.invoice.detail.actions.duplicate"),
614
- visible: !0,
615
- onSelect: ai
616
- }
617
- ], ci = [
618
- {
619
- icon: yi,
620
- key: "createCreditNote",
621
- label: n.t("wise_invoicing.invoice.detail.header.cancel_with_credit_note"),
622
- visible: W,
623
- onSelect: si
624
- },
625
- {
626
- icon: bi,
627
- key: "delete",
628
- label: n.t("wise_invoicing.invoice.detail.actions.delete"),
629
- visible: A.value.isEditable,
630
- onSelect: ti
631
- }
632
- ];
633
- return [
634
- {
635
- items: u.filter((z) => z.visible),
636
- key: "lifecycle"
637
- },
638
- {
639
- items: ie.filter((z) => z.visible),
640
- key: "secondary"
641
- },
642
- {
643
- items: ci.filter((z) => z.visible),
644
- key: "destructive"
645
- }
646
- ].filter((z) => z.items.length > 0);
647
- });
648
- return {
649
- isActionMenuVisible: c(() => Ce.value.length > 0),
650
- isDisputed: k,
651
- menuGroups: Ce,
652
- primaryButtons: li
653
- };
654
- }
655
- const Hn = /* @__PURE__ */ I({
656
- __name: "InvoiceDetailHeaderSection",
657
- props: {
658
- isPdfViewActive: { type: Boolean },
659
- invoice: {}
660
- },
661
- emits: ["togglePdfView"],
662
- setup(i, { emit: n }) {
663
- const t = i, l = n, a = D(), m = R(), {
664
- isDisputed: d,
665
- menuGroups: f,
666
- primaryButtons: p
667
- } = Gn(c(() => t.invoice)), _ = ke(), g = c(() => new Ve(t.invoice.status)), b = c(() => g.value.color), E = c(() => a.t(g.value.translationKey)), M = c(() => t.invoice.deliveryStatus !== Ii.UNSENT || t.invoice.reminders.length > 0), F = c(() => Me.isSent(t.invoice.deliveryStatus)), U = c(() => !K.isEditable(t.invoice.status)), C = Z({
668
- initialState: {
669
- subject: t.invoice.subject
670
- },
671
- schema: Mn,
672
- onSubmit: async (A) => {
673
- const k = await _.execute({
674
- body: {
675
- ...ye.toForm(t.invoice),
676
- subject: A.subject
677
- },
678
- params: {
679
- invoiceUuid: t.invoice.uuid
680
- }
681
- });
682
- k.isErr() && m.apiError(k.error);
683
- }
684
- }), y = C.register("subject");
685
- return Be({
686
- form: C
687
- }), (A, k) => (r(), v(e(Oe), {
688
- form: e(C),
689
- "prompt-on-unsaved-changes": !1
690
- }, {
691
- default: s(() => [
692
- o(Yi, {
693
- "fallback-title": e(a).t("wise_invoicing.invoice.detail.fallback_title"),
694
- "is-disabled": U.value,
695
- sequence: t.invoice.sequence,
696
- "status-color": b.value,
697
- "status-label": E.value,
698
- icon: e($e),
699
- "subject-field": e(y),
700
- "subject-placeholder": e(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
701
- }, {
702
- actions: s(() => [
703
- o(en, {
704
- "is-pdf-view-active": t.isPdfViewActive,
705
- "menu-groups": e(f),
706
- "primary-buttons": e(p),
707
- onTogglePdfView: k[0] || (k[0] = (G) => l("togglePdfView"))
708
- }, null, 8, ["is-pdf-view-active", "menu-groups", "primary-buttons"])
709
- ]),
710
- status: s(() => [
711
- o(e(J), {
712
- gap: "xs",
713
- class: "flex-wrap items-start"
714
- }, {
715
- default: s(() => [
716
- o(xi, {
717
- "lifecycle-status": t.invoice.lifecycleStatus
718
- }, null, 8, ["lifecycle-status"]),
719
- o(Di, {
720
- "is-sent": F.value,
721
- "balance-due-amount": t.invoice.balanceDueAmount,
722
- "gross-amount": t.invoice.grossAmount,
723
- "paid-amount": t.invoice.paidAmount,
724
- "settlement-status": t.invoice.settlementStatus,
725
- "total-credited-amount": t.invoice.totalCreditedAmount
726
- }, null, 8, ["is-sent", "balance-due-amount", "gross-amount", "paid-amount", "settlement-status", "total-credited-amount"]),
727
- t.invoice.isOverdue ? (r(), v(Xi, { key: 0 })) : x("", !0),
728
- e(d) ? (r(), v(hi, { key: 1 })) : x("", !0),
729
- M.value ? (r(), v(Fn, {
730
- key: 2,
731
- "delivery-status": t.invoice.deliveryStatus
732
- }, null, 8, ["delivery-status"])) : x("", !0),
733
- t.invoice.reminders.length > 0 ? (r(), v(Tn, {
734
- key: 3,
735
- reminders: t.invoice.reminders
736
- }, null, 8, ["reminders"])) : x("", !0)
737
- ]),
738
- _: 1
739
- })
740
- ]),
741
- _: 1
742
- }, 8, ["fallback-title", "is-disabled", "sequence", "status-color", "status-label", "icon", "subject-field", "subject-placeholder"])
743
- ]),
744
- _: 1
745
- }, 8, ["form"]));
746
- }
747
- }), Qn = { class: "grid w-full grid-cols-1 gap-md lg:grid-cols-3" }, Zn = /* @__PURE__ */ I({
748
- __name: "InvoiceDetailLinkedCreditNotesSection",
749
- props: {
750
- invoice: {}
751
- },
752
- setup(i) {
753
- const n = i, t = D(), l = Y(), a = c(() => n.invoice.creditNotes.map((d) => {
754
- const f = new Ve(d.status);
755
- return {
756
- uuid: d.uuid,
757
- title: d.sequence === null ? t.t("wise_invoicing.invoice.detail.credit_notes.untitled") : t.t("wise_invoicing.invoice.detail.credit_notes.card_title", {
758
- sequence: d.sequence
759
- }),
760
- amountLabel: l.formatMonetary(m(d)),
761
- statusColor: f.color,
762
- statusLabel: t.t(f.translationKey)
763
- };
764
- }));
765
- function m(d) {
766
- return {
767
- ...d.grossAmount,
768
- amount: d.grossAmount.amount > 0 ? -d.grossAmount.amount : d.grossAmount.amount
769
- };
770
- }
771
- return (d, f) => a.value.length > 0 ? (r(), v(e(ze), {
772
- key: 0,
773
- as: "section",
774
- gap: "md",
775
- class: "w-full"
776
- }, {
777
- default: s(() => [
778
- o(e(q), {
779
- text: e(t).t("wise_invoicing.invoice.detail.credit_notes.title"),
780
- as: "h2",
781
- class: "text-sm font-semibold text-primary"
782
- }, null, 8, ["text"]),
783
- B("div", Qn, [
784
- (r(!0), N(ae, null, Fe(a.value, (p) => (r(), v(e(gn), {
785
- key: p.uuid,
786
- to: {
787
- name: "invoicing-credit-note-detail",
788
- params: { creditNoteUuid: p.uuid }
789
- },
790
- class: "min-w-0 rounded-lg border border-secondary bg-primary p-lg transition-colors hover:bg-secondary"
791
- }, {
792
- default: s(() => [
793
- o(e(J), {
794
- align: "center",
795
- gap: "md",
796
- class: "min-w-0"
797
- }, {
798
- default: s(() => [
799
- o(e(q), {
800
- text: p.title,
801
- class: "min-w-0 flex-1 truncate text-xs font-semibold text-primary"
802
- }, null, 8, ["text"]),
803
- o(e(Q), {
804
- label: p.statusLabel,
805
- color: p.statusColor,
806
- size: "sm",
807
- variant: "translucent"
808
- }, null, 8, ["label", "color"]),
809
- o(e(Q), {
810
- label: p.amountLabel,
811
- variant: "translucent",
812
- size: "sm"
813
- }, null, 8, ["label"])
814
- ]),
815
- _: 2
816
- }, 1024)
817
- ]),
818
- _: 2
819
- }, 1032, ["to"]))), 128))
820
- ])
821
- ]),
822
- _: 1
823
- })) : x("", !0);
824
- }
825
- }), He = w.object({
826
- deliveredOn: ve.nullable(),
827
- dueOn: ve,
828
- issuedOn: ve,
829
- externalRemarks: w.string().nullable(),
830
- poNumber: w.string().nullable(),
831
- preparedBy: w.object({
832
- uuid: w.uuid(),
833
- name: w.string()
834
- }),
835
- subject: w.string().nullable()
836
- }).superRefine((i, n) => {
837
- Temporal.PlainDate.compare(i.dueOn, i.issuedOn) < 0 && n.addIssue({
838
- code: "custom",
839
- message: ki.global.t("invoicing.invoice.validation.due_date_after_issue_date"),
840
- path: [
841
- "dueOn"
842
- ]
843
- });
844
- }), Wn = /* @__PURE__ */ I({
845
- __name: "InvoiceDetailRemarksSection",
846
- props: {
847
- invoice: {}
848
- },
849
- setup(i) {
850
- const n = i, t = D(), l = R(), a = ke(), m = Z({
851
- initialState: c(() => ye.toForm(n.invoice)),
852
- schema: He,
853
- onSubmit: async (p) => {
854
- const _ = await a.execute({
855
- body: p,
856
- params: {
857
- invoiceUuid: n.invoice.uuid
858
- }
859
- });
860
- _.isErr() && l.apiError(_.error);
861
- }
862
- }), d = m.register("externalRemarks"), f = c(() => !K.isEditable(n.invoice.status));
863
- return Be({
864
- form: m
865
- }), (p, _) => (r(), v(e(Oe), {
866
- form: e(m),
867
- "prompt-on-unsaved-changes": !1
868
- }, {
869
- default: s(() => [
870
- o(nn, {
871
- "is-disabled": f.value,
872
- placeholder: e(t).t("wise_invoicing.invoice.detail.remarks.placeholder"),
873
- "remarks-field": e(d),
874
- title: e(t).t("wise_invoicing.invoice.detail.remarks.title")
875
- }, null, 8, ["is-disabled", "placeholder", "remarks-field", "title"])
876
- ]),
877
- _: 1
878
- }, 8, ["form"]));
879
- }
880
- });
881
- function Jn(i) {
882
- return _n("invoiceActivityLogIndex", {
883
- params: {
884
- invoiceUuid: i
885
- },
886
- queryFn: (n) => h.getActivityLogs(i.value, {
887
- pagination: n
888
- })
889
- });
890
- }
891
- const Yn = /* @__PURE__ */ I({
892
- __name: "InvoiceDetailSidebarActivityTab",
893
- props: {
894
- invoice: {}
895
- },
896
- setup(i) {
897
- const n = i, t = D(), {
898
- hasNextPage: l,
899
- isFetchingNextPage: a,
900
- isLoading: m,
901
- fetchNextPage: d,
902
- result: f
903
- } = Jn(c(() => n.invoice.uuid)), p = c(() => f.value.unwrapOr({
904
- data: [],
905
- meta: {
906
- next: null
907
- }
908
- }).data);
909
- return (_, g) => (r(), v(tn, {
910
- "current-billing-document": {
911
- role: e(Ui).INVOICE,
912
- uuid: n.invoice.uuid
913
- },
914
- "empty-message": e(t).t("wise_invoicing.invoice.detail.sidebar.activity_empty"),
915
- entries: p.value,
916
- "fetch-next-page": e(d),
917
- "has-next-page": e(l),
918
- "is-fetching-next-page": e(a),
919
- "is-loading": e(m)
920
- }, null, 8, ["current-billing-document", "empty-message", "entries", "fetch-next-page", "has-next-page", "is-fetching-next-page", "is-loading"]));
921
- }
922
- }), Xn = /* @__PURE__ */ I({
923
- __name: "InvoiceUpdateDialog",
924
- props: {
925
- invoice: {}
926
- },
927
- emits: ["close"],
928
- setup(i, { emit: n }) {
929
- const t = i, l = n, a = D(), m = R(), d = ke(), f = yn(), p = be(), _ = c(() => {
930
- const y = f.result.value;
931
- return y.isOk() ? y.getValue().defaultPaymentTermDays ?? 0 : 0;
932
- }), g = Z({
933
- initialState: c(() => ye.toForm(t.invoice)),
934
- schema: He,
935
- onSubmit: async (y) => {
936
- const A = await d.execute({
937
- body: y,
938
- params: {
939
- invoiceUuid: t.invoice.uuid
940
- }
941
- });
942
- if (A.isErr()) {
943
- m.apiError(A.error);
944
- return;
945
- }
946
- l("close");
947
- },
948
- onSubmitError: () => {
949
- m.unableToSave();
950
- }
951
- }), b = g.register("issuedOn"), E = g.register("dueOn"), M = g.register("deliveredOn"), F = g.register("poNumber"), U = g.register("subject");
952
- function C(y) {
953
- y !== null && E.setValue(y.add({
954
- days: _.value
955
- }));
956
- }
957
- return (y, A) => (r(), v(e(le), {
958
- form: e(g),
959
- size: "sm",
960
- onClose: A[0] || (A[0] = (k) => l("close"))
961
- }, {
962
- default: s(() => [
963
- o(e(ce), {
964
- icon: e(Ci),
965
- "is-description-visible": !1,
966
- title: e(a).t("wise_invoicing.invoice.detail.header.edit_info"),
967
- description: ""
968
- }, null, 8, ["icon", "title"]),
969
- o(e(Ie), null, {
970
- default: s(() => [
971
- o(e(xe), null, {
972
- default: s(() => [
973
- o(e(De), {
974
- lg: 2,
975
- sm: 1
976
- }, {
977
- default: s(() => [
978
- o(e(te), T(e(P)(e(b)), {
979
- label: e(a).t("wise_invoicing.invoice.detail.header.invoice_date"),
980
- "is-required": !0,
981
- "onUpdate:modelValue": C
982
- }), null, 16, ["label"]),
983
- o(e(te), T(e(P)(e(E)), {
984
- label: e(a).t("wise_invoicing.invoice.detail.header.due_date"),
985
- "is-required": !0,
986
- "min-date": e(b).modelValue.value
987
- }), null, 16, ["label", "min-date"]),
988
- e(p).isDeliveryDateVisible.value ? (r(), v(e(te), T({ key: 0 }, e(P)(e(M)), {
989
- label: e(a).t("wise_invoicing.invoice.detail.header.delivery_date")
990
- }), null, 16, ["label"])) : x("", !0),
991
- o(e(oe), T(e(P)(e(F)), {
992
- label: e(a).t("wise_invoicing.invoice.detail.header.po_number")
993
- }), null, 16, ["label"]),
994
- o(e(oe), T(e(P)(e(U)), {
995
- label: e(a).t("wise_invoicing.invoice.detail.header.subject"),
996
- placeholder: e(a).t("wise_invoicing.invoice.detail.header.subject_placeholder")
997
- }), null, 16, ["label", "placeholder"])
998
- ]),
999
- _: 1
1000
- })
1001
- ]),
1002
- _: 1
1003
- })
1004
- ]),
1005
- _: 1
1006
- }),
1007
- o(e(re), null, {
1008
- right: s(() => [
1009
- o(e(ue), { label: "cancel" }),
1010
- o(e(we), {
1011
- label: e(a).t("wise_invoicing.invoice.detail.header.edit_info")
1012
- }, null, 8, ["label"])
1013
- ]),
1014
- _: 1
1015
- })
1016
- ]),
1017
- _: 1
1018
- }, 8, ["form"]));
1019
- }
1020
- }), et = /* @__PURE__ */ I({
1021
- __name: "InvoiceDetailSidebarInfoTab",
1022
- props: {
1023
- invoice: {}
1024
- },
1025
- setup(i) {
1026
- const n = i, t = D(), l = se(), a = be(), d = de().create(Xn), f = c(() => K.isEditable(n.invoice.status)), p = c(() => {
1027
- if (!n.invoice.isOverdue)
1028
- return null;
1029
- const b = n.invoice.dueOn.toZonedDateTime(Ke.Now.timeZoneId()).toInstant();
1030
- return l.toRelativeTime(b);
1031
- });
1032
- async function _() {
1033
- await d.open({
1034
- invoice: n.invoice
1035
- });
1036
- }
1037
- function g(b) {
1038
- return b === null ? "-" : l.formatPlainDate(b);
1039
- }
1040
- return (b, E) => (r(), v(e(Ri), { class: "px-2xl py-xl" }, {
1041
- default: s(() => [
1042
- o(e(pe), {
1043
- label: e(t).t("wise_invoicing.invoice.detail.sidebar.general")
1044
- }, ui({
1045
- default: s(() => [
1046
- o(e($), null, {
1047
- default: s(() => [
1048
- o(e(O), {
1049
- icon: e(Si),
1050
- label: e(t).t("wise_invoicing.invoice.detail.header.invoice_id")
1051
- }, null, 8, ["icon", "label"]),
1052
- o(e(j), {
1053
- text: n.invoice.sequence ?? "-"
1054
- }, null, 8, ["text"])
1055
- ]),
1056
- _: 1
1057
- }),
1058
- o(e($), null, {
1059
- default: s(() => [
1060
- o(e(O), {
1061
- icon: e(Ai),
1062
- label: e(t).t("wise_invoicing.invoice.detail.header.po_number")
1063
- }, null, 8, ["icon", "label"]),
1064
- o(e(j), {
1065
- text: n.invoice.poNumber ?? "-"
1066
- }, null, 8, ["text"])
1067
- ]),
1068
- _: 1
1069
- }),
1070
- o(e($), null, {
1071
- default: s(() => [
1072
- o(e(O), {
1073
- icon: e(Ei),
1074
- label: e(t).t("wise_invoicing.invoice.detail.header.issuer")
1075
- }, null, 8, ["icon", "label"]),
1076
- o(e(j), {
1077
- text: n.invoice.issuer.name ?? "-"
1078
- }, null, 8, ["text"])
1079
- ]),
1080
- _: 1
1081
- }),
1082
- o(e($), null, {
1083
- default: s(() => [
1084
- o(e(O), {
1085
- icon: e($e),
1086
- label: e(t).t("wise_invoicing.invoice.detail.header.invoice_date")
1087
- }, null, 8, ["icon", "label"]),
1088
- o(e(j), {
1089
- text: g(n.invoice.issueOn)
1090
- }, null, 8, ["text"])
1091
- ]),
1092
- _: 1
1093
- }),
1094
- o(e($), null, {
1095
- default: s(() => [
1096
- o(e(O), {
1097
- icon: e(Le),
1098
- label: e(t).t("wise_invoicing.invoice.detail.header.due_date"),
1099
- variant: n.invoice.isOverdue ? "error" : "default"
1100
- }, null, 8, ["icon", "label", "variant"]),
1101
- o(e(J), {
1102
- gap: "xs",
1103
- class: "items-center"
1104
- }, {
1105
- default: s(() => [
1106
- o(e(j), {
1107
- text: g(n.invoice.dueOn),
1108
- variant: n.invoice.isOverdue ? "error" : "default"
1109
- }, null, 8, ["text", "variant"]),
1110
- p.value !== null ? (r(), v(e(Q), {
1111
- key: 0,
1112
- label: p.value,
1113
- color: "error",
1114
- size: "sm",
1115
- variant: "translucent"
1116
- }, null, 8, ["label"])) : x("", !0)
1117
- ]),
1118
- _: 1
1119
- })
1120
- ]),
1121
- _: 1
1122
- }),
1123
- e(a).isDeliveryDateVisible.value ? (r(), v(e($), { key: 0 }, {
1124
- default: s(() => [
1125
- o(e(O), {
1126
- icon: e(_e),
1127
- label: e(t).t("wise_invoicing.invoice.detail.header.delivery_date")
1128
- }, null, 8, ["icon", "label"]),
1129
- o(e(j), {
1130
- text: g(n.invoice.deliveredOn)
1131
- }, null, 8, ["text"])
1132
- ]),
1133
- _: 1
1134
- })) : x("", !0)
1135
- ]),
1136
- _: 2
1137
- }, [
1138
- f.value ? {
1139
- name: "actions",
1140
- fn: s(() => [
1141
- o(e(je), {
1142
- icon: e(Fi),
1143
- label: e(t).t("wise_invoicing.invoice.detail.header.edit_info"),
1144
- variant: "tertiary",
1145
- onClick: _
1146
- }, null, 8, ["icon", "label"])
1147
- ]),
1148
- key: "0"
1149
- } : void 0
1150
- ]), 1032, ["label"]),
1151
- o(on, {
1152
- "original-invoice": n.invoice.originalInvoice
1153
- }, null, 8, ["original-invoice"]),
1154
- o(e(Ae)),
1155
- o(e(pe), {
1156
- label: e(t).t("wise_invoicing.invoice.detail.header.bill_to"),
1157
- "collapse-options": {
1158
- isCollapsible: !0,
1159
- isOpenByDefault: !0,
1160
- badge: {
1161
- label: n.invoice.customer.name ?? "-"
1162
- }
1163
- }
1164
- }, {
1165
- default: s(() => [
1166
- o(e($), { orientation: "vertical" }, {
1167
- default: s(() => [
1168
- o(e(q), {
1169
- text: n.invoice.customer.name ?? "-",
1170
- class: "text-xs font-medium"
1171
- }, null, 8, ["text"]),
1172
- n.invoice.customer.address ? (r(), N(ae, { key: 0 }, [
1173
- o(e(q), {
1174
- text: e(me).formatLines(n.invoice.customer.address)[0] ?? "",
1175
- class: "text-xs"
1176
- }, null, 8, ["text"]),
1177
- n.invoice.customer.address ? (r(), v(e(q), {
1178
- key: 0,
1179
- text: e(me).formatLines(n.invoice.customer.address)[1] ?? "",
1180
- class: "text-xs"
1181
- }, null, 8, ["text"])) : x("", !0)
1182
- ], 64)) : x("", !0)
1183
- ]),
1184
- _: 1
1185
- })
1186
- ]),
1187
- _: 1
1188
- }, 8, ["label", "collapse-options"]),
1189
- o(e(Ae)),
1190
- o(e(pe), {
1191
- label: e(t).t("wise_invoicing.invoice.detail.header.bill_from"),
1192
- "collapse-options": {
1193
- isCollapsible: !0,
1194
- isOpenByDefault: !1,
1195
- badge: {
1196
- label: n.invoice.issuer.email ?? "-"
1197
- }
1198
- }
1199
- }, {
1200
- default: s(() => [
1201
- o(e($), { orientation: "vertical" }, {
1202
- default: s(() => [
1203
- o(e(O), {
1204
- label: n.invoice.issuer.email ?? "-"
1205
- }, null, 8, ["label"]),
1206
- n.invoice.issuer.address ? (r(), v(e(j), {
1207
- key: 0,
1208
- text: e(me).format(n.invoice.issuer.address)
1209
- }, null, 8, ["text"])) : x("", !0)
1210
- ]),
1211
- _: 1
1212
- })
1213
- ]),
1214
- _: 1
1215
- }, 8, ["label", "collapse-options"])
1216
- ]),
1217
- _: 1
1218
- }));
1219
- }
1220
- }), it = /* @__PURE__ */ I({
1221
- __name: "InvoiceDetailSidebar",
1222
- props: {
1223
- invoice: {}
1224
- },
1225
- setup(i) {
1226
- const n = i, t = D(), l = se(), a = c(() => t.t("wise_invoicing.invoice.detail.sidebar.updated_on", {
1227
- date: l.toDateTime(n.invoice.updatedAt)
1228
- }));
1229
- return (m, d) => (r(), v(an, {
1230
- "billing-document": n.invoice,
1231
- "updated-footer": a.value
1232
- }, {
1233
- activity: s(() => [
1234
- o(Yn, {
1235
- invoice: n.invoice
1236
- }, null, 8, ["invoice"])
1237
- ]),
1238
- info: s(() => [
1239
- o(et, {
1240
- invoice: n.invoice
1241
- }, null, 8, ["invoice"])
1242
- ]),
1243
- _: 1
1244
- }, 8, ["billing-document", "updated-footer"]));
1245
- }
1246
- });
1247
- function nt() {
1248
- return S({
1249
- queryFn: (i) => h.deletePayment(
1250
- i.params.invoiceUuid,
1251
- i.params.paymentUuid
1252
- ),
1253
- queryKeysToInvalidate: {
1254
- invoiceDetail: {
1255
- invoiceUuid: (i) => i.invoiceUuid
1256
- },
1257
- invoicePaymentIndex: {
1258
- invoiceUuid: (i) => i.invoiceUuid
1259
- }
1260
- }
1261
- });
1262
- }
1263
- function tt(i) {
1264
- return fn("invoicePaymentIndex", {
1265
- params: {
1266
- invoiceUuid: i
1267
- },
1268
- queryFn: () => h.getPayments(i.value)
1269
- });
1270
- }
1271
- const ot = /* @__PURE__ */ I({
1272
- __name: "InvoiceDetailPaymentActionsCell",
1273
- props: {
1274
- payment: {},
1275
- onDelete: { type: Function }
1276
- },
1277
- setup(i) {
1278
- const n = i, t = D();
1279
- return (l, a) => (r(), v(e(he), null, {
1280
- default: s(() => [
1281
- o(e(zi), null, {
1282
- default: s(() => [
1283
- n.payment.source === e(qe).MANUAL ? (r(), v(e(je), {
1284
- key: 0,
1285
- label: e(t).t("wise_invoicing.invoice.detail.payments.delete.title"),
1286
- icon: e(En),
1287
- size: "sm",
1288
- variant: "tertiary",
1289
- onClick: a[0] || (a[0] = (m) => n.onDelete(n.payment))
1290
- }, null, 8, ["label", "icon"])) : x("", !0)
1291
- ]),
1292
- _: 1
1293
- })
1294
- ]),
1295
- _: 1
1296
- }));
1297
- }
1298
- }), at = /* @__PURE__ */ I({
1299
- __name: "InvoiceDetailPaymentManualCell",
1300
- props: {
1301
- payment: {}
1302
- },
1303
- setup(i) {
1304
- const n = i;
1305
- return (t, l) => (r(), v(e(he), null, {
1306
- default: s(() => [
1307
- n.payment.source === e(qe).MANUAL ? (r(), v(e(Ti), {
1308
- key: 0,
1309
- class: "size-4 text-brand-600"
1310
- })) : x("", !0)
1311
- ]),
1312
- _: 1
1313
- }));
1314
- }
1315
- }), ne = /* @__PURE__ */ I({
1316
- __name: "InvoiceDetailPaymentsTableTextCell",
1317
- props: {
1318
- text: {}
1319
- },
1320
- setup(i) {
1321
- const n = i;
1322
- return (t, l) => (r(), v(e(he), null, {
1323
- default: s(() => [
1324
- o(e(q), {
1325
- text: n.text ?? "-",
1326
- class: "text-sm/5 text-primary"
1327
- }, null, 8, ["text"])
1328
- ]),
1329
- _: 1
1330
- }));
1331
- }
1332
- });
1333
- function st(i) {
1334
- const n = D(), t = se(), l = Y();
1335
- return c(() => Oi()([
1336
- {
1337
- headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.date"),
1338
- key: "date",
1339
- size: {
1340
- max: "12rem",
1341
- min: "12rem"
1342
- },
1343
- component: (a) => H(ne, {
1344
- text: t.formatPlainDate(a.date)
1345
- })
1346
- },
1347
- {
1348
- headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.reference"),
1349
- key: "reference",
1350
- size: {
1351
- max: "14rem",
1352
- min: "12rem"
1353
- },
1354
- component: (a) => H(ne, {
1355
- text: a.paymentReference ?? "—"
1356
- })
1357
- },
1358
- {
1359
- headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.remark"),
1360
- key: "remark",
1361
- size: {
1362
- max: "1fr",
1363
- min: "12rem"
1364
- },
1365
- component: (a) => H(ne, {
1366
- text: a.remarks ?? "—"
1367
- })
1368
- },
1369
- {
1370
- headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.manual"),
1371
- key: "manual",
1372
- size: {
1373
- max: "6rem",
1374
- min: "6rem"
1375
- },
1376
- component: (a) => H(at, {
1377
- payment: a
1378
- })
1379
- },
1380
- {
1381
- headerLabel: n.t("wise_invoicing.invoice.detail.payments.columns.amount"),
1382
- key: "amount",
1383
- size: {
1384
- max: "10rem",
1385
- min: "10rem"
1386
- },
1387
- component: (a) => H(ne, {
1388
- text: l.formatMonetary(a.amount)
1389
- })
1390
- },
1391
- {
1392
- headerLabel: "",
1393
- key: "actions",
1394
- size: {
1395
- max: "5rem",
1396
- min: "5rem"
1397
- },
1398
- component: (a) => H(ot, {
1399
- payment: a,
1400
- onDelete: i.onDelete
1401
- })
1402
- }
1403
- ]));
1404
- }
1405
- function lt() {
1406
- return S({
1407
- queryFn: (i) => h.createPayment(
1408
- i.params.invoiceUuid,
1409
- i.body
1410
- ),
1411
- queryKeysToInvalidate: {
1412
- invoiceDetail: {
1413
- invoiceUuid: (i) => i.invoiceUuid
1414
- },
1415
- invoicePaymentIndex: {
1416
- invoiceUuid: (i) => i.invoiceUuid
1417
- }
1418
- }
1419
- });
1420
- }
1421
- const ct = w.object({
1422
- amount: w.number().positive(),
1423
- currency: w.enum(Re),
1424
- date: Pi,
1425
- paymentReference: w.string().nullable(),
1426
- precision: w.number().int().nonnegative(),
1427
- remarks: w.string().nullable()
1428
- }), rt = { class: "pr-md text-xs text-secondary" }, ut = /* @__PURE__ */ I({
1429
- __name: "InvoicePaymentCreateDialog",
1430
- props: {
1431
- invoice: {}
1432
- },
1433
- emits: ["close"],
1434
- setup(i, { emit: n }) {
1435
- const t = i, l = n, a = D(), m = R(), d = Y(), f = lt(), p = c(() => d.getSymbol(t.invoice.grossAmount.currency)), _ = Z({
1436
- initialState: {
1437
- amount: null,
1438
- currency: t.invoice.grossAmount.currency,
1439
- date: Mi.getToday(),
1440
- paymentReference: null,
1441
- precision: t.invoice.grossAmount.precision,
1442
- remarks: null
1443
- },
1444
- schema: ct,
1445
- onSubmit: async (F) => {
1446
- const U = await f.execute({
1447
- body: F,
1448
- params: {
1449
- invoiceUuid: t.invoice.uuid
1450
- }
1451
- });
1452
- if (U.isErr()) {
1453
- m.apiError(U.error);
1454
- return;
1455
- }
1456
- m.show({
1457
- message: a.t("wise_invoicing.invoice.detail.payments.create.success")
1458
- }), l("close");
1459
- },
1460
- onSubmitError: () => {
1461
- m.unableToSave();
1462
- }
1463
- }), g = _.register("amount"), b = _.register("date"), E = _.register("paymentReference"), M = _.register("remarks");
1464
- return (F, U) => (r(), v(e(le), {
1465
- form: e(_),
1466
- size: "sm",
1467
- onClose: U[0] || (U[0] = (C) => l("close"))
1468
- }, {
1469
- default: s(() => [
1470
- o(e(ce), {
1471
- title: e(a).t("wise_invoicing.invoice.detail.payments.create.title"),
1472
- description: e(a).t("wise_invoicing.invoice.detail.payments.create.description"),
1473
- icon: e(xn),
1474
- "is-description-visible": !0
1475
- }, null, 8, ["title", "description", "icon"]),
1476
- o(e(Ie), null, {
1477
- default: s(() => [
1478
- o(e(xe), null, {
1479
- default: s(() => [
1480
- o(e(De), {
1481
- lg: 2,
1482
- sm: 1
1483
- }, {
1484
- default: s(() => [
1485
- o(e(fe), T(e(P)(e(g)), {
1486
- "is-required": !0,
1487
- label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.amount"),
1488
- min: 0.01,
1489
- step: 0.01
1490
- }), {
1491
- right: s(() => [
1492
- B("span", rt, Pe(p.value.symbol), 1)
1493
- ]),
1494
- _: 1
1495
- }, 16, ["label"]),
1496
- o(e(te), T(e(P)(e(b)), {
1497
- "is-required": !0,
1498
- label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.date")
1499
- }), null, 16, ["label"]),
1500
- o(e(oe), T(e(P)(e(E)), {
1501
- label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.reference")
1502
- }), null, 16, ["label"]),
1503
- o(e(oe), T(e(P)(e(M)), {
1504
- label: e(a).t("wise_invoicing.invoice.detail.payments.create.fields.remarks")
1505
- }), null, 16, ["label"])
1506
- ]),
1507
- _: 1
1508
- })
1509
- ]),
1510
- _: 1
1511
- })
1512
- ]),
1513
- _: 1
1514
- }),
1515
- o(e(re), null, {
1516
- right: s(() => [
1517
- o(e(ue), { label: "cancel" }),
1518
- o(e(ji), {
1519
- label: e(a).t("wise_invoicing.invoice.detail.payments.create.submit")
1520
- }, null, 8, ["label"])
1521
- ]),
1522
- _: 1
1523
- })
1524
- ]),
1525
- _: 1
1526
- }, 8, ["form"]));
1527
- }
1528
- }), dt = /* @__PURE__ */ I({
1529
- __name: "InvoiceDetailPaymentsSection",
1530
- props: {
1531
- invoice: {}
1532
- },
1533
- setup(i) {
1534
- const n = i, t = D(), l = Y(), a = c(() => n.invoice.uuid), m = c(() => n.invoice.balanceDueAmount === null ? null : l.formatMonetary(n.invoice.balanceDueAmount)), {
1535
- isLoading: d,
1536
- result: f
1537
- } = tt(a), p = de(), _ = R(), g = p.create(ut), b = p.create(Vi), E = nt(), M = c(() => f.value.match({
1538
- err: () => [],
1539
- loading: () => [],
1540
- ok: (k) => k
1541
- })), F = c(() => f.value.match({
1542
- err: (k) => k,
1543
- loading: () => null,
1544
- ok: () => null
1545
- })), U = c(() => !K.getMetadata(n.invoice.status).isTerminal);
1546
- function C() {
1547
- g.open({
1548
- invoice: n.invoice
1549
- });
1550
- }
1551
- function y(k) {
1552
- b.open({
1553
- title: t.t("wise_invoicing.invoice.detail.payments.delete.title"),
1554
- isDestructive: !0,
1555
- confirmLabel: t.t("wise_invoicing.invoice.detail.payments.delete.submit"),
1556
- description: t.t("wise_invoicing.invoice.detail.payments.delete.description"),
1557
- onConfirm: async () => {
1558
- const G = await E.execute({
1559
- params: {
1560
- invoiceUuid: n.invoice.uuid,
1561
- paymentUuid: k.uuid
1562
- }
1563
- });
1564
- if (G.isErr()) {
1565
- _.apiError(G.error);
1566
- return;
1567
- }
1568
- _.show({
1569
- message: t.t("wise_invoicing.invoice.detail.payments.delete.success")
1570
- }), b.close();
1571
- }
1572
- });
1573
- }
1574
- const A = st({
1575
- onDelete: y
1576
- });
1577
- return (k, G) => (r(), v(Ne, null, {
1578
- default: s(() => [
1579
- o(e(J), {
1580
- justify: "between",
1581
- class: "w-full gap-lg border-b border-secondary px-lg py-md"
1582
- }, {
1583
- default: s(() => [
1584
- o(e(J), {
1585
- gap: "sm",
1586
- class: "items-center"
1587
- }, {
1588
- default: s(() => [
1589
- o(e(q), {
1590
- text: e(t).t("wise_invoicing.invoice.detail.payments.title"),
1591
- as: "h2",
1592
- class: "text-sm font-semibold text-primary"
1593
- }, null, 8, ["text"]),
1594
- m.value !== null ? (r(), v(e(Q), {
1595
- key: 0,
1596
- color: "gray",
1597
- size: "sm",
1598
- variant: "outline"
1599
- }, {
1600
- default: s(() => [
1601
- o(e(Ee), {
1602
- label: e(t).t("wise_invoicing.invoice.detail.payments.balance_due")
1603
- }, null, 8, ["label"]),
1604
- o(e(Bi)),
1605
- o(e(Ee), { label: m.value }, null, 8, ["label"])
1606
- ]),
1607
- _: 1
1608
- })) : x("", !0)
1609
- ]),
1610
- _: 1
1611
- }),
1612
- U.value ? (r(), v(e(Ni), {
1613
- key: 0,
1614
- label: e(t).t("wise_invoicing.invoice.detail.payments.add"),
1615
- "icon-left": e(Un),
1616
- size: "sm",
1617
- onClick: C
1618
- }, null, 8, ["label", "icon-left"])) : x("", !0)
1619
- ]),
1620
- _: 1
1621
- }),
1622
- o(e(Ki), {
1623
- "active-filter-count": 0,
1624
- columns: e(A),
1625
- data: M.value,
1626
- error: F.value,
1627
- "get-key": (X) => X.uuid,
1628
- "has-active-search": !1,
1629
- "header-actions": [],
1630
- "is-fetching-next-page": !1,
1631
- "is-loading": e(d)
1632
- }, null, 8, ["columns", "data", "error", "get-key", "is-loading"])
1633
- ]),
1634
- _: 1
1635
- }));
1636
- }
1637
- });
1638
- function vt() {
1639
- return S({
1640
- queryFn: (i) => h.updateLines(
1641
- i.params.invoiceUuid,
1642
- i.body
1643
- ),
1644
- queryKeysToInvalidate: {
1645
- invoiceDetail: {
1646
- invoiceUuid: (i) => i.invoiceUuid
1647
- }
1648
- }
1649
- });
1650
- }
1651
- function mt() {
1652
- return S({
1653
- queryFn: (i) => h.applyDiscount(
1654
- i.params.invoiceUuid,
1655
- i.body
1656
- ),
1657
- queryKeysToInvalidate: {
1658
- invoiceDetail: {
1659
- invoiceUuid: (i) => i.invoiceUuid
1660
- }
1661
- }
1662
- });
1663
- }
1664
- const pt = w.object({
1665
- currency: w.enum(Re),
1666
- precision: w.number().int().nonnegative(),
1667
- type: w.enum(V),
1668
- value: w.number()
1669
- }).refine((i) => i.type !== V.PERCENTAGE || i.value <= 100, {
1670
- path: [
1671
- "value"
1672
- ]
1673
- }), _t = { class: "pr-md text-xs text-secondary" }, ft = /* @__PURE__ */ I({
1674
- __name: "InvoiceApplyDiscountDialog",
1675
- props: {
1676
- invoice: {}
1677
- },
1678
- emits: ["close"],
1679
- setup(i, { emit: n }) {
1680
- const t = i, l = n, a = D(), m = R(), d = Y(), f = mt(), p = c(() => Gi([
1681
- V.PERCENTAGE,
1682
- V.AMOUNT
1683
- ])), _ = Z({
1684
- initialState: {
1685
- currency: t.invoice.grossAmount.currency,
1686
- precision: t.invoice.grossAmount.precision,
1687
- type: V.PERCENTAGE,
1688
- value: null
1689
- },
1690
- schema: pt,
1691
- onSubmit: async (C) => {
1692
- const y = await f.execute({
1693
- body: C,
1694
- params: {
1695
- invoiceUuid: t.invoice.uuid
1696
- }
1697
- });
1698
- if (y.isErr()) {
1699
- m.apiError(y.error);
1700
- return;
1701
- }
1702
- l("close");
1703
- },
1704
- onSubmitError: () => {
1705
- m.unableToSave();
1706
- }
1707
- }), g = _.register("value"), b = _.register("type"), E = c(() => b.modelValue.value === V.PERCENTAGE), M = c(() => b.modelValue.value === V.AMOUNT), F = c(() => d.getSymbol(t.invoice.grossAmount.currency));
1708
- function U(C) {
1709
- return a.t(`wise_invoicing.invoice.detail.global_discount.type.${C}`);
1710
- }
1711
- return (C, y) => (r(), v(e(le), {
1712
- form: e(_),
1713
- size: "sm",
1714
- onClose: y[0] || (y[0] = (A) => l("close"))
1715
- }, {
1716
- default: s(() => [
1717
- o(e(ce), {
1718
- title: e(a).t("wise_invoicing.invoice.detail.line_items.global_discount"),
1719
- description: e(a).t("wise_invoicing.invoice.detail.global_discount.description"),
1720
- icon: e(Li),
1721
- "is-description-visible": !0
1722
- }, null, 8, ["title", "description", "icon"]),
1723
- o(e(Ie), null, {
1724
- default: s(() => [
1725
- o(e(xe), null, {
1726
- default: s(() => [
1727
- o(e(De), {
1728
- lg: 2,
1729
- sm: 1
1730
- }, {
1731
- default: s(() => [
1732
- o(e(Hi), T(e(P)(e(b)), {
1733
- "display-fn": U,
1734
- "is-required": !0,
1735
- items: p.value,
1736
- label: e(a).t("wise_invoicing.invoice.detail.global_discount.type.label")
1737
- }), null, 16, ["items", "label"]),
1738
- E.value ? (r(), v(e(fe), T({ key: 0 }, e(P)(e(g)), {
1739
- hint: e(a).t("wise_invoicing.invoice.detail.global_discount.amount.hint"),
1740
- "is-required": !0,
1741
- label: e(a).t("wise_invoicing.invoice.detail.global_discount.amount.label"),
1742
- max: 100,
1743
- min: 0,
1744
- step: 0.01
1745
- }), {
1746
- right: s(() => [...y[1] || (y[1] = [
1747
- B("span", { class: "pr-md text-xs text-secondary" }, " % ", -1)
1748
- ])]),
1749
- _: 1
1750
- }, 16, ["hint", "label"])) : x("", !0),
1751
- M.value ? (r(), v(e(fe), T({ key: 1 }, e(P)(e(g)), {
1752
- "is-required": !0,
1753
- label: e(a).t("wise_invoicing.invoice.detail.global_discount.amount.label"),
1754
- min: 0.01,
1755
- step: 0.01
1756
- }), {
1757
- right: s(() => [
1758
- B("span", _t, Pe(F.value.symbol), 1)
1759
- ]),
1760
- _: 1
1761
- }, 16, ["label"])) : x("", !0)
1762
- ]),
1763
- _: 1
1764
- })
1765
- ]),
1766
- _: 1
1767
- })
1768
- ]),
1769
- _: 1
1770
- }),
1771
- o(e(re), null, {
1772
- right: s(() => [
1773
- o(e(ue), { label: "cancel" }),
1774
- o(e(we), {
1775
- label: e(a).t("wise_invoicing.invoice.detail.global_discount.confirm")
1776
- }, null, 8, ["label"])
1777
- ]),
1778
- _: 1
1779
- })
1780
- ]),
1781
- _: 1
1782
- }, 8, ["form"]));
1783
- }
1784
- }), gt = /* @__PURE__ */ I({
1785
- __name: "InvoiceLineItemsTableSection",
1786
- props: {
1787
- invoice: {}
1788
- },
1789
- setup(i) {
1790
- const n = i, t = c(() => n.invoice), l = be(), a = vt(), m = c(() => K.isEditable(n.invoice.status)), d = sn({
1791
- isSaving: c(() => a.isLoading.value),
1792
- billingDocument: () => t.value,
1793
- canEdit: m,
1794
- updateLines: (g) => a.execute({
1795
- body: g,
1796
- params: {
1797
- invoiceUuid: n.invoice.uuid
1798
- }
1799
- })
1800
- }), p = de().create(ft);
1801
- function _() {
1802
- p.open({
1803
- invoice: n.invoice
1804
- });
1805
- }
1806
- return ln(d), (g, b) => (r(), v(Ne, null, {
1807
- default: s(() => [
1808
- o(cn, {
1809
- "show-apply-discount": e(l).isGlobalDiscountEnabled.value,
1810
- onApplyDiscount: _
1811
- }, null, 8, ["show-apply-discount"]),
1812
- o(rn),
1813
- o(un, {
1814
- "billing-document": n.invoice
1815
- }, null, 8, ["billing-document"]),
1816
- o(dn)
1817
- ]),
1818
- _: 1
1819
- }));
1820
- }
1821
- }), yt = /* @__PURE__ */ I({
1822
- __name: "InvoiceDetailView",
1823
- props: {
1824
- invoice: {}
1825
- },
1826
- setup(i) {
1827
- const n = i, t = D(), l = Te(!1), a = c(() => [
1828
- {
1829
- label: t.t("wise_invoicing.invoice.overview.title"),
1830
- to: {
1831
- name: "invoicing-invoice-overview"
1832
- }
1833
- },
1834
- {
1835
- label: n.invoice.sequence ?? n.invoice.subject ?? t.t("wise_invoicing.invoice.detail.fallback_title")
1836
- }
1837
- ]);
1838
- return (m, d) => (r(), v(vn, {
1839
- "billing-document": n.invoice,
1840
- breadcrumbs: a.value,
1841
- title: e(t).t("wise_invoicing.invoice.detail.fallback_title")
1842
- }, {
1843
- header: s(() => [
1844
- o(Hn, {
1845
- invoice: n.invoice,
1846
- "is-pdf-view-active": l.value,
1847
- class: "w-full",
1848
- onTogglePdfView: d[0] || (d[0] = (f) => l.value = !l.value)
1849
- }, null, 8, ["invoice", "is-pdf-view-active"])
1850
- ]),
1851
- default: s(() => [
1852
- l.value ? (r(), v(mn, {
1853
- key: 0,
1854
- "billing-document": n.invoice,
1855
- class: "w-full"
1856
- }, null, 8, ["billing-document"])) : (r(), N(ae, { key: 1 }, [
1857
- o(gt, {
1858
- invoice: n.invoice
1859
- }, null, 8, ["invoice"]),
1860
- e(K).isEditable(n.invoice.status) ? x("", !0) : (r(), v(dt, {
1861
- key: 0,
1862
- invoice: n.invoice,
1863
- class: "w-full"
1864
- }, null, 8, ["invoice"])),
1865
- o(Zn, {
1866
- invoice: n.invoice,
1867
- class: "w-full"
1868
- }, null, 8, ["invoice"]),
1869
- o(Wn, {
1870
- invoice: n.invoice,
1871
- class: "w-full"
1872
- }, null, 8, ["invoice"])
1873
- ], 64))
1874
- ]),
1875
- sidebar: s(() => [
1876
- o(it, {
1877
- invoice: n.invoice
1878
- }, null, 8, ["invoice"])
1879
- ]),
1880
- _: 1
1881
- }, 8, ["billing-document", "breadcrumbs", "title"]));
1882
- }
1883
- }), Tt = /* @__PURE__ */ I({
1884
- __name: "InvoiceDetailViewDataProvider",
1885
- props: {
1886
- invoiceUuid: {}
1887
- },
1888
- setup(i) {
1889
- const n = i, t = D(), l = c(() => [
1890
- {
1891
- label: t.t("wise_invoicing.invoice.overview.title"),
1892
- to: {
1893
- name: "invoicing-invoice-overview"
1894
- }
1895
- }
1896
- ]), a = di(c(() => n.invoiceUuid));
1897
- return (m, d) => (r(), v(pn, {
1898
- query: e(a),
1899
- "loading-breadcrumbs": l.value
1900
- }, {
1901
- default: s(({ billingDocument: f }) => [
1902
- o(yt, { invoice: f }, null, 8, ["invoice"])
1903
- ]),
1904
- _: 1
1905
- }, 8, ["query", "loading-breadcrumbs"]));
1906
- }
1907
- });
1908
- export {
1909
- Tt as default
1910
- };