@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,71 +1,71 @@
1
- import { B as e, D as t, P as n, V as r, a as i, n as a, y as o } from "./dist-D9lp7NDv.js";
1
+ import { K as e, a as t, b as n, k as r, n as i, q as a, z as o } from "./dist-Cxdm09Lp.js";
2
2
  import { n as s } from "./dist-boJIIxnT.js";
3
- import { GroupPriority as c, createAction as l, useTemporaryActions as u } from "@wisemen/vue-core-actions";
4
- import d from "zod";
5
- import { useI18n as f } from "vue-i18n";
6
- import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createVNode as y, defineComponent as b, inject as x, mergeProps as ee, normalizeClass as te, onUnmounted as S, openBlock as C, provide as ne, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as re, toDisplayString as ie, unref as D, useId as ae, watch as oe, withCtx as O } from "vue";
7
- import { UIActionDropdownMenu as se, UIActionFocus as ce, UIActionTooltip as le, UIActionTrigger as ue, UIButton as de, UIClickableElement as k, UIDatePicker as fe, UIDateRangePicker as pe, UIDialog as me, UIDialogBody as he, UIDialogFooter as ge, UIDialogFooterCancel as _e, UIDialogFooterPrimary as ve, UIDialogFooterSecondary as ye, UIDialogFooterSubmit as be, UIDialogHeader as xe, UIDropdownMenu as Se, UIDropdownMenuGroup as Ce, UIDropdownMenuRadioGroup as we, UIDropdownMenuRadioItem as Te, UIFormDialog as Ee, UIIconButton as De, UINumberField as Oe, UIRowLayout as ke, UISeparator as Ae, UIText as A, toFormField as je, useNumberFormat as Me, useOverlay as Ne } from "@wisemen/vue-core-design-system";
8
- import { useForm as Pe } from "formango";
3
+ import c from "zod";
4
+ import { useI18n as l } from "vue-i18n";
5
+ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, inject as v, mergeProps as y, normalizeClass as ee, onUnmounted as te, openBlock as b, provide as ne, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as re, toDisplayString as ie, unref as w, useId as ae, watch as oe, withCtx as T } from "vue";
6
+ import { UIActionDropdownMenu as se, UIActionFocus as ce, UIActionTooltip as le, UIActionTrigger as E, UIButton as ue, UIClickableElement as D, UIDatePicker as de, UIDateRangePicker as fe, UIDialog as pe, UIDialogBody as me, UIDialogFooter as he, UIDialogFooterCancel as ge, UIDialogFooterPrimary as _e, UIDialogFooterSecondary as ve, UIDialogFooterSubmit as ye, UIDialogHeader as be, UIDropdownMenu as xe, UIDropdownMenuGroup as Se, UIDropdownMenuRadioGroup as Ce, UIDropdownMenuRadioItem as we, UIFormDialog as Te, UIIconButton as Ee, UINumberField as De, UIRowLayout as Oe, UISeparator as ke, UIText as O, toFormField as Ae, useNumberFormat as je, useOverlay as Me } from "@wisemen/vue-core-design-system";
7
+ import { GroupPriority as Ne, createAction as k, useTemporaryActions as Pe } from "@wisemen/vue-core-actions";
8
+ import { useForm as Fe } from "formango";
9
9
  //#region ../../../node_modules/.pnpm/@wisemen+vue-core-filters@10.0.2_02c94a8c9ac255b840f2603ac9f74c0b/node_modules/@wisemen/vue-core-filters/dist/index.js
