@wisemen/wise-invoicing-web 0.1.1 → 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 (206) hide show
  1. package/dist/ApprovalReminderSettingsViewDataProvider-D-qXZrPT.js +151 -0
  2. package/dist/{BillingDocumentDetailViewDataProvider-f5goWm_i.js → BillingDocumentDetailViewDataProvider-DDdtlW-2.js} +1386 -1450
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-5vi2pgRM.js → BillingDocumentPdf-ehdFB6mr.js} +4 -4
  5. package/dist/{CreditNoteDetailViewDataProvider-Byd1QvfY.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/utils/html.util.d.ts +4 -0
  134. package/package.json +2 -1
  135. package/dist/AddOpenBoundaryIcon-9SqBHfoz.js +0 -25
  136. package/dist/AirlineIcon-Z6sH_StM.js +0 -26
  137. package/dist/AirplaneIcon-C-nSkD1w.js +0 -19
  138. package/dist/AirportIcon-m4itDKCV.js +0 -16
  139. package/dist/AlertTriangleIcon-DtYLCC-Y.js +0 -23
  140. package/dist/AllocationsIcon-hcg93Sll.js +0 -16
  141. package/dist/ArrowNarrowRightIcon-2-Sml68f.js +0 -23
  142. package/dist/AssetIcon-qOYs6Wna.js +0 -16
  143. package/dist/BarChartIcon-DDyzpV_3.js +0 -22
  144. package/dist/BellIcon-DF1OBFta.js +0 -21
  145. package/dist/BuildingIcon-CC5PMNeP.js +0 -22
  146. package/dist/ChargerIcon-aM_endLr.js +0 -16
  147. package/dist/ChevronDownIcon-4QiK-Z6-.js +0 -23
  148. package/dist/ChevronUpIcon-qBsjZ5Dz.js +0 -23
  149. package/dist/ClockIcon-BNiPCaiB.js +0 -23
  150. package/dist/ClockSnoozeIcon-BxGfwJB6.js +0 -23
  151. package/dist/CopyIcon-DH5ly0dZ.js +0 -19
  152. package/dist/DataProvider-Dj34ljUX.js +0 -75
  153. package/dist/DownloadCloudIcon-Cf8ftklG.js +0 -22
  154. package/dist/EditIcon-Dr7OHBBR.js +0 -21
  155. package/dist/EraserIcon-B1VJSvdI.js +0 -23
  156. package/dist/FileIcon-ssmQI5Yl.js +0 -23
  157. package/dist/FilterLinesIcon-C7YdyPBk.js +0 -23
  158. package/dist/GlobeIcon-BfRM6Ike.js +0 -22
  159. package/dist/HelpIcon-BrJ49P5y.js +0 -22
  160. package/dist/HourGlassIcon-D9rfU1Is.js +0 -22
  161. package/dist/InfoCircleIcon-Ee0SyiMc.js +0 -23
  162. package/dist/InvoiceDetailViewDataProvider-BU6jZfD7.js +0 -1670
  163. package/dist/InvoiceOverviewViewDataProvider-i8tXATJE.js +0 -1677
  164. package/dist/InvoicePublicPdfViewDataProvider-BJe-8hC5.js +0 -45
  165. package/dist/KeyboardIcon-T3o_g-1c.js +0 -22
  166. package/dist/LinkExternalIcon-BkHS4fCx.js +0 -22
  167. package/dist/LinkIcon-DuPwae98.js +0 -22
  168. package/dist/MarkerIcon-B1Jqenjb.js +0 -28
  169. package/dist/MobileBatteryIcon-GZ1SMRDV.js +0 -16
  170. package/dist/MonitorIcon-pbK22reU.js +0 -22
  171. package/dist/NotificationIcon-Ctv8vyWt.js +0 -19
  172. package/dist/ParkingIcon-DnUPW3pB.js +0 -24
  173. package/dist/PlanningIcon-CXvrskgj.js +0 -16
  174. package/dist/PreferenceIcon-BHS8uDyi.js +0 -22
  175. package/dist/ReceiptCheckIcon-QTestqCJ.js +0 -23
  176. package/dist/RefreshIcon-DShY-aoS.js +0 -22
  177. package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +0 -28
  178. package/dist/RewindIcon-GWg2AQax.js +0 -22
  179. package/dist/SettingsIcon-CBLJ6B5u.js +0 -25
  180. package/dist/ShieldIcon-CVnrOcxl.js +0 -19
  181. package/dist/ShieldOffIcon-B9l0dDVb.js +0 -23
  182. package/dist/SignOutIcon-CmDkjJ5F.js +0 -21
  183. package/dist/SlashCircleIcon-jY5FBko5.js +0 -22
  184. package/dist/StandIcon-CoYnBLMn.js +0 -23
  185. package/dist/StarsIcon-D7ZlqOW7.js +0 -22
  186. package/dist/StopwatchIcon-BK0vh1lg.js +0 -22
  187. package/dist/TargetIcon-HMWj77-Q.js +0 -22
  188. package/dist/ThreeDotsIcon-BtFruOKz.js +0 -32
  189. package/dist/ToolIcon-DRfDb7fE.js +0 -22
  190. package/dist/TrashIcon-BwxBjHv5.js +0 -19
  191. package/dist/TurnaroundIcon-b1X61TwZ.js +0 -27
  192. package/dist/UploadCloudIcon-BF0equKg.js +0 -22
  193. package/dist/UserIcon-B0rCC6KE.js +0 -22
  194. package/dist/UsersIcon-cK5l_zKG.js +0 -22
  195. package/dist/VerifiedIcon-CELYlqcv.js +0 -22
  196. package/dist/WifiIcon--JPvMNEF.js +0 -23
  197. package/dist/WifiOffIcon-BS2KftcP.js +0 -23
  198. package/dist/ZapIcon-BHwcIQc0.js +0 -23
  199. package/dist/ZoomInIcon-Cu6r915V.js +0 -23
  200. package/dist/ZoomOutIcon-DwB4FRj-.js +0 -23
  201. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  202. package/dist/instant.transformer-KmBsH3E9.js +0 -18
  203. package/dist/invoice.service-Bb8VqQvc.js +0 -635
  204. package/dist/invoiceDeliveryStatus.util-BPkGCQM6.js +0 -331
  205. package/dist/reminderConfig.query-DsJNqqi7.js +0 -331
  206. package/dist/search.composable-BCtYqudV.js +0 -52
@@ -1,8 +1,8 @@
1
- import { useRoute as e, useRouter as t } from "vue-router";
2
1
  import "vue-i18n";
3
- import { computed as n, readonly as r, ref as i, shallowRef as a, toValue as o, watch as s } from "vue";
2
+ import { computed as e, readonly as t, ref as n, shallowRef as r, toValue as i, watch as a } from "vue";
4
3
  import "@tanstack/vue-query";
5
4
  import "@vueuse/core";
5
+ import { useRoute as o, useRouter as s } from "vue-router";
6
6
  import "@tanstack/vue-virtual";
7
7
  //#region ../toolkit/src/composables/currency-format/useCurrencyFormat.composable.ts
8
8
  function c(e, t) {
@@ -10,45 +10,45 @@ function c(e, t) {
10
10
  }
11
11
  //#endregion
12
12
  //#region ../toolkit/src/composables/document-title/documentTitle.composable.ts
13
- var l = i("{title}");
13
+ var l = n("{title}");
14
14
  function u(e) {
15
15
  if (!e.includes("{title}")) throw Error("Template must include {title}");
16
16
  l.value = e;
17
17
  }
18
18
  function d() {
19
- let e = i(document.title);
20
- function t(t) {
21
- s(() => o(t), (t) => {
19
+ let e = n(document.title);
20
+ function r(t) {
21
+ a(() => i(t), (t) => {
22
22
  e.value = t;
23
23
  }, { immediate: !0 });
24
24
  }
25
- return s(e, (e) => {
25
+ return a(e, (e) => {
26
26
  document.title = l.value.replace("{title}", e);
27
27
  }, { immediate: !0 }), {
28
- title: r(e),
29
- set: t,
28
+ title: t(e),
29
+ set: r,
30
30
  setTemplate: u
31
31
  };
32
32
  }
33
33
  //#endregion
34
34
  //#region ../toolkit/src/composables/routeQueryState.composable.ts
35
- function f(n) {
36
- let r = e(), a = t();
37
- function o(e) {
38
- if (e === null) return n.initialState;
35
+ function f(e) {
36
+ let t = o(), r = s();
37
+ function i(t) {
38
+ if (t === null) return e.initialState;
39
39
  try {
40
- return n.serializer.parse(e);
40
+ return e.serializer.parse(t);
41
41
  } catch {
42
- return n.initialState;
42
+ return e.initialState;
43
43
  }
44
44
  }
45
- let c = i(o(r.query[n.key]));
46
- return s(() => r.query[n.key], (e) => {
47
- c.value = o(e ?? null);
48
- }, { immediate: !0 }), s(c, (e) => {
49
- a.replace({ query: {
50
- ...r.query,
51
- [n.key]: n.serializer.serialize(e) || void 0
45
+ let c = n(i(t.query[e.key]));
46
+ return a(() => t.query[e.key], (e) => {
47
+ c.value = i(e ?? null);
48
+ }, { immediate: !0 }), a(c, (n) => {
49
+ r.replace({ query: {
50
+ ...t.query,
51
+ [e.key]: e.serializer.serialize(n) || void 0
52
52
  } });
53
53
  }, { deep: !0 }), c;
54
54
  }
@@ -67,56 +67,56 @@ function h(e) {
67
67
  };
68
68
  }).filter(Boolean) : [];
69
69
  }
70
- function g(e) {
71
- let t = e.persistInUrl === !1 ? !1 : e.persistInUrl ?? p, r = t === !0 || typeof t == "string" ? f({
72
- initialState: e.initialValues ?? [],
73
- key: typeof t == "string" ? t : p,
70
+ function g(t) {
71
+ let n = t.persistInUrl === !1 ? !1 : t.persistInUrl ?? p, i = n === !0 || typeof n == "string" ? f({
72
+ initialState: t.initialValues ?? [],
73
+ key: typeof n == "string" ? n : p,
74
74
  serializer: {
75
75
  parse: h,
76
76
  serialize: m
77
77
  }
78
- }) : a(e.initialValues ?? []);
79
- function i(t) {
80
- let n = r.value.findIndex((e) => e.key === t);
78
+ }) : r(t.initialValues ?? []);
79
+ function a(e) {
80
+ let n = i.value.findIndex((t) => t.key === e);
81
81
  if (n !== -1) {
82
- let i = r.value[n] ?? null;
83
- if (i === null) return;
84
- if (i.direction === "asc") {
85
- r.value = e.enableMultiSort ? r.value.map((e, t) => t === n ? {
82
+ let r = i.value[n] ?? null;
83
+ if (r === null) return;
84
+ if (r.direction === "asc") {
85
+ i.value = t.enableMultiSort ? i.value.map((e, t) => t === n ? {
86
86
  ...e,
87
87
  direction: "desc"
88
88
  } : e) : [{
89
89
  direction: "desc",
90
- key: t
90
+ key: e
91
91
  }];
92
92
  return;
93
93
  }
94
- r.value = r.value.filter((e, t) => t !== n);
94
+ i.value = i.value.filter((e, t) => t !== n);
95
95
  return;
96
96
  }
97
- r.value = e.enableMultiSort ? [{
97
+ i.value = t.enableMultiSort ? [{
98
98
  direction: "asc",
99
- key: t
100
- }, ...r.value] : [{
99
+ key: e
100
+ }, ...i.value] : [{
101
101
  direction: "asc",
102
- key: t
102
+ key: e
103
103
  }];
104
104
  }
105
- function o(t) {
106
- return e.keys.includes(t);
105
+ function o(e) {
106
+ return t.keys.includes(e);
107
107
  }
108
108
  function s(e) {
109
- return r.value.find((t) => t.key === e) ?? null;
109
+ return i.value.find((t) => t.key === e) ?? null;
110
110
  }
111
111
  function c() {
112
- r.value = [];
112
+ i.value = [];
113
113
  }
114
114
  return {
115
115
  existsSort: o,
116
116
  getSort: s,
117
117
  resetSort: c,
118
- setSort: i,
119
- values: n(() => r.value)
118
+ setSort: a,
119
+ values: e(() => i.value)
120
120
  };
121
121
  }
122
122
  //#endregion