@alfadocs/ui-kit 1.114.0 → 1.116.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 (416) hide show
  1. package/dist/_chunks/accessible-target-Bs9ELM3l.js +6 -0
  2. package/dist/_chunks/{actions-cell-renderer-BVn3vDTg.js → actions-cell-renderer-DzHxDyI7.js} +3 -3
  3. package/dist/_chunks/{address-fields-D5Ije0S2.js → address-fields-BFVCtfP2.js} +3 -3
  4. package/dist/_chunks/{ai-permission-notice-BkgcGmu8.js → ai-permission-notice-C-xR2_iS.js} +2 -2
  5. package/dist/_chunks/{alia-sidebar-CKkg3gc8.js → alia-sidebar-BBxbMRmX.js} +2 -2
  6. package/dist/_chunks/{anamnesis-summary-rows-DaS-j8Jd.js → anamnesis-summary-rows-gEXqU5i5.js} +8 -8
  7. package/dist/_chunks/{antenatal-schedule-timeline-DmlXxevC.js → antenatal-schedule-timeline-va9zx7tJ.js} +11 -11
  8. package/dist/_chunks/{appointment-card-FKOnH1uJ.js → appointment-card-BMZoXaGx.js} +4 -4
  9. package/dist/_chunks/{appointment-peek-DWfcpoGy.js → appointment-peek-B1CCv-7J.js} +2 -2
  10. package/dist/_chunks/{appointment-timeline-eOi-y8m3.js → appointment-timeline-0k4LxODn.js} +4 -4
  11. package/dist/_chunks/{appointment-tray-C6oBvsG5.js → appointment-tray-DIxpgIXM.js} +2 -2
  12. package/dist/_chunks/{ar-C4YQVTH6.js → ar-BFvUBJ_g.js} +10 -10
  13. package/dist/_chunks/arrow-down-left-DECv-dJt.js +15 -0
  14. package/dist/_chunks/{balance-badge-cell-BAZynD--.js → balance-badge-cell-L7bD0Nsh.js} +28 -27
  15. package/dist/_chunks/bill-line-table-WEIRDcv6.js +1563 -0
  16. package/dist/_chunks/{bmi-calculator-Ba4yoR31.js → bmi-calculator-BjUfXqcY.js} +2 -2
  17. package/dist/_chunks/buildMatchPatternFn-jbaE1-W0.js +68 -0
  18. package/dist/_chunks/{button-group-CUnNnt8a.js → button-group-BvU9vRnX.js} +2 -2
  19. package/dist/_chunks/{calculator-dialog-D4TyJwqy.js → calculator-dialog-BGX5XQCM.js} +2 -2
  20. package/dist/_chunks/{calendar-appointment-editor-dialog-iyh9QqNw.js → calendar-appointment-editor-dialog-DqZMb4yd.js} +527 -539
  21. package/dist/_chunks/{care-plan-card-DMjlYlFc.js → care-plan-card-CfV8jiF0.js} +3 -3
  22. package/dist/_chunks/{care-plan-entry-card-3hguBW45.js → care-plan-entry-card-Bt01kyTl.js} +4 -4
  23. package/dist/_chunks/{chart-bddVIElM.js → chart-BSx8cfMm.js} +2 -2
  24. package/dist/_chunks/{chat-container-baxzy8k8.js → chat-container-B83b4hut.js} +2 -2
  25. package/dist/_chunks/checkbox-DV4sNDeB.js +282 -0
  26. package/dist/_chunks/{checkbox-group-eGdv9fZc.js → checkbox-group-EfinQS1h.js} +2 -2
  27. package/dist/_chunks/chevrons-up-down-CgiVAHb7.js +15 -0
  28. package/dist/_chunks/circle-off-DuT9pVy2.js +16 -0
  29. package/dist/_chunks/combobox-BBCVQS-S.js +935 -0
  30. package/dist/_chunks/compact-editor-fields-6sTWRLtf.js +21 -0
  31. package/dist/_chunks/{contact-profile-card-DMXWBBkU.js → contact-profile-card-BRCHbQ3-.js} +2 -2
  32. package/dist/_chunks/{country-select-CUuGOAoZ.js → country-select-C2GdvRtS.js} +2 -2
  33. package/dist/_chunks/{cycle-calculator-Dd-XbKmZ.js → cycle-calculator-Brd0PP4U.js} +6 -6
  34. package/dist/_chunks/{dashboard-grid-DrOkTtya.js → dashboard-grid-3aidD-IQ.js} +2 -2
  35. package/dist/_chunks/data-grid-ByhrYGVw.js +9814 -0
  36. package/dist/_chunks/data-grid-tabs-D9Y4DeeH.js +365 -0
  37. package/dist/_chunks/data-table-B47iw2CO.js +1694 -0
  38. package/dist/_chunks/data-table-tabs-NYLhD8_Z.js +242 -0
  39. package/dist/_chunks/date-locale-OG-MupVD.js +83 -0
  40. package/dist/_chunks/{date-picker-CdhXlgVI.js → date-picker-DBVTj6lO.js} +21 -20
  41. package/dist/_chunks/{date-picker-variants-Dt6UbonG.js → date-picker-variants-J1EeAhIH.js} +601 -678
  42. package/dist/_chunks/date-range-panel-B-DUtfw3.js +62 -0
  43. package/dist/_chunks/{date-range-picker-DCADIR8o.js → date-range-picker-PTRpDkXT.js} +72 -70
  44. package/dist/_chunks/{date-time-picker-CT2bC7-A.js → date-time-picker-CJnqiQoT.js} +22 -21
  45. package/dist/_chunks/{de-B1B3PIgY.js → de-i9wbjGPc.js} +2 -2
  46. package/dist/_chunks/default-tabs-BQcSqcNG.js +2250 -0
  47. package/dist/_chunks/dialog-CIUn5oLb.js +348 -0
  48. package/dist/_chunks/{document-preview-WvJKHJOP.js → document-preview-B_JGHsEW.js} +2 -2
  49. package/dist/_chunks/{dropdown-menu-CqxBthww.js → dropdown-menu-Dmbak7q6.js} +320 -248
  50. package/dist/_chunks/{due-date-calculator-Dl6SyMHO.js → due-date-calculator-DzIQXEX5.js} +7 -7
  51. package/dist/_chunks/{editable-currency-cell-renderer-BUdFMh67.js → editable-currency-cell-renderer-p-Q1UkZS.js} +3 -3
  52. package/dist/_chunks/{el-iLqGpapg.js → el-Cm-rWthb.js} +20 -20
  53. package/dist/_chunks/{en-GB-CxPRQbD6.js → en-GB-BHn82gW8.js} +11 -10
  54. package/dist/_chunks/en-US-C4QKhzhA.js +46 -0
  55. package/dist/_chunks/{es-Bg1oqwDs.js → es-B_6Z19UA.js} +4 -4
  56. package/dist/_chunks/export-files-BByoK9Cg.js +248 -0
  57. package/dist/_chunks/{face-scheme-DlcQaQVR.js → face-scheme-CEjJUnNe.js} +19 -18
  58. package/dist/_chunks/{fetal-weight-DmZzMRzB.js → fetal-weight-CJTlfh_k.js} +2 -2
  59. package/dist/_chunks/{file-manager-LG7B_UHB.js → file-manager-DEe51ZDe.js} +5 -5
  60. package/dist/_chunks/format-price-CIX0YJZn.js +179 -0
  61. package/dist/_chunks/format-ql5WTsYT.js +846 -0
  62. package/dist/_chunks/{fr-DpGxyOGI.js → fr-gTba51QO.js} +7 -7
  63. package/dist/_chunks/funnel-DpPV3Qkd.js +20 -0
  64. package/dist/_chunks/{gestational-age-calculator-DmzYdW5e.js → gestational-age-calculator-60y1RyQL.js} +7 -7
  65. package/dist/_chunks/grid-context-jn9y8tNE.js +46 -0
  66. package/dist/_chunks/{hcg-doubling-Tr72PetS.js → hcg-doubling-BUZQkSYC.js} +7 -6
  67. package/dist/_chunks/{header-settings-Df9q1uHt.js → header-settings-DNgvO8fS.js} +2 -2
  68. package/dist/_chunks/{heatmap-CNxCDl0D.js → heatmap-tn1WxoMT.js} +4 -4
  69. package/dist/_chunks/{help-me-write-templates-CWxgjDZl.js → help-me-write-templates-C28E_rOt.js} +2 -2
  70. package/dist/_chunks/{hi-3Dtsksrw.js → hi-BIHq9ncx.js} +10 -10
  71. package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
  72. package/dist/_chunks/icon-button-group-Ca2VkXy5.js +442 -0
  73. package/dist/_chunks/{index-CJE9uQmb.js → index-Bze5jCG_.js} +2 -1
  74. package/dist/_chunks/{isSameWeek-DyVftHWi.js → isSameWeek-CZOtDcsd.js} +2 -2
  75. package/dist/_chunks/{it-Cp0CA13d.js → it-DaCPWJ9Y.js} +11 -11
  76. package/dist/_chunks/{ja-9FOyR1lb.js → ja-BRCpkD95.js} +26 -26
  77. package/dist/_chunks/{kit-extensions-DZJRmDI6.js → kit-extensions-BFfLg7c-.js} +7 -7
  78. package/dist/_chunks/link-cell-renderer-D-Io828l.js +800 -0
  79. package/dist/_chunks/{login-dev-card-D7orCfJT.js → login-dev-card-CPndtWdz.js} +2 -2
  80. package/dist/_chunks/{marketplace-app-shell-CPNVBVLH.js → marketplace-app-shell-CBHNg8x-.js} +5 -5
  81. package/dist/_chunks/match-BATShpSX.js +336 -0
  82. package/dist/_chunks/money-OE6_oDPH.js +138 -0
  83. package/dist/_chunks/{muscle-scheme-BkmDUTmk.js → muscle-scheme-7UsRsCHP.js} +2 -2
  84. package/dist/_chunks/{nl-sfx-zJgR.js → nl-5tAwYo00.js} +6 -6
  85. package/dist/_chunks/normalizeDates-BBNNIR-v.js +36 -0
  86. package/dist/_chunks/{notes-panel-DXMTObBv.js → notes-panel-DexbfrFo.js} +3 -3
  87. package/dist/_chunks/number-input-DUSvP7Dq.js +625 -0
  88. package/dist/_chunks/{optical-prescription-CvbN8yD2.js → optical-prescription-Da_r8pMr.js} +2 -2
  89. package/dist/_chunks/{parse-B0s7bY4d.js → parse-BLBWPIgE.js} +63 -61
  90. package/dist/_chunks/{parseISO-DZZ5a-zK.js → parseISO-Dl4T9peU.js} +2 -2
  91. package/dist/_chunks/parts-CtcTW1PN.js +869 -0
  92. package/dist/_chunks/{patient-details-DdtXBNjt.js → patient-details-PJ0Y__7t.js} +2 -2
  93. package/dist/_chunks/{patient-field-row-D9rb-QJH.js → patient-field-row-0QP8KCVp.js} +7 -7
  94. package/dist/_chunks/{patient-search-DDRDCjZi.js → patient-search-Bdx_Ob3y.js} +2 -2
  95. package/dist/_chunks/{patient-summary-card-CGHz-Bvm.js → patient-summary-card-BOfXDP8a.js} +4 -4
  96. package/dist/_chunks/{payment-request-card-BmV2pLoM.js → payment-request-card-_04afZEx.js} +14 -13
  97. package/dist/_chunks/{periodontal-diagnosis-xheWfi4g.js → periodontal-diagnosis-DnZuZD14.js} +2 -2
  98. package/dist/_chunks/{permission-matrix-BJ6sg3Zp.js → permission-matrix-BXmhICzN.js} +3 -3
  99. package/dist/_chunks/{pl-BLh7KO-s.js → pl-mLYbfByR.js} +7 -7
  100. package/dist/_chunks/{practice-results-BlxfBx-D.js → practice-results-CrBjScXX.js} +3 -3
  101. package/dist/_chunks/{pregnancy-dating-BvorzHrd.js → pregnancy-dating-Bg_VUPwl.js} +8 -8
  102. package/dist/_chunks/{pregnancy-weight-gain-DQoOM8QV.js → pregnancy-weight-gain-B-eXFdmq.js} +2 -2
  103. package/dist/_chunks/privacy-mask-BlJK51MD.js +78 -0
  104. package/dist/_chunks/privacy-mask-text-B8YfzB7L.js +7 -0
  105. package/dist/_chunks/{province-select-cVOlwEc5.js → province-select-CTM8A9SM.js} +2 -2
  106. package/dist/_chunks/{pt-CPKOrOLj.js → pt-CgaqtlD9.js} +6 -6
  107. package/dist/_chunks/{radiograph-panel.agent-CXah49KM.js → radiograph-panel.agent-9jwXlOXB.js} +4 -4
  108. package/dist/_chunks/{registration-form-Lw9T7IXr.js → registration-form-DW-0X7S4.js} +2 -2
  109. package/dist/_chunks/{reserved.agent-D2jwJPac.js → reserved.agent-C1zRHaya.js} +12 -12
  110. package/dist/_chunks/{rich-text-editor-BLS2cK-u.js → rich-text-editor-r80Zw8ll.js} +14 -13
  111. package/dist/_chunks/{ro-Dc-oNqbF.js → ro-CpDg1-8v.js} +2 -2
  112. package/dist/_chunks/row-actions-Df7TJbNR.js +213 -0
  113. package/dist/_chunks/{ru-BtNpDZRR.js → ru-B7VMyjud.js} +9 -9
  114. package/dist/_chunks/saved-view-tabs-DLWm88Eq.js +932 -0
  115. package/dist/_chunks/{send-registration-link-form-DfbTjrEK.js → send-registration-link-form-DWxWa_cJ.js} +5 -5
  116. package/dist/_chunks/{sidebar-2VsPlNkZ.js → sidebar-D5DFYN5K.js} +326 -335
  117. package/dist/_chunks/{signature-request-BnTihryS.js → signature-request-CgvjLic3.js} +3 -3
  118. package/dist/_chunks/{slot-grid-BhjaLJ0o.js → slot-grid-b4eZXokb.js} +3 -3
  119. package/dist/_chunks/{sq-D4c7olaV.js → sq-B0Ree_9P.js} +2 -2
  120. package/dist/_chunks/subDays-Bsoy023P.js +8 -0
  121. package/dist/_chunks/{sv-Bf_dHPvh.js → sv-D9fP66O7.js} +4 -4
  122. package/dist/_chunks/{tab-bar-C_pggqVr.js → tab-bar-DTn8pHqH.js} +2 -2
  123. package/dist/_chunks/{tabs-CXYjr_8O.js → tabs-CsmgkiG6.js} +2 -2
  124. package/dist/_chunks/{tag-DOZGz0fT.js → tag-BNlcEJfE.js} +70 -67
  125. package/dist/_chunks/{task-card-DqVoitRk.js → task-card-BNbkwIYM.js} +2 -2
  126. package/dist/_chunks/{task-editor-D--LwVrg.js → task-editor-DgUjtqpX.js} +386 -410
  127. package/dist/_chunks/{task-tray-C6j8HVMv.js → task-tray-Bmi9wCHq.js} +2 -2
  128. package/dist/_chunks/{tasks-panel-D6PuF4MQ.js → tasks-panel-B5Nsf10r.js} +3 -3
  129. package/dist/_chunks/{theme-toggle-Czq3K9jB.js → theme-toggle-DfvdEg_V.js} +3 -3
  130. package/dist/_chunks/{token-insert-menu-Dl3x2ekR.js → token-insert-menu-BdcmK5Um.js} +2 -2
  131. package/dist/_chunks/toolbar-DbUQBrq4.js +159 -0
  132. package/dist/_chunks/{tooth-scheme-C-ALCHaV.js → tooth-scheme-LTkT4EXd.js} +2 -2
  133. package/dist/_chunks/{tr-xqQ6cbGY.js → tr-Bcz5LCHZ.js} +2 -2
  134. package/dist/_chunks/{transaction-chip-CohY6sTA.js → transaction-chip-CkYd-3ky.js} +47 -57
  135. package/dist/_chunks/{transcript-panel-A781Pkzr.js → transcript-panel-Wr8e4Zgi.js} +2 -2
  136. package/dist/_chunks/{treatment-receipt-pFqWFyD_.js → treatment-receipt-1VnuinhY.js} +3 -3
  137. package/dist/_chunks/undo-2-EBxWjj1W.js +15 -0
  138. package/dist/_chunks/{unit-converter-D77vmlzN.js → unit-converter-YKlHyUC2.js} +2 -2
  139. package/dist/_chunks/{use-appointment-details-read-BK_Gw1GG.js → use-appointment-details-read-_r7cjTtm.js} +8 -8
  140. package/dist/_chunks/{verify-identity-types-C85EXNzy.js → verify-identity-types-D_LdByCp.js} +2 -2
  141. package/dist/_chunks/{voice-control-panel-BGiX4sqB.js → voice-control-panel-Be_c0CQ0.js} +2 -2
  142. package/dist/_chunks/{widget-picker-U4JsEhQE.js → widget-picker-DrxJjEkv.js} +2 -2
  143. package/dist/_chunks/{workflow-map-B4XkcET0.js → workflow-map-D-u8_YSr.js} +2 -2
  144. package/dist/_chunks/{workflow-status-9wb7iWUd.js → workflow-status-fykpTxfb.js} +2 -2
  145. package/dist/_chunks/{workflow-webhook-action-CtBn5JvO.js → workflow-webhook-action-DM3W8XZE.js} +3 -3
  146. package/dist/_chunks/{zh-CN-C657DBCO.js → zh-CN-B7Ek17US.js} +11 -11
  147. package/dist/agent-catalog.json +3359 -1569
  148. package/dist/agent-i18n/en.json +100 -2
  149. package/dist/components/_shared/accessible-target.d.ts +12 -0
  150. package/dist/components/_shared/decimal.d.ts +171 -0
  151. package/dist/components/_shared/format-price.d.ts +54 -2
  152. package/dist/components/_shared/privacy-mask-text.d.ts +4 -0
  153. package/dist/components/_shared/privacy-mask.d.ts +2 -4
  154. package/dist/components/_shared/saved-view-tabs/saved-tab.d.ts +54 -0
  155. package/dist/components/_shared/saved-view-tabs/saved-view-tabs.d.ts +93 -0
  156. package/dist/components/_shared/saved-view-tabs/use-saved-view-tabs.d.ts +59 -0
  157. package/dist/components/_shared/saved-view-tabs/view-adapter.d.ts +69 -0
  158. package/dist/components/_shared/table-filters/calendar-day.d.ts +27 -0
  159. package/dist/components/_shared/table-filters/predicates.d.ts +56 -0
  160. package/dist/components/_shared/table-toolbar/context.d.ts +28 -0
  161. package/dist/components/_shared/table-toolbar/describe-filter.d.ts +42 -0
  162. package/dist/components/_shared/table-toolbar/export-files.d.ts +47 -0
  163. package/dist/components/{data-table/xlsx-export.d.ts → _shared/table-toolbar/export-xlsx.d.ts} +2 -2
  164. package/dist/components/_shared/table-toolbar/parts.d.ts +125 -0
  165. package/dist/components/_shared/table-toolbar/seam.d.ts +261 -0
  166. package/dist/components/address-fields/index.js +1 -1
  167. package/dist/components/ai-permission-notice/index.js +1 -1
  168. package/dist/components/appointment-card/index.js +2 -2
  169. package/dist/components/appointment-details-panel/index.js +1 -1
  170. package/dist/components/appointment-peek/index.js +1 -1
  171. package/dist/components/appointment-timeline/index.js +1 -1
  172. package/dist/components/bill-line-table/bill-line-table.agent.d.ts +4 -0
  173. package/dist/components/bill-line-table/bill-line-table.columns.d.ts +47 -0
  174. package/dist/components/bill-line-table/bill-line-table.d.ts +4 -0
  175. package/dist/components/bill-line-table/bill-line-table.model.d.ts +173 -0
  176. package/dist/components/bill-line-table/bill-line-table.types.d.ts +443 -0
  177. package/dist/components/bill-line-table/bill-line-table.variants.d.ts +34 -0
  178. package/dist/components/bill-line-table/index.d.ts +6 -0
  179. package/dist/components/bill-line-table/index.js +23 -0
  180. package/dist/components/bill-table/bill-table.agent.d.ts +4 -0
  181. package/dist/components/bill-table/bill-table.d.ts +13 -0
  182. package/dist/components/bill-table/bill-table.variants.d.ts +55 -0
  183. package/dist/components/bill-table/cells.d.ts +89 -0
  184. package/dist/components/bill-table/columns.d.ts +21 -0
  185. package/dist/components/bill-table/default-tabs.d.ts +21 -0
  186. package/dist/components/bill-table/handle.d.ts +19 -0
  187. package/dist/components/bill-table/index.d.ts +7 -0
  188. package/dist/components/bill-table/index.js +19 -0
  189. package/dist/components/bill-table/model.d.ts +103 -0
  190. package/dist/components/bill-table/row-actions.d.ts +27 -0
  191. package/dist/components/bill-table/status-maps.d.ts +225 -0
  192. package/dist/components/bill-table/types.d.ts +542 -0
  193. package/dist/components/bmi-calculator/index.js +1 -1
  194. package/dist/components/booking/index.js +1 -1
  195. package/dist/components/button-group/index.js +1 -1
  196. package/dist/components/calculator-dialog/index.js +1 -1
  197. package/dist/components/care-plan-card/index.js +1 -1
  198. package/dist/components/care-plan-entry-card/index.js +1 -1
  199. package/dist/components/chart/index.js +1 -1
  200. package/dist/components/chat-container/index.js +1 -1
  201. package/dist/components/checkbox/checkbox.d.ts +66 -6
  202. package/dist/components/checkbox/index.js +1 -1
  203. package/dist/components/checkbox-group/index.js +1 -1
  204. package/dist/components/combobox/combobox.d.ts +59 -1
  205. package/dist/components/combobox/index.d.ts +1 -1
  206. package/dist/components/combobox/index.js +1 -1
  207. package/dist/components/contact-profile-card/index.js +1 -1
  208. package/dist/components/country-select/index.js +1 -1
  209. package/dist/components/cycle-calculator/index.js +1 -1
  210. package/dist/components/dashboard-grid/index.js +1 -1
  211. package/dist/components/data-grid/announcer.d.ts +27 -0
  212. package/dist/components/data-grid/body.d.ts +101 -0
  213. package/dist/components/data-grid/columns.d.ts +96 -0
  214. package/dist/components/data-grid/data-grid.agent.d.ts +2 -1
  215. package/dist/components/data-grid/data-grid.d.ts +11 -27
  216. package/dist/components/data-grid/data-grid.variants.d.ts +110 -0
  217. package/dist/components/data-grid/editors.d.ts +14 -0
  218. package/dist/components/data-grid/export-snapshot.d.ts +3 -0
  219. package/dist/components/data-grid/features.d.ts +56 -0
  220. package/dist/components/data-grid/filter-fns.d.ts +23 -0
  221. package/dist/components/data-grid/filters/date-range-panel.d.ts +8 -0
  222. package/dist/components/data-grid/filters/filter-panels.d.ts +27 -0
  223. package/dist/components/data-grid/filters/filter-trigger.d.ts +7 -0
  224. package/dist/components/data-grid/footer.d.ts +10 -0
  225. package/dist/components/data-grid/grid-context.d.ts +18 -0
  226. package/dist/components/data-grid/handle.d.ts +60 -0
  227. package/dist/components/data-grid/header.d.ts +12 -0
  228. package/dist/components/data-grid/index.d.ts +3 -0
  229. package/dist/components/data-grid/index.js +11 -3
  230. package/dist/components/data-grid/keyboard.d.ts +76 -0
  231. package/dist/components/data-grid/pager.d.ts +18 -0
  232. package/dist/components/data-grid/persistence.d.ts +60 -0
  233. package/dist/components/data-grid/print.d.ts +10 -0
  234. package/dist/components/data-grid/responsive.d.ts +36 -0
  235. package/dist/components/data-grid/selection.d.ts +68 -0
  236. package/dist/components/data-grid/state.d.ts +119 -0
  237. package/dist/components/data-grid/states.d.ts +34 -0
  238. package/dist/components/data-grid/toolbar-seam.d.ts +7 -0
  239. package/dist/components/data-grid/toolbar.d.ts +41 -0
  240. package/dist/components/data-grid/types.d.ts +1396 -0
  241. package/dist/components/data-grid/use-data-grid-engine.d.ts +9 -0
  242. package/dist/components/data-grid/virtual-rows.d.ts +43 -0
  243. package/dist/components/data-grid-tabs/data-grid-tabs.agent.d.ts +9 -0
  244. package/dist/components/data-grid-tabs/data-grid-tabs.d.ts +4 -0
  245. package/dist/components/data-grid-tabs/grid-view-adapter.d.ts +15 -0
  246. package/dist/components/data-grid-tabs/index.d.ts +5 -0
  247. package/dist/components/data-grid-tabs/index.js +8 -0
  248. package/dist/components/data-grid-tabs/types.d.ts +220 -0
  249. package/dist/components/data-table/ag-toolbar-seam.d.ts +35 -0
  250. package/dist/components/data-table/calendar-day.d.ts +4 -21
  251. package/dist/components/data-table/data-table.d.ts +10 -6
  252. package/dist/components/data-table/filters/date-range-filter.d.ts +5 -9
  253. package/dist/components/data-table/filters/filter-kind.d.ts +6 -0
  254. package/dist/components/data-table/filters/number-filter.d.ts +6 -10
  255. package/dist/components/data-table/filters/select-filter.d.ts +2 -4
  256. package/dist/components/data-table/filters/text-filter.d.ts +2 -5
  257. package/dist/components/data-table/index.js +4 -4
  258. package/dist/components/data-table/toolbar.d.ts +25 -21
  259. package/dist/components/data-table-tabs/ag-view-adapter.d.ts +17 -0
  260. package/dist/components/data-table-tabs/data-table-tabs.d.ts +34 -33
  261. package/dist/components/data-table-tabs/index.js +1 -1
  262. package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +11 -66
  263. package/dist/components/date-picker/index.js +1 -1
  264. package/dist/components/date-range-picker/index.js +1 -1
  265. package/dist/components/date-time-picker/index.js +1 -1
  266. package/dist/components/dialog/focus-return.d.ts +12 -0
  267. package/dist/components/dialog/index.js +1 -1
  268. package/dist/components/document-preview/index.js +1 -1
  269. package/dist/components/dropdown-menu/dropdown-menu.d.ts +11 -0
  270. package/dist/components/dropdown-menu/index.js +1 -1
  271. package/dist/components/due-date-calculator/index.js +2 -2
  272. package/dist/components/face-scheme/index.js +1 -1
  273. package/dist/components/fetal-weight/index.js +1 -1
  274. package/dist/components/file-manager/index.js +1 -1
  275. package/dist/components/gestational-age-calculator/index.js +1 -1
  276. package/dist/components/hcg-doubling/index.js +1 -1
  277. package/dist/components/header-settings/index.js +1 -1
  278. package/dist/components/heatmap/index.js +1 -1
  279. package/dist/components/icon-button-group/icon-button-group.d.ts +19 -1
  280. package/dist/components/icon-button-group/index.d.ts +1 -1
  281. package/dist/components/icon-button-group/index.js +1 -1
  282. package/dist/components/index.d.ts +7 -0
  283. package/dist/components/money/index.js +1 -1
  284. package/dist/components/money/money.d.ts +39 -6
  285. package/dist/components/muscle-scheme/index.js +1 -1
  286. package/dist/components/notes-panel/index.js +1 -1
  287. package/dist/components/number-input/index.d.ts +2 -2
  288. package/dist/components/number-input/index.js +1 -1
  289. package/dist/components/number-input/number-input.d.ts +43 -2
  290. package/dist/components/number-input/use-locale-number.d.ts +67 -3
  291. package/dist/components/optical-prescription/index.js +1 -1
  292. package/dist/components/patient-details/index.js +1 -1
  293. package/dist/components/patient-search/index.js +1 -1
  294. package/dist/components/patient-summary-card/index.js +1 -1
  295. package/dist/components/patient-table/index.js +1 -1
  296. package/dist/components/payment-card/index.js +1 -1
  297. package/dist/components/periodontal-diagnosis/index.js +1 -1
  298. package/dist/components/permission-matrix/index.js +1 -1
  299. package/dist/components/practice-results/index.js +1 -1
  300. package/dist/components/pregnancy-dating/index.js +1 -1
  301. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  302. package/dist/components/province-select/index.js +1 -1
  303. package/dist/components/radiograph-panel/index.js +1 -1
  304. package/dist/components/rich-text-editor/index.js +2 -2
  305. package/dist/components/row-actions/index.d.ts +3 -0
  306. package/dist/components/row-actions/index.js +5 -0
  307. package/dist/components/row-actions/row-actions.d.ts +63 -0
  308. package/dist/components/sidebar/index.js +1 -1
  309. package/dist/components/skeleton-scheme/index.js +1 -1
  310. package/dist/components/slot-grid/index.js +1 -1
  311. package/dist/components/smart-date/smart-date.d.ts +1 -1
  312. package/dist/components/tab-bar/index.js +1 -1
  313. package/dist/components/tabs/index.js +1 -1
  314. package/dist/components/tag/index.js +1 -1
  315. package/dist/components/task-card/index.js +1 -1
  316. package/dist/components/task-editor/index.js +1 -1
  317. package/dist/components/task-tray/index.js +1 -1
  318. package/dist/components/tasks-panel/index.js +1 -1
  319. package/dist/components/theme-toggle/index.js +1 -1
  320. package/dist/components/token-insert-menu/index.js +1 -1
  321. package/dist/components/tooth-scheme/index.js +1 -1
  322. package/dist/components/transaction-chip/index.js +1 -1
  323. package/dist/components/transaction-chip/transaction-chip.d.ts +1 -1
  324. package/dist/components/transcript-panel/index.js +1 -1
  325. package/dist/components/treatment-receipt/index.js +1 -1
  326. package/dist/components/unit-converter/index.js +1 -1
  327. package/dist/components/voice-control-panel/index.js +1 -1
  328. package/dist/components/widget-picker/index.js +1 -1
  329. package/dist/components/workflow/index.js +1 -1
  330. package/dist/components/workflow-status/index.js +1 -1
  331. package/dist/core.css +1 -1
  332. package/dist/decimal/index.js +149 -0
  333. package/dist/host-compat.css +36 -2
  334. package/dist/i18n/locales/ar.d.ts +342 -0
  335. package/dist/i18n/locales/ar.js +344 -2
  336. package/dist/i18n/locales/de.d.ts +342 -0
  337. package/dist/i18n/locales/de.js +344 -2
  338. package/dist/i18n/locales/el.d.ts +342 -0
  339. package/dist/i18n/locales/el.js +344 -2
  340. package/dist/i18n/locales/en.d.ts +342 -0
  341. package/dist/i18n/locales/en.js +345 -2
  342. package/dist/i18n/locales/es.d.ts +342 -0
  343. package/dist/i18n/locales/es.js +344 -2
  344. package/dist/i18n/locales/fr.d.ts +342 -0
  345. package/dist/i18n/locales/fr.js +344 -2
  346. package/dist/i18n/locales/hi.d.ts +342 -0
  347. package/dist/i18n/locales/hi.js +344 -2
  348. package/dist/i18n/locales/it.d.ts +342 -0
  349. package/dist/i18n/locales/it.js +344 -2
  350. package/dist/i18n/locales/ja.d.ts +342 -0
  351. package/dist/i18n/locales/ja.js +344 -2
  352. package/dist/i18n/locales/nl.d.ts +342 -0
  353. package/dist/i18n/locales/nl.js +344 -2
  354. package/dist/i18n/locales/pl.d.ts +342 -0
  355. package/dist/i18n/locales/pl.js +344 -2
  356. package/dist/i18n/locales/pt.d.ts +342 -0
  357. package/dist/i18n/locales/pt.js +344 -2
  358. package/dist/i18n/locales/ro.d.ts +342 -0
  359. package/dist/i18n/locales/ro.js +344 -2
  360. package/dist/i18n/locales/ru.d.ts +342 -0
  361. package/dist/i18n/locales/ru.js +344 -2
  362. package/dist/i18n/locales/sq.d.ts +342 -0
  363. package/dist/i18n/locales/sq.js +344 -2
  364. package/dist/i18n/locales/sv.d.ts +342 -0
  365. package/dist/i18n/locales/sv.js +344 -2
  366. package/dist/i18n/locales/tr.d.ts +342 -0
  367. package/dist/i18n/locales/tr.js +344 -2
  368. package/dist/i18n/locales/zh.d.ts +342 -0
  369. package/dist/i18n/locales/zh.js +344 -2
  370. package/dist/index.js +1305 -1241
  371. package/dist/locales/ar.json +344 -2
  372. package/dist/locales/de.json +344 -2
  373. package/dist/locales/el.json +344 -2
  374. package/dist/locales/en.json +344 -2
  375. package/dist/locales/es.json +344 -2
  376. package/dist/locales/fr.json +344 -2
  377. package/dist/locales/hi.json +344 -2
  378. package/dist/locales/it.json +344 -2
  379. package/dist/locales/ja.json +344 -2
  380. package/dist/locales/nl.json +344 -2
  381. package/dist/locales/pl.json +344 -2
  382. package/dist/locales/pt.json +344 -2
  383. package/dist/locales/ro.json +344 -2
  384. package/dist/locales/ru.json +344 -2
  385. package/dist/locales/sq.json +344 -2
  386. package/dist/locales/sv.json +344 -2
  387. package/dist/locales/tr.json +344 -2
  388. package/dist/locales/zh.json +344 -2
  389. package/dist/patterns/alia-assistant/index.js +1 -1
  390. package/dist/patterns/anamnesis/index.js +1 -1
  391. package/dist/patterns/calendar/index.js +1 -1
  392. package/dist/patterns/help-me-write-templates/index.js +1 -1
  393. package/dist/patterns/login-form/index.js +1 -1
  394. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  395. package/dist/patterns/registration-form/index.js +1 -1
  396. package/dist/patterns/send-registration-link-form/index.js +1 -1
  397. package/dist/patterns/signature-request/index.js +1 -1
  398. package/dist/patterns/verify-identity/index.js +1 -1
  399. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  400. package/dist/tokens.css +1 -1
  401. package/package.json +21 -1
  402. package/dist/_chunks/checkbox-a7Sh-dXb.js +0 -227
  403. package/dist/_chunks/combobox-duuDRI1t.js +0 -688
  404. package/dist/_chunks/data-grid.agent-CASyEAnb.js +0 -1773
  405. package/dist/_chunks/data-table-C9idMvs0.js +0 -2042
  406. package/dist/_chunks/data-table-tabs-Db7zToFD.js +0 -728
  407. package/dist/_chunks/dialog-BTjSQjdY.js +0 -274
  408. package/dist/_chunks/format--x5jypvH.js +0 -1319
  409. package/dist/_chunks/format-price-BcFBa-WP.js +0 -52
  410. package/dist/_chunks/icon-button-group-mXvYDaba.js +0 -427
  411. package/dist/_chunks/link-cell-renderer-_Fv3WEmb.js +0 -867
  412. package/dist/_chunks/money-Tsczpjfz.js +0 -102
  413. package/dist/_chunks/number-input-CVwI1ltI.js +0 -423
  414. package/dist/_chunks/privacy-mask-Dc3kdkCR.js +0 -81
  415. package/dist/_chunks/subDays-DKISP2nE.js +0 -8
  416. package/dist/_chunks/undo-2-CYNAzclj.js +0 -26
