@feedmepos/mf-inventory-portal 1.8.0-dev.7 → 1.8.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 (244) hide show
  1. package/dist/App-BPdZMhM8.js +1445 -0
  2. package/dist/{ApprovalView-1Y_jh_UJ.js → ApprovalView-UzjSuZ2L.js} +26 -25
  3. package/dist/{BindingsDialog-VMvTLguN.js → BindingsDialog-Cb6WRlKq.js} +2 -2
  4. package/dist/{BindingsPicker-KNRM5rMU.js → BindingsPicker-CtD4U4lv.js} +2 -2
  5. package/dist/{BindingsTable-CSyNlNCL.js → BindingsTable-CX-3403K.js} +10 -10
  6. package/dist/BulkReceiveRequestPage-CUq1Lmww.js +2839 -0
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DQuI04Yj.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-C5cA-lGH.js} +1 -1
  8. package/dist/{ClosingDraftView-A2pJuhIb.js → ClosingDraftView-Ca_SvdWQ.js} +748 -746
  9. package/dist/ClosingHistoryView-DzkeJYoe.js +769 -0
  10. package/dist/{ClosingTemplateView-DpkNCyoB.js → ClosingTemplateView-DSrelbso.js} +22 -21
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DOpIDvsy.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuOuXPy1.js} +1 -1
  12. package/dist/{DefaultView-B4UuAqYu.js → DefaultView-Dw-7Y8vD.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-w0YcNH3F.js → DeliveryOrderPrintPreview-C5qJsv_O.js} +15 -15
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BimIEHsW.js → EmailDialog.vue_vue_type_script_setup_true_lang-D8od7aKT.js} +10075 -9949
  15. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-ChekXW32.js +48 -0
  16. package/dist/FeatureCapabilityGate-C-IM5_7n.js +82 -0
  17. package/dist/FeaturePageGate.vue_vue_type_script_setup_true_lang-DEDU1XUC.js +189 -0
  18. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang--54VR4oB.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B861gqIJ.js} +1 -1
  19. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B7j4ZSOe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ckli_nZx.js} +2 -2
  20. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D_y8VcCI.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js} +2 -2
  21. package/dist/{FmMultiselectDialog-DMA5eR0C.js → FmMultiselectDialog-CShFKSIW.js} +2 -2
  22. package/dist/{FmMultiselectDialog-BnZInvgp.js → FmMultiselectDialog-Ci-6NMsV.js} +2 -2
  23. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BXTUsnwN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dkx5vVap.js} +105 -99
  24. package/dist/ImportView-7ij7RUHI.js +1540 -0
  25. package/dist/{IngredientsView-C4-8qNGD.js → IngredientsView-fIPtTyFD.js} +685 -688
  26. package/dist/{IntegrationExplorerView-D3leld2Z.js → IntegrationExplorerView-DLYT4T-I.js} +1537 -1620
  27. package/dist/IntegrationPlatformView-CwywuK_y.js +13385 -0
  28. package/dist/{IntegrationView-BhRzry3g.js → IntegrationView-DnyVHXge.js} +2380 -2340
  29. package/dist/{InventoryBindingForm-ewAgZ6e-.js → InventoryBindingForm-BBs8v7CL.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bpo7Yv9A.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang--pI5wz_M.js} +134 -134
  31. package/dist/{InventoryBindingSummary-e67GzHYr.js → InventoryBindingSummary-CwIrQ8lG.js} +1 -1
  32. package/dist/JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js +25 -0
  33. package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJSbskyn.js +79 -0
  34. package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-CM3gtYZo.js +19 -0
  35. package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-0F-yOcPC.js +79 -0
  36. package/dist/PremiumUpgradePage.vue_vue_type_script_setup_true_lang-DGAxPOEh.js +58 -0
  37. package/dist/ProductionRunDetailPage-C_WC4qfP.js +2317 -0
  38. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-7u0HQH67.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BIkoMOM2.js} +3051 -3161
  39. package/dist/ProductionRunPage-DuzVrjbZ.js +954 -0
  40. package/dist/{PublishView-BXA3k8Cp.js → PublishView-BVg44yke.js} +3 -3
  41. package/dist/{PurchaseOrderPrintPreview-DRugr4BU.js → PurchaseOrderPrintPreview-CNx6unyj.js} +17 -17
  42. package/dist/{ReceiveRequestView-CeJs9NTD.js → ReceiveRequestView-DeNrYOUt.js} +17 -16
  43. package/dist/RecipeView-De3pLsPR.js +3272 -0
  44. package/dist/SettingsView-B5ud0KtI.js +1005 -0
  45. package/dist/StockView-4N3NRjY8.js +3003 -0
  46. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Ckw1_xIc.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DvlRRKdt.js} +1 -1
  47. package/dist/{SupplierView-DH9u6e2M.js → SupplierView-fC9oe5nu.js} +304 -301
  48. package/dist/{SurchargeView-BPVEpc0f.js → SurchargeView-H6rv7u8A.js} +7 -7
  49. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BRwxKmwb.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DFdrmR2Z.js} +2 -2
  50. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js +71 -0
  51. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BivHE94R.js +332 -0
  52. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Df01LqHp.js +4953 -0
  53. package/dist/TransferTemplateView-CVUnofkI.js +2347 -0
  54. package/dist/{UnitCostHistoryView-06rIaX_M.js → UnitCostHistoryView-DjD2WAFI.js} +4 -4
  55. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-C2zidBrl.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CE0zHU6c.js} +4 -4
  56. package/dist/{UnitView-Xk_F9SYG.js → UnitView-DCfsbE8e.js} +111 -106
  57. package/dist/{WarehouseView-bmpLmpcX.js → WarehouseView-BCebmbcj.js} +12 -11
  58. package/dist/{WastageTemplateView-CWV1pFxM.js → WastageTemplateView-BXYNMBun.js} +19 -18
  59. package/dist/api/bill.d.ts +4 -2
  60. package/dist/api/bill.spec.d.ts +1 -0
  61. package/dist/api/closing.d.ts +1 -0
  62. package/dist/api/feature-flags.d.ts +2 -0
  63. package/dist/api/integration-sync-log.d.ts +0 -13
  64. package/dist/api/inventory.d.ts +9 -9
  65. package/dist/api/netsuite-explorer.d.ts +1 -0
  66. package/dist/api/stock.d.ts +1 -1
  67. package/dist/{app-CURawLhs.js → app-VtVYHCDF.js} +9785 -9546
  68. package/dist/app.d.ts +151 -14
  69. package/dist/app.js +1 -1
  70. package/dist/bulk-edit-simulation.helper-Nd6CtWGf.js +178 -0
  71. package/dist/{closing-template-q_KGB4jO.js → closing-template-LCe0U9w9.js} +4 -4
  72. package/dist/components/FeatureCapabilityGate.spec.d.ts +1 -0
  73. package/dist/components/FeatureCapabilityGate.vue.d.ts +5 -0
  74. package/dist/components/FeatureGateLayout.vue.d.ts +11 -0
  75. package/dist/components/FeaturePageGate.spec.d.ts +1 -0
  76. package/dist/components/FeaturePageGate.vue.d.ts +34 -0
  77. package/dist/components/FmAdminCollapsiblePanel.vue.d.ts +1 -1
  78. package/dist/components/FmDroppableField.vue.d.ts +1 -1
  79. package/dist/components/FmInventoryTableToolbar.vue.d.ts +2 -2
  80. package/dist/components/FmUnitInputProps.d.ts +1 -0
  81. package/dist/components/FmUnitInputRules.d.ts +1 -1
  82. package/dist/components/HrmPermissionGuard.vue.d.ts +1 -1
  83. package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
  84. package/dist/components/NumberPrecisionInput.spec.d.ts +1 -0
  85. package/dist/components/PremiumUpgradePage.vue.d.ts +2 -0
  86. package/dist/components/TemplatePublishDialog.d.ts +2 -0
  87. package/dist/components/TemplatePublishDialog.spec.d.ts +1 -0
  88. package/dist/composable/defineApi.d.ts +1 -1
  89. package/dist/{date2-3kdweNLp.js → date2-Cfb6DXM4.js} +1 -1
  90. package/dist/{dayjs.min-DHE73-wM.js → dayjs.min-BOndKK7B.js} +1 -1
  91. package/dist/{decimal-CAnQe2Ib.js → decimal-nbuisP61.js} +2 -2
  92. package/dist/{defineDeepModel-CctS67Do.js → defineDeepModel-DKySrdwp.js} +5 -5
  93. package/dist/{duplicate-template-Jk2V2Ezg.js → duplicate-template-BxcKb3Jp.js} +1 -1
  94. package/dist/{feature-D9n0IC0c.js → feature-VDUlSvM1.js} +452 -354
  95. package/dist/feature-flags/core.d.ts +1 -0
  96. package/dist/feature-flags/vue.d.ts +22 -1
  97. package/dist/feature-flags/vue.spec.d.ts +1 -0
  98. package/dist/{format-time-from-id-Bmzpbg-8.js → format-time-from-id-CfVH4LZ_.js} +1 -1
  99. package/dist/{format-unit-display-CVg4Bl5L.js → format-unit-display-BjTeAtgS.js} +209 -208
  100. package/dist/helper/country.spec.d.ts +1 -0
  101. package/dist/helper/menu-usage-module.d.ts +2 -1
  102. package/dist/helper/number.d.ts +5 -1
  103. package/dist/helper/rules.d.ts +1 -1
  104. package/dist/{id-to-date-DPCcxufP.js → id-to-date-Jr9SlHLO.js} +1 -1
  105. package/dist/{import-export.helper-bmGZwUBB.js → import-export.helper-FT9Wbigh.js} +17 -17
  106. package/dist/{index-zCBA-X6R.js → index-BV9b3Ulp.js} +2234 -2163
  107. package/dist/{index-yt6MlAFG.js → index-By5-VjVg.js} +1 -1
  108. package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
  109. package/dist/{index-CFNNQo-7.js → index-DXHVgUHU.js} +3 -3
  110. package/dist/index-eGvSlWMU.js +1892 -0
  111. package/dist/layout/SingleColumnLayout.vue.d.ts +1 -1
  112. package/dist/{lz-string-CqlY9MC2.js → lz-string-BAzqO9xf.js} +1 -1
  113. package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
  114. package/dist/{netsuite-DudeltN_.js → netsuite-BhGuduqd.js} +254 -263
  115. package/dist/netsuite-explorer-9Qj7qAum.js +79 -0
  116. package/dist/{predefined-templates-DT32p04n.js → predefined-templates-BlRafgnc.js} +1 -1
  117. package/dist/production-run-list-DR1WsaBR.js +61 -0
  118. package/dist/{purchase-order-template-LaRpWA04.js → purchase-order-template-By_Zxu1b.js} +1 -1
  119. package/dist/{recalculationUtils-BYN393eE.js → recalculationUtils-VsBar7jB.js} +1 -1
  120. package/dist/router/name.d.ts +2 -1
  121. package/dist/{row-action.enum-BiP5wkT6.js → row-action.enum-76yLYmPA.js} +1 -1
  122. package/dist/rules-fOcvgt4t.js +243 -0
  123. package/dist/{stock-B9XerL9c.js → stock-C-dQaxY2.js} +1 -1
  124. package/dist/stock-Dh0KXA1P.js +78 -0
  125. package/dist/stores/feature.d.ts +31 -2
  126. package/dist/stores/feature.load-state.spec.d.ts +1 -0
  127. package/dist/stores/integration/netsuite.d.ts +2 -2
  128. package/dist/stores/inventory.no-location.spec.d.ts +1 -0
  129. package/dist/stores/location.d.ts +42 -42
  130. package/dist/stores/supplier.d.ts +48 -48
  131. package/dist/stores/warehouse.d.ts +2 -2
  132. package/dist/style.css +1 -1
  133. package/dist/{supplier-dpHijd2E.js → supplier-XHHHN8vZ.js} +2 -2
  134. package/dist/{surcharge-BZ4STY5J.js → surcharge-0-oBiYoF.js} +1 -1
  135. package/dist/tsconfig.app.tsbuildinfo +1 -1
  136. package/dist/{uom-rules-Da5Lngvp.js → uom-rules-DrRuSFgM.js} +1 -1
  137. package/dist/{use-ingredient-select-dialog-C3YsT5l-.js → use-ingredient-select-dialog-mQ7aQChK.js} +2 -2
  138. package/dist/{use-inventory-binding-dialog-BSsyrcGe.js → use-inventory-binding-dialog-5Wu0ItnH.js} +2 -2
  139. package/dist/{use-template-enabled-locations-BmJUzSUm.js → use-template-enabled-locations-CgpPMl8g.js} +2 -2
  140. package/dist/{use-transfer-locations-frEk_aBH.js → use-transfer-locations-DZ6B7eMT.js} +14 -14
  141. package/dist/{useHrmPermission-Cyjm0y9a.js → useHrmPermission-BaGxz4EV.js} +1 -1
  142. package/dist/{useNavigationMenu-CnTsOF9T.js → useNavigationMenu-CyP39v3U.js} +50 -49
  143. package/dist/{useSseClient-D_7o9nuf.js → useSseClient-CaD4MVg0.js} +1 -1
  144. package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
  145. package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
  146. package/dist/views/changelog/composables/use-snapshot-diff.d.ts +2 -2
  147. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
  148. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
  149. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
  150. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
  151. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +19 -19
  152. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
  153. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
  154. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
  155. package/dist/views/import/helper/submit-rows.d.ts +1 -1
  156. package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
  157. package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +3 -1
  158. package/dist/views/integration/IntegrationPlatformView.vue.d.ts +24 -0
  159. package/dist/views/integration/components/IntegrationCard.vue.d.ts +3 -3
  160. package/dist/views/integration/components/Synergy/importFn.spec.d.ts +1 -0
  161. package/dist/views/integration/components/Xilnex/importFn.spec.d.ts +1 -0
  162. package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
  163. package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
  164. package/dist/views/integration/helper/opening-balance.d.ts +22 -0
  165. package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
  166. package/dist/views/production-run/ProductionRunDetailPage.spec.d.ts +1 -0
  167. package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → production-run/ProductionRunDetailPage.vue.d.ts} +2 -2
  168. package/dist/views/production-run/ProductionRunPage.vue.d.ts +2 -0
  169. package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +2 -2
  170. package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +4 -4
  171. package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +19 -9
  172. package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +4 -4
  173. package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +4 -4
  174. package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +14 -14
  175. package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +4 -4
  176. package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +4 -4
  177. package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +1 -1
  178. package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +6 -6
  179. package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +0 -1
  180. package/dist/views/production-run/shared/model/production-run-list.d.ts +1 -1
  181. package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +1 -1
  182. package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +1 -1
  183. package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +2 -2
  184. package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +3 -3
  185. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
  186. package/dist/views/receive-request/composables/netsuite-order-label.d.ts +11 -0
  187. package/dist/views/receive-request/composables/netsuite-order-label.spec.d.ts +1 -0
  188. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +6 -6
  189. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -48
  190. package/dist/views/receive-request/composables/use-receive-request-form.spec.d.ts +1 -0
  191. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -42
  192. package/dist/views/receive-request/import/export.spec.d.ts +1 -0
  193. package/dist/views/receive-request-bulk/BulkReceiveRequestPage.vue.d.ts +2 -0
  194. package/dist/views/receive-request-bulk/components/CreateTransferWizard.spec.d.ts +1 -0
  195. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +54 -54
  196. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.readiness.spec.d.ts +1 -0
  197. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +8 -8
  198. package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
  199. package/dist/views/recipe/helper/import-recipe.d.ts +30 -0
  200. package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
  201. package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
  202. package/dist/views/settings/PlanLicenseDisplay.vue.d.ts +2 -0
  203. package/dist/views/stock/components/StockRecordCard.spec.d.ts +1 -0
  204. package/dist/views/stock/components/StockRecordCard.vue.d.ts +19 -865
  205. package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
  206. package/dist/views/stock/components/dialog/BillInventoryInfoDialog.spec.d.ts +1 -0
  207. package/dist/views/stock/components/dialog/BillInventoryInfoDialog.vue.d.ts +36 -0
  208. package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
  209. package/dist/views/stock/composables/use-last-closing-summary.d.ts +4 -0
  210. package/dist/views/stock/composables/use-last-closing-summary.spec.d.ts +1 -0
  211. package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
  212. package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
  213. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
  214. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
  215. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
  216. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
  217. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
  218. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
  219. package/dist/views/transfer-template/helpers/template-item.error.helper.spec.d.ts +1 -0
  220. package/dist/views/unit/composables/use-unit-form.spec.d.ts +1 -0
  221. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +4 -4
  222. package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BBkF9lOE.js → vue-KHCpiw_e.js} +106 -108
  223. package/dist/{vue-i18n-DwAcG7yc.js → vue-i18n-D6btLtve.js} +422 -422
  224. package/dist/{xlsx.util-C7S-uyqm.js → xlsx.util-Dr5i_LBa.js} +2 -2
  225. package/package.json +71 -66
  226. package/dist/App-Bo29Nwt0.js +0 -1537
  227. package/dist/BulkReceiveRequestView-vOeHbWM_.js +0 -2656
  228. package/dist/ClosingHistoryView-woRmvmYT.js +0 -761
  229. package/dist/ImportView-C7Hah7MM.js +0 -1291
  230. package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKEzy2Uo.js +0 -72
  231. package/dist/ProductionRunDetailView-Ct7kr5Ht.js +0 -2312
  232. package/dist/ProductionRunView-odWyBZGx.js +0 -930
  233. package/dist/RecipeView-BH0REMB3.js +0 -3428
  234. package/dist/SettingsView-Dc27wyk-.js +0 -977
  235. package/dist/StockView-DrHLzosW.js +0 -2616
  236. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
  237. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BpiePSmo.js +0 -299
  238. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DOQGPKiv.js +0 -4820
  239. package/dist/TransferTemplateView-CEVRsKL7.js +0 -2326
  240. package/dist/menu-usage-module-BdjYEk3s.js +0 -57
  241. package/dist/number-BoePMDs8.js +0 -138
  242. package/dist/rules-CQT0uAAo.js +0 -98
  243. package/dist/stock-CVybjhUm.js +0 -75
  244. package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
