@wisemen/wise-invoicing-web 0.0.2 → 0.0.4

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