@@ -1,1773 +0,0 @@
1
- import { jsx as D, jsxs as Fe } from "react/jsx-runtime";
2
- import L, { useCallback as se, useState as Ie, useMemo as me, useEffect as Ae, useLayoutEffect as Ve, useId as Le } from "react";
3
- import { c as te } from "./index-D2ZczOXr.js";
4
- import { S as Te } from "./scroll-area-CY5SLYNw.js";
5
- function He(e) {
6
- return je(e) || typeof e == "function" || Ge(e);
7
- }
8
- function je(e) {
9
- return typeof e == "function" && (() => {
10
- const t = Object.getPrototypeOf(e);
11
- return t.prototype && t.prototype.isReactComponent;
12
- })();
13
- }
14
- function Ge(e) {
15
- return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
16
- }
17
- function j(e, t) {
18
- return e == null ? null : He(e) ? /* @__PURE__ */ L.createElement(e, t) : e;
19
- }
20
- function $e(e) {
21
- var t, n;
22
- if ("cell" in e && e.cell) {
23
- const r = e.cell, o = r.column.columnDef, s = r, u = o;
24
- return (t = s.getIsAggregated) != null && t.call(s) ? j(u.aggregatedCell ?? o.cell, r.getContext()) : (n = s.getIsPlaceholder) != null && n.call(s) ? null : j(o.cell, r.getContext());
25
- }
26
- return "header" in e && e.header ? j(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? j(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
27
- }
28
- // @__NO_SIDE_EFFECTS__
29
- function Ne({ update: e, notify: t, unwatched: n }) {
30
- return {
31
- link: r,
32
- unlink: o,
33
- propagate: s,
34
- checkDirty: u,
35
- shallowPropagate: g
36
- };
37
- function r(i, d, a) {
38
- const l = d.depsTail;
39
- if (l !== void 0 && l.dep === i) return;
40
- const c = l !== void 0 ? l.nextDep : d.deps;
41
- if (c !== void 0 && c.dep === i) {
42
- c.version = a, d.depsTail = c;
43
- return;
44
- }
45
- const p = i.subsTail;
46
- if (p !== void 0 && p.version === a && p.sub === d) return;
47
- const m = d.depsTail = i.subsTail = {
48
- version: a,
49
- dep: i,
50
- sub: d,
51
- prevDep: l,
52
- nextDep: c,
53
- prevSub: p,
54
- nextSub: void 0
55
- };
56
- c !== void 0 && (c.prevDep = m), l !== void 0 ? l.nextDep = m : d.deps = m, p !== void 0 ? p.nextSub = m : i.subs = m;
57
- }
58
- function o(i, d = i.sub) {
59
- const a = i.dep, l = i.prevDep, c = i.nextDep, p = i.nextSub, m = i.prevSub;
60
- return c !== void 0 ? c.prevDep = l : d.depsTail = l, l !== void 0 ? l.nextDep = c : d.deps = c, p !== void 0 ? p.prevSub = m : a.subsTail = m, m !== void 0 ? m.nextSub = p : (a.subs = p) === void 0 && n(a), c;
61
- }
62
- function s(i) {
63
- let d = i.nextSub, a;
64
- e: do {
65
- const l = i.sub;
66
- let c = l.flags;
67
- if (c & 60 ? c & 12 ? c & 4 ? !(c & 48) && f(i, l) ? (l.flags = c | 40, c &= 1) : c = 0 : l.flags = c & -9 | 32 : c = 0 : l.flags = c | 32, c & 2 && t(l), c & 1) {
68
- const p = l.subs;
69
- if (p !== void 0) {
70
- const m = (i = p).nextSub;
71
- m !== void 0 && (a = {
72
- value: d,
73
- prev: a
74
- }, d = m);
75
- continue;
76
- }
77
- }
78
- if ((i = d) !== void 0) {
79
- d = i.nextSub;
80
- continue;
81
- }
82
- for (; a !== void 0; )
83
- if (i = a.value, a = a.prev, i !== void 0) {
84
- d = i.nextSub;
85
- continue e;
86
- }
87
- break;
88
- } while (!0);
89
- }
90
- function u(i, d) {
91
- let a, l = 0, c = !1;
92
- e: do {
93
- const p = i.dep, m = p.flags;
94
- if (d.flags & 16) c = !0;
95
- else if ((m & 17) === 17) {
96
- if (e(p)) {
97
- const w = p.subs;
98
- w.nextSub !== void 0 && g(w), c = !0;
99
- }
100
- } else if ((m & 33) === 33) {
101
- (i.nextSub !== void 0 || i.prevSub !== void 0) && (a = {
102
- value: i,
103
- prev: a
104
- }), i = p.deps, d = p, ++l;
105
- continue;
106
- }
107
- if (!c) {
108
- const w = i.nextDep;
109
- if (w !== void 0) {
110
- i = w;
111
- continue;
112
- }
113
- }
114
- for (; l--; ) {
115
- const w = d.subs, S = w.nextSub !== void 0;
116
- if (S ? (i = a.value, a = a.prev) : i = w, c) {
117
- if (e(d)) {
118
- S && g(w), d = i.sub;
119
- continue;
120
- }
121
- c = !1;
122
- } else d.flags &= -33;
123
- d = i.sub;
124
- const h = i.nextDep;
125
- if (h !== void 0) {
126
- i = h;
127
- continue e;
128
- }
129
- }
130
- return c;
131
- } while (!0);
132
- }
133
- function g(i) {
134
- do {
135
- const d = i.sub, a = d.flags;
136
- (a & 48) === 32 && (d.flags = a | 16, (a & 6) === 2 && t(d));
137
- } while ((i = i.nextSub) !== void 0);
138
- }
139
- function f(i, d) {
140
- let a = d.depsTail;
141
- for (; a !== void 0; ) {
142
- if (a === i) return !0;
143
- a = a.prevDep;
144
- }
145
- return !1;
146
- }
147
- }
148
- function ke(e, t, n) {
149
- var s, u, g;
150
- const r = typeof e == "object", o = r ? e : void 0;
151
- return {
152
- next: (s = r ? e.next : e) == null ? void 0 : s.bind(o),
153
- error: (u = r ? e.error : t) == null ? void 0 : u.bind(o),
154
- complete: (g = r ? e.complete : n) == null ? void 0 : g.bind(o)
155
- };
156
- }
157
- const Q = [];
158
- let k = 0;
159
- const { link: ie, unlink: ze, propagate: Ke, checkDirty: _e, shallowPropagate: ue } = /* @__PURE__ */ Ne({
160
- update(e) {
161
- return e._update();
162
- },
163
- notify(e) {
164
- Q[X++] = e, e.flags &= -3;
165
- },
166
- unwatched(e) {
167
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, z(e));
168
- }
169
- });
170
- let G = 0, X = 0, E, Z = 0;
171
- function qe(e) {
172
- try {
173
- ++Z, e();
174
- } finally {
175
- --Z || he();
176
- }
177
- }
178
- function z(e) {
179
- const t = e.depsTail;
180
- let n = t !== void 0 ? t.nextDep : e.deps;
181
- for (; n !== void 0; ) n = ze(n, e);
182
- }
183
- function he() {
184
- if (!(Z > 0)) {
185
- for (; G < X; ) {
186
- const e = Q[G];
187
- Q[G++] = void 0, e.notify();
188
- }
189
- G = 0, X = 0;
190
- }
191
- }
192
- function We(e, t) {
193
- const n = typeof e == "function", r = e, o = {
194
- _snapshot: n ? void 0 : e,
195
- subs: void 0,
196
- subsTail: void 0,
197
- deps: void 0,
198
- depsTail: void 0,
199
- flags: n ? 0 : 1,
200
- get() {
201
- return E !== void 0 && ie(o, E, k), o._snapshot;
202
- },
203
- subscribe(s) {
204
- const u = ke(s), g = { current: !1 }, f = Be(() => {
205
- var i;
206
- o.get(), g.current ? (E = void 0, (i = u.next) == null || i.call(u, o._snapshot)) : g.current = !0;
207
- });
208
- return { unsubscribe: () => {
209
- f.stop();
210
- } };
211
- },
212
- _update(s) {
213
- const u = E, g = (t == null ? void 0 : t.compare) ?? Object.is;
214
- if (n)
215
- E = o, ++k, o.depsTail = void 0;
216
- else if (s === void 0) return !1;
217
- n && (o.flags = 5);
218
- try {
219
- const f = o._snapshot, i = typeof s == "function" ? s(f) : s === void 0 && n ? r(f) : s;
220
- return f === void 0 || !g(f, i) ? (o._snapshot = i, !0) : !1;
221
- } finally {
222
- E = u, n && (o.flags &= -5), z(o);
223
- }
224
- }
225
- };
226
- return n ? (o.flags = 17, o.get = function() {
227
- const s = o.flags;
228
- if (s & 16 || s & 32 && _e(o.deps, o)) {
229
- if (o._update()) {
230
- const u = o.subs;
231
- u !== void 0 && ue(u);
232
- }
233
- } else s & 32 && (o.flags = s & -33);
234
- return E !== void 0 && ie(o, E, k), o._snapshot;
235
- }) : o.set = function(s) {
236
- if (o._update(s)) {
237
- const u = o.subs;
238
- u !== void 0 && (Ke(u), ue(u), he());
239
- }
240
- }, o;
241
- }
242
- function Be(e) {
243
- const t = () => {
244
- const r = E;
245
- E = n, ++k, n.depsTail = void 0, n.flags = 6;
246
- try {
247
- return e();
248
- } finally {
249
- E = r, n.flags &= -5, z(n);
250
- }
251
- }, n = {
252
- deps: void 0,
253
- depsTail: void 0,
254
- subs: void 0,
255
- subsTail: void 0,
256
- flags: 6,
257
- notify() {
258
- const r = this.flags;
259
- r & 16 || r & 32 && _e(this.deps, this) ? t() : this.flags = 2;
260
- },
261
- stop() {
262
- this.flags = 0, this.depsTail = void 0, z(this);
263
- }
264
- };
265
- return t(), n;
266
- }
267
- function V(e, t) {
268
- if (Object.is(e, t)) return !0;
269
- if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1;
270
- if (e instanceof Map && t instanceof Map) {
271
- if (e.size !== t.size) return !1;
272
- for (const [r, o] of e) if (!t.has(r) || !Object.is(o, t.get(r))) return !1;
273
- return !0;
274
- }
275
- if (e instanceof Set && t instanceof Set) {
276
- if (e.size !== t.size) return !1;
277
- for (const r of e) if (!t.has(r)) return !1;
278
- return !0;
279
- }
280
- if (e instanceof Date && t instanceof Date)
281
- return e.getTime() === t.getTime();
282
- const n = ae(e);
283
- if (n.length !== ae(t).length) return !1;
284
- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;
285
- return !0;
286
- }
287
- function ae(e) {
288
- return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
289
- }
290
- var $ = { exports: {} }, W = {}, N = { exports: {} }, B = {};
291
- /**
292
- * @license React
293
- * use-sync-external-store-shim.production.js
294
- *
295
- * Copyright (c) Meta Platforms, Inc. and affiliates.
296
- *
297
- * This source code is licensed under the MIT license found in the
298
- * LICENSE file in the root directory of this source tree.
299
- */
300
- var ce;
301
- function Ue() {
302
- if (ce) return B;
303
- ce = 1;
304
- var e = L;
305
- function t(a, l) {
306
- return a === l && (a !== 0 || 1 / a === 1 / l) || a !== a && l !== l;
307
- }
308
- var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, u = e.useDebugValue;
309
- function g(a, l) {
310
- var c = l(), p = r({ inst: { value: c, getSnapshot: l } }), m = p[0].inst, w = p[1];
311
- return s(
312
- function() {
313
- m.value = c, m.getSnapshot = l, f(m) && w({ inst: m });
314
- },
315
- [a, c, l]
316
- ), o(
317
- function() {
318
- return f(m) && w({ inst: m }), a(function() {
319
- f(m) && w({ inst: m });
320
- });
321
- },
322
- [a]
323
- ), u(c), c;
324
- }
325
- function f(a) {
326
- var l = a.getSnapshot;
327
- a = a.value;
328
- try {
329
- var c = l();
330
- return !n(a, c);
331
- } catch {
332
- return !0;
333
- }
334
- }
335
- function i(a, l) {
336
- return l();
337
- }
338
- var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? i : g;
339
- return B.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, B;
340
- }
341
- var U = {};
342
- /**
343
- * @license React
344
- * use-sync-external-store-shim.development.js
345
- *
346
- * Copyright (c) Meta Platforms, Inc. and affiliates.
347
- *
348
- * This source code is licensed under the MIT license found in the
349
- * LICENSE file in the root directory of this source tree.
350
- */
351
- var le;
352
- function Ye() {
353
- return le || (le = 1, process.env.NODE_ENV !== "production" && (function() {
354
- function e(c, p) {
355
- return c === p && (c !== 0 || 1 / c === 1 / p) || c !== c && p !== p;
356
- }
357
- function t(c, p) {
358
- d || o.startTransition === void 0 || (d = !0, console.error(
359
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
360
- ));
361
- var m = p();
362
- if (!a) {
363
- var w = p();
364
- s(m, w) || (console.error(
365
- "The result of getSnapshot should be cached to avoid an infinite loop"
366
- ), a = !0);
367
- }
368
- w = u({
369
- inst: { value: m, getSnapshot: p }
370
- });
371
- var S = w[0].inst, h = w[1];
372
- return f(
373
- function() {
374
- S.value = m, S.getSnapshot = p, n(S) && h({ inst: S });
375
- },
376
- [c, m, p]
377
- ), g(
378
- function() {
379
- return n(S) && h({ inst: S }), c(function() {
380
- n(S) && h({ inst: S });
381
- });
382
- },
383
- [c]
384
- ), i(m), m;
385
- }
386
- function n(c) {
387
- var p = c.getSnapshot;
388
- c = c.value;
389
- try {
390
- var m = p();
391
- return !s(c, m);
392
- } catch {
393
- return !0;
394
- }
395
- }
396
- function r(c, p) {
397
- return p();
398
- }
399
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
400
- var o = L, s = typeof Object.is == "function" ? Object.is : e, u = o.useState, g = o.useEffect, f = o.useLayoutEffect, i = o.useDebugValue, d = !1, a = !1, l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
401
- U.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : l, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
402
- })()), U;
403
- }
404
- var de;
405
- function we() {
406
- return de || (de = 1, process.env.NODE_ENV === "production" ? N.exports = Ue() : N.exports = Ye()), N.exports;
407
- }
408
- /**
409
- * @license React
410
- * use-sync-external-store-shim/with-selector.production.js
411
- *
412
- * Copyright (c) Meta Platforms, Inc. and affiliates.
413
- *
414
- * This source code is licensed under the MIT license found in the
415
- * LICENSE file in the root directory of this source tree.
416
- */
417
- var fe;
418
- function Je() {
419
- if (fe) return W;
420
- fe = 1;
421
- var e = L, t = we();
422
- function n(i, d) {
423
- return i === d && (i !== 0 || 1 / i === 1 / d) || i !== i && d !== d;
424
- }
425
- var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, u = e.useEffect, g = e.useMemo, f = e.useDebugValue;
426
- return W.useSyncExternalStoreWithSelector = function(i, d, a, l, c) {
427
- var p = s(null);
428
- if (p.current === null) {
429
- var m = { hasValue: !1, value: null };
430
- p.current = m;
431
- } else m = p.current;
432
- p = g(
433
- function() {
434
- function S(y) {
435
- if (!h) {
436
- if (h = !0, C = y, y = l(y), c !== void 0 && m.hasValue) {
437
- var R = m.value;
438
- if (c(R, y))
439
- return b = R;
440
- }
441
- return b = y;
442
- }
443
- if (R = b, r(C, y)) return R;
444
- var v = l(y);
445
- return c !== void 0 && c(R, v) ? (C = y, R) : (C = y, b = v);
446
- }
447
- var h = !1, C, b, x = a === void 0 ? null : a;
448
- return [
449
- function() {
450
- return S(d());
451
- },
452
- x === null ? void 0 : function() {
453
- return S(x());
454
- }
455
- ];
456
- },
457
- [d, a, l, c]
458
- );
459
- var w = o(i, p[0], p[1]);
460
- return u(
461
- function() {
462
- m.hasValue = !0, m.value = w;
463
- },
464
- [w]
465
- ), f(w), w;
466
- }, W;
467
- }
468
- var Y = {};
469
- /**
470
- * @license React
471
- * use-sync-external-store-shim/with-selector.development.js
472
- *
473
- * Copyright (c) Meta Platforms, Inc. and affiliates.
474
- *
475
- * This source code is licensed under the MIT license found in the
476
- * LICENSE file in the root directory of this source tree.
477
- */
478
- var ge;
479
- function Qe() {
480
- return ge || (ge = 1, process.env.NODE_ENV !== "production" && (function() {
481
- function e(i, d) {
482
- return i === d && (i !== 0 || 1 / i === 1 / d) || i !== i && d !== d;
483
- }
484
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
485
- var t = L, n = we(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, u = t.useEffect, g = t.useMemo, f = t.useDebugValue;
486
- Y.useSyncExternalStoreWithSelector = function(i, d, a, l, c) {
487
- var p = s(null);
488
- if (p.current === null) {
489
- var m = { hasValue: !1, value: null };
490
- p.current = m;
491
- } else m = p.current;
492
- p = g(
493
- function() {
494
- function S(y) {
495
- if (!h) {
496
- if (h = !0, C = y, y = l(y), c !== void 0 && m.hasValue) {
497
- var R = m.value;
498
- if (c(R, y))
499
- return b = R;
500
- }
501
- return b = y;
502
- }
503
- if (R = b, r(C, y))
504
- return R;
505
- var v = l(y);
506
- return c !== void 0 && c(R, v) ? (C = y, R) : (C = y, b = v);
507
- }
508
- var h = !1, C, b, x = a === void 0 ? null : a;
509
- return [
510
- function() {
511
- return S(d());
512
- },
513
- x === null ? void 0 : function() {
514
- return S(x());
515
- }
516
- ];
517
- },
518
- [d, a, l, c]
519
- );
520
- var w = o(i, p[0], p[1]);
521
- return u(
522
- function() {
523
- m.hasValue = !0, m.value = w;
524
- },
525
- [w]
526
- ), f(w), w;
527
- }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
528
- })()), Y;
529
- }
530
- var pe;
531
- function Xe() {
532
- return pe || (pe = 1, process.env.NODE_ENV === "production" ? $.exports = Je() : $.exports = Qe()), $.exports;
533
- }
534
- var Ze = Xe();
535
- function et(e, t) {
536
- return e === t;
537
- }
538
- function ve(e, t = (r) => r, n) {
539
- const r = (n == null ? void 0 : n.compare) ?? et, o = se((u) => {
540
- const { unsubscribe: g } = e.subscribe(u);
541
- return g;
542
- }, [e]), s = se(() => e.get(), [e]);
543
- return Ze.useSyncExternalStoreWithSelector(o, s, s, t, r);
544
- }
545
- function tt(e) {
546
- const t = ve(e.source, e.selector, { compare: V });
547
- return typeof e.children == "function" ? e.children(t) : e.children;
548
- }
549
- function nt(e) {
550
- const t = e;
551
- return Object.defineProperty(e, "state", { get() {
552
- return e.get();
553
- } }), "set" in e && (t.setState = e.set.bind(e)), t;
554
- }
555
- function ot(e) {
556
- const { createAtom: t, batch: n } = e, r = t(0);
557
- return {
558
- createOptionsStore: !1,
559
- wrapExternalAtoms: !1,
560
- addSubscription: () => {
561
- throw new Error("Feature not supported in current reactivity implementation");
562
- },
563
- unmount: () => {
564
- throw new Error("Feature not supported in current reactivity implementation");
565
- },
566
- schedule: e.schedule ?? ((o) => queueMicrotask(o)),
567
- batch: n,
568
- untrack: (o) => o(),
569
- createReadonlyAtom: (o, s) => {
570
- const u = (s == null ? void 0 : s.compare) ?? Object.is;
571
- let g = !1, f;
572
- const i = () => {
573
- const a = o();
574
- return (!g || !u(f, a)) && (f = a, g = !0), f;
575
- }, d = t(() => (r.get(), i()), { compare: u });
576
- return {
577
- get: i,
578
- subscribe: d.subscribe.bind(d)
579
- };
580
- },
581
- createWritableAtom: (o, s) => t(o, { compare: s == null ? void 0 : s.compare }),
582
- commit: () => {
583
- r.set((o) => o + 1);
584
- }
585
- };
586
- }
587
- function rt(e, t = Object.is) {
588
- let n = !1, r;
589
- return {
590
- get: e.get,
591
- markCommitted: (o) => {
592
- r = o, n = !0;
593
- },
594
- subscribe: (o) => e.subscribe((s) => {
595
- (!n || !t(r, s)) && o(s);
596
- })
597
- };
598
- }
599
- function st() {
600
- return ot({
601
- createAtom: We,
602
- batch: qe
603
- });
604
- }
605
- function it(e, t) {
606
- return typeof e == "function" ? e(t) : e;
607
- }
608
- function K(e) {
609
- if (Array.isArray(e)) return e.map(K);
610
- if (e && typeof e == "object") {
611
- const t = Object.getPrototypeOf(e);
612
- if (t !== Object.prototype && t !== null) return e;
613
- const n = t === null ? P() : {}, r = Object.keys(e);
614
- for (let o = 0; o < r.length; o++) {
615
- const s = r[o];
616
- Object.defineProperty(n, s, {
617
- configurable: !0,
618
- enumerable: !0,
619
- value: K(e[s]),
620
- writable: !0
621
- });
622
- }
623
- return n;
624
- }
625
- return e;
626
- }
627
- function P() {
628
- return /* @__PURE__ */ Object.create(null);
629
- }
630
- function ne(e, t) {
631
- return Object.prototype.hasOwnProperty.call(e, t);
632
- }
633
- function ut(e, t) {
634
- const n = [], r = (o) => {
635
- o.forEach((s) => {
636
- n.push(s);
637
- const u = t(s);
638
- u.length && r(u);
639
- });
640
- };
641
- return r(e), n;
642
- }
643
- const at = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: o, onBeforeUpdate: s }) => {
644
- let u = [], g;
645
- return (i) => {
646
- o == null || o();
647
- const d = t == null ? void 0 : t(i);
648
- let a = !d || d.length !== (u == null ? void 0 : u.length);
649
- if (!a && d) {
650
- for (let l = 0; l < d.length; l++) if (d[l] !== u[l]) {
651
- a = !0;
652
- break;
653
- }
654
- }
655
- return n == null || n(a), a && (u = d, s == null || s(), g = e(...d ?? []), r == null || r(g)), g;
656
- };
657
- };
658
- function ct(e) {
659
- let t = !1;
660
- return () => {
661
- if (!t) {
662
- t = !0;
663
- return;
664
- }
665
- e();
666
- };
667
- }
668
- const lt = (e, t) => {
669
- for (e = String(e); e.length < t; ) e = " " + e;
670
- return e;
671
- };
672
- function oe({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: o, ...s }) {
673
- let u, g, f = 0, i;
674
- if (process.env.NODE_ENV === "development") {
675
- const { debugAll: c } = o.options, { parentName: p } = re(t, "."), m = o.options[`debug${(p != "table" ? p + "s" : p).replace(p, p.charAt(0).toUpperCase() + p.slice(1))}`], w = e ? o.options[`debug${e.charAt(0).toUpperCase() + e.slice(1)}`] : !1;
676
- i = c || m || w;
677
- }
678
- function d(c, p) {
679
- var w;
680
- const m = f === 0 ? "(1st run)" : "(rerun #" + f + ")";
681
- f++, console.groupCollapsed(`%c⏱ ${lt(`${c.toFixed(1)} ms`, 12)} %c${m}%c ${t}%c ${n ? `(${t.split(".")[0]}Id: ${n})` : ""}`, `font-size: .6rem; font-weight: bold; ${`color: hsl(
682
- ${Math.max(0, Math.min(120 - Math.log10(c) * 60, 120))}deg 100% 31%);`} `, `color: ${f < 2 ? "#FF00FF" : "#FF1493"}`, "color: #666", "color: #87CEEB"), console.info({
683
- feature: e,
684
- state: o.store.state,
685
- deps: (w = s.memoDeps) == null ? void 0 : w.toString()
686
- }), console.trace(), console.groupEnd();
687
- }
688
- const a = r ? () => {
689
- const { schedule: c, untrack: p } = o._reactivity;
690
- c(() => p(() => r()));
691
- } : void 0, l = process.env.NODE_ENV === "development" ? {
692
- onBeforeCompare: () => {
693
- },
694
- onAfterCompare: (c) => {
695
- },
696
- onBeforeUpdate: () => {
697
- i && (u = performance.now());
698
- },
699
- onAfterUpdate: () => {
700
- i && (g = performance.now(), d(Math.round((g - u) * 100) / 100)), a == null || a();
701
- }
702
- } : { onAfterUpdate: a };
703
- return at({
704
- ...s,
705
- ...l
706
- });
707
- }
708
- function re(e, t = "_") {
709
- const [n, r] = e.replace(t, " ").split(" ");
710
- return {
711
- fnKey: r,
712
- fnName: `${n}.${r}`,
713
- parentName: n
714
- };
715
- }
716
- function T(e, t, n) {
717
- for (const [r, { fn: o, memoDeps: s }] of Object.entries(n)) {
718
- const { fnKey: u, fnName: g } = re(r);
719
- t[u] = s ? oe({
720
- memoDeps: s,
721
- fn: o,
722
- fnName: g,
723
- table: t,
724
- feature: e
725
- }) : o;
726
- }
727
- }
728
- function q(e, t, n, r) {
729
- for (const [o, { fn: s, memoDeps: u }] of Object.entries(r)) {
730
- const { fnKey: g, fnName: f } = re(o);
731
- if (u) {
732
- const i = `_memo_${g}`;
733
- t[g] = function(...d) {
734
- if (!this[i]) {
735
- const a = this;
736
- this[i] = oe({
737
- memoDeps: (l) => u(a, l),
738
- fn: (...l) => s(a, ...l),
739
- fnName: f,
740
- objectId: a.id,
741
- table: n,
742
- feature: e
743
- });
744
- }
745
- return this[i](...d);
746
- };
747
- } else t[g] = function(...i) {
748
- return s(this, ...i);
749
- };
750
- }
751
- }
752
- function dt(e) {
753
- return e.row.getValue(e.column.id);
754
- }
755
- function ft(e) {
756
- return e.getValue() ?? e.table.options.renderFallbackValue;
757
- }
758
- function gt(e) {
759
- return {
760
- table: e.table,
761
- column: e.column,
762
- row: e.row,
763
- cell: e,
764
- getValue: () => e.getValue(),
765
- renderValue: () => e.renderValue()
766
- };
767
- }
768
- const pt = { assignCellPrototype: (e, t) => {
769
- q("coreCellsFeature", e, t, {
770
- cell_getValue: { fn: (n) => dt(n) },
771
- cell_renderValue: { fn: (n) => ft(n) },
772
- cell_getContext: {
773
- fn: (n) => gt(n),
774
- memoDeps: (n) => [n]
775
- }
776
- });
777
- } };
778
- function mt(e) {
779
- var t, n;
780
- if (!e._columnPrototype) {
781
- e._columnPrototype = { table: e };
782
- const r = Object.values(e._features);
783
- for (let o = 0; o < r.length; o++) (n = (t = r[o]).assignColumnPrototype) == null || n.call(t, e._columnPrototype, e);
784
- }
785
- return e._columnPrototype;
786
- }
787
- function _t(e, t, n, r) {
788
- const o = {
789
- ...e.getDefaultColumnDef(),
790
- ...t
791
- }, s = o.accessorKey, u = s === void 0 ? void 0 : String(s), g = o.id ?? (u == null ? void 0 : u.replaceAll(".", "_")) ?? (typeof o.header == "string" ? o.header : void 0);
792
- let f;
793
- if (o.accessorFn) f = o.accessorFn;
794
- else if (s !== void 0)
795
- if (typeof s == "string" && s.includes(".")) {
796
- const l = s.split(".");
797
- f = (c) => {
798
- let p = c;
799
- for (let m = 0; m < l.length; m++) {
800
- const w = l[m];
801
- p = p == null ? void 0 : p[w], process.env.NODE_ENV === "development" && p === void 0 && console.warn(`"${w}" in deeply nested key "${s}" returned undefined.`);
802
- }
803
- return p;
804
- };
805
- } else f = (l) => l[o.accessorKey];
806
- if (!g)
807
- throw process.env.NODE_ENV === "development" ? new Error(o.accessorFn ? "coreColumnsFeature require an id when using an accessorFn" : "coreColumnsFeature require an id when using a non-string header") : new Error();
808
- const i = mt(e), d = Object.create(i);
809
- d.accessorFn = f, d.columnDef = o, d.columns = [], d.depth = n, d.id = `${String(g)}`, d.parent = r;
810
- const a = e._columnInstanceInitFns;
811
- for (let l = 0; l < a.length; l++) a[l](d);
812
- return d;
813
- }
814
- function ee(e) {
815
- var t;
816
- return ((t = e.getIsVisible) == null ? void 0 : t.call(e)) ?? !0;
817
- }
818
- function ht(e) {
819
- var t;
820
- return ((t = e.getVisibleLeafColumns) == null ? void 0 : t.call(e)) ?? e.getAllLeafColumns();
821
- }
822
- function ye(e, t) {
823
- var o, s;
824
- const n = e, r = t;
825
- return ((o = n.getOrderColumnsFn) == null ? void 0 : o.call(n)(r)) ?? ((s = n._orderGroupedColumns) == null ? void 0 : s.call(n, r)) ?? t;
826
- }
827
- function wt(e, t, n, r) {
828
- var o;
829
- return ((o = e._orderByColumnPinning) == null ? void 0 : o.call(e, t, n, r)) ?? t;
830
- }
831
- function vt(e, t) {
832
- var n;
833
- return ((n = e._expandRows) == null ? void 0 : n.call(e, t)) ?? t;
834
- }
835
- function yt(e) {
836
- var t;
837
- (t = e.autoResetExpanded) == null || t.call(e);
838
- }
839
- function St(e) {
840
- var t;
841
- (t = e.autoResetPageIndex) == null || t.call(e);
842
- }
843
- function Rt(e) {
844
- var t;
845
- (t = e.autoResetSorting) == null || t.call(e);
846
- }
847
- function bt(e) {
848
- var t;
849
- (t = e.autoResetCellSelection) == null || t.call(e);
850
- }
851
- function Mt(e) {
852
- return [e, ...e.columns.flatMap((t) => t.getFlatColumns())];
853
- }
854
- function Ct(e) {
855
- if (e.columns.length) {
856
- const t = e.columns.flatMap((n) => n.getLeafColumns());
857
- return ye(e.table, t);
858
- }
859
- return [e];
860
- }
861
- function Ot(e) {
862
- return {
863
- header: (t) => {
864
- const n = t.header.column.columnDef;
865
- return n.accessorKey ? n.accessorKey : n.accessorFn ? n.id : null;
866
- },
867
- cell: (t) => {
868
- var n, r;
869
- return ((r = (n = t.renderValue()) == null ? void 0 : n.toString) == null ? void 0 : r.call(n)) ?? null;
870
- },
871
- ...Object.values(e._features).reduce((t, n) => {
872
- var r;
873
- return Object.assign(t, (r = n.getDefaultColumnDef) == null ? void 0 : r.call(n));
874
- }, {}),
875
- ...e.options.defaultColumn
876
- };
877
- }
878
- function Se(e, t, n, r = 0) {
879
- const o = new Array(t.length);
880
- for (let s = 0; s < t.length; s++) {
881
- if (!(s in t)) continue;
882
- const u = t[s], g = _t(e, u, r, n), f = u;
883
- g.columns = f.columns ? Se(e, f.columns, g, r + 1) : [], o[s] = g;
884
- }
885
- return o;
886
- }
887
- function Dt(e) {
888
- return Se(e, e.options.columns);
889
- }
890
- function Et(e) {
891
- return e.getAllColumns().flatMap((t) => t.getFlatColumns());
892
- }
893
- function xt(e) {
894
- const t = P(), n = e.getAllFlatColumns();
895
- for (let r = 0; r < n.length; r++) {
896
- const o = n[r];
897
- t[o.id] = o;
898
- }
899
- return t;
900
- }
901
- function Pt(e) {
902
- const t = e.getAllColumns().flatMap((n) => n.getLeafColumns());
903
- return ye(e, t);
904
- }
905
- function Ft(e) {
906
- const t = P(), n = e.getAllLeafColumns();
907
- for (let r = 0; r < n.length; r++) {
908
- const o = n[r];
909
- t[o.id] = o;
910
- }
911
- return t;
912
- }
913
- function It(e, t) {
914
- const n = e.getAllFlatColumnsById()[t];
915
- return process.env.NODE_ENV === "development" && !n && console.warn(`[Table] Column with id '${t}' does not exist.`), n;
916
- }
917
- const At = {
918
- assignColumnPrototype: (e, t) => {
919
- q("coreColumnsFeature", e, t, {
920
- column_getFlatColumns: {
921
- fn: (n) => Mt(n),
922
- memoDeps: (n) => [n.table.options.columns]
923
- },
924
- column_getLeafColumns: {
925
- fn: (n) => Ct(n),
926
- memoDeps: (n) => {
927
- var r, o;
928
- return [
929
- (r = n.table.atoms.columnOrder) == null ? void 0 : r.get(),
930
- (o = n.table.atoms.grouping) == null ? void 0 : o.get(),
931
- n.table.options.columns,
932
- n.table.options.groupedColumnMode
933
- ];
934
- }
935
- }
936
- });
937
- },
938
- constructTableAPIs: (e) => {
939
- T("coreColumnsFeature", e, {
940
- table_getDefaultColumnDef: {
941
- fn: () => Ot(e),
942
- memoDeps: () => [e.options.defaultColumn]
943
- },
944
- table_getAllColumns: {
945
- fn: () => Dt(e),
946
- memoDeps: () => [e.options.columns]
947
- },
948
- table_getAllFlatColumns: {
949
- fn: () => Et(e),
950
- memoDeps: () => [e.options.columns]
951
- },
952
- table_getAllFlatColumnsById: {
953
- fn: () => xt(e),
954
- memoDeps: () => [e.options.columns]
955
- },
956
- table_getAllLeafColumns: {
957
- fn: () => Pt(e),
958
- memoDeps: () => {
959
- var t, n;
960
- return [
961
- (t = e.atoms.columnOrder) == null ? void 0 : t.get(),
962
- (n = e.atoms.grouping) == null ? void 0 : n.get(),
963
- e.options.columns,
964
- e.options.groupedColumnMode
965
- ];
966
- }
967
- },
968
- table_getAllLeafColumnsById: {
969
- fn: () => Ft(e),
970
- memoDeps: () => [e.getAllLeafColumns()]
971
- },
972
- table_getColumn: { fn: (t) => It(e, t) }
973
- });
974
- }
975
- };
976
- function Vt(e) {
977
- var t, n;
978
- if (!e._headerPrototype) {
979
- e._headerPrototype = { table: e };
980
- const r = Object.values(e._features);
981
- for (let o = 0; o < r.length; o++) (n = (t = r[o]).assignHeaderPrototype) == null || n.call(t, e._headerPrototype, e);
982
- }
983
- return e._headerPrototype;
984
- }
985
- function Re(e, t, n) {
986
- const r = Vt(e), o = Object.create(r);
987
- o.colSpan = 0, o.column = t, o.depth = n.depth, o.headerGroup = null, o.id = n.id ?? t.id, o.index = n.index, o.isPlaceholder = !!n.isPlaceholder, o.placeholderId = n.placeholderId, o.rowSpan = 0, o.subHeaders = [];
988
- const s = e._headerInstanceInitFns;
989
- for (let u = 0; u < s.length; u++) s[u](o);
990
- return o;
991
- }
992
- function be(e, t = 1) {
993
- let n = t;
994
- for (let r = 0; r < e.length; r++) {
995
- const o = e[r];
996
- ee(o) && o.columns.length && (n = Math.max(n, be(o.columns, t + 1)));
997
- }
998
- return n;
999
- }
1000
- function Lt(e, t) {
1001
- return String(t);
1002
- }
1003
- function Tt(e, t, n, r) {
1004
- let o = e ?? "";
1005
- return t && (o = o ? `${o}_${t}` : String(t)), n && (o = o ? `${o}_${n}` : n), r && (o = o ? `${o}_${r}` : r), o;
1006
- }
1007
- function Ht(e, t) {
1008
- let n = 0;
1009
- for (let r = 0; r < e.length; r++) e[r].column === t && n++;
1010
- return n;
1011
- }
1012
- function Me(e, t, n, r, o, s) {
1013
- const u = {
1014
- depth: t,
1015
- id: Lt(r, t),
1016
- headers: []
1017
- }, g = [];
1018
- for (let f = 0; f < e.length; f++) {
1019
- if (!(f in e)) continue;
1020
- const i = e[f], d = g[g.length - 1], a = i.column.depth === u.depth;
1021
- let l, c = !1;
1022
- if (a && i.column.parent ? l = i.column.parent : (l = i.column, c = !0), d && d.column === l) d.subHeaders.push(i);
1023
- else {
1024
- const p = Re(n, l, {
1025
- id: Tt(r, t, l.id, i.id),
1026
- isPlaceholder: c,
1027
- placeholderId: c ? String(Ht(g, l)) : void 0,
1028
- depth: t,
1029
- index: g.length
1030
- });
1031
- p.subHeaders.push(i), g.push(p);
1032
- }
1033
- u.headers.push(i), i.headerGroup = u;
1034
- }
1035
- for (let f = 0; f < s.length; f++) s[f](u);
1036
- o.push(u), t > 0 && Me(g, t - 1, n, r, o, s);
1037
- }
1038
- function Ce(e) {
1039
- for (let t = 0; t < e.length; t++) {
1040
- const n = e[t];
1041
- if (!ee(n.column)) continue;
1042
- let r = 0;
1043
- if (n.subHeaders.length) {
1044
- Ce(n.subHeaders);
1045
- for (let o = 0; o < n.subHeaders.length; o++) {
1046
- const s = n.subHeaders[o];
1047
- ee(s.column) && (r += s.colSpan);
1048
- }
1049
- } else r = 1;
1050
- if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
1051
- let o = 1, s = n.subHeaders[0];
1052
- for (; s; )
1053
- s.rowSpan = 0, o++, s = s.subHeaders.length === 1 && s.subHeaders[0].column === n.column ? s.subHeaders[0] : void 0;
1054
- n.rowSpan = o;
1055
- } else n.rowSpan = 1;
1056
- }
1057
- }
1058
- function jt(e, t, n, r) {
1059
- var f;
1060
- const o = be(e), s = [], u = n._headerGroupInstanceInitFns, g = new Array(t.length);
1061
- for (let i = 0; i < t.length; i++)
1062
- i in t && (g[i] = Re(n, t[i], {
1063
- depth: o,
1064
- index: i
1065
- }));
1066
- return Me(g, o - 1, n, r, s, u), s.reverse(), Ce(((f = s[0]) == null ? void 0 : f.headers) ?? []), s;
1067
- }
1068
- function Oe(e, t) {
1069
- for (let n = 0; n < e.subHeaders.length; n++) Oe(e.subHeaders[n], t);
1070
- t.push(e);
1071
- }
1072
- function Gt(e) {
1073
- const t = [];
1074
- return Oe(e, t), t;
1075
- }
1076
- function $t(e) {
1077
- return {
1078
- column: e.column,
1079
- header: e,
1080
- table: e.column.table
1081
- };
1082
- }
1083
- function Nt(e) {
1084
- return jt(e.getAllColumns(), wt(e, ht(e), (t) => t.id), e);
1085
- }
1086
- function kt(e) {
1087
- return [...e.getHeaderGroups()].reverse();
1088
- }
1089
- function zt(e) {
1090
- const t = e.getHeaderGroups(), n = [];
1091
- for (let r = 0; r < t.length; r++) {
1092
- const o = t[r].headers;
1093
- for (let s = 0; s < o.length; s++) n.push(o[s]);
1094
- }
1095
- return n;
1096
- }
1097
- function Kt(e) {
1098
- var r;
1099
- const t = ((r = e.getHeaderGroups()[0]) == null ? void 0 : r.headers) ?? [], n = [];
1100
- for (let o = 0; o < t.length; o++) {
1101
- const s = t[o].getLeafHeaders();
1102
- for (let u = 0; u < s.length; u++) n.push(s[u]);
1103
- }
1104
- return n;
1105
- }
1106
- const qt = {
1107
- assignHeaderPrototype: (e, t) => {
1108
- q("coreHeadersFeature", e, t, {
1109
- header_getLeafHeaders: {
1110
- fn: (n) => Gt(n),
1111
- memoDeps: (n) => [n.column.table.options.columns]
1112
- },
1113
- header_getContext: {
1114
- fn: (n) => $t(n),
1115
- memoDeps: (n) => [n.column.table.options.columns]
1116
- }
1117
- });
1118
- },
1119
- constructTableAPIs: (e) => {
1120
- T("coreHeadersFeature", e, {
1121
- table_getHeaderGroups: {
1122
- fn: () => Nt(e),
1123
- memoDeps: () => {
1124
- var t, n, r, o;
1125
- return [
1126
- e.options.columns,
1127
- (t = e.atoms.columnOrder) == null ? void 0 : t.get(),
1128
- (n = e.atoms.grouping) == null ? void 0 : n.get(),
1129
- (r = e.atoms.columnPinning) == null ? void 0 : r.get(),
1130
- (o = e.atoms.columnVisibility) == null ? void 0 : o.get(),
1131
- e.options.groupedColumnMode
1132
- ];
1133
- }
1134
- },
1135
- table_getFooterGroups: {
1136
- fn: () => kt(e),
1137
- memoDeps: () => [e.getHeaderGroups()]
1138
- },
1139
- table_getFlatHeaders: {
1140
- fn: () => zt(e),
1141
- memoDeps: () => [e.getHeaderGroups()]
1142
- },
1143
- table_getLeafHeaders: {
1144
- fn: () => Kt(e),
1145
- memoDeps: () => [e.getHeaderGroups()]
1146
- }
1147
- });
1148
- }
1149
- };
1150
- function Wt(e) {
1151
- var t, n;
1152
- if (!e._rowPrototype) {
1153
- e._rowPrototype = { table: e };
1154
- const r = Object.values(e._features);
1155
- for (let o = 0; o < r.length; o++) (n = (t = r[o]).assignRowPrototype) == null || n.call(t, e._rowPrototype, e);
1156
- }
1157
- return e._rowPrototype;
1158
- }
1159
- const Bt = (e, t, n, r, o, s, u) => {
1160
- const g = Wt(e), f = Object.create(g);
1161
- f._displayIndexCache = -1, f._uniqueValuesCache = P(), f._valuesCache = P(), f.depth = o, f.id = t, f.index = r, f.original = n, f.parentId = u, f.subRows = [];
1162
- const i = e._rowInstanceInitFns;
1163
- for (let d = 0; d < i.length; d++) i[d](f);
1164
- return f;
1165
- };
1166
- function Ut() {
1167
- return (e) => oe({
1168
- feature: "coreRowModelsFeature",
1169
- table: e,
1170
- fnName: "table.getCoreRowModel",
1171
- memoDeps: () => [e.options.data],
1172
- fn: () => Yt(e, e.options.data),
1173
- onAfterUpdate: ct(() => {
1174
- yt(e), St(e), Rt(e), bt(e);
1175
- })
1176
- });
1177
- }
1178
- function De(e, t, n, r = 0, o) {
1179
- var u;
1180
- const s = [];
1181
- for (let g = 0; g < n.length; g++) {
1182
- const f = n[g], i = Bt(e, e.getRowId(f, g, o), f, g, r, void 0, o == null ? void 0 : o.id);
1183
- t.flatRows.push(i), t.rowsById[i.id] = i, s.push(i), e.options.getSubRows && (i.originalSubRows = e.options.getSubRows(f, g), (u = i.originalSubRows) != null && u.length && (i.subRows = De(e, t, i.originalSubRows, r + 1, i)));
1184
- }
1185
- return s;
1186
- }
1187
- function Yt(e, t) {
1188
- const n = {
1189
- rows: [],
1190
- flatRows: [],
1191
- rowsById: P()
1192
- };
1193
- return n.rows = De(e, n, t), n;
1194
- }
1195
- function Jt(e) {
1196
- var t, n;
1197
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = ((n = (t = e.options.features).coreRowModel) == null ? void 0 : n.call(t, e)) ?? Ut()(e)), e._rowModels.coreRowModel();
1198
- }
1199
- function Qt(e) {
1200
- return e.getCoreRowModel();
1201
- }
1202
- function Xt(e) {
1203
- var t, n;
1204
- return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = (n = (t = e.options.features).filteredRowModel) == null ? void 0 : n.call(t, e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
1205
- }
1206
- function Zt(e) {
1207
- return e.getFilteredRowModel();
1208
- }
1209
- function en(e) {
1210
- var t, n;
1211
- return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = (n = (t = e.options.features).groupedRowModel) == null ? void 0 : n.call(t, e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
1212
- }
1213
- function tn(e) {
1214
- return e.getGroupedRowModel();
1215
- }
1216
- function nn(e) {
1217
- var t, n;
1218
- return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = (n = (t = e.options.features).sortedRowModel) == null ? void 0 : n.call(t, e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
1219
- }
1220
- function on(e) {
1221
- return e.getSortedRowModel();
1222
- }
1223
- function rn(e) {
1224
- var t, n;
1225
- return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = (n = (t = e.options.features).expandedRowModel) == null ? void 0 : n.call(t, e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
1226
- }
1227
- function sn(e) {
1228
- return e.getExpandedRowModel();
1229
- }
1230
- function un(e) {
1231
- var t, n;
1232
- return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = (n = (t = e.options.features).paginatedRowModel) == null ? void 0 : n.call(t, e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
1233
- }
1234
- function an(e) {
1235
- return e.getPaginatedRowModel();
1236
- }
1237
- const cn = { constructTableAPIs: (e) => {
1238
- T("coreRowModelsFeature", e, {
1239
- table_getCoreRowModel: { fn: () => Jt(e) },
1240
- table_getPreFilteredRowModel: { fn: () => Qt(e) },
1241
- table_getFilteredRowModel: { fn: () => Xt(e) },
1242
- table_getPreGroupedRowModel: { fn: () => Zt(e) },
1243
- table_getGroupedRowModel: { fn: () => en(e) },
1244
- table_getPreSortedRowModel: { fn: () => tn(e) },
1245
- table_getSortedRowModel: { fn: () => nn(e) },
1246
- table_getPreExpandedRowModel: { fn: () => on(e) },
1247
- table_getExpandedRowModel: { fn: () => rn(e) },
1248
- table_getPrePaginatedRowModel: { fn: () => sn(e) },
1249
- table_getPaginatedRowModel: { fn: () => un(e) },
1250
- table_getRowModel: { fn: () => an(e) }
1251
- });
1252
- } };
1253
- function ln(e) {
1254
- var t, n;
1255
- if (!e._cellPrototype) {
1256
- e._cellPrototype = { table: e };
1257
- const r = Object.values(e._features);
1258
- for (let o = 0; o < r.length; o++) (n = (t = r[o]).assignCellPrototype) == null || n.call(t, e._cellPrototype, e);
1259
- }
1260
- return e._cellPrototype;
1261
- }
1262
- function dn(e, t, n) {
1263
- const r = ln(n), o = Object.create(r);
1264
- o.column = e, o.id = `${t.id}_${e.id}`, o.row = t;
1265
- const s = n._cellInstanceInitFns;
1266
- for (let u = 0; u < s.length; u++) s[u](o);
1267
- return o;
1268
- }
1269
- function fn(e) {
1270
- const t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
1271
- return t[n] === e ? n : -1;
1272
- }
1273
- function gn(e) {
1274
- const t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? vt(e, t).rows : t.rows;
1275
- for (let r = 0; r < n.length; r++) n[r]._displayIndexCache = r;
1276
- return n;
1277
- }
1278
- function pn(e, t) {
1279
- if (ne(e._valuesCache, t)) return e._valuesCache[t];
1280
- const n = e.table.getColumn(t);
1281
- if (n != null && n.accessorFn)
1282
- return e._valuesCache[t] = n.accessorFn(e.original, e.index), e._valuesCache[t];
1283
- }
1284
- function mn(e, t) {
1285
- if (ne(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
1286
- const n = e.table.getColumn(t);
1287
- if (n != null && n.accessorFn)
1288
- return n.columnDef.getUniqueValues ? (e._uniqueValuesCache[t] = n.columnDef.getUniqueValues(e.original, e.index), e._uniqueValuesCache[t]) : (e._uniqueValuesCache[t] = [e.getValue(t)], e._uniqueValuesCache[t]);
1289
- }
1290
- function _n(e, t) {
1291
- return e.getValue(t) ?? e.table.options.renderFallbackValue;
1292
- }
1293
- function hn(e) {
1294
- return ut(e.subRows, (t) => t.subRows);
1295
- }
1296
- function wn(e) {
1297
- const t = e.getCoreRowModel().flatRows;
1298
- let n = 0;
1299
- for (let r = 0; r < t.length; r++) n = Math.max(n, t[r].depth);
1300
- return n;
1301
- }
1302
- function vn(e) {
1303
- if (e.parentId)
1304
- return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
1305
- }
1306
- function yn(e) {
1307
- const t = [];
1308
- let n = e;
1309
- for (; ; ) {
1310
- const r = n.getParentRow();
1311
- if (!r) break;
1312
- t.push(r), n = r;
1313
- }
1314
- return t.reverse();
1315
- }
1316
- function Sn(e) {
1317
- const t = e.table.getAllLeafColumns();
1318
- let n = e._cellsCache;
1319
- n || (n = e._cellsCache = /* @__PURE__ */ new WeakMap());
1320
- const r = new Array(t.length);
1321
- for (let o = 0; o < t.length; o++) {
1322
- const s = t[o];
1323
- let u = n.get(s);
1324
- u || (u = dn(s, e, e.table), n.set(s, u)), r[o] = u;
1325
- }
1326
- return r;
1327
- }
1328
- function Rn(e) {
1329
- const t = P(), n = e.getAllCells();
1330
- for (let r = 0; r < n.length; r++) {
1331
- const o = n[r];
1332
- t[o.column.id] = o;
1333
- }
1334
- return t;
1335
- }
1336
- function bn(e, t, n, r) {
1337
- var o, s;
1338
- return ((s = (o = t.options).getRowId) == null ? void 0 : s.call(o, e, n, r)) ?? (r ? `${r.id}.${n}` : String(n));
1339
- }
1340
- function Mn(e, t, n) {
1341
- let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
1342
- if (!r && (r = e.getCoreRowModel().rowsById[t], !r))
1343
- throw process.env.NODE_ENV === "development" ? new Error(`getRow could not find row with ID: ${t}`) : new Error();
1344
- return r;
1345
- }
1346
- const Cn = {
1347
- assignRowPrototype: (e, t) => {
1348
- q("coreRowsFeature", e, t, {
1349
- row_getDisplayIndex: { fn: (n) => fn(n) },
1350
- row_getAllCellsByColumnId: {
1351
- fn: (n) => Rn(n),
1352
- memoDeps: (n) => [n.getAllCells()]
1353
- },
1354
- row_getAllCells: {
1355
- fn: (n) => Sn(n),
1356
- memoDeps: (n) => [n.table.getAllLeafColumns()]
1357
- },
1358
- row_getLeafRows: {
1359
- fn: (n) => hn(n),
1360
- memoDeps: (n) => [n.subRows]
1361
- },
1362
- row_getParentRow: { fn: (n) => vn(n) },
1363
- row_getParentRows: { fn: (n) => yn(n) },
1364
- row_getUniqueValues: { fn: (n, r) => mn(n, r) },
1365
- row_getValue: { fn: (n, r) => pn(n, r) },
1366
- row_renderValue: { fn: (n, r) => _n(n, r) }
1367
- });
1368
- },
1369
- constructTableAPIs: (e) => {
1370
- T("coreRowsFeature", e, {
1371
- table_getRowsInDisplayOrder: {
1372
- fn: () => gn(e),
1373
- memoDeps: () => {
1374
- var t;
1375
- return [
1376
- e.getPrePaginatedRowModel().rows,
1377
- e.options.paginateExpandedRows,
1378
- e.options.paginateExpandedRows === !1 ? (t = e.atoms.expanded) == null ? void 0 : t.get() : void 0
1379
- ];
1380
- }
1381
- },
1382
- table_getRowId: { fn: (t, n, r) => bn(t, e, n, r) },
1383
- table_getRow: { fn: (t, n) => Mn(e, t, n) },
1384
- table_getMaxSubRowDepth: {
1385
- fn: () => wn(e),
1386
- memoDeps: () => [e.getCoreRowModel()]
1387
- }
1388
- });
1389
- }
1390
- };
1391
- function Ee(e, t, n = (r, o) => r === o) {
1392
- const r = t === void 0 ? e.options.state : t;
1393
- e._reactivity.batch(() => {
1394
- if (r) for (const o in r) {
1395
- const s = e.baseAtoms[o];
1396
- if (!s) continue;
1397
- const u = r[o], g = u === void 0 ? e.initialState[o] : u;
1398
- n(e._reactivity.untrack(() => s.get()), g) || s.set(() => g);
1399
- }
1400
- });
1401
- }
1402
- function xe(e, t, n = (r, o) => r === o) {
1403
- e._reactivity.batch(() => {
1404
- var r, o;
1405
- Ee(e, t, n), (o = (r = e._reactivity).commit) == null || o.call(r);
1406
- });
1407
- }
1408
- function On(e) {
1409
- var r, o;
1410
- const t = K(e.initialState);
1411
- e._reactivity.batch(() => {
1412
- const s = Object.keys(t);
1413
- for (let u = 0; u < s.length; u++) {
1414
- const g = s[u];
1415
- e.baseAtoms[g].set(t[g]);
1416
- }
1417
- });
1418
- const n = Object.values(e._features);
1419
- for (let s = 0; s < n.length; s++) (o = (r = n[s]).resetTableInstanceData) == null || o.call(r, e);
1420
- }
1421
- function Dn(e, t) {
1422
- const { features: n, atoms: r, initialState: o } = e.options;
1423
- if (!e.options.mergeOptions) return {
1424
- ...e.options,
1425
- ...t,
1426
- features: n,
1427
- atoms: r,
1428
- initialState: o
1429
- };
1430
- const s = e.options.mergeOptions(e.options, t), u = { ...Object.getOwnPropertyDescriptors(s) };
1431
- return Object.defineProperties(Object.create(Object.getPrototypeOf(s)), {
1432
- ...u,
1433
- features: {
1434
- value: n,
1435
- enumerable: !0,
1436
- configurable: !0,
1437
- writable: !0
1438
- },
1439
- atoms: {
1440
- value: r,
1441
- enumerable: !0,
1442
- configurable: !0,
1443
- writable: !0
1444
- },
1445
- initialState: {
1446
- value: o,
1447
- enumerable: !0,
1448
- configurable: !0,
1449
- writable: !0
1450
- }
1451
- });
1452
- }
1453
- function Pe(e, t, n) {
1454
- const r = Dn(e, it(t, e.options));
1455
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, (n == null ? void 0 : n.syncExternalState) !== !1 && xe(e, r.state ?? null);
1456
- }
1457
- const En = { constructTableAPIs: (e) => {
1458
- T("coreTablesFeature", e, {
1459
- table_reset: { fn: () => On(e) },
1460
- table_setOptions: { fn: (t) => Pe(e, t) }
1461
- });
1462
- } }, xn = {
1463
- coreCellsFeature: pt,
1464
- coreColumnsFeature: At,
1465
- coreHeadersFeature: qt,
1466
- coreRowModelsFeature: cn,
1467
- coreRowsFeature: Cn,
1468
- coreTablesFeature: En
1469
- };
1470
- function Pn(e, t = {}) {
1471
- return Object.values(e).forEach((n) => {
1472
- var r;
1473
- t = ((r = n.getInitialState) == null ? void 0 : r.call(n, t)) ?? t;
1474
- }), K(t);
1475
- }
1476
- function Fn(e) {
1477
- var y, R;
1478
- const t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: r, coreRowModel: o, expandedRowModel: s, facetedMinMaxValues: u, facetedRowModel: g, facetedUniqueValues: f, filterFns: i, filterMeta: d, filteredRowModel: a, groupedRowModel: l, paginatedRowModel: c, sortFns: p, sortedRowModel: m, tableMeta: w, ...S } = e.features, h = {
1479
- _cellInstanceInitFns: [],
1480
- _columnInstanceInitFns: [],
1481
- _features: {
1482
- ...xn,
1483
- ...S
1484
- },
1485
- _headerGroupInstanceInitFns: [],
1486
- _headerInstanceInitFns: [],
1487
- _reactivity: t,
1488
- _rowInstanceInitFns: [],
1489
- _rowModelFns: {
1490
- aggregationFns: n,
1491
- filterFns: i,
1492
- sortFns: p
1493
- },
1494
- _rowModels: {},
1495
- atoms: {},
1496
- baseAtoms: {}
1497
- }, C = Object.values(h._features), b = {
1498
- ...C.reduce((v, _) => {
1499
- var M;
1500
- return Object.assign(v, (M = _.getDefaultTableOptions) == null ? void 0 : M.call(_, h));
1501
- }, {}),
1502
- ...e
1503
- };
1504
- if (t.wrapExternalAtoms && b.atoms) for (const [v, _] of Object.entries(b.atoms)) {
1505
- const M = _, O = t.createWritableAtom(M.get(), { debugName: `externalAtom/${v}` });
1506
- b.atoms[v] = O;
1507
- let F = !1;
1508
- const A = M.subscribe((I) => {
1509
- F || O.set(I);
1510
- }), H = O.subscribe((I) => {
1511
- F = !0, M.set(I), F = !1;
1512
- });
1513
- t.addSubscription(A), t.addSubscription(H);
1514
- }
1515
- t.createOptionsStore ? (h.optionsStore = t.createWritableAtom(b, { debugName: "table/optionsStore" }), Object.defineProperty(h, "options", {
1516
- configurable: !0,
1517
- enumerable: !0,
1518
- get() {
1519
- return h.optionsStore.get();
1520
- },
1521
- set(v) {
1522
- h.optionsStore.set(() => v);
1523
- }
1524
- })) : h.options = b, h.initialState = Pn(h._features, h.options.initialState);
1525
- const x = Object.keys(h.initialState);
1526
- for (let v = 0; v < x.length; v++) {
1527
- const _ = x[v];
1528
- h.baseAtoms[_] = t.createWritableAtom(h.initialState[_], { debugName: `table/baseAtoms/${_}` }), h.atoms[_] = t.createReadonlyAtom(() => {
1529
- var H;
1530
- const M = h.options, O = (H = M.atoms) == null ? void 0 : H[_], F = O ? O.get() : h.baseAtoms[_].get();
1531
- if (O) return F;
1532
- const A = M.state;
1533
- if (A && ne(A, _)) {
1534
- const I = A[_];
1535
- return I === void 0 ? h.initialState[_] : I;
1536
- }
1537
- return F;
1538
- }, { debugName: `table/atoms/${_}` });
1539
- }
1540
- Ee(h), h.store = nt(t.createReadonlyAtom(() => {
1541
- const v = {};
1542
- for (let _ = 0; _ < x.length; _++) {
1543
- const M = x[_];
1544
- v[M] = h.atoms[M].get();
1545
- }
1546
- return v;
1547
- }, {
1548
- compare: V,
1549
- debugName: "table/store"
1550
- }));
1551
- for (let v = 0; v < C.length; v++) {
1552
- const _ = C[v];
1553
- (y = _.initTableInstanceData) == null || y.call(_, h), _.initCellInstanceData && h._cellInstanceInitFns.push(_.initCellInstanceData.bind(_)), _.initColumnInstanceData && h._columnInstanceInitFns.push(_.initColumnInstanceData.bind(_)), _.initHeaderGroupInstanceData && h._headerGroupInstanceInitFns.push(_.initHeaderGroupInstanceData.bind(_)), _.initHeaderInstanceData && h._headerInstanceInitFns.push(_.initHeaderInstanceData.bind(_)), _.initRowInstanceData && h._rowInstanceInitFns.push(_.initRowInstanceData.bind(_)), (R = _.constructTableAPIs) == null || R.call(_, h);
1554
- }
1555
- if (process.env.NODE_ENV === "development" && (e.debugAll || e.debugTable)) {
1556
- const v = Object.keys(h._features), _ = Object.entries({
1557
- coreRowModel: o,
1558
- filteredRowModel: a,
1559
- groupedRowModel: l,
1560
- sortedRowModel: m,
1561
- expandedRowModel: s,
1562
- paginatedRowModel: c,
1563
- facetedRowModel: g,
1564
- facetedMinMaxValues: u,
1565
- facetedUniqueValues: f
1566
- }).filter(([, O]) => O).map(([O]) => O), M = Object.keys(h.initialState);
1567
- console.log(`Constructing Table Instance
1568
-
1569
- Features: ${v.join(`
1570
- `)}
1571
-
1572
- Row Models: ${_.length ? _.join(`
1573
- `) : "(none)"}
1574
-
1575
- States: ${M.join(`
1576
- `)}
1577
- `, { table: h });
1578
- }
1579
- return h;
1580
- }
1581
- const In = typeof window > "u" ? Ae : Ve;
1582
- function An(e, t) {
1583
- const [{ table: n, rootSource: r }] = Ie(() => {
1584
- const f = Fn({
1585
- ...e,
1586
- features: {
1587
- coreReactivityFeature: st(),
1588
- ...e.features
1589
- }
1590
- });
1591
- return f.Subscribe = ((i) => tt({
1592
- ...i,
1593
- source: i.source ?? f.store
1594
- })), f.FlexRender = $e, {
1595
- table: f,
1596
- rootSource: rt(f.store, V)
1597
- };
1598
- }), o = n;
1599
- Pe(o, (f) => ({
1600
- ...f,
1601
- ...e
1602
- }), { syncExternalState: !1 });
1603
- const s = o.options.state, u = r.get(), g = ve(r, t, { compare: V });
1604
- return In(() => {
1605
- r.markCommitted(u), xe(o, s ?? null, V);
1606
- }), me(() => ({
1607
- ...n,
1608
- options: e,
1609
- state: g
1610
- }), [
1611
- n,
1612
- e,
1613
- g
1614
- ]);
1615
- }
1616
- const Vn = te(
1617
- [
1618
- "ds:rounded-[var(--radius-md)] ds:bg-[color:var(--background)] ds:shadow-[var(--shadow-sm)]",
1619
- // The header and totals are sticky, so keyboard focus must not land under
1620
- // them when the grid scrolls a control into view.
1621
- "ds:[scroll-padding-block:calc(var(--min-target-size)*2)]",
1622
- // The same softened line as DataTable: half-strength `--border`, or 35%
1623
- // on the accessible themes, where `--border` is a full-contrast edge.
1624
- "ds:[--data-grid-line:color-mix(in_srgb,var(--border)_var(--data-grid-border-mix,50%),transparent)]"
1625
- ].join(" "),
1626
- {
1627
- variants: {
1628
- // The same, for pinned columns.
1629
- pinned: {
1630
- true: "ds:[scroll-padding-inline:calc(var(--spacing-lg)*6)]",
1631
- false: ""
1632
- }
1633
- },
1634
- defaultVariants: { pinned: !1 }
1635
- }
1636
- ), Ln = te(
1637
- "ds:w-full ds:border-separate ds:[border-spacing:0] ds:[&_tbody_tr:last-child>*]:border-b-0"
1638
- ), J = te(
1639
- "ds:h-[var(--min-target-size)] ds:border-[color:var(--data-grid-line)] ds:px-[var(--spacing-md)] ds:py-[var(--spacing-sm)]",
1640
- {
1641
- variants: {
1642
- section: {
1643
- head: [
1644
- "ds:sticky ds:top-0 ds:z-[2] ds:border-b ds:align-bottom ds:bg-[color:var(--background)]",
1645
- // Opaque background under the tint: the dark header surface is
1646
- // translucent, and rows scroll beneath this cell.
1647
- "ds:[background-image:linear-gradient(var(--data-grid-header-surface,var(--muted)),var(--data-grid-header-surface,var(--muted)))]",
1648
- // The eyebrow, as DataTable's header. CJK has no capitals to track.
1649
- "ds:[font-size:var(--data-grid-eyebrow-size,var(--font-size-xs))] ds:[font-weight:var(--font-weight-bold)] ds:uppercase ds:tracking-[0.04em] ds:text-[color:var(--data-grid-eyebrow-ink,var(--muted-foreground))]",
1650
- "ds:[&:lang(ja)]:tracking-normal ds:[&:lang(ko)]:tracking-normal ds:[&:lang(zh)]:tracking-normal"
1651
- ].join(" "),
1652
- body: "type-body-sm ds:border-b ds:bg-[color:var(--background)] ds:align-middle",
1653
- // Not `type-body-sm`: that class would win over the totals' weight.
1654
- foot: "ds:sticky ds:bottom-0 ds:z-[2] ds:border-t ds:bg-[color:var(--muted)] ds:align-middle ds:[font-size:var(--font-size-sm)] ds:[font-weight:var(--font-weight-semibold)]"
1655
- },
1656
- align: {
1657
- start: "ds:text-start",
1658
- end: "ds:text-end"
1659
- },
1660
- pin: {
1661
- none: "",
1662
- start: "ds:sticky ds:start-0 ds:border-e",
1663
- end: "ds:sticky ds:end-0 ds:border-s"
1664
- }
1665
- },
1666
- compoundVariants: [
1667
- { section: "body", pin: ["start", "end"], className: "ds:z-[1]" },
1668
- {
1669
- section: ["head", "foot"],
1670
- pin: ["start", "end"],
1671
- className: "ds:z-[3]"
1672
- }
1673
- ],
1674
- defaultVariants: { align: "start", pin: "none" }
1675
- }
1676
- ), Tn = {};
1677
- function Nn({
1678
- columns: e,
1679
- rows: t,
1680
- getRowId: n,
1681
- caption: r,
1682
- className: o,
1683
- ...s
1684
- }) {
1685
- const u = Le(), g = me(
1686
- () => e.map((a) => ({
1687
- id: a.id,
1688
- accessorFn: (l) => l,
1689
- header: () => a.header,
1690
- cell: ({ row: l }) => a.cell(l.original),
1691
- footer: () => a.footer
1692
- })),
1693
- [e]
1694
- ), f = An({
1695
- features: Tn,
1696
- columns: g,
1697
- data: t,
1698
- getRowId: (a) => n(a)
1699
- }), i = e.some((a) => a.footer !== void 0), d = e.some((a) => a.pin !== void 0);
1700
- return /* @__PURE__ */ D(
1701
- Te,
1702
- {
1703
- type: "native",
1704
- orientation: "both",
1705
- role: "group",
1706
- "aria-labelledby": u,
1707
- "data-component": "data-grid",
1708
- className: Vn({ pinned: d, className: o }),
1709
- ...s,
1710
- children: /* @__PURE__ */ Fe("table", { className: Ln(), children: [
1711
- /* @__PURE__ */ D("caption", { id: u, className: "ds:sr-only", children: r }),
1712
- /* @__PURE__ */ D("thead", { children: f.getHeaderGroups().map((a) => /* @__PURE__ */ D("tr", { children: a.headers.map((l, c) => /* @__PURE__ */ D(
1713
- "th",
1714
- {
1715
- scope: "col",
1716
- "aria-label": e[c].headerLabel,
1717
- className: J({
1718
- section: "head",
1719
- align: e[c].align,
1720
- pin: e[c].pin
1721
- }),
1722
- children: e[c].header
1723
- },
1724
- l.id
1725
- )) }, a.id)) }),
1726
- /* @__PURE__ */ D("tbody", { children: f.getRowModel().rows.map((a) => /* @__PURE__ */ D("tr", { children: e.map((l, c) => /* @__PURE__ */ D(
1727
- c === 0 ? "th" : "td",
1728
- {
1729
- scope: c === 0 ? "row" : void 0,
1730
- className: J({
1731
- section: "body",
1732
- align: l.align,
1733
- pin: l.pin
1734
- }),
1735
- children: l.cell(a.original)
1736
- },
1737
- l.id
1738
- )) }, a.id)) }),
1739
- i ? /* @__PURE__ */ D("tfoot", { children: /* @__PURE__ */ D("tr", { children: e.map((a, l) => /* @__PURE__ */ D(
1740
- l === 0 ? "th" : "td",
1741
- {
1742
- scope: l === 0 ? "row" : void 0,
1743
- className: J({
1744
- section: "foot",
1745
- align: a.align,
1746
- pin: a.pin
1747
- }),
1748
- children: a.footer
1749
- },
1750
- a.id
1751
- )) }) }) : null
1752
- ] })
1753
- }
1754
- );
1755
- }
1756
- const kn = {
1757
- id: "data-grid",
1758
- capabilities: [],
1759
- state: {},
1760
- actions: {},
1761
- domHooks: {
1762
- root: {
1763
- attr: "data-component",
1764
- value: "data-grid",
1765
- description: "Marks the element as a kit DataGrid."
1766
- }
1767
- }
1768
- };
1769
- export {
1770
- Nn as D,
1771
- kn as d
1772
- };
1773
- //# sourceMappingURL=data-grid.agent-CASyEAnb.js.map