@@ -0,0 +1,1892 @@
1
+ import { defineComponent as Re, h as we, ref as ve, watchEffect as he } from "vue";
2
+ var _e = { env: { NODE_ENV: "production" } };
3
+ function x(e, o) {
4
+ return typeof e == "function" ? e(o) : e;
5
+ }
6
+ function $(e, o) {
7
+ return (t) => {
8
+ o.setState((n) => ({
9
+ ...n,
10
+ [e]: x(t, n[e])
11
+ }));
12
+ };
13
+ }
14
+ function O(e) {
15
+ return e instanceof Function;
16
+ }
17
+ function Fe(e) {
18
+ return Array.isArray(e) && e.every((o) => typeof o == "number");
19
+ }
20
+ function $e(e, o) {
21
+ const t = [], n = (r) => {
22
+ r.forEach((i) => {
23
+ t.push(i);
24
+ const l = o(i);
25
+ l != null && l.length && n(l);
26
+ });
27
+ };
28
+ return n(e), t;
29
+ }
30
+ function m(e, o, t) {
31
+ let n = [], r;
32
+ return (i) => {
33
+ let l;
34
+ t.key && t.debug && (l = Date.now());
35
+ const u = e(i);
36
+ if (!(u.length !== n.length || u.some((f, S) => n[S] !== f)))
37
+ return r;
38
+ n = u;
39
+ let g;
40
+ if (t.key && t.debug && (g = Date.now()), r = o(...u), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
41
+ const f = Math.round((Date.now() - l) * 100) / 100, S = Math.round((Date.now() - g) * 100) / 100, d = S / 16, s = (c, p) => {
42
+ for (c = String(c); c.length < p; )
43
+ c = " " + c;
44
+ return c;
45
+ };
46
+ console.info(`%c⏱ ${s(S, 5)} /${s(f, 5)} ms`, `
47
+ font-size: .6rem;
48
+ font-weight: bold;
49
+ color: hsl(${Math.max(0, Math.min(120 - 120 * d, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
50
+ }
51
+ return r;
52
+ };
53
+ }
54
+ function C(e, o, t, n) {
55
+ return {
56
+ debug: () => {
57
+ var r;
58
+ return (r = e == null ? void 0 : e.debugAll) != null ? r : e[o];
59
+ },
60
+ key: _e.env.NODE_ENV === "development",
61
+ onChange: n
62
+ };
63
+ }
64
+ function Ve(e, o, t, n) {
65
+ const r = () => {
66
+ var l;
67
+ return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
68
+ }, i = {
69
+ id: `${o.id}_${t.id}`,
70
+ row: o,
71
+ column: t,
72
+ getValue: () => o.getValue(n),
73
+ renderValue: r,
74
+ getContext: m(() => [e, t, o, i], (l, u, a, g) => ({
75
+ table: l,
76
+ column: u,
77
+ row: a,
78
+ cell: g,
79
+ getValue: g.getValue,
80
+ renderValue: g.renderValue
81
+ }), C(e.options, "debugCells"))
82
+ };
83
+ return e._features.forEach((l) => {
84
+ l.createCell == null || l.createCell(i, t, o, e);
85
+ }, {}), i;
86
+ }
87
+ function Pe(e, o, t, n) {
88
+ var r, i;
89
+ const u = {
90
+ ...e._getDefaultColumnDef(),
91
+ ...o
92
+ }, a = u.accessorKey;
93
+ let g = (r = (i = u.id) != null ? i : a ? a.replace(".", "_") : void 0) != null ? r : typeof u.header == "string" ? u.header : void 0, f;
94
+ if (u.accessorFn ? f = u.accessorFn : a && (a.includes(".") ? f = (d) => {
95
+ let s = d;
96
+ for (const p of a.split(".")) {
97
+ var c;
98
+ s = (c = s) == null ? void 0 : c[p];
99
+ }
100
+ return s;
101
+ } : f = (d) => d[u.accessorKey]), !g)
102
+ throw new Error();
103
+ let S = {
104
+ id: `${String(g)}`,
105
+ accessorFn: f,
106
+ parent: n,
107
+ depth: t,
108
+ columnDef: u,
109
+ columns: [],
110
+ getFlatColumns: m(() => [!0], () => {
111
+ var d;
112
+ return [S, ...(d = S.columns) == null ? void 0 : d.flatMap((s) => s.getFlatColumns())];
113
+ }, C(e.options, "debugColumns")),
114
+ getLeafColumns: m(() => [e._getOrderColumnsFn()], (d) => {
115
+ var s;
116
+ if ((s = S.columns) != null && s.length) {
117
+ let c = S.columns.flatMap((p) => p.getLeafColumns());
118
+ return d(c);
119
+ }
120
+ return [S];
121
+ }, C(e.options, "debugColumns"))
122
+ };
123
+ for (const d of e._features)
124
+ d.createColumn == null || d.createColumn(S, e);
125
+ return S;
126
+ }
127
+ const _ = "debugHeaders";
128
+ function ie(e, o, t) {
129
+ var n;
130
+ let i = {
131
+ id: (n = t.id) != null ? n : o.id,
132
+ column: o,
133
+ index: t.index,
134
+ isPlaceholder: !!t.isPlaceholder,
135
+ placeholderId: t.placeholderId,
136
+ depth: t.depth,
137
+ subHeaders: [],
138
+ colSpan: 0,
139
+ rowSpan: 0,
140
+ headerGroup: null,
141
+ getLeafHeaders: () => {
142
+ const l = [], u = (a) => {
143
+ a.subHeaders && a.subHeaders.length && a.subHeaders.map(u), l.push(a);
144
+ };
145
+ return u(i), l;
146
+ },
147
+ getContext: () => ({
148
+ table: e,
149
+ header: i,
150
+ column: o
151
+ })
152
+ };
153
+ return e._features.forEach((l) => {
154
+ l.createHeader == null || l.createHeader(i, e);
155
+ }), i;
156
+ }
157
+ const Me = {
158
+ createTable: (e) => {
159
+ e.getHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
160
+ var i, l;
161
+ const u = (i = n == null ? void 0 : n.map((S) => t.find((d) => d.id === S)).filter(Boolean)) != null ? i : [], a = (l = r == null ? void 0 : r.map((S) => t.find((d) => d.id === S)).filter(Boolean)) != null ? l : [], g = t.filter((S) => !(n != null && n.includes(S.id)) && !(r != null && r.includes(S.id)));
162
+ return G(o, [...u, ...g, ...a], e);
163
+ }, C(e.options, _)), e.getCenterHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), G(o, t, e, "center")), C(e.options, _)), e.getLeftHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
164
+ var r;
165
+ const i = (r = n == null ? void 0 : n.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
166
+ return G(o, i, e, "left");
167
+ }, C(e.options, _)), e.getRightHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
168
+ var r;
169
+ const i = (r = n == null ? void 0 : n.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
170
+ return G(o, i, e, "right");
171
+ }, C(e.options, _)), e.getFooterGroups = m(() => [e.getHeaderGroups()], (o) => [...o].reverse(), C(e.options, _)), e.getLeftFooterGroups = m(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), C(e.options, _)), e.getCenterFooterGroups = m(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), C(e.options, _)), e.getRightFooterGroups = m(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), C(e.options, _)), e.getFlatHeaders = m(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _)), e.getLeftFlatHeaders = m(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _)), e.getCenterFlatHeaders = m(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _)), e.getRightFlatHeaders = m(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _)), e.getCenterLeafHeaders = m(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
172
+ var n;
173
+ return !((n = t.subHeaders) != null && n.length);
174
+ }), C(e.options, _)), e.getLeftLeafHeaders = m(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
175
+ var n;
176
+ return !((n = t.subHeaders) != null && n.length);
177
+ }), C(e.options, _)), e.getRightLeafHeaders = m(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
178
+ var n;
179
+ return !((n = t.subHeaders) != null && n.length);
180
+ }), C(e.options, _)), e.getLeafHeaders = m(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
181
+ var r, i, l, u, a, g;
182
+ return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (u = t[0]) == null ? void 0 : u.headers) != null ? l : [], ...(a = (g = n[0]) == null ? void 0 : g.headers) != null ? a : []].map((f) => f.getLeafHeaders()).flat();
183
+ }, C(e.options, _));
184
+ }
185
+ };
186
+ function G(e, o, t, n) {
187
+ var r, i;
188
+ let l = 0;
189
+ const u = function(d, s) {
190
+ s === void 0 && (s = 1), l = Math.max(l, s), d.filter((c) => c.getIsVisible()).forEach((c) => {
191
+ var p;
192
+ (p = c.columns) != null && p.length && u(c.columns, s + 1);
193
+ }, 0);
194
+ };
195
+ u(e);
196
+ let a = [];
197
+ const g = (d, s) => {
198
+ const c = {
199
+ depth: s,
200
+ id: [n, `${s}`].filter(Boolean).join("_"),
201
+ headers: []
202
+ }, p = [];
203
+ d.forEach((R) => {
204
+ const w = [...p].reverse()[0], v = R.column.depth === c.depth;
205
+ let h, P = !1;
206
+ if (v && R.column.parent ? h = R.column.parent : (h = R.column, P = !0), w && (w == null ? void 0 : w.column) === h)
207
+ w.subHeaders.push(R);
208
+ else {
209
+ const F = ie(t, h, {
210
+ id: [n, s, h.id, R == null ? void 0 : R.id].filter(Boolean).join("_"),
211
+ isPlaceholder: P,
212
+ placeholderId: P ? `${p.filter((y) => y.column === h).length}` : void 0,
213
+ depth: s,
214
+ index: p.length
215
+ });
216
+ F.subHeaders.push(R), p.push(F);
217
+ }
218
+ c.headers.push(R), R.headerGroup = c;
219
+ }), a.push(c), s > 0 && g(p, s - 1);
220
+ }, f = o.map((d, s) => ie(t, d, {
221
+ depth: l,
222
+ index: s
223
+ }));
224
+ g(f, l - 1), a.reverse();
225
+ const S = (d) => d.filter((c) => c.column.getIsVisible()).map((c) => {
226
+ let p = 0, R = 0, w = [0];
227
+ c.subHeaders && c.subHeaders.length ? (w = [], S(c.subHeaders).forEach((h) => {
228
+ let {
229
+ colSpan: P,
230
+ rowSpan: F
231
+ } = h;
232
+ p += P, w.push(F);
233
+ })) : p = 1;
234
+ const v = Math.min(...w);
235
+ return R = R + v, c.colSpan = p, c.rowSpan = R, {
236
+ colSpan: p,
237
+ rowSpan: R
238
+ };
239
+ });
240
+ return S((r = (i = a[0]) == null ? void 0 : i.headers) != null ? r : []), a;
241
+ }
242
+ const Z = (e, o, t, n, r, i, l) => {
243
+ let u = {
244
+ id: o,
245
+ index: n,
246
+ original: t,
247
+ depth: r,
248
+ parentId: l,
249
+ _valuesCache: {},
250
+ _uniqueValuesCache: {},
251
+ getValue: (a) => {
252
+ if (u._valuesCache.hasOwnProperty(a))
253
+ return u._valuesCache[a];
254
+ const g = e.getColumn(a);
255
+ if (g != null && g.accessorFn)
256
+ return u._valuesCache[a] = g.accessorFn(u.original, n), u._valuesCache[a];
257
+ },
258
+ getUniqueValues: (a) => {
259
+ if (u._uniqueValuesCache.hasOwnProperty(a))
260
+ return u._uniqueValuesCache[a];
261
+ const g = e.getColumn(a);
262
+ if (g != null && g.accessorFn)
263
+ return g.columnDef.getUniqueValues ? (u._uniqueValuesCache[a] = g.columnDef.getUniqueValues(u.original, n), u._uniqueValuesCache[a]) : (u._uniqueValuesCache[a] = [u.getValue(a)], u._uniqueValuesCache[a]);
264
+ },
265
+ renderValue: (a) => {
266
+ var g;
267
+ return (g = u.getValue(a)) != null ? g : e.options.renderFallbackValue;
268
+ },
269
+ subRows: [],
270
+ getLeafRows: () => $e(u.subRows, (a) => a.subRows),
271
+ getParentRow: () => u.parentId ? e.getRow(u.parentId, !0) : void 0,
272
+ getParentRows: () => {
273
+ let a = [], g = u;
274
+ for (; ; ) {
275
+ const f = g.getParentRow();
276
+ if (!f) break;
277
+ a.push(f), g = f;
278
+ }
279
+ return a.reverse();
280
+ },
281
+ getAllCells: m(() => [e.getAllLeafColumns()], (a) => a.map((g) => Ve(e, u, g, g.id)), C(e.options, "debugRows")),
282
+ _getAllCellsByColumnId: m(() => [u.getAllCells()], (a) => a.reduce((g, f) => (g[f.column.id] = f, g), {}), C(e.options, "debugRows"))
283
+ };
284
+ for (let a = 0; a < e._features.length; a++) {
285
+ const g = e._features[a];
286
+ g == null || g.createRow == null || g.createRow(u, e);
287
+ }
288
+ return u;
289
+ }, xe = {
290
+ createColumn: (e, o) => {
291
+ e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
292
+ if (e._getFacetedMinMaxValues)
293
+ return e._getFacetedMinMaxValues();
294
+ };
295
+ }
296
+ }, se = (e, o, t) => {
297
+ var n;
298
+ const r = t.toLowerCase();
299
+ return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null || (n = n.toLowerCase()) == null) && n.includes(r));
300
+ };
301
+ se.autoRemove = (e) => V(e);
302
+ const ue = (e, o, t) => {
303
+ var n;
304
+ return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
305
+ };
306
+ ue.autoRemove = (e) => V(e);
307
+ const ae = (e, o, t) => {
308
+ var n;
309
+ return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
310
+ };
311
+ ae.autoRemove = (e) => V(e);
312
+ const ge = (e, o, t) => {
313
+ var n;
314
+ return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
315
+ };
316
+ ge.autoRemove = (e) => V(e) || !(e != null && e.length);
317
+ const de = (e, o, t) => !t.some((n) => {
318
+ var r;
319
+ return !((r = e.getValue(o)) != null && r.includes(n));
320
+ });
321
+ de.autoRemove = (e) => V(e) || !(e != null && e.length);
322
+ const fe = (e, o, t) => t.some((n) => {
323
+ var r;
324
+ return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
325
+ });
326
+ fe.autoRemove = (e) => V(e) || !(e != null && e.length);
327
+ const ce = (e, o, t) => e.getValue(o) === t;
328
+ ce.autoRemove = (e) => V(e);
329
+ const pe = (e, o, t) => e.getValue(o) == t;
330
+ pe.autoRemove = (e) => V(e);
331
+ const b = (e, o, t) => {
332
+ let [n, r] = t;
333
+ const i = e.getValue(o);
334
+ return i >= n && i <= r;
335
+ };
336
+ b.resolveFilterValue = (e) => {
337
+ let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n, l = t === null || Number.isNaN(r) ? 1 / 0 : r;
338
+ if (i > l) {
339
+ const u = i;
340
+ i = l, l = u;
341
+ }
342
+ return [i, l];
343
+ };
344
+ b.autoRemove = (e) => V(e) || V(e[0]) && V(e[1]);
345
+ const M = {
346
+ includesString: se,
347
+ includesStringSensitive: ue,
348
+ equalsString: ae,
349
+ arrIncludes: ge,
350
+ arrIncludesAll: de,
351
+ arrIncludesSome: fe,
352
+ equals: ce,
353
+ weakEquals: pe,
354
+ inNumberRange: b
355
+ };
356
+ function V(e) {
357
+ return e == null || e === "";
358
+ }
359
+ const Ie = {
360
+ getDefaultColumnDef: () => ({
361
+ filterFn: "auto"
362
+ }),
363
+ getInitialState: (e) => ({
364
+ columnFilters: [],
365
+ ...e
366
+ }),
367
+ getDefaultOptions: (e) => ({
368
+ onColumnFiltersChange: $("columnFilters", e),
369
+ filterFromLeafRows: !1,
370
+ maxLeafRowFilterDepth: 100
371
+ }),
372
+ createColumn: (e, o) => {
373
+ e.getAutoFilterFn = () => {
374
+ const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
375
+ return typeof n == "string" ? M.includesString : typeof n == "number" ? M.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? M.equals : Array.isArray(n) ? M.arrIncludes : M.weakEquals;
376
+ }, e.getFilterFn = () => {
377
+ var t, n;
378
+ return O(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
379
+ // @ts-ignore
380
+ (t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : M[e.columnDef.filterFn]
381
+ );
382
+ }, e.getCanFilter = () => {
383
+ var t, n, r;
384
+ return ((t = e.columnDef.enableColumnFilter) != null ? t : !0) && ((n = o.options.enableColumnFilters) != null ? n : !0) && ((r = o.options.enableFilters) != null ? r : !0) && !!e.accessorFn;
385
+ }, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
386
+ var t;
387
+ return (t = o.getState().columnFilters) == null || (t = t.find((n) => n.id === e.id)) == null ? void 0 : t.value;
388
+ }, e.getFilterIndex = () => {
389
+ var t, n;
390
+ return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
391
+ }, e.setFilterValue = (t) => {
392
+ o.setColumnFilters((n) => {
393
+ const r = e.getFilterFn(), i = n == null ? void 0 : n.find((f) => f.id === e.id), l = x(t, i ? i.value : void 0);
394
+ if (le(r, l, e)) {
395
+ var u;
396
+ return (u = n == null ? void 0 : n.filter((f) => f.id !== e.id)) != null ? u : [];
397
+ }
398
+ const a = {
399
+ id: e.id,
400
+ value: l
401
+ };
402
+ if (i) {
403
+ var g;
404
+ return (g = n == null ? void 0 : n.map((f) => f.id === e.id ? a : f)) != null ? g : [];
405
+ }
406
+ return n != null && n.length ? [...n, a] : [a];
407
+ });
408
+ };
409
+ },
410
+ createRow: (e, o) => {
411
+ e.columnFilters = {}, e.columnFiltersMeta = {};
412
+ },
413
+ createTable: (e) => {
414
+ e.setColumnFilters = (o) => {
415
+ const t = e.getAllLeafColumns(), n = (r) => {
416
+ var i;
417
+ return (i = x(o, r)) == null ? void 0 : i.filter((l) => {
418
+ const u = t.find((a) => a.id === l.id);
419
+ if (u) {
420
+ const a = u.getFilterFn();
421
+ if (le(a, l.value, u))
422
+ return !1;
423
+ }
424
+ return !0;
425
+ });
426
+ };
427
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange(n);
428
+ }, e.resetColumnFilters = (o) => {
429
+ var t, n;
430
+ e.setColumnFilters(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.columnFilters) != null ? t : []);
431
+ }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
432
+ }
433
+ };
434
+ function le(e, o, t) {
435
+ return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
436
+ }
437
+ const ye = (e, o, t) => t.reduce((n, r) => {
438
+ const i = r.getValue(e);
439
+ return n + (typeof i == "number" ? i : 0);
440
+ }, 0), De = (e, o, t) => {
441
+ let n;
442
+ return t.forEach((r) => {
443
+ const i = r.getValue(e);
444
+ i != null && (n > i || n === void 0 && i >= i) && (n = i);
445
+ }), n;
446
+ }, Ee = (e, o, t) => {
447
+ let n;
448
+ return t.forEach((r) => {
449
+ const i = r.getValue(e);
450
+ i != null && (n < i || n === void 0 && i >= i) && (n = i);
451
+ }), n;
452
+ }, Ge = (e, o, t) => {
453
+ let n, r;
454
+ return t.forEach((i) => {
455
+ const l = i.getValue(e);
456
+ l != null && (n === void 0 ? l >= l && (n = r = l) : (n > l && (n = l), r < l && (r = l)));
457
+ }), [n, r];
458
+ }, He = (e, o) => {
459
+ let t = 0, n = 0;
460
+ if (o.forEach((r) => {
461
+ let i = r.getValue(e);
462
+ i != null && (i = +i) >= i && (++t, n += i);
463
+ }), t) return n / t;
464
+ }, Ae = (e, o) => {
465
+ if (!o.length)
466
+ return;
467
+ const t = o.map((i) => i.getValue(e));
468
+ if (!Fe(t))
469
+ return;
470
+ if (t.length === 1)
471
+ return t[0];
472
+ const n = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
473
+ return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
474
+ }, Le = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), ze = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Oe = (e, o) => o.length, B = {
475
+ sum: ye,
476
+ min: De,
477
+ max: Ee,
478
+ extent: Ge,
479
+ mean: He,
480
+ median: Ae,
481
+ unique: Le,
482
+ uniqueCount: ze,
483
+ count: Oe
484
+ }, Be = {
485
+ getDefaultColumnDef: () => ({
486
+ aggregatedCell: (e) => {
487
+ var o, t;
488
+ return (o = (t = e.getValue()) == null || t.toString == null ? void 0 : t.toString()) != null ? o : null;
489
+ },
490
+ aggregationFn: "auto"
491
+ }),
492
+ getInitialState: (e) => ({
493
+ grouping: [],
494
+ ...e
495
+ }),
496
+ getDefaultOptions: (e) => ({
497
+ onGroupingChange: $("grouping", e),
498
+ groupedColumnMode: "reorder"
499
+ }),
500
+ createColumn: (e, o) => {
501
+ e.toggleGrouping = () => {
502
+ o.setGrouping((t) => t != null && t.includes(e.id) ? t.filter((n) => n !== e.id) : [...t ?? [], e.id]);
503
+ }, e.getCanGroup = () => {
504
+ var t, n;
505
+ return ((t = e.columnDef.enableGrouping) != null ? t : !0) && ((n = o.options.enableGrouping) != null ? n : !0) && (!!e.accessorFn || !!e.columnDef.getGroupingValue);
506
+ }, e.getIsGrouped = () => {
507
+ var t;
508
+ return (t = o.getState().grouping) == null ? void 0 : t.includes(e.id);
509
+ }, e.getGroupedIndex = () => {
510
+ var t;
511
+ return (t = o.getState().grouping) == null ? void 0 : t.indexOf(e.id);
512
+ }, e.getToggleGroupingHandler = () => {
513
+ const t = e.getCanGroup();
514
+ return () => {
515
+ t && e.toggleGrouping();
516
+ };
517
+ }, e.getAutoAggregationFn = () => {
518
+ const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
519
+ if (typeof n == "number")
520
+ return B.sum;
521
+ if (Object.prototype.toString.call(n) === "[object Date]")
522
+ return B.extent;
523
+ }, e.getAggregationFn = () => {
524
+ var t, n;
525
+ if (!e)
526
+ throw new Error();
527
+ return O(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : B[e.columnDef.aggregationFn];
528
+ };
529
+ },
530
+ createTable: (e) => {
531
+ e.setGrouping = (o) => e.options.onGroupingChange == null ? void 0 : e.options.onGroupingChange(o), e.resetGrouping = (o) => {
532
+ var t, n;
533
+ e.setGrouping(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.grouping) != null ? t : []);
534
+ }, e.getPreGroupedRowModel = () => e.getFilteredRowModel(), e.getGroupedRowModel = () => (!e._getGroupedRowModel && e.options.getGroupedRowModel && (e._getGroupedRowModel = e.options.getGroupedRowModel(e)), e.options.manualGrouping || !e._getGroupedRowModel ? e.getPreGroupedRowModel() : e._getGroupedRowModel());
535
+ },
536
+ createRow: (e, o) => {
537
+ e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (t) => {
538
+ if (e._groupingValuesCache.hasOwnProperty(t))
539
+ return e._groupingValuesCache[t];
540
+ const n = o.getColumn(t);
541
+ return n != null && n.columnDef.getGroupingValue ? (e._groupingValuesCache[t] = n.columnDef.getGroupingValue(e.original), e._groupingValuesCache[t]) : e.getValue(t);
542
+ }, e._groupingValuesCache = {};
543
+ },
544
+ createCell: (e, o, t, n) => {
545
+ e.getIsGrouped = () => o.getIsGrouped() && o.id === t.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && o.getIsGrouped(), e.getIsAggregated = () => {
546
+ var r;
547
+ return !e.getIsGrouped() && !e.getIsPlaceholder() && !!((r = t.subRows) != null && r.length);
548
+ };
549
+ }
550
+ };
551
+ function Te(e, o, t) {
552
+ if (!(o != null && o.length) || !t)
553
+ return e;
554
+ const n = e.filter((i) => !o.includes(i.id));
555
+ return t === "remove" ? n : [...o.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...n];
556
+ }
557
+ const qe = {
558
+ getInitialState: (e) => ({
559
+ columnOrder: [],
560
+ ...e
561
+ }),
562
+ getDefaultOptions: (e) => ({
563
+ onColumnOrderChange: $("columnOrder", e)
564
+ }),
565
+ createColumn: (e, o) => {
566
+ e.getIndex = m((t) => [E(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns")), e.getIsFirstColumn = (t) => {
567
+ var n;
568
+ return ((n = E(o, t)[0]) == null ? void 0 : n.id) === e.id;
569
+ }, e.getIsLastColumn = (t) => {
570
+ var n;
571
+ const r = E(o, t);
572
+ return ((n = r[r.length - 1]) == null ? void 0 : n.id) === e.id;
573
+ };
574
+ },
575
+ createTable: (e) => {
576
+ e.setColumnOrder = (o) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(o), e.resetColumnOrder = (o) => {
577
+ var t;
578
+ e.setColumnOrder(o ? [] : (t = e.initialState.columnOrder) != null ? t : []);
579
+ }, e._getOrderColumnsFn = m(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (r) => {
580
+ let i = [];
581
+ if (!(o != null && o.length))
582
+ i = r;
583
+ else {
584
+ const l = [...o], u = [...r];
585
+ for (; u.length && l.length; ) {
586
+ const a = l.shift(), g = u.findIndex((f) => f.id === a);
587
+ g > -1 && i.push(u.splice(g, 1)[0]);
588
+ }
589
+ i = [...i, ...u];
590
+ }
591
+ return Te(i, t, n);
592
+ }, C(e.options, "debugTable"));
593
+ }
594
+ }, T = () => ({
595
+ left: [],
596
+ right: []
597
+ }), ke = {
598
+ getInitialState: (e) => ({
599
+ columnPinning: T(),
600
+ ...e
601
+ }),
602
+ getDefaultOptions: (e) => ({
603
+ onColumnPinningChange: $("columnPinning", e)
604
+ }),
605
+ createColumn: (e, o) => {
606
+ e.pin = (t) => {
607
+ const n = e.getLeafColumns().map((r) => r.id).filter(Boolean);
608
+ o.setColumnPinning((r) => {
609
+ var i, l;
610
+ if (t === "right") {
611
+ var u, a;
612
+ return {
613
+ left: ((u = r == null ? void 0 : r.left) != null ? u : []).filter((S) => !(n != null && n.includes(S))),
614
+ right: [...((a = r == null ? void 0 : r.right) != null ? a : []).filter((S) => !(n != null && n.includes(S))), ...n]
615
+ };
616
+ }
617
+ if (t === "left") {
618
+ var g, f;
619
+ return {
620
+ left: [...((g = r == null ? void 0 : r.left) != null ? g : []).filter((S) => !(n != null && n.includes(S))), ...n],
621
+ right: ((f = r == null ? void 0 : r.right) != null ? f : []).filter((S) => !(n != null && n.includes(S)))
622
+ };
623
+ }
624
+ return {
625
+ left: ((i = r == null ? void 0 : r.left) != null ? i : []).filter((S) => !(n != null && n.includes(S))),
626
+ right: ((l = r == null ? void 0 : r.right) != null ? l : []).filter((S) => !(n != null && n.includes(S)))
627
+ };
628
+ });
629
+ }, e.getCanPin = () => e.getLeafColumns().some((n) => {
630
+ var r, i, l;
631
+ return ((r = n.columnDef.enablePinning) != null ? r : !0) && ((i = (l = o.options.enableColumnPinning) != null ? l : o.options.enablePinning) != null ? i : !0);
632
+ }), e.getIsPinned = () => {
633
+ const t = e.getLeafColumns().map((u) => u.id), {
634
+ left: n,
635
+ right: r
636
+ } = o.getState().columnPinning, i = t.some((u) => n == null ? void 0 : n.includes(u)), l = t.some((u) => r == null ? void 0 : r.includes(u));
637
+ return i ? "left" : l ? "right" : !1;
638
+ }, e.getPinnedIndex = () => {
639
+ var t, n;
640
+ const r = e.getIsPinned();
641
+ return r ? (t = (n = o.getState().columnPinning) == null || (n = n[r]) == null ? void 0 : n.indexOf(e.id)) != null ? t : -1 : 0;
642
+ };
643
+ },
644
+ createRow: (e, o) => {
645
+ e.getCenterVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
646
+ const i = [...n ?? [], ...r ?? []];
647
+ return t.filter((l) => !i.includes(l.column.id));
648
+ }, C(o.options, "debugRows")), e.getLeftVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
649
+ ...i,
650
+ position: "left"
651
+ })), C(o.options, "debugRows")), e.getRightVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
652
+ ...i,
653
+ position: "right"
654
+ })), C(o.options, "debugRows"));
655
+ },
656
+ createTable: (e) => {
657
+ e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
658
+ var t, n;
659
+ return e.setColumnPinning(o ? T() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : T());
660
+ }, e.getIsSomeColumnsPinned = (o) => {
661
+ var t;
662
+ const n = e.getState().columnPinning;
663
+ if (!o) {
664
+ var r, i;
665
+ return !!((r = n.left) != null && r.length || (i = n.right) != null && i.length);
666
+ }
667
+ return !!((t = n[o]) != null && t.length);
668
+ }, e.getLeftLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns")), e.getRightLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns")), e.getCenterLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
669
+ const r = [...t ?? [], ...n ?? []];
670
+ return o.filter((i) => !r.includes(i.id));
671
+ }, C(e.options, "debugColumns"));
672
+ }
673
+ }, H = {
674
+ size: 150,
675
+ minSize: 20,
676
+ maxSize: Number.MAX_SAFE_INTEGER
677
+ }, q = () => ({
678
+ startOffset: null,
679
+ startSize: null,
680
+ deltaOffset: null,
681
+ deltaPercentage: null,
682
+ isResizingColumn: !1,
683
+ columnSizingStart: []
684
+ }), Ne = {
685
+ getDefaultColumnDef: () => H,
686
+ getInitialState: (e) => ({
687
+ columnSizing: {},
688
+ columnSizingInfo: q(),
689
+ ...e
690
+ }),
691
+ getDefaultOptions: (e) => ({
692
+ columnResizeMode: "onEnd",
693
+ columnResizeDirection: "ltr",
694
+ onColumnSizingChange: $("columnSizing", e),
695
+ onColumnSizingInfoChange: $("columnSizingInfo", e)
696
+ }),
697
+ createColumn: (e, o) => {
698
+ e.getSize = () => {
699
+ var t, n, r;
700
+ const i = o.getState().columnSizing[e.id];
701
+ return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : H.minSize, (n = i ?? e.columnDef.size) != null ? n : H.size), (r = e.columnDef.maxSize) != null ? r : H.maxSize);
702
+ }, e.getStart = m((t) => [t, E(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns")), e.getAfter = m((t) => [t, E(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns")), e.resetSize = () => {
703
+ o.setColumnSizing((t) => {
704
+ let {
705
+ [e.id]: n,
706
+ ...r
707
+ } = t;
708
+ return r;
709
+ });
710
+ }, e.getCanResize = () => {
711
+ var t, n;
712
+ return ((t = e.columnDef.enableResizing) != null ? t : !0) && ((n = o.options.enableColumnResizing) != null ? n : !0);
713
+ }, e.getIsResizing = () => o.getState().columnSizingInfo.isResizingColumn === e.id;
714
+ },
715
+ createHeader: (e, o) => {
716
+ e.getSize = () => {
717
+ let t = 0;
718
+ const n = (r) => {
719
+ if (r.subHeaders.length)
720
+ r.subHeaders.forEach(n);
721
+ else {
722
+ var i;
723
+ t += (i = r.column.getSize()) != null ? i : 0;
724
+ }
725
+ };
726
+ return n(e), t;
727
+ }, e.getStart = () => {
728
+ if (e.index > 0) {
729
+ const t = e.headerGroup.headers[e.index - 1];
730
+ return t.getStart() + t.getSize();
731
+ }
732
+ return 0;
733
+ }, e.getResizeHandler = (t) => {
734
+ const n = o.getColumn(e.column.id), r = n == null ? void 0 : n.getCanResize();
735
+ return (i) => {
736
+ if (!n || !r || (i.persist == null || i.persist(), k(i) && i.touches && i.touches.length > 1))
737
+ return;
738
+ const l = e.getSize(), u = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[n.id, n.getSize()]], a = k(i) ? Math.round(i.touches[0].clientX) : i.clientX, g = {}, f = (w, v) => {
739
+ typeof v == "number" && (o.setColumnSizingInfo((h) => {
740
+ var P, F;
741
+ const y = o.options.columnResizeDirection === "rtl" ? -1 : 1, ne = (v - ((P = h == null ? void 0 : h.startOffset) != null ? P : 0)) * y, oe = Math.max(ne / ((F = h == null ? void 0 : h.startSize) != null ? F : 0), -0.999999);
742
+ return h.columnSizingStart.forEach((me) => {
743
+ let [Ce, re] = me;
744
+ g[Ce] = Math.round(Math.max(re + re * oe, 0) * 100) / 100;
745
+ }), {
746
+ ...h,
747
+ deltaOffset: ne,
748
+ deltaPercentage: oe
749
+ };
750
+ }), (o.options.columnResizeMode === "onChange" || w === "end") && o.setColumnSizing((h) => ({
751
+ ...h,
752
+ ...g
753
+ })));
754
+ }, S = (w) => f("move", w), d = (w) => {
755
+ f("end", w), o.setColumnSizingInfo((v) => ({
756
+ ...v,
757
+ isResizingColumn: !1,
758
+ startOffset: null,
759
+ startSize: null,
760
+ deltaOffset: null,
761
+ deltaPercentage: null,
762
+ columnSizingStart: []
763
+ }));
764
+ }, s = t || typeof document < "u" ? document : null, c = {
765
+ moveHandler: (w) => S(w.clientX),
766
+ upHandler: (w) => {
767
+ s == null || s.removeEventListener("mousemove", c.moveHandler), s == null || s.removeEventListener("mouseup", c.upHandler), d(w.clientX);
768
+ }
769
+ }, p = {
770
+ moveHandler: (w) => (w.cancelable && (w.preventDefault(), w.stopPropagation()), S(w.touches[0].clientX), !1),
771
+ upHandler: (w) => {
772
+ var v;
773
+ s == null || s.removeEventListener("touchmove", p.moveHandler), s == null || s.removeEventListener("touchend", p.upHandler), w.cancelable && (w.preventDefault(), w.stopPropagation()), d((v = w.touches[0]) == null ? void 0 : v.clientX);
774
+ }
775
+ }, R = je() ? {
776
+ passive: !1
777
+ } : !1;
778
+ k(i) ? (s == null || s.addEventListener("touchmove", p.moveHandler, R), s == null || s.addEventListener("touchend", p.upHandler, R)) : (s == null || s.addEventListener("mousemove", c.moveHandler, R), s == null || s.addEventListener("mouseup", c.upHandler, R)), o.setColumnSizingInfo((w) => ({
779
+ ...w,
780
+ startOffset: a,
781
+ startSize: l,
782
+ deltaOffset: 0,
783
+ deltaPercentage: 0,
784
+ columnSizingStart: u,
785
+ isResizingColumn: n.id
786
+ }));
787
+ };
788
+ };
789
+ },
790
+ createTable: (e) => {
791
+ e.setColumnSizing = (o) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(o), e.setColumnSizingInfo = (o) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(o), e.resetColumnSizing = (o) => {
792
+ var t;
793
+ e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
794
+ }, e.resetHeaderSizeInfo = (o) => {
795
+ var t;
796
+ e.setColumnSizingInfo(o ? q() : (t = e.initialState.columnSizingInfo) != null ? t : q());
797
+ }, e.getTotalSize = () => {
798
+ var o, t;
799
+ return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
800
+ }, e.getLeftTotalSize = () => {
801
+ var o, t;
802
+ return (o = (t = e.getLeftHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
803
+ }, e.getCenterTotalSize = () => {
804
+ var o, t;
805
+ return (o = (t = e.getCenterHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
806
+ }, e.getRightTotalSize = () => {
807
+ var o, t;
808
+ return (o = (t = e.getRightHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
809
+ };
810
+ }
811
+ };
812
+ let A = null;
813
+ function je() {
814
+ if (typeof A == "boolean") return A;
815
+ let e = !1;
816
+ try {
817
+ const o = {
818
+ get passive() {
819
+ return e = !0, !1;
820
+ }
821
+ }, t = () => {
822
+ };
823
+ window.addEventListener("test", t, o), window.removeEventListener("test", t);
824
+ } catch {
825
+ e = !1;
826
+ }
827
+ return A = e, A;
828
+ }
829
+ function k(e) {
830
+ return e.type === "touchstart";
831
+ }
832
+ const Ue = {
833
+ getInitialState: (e) => ({
834
+ columnVisibility: {},
835
+ ...e
836
+ }),
837
+ getDefaultOptions: (e) => ({
838
+ onColumnVisibilityChange: $("columnVisibility", e)
839
+ }),
840
+ createColumn: (e, o) => {
841
+ e.toggleVisibility = (t) => {
842
+ e.getCanHide() && o.setColumnVisibility((n) => ({
843
+ ...n,
844
+ [e.id]: t ?? !e.getIsVisible()
845
+ }));
846
+ }, e.getIsVisible = () => {
847
+ var t, n;
848
+ const r = e.columns;
849
+ return (t = r.length ? r.some((i) => i.getIsVisible()) : (n = o.getState().columnVisibility) == null ? void 0 : n[e.id]) != null ? t : !0;
850
+ }, e.getCanHide = () => {
851
+ var t, n;
852
+ return ((t = e.columnDef.enableHiding) != null ? t : !0) && ((n = o.options.enableHiding) != null ? n : !0);
853
+ }, e.getToggleVisibilityHandler = () => (t) => {
854
+ e.toggleVisibility == null || e.toggleVisibility(t.target.checked);
855
+ };
856
+ },
857
+ createRow: (e, o) => {
858
+ e._getAllVisibleCells = m(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), C(o.options, "debugRows")), e.getVisibleCells = m(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, r) => [...t, ...n, ...r], C(o.options, "debugRows"));
859
+ },
860
+ createTable: (e) => {
861
+ const o = (t, n) => m(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), C(e.options, "debugColumns"));
862
+ e.getVisibleFlatColumns = o("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = o("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = o("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = o("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = o("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
863
+ var n;
864
+ e.setColumnVisibility(t ? {} : (n = e.initialState.columnVisibility) != null ? n : {});
865
+ }, e.toggleAllColumnsVisible = (t) => {
866
+ var n;
867
+ t = (n = t) != null ? n : !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((r, i) => ({
868
+ ...r,
869
+ [i.id]: t || !(i.getCanHide != null && i.getCanHide())
870
+ }), {}));
871
+ }, e.getIsAllColumnsVisible = () => !e.getAllLeafColumns().some((t) => !(t.getIsVisible != null && t.getIsVisible())), e.getIsSomeColumnsVisible = () => e.getAllLeafColumns().some((t) => t.getIsVisible == null ? void 0 : t.getIsVisible()), e.getToggleAllColumnsVisibilityHandler = () => (t) => {
872
+ var n;
873
+ e.toggleAllColumnsVisible((n = t.target) == null ? void 0 : n.checked);
874
+ };
875
+ }
876
+ };
877
+ function E(e, o) {
878
+ return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
879
+ }
880
+ const Xe = {
881
+ createTable: (e) => {
882
+ e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
883
+ if (e._getGlobalFacetedMinMaxValues)
884
+ return e._getGlobalFacetedMinMaxValues();
885
+ };
886
+ }
887
+ }, Ke = {
888
+ getInitialState: (e) => ({
889
+ globalFilter: void 0,
890
+ ...e
891
+ }),
892
+ getDefaultOptions: (e) => ({
893
+ onGlobalFilterChange: $("globalFilter", e),
894
+ globalFilterFn: "auto",
895
+ getColumnCanGlobalFilter: (o) => {
896
+ var t;
897
+ const n = (t = e.getCoreRowModel().flatRows[0]) == null || (t = t._getAllCellsByColumnId()[o.id]) == null ? void 0 : t.getValue();
898
+ return typeof n == "string" || typeof n == "number";
899
+ }
900
+ }),
901
+ createColumn: (e, o) => {
902
+ e.getCanGlobalFilter = () => {
903
+ var t, n, r, i;
904
+ return ((t = e.columnDef.enableGlobalFilter) != null ? t : !0) && ((n = o.options.enableGlobalFilter) != null ? n : !0) && ((r = o.options.enableFilters) != null ? r : !0) && ((i = o.options.getColumnCanGlobalFilter == null ? void 0 : o.options.getColumnCanGlobalFilter(e)) != null ? i : !0) && !!e.accessorFn;
905
+ };
906
+ },
907
+ createTable: (e) => {
908
+ e.getGlobalAutoFilterFn = () => M.includesString, e.getGlobalFilterFn = () => {
909
+ var o, t;
910
+ const {
911
+ globalFilterFn: n
912
+ } = e.options;
913
+ return O(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : M[n];
914
+ }, e.setGlobalFilter = (o) => {
915
+ e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
916
+ }, e.resetGlobalFilter = (o) => {
917
+ e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
918
+ };
919
+ }
920
+ }, Ye = {
921
+ getInitialState: (e) => ({
922
+ expanded: {},
923
+ ...e
924
+ }),
925
+ getDefaultOptions: (e) => ({
926
+ onExpandedChange: $("expanded", e),
927
+ paginateExpandedRows: !0
928
+ }),
929
+ createTable: (e) => {
930
+ let o = !1, t = !1;
931
+ e._autoResetExpanded = () => {
932
+ var n, r;
933
+ if (!o) {
934
+ e._queue(() => {
935
+ o = !0;
936
+ });
937
+ return;
938
+ }
939
+ if ((n = (r = e.options.autoResetAll) != null ? r : e.options.autoResetExpanded) != null ? n : !e.options.manualExpanding) {
940
+ if (t) return;
941
+ t = !0, e._queue(() => {
942
+ e.resetExpanded(), t = !1;
943
+ });
944
+ }
945
+ }, e.setExpanded = (n) => e.options.onExpandedChange == null ? void 0 : e.options.onExpandedChange(n), e.toggleAllRowsExpanded = (n) => {
946
+ n ?? !e.getIsAllRowsExpanded() ? e.setExpanded(!0) : e.setExpanded({});
947
+ }, e.resetExpanded = (n) => {
948
+ var r, i;
949
+ e.setExpanded(n ? {} : (r = (i = e.initialState) == null ? void 0 : i.expanded) != null ? r : {});
950
+ }, e.getCanSomeRowsExpand = () => e.getPrePaginationRowModel().flatRows.some((n) => n.getCanExpand()), e.getToggleAllRowsExpandedHandler = () => (n) => {
951
+ n.persist == null || n.persist(), e.toggleAllRowsExpanded();
952
+ }, e.getIsSomeRowsExpanded = () => {
953
+ const n = e.getState().expanded;
954
+ return n === !0 || Object.values(n).some(Boolean);
955
+ }, e.getIsAllRowsExpanded = () => {
956
+ const n = e.getState().expanded;
957
+ return typeof n == "boolean" ? n === !0 : !(!Object.keys(n).length || e.getRowModel().flatRows.some((r) => !r.getIsExpanded()));
958
+ }, e.getExpandedDepth = () => {
959
+ let n = 0;
960
+ return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((i) => {
961
+ const l = i.split(".");
962
+ n = Math.max(n, l.length);
963
+ }), n;
964
+ }, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
965
+ },
966
+ createRow: (e, o) => {
967
+ e.toggleExpanded = (t) => {
968
+ o.setExpanded((n) => {
969
+ var r;
970
+ const i = n === !0 ? !0 : !!(n != null && n[e.id]);
971
+ let l = {};
972
+ if (n === !0 ? Object.keys(o.getRowModel().rowsById).forEach((u) => {
973
+ l[u] = !0;
974
+ }) : l = n, t = (r = t) != null ? r : !i, !i && t)
975
+ return {
976
+ ...l,
977
+ [e.id]: !0
978
+ };
979
+ if (i && !t) {
980
+ const {
981
+ [e.id]: u,
982
+ ...a
983
+ } = l;
984
+ return a;
985
+ }
986
+ return n;
987
+ });
988
+ }, e.getIsExpanded = () => {
989
+ var t;
990
+ const n = o.getState().expanded;
991
+ return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n != null && n[e.id]);
992
+ }, e.getCanExpand = () => {
993
+ var t, n, r;
994
+ return (t = o.options.getRowCanExpand == null ? void 0 : o.options.getRowCanExpand(e)) != null ? t : ((n = o.options.enableExpanding) != null ? n : !0) && !!((r = e.subRows) != null && r.length);
995
+ }, e.getIsAllParentsExpanded = () => {
996
+ let t = !0, n = e;
997
+ for (; t && n.parentId; )
998
+ n = o.getRow(n.parentId, !0), t = n.getIsExpanded();
999
+ return t;
1000
+ }, e.getToggleExpandedHandler = () => {
1001
+ const t = e.getCanExpand();
1002
+ return () => {
1003
+ t && e.toggleExpanded();
1004
+ };
1005
+ };
1006
+ }
1007
+ }, K = 0, Y = 10, N = () => ({
1008
+ pageIndex: K,
1009
+ pageSize: Y
1010
+ }), Je = {
1011
+ getInitialState: (e) => ({
1012
+ ...e,
1013
+ pagination: {
1014
+ ...N(),
1015
+ ...e == null ? void 0 : e.pagination
1016
+ }
1017
+ }),
1018
+ getDefaultOptions: (e) => ({
1019
+ onPaginationChange: $("pagination", e)
1020
+ }),
1021
+ createTable: (e) => {
1022
+ let o = !1, t = !1;
1023
+ e._autoResetPageIndex = () => {
1024
+ var n, r;
1025
+ if (!o) {
1026
+ e._queue(() => {
1027
+ o = !0;
1028
+ });
1029
+ return;
1030
+ }
1031
+ if ((n = (r = e.options.autoResetAll) != null ? r : e.options.autoResetPageIndex) != null ? n : !e.options.manualPagination) {
1032
+ if (t) return;
1033
+ t = !0, e._queue(() => {
1034
+ e.resetPageIndex(), t = !1;
1035
+ });
1036
+ }
1037
+ }, e.setPagination = (n) => {
1038
+ const r = (i) => x(n, i);
1039
+ return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
1040
+ }, e.resetPagination = (n) => {
1041
+ var r;
1042
+ e.setPagination(n ? N() : (r = e.initialState.pagination) != null ? r : N());
1043
+ }, e.setPageIndex = (n) => {
1044
+ e.setPagination((r) => {
1045
+ let i = x(n, r.pageIndex);
1046
+ const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
1047
+ return i = Math.max(0, Math.min(i, l)), {
1048
+ ...r,
1049
+ pageIndex: i
1050
+ };
1051
+ });
1052
+ }, e.resetPageIndex = (n) => {
1053
+ var r, i;
1054
+ e.setPageIndex(n ? K : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : K);
1055
+ }, e.resetPageSize = (n) => {
1056
+ var r, i;
1057
+ e.setPageSize(n ? Y : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : Y);
1058
+ }, e.setPageSize = (n) => {
1059
+ e.setPagination((r) => {
1060
+ const i = Math.max(1, x(n, r.pageSize)), l = r.pageSize * r.pageIndex, u = Math.floor(l / i);
1061
+ return {
1062
+ ...r,
1063
+ pageIndex: u,
1064
+ pageSize: i
1065
+ };
1066
+ });
1067
+ }, e.setPageCount = (n) => e.setPagination((r) => {
1068
+ var i;
1069
+ let l = x(n, (i = e.options.pageCount) != null ? i : -1);
1070
+ return typeof l == "number" && (l = Math.max(-1, l)), {
1071
+ ...r,
1072
+ pageCount: l
1073
+ };
1074
+ }), e.getPageOptions = m(() => [e.getPageCount()], (n) => {
1075
+ let r = [];
1076
+ return n && n > 0 && (r = [...new Array(n)].fill(null).map((i, l) => l)), r;
1077
+ }, C(e.options, "debugTable")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
1078
+ const {
1079
+ pageIndex: n
1080
+ } = e.getState().pagination, r = e.getPageCount();
1081
+ return r === -1 ? !0 : r === 0 ? !1 : n < r - 1;
1082
+ }, e.previousPage = () => e.setPageIndex((n) => n - 1), e.nextPage = () => e.setPageIndex((n) => n + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => {
1083
+ var n;
1084
+ return (n = e.options.pageCount) != null ? n : Math.ceil(e.getRowCount() / e.getState().pagination.pageSize);
1085
+ }, e.getRowCount = () => {
1086
+ var n;
1087
+ return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
1088
+ };
1089
+ }
1090
+ }, j = () => ({
1091
+ top: [],
1092
+ bottom: []
1093
+ }), Qe = {
1094
+ getInitialState: (e) => ({
1095
+ rowPinning: j(),
1096
+ ...e
1097
+ }),
1098
+ getDefaultOptions: (e) => ({
1099
+ onRowPinningChange: $("rowPinning", e)
1100
+ }),
1101
+ createRow: (e, o) => {
1102
+ e.pin = (t, n, r) => {
1103
+ const i = n ? e.getLeafRows().map((a) => {
1104
+ let {
1105
+ id: g
1106
+ } = a;
1107
+ return g;
1108
+ }) : [], l = r ? e.getParentRows().map((a) => {
1109
+ let {
1110
+ id: g
1111
+ } = a;
1112
+ return g;
1113
+ }) : [], u = /* @__PURE__ */ new Set([...l, e.id, ...i]);
1114
+ o.setRowPinning((a) => {
1115
+ var g, f;
1116
+ if (t === "bottom") {
1117
+ var S, d;
1118
+ return {
1119
+ top: ((S = a == null ? void 0 : a.top) != null ? S : []).filter((p) => !(u != null && u.has(p))),
1120
+ bottom: [...((d = a == null ? void 0 : a.bottom) != null ? d : []).filter((p) => !(u != null && u.has(p))), ...Array.from(u)]
1121
+ };
1122
+ }
1123
+ if (t === "top") {
1124
+ var s, c;
1125
+ return {
1126
+ top: [...((s = a == null ? void 0 : a.top) != null ? s : []).filter((p) => !(u != null && u.has(p))), ...Array.from(u)],
1127
+ bottom: ((c = a == null ? void 0 : a.bottom) != null ? c : []).filter((p) => !(u != null && u.has(p)))
1128
+ };
1129
+ }
1130
+ return {
1131
+ top: ((g = a == null ? void 0 : a.top) != null ? g : []).filter((p) => !(u != null && u.has(p))),
1132
+ bottom: ((f = a == null ? void 0 : a.bottom) != null ? f : []).filter((p) => !(u != null && u.has(p)))
1133
+ };
1134
+ });
1135
+ }, e.getCanPin = () => {
1136
+ var t;
1137
+ const {
1138
+ enableRowPinning: n,
1139
+ enablePinning: r
1140
+ } = o.options;
1141
+ return typeof n == "function" ? n(e) : (t = n ?? r) != null ? t : !0;
1142
+ }, e.getIsPinned = () => {
1143
+ const t = [e.id], {
1144
+ top: n,
1145
+ bottom: r
1146
+ } = o.getState().rowPinning, i = t.some((u) => n == null ? void 0 : n.includes(u)), l = t.some((u) => r == null ? void 0 : r.includes(u));
1147
+ return i ? "top" : l ? "bottom" : !1;
1148
+ }, e.getPinnedIndex = () => {
1149
+ var t, n;
1150
+ const r = e.getIsPinned();
1151
+ if (!r) return -1;
1152
+ const i = (t = o._getPinnedRows(r)) == null ? void 0 : t.map((l) => {
1153
+ let {
1154
+ id: u
1155
+ } = l;
1156
+ return u;
1157
+ });
1158
+ return (n = i == null ? void 0 : i.indexOf(e.id)) != null ? n : -1;
1159
+ };
1160
+ },
1161
+ createTable: (e) => {
1162
+ e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
1163
+ var t, n;
1164
+ return e.setRowPinning(o ? j() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : j());
1165
+ }, e.getIsSomeRowsPinned = (o) => {
1166
+ var t;
1167
+ const n = e.getState().rowPinning;
1168
+ if (!o) {
1169
+ var r, i;
1170
+ return !!((r = n.top) != null && r.length || (i = n.bottom) != null && i.length);
1171
+ }
1172
+ return !!((t = n[o]) != null && t.length);
1173
+ }, e._getPinnedRows = m((o) => [e.getRowModel().rows, e.getState().rowPinning[o], o], (o, t, n) => {
1174
+ var r;
1175
+ return ((r = e.options.keepPinnedRows) == null || r ? (
1176
+ //get all rows that are pinned even if they would not be otherwise visible
1177
+ //account for expanded parent rows, but not pagination or filtering
1178
+ (t ?? []).map((l) => {
1179
+ const u = e.getRow(l, !0);
1180
+ return u.getIsAllParentsExpanded() ? u : null;
1181
+ })
1182
+ ) : (
1183
+ //else get only visible rows that are pinned
1184
+ (t ?? []).map((l) => o.find((u) => u.id === l))
1185
+ )).filter(Boolean).map((l) => ({
1186
+ ...l,
1187
+ position: n
1188
+ }));
1189
+ }, C(e.options, "debugRows")), e.getTopRows = () => e._getPinnedRows("top"), e.getBottomRows = () => e._getPinnedRows("bottom"), e.getCenterRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
1190
+ const r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
1191
+ return o.filter((i) => !r.has(i.id));
1192
+ }, C(e.options, "debugRows"));
1193
+ }
1194
+ }, We = {
1195
+ getInitialState: (e) => ({
1196
+ rowSelection: {},
1197
+ ...e
1198
+ }),
1199
+ getDefaultOptions: (e) => ({
1200
+ onRowSelectionChange: $("rowSelection", e),
1201
+ enableRowSelection: !0,
1202
+ enableMultiRowSelection: !0,
1203
+ enableSubRowSelection: !0
1204
+ // enableGroupingRowSelection: false,
1205
+ // isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
1206
+ // isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
1207
+ }),
1208
+ createTable: (e) => {
1209
+ e.setRowSelection = (o) => e.options.onRowSelectionChange == null ? void 0 : e.options.onRowSelectionChange(o), e.resetRowSelection = (o) => {
1210
+ var t;
1211
+ return e.setRowSelection(o ? {} : (t = e.initialState.rowSelection) != null ? t : {});
1212
+ }, e.toggleAllRowsSelected = (o) => {
1213
+ e.setRowSelection((t) => {
1214
+ o = typeof o < "u" ? o : !e.getIsAllRowsSelected();
1215
+ const n = {
1216
+ ...t
1217
+ }, r = e.getPreGroupedRowModel().flatRows;
1218
+ return o ? r.forEach((i) => {
1219
+ i.getCanSelect() && (n[i.id] = !0);
1220
+ }) : r.forEach((i) => {
1221
+ delete n[i.id];
1222
+ }), n;
1223
+ });
1224
+ }, e.toggleAllPageRowsSelected = (o) => e.setRowSelection((t) => {
1225
+ const n = typeof o < "u" ? o : !e.getIsAllPageRowsSelected(), r = {
1226
+ ...t
1227
+ };
1228
+ return e.getRowModel().rows.forEach((i) => {
1229
+ J(r, i.id, n, !0, e);
1230
+ }), r;
1231
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? U(e, t) : {
1232
+ rows: [],
1233
+ flatRows: [],
1234
+ rowsById: {}
1235
+ }, C(e.options, "debugTable")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? U(e, t) : {
1236
+ rows: [],
1237
+ flatRows: [],
1238
+ rowsById: {}
1239
+ }, C(e.options, "debugTable")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? U(e, t) : {
1240
+ rows: [],
1241
+ flatRows: [],
1242
+ rowsById: {}
1243
+ }, C(e.options, "debugTable")), e.getIsAllRowsSelected = () => {
1244
+ const o = e.getFilteredRowModel().flatRows, {
1245
+ rowSelection: t
1246
+ } = e.getState();
1247
+ let n = !!(o.length && Object.keys(t).length);
1248
+ return n && o.some((r) => r.getCanSelect() && !t[r.id]) && (n = !1), n;
1249
+ }, e.getIsAllPageRowsSelected = () => {
1250
+ const o = e.getPaginationRowModel().flatRows.filter((r) => r.getCanSelect()), {
1251
+ rowSelection: t
1252
+ } = e.getState();
1253
+ let n = !!o.length;
1254
+ return n && o.some((r) => !t[r.id]) && (n = !1), n;
1255
+ }, e.getIsSomeRowsSelected = () => {
1256
+ var o;
1257
+ const t = Object.keys((o = e.getState().rowSelection) != null ? o : {}).length;
1258
+ return t > 0 && t < e.getFilteredRowModel().flatRows.length;
1259
+ }, e.getIsSomePageRowsSelected = () => {
1260
+ const o = e.getPaginationRowModel().flatRows;
1261
+ return e.getIsAllPageRowsSelected() ? !1 : o.filter((t) => t.getCanSelect()).some((t) => t.getIsSelected() || t.getIsSomeSelected());
1262
+ }, e.getToggleAllRowsSelectedHandler = () => (o) => {
1263
+ e.toggleAllRowsSelected(o.target.checked);
1264
+ }, e.getToggleAllPageRowsSelectedHandler = () => (o) => {
1265
+ e.toggleAllPageRowsSelected(o.target.checked);
1266
+ };
1267
+ },
1268
+ createRow: (e, o) => {
1269
+ e.toggleSelected = (t, n) => {
1270
+ const r = e.getIsSelected();
1271
+ o.setRowSelection((i) => {
1272
+ var l;
1273
+ if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t)
1274
+ return i;
1275
+ const u = {
1276
+ ...i
1277
+ };
1278
+ return J(u, e.id, t, (l = n == null ? void 0 : n.selectChildren) != null ? l : !0, o), u;
1279
+ });
1280
+ }, e.getIsSelected = () => {
1281
+ const {
1282
+ rowSelection: t
1283
+ } = o.getState();
1284
+ return ee(e, t);
1285
+ }, e.getIsSomeSelected = () => {
1286
+ const {
1287
+ rowSelection: t
1288
+ } = o.getState();
1289
+ return Q(e, t) === "some";
1290
+ }, e.getIsAllSubRowsSelected = () => {
1291
+ const {
1292
+ rowSelection: t
1293
+ } = o.getState();
1294
+ return Q(e, t) === "all";
1295
+ }, e.getCanSelect = () => {
1296
+ var t;
1297
+ return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
1298
+ }, e.getCanSelectSubRows = () => {
1299
+ var t;
1300
+ return typeof o.options.enableSubRowSelection == "function" ? o.options.enableSubRowSelection(e) : (t = o.options.enableSubRowSelection) != null ? t : !0;
1301
+ }, e.getCanMultiSelect = () => {
1302
+ var t;
1303
+ return typeof o.options.enableMultiRowSelection == "function" ? o.options.enableMultiRowSelection(e) : (t = o.options.enableMultiRowSelection) != null ? t : !0;
1304
+ }, e.getToggleSelectedHandler = () => {
1305
+ const t = e.getCanSelect();
1306
+ return (n) => {
1307
+ var r;
1308
+ t && e.toggleSelected((r = n.target) == null ? void 0 : r.checked);
1309
+ };
1310
+ };
1311
+ }
1312
+ }, J = (e, o, t, n, r) => {
1313
+ var i;
1314
+ const l = r.getRow(o, !0);
1315
+ t ? (l.getCanMultiSelect() || Object.keys(e).forEach((u) => delete e[u]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((u) => J(e, u.id, t, n, r));
1316
+ };
1317
+ function U(e, o) {
1318
+ const t = e.getState().rowSelection, n = [], r = {}, i = function(l, u) {
1319
+ return l.map((a) => {
1320
+ var g;
1321
+ const f = ee(a, t);
1322
+ if (f && (n.push(a), r[a.id] = a), (g = a.subRows) != null && g.length && (a = {
1323
+ ...a,
1324
+ subRows: i(a.subRows)
1325
+ }), f)
1326
+ return a;
1327
+ }).filter(Boolean);
1328
+ };
1329
+ return {
1330
+ rows: i(o.rows),
1331
+ flatRows: n,
1332
+ rowsById: r
1333
+ };
1334
+ }
1335
+ function ee(e, o) {
1336
+ var t;
1337
+ return (t = o[e.id]) != null ? t : !1;
1338
+ }
1339
+ function Q(e, o, t) {
1340
+ var n;
1341
+ if (!((n = e.subRows) != null && n.length)) return !1;
1342
+ let r = !0, i = !1;
1343
+ return e.subRows.forEach((l) => {
1344
+ if (!(i && !r) && (l.getCanSelect() && (ee(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
1345
+ const u = Q(l, o);
1346
+ u === "all" ? i = !0 : (u === "some" && (i = !0), r = !1);
1347
+ }
1348
+ }), r ? "all" : i ? "some" : !1;
1349
+ }
1350
+ const W = /([0-9]+)/gm, Ze = (e, o, t) => Se(I(e.getValue(t)).toLowerCase(), I(o.getValue(t)).toLowerCase()), be = (e, o, t) => Se(I(e.getValue(t)), I(o.getValue(t))), et = (e, o, t) => te(I(e.getValue(t)).toLowerCase(), I(o.getValue(t)).toLowerCase()), tt = (e, o, t) => te(I(e.getValue(t)), I(o.getValue(t))), nt = (e, o, t) => {
1351
+ const n = e.getValue(t), r = o.getValue(t);
1352
+ return n > r ? 1 : n < r ? -1 : 0;
1353
+ }, ot = (e, o, t) => te(e.getValue(t), o.getValue(t));
1354
+ function te(e, o) {
1355
+ return e === o ? 0 : e > o ? 1 : -1;
1356
+ }
1357
+ function I(e) {
1358
+ return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
1359
+ }
1360
+ function Se(e, o) {
1361
+ const t = e.split(W).filter(Boolean), n = o.split(W).filter(Boolean);
1362
+ for (; t.length && n.length; ) {
1363
+ const r = t.shift(), i = n.shift(), l = parseInt(r, 10), u = parseInt(i, 10), a = [l, u].sort();
1364
+ if (isNaN(a[0])) {
1365
+ if (r > i)
1366
+ return 1;
1367
+ if (i > r)
1368
+ return -1;
1369
+ continue;
1370
+ }
1371
+ if (isNaN(a[1]))
1372
+ return isNaN(l) ? -1 : 1;
1373
+ if (l > u)
1374
+ return 1;
1375
+ if (u > l)
1376
+ return -1;
1377
+ }
1378
+ return t.length - n.length;
1379
+ }
1380
+ const D = {
1381
+ alphanumeric: Ze,
1382
+ alphanumericCaseSensitive: be,
1383
+ text: et,
1384
+ textCaseSensitive: tt,
1385
+ datetime: nt,
1386
+ basic: ot
1387
+ }, rt = {
1388
+ getInitialState: (e) => ({
1389
+ sorting: [],
1390
+ ...e
1391
+ }),
1392
+ getDefaultColumnDef: () => ({
1393
+ sortingFn: "auto",
1394
+ sortUndefined: 1
1395
+ }),
1396
+ getDefaultOptions: (e) => ({
1397
+ onSortingChange: $("sorting", e),
1398
+ isMultiSortEvent: (o) => o.shiftKey
1399
+ }),
1400
+ createColumn: (e, o) => {
1401
+ e.getAutoSortingFn = () => {
1402
+ const t = o.getFilteredRowModel().flatRows.slice(10);
1403
+ let n = !1;
1404
+ for (const r of t) {
1405
+ const i = r == null ? void 0 : r.getValue(e.id);
1406
+ if (Object.prototype.toString.call(i) === "[object Date]")
1407
+ return D.datetime;
1408
+ if (typeof i == "string" && (n = !0, i.split(W).length > 1))
1409
+ return D.alphanumeric;
1410
+ }
1411
+ return n ? D.text : D.basic;
1412
+ }, e.getAutoSortDir = () => {
1413
+ const t = o.getFilteredRowModel().flatRows[0];
1414
+ return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
1415
+ }, e.getSortingFn = () => {
1416
+ var t, n;
1417
+ if (!e)
1418
+ throw new Error();
1419
+ return O(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : D[e.columnDef.sortingFn];
1420
+ }, e.toggleSorting = (t, n) => {
1421
+ const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
1422
+ o.setSorting((l) => {
1423
+ const u = l == null ? void 0 : l.find((s) => s.id === e.id), a = l == null ? void 0 : l.findIndex((s) => s.id === e.id);
1424
+ let g = [], f, S = i ? t : r === "desc";
1425
+ if (l != null && l.length && e.getCanMultiSort() && n ? u ? f = "toggle" : f = "add" : l != null && l.length && a !== l.length - 1 ? f = "replace" : u ? f = "toggle" : f = "replace", f === "toggle" && (i || r || (f = "remove")), f === "add") {
1426
+ var d;
1427
+ g = [...l, {
1428
+ id: e.id,
1429
+ desc: S
1430
+ }], g.splice(0, g.length - ((d = o.options.maxMultiSortColCount) != null ? d : Number.MAX_SAFE_INTEGER));
1431
+ } else f === "toggle" ? g = l.map((s) => s.id === e.id ? {
1432
+ ...s,
1433
+ desc: S
1434
+ } : s) : f === "remove" ? g = l.filter((s) => s.id !== e.id) : g = [{
1435
+ id: e.id,
1436
+ desc: S
1437
+ }];
1438
+ return g;
1439
+ });
1440
+ }, e.getFirstSortDir = () => {
1441
+ var t, n;
1442
+ return ((t = (n = e.columnDef.sortDescFirst) != null ? n : o.options.sortDescFirst) != null ? t : e.getAutoSortDir() === "desc") ? "desc" : "asc";
1443
+ }, e.getNextSortingOrder = (t) => {
1444
+ var n, r;
1445
+ const i = e.getFirstSortDir(), l = e.getIsSorted();
1446
+ return l ? l !== i && ((n = o.options.enableSortingRemoval) == null || n) && // If enableSortRemove, enable in general
1447
+ (!(t && (r = o.options.enableMultiRemove) != null) || r) ? !1 : l === "desc" ? "asc" : "desc" : i;
1448
+ }, e.getCanSort = () => {
1449
+ var t, n;
1450
+ return ((t = e.columnDef.enableSorting) != null ? t : !0) && ((n = o.options.enableSorting) != null ? n : !0) && !!e.accessorFn;
1451
+ }, e.getCanMultiSort = () => {
1452
+ var t, n;
1453
+ return (t = (n = e.columnDef.enableMultiSort) != null ? n : o.options.enableMultiSort) != null ? t : !!e.accessorFn;
1454
+ }, e.getIsSorted = () => {
1455
+ var t;
1456
+ const n = (t = o.getState().sorting) == null ? void 0 : t.find((r) => r.id === e.id);
1457
+ return n ? n.desc ? "desc" : "asc" : !1;
1458
+ }, e.getSortIndex = () => {
1459
+ var t, n;
1460
+ return (t = (n = o.getState().sorting) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
1461
+ }, e.clearSorting = () => {
1462
+ o.setSorting((t) => t != null && t.length ? t.filter((n) => n.id !== e.id) : []);
1463
+ }, e.getToggleSortingHandler = () => {
1464
+ const t = e.getCanSort();
1465
+ return (n) => {
1466
+ t && (n.persist == null || n.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? o.options.isMultiSortEvent == null ? void 0 : o.options.isMultiSortEvent(n) : !1));
1467
+ };
1468
+ };
1469
+ },
1470
+ createTable: (e) => {
1471
+ e.setSorting = (o) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(o), e.resetSorting = (o) => {
1472
+ var t, n;
1473
+ e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
1474
+ }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
1475
+ }
1476
+ }, it = [
1477
+ Me,
1478
+ Ue,
1479
+ qe,
1480
+ ke,
1481
+ xe,
1482
+ Ie,
1483
+ Xe,
1484
+ //depends on ColumnFaceting
1485
+ Ke,
1486
+ //depends on ColumnFiltering
1487
+ rt,
1488
+ Be,
1489
+ //depends on RowSorting
1490
+ Ye,
1491
+ Je,
1492
+ Qe,
1493
+ We,
1494
+ Ne
1495
+ ];
1496
+ function lt(e) {
1497
+ var o, t;
1498
+ const n = [...it, ...(o = e._features) != null ? o : []];
1499
+ let r = {
1500
+ _features: n
1501
+ };
1502
+ const i = r._features.reduce((d, s) => Object.assign(d, s.getDefaultOptions == null ? void 0 : s.getDefaultOptions(r)), {}), l = (d) => r.options.mergeOptions ? r.options.mergeOptions(i, d) : {
1503
+ ...i,
1504
+ ...d
1505
+ };
1506
+ let a = {
1507
+ ...{},
1508
+ ...(t = e.initialState) != null ? t : {}
1509
+ };
1510
+ r._features.forEach((d) => {
1511
+ var s;
1512
+ a = (s = d.getInitialState == null ? void 0 : d.getInitialState(a)) != null ? s : a;
1513
+ });
1514
+ const g = [];
1515
+ let f = !1;
1516
+ const S = {
1517
+ _features: n,
1518
+ options: {
1519
+ ...i,
1520
+ ...e
1521
+ },
1522
+ initialState: a,
1523
+ _queue: (d) => {
1524
+ g.push(d), f || (f = !0, Promise.resolve().then(() => {
1525
+ for (; g.length; )
1526
+ g.shift()();
1527
+ f = !1;
1528
+ }).catch((s) => setTimeout(() => {
1529
+ throw s;
1530
+ })));
1531
+ },
1532
+ reset: () => {
1533
+ r.setState(r.initialState);
1534
+ },
1535
+ setOptions: (d) => {
1536
+ const s = x(d, r.options);
1537
+ r.options = l(s);
1538
+ },
1539
+ getState: () => r.options.state,
1540
+ setState: (d) => {
1541
+ r.options.onStateChange == null || r.options.onStateChange(d);
1542
+ },
1543
+ _getRowId: (d, s, c) => {
1544
+ var p;
1545
+ return (p = r.options.getRowId == null ? void 0 : r.options.getRowId(d, s, c)) != null ? p : `${c ? [c.id, s].join(".") : s}`;
1546
+ },
1547
+ getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
1548
+ // The final calls start at the bottom of the model,
1549
+ // expanded rows, which then work their way up
1550
+ getRowModel: () => r.getPaginationRowModel(),
1551
+ //in next version, we should just pass in the row model as the optional 2nd arg
1552
+ getRow: (d, s) => {
1553
+ let c = (s ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[d];
1554
+ if (!c && (c = r.getCoreRowModel().rowsById[d], !c))
1555
+ throw new Error();
1556
+ return c;
1557
+ },
1558
+ _getDefaultColumnDef: m(() => [r.options.defaultColumn], (d) => {
1559
+ var s;
1560
+ return d = (s = d) != null ? s : {}, {
1561
+ header: (c) => {
1562
+ const p = c.header.column.columnDef;
1563
+ return p.accessorKey ? p.accessorKey : p.accessorFn ? p.id : null;
1564
+ },
1565
+ // footer: props => props.header.column.id,
1566
+ cell: (c) => {
1567
+ var p, R;
1568
+ return (p = (R = c.renderValue()) == null || R.toString == null ? void 0 : R.toString()) != null ? p : null;
1569
+ },
1570
+ ...r._features.reduce((c, p) => Object.assign(c, p.getDefaultColumnDef == null ? void 0 : p.getDefaultColumnDef()), {}),
1571
+ ...d
1572
+ };
1573
+ }, C(e, "debugColumns")),
1574
+ _getColumnDefs: () => r.options.columns,
1575
+ getAllColumns: m(() => [r._getColumnDefs()], (d) => {
1576
+ const s = function(c, p, R) {
1577
+ return R === void 0 && (R = 0), c.map((w) => {
1578
+ const v = Pe(r, w, R, p), h = w;
1579
+ return v.columns = h.columns ? s(h.columns, v, R + 1) : [], v;
1580
+ });
1581
+ };
1582
+ return s(d);
1583
+ }, C(e, "debugColumns")),
1584
+ getAllFlatColumns: m(() => [r.getAllColumns()], (d) => d.flatMap((s) => s.getFlatColumns()), C(e, "debugColumns")),
1585
+ _getAllFlatColumnsById: m(() => [r.getAllFlatColumns()], (d) => d.reduce((s, c) => (s[c.id] = c, s), {}), C(e, "debugColumns")),
1586
+ getAllLeafColumns: m(() => [r.getAllColumns(), r._getOrderColumnsFn()], (d, s) => {
1587
+ let c = d.flatMap((p) => p.getLeafColumns());
1588
+ return s(c);
1589
+ }, C(e, "debugColumns")),
1590
+ getColumn: (d) => r._getAllFlatColumnsById()[d]
1591
+ };
1592
+ Object.assign(r, S);
1593
+ for (let d = 0; d < r._features.length; d++) {
1594
+ const s = r._features[d];
1595
+ s == null || s.createTable == null || s.createTable(r);
1596
+ }
1597
+ return r;
1598
+ }
1599
+ function ct() {
1600
+ return (e) => m(() => [e.options.data], (o) => {
1601
+ const t = {
1602
+ rows: [],
1603
+ flatRows: [],
1604
+ rowsById: {}
1605
+ }, n = function(r, i, l) {
1606
+ i === void 0 && (i = 0);
1607
+ const u = [];
1608
+ for (let g = 0; g < r.length; g++) {
1609
+ const f = Z(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l == null ? void 0 : l.id);
1610
+ if (t.flatRows.push(f), t.rowsById[f.id] = f, u.push(f), e.options.getSubRows) {
1611
+ var a;
1612
+ f.originalSubRows = e.options.getSubRows(r[g], g), (a = f.originalSubRows) != null && a.length && (f.subRows = n(f.originalSubRows, i + 1, f));
1613
+ }
1614
+ }
1615
+ return u;
1616
+ };
1617
+ return t.rows = n(o), t;
1618
+ }, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
1619
+ }
1620
+ function st(e, o, t) {
1621
+ return t.options.filterFromLeafRows ? ut(e, o, t) : at(e, o, t);
1622
+ }
1623
+ function ut(e, o, t) {
1624
+ var n;
1625
+ const r = [], i = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(a, g) {
1626
+ g === void 0 && (g = 0);
1627
+ const f = [];
1628
+ for (let d = 0; d < a.length; d++) {
1629
+ var S;
1630
+ let s = a[d];
1631
+ const c = Z(t, s.id, s.original, s.index, s.depth, void 0, s.parentId);
1632
+ if (c.columnFilters = s.columnFilters, (S = s.subRows) != null && S.length && g < l) {
1633
+ if (c.subRows = u(s.subRows, g + 1), s = c, o(s) && !c.subRows.length) {
1634
+ f.push(s), i[s.id] = s, r.push(s);
1635
+ continue;
1636
+ }
1637
+ if (o(s) || c.subRows.length) {
1638
+ f.push(s), i[s.id] = s, r.push(s);
1639
+ continue;
1640
+ }
1641
+ } else
1642
+ s = c, o(s) && (f.push(s), i[s.id] = s, r.push(s));
1643
+ }
1644
+ return f;
1645
+ };
1646
+ return {
1647
+ rows: u(e),
1648
+ flatRows: r,
1649
+ rowsById: i
1650
+ };
1651
+ }
1652
+ function at(e, o, t) {
1653
+ var n;
1654
+ const r = [], i = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(a, g) {
1655
+ g === void 0 && (g = 0);
1656
+ const f = [];
1657
+ for (let d = 0; d < a.length; d++) {
1658
+ let s = a[d];
1659
+ if (o(s)) {
1660
+ var S;
1661
+ if ((S = s.subRows) != null && S.length && g < l) {
1662
+ const p = Z(t, s.id, s.original, s.index, s.depth, void 0, s.parentId);
1663
+ p.subRows = u(s.subRows, g + 1), s = p;
1664
+ }
1665
+ f.push(s), r.push(s), i[s.id] = s;
1666
+ }
1667
+ }
1668
+ return f;
1669
+ };
1670
+ return {
1671
+ rows: u(e),
1672
+ flatRows: r,
1673
+ rowsById: i
1674
+ };
1675
+ }
1676
+ function pt() {
1677
+ return (e) => m(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
1678
+ if (!o.rows.length || !(t != null && t.length) && !n) {
1679
+ for (let d = 0; d < o.flatRows.length; d++)
1680
+ o.flatRows[d].columnFilters = {}, o.flatRows[d].columnFiltersMeta = {};
1681
+ return o;
1682
+ }
1683
+ const r = [], i = [];
1684
+ (t ?? []).forEach((d) => {
1685
+ var s;
1686
+ const c = e.getColumn(d.id);
1687
+ if (!c)
1688
+ return;
1689
+ const p = c.getFilterFn();
1690
+ p && r.push({
1691
+ id: d.id,
1692
+ filterFn: p,
1693
+ resolvedValue: (s = p.resolveFilterValue == null ? void 0 : p.resolveFilterValue(d.value)) != null ? s : d.value
1694
+ });
1695
+ });
1696
+ const l = (t ?? []).map((d) => d.id), u = e.getGlobalFilterFn(), a = e.getAllLeafColumns().filter((d) => d.getCanGlobalFilter());
1697
+ n && u && a.length && (l.push("__global__"), a.forEach((d) => {
1698
+ var s;
1699
+ i.push({
1700
+ id: d.id,
1701
+ filterFn: u,
1702
+ resolvedValue: (s = u.resolveFilterValue == null ? void 0 : u.resolveFilterValue(n)) != null ? s : n
1703
+ });
1704
+ }));
1705
+ let g, f;
1706
+ for (let d = 0; d < o.flatRows.length; d++) {
1707
+ const s = o.flatRows[d];
1708
+ if (s.columnFilters = {}, r.length)
1709
+ for (let c = 0; c < r.length; c++) {
1710
+ g = r[c];
1711
+ const p = g.id;
1712
+ s.columnFilters[p] = g.filterFn(s, p, g.resolvedValue, (R) => {
1713
+ s.columnFiltersMeta[p] = R;
1714
+ });
1715
+ }
1716
+ if (i.length) {
1717
+ for (let c = 0; c < i.length; c++) {
1718
+ f = i[c];
1719
+ const p = f.id;
1720
+ if (f.filterFn(s, p, f.resolvedValue, (R) => {
1721
+ s.columnFiltersMeta[p] = R;
1722
+ })) {
1723
+ s.columnFilters.__global__ = !0;
1724
+ break;
1725
+ }
1726
+ }
1727
+ s.columnFilters.__global__ !== !0 && (s.columnFilters.__global__ = !1);
1728
+ }
1729
+ }
1730
+ const S = (d) => {
1731
+ for (let s = 0; s < l.length; s++)
1732
+ if (d.columnFilters[l[s]] === !1)
1733
+ return !1;
1734
+ return !0;
1735
+ };
1736
+ return st(o.rows, S, e);
1737
+ }, C(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
1738
+ }
1739
+ function St() {
1740
+ return (e) => m(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
1741
+ if (!t.rows.length || !(o != null && o.length))
1742
+ return t;
1743
+ const n = e.getState().sorting, r = [], i = n.filter((a) => {
1744
+ var g;
1745
+ return (g = e.getColumn(a.id)) == null ? void 0 : g.getCanSort();
1746
+ }), l = {};
1747
+ i.forEach((a) => {
1748
+ const g = e.getColumn(a.id);
1749
+ g && (l[a.id] = {
1750
+ sortUndefined: g.columnDef.sortUndefined,
1751
+ invertSorting: g.columnDef.invertSorting,
1752
+ sortingFn: g.getSortingFn()
1753
+ });
1754
+ });
1755
+ const u = (a) => {
1756
+ const g = a.map((f) => ({
1757
+ ...f
1758
+ }));
1759
+ return g.sort((f, S) => {
1760
+ for (let s = 0; s < i.length; s += 1) {
1761
+ var d;
1762
+ const c = i[s], p = l[c.id], R = p.sortUndefined, w = (d = c == null ? void 0 : c.desc) != null ? d : !1;
1763
+ let v = 0;
1764
+ if (R) {
1765
+ const h = f.getValue(c.id), P = S.getValue(c.id), F = h === void 0, y = P === void 0;
1766
+ if (F || y) {
1767
+ if (R === "first") return F ? -1 : 1;
1768
+ if (R === "last") return F ? 1 : -1;
1769
+ v = F && y ? 0 : F ? R : -R;
1770
+ }
1771
+ }
1772
+ if (v === 0 && (v = p.sortingFn(f, S, c.id)), v !== 0)
1773
+ return w && (v *= -1), p.invertSorting && (v *= -1), v;
1774
+ }
1775
+ return f.index - S.index;
1776
+ }), g.forEach((f) => {
1777
+ var S;
1778
+ r.push(f), (S = f.subRows) != null && S.length && (f.subRows = u(f.subRows));
1779
+ }), g;
1780
+ };
1781
+ return {
1782
+ rows: u(t.rows),
1783
+ flatRows: r,
1784
+ rowsById: t.rowsById
1785
+ };
1786
+ }, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
1787
+ }
1788
+ /**
1789
+ * vue-table
1790
+ *
1791
+ * Copyright (c) TanStack
1792
+ *
1793
+ * This source code is licensed under the MIT license found in the
1794
+ * LICENSE.md file in the root directory of this source tree.
1795
+ *
1796
+ * @license MIT
1797
+ */
1798
+ function L() {
1799
+ return !0;
1800
+ }
1801
+ const gt = Symbol("merge-proxy"), dt = {
1802
+ get(e, o, t) {
1803
+ return o === gt ? t : e.get(o);
1804
+ },
1805
+ has(e, o) {
1806
+ return e.has(o);
1807
+ },
1808
+ set: L,
1809
+ deleteProperty: L,
1810
+ getOwnPropertyDescriptor(e, o) {
1811
+ return {
1812
+ configurable: !0,
1813
+ enumerable: !0,
1814
+ get() {
1815
+ return e.get(o);
1816
+ },
1817
+ set: L,
1818
+ deleteProperty: L
1819
+ };
1820
+ },
1821
+ ownKeys(e) {
1822
+ return e.keys();
1823
+ }
1824
+ };
1825
+ function X(e) {
1826
+ return "value" in e ? e.value : e;
1827
+ }
1828
+ function z() {
1829
+ for (var e = arguments.length, o = new Array(e), t = 0; t < e; t++)
1830
+ o[t] = arguments[t];
1831
+ return new Proxy({
1832
+ get(n) {
1833
+ for (let r = o.length - 1; r >= 0; r--) {
1834
+ const i = X(o[r])[n];
1835
+ if (i !== void 0) return i;
1836
+ }
1837
+ },
1838
+ has(n) {
1839
+ for (let r = o.length - 1; r >= 0; r--)
1840
+ if (n in X(o[r])) return !0;
1841
+ return !1;
1842
+ },
1843
+ keys() {
1844
+ const n = [];
1845
+ for (let r = 0; r < o.length; r++) n.push(...Object.keys(X(o[r])));
1846
+ return [...Array.from(new Set(n))];
1847
+ }
1848
+ }, dt);
1849
+ }
1850
+ const mt = Re({
1851
+ props: ["render", "props"],
1852
+ setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? we(e.render, e.props) : e.render
1853
+ });
1854
+ function Ct(e) {
1855
+ const o = z({
1856
+ state: {},
1857
+ // Dummy state
1858
+ onStateChange: () => {
1859
+ },
1860
+ // noop
1861
+ renderFallbackValue: null,
1862
+ mergeOptions(r, i) {
1863
+ return z(r, i);
1864
+ }
1865
+ }, e), t = lt(o), n = ve(t.initialState);
1866
+ return he(() => {
1867
+ t.setOptions((r) => {
1868
+ var i;
1869
+ const l = new Proxy({}, {
1870
+ get: (u, a) => n.value[a]
1871
+ });
1872
+ return z(r, e, {
1873
+ // merge the initialState and `options.state`
1874
+ // create a new proxy on each `setOptions` call
1875
+ // and get the value from state on each property access
1876
+ state: z(l, (i = e.state) != null ? i : {}),
1877
+ // Similarly, we'll maintain both our internal state and any user-provided
1878
+ // state.
1879
+ onStateChange: (u) => {
1880
+ u instanceof Function ? n.value = u(n.value) : n.value = u, e.onStateChange == null || e.onStateChange(u);
1881
+ }
1882
+ });
1883
+ });
1884
+ }), t;
1885
+ }
1886
+ export {
1887
+ mt as F,
1888
+ St as a,
1889
+ ct as b,
1890
+ pt as g,
1891
+ Ct as u
1892
+ };