@wisemen/wise-invoicing-web 0.1.0 → 0.2.0

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