10
- function Fe(e) {
10
+ function Ie(e) {
11
11
  let t = Symbol(e);
12
12
  function n(e) {
13
13
  return ne(t, e), e;
14
14
  }
15
15
  function r(n) {
16
- let r = x(t, n ?? void 0);
16
+ let r = v(t, n ?? void 0);
17
17
  if (r === void 0 && n === void 0) throw Error(`${e} context is not provided.`);
18
18
  return r ?? null;
19
19
  }
20
20
  return [n, r];
21
21
  }
22
- var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
22
+ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
23
23
  __name: "FiltersActiveAddFilters",
24
24
  setup(t) {
25
- let n = f(), { action: r } = j();
26
- return (t, i) => (C(), h(D(se), {
25
+ let n = l(), { action: r } = A();
26
+ return (t, i) => (b(), f(w(se), {
27
27
  metadata: { filters: { hideClearAll: !0 } },
28
28
  "is-current-context-only": !1,
29
- "parent-action": D(r),
29
+ "parent-action": w(r),
30
30
  "popover-collision-padding": 10,
31
31
  "fixed-content-position": !0,
32
32
  "popover-align": "start",
33
33
  "popover-side": "bottom"
34
34
  }, {
35
- default: O(() => [y(D(De), {
36
- icon: D(e),
37
- label: D(n).t("component.filters.add_filter"),
35
+ default: T(() => [g(w(Ee), {
36
+ icon: w(e),
37
+ label: w(n).t("component.filters.add_filter"),
38
38
  variant: "tertiary",
39
39
  size: "sm"
40
40
  }, null, 8, ["icon", "label"])]),
41
41
  _: 1
42
42
  }, 8, ["parent-action"]));
43
43
  }
44
- }), Re = { class: "flex h-6 items-center rounded-sm border border-secondary select-none" }, M = /* @__PURE__ */ b({
44
+ }), ze = { class: "flex h-6 items-center rounded-sm border border-secondary select-none" }, j = /* @__PURE__ */ _({
45
45
  __name: "FiltersActiveBadgeBase",
46
46
  props: { filter: {} },
47
47
  setup(e) {
48
- let r = e, i = f(), { clearFilter: a } = j(), o = l({
49
- id: `clear-filter-${r.filter.key}`,
50
- name: () => i.t("component.filters.remove_filter"),
48
+ let t = e, n = l(), { clearFilter: i } = A(), a = k({
49
+ id: `clear-filter-${t.filter.key}`,
50
+ name: () => n.t("component.filters.remove_filter"),
51
51
  execute: () => {
52
- a(r.filter.key);
52
+ i(t.filter.key);
53
53
  },
54
54
  group: {
55
- name: () => r.filter.label,
56
- category: () => i.t("component.filters.action_category"),
57
- priority: c.HOVER
55
+ name: () => t.filter.label,
56
+ category: () => n.t("component.filters.action_category"),
57
+ priority: Ne.HOVER
58
58
  },
59
- icon: () => t,
59
+ icon: () => r,
60
60
  keyboardShortcut: { key: "Backspace" }
61
61
  });
62
- return (e, t) => (C(), h(D(ce), { actions: [D(o)] }, {
63
- default: O(() => [v("div", Re, [E(e.$slots, "default"), r.filter.isPersistent === !0 ? g("", !0) : (C(), _(p, { key: 0 }, [y(D(Ae), { orientation: "vertical" }), y(D(ue), {
64
- action: D(o),
62
+ return (e, n) => (b(), f(w(ce), { actions: [w(a)] }, {
63
+ default: T(() => [h("div", ze, [C(e.$slots, "default"), t.filter.isPersistent === !0 ? p("", !0) : (b(), m(u, { key: 0 }, [g(w(ke), { orientation: "vertical" }), g(w(E), {
64
+ action: w(a),
65
65
  "is-current-context-only": !0
66
66
  }, {
67
- default: O(({ keyboardShortcut: e, label: t }) => [y(D(De), {
68
- icon: D(n),
67
+ default: T(({ keyboardShortcut: e, label: t }) => [g(w(Ee), {
68
+ icon: w(o),
69
69
  "keyboard-shortcut": e,
70
70
  label: t,
71
71
  size: "xs",
@@ -81,7 +81,7 @@ var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
81
81
  _: 3
82
82
  }, 8, ["actions"]));
83
83
  }
84
- }), N = /* @__PURE__ */ b({
84
+ }), M = /* @__PURE__ */ _({
85
85
  __name: "FiltersActiveBadgeBasePart",
86
86
  props: {
87
87
  isInteractive: {
@@ -93,71 +93,71 @@ var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
93
93
  },
94
94
  setup(e) {
95
95
  let t = e;
96
- return (e, n) => (C(), h(D(ke), {
97
- class: te([{ "hover:bg-fg-primary/2 dark:hover:bg-fg-primary/5": t.isInteractive }, "size-full px-sm"]),
96
+ return (e, n) => (b(), f(w(Oe), {
97
+ class: ee([{ "hover:bg-fg-primary/2 dark:hover:bg-fg-primary/5": t.isInteractive }, "size-full px-sm"]),
98
98
  gap: "xs"
99
99
  }, {
100
- default: O(() => [
101
- t.icon === null ? g("", !0) : (C(), h(re(t.icon), {
100
+ default: T(() => [
101
+ t.icon === null ? p("", !0) : (b(), f(re(t.icon), {
102
102
  key: 0,
103
103
  class: "size-3 text-primary"
104
104
  })),
105
- t.label === null ? g("", !0) : (C(), h(D(A), {
105
+ t.label === null ? p("", !0) : (b(), f(w(O), {
106
106
  key: 1,
107
107
  text: t.label,
108
108
  class: "text-xs text-primary"
109
109
  }, null, 8, ["text"])),
110
- E(e.$slots, "default")
110
+ C(e.$slots, "default")
111
111
  ]),
112
112
  _: 3
113
113
  }, 8, ["class"]));
114
114
  }
115
- }), P = /* @__PURE__ */ b({
115
+ }), N = /* @__PURE__ */ _({
116
116
  __name: "FiltersActiveBadgePartSeparator",
117
117
  setup(e) {
118
- return (e, t) => (C(), h(D(Ae), { orientation: "vertical" }));
118
+ return (e, t) => (b(), f(w(ke), { orientation: "vertical" }));
119
119
  }
120
- }), ze = ["disabled"], Be = /* @__PURE__ */ b({
120
+ }), Be = ["disabled"], Ve = /* @__PURE__ */ _({
121
121
  __name: "FiltersActiveBadgeBoolean",
122
122
  props: { filter: {} },
123
123
  setup(e) {
124
- let t = e, n = f(), { values: r } = j(), i = m(() => r.value[t.filter.key]), a = m(() => String(i.value)), o = m(() => i.value ? t.filter.trueOperatorLabel ?? n.t("component.filters.operator.is") : t.filter.falseOperatorLabel ?? n.t("component.filters.operator.is_not"));
124
+ let t = e, n = l(), { values: r } = A(), i = d(() => r.value[t.filter.key]), a = d(() => String(i.value)), o = d(() => i.value ? t.filter.trueOperatorLabel ?? n.t("component.filters.operator.is") : t.filter.falseOperatorLabel ?? n.t("component.filters.operator.is_not"));
125
125
  function s(e) {
126
126
  r.value[t.filter.key] = e === "true";
127
127
  }
128
- return (e, r) => (C(), h(M, { filter: t.filter }, {
129
- default: O(() => [
130
- y(N, {
128
+ return (e, r) => (b(), f(j, { filter: t.filter }, {
129
+ default: T(() => [
130
+ g(M, {
131
131
  label: t.filter.label,
132
132
  icon: t.filter.icon ?? null
133
133
  }, null, 8, ["label", "icon"]),
134
- y(P),
135
- y(D(Se), {
134
+ g(N),
135
+ g(w(xe), {
136
136
  "popover-side": "bottom",
137
137
  "popover-align": "start",
138
138
  "width-classes": "w-32"
139
139
  }, {
140
- trigger: O(() => [y(D(k), null, {
141
- default: O(() => [v("button", {
140
+ trigger: T(() => [g(w(D), null, {
141
+ default: T(() => [h("button", {
142
142
  disabled: t.filter.disableOperators ?? !1,
143
143
  type: "button",
144
144
  class: "size-full disabled:cursor-not-allowed"
145
- }, [y(N, {
145
+ }, [g(M, {
146
146
  "is-interactive": !(t.filter.disableOperators ?? !1),
147
147
  label: o.value
148
- }, null, 8, ["is-interactive", "label"])], 8, ze)]),
148
+ }, null, 8, ["is-interactive", "label"])], 8, Be)]),
149
149
  _: 1
150
150
  })]),
151
- content: O(() => [y(D(Ce), null, {
152
- default: O(() => [y(D(we), {
151
+ content: T(() => [g(w(Se), null, {
152
+ default: T(() => [g(w(Ce), {
153
153
  "model-value": a.value,
154
154
  "onUpdate:modelValue": s
155
155
  }, {
156
- default: O(() => [y(D(Te), {
157
- label: t.filter.trueOperatorLabel ?? D(n).t("component.filters.operator.is"),
156
+ default: T(() => [g(w(we), {
157
+ label: t.filter.trueOperatorLabel ?? w(n).t("component.filters.operator.is"),
158
158
  value: "true"
159
- }, null, 8, ["label"]), y(D(Te), {
160
- label: t.filter.falseOperatorLabel ?? D(n).t("component.filters.operator.is_not"),
159
+ }, null, 8, ["label"]), g(w(we), {
160
+ label: t.filter.falseOperatorLabel ?? w(n).t("component.filters.operator.is_not"),
161
161
  value: "false"
162
162
  }, null, 8, ["label"])]),
163
163
  _: 1
@@ -166,8 +166,8 @@ var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
166
166
  })]),
167
167
  _: 1
168
168
  }),
169
- y(P),
170
- y(N, {
169
+ g(N),
170
+ g(M, {
171
171
  label: t.filter.entityLabel,
172
172
  class: "lowercase"
173
173
  }, null, 8, ["label"])
@@ -175,7 +175,7 @@ var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
175
175
  _: 1
176
176
  }, 8, ["filter"]));
177
177
  }
178
- }), Ve = ["aria-label"], He = ["aria-label"], Ue = /* @__PURE__ */ b({
178
+ }), He = ["aria-label"], Ue = ["aria-label"], We = /* @__PURE__ */ _({
179
179
  __name: "FiltersActiveBadgeDateNavigation",
180
180
  props: {
181
181
  filterId: {},
@@ -183,12 +183,12 @@ var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
183
183
  until: {}
184
184
  },
185
185
  emits: ["navigate"],
186
- setup(e, { emit: t }) {
187
- let n = e, r = t, { actionGroup: s } = j(), c = f(), d = m(() => {
188
- let { from: e, until: t } = n;
186
+ setup(e, { emit: r }) {
187
+ let a = e, o = r, { actionGroup: s } = A(), c = l(), f = d(() => {
188
+ let { from: e, until: t } = a;
189
189
  return e === null || t === null || e.equals(t) ? "day" : e.month === 1 && e.day === 1 && t.month === 12 && t.day === 31 && e.year === t.year ? "year" : e.day === 1 && t.equals(e.add({ months: 1 }).add({ days: -1 })) ? "month" : e.add({ days: 6 }).equals(t) ? "week" : "custom";
190
- }), h = m(() => {
191
- switch (d.value) {
190
+ }), p = d(() => {
191
+ switch (f.value) {
192
192
  case "day": return c.t("component.filters_date_navigation.previous_day");
193
193
  case "week": return c.t("component.filters_date_navigation.previous_week");
194
194
  case "month": return c.t("component.filters_date_navigation.previous_month");
@@ -196,8 +196,8 @@ var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
196
196
  case "custom": return c.t("component.filters_date_navigation.previous_period");
197
197
  default: throw Error("invalid period");
198
198
  }
199
- }), g = m(() => {
200
- switch (d.value) {
199
+ }), _ = d(() => {
200
+ switch (f.value) {
201
201
  case "day": return c.t("component.filters_date_navigation.next_day");
202
202
  case "week": return c.t("component.filters_date_navigation.next_week");
203
203
  case "month": return c.t("component.filters_date_navigation.next_month");
@@ -206,110 +206,110 @@ var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
206
206
  default: throw Error("invalid period");
207
207
  }
208
208
  });
209
- function b(e) {
209
+ function v(e) {
210
210
  let t = Temporal.Now.plainDateISO();
211
- if (n.from === null) {
212
- r("navigate", t, t);
211
+ if (a.from === null) {
212
+ o("navigate", t, t);
213
213
  return;
214
214
  }
215
- let i = n.from, a = n.until ?? i;
216
- switch (d.value) {
215
+ let n = a.from, r = a.until ?? n;
216
+ switch (f.value) {
217
217
  case "day": {
218
- let t = i.add({ days: e });
219
- r("navigate", t, t);
218
+ let t = n.add({ days: e });
219
+ o("navigate", t, t);
220
220
  break;
221
221
  }
222
222
  case "week":
223
- r("navigate", i.add({ weeks: e }), a.add({ weeks: e }));
223
+ o("navigate", n.add({ weeks: e }), r.add({ weeks: e }));
224
224
  break;
225
225
  case "month": {
226
- let t = i.add({ months: e });
227
- r("navigate", t, t.add({ months: 1 }).add({ days: -1 }));
226
+ let t = n.add({ months: e });
227
+ o("navigate", t, t.add({ months: 1 }).add({ days: -1 }));
228
228
  break;
229
229
  }
230
230
  case "year": {
231
- let t = i.add({ years: e });
232
- r("navigate", t, t.with({
231
+ let t = n.add({ years: e });
232
+ o("navigate", t, t.with({
233
233
  day: 31,
234
234
  month: 12
235
235
  }));
236
236
  break;
237
237
  }
238
238
  case "custom": {
239
- let t = a.since(i, { largestUnit: "day" }).days + 1;
240
- r("navigate", i.add({ days: e * t }), a.add({ days: e * t }));
239
+ let t = r.since(n, { largestUnit: "day" }).days + 1;
240
+ o("navigate", n.add({ days: e * t }), r.add({ days: e * t }));
241
241
  break;
242
242
  }
243
243
  }
244
244
  }
245
- let x = l({
246
- id: `${n.filterId}-previous`,
245
+ let y = k({
246
+ id: `${a.filterId}-previous`,
247
247
  isApplicable: (e) => e.menuType === void 0,
248
- name: () => h.value,
249
- execute: () => b(-1),
248
+ name: () => p.value,
249
+ execute: () => v(-1),
250
250
  group: s,
251
- icon: () => o,
251
+ icon: () => n,
252
252
  keyboardShortcut: { key: "ArrowLeft" }
253
- }), ee = l({
254
- id: `${n.filterId}-next`,
253
+ }), ee = k({
254
+ id: `${a.filterId}-next`,
255
255
  isApplicable: (e) => e.menuType === void 0,
256
- name: () => g.value,
257
- execute: () => b(1),
256
+ name: () => _.value,
257
+ execute: () => v(1),
258
258
  group: s,
259
- icon: () => a,
259
+ icon: () => i,
260
260
  keyboardShortcut: { key: "ArrowRight" }
261
261
  });
262
- return u(l({
263
- id: `${n.filterId}-today`,
262
+ return Pe(k({
263
+ id: `${a.filterId}-today`,
264
264
  isApplicable: (e) => e.menuType === void 0,
265
265
  name: () => c.t("component.filters_date_navigation.today"),
266
266
  execute: () => {
267
267
  let e = Temporal.Now.plainDateISO();
268
- r("navigate", e, e);
268
+ o("navigate", e, e);
269
269
  },
270
270
  group: s,
271
- icon: () => i,
271
+ icon: () => t,
272
272
  keyboardShortcut: { key: "T" }
273
- })), (e, t) => (C(), _(p, null, [
274
- y(D(ue), {
275
- action: D(x),
273
+ })), (e, t) => (b(), m(u, null, [
274
+ g(w(E), {
275
+ action: w(y),
276
276
  "is-current-context-only": !1
277
277
  }, {
278
- default: O(({ label: e, keyboardShortcut: n }) => [y(D(le), {
278
+ default: T(({ label: e, keyboardShortcut: r }) => [g(w(le), {
279
279
  label: e,
280
- "keyboard-shortcut": n
280
+ "keyboard-shortcut": r
281
281
  }, {
282
- default: O(() => [y(D(k), null, {
283
- default: O(() => [v("button", {
282
+ default: T(() => [g(w(D), null, {
283
+ default: T(() => [h("button", {
284
284
  "aria-label": e,
285
285
  type: "button",
286
286
  class: "flex h-full w-4 shrink-0 items-center justify-center rounded-none! hover:bg-fg-primary/2 dark:hover:bg-fg-primary/5",
287
- onClick: t[0] ||= (e) => b(-1)
288
- }, [y(D(o), { class: "size-3.5 text-primary" })], 8, Ve)]),
287
+ onClick: t[0] ||= (e) => v(-1)
288
+ }, [g(w(n), { class: "size-3.5 text-primary" })], 8, He)]),
289
289
  _: 2
290
290
  }, 1024)]),
291
291
  _: 2
292
292
  }, 1032, ["label", "keyboard-shortcut"])]),
293
293
  _: 1
294
294
  }, 8, ["action"]),
295
- y(P),
296
- E(e.$slots, "default"),
297
- y(P),
298
- y(D(ue), {
299
- action: D(ee),
295
+ g(N),
296
+ C(e.$slots, "default"),
297
+ g(N),
298
+ g(w(E), {
299
+ action: w(ee),
300
300
  "is-current-context-only": !1
301
301
  }, {
302
- default: O(({ label: e, keyboardShortcut: n }) => [y(D(le), {
302
+ default: T(({ label: e, keyboardShortcut: n }) => [g(w(le), {
303
303
  label: e,
304
304
  "keyboard-shortcut": n
305
305
  }, {
306
- default: O(() => [y(D(k), null, {
307
- default: O(() => [v("button", {
306
+ default: T(() => [g(w(D), null, {
307
+ default: T(() => [h("button", {
308
308
  "aria-label": e,
309
309
  type: "button",
310
310
  class: "flex h-full w-4 shrink-0 items-center justify-center rounded-none! hover:bg-fg-primary/2 dark:hover:bg-fg-primary/5",
311
- onClick: t[1] ||= (e) => b(1)
312
- }, [y(D(a), { class: "size-3.5 text-primary" })], 8, He)]),
311
+ onClick: t[1] ||= (e) => v(1)
312
+ }, [g(w(i), { class: "size-3.5 text-primary" })], 8, Ue)]),
313
313
  _: 2
314
314
  }, 1024)]),
315
315
  _: 2
@@ -318,26 +318,26 @@ var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
318
318
  }, 8, ["action"])
319
319
  ], 64));
320
320
  }
321
- }), We = {
321
+ }), Ge = {
322
322
  type: "button",
323
323
  class: "size-full"
324
- }, F = /* @__PURE__ */ b({
324
+ }, P = /* @__PURE__ */ _({
325
325
  __name: "FiltersActiveBadgeDialogTrigger",
326
326
  props: { filter: {} },
327
327
  setup(e) {
328
328
  let t = e;
329
- return (e, n) => (C(), h(D(ue), {
329
+ return (e, n) => (b(), f(w(E), {
330
330
  "is-current-context-only": !0,
331
331
  action: t.filter.action
332
332
  }, {
333
- default: O(() => [y(D(k), null, {
334
- default: O(() => [v("button", We, [E(e.$slots, "default")])]),
333
+ default: T(() => [g(w(D), null, {
334
+ default: T(() => [h("button", Ge, [C(e.$slots, "default")])]),
335
335
  _: 3
336
336
  })]),
337
337
  _: 3
338
338
  }, 8, ["action"]));
339
339
  }
340
- }), Ge = ["disabled"], Ke = /* @__PURE__ */ b({
340
+ }), Ke = ["disabled"], F = /* @__PURE__ */ _({
341
341
  __name: "FiltersActiveBadgeOperatorDropdown",
342
342
  props: {
343
343
  disabled: { type: Boolean },
@@ -351,28 +351,28 @@ var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
351
351
  function i() {
352
352
  return n.label ?? n.options.find((e) => e.value === n.modelValue)?.label ?? n.modelValue;
353
353
  }
354
- return (e, t) => (C(), h(D(Se), {
354
+ return (e, t) => (b(), f(w(xe), {
355
355
  "popover-side": "bottom",
356
356
  "popover-align": "start",
357
357
  "width-classes": "w-40"
358
358
  }, {
359
- trigger: O(() => [y(D(k), null, {
360
- default: O(() => [v("button", {
359
+ trigger: T(() => [g(w(D), null, {
360
+ default: T(() => [h("button", {
361
361
  disabled: n.disabled,
362
362
  type: "button",
363
363
  class: "size-full"
364
- }, [y(N, {
364
+ }, [g(M, {
365
365
  "is-interactive": !(n.disabled ?? !1),
366
366
  label: i()
367
- }, null, 8, ["is-interactive", "label"])], 8, Ge)]),
367
+ }, null, 8, ["is-interactive", "label"])], 8, Ke)]),
368
368
  _: 1
369
369
  })]),
370
- content: O(() => [y(D(Ce), null, {
371
- default: O(() => [y(D(we), {
370
+ content: T(() => [g(w(Se), null, {
371
+ default: T(() => [g(w(Ce), {
372
372
  "model-value": n.modelValue,
373
373
  "onUpdate:modelValue": t[0] ||= (e) => r("update:modelValue", e)
374
374
  }, {
375
- default: O(() => [(C(!0), _(p, null, T(n.options, (e) => (C(), h(D(Te), {
375
+ default: T(() => [(b(!0), m(u, null, S(n.options, (e) => (b(), f(w(we), {
376
376
  key: e.value,
377
377
  label: e.label,
378
378
  value: e.value
@@ -384,12 +384,12 @@ var [Ie, j] = Fe("filtersContext"), Le = /* @__PURE__ */ b({
384
384
  _: 1
385
385
  }));
386
386
  }
387
- }), I = /* @__PURE__ */ b({
387
+ }), I = /* @__PURE__ */ _({
388
388
  __name: "FiltersActiveBadgeValueEmptyState",
389
389
  setup(e) {
390
- let t = f();
391
- return (e, n) => (C(), h(D(A), {
392
- "aria-label": D(t).t("component.filters.no_value"),
390
+ let t = l();
391
+ return (e, n) => (b(), f(w(O), {
392
+ "aria-label": w(t).t("component.filters.no_value"),
393
393
  text: "...",
394
394
  class: "text-xs text-placeholder"
395
395
  }, null, 8, ["aria-label"]));
@@ -538,7 +538,7 @@ var bt = [
538
538
  U((e) => e === 0 && 1 / e == -Infinity, "number", () => "-0", Number),
539
539
  U(_t, "URL", (e) => e.toString(), (e) => new URL(e))
540
540
  ];
541
- function xt(e, t, n, r) {
541
+ function W(e, t, n, r) {
542
542
  return {
543
543
  isApplicable: e,
544
544
  annotation: t,
@@ -546,11 +546,11 @@ function xt(e, t, n, r) {
546
546
  untransform: r
547
547
  };
548
548
  }
549
- var St = xt((e, t) => lt(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
549
+ var xt = W((e, t) => lt(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
550
550
  let r = n.symbolRegistry.getValue(t[1]);
551
551
  if (!r) throw Error("Trying to deserialize unknown symbol");
552
552
  return r;
553
- }), Ct = [
553
+ }), St = [
554
554
  Int8Array,
555
555
  Uint8Array,
556
556
  Int16Array,
@@ -560,15 +560,15 @@ var St = xt((e, t) => lt(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
560
560
  Float32Array,
561
561
  Float64Array,
562
562
  Uint8ClampedArray
563
- ].reduce((e, t) => (e[t.name] = t, e), {}), wt = xt(gt, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
564
- let n = Ct[t[1]];
563
+ ].reduce((e, t) => (e[t.name] = t, e), {}), Ct = W(gt, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
564
+ let n = St[t[1]];
565
565
  if (!n) throw Error("Trying to deserialize unknown typed array");
566
566
  return new n(e);
567
567
  });
568
- function Tt(e, t) {
568
+ function wt(e, t) {
569
569
  return e?.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
570
570
  }
571
- var Et = xt(Tt, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
571
+ var Tt = W(wt, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
572
572
  let n = t.classRegistry.getAllowedProps(e.constructor);
573
573
  if (!n) return { ...e };
574
574
  let r = {};
@@ -579,17 +579,17 @@ var Et = xt(Tt, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
579
579
  let r = n.classRegistry.getValue(t[1]);
580
580
  if (!r) throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
581
581
  return Object.assign(Object.create(r.prototype), e);
582
- }), Dt = xt((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
582
+ }), Et = W((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
583
583
  let r = n.customTransformerRegistry.findByName(t[1]);
584
584
  if (!r) throw Error("Trying to deserialize unknown custom value");
585
585
  return r.deserialize(e);
586
- }), Ot = [
586
+ }), Dt = [
587
+ Tt,
588
+ xt,
587
589
  Et,
588
- St,
589
- Dt,
590
- wt
591
- ], kt = (e, t) => {
592
- let n = $e(Ot, (n) => n.isApplicable(e, t));
590
+ Ct
591
+ ], Ot = (e, t) => {
592
+ let n = $e(Dt, (n) => n.isApplicable(e, t));
593
593
  if (n) return {
594
594
  value: n.transform(e, t),
595
595
  type: n.annotation(e, t)
@@ -599,41 +599,41 @@ var Et = xt(Tt, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
599
599
  value: r.transform(e, t),
600
600
  type: r.annotation
601
601
  };
602
- }, At = {};
602
+ }, kt = {};
603
603
  bt.forEach((e) => {
604
- At[e.annotation] = e;
604
+ kt[e.annotation] = e;
605
605
  });
606
- var jt = (e, t, n) => {
606
+ var At = (e, t, n) => {
607
607
  if (z(t)) switch (t[0]) {
608
- case "symbol": return St.untransform(e, t, n);
609
- case "class": return Et.untransform(e, t, n);
610
- case "custom": return Dt.untransform(e, t, n);
611
- case "typed-array": return wt.untransform(e, t, n);
608
+ case "symbol": return xt.untransform(e, t, n);
609
+ case "class": return Tt.untransform(e, t, n);
610
+ case "custom": return Et.untransform(e, t, n);
611
+ case "typed-array": return Ct.untransform(e, t, n);
612
612
  default: throw Error("Unknown transformation: " + t);
613
613
  }
614
614
  else {
615
- let r = At[t];
615
+ let r = kt[t];
616
616
  if (!r) throw Error("Unknown transformation: " + t);
617
617
  return r.untransform(e, n);
618
618
  }
619
- }, W = (e, t) => {
619
+ }, G = (e, t) => {
620
620
  if (t > e.size) throw Error("index out of bounds");
621
621
  let n = e.keys();
622
622
  for (; t > 0;) n.next(), t--;
623
623
  return n.next().value;
624
624
  };
625
- function Mt(e) {
625
+ function jt(e) {
626
626
  if (Qe(e, "__proto__")) throw Error("__proto__ is not allowed as a property");
627
627
  if (Qe(e, "prototype")) throw Error("prototype is not allowed as a property");
628
628
  if (Qe(e, "constructor")) throw Error("constructor is not allowed as a property");
629
629
  }
630
- var Nt = (e, t) => {
631
- Mt(t);
630
+ var Mt = (e, t) => {
631
+ jt(t);
632
632
  for (let n = 0; n < t.length; n++) {
633
633
  let r = t[n];
634
- if (V(e)) e = W(e, +r);
634
+ if (V(e)) e = G(e, +r);
635
635
  else if (B(e)) {
636
- let i = +r, a = +t[++n] == 0 ? "key" : "value", o = W(e, i);
636
+ let i = +r, a = +t[++n] == 0 ? "key" : "value", o = G(e, i);
637
637
  switch (a) {
638
638
  case "key":
639
639
  e = o;
@@ -643,8 +643,8 @@ var Nt = (e, t) => {
643
643
  } else e = e[r];
644
644
  }
645
645
  return e;
646
- }, Pt = (e, t, n) => {
647
- if (Mt(t), t.length === 0) return n(e);
646
+ }, Nt = (e, t, n) => {
647
+ if (jt(t), t.length === 0) return n(e);
648
648
  let r = e;
649
649
  for (let e = 0; e < t.length - 1; e++) {
650
650
  let n = t[e];
@@ -654,10 +654,10 @@ var Nt = (e, t) => {
654
654
  } else if (R(r)) r = r[n];
655
655
  else if (V(r)) {
656
656
  let e = +n;
657
- r = W(r, e);
657
+ r = G(r, e);
658
658
  } else if (B(r)) {
659
659
  if (e === t.length - 2) break;
660
- let i = +n, a = +t[++e] == 0 ? "key" : "value", o = W(r, i);
660
+ let i = +n, a = +t[++e] == 0 ? "key" : "value", o = G(r, i);
661
661
  switch (a) {
662
662
  case "key":
663
663
  r = o;
@@ -668,11 +668,11 @@ var Nt = (e, t) => {
668
668
  }
669
669
  let i = t[t.length - 1];
670
670
  if (z(r) ? r[+i] = n(r[+i]) : R(r) && (r[i] = n(r[i])), V(r)) {
671
- let e = W(r, +i), t = n(e);
671
+ let e = G(r, +i), t = n(e);
672
672
  e !== t && (r.delete(e), r.add(t));
673
673
  }
674
674
  if (B(r)) {
675
- let e = +t[t.length - 2], a = W(r, e);
675
+ let e = +t[t.length - 2], a = G(r, e);
676
676
  switch (+i == 0 ? "key" : "value") {
677
677
  case "key": {
678
678
  let e = n(a);
@@ -683,46 +683,46 @@ var Nt = (e, t) => {
683
683
  }
684
684
  }
685
685
  return e;
686
- }, Ft = (e) => e < 1;
687
- function It(e, t, n, r = []) {
686
+ }, Pt = (e) => e < 1;
687
+ function Ft(e, t, n, r = []) {
688
688
  if (!e) return;
689
- let i = Ft(n);
689
+ let i = Pt(n);
690
690
  if (!z(e)) {
691
- L(e, (e, a) => It(e, t, n, [...r, ...H(a, i)]));
691
+ L(e, (e, a) => Ft(e, t, n, [...r, ...H(a, i)]));
692
692
  return;
693
693
  }
694
694
  let [a, o] = e;
695
695
  o && L(o, (e, a) => {
696
- It(e, t, n, [...r, ...H(a, i)]);
696
+ Ft(e, t, n, [...r, ...H(a, i)]);
697
697
  }), t(a, r);
698
698
  }
699
- function Lt(e, t, n, r) {
700
- return It(t, (t, n) => {
701
- e = Pt(e, n, (e) => jt(e, t, r));
699
+ function It(e, t, n, r) {
700
+ return Ft(t, (t, n) => {
701
+ e = Nt(e, n, (e) => At(e, t, r));
702
702
  }, n), e;
703
703
  }
704
- function Rt(e, t, n) {
705
- let r = Ft(n);
704
+ function Lt(e, t, n) {
705
+ let r = Pt(n);
706
706
  function i(t, n) {
707
- let i = Nt(e, H(n, r));
707
+ let i = Mt(e, H(n, r));
708
708
  t.map((e) => H(e, r)).forEach((t) => {
709
- e = Pt(e, t, () => i);
709
+ e = Nt(e, t, () => i);
710
710
  });
711
711
  }
712
712
  if (z(t)) {
713
713
  let [n, a] = t;
714
714
  n.forEach((t) => {
715
- e = Pt(e, H(t, r), () => e);
715
+ e = Nt(e, H(t, r), () => e);
716
716
  }), a && L(a, i);
717
717
  } else L(t, i);
718
718
  return e;
719
719
  }
720
- var zt = (e, t) => R(e) || z(e) || B(e) || V(e) || dt(e) || Tt(e, t);
721
- function Bt(e, t, n) {
720
+ var Rt = (e, t) => R(e) || z(e) || B(e) || V(e) || dt(e) || wt(e, t);
721
+ function zt(e, t, n) {
722
722
  let r = n.get(e);
723
723
  r ? r.push(t) : n.set(e, [t]);
724
724
  }
725
- function Vt(e, t) {
725
+ function Bt(e, t) {
726
726
  let n = {}, r;
727
727
  return e.forEach((e) => {
728
728
  if (e.length <= 1) return;
@@ -731,25 +731,25 @@ function Vt(e, t) {
731
731
  i.length === 0 ? r = a.map(yt) : n[yt(i)] = a.map(yt);
732
732
  }), r ? it(n) ? [r] : [r, n] : it(n) ? void 0 : n;
733
733
  }
734
- var Ht = (e, t, n, r, i = [], a = [], o = /* @__PURE__ */ new Map()) => {
734
+ var Vt = (e, t, n, r, i = [], a = [], o = /* @__PURE__ */ new Map()) => {
735
735
  let s = pt(e);
736
736
  if (!s) {
737
- Bt(e, i, t);
737
+ zt(e, i, t);
738
738
  let n = o.get(e);
739
739
  if (n) return r ? { transformedValue: null } : n;
740
740
  }
741
- if (!zt(e, n)) {
742
- let t = kt(e, n), r = t ? {
741
+ if (!Rt(e, n)) {
742
+ let t = Ot(e, n), r = t ? {
743
743
  transformedValue: t.value,
744
744
  annotations: [t.type]
745
745
  } : { transformedValue: e };
746
746
  return s || o.set(e, r), r;
747
747
  }
748
748
  if (Qe(a, e)) return { transformedValue: null };
749
- let c = kt(e, n), l = c?.value ?? e, u = z(l) ? [] : {}, d = {};
749
+ let c = Ot(e, n), l = c?.value ?? e, u = z(l) ? [] : {}, d = {};
750
750
  L(l, (s, c) => {
751
751
  if (c === "__proto__" || c === "constructor" || c === "prototype") throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);
752
- let l = Ht(s, t, n, r, [...i, c], [...a, e], o);
752
+ let l = Vt(s, t, n, r, [...i, c], [...a, e], o);
753
753
  u[c] = l.transformedValue, z(l.annotations) ? d[vt(c)] = l.annotations : R(l.annotations) && L(l.annotations, (e, t) => {
754
754
  d[vt(c) + "." + t] = e;
755
755
  });
@@ -763,18 +763,18 @@ var Ht = (e, t, n, r, i = [], a = [], o = /* @__PURE__ */ new Map()) => {
763
763
  };
764
764
  return s || o.set(e, f), f;
765
765
  };
766
- function Ut(e) {
766
+ function Ht(e) {
767
767
  return Object.prototype.toString.call(e).slice(8, -1);
768
768
  }
769
- function Wt(e) {
770
- return Ut(e) === "Array";
769
+ function Ut(e) {
770
+ return Ht(e) === "Array";
771
771
  }
772
- function Gt(e) {
773
- if (Ut(e) !== "Object") return !1;
772
+ function Wt(e) {
773
+ if (Ht(e) !== "Object") return !1;
774
774
  let t = Object.getPrototypeOf(e);
775
775
  return !!t && t.constructor === Object && t === Object.prototype;
776
776
  }
777
- function Kt(e, t, n, r, i) {
777
+ function Gt(e, t, n, r, i) {
778
778
  let a = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
779
779
  a === "enumerable" && (e[t] = n), i && a === "nonenumerable" && Object.defineProperty(e, t, {
780
780
  value: n,
@@ -783,35 +783,35 @@ function Kt(e, t, n, r, i) {
783
783
  configurable: !0
784
784
  });
785
785
  }
786
- function qt(e, t = {}) {
787
- if (Wt(e)) return e.map((e) => qt(e, t));
788
- if (!Gt(e)) return e;
786
+ function Kt(e, t = {}) {
787
+ if (Ut(e)) return e.map((e) => Kt(e, t));
788
+ if (!Wt(e)) return e;
789
789
  let n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
790
790
  return [...n, ...r].reduce((n, r) => {
791
- if (r === "__proto__" || Wt(t.props) && !t.props.includes(r)) return n;
791
+ if (r === "__proto__" || Ut(t.props) && !t.props.includes(r)) return n;
792
792
  let i = e[r];
793
- return Kt(n, r, qt(i, t), e, t.nonenumerable), n;
793
+ return Gt(n, r, Kt(i, t), e, t.nonenumerable), n;
794
794
  }, {});
795
795
  }
796
- var G = class {
796
+ var K = class {
797
797
  constructor({ dedupe: e = !1 } = {}) {
798
798
  this.classRegistry = new Ye(), this.symbolRegistry = new Je((e) => e.description ?? ""), this.customTransformerRegistry = new et(), this.allowedErrorProps = [], this.dedupe = e;
799
799
  }
800
800
  serialize(e) {
801
- let t = /* @__PURE__ */ new Map(), n = Ht(e, t, this, this.dedupe), r = { json: n.transformedValue };
801
+ let t = /* @__PURE__ */ new Map(), n = Vt(e, t, this, this.dedupe), r = { json: n.transformedValue };
802
802
  n.annotations && (r.meta = {
803
803
  ...r.meta,
804
804
  values: n.annotations
805
805
  });
806
- let i = Vt(t, this.dedupe);
806
+ let i = Bt(t, this.dedupe);
807
807
  return i && (r.meta = {
808
808
  ...r.meta,
809
809
  referentialEqualities: i
810
810
  }), r.meta && (r.meta.v = 1), r;
811
811
  }
812
812
  deserialize(e, t) {
813
- let { json: n, meta: r } = e, i = t?.inPlace ? n : qt(n);
814
- return r?.values && (i = Lt(i, r.values, r.v ?? 0, this)), r?.referentialEqualities && (i = Rt(i, r.referentialEqualities, r.v ?? 0)), i;
813
+ let { json: n, meta: r } = e, i = t?.inPlace ? n : Kt(n);
814
+ return r?.values && (i = It(i, r.values, r.v ?? 0, this)), r?.referentialEqualities && (i = Lt(i, r.referentialEqualities, r.v ?? 0)), i;
815
815
  }
816
816
  stringify(e) {
817
817
  return JSON.stringify(this.serialize(e));
@@ -835,8 +835,8 @@ var G = class {
835
835
  this.allowedErrorProps.push(...e);
836
836
  }
837
837
  };
838
- G.defaultInstance = new G(), G.serialize = G.defaultInstance.serialize.bind(G.defaultInstance), G.deserialize = G.defaultInstance.deserialize.bind(G.defaultInstance), G.stringify = G.defaultInstance.stringify.bind(G.defaultInstance), G.parse = G.defaultInstance.parse.bind(G.defaultInstance), G.registerClass = G.defaultInstance.registerClass.bind(G.defaultInstance), G.registerSymbol = G.defaultInstance.registerSymbol.bind(G.defaultInstance), G.registerCustom = G.defaultInstance.registerCustom.bind(G.defaultInstance), G.allowErrorProps = G.defaultInstance.allowErrorProps.bind(G.defaultInstance), G.serialize, G.deserialize, G.stringify, G.parse, G.registerClass, G.registerCustom, G.registerSymbol, G.allowErrorProps;
839
- var Jt = /* @__PURE__ */ b({
838
+ K.defaultInstance = new K(), K.serialize = K.defaultInstance.serialize.bind(K.defaultInstance), K.deserialize = K.defaultInstance.deserialize.bind(K.defaultInstance), K.stringify = K.defaultInstance.stringify.bind(K.defaultInstance), K.parse = K.defaultInstance.parse.bind(K.defaultInstance), K.registerClass = K.defaultInstance.registerClass.bind(K.defaultInstance), K.registerSymbol = K.defaultInstance.registerSymbol.bind(K.defaultInstance), K.registerCustom = K.defaultInstance.registerCustom.bind(K.defaultInstance), K.allowErrorProps = K.defaultInstance.allowErrorProps.bind(K.defaultInstance), K.serialize, K.deserialize, K.stringify, K.parse, K.registerClass, K.registerCustom, K.registerSymbol, K.allowErrorProps;
839
+ var qt = /* @__PURE__ */ _({
840
840
  __name: "FiltersDialogDateFilter",
841
841
  props: {
842
842
  filter: {},
@@ -844,7 +844,7 @@ var Jt = /* @__PURE__ */ b({
844
844
  },
845
845
  emits: ["submit"],
846
846
  setup(e, { emit: t }) {
847
- let n = e, r = t, i = f(), a = w(n.initialValue.value);
847
+ let n = e, r = t, i = l(), a = x(n.initialValue.value);
848
848
  function o() {
849
849
  r("submit", {
850
850
  operator: n.initialValue.operator,
@@ -854,30 +854,30 @@ var Jt = /* @__PURE__ */ b({
854
854
  function s() {
855
855
  a.value = null;
856
856
  }
857
- return (e, t) => (C(), h(D(me), { size: "xxs" }, {
858
- default: O(() => [
859
- y(D(xe), {
857
+ return (e, t) => (b(), f(w(pe), { size: "xxs" }, {
858
+ default: T(() => [
859
+ g(w(be), {
860
860
  title: n.filter.label,
861
861
  "hide-description": !0,
862
862
  description: ""
863
863
  }, null, 8, ["title"]),
864
- y(D(he), null, {
865
- default: O(() => [y(D(fe), {
864
+ g(w(me), null, {
865
+ default: T(() => [g(w(de), {
866
866
  modelValue: a.value,
867
867
  "onUpdate:modelValue": t[0] ||= (e) => a.value = e,
868
868
  class: "p-none!"
869
869
  }, null, 8, ["modelValue"])]),
870
870
  _: 1
871
871
  }),
872
- y(D(ge), null, {
873
- left: O(() => [y(D(ye), {
874
- label: D(i).t("component.filters_date_dialog.clear"),
872
+ g(w(he), null, {
873
+ left: T(() => [g(w(ve), {
874
+ label: w(i).t("component.filters_date_dialog.clear"),
875
875
  "is-disabled": a.value === null,
876
876
  class: "mr-auto",
877
877
  onClick: s
878
878
  }, null, 8, ["label", "is-disabled"])]),
879
- right: O(() => [y(D(_e), { label: D(i).t("component.filters_date_dialog.cancel") }, null, 8, ["label"]), y(D(ve), {
880
- label: D(i).t("component.filters_date_dialog.set_filter"),
879
+ right: T(() => [g(w(ge), { label: w(i).t("component.filters_date_dialog.cancel") }, null, 8, ["label"]), g(w(_e), {
880
+ label: w(i).t("component.filters_date_dialog.set_filter"),
881
881
  onClick: o
882
882
  }, null, 8, ["label"])]),
883
883
  _: 1
@@ -886,7 +886,7 @@ var Jt = /* @__PURE__ */ b({
886
886
  _: 1
887
887
  }));
888
888
  }
889
- }), Yt = /* @__PURE__ */ b({
889
+ }), Jt = /* @__PURE__ */ _({
890
890
  __name: "FiltersDialogDateRangeFilter",
891
891
  props: {
892
892
  filter: {},
@@ -894,7 +894,7 @@ var Jt = /* @__PURE__ */ b({
894
894
  },
895
895
  emits: ["submit"],
896
896
  setup(e, { emit: t }) {
897
- let n = e, r = t, i = f(), a = w(n.initialValue.value);
897
+ let n = e, r = t, i = l(), a = x(n.initialValue.value);
898
898
  function o() {
899
899
  r("submit", {
900
900
  operator: n.initialValue.operator,
@@ -910,30 +910,30 @@ var Jt = /* @__PURE__ */ b({
910
910
  until: null
911
911
  };
912
912
  }
913
- return (e, t) => (C(), h(D(me), { size: "xl" }, {
914
- default: O(() => [
915
- y(D(xe), {
913
+ return (e, t) => (b(), f(w(pe), { size: "xl" }, {
914
+ default: T(() => [
915
+ g(w(be), {
916
916
  title: n.filter.label,
917
917
  "hide-description": !0,
918
918
  description: ""
919
919
  }, null, 8, ["title"]),
920
- y(D(he), null, {
921
- default: O(() => [y(D(pe), {
920
+ g(w(me), null, {
921
+ default: T(() => [g(w(fe), {
922
922
  modelValue: a.value,
923
923
  "onUpdate:modelValue": t[0] ||= (e) => a.value = e,
924
924
  "show-presets": !1
925
925
  }, null, 8, ["modelValue"])]),
926
926
  _: 1
927
927
  }),
928
- y(D(ge), null, {
929
- left: O(() => [y(D(ye), {
930
- label: D(i).t("component.filters_date_range_dialog.clear"),
928
+ g(w(he), null, {
929
+ left: T(() => [g(w(ve), {
930
+ label: w(i).t("component.filters_date_range_dialog.clear"),
931
931
  "is-disabled": a.value.from === null || a.value.until === null,
932
932
  class: "mr-auto",
933
933
  onClick: s
934
934
  }, null, 8, ["label", "is-disabled"])]),
935
- right: O(() => [y(D(_e), { label: D(i).t("component.filters_date_range_dialog.cancel") }, null, 8, ["label"]), y(D(ve), {
936
- label: D(i).t("component.filters_date_range_dialog.set_filter"),
935
+ right: T(() => [g(w(ge), { label: w(i).t("component.filters_date_range_dialog.cancel") }, null, 8, ["label"]), g(w(_e), {
936
+ label: w(i).t("component.filters_date_range_dialog.set_filter"),
937
937
  onClick: o
938
938
  }, null, 8, ["label"])]),
939
939
  _: 1
@@ -942,7 +942,7 @@ var Jt = /* @__PURE__ */ b({
942
942
  _: 1
943
943
  }));
944
944
  }
945
- }), Xt = ["for"], Zt = /* @__PURE__ */ b({
945
+ }), Yt = ["for"], Xt = /* @__PURE__ */ _({
946
946
  __name: "FiltersDialogNumberFilter",
947
947
  props: {
948
948
  filter: {},
@@ -950,47 +950,47 @@ var Jt = /* @__PURE__ */ b({
950
950
  },
951
951
  emits: ["submit"],
952
952
  setup(e, { emit: t }) {
953
- let r = e, i = t, a = f(), o = ae(), s = Pe({
954
- schema: d.object({ value: d.number().min(r.filter.min ?? -(2 ** 53 - 1)).max(r.filter.max ?? 2 ** 53 - 1).nullable() }),
953
+ let n = e, r = t, i = l(), a = ae(), s = Fe({
954
+ schema: c.object({ value: c.number().min(n.filter.min ?? -(2 ** 53 - 1)).max(n.filter.max ?? 2 ** 53 - 1).nullable() }),
955
955
  onSubmit: (e) => {
956
- i("submit", {
957
- operator: r.initialValue.operator,
956
+ r("submit", {
957
+ operator: n.initialValue.operator,
958
958
  value: e.value
959
959
  });
960
960
  }
961
- }), c = s.register("value", r.initialValue.value);
962
- return (e, t) => (C(), h(D(Ee), {
963
- form: D(s),
961
+ }), u = s.register("value", n.initialValue.value);
962
+ return (e, t) => (b(), f(w(Te), {
963
+ form: w(s),
964
964
  size: "xxs"
965
965
  }, {
966
- default: O(() => [
967
- y(D(xe), {
968
- title: r.filter.label,
966
+ default: T(() => [
967
+ g(w(be), {
968
+ title: n.filter.label,
969
969
  "hide-description": !0,
970
- description: r.filter.label
970
+ description: n.filter.label
971
971
  }, null, 8, ["title", "description"]),
972
- y(D(he), null, {
973
- default: O(() => [v("label", {
974
- for: D(o),
972
+ g(w(me), null, {
973
+ default: T(() => [h("label", {
974
+ for: w(a),
975
975
  class: "sr-only"
976
- }, ie(r.filter.label), 9, Xt), y(D(Oe), ee(D(je)(D(c)), {
977
- id: D(o),
978
- "format-options": r.filter.formatOptions,
979
- placeholder: r.filter.placeholder ?? D(a).t("component.filters_number_dialog.placeholder")
976
+ }, ie(n.filter.label), 9, Yt), g(w(De), y(w(Ae)(w(u)), {
977
+ id: w(a),
978
+ "format-options": n.filter.formatOptions,
979
+ placeholder: n.filter.placeholder ?? w(i).t("component.filters_number_dialog.placeholder")
980
980
  }), {
981
- right: O(() => [r.filter.customUnit === void 0 ? g("", !0) : (C(), h(D(A), {
981
+ right: T(() => [n.filter.customUnit === void 0 ? p("", !0) : (b(), f(w(O), {
982
982
  key: 0,
983
- text: r.filter.customUnit,
983
+ text: n.filter.customUnit,
984
984
  truncate: !1,
985
985
  class: "mr-sm text-xs text-tertiary"
986
- }, null, 8, ["text"])), D(c).value.value === null ? g("", !0) : (C(), h(D(De), {
986
+ }, null, 8, ["text"])), w(u).value.value === null ? p("", !0) : (b(), f(w(Ee), {
987
987
  key: 1,
988
- icon: D(n),
989
- label: D(a).t("component.filters_number_dialog.clear"),
988
+ icon: w(o),
989
+ label: w(i).t("component.filters_number_dialog.clear"),
990
990
  size: "xs",
991
991
  variant: "tertiary",
992
992
  class: "mr-xs",
993
- onClick: t[0] ||= (e) => D(c).setValue(null)
993
+ onClick: t[0] ||= (e) => w(u).setValue(null)
994
994
  }, null, 8, ["icon", "label"]))]),
995
995
  _: 1
996
996
  }, 16, [
@@ -1000,203 +1000,203 @@ var Jt = /* @__PURE__ */ b({
1000
1000
  ])]),
1001
1001
  _: 1
1002
1002
  }),
1003
- y(D(ge), null, {
1004
- default: O(() => [y(D(_e), { label: D(a).t("component.filters_number_dialog.cancel") }, null, 8, ["label"]), y(D(be), { label: D(a).t("component.filters_number_dialog.set_filter") }, null, 8, ["label"])]),
1003
+ g(w(he), null, {
1004
+ default: T(() => [g(w(ge), { label: w(i).t("component.filters_number_dialog.cancel") }, null, 8, ["label"]), g(w(ye), { label: w(i).t("component.filters_number_dialog.set_filter") }, null, 8, ["label"])]),
1005
1005
  _: 1
1006
1006
  })
1007
1007
  ]),
1008
1008
  _: 1
1009
1009
  }, 8, ["form"]));
1010
1010
  }
1011
- }), Qt = /* @__PURE__ */ function(e) {
1011
+ }), Zt = /* @__PURE__ */ function(e) {
1012
1012
  return e.EXCLUDES = "excludes", e.INCLUDES = "includes", e;
1013
- }({}), $t = /* @__PURE__ */ function(e) {
1013
+ }({}), Qt = /* @__PURE__ */ function(e) {
1014
1014
  return e.AFTER = "after", e.BEFORE = "before", e.IS = "is", e.IS_NOT = "is_not", e;
1015
- }({}), en = /* @__PURE__ */ function(e) {
1015
+ }({}), $t = /* @__PURE__ */ function(e) {
1016
1016
  return e.IS_BETWEEN = "is_between", e.IS_NOT_BETWEEN = "is_not_between", e;
1017
- }({}), K = /* @__PURE__ */ function(e) {
1018
- return e.EQUALS = "equals", e.GREATER_THAN_OR_EQUALS = "greater_than_or_equals", e.LESS_THAN_OR_EQUALS = "less_than_or_equals", e.NOT_EQUALS = "not_equals", e;
1019
1017
  }({}), q = /* @__PURE__ */ function(e) {
1018
+ return e.EQUALS = "equals", e.GREATER_THAN_OR_EQUALS = "greater_than_or_equals", e.LESS_THAN_OR_EQUALS = "less_than_or_equals", e.NOT_EQUALS = "not_equals", e;
1019
+ }({}), J = /* @__PURE__ */ function(e) {
1020
1020
  return e.BOOLEAN = "boolean", e.DATE = "date", e.DATE_RANGE = "date-range", e.MULTI_AUTOCOMPLETE = "multi-autocomplete", e.MULTI_SELECT = "multi-select", e.NUMBER = "number", e;
1021
1021
  }({});
1022
- function tn(e) {
1022
+ function en(e) {
1023
1023
  return {
1024
1024
  ...e,
1025
1025
  type: "multi-select"
1026
1026
  };
1027
1027
  }
1028
- function nn(e) {
1028
+ function tn(e) {
1029
1029
  return {
1030
1030
  ...e,
1031
1031
  type: "multi-autocomplete"
1032
1032
  };
1033
1033
  }
1034
- function rn(e) {
1034
+ function nn(e) {
1035
1035
  return {
1036
1036
  ...e,
1037
1037
  type: "boolean"
1038
1038
  };
1039
1039
  }
1040
- function an(e) {
1040
+ function rn(e) {
1041
1041
  return {
1042
1042
  ...e,
1043
1043
  type: "number"
1044
1044
  };
1045
1045
  }
1046
- function on(e) {
1046
+ function an(e) {
1047
1047
  return {
1048
1048
  ...e,
1049
1049
  type: "date-range"
1050
1050
  };
1051
1051
  }
1052
- function sn(e) {
1052
+ function on(e) {
1053
1053
  return typeof e == "object" && !!e && "items" in e && "pagination" in e;
1054
1054
  }
1055
- function cn(e) {
1056
- let n = f(), i = Ne(), a = i.create(Zt), o = i.create(Jt), s = i.create(Yt), c = ae(), d = w(ee()), p = w(null), h = w(/* @__PURE__ */ new Set()), g = e.filters.map((t) => {
1057
- switch (t.type) {
1055
+ function sn(e) {
1056
+ let t = l(), n = Me(), i = n.create(Xt), o = n.create(qt), s = n.create(Jt), c = ae(), u = x(ee()), f = x(null), p = x(/* @__PURE__ */ new Set()), m = e.filters.map((n) => {
1057
+ switch (n.type) {
1058
1058
  case "multi-select":
1059
1059
  case "multi-autocomplete": return {
1060
- action: l({
1061
- id: t.key,
1062
- name: t.label,
1060
+ action: k({
1061
+ id: n.key,
1062
+ name: n.label,
1063
1063
  group: e.actionGroup,
1064
- icon: () => t.icon ?? null,
1064
+ icon: () => n.icon ?? null,
1065
1065
  multiSelectSubActions: !0,
1066
1066
  parentScoreInfluence: "none",
1067
1067
  searchSubActionsConfig: {
1068
1068
  minLength: 1,
1069
- placeholder: n.t("component.filters_listbox.filter_placeholder")
1069
+ placeholder: t.t("component.filters_listbox.filter_placeholder")
1070
1070
  },
1071
1071
  subActions: async (e) => {
1072
- let n = await t.options(e.searchInput, e.getPaginationOffsetForSubActionId), r = sn(n) ? n.items : n, i = d.value[t.key].value, a = (e.getPaginationOffsetForSubActionId(t.key) === null ? [...i, ...r.filter((e) => !i.some((t) => G.stringify(t) === G.stringify(e)))] : r.filter((e) => !i.some((t) => G.stringify(t) === G.stringify(e)))).map((e) => l({
1073
- id: G.stringify(e),
1074
- name: t.displayFn(e),
1072
+ let t = await n.options(e.searchInput, e.getPaginationOffsetForSubActionId), r = on(t) ? t.items : t, i = u.value[n.key].value, a = (e.getPaginationOffsetForSubActionId(n.key) === null ? [...i, ...r.filter((e) => !i.some((t) => K.stringify(t) === K.stringify(e)))] : r.filter((e) => !i.some((t) => K.stringify(t) === K.stringify(e)))).map((e) => k({
1073
+ id: K.stringify(e),
1074
+ name: n.displayFn(e),
1075
1075
  execute: () => {
1076
- let n = d.value[t.key], r = n.value;
1077
- r.some((t) => G.stringify(t) === G.stringify(e)) ? d.value[t.key] = {
1078
- ...n,
1079
- value: r.filter((t) => G.stringify(t) !== G.stringify(e))
1080
- } : d.value[t.key] = {
1081
- ...n,
1076
+ let t = u.value[n.key], r = t.value;
1077
+ r.some((t) => K.stringify(t) === K.stringify(e)) ? u.value[n.key] = {
1078
+ ...t,
1079
+ value: r.filter((t) => K.stringify(t) !== K.stringify(e))
1080
+ } : u.value[n.key] = {
1081
+ ...t,
1082
1082
  value: [...r, e]
1083
1083
  };
1084
1084
  },
1085
1085
  parentScoreInfluence: "direct",
1086
- selected: () => d.value[t.key].value.some((t) => G.stringify(t) === G.stringify(e)),
1087
- skipFilterScoring: t.type === "multi-autocomplete" && !i.some((t) => G.stringify(t) === G.stringify(e))
1086
+ selected: () => u.value[n.key].value.some((t) => K.stringify(t) === K.stringify(e)),
1087
+ skipFilterScoring: n.type === "multi-autocomplete" && !i.some((t) => K.stringify(t) === K.stringify(e))
1088
1088
  }));
1089
- return sn(n) ? {
1089
+ return on(t) ? {
1090
1090
  actions: a,
1091
- pagination: { nextOffset: n.pagination.nextOffset }
1091
+ pagination: { nextOffset: t.pagination.nextOffset }
1092
1092
  } : a;
1093
1093
  }
1094
1094
  }),
1095
- key: t.key
1095
+ key: n.key
1096
1096
  };
1097
1097
  case "boolean": return {
1098
- action: l({
1099
- id: t.key,
1100
- name: t.entityLabel,
1101
- disabledReason: () => d.value[t.key] === null ? null : n.t("component.filters.boolean_filter_already_active"),
1098
+ action: k({
1099
+ id: n.key,
1100
+ name: n.entityLabel,
1101
+ disabledReason: () => u.value[n.key] === null ? null : t.t("component.filters.boolean_filter_already_active"),
1102
1102
  execute: () => {
1103
- d.value[t.key] = !0;
1103
+ u.value[n.key] = !0;
1104
1104
  },
1105
1105
  group: e.actionGroup,
1106
- icon: () => t.icon ?? null,
1106
+ icon: () => n.icon ?? null,
1107
1107
  parentScoreInfluence: "none"
1108
1108
  }),
1109
- key: t.key,
1109
+ key: n.key,
1110
1110
  searchSubActionsConfig: { placeholder: "Filter..." }
1111
1111
  };
1112
1112
  case "number": return {
1113
- action: l({
1114
- id: t.key,
1115
- name: t.label,
1113
+ action: k({
1114
+ id: n.key,
1115
+ name: n.label,
1116
1116
  execute: () => {
1117
- a.open({
1118
- filter: t,
1119
- initialValue: d.value[t.key],
1117
+ i.open({
1118
+ filter: n,
1119
+ initialValue: u.value[n.key],
1120
1120
  onSubmit: (e) => {
1121
- d.value[t.key] = e, a.close();
1121
+ u.value[n.key] = e, i.close();
1122
1122
  }
1123
1123
  });
1124
1124
  },
1125
1125
  group: e.actionGroup,
1126
- icon: () => t.icon ?? null,
1126
+ icon: () => n.icon ?? null,
1127
1127
  parentScoreInfluence: "none"
1128
1128
  }),
1129
- key: t.key
1129
+ key: n.key
1130
1130
  };
1131
1131
  case "date": return {
1132
- action: l({
1133
- id: t.key,
1134
- name: t.label,
1132
+ action: k({
1133
+ id: n.key,
1134
+ name: n.label,
1135
1135
  execute: () => {
1136
1136
  o.open({
1137
- filter: t,
1138
- initialValue: d.value[t.key],
1137
+ filter: n,
1138
+ initialValue: u.value[n.key],
1139
1139
  onSubmit: (e) => {
1140
- d.value[t.key] = e, o.close();
1140
+ u.value[n.key] = e, o.close();
1141
1141
  }
1142
1142
  });
1143
1143
  },
1144
1144
  group: e.actionGroup,
1145
- icon: () => t.icon ?? null,
1145
+ icon: () => n.icon ?? null,
1146
1146
  parentScoreInfluence: "none"
1147
1147
  }),
1148
- key: t.key
1148
+ key: n.key
1149
1149
  };
1150
1150
  case "date-range": return {
1151
- action: l({
1152
- id: t.key,
1153
- name: t.label,
1151
+ action: k({
1152
+ id: n.key,
1153
+ name: n.label,
1154
1154
  execute: () => {
1155
1155
  s.open({
1156
- filter: t,
1157
- initialValue: d.value[t.key],
1156
+ filter: n,
1157
+ initialValue: u.value[n.key],
1158
1158
  onSubmit: (e) => {
1159
- d.value[t.key] = e, s.close();
1159
+ u.value[n.key] = e, s.close();
1160
1160
  }
1161
1161
  });
1162
1162
  },
1163
1163
  group: e.actionGroup,
1164
- icon: () => t.icon ?? null,
1164
+ icon: () => n.icon ?? null,
1165
1165
  parentScoreInfluence: "none"
1166
1166
  }),
1167
- key: t.key
1167
+ key: n.key
1168
1168
  };
1169
1169
  default: throw Error("Unsupported filter type");
1170
1170
  }
1171
- }), _ = l({
1171
+ }), h = k({
1172
1172
  id: "clear-filters",
1173
- isApplicable: (e) => h.value.size > 0 && e.menuType !== "contextualMenu",
1174
- name: () => n.t("component.filters.clear_filters"),
1175
- execute: () => E(),
1173
+ isApplicable: (e) => p.value.size > 0 && e.menuType !== "contextualMenu",
1174
+ name: () => t.t("component.filters.clear_filters"),
1175
+ execute: () => re(),
1176
1176
  group: e.actionGroup,
1177
- icon: () => t,
1177
+ icon: () => r,
1178
1178
  keyboardShortcut: {
1179
1179
  key: "F",
1180
1180
  shift: !0
1181
1181
  }
1182
- }), v = l({
1182
+ }), g = k({
1183
1183
  id: c,
1184
- name: () => n.t("component.filters.add_filters"),
1184
+ name: () => t.t("component.filters.add_filters"),
1185
1185
  forceAsRootMenu: !0,
1186
1186
  group: e.actionGroup,
1187
- icon: () => r,
1188
- nameAsParent: n.t("component.filters_dropdown_menu.filter"),
1187
+ icon: () => a,
1188
+ nameAsParent: t.t("component.filters_dropdown_menu.filter"),
1189
1189
  searchSubActionsConfig: {
1190
1190
  minLength: 99,
1191
- placeholder: n.t("component.filters.add_filter_placeholder")
1191
+ placeholder: t.t("component.filters.add_filter_placeholder")
1192
1192
  },
1193
- subActions: () => [...g.map((e) => e.action), l({
1193
+ subActions: () => [...m.map((e) => e.action), k({
1194
1194
  id: "add-filters-action-clear-filters",
1195
- isApplicable: (e) => h.value.size === 0 || e.menuType !== "contextualMenu" || e.metadata.filters?.hideClearAll === !0 ? !1 : e.searchInput.trim().length === 0,
1196
- name: () => n.t("component.filters.clear_filters"),
1197
- execute: () => E(),
1195
+ isApplicable: (e) => p.value.size === 0 || e.menuType !== "contextualMenu" || e.metadata.filters?.hideClearAll === !0 ? !1 : e.searchInput.trim().length === 0,
1196
+ name: () => t.t("component.filters.clear_filters"),
1197
+ execute: () => re(),
1198
1198
  group: e.actionGroup,
1199
- icon: () => t,
1199
+ icon: () => r,
1200
1200
  keyboardShortcut: {
1201
1201
  key: "F",
1202
1202
  shift: !0
@@ -1204,23 +1204,23 @@ function cn(e) {
1204
1204
  separatorGroup: "clear"
1205
1205
  })],
1206
1206
  subActionsHaveKeyboardShortcuts: !0
1207
- }), y = m(() => Array.from(h.value).map(S).map((e) => ({
1207
+ }), _ = d(() => Array.from(p.value).map(b).map((e) => ({
1208
1208
  ...e,
1209
- action: C(e.key)
1209
+ action: ne(e.key)
1210
1210
  })).sort((e, t) => (e.isPersistent === !0 ? 0 : 1) - (t.isPersistent === !0 ? 0 : 1)));
1211
- oe(d, () => {
1212
- for (let t of e.filters) b(t.key) ? h.value.add(t.key) : h.value.delete(t.key);
1211
+ oe(u, () => {
1212
+ for (let t of e.filters) v(t.key) ? p.value.add(t.key) : p.value.delete(t.key);
1213
1213
  }, {
1214
1214
  deep: !0,
1215
1215
  immediate: !0
1216
1216
  });
1217
- function b(e) {
1218
- let t = S(e), n = p.value === e;
1219
- return t.isPersistent === !0 || n || !x(e);
1217
+ function v(e) {
1218
+ let t = b(e), n = f.value === e;
1219
+ return t.isPersistent === !0 || n || !y(e);
1220
1220
  }
1221
- function x(e) {
1222
- let t = d.value[e];
1223
- switch (S(e).type) {
1221
+ function y(e) {
1222
+ let t = u.value[e];
1223
+ switch (b(e).type) {
1224
1224
  case "multi-select":
1225
1225
  case "multi-autocomplete": return t.value.length === 0;
1226
1226
  case "boolean": return t === null;
@@ -1236,7 +1236,7 @@ function cn(e) {
1236
1236
  return e.filters.reduce((e, t) => (e[t.key] = t.defaultValue ?? te(t.key), e), {});
1237
1237
  }
1238
1238
  function te(e) {
1239
- switch (S(e).type) {
1239
+ switch (b(e).type) {
1240
1240
  case "multi-select":
1241
1241
  case "multi-autocomplete": return {
1242
1242
  operator: "includes",
@@ -1260,97 +1260,97 @@ function cn(e) {
1260
1260
  };
1261
1261
  }
1262
1262
  }
1263
- function S(t) {
1263
+ function b(t) {
1264
1264
  return e.filters.find((e) => e.key === t);
1265
1265
  }
1266
- function C(e) {
1267
- return g.find((t) => t.key === e).action;
1268
- }
1269
1266
  function ne(e) {
1270
- p.value = e;
1267
+ return m.find((t) => t.key === e).action;
1268
+ }
1269
+ function S(e) {
1270
+ f.value = e;
1271
1271
  }
1272
- function T(e, t = !1) {
1273
- S(e).isPersistent !== !0 && (t && !x(e) || (d.value[e] = te(e), h.value.delete(e)));
1272
+ function C(e, t = !1) {
1273
+ b(e).isPersistent !== !0 && (t && !y(e) || (u.value[e] = te(e), p.value.delete(e)));
1274
1274
  }
1275
- function E() {
1276
- for (let t of e.filters) t.isPersistent !== !0 && (d.value[t.key] = te(t.key), h.value.delete(t.key));
1275
+ function re() {
1276
+ for (let t of e.filters) t.isPersistent !== !0 && (u.value[t.key] = te(t.key), p.value.delete(t.key));
1277
1277
  }
1278
- u(_);
1279
- let re = {
1280
- action: v,
1278
+ Pe(h);
1279
+ let ie = {
1280
+ action: g,
1281
1281
  actionGroup: e.actionGroup,
1282
- activeFilters: y,
1283
- clearAll: E,
1284
- clearFilter: T,
1285
- setOpenFilter: ne,
1286
- values: d
1282
+ activeFilters: _,
1283
+ clearAll: re,
1284
+ clearFilter: C,
1285
+ setOpenFilter: S,
1286
+ values: u
1287
1287
  };
1288
- return Ie(re), re;
1288
+ return Le(ie), ie;
1289
1289
  }
1290
- var ln = /* @__PURE__ */ b({
1290
+ var cn = /* @__PURE__ */ _({
1291
1291
  __name: "FiltersActiveBadgeDate",
1292
1292
  props: { filter: {} },
1293
1293
  setup(e) {
1294
- let t = e, n = f(), { values: r } = j(), i = s(), a = m(() => r.value[t.filter.key]), o = m(() => a.value.value), c = m(() => [
1294
+ let t = e, n = l(), { values: r } = A(), i = s(), a = d(() => r.value[t.filter.key]), o = d(() => a.value.value), c = d(() => [
1295
1295
  {
1296
1296
  label: n.t("component.filters.operator.is"),
1297
- value: $t.IS
1297
+ value: Qt.IS
1298
1298
  },
1299
1299
  {
1300
1300
  label: n.t("component.filters.operator.is_not"),
1301
- value: $t.IS_NOT
1301
+ value: Qt.IS_NOT
1302
1302
  },
1303
1303
  {
1304
1304
  label: n.t("component.filters.operator.before"),
1305
- value: $t.BEFORE
1305
+ value: Qt.BEFORE
1306
1306
  },
1307
1307
  {
1308
1308
  label: n.t("component.filters.operator.after"),
1309
- value: $t.AFTER
1309
+ value: Qt.AFTER
1310
1310
  }
1311
1311
  ]);
1312
- function l(e) {
1312
+ function u(e) {
1313
1313
  r.value[t.filter.key] = {
1314
1314
  ...a.value,
1315
1315
  operator: e
1316
1316
  };
1317
1317
  }
1318
- function u(e) {
1318
+ function p(e) {
1319
1319
  r.value[t.filter.key] = {
1320
1320
  ...a.value,
1321
1321
  value: e
1322
1322
  };
1323
1323
  }
1324
- return (e, n) => (C(), h(M, { filter: t.filter }, {
1325
- default: O(() => [
1326
- y(N, {
1324
+ return (e, n) => (b(), f(j, { filter: t.filter }, {
1325
+ default: T(() => [
1326
+ g(M, {
1327
1327
  icon: t.filter.icon ?? null,
1328
1328
  label: t.filter.label
1329
1329
  }, null, 8, ["icon", "label"]),
1330
- y(P),
1331
- y(Ke, {
1330
+ g(N),
1331
+ g(F, {
1332
1332
  disabled: t.filter.disableOperators ?? !1,
1333
1333
  "model-value": a.value.operator,
1334
1334
  options: c.value,
1335
- "onUpdate:modelValue": l
1335
+ "onUpdate:modelValue": u
1336
1336
  }, null, 8, [
1337
1337
  "disabled",
1338
1338
  "model-value",
1339
1339
  "options"
1340
1340
  ]),
1341
- y(P),
1342
- t.filter.isPersistent ?? !1 ? (C(), h(Ue, {
1341
+ g(N),
1342
+ t.filter.isPersistent ?? !1 ? (b(), f(We, {
1343
1343
  key: 0,
1344
1344
  "filter-id": t.filter.key,
1345
1345
  from: o.value,
1346
1346
  until: o.value,
1347
- onNavigate: n[0] ||= (e) => u(e)
1347
+ onNavigate: n[0] ||= (e) => p(e)
1348
1348
  }, {
1349
- default: O(() => [y(F, { filter: t.filter }, {
1350
- default: O(() => [y(N, { "is-interactive": !0 }, {
1351
- default: O(() => [o.value === null ? (C(), h(I, { key: 0 })) : (C(), h(D(A), {
1349
+ default: T(() => [g(P, { filter: t.filter }, {
1350
+ default: T(() => [g(M, { "is-interactive": !0 }, {
1351
+ default: T(() => [o.value === null ? (b(), f(I, { key: 0 })) : (b(), f(w(O), {
1352
1352
  key: 1,
1353
- text: D(i).formatPlainDate(o.value),
1353
+ text: w(i).formatPlainDate(o.value),
1354
1354
  class: "text-xs text-primary tabular-nums"
1355
1355
  }, null, 8, ["text"]))]),
1356
1356
  _: 1
@@ -1362,14 +1362,14 @@ var ln = /* @__PURE__ */ b({
1362
1362
  "filter-id",
1363
1363
  "from",
1364
1364
  "until"
1365
- ])) : (C(), h(F, {
1365
+ ])) : (b(), f(P, {
1366
1366
  key: 1,
1367
1367
  filter: t.filter
1368
1368
  }, {
1369
- default: O(() => [y(N, { "is-interactive": !0 }, {
1370
- default: O(() => [o.value === null ? (C(), h(I, { key: 0 })) : (C(), h(D(A), {
1369
+ default: T(() => [g(M, { "is-interactive": !0 }, {
1370
+ default: T(() => [o.value === null ? (b(), f(I, { key: 0 })) : (b(), f(w(O), {
1371
1371
  key: 1,
1372
- text: D(i).formatPlainDate(o.value),
1372
+ text: w(i).formatPlainDate(o.value),
1373
1373
  class: "text-xs text-primary tabular-nums"
1374
1374
  }, null, 8, ["text"]))]),
1375
1375
  _: 1
@@ -1380,24 +1380,24 @@ var ln = /* @__PURE__ */ b({
1380
1380
  _: 1
1381
1381
  }, 8, ["filter"]));
1382
1382
  }
1383
- }), un = /* @__PURE__ */ b({
1383
+ }), ln = /* @__PURE__ */ _({
1384
1384
  __name: "FiltersActiveBadgeDateRange",
1385
1385
  props: { filter: {} },
1386
1386
  setup(e) {
1387
- let t = e, n = f(), { values: r } = j(), i = s(), a = m(() => r.value[t.filter.key]), o = m(() => a.value.value), c = m(() => o.value.from !== null && o.value.until !== null), l = m(() => (t.filter.isPersistent ?? !1) && c.value), u = m(() => [{
1387
+ let t = e, n = l(), { values: r } = A(), i = s(), a = d(() => r.value[t.filter.key]), o = d(() => a.value.value), c = d(() => o.value.from !== null && o.value.until !== null), u = d(() => (t.filter.isPersistent ?? !1) && c.value), p = d(() => [{
1388
1388
  label: n.t("component.filters.operator.is_between"),
1389
- value: en.IS_BETWEEN
1389
+ value: $t.IS_BETWEEN
1390
1390
  }, {
1391
1391
  label: n.t("component.filters.operator.is_not_between"),
1392
- value: en.IS_NOT_BETWEEN
1393
- }]), d = m(() => o.value.from !== null && o.value.until !== null && o.value.from.equals(o.value.until)), p = m(() => d.value ? a.value.operator === en.IS_BETWEEN ? n.t("component.filters.operator.is") : n.t("component.filters.operator.is_not") : u.value.find((e) => e.value === a.value.operator)?.label ?? a.value.operator);
1394
- function g(e) {
1392
+ value: $t.IS_NOT_BETWEEN
1393
+ }]), m = d(() => o.value.from !== null && o.value.until !== null && o.value.from.equals(o.value.until)), h = d(() => m.value ? a.value.operator === $t.IS_BETWEEN ? n.t("component.filters.operator.is") : n.t("component.filters.operator.is_not") : p.value.find((e) => e.value === a.value.operator)?.label ?? a.value.operator);
1394
+ function _(e) {
1395
1395
  r.value[t.filter.key] = {
1396
1396
  ...a.value,
1397
1397
  operator: e
1398
1398
  };
1399
1399
  }
1400
- function _(e, n) {
1400
+ function v(e, n) {
1401
1401
  r.value[t.filter.key] = {
1402
1402
  ...a.value,
1403
1403
  value: {
@@ -1406,37 +1406,37 @@ var ln = /* @__PURE__ */ b({
1406
1406
  }
1407
1407
  };
1408
1408
  }
1409
- return (e, n) => (C(), h(M, { filter: t.filter }, {
1410
- default: O(() => [
1411
- y(N, {
1409
+ return (e, n) => (b(), f(j, { filter: t.filter }, {
1410
+ default: T(() => [
1411
+ g(M, {
1412
1412
  icon: t.filter.icon ?? null,
1413
1413
  label: t.filter.label
1414
1414
  }, null, 8, ["icon", "label"]),
1415
- y(P),
1416
- y(Ke, {
1415
+ g(N),
1416
+ g(F, {
1417
1417
  disabled: t.filter.disableOperators ?? !1,
1418
- label: d.value ? p.value : void 0,
1418
+ label: m.value ? h.value : void 0,
1419
1419
  "model-value": a.value.operator,
1420
- options: u.value,
1421
- "onUpdate:modelValue": g
1420
+ options: p.value,
1421
+ "onUpdate:modelValue": _
1422
1422
  }, null, 8, [
1423
1423
  "disabled",
1424
1424
  "label",
1425
1425
  "model-value",
1426
1426
  "options"
1427
1427
  ]),
1428
- y(P),
1429
- l.value ? (C(), h(Ue, {
1428
+ g(N),
1429
+ u.value ? (b(), f(We, {
1430
1430
  key: 0,
1431
1431
  "filter-id": t.filter.key,
1432
1432
  from: o.value.from,
1433
1433
  until: o.value.until,
1434
- onNavigate: _
1434
+ onNavigate: v
1435
1435
  }, {
1436
- default: O(() => [y(F, { filter: t.filter }, {
1437
- default: O(() => [y(N, { "is-interactive": !0 }, {
1438
- default: O(() => [y(D(A), {
1439
- text: D(i).formatPlainDateRange(o.value),
1436
+ default: T(() => [g(P, { filter: t.filter }, {
1437
+ default: T(() => [g(M, { "is-interactive": !0 }, {
1438
+ default: T(() => [g(w(O), {
1439
+ text: w(i).formatPlainDateRange(o.value),
1440
1440
  class: "text-xs text-primary tabular-nums"
1441
1441
  }, null, 8, ["text"])]),
1442
1442
  _: 1
@@ -1448,14 +1448,14 @@ var ln = /* @__PURE__ */ b({
1448
1448
  "filter-id",
1449
1449
  "from",
1450
1450
  "until"
1451
- ])) : (C(), h(F, {
1451
+ ])) : (b(), f(P, {
1452
1452
  key: 1,
1453
1453
  filter: t.filter
1454
1454
  }, {
1455
- default: O(() => [y(N, { "is-interactive": !0 }, {
1456
- default: O(() => [o.value.from === null || o.value.until === null ? (C(), h(I, { key: 0 })) : (C(), h(D(A), {
1455
+ default: T(() => [g(M, { "is-interactive": !0 }, {
1456
+ default: T(() => [o.value.from === null || o.value.until === null ? (b(), f(I, { key: 0 })) : (b(), f(w(O), {
1457
1457
  key: 1,
1458
- text: D(i).formatPlainDateRange(o.value),
1458
+ text: w(i).formatPlainDateRange(o.value),
1459
1459
  class: "text-xs text-primary"
1460
1460
  }, null, 8, ["text"]))]),
1461
1461
  _: 1
@@ -1466,55 +1466,55 @@ var ln = /* @__PURE__ */ b({
1466
1466
  _: 1
1467
1467
  }, 8, ["filter"]));
1468
1468
  }
1469
- }), dn = /* @__PURE__ */ b({
1469
+ }), un = /* @__PURE__ */ _({
1470
1470
  __name: "FiltersActiveBadgeNumber",
1471
1471
  props: { filter: {} },
1472
1472
  setup(e) {
1473
- let t = e, n = f(), { values: r } = j(), i = Me(), a = m(() => r.value[t.filter.key]), o = m(() => a.value.value), s = m(() => [
1473
+ let t = e, n = l(), { values: r } = A(), i = je(), a = d(() => r.value[t.filter.key]), o = d(() => a.value.value), s = d(() => [
1474
1474
  {
1475
1475
  label: n.t("component.filters.operator.equals"),
1476
- value: K.EQUALS
1476
+ value: q.EQUALS
1477
1477
  },
1478
1478
  {
1479
1479
  label: n.t("component.filters.operator.not_equals"),
1480
- value: K.NOT_EQUALS
1480
+ value: q.NOT_EQUALS
1481
1481
  },
1482
1482
  {
1483
1483
  label: n.t("component.filters.operator.greater_than_or_equals"),
1484
- value: K.GREATER_THAN_OR_EQUALS
1484
+ value: q.GREATER_THAN_OR_EQUALS
1485
1485
  },
1486
1486
  {
1487
1487
  label: n.t("component.filters.operator.less_than_or_equals"),
1488
- value: K.LESS_THAN_OR_EQUALS
1488
+ value: q.LESS_THAN_OR_EQUALS
1489
1489
  }
1490
- ]), c = m(() => o.value === null ? null : t.filter.customUnit === void 0 ? Intl.NumberFormat(i.locale.value, t.filter.formatOptions).format(o.value) : `${i.format(o.value)} ${t.filter.customUnit}`);
1491
- function l(e) {
1490
+ ]), c = d(() => o.value === null ? null : t.filter.customUnit === void 0 ? Intl.NumberFormat(i.locale.value, t.filter.formatOptions).format(o.value) : `${i.format(o.value)} ${t.filter.customUnit}`);
1491
+ function u(e) {
1492
1492
  r.value[t.filter.key] = {
1493
1493
  ...a.value,
1494
1494
  operator: e
1495
1495
  };
1496
1496
  }
1497
- return (e, n) => (C(), h(M, { filter: t.filter }, {
1498
- default: O(() => [
1499
- y(N, {
1497
+ return (e, n) => (b(), f(j, { filter: t.filter }, {
1498
+ default: T(() => [
1499
+ g(M, {
1500
1500
  icon: t.filter.icon,
1501
1501
  label: t.filter.label
1502
1502
  }, null, 8, ["icon", "label"]),
1503
- y(P),
1504
- y(Ke, {
1503
+ g(N),
1504
+ g(F, {
1505
1505
  disabled: t.filter.disableOperators ?? !1,
1506
1506
  "model-value": a.value.operator,
1507
1507
  options: s.value,
1508
- "onUpdate:modelValue": l
1508
+ "onUpdate:modelValue": u
1509
1509
  }, null, 8, [
1510
1510
  "disabled",
1511
1511
  "model-value",
1512
1512
  "options"
1513
1513
  ]),
1514
- y(P),
1515
- y(F, { filter: t.filter }, {
1516
- default: O(() => [y(N, { "is-interactive": !0 }, {
1517
- default: O(() => [c.value === null ? (C(), h(I, { key: 0 })) : (C(), h(D(A), {
1514
+ g(N),
1515
+ g(P, { filter: t.filter }, {
1516
+ default: T(() => [g(M, { "is-interactive": !0 }, {
1517
+ default: T(() => [c.value === null ? (b(), f(I, { key: 0 })) : (b(), f(w(O), {
1518
1518
  key: 1,
1519
1519
  text: c.value,
1520
1520
  class: "text-xs text-primary"
@@ -1527,18 +1527,18 @@ var ln = /* @__PURE__ */ b({
1527
1527
  _: 1
1528
1528
  }, 8, ["filter"]));
1529
1529
  }
1530
- }), fn = {
1530
+ }), dn = {
1531
1531
  type: "button",
1532
1532
  class: "size-full"
1533
- }, pn = /* @__PURE__ */ b({
1533
+ }, fn = /* @__PURE__ */ _({
1534
1534
  __name: "FiltersActiveBadgeDropdownMenu",
1535
1535
  props: { filter: {} },
1536
1536
  setup(e) {
1537
- let t = e, { clearFilter: n, setOpenFilter: r } = j();
1537
+ let t = e, { clearFilter: n, setOpenFilter: r } = A();
1538
1538
  function i(e) {
1539
1539
  e ? r(t.filter.key) : (r(null), t.filter.isPersistent !== !0 && n(t.filter.key, !0));
1540
1540
  }
1541
- return (e, n) => (C(), h(D(se), {
1541
+ return (e, n) => (b(), f(w(se), {
1542
1542
  "parent-action": t.filter.action,
1543
1543
  "is-current-context-only": !0,
1544
1544
  "fixed-content-position": !0,
@@ -1546,62 +1546,62 @@ var ln = /* @__PURE__ */ b({
1546
1546
  "popover-side": "bottom",
1547
1547
  "onUpdate:isOpen": i
1548
1548
  }, {
1549
- default: O(() => [y(D(k), null, {
1550
- default: O(() => [v("button", fn, [E(e.$slots, "default")])]),
1549
+ default: T(() => [g(w(D), null, {
1550
+ default: T(() => [h("button", dn, [C(e.$slots, "default")])]),
1551
1551
  _: 3
1552
1552
  })]),
1553
1553
  _: 3
1554
1554
  }, 8, ["parent-action"]));
1555
1555
  }
1556
- }), mn = /* @__PURE__ */ b({
1556
+ }), pn = /* @__PURE__ */ _({
1557
1557
  __name: "FiltersActiveMultiSelectBadge",
1558
1558
  props: { filter: {} },
1559
1559
  setup(e) {
1560
- let t = e, n = f(), { values: r } = j(), i = m(() => r.value[t.filter.key]), a = m(() => i.value.value), o = Me(), s = m(() => [{
1560
+ let t = e, n = l(), { values: r } = A(), i = d(() => r.value[t.filter.key]), a = d(() => i.value.value), o = je(), s = d(() => [{
1561
1561
  label: a.value.length > 1 ? n.t("component.filters.operator.is_any_of") : n.t("component.filters.operator.is"),
1562
- value: Qt.INCLUDES
1562
+ value: Zt.INCLUDES
1563
1563
  }, {
1564
1564
  label: n.t("component.filters.operator.is_not"),
1565
- value: Qt.EXCLUDES
1566
- }]), c = m(() => i.value.operator === Qt.EXCLUDES ? n.t("component.filters.operator.is_not") : a.value.length > 1 ? n.t("component.filters.operator.is_any_of") : n.t("component.filters.operator.is"));
1567
- function l(e) {
1565
+ value: Zt.EXCLUDES
1566
+ }]), c = d(() => i.value.operator === Zt.EXCLUDES ? n.t("component.filters.operator.is_not") : a.value.length > 1 ? n.t("component.filters.operator.is_any_of") : n.t("component.filters.operator.is"));
1567
+ function u(e) {
1568
1568
  r.value[t.filter.key] = {
1569
1569
  ...i.value,
1570
1570
  operator: e
1571
1571
  };
1572
1572
  }
1573
- return (e, r) => (C(), h(M, { filter: t.filter }, {
1574
- default: O(() => [
1575
- y(N, {
1573
+ return (e, r) => (b(), f(j, { filter: t.filter }, {
1574
+ default: T(() => [
1575
+ g(M, {
1576
1576
  icon: t.filter.icon,
1577
1577
  label: t.filter.label
1578
1578
  }, null, 8, ["icon", "label"]),
1579
- y(P),
1580
- y(Ke, {
1579
+ g(N),
1580
+ g(F, {
1581
1581
  disabled: t.filter.disableOperators ?? !1,
1582
1582
  label: c.value,
1583
1583
  "model-value": i.value.operator,
1584
1584
  options: s.value,
1585
- "onUpdate:modelValue": l
1585
+ "onUpdate:modelValue": u
1586
1586
  }, null, 8, [
1587
1587
  "disabled",
1588
1588
  "label",
1589
1589
  "model-value",
1590
1590
  "options"
1591
1591
  ]),
1592
- y(P),
1593
- y(pn, { filter: t.filter }, {
1594
- default: O(() => [y(N, { "is-interactive": !0 }, {
1595
- default: O(() => [a.value.length === 0 ? (C(), h(I, { key: 0 })) : a.value.length === 1 ? (C(), h(D(A), {
1592
+ g(N),
1593
+ g(fn, { filter: t.filter }, {
1594
+ default: T(() => [g(M, { "is-interactive": !0 }, {
1595
+ default: T(() => [a.value.length === 0 ? (b(), f(I, { key: 0 })) : a.value.length === 1 ? (b(), f(w(O), {
1596
1596
  key: 1,
1597
1597
  text: t.filter.displayFn(a.value[0]),
1598
1598
  class: "text-xs text-primary"
1599
- }, null, 8, ["text"])) : (C(), h(D(le), {
1599
+ }, null, 8, ["text"])) : (b(), f(w(le), {
1600
1600
  key: 2,
1601
1601
  label: a.value.map((e) => t.filter.displayFn(e)).join(", ")
1602
1602
  }, {
1603
- default: O(() => [y(D(A), {
1604
- text: t.filter.itemLabel === void 0 ? D(n).t("component.filters.selected_count", { count: D(o).format(a.value.length) }) : `${D(o).format(a.value.length)} ${t.filter.itemLabel}`,
1603
+ default: T(() => [g(w(O), {
1604
+ text: t.filter.itemLabel === void 0 ? w(n).t("component.filters.selected_count", { count: w(o).format(a.value.length) }) : `${w(o).format(a.value.length)} ${t.filter.itemLabel}`,
1605
1605
  class: "text-xs text-primary tabular-nums"
1606
1606
  }, null, 8, ["text"])]),
1607
1607
  _: 1
@@ -1614,72 +1614,72 @@ var ln = /* @__PURE__ */ b({
1614
1614
  _: 1
1615
1615
  }, 8, ["filter"]));
1616
1616
  }
1617
- }), hn = /* @__PURE__ */ b({
1617
+ }), mn = /* @__PURE__ */ _({
1618
1618
  __name: "FiltersActiveBadge",
1619
1619
  props: { filter: {} },
1620
1620
  setup(e) {
1621
1621
  let t = e;
1622
- return (e, n) => t.filter.type === D(q).MULTI_SELECT ? (C(), h(mn, {
1622
+ return (e, n) => t.filter.type === w(J).MULTI_SELECT ? (b(), f(pn, {
1623
1623
  key: 0,
1624
1624
  filter: t.filter
1625
- }, null, 8, ["filter"])) : t.filter.type === D(q).MULTI_AUTOCOMPLETE ? (C(), h(mn, {
1625
+ }, null, 8, ["filter"])) : t.filter.type === w(J).MULTI_AUTOCOMPLETE ? (b(), f(pn, {
1626
1626
  key: 1,
1627
1627
  filter: t.filter
1628
- }, null, 8, ["filter"])) : t.filter.type === D(q).BOOLEAN ? (C(), h(Be, {
1628
+ }, null, 8, ["filter"])) : t.filter.type === w(J).BOOLEAN ? (b(), f(Ve, {
1629
1629
  key: 2,
1630
1630
  filter: t.filter
1631
- }, null, 8, ["filter"])) : t.filter.type === D(q).DATE ? (C(), h(ln, {
1631
+ }, null, 8, ["filter"])) : t.filter.type === w(J).DATE ? (b(), f(cn, {
1632
1632
  key: 3,
1633
1633
  filter: t.filter
1634
- }, null, 8, ["filter"])) : t.filter.type === D(q).NUMBER ? (C(), h(dn, {
1634
+ }, null, 8, ["filter"])) : t.filter.type === w(J).NUMBER ? (b(), f(un, {
1635
1635
  key: 4,
1636
1636
  filter: t.filter
1637
- }, null, 8, ["filter"])) : t.filter.type === D(q).DATE_RANGE ? (C(), h(un, {
1637
+ }, null, 8, ["filter"])) : t.filter.type === w(J).DATE_RANGE ? (b(), f(ln, {
1638
1638
  key: 5,
1639
1639
  filter: t.filter
1640
- }, null, 8, ["filter"])) : g("", !0);
1640
+ }, null, 8, ["filter"])) : p("", !0);
1641
1641
  }
1642
- }), gn = /* @__PURE__ */ b({
1642
+ }), hn = /* @__PURE__ */ _({
1643
1643
  __name: "FiltersActive",
1644
1644
  setup(e) {
1645
- let { activeFilters: t } = j(), n = m(() => t.value.filter((e) => e.isPersistent === !0)), r = m(() => t.value.filter((e) => e.isPersistent !== !0));
1646
- return (e, i) => (C(), h(D(ke), { gap: "xs" }, {
1647
- default: O(() => [
1648
- (C(!0), _(p, null, T(n.value, (e) => (C(), h(hn, {
1645
+ let { activeFilters: t } = A(), n = d(() => t.value.filter((e) => e.isPersistent === !0)), r = d(() => t.value.filter((e) => e.isPersistent !== !0));
1646
+ return (e, i) => (b(), f(w(Oe), { gap: "xs" }, {
1647
+ default: T(() => [
1648
+ (b(!0), m(u, null, S(n.value, (e) => (b(), f(mn, {
1649
1649
  key: e.key,
1650
1650
  filter: e
1651
1651
  }, null, 8, ["filter"]))), 128)),
1652
- n.value.length > 0 && r.value.length > 0 ? (C(), h(D(Ae), {
1652
+ n.value.length > 0 && r.value.length > 0 ? (b(), f(w(ke), {
1653
1653
  key: 0,
1654
1654
  orientation: "vertical",
1655
1655
  class: "mx-sm h-4"
1656
- })) : g("", !0),
1657
- (C(!0), _(p, null, T(r.value, (e) => (C(), h(hn, {
1656
+ })) : p("", !0),
1657
+ (b(!0), m(u, null, S(r.value, (e) => (b(), f(mn, {
1658
1658
  key: e.key,
1659
1659
  filter: e
1660
1660
  }, null, 8, ["filter"]))), 128)),
1661
- D(t).length > 0 ? (C(), h(Le, { key: 1 })) : g("", !0)
1661
+ w(t).length > 0 ? (b(), f(Re, { key: 1 })) : p("", !0)
1662
1662
  ]),
1663
1663
  _: 1
1664
1664
  }));
1665
1665
  }
1666
- }), _n = Symbol("HotkeysContext");
1667
- function vn() {
1668
- return x(_n, null)?.defaultOptions ?? {};
1666
+ }), gn = Symbol("HotkeysContext");
1667
+ function _n() {
1668
+ return v(gn, null)?.defaultOptions ?? {};
1669
1669
  }
1670
- function J() {
1670
+ function Y() {
1671
1671
  if (typeof navigator > "u") return "linux";
1672
1672
  let e = navigator.platform?.toLowerCase() ?? "", t = navigator.userAgent?.toLowerCase() ?? "";
1673
1673
  return e.includes("mac") || t.includes("mac") ? "mac" : e.includes("win") || t.includes("win") ? "windows" : "linux";
1674
1674
  }
1675
- var Y = [
1675
+ var X = [
1676
1676
  "Control",
1677
1677
  "Alt",
1678
1678
  "Shift",
1679
1679
  "Meta"
1680
1680
  ];
1681
- new Set(Y);
1682
- var yn = {
1681
+ new Set(X);
1682
+ var vn = {
1683
1683
  Control: "Control",
1684
1684
  Ctrl: "Control",
1685
1685
  control: "Control",
@@ -1705,10 +1705,10 @@ var yn = {
1705
1705
  commandorcontrol: "Mod",
1706
1706
  mod: "Mod"
1707
1707
  };
1708
- function bn(e, t = J()) {
1708
+ function yn(e, t = Y()) {
1709
1709
  return e === "Mod" ? t === "mac" ? "Meta" : "Control" : e;
1710
1710
  }
1711
- var xn = /* @__PURE__ */ new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), Sn = /* @__PURE__ */ new Set([
1711
+ var bn = /* @__PURE__ */ new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")), xn = /* @__PURE__ */ new Set([
1712
1712
  "0",
1713
1713
  "1",
1714
1714
  "2",
@@ -1719,7 +1719,7 @@ var xn = /* @__PURE__ */ new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".sp
1719
1719
  "7",
1720
1720
  "8",
1721
1721
  "9"
1722
- ]), Cn = /* @__PURE__ */ new Set([
1722
+ ]), Sn = /* @__PURE__ */ new Set([
1723
1723
  "F1",
1724
1724
  "F2",
1725
1725
  "F3",
@@ -1732,7 +1732,7 @@ var xn = /* @__PURE__ */ new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".sp
1732
1732
  "F10",
1733
1733
  "F11",
1734
1734
  "F12"
1735
- ]), wn = /* @__PURE__ */ new Set([
1735
+ ]), Cn = /* @__PURE__ */ new Set([
1736
1736
  "ArrowUp",
1737
1737
  "ArrowDown",
1738
1738
  "ArrowLeft",
@@ -1741,14 +1741,14 @@ var xn = /* @__PURE__ */ new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".sp
1741
1741
  "End",
1742
1742
  "PageUp",
1743
1743
  "PageDown"
1744
- ]), Tn = /* @__PURE__ */ new Set([
1744
+ ]), wn = /* @__PURE__ */ new Set([
1745
1745
  "Enter",
1746
1746
  "Escape",
1747
1747
  "Space",
1748
1748
  "Tab",
1749
1749
  "Backspace",
1750
1750
  "Delete"
1751
- ]), En = /* @__PURE__ */ new Set([
1751
+ ]), Tn = /* @__PURE__ */ new Set([
1752
1752
  "/",
1753
1753
  "[",
1754
1754
  "]",
@@ -1759,7 +1759,7 @@ var xn = /* @__PURE__ */ new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".sp
1759
1759
  ".",
1760
1760
  ";",
1761
1761
  "`"
1762
- ]), Dn = {
1762
+ ]), En = {
1763
1763
  Backquote: "`",
1764
1764
  Backslash: "\\",
1765
1765
  BracketLeft: "[",
@@ -1772,14 +1772,14 @@ var xn = /* @__PURE__ */ new Set(/* @__PURE__ */ "ABCDEFGHIJKLMNOPQRSTUVWXYZ".sp
1772
1772
  Slash: "/"
1773
1773
  };
1774
1774
  [
1775
+ ...bn,
1775
1776
  ...xn,
1776
1777
  ...Sn,
1777
1778
  ...Cn,
1778
1779
  ...wn,
1779
- ...Tn,
1780
- ...En
1780
+ ...Tn
1781
1781
  ];
1782
- var On = {
1782
+ var Dn = {
1783
1783
  Esc: "Escape",
1784
1784
  esc: "Escape",
1785
1785
  escape: "Escape",
@@ -1816,45 +1816,45 @@ var On = {
1816
1816
  pgup: "PageUp",
1817
1817
  pgdn: "PageDown"
1818
1818
  };
1819
- function kn(e) {
1819
+ function On(e) {
1820
1820
  return /^\p{Letter}$/u.test(e);
1821
1821
  }
1822
- function X(e) {
1822
+ function Z(e) {
1823
1823
  if (!e) return "";
1824
- if (e in On) return On[e];
1825
- if (kn(e)) {
1824
+ if (e in Dn) return Dn[e];
1825
+ if (On(e)) {
1826
1826
  let t = e.toUpperCase();
1827
1827
  return t.length === 1 ? t : e;
1828
1828
  }
1829
1829
  let t = e.toUpperCase();
1830
1830
  return /^F([1-9]|1[0-2])$/.test(t) ? t : e;
1831
1831
  }
1832
- function An(e, t = J()) {
1832
+ function kn(e, t = Y()) {
1833
1833
  let n = e.split("+"), r = /* @__PURE__ */ new Set(), i = "";
1834
1834
  for (let e = 0; e < n.length; e++) {
1835
1835
  let a = n[e].trim();
1836
- if (e === n.length - 1) i = X(a);
1836
+ if (e === n.length - 1) i = Z(a);
1837
1837
  else {
1838
- let e = yn[a] ?? yn[a.toLowerCase()];
1838
+ let e = vn[a] ?? vn[a.toLowerCase()];
1839
1839
  if (e) {
1840
- let n = bn(e, t);
1840
+ let n = yn(e, t);
1841
1841
  r.add(n);
1842
- } else n.length === 1 && (i = X(a));
1842
+ } else n.length === 1 && (i = Z(a));
1843
1843
  }
1844
1844
  }
1845
- return !i && n.length > 0 && (i = X(n[n.length - 1].trim())), {
1845
+ return !i && n.length > 0 && (i = Z(n[n.length - 1].trim())), {
1846
1846
  key: i,
1847
1847
  ctrl: r.has("Control"),
1848
1848
  shift: r.has("Shift"),
1849
1849
  alt: r.has("Alt"),
1850
1850
  meta: r.has("Meta"),
1851
- modifiers: Y.filter((e) => r.has(e))
1851
+ modifiers: X.filter((e) => r.has(e))
1852
1852
  };
1853
1853
  }
1854
- function jn(e, t = J()) {
1854
+ function An(e, t = Y()) {
1855
1855
  let n = e.ctrl ?? !1, r = e.shift ?? !1, i = e.alt ?? !1, a = e.meta ?? !1;
1856
- e.mod && (bn("Mod", t) === "Control" ? n = !0 : a = !0);
1857
- let o = Y.filter((e) => {
1856
+ e.mod && (yn("Mod", t) === "Control" ? n = !0 : a = !0);
1857
+ let o = X.filter((e) => {
1858
1858
  switch (e) {
1859
1859
  case "Control": return n;
1860
1860
  case "Shift": return r;
@@ -1872,33 +1872,33 @@ function jn(e, t = J()) {
1872
1872
  modifiers: o
1873
1873
  };
1874
1874
  }
1875
- function Mn(e, t) {
1875
+ function jn(e, t) {
1876
1876
  let n = t === "mac" ? e.meta && !e.ctrl : e.ctrl && !e.meta, r = [];
1877
1877
  if (n) r.push("Mod"), e.alt && r.push("Alt"), e.shift && r.push("Shift");
1878
- else for (let t of Y) e.modifiers.includes(t) && r.push(t);
1879
- return r.push(X(e.key)), r.join("+");
1878
+ else for (let t of X) e.modifiers.includes(t) && r.push(t);
1879
+ return r.push(Z(e.key)), r.join("+");
1880
1880
  }
1881
- function Nn(e, t = J()) {
1882
- return Mn(An(e, t), t);
1881
+ function Mn(e, t = Y()) {
1882
+ return jn(kn(e, t), t);
1883
1883
  }
1884
- function Pn(e, t = J()) {
1885
- return Mn(e, t);
1884
+ function Nn(e, t = Y()) {
1885
+ return jn(e, t);
1886
1886
  }
1887
- function Fn(e, t = J()) {
1888
- return typeof e == "string" ? Nn(e, t) : Pn(jn(e, t), t);
1887
+ function Pn(e, t = Y()) {
1888
+ return typeof e == "string" ? Mn(e, t) : Nn(An(e, t), t);
1889
1889
  }
1890
- function In(e) {
1890
+ function Fn(e) {
1891
1891
  let t = [];
1892
- for (let n of Y) e.modifiers.includes(n) && t.push(n);
1892
+ for (let n of X) e.modifiers.includes(n) && t.push(n);
1893
1893
  return t.push(e.key), t.join("+");
1894
1894
  }
1895
- function Ln(e, t, n = J()) {
1896
- let r = typeof t == "string" ? An(t, n) : t;
1895
+ function In(e, t, n = Y()) {
1896
+ let r = typeof t == "string" ? kn(t, n) : t;
1897
1897
  if (e.ctrlKey !== r.ctrl || e.shiftKey !== r.shift || e.altKey !== r.alt || e.metaKey !== r.meta) return !1;
1898
- let i = X(e.key), a = r.key;
1898
+ let i = Z(e.key), a = r.key;
1899
1899
  if (i !== "Dead" && i.length === 1 && a.length === 1) {
1900
1900
  if (i.toUpperCase() === a.toUpperCase()) return !0;
1901
- if (kn(i) && (/^[A-Za-z]$/.test(i) || !e.altKey)) return !1;
1901
+ if (On(i) && (/^[A-Za-z]$/.test(i) || !e.altKey)) return !1;
1902
1902
  }
1903
1903
  if (e.code && (i === "Dead" || i.length === 1 && a.length === 1)) {
1904
1904
  if (e.code.startsWith("Key")) {
@@ -1909,11 +1909,11 @@ function Ln(e, t, n = J()) {
1909
1909
  let t = e.code.slice(5);
1910
1910
  if (t.length === 1 && /^[0-9]$/.test(t)) return t === a;
1911
1911
  }
1912
- return e.code in Dn && Dn[e.code] === a;
1912
+ return e.code in En && En[e.code] === a;
1913
1913
  }
1914
1914
  return i === a;
1915
1915
  }
1916
- var Rn = {
1916
+ var Ln = {
1917
1917
  preventDefault: !0,
1918
1918
  stopPropagation: !0,
1919
1919
  eventType: "keydown",
@@ -1921,10 +1921,10 @@ var Rn = {
1921
1921
  ignoreInputs: !0,
1922
1922
  conflictBehavior: "warn"
1923
1923
  };
1924
- function zn(e) {
1924
+ function Rn(e) {
1925
1925
  return !(e.ctrl || e.meta || e.key === "Escape");
1926
1926
  }
1927
- function Bn(e) {
1927
+ function zn(e) {
1928
1928
  if (!e) return !1;
1929
1929
  if (e instanceof HTMLInputElement) {
1930
1930
  let t = e.type.toLowerCase();
@@ -1932,17 +1932,17 @@ function Bn(e) {
1932
1932
  }
1933
1933
  return !!(e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement || e instanceof HTMLElement && e.isContentEditable);
1934
1934
  }
1935
- function Vn(e) {
1935
+ function Bn(e) {
1936
1936
  return typeof document > "u" ? null : typeof Document < "u" && e instanceof Document || typeof Node < "u" && e.nodeType === Node.DOCUMENT_NODE ? e.activeElement : typeof HTMLElement < "u" && e instanceof HTMLElement ? e.ownerDocument.activeElement ?? null : e.document.activeElement ?? null;
1937
1937
  }
1938
- function Hn(e, t, n) {
1939
- let r = Vn(t);
1940
- return r && Bn(r) && r !== n || e.composedPath().some((e) => Bn(e) && e !== n) ? !0 : Bn(e.target) && e.target !== n;
1938
+ function Vn(e, t, n) {
1939
+ let r = Bn(t);
1940
+ return r && zn(r) && r !== n || e.composedPath().some((e) => zn(e) && e !== n) ? !0 : zn(e.target) && e.target !== n;
1941
1941
  }
1942
- function Un(e, t) {
1942
+ function Hn(e, t) {
1943
1943
  return t === document || t === window ? e.currentTarget === t || e.currentTarget === document.documentElement : t === window ? e.currentTarget === window || e.currentTarget === document || e.currentTarget === document.documentElement : !!(t instanceof HTMLElement && (e.currentTarget === t || e.target instanceof Node && t.contains(e.target)));
1944
1944
  }
1945
- function Wn(e, t, n, r) {
1945
+ function Un(e, t, n, r) {
1946
1946
  if (n !== "allow") {
1947
1947
  if (n === "warn") {
1948
1948
  console.warn(`'${t}' is already registered. Multiple handlers will be triggered. Use conflictBehavior: 'replace' to replace the existing handler, or conflictBehavior: 'allow' to suppress this warning.`);
@@ -1952,11 +1952,11 @@ function Wn(e, t, n, r) {
1952
1952
  r(e);
1953
1953
  }
1954
1954
  }
1955
- var Z = /* @__PURE__ */ function(e) {
1955
+ var Q = /* @__PURE__ */ function(e) {
1956
1956
  return e[e.None = 0] = "None", e[e.Mutable = 1] = "Mutable", e[e.Watching = 2] = "Watching", e[e.RecursedCheck = 4] = "RecursedCheck", e[e.Recursed = 8] = "Recursed", e[e.Dirty = 16] = "Dirty", e[e.Pending = 32] = "Pending", e;
1957
1957
  }({});
1958
1958
  /* @__NO_SIDE_EFFECTS__ */
1959
- function Gn({ update: e, notify: t, unwatched: n }) {
1959
+ function Wn({ update: e, notify: t, unwatched: n }) {
1960
1960
  return {
1961
1961
  link: r,
1962
1962
  unlink: i,
@@ -1993,7 +1993,7 @@ function Gn({ update: e, notify: t, unwatched: n }) {
1993
1993
  let n = e.nextSub, r;
1994
1994
  top: do {
1995
1995
  let i = e.sub, a = i.flags;
1996
- if (a & (Z.RecursedCheck | Z.Recursed | Z.Dirty | Z.Pending) ? a & (Z.RecursedCheck | Z.Recursed) ? a & Z.RecursedCheck ? !(a & (Z.Dirty | Z.Pending)) && c(e, i) ? (i.flags = a | (Z.Recursed | Z.Pending), a &= Z.Mutable) : a = Z.None : i.flags = a & ~Z.Recursed | Z.Pending : a = Z.None : i.flags = a | Z.Pending, a & Z.Watching && t(i), a & Z.Mutable) {
1996
+ if (a & (Q.RecursedCheck | Q.Recursed | Q.Dirty | Q.Pending) ? a & (Q.RecursedCheck | Q.Recursed) ? a & Q.RecursedCheck ? !(a & (Q.Dirty | Q.Pending)) && c(e, i) ? (i.flags = a | (Q.Recursed | Q.Pending), a &= Q.Mutable) : a = Q.None : i.flags = a & ~Q.Recursed | Q.Pending : a = Q.None : i.flags = a | Q.Pending, a & Q.Watching && t(i), a & Q.Mutable) {
1997
1997
  let t = i.subs;
1998
1998
  if (t !== void 0) {
1999
1999
  let i = (e = t).nextSub;
@@ -2019,13 +2019,13 @@ function Gn({ update: e, notify: t, unwatched: n }) {
2019
2019
  let r, i = 0, a = !1;
2020
2020
  top: do {
2021
2021
  let o = t.dep, c = o.flags;
2022
- if (n.flags & Z.Dirty) a = !0;
2023
- else if ((c & (Z.Mutable | Z.Dirty)) === (Z.Mutable | Z.Dirty)) {
2022
+ if (n.flags & Q.Dirty) a = !0;
2023
+ else if ((c & (Q.Mutable | Q.Dirty)) === (Q.Mutable | Q.Dirty)) {
2024
2024
  if (e(o)) {
2025
2025
  let e = o.subs;
2026
2026
  e.nextSub !== void 0 && s(e), a = !0;
2027
2027
  }
2028
- } else if ((c & (Z.Mutable | Z.Pending)) === (Z.Mutable | Z.Pending)) {
2028
+ } else if ((c & (Q.Mutable | Q.Pending)) === (Q.Mutable | Q.Pending)) {
2029
2029
  (t.nextSub !== void 0 || t.prevSub !== void 0) && (r = {
2030
2030
  value: t,
2031
2031
  prev: r
@@ -2047,7 +2047,7 @@ function Gn({ update: e, notify: t, unwatched: n }) {
2047
2047
  continue;
2048
2048
  }
2049
2049
  a = !1;
2050
- } else n.flags &= ~Z.Pending;
2050
+ } else n.flags &= ~Q.Pending;
2051
2051
  n = t.sub;
2052
2052
  let c = t.nextDep;
2053
2053
  if (c !== void 0) {
@@ -2061,7 +2061,7 @@ function Gn({ update: e, notify: t, unwatched: n }) {
2061
2061
  function s(e) {
2062
2062
  do {
2063
2063
  let n = e.sub, r = n.flags;
2064
- (r & (Z.Pending | Z.Dirty)) === Z.Pending && (n.flags = r | Z.Dirty, (r & (Z.Watching | Z.RecursedCheck)) === Z.Watching && t(n));
2064
+ (r & (Q.Pending | Q.Dirty)) === Q.Pending && (n.flags = r | Q.Dirty, (r & (Q.Watching | Q.RecursedCheck)) === Q.Watching && t(n));
2065
2065
  } while ((e = e.nextSub) !== void 0);
2066
2066
  }
2067
2067
  function c(e, t) {
@@ -2073,7 +2073,7 @@ function Gn({ update: e, notify: t, unwatched: n }) {
2073
2073
  return !1;
2074
2074
  }
2075
2075
  }
2076
- function Kn(e, t, n) {
2076
+ function Gn(e, t, n) {
2077
2077
  let r = typeof e == "object", i = r ? e : void 0;
2078
2078
  return {
2079
2079
  next: (r ? e.next : e)?.bind(i),
@@ -2081,43 +2081,43 @@ function Kn(e, t, n) {
2081
2081
  complete: (r ? e.complete : n)?.bind(i)
2082
2082
  };
2083
2083
  }
2084
- var qn = [], Jn = 0, { link: Yn, unlink: Xn, propagate: Zn, checkDirty: Qn, shallowPropagate: $n } = /* @__PURE__ */ Gn({
2084
+ var Kn = [], qn = 0, { link: Jn, unlink: Yn, propagate: Xn, checkDirty: Zn, shallowPropagate: Qn } = /* @__PURE__ */ Wn({
2085
2085
  update(e) {
2086
2086
  return e._update();
2087
2087
  },
2088
2088
  notify(e) {
2089
- qn[tr++] = e, e.flags &= ~Z.Watching;
2089
+ Kn[er++] = e, e.flags &= ~Q.Watching;
2090
2090
  },
2091
2091
  unwatched(e) {
2092
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = Z.Mutable | Z.Dirty, rr(e));
2092
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = Q.Mutable | Q.Dirty, nr(e));
2093
2093
  }
2094
- }), er = 0, tr = 0, Q, nr = 0;
2095
- function rr(e) {
2094
+ }), $n = 0, er = 0, $, tr = 0;
2095
+ function nr(e) {
2096
2096
  let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
2097
- for (; n !== void 0;) n = Xn(n, e);
2097
+ for (; n !== void 0;) n = Yn(n, e);
2098
2098
  }
2099
- function ir() {
2100
- if (!(nr > 0)) {
2101
- for (; er < tr;) {
2102
- let e = qn[er];
2103
- qn[er++] = void 0, e.notify();
2099
+ function rr() {
2100
+ if (!(tr > 0)) {
2101
+ for (; $n < er;) {
2102
+ let e = Kn[$n];
2103
+ Kn[$n++] = void 0, e.notify();
2104
2104
  }
2105
- er = 0, tr = 0;
2105
+ $n = 0, er = 0;
2106
2106
  }
2107
2107
  }
2108
- function ar(e, t) {
2108
+ function ir(e, t) {
2109
2109
  let n = typeof e == "function", r = e, i = {
2110
2110
  _snapshot: n ? void 0 : e,
2111
2111
  subs: void 0,
2112
2112
  subsTail: void 0,
2113
2113
  deps: void 0,
2114
2114
  depsTail: void 0,
2115
- flags: n ? Z.None : Z.Mutable,
2115
+ flags: n ? Q.None : Q.Mutable,
2116
2116
  get() {
2117
- return Q !== void 0 && Yn(i, Q, Jn), i._snapshot;
2117
+ return $ !== void 0 && Jn(i, $, qn), i._snapshot;
2118
2118
  },
2119
2119
  subscribe(e) {
2120
- let t = Kn(e), n = { current: !1 }, r = or(() => {
2120
+ let t = Gn(e), n = { current: !1 }, r = ar(() => {
2121
2121
  i.get(), n.current ? t.next?.(i._snapshot) : n.current = !0;
2122
2122
  });
2123
2123
  return { unsubscribe: () => {
@@ -2125,62 +2125,62 @@ function ar(e, t) {
2125
2125
  } };
2126
2126
  },
2127
2127
  _update(e) {
2128
- let a = Q, o = t?.compare ?? Object.is;
2129
- if (n) Q = i, ++Jn, i.depsTail = void 0;
2128
+ let a = $, o = t?.compare ?? Object.is;
2129
+ if (n) $ = i, ++qn, i.depsTail = void 0;
2130
2130
  else if (e === void 0) return !1;
2131
- n && (i.flags = Z.Mutable | Z.RecursedCheck);
2131
+ n && (i.flags = Q.Mutable | Q.RecursedCheck);
2132
2132
  try {
2133
2133
  let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
2134
2134
  return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
2135
2135
  } finally {
2136
- Q = a, n && (i.flags &= ~Z.RecursedCheck), rr(i);
2136
+ $ = a, n && (i.flags &= ~Q.RecursedCheck), nr(i);
2137
2137
  }
2138
2138
  }
2139
2139
  };
2140
- return n ? (i.flags = Z.Mutable | Z.Dirty, i.get = function() {
2140
+ return n ? (i.flags = Q.Mutable | Q.Dirty, i.get = function() {
2141
2141
  let e = i.flags;
2142
- if (e & Z.Dirty || e & Z.Pending && Qn(i.deps, i)) {
2142
+ if (e & Q.Dirty || e & Q.Pending && Zn(i.deps, i)) {
2143
2143
  if (i._update()) {
2144
2144
  let e = i.subs;
2145
- e !== void 0 && $n(e);
2145
+ e !== void 0 && Qn(e);
2146
2146
  }
2147
- } else e & Z.Pending && (i.flags = e & ~Z.Pending);
2148
- return Q !== void 0 && Yn(i, Q, Jn), i._snapshot;
2147
+ } else e & Q.Pending && (i.flags = e & ~Q.Pending);
2148
+ return $ !== void 0 && Jn(i, $, qn), i._snapshot;
2149
2149
  }) : i.set = function(e) {
2150
2150
  if (i._update(e)) {
2151
2151
  let e = i.subs;
2152
- e !== void 0 && (Zn(e), $n(e), ir());
2152
+ e !== void 0 && (Xn(e), Qn(e), rr());
2153
2153
  }
2154
2154
  }, i;
2155
2155
  }
2156
- function or(e) {
2156
+ function ar(e) {
2157
2157
  let t = () => {
2158
- let t = Q;
2159
- Q = n, ++Jn, n.depsTail = void 0, n.flags = Z.Watching | Z.RecursedCheck;
2158
+ let t = $;
2159
+ $ = n, ++qn, n.depsTail = void 0, n.flags = Q.Watching | Q.RecursedCheck;
2160
2160
  try {
2161
2161
  return e();
2162
2162
  } finally {
2163
- Q = t, n.flags &= ~Z.RecursedCheck, rr(n);
2163
+ $ = t, n.flags &= ~Q.RecursedCheck, nr(n);
2164
2164
  }
2165
2165
  }, n = {
2166
2166
  deps: void 0,
2167
2167
  depsTail: void 0,
2168
2168
  subs: void 0,
2169
2169
  subsTail: void 0,
2170
- flags: Z.Watching | Z.RecursedCheck,
2170
+ flags: Q.Watching | Q.RecursedCheck,
2171
2171
  notify() {
2172
2172
  let e = this.flags;
2173
- e & Z.Dirty || e & Z.Pending && Qn(this.deps, this) ? t() : this.flags = Z.Watching;
2173
+ e & Q.Dirty || e & Q.Pending && Zn(this.deps, this) ? t() : this.flags = Q.Watching;
2174
2174
  },
2175
2175
  stop() {
2176
- this.flags = Z.None, this.depsTail = void 0, rr(this);
2176
+ this.flags = Q.None, this.depsTail = void 0, nr(this);
2177
2177
  }
2178
2178
  };
2179
2179
  return t(), n;
2180
2180
  }
2181
- var sr = class {
2181
+ var or = class {
2182
2182
  constructor(e, t) {
2183
- this.atom = ar(e), this.get = this.get.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), t && (this.actions = t(this));
2183
+ this.atom = ir(e), this.get = this.get.bind(this), this.setState = this.setState.bind(this), this.subscribe = this.subscribe.bind(this), t && (this.actions = t(this));
2184
2184
  }
2185
2185
  setState(e) {
2186
2186
  this.atom.set(e);
@@ -2192,19 +2192,19 @@ var sr = class {
2192
2192
  return this.state;
2193
2193
  }
2194
2194
  subscribe(e) {
2195
- return this.atom.subscribe(Kn(e));
2195
+ return this.atom.subscribe(Gn(e));
2196
2196
  }
2197
- }, cr = 0;
2198
- function lr() {
2199
- return `hotkey_${++cr}`;
2197
+ }, sr = 0;
2198
+ function cr() {
2199
+ return `hotkey_${++sr}`;
2200
2200
  }
2201
- var ur = class e {
2201
+ var lr = class e {
2202
2202
  static #e = null;
2203
2203
  #t;
2204
2204
  #n = /* @__PURE__ */ new Map();
2205
2205
  #r = /* @__PURE__ */ new Map();
2206
2206
  constructor() {
2207
- this.registrations = new sr(/* @__PURE__ */ new Map()), this.#t = J();
2207
+ this.registrations = new or(/* @__PURE__ */ new Map()), this.#t = Y();
2208
2208
  }
2209
2209
  static getInstance() {
2210
2210
  return e.#e ||= new e(), e.#e;
@@ -2216,7 +2216,7 @@ var ur = class e {
2216
2216
  if (typeof document > "u" && !n.target) {
2217
2217
  let e = t;
2218
2218
  return {
2219
- id: lr(),
2219
+ id: cr(),
2220
2220
  unregister: () => {},
2221
2221
  get callback() {
2222
2222
  return e;
@@ -2230,15 +2230,15 @@ var ur = class e {
2230
2230
  }
2231
2231
  };
2232
2232
  }
2233
- let r = lr(), i = n.platform ?? this.#t, a = typeof e == "string" ? An(e, i) : jn(e, i), o = typeof e == "string" ? e : In(a), s = n.target ?? document, c = n.conflictBehavior ?? "warn", l = this.#d(o, s);
2234
- l && Wn(l.id, o, c, (e) => this.#i(e));
2235
- let u = n.ignoreInputs ?? zn(a), d = {
2233
+ let r = cr(), i = n.platform ?? this.#t, a = typeof e == "string" ? kn(e, i) : An(e, i), o = typeof e == "string" ? e : Fn(a), s = n.target ?? document, c = n.conflictBehavior ?? "warn", l = this.#d(o, s);
2234
+ l && Un(l.id, o, c, (e) => this.#i(e));
2235
+ let u = n.ignoreInputs ?? Rn(a), d = {
2236
2236
  id: r,
2237
2237
  hotkey: o,
2238
2238
  parsedHotkey: a,
2239
2239
  callback: t,
2240
2240
  options: {
2241
- ...Rn,
2241
+ ...Ln,
2242
2242
  requireReset: !1,
2243
2243
  ...n,
2244
2244
  platform: i,
@@ -2313,10 +2313,10 @@ var ur = class e {
2313
2313
  let r = this.#r.get(t);
2314
2314
  if (r) for (let i of r) {
2315
2315
  let r = this.registrations.state.get(i);
2316
- if (r && Un(e, t) && r.options.enabled && !(r.options.ignoreInputs !== !1 && Hn(e, t, r.target))) if (n === "keydown") {
2316
+ if (r && Hn(e, t) && r.options.enabled && !(r.options.ignoreInputs !== !1 && Vn(e, t, r.target))) if (n === "keydown") {
2317
2317
  if (r.options.eventType !== "keydown") continue;
2318
- Ln(e, r.parsedHotkey, r.options.platform) && (r.options.preventDefault && e.preventDefault(), r.options.stopPropagation && e.stopPropagation(), (!r.options.requireReset || !r.hasFired) && (this.#c(r, e), r.options.requireReset && (r.hasFired = !0)));
2319
- } else r.options.eventType === "keyup" && Ln(e, r.parsedHotkey, r.options.platform) && this.#c(r, e), r.options.requireReset && r.hasFired && this.#f(r, e) && (r.hasFired = !1);
2318
+ In(e, r.parsedHotkey, r.options.platform) && (r.options.preventDefault && e.preventDefault(), r.options.stopPropagation && e.stopPropagation(), (!r.options.requireReset || !r.hasFired) && (this.#c(r, e), r.options.requireReset && (r.hasFired = !0)));
2319
+ } else r.options.eventType === "keyup" && In(e, r.parsedHotkey, r.options.platform) && this.#c(r, e), r.options.requireReset && r.hasFired && this.#f(r, e) && (r.hasFired = !1);
2320
2320
  }
2321
2321
  }
2322
2322
  #c(e, t) {
@@ -2342,7 +2342,7 @@ var ur = class e {
2342
2342
  return null;
2343
2343
  }
2344
2344
  #f(e, t) {
2345
- let n = e.parsedHotkey, r = X(t.key), i = n.key.length === 1 ? n.key.toUpperCase() : n.key;
2345
+ let n = e.parsedHotkey, r = Z(t.key), i = n.key.length === 1 ? n.key.toUpperCase() : n.key;
2346
2346
  return !!((r.length === 1 ? r.toUpperCase() : r) === i || n.ctrl && r === "Control" || n.shift && r === "Shift" || n.alt && r === "Alt" || n.meta && r === "Meta");
2347
2347
  }
2348
2348
  triggerRegistration(e) {
@@ -2374,23 +2374,23 @@ var ur = class e {
2374
2374
  this.registrations.setState(() => /* @__PURE__ */ new Map()), this.#n.clear(), this.#r.clear();
2375
2375
  }
2376
2376
  };
2377
- function dr() {
2378
- return ur.getInstance();
2377
+ function ur() {
2378
+ return lr.getInstance();
2379
2379
  }
2380
- function fr(e, t, n = {}) {
2381
- let r = vn(), i = dr(), a = null, o = null, s = null, c = oe(() => {
2382
- let t = $(e), i = $(n), a = {
2380
+ function dr(e, t, n = {}) {
2381
+ let r = _n(), i = ur(), a = null, o = null, s = null, c = oe(() => {
2382
+ let t = fr(e), i = fr(n), a = {
2383
2383
  ...r.hotkey,
2384
2384
  ...i
2385
2385
  };
2386
2386
  return {
2387
2387
  resolvedHotkey: t,
2388
2388
  mergedOptions: a,
2389
- resolvedEnabled: a.enabled === void 0 ? void 0 : $(a.enabled),
2390
- resolvedTarget: a.target === void 0 ? void 0 : $(a.target)
2389
+ resolvedEnabled: a.enabled === void 0 ? void 0 : fr(a.enabled),
2390
+ resolvedTarget: a.target === void 0 ? void 0 : fr(a.target)
2391
2391
  };
2392
2392
  }, ({ resolvedHotkey: e, mergedOptions: n, resolvedEnabled: r, resolvedTarget: c }) => {
2393
- let l = Fn(e, n.platform ?? J()), u = c === void 0 ? typeof document < "u" ? document : null : c;
2393
+ let l = Pn(e, n.platform ?? Y()), u = c === void 0 ? typeof document < "u" ? document : null : c;
2394
2394
  if (!u) {
2395
2395
  a?.isActive && (a.unregister(), a = null), o = null, s = null;
2396
2396
  return;
@@ -2408,33 +2408,33 @@ function fr(e, t, n = {}) {
2408
2408
  target: u
2409
2409
  }), a.isActive && (a.callback = t, a.setOptions(m)), o = l, s = u;
2410
2410
  }, { immediate: !0 });
2411
- S(() => {
2411
+ te(() => {
2412
2412
  c(), a?.isActive && (a.unregister(), a = null);
2413
2413
  });
2414
2414
  }
2415
- function $(e) {
2416
- return typeof e == "function" ? e() : D(e);
2415
+ function fr(e) {
2416
+ return typeof e == "function" ? e() : w(e);
2417
2417
  }
2418
- var pr = /* @__PURE__ */ b({
2418
+ var pr = /* @__PURE__ */ _({
2419
2419
  __name: "FiltersDropdownMenu",
2420
2420
  setup(e) {
2421
- let t = f(), { action: n } = j(), i = w(!1);
2422
- return fr("F", () => {
2423
- i.value = !0;
2424
- }), (e, a) => (C(), h(D(se), {
2425
- "is-open": i.value,
2426
- "onUpdate:isOpen": a[0] ||= (e) => i.value = e,
2427
- "parent-action": D(n),
2421
+ let t = l(), { action: n } = A(), r = x(!1);
2422
+ return dr("F", () => {
2423
+ r.value = !0;
2424
+ }), (e, i) => (b(), f(w(se), {
2425
+ "is-open": r.value,
2426
+ "onUpdate:isOpen": i[0] ||= (e) => r.value = e,
2427
+ "parent-action": w(n),
2428
2428
  "popover-collision-padding": 10,
2429
2429
  "is-current-context-only": !1,
2430
2430
  "popover-align": "start",
2431
2431
  "popover-side": "bottom"
2432
2432
  }, {
2433
- default: O(() => [y(D(de), {
2433
+ default: T(() => [g(w(ue), {
2434
2434
  "keyboard-shortcut": { key: "F" },
2435
- "icon-left": D(r),
2436
- label: D(t).t("component.filters_dropdown_menu.filter"),
2437
- "tooltip-label": D(t).t("component.filters_dropdown_menu.add_filter"),
2435
+ "icon-left": w(a),
2436
+ label: w(t).t("component.filters_dropdown_menu.filter"),
2437
+ "tooltip-label": w(t).t("component.filters_dropdown_menu.add_filter"),
2438
2438
  variant: "secondary"
2439
2439
  }, null, 8, [
2440
2440
  "icon-left",
@@ -2446,4 +2446,4 @@ var pr = /* @__PURE__ */ b({
2446
2446
  }
2447
2447
  });
2448
2448
  //#endregion
2449
- export { tn as a, rn as c, an as d, nn as f, cn as i, on as l, Ie as n, gn as o, Qt as r, pr as s, en as t, K as u };
2449
+ export { en as a, nn as c, rn as d, tn as f, sn as i, an as l, Le as n, hn as o, Zt as r, pr as s, $t as t, q as u };