@globalpayments/vega 2.94.0 → 2.95.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.
- package/dist/cjs/{app-globals-d05c3410.js → app-globals-76815382.js} +1 -1
- package/dist/cjs/{child-nodes-event-prevent-slimmer-e67ee84c.js → child-nodes-event-prevent-slimmer-e0ac8467.js} +1 -1
- package/dist/cjs/{event-emit-slimmer-d234a619.js → event-emit-slimmer-34aa195e.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{internal-vega-event-manager-13c4012b.js → internal-vega-event-manager-7003c84a.js} +10 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/shared-backdrop-manager-71e54fdb.js +199 -0
- package/dist/cjs/{token-extension-ea891d54.js → token-extension-d123d9d0.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +2 -2
- package/dist/cjs/vega-app-footer.cjs.entry.js +2 -2
- package/dist/cjs/vega-app-header-button.cjs.entry.js +3 -3
- package/dist/cjs/vega-banner.cjs.entry.js +2 -2
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-circle.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
- package/dist/cjs/vega-button.cjs.entry.js +3 -3
- package/dist/cjs/vega-calendar_5.cjs.entry.js +3 -3
- package/dist/cjs/vega-carousel.cjs.entry.js +2 -2
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-chip.cjs.entry.js +3 -3
- package/dist/cjs/vega-code-block.cjs.entry.js +3 -3
- package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-color-swatch.cjs.entry.js +2 -2
- package/dist/cjs/vega-combo-box.cjs.entry.js +22 -4
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-dialog_2.cjs.entry.js +160 -70
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +14 -9
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +2 -2
- package/dist/cjs/vega-form.cjs.entry.js +3 -3
- package/dist/cjs/vega-image-uploader.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-numeric.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-passcode.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-select.cjs.entry.js +54 -5
- package/dist/cjs/vega-input.cjs.entry.js +2 -2
- package/dist/cjs/vega-item-toggle.cjs.entry.js +2 -2
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +32 -193
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
- package/dist/cjs/vega-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +13 -3
- package/dist/cjs/vega-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +3 -3
- package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +2 -2
- package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +2 -2
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +2 -2
- package/dist/cjs/vega-segment-control.cjs.entry.js +2 -2
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +2 -2
- package/dist/cjs/vega-signature-capture.cjs.entry.js +2 -2
- package/dist/cjs/vega-stepper.cjs.entry.js +3 -3
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-table_11.cjs.entry.js +3 -3
- package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/vega.cjs.js +4 -4
- package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.js +5 -1
- package/dist/collection/components/vega-combo-box/vega-combo-box.js +52 -1
- package/dist/collection/components/vega-dialog/vega-dialog.js +1 -1
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-render-mode-controller.js +7 -6
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +6 -1
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.js +11 -1
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-items-slot-controler.js +23 -2
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +4 -0
- package/dist/collection/components/vega-input-select/vega-input-select.js +53 -2
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-backdrop-manager.js +141 -0
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.js +10 -17
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-z-index-controller.js +2 -2
- package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +3 -2
- package/dist/collection/components/vega-modal/vega-modal.js +77 -8
- package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-steps-controller.js +7 -0
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +6 -0
- package/dist/collection/helpers/backdrop/shared-backdrop-manager.js +32 -1
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +11 -3
- package/dist/esm/{app-globals-f2336686.js → app-globals-eafcc7a1.js} +1 -1
- package/dist/esm/{child-nodes-event-prevent-slimmer-96c14f5a.js → child-nodes-event-prevent-slimmer-82626871.js} +1 -1
- package/dist/esm/{event-emit-slimmer-db4a82e0.js → event-emit-slimmer-2452278f.js} +1 -1
- package/dist/esm/{image-annotation-action-b3b6c308.js → image-annotation-action-08a20d5e.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{internal-vega-event-manager-48690e5b.js → internal-vega-event-manager-2ecc9186.js} +11 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/shared-backdrop-manager-a7c63838.js +197 -0
- package/dist/esm/{token-extension-9896879b.js → token-extension-f5bf9c21.js} +2 -2
- package/dist/esm/vega-accordion.entry.js +3 -3
- package/dist/esm/vega-app-footer.entry.js +3 -3
- package/dist/esm/vega-app-header-button.entry.js +4 -4
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +4 -4
- package/dist/esm/vega-button-group_2.entry.js +4 -4
- package/dist/esm/vega-button-link.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +4 -4
- package/dist/esm/vega-calendar_5.entry.js +4 -4
- package/dist/esm/vega-carousel.entry.js +3 -3
- package/dist/esm/vega-checkbox_2.entry.js +4 -4
- package/dist/esm/vega-chip.entry.js +4 -4
- package/dist/esm/vega-code-block.entry.js +4 -4
- package/dist/esm/vega-color-picker.entry.js +3 -3
- package/dist/esm/vega-color-swatch-picker.entry.js +4 -4
- package/dist/esm/vega-color-swatch.entry.js +3 -3
- package/dist/esm/vega-combo-box.entry.js +23 -5
- package/dist/esm/vega-date-picker_2.entry.js +4 -4
- package/dist/esm/vega-dialog_2.entry.js +161 -71
- package/dist/esm/vega-dropdown_5.entry.js +15 -10
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/{vega-event-id-270fe47e.js → vega-event-id-f55f6977.js} +1 -1
- package/dist/esm/vega-field-label.entry.js +3 -3
- package/dist/esm/vega-file-uploader.entry.js +3 -3
- package/dist/esm/vega-form.entry.js +4 -4
- package/dist/esm/vega-image-uploader.entry.js +4 -4
- package/dist/esm/vega-input-credit-card.entry.js +4 -4
- package/dist/esm/vega-input-numeric.entry.js +4 -4
- package/dist/esm/vega-input-passcode.entry.js +4 -4
- package/dist/esm/vega-input-phone-number.entry.js +4 -4
- package/dist/esm/vega-input-range.entry.js +4 -4
- package/dist/esm/vega-input-select.entry.js +55 -6
- package/dist/esm/vega-input.entry.js +3 -3
- package/dist/esm/vega-item-toggle.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +32 -193
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
- package/dist/esm/vega-pagination.entry.js +4 -4
- package/dist/esm/vega-popover_2.entry.js +3 -3
- package/dist/esm/vega-progress-tracker_2.entry.js +14 -4
- package/dist/esm/vega-radio_2.entry.js +4 -4
- package/dist/esm/vega-rich-text-content.entry.js +2 -2
- package/dist/esm/vega-rich-text-editor_4.entry.js +5 -5
- package/dist/esm/vega-rich-text-find-replace-panel.entry.js +3 -3
- package/dist/esm/vega-rich-text-special-characters-panel.entry.js +3 -3
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +3 -3
- package/dist/esm/vega-segment-control.entry.js +3 -3
- package/dist/esm/vega-selection-chip_2.entry.js +4 -4
- package/dist/esm/vega-selection-tile_2.entry.js +4 -4
- package/dist/esm/vega-sidenav_3.entry.js +3 -3
- package/dist/esm/vega-signature-capture.entry.js +3 -3
- package/dist/esm/vega-stepper.entry.js +4 -4
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_11.entry.js +4 -4
- package/dist/esm/vega-textarea.entry.js +4 -4
- package/dist/esm/vega-time-picker_2.entry.js +4 -4
- package/dist/esm/vega-toggle-switch.entry.js +3 -3
- package/dist/esm/vega.js +5 -5
- package/dist/sri/vega-sri-manifest.json +232 -228
- package/dist/types/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.d.ts +1 -0
- package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +21 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-render-mode-controller.d.ts +2 -1
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +4 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.d.ts +2 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-items-slot-controler.d.ts +10 -0
- package/dist/types/components/vega-input-select/types.d.ts +1 -0
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +21 -0
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-backdrop-manager.d.ts +66 -0
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.d.ts +1 -5
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-z-index-controller.d.ts +1 -1
- package/dist/types/components/vega-modal/slimmers/renderers/vega-modal-renderer.d.ts +1 -1
- package/dist/types/components/vega-modal/vega-modal.d.ts +34 -6
- package/dist/types/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-steps-controller.d.ts +2 -0
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +1 -0
- package/dist/types/components.d.ts +36 -2
- package/dist/types/helpers/backdrop/shared-backdrop-manager.d.ts +16 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-3e8baeac.entry.js → p-0512308f.entry.js} +1 -1
- package/dist/vega/p-05d04c07.entry.js +1 -0
- package/dist/vega/{p-46fe3154.entry.js → p-1d8312d3.entry.js} +1 -1
- package/dist/vega/{p-fbd3be00.entry.js → p-200c8914.entry.js} +1 -1
- package/dist/vega/{p-b1ff70bf.js → p-2c737fc8.js} +1 -1
- package/dist/vega/{p-782eb312.entry.js → p-2d77ae73.entry.js} +1 -1
- package/dist/vega/{p-cb90163a.entry.js → p-2d8d4d5b.entry.js} +1 -1
- package/dist/vega/p-31216140.js +1 -0
- package/dist/vega/{p-44439ecc.entry.js → p-36d2df7a.entry.js} +1 -1
- package/dist/vega/{p-2bf17505.entry.js → p-3d6f761a.entry.js} +1 -1
- package/dist/vega/p-4151f53a.entry.js +1 -0
- package/dist/vega/{p-a057285e.entry.js → p-49e1cf4d.entry.js} +1 -1
- package/dist/vega/{p-c66d2a1e.js → p-513bc0d9.js} +1 -1
- package/dist/vega/{p-698fbd73.js → p-5447a8e8.js} +1 -1
- package/dist/vega/{p-45e8424a.entry.js → p-56d19601.entry.js} +1 -1
- package/dist/vega/{p-addbca58.entry.js → p-5924adae.entry.js} +1 -1
- package/dist/vega/{p-9dca874d.entry.js → p-5e4517eb.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-140616fe.js → p-66647244.js} +1 -1
- package/dist/vega/{p-62d6e063.entry.js → p-6680ba17.entry.js} +1 -1
- package/dist/vega/{p-288d65ad.entry.js → p-6fcec7c7.entry.js} +1 -1
- package/dist/vega/{p-d08ffdf1.entry.js → p-74f86ff9.entry.js} +1 -1
- package/dist/vega/{p-6ad7144a.entry.js → p-775ecfad.entry.js} +1 -1
- package/dist/vega/{p-6f70a10f.entry.js → p-7950f3e2.entry.js} +1 -1
- package/dist/vega/{p-f246f125.entry.js → p-80b7945a.entry.js} +1 -1
- package/dist/vega/p-8354cff0.entry.js +1 -0
- package/dist/vega/{p-5db61a12.entry.js → p-841b3281.entry.js} +1 -1
- package/dist/vega/p-87e5cb56.entry.js +1 -0
- package/dist/vega/{p-51b68d25.js → p-88be9ec5.js} +1 -1
- package/dist/vega/{p-6dfe2407.js → p-8a001caa.js} +1 -1
- package/dist/vega/p-8c30a60d.js +1 -0
- package/dist/vega/{p-762ea523.entry.js → p-8d4b85e7.entry.js} +1 -1
- package/dist/vega/{p-f8a29127.entry.js → p-8d96f0e8.entry.js} +1 -1
- package/dist/vega/{p-95913e3c.entry.js → p-91303402.entry.js} +1 -1
- package/dist/vega/{p-f5d7b89f.entry.js → p-9c39f90b.entry.js} +1 -1
- package/dist/vega/{p-ed103a1a.entry.js → p-9d96d83f.entry.js} +1 -1
- package/dist/vega/p-9f201152.entry.js +1 -0
- package/dist/vega/{p-48ee3e24.entry.js → p-a775825e.entry.js} +1 -1
- package/dist/vega/{p-b8f8e480.entry.js → p-ae146458.entry.js} +1 -1
- package/dist/vega/{p-f651df3b.entry.js → p-b187b82d.entry.js} +1 -1
- package/dist/vega/{p-e8ee70c5.entry.js → p-b3a2ce06.entry.js} +1 -1
- package/dist/vega/{p-5107277d.entry.js → p-b4c26035.entry.js} +1 -1
- package/dist/vega/{p-8c083255.entry.js → p-b8c13ac9.entry.js} +1 -1
- package/dist/vega/{p-7b57a845.entry.js → p-b9e72de2.entry.js} +1 -1
- package/dist/vega/{p-9d18ba7f.entry.js → p-ba2b9663.entry.js} +1 -1
- package/dist/vega/{p-0af32f31.entry.js → p-bb60e381.entry.js} +1 -1
- package/dist/vega/p-bbad318e.entry.js +1 -0
- package/dist/vega/{p-c9daabe1.entry.js → p-c079c935.entry.js} +1 -1
- package/dist/vega/p-c0e42c03.entry.js +1 -0
- package/dist/vega/{p-c67b9aba.entry.js → p-c41f5684.entry.js} +1 -1
- package/dist/vega/{p-341a6b32.entry.js → p-c54b5a8f.entry.js} +1 -1
- package/dist/vega/{p-91287214.entry.js → p-c5d3b008.entry.js} +1 -1
- package/dist/vega/p-cd1e976c.entry.js +1 -0
- package/dist/vega/{p-2dc5edd0.entry.js → p-db11134b.entry.js} +1 -1
- package/dist/vega/p-df828d90.entry.js +1 -0
- package/dist/vega/{p-14559974.entry.js → p-e1737c8e.entry.js} +1 -1
- package/dist/vega/{p-0b311599.entry.js → p-e1b57e8f.entry.js} +1 -1
- package/dist/vega/{p-9f38448c.entry.js → p-e5ff77f7.entry.js} +1 -1
- package/dist/vega/{p-6f01a71a.entry.js → p-ebe32b25.entry.js} +1 -1
- package/dist/vega/p-ec162599.entry.js +1 -0
- package/dist/vega/{p-d3a36d19.entry.js → p-ec64cc59.entry.js} +1 -1
- package/dist/vega/{p-5df2d6a1.entry.js → p-f78944d7.entry.js} +1 -1
- package/dist/vega/{p-c9c6daa6.entry.js → p-f9bfee81.entry.js} +1 -1
- package/dist/vega/{p-26c7fe8b.entry.js → p-fa65956c.entry.js} +1 -1
- package/dist/vega/{p-f96d0503.entry.js → p-fc7e4c8a.entry.js} +1 -1
- package/dist/vega/{p-b39d4a88.entry.js → p-fd23c365.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-backdrop-controller.js +0 -73
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-backdrop-controller.d.ts +0 -27
- package/dist/vega/p-0b9c7c79.entry.js +0 -1
- package/dist/vega/p-2364be92.entry.js +0 -1
- package/dist/vega/p-270697c0.entry.js +0 -1
- package/dist/vega/p-282b37cb.js +0 -1
- package/dist/vega/p-52c6a399.entry.js +0 -1
- package/dist/vega/p-73f2c3c0.entry.js +0 -1
- package/dist/vega/p-7a88a3d3.entry.js +0 -1
- package/dist/vega/p-83a16285.entry.js +0 -1
- package/dist/vega/p-cad5222a.entry.js +0 -1
- package/dist/vega/p-f05a193e.entry.js +0 -1
- package/dist/vega/p-f906a7bc.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,f as e,F as i,H as o,r as s,c as r,g as a}from"./p-6b2342e0.js";import{c as l,V as n,L as d,M as c,I as h}from"./p-6e1ab235.js";import{m as v,s as p}from"./p-6bd5c49b.js";import{V as b,I as u}from"./p-8ce9e214.js";import{g as f}from"./p-a841cf13.js";import{C as g}from"./p-2d0d575f.js";import{m as w,n as m,o as y,p as x,S as R}from"./p-cb378636.js";import{O as S}from"./p-331a62d5.js";import{f as C,a as k,m as j}from"./p-528748fa.js";import{d as E,D}from"./p-526e3634.js";import{r as O}from"./p-77e64f26.js";import{U as T,W as L,X as M,Y as A,Z as N,_ as I,$ as W,a0 as P}from"./p-3a68b729.js";import{a as z,d as B,_,e as K,a2 as V,a3 as $,a4 as F,a5 as G,a6 as X,a7 as H,a8 as U}from"./p-698fbd73.js";import{R as Y}from"./p-3dee1e55.js";import{i as q,s as Z,ap as J}from"./p-8db904dc.js";import{s as Q}from"./p-519a7d55.js";import{g as tt}from"./p-8b5d3a52.js";import{g as et}from"./p-49a2e141.js";import{M as it}from"./p-78a57a17.js";import{T as ot}from"./p-52b8f2d2.js";import{P as st}from"./p-81dd00d0.js";import{c as rt}from"./p-3f183b52.js";import{C as at}from"./p-b1ff70bf.js";import{c as lt}from"./p-140616fe.js";import{I as nt}from"./p-48e3be6a.js";import{T as dt}from"./p-6cde45fc.js";import{S as ct}from"./p-1fb56e14.js";import{c as ht}from"./p-6a334573.js";import{I as vt}from"./p-781fd6e0.js";import{S as pt}from"./p-29e3eb12.js";import{F as bt}from"./p-87a4d75f.js";import{B as ut}from"./p-ed45b3b6.js";import{c as ft}from"./p-3a620268.js";import{V as gt}from"./p-6031bed1.js";import{c as wt}from"./p-1ec763ab.js";import{c as mt}from"./p-613ddaab.js";import"./p-d4ea8e22.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-b438e68b.js";import"./p-0d18368b.js";import"./p-b75ee3ba.js";import"./p-282b37cb.js";import"./p-5f377954.js";import"./p-982747ef.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";class yt{constructor(t,e){this.size=0,this.set=new Set,t&&(this.set=t,this.size=t.size),e&&(this.onMutate=e)}onMutate(t){}add(...t){return this.withMutation((e=>{t.forEach((t=>e.add(t)))}))}clear(){this.withMutation((t=>t.clear()))}delete(t){return this.withMutation((e=>{e.delete(t)}))}withMutation(t){const e=new Set(this.set);t(e);const i=new yt(e,this.onMutate);return this.onMutate(i),i}has(t){return this.set.has(t)}toArray(){return[...this.set]}}const xt=["input","input-select","stepper","checkbox","textarea","combo-box","date-picker","time-picker"];class Rt{constructor(t,e,i,o,s,r,a,l,n,d,c,h,v,p,b,u,f=[]){this.key=t,this.label=e,this.pinned=i,this.colSpan=o,this.rowSpan=s,this.isViewStart=r,this.isViewEnd=a,this.isLeftEndPinned=l,this.isRightStartPinned=n,this.isNoPinnedEnd=d,this.headHasGroupColumn=c,this.headHasPinnedColumn=h,this.headMaxDepth=v,this.level=p,this.columnIndex=b,this.parent=u,this.children=f,this.iteratorCacheMap=new Map,this.leaves=[]}static from(t){const e=[],i=[],o=t.getMaxDepth(),s=t.hasGroupColumn(),r=t.hasLeftPinnedColumn()||t.hasRightPinnedColumn();let a=0;return t.iterator().forEach((t=>{const l=t.level>0?i[t.level-1]:null,n=s&&this.isParentStart(t),d=s&&this.isParentEnd(t),c=new Rt(t.key,t.label,l?l.pinned:t.pinned,s?this.getColSpan(t):null,s?t.isLeaf()?o-t.level:1:null,l?l.isViewStart&&n:n,l?l.isViewEnd&&d:d,l?l.isLeftEndPinned&&d:r&&this.isLeftEndPinned(t),l?l.isRightStartPinned&&n:r&&this.isRightStartPinned(t),l?l.isNoPinnedEnd&&d:r&&this.isNoPinnedEnd(t),s,r,o,t.level,a,l);l?l.children.push(c):e.push(c),i[t.level]=c,i.length=t.level+1,t.isLeaf()&&a++})),e}static withMergedBoundaries(t,e){let i=t.isLeftEndPinned,o=t.isRightStartPinned,s=t.isNoPinnedEnd,r=t.isViewEnd;for(const t of e)i=i||t.isLeftEndPinned,o=o||t.isRightStartPinned,s=s||t.isNoPinnedEnd,r=r||t.isViewEnd;return i===t.isLeftEndPinned&&o===t.isRightStartPinned&&s===t.isNoPinnedEnd&&r===t.isViewEnd?t:new Rt(t.key,t.label,t.pinned,t.colSpan,t.rowSpan,t.isViewStart,r,i,o,s,t.headHasGroupColumn,t.headHasPinnedColumn,t.headMaxDepth,t.level,t.columnIndex,t.parent,t.children)}static isLeftEndPinned(t){const e=t.parent.getOrderedChildren().filter((t=>"left"===t.pinned));return e[e.length-1]===t}static isRightStartPinned(t){return t.parent.getOrderedChildren().filter((t=>"right"===t.pinned))[0]===t}static isNoPinnedEnd(t){const e=t.parent.getOrderedChildren().filter((t=>!t.pinned));return e[e.length-1]===t}static isParentStart(t){return t.parent.getOrderedChildren()[0]===t}static isParentEnd(t){const e=t.parent.getOrderedChildren();return e[e.length-1]===t}static getColSpan(t){const e=t.iterator(),i={};return e.forEach((t=>{i[t.level]=(i[t.level]||0)+1})),Math.max(...Object.values(i))}getLeaves(){if(this.leaves.length>0)return this.leaves;const t=this.iterator().filter((t=>t.isLeaf()));return this.leaves=t,t}iterator(t="dfs"){return"dfs"===t?this.dfsIterator():[]}dfsIterator(){if(this.iteratorCacheMap.has("dfs"))return this.iteratorCacheMap.get("dfs");const t=[];return t.push(this),this.children&&this.children.length>0&&this.children.forEach((e=>{t.push(...e.dfsIterator())})),this.iteratorCacheMap.set("dfs",t),t}isLeaf(){return!this.children||0===this.children.length}}var St=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ct extends n{constructor(){super(...arguments),this.renderTableCellContent=(e,i,o,s)=>{var r,a;const l=f(i,e.prop),n=this.vegaTableDataSourceController.getRecordKey(i),c=!this.vegaTableDataSourceController.getDataSource().find((t=>this.vegaTableDataSourceController.getRecordKey(t)===n)),h=this.vegaTableEditableController.isEditing(n),v=this.vegaTableEditableController.getRowFormRefMap().get(n);if(!s&&h&&v&&e.renderFormItem)return e.renderFormItem(t,e.prop?l:n,i,o,{rowForm:v,isNewRow:c});if(!s&&h&&v&&e.editable){const t=null===(r=e.formItemProps)||void 0===r?void 0:r.call(e,v,{record:i,index:o}),s=Object.assign({dataVegaForm:(null==t?void 0:t.dataVegaForm)||e.prop,size:"small",value:l},null===(a=e.formItemProps)||void 0===a?void 0:a.call(e,v,{record:i,index:o}));return this.generateEditComponentByType(e.formItemType,s)}return e.render?e.render(t,e.prop?l:n,i,o):"string"==typeof l||"number"==typeof l?String(l):null==l?"":void d.error(`Column ${e.prop}'s value has a wrong type(${typeof i[e.prop]}) in table cell. Only 'VegaTableNode | string | number' can be rendered in table cell`)},this.generateEditComponentByType=(e="input",i)=>{const o=`vega-${e}`,{dataVegaForm:s}=i,r=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(t);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]])}return i}(i,["dataVegaForm"]);if(this.isVegaTableEditableFieldType(o))return t(o,Object.assign(Object.assign({},r),{"data-vega-form":s}));d.error(`Type must be one of the form field types. [${xt.join(",")}]`)},this.isVegaTableEditableFieldType=t=>t.toUpperCase().startsWith("VEGA")&&new RegExp(xt.join("|"),"i").test(t)}render(e,i,o,s){var r;const a=this.vegaTableBodyColSpanController.findColumn(e),l=null!==(r=null==s?void 0:s.htmlColspan)&&void 0!==r?r:1,n=l>1,d=n&&s?this.getMergedRenderInputForSpan(e,s):e;if(a){const e=this.vegaTableDataSourceController.getRecordKey(i),s=a.ellipsisOptions;return t("vega-table-cell",{key:`${e}_${a.key||a.prop}`,textAlign:a.align,breakpoint:a.breakpoint,overflow:a.overflow,ellipsisShowTooltip:!!(null==s?void 0:s.showTooltip),colSpan:n?l:void 0,ref:t=>{this.vegaTableRenderInputController.addCellRenderInputMap(t,d)}},this.renderTableCellContent(a,i,o,n))}return t("vega-table-cell",{key:e.key,ref:t=>{this.vegaTableRenderInputController.addCellRenderInputMap(t,d)}})}getMergedRenderInputForSpan(t,e){const i=this.vegaTableRenderInputController.getLeafRenderInputs(),o=i.indexOf(t);if(o<0)return t;const s=i.slice(o+1,o+1+e.skipCount);return Rt.withMergedBoundaries(t,s)}}St([l()],Ct.prototype,"rowKey",void 0),St([l()],Ct.prototype,"vegaTableDataSourceController",void 0),St([l()],Ct.prototype,"vegaTableEditableController",void 0),St([l()],Ct.prototype,"vegaTableRenderInputController",void 0),St([l()],Ct.prototype,"vegaTableBodyColSpanController",void 0);const kt={htmlColspan:1,skipCount:0};function jt(t,e,i,o,s,r){var a,l,n;const c=function(t,e,i){const o=null==t?void 0:t.colSpan;return null==o?1:function(t){if(!Number.isFinite(t))return 1;const e=Math.floor(t);return e>=1?e:1}("function"!=typeof o?o:o(t.prop?f(e,t.prop):void 0,e,i))}(t,e,i);if(!c||c<=1)return kt;const{span:h,clampReason:v}=function(t,e,i){var o,s;const r=null===(o=i[e])||void 0===o?void 0:o.pinned;let a=1;for(let o=1;o<t;o++){const t=i[e+o];if(!t)return{span:a,clampReason:`extends past the end of the row (${i.length} columns total)`};if(t.pinned!==r)return{span:a,clampReason:`crosses a pinned-column boundary (pinned="${null!=r?r:"none"}" → pinned="${null!==(s=t.pinned)&&void 0!==s?s:"none"}")`};a++}return{span:a,clampReason:null}}(c,o,s),p=Math.min(c,h);return v&&p<c&&function(t,e,i,o,s){s.has(t)||(s.add(t),d.warn(`[vega-table] colSpan for column "${t}" was clamped from ${e} to ${i} because it ${o}.`))}(null!==(n=null!==(l=null!==(a=t.key)&&void 0!==a?a:t.prop)&&void 0!==l?l:t.label)&&void 0!==n?n:"",c,p,v,r),p<=1?kt:{htmlColspan:p,skipCount:p-1}}class Et extends n{constructor(){super(...arguments),this.warnedColSpanKeys=new Set,this.lastWarnedColumnsRef=null}resolveRow(t,e,i){this.columns!==this.lastWarnedColumnsRef&&(this.warnedColSpanKeys.clear(),this.lastWarnedColumnsRef=this.columns);const o=new Array(i.length).fill(null);let s=0;return i.forEach(((r,a)=>{if(s>0)return void s--;const l=this.findColumn(r),n=l?jt(l,t,e,a,i,this.warnedColSpanKeys):{htmlColspan:1,skipCount:0};o[a]=n,s=n.skipCount})),o}findColumn(t){return this.columns.find((e=>e.key===t.key||e.prop===t.key||e.label===t.key))}}!function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);r>3&&a&&Object.defineProperty(e,i,a)}([l()],Et.prototype,"columns",void 0);var Dt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ot extends n{constructor(){super(...arguments),this.toggleExpandRow=t=>{this.isRowExpandable(t)&&this.handleToggleExpandRow(t,!this.isExpanded(t))},this.openExpandRow=t=>{this.isRowExpandable(t)&&this.handleToggleExpandRow(t,!0)},this.closeExpandRow=t=>{this.isRowExpandable(t)&&this.handleToggleExpandRow(t,!1)},this.closeAllExpandRow=()=>{this.hasExpandableRow&&this.handleCloseAllExpandRow()},this.isExpandableRow=t=>this.expandableRows.includes(this.vegaTableDataSourceController.getRecordKey(t)),this.isExpanded=t=>this.expandedRowKeySet.has(t),this.handleCloseAllExpandRow=()=>{this.expandedRowKeySet.toArray().forEach((t=>{g.notify(w,{host:this.host,rowKey:t,expanded:!1})})),this.expandedRowKeySet.clear()},this.handleToggleExpandRow=(t,e)=>{e?this.expandedRowKeySet.add(t):this.expandedRowKeySet.delete(t),g.notify(w,{host:this.host,rowKey:t,expanded:e})},this.initMutationObserver=()=>{this.mutationObserver=new MutationObserver((async t=>{this.expandRowSlotGuard(t)&&e(this.host)})),this.mutationObserver.observe(this.host,{childList:!0,subtree:!0})},this.expandRowSlotGuard=t=>{const e=this.vegaTableDataSourceController.getCurrentData().map((t=>`${Ot.expandRowSlotNamePrefix}${this.vegaTableDataSourceController.getRecordKey(t)}`)),i=[];for(let o=0;o<t.length;o++)Array.from(t[o].addedNodes).filter((t=>t instanceof HTMLElement&&t.getAttribute("slot"))).forEach((t=>{t.removeAttribute("hidden");const o=t.getAttribute("slot");e.includes(o)?i.push(t):d.warn(`The vega-table expand row slot name '${o}' is not as expected, it must be like: vega-table-expand-row-[rowKey]`)}));return i.length>0}}connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect(),g.unregister(w,this.expandObserver),O.unRegister(E.getSubject(this.host,T))}componentWillLoad(){this.setExpandableRows()}componentDidLoad(){this.initMutationObserver()}watchRowExpandable(){this.setExpandableRows(),this.handleCloseAllExpandRow()}watchCurrentData(){this.setExpandableRows(),this.clearUnusedExpandRowSlot()}initRowExpandObserver(){this.expandObserver=new S(this.isAcceptableTableRowObserver.bind({host:this.host}),(t=>{t.expanded?this.expandedRowKeySet.add(t.rowKey):this.expandedRowKeySet.delete(t.rowKey)})),g.register(w,this.expandObserver),O.register(E.getSubject(this.host,T),(({rowKey:t,expanded:e})=>this.rowExpandEventEmitter.emit({record:this.vegaTableDataSourceController.getRecordByKey(t),expanded:e})))}isAcceptableTableRowObserver(t){return"VEGA-TABLE-ROW"===t.host.tagName&&this.host===C(t.host,"vega-table")}setExpandableRows(){if("boolean"==typeof this.rowExpandable)this.expandableRows=this.rowExpandable?this.currentData.map((t=>this.vegaTableDataSourceController.getRecordKey(t))):[],this.hasExpandableRow=this.rowExpandable;else if("function"==typeof this.rowExpandable){const t=[];this.currentData.forEach((e=>{const i=this.vegaTableDataSourceController.getRecordKey(e);this.rowExpandable(i)&&t.push(i)})),this.expandableRows=t,this.hasExpandableRow=t.length>0}else this.expandableRows=[],this.hasExpandableRow=!1}isRowExpandable(t){return this.expandableRows.includes(t)}clearUnusedExpandRowSlot(){this.expandedRowKeySet.toArray().forEach((t=>{this.isRowExpandable(t)||this.expandedRowKeySet.delete(t)}))}}Ot.expandRowSlotNamePrefix="vega-table-expand-row-",Dt([l()],Ot.prototype,"host",void 0),Dt([l()],Ot.prototype,"expandedRowKeySet",void 0),Dt([l({writable:!0})],Ot.prototype,"expandableRows",void 0),Dt([l({writable:!0})],Ot.prototype,"hasExpandableRow",void 0),Dt([l()],Ot.prototype,"rowExpandable",void 0),Dt([l()],Ot.prototype,"currentData",void 0),Dt([l()],Ot.prototype,"rowExpandEventEmitter",void 0),Dt([l()],Ot.prototype,"vegaTableDataSourceController",void 0),Dt([c("connectedCallback")],Ot.prototype,"connectedCallback",null),Dt([c("disconnectedCallback")],Ot.prototype,"disconnectedCallback",null),Dt([c("componentWillLoad")],Ot.prototype,"componentWillLoad",null),Dt([c("componentDidLoad")],Ot.prototype,"componentDidLoad",null),Dt([c("toggleExpandRow")],Ot.prototype,"toggleExpandRow",void 0),Dt([c("openExpandRow")],Ot.prototype,"openExpandRow",void 0),Dt([c("closeExpandRow")],Ot.prototype,"closeExpandRow",void 0),Dt([c("closeAllExpandRow")],Ot.prototype,"closeAllExpandRow",void 0),Dt([c("watchRowExpandable")],Ot.prototype,"watchRowExpandable",null),Dt([c("watchCurrentData")],Ot.prototype,"watchCurrentData",null);var Tt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Lt extends n{constructor(){super(...arguments),this.handleRowSelect=(t,e)=>{const i=this.vegaTableDataSourceController.getRecordKey(e);let o=!1;t?this.selectedRowKeySet.has(i)||(this.selectedRowKeySet.add(i),o=!0):this.selectedRowKeySet.has(i)&&(this.selectedRowKeySet.delete(i),o=!0),o&&this.selectChangeEventEmitter.emit({selected:t,record:e,selectedRows:this.getSelectedRecords()})},this.getRowSelectionType=()=>{if(this.rowSelection)return this.rowSelection.type||"multiple"},this.handleSingleRowSelect=t=>{const e=this.vegaTableDataSourceController.getRecordKey(t);this.isChecked(e)?this.handleRowSelect(!1,t):(this.selectedRowKeySet.clear(),this.handleRowSelect(!0,t))},this.isChecked=t=>this.selectedRowKeySet.has(t),this.handleSelectAll=t=>{if(t){const t=this.vegaTableDataSourceController.getAllRecordKeys();this.selectedRowKeySet.add(...t.filter((t=>!this.selectedRowKeySet.has(t))))}else this.isCheckedAll()&&this.selectedRowKeySet.clear()},this.isCheckedAll=()=>this.selectedRowKeySet.size>0&&this.vegaTableDataSourceController.getCurrentData().every((t=>this.selectedRowKeySet.has(this.vegaTableDataSourceController.getRecordKey(t)))),this.setupRowSelection=t=>{this.rowSelection=Object.assign({hideSelectAll:!1,type:"multiple"},t)},this.getSelectedRecords=()=>this.selectedRowKeySet.toArray().map(this.vegaTableDataSourceController.getRecordByKey).filter(Boolean),this.syncUpSelectedKeySetWithCurrentData=t=>{this.selectedRowKeySet.withMutation((e=>{e.clear(),t.forEach((t=>{const i=this.vegaTableDataSourceController.getRecordKey(t);this.selectedRowKeySet.has(i)&&e.add(i)}))}))}}connectedCallback(){this.initRowSelection(),this.initRowClickObserver(),this.initRowSelectionAllObserver()}disconnectedCallback(){g.unregister(m,this.rowSelectionObserver),g.unregister(y,this.rowSelectionAllObserver),g.unregister(x,this.rowClickObserver),O.unRegister(E.getSubject(this.host,L)),O.unRegister(E.getSubject(this.host,M))}componentWillLoad(){this.rowSelection&&this.setupRowSelection(this.rowSelection)}watchRowSelection(t,e){(null==e?void 0:e.type)!==(null==t?void 0:t.type)&&this.clearSelection()}setSelection(t){"single"===this.getRowSelectionType()&&t.splice(1),this.selectedRowKeySet.toArray().forEach((t=>{g.notify(m,{host:this.host,rowKey:t,checked:!1})})),this.selectedRowKeySet.clear(),t.forEach((t=>{this.vegaTableDataSourceController.getRecordByKey(t)&&(this.selectedRowKeySet.add(t),g.notify(m,{host:this.host,rowKey:t,checked:!0}))}))}watchCurrentData(t){this.syncUpSelectedKeySetWithCurrentData(t)}clearSelection(){this.selectedRowKeySet.clear(),g.notify(y,{host:this.host,checked:!1,noneChecked:0===this.selectedRowKeySet.size})}getSelection(){return this.selectedRowKeySet.toArray()}watchSelectedRowKeySet(){this.isSelectedAll=this.isCheckedAll()}watchSelectedAll(){g.notify(y,{host:this.host,checked:this.isCheckedAll(),noneChecked:0===this.selectedRowKeySet.size}),this.selectAllChangeEventEmitter.emit({selected:this.isCheckedAll(),selectedRows:this.getSelectedRecords()})}isAcceptableRowSelectionObserver(t){return"VEGA-TABLE"===t.host.tagName?this.host===t.host:"VEGA-TABLE-ROW"===t.host.tagName?this.host===C(t.host,"vega-table"):void 0}isAcceptableRowSelectionAllObserver(t){return"VEGA-TABLE"===t.host.tagName?this.host===t.host:"VEGA-TABLE-HEAD-ROW"===t.host.tagName?this.host===C(t.host,"vega-table"):void 0}initRowSelection(){this.rowSelectionObserver=new S(this.isAcceptableRowSelectionObserver.bind(this),(t=>{const{rowKey:e,checked:i}=t,o=this.vegaTableDataSourceController.getRecordByKey(e);this.handleRowSelect(i,o)})),g.register(m,this.rowSelectionObserver),O.register(E.getSubject(this.host,L),(({rowKey:t,checked:e})=>this.rowSelectEventEmitter.emit({selected:e,record:this.vegaTableDataSourceController.getRecordByKey(t),selectedRows:this.getSelectedRecords()}))),O.register(E.getSubject(this.host,M),(({checked:t})=>this.rowSelectAllEventEmitter.emit({selected:t,selectedRows:this.getSelectedRecords(),changedRows:t?this.vegaTableDataSourceController.getCurrentData().filter((t=>!this.selectedRowKeySet.has(t.key))):this.getSelectedRecords()})))}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new S(this.isAcceptableRowSelectionAllObserver.bind(this),(t=>{this.handleSelectAll(t.checked)})),g.register(y,this.rowSelectionAllObserver)}initRowClickObserver(){this.rowClickObserver=new S(this.isAcceptableRowClickObserver.bind(this),(t=>{if("single"===this.getRowSelectionType()){const e=this.vegaTableDataSourceController.getRecordByKey(t.rowKey);this.handleSingleRowSelect(e)}})),g.register(x,this.rowClickObserver)}isAcceptableRowClickObserver(t){return"VEGA-TABLE-ROW"===t.host.tagName&&this.host===C(t.host,"vega-table")}}Tt([l()],Lt.prototype,"host",void 0),Tt([l({writable:!0})],Lt.prototype,"isSelectedAll",void 0),Tt([l()],Lt.prototype,"selectedRowKeySet",void 0),Tt([l({writable:!0})],Lt.prototype,"rowSelection",void 0),Tt([l()],Lt.prototype,"rowKey",void 0),Tt([l()],Lt.prototype,"selectChangeEventEmitter",void 0),Tt([l()],Lt.prototype,"selectAllChangeEventEmitter",void 0),Tt([l()],Lt.prototype,"vegaTableDataSourceController",void 0),Tt([l()],Lt.prototype,"rowSelectEventEmitter",void 0),Tt([l()],Lt.prototype,"rowSelectAllEventEmitter",void 0),Tt([c("connectedCallback")],Lt.prototype,"connectedCallback",null),Tt([c("disconnectedCallback")],Lt.prototype,"disconnectedCallback",null),Tt([c("componentWillLoad")],Lt.prototype,"componentWillLoad",null),Tt([c("watchRowSelection")],Lt.prototype,"watchRowSelection",null),Tt([c("setSelection")],Lt.prototype,"setSelection",null),Tt([c("watchCurrentData")],Lt.prototype,"watchCurrentData",null),Tt([c("clearSelection")],Lt.prototype,"clearSelection",null),Tt([c("getSelection")],Lt.prototype,"getSelection",null),Tt([c("watchSelectedRowKeySet")],Lt.prototype,"watchSelectedRowKeySet",null),Tt([c("watchSelectedAll")],Lt.prototype,"watchSelectedAll",null);var Mt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class At extends n{constructor(){super(...arguments),this.getRecordKey=t=>null!=t[this.rowKey]?String(t[this.rowKey]):"",this.getRecordByKey=t=>this.currentData.find((e=>this.getRecordKey(e)===t)),this.setCurrentData=t=>{this.currentData=this.tableDataValidation(t)?t:[]}}componentWillLoad(){this.vegaTableSortController.syncSortOrder(),this.syncCurrentData()}watchSortersMap(){this.syncCurrentData()}watchDataSource(){this.syncCurrentData()}getAllRecordKeys(){return this.currentData.map(this.getRecordKey)}getDataSource(){return this.dataSource}setDataSource(t){this.dataSource=t}getCurrentData(){return this.currentData}isCurrentDataEmpty(){return 0===this.currentData.length}tableDataValidation(t){return!t.some((t=>!this.getRecordKey(t)))||(d.error('Each item in dataSource should have a unique "key" prop.'," Otherwise, you should specify the primary key of dataSource item via rowKey."," For more details, please refer to: https://heartlandpayments.github.io/Vega/?path=/docs/components-table-v2--basic-table#rowkey"),!1)}syncCurrentData(){if(this.isTemplateRenderMode)return;const t=this.sortersMap.size>0?this.columns.filter((t=>t.sorter&&"event"!==t.sorter&&this.sortersMap.has(t.prop))):[];this.setCurrentData(t.length>0?this.vegaTableSortController.sortData(this.dataSource,Array.from(this.sortersMap.values())):this.dataSource)}}Mt([l()],At.prototype,"rowKey",void 0),Mt([l({writable:!0})],At.prototype,"currentData",void 0),Mt([l({writable:!0})],At.prototype,"dataSource",void 0),Mt([l()],At.prototype,"columns",void 0),Mt([l()],At.prototype,"sortersMap",void 0),Mt([l()],At.prototype,"vegaTableSortController",void 0),Mt([l()],At.prototype,"vegaTableRenderer",void 0),Mt([l()],At.prototype,"isTemplateRenderMode",void 0),Mt([c("componentWillLoad")],At.prototype,"componentWillLoad",null),Mt([c("watchSortersMap")],At.prototype,"watchSortersMap",null),Mt([c("watchDataSource")],At.prototype,"watchDataSource",null);var Nt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class It extends n{constructor(){super(...arguments),this.renderTableBody=e=>{const o=this.vegaTableDataSourceController.getCurrentData();return t("vega-table-body",{ref:t=>this.tableBodyRef=t},o.map(((s,r)=>{const a=this.vegaTableDataSourceController.getRecordKey(s),l=this.vegaTablePaginationController.isRowVisible(r);return t(i,null,this.vegaTableRowRenderer.render({rowKey:a,index:r,record:s,isVisibleInCurrentPage:l,isLastRow:r===o.length-1},e),this.vegaTableExpandRowController.isExpandableRow(s)&&t("vega-table-expand-row",{class:{"v-hidden":!l},key:`vega-table-expanded-row-${a}`,rowKey:a,striped:this.striped&&r%2==1},t("slot",{name:`${Ot.expandRowSlotNamePrefix}${a}`})))})))}}getTableFormRef(){return this.tableFormRef}getTableBodyRef(){return this.tableBodyRef}render(){const e=this.columnStructureModel.generateColumnConfigByLeaves(this.columns).some((t=>null==t?void 0:t.editable));return e?t("vega-form",{ref:t=>this.tableFormRef=t},this.renderTableBody(e)):this.renderTableBody(!1)}}Nt([l()],It.prototype,"striped",void 0),Nt([l()],It.prototype,"rowDivider",void 0),Nt([l()],It.prototype,"columns",void 0),Nt([l()],It.prototype,"currentBreakpoint",void 0),Nt([l()],It.prototype,"rowClickable",void 0),Nt([l()],It.prototype,"vegaTableDataSourceController",void 0),Nt([l()],It.prototype,"vegaTablePaginationController",void 0),Nt([l()],It.prototype,"vegaTableRowSelectionController",void 0),Nt([l()],It.prototype,"vegaTableRowRenderer",void 0),Nt([l()],It.prototype,"columnStructureModel",void 0),Nt([l()],It.prototype,"vegaTableExpandRowController",void 0);var Wt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Pt extends n{constructor(){super(...arguments),this.renderHeaderRows=()=>{const e=[];let i=this.vegaTableRenderInputController.getHeadRenderInputs();for(;i.length>0;)e.push(i),i=i.flatMap((t=>t.children));return e.map((e=>{var i;return t("vega-table-head-row",{hideSelectAll:null===(i=this.rowSelection)||void 0===i?void 0:i.hideSelectAll,ref:t=>{this.vegaTableRenderInputController.addHeadRowRenderInputMap(t,e)}},e.map((t=>{if(t.label)return this.renderGroupCell(t);{const e=this.columns.find((e=>e.key===t.key||e.prop===t.key||e.label===t.key));return this.renderCell(t,e)}})))}))},this.renderGroupCell=e=>t("vega-table-head-cell",{key:e.key,ref:t=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(t,e)}},e.label),this.renderCell=(e,i)=>{var o;return i?t("vega-table-head-cell",{key:i.key||i.prop,textAlign:i.align,sorter:i.sorter,sortOrder:null===(o=this.sortersMap.get(i.prop))||void 0===o?void 0:o.getSortOrder(),sortConfig:this.sortConfig,breakpoint:i.breakpoint,ref:t=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(t,e),D.addUniqueObserverToNode(t,z,(t=>{this.vegaTableSortController.handleHeadSortClick(i,t.detail.sortOrder)}))}},i.label):t("vega-table-head-cell",{key:e.key,ref:t=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(t,e)}})}}render(){return this.showHeader&&t("vega-table-head",null,this.renderHeaderRows())}}Wt([l()],Pt.prototype,"showHeader",void 0),Wt([l()],Pt.prototype,"sortersMap",void 0),Wt([l()],Pt.prototype,"sortConfig",void 0),Wt([l()],Pt.prototype,"columns",void 0),Wt([l()],Pt.prototype,"rowSelection",void 0),Wt([l()],Pt.prototype,"vegaTableSortController",void 0),Wt([l()],Pt.prototype,"vegaTableDataSourceController",void 0),Wt([l()],Pt.prototype,"vegaTableRenderInputController",void 0);var zt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Bt extends n{constructor(){super(...arguments),this.paginationRefCallback=t=>{D.addUniqueObserverToNode(t,B,this.handlePaginationChange),D.addUniqueObserverToNode(t,_,this.handlePaginationPageSizeChange)},this.handlePaginationChange=t=>{var e,i;this.vegaTablePaginationController.setCurrentPage(t.detail);const o=new CustomEvent("vegaChange",{detail:t.detail});null===(i=(e=this.pagination).vegaChange)||void 0===i||i.call(e,o)},this.handlePaginationPageSizeChange=t=>{var e,i;this.vegaTablePaginationController.setPageSize(t.detail);const o=new CustomEvent("vegaPageSizeChange",{detail:t.detail});null===(i=(e=this.pagination).vegaPageSizeChange)||void 0===i||i.call(e,o)},this.getPaginationConfig=()=>{const t=this.pagination,{position:e}=t,i=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(t);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]])}return i}(t,["position"]),o=Y.formatCustom(this.pagination.extensions);return Object.assign(Object.assign({},i),{position:(null==o?void 0:o.length)>1?void 0:e||"bottom-center",pageSize:this.pageSize})}}render(){if(!this.pagination)return;const{pageSize:e,position:i,extensions:o,pageSizeSelectorOptions:s}=this.getPaginationConfig(),r=["vega-table-pagination-container",i],a=this.vegaTableDataSourceController.getCurrentData().length;return a>0&&t("div",{class:k(r)},t("vega-pagination",{total:a,pageSize:e,current:this.currentPage,extensions:o,pageSizeSelectorOptions:s,ref:this.paginationRefCallback}))}}zt([l()],Bt.prototype,"pagination",void 0),zt([l()],Bt.prototype,"pageSize",void 0),zt([l()],Bt.prototype,"currentPage",void 0),zt([l()],Bt.prototype,"vegaTablePaginationController",void 0),zt([l()],Bt.prototype,"vegaTableDataSourceController",void 0);const _t=({scrollConfig:e={},ref:i,onScroll:o},s)=>{const{maxHeight:r}=e,a=q(r);return t("div",{class:"vega-table-scrollable-container",style:{maxHeight:"number"==typeof r?`${r}px`:r},ref:i,onScroll:t=>{if(!a)return;const e=t.target;0!==e.scrollTop?(e.scrollTop>0&&!e.classList.contains("scrolled")&&e.classList.add("scrolled"),o(t)):e.classList.remove("scrolled")}},s)};var Kt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Vt extends n{constructor(){super(...arguments),this.scrollContainerToTop=()=>{this.tableScrollContainerRef&&(this.tableScrollContainerRef.scrollTop=0)},this.notifyContentScrolling=()=>{this.isTemplateRenderMode&&g.notify(R,{host:this.host})}}watchCurrentPage(){this.scrollContainerToTop()}render(e){return t(_t,{scrollConfig:this.scrollConfig,ref:t=>this.setTableScrollContainerRef(t),onScroll:()=>this.notifyContentScrolling()},e)}setTableScrollContainerRef(t){this.tableScrollContainerRef=t}}Kt([l()],Vt.prototype,"scrollConfig",void 0),Kt([l()],Vt.prototype,"host",void 0),Kt([l()],Vt.prototype,"isTemplateRenderMode",void 0),Kt([c("watchCurrentPage")],Vt.prototype,"watchCurrentPage",null);var $t=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ft extends n{constructor(){super(...arguments),this.renderInternalTable=()=>{const e=this.columns.some((t=>t.overflow))||Array.from(this.host.querySelectorAll("vega-table-cell")).some((t=>t.overflow));return t("table",{class:{"v-table-fixed":e,"show-edit-error":this.showEditError}},this.columns.length>0&&[this.vegaTableColGroupRenderer.render(),this.vegaTableHeaderRenderer.render()],(this.dataSource.length>0||this.editingRows.size>0)&&this.vegaTableBodyRenderer.render(),this.isTemplateRenderMode&&t("slot",null))},this.renderEmpty=()=>this.vegaTableDataSourceController.isCurrentDataEmpty()&&this.emptyDescription&&t("div",{class:"vega-table-empty-description"},this.translationSlimmer.t(this.emptyDescription))}render(){const e=k([this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",`density-${Y.formatCustom(this.density)}`,this.striped&&"striped",this.columnStructureModel.hasGroupColumn()&&"is-group-table",(this.columnStructureModel.hasLeftPinnedColumn()||this.columnStructureModel.hasRightPinnedColumn())&&"is-pinned-table"]);return Q(t(o,{class:e},this.vegaTableScrollContainerRenderer.render(this.renderInternalTable()),this.vegaTablePaginationRenderer.render(),this.renderEmpty()),this.host)}}$t([l()],Ft.prototype,"host",void 0),$t([l()],Ft.prototype,"columns",void 0),$t([l()],Ft.prototype,"emptyDescription",void 0),$t([l()],Ft.prototype,"rowDivider",void 0),$t([l()],Ft.prototype,"columnDivider",void 0),$t([l()],Ft.prototype,"density",void 0),$t([l()],Ft.prototype,"dataSource",void 0),$t([l()],Ft.prototype,"striped",void 0),$t([l()],Ft.prototype,"columnStructureModel",void 0),$t([l()],Ft.prototype,"showEditError",void 0),$t([l()],Ft.prototype,"vegaTableHeaderRenderer",void 0),$t([l()],Ft.prototype,"vegaTableBodyRenderer",void 0),$t([l()],Ft.prototype,"vegaTableColGroupRenderer",void 0),$t([l()],Ft.prototype,"vegaTableScrollContainerRenderer",void 0),$t([l()],Ft.prototype,"vegaTablePaginationRenderer",void 0),$t([l()],Ft.prototype,"vegaTableDataSourceController",void 0),$t([l()],Ft.prototype,"translationSlimmer",void 0),$t([l({writable:!0})],Ft.prototype,"vegaTableChildrenController",void 0),$t([l()],Ft.prototype,"isTemplateRenderMode",void 0),$t([l()],Ft.prototype,"editingRows",void 0);var Gt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Xt extends n{componentWillLoad(){var t,e;this.currentPage=(null===(t=this.pagination)||void 0===t?void 0:t.current)||1,this.pageSize=(null===(e=this.pagination)||void 0===e?void 0:e.pageSize)||10}watchPagination(){if(this.pagination){const{pageSize:t,current:e}=this.pagination;t>0&&(this.pageSize=t),e>0&&(this.currentPage=e)}}setPageSize(t){this.pageSize=t}setCurrentPage(t){this.currentPage=t}isRowVisible(t){if(!this.pagination)return!0;const e=this.pageSize,i=this.currentPage;return t>=(i-1)*e&&t<i*e}}Gt([l()],Xt.prototype,"pagination",void 0),Gt([l({writable:!0})],Xt.prototype,"pageSize",void 0),Gt([l({writable:!0})],Xt.prototype,"currentPage",void 0),Gt([c("componentWillLoad")],Xt.prototype,"componentWillLoad",null),Gt([c("watchPagination")],Xt.prototype,"watchPagination",null);var Ht=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ut extends n{constructor(){super(...arguments),this.rowFormRefMap=new Map}getRowFormRefMap(){return this.rowFormRefMap}async saveAllEditRows(){if(!this.canMethodBeInvokedInCurrentState("saveAllEditRows"))return;const t=this.vegaTableDataSourceController.getCurrentData().slice();for(const e of this.editingRows.toArray()){const i=await this.getRowData(e),o=t.findIndex((t=>this.vegaTableDataSourceController.getRecordKey(t)===e));o>-1&&t.splice(o,1,i)}this.vegaTableDataSourceController.setDataSource([...t]),this.stopAllRowEditMode()}stopAllRowEditMode(){this.canMethodBeInvokedInCurrentState("stopAllRowEditMode")&&this.editingRows.clear()}watchDataSource(t){this.isEditableTable()&&this.getEditingRowsKey().forEach((e=>{t.find((t=>t.key===e))||this.stopRowEditMode(e)}))}async saveEditRow(t){if(!this.canMethodBeInvokedInCurrentState("saveEditRow"))return;const e=await this.getRowData(t),i=this.vegaTableDataSourceController.getCurrentData().slice(),o=i.findIndex((e=>this.vegaTableDataSourceController.getRecordKey(e)===t));o>-1&&(i.splice(o,1,e),this.vegaTableDataSourceController.setDataSource([...i])),this.stopRowEditMode(t)}stopRowEditMode(t){this.canMethodBeInvokedInCurrentState("stopRowEditMode")&&this.editingRows.delete(t)}removeRow(t){this.canMethodBeInvokedInCurrentState("removeRow")&&this.vegaTableDataSourceController.setDataSource(this.vegaTableDataSourceController.getCurrentData().filter((e=>this.vegaTableDataSourceController.getRecordKey(e)!==t)))}startRowEditMode(t){this.canMethodBeInvokedInCurrentState("startRowEditMode")&&this.editingRows.add(t)}addNewRow(t={}){var e;if(!this.canMethodBeInvokedInCurrentState("addNewRow"))return;const i=(null===(e=t[this.rowKey])||void 0===e?void 0:e.toString())||tt(),o=Object.assign({},t);return o[this.rowKey]=i,this.vegaTableDataSourceController.setCurrentData([...this.vegaTableDataSourceController.getCurrentData(),o]),this.editingRows.add(i),i}async getRowsData(){if(!this.canMethodBeInvokedInCurrentState("getRowsData"))return;const t=this.vegaTableBodyRenderer.getTableFormRef(),e=t?await t.getValue():[];return[...this.vegaTableDataSourceController.getCurrentData().map((t=>{const i=e[`${Ut.rowFormKeyPrefix}${this.vegaTableDataSourceController.getRecordKey(t)}`];return Object.assign(Object.assign({},t),i)}))]}getEditingRowsKey(){if(this.canMethodBeInvokedInCurrentState("getEditingRowsKey"))return this.editingRows.toArray()}getFormRef(t){if(this.canMethodBeInvokedInCurrentState("getFormRef"))return t?this.rowFormRefMap.get(t):this.vegaTableBodyRenderer.getTableFormRef()}async getRowData(t){if(!this.canMethodBeInvokedInCurrentState("getRowData"))return;const e=await this.rowFormRefMap.get(t).getValue();return Object.assign(Object.assign({},this.vegaTableDataSourceController.getRecordByKey(t)),e)}isEditing(t){return this.editingRows.has(t)}isEditableTable(){return this.columns.some((t=>t.editable))}canMethodBeInvokedInCurrentState(t){return!!this.isEditableTable()||(d.warn(`Method ${t} only works with editable tables`),!1)}}Ut.rowFormKeyPrefix="vega-table-row-form-",Ht([l()],Ut.prototype,"editingRows",void 0),Ht([l()],Ut.prototype,"rowKey",void 0),Ht([l()],Ut.prototype,"columns",void 0),Ht([l()],Ut.prototype,"vegaTableDataSourceController",void 0),Ht([l()],Ut.prototype,"vegaTableBodyRenderer",void 0),Ht([c("saveAllEditRows")],Ut.prototype,"saveAllEditRows",null),Ht([c("stopAllRowEditMode")],Ut.prototype,"stopAllRowEditMode",null),Ht([c("watchDataSource")],Ut.prototype,"watchDataSource",null),Ht([c("saveEditRow")],Ut.prototype,"saveEditRow",null),Ht([c("stopRowEditMode")],Ut.prototype,"stopRowEditMode",null),Ht([c("removeRow")],Ut.prototype,"removeRow",null),Ht([c("startRowEditMode")],Ut.prototype,"startRowEditMode",null),Ht([c("addNewRow")],Ut.prototype,"addNewRow",null),Ht([c("getRowsData")],Ut.prototype,"getRowsData",null),Ht([c("getEditingRowsKey")],Ut.prototype,"getEditingRowsKey",null),Ht([c("getFormRef")],Ut.prototype,"getFormRef",null),Ht([c("getRowData")],Ut.prototype,"getRowData",null);class Yt{constructor(t,e,i){this.prop=t,this.order=e,this.sorter=i}sort(t,e){const i=this.sorter(t,e);if(0!==i)return"asc"===this.order?i:-i}toExternalFormat(){return{prop:this.prop,order:this.order}}getSortOrder(){return this.order}}var qt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Zt extends n{constructor(){super(...arguments),this.clearSorter=()=>{this.sortersMap.size>0&&(this.sortersMap.clear(!1),this.changeEventEmitter.emit({sorters:[]}))}}watchColumns(){this.syncSortOrder()}handleHeadSortClick(t,e){"single"===this.sortConfig.type&&this.sortersMap.clear(),e?this.sortersMap.set(t.prop,new Yt(t.prop,e,t.sorter)):this.sortersMap.has(t.prop)&&this.sortersMap.delete(t.prop),"event"!==t.sorter&&this.vegaTableDataSourceController.setCurrentData(this.sortData(this.vegaTableDataSourceController.getDataSource(),Array.from(this.sortersMap.values()))),this.changeEventEmitter.emit({sorters:Array.from(this.sortersMap.values()).map((t=>t.toExternalFormat()))})}syncSortOrder(){this.columns.filter((t=>q(t.sorter)&&q(t.sortOrder))).forEach((t=>{this.sortersMap.set(t.prop,new Yt(t.prop,t.sortOrder,t.sorter))}))}sortData(t,e){return[...t].sort(((t,i)=>{for(const o of e){const e=o.sort(t,i);if(q(e))return e}return 0}))}}qt([l({writable:!0})],Zt.prototype,"sortersMap",void 0),qt([l()],Zt.prototype,"columns",void 0),qt([l()],Zt.prototype,"changeEventEmitter",void 0),qt([l()],Zt.prototype,"vegaTableDataSourceController",void 0),qt([l()],Zt.prototype,"sortConfig",void 0),qt([c("watchColumns")],Zt.prototype,"watchColumns",null);var Jt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Qt extends n{constructor(){super(...arguments),this.getColResponsiveClass=t=>t.breakpoint&&Z(t.breakpoint)?`v-hidden ${t.breakpoint}:v-table-column`:""}render(){return t("colgroup",null,t("col",{style:{minWidth:this.paddingX[0],width:this.paddingX[0]}}),this.rowDraggable&&t("col",{class:"draggable-col"}),"multiple"===this.vegaTableRowSelectionController.getRowSelectionType()&&t("col",{style:{minWidth:"40px",width:"40px"}}),this.columnStructureModel.generateColumnConfigByLeaves(this.columns).map((e=>{if(e){const i=this.getColResponsiveClass(e);return t("col",{class:i,style:{width:e.width?e.width:null}})}return t("col",null)})),this.hasExpandableRow&&t("col",{style:{minWidth:"40px",width:"40px"}}),t("col",{style:{minWidth:this.paddingX[1],width:this.paddingX[1]}}))}}Jt([l()],Qt.prototype,"paddingX",void 0),Jt([l()],Qt.prototype,"columnStructureModel",void 0),Jt([l()],Qt.prototype,"columns",void 0),Jt([l()],Qt.prototype,"hasExpandableRow",void 0),Jt([l()],Qt.prototype,"rowDraggable",void 0),Jt([l()],Qt.prototype,"vegaTableRowSelectionController",void 0);var te=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ee extends n{constructor(){super(...arguments),this.currentDataObserver=new it({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ot("VEGA-TABLE-BODY","VEGA-TABLE-ROW"),callback:()=>{this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps()}}),this.rowStripedObserver=new it({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ot("VEGA-TABLE-BODY","VEGA-TABLE-ROW","VEGA-TABLE-EXPAND-ROW"),callback:()=>{this.syncRowStates()}}),this.syncUpTableCurrentData=()=>{if(!this.isTemplateRenderMode)return;const t=Array.from(this.host.querySelectorAll("vega-table-row")).map((t=>({key:t.rowKey})));this.vegaTableDataSourceController.setCurrentData(t)},this.syncRowStates=()=>{const t=this.host.querySelectorAll("vega-table-row");t.forEach(((e,i)=>{this.updateRowStriped(e,i),this.updateRowDivider(e,i===t.length-1)})),this.host.querySelectorAll("vega-table-expand-row").forEach(((t,e)=>{this.updateRowStriped(t,e)}))},this.syncUpTableHeadRowProps=()=>{var t;if(!this.isTemplateRenderMode)return;const e=this.host.querySelector("vega-table-head-row");e&&(e.hideSelectAll=e.hideSelectAll||(null===(t=this.rowSelection)||void 0===t?void 0:t.hideSelectAll))}}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps(),this.syncRowStates(),this.syncUpTableFootVisibility()}componentDidLoad(){}clearSelection(){g.notify(y,{host:this.host,checked:!1,noneChecked:!0})}watchCurrentData(){this.syncUpTableFootVisibility()}watchStriped(){this.syncRowStates()}watchRowDivider(){this.syncRowStates()}updateRowStriped(t,e){t.striped=this.striped&&e%2==1}updateRowDivider(t,e){t.rowDivider=this.rowDivider&&!e}syncUpTableFootVisibility(){const t=this.host.querySelector("vega-table-foot");t&&(this.vegaTableDataSourceController.isCurrentDataEmpty()?t.classList.add("v-hidden"):t.classList.remove("v-hidden"))}}te([l()],ee.prototype,"host",void 0),te([l()],ee.prototype,"columns",void 0),te([l()],ee.prototype,"dataSource",void 0),te([l()],ee.prototype,"currentData",void 0),te([l()],ee.prototype,"rowSelection",void 0),te([l()],ee.prototype,"striped",void 0),te([l()],ee.prototype,"rowDivider",void 0),te([l()],ee.prototype,"vegaTableDataSourceController",void 0),te([l()],ee.prototype,"vegaTableRenderer",void 0),te([l()],ee.prototype,"isTemplateRenderMode",void 0),te([h()],ee.prototype,"currentDataObserver",void 0),te([h()],ee.prototype,"rowStripedObserver",void 0),te([c("connectedCallback")],ee.prototype,"connectedCallback",null),te([c("disconnectedCallback")],ee.prototype,"disconnectedCallback",null),te([c("componentWillLoad")],ee.prototype,"componentWillLoad",null),te([c("componentDidLoad")],ee.prototype,"componentDidLoad",null),te([c("clearSelection")],ee.prototype,"clearSelection",null),te([c("watchCurrentData")],ee.prototype,"watchCurrentData",null),te([c("watchStriped")],ee.prototype,"watchStriped",null),te([c("watchRowDivider")],ee.prototype,"watchRowDivider",null);var ie=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class oe extends n{constructor(){super(...arguments),this.renderTableRowComponent=e=>{const{rowKey:i,index:o,record:s,isVisibleInCurrentPage:r}=e,a=this.vegaTableRenderInputController.getLeafRenderInputs(),l=this.vegaTableBodyColSpanController.resolveRow(s,o,a),n=[];return a.forEach(((t,e)=>{const i=l[e];i&&n.push(this.vegaTableCellRenderer.render(t,s,o,i))})),t("vega-table-row",{class:{"v-hidden":!r},key:`vega-table-row-${i}`,rowKey:i,ref:t=>{D.addUniqueObserverToNode(t,z,(()=>{this.rowClickEventEmitter.emit({record:s,index:o})}))},striped:this.striped&&o%2==1,rowDivider:this.rowDivider&&!e.isLastRow},n)}}render(e,i){const{rowKey:o}=e;return i?t("vega-form",{key:`vega-table-row-form-${o}`,"data-vega-form":`${Ut.rowFormKeyPrefix}${o}`,ref:t=>this.vegaTableEditableController.getRowFormRefMap().set(o,t)},this.renderTableRowComponent(e)):this.renderTableRowComponent(e)}}ie([l()],oe.prototype,"rowClickEventEmitter",void 0),ie([l()],oe.prototype,"vegaTableEditableController",void 0),ie([l()],oe.prototype,"vegaTableCellRenderer",void 0),ie([l()],oe.prototype,"vegaTableBodyColSpanController",void 0),ie([l()],oe.prototype,"striped",void 0),ie([l()],oe.prototype,"rowDivider",void 0),ie([l()],oe.prototype,"vegaTableRenderInputController",void 0);var se=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class re extends n{constructor(){super(...arguments),this.currentDataObserver=new it({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ot("VEGA-TABLE-ROW"),callback:()=>{this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}}),this.checkIsTemplateRenderMode=t=>Array.from(t.children).some((t=>t.tagName.startsWith("VEGA-TABLE-")))}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}componentDidLoad(){}}se([l()],re.prototype,"host",void 0),se([l({writable:!0})],re.prototype,"isTemplateRenderMode",void 0),se([h()],re.prototype,"currentDataObserver",void 0),se([c("connectedCallback")],re.prototype,"connectedCallback",null),se([c("disconnectedCallback")],re.prototype,"disconnectedCallback",null),se([c("componentWillLoad")],re.prototype,"componentWillLoad",null),se([c("componentDidLoad")],re.prototype,"componentDidLoad",null);const ae=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:t=>0===t.dataSource.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:t=>t.dataSource.length>0}];class le{constructor(t,e,i,o,s){this.key=t,this.level=e,this.parent=i,this.label=o,this.pinned=s,this.leaves=[],this.orderedChildren=[],this.iteratorCacheMap=new Map}static from(t,e){const i=new le(this.ROOT_KEY,le.ROOT_LEVEL);return e?(i.children=this.fromGroupColumns(i,e),i):t?(i.children=t.map((t=>new le(t.key||t.prop||t.label,0,i,null,t.pinned))),i):(i.children=[],i)}static fromGroupColumns(t,e,i=0){return e&&e.length>0?e.map((e=>{if(J(e)){const o=new le(e.key,i,t,e.label,e.pinned);return o.children=this.fromGroupColumns(o,e.children,i+1),o}return new le(e.key,i,t)})):[]}generateColumnConfigByLeaves(t){return this.getLeaves().map((e=>t.find((t=>t.key===e.key||t.prop===e.key||t.label===e.key))))}getMaxDepth(){const t=this.dfsIterator();return 0===t.length?0:Math.max(...t.map((t=>t.level)))+1}hasGroupColumn(){return!!this.children.find((t=>!t.isLeaf()))}hasLeftPinnedColumn(){return!!this.children.find((t=>"left"===t.pinned))}hasRightPinnedColumn(){return!!this.children.find((t=>"right"===t.pinned))}isLeaf(){return!this.children||0===this.children.length}iterator(t="dfs"){return"dfs"===t?this.dfsIterator():[]}getLeaves(){if(this.leaves.length>0)return this.leaves;const t=this.dfsIterator().filter((t=>t.isLeaf()));return this.leaves=t,t}getOrderedChildren(){return this.isRoot()?this.orderedChildren:this.children}orderChildrenByPinned(){if(!this.isRoot())return this.children;if(this.orderedChildren.length>0)return this.orderedChildren;const t=[],e=[],i=[];this.children.forEach((o=>{"left"===o.pinned?t.push(o):"right"===o.pinned?i.push(o):e.push(o)}));const o=[...t,...e,...i];return this.orderedChildren=o,o}isRoot(){return this.level===le.ROOT_LEVEL}dfsIterator(){if(this.iteratorCacheMap.has("dfs"))return this.iteratorCacheMap.get("dfs");const t=[],e=this.orderChildrenByPinned();return this.isRoot()||t.push(this),e&&e.length>0&&e.forEach((e=>{t.push(...e.dfsIterator())})),this.iteratorCacheMap.set("dfs",t),t}}le.ROOT_LEVEL=-1,le.ROOT_KEY="#root-model#";var ne=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class de extends n{componentWillLoad(){this.setColumnStructureModel()}watchColumns(){this.setColumnStructureModel()}watchGroupColumns(){this.setColumnStructureModel()}setColumnStructureModel(){this.columnStructureModel=le.from(this.columns,this.groupColumns)}}ne([l()],de.prototype,"host",void 0),ne([l()],de.prototype,"columns",void 0),ne([l()],de.prototype,"groupColumns",void 0),ne([l({writable:!0})],de.prototype,"columnStructureModel",void 0),ne([c("componentWillLoad")],de.prototype,"componentWillLoad",null),ne([c("watchColumns")],de.prototype,"watchColumns",null),ne([c("watchGroupColumns")],de.prototype,"watchGroupColumns",null);var ce=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class he extends n{constructor(){super(...arguments),this.headRowRenderInputMap=new Map,this.headCellRenderInputMap=new Map,this.pinnedColumnBodyCellRenderInputMap=new Map,this.cellRenderInputChangeTaskQueue=new ct}connectedCallback(){this.registerRenderInputRICObserver()}disconnectedCallback(){this.unRegisterRenderInputRICObserver()}componentWillLoad(){this.setRenderInputModel()}async componentDidRender(){await this.cellRenderInputChangeTaskQueue.runTask()}async watchColumnStructureModel(){this.setRenderInputModel(),this.pinnedColumnBodyCellRenderInputMap.clear(),await this.cellRenderInputChangeTaskQueue.enqueue({run:async()=>{g.notify(E.getSubject(this.host,A),{})}},!1)}getLeafRenderInputs(){return this.leavesRenderInputModels}getHeadRenderInputs(){return this.columnRenderInputModels}addHeadRowRenderInputMap(t,e){this.headRowRenderInputMap.set(t,e)}addHeadCellRenderInputMap(t,e){this.headCellRenderInputMap.set(t,e)}addCellRenderInputMap(t,e){(t&&["left","right"].includes(e.pinned)||e.isNoPinnedEnd)&&this.pinnedColumnBodyCellRenderInputMap.set(t,e)}getHeadCellRenderInputMap(){return this.headCellRenderInputMap}getPinnedColumnBodyCellRenderInputMap(){return this.pinnedColumnBodyCellRenderInputMap}registerRenderInputRICObserver(){O.register(E.getSubject(this.host,N),(t=>this.headRowRenderInputMap.get(t))),O.register(E.getSubject(this.host,I),(t=>this.headCellRenderInputMap.get(t))),O.register(E.getSubject(this.host,W),(t=>this.pinnedColumnBodyCellRenderInputMap.get(t)))}unRegisterRenderInputRICObserver(){O.unRegister(E.getSubject(this.host,N)),O.unRegister(E.getSubject(this.host,I)),O.unRegister(E.getSubject(this.host,W))}setRenderInputModel(){this.columnRenderInputModels=Rt.from(this.columnStructureModel),this.leavesRenderInputModels=this.columnRenderInputModels.flatMap((t=>t.getLeaves()))}}ce([l()],he.prototype,"host",void 0),ce([l()],he.prototype,"columnStructureModel",void 0),ce([l()],he.prototype,"vegaTableColGroupRenderer",void 0),ce([c("connectedCallback")],he.prototype,"connectedCallback",null),ce([c("disconnectedCallback")],he.prototype,"disconnectedCallback",null),ce([c("componentWillLoad")],he.prototype,"componentWillLoad",null),ce([c("componentDidRender")],he.prototype,"componentDidRender",null),ce([c("watchColumnStructureModel")],he.prototype,"watchColumnStructureModel",null);var ve=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class pe extends n{constructor(){super(...arguments),this.pageResizeObserverSlimmer=new st({target:()=>this.host.shadowRoot.querySelector("table"),isDeferred:!0,callback:async()=>{await this.host.componentOnReady().then((()=>{this.updateTableRowPinnedPosition(),this.updateTableCellPinnedPosition()}))}}),this.previouslyStyledCells=new Set,this.dynamicRightDividerCells=new Set,this.dynamicLeftDividerCells=new Set,this.dynamicHideRightBorderCells=new Set,this.clearPinnedPositionsTaskQueue=new ct(1)}componentDidLoad(){}async componentDidRender(){await this.clearPinnedPositionsTaskQueue.runTask(),this.updateTableRowPinnedPosition();const t=this.updateTableCellPinnedPosition();t.length>0&&(await Promise.all(t.map((t=>t.componentOnReady()))),this.updateTableCellPinnedPosition())}watchColumnStructureModel(){this.clearPinnedPositionsTaskQueue.enqueue({run:async()=>{this.clearAllPinnedPositions()}},!1)}updateTableCellPinnedPosition(){if(!this.columnStructureModel.hasLeftPinnedColumn()&&!this.columnStructureModel.hasRightPinnedColumn())return[];if(this.dynamicRightDividerCells.forEach((t=>t.classList.remove("right-divider"))),this.dynamicRightDividerCells.clear(),this.dynamicLeftDividerCells.forEach((t=>t.classList.remove("left-divider"))),this.dynamicLeftDividerCells.clear(),this.dynamicHideRightBorderCells.forEach((t=>t.classList.remove("hide-right-border"))),this.dynamicHideRightBorderCells.clear(),!this.host.shadowRoot.querySelector("vega-table-head-row"))return[];const t=this.vegaTableRenderInputController.getHeadCellRenderInputMap(),e=this.vegaTableRenderInputController.getPinnedColumnBodyCellRenderInputMap(),[i,o]=this.getRowShadowThWidths(),s=this.getLeafWidths();let r=null,a=null,l=null;t.forEach(((t,e)=>{var n;const d=null===(n=e.shadowRoot)||void 0===n?void 0:n.querySelector("th, td"),c=!!d&&d.getBoundingClientRect().width>0;this.updateCellPinnedPosition(t,e,i,s,o),c&&"left"===t.pinned&&(r=d),c&&"right"===t.pinned&&!a&&(a=d),c&&"right"===t.pinned&&(l=d)})),e.forEach(((t,i)=>{(null==i?void 0:i.isConnected)||e.delete(i)}));const n=new Map,d=new Map,c=new Map,h=[];if(e.forEach(((t,e)=>{var r;const a=null===(r=e.shadowRoot)||void 0===r?void 0:r.querySelector("th, td"),l=!!a&&a.getBoundingClientRect().width>0;if(!["left","right"].includes(t.pinned)||a){if(this.updateCellPinnedPosition(t,e,i,s,o),l&&"left"===t.pinned){const t=e.closest("vega-table-row");t&&n.set(t,a)}if(l&&"right"===t.pinned){const t=e.closest("vega-table-row");t&&!d.has(t)&&d.set(t,a),t&&c.set(t,a)}}else h.push(e)})),r&&!r.classList.contains("right-divider")){const t=this.vegaTableRenderInputController.getLeafRenderInputs().find((t=>t.isLeftEndPinned));t&&0===s[t.columnIndex]&&(r.classList.add("right-divider"),this.dynamicRightDividerCells.add(r),n.forEach((t=>{t.classList.contains("right-divider")||(t.classList.add("right-divider"),this.dynamicRightDividerCells.add(t))})))}if(a&&!a.classList.contains("left-divider")){const t=this.vegaTableRenderInputController.getLeafRenderInputs().find((t=>t.isRightStartPinned));t&&0===s[t.columnIndex]&&(a.classList.add("left-divider"),this.dynamicLeftDividerCells.add(a),d.forEach((t=>{t.classList.contains("left-divider")||(t.classList.add("left-divider"),this.dynamicLeftDividerCells.add(t))})))}if(l&&!l.classList.contains("hide-right-border")){const t=this.vegaTableRenderInputController.getLeafRenderInputs().filter((t=>"right"===t.pinned)),e=t[t.length-1];e&&0===s[e.columnIndex]&&(l.classList.add("hide-right-border"),this.dynamicHideRightBorderCells.add(l),c.forEach((t=>{t.classList.contains("hide-right-border")||(t.classList.add("hide-right-border"),this.dynamicHideRightBorderCells.add(t))})))}return this.syncColspanForHiddenColumns(s,e),h}getRowShadowThWidths(){const t=this.host.shadowRoot.querySelector("vega-table-head-row").shadowRoot,e=t.querySelector("th:first-of-type"),i=t.querySelector(".vega-table-draggable-column"),o=t.querySelector(".vega-table-selection-column"),s=t.querySelector(".vega-table-expand-action-column"),r=t.querySelector("th:last-of-type");return e?[e.getBoundingClientRect().width+((null==o?void 0:o.getBoundingClientRect().width)||0)+((null==i?void 0:i.getBoundingClientRect().width)||0),((null==s?void 0:s.getBoundingClientRect().width)||0)+r.getBoundingClientRect().width]:[0,0]}getLeafWidths(){const t=this.vegaTableRenderInputController.getHeadCellRenderInputMap();return this.vegaTableRenderInputController.getLeafRenderInputs().map((e=>{var i;for(const[o,s]of t.entries())if(e===s)return(null===(i=o.shadowRoot.querySelector("th, td"))||void 0===i?void 0:i.getBoundingClientRect().width)||0}))}syncColspanForHiddenColumns(t,e){t.every((t=>0===t))||e.forEach(((e,i)=>{var o;const s=i.colSpan||1;if(s<=1)return;const r=null===(o=i.shadowRoot)||void 0===o?void 0:o.querySelector("td");if(!r)return;const a=t.slice(e.columnIndex,e.columnIndex+s),l=Math.max(1,a.filter((t=>t>0)).length);r.setAttribute("colspan",String(l))}))}updateCellPinnedPosition(t,e,i,o,s){if(["left","right"].includes(t.pinned)){const r=e.shadowRoot.querySelector("th, td");if("left"===t.pinned){const e=i+o.slice(0,t.columnIndex).reduce(((t,e)=>t+e),0);this.updatePinnedPosition(r,"left",e)}if("right"===t.pinned){const i=q(t.colSpan)?t.colSpan:e.colSpan||1,a=s+o.slice(t.columnIndex+i).reduce(((t,e)=>t+e),0);this.updatePinnedPosition(r,"right",a)}}}updateTableRowPinnedPosition(){const t=this.columnStructureModel.hasLeftPinnedColumn(),e=this.columnStructureModel.hasRightPinnedColumn(),i=this.host.getBoundingClientRect().width,o=j(this.paddingX[0]),s=j(this.paddingX[1]),r=i-o-s-2;this.host.shadowRoot.querySelectorAll("vega-table-head-row, vega-table-row, vega-table-expand-row").forEach((i=>{const a=i.shadowRoot;if(t){const t=a.querySelector("th:first-of-type, td:first-of-type"),e=a.querySelector(".vega-table-selection-column"),i=a.querySelector(".vega-table-draggable-column");this.updatePinnedPosition(t,"left",0),this.updatePinnedPosition(i,"left",o);const s=(null==i?void 0:i.getBoundingClientRect().width)||0;this.updatePinnedPosition(e,"left",o+s)}if(e){const t=a.querySelector(".vega-table-expand-action-column"),e=a.querySelector("th:last-of-type, td:last-of-type");this.updatePinnedPosition(t,"right",s),this.updatePinnedPosition(e,"right",0)}if(e||t){const t=a.querySelector(".vega-table-expanded-row-slot-container");if(t){const e=t.querySelector(".expanded-row-slot-inner");this.updatePinnedPosition(e,"left",o),e.style.width=`${r}px`}}}))}clearAllPinnedPositions(){this.previouslyStyledCells.forEach((t=>{t.style.position="",t.style.zIndex="",t.style.left="",t.style.right="",t.classList.contains("expanded-row-slot-inner")&&(t.style.width="")})),this.dynamicRightDividerCells.forEach((t=>t.classList.remove("right-divider"))),this.dynamicRightDividerCells.clear(),this.dynamicLeftDividerCells.forEach((t=>t.classList.remove("left-divider"))),this.dynamicLeftDividerCells.clear(),this.dynamicHideRightBorderCells.forEach((t=>t.classList.remove("hide-right-border"))),this.dynamicHideRightBorderCells.clear(),this.previouslyStyledCells.clear()}updatePinnedPosition(t,e,i){t&&(t.style.position="sticky",t.style.zIndex="1",t.style[e]=`${i}px`,this.previouslyStyledCells.add(t))}}ve([l()],pe.prototype,"host",void 0),ve([l()],pe.prototype,"columnStructureModel",void 0),ve([l()],pe.prototype,"paddingX",void 0),ve([l()],pe.prototype,"vegaTableRenderInputController",void 0),ve([h()],pe.prototype,"pageResizeObserverSlimmer",void 0),ve([c("componentDidLoad")],pe.prototype,"componentDidLoad",null),ve([c("componentDidRender")],pe.prototype,"componentDidRender",null),ve([c("watchColumnStructureModel")],pe.prototype,"watchColumnStructureModel",null);var be=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ue extends n{constructor(t){super(),this.activePointerId=null,this.activeItem=null,this.isDragging=!1,this.startX=0,this.startY=0,this.dragFromIndex=null,this.dragToIndex=null,this.currentOverItem=null,this.currentOverIndex=null,this.activeItemHeight=0,this.cachedItems=[],this.cachedItemDraggableMap=new WeakMap,this.onPointerDown=t=>{if(0!==t.button)return;const e=this.getItemFromComposedPath(t,!0);e&&(this.startDrag(e,t),t.preventDefault())},this.onPointerMove=t=>{this.isCurrentPointEvent(t)&&this.hasCrossedDragThreshold(t)&&(this.beginDragging(),this.syncActiveVisual(t),this.updateDropTarget(t),this.emitDrag(),t.preventDefault())},this.onPointerUp=t=>{this.isCurrentPointEvent(t)&&this.finishDrag()},this.onPointerCancel=t=>{t.pointerId===this.activePointerId&&this.resetDragState()},this.entry=t}connectedCallback(){this.init()}disconnectedCallback(){this.destroy()}componentDidLoad(){this.init()}watchIsDraggable(){this.isDraggable?this.init():this.destroy()}init(){this.isDraggable&&this.listenPointerEvents()}destroy(){this.removePointerListeners(),this.resetDragState()}listenPointerEvents(){const t=this.getContainer();t&&(t.addEventListener("pointerdown",this.onPointerDown),window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerCancel))}removePointerListeners(){const t=this.getContainer();t&&t.removeEventListener("pointerdown",this.onPointerDown),window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerCancel)}startDrag(t,e){this.activePointerId=e.pointerId,this.activeItem=t,this.isDragging=!1,this.startX=e.clientX,this.startY=e.clientY,this.cacheItems(),this.dragFromIndex=this.getItems().indexOf(t),this.dragToIndex=this.dragFromIndex,this.currentOverItem=t,this.currentOverIndex=this.dragFromIndex,this.activeItemHeight=this.getVisualElement(t).getBoundingClientRect().height}beginDragging(){!this.isDragging&&null!==this.dragFromIndex&&this.activeItem&&(this.isDragging=!0,this.onDragDrop("start"))}syncActiveVisual(t){if(!this.activeItem)return;const e=this.getVisualElement(this.activeItem);e.style.transform=`translateY(${t.clientY-this.startY}px)`,e.style.position="relative",e.style.pointerEvents="none",e.style.boxShadow="0 4px 8px rgba(0, 0, 0, 0.15)",vt.setZIndex(e,"top")}updateDropTarget(t){if(null===this.dragFromIndex||!this.activeItem)return;const e=this.getItemFromComposedPath(t,!1);if(!e)return this.emitDragLeave(this.currentOverIndex,this.currentOverItem),this.currentOverItem=null,void(this.currentOverIndex=null);const i=this.getItemIndex(e),o=this.getResolvedDropIndex(e,t.clientY);this.currentOverItem!==e?(this.emitDragLeave(this.currentOverIndex,this.currentOverItem),this.currentOverItem=e,this.currentOverIndex=i,this.onDragDrop("enter")):this.currentOverIndex=i,this.dragToIndex=o,this.onDragDrop("over"),this.applyLayoutTransforms()}finishDrag(){var t,e,i;const o=this.dragFromIndex,s=this.dragToIndex,r=this.isDragging&&null!=o&&o!==s,a=null!=o&&null!==(t=this.getItems().at(o))&&void 0!==t?t:null,l=this.currentOverItem;this.isDragging&&null!=o&&a&&this.onDragDrop("drop"),this.resetDragState(),r&&null!=o&&a&&(null===(i=(e=this.entry).onDragDrop)||void 0===i||i.call(e,{status:"end",options:{fromIndex:o,fromItem:a,toIndex:s,toItem:l}}))}resetDragState(){if(this.cachedItems.forEach((t=>{const e=this.cachedItemDraggableMap.get(t);if(!e)return;const{visualElement:i,inlineStyle:o}=e;null==o?i.removeAttribute("style"):i.setAttribute("style",o)})),this.activeItem){const t=this.getVisualElement(this.activeItem);vt.removeZIndex(t,"top")}this.activePointerId=null,this.activeItem=null,this.isDragging=!1,this.dragFromIndex=null,this.dragToIndex=null,this.currentOverItem=null,this.currentOverIndex=null,this.activeItemHeight=0,this.cachedItemDraggableMap=new WeakMap,this.cachedItems=[]}getContainer(){return this.entry.container()}queryItems(){const t=this.getContainer();return t?Array.from(t.querySelectorAll(this.entry.itemSelector)):[]}getItems(){return this.cachedItems.length>0?this.cachedItems:this.queryItems()}getItemIndex(t){return this.getItems().indexOf(t)}getVisualElement(t){const e=this.cachedItemDraggableMap.get(t);return e?e.visualElement:this.resolveVisualElement(t)}resolveVisualElement(t){var e,i;const o=this.entry.visualElementSelector;if(!o)return t;return(null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelector(o))||(null!==(i=t.querySelector(o))&&void 0!==i?i:t)}cacheItems(){this.cachedItemDraggableMap=new WeakMap,this.cachedItems=this.queryItems(),this.cachedItems.forEach((t=>{const e=this.resolveVisualElement(t);this.cachedItemDraggableMap.set(t,{visualElement:e,inlineStyle:e.getAttribute("style")})}))}getItemFromComposedPath(t,e=!1){const i=this.entry.itemSelector,o=this.entry.triggerElementSelector;let s=null,r=!o;for(const e of t.composedPath())if(e instanceof HTMLElement&&(!s&&e.matches(i)&&(s=e),!r&&o&&e.matches(o)&&(r=!0),s&&r))break;return!s||e&&!r?null:s}applyLayoutTransforms(){if(null==this.dragFromIndex||null==this.dragToIndex||0===this.activeItemHeight)return;const t=this.dragFromIndex,e=this.dragToIndex,i=t<e?-this.activeItemHeight:this.activeItemHeight;this.getItems().forEach(((o,s)=>{o!==this.activeItem&&(this.getVisualElement(o).style.transform=(t<e?s>t&&s<=e:s>=e&&s<t)?`translateY(${i}px)`:"")}))}getResolvedDropIndex(t,e){const i=this.getItemIndex(t),o=this.dragFromIndex;if(i<0||null==o)return i;if(i===o)return i;const s=this.getVisualElement(t).getBoundingClientRect(),r=e>s.top+s.height/2;return i>o?r?i:i-1:r?i+1:i}isCurrentPointEvent(t){return null!==this.activePointerId&&this.activePointerId===t.pointerId}hasCrossedDragThreshold(t){return!!this.isDragging||Math.abs(t.clientX-this.startX)+Math.abs(t.clientY-this.startY)>=ue.DRAG_THRESHOLD}emitDrag(){null!==this.dragFromIndex&&this.activeItem&&this.onDragDrop("drag")}emitDragLeave(t,e){null!==t&&e&&this.onDragDrop("leave")}onDragDrop(t){var e,i;null!=this.dragFromIndex&&this.activeItem&&(null===(i=(e=this.entry).onDragDrop)||void 0===i||i.call(e,{status:t,options:{fromIndex:this.dragFromIndex,fromItem:this.activeItem,toIndex:this.dragToIndex,toItem:this.currentOverItem}}))}}ue.DRAG_THRESHOLD=4,be([c("connectedCallback")],ue.prototype,"connectedCallback",null),be([c("disconnectedCallback")],ue.prototype,"disconnectedCallback",null),be([c("componentDidLoad")],ue.prototype,"componentDidLoad",null);var fe=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ge extends n{constructor(){super(...arguments),this.draggableElementSlimmer=ht(ge,ue,[{mapFrom:"rowDraggable",mapTo:"isDraggable"}],[{mapFrom:"watchRowDraggable",mapTo:"watchIsDraggable"}],[{container:this.getDragContainer.bind(this),itemSelector:"vega-table-row",triggerElementSelector:"td.vega-table-draggable-column",visualElementSelector:"tr.vega-table-row",onDragDrop:this.onDragDrop.bind(this)}])}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}watchRowDraggable(){}getDragContainer(){return this.isTemplateRenderMode?this.host.querySelector("vega-table-body"):this.vegaTableBodyRenderer.getTableBodyRef()}onDragDrop(t){this.rowDragDropEventEmitter.emit(t).defaultPrevented||"end"===t.status&&this.onDragEnd(t)}onDragEnd(t){const e=t.options.fromIndex,i=t.options.toIndex;if(this.vegaTableSortController.clearSorter(),this.isTemplateRenderMode){const t=Array.from(this.host.querySelectorAll("vega-table-row"));this.host.querySelector("vega-table-body").insertBefore(t[e],e>i?t[i]:t[i].nextSibling)}else{const t=[...this.vegaTableDataSourceController.getCurrentData()],[o]=t.splice(e,1);t.splice(i,0,o),this.vegaTableDataSourceController.setCurrentData(t)}}}fe([l()],ge.prototype,"rowDraggable",void 0),fe([l()],ge.prototype,"host",void 0),fe([l()],ge.prototype,"vegaTableDataSourceController",void 0),fe([l()],ge.prototype,"isTemplateRenderMode",void 0),fe([l()],ge.prototype,"vegaTableBodyRenderer",void 0),fe([l()],ge.prototype,"vegaTableSortController",void 0),fe([l()],ge.prototype,"rowDragDropEventEmitter",void 0),fe([h()],ge.prototype,"draggableElementSlimmer",void 0),fe([c("connectedCallback")],ge.prototype,"connectedCallback",null),fe([c("disconnectedCallback")],ge.prototype,"disconnectedCallback",null),fe([c("componentDidLoad")],ge.prototype,"componentDidLoad",null),fe([c("watchRowDraggable")],ge.prototype,"watchRowDraggable",null);var we=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const me=class{constructor(t){s(this,t),this.vegaChange=r(this,"vegaChange",7),this.change=r(this,"change",7),this.vegaRowClick=r(this,"vegaRowClick",7),this.rowClick=r(this,"rowClick",7),this.vegaRowExpand=r(this,"vegaRowExpand",7),this.rowExpand=r(this,"rowExpand",7),this.vegaSelectChange=r(this,"vegaSelectChange",7),this.selectChange=r(this,"selectChange",7),this.vegaSelectAllChange=r(this,"vegaSelectAllChange",7),this.selectAllChange=r(this,"selectAllChange",7),this.vegaRowSelect=r(this,"vegaRowSelect",7),this.rowSelect=r(this,"rowSelect",7),this.vegaRowSelectAll=r(this,"vegaRowSelectAll",7),this.rowSelectAll=r(this,"rowSelectAll",7),this.vegaRowDragDrop=r(this,"vegaRowDragDrop",7),this.rowDragDrop=r(this,"rowDragDrop",7),this.globalSlimmers={},this.translationSlimmer=new dt,this.vegaTableRenderModeController=new re,this.vegaTableColumnStructureModelController=new de,this.vegaTableRenderInputController=new he,this.vegaTablePinnedRenderer=new pe,this.vegaTableRenderer=new Ft,this.vegaTableHeaderRenderer=new Pt,this.vegaTableBodyRenderer=new It,this.vegaTableRowRenderer=new oe,this.vegaTableCellRenderer=new Ct,this.vegaTableBodyColSpanController=new Et,this.vegaTablePaginationRenderer=new Bt,this.vegaTableScrollContainerRenderer=new Vt,this.vegaTableRowSelectionController=new Lt,this.vegaTableDataSourceController=new At,this.vegaTablePaginationController=new Xt,this.vegaTableEditableController=new Ut,this.vegaTableSortController=new Zt,this.vegaTableColGroupRenderer=new Qt,this.vegaTableChildrenController=new ee,this.vegaTableRowDraggableController=new ge,this.vegaTableExpandRowController=new Ot,this.pageResizeObserverSlimmer=new st,this.rowSelectionNotifySlimmer=rt(me,"rowSelection","watchRowSelection"),this.expandableRowsNotifySlimmer=rt(me,"expandableRows","watchExpandableRows"),this.hasExpandableRowNotifySlimmer=rt(me,"hasExpandableRow","watchHasExpandableRow"),this.paddingXNotifySlimmer=rt(me,"paddingX","watchPaddingX"),this.rowClickableNotifySlimmer=rt(me,"rowClickable","watchRowClickable"),this.scrollConfigNotifySlimmer=rt(me,"scrollConfig","watchScrollConfig"),this.eventsPrevent=new at([B,_,K],(()=>this.host)),this.changeEventEmitter=lt(me,B),this.selectChangeEventEmitter=lt(me,V),this.selectAllChangeEventEmitter=lt(me,$),this.rowClickEventEmitter=lt(me,F),this.rowExpandEventEmitter=lt(me,G),this.rowDragDropEventEmitter=lt(me,X),this.rowDividerNotifySlimmer=rt(me,"rowDivider","watchRowDivider"),this.columnDividerNotifySlimmer=rt(me,"columnDivider","watchColumnDivider"),this.densityNotifySlimmer=rt(me,"density","watchDensity"),this.isTemplateRenderModeNotifySlimmer=rt(me,"isTemplateRenderMode","watchTemplateRenderMode"),this.currentDataNotifySlimmer=rt(me,"currentData","watchCurrentData"),this.rowDraggableNotifySlimmer=rt(me,"rowDraggable","watchRowDraggable"),this.vegaComponentUsageRuntimeMetricsSlimmer=new b(ae),this.rowSelectEventEmitter=lt(me,H),this.rowSelectAllEventEmitter=lt(me,U),this.selectedRowKeySet=new yt(new Set,(t=>{this.selectedRowKeySet=t})),this.expandedRowKeySet=new yt(new Set,(t=>{this.expandedRowKeySet=t})),this.currentBreakpoint=et(),this.sortersMap=new nt(new Map,(t=>{this.sortersMap=t})),this.currentData=[],this.currentPage=1,this.pageSize=10,this.editingRows=new yt(new Set,(t=>{this.editingRows=t})),this.isSelectedAll=!1,this.expandableRows=[],this.hasExpandableRow=!1,this.columns=[],this.dataSource=[],this.rowSelection=null,this.rowExpandable=!1,this.rowClickable=!1,this.rowDraggable=!1,this.rowDivider=!1,this.columnDivider=!1,this.striped=!0,this.density="default",this.paddingX=["8px","8px"],this.showHeader=!0,this.pagination=null,this.emptyDescription="There is no data to display",this.rowKey="key",this.sortConfig={type:"multiple"},this.showEditError=!1}watchSelectedRowKeySet(){}watchSortersMap(){}watchCurrentData(t,e){}watchCurrentPage(){}watchSelectedAll(){}watchTemplateRenderMode(){}watchColumnStructureModel(){}watchExpandableRows(){}watchHasExpandableRow(){}watchColumns(){}watchGroupColumns(){}watchDataSource(){}watchRowSelection(){}watchRowExpandable(){}watchRowClickable(){}watchRowDraggable(){}watchRowDivider(){}watchColumnDivider(){}watchStriped(){}watchDensity(){}watchPaddingX(){}watchPagination(){}watchScrollConfig(){}async openExpandRow(t){}async closeExpandRow(t){}async closeAllExpandRow(){}async toggleExpandRow(t){}async clearSelection(){}async getSelection(){return v()}async setSelection(t){}async startRowEditMode(t){}async stopRowEditMode(t){}async stopAllRowEditMode(){}async getRowData(t){return v(t)}async getRowsData(){return v()}async getFormRef(t){return v(t)}async addNewRow(t={}){return v(t)}async saveEditRow(t){return v(t)}async saveAllEditRows(){}async getEditingRowsKey(){return v()}async removeRow(t){}render(){return p(t("slot",null)),this.vegaTableRenderer.render()}get host(){return a(this)}static get watchers(){return{selectedRowKeySet:["watchSelectedRowKeySet"],sortersMap:["watchSortersMap"],currentData:["watchCurrentData"],currentPage:["watchCurrentPage"],isSelectedAll:["watchSelectedAll"],isTemplateRenderMode:["watchTemplateRenderMode"],columnStructureModel:["watchColumnStructureModel"],expandableRows:["watchExpandableRows"],hasExpandableRow:["watchHasExpandableRow"],columns:["watchColumns"],groupColumns:["watchGroupColumns"],dataSource:["watchDataSource"],rowSelection:["watchRowSelection"],rowExpandable:["watchRowExpandable"],rowClickable:["watchRowClickable"],rowDraggable:["watchRowDraggable"],rowDivider:["watchRowDivider"],columnDivider:["watchColumnDivider"],striped:["watchStriped"],density:["watchDensity"],paddingX:["watchPaddingX"],pagination:["watchPagination"],scrollConfig:["watchScrollConfig"]}}};we([u()],me.prototype,"globalSlimmers",void 0),we([h()],me.prototype,"translationSlimmer",void 0),we([h()],me.prototype,"vegaTableRenderModeController",void 0),we([h()],me.prototype,"vegaTableColumnStructureModelController",void 0),we([h()],me.prototype,"vegaTableRenderInputController",void 0),we([h()],me.prototype,"vegaTablePinnedRenderer",void 0),we([h()],me.prototype,"vegaTableRenderer",void 0),we([h()],me.prototype,"vegaTableHeaderRenderer",void 0),we([h()],me.prototype,"vegaTableBodyRenderer",void 0),we([h()],me.prototype,"vegaTableRowRenderer",void 0),we([h()],me.prototype,"vegaTableCellRenderer",void 0),we([h()],me.prototype,"vegaTableBodyColSpanController",void 0),we([h()],me.prototype,"vegaTablePaginationRenderer",void 0),we([h()],me.prototype,"vegaTableScrollContainerRenderer",void 0),we([h()],me.prototype,"vegaTableRowSelectionController",void 0),we([h()],me.prototype,"vegaTableDataSourceController",void 0),we([h()],me.prototype,"vegaTablePaginationController",void 0),we([h()],me.prototype,"vegaTableEditableController",void 0),we([h()],me.prototype,"vegaTableSortController",void 0),we([h()],me.prototype,"vegaTableColGroupRenderer",void 0),we([h()],me.prototype,"vegaTableChildrenController",void 0),we([h()],me.prototype,"vegaTableRowDraggableController",void 0),we([h()],me.prototype,"vegaTableExpandRowController",void 0),we([h()],me.prototype,"pageResizeObserverSlimmer",void 0),we([h()],me.prototype,"rowSelectionNotifySlimmer",void 0),we([h()],me.prototype,"expandableRowsNotifySlimmer",void 0),we([h()],me.prototype,"hasExpandableRowNotifySlimmer",void 0),we([h()],me.prototype,"paddingXNotifySlimmer",void 0),we([h()],me.prototype,"rowClickableNotifySlimmer",void 0),we([h()],me.prototype,"scrollConfigNotifySlimmer",void 0),we([h()],me.prototype,"eventsPrevent",void 0),we([h()],me.prototype,"changeEventEmitter",void 0),we([h()],me.prototype,"selectChangeEventEmitter",void 0),we([h()],me.prototype,"selectAllChangeEventEmitter",void 0),we([h()],me.prototype,"rowClickEventEmitter",void 0),we([h()],me.prototype,"rowExpandEventEmitter",void 0),we([h()],me.prototype,"rowDragDropEventEmitter",void 0),we([h()],me.prototype,"rowDividerNotifySlimmer",void 0),we([h()],me.prototype,"columnDividerNotifySlimmer",void 0),we([h()],me.prototype,"densityNotifySlimmer",void 0),we([h()],me.prototype,"isTemplateRenderModeNotifySlimmer",void 0),we([h()],me.prototype,"currentDataNotifySlimmer",void 0),we([h()],me.prototype,"rowDraggableNotifySlimmer",void 0),we([h()],me.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),we([h()],me.prototype,"rowSelectEventEmitter",void 0),we([h()],me.prototype,"rowSelectAllEventEmitter",void 0),me.style=':host{display:block}table{width:100%;border-spacing:0}.vega-table-empty-description{text-align:center;padding:24px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}table.v-table-fixed{table-layout:fixed}.vega-table-scrollable-container{overflow:auto}.vega-table-scrollable-container vega-table-head{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.vega-table-scrollable-container.scrolled vega-table-head.fixed-header,.vega-table-scrollable-container.scrolled ::slotted(vega-table-head.fixed-header){box-shadow:0px 4px 0px rgba(0, 0, 0, 0.1);}.vega-table-scrollable-container.scrolled vega-table-foot.fixed-footer::after,.vega-table-scrollable-container.scrolled ::slotted(vega-table-foot.fixed-footer)::after{content:"";position:absolute;top:0;left:0;width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}vega-form{display:contents}table:not(.show-edit-error) *::part(field-error-message){display:none !important}.vega-table-pagination-container{margin-top:24px}.vega-table-pagination-container.bottom-center{display:flex;justify-content:center}.vega-table-pagination-container.bottom-right{display:flex;justify-content:flex-end}.vega-table-pagination-container.bottom-left{display:flex;justify-content:flex-start}col.v-hidden{display:none;visibility:collapse}@media (min-width: 320px){col.S\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 768px){col.M\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 1024px){col.L\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 1440px){col.XL\\:v-table-column{display:table-column;visibility:visible}}:host(.is-group-table) .vega-table-scrollable-container{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-width:1px;border-style:solid}:host(.is-group-table.density-relaxed) .vega-table-scrollable-container{border-radius:12px}:host(.is-group-table.density-default) .vega-table-scrollable-container{border-radius:12px}:host(.is-group-table.density-compact) .vega-table-scrollable-container{border-radius:4px}:host(.is-pinned-table) table{min-width:max-content}.draggable-col{min-width:16px;width:16px}';var ye=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const xe=class{constructor(t){s(this,t),this.globalSlimmers={},this.childChangeEventPrevent=new at([B],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new b}render(){return Q(t(o,null,t("tbody",null,t("slot",null))),this.host)}get host(){return a(this)}};ye([u()],xe.prototype,"globalSlimmers",void 0),ye([h()],xe.prototype,"childChangeEventPrevent",void 0),ye([h()],xe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),xe.style=":host{display:contents}";const Re=(t,e)=>t&&Z(t)?`v-hidden ${t}:${e}`:"";var Se=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ce extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:t=>{const e=this.host.parentElement;if(e){const i=e.querySelector("vega-table-cell:last-of-type");this.columnDivider=t&&i!==this.host}}},{subStateName:"clickable",parentStateName:"rowClickable"}]})}}Se([l()],Ce.prototype,"host",void 0),Se([l({writable:!0})],Ce.prototype,"density",void 0),Se([l({writable:!0})],Ce.prototype,"columnDivider",void 0),Se([l({writable:!0})],Ce.prototype,"clickable",void 0);var ke=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class je extends pt{constructor(){super({parent:"vega-table-row",subStates:[{subStateName:"checked",parentStateName:"checked"},{subStateName:"expanded",parentStateName:"expanded"},{subStateName:"striped",parentStateName:"striped"},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}}ke([l({writable:!0})],je.prototype,"checked",void 0),ke([l({writable:!0})],je.prototype,"expanded",void 0),ke([l({writable:!0})],je.prototype,"striped",void 0),ke([l({writable:!0})],je.prototype,"rowDivider",void 0);var Ee=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class De extends n{constructor(t){super(),this.observer=null,this.table=null,this.observerSubject=t}componentWillRenderInput(){this.renderInput=this.fetchRenderInput()}connectRenderInputObserver(){this.table=C(this.host,"vega-table"),this.table&&this.registerRenderInputChangeObserver()}disconnectRenderInputObserver(){this.table&&this.observer&&(this.unregisterRenderInputChangeObserver(),this.observer=null,this.table=null)}fetchRenderInput(){return this.table?O.call(E.getSubject(this.table,this.observerSubject),this.host):null}registerRenderInputChangeObserver(){this.observer=new S((()=>!0),(()=>{this.renderInput=this.fetchRenderInput()})),g.register(E.getSubject(this.table,A),this.observer)}unregisterRenderInputChangeObserver(){g.unregister(E.getSubject(this.table,A),this.observer)}}Ee([l()],De.prototype,"host",void 0),Ee([l({writable:!0})],De.prototype,"renderInput",void 0),Ee([c("componentWillRender")],De.prototype,"componentWillRenderInput",null),Ee([c("connectedCallback")],De.prototype,"connectRenderInputObserver",null),Ee([c("disconnectedCallback")],De.prototype,"disconnectRenderInputObserver",null);var Oe=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const Te=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableCellStateController=new Ce,this.vegaTableRowStateSubscriber=new je,this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.vegaTableRenderInputConsumerSlimmer=new De(W),this.currentBreakpoint=et(),this.ellipsisTooltipText="",this.ellipsisTooltipTrigger="none",this.ellipsisShowTooltip=!1,this.getCellOverflowClass=()=>{switch(this.overflow){case"ellipsis":return"vega-table-cell-ellipsis";case"scroll":return"vega-table-cell-scroll"}}}componentDidLoad(){"ellipsis"===this.overflow&&this.ellipsisShowTooltip&&requestAnimationFrame((()=>this.updateEllipsisState()))}render(){var e,i,s,r,a,l;const n=Re(this.breakpoint,"v-table-cell"),d=(()=>{let t;switch(this.textAlign){case"center":t="v-text-center";break;case"left":t="v-text-left";break;case"right":t="v-text-right";break;default:t=""}return t})(),c=this.getCellOverflowClass(),h=[n,d,"vega-table-cell"];return bt.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||h.push("break-word"),(null===(e=this.renderInput)||void 0===e?void 0:e.isRightStartPinned)&&h.push("left-divider"),(null===(i=this.renderInput)||void 0===i?void 0:i.isLeftEndPinned)&&h.push("right-divider"),((null===(s=this.renderInput)||void 0===s?void 0:s.isNoPinnedEnd)||(null===(r=this.renderInput)||void 0===r?void 0:r.isViewEnd))&&h.push("hide-right-border"),Q(t(o,{class:k([`density-${Y.formatCustom(this.density)}`,this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",this.clickable&&"clickable",this.checked&&"checked",this.striped&&"striped",this.expanded&&"expanded"]),"aria-colspan":(null!==(a=this.colSpan)&&void 0!==a?a:0)>1?String(this.colSpan):null},t("td",{class:k(h),part:"cell",colSpan:(null!==(l=this.colSpan)&&void 0!==l?l:0)>1?this.colSpan:null,onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),style:{width:this.width}},"ellipsis"===this.overflow&&this.ellipsisShowTooltip?t("vega-tooltip",{text:this.ellipsisTooltipText,trigger:this.ellipsisTooltipTrigger,maxWidth:300,style:{display:"block",width:"100%",minWidth:"0"}},t("div",{class:c,ref:t=>{this.overflowContentRef=t}},t("slot",{ref:t=>{this.slotRef=t}}))):t("div",{class:c,ref:t=>{this.overflowContentRef=t}},t("slot",{ref:t=>{this.slotRef=t}})))),this.host)}onMouseEnter(){this.updateEllipsisState(),this.getRowCells().forEach((t=>t.classList.add("hovered")))}onMouseLeave(){this.getRowCells().forEach((t=>t.classList.remove("hovered")))}getRowCells(){const t=this.host.parentElement;return t?Array.from(t.querySelectorAll("vega-table-cell")):[]}updateEllipsisState(){if("ellipsis"!==this.overflow||!this.overflowContentRef)return;const t=this.overflowContentRef.scrollWidth>this.overflowContentRef.clientWidth,e=this.getCellText();this.ellipsisShowTooltip?(this.overflowContentRef.removeAttribute("title"),this.ellipsisTooltipText=e,this.ellipsisTooltipTrigger=t?"hover":"none"):t&&e?this.overflowContentRef.setAttribute("title",e):this.overflowContentRef.removeAttribute("title")}getCellText(){var t,e,i;return(this.slotRef&&"function"==typeof this.slotRef.assignedNodes?this.slotRef.assignedNodes({flatten:!0}):[]).map((t=>{var e;return(null===(e=t.textContent)||void 0===e?void 0:e.trim())||""})).filter((t=>t)).join(" ")||(null===(e=null===(t=this.overflowContentRef)||void 0===t?void 0:t.textContent)||void 0===e?void 0:e.trim())||(null===(i=this.host.textContent)||void 0===i?void 0:i.trim())||""}get host(){return a(this)}};Oe([u()],Te.prototype,"globalSlimmers",void 0),Oe([h()],Te.prototype,"vegaTableCellStateController",void 0),Oe([h()],Te.prototype,"vegaTableRowStateSubscriber",void 0),Oe([h()],Te.prototype,"pageResizeObserverSlimmer",void 0),Oe([h()],Te.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Oe([h()],Te.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),Te.style=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}.vega-table-cell{padding:12px;box-sizing:border-box;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-table-cell.break-word{word-break:break-word}td{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;padding:0px;vertical-align:middle}td.v-text-center{text-align:center}td.v-text-left{text-align:left}td.v-text-right{text-align:right}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}.vega-table-cell-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vega-table-cell-scroll{overflow:auto}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}:host(.row-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host(.striped) .vega-table-cell{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.clickable.hovered:not(.checked)) .vega-table-cell{cursor:pointer;background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}:host(.checked) .vega-table-cell{background-color:rgba(var(--v-bg-table-selected-row, 204, 223, 255, 1))}:host(.expanded) .vega-table-cell{border-top-width:1px;border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}:host .vega-table-cell.right-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:2px;border-right-style:solid}:host .vega-table-cell.left-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-left-width:2px;border-left-style:solid}:host .vega-table-cell.hide-right-border{border-right-width:0px}';var Le=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Me extends n{render(){return t("tr",{class:{"vega-table-expanded-row":!0,expanded:this.expanded,checked:this.checked,striped:this.striped},key:`vega-table-expanded-row-${this.rowKey}`,"data-expanded-row-key":this.rowKey},t("td",null),t("td",{colSpan:this.colSpan,key:`${Ot.expandRowSlotNamePrefix}${this.rowKey}`,class:"vega-table-expanded-row-slot-container"},t("div",{class:"expanded-row-slot-inner"},t("slot",null))),t("td",null))}}Le([l()],Me.prototype,"host",void 0),Le([l()],Me.prototype,"rowKey",void 0),Le([l()],Me.prototype,"expanded",void 0),Le([l()],Me.prototype,"checked",void 0),Le([l()],Me.prototype,"colSpan",void 0),Le([l()],Me.prototype,"striped",void 0);var Ae=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ne extends n{connectedCallback(){this.expandObserver=new S(this.isAcceptableTableExpandRowObserver.bind(this),(t=>{t.rowKey===this.rowKey&&(this.expanded=t.expanded)})),g.register(w,this.expandObserver)}disconnectedCallback(){g.unregister(w,this.expandObserver)}isAcceptableTableExpandRowObserver(t){return"VEGA-TABLE"===t.host.tagName?"VEGA-TABLE"===t.host.tagName&&t.host===C(this.host,"vega-table"):"VEGA-TABLE-ROW"===t.host.tagName?C(this.host,"vega-table")===C(t.host,"vega-table"):void 0}}function Ie(t){return"VEGA-TABLE-ROW"===t.host.tagName&&C(this.host,"vega-table")===C(t.host,"vega-table")}function We(t){return"VEGA-TABLE"===t.host.tagName&&t.host===C(this.host,"vega-table")}Ae([l()],Ne.prototype,"host",void 0),Ae([l()],Ne.prototype,"rowKey",void 0),Ae([l({writable:!0})],Ne.prototype,"expanded",void 0),Ae([c("connectedCallback")],Ne.prototype,"connectedCallback",null),Ae([c("disconnectedCallback")],Ne.prototype,"disconnectedCallback",null);var Pe=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ze extends n{connectedCallback(){this.rowSelectionObserver=new S(Ie.bind(this),(t=>{t.rowKey===this.rowKey&&(this.checked=t.checked)})),g.register(m,this.rowSelectionObserver)}disconnectedCallback(){g.unregister(m,this.rowSelectionObserver)}}Pe([l({writable:!0})],ze.prototype,"checked",void 0),Pe([l()],ze.prototype,"host",void 0),Pe([l()],ze.prototype,"rowKey",void 0),Pe([c("connectedCallback")],ze.prototype,"connectedCallback",null),Pe([c("disconnectedCallback")],ze.prototype,"disconnectedCallback",null);var Be=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class _e extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"withMultipleSelection",parentStateName:"rowSelection",callback:t=>{if(t){const{type:e="multiple"}=t;this.withMultipleSelection="multiple"===e}else this.withMultipleSelection=!1}},{subStateName:"withRowDraggable",parentStateName:"rowDraggable"}]})}}Be([l()],_e.prototype,"host",void 0),Be([l({writable:!0})],_e.prototype,"withMultipleSelection",void 0),Be([l({writable:!0})],_e.prototype,"withRowDraggable",void 0),Be([l()],_e.prototype,"vegaTableExpandRowColSpanController",void 0);var Ke=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ve extends n{constructor(){super(...arguments),this.updateColSpan=()=>{this.colSpan=this.getVisibleColumnsNumber()+(this.withMultipleSelection?2:1)+(this.withRowDraggable?1:0)}}componentWillLoad(){this.updateColSpan()}watchCurrentBreakpoint(){this.updateColSpan()}watchWithMultipleSelection(){this.updateColSpan()}watchWithRowDraggable(){this.updateColSpan()}getVisibleColumnsNumber(){const t=C(this.host,"vega-table"),e=et(),i=t.children&&Array.from(t.children).filter((t=>{var e;return!(null===(e=t.getAttribute("slot"))||void 0===e?void 0:e.startsWith("vega-table-expand-row-"))})).length>0?t.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell"):t.shadowRoot.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell");return Array.from(i).filter((t=>!t.breakpoint||"default"!==e&&ut[e]>=ut[t.breakpoint])).reduce(((t,e)=>{var i;const o=null!==(i=e.colSpan)&&void 0!==i?i:1;return t+(o>1?o:1)}),0)}}Ke([l()],Ve.prototype,"host",void 0),Ke([l({writable:!0})],Ve.prototype,"colSpan",void 0),Ke([l()],Ve.prototype,"withMultipleSelection",void 0),Ke([l()],Ve.prototype,"withRowDraggable",void 0),Ke([c("componentWillLoad")],Ve.prototype,"componentWillLoad",null),Ke([c("watchCurrentBreakpoint")],Ve.prototype,"watchCurrentBreakpoint",null),Ke([c("watchWithMultipleSelection")],Ve.prototype,"watchWithMultipleSelection",null),Ke([c("watchWithRowDraggable")],Ve.prototype,"watchWithRowDraggable",null);var $e=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const Fe=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableExpandRowRenderer=new Me,this.vegaTableExpandRowExpandController=new Ne,this.vegaTableExpandRowSelectionController=new ze,this.vegaTableExpandRowStateController=new _e,this.vegaTableExpandRowColSpanController=new Ve,this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.currentBreakpoint=et(),this.expanded=!1,this.checked=!1}watchCurrentBreakpoint(){}watchWithMultipleSelection(){}watchWithRowDraggable(){}render(){return p(t("slot",null)),Q(t(o,null,this.vegaTableExpandRowRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],withMultipleSelection:["watchWithMultipleSelection"],withRowDraggable:["watchWithRowDraggable"]}}};$e([u()],Fe.prototype,"globalSlimmers",void 0),$e([h()],Fe.prototype,"vegaTableExpandRowRenderer",void 0),$e([h()],Fe.prototype,"vegaTableExpandRowExpandController",void 0),$e([h()],Fe.prototype,"vegaTableExpandRowSelectionController",void 0),$e([h()],Fe.prototype,"vegaTableExpandRowStateController",void 0),$e([h()],Fe.prototype,"vegaTableExpandRowColSpanController",void 0),$e([h()],Fe.prototype,"pageResizeObserverSlimmer",void 0),$e([h()],Fe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Fe.style=":host{display:contents}:host .vega-table-expanded-row.striped:not(.checked) td{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.v-hidden){display:none}.vega-table-expanded-row{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}.vega-table-expanded-row:not(.expanded){display:none}.vega-table-expanded-row.expanded td{border-bottom-width:1px;border-top-width:0px;border-right-width:0px;border-left-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1));padding:0px;vertical-align:middle}.vega-table-expanded-row.expanded td:first-of-type{border-left-width:1px;border-bottom-width:1px;border-top-left-radius:12px;border-bottom-left-radius:12px;border-top-left-radius:0px}.vega-table-expanded-row.expanded td:last-of-type{border-right-width:1px;border-bottom-width:1px;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-right-radius:0px}.vega-table-expanded-row.expanded td.vega-table-expanded-row-slot-container{border-top-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}.vega-table-expanded-row.expanded.checked{background-color:rgba(var(--v-bg-table-row-selected-expanded, 229, 239, 255, 1))}:host tr.is-pinned-row td:first-of-type{position:sticky;z-index:1;left:0px}:host tr.is-pinned-row td.vega-table-expanded-row-slot-container div{position:sticky;z-index:1;left:8px}";var Ge=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Xe extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:t=>{this.fixed=t&&t.maxHeight&&!1!==t.fixedFooter}},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}handleDisconnectedCallback(){vt.removeZIndex(this.tableFootRef,"base")}handleTableFootRefChange(t){this.tableFootRef&&vt.removeZIndex(this.tableFootRef,"base"),this.fixed&&vt.setZIndex(t,"base"),this.tableFootRef=t}}Ge([l()],Xe.prototype,"host",void 0),Ge([l({writable:!0})],Xe.prototype,"fixed",void 0),Ge([l({writable:!0})],Xe.prototype,"rowDivider",void 0),Ge([c("disconnectedCallback")],Xe.prototype,"handleDisconnectedCallback",null);var He=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const Ue=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableFootStateController=new Xe,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.childChangeEventPrevent=new at([B],(()=>this.host)),this.fixed=!1,this.rowDivider=!1}render(){return Q(t(o,{class:{"fixed-footer":this.fixed,"row-divider":this.rowDivider},ref:t=>this.vegaTableFootStateController.handleTableFootRefChange(t)},t("tfoot",null,t("slot",null))),this.host)}get host(){return a(this)}};He([u()],Ue.prototype,"globalSlimmers",void 0),He([h()],Ue.prototype,"vegaTableFootStateController",void 0),He([h()],Ue.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),He([h()],Ue.prototype,"childChangeEventPrevent",void 0),Ue.style=':host{display:table-footer-group;position:sticky;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-left-radius:12px;border-bottom-left-radius:12px}:host tfoot{display:contents}:host(.fixed-footer){bottom:0px}:host(.row-divider)::after{content:"";position:absolute;top:0;left:0;width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}:host(.v-hidden){display:none}';var Ye=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class qe extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:t=>{const e=this.host.parentElement;if(e){const i=e.querySelector("vega-table-foot-cell:last-of-type");this.columnDivider=t&&i!==this.host}}}]})}}Ye([l({writable:!0})],qe.prototype,"density",void 0),Ye([l({writable:!0})],qe.prototype,"columnDivider",void 0);var Ze=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Je extends n{render(){var e;return t("td",{class:{"vega-table-cell":!0,"break-word":!bt.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),[Re(this.breakpoint,"v-table-cell")]:!0},colSpan:(null!==(e=this.colSpan)&&void 0!==e?e:0)>1?this.colSpan:null},t("div",{class:k(["vega-table-column",this.textAlign])},t("span",{class:"vega-table-column-label"},t("slot",null))))}}Ze([l()],Je.prototype,"host",void 0),Ze([l()],Je.prototype,"breakpoint",void 0),Ze([l()],Je.prototype,"textAlign",void 0),Ze([l()],Je.prototype,"colSpan",void 0);var Qe=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const ti=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableFootCellStateController=new qe,this.vegaTableFootCellRenderer=new Je,this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.currentBreakpoint=et()}render(){var e;return Q(t(o,{class:{[`density-${Y.formatCustom(this.density)}`]:!0,"column-divider":this.columnDivider},style:{width:this.width},"aria-colspan":(null!==(e=this.colSpan)&&void 0!==e?e:0)>1?String(this.colSpan):null},this.vegaTableFootCellRenderer.render()),this.host)}get host(){return a(this)}};Qe([u()],ti.prototype,"globalSlimmers",void 0),Qe([h()],ti.prototype,"vegaTableFootCellStateController",void 0),Qe([h()],ti.prototype,"vegaTableFootCellRenderer",void 0),Qe([h()],ti.prototype,"pageResizeObserverSlimmer",void 0),Qe([h()],ti.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ti.style=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}td{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle;padding:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}td.break-word{word-break:break-word}.vega-table-column{display:flex;align-items:center}.vega-table-column.center{justify-content:center;text-align:center}.vega-table-column.right{justify-content:flex-end;text-align:right}.vega-table-column.left{justify-content:flex-start;text-align:left}.vega-table-column .vega-table-column-label{min-width:0px}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}';var ei=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ii extends n{constructor(){super(...arguments),this.renderFooterSelectionCell=()=>{if("multiple"===this.selectionType)return t("td",{class:"vega-table-selection-column"})},this.renderFooterExpandableCell=()=>this.hasExpandableRow&&t("td",{class:"vega-table-expand-action-column"}),this.renderFooterDraggableCell=()=>this.draggable&&t("td",{class:"vega-table-draggable-column"})}render(){return t("tr",null,t("td",{style:{width:this.paddingX[0]}}),this.renderFooterDraggableCell(),this.renderFooterSelectionCell(),t("slot",null),this.renderFooterExpandableCell(),t("td",{style:{width:this.paddingX[1]}}))}}ei([l()],ii.prototype,"host",void 0),ei([l()],ii.prototype,"paddingX",void 0),ei([l()],ii.prototype,"selectionType",void 0),ei([l()],ii.prototype,"hasExpandableRow",void 0),ei([l()],ii.prototype,"draggable",void 0);var oi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class si extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"paddingX",parentStateName:"paddingX"},{subStateName:"selectionType",parentStateName:"rowSelection",callback:t=>{this.updateSelectionType(t)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"draggable",parentStateName:"rowDraggable"}]}),this.updateSelectionType=t=>{if(t){const{type:e}=t;this.selectionType=e}else this.selectionType=null}}}oi([l()],si.prototype,"host",void 0),oi([l({writable:!0})],si.prototype,"selectionType",void 0),oi([l({writable:!0})],si.prototype,"paddingX",void 0),oi([l({writable:!0})],si.prototype,"columnDivider",void 0),oi([l({writable:!0})],si.prototype,"density",void 0),oi([l({writable:!0})],si.prototype,"hasExpandableRow",void 0),oi([l({writable:!0})],si.prototype,"draggable",void 0);var ri=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const ai=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableFootRowStateController=new si,this.vegaTableFootRowRenderer=new ii,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.pageResizeObserverSlimmer=new st,this.currentBreakpoint=et(),this.hasExpandableRow=!1}render(){return p(t("slot",null)),Q(t(o,{class:{"column-divider":this.columnDivider,[`density-${Y.formatCustom(this.density)}`]:!0}},this.vegaTableFootRowRenderer.render()),this.host)}get host(){return a(this)}};ri([u()],ai.prototype,"globalSlimmers",void 0),ri([h()],ai.prototype,"vegaTableFootRowStateController",void 0),ri([h()],ai.prototype,"vegaTableFootRowRenderer",void 0),ri([h()],ai.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ri([h()],ai.prototype,"pageResizeObserverSlimmer",void 0),ai.style=":host{display:contents}td{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));padding:0px;vertical-align:middle}td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-default) td:first-of-type,:host(.density-relaxed) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) td:last-of-type,:host(.density-relaxed) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-compact) td:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) td:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}";var li=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ni extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:t=>{this.fixed=t&&t.maxHeight&&!1!==t.fixedHeader}}]})}}li([l()],ni.prototype,"host",void 0),li([l({writable:!0})],ni.prototype,"fixed",void 0);var di=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const ci=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableHeadStateController=new ni,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.headCellEventPrevent=new at([B],(()=>this.host)),this.fixed=!1,this.handleTableHeadRefChange=t=>{this.tableHeadRef&&vt.removeZIndex(this.tableHeadRef,"base"),this.fixed&&vt.setZIndex(t,"base"),this.tableHeadRef=t}}connectedCallback(){this.tableHeadRef&&this.fixed&&vt.setZIndex(this.tableHeadRef,"base")}disconnectedCallback(){vt.removeZIndex(this.tableHeadRef,"base")}render(){return Q(t(o,{class:{"fixed-header":this.fixed},ref:t=>this.handleTableHeadRefChange(t)},t("thead",null,t("slot",null))),this.host)}get host(){return a(this)}};di([u()],ci.prototype,"globalSlimmers",void 0),di([h()],ci.prototype,"vegaTableHeadStateController",void 0),di([h()],ci.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),di([h()],ci.prototype,"headCellEventPrevent",void 0),ci.style=":host{display:table-header-group;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-left-radius:12px;border-bottom-left-radius:12px}:host thead{display:contents}:host(.fixed-header){position:sticky;top:0px}";var hi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class vi extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:t=>{const e=this.host.parentElement;if(e){const i=e.querySelector("vega-table-head-cell:last-of-type");this.columnDivider=t&&i!==this.host}}}]})}}hi([l({writable:!0})],vi.prototype,"density",void 0),hi([l({writable:!0})],vi.prototype,"columnDivider",void 0);var pi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class bi extends n{render(){if(!this.sorter)return;const{icon:e,color:i}=bi.SORT_ICON_MAP[this.sortOrder||"default"];return t("span",{class:"vega-table-column-sorter"},t("vega-icon",{color:i,icon:gt.getIconKey(e),size:"size-12"}))}}bi.SORT_ICON_MAP={asc:{icon:"circle-arrow-up",color:"text-link"},desc:{icon:"circle-arrow-down",color:"text-link"},default:{icon:"arrow-up-arrow-down",color:"text-secondary"}},pi([l()],bi.prototype,"sorter",void 0),pi([l()],bi.prototype,"sortOrder",void 0);var ui=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class fi extends n{disconnectedCallback(){const t=C(this.host,"vega-table-head");t&&g.unregister(E.getSubject(t,P),this.observer)}componentWillLoad(){const t=C(this.host,"vega-table-head");t&&(this.hostTable=C(t,"vega-table"),this.isTemplateRenderMode=this.checkIsTemplateRenderMode(),this.observer=new S(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),g.register(E.getSubject(t,P),this.observer))}notifyOtherHeadCellOnClickSort(){const t=C(this.host,"vega-table-head");t&&g.notify(E.getSubject(t,P),{host:this.host})}isAcceptableObserver(t){return t.host!==this.host}observerListener(){var t;this.isTemplateRenderMode&&"single"===(null===(t=this.hostTable.sortConfig)||void 0===t?void 0:t.type)&&(this.sortOrder=void 0)}checkIsTemplateRenderMode(){return Array.from(this.hostTable.children).some((t=>t.tagName.startsWith("VEGA-TABLE-")))}}ui([l()],fi.prototype,"host",void 0),ui([l({writable:!0})],fi.prototype,"sortOrder",void 0),ui([l()],fi.prototype,"sortConfig",void 0),ui([c("disconnectedCallback")],fi.prototype,"disconnectedCallback",null),ui([c("componentWillLoad")],fi.prototype,"componentWillLoad",null);var gi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const wi=class{constructor(t){s(this,t),this.vegaClick=r(this,"vegaClick",7),this.click=r(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=lt(wi,z),this.vegaTableHeadCellStateController=new vi,this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.sortIconRenderer=new bi,this.vegaTableHeadCellSortConfigController=new fi,this.vegaTableRenderInputConsumerSlimmer=new De(I),this.currentBreakpoint=et(),this.handleSort=t=>{this.sortOrder=this.getNextSortOrder(this.sortOrder),this.clickEventEmitter.emit({sortOrder:this.sortOrder},t),this.vegaTableHeadCellSortConfigController.notifyOtherHeadCellOnClickSort()},this.getNextSortOrder=t=>{var e;const i=bt.isEnabled("VEGA_TABLE.REVERSE_SORT_ORDER")?["asc","desc"]:["desc","asc"],o=(null===(e=this.sortConfig)||void 0===e?void 0:e.disableUnsorted)?i:[...i,null];return o[(o.indexOf(t)+1)%o.length]}}render(){var e,i,s,r,a,l,n;const d=this.sorter?{role:"button",onKeyDown:ft(),tabIndex:0,onClick:t=>this.handleSort(t)}:null;return Q(t(o,{class:{[`density-${Y.formatCustom(this.density)}`]:!0,sortable:!!this.sorter,"column-divider":this.columnDivider},style:{width:this.width}},t("th",Object.assign({class:{"vega-table-cell":!0,"break-word":!bt.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),"is-group-cell":null===(e=this.renderInput)||void 0===e?void 0:e.headHasGroupColumn,"hide-right-border":(null===(i=this.renderInput)||void 0===i?void 0:i.isViewEnd)||(null===(s=this.renderInput)||void 0===s?void 0:s.isNoPinnedEnd),"right-divider":null===(r=this.renderInput)||void 0===r?void 0:r.isLeftEndPinned,"left-divider":null===(a=this.renderInput)||void 0===a?void 0:a.isRightStartPinned,[Re(this.breakpoint,"v-table-cell")]:!0}},d,{colSpan:null===(l=this.renderInput)||void 0===l?void 0:l.colSpan,rowSpan:null===(n=this.renderInput)||void 0===n?void 0:n.rowSpan}),t("div",{class:k(["vega-table-column",this.textAlign])},t("span",{class:"vega-table-column-label"},t("slot",null)),this.sortIconRenderer.render()))),this.host)}get host(){return a(this)}};gt.register({"chevron-up":wt,"chevron-down":mt,"arrow-up-arrow-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M489 377c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55V56c0-13.3-10.7-24-24-24s-24 10.7-24 24V398.1l-55-55c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96zM137 39c-9.4-9.4-24.6-9.4-33.9 0L7 135c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55V456c0 13.3 10.7 24 24 24s24-10.7 24-24V113.9l55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L137 39z"/></svg>'},"circle-arrow-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM127 281c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l71 71L232 136c0-13.3 10.7-24 24-24s24 10.7 24 24l0 182.1 71-71c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L273 393c-9.4 9.4-24.6 9.4-33.9 0L127 281z"/></svg>'},"circle-arrow-up":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM385 231c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-71-71V376c0 13.3-10.7 24-24 24s-24-10.7-24-24V193.9l-71 71c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 119c9.4-9.4 24.6-9.4 33.9 0L385 231z"/></svg>'}}),gi([u()],wi.prototype,"globalSlimmers",void 0),gi([h()],wi.prototype,"clickEventEmitter",void 0),gi([h()],wi.prototype,"vegaTableHeadCellStateController",void 0),gi([h()],wi.prototype,"pageResizeObserverSlimmer",void 0),gi([h()],wi.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),gi([h()],wi.prototype,"sortIconRenderer",void 0),gi([h()],wi.prototype,"vegaTableHeadCellSortConfigController",void 0),gi([h()],wi.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),wi.style=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}:host(.sortable){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.sortable:hover){background-color:rgba(var(--v-bg-table-row-hover, 241, 248, 251, 1))}th{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle;padding:0px;padding:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}th.break-word{word-break:break-word}.vega-table-column{display:flex;align-items:center}.vega-table-column.center{justify-content:center;text-align:center}.vega-table-column.right{justify-content:flex-end;text-align:right}.vega-table-column.left{justify-content:flex-start;text-align:left}.vega-table-column .vega-table-column-label{min-width:0px}.vega-table-column .vega-table-column-sorter{display:flex;align-items:center;justify-content:center;padding:2px;margin-left:8px;cursor:pointer;outline:none}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}:host .vega-table-cell.is-group-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-bottom-width:1px;border-right-style:solid;border-bottom-style:solid}:host .vega-table-cell.hide-right-border{border-right-width:0px}:host .vega-table-cell.bottom-border{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host .vega-table-cell.right-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:2px;border-right-style:solid}:host .vega-table-cell.left-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-left-width:2px;border-left-style:solid}';var mi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class yi extends n{constructor(){super(...arguments),this.renderHeaderSelectionCell=e=>{if("multiple"===this.selectionType)return t("th",{rowSpan:e.startRowSpan,class:{"vega-table-selection-column":!0,hidden:e.isStartHidden}},!this.hideSelectAll&&t("div",{class:"vega-table-checkbox-wrapper"},t("vega-checkbox",{size:"small",disabled:this.isEmptyTable||this.selectAllDisabled,checked:this.checkedAll,onClick:this.handleClick,ref:t=>{D.addUniqueObserverToNode(t,B,this.handleSelectAll)}})))},this.handleSelectAll=t=>{if("vegaChange"===t.eventName){const e=t.detail;q(e)&&e!==this.checkedAll&&g.notify(y,{host:this.host,checked:e})}},this.renderHeaderDraggableCell=e=>this.draggable&&t("th",{rowSpan:e.startRowSpan,class:{"vega-table-draggable-column":!0,hidden:e.isStartHidden}}),this.renderHeaderExpandableCell=e=>this.hasExpandableRow&&t("th",{rowSpan:e.endRowSpan,class:{"vega-table-expand-action-column":!0,hidden:e.isEndHidden}}),this.handleClick=t=>{t.stopPropagation(),O.call(E.getSubject(C(this.host,"vega-table"),M),{host:this.host,checked:!this.checkedAll}).defaultPrevented&&t.preventDefault()}}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}render(){var e,i;const o=this.getRowRenderInput();return t("tr",{class:{"is-group-row":o.headHasGroupColumn,"is-pinned-row":o.headHasPinnedColumn}},t("th",{style:{width:null===(e=this.paddingX)||void 0===e?void 0:e[0]},rowSpan:o.startRowSpan,class:{hidden:o.isStartHidden}}),this.renderHeaderDraggableCell(o),this.renderHeaderSelectionCell(o),t("slot",null),this.renderHeaderExpandableCell(o),t("th",{style:{width:null===(i=this.paddingX)||void 0===i?void 0:i[1]},rowSpan:o.endRowSpan,class:{hidden:o.isEndHidden}}))}getRowRenderInput(){const t={},e=this.renderInput,i=null==e?void 0:e[0],o=null==e?void 0:e[e.length-1];return i&&(t.headHasGroupColumn=i.headHasGroupColumn,t.headHasPinnedColumn=i.headHasPinnedColumn,t.headHasGroupColumn&&(t.startRowSpan="multiple"===this.selectionType&&0===i.level?i.headMaxDepth:i.rowSpan,t.isStartHidden=i.headHasGroupColumn&&("multiple"===this.selectionType&&i.level>0||!i.isViewStart))),o&&o.headHasGroupColumn&&(t.endRowSpan=o.rowSpan,t.isEndHidden=i.headHasGroupColumn&&!o.isViewEnd),t}}mi([l()],yi.prototype,"host",void 0),mi([l()],yi.prototype,"paddingX",void 0),mi([l()],yi.prototype,"selectionType",void 0),mi([l()],yi.prototype,"hideSelectAll",void 0),mi([l()],yi.prototype,"selectAllDisabled",void 0),mi([l()],yi.prototype,"checkedAll",void 0),mi([l()],yi.prototype,"hasExpandableRow",void 0),mi([l()],yi.prototype,"draggable",void 0),mi([l()],yi.prototype,"isEmptyTable",void 0),mi([l()],yi.prototype,"isTemplateRenderMode",void 0),mi([l()],yi.prototype,"renderInput",void 0),mi([c("connectedCallback")],yi.prototype,"connectedCallback",null),mi([c("disconnectedCallback")],yi.prototype,"disconnectedCallback",null),mi([c("componentDidLoad")],yi.prototype,"componentDidLoad",null);var xi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ri extends n{connectedCallback(){this.initRowSelectionAllObserver()}disconnectedCallback(){g.unregister(y,this.rowSelectionAllObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new S(We.bind({host:this.host}),(t=>{this.checkedAll=t.noneChecked||!1!==t.checked?t.checked:null})),g.register(y,this.rowSelectionAllObserver)}}xi([l()],Ri.prototype,"host",void 0),xi([l({writable:!0})],Ri.prototype,"checkedAll",void 0),xi([c("connectedCallback")],Ri.prototype,"connectedCallback",null),xi([c("disconnectedCallback")],Ri.prototype,"disconnectedCallback",null);var Si=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ci extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"paddingX",parentStateName:"paddingX",callback:t=>{const e=C(this.host,"vega-table");0!==e.dataSource.length&&0!==e.columns.length||(this.paddingX=t)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:t=>{this.updateSelectionType(t)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"isTemplateRenderMode",parentStateName:"isTemplateRenderMode"},{subStateName:"isEmptyTable",parentStateName:"currentData",callback:t=>{this.isEmptyTable=0===t.length}},{subStateName:"draggable",parentStateName:"rowDraggable"}]}),this.updateSelectionType=t=>{if(t){const{type:e="multiple"}=t;this.selectionType=e}else this.selectionType=null}}}Si([l()],Ci.prototype,"host",void 0),Si([l({writable:!0})],Ci.prototype,"hasExpandableRow",void 0),Si([l({writable:!0})],Ci.prototype,"selectionType",void 0),Si([l({writable:!0})],Ci.prototype,"paddingX",void 0),Si([l({writable:!0})],Ci.prototype,"columnDivider",void 0),Si([l({writable:!0})],Ci.prototype,"density",void 0),Si([l({writable:!0})],Ci.prototype,"isTemplateRenderMode",void 0),Si([l({writable:!0})],Ci.prototype,"isEmptyTable",void 0),Si([l({writable:!0})],Ci.prototype,"draggable",void 0);var ki=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const ji=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableHeadRowStateController=new Ci,this.vegaTableHeadRowRenderer=new yi,this.vegaTableHeadRowController=new Ri,this.headCellEventPrevent=new at([z],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.vegaTableRenderInputConsumerSlimmer=new De(N),this.currentBreakpoint=et(),this.hasExpandableRow=!1}render(){return p(t("slot",null)),Q(t(o,{class:{"column-divider":this.columnDivider,[`density-${Y.formatCustom(this.density)}`]:!0}},this.vegaTableHeadRowRenderer.render()),this.host)}get host(){return a(this)}};ki([u()],ji.prototype,"globalSlimmers",void 0),ki([h()],ji.prototype,"vegaTableHeadRowStateController",void 0),ki([h()],ji.prototype,"vegaTableHeadRowRenderer",void 0),ki([h()],ji.prototype,"vegaTableHeadRowController",void 0),ki([h()],ji.prototype,"headCellEventPrevent",void 0),ki([h()],ji.prototype,"pageResizeObserverSlimmer",void 0),ki([h()],ji.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ki([h()],ji.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),ji.style=":host{display:table-row}:host tr{display:contents}th{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));padding:0px;vertical-align:middle}th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.column-divider) ::slotted(vega-table-head-cell:not(:last-of-type)){border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}:host(.density-default) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-compact) th:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) th:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-relaxed) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}:host tr.is-group-row th{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host tr.is-group-row th.hidden{display:none}:host tr.is-group-row th.vega-table-selection-column{border-right-width:1px;border-right-style:solid}:host tr.is-group-row th:first-of-type{border-top-left-radius:0px;border-bottom-left-radius:0px}:host tr.is-group-row th:last-of-type{border-top-right-radius:0px;border-bottom-right-radius:0px}:host tr.is-pinned-row th{position:sticky;z-index:1}:host tr.is-pinned-row th:first-of-type{left:0px}:host tr.is-pinned-row th.vega-table-selection-column{left:8px}:host tr.is-pinned-row th.vega-table-expand-action-column{right:8px}:host tr.is-pinned-row th:last-of-type{right:0px}";var Ei=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Di extends n{constructor(){super(...arguments),this.renderDragIcon=()=>this.draggable&&t("td",{class:"vega-table-draggable-column"},t("vega-flex",{alignItems:"center"},t("vega-icon",{icon:gt.getIconKey("grip-dots-vertical"),color:"text-link"}))),this.renderRowSelection=()=>{if("multiple"===this.selectionType)return t("td",{class:"vega-table-selection-column"},t("div",{class:"vega-table-checkbox-wrapper"},t("vega-checkbox",{size:"small",checked:this.checked,onClick:this.handleClick,ref:t=>{D.addUniqueObserverToNode(t,B,this.onRowSelectionChange)}})))},this.renderExpandIcon=()=>(this.expandable||this.hasExpandableRow)&&t("td",{class:"vega-table-expand-action-column"},t("div",{class:"vega-table-expand-icon-wrapper"},this.expandable&&t("vega-icon",{icon:gt.getIconKey("chevron-down"),color:"text-link",onClick:this.onExpandIconClick}))),this.onRowClick=()=>{this.vegaTableRowClickController.handleRowClick()},this.onRowSelectionChange=t=>{"vegaChange"===t.eventName&&this.vegaTableRowSelectionController.handleRowSelect(t.detail)},this.handleClick=t=>{t.stopPropagation(),O.call(E.getSubject(this.parentTableRef,L),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented&&t.preventDefault()},this.onExpandIconClick=async t=>{t.stopPropagation();const e=this.expandEventEmitter.emit({expanded:!this.expanded,rowKey:this.rowKey});e&&!e.defaultPrevented&&this.vegaTableRowExpandController.handleExpandIconClick()}}connectedCallback(){this.setParentTableRef()}getParentTableRef(){return this.parentTableRef}render(){var e,o;return t(i,null,this.renderExpandRowSpace(this.rowKey),t("tr",{class:{"vega-table-row":!0,checked:this.checked,clickable:this.clickable,"current-clicked-row":this.clicked,"expand-row":this.expanded},onClick:this.clickable?this.onRowClick:null},t("td",{style:{width:null===(e=this.paddingX)||void 0===e?void 0:e[0]}}),this.renderDragIcon(),this.renderRowSelection(),t("slot",null),this.renderExpandIcon(),t("td",{style:{width:null===(o=this.paddingX)||void 0===o?void 0:o[1]}})))}renderExpandRowSpace(e){return this.expandable&&t("tr",{key:`vega-table-expand-row-space-${e}`,class:"expand-row-space"})}setParentTableRef(){this.parentTableRef=C(this.host,"vega-table")}}gt.register({"chevron-down":mt,"grip-dots-vertical":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M32 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm0 160a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM64 416A32 32 0 1 0 0 416a32 32 0 1 0 64 0zm96-288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm32 128a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM160 448a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"/></svg>'}}),Ei([l()],Di.prototype,"host",void 0),Ei([l()],Di.prototype,"rowKey",void 0),Ei([l()],Di.prototype,"checked",void 0),Ei([l()],Di.prototype,"clickable",void 0),Ei([l()],Di.prototype,"clicked",void 0),Ei([l()],Di.prototype,"expanded",void 0),Ei([l()],Di.prototype,"paddingX",void 0),Ei([l()],Di.prototype,"expandable",void 0),Ei([l()],Di.prototype,"hasExpandableRow",void 0),Ei([l()],Di.prototype,"vegaClick",void 0),Ei([l()],Di.prototype,"selectionType",void 0),Ei([l()],Di.prototype,"draggable",void 0),Ei([l()],Di.prototype,"vegaTableRowSelectionController",void 0),Ei([l()],Di.prototype,"vegaTableRowExpandController",void 0),Ei([l()],Di.prototype,"vegaTableRowClickController",void 0),Ei([l()],Di.prototype,"expandEventEmitter",void 0),Ei([c("connectedCallback")],Di.prototype,"connectedCallback",null);var Oi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ti extends n{constructor(){super(...arguments),this.handleRowSelect=t=>{this.checked=t,g.notify(m,{host:this.host,checked:t,rowKey:this.rowKey})}}connectedCallback(){this.initRowSelectionObserver()}disconnectedCallback(){g.unregister(y,this.rowSelectionAllObserver),g.unregister(m,this.rowSelectionObserver)}setChecked(t){this.checked=t}initRowSelectionObserver(){this.rowSelectionAllObserver=new S(We.bind(this),(t=>{(t.checked||!1===t.checked&&t.noneChecked)&&(this.checked=t.checked)})),g.register(y,this.rowSelectionAllObserver),this.rowSelectionObserver=new S(We.bind(this),(t=>{t.rowKey===this.rowKey&&(this.checked=t.checked)})),g.register(m,this.rowSelectionObserver)}}Oi([l()],Ti.prototype,"host",void 0),Oi([l()],Ti.prototype,"selectionType",void 0),Oi([l()],Ti.prototype,"rowKey",void 0),Oi([l({writable:!0})],Ti.prototype,"checked",void 0),Oi([c("connectedCallback")],Ti.prototype,"connectedCallback",null),Oi([c("disconnectedCallback")],Ti.prototype,"disconnectedCallback",null);var Li=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Mi extends n{connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){g.unregister(w,this.rowExpandObserver)}handleExpandIconClick(){O.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),T),{host:this.host,rowKey:this.rowKey,expanded:!this.expanded}).defaultPrevented||(this.expanded=!this.expanded,g.notify(w,{host:this.host,rowKey:this.rowKey,expanded:this.expanded}))}initRowExpandObserver(){this.rowExpandObserver=new S(We.bind({host:this.host}),(t=>{t.rowKey===this.rowKey&&(this.expanded=t.expanded)})),g.register(w,this.rowExpandObserver)}}Li([l()],Mi.prototype,"host",void 0),Li([l()],Mi.prototype,"rowKey",void 0),Li([l()],Mi.prototype,"expandable",void 0),Li([l({writable:!0})],Mi.prototype,"expanded",void 0),Li([l()],Mi.prototype,"vegaTableRowRenderer",void 0),Li([c("connectedCallback")],Mi.prototype,"connectedCallback",null),Li([c("disconnectedCallback")],Mi.prototype,"disconnectedCallback",null);var Ai=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ni extends n{connectedCallback(){this.initRowClickObserver()}disconnectedCallback(){g.unregister(x,this.rowClickObserver)}handleRowClick(){O.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),L),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented||(g.notify(x,{host:this.host,rowKey:this.rowKey}),this.clickEventEmitter.emit({rowKey:this.rowKey}))}initRowClickObserver(){this.rowClickObserver=new S(Ie.bind(this),(t=>{this.clicked=t.host===this.host,"single"===this.selectionType&&this.vegaTableRowSelectionController.setChecked(t.host===this.host&&!this.checked)})),g.register(x,this.rowClickObserver)}}Ai([l()],Ni.prototype,"host",void 0),Ai([l()],Ni.prototype,"rowKey",void 0),Ai([l({writable:!0})],Ni.prototype,"clicked",void 0),Ai([l()],Ni.prototype,"checked",void 0),Ai([l()],Ni.prototype,"selectionType",void 0),Ai([l()],Ni.prototype,"vegaClick",void 0),Ai([l()],Ni.prototype,"vegaTableRowSelectionController",void 0),Ai([l()],Ni.prototype,"clickEventEmitter",void 0),Ai([l()],Ni.prototype,"vegaTableRowRenderer",void 0),Ai([c("connectedCallback")],Ni.prototype,"connectedCallback",null),Ai([c("disconnectedCallback")],Ni.prototype,"disconnectedCallback",null);var Ii=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Wi extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"expandableRows",callback:t=>{this.expandable=t.includes(this.rowKey)}},{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"clickable",parentStateName:"rowClickable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:t=>{const e=C(this.host,"vega-table");0!==e.dataSource.length&&0!==e.columns.length||(this.paddingX=t)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:t=>{if(t){const{type:e="multiple"}=t;this.selectionType=e}else this.selectionType=null}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"draggable",parentStateName:"rowDraggable"}]})}watchSelectionType(){this.updateClickable()}handleComponentWillLoad(){this.updateClickable()}updateClickable(){this.selectionType&&(this.clickable="single"===this.selectionType||this.clickable)}}Ii([l()],Wi.prototype,"host",void 0),Ii([l({writable:!0})],Wi.prototype,"expandable",void 0),Ii([l({writable:!0})],Wi.prototype,"hasExpandableRow",void 0),Ii([l({writable:!0})],Wi.prototype,"clickable",void 0),Ii([l({writable:!0})],Wi.prototype,"paddingX",void 0),Ii([l({writable:!0})],Wi.prototype,"selectionType",void 0),Ii([l({writable:!0})],Wi.prototype,"columnDivider",void 0),Ii([l({writable:!0})],Wi.prototype,"density",void 0),Ii([l({writable:!0})],Wi.prototype,"draggable",void 0),Ii([l()],Wi.prototype,"rowKey",void 0),Ii([c("watchSelectionType")],Wi.prototype,"watchSelectionType",null),Ii([c("componentWillLoad")],Wi.prototype,"handleComponentWillLoad",null);var Pi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const zi=class{constructor(t){s(this,t),this.vegaClick=r(this,"vegaClick",7),this.click=r(this,"click",7),this.vegaExpand=r(this,"vegaExpand",7),this.expand=r(this,"expand",7),this.globalSlimmers={},this.vegaTableRowRenderer=new Di,this.vegaTableRowSelectionController=new Ti,this.vegaTableRowExpandController=new Mi,this.vegaTableRowClickController=new Ni,this.vegaTableRowStateController=new Wi,this.clickEventEmitter=lt(zi,z),this.expandEventEmitter=lt(zi,K),this.checkboxValueChangeEventPrevent=new at([z],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.checkedNotifySlimmer=rt(zi,"checked","watchChecked"),this.expandedNotifySlimmer=rt(zi,"expanded","watchExpanded"),this.stripedNotifySlimmer=rt(zi,"striped","watchStriped"),this.rowDividerNotifySlimmer=rt(zi,"rowDivider","watchRowDivider"),this.currentBreakpoint=et(),this.hasExpandableRow=!1,this.draggable=!1}watchSelectionType(){}watchChecked(){}watchExpanded(){}watchStriped(){}watchRowDivider(){}render(){return p(t("slot",null)),Q(t(o,{class:{"row-divider":this.rowDivider,"column-divider":this.columnDivider,striped:this.striped,[`density-${Y.formatCustom(this.density)}`]:!0}},this.vegaTableRowRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{selectionType:["watchSelectionType"],checked:["watchChecked"],expanded:["watchExpanded"],striped:["watchStriped"],rowDivider:["watchRowDivider"]}}};Pi([u()],zi.prototype,"globalSlimmers",void 0),Pi([h()],zi.prototype,"vegaTableRowRenderer",void 0),Pi([h()],zi.prototype,"vegaTableRowSelectionController",void 0),Pi([h()],zi.prototype,"vegaTableRowExpandController",void 0),Pi([h()],zi.prototype,"vegaTableRowClickController",void 0),Pi([h()],zi.prototype,"vegaTableRowStateController",void 0),Pi([h()],zi.prototype,"clickEventEmitter",void 0),Pi([h()],zi.prototype,"expandEventEmitter",void 0),Pi([h()],zi.prototype,"checkboxValueChangeEventPrevent",void 0),Pi([h()],zi.prototype,"pageResizeObserverSlimmer",void 0),Pi([h()],zi.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Pi([h()],zi.prototype,"checkedNotifySlimmer",void 0),Pi([h()],zi.prototype,"expandedNotifySlimmer",void 0),Pi([h()],zi.prototype,"stripedNotifySlimmer",void 0),Pi([h()],zi.prototype,"rowDividerNotifySlimmer",void 0),zi.style=":host{display:contents}:host(.v-hidden){display:none}td{padding:0px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));vertical-align:middle}td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.striped) .vega-table-row:not(.checked):not(.clickable:hover) td{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.checked td{background-color:rgba(var(--v-bg-table-selected-row, 204, 223, 255, 1))}:not(.checked).clickable:hover{cursor:pointer}:not(.checked).clickable:hover td{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper vega-icon{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;cursor:pointer}.vega-table-row.expand-row .vega-table-expand-icon-wrapper vega-icon{transform:rotate(180deg)}:host tr.expand-row td{border-top-width:1px;border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}:host tr.expand-row td:first-of-type{border-left-width:1px;border-top-width:1px;border-bottom-left-radius:0px}:host tr.expand-row td:last-of-type{border-right-width:1px;border-top-width:1px;border-bottom-right-radius:0px}tr.expand-row-space{display:block;padding-top:8px}:host(.row-divider:not(:last-of-type)) td{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host(.row-divider:not(:last-of-type)) td:first-of-type,:host(.row-divider:not(:last-of-type)) td:last-of-type{border-radius:0px}:host(.density-default) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-default) tr.expand-row-space{display:block;padding-top:8px}:host(.density-compact) td:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) td:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-compact) tr.expand-row-space{display:block;padding-top:4px}:host(.density-relaxed) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-relaxed) tr.expand-row-space{display:block;padding-top:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}.vega-table-draggable-column{width:16px;min-width:16px;cursor:move}";export{me as vega_table,xe as vega_table_body,Te as vega_table_cell,Fe as vega_table_expand_row,Ue as vega_table_foot,ti as vega_table_foot_cell,ai as vega_table_foot_row,ci as vega_table_head,wi as vega_table_head_cell,ji as vega_table_head_row,zi as vega_table_row}
|
|
1
|
+
import{h as t,f as e,F as i,H as o,r as s,c as r,g as a}from"./p-6b2342e0.js";import{c as l,V as n,L as d,M as c,I as h}from"./p-6e1ab235.js";import{m as v,s as p}from"./p-6bd5c49b.js";import{V as b,I as u}from"./p-8ce9e214.js";import{g as f}from"./p-a841cf13.js";import{C as g}from"./p-2d0d575f.js";import{m as w,n as m,o as y,p as x,S as R}from"./p-cb378636.js";import{O as S}from"./p-331a62d5.js";import{f as C,a as k,m as j}from"./p-528748fa.js";import{d as E,D}from"./p-526e3634.js";import{r as O}from"./p-77e64f26.js";import{U as T,W as L,X as M,Y as A,Z as N,_ as I,$ as W,a0 as P}from"./p-3a68b729.js";import{a as z,d as B,_,e as K,a2 as V,a3 as $,a4 as F,a5 as G,a6 as X,a7 as H,a8 as U}from"./p-5447a8e8.js";import{R as Y}from"./p-3dee1e55.js";import{i as q,s as Z,ap as J}from"./p-8db904dc.js";import{s as Q}from"./p-519a7d55.js";import{g as tt}from"./p-8b5d3a52.js";import{g as et}from"./p-49a2e141.js";import{M as it}from"./p-78a57a17.js";import{T as ot}from"./p-52b8f2d2.js";import{P as st}from"./p-81dd00d0.js";import{c as rt}from"./p-3f183b52.js";import{C as at}from"./p-2c737fc8.js";import{c as lt}from"./p-66647244.js";import{I as nt}from"./p-48e3be6a.js";import{T as dt}from"./p-6cde45fc.js";import{S as ct}from"./p-1fb56e14.js";import{c as ht}from"./p-6a334573.js";import{I as vt}from"./p-781fd6e0.js";import{S as pt}from"./p-29e3eb12.js";import{F as bt}from"./p-87a4d75f.js";import{B as ut}from"./p-ed45b3b6.js";import{c as ft}from"./p-3a620268.js";import{V as gt}from"./p-6031bed1.js";import{c as wt}from"./p-1ec763ab.js";import{c as mt}from"./p-613ddaab.js";import"./p-d4ea8e22.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-b438e68b.js";import"./p-0d18368b.js";import"./p-b75ee3ba.js";import"./p-8c30a60d.js";import"./p-5f377954.js";import"./p-982747ef.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";class yt{constructor(t,e){this.size=0,this.set=new Set,t&&(this.set=t,this.size=t.size),e&&(this.onMutate=e)}onMutate(t){}add(...t){return this.withMutation((e=>{t.forEach((t=>e.add(t)))}))}clear(){this.withMutation((t=>t.clear()))}delete(t){return this.withMutation((e=>{e.delete(t)}))}withMutation(t){const e=new Set(this.set);t(e);const i=new yt(e,this.onMutate);return this.onMutate(i),i}has(t){return this.set.has(t)}toArray(){return[...this.set]}}const xt=["input","input-select","stepper","checkbox","textarea","combo-box","date-picker","time-picker"];class Rt{constructor(t,e,i,o,s,r,a,l,n,d,c,h,v,p,b,u,f=[]){this.key=t,this.label=e,this.pinned=i,this.colSpan=o,this.rowSpan=s,this.isViewStart=r,this.isViewEnd=a,this.isLeftEndPinned=l,this.isRightStartPinned=n,this.isNoPinnedEnd=d,this.headHasGroupColumn=c,this.headHasPinnedColumn=h,this.headMaxDepth=v,this.level=p,this.columnIndex=b,this.parent=u,this.children=f,this.iteratorCacheMap=new Map,this.leaves=[]}static from(t){const e=[],i=[],o=t.getMaxDepth(),s=t.hasGroupColumn(),r=t.hasLeftPinnedColumn()||t.hasRightPinnedColumn();let a=0;return t.iterator().forEach((t=>{const l=t.level>0?i[t.level-1]:null,n=s&&this.isParentStart(t),d=s&&this.isParentEnd(t),c=new Rt(t.key,t.label,l?l.pinned:t.pinned,s?this.getColSpan(t):null,s?t.isLeaf()?o-t.level:1:null,l?l.isViewStart&&n:n,l?l.isViewEnd&&d:d,l?l.isLeftEndPinned&&d:r&&this.isLeftEndPinned(t),l?l.isRightStartPinned&&n:r&&this.isRightStartPinned(t),l?l.isNoPinnedEnd&&d:r&&this.isNoPinnedEnd(t),s,r,o,t.level,a,l);l?l.children.push(c):e.push(c),i[t.level]=c,i.length=t.level+1,t.isLeaf()&&a++})),e}static withMergedBoundaries(t,e){let i=t.isLeftEndPinned,o=t.isRightStartPinned,s=t.isNoPinnedEnd,r=t.isViewEnd;for(const t of e)i=i||t.isLeftEndPinned,o=o||t.isRightStartPinned,s=s||t.isNoPinnedEnd,r=r||t.isViewEnd;return i===t.isLeftEndPinned&&o===t.isRightStartPinned&&s===t.isNoPinnedEnd&&r===t.isViewEnd?t:new Rt(t.key,t.label,t.pinned,t.colSpan,t.rowSpan,t.isViewStart,r,i,o,s,t.headHasGroupColumn,t.headHasPinnedColumn,t.headMaxDepth,t.level,t.columnIndex,t.parent,t.children)}static isLeftEndPinned(t){const e=t.parent.getOrderedChildren().filter((t=>"left"===t.pinned));return e[e.length-1]===t}static isRightStartPinned(t){return t.parent.getOrderedChildren().filter((t=>"right"===t.pinned))[0]===t}static isNoPinnedEnd(t){const e=t.parent.getOrderedChildren().filter((t=>!t.pinned));return e[e.length-1]===t}static isParentStart(t){return t.parent.getOrderedChildren()[0]===t}static isParentEnd(t){const e=t.parent.getOrderedChildren();return e[e.length-1]===t}static getColSpan(t){const e=t.iterator(),i={};return e.forEach((t=>{i[t.level]=(i[t.level]||0)+1})),Math.max(...Object.values(i))}getLeaves(){if(this.leaves.length>0)return this.leaves;const t=this.iterator().filter((t=>t.isLeaf()));return this.leaves=t,t}iterator(t="dfs"){return"dfs"===t?this.dfsIterator():[]}dfsIterator(){if(this.iteratorCacheMap.has("dfs"))return this.iteratorCacheMap.get("dfs");const t=[];return t.push(this),this.children&&this.children.length>0&&this.children.forEach((e=>{t.push(...e.dfsIterator())})),this.iteratorCacheMap.set("dfs",t),t}isLeaf(){return!this.children||0===this.children.length}}var St=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ct extends n{constructor(){super(...arguments),this.renderTableCellContent=(e,i,o,s)=>{var r,a;const l=f(i,e.prop),n=this.vegaTableDataSourceController.getRecordKey(i),c=!this.vegaTableDataSourceController.getDataSource().find((t=>this.vegaTableDataSourceController.getRecordKey(t)===n)),h=this.vegaTableEditableController.isEditing(n),v=this.vegaTableEditableController.getRowFormRefMap().get(n);if(!s&&h&&v&&e.renderFormItem)return e.renderFormItem(t,e.prop?l:n,i,o,{rowForm:v,isNewRow:c});if(!s&&h&&v&&e.editable){const t=null===(r=e.formItemProps)||void 0===r?void 0:r.call(e,v,{record:i,index:o}),s=Object.assign({dataVegaForm:(null==t?void 0:t.dataVegaForm)||e.prop,size:"small",value:l},null===(a=e.formItemProps)||void 0===a?void 0:a.call(e,v,{record:i,index:o}));return this.generateEditComponentByType(e.formItemType,s)}return e.render?e.render(t,e.prop?l:n,i,o):"string"==typeof l||"number"==typeof l?String(l):null==l?"":void d.error(`Column ${e.prop}'s value has a wrong type(${typeof i[e.prop]}) in table cell. Only 'VegaTableNode | string | number' can be rendered in table cell`)},this.generateEditComponentByType=(e="input",i)=>{const o=`vega-${e}`,{dataVegaForm:s}=i,r=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(t);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]])}return i}(i,["dataVegaForm"]);if(this.isVegaTableEditableFieldType(o))return t(o,Object.assign(Object.assign({},r),{"data-vega-form":s}));d.error(`Type must be one of the form field types. [${xt.join(",")}]`)},this.isVegaTableEditableFieldType=t=>t.toUpperCase().startsWith("VEGA")&&new RegExp(xt.join("|"),"i").test(t)}render(e,i,o,s){var r;const a=this.vegaTableBodyColSpanController.findColumn(e),l=null!==(r=null==s?void 0:s.htmlColspan)&&void 0!==r?r:1,n=l>1,d=n&&s?this.getMergedRenderInputForSpan(e,s):e;if(a){const e=this.vegaTableDataSourceController.getRecordKey(i),s=a.ellipsisOptions;return t("vega-table-cell",{key:`${e}_${a.key||a.prop}`,textAlign:a.align,breakpoint:a.breakpoint,overflow:a.overflow,ellipsisShowTooltip:!!(null==s?void 0:s.showTooltip),colSpan:n?l:void 0,ref:t=>{this.vegaTableRenderInputController.addCellRenderInputMap(t,d)}},this.renderTableCellContent(a,i,o,n))}return t("vega-table-cell",{key:e.key,ref:t=>{this.vegaTableRenderInputController.addCellRenderInputMap(t,d)}})}getMergedRenderInputForSpan(t,e){const i=this.vegaTableRenderInputController.getLeafRenderInputs(),o=i.indexOf(t);if(o<0)return t;const s=i.slice(o+1,o+1+e.skipCount);return Rt.withMergedBoundaries(t,s)}}St([l()],Ct.prototype,"rowKey",void 0),St([l()],Ct.prototype,"vegaTableDataSourceController",void 0),St([l()],Ct.prototype,"vegaTableEditableController",void 0),St([l()],Ct.prototype,"vegaTableRenderInputController",void 0),St([l()],Ct.prototype,"vegaTableBodyColSpanController",void 0);const kt={htmlColspan:1,skipCount:0};function jt(t,e,i,o,s,r){var a,l,n;const c=function(t,e,i){const o=null==t?void 0:t.colSpan;return null==o?1:function(t){if(!Number.isFinite(t))return 1;const e=Math.floor(t);return e>=1?e:1}("function"!=typeof o?o:o(t.prop?f(e,t.prop):void 0,e,i))}(t,e,i);if(!c||c<=1)return kt;const{span:h,clampReason:v}=function(t,e,i){var o,s;const r=null===(o=i[e])||void 0===o?void 0:o.pinned;let a=1;for(let o=1;o<t;o++){const t=i[e+o];if(!t)return{span:a,clampReason:`extends past the end of the row (${i.length} columns total)`};if(t.pinned!==r)return{span:a,clampReason:`crosses a pinned-column boundary (pinned="${null!=r?r:"none"}" → pinned="${null!==(s=t.pinned)&&void 0!==s?s:"none"}")`};a++}return{span:a,clampReason:null}}(c,o,s),p=Math.min(c,h);return v&&p<c&&function(t,e,i,o,s){s.has(t)||(s.add(t),d.warn(`[vega-table] colSpan for column "${t}" was clamped from ${e} to ${i} because it ${o}.`))}(null!==(n=null!==(l=null!==(a=t.key)&&void 0!==a?a:t.prop)&&void 0!==l?l:t.label)&&void 0!==n?n:"",c,p,v,r),p<=1?kt:{htmlColspan:p,skipCount:p-1}}class Et extends n{constructor(){super(...arguments),this.warnedColSpanKeys=new Set,this.lastWarnedColumnsRef=null}resolveRow(t,e,i){this.columns!==this.lastWarnedColumnsRef&&(this.warnedColSpanKeys.clear(),this.lastWarnedColumnsRef=this.columns);const o=new Array(i.length).fill(null);let s=0;return i.forEach(((r,a)=>{if(s>0)return void s--;const l=this.findColumn(r),n=l?jt(l,t,e,a,i,this.warnedColSpanKeys):{htmlColspan:1,skipCount:0};o[a]=n,s=n.skipCount})),o}findColumn(t){return this.columns.find((e=>e.key===t.key||e.prop===t.key||e.label===t.key))}}!function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);r>3&&a&&Object.defineProperty(e,i,a)}([l()],Et.prototype,"columns",void 0);var Dt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ot extends n{constructor(){super(...arguments),this.toggleExpandRow=t=>{this.isRowExpandable(t)&&this.handleToggleExpandRow(t,!this.isExpanded(t))},this.openExpandRow=t=>{this.isRowExpandable(t)&&this.handleToggleExpandRow(t,!0)},this.closeExpandRow=t=>{this.isRowExpandable(t)&&this.handleToggleExpandRow(t,!1)},this.closeAllExpandRow=()=>{this.hasExpandableRow&&this.handleCloseAllExpandRow()},this.isExpandableRow=t=>this.expandableRows.includes(this.vegaTableDataSourceController.getRecordKey(t)),this.isExpanded=t=>this.expandedRowKeySet.has(t),this.handleCloseAllExpandRow=()=>{this.expandedRowKeySet.toArray().forEach((t=>{g.notify(w,{host:this.host,rowKey:t,expanded:!1})})),this.expandedRowKeySet.clear()},this.handleToggleExpandRow=(t,e)=>{e?this.expandedRowKeySet.add(t):this.expandedRowKeySet.delete(t),g.notify(w,{host:this.host,rowKey:t,expanded:e})},this.initMutationObserver=()=>{this.mutationObserver=new MutationObserver((async t=>{this.expandRowSlotGuard(t)&&e(this.host)})),this.mutationObserver.observe(this.host,{childList:!0,subtree:!0})},this.expandRowSlotGuard=t=>{const e=this.vegaTableDataSourceController.getCurrentData().map((t=>`${Ot.expandRowSlotNamePrefix}${this.vegaTableDataSourceController.getRecordKey(t)}`)),i=[];for(let o=0;o<t.length;o++)Array.from(t[o].addedNodes).filter((t=>t instanceof HTMLElement&&t.getAttribute("slot"))).forEach((t=>{t.removeAttribute("hidden");const o=t.getAttribute("slot");e.includes(o)?i.push(t):d.warn(`The vega-table expand row slot name '${o}' is not as expected, it must be like: vega-table-expand-row-[rowKey]`)}));return i.length>0}}connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect(),g.unregister(w,this.expandObserver),O.unRegister(E.getSubject(this.host,T))}componentWillLoad(){this.setExpandableRows()}componentDidLoad(){this.initMutationObserver()}watchRowExpandable(){this.setExpandableRows(),this.handleCloseAllExpandRow()}watchCurrentData(){this.setExpandableRows(),this.clearUnusedExpandRowSlot()}initRowExpandObserver(){this.expandObserver=new S(this.isAcceptableTableRowObserver.bind({host:this.host}),(t=>{t.expanded?this.expandedRowKeySet.add(t.rowKey):this.expandedRowKeySet.delete(t.rowKey)})),g.register(w,this.expandObserver),O.register(E.getSubject(this.host,T),(({rowKey:t,expanded:e})=>this.rowExpandEventEmitter.emit({record:this.vegaTableDataSourceController.getRecordByKey(t),expanded:e})))}isAcceptableTableRowObserver(t){return"VEGA-TABLE-ROW"===t.host.tagName&&this.host===C(t.host,"vega-table")}setExpandableRows(){if("boolean"==typeof this.rowExpandable)this.expandableRows=this.rowExpandable?this.currentData.map((t=>this.vegaTableDataSourceController.getRecordKey(t))):[],this.hasExpandableRow=this.rowExpandable;else if("function"==typeof this.rowExpandable){const t=[];this.currentData.forEach((e=>{const i=this.vegaTableDataSourceController.getRecordKey(e);this.rowExpandable(i)&&t.push(i)})),this.expandableRows=t,this.hasExpandableRow=t.length>0}else this.expandableRows=[],this.hasExpandableRow=!1}isRowExpandable(t){return this.expandableRows.includes(t)}clearUnusedExpandRowSlot(){this.expandedRowKeySet.toArray().forEach((t=>{this.isRowExpandable(t)||this.expandedRowKeySet.delete(t)}))}}Ot.expandRowSlotNamePrefix="vega-table-expand-row-",Dt([l()],Ot.prototype,"host",void 0),Dt([l()],Ot.prototype,"expandedRowKeySet",void 0),Dt([l({writable:!0})],Ot.prototype,"expandableRows",void 0),Dt([l({writable:!0})],Ot.prototype,"hasExpandableRow",void 0),Dt([l()],Ot.prototype,"rowExpandable",void 0),Dt([l()],Ot.prototype,"currentData",void 0),Dt([l()],Ot.prototype,"rowExpandEventEmitter",void 0),Dt([l()],Ot.prototype,"vegaTableDataSourceController",void 0),Dt([c("connectedCallback")],Ot.prototype,"connectedCallback",null),Dt([c("disconnectedCallback")],Ot.prototype,"disconnectedCallback",null),Dt([c("componentWillLoad")],Ot.prototype,"componentWillLoad",null),Dt([c("componentDidLoad")],Ot.prototype,"componentDidLoad",null),Dt([c("toggleExpandRow")],Ot.prototype,"toggleExpandRow",void 0),Dt([c("openExpandRow")],Ot.prototype,"openExpandRow",void 0),Dt([c("closeExpandRow")],Ot.prototype,"closeExpandRow",void 0),Dt([c("closeAllExpandRow")],Ot.prototype,"closeAllExpandRow",void 0),Dt([c("watchRowExpandable")],Ot.prototype,"watchRowExpandable",null),Dt([c("watchCurrentData")],Ot.prototype,"watchCurrentData",null);var Tt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Lt extends n{constructor(){super(...arguments),this.handleRowSelect=(t,e)=>{const i=this.vegaTableDataSourceController.getRecordKey(e);let o=!1;t?this.selectedRowKeySet.has(i)||(this.selectedRowKeySet.add(i),o=!0):this.selectedRowKeySet.has(i)&&(this.selectedRowKeySet.delete(i),o=!0),o&&this.selectChangeEventEmitter.emit({selected:t,record:e,selectedRows:this.getSelectedRecords()})},this.getRowSelectionType=()=>{if(this.rowSelection)return this.rowSelection.type||"multiple"},this.handleSingleRowSelect=t=>{const e=this.vegaTableDataSourceController.getRecordKey(t);this.isChecked(e)?this.handleRowSelect(!1,t):(this.selectedRowKeySet.clear(),this.handleRowSelect(!0,t))},this.isChecked=t=>this.selectedRowKeySet.has(t),this.handleSelectAll=t=>{if(t){const t=this.vegaTableDataSourceController.getAllRecordKeys();this.selectedRowKeySet.add(...t.filter((t=>!this.selectedRowKeySet.has(t))))}else this.isCheckedAll()&&this.selectedRowKeySet.clear()},this.isCheckedAll=()=>this.selectedRowKeySet.size>0&&this.vegaTableDataSourceController.getCurrentData().every((t=>this.selectedRowKeySet.has(this.vegaTableDataSourceController.getRecordKey(t)))),this.setupRowSelection=t=>{this.rowSelection=Object.assign({hideSelectAll:!1,type:"multiple"},t)},this.getSelectedRecords=()=>this.selectedRowKeySet.toArray().map(this.vegaTableDataSourceController.getRecordByKey).filter(Boolean),this.syncUpSelectedKeySetWithCurrentData=t=>{this.selectedRowKeySet.withMutation((e=>{e.clear(),t.forEach((t=>{const i=this.vegaTableDataSourceController.getRecordKey(t);this.selectedRowKeySet.has(i)&&e.add(i)}))}))}}connectedCallback(){this.initRowSelection(),this.initRowClickObserver(),this.initRowSelectionAllObserver()}disconnectedCallback(){g.unregister(m,this.rowSelectionObserver),g.unregister(y,this.rowSelectionAllObserver),g.unregister(x,this.rowClickObserver),O.unRegister(E.getSubject(this.host,L)),O.unRegister(E.getSubject(this.host,M))}componentWillLoad(){this.rowSelection&&this.setupRowSelection(this.rowSelection)}watchRowSelection(t,e){(null==e?void 0:e.type)!==(null==t?void 0:t.type)&&this.clearSelection()}setSelection(t){"single"===this.getRowSelectionType()&&t.splice(1),this.selectedRowKeySet.toArray().forEach((t=>{g.notify(m,{host:this.host,rowKey:t,checked:!1})})),this.selectedRowKeySet.clear(),t.forEach((t=>{this.vegaTableDataSourceController.getRecordByKey(t)&&(this.selectedRowKeySet.add(t),g.notify(m,{host:this.host,rowKey:t,checked:!0}))}))}watchCurrentData(t){this.syncUpSelectedKeySetWithCurrentData(t)}clearSelection(){this.selectedRowKeySet.clear(),g.notify(y,{host:this.host,checked:!1,noneChecked:0===this.selectedRowKeySet.size})}getSelection(){return this.selectedRowKeySet.toArray()}watchSelectedRowKeySet(){this.isSelectedAll=this.isCheckedAll()}watchSelectedAll(){g.notify(y,{host:this.host,checked:this.isCheckedAll(),noneChecked:0===this.selectedRowKeySet.size}),this.selectAllChangeEventEmitter.emit({selected:this.isCheckedAll(),selectedRows:this.getSelectedRecords()})}isAcceptableRowSelectionObserver(t){return"VEGA-TABLE"===t.host.tagName?this.host===t.host:"VEGA-TABLE-ROW"===t.host.tagName?this.host===C(t.host,"vega-table"):void 0}isAcceptableRowSelectionAllObserver(t){return"VEGA-TABLE"===t.host.tagName?this.host===t.host:"VEGA-TABLE-HEAD-ROW"===t.host.tagName?this.host===C(t.host,"vega-table"):void 0}initRowSelection(){this.rowSelectionObserver=new S(this.isAcceptableRowSelectionObserver.bind(this),(t=>{const{rowKey:e,checked:i}=t,o=this.vegaTableDataSourceController.getRecordByKey(e);this.handleRowSelect(i,o)})),g.register(m,this.rowSelectionObserver),O.register(E.getSubject(this.host,L),(({rowKey:t,checked:e})=>this.rowSelectEventEmitter.emit({selected:e,record:this.vegaTableDataSourceController.getRecordByKey(t),selectedRows:this.getSelectedRecords()}))),O.register(E.getSubject(this.host,M),(({checked:t})=>this.rowSelectAllEventEmitter.emit({selected:t,selectedRows:this.getSelectedRecords(),changedRows:t?this.vegaTableDataSourceController.getCurrentData().filter((t=>!this.selectedRowKeySet.has(t.key))):this.getSelectedRecords()})))}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new S(this.isAcceptableRowSelectionAllObserver.bind(this),(t=>{this.handleSelectAll(t.checked)})),g.register(y,this.rowSelectionAllObserver)}initRowClickObserver(){this.rowClickObserver=new S(this.isAcceptableRowClickObserver.bind(this),(t=>{if("single"===this.getRowSelectionType()){const e=this.vegaTableDataSourceController.getRecordByKey(t.rowKey);this.handleSingleRowSelect(e)}})),g.register(x,this.rowClickObserver)}isAcceptableRowClickObserver(t){return"VEGA-TABLE-ROW"===t.host.tagName&&this.host===C(t.host,"vega-table")}}Tt([l()],Lt.prototype,"host",void 0),Tt([l({writable:!0})],Lt.prototype,"isSelectedAll",void 0),Tt([l()],Lt.prototype,"selectedRowKeySet",void 0),Tt([l({writable:!0})],Lt.prototype,"rowSelection",void 0),Tt([l()],Lt.prototype,"rowKey",void 0),Tt([l()],Lt.prototype,"selectChangeEventEmitter",void 0),Tt([l()],Lt.prototype,"selectAllChangeEventEmitter",void 0),Tt([l()],Lt.prototype,"vegaTableDataSourceController",void 0),Tt([l()],Lt.prototype,"rowSelectEventEmitter",void 0),Tt([l()],Lt.prototype,"rowSelectAllEventEmitter",void 0),Tt([c("connectedCallback")],Lt.prototype,"connectedCallback",null),Tt([c("disconnectedCallback")],Lt.prototype,"disconnectedCallback",null),Tt([c("componentWillLoad")],Lt.prototype,"componentWillLoad",null),Tt([c("watchRowSelection")],Lt.prototype,"watchRowSelection",null),Tt([c("setSelection")],Lt.prototype,"setSelection",null),Tt([c("watchCurrentData")],Lt.prototype,"watchCurrentData",null),Tt([c("clearSelection")],Lt.prototype,"clearSelection",null),Tt([c("getSelection")],Lt.prototype,"getSelection",null),Tt([c("watchSelectedRowKeySet")],Lt.prototype,"watchSelectedRowKeySet",null),Tt([c("watchSelectedAll")],Lt.prototype,"watchSelectedAll",null);var Mt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class At extends n{constructor(){super(...arguments),this.getRecordKey=t=>null!=t[this.rowKey]?String(t[this.rowKey]):"",this.getRecordByKey=t=>this.currentData.find((e=>this.getRecordKey(e)===t)),this.setCurrentData=t=>{this.currentData=this.tableDataValidation(t)?t:[]}}componentWillLoad(){this.vegaTableSortController.syncSortOrder(),this.syncCurrentData()}watchSortersMap(){this.syncCurrentData()}watchDataSource(){this.syncCurrentData()}getAllRecordKeys(){return this.currentData.map(this.getRecordKey)}getDataSource(){return this.dataSource}setDataSource(t){this.dataSource=t}getCurrentData(){return this.currentData}isCurrentDataEmpty(){return 0===this.currentData.length}tableDataValidation(t){return!t.some((t=>!this.getRecordKey(t)))||(d.error('Each item in dataSource should have a unique "key" prop.'," Otherwise, you should specify the primary key of dataSource item via rowKey."," For more details, please refer to: https://heartlandpayments.github.io/Vega/?path=/docs/components-table-v2--basic-table#rowkey"),!1)}syncCurrentData(){if(this.isTemplateRenderMode)return;const t=this.sortersMap.size>0?this.columns.filter((t=>t.sorter&&"event"!==t.sorter&&this.sortersMap.has(t.prop))):[];this.setCurrentData(t.length>0?this.vegaTableSortController.sortData(this.dataSource,Array.from(this.sortersMap.values())):this.dataSource)}}Mt([l()],At.prototype,"rowKey",void 0),Mt([l({writable:!0})],At.prototype,"currentData",void 0),Mt([l({writable:!0})],At.prototype,"dataSource",void 0),Mt([l()],At.prototype,"columns",void 0),Mt([l()],At.prototype,"sortersMap",void 0),Mt([l()],At.prototype,"vegaTableSortController",void 0),Mt([l()],At.prototype,"vegaTableRenderer",void 0),Mt([l()],At.prototype,"isTemplateRenderMode",void 0),Mt([c("componentWillLoad")],At.prototype,"componentWillLoad",null),Mt([c("watchSortersMap")],At.prototype,"watchSortersMap",null),Mt([c("watchDataSource")],At.prototype,"watchDataSource",null);var Nt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class It extends n{constructor(){super(...arguments),this.renderTableBody=e=>{const o=this.vegaTableDataSourceController.getCurrentData();return t("vega-table-body",{ref:t=>this.tableBodyRef=t},o.map(((s,r)=>{const a=this.vegaTableDataSourceController.getRecordKey(s),l=this.vegaTablePaginationController.isRowVisible(r);return t(i,null,this.vegaTableRowRenderer.render({rowKey:a,index:r,record:s,isVisibleInCurrentPage:l,isLastRow:r===o.length-1},e),this.vegaTableExpandRowController.isExpandableRow(s)&&t("vega-table-expand-row",{class:{"v-hidden":!l},key:`vega-table-expanded-row-${a}`,rowKey:a,striped:this.striped&&r%2==1},t("slot",{name:`${Ot.expandRowSlotNamePrefix}${a}`})))})))}}getTableFormRef(){return this.tableFormRef}getTableBodyRef(){return this.tableBodyRef}render(){const e=this.columnStructureModel.generateColumnConfigByLeaves(this.columns).some((t=>null==t?void 0:t.editable));return e?t("vega-form",{ref:t=>this.tableFormRef=t},this.renderTableBody(e)):this.renderTableBody(!1)}}Nt([l()],It.prototype,"striped",void 0),Nt([l()],It.prototype,"rowDivider",void 0),Nt([l()],It.prototype,"columns",void 0),Nt([l()],It.prototype,"currentBreakpoint",void 0),Nt([l()],It.prototype,"rowClickable",void 0),Nt([l()],It.prototype,"vegaTableDataSourceController",void 0),Nt([l()],It.prototype,"vegaTablePaginationController",void 0),Nt([l()],It.prototype,"vegaTableRowSelectionController",void 0),Nt([l()],It.prototype,"vegaTableRowRenderer",void 0),Nt([l()],It.prototype,"columnStructureModel",void 0),Nt([l()],It.prototype,"vegaTableExpandRowController",void 0);var Wt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Pt extends n{constructor(){super(...arguments),this.renderHeaderRows=()=>{const e=[];let i=this.vegaTableRenderInputController.getHeadRenderInputs();for(;i.length>0;)e.push(i),i=i.flatMap((t=>t.children));return e.map((e=>{var i;return t("vega-table-head-row",{hideSelectAll:null===(i=this.rowSelection)||void 0===i?void 0:i.hideSelectAll,ref:t=>{this.vegaTableRenderInputController.addHeadRowRenderInputMap(t,e)}},e.map((t=>{if(t.label)return this.renderGroupCell(t);{const e=this.columns.find((e=>e.key===t.key||e.prop===t.key||e.label===t.key));return this.renderCell(t,e)}})))}))},this.renderGroupCell=e=>t("vega-table-head-cell",{key:e.key,ref:t=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(t,e)}},e.label),this.renderCell=(e,i)=>{var o;return i?t("vega-table-head-cell",{key:i.key||i.prop,textAlign:i.align,sorter:i.sorter,sortOrder:null===(o=this.sortersMap.get(i.prop))||void 0===o?void 0:o.getSortOrder(),sortConfig:this.sortConfig,breakpoint:i.breakpoint,ref:t=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(t,e),D.addUniqueObserverToNode(t,z,(t=>{this.vegaTableSortController.handleHeadSortClick(i,t.detail.sortOrder)}))}},i.label):t("vega-table-head-cell",{key:e.key,ref:t=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(t,e)}})}}render(){return this.showHeader&&t("vega-table-head",null,this.renderHeaderRows())}}Wt([l()],Pt.prototype,"showHeader",void 0),Wt([l()],Pt.prototype,"sortersMap",void 0),Wt([l()],Pt.prototype,"sortConfig",void 0),Wt([l()],Pt.prototype,"columns",void 0),Wt([l()],Pt.prototype,"rowSelection",void 0),Wt([l()],Pt.prototype,"vegaTableSortController",void 0),Wt([l()],Pt.prototype,"vegaTableDataSourceController",void 0),Wt([l()],Pt.prototype,"vegaTableRenderInputController",void 0);var zt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Bt extends n{constructor(){super(...arguments),this.paginationRefCallback=t=>{D.addUniqueObserverToNode(t,B,this.handlePaginationChange),D.addUniqueObserverToNode(t,_,this.handlePaginationPageSizeChange)},this.handlePaginationChange=t=>{var e,i;this.vegaTablePaginationController.setCurrentPage(t.detail);const o=new CustomEvent("vegaChange",{detail:t.detail});null===(i=(e=this.pagination).vegaChange)||void 0===i||i.call(e,o)},this.handlePaginationPageSizeChange=t=>{var e,i;this.vegaTablePaginationController.setPageSize(t.detail);const o=new CustomEvent("vegaPageSizeChange",{detail:t.detail});null===(i=(e=this.pagination).vegaPageSizeChange)||void 0===i||i.call(e,o)},this.getPaginationConfig=()=>{const t=this.pagination,{position:e}=t,i=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(t);s<o.length;s++)e.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(i[o[s]]=t[o[s]])}return i}(t,["position"]),o=Y.formatCustom(this.pagination.extensions);return Object.assign(Object.assign({},i),{position:(null==o?void 0:o.length)>1?void 0:e||"bottom-center",pageSize:this.pageSize})}}render(){if(!this.pagination)return;const{pageSize:e,position:i,extensions:o,pageSizeSelectorOptions:s}=this.getPaginationConfig(),r=["vega-table-pagination-container",i],a=this.vegaTableDataSourceController.getCurrentData().length;return a>0&&t("div",{class:k(r)},t("vega-pagination",{total:a,pageSize:e,current:this.currentPage,extensions:o,pageSizeSelectorOptions:s,ref:this.paginationRefCallback}))}}zt([l()],Bt.prototype,"pagination",void 0),zt([l()],Bt.prototype,"pageSize",void 0),zt([l()],Bt.prototype,"currentPage",void 0),zt([l()],Bt.prototype,"vegaTablePaginationController",void 0),zt([l()],Bt.prototype,"vegaTableDataSourceController",void 0);const _t=({scrollConfig:e={},ref:i,onScroll:o},s)=>{const{maxHeight:r}=e,a=q(r);return t("div",{class:"vega-table-scrollable-container",style:{maxHeight:"number"==typeof r?`${r}px`:r},ref:i,onScroll:t=>{if(!a)return;const e=t.target;0!==e.scrollTop?(e.scrollTop>0&&!e.classList.contains("scrolled")&&e.classList.add("scrolled"),o(t)):e.classList.remove("scrolled")}},s)};var Kt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Vt extends n{constructor(){super(...arguments),this.scrollContainerToTop=()=>{this.tableScrollContainerRef&&(this.tableScrollContainerRef.scrollTop=0)},this.notifyContentScrolling=()=>{this.isTemplateRenderMode&&g.notify(R,{host:this.host})}}watchCurrentPage(){this.scrollContainerToTop()}render(e){return t(_t,{scrollConfig:this.scrollConfig,ref:t=>this.setTableScrollContainerRef(t),onScroll:()=>this.notifyContentScrolling()},e)}setTableScrollContainerRef(t){this.tableScrollContainerRef=t}}Kt([l()],Vt.prototype,"scrollConfig",void 0),Kt([l()],Vt.prototype,"host",void 0),Kt([l()],Vt.prototype,"isTemplateRenderMode",void 0),Kt([c("watchCurrentPage")],Vt.prototype,"watchCurrentPage",null);var $t=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ft extends n{constructor(){super(...arguments),this.renderInternalTable=()=>{const e=this.columns.some((t=>t.overflow))||Array.from(this.host.querySelectorAll("vega-table-cell")).some((t=>t.overflow));return t("table",{class:{"v-table-fixed":e,"show-edit-error":this.showEditError}},this.columns.length>0&&[this.vegaTableColGroupRenderer.render(),this.vegaTableHeaderRenderer.render()],(this.dataSource.length>0||this.editingRows.size>0)&&this.vegaTableBodyRenderer.render(),this.isTemplateRenderMode&&t("slot",null))},this.renderEmpty=()=>this.vegaTableDataSourceController.isCurrentDataEmpty()&&this.emptyDescription&&t("div",{class:"vega-table-empty-description"},this.translationSlimmer.t(this.emptyDescription))}render(){const e=k([this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",`density-${Y.formatCustom(this.density)}`,this.striped&&"striped",this.columnStructureModel.hasGroupColumn()&&"is-group-table",(this.columnStructureModel.hasLeftPinnedColumn()||this.columnStructureModel.hasRightPinnedColumn())&&"is-pinned-table"]);return Q(t(o,{class:e},this.vegaTableScrollContainerRenderer.render(this.renderInternalTable()),this.vegaTablePaginationRenderer.render(),this.renderEmpty()),this.host)}}$t([l()],Ft.prototype,"host",void 0),$t([l()],Ft.prototype,"columns",void 0),$t([l()],Ft.prototype,"emptyDescription",void 0),$t([l()],Ft.prototype,"rowDivider",void 0),$t([l()],Ft.prototype,"columnDivider",void 0),$t([l()],Ft.prototype,"density",void 0),$t([l()],Ft.prototype,"dataSource",void 0),$t([l()],Ft.prototype,"striped",void 0),$t([l()],Ft.prototype,"columnStructureModel",void 0),$t([l()],Ft.prototype,"showEditError",void 0),$t([l()],Ft.prototype,"vegaTableHeaderRenderer",void 0),$t([l()],Ft.prototype,"vegaTableBodyRenderer",void 0),$t([l()],Ft.prototype,"vegaTableColGroupRenderer",void 0),$t([l()],Ft.prototype,"vegaTableScrollContainerRenderer",void 0),$t([l()],Ft.prototype,"vegaTablePaginationRenderer",void 0),$t([l()],Ft.prototype,"vegaTableDataSourceController",void 0),$t([l()],Ft.prototype,"translationSlimmer",void 0),$t([l({writable:!0})],Ft.prototype,"vegaTableChildrenController",void 0),$t([l()],Ft.prototype,"isTemplateRenderMode",void 0),$t([l()],Ft.prototype,"editingRows",void 0);var Gt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Xt extends n{componentWillLoad(){var t,e;this.currentPage=(null===(t=this.pagination)||void 0===t?void 0:t.current)||1,this.pageSize=(null===(e=this.pagination)||void 0===e?void 0:e.pageSize)||10}watchPagination(){if(this.pagination){const{pageSize:t,current:e}=this.pagination;t>0&&(this.pageSize=t),e>0&&(this.currentPage=e)}}setPageSize(t){this.pageSize=t}setCurrentPage(t){this.currentPage=t}isRowVisible(t){if(!this.pagination)return!0;const e=this.pageSize,i=this.currentPage;return t>=(i-1)*e&&t<i*e}}Gt([l()],Xt.prototype,"pagination",void 0),Gt([l({writable:!0})],Xt.prototype,"pageSize",void 0),Gt([l({writable:!0})],Xt.prototype,"currentPage",void 0),Gt([c("componentWillLoad")],Xt.prototype,"componentWillLoad",null),Gt([c("watchPagination")],Xt.prototype,"watchPagination",null);var Ht=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ut extends n{constructor(){super(...arguments),this.rowFormRefMap=new Map}getRowFormRefMap(){return this.rowFormRefMap}async saveAllEditRows(){if(!this.canMethodBeInvokedInCurrentState("saveAllEditRows"))return;const t=this.vegaTableDataSourceController.getCurrentData().slice();for(const e of this.editingRows.toArray()){const i=await this.getRowData(e),o=t.findIndex((t=>this.vegaTableDataSourceController.getRecordKey(t)===e));o>-1&&t.splice(o,1,i)}this.vegaTableDataSourceController.setDataSource([...t]),this.stopAllRowEditMode()}stopAllRowEditMode(){this.canMethodBeInvokedInCurrentState("stopAllRowEditMode")&&this.editingRows.clear()}watchDataSource(t){this.isEditableTable()&&this.getEditingRowsKey().forEach((e=>{t.find((t=>t.key===e))||this.stopRowEditMode(e)}))}async saveEditRow(t){if(!this.canMethodBeInvokedInCurrentState("saveEditRow"))return;const e=await this.getRowData(t),i=this.vegaTableDataSourceController.getCurrentData().slice(),o=i.findIndex((e=>this.vegaTableDataSourceController.getRecordKey(e)===t));o>-1&&(i.splice(o,1,e),this.vegaTableDataSourceController.setDataSource([...i])),this.stopRowEditMode(t)}stopRowEditMode(t){this.canMethodBeInvokedInCurrentState("stopRowEditMode")&&this.editingRows.delete(t)}removeRow(t){this.canMethodBeInvokedInCurrentState("removeRow")&&this.vegaTableDataSourceController.setDataSource(this.vegaTableDataSourceController.getCurrentData().filter((e=>this.vegaTableDataSourceController.getRecordKey(e)!==t)))}startRowEditMode(t){this.canMethodBeInvokedInCurrentState("startRowEditMode")&&this.editingRows.add(t)}addNewRow(t={}){var e;if(!this.canMethodBeInvokedInCurrentState("addNewRow"))return;const i=(null===(e=t[this.rowKey])||void 0===e?void 0:e.toString())||tt(),o=Object.assign({},t);return o[this.rowKey]=i,this.vegaTableDataSourceController.setCurrentData([...this.vegaTableDataSourceController.getCurrentData(),o]),this.editingRows.add(i),i}async getRowsData(){if(!this.canMethodBeInvokedInCurrentState("getRowsData"))return;const t=this.vegaTableBodyRenderer.getTableFormRef(),e=t?await t.getValue():[];return[...this.vegaTableDataSourceController.getCurrentData().map((t=>{const i=e[`${Ut.rowFormKeyPrefix}${this.vegaTableDataSourceController.getRecordKey(t)}`];return Object.assign(Object.assign({},t),i)}))]}getEditingRowsKey(){if(this.canMethodBeInvokedInCurrentState("getEditingRowsKey"))return this.editingRows.toArray()}getFormRef(t){if(this.canMethodBeInvokedInCurrentState("getFormRef"))return t?this.rowFormRefMap.get(t):this.vegaTableBodyRenderer.getTableFormRef()}async getRowData(t){if(!this.canMethodBeInvokedInCurrentState("getRowData"))return;const e=await this.rowFormRefMap.get(t).getValue();return Object.assign(Object.assign({},this.vegaTableDataSourceController.getRecordByKey(t)),e)}isEditing(t){return this.editingRows.has(t)}isEditableTable(){return this.columns.some((t=>t.editable))}canMethodBeInvokedInCurrentState(t){return!!this.isEditableTable()||(d.warn(`Method ${t} only works with editable tables`),!1)}}Ut.rowFormKeyPrefix="vega-table-row-form-",Ht([l()],Ut.prototype,"editingRows",void 0),Ht([l()],Ut.prototype,"rowKey",void 0),Ht([l()],Ut.prototype,"columns",void 0),Ht([l()],Ut.prototype,"vegaTableDataSourceController",void 0),Ht([l()],Ut.prototype,"vegaTableBodyRenderer",void 0),Ht([c("saveAllEditRows")],Ut.prototype,"saveAllEditRows",null),Ht([c("stopAllRowEditMode")],Ut.prototype,"stopAllRowEditMode",null),Ht([c("watchDataSource")],Ut.prototype,"watchDataSource",null),Ht([c("saveEditRow")],Ut.prototype,"saveEditRow",null),Ht([c("stopRowEditMode")],Ut.prototype,"stopRowEditMode",null),Ht([c("removeRow")],Ut.prototype,"removeRow",null),Ht([c("startRowEditMode")],Ut.prototype,"startRowEditMode",null),Ht([c("addNewRow")],Ut.prototype,"addNewRow",null),Ht([c("getRowsData")],Ut.prototype,"getRowsData",null),Ht([c("getEditingRowsKey")],Ut.prototype,"getEditingRowsKey",null),Ht([c("getFormRef")],Ut.prototype,"getFormRef",null),Ht([c("getRowData")],Ut.prototype,"getRowData",null);class Yt{constructor(t,e,i){this.prop=t,this.order=e,this.sorter=i}sort(t,e){const i=this.sorter(t,e);if(0!==i)return"asc"===this.order?i:-i}toExternalFormat(){return{prop:this.prop,order:this.order}}getSortOrder(){return this.order}}var qt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Zt extends n{constructor(){super(...arguments),this.clearSorter=()=>{this.sortersMap.size>0&&(this.sortersMap.clear(!1),this.changeEventEmitter.emit({sorters:[]}))}}watchColumns(){this.syncSortOrder()}handleHeadSortClick(t,e){"single"===this.sortConfig.type&&this.sortersMap.clear(),e?this.sortersMap.set(t.prop,new Yt(t.prop,e,t.sorter)):this.sortersMap.has(t.prop)&&this.sortersMap.delete(t.prop),"event"!==t.sorter&&this.vegaTableDataSourceController.setCurrentData(this.sortData(this.vegaTableDataSourceController.getDataSource(),Array.from(this.sortersMap.values()))),this.changeEventEmitter.emit({sorters:Array.from(this.sortersMap.values()).map((t=>t.toExternalFormat()))})}syncSortOrder(){this.columns.filter((t=>q(t.sorter)&&q(t.sortOrder))).forEach((t=>{this.sortersMap.set(t.prop,new Yt(t.prop,t.sortOrder,t.sorter))}))}sortData(t,e){return[...t].sort(((t,i)=>{for(const o of e){const e=o.sort(t,i);if(q(e))return e}return 0}))}}qt([l({writable:!0})],Zt.prototype,"sortersMap",void 0),qt([l()],Zt.prototype,"columns",void 0),qt([l()],Zt.prototype,"changeEventEmitter",void 0),qt([l()],Zt.prototype,"vegaTableDataSourceController",void 0),qt([l()],Zt.prototype,"sortConfig",void 0),qt([c("watchColumns")],Zt.prototype,"watchColumns",null);var Jt=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Qt extends n{constructor(){super(...arguments),this.getColResponsiveClass=t=>t.breakpoint&&Z(t.breakpoint)?`v-hidden ${t.breakpoint}:v-table-column`:""}render(){return t("colgroup",null,t("col",{style:{minWidth:this.paddingX[0],width:this.paddingX[0]}}),this.rowDraggable&&t("col",{class:"draggable-col"}),"multiple"===this.vegaTableRowSelectionController.getRowSelectionType()&&t("col",{style:{minWidth:"40px",width:"40px"}}),this.columnStructureModel.generateColumnConfigByLeaves(this.columns).map((e=>{if(e){const i=this.getColResponsiveClass(e);return t("col",{class:i,style:{width:e.width?e.width:null}})}return t("col",null)})),this.hasExpandableRow&&t("col",{style:{minWidth:"40px",width:"40px"}}),t("col",{style:{minWidth:this.paddingX[1],width:this.paddingX[1]}}))}}Jt([l()],Qt.prototype,"paddingX",void 0),Jt([l()],Qt.prototype,"columnStructureModel",void 0),Jt([l()],Qt.prototype,"columns",void 0),Jt([l()],Qt.prototype,"hasExpandableRow",void 0),Jt([l()],Qt.prototype,"rowDraggable",void 0),Jt([l()],Qt.prototype,"vegaTableRowSelectionController",void 0);var te=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ee extends n{constructor(){super(...arguments),this.currentDataObserver=new it({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ot("VEGA-TABLE-BODY","VEGA-TABLE-ROW"),callback:()=>{this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps()}}),this.rowStripedObserver=new it({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ot("VEGA-TABLE-BODY","VEGA-TABLE-ROW","VEGA-TABLE-EXPAND-ROW"),callback:()=>{this.syncRowStates()}}),this.syncUpTableCurrentData=()=>{if(!this.isTemplateRenderMode)return;const t=Array.from(this.host.querySelectorAll("vega-table-row")).map((t=>({key:t.rowKey})));this.vegaTableDataSourceController.setCurrentData(t)},this.syncRowStates=()=>{const t=this.host.querySelectorAll("vega-table-row");t.forEach(((e,i)=>{this.updateRowStriped(e,i),this.updateRowDivider(e,i===t.length-1)})),this.host.querySelectorAll("vega-table-expand-row").forEach(((t,e)=>{this.updateRowStriped(t,e)}))},this.syncUpTableHeadRowProps=()=>{var t;if(!this.isTemplateRenderMode)return;const e=this.host.querySelector("vega-table-head-row");e&&(e.hideSelectAll=e.hideSelectAll||(null===(t=this.rowSelection)||void 0===t?void 0:t.hideSelectAll))}}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps(),this.syncRowStates(),this.syncUpTableFootVisibility()}componentDidLoad(){}clearSelection(){g.notify(y,{host:this.host,checked:!1,noneChecked:!0})}watchCurrentData(){this.syncUpTableFootVisibility()}watchStriped(){this.syncRowStates()}watchRowDivider(){this.syncRowStates()}updateRowStriped(t,e){t.striped=this.striped&&e%2==1}updateRowDivider(t,e){t.rowDivider=this.rowDivider&&!e}syncUpTableFootVisibility(){const t=this.host.querySelector("vega-table-foot");t&&(this.vegaTableDataSourceController.isCurrentDataEmpty()?t.classList.add("v-hidden"):t.classList.remove("v-hidden"))}}te([l()],ee.prototype,"host",void 0),te([l()],ee.prototype,"columns",void 0),te([l()],ee.prototype,"dataSource",void 0),te([l()],ee.prototype,"currentData",void 0),te([l()],ee.prototype,"rowSelection",void 0),te([l()],ee.prototype,"striped",void 0),te([l()],ee.prototype,"rowDivider",void 0),te([l()],ee.prototype,"vegaTableDataSourceController",void 0),te([l()],ee.prototype,"vegaTableRenderer",void 0),te([l()],ee.prototype,"isTemplateRenderMode",void 0),te([h()],ee.prototype,"currentDataObserver",void 0),te([h()],ee.prototype,"rowStripedObserver",void 0),te([c("connectedCallback")],ee.prototype,"connectedCallback",null),te([c("disconnectedCallback")],ee.prototype,"disconnectedCallback",null),te([c("componentWillLoad")],ee.prototype,"componentWillLoad",null),te([c("componentDidLoad")],ee.prototype,"componentDidLoad",null),te([c("clearSelection")],ee.prototype,"clearSelection",null),te([c("watchCurrentData")],ee.prototype,"watchCurrentData",null),te([c("watchStriped")],ee.prototype,"watchStriped",null),te([c("watchRowDivider")],ee.prototype,"watchRowDivider",null);var ie=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class oe extends n{constructor(){super(...arguments),this.renderTableRowComponent=e=>{const{rowKey:i,index:o,record:s,isVisibleInCurrentPage:r}=e,a=this.vegaTableRenderInputController.getLeafRenderInputs(),l=this.vegaTableBodyColSpanController.resolveRow(s,o,a),n=[];return a.forEach(((t,e)=>{const i=l[e];i&&n.push(this.vegaTableCellRenderer.render(t,s,o,i))})),t("vega-table-row",{class:{"v-hidden":!r},key:`vega-table-row-${i}`,rowKey:i,ref:t=>{D.addUniqueObserverToNode(t,z,(()=>{this.rowClickEventEmitter.emit({record:s,index:o})}))},striped:this.striped&&o%2==1,rowDivider:this.rowDivider&&!e.isLastRow},n)}}render(e,i){const{rowKey:o}=e;return i?t("vega-form",{key:`vega-table-row-form-${o}`,"data-vega-form":`${Ut.rowFormKeyPrefix}${o}`,ref:t=>this.vegaTableEditableController.getRowFormRefMap().set(o,t)},this.renderTableRowComponent(e)):this.renderTableRowComponent(e)}}ie([l()],oe.prototype,"rowClickEventEmitter",void 0),ie([l()],oe.prototype,"vegaTableEditableController",void 0),ie([l()],oe.prototype,"vegaTableCellRenderer",void 0),ie([l()],oe.prototype,"vegaTableBodyColSpanController",void 0),ie([l()],oe.prototype,"striped",void 0),ie([l()],oe.prototype,"rowDivider",void 0),ie([l()],oe.prototype,"vegaTableRenderInputController",void 0);var se=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class re extends n{constructor(){super(...arguments),this.currentDataObserver=new it({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ot("VEGA-TABLE-ROW"),callback:()=>{this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}}),this.checkIsTemplateRenderMode=t=>Array.from(t.children).some((t=>t.tagName.startsWith("VEGA-TABLE-")))}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}componentDidLoad(){}}se([l()],re.prototype,"host",void 0),se([l({writable:!0})],re.prototype,"isTemplateRenderMode",void 0),se([h()],re.prototype,"currentDataObserver",void 0),se([c("connectedCallback")],re.prototype,"connectedCallback",null),se([c("disconnectedCallback")],re.prototype,"disconnectedCallback",null),se([c("componentWillLoad")],re.prototype,"componentWillLoad",null),se([c("componentDidLoad")],re.prototype,"componentDidLoad",null);const ae=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:t=>0===t.dataSource.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:t=>t.dataSource.length>0}];class le{constructor(t,e,i,o,s){this.key=t,this.level=e,this.parent=i,this.label=o,this.pinned=s,this.leaves=[],this.orderedChildren=[],this.iteratorCacheMap=new Map}static from(t,e){const i=new le(this.ROOT_KEY,le.ROOT_LEVEL);return e?(i.children=this.fromGroupColumns(i,e),i):t?(i.children=t.map((t=>new le(t.key||t.prop||t.label,0,i,null,t.pinned))),i):(i.children=[],i)}static fromGroupColumns(t,e,i=0){return e&&e.length>0?e.map((e=>{if(J(e)){const o=new le(e.key,i,t,e.label,e.pinned);return o.children=this.fromGroupColumns(o,e.children,i+1),o}return new le(e.key,i,t)})):[]}generateColumnConfigByLeaves(t){return this.getLeaves().map((e=>t.find((t=>t.key===e.key||t.prop===e.key||t.label===e.key))))}getMaxDepth(){const t=this.dfsIterator();return 0===t.length?0:Math.max(...t.map((t=>t.level)))+1}hasGroupColumn(){return!!this.children.find((t=>!t.isLeaf()))}hasLeftPinnedColumn(){return!!this.children.find((t=>"left"===t.pinned))}hasRightPinnedColumn(){return!!this.children.find((t=>"right"===t.pinned))}isLeaf(){return!this.children||0===this.children.length}iterator(t="dfs"){return"dfs"===t?this.dfsIterator():[]}getLeaves(){if(this.leaves.length>0)return this.leaves;const t=this.dfsIterator().filter((t=>t.isLeaf()));return this.leaves=t,t}getOrderedChildren(){return this.isRoot()?this.orderedChildren:this.children}orderChildrenByPinned(){if(!this.isRoot())return this.children;if(this.orderedChildren.length>0)return this.orderedChildren;const t=[],e=[],i=[];this.children.forEach((o=>{"left"===o.pinned?t.push(o):"right"===o.pinned?i.push(o):e.push(o)}));const o=[...t,...e,...i];return this.orderedChildren=o,o}isRoot(){return this.level===le.ROOT_LEVEL}dfsIterator(){if(this.iteratorCacheMap.has("dfs"))return this.iteratorCacheMap.get("dfs");const t=[],e=this.orderChildrenByPinned();return this.isRoot()||t.push(this),e&&e.length>0&&e.forEach((e=>{t.push(...e.dfsIterator())})),this.iteratorCacheMap.set("dfs",t),t}}le.ROOT_LEVEL=-1,le.ROOT_KEY="#root-model#";var ne=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class de extends n{componentWillLoad(){this.setColumnStructureModel()}watchColumns(){this.setColumnStructureModel()}watchGroupColumns(){this.setColumnStructureModel()}setColumnStructureModel(){this.columnStructureModel=le.from(this.columns,this.groupColumns)}}ne([l()],de.prototype,"host",void 0),ne([l()],de.prototype,"columns",void 0),ne([l()],de.prototype,"groupColumns",void 0),ne([l({writable:!0})],de.prototype,"columnStructureModel",void 0),ne([c("componentWillLoad")],de.prototype,"componentWillLoad",null),ne([c("watchColumns")],de.prototype,"watchColumns",null),ne([c("watchGroupColumns")],de.prototype,"watchGroupColumns",null);var ce=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class he extends n{constructor(){super(...arguments),this.headRowRenderInputMap=new Map,this.headCellRenderInputMap=new Map,this.pinnedColumnBodyCellRenderInputMap=new Map,this.cellRenderInputChangeTaskQueue=new ct}connectedCallback(){this.registerRenderInputRICObserver()}disconnectedCallback(){this.unRegisterRenderInputRICObserver()}componentWillLoad(){this.setRenderInputModel()}async componentDidRender(){await this.cellRenderInputChangeTaskQueue.runTask()}async watchColumnStructureModel(){this.setRenderInputModel(),this.pinnedColumnBodyCellRenderInputMap.clear(),await this.cellRenderInputChangeTaskQueue.enqueue({run:async()=>{g.notify(E.getSubject(this.host,A),{})}},!1)}getLeafRenderInputs(){return this.leavesRenderInputModels}getHeadRenderInputs(){return this.columnRenderInputModels}addHeadRowRenderInputMap(t,e){this.headRowRenderInputMap.set(t,e)}addHeadCellRenderInputMap(t,e){this.headCellRenderInputMap.set(t,e)}addCellRenderInputMap(t,e){(t&&["left","right"].includes(e.pinned)||e.isNoPinnedEnd)&&this.pinnedColumnBodyCellRenderInputMap.set(t,e)}getHeadCellRenderInputMap(){return this.headCellRenderInputMap}getPinnedColumnBodyCellRenderInputMap(){return this.pinnedColumnBodyCellRenderInputMap}registerRenderInputRICObserver(){O.register(E.getSubject(this.host,N),(t=>this.headRowRenderInputMap.get(t))),O.register(E.getSubject(this.host,I),(t=>this.headCellRenderInputMap.get(t))),O.register(E.getSubject(this.host,W),(t=>this.pinnedColumnBodyCellRenderInputMap.get(t)))}unRegisterRenderInputRICObserver(){O.unRegister(E.getSubject(this.host,N)),O.unRegister(E.getSubject(this.host,I)),O.unRegister(E.getSubject(this.host,W))}setRenderInputModel(){this.columnRenderInputModels=Rt.from(this.columnStructureModel),this.leavesRenderInputModels=this.columnRenderInputModels.flatMap((t=>t.getLeaves()))}}ce([l()],he.prototype,"host",void 0),ce([l()],he.prototype,"columnStructureModel",void 0),ce([l()],he.prototype,"vegaTableColGroupRenderer",void 0),ce([c("connectedCallback")],he.prototype,"connectedCallback",null),ce([c("disconnectedCallback")],he.prototype,"disconnectedCallback",null),ce([c("componentWillLoad")],he.prototype,"componentWillLoad",null),ce([c("componentDidRender")],he.prototype,"componentDidRender",null),ce([c("watchColumnStructureModel")],he.prototype,"watchColumnStructureModel",null);var ve=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class pe extends n{constructor(){super(...arguments),this.pageResizeObserverSlimmer=new st({target:()=>this.host.shadowRoot.querySelector("table"),isDeferred:!0,callback:async()=>{await this.host.componentOnReady().then((()=>{this.updateTableRowPinnedPosition(),this.updateTableCellPinnedPosition()}))}}),this.previouslyStyledCells=new Set,this.dynamicRightDividerCells=new Set,this.dynamicLeftDividerCells=new Set,this.dynamicHideRightBorderCells=new Set,this.clearPinnedPositionsTaskQueue=new ct(1)}componentDidLoad(){}async componentDidRender(){await this.clearPinnedPositionsTaskQueue.runTask(),this.updateTableRowPinnedPosition();const t=this.updateTableCellPinnedPosition();t.length>0&&(await Promise.all(t.map((t=>t.componentOnReady()))),this.updateTableCellPinnedPosition())}watchColumnStructureModel(){this.clearPinnedPositionsTaskQueue.enqueue({run:async()=>{this.clearAllPinnedPositions()}},!1)}updateTableCellPinnedPosition(){if(!this.columnStructureModel.hasLeftPinnedColumn()&&!this.columnStructureModel.hasRightPinnedColumn())return[];if(this.dynamicRightDividerCells.forEach((t=>t.classList.remove("right-divider"))),this.dynamicRightDividerCells.clear(),this.dynamicLeftDividerCells.forEach((t=>t.classList.remove("left-divider"))),this.dynamicLeftDividerCells.clear(),this.dynamicHideRightBorderCells.forEach((t=>t.classList.remove("hide-right-border"))),this.dynamicHideRightBorderCells.clear(),!this.host.shadowRoot.querySelector("vega-table-head-row"))return[];const t=this.vegaTableRenderInputController.getHeadCellRenderInputMap(),e=this.vegaTableRenderInputController.getPinnedColumnBodyCellRenderInputMap(),[i,o]=this.getRowShadowThWidths(),s=this.getLeafWidths();let r=null,a=null,l=null;t.forEach(((t,e)=>{var n;const d=null===(n=e.shadowRoot)||void 0===n?void 0:n.querySelector("th, td"),c=!!d&&d.getBoundingClientRect().width>0;this.updateCellPinnedPosition(t,e,i,s,o),c&&"left"===t.pinned&&(r=d),c&&"right"===t.pinned&&!a&&(a=d),c&&"right"===t.pinned&&(l=d)})),e.forEach(((t,i)=>{(null==i?void 0:i.isConnected)||e.delete(i)}));const n=new Map,d=new Map,c=new Map,h=[];if(e.forEach(((t,e)=>{var r;const a=null===(r=e.shadowRoot)||void 0===r?void 0:r.querySelector("th, td"),l=!!a&&a.getBoundingClientRect().width>0;if(!["left","right"].includes(t.pinned)||a){if(this.updateCellPinnedPosition(t,e,i,s,o),l&&"left"===t.pinned){const t=e.closest("vega-table-row");t&&n.set(t,a)}if(l&&"right"===t.pinned){const t=e.closest("vega-table-row");t&&!d.has(t)&&d.set(t,a),t&&c.set(t,a)}}else h.push(e)})),r&&!r.classList.contains("right-divider")){const t=this.vegaTableRenderInputController.getLeafRenderInputs().find((t=>t.isLeftEndPinned));t&&0===s[t.columnIndex]&&(r.classList.add("right-divider"),this.dynamicRightDividerCells.add(r),n.forEach((t=>{t.classList.contains("right-divider")||(t.classList.add("right-divider"),this.dynamicRightDividerCells.add(t))})))}if(a&&!a.classList.contains("left-divider")){const t=this.vegaTableRenderInputController.getLeafRenderInputs().find((t=>t.isRightStartPinned));t&&0===s[t.columnIndex]&&(a.classList.add("left-divider"),this.dynamicLeftDividerCells.add(a),d.forEach((t=>{t.classList.contains("left-divider")||(t.classList.add("left-divider"),this.dynamicLeftDividerCells.add(t))})))}if(l&&!l.classList.contains("hide-right-border")){const t=this.vegaTableRenderInputController.getLeafRenderInputs().filter((t=>"right"===t.pinned)),e=t[t.length-1];e&&0===s[e.columnIndex]&&(l.classList.add("hide-right-border"),this.dynamicHideRightBorderCells.add(l),c.forEach((t=>{t.classList.contains("hide-right-border")||(t.classList.add("hide-right-border"),this.dynamicHideRightBorderCells.add(t))})))}return this.syncColspanForHiddenColumns(s,e),h}getRowShadowThWidths(){const t=this.host.shadowRoot.querySelector("vega-table-head-row").shadowRoot,e=t.querySelector("th:first-of-type"),i=t.querySelector(".vega-table-draggable-column"),o=t.querySelector(".vega-table-selection-column"),s=t.querySelector(".vega-table-expand-action-column"),r=t.querySelector("th:last-of-type");return e?[e.getBoundingClientRect().width+((null==o?void 0:o.getBoundingClientRect().width)||0)+((null==i?void 0:i.getBoundingClientRect().width)||0),((null==s?void 0:s.getBoundingClientRect().width)||0)+r.getBoundingClientRect().width]:[0,0]}getLeafWidths(){const t=this.vegaTableRenderInputController.getHeadCellRenderInputMap();return this.vegaTableRenderInputController.getLeafRenderInputs().map((e=>{var i;for(const[o,s]of t.entries())if(e===s)return(null===(i=o.shadowRoot.querySelector("th, td"))||void 0===i?void 0:i.getBoundingClientRect().width)||0}))}syncColspanForHiddenColumns(t,e){t.every((t=>0===t))||e.forEach(((e,i)=>{var o;const s=i.colSpan||1;if(s<=1)return;const r=null===(o=i.shadowRoot)||void 0===o?void 0:o.querySelector("td");if(!r)return;const a=t.slice(e.columnIndex,e.columnIndex+s),l=Math.max(1,a.filter((t=>t>0)).length);r.setAttribute("colspan",String(l))}))}updateCellPinnedPosition(t,e,i,o,s){if(["left","right"].includes(t.pinned)){const r=e.shadowRoot.querySelector("th, td");if("left"===t.pinned){const e=i+o.slice(0,t.columnIndex).reduce(((t,e)=>t+e),0);this.updatePinnedPosition(r,"left",e)}if("right"===t.pinned){const i=q(t.colSpan)?t.colSpan:e.colSpan||1,a=s+o.slice(t.columnIndex+i).reduce(((t,e)=>t+e),0);this.updatePinnedPosition(r,"right",a)}}}updateTableRowPinnedPosition(){const t=this.columnStructureModel.hasLeftPinnedColumn(),e=this.columnStructureModel.hasRightPinnedColumn(),i=this.host.getBoundingClientRect().width,o=j(this.paddingX[0]),s=j(this.paddingX[1]),r=i-o-s-2;this.host.shadowRoot.querySelectorAll("vega-table-head-row, vega-table-row, vega-table-expand-row").forEach((i=>{const a=i.shadowRoot;if(t){const t=a.querySelector("th:first-of-type, td:first-of-type"),e=a.querySelector(".vega-table-selection-column"),i=a.querySelector(".vega-table-draggable-column");this.updatePinnedPosition(t,"left",0),this.updatePinnedPosition(i,"left",o);const s=(null==i?void 0:i.getBoundingClientRect().width)||0;this.updatePinnedPosition(e,"left",o+s)}if(e){const t=a.querySelector(".vega-table-expand-action-column"),e=a.querySelector("th:last-of-type, td:last-of-type");this.updatePinnedPosition(t,"right",s),this.updatePinnedPosition(e,"right",0)}if(e||t){const t=a.querySelector(".vega-table-expanded-row-slot-container");if(t){const e=t.querySelector(".expanded-row-slot-inner");this.updatePinnedPosition(e,"left",o),e.style.width=`${r}px`}}}))}clearAllPinnedPositions(){this.previouslyStyledCells.forEach((t=>{t.style.position="",t.style.zIndex="",t.style.left="",t.style.right="",t.classList.contains("expanded-row-slot-inner")&&(t.style.width="")})),this.dynamicRightDividerCells.forEach((t=>t.classList.remove("right-divider"))),this.dynamicRightDividerCells.clear(),this.dynamicLeftDividerCells.forEach((t=>t.classList.remove("left-divider"))),this.dynamicLeftDividerCells.clear(),this.dynamicHideRightBorderCells.forEach((t=>t.classList.remove("hide-right-border"))),this.dynamicHideRightBorderCells.clear(),this.previouslyStyledCells.clear()}updatePinnedPosition(t,e,i){t&&(t.style.position="sticky",t.style.zIndex="1",t.style[e]=`${i}px`,this.previouslyStyledCells.add(t))}}ve([l()],pe.prototype,"host",void 0),ve([l()],pe.prototype,"columnStructureModel",void 0),ve([l()],pe.prototype,"paddingX",void 0),ve([l()],pe.prototype,"vegaTableRenderInputController",void 0),ve([h()],pe.prototype,"pageResizeObserverSlimmer",void 0),ve([c("componentDidLoad")],pe.prototype,"componentDidLoad",null),ve([c("componentDidRender")],pe.prototype,"componentDidRender",null),ve([c("watchColumnStructureModel")],pe.prototype,"watchColumnStructureModel",null);var be=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ue extends n{constructor(t){super(),this.activePointerId=null,this.activeItem=null,this.isDragging=!1,this.startX=0,this.startY=0,this.dragFromIndex=null,this.dragToIndex=null,this.currentOverItem=null,this.currentOverIndex=null,this.activeItemHeight=0,this.cachedItems=[],this.cachedItemDraggableMap=new WeakMap,this.onPointerDown=t=>{if(0!==t.button)return;const e=this.getItemFromComposedPath(t,!0);e&&(this.startDrag(e,t),t.preventDefault())},this.onPointerMove=t=>{this.isCurrentPointEvent(t)&&this.hasCrossedDragThreshold(t)&&(this.beginDragging(),this.syncActiveVisual(t),this.updateDropTarget(t),this.emitDrag(),t.preventDefault())},this.onPointerUp=t=>{this.isCurrentPointEvent(t)&&this.finishDrag()},this.onPointerCancel=t=>{t.pointerId===this.activePointerId&&this.resetDragState()},this.entry=t}connectedCallback(){this.init()}disconnectedCallback(){this.destroy()}componentDidLoad(){this.init()}watchIsDraggable(){this.isDraggable?this.init():this.destroy()}init(){this.isDraggable&&this.listenPointerEvents()}destroy(){this.removePointerListeners(),this.resetDragState()}listenPointerEvents(){const t=this.getContainer();t&&(t.addEventListener("pointerdown",this.onPointerDown),window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerCancel))}removePointerListeners(){const t=this.getContainer();t&&t.removeEventListener("pointerdown",this.onPointerDown),window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerCancel)}startDrag(t,e){this.activePointerId=e.pointerId,this.activeItem=t,this.isDragging=!1,this.startX=e.clientX,this.startY=e.clientY,this.cacheItems(),this.dragFromIndex=this.getItems().indexOf(t),this.dragToIndex=this.dragFromIndex,this.currentOverItem=t,this.currentOverIndex=this.dragFromIndex,this.activeItemHeight=this.getVisualElement(t).getBoundingClientRect().height}beginDragging(){!this.isDragging&&null!==this.dragFromIndex&&this.activeItem&&(this.isDragging=!0,this.onDragDrop("start"))}syncActiveVisual(t){if(!this.activeItem)return;const e=this.getVisualElement(this.activeItem);e.style.transform=`translateY(${t.clientY-this.startY}px)`,e.style.position="relative",e.style.pointerEvents="none",e.style.boxShadow="0 4px 8px rgba(0, 0, 0, 0.15)",vt.setZIndex(e,"top")}updateDropTarget(t){if(null===this.dragFromIndex||!this.activeItem)return;const e=this.getItemFromComposedPath(t,!1);if(!e)return this.emitDragLeave(this.currentOverIndex,this.currentOverItem),this.currentOverItem=null,void(this.currentOverIndex=null);const i=this.getItemIndex(e),o=this.getResolvedDropIndex(e,t.clientY);this.currentOverItem!==e?(this.emitDragLeave(this.currentOverIndex,this.currentOverItem),this.currentOverItem=e,this.currentOverIndex=i,this.onDragDrop("enter")):this.currentOverIndex=i,this.dragToIndex=o,this.onDragDrop("over"),this.applyLayoutTransforms()}finishDrag(){var t,e,i;const o=this.dragFromIndex,s=this.dragToIndex,r=this.isDragging&&null!=o&&o!==s,a=null!=o&&null!==(t=this.getItems().at(o))&&void 0!==t?t:null,l=this.currentOverItem;this.isDragging&&null!=o&&a&&this.onDragDrop("drop"),this.resetDragState(),r&&null!=o&&a&&(null===(i=(e=this.entry).onDragDrop)||void 0===i||i.call(e,{status:"end",options:{fromIndex:o,fromItem:a,toIndex:s,toItem:l}}))}resetDragState(){if(this.cachedItems.forEach((t=>{const e=this.cachedItemDraggableMap.get(t);if(!e)return;const{visualElement:i,inlineStyle:o}=e;null==o?i.removeAttribute("style"):i.setAttribute("style",o)})),this.activeItem){const t=this.getVisualElement(this.activeItem);vt.removeZIndex(t,"top")}this.activePointerId=null,this.activeItem=null,this.isDragging=!1,this.dragFromIndex=null,this.dragToIndex=null,this.currentOverItem=null,this.currentOverIndex=null,this.activeItemHeight=0,this.cachedItemDraggableMap=new WeakMap,this.cachedItems=[]}getContainer(){return this.entry.container()}queryItems(){const t=this.getContainer();return t?Array.from(t.querySelectorAll(this.entry.itemSelector)):[]}getItems(){return this.cachedItems.length>0?this.cachedItems:this.queryItems()}getItemIndex(t){return this.getItems().indexOf(t)}getVisualElement(t){const e=this.cachedItemDraggableMap.get(t);return e?e.visualElement:this.resolveVisualElement(t)}resolveVisualElement(t){var e,i;const o=this.entry.visualElementSelector;if(!o)return t;return(null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelector(o))||(null!==(i=t.querySelector(o))&&void 0!==i?i:t)}cacheItems(){this.cachedItemDraggableMap=new WeakMap,this.cachedItems=this.queryItems(),this.cachedItems.forEach((t=>{const e=this.resolveVisualElement(t);this.cachedItemDraggableMap.set(t,{visualElement:e,inlineStyle:e.getAttribute("style")})}))}getItemFromComposedPath(t,e=!1){const i=this.entry.itemSelector,o=this.entry.triggerElementSelector;let s=null,r=!o;for(const e of t.composedPath())if(e instanceof HTMLElement&&(!s&&e.matches(i)&&(s=e),!r&&o&&e.matches(o)&&(r=!0),s&&r))break;return!s||e&&!r?null:s}applyLayoutTransforms(){if(null==this.dragFromIndex||null==this.dragToIndex||0===this.activeItemHeight)return;const t=this.dragFromIndex,e=this.dragToIndex,i=t<e?-this.activeItemHeight:this.activeItemHeight;this.getItems().forEach(((o,s)=>{o!==this.activeItem&&(this.getVisualElement(o).style.transform=(t<e?s>t&&s<=e:s>=e&&s<t)?`translateY(${i}px)`:"")}))}getResolvedDropIndex(t,e){const i=this.getItemIndex(t),o=this.dragFromIndex;if(i<0||null==o)return i;if(i===o)return i;const s=this.getVisualElement(t).getBoundingClientRect(),r=e>s.top+s.height/2;return i>o?r?i:i-1:r?i+1:i}isCurrentPointEvent(t){return null!==this.activePointerId&&this.activePointerId===t.pointerId}hasCrossedDragThreshold(t){return!!this.isDragging||Math.abs(t.clientX-this.startX)+Math.abs(t.clientY-this.startY)>=ue.DRAG_THRESHOLD}emitDrag(){null!==this.dragFromIndex&&this.activeItem&&this.onDragDrop("drag")}emitDragLeave(t,e){null!==t&&e&&this.onDragDrop("leave")}onDragDrop(t){var e,i;null!=this.dragFromIndex&&this.activeItem&&(null===(i=(e=this.entry).onDragDrop)||void 0===i||i.call(e,{status:t,options:{fromIndex:this.dragFromIndex,fromItem:this.activeItem,toIndex:this.dragToIndex,toItem:this.currentOverItem}}))}}ue.DRAG_THRESHOLD=4,be([c("connectedCallback")],ue.prototype,"connectedCallback",null),be([c("disconnectedCallback")],ue.prototype,"disconnectedCallback",null),be([c("componentDidLoad")],ue.prototype,"componentDidLoad",null);var fe=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ge extends n{constructor(){super(...arguments),this.draggableElementSlimmer=ht(ge,ue,[{mapFrom:"rowDraggable",mapTo:"isDraggable"}],[{mapFrom:"watchRowDraggable",mapTo:"watchIsDraggable"}],[{container:this.getDragContainer.bind(this),itemSelector:"vega-table-row",triggerElementSelector:"td.vega-table-draggable-column",visualElementSelector:"tr.vega-table-row",onDragDrop:this.onDragDrop.bind(this)}])}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}watchRowDraggable(){}getDragContainer(){return this.isTemplateRenderMode?this.host.querySelector("vega-table-body"):this.vegaTableBodyRenderer.getTableBodyRef()}onDragDrop(t){this.rowDragDropEventEmitter.emit(t).defaultPrevented||"end"===t.status&&this.onDragEnd(t)}onDragEnd(t){const e=t.options.fromIndex,i=t.options.toIndex;if(this.vegaTableSortController.clearSorter(),this.isTemplateRenderMode){const t=Array.from(this.host.querySelectorAll("vega-table-row"));this.host.querySelector("vega-table-body").insertBefore(t[e],e>i?t[i]:t[i].nextSibling)}else{const t=[...this.vegaTableDataSourceController.getCurrentData()],[o]=t.splice(e,1);t.splice(i,0,o),this.vegaTableDataSourceController.setCurrentData(t)}}}fe([l()],ge.prototype,"rowDraggable",void 0),fe([l()],ge.prototype,"host",void 0),fe([l()],ge.prototype,"vegaTableDataSourceController",void 0),fe([l()],ge.prototype,"isTemplateRenderMode",void 0),fe([l()],ge.prototype,"vegaTableBodyRenderer",void 0),fe([l()],ge.prototype,"vegaTableSortController",void 0),fe([l()],ge.prototype,"rowDragDropEventEmitter",void 0),fe([h()],ge.prototype,"draggableElementSlimmer",void 0),fe([c("connectedCallback")],ge.prototype,"connectedCallback",null),fe([c("disconnectedCallback")],ge.prototype,"disconnectedCallback",null),fe([c("componentDidLoad")],ge.prototype,"componentDidLoad",null),fe([c("watchRowDraggable")],ge.prototype,"watchRowDraggable",null);var we=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const me=class{constructor(t){s(this,t),this.vegaChange=r(this,"vegaChange",7),this.change=r(this,"change",7),this.vegaRowClick=r(this,"vegaRowClick",7),this.rowClick=r(this,"rowClick",7),this.vegaRowExpand=r(this,"vegaRowExpand",7),this.rowExpand=r(this,"rowExpand",7),this.vegaSelectChange=r(this,"vegaSelectChange",7),this.selectChange=r(this,"selectChange",7),this.vegaSelectAllChange=r(this,"vegaSelectAllChange",7),this.selectAllChange=r(this,"selectAllChange",7),this.vegaRowSelect=r(this,"vegaRowSelect",7),this.rowSelect=r(this,"rowSelect",7),this.vegaRowSelectAll=r(this,"vegaRowSelectAll",7),this.rowSelectAll=r(this,"rowSelectAll",7),this.vegaRowDragDrop=r(this,"vegaRowDragDrop",7),this.rowDragDrop=r(this,"rowDragDrop",7),this.globalSlimmers={},this.translationSlimmer=new dt,this.vegaTableRenderModeController=new re,this.vegaTableColumnStructureModelController=new de,this.vegaTableRenderInputController=new he,this.vegaTablePinnedRenderer=new pe,this.vegaTableRenderer=new Ft,this.vegaTableHeaderRenderer=new Pt,this.vegaTableBodyRenderer=new It,this.vegaTableRowRenderer=new oe,this.vegaTableCellRenderer=new Ct,this.vegaTableBodyColSpanController=new Et,this.vegaTablePaginationRenderer=new Bt,this.vegaTableScrollContainerRenderer=new Vt,this.vegaTableRowSelectionController=new Lt,this.vegaTableDataSourceController=new At,this.vegaTablePaginationController=new Xt,this.vegaTableEditableController=new Ut,this.vegaTableSortController=new Zt,this.vegaTableColGroupRenderer=new Qt,this.vegaTableChildrenController=new ee,this.vegaTableRowDraggableController=new ge,this.vegaTableExpandRowController=new Ot,this.pageResizeObserverSlimmer=new st,this.rowSelectionNotifySlimmer=rt(me,"rowSelection","watchRowSelection"),this.expandableRowsNotifySlimmer=rt(me,"expandableRows","watchExpandableRows"),this.hasExpandableRowNotifySlimmer=rt(me,"hasExpandableRow","watchHasExpandableRow"),this.paddingXNotifySlimmer=rt(me,"paddingX","watchPaddingX"),this.rowClickableNotifySlimmer=rt(me,"rowClickable","watchRowClickable"),this.scrollConfigNotifySlimmer=rt(me,"scrollConfig","watchScrollConfig"),this.eventsPrevent=new at([B,_,K],(()=>this.host)),this.changeEventEmitter=lt(me,B),this.selectChangeEventEmitter=lt(me,V),this.selectAllChangeEventEmitter=lt(me,$),this.rowClickEventEmitter=lt(me,F),this.rowExpandEventEmitter=lt(me,G),this.rowDragDropEventEmitter=lt(me,X),this.rowDividerNotifySlimmer=rt(me,"rowDivider","watchRowDivider"),this.columnDividerNotifySlimmer=rt(me,"columnDivider","watchColumnDivider"),this.densityNotifySlimmer=rt(me,"density","watchDensity"),this.isTemplateRenderModeNotifySlimmer=rt(me,"isTemplateRenderMode","watchTemplateRenderMode"),this.currentDataNotifySlimmer=rt(me,"currentData","watchCurrentData"),this.rowDraggableNotifySlimmer=rt(me,"rowDraggable","watchRowDraggable"),this.vegaComponentUsageRuntimeMetricsSlimmer=new b(ae),this.rowSelectEventEmitter=lt(me,H),this.rowSelectAllEventEmitter=lt(me,U),this.selectedRowKeySet=new yt(new Set,(t=>{this.selectedRowKeySet=t})),this.expandedRowKeySet=new yt(new Set,(t=>{this.expandedRowKeySet=t})),this.currentBreakpoint=et(),this.sortersMap=new nt(new Map,(t=>{this.sortersMap=t})),this.currentData=[],this.currentPage=1,this.pageSize=10,this.editingRows=new yt(new Set,(t=>{this.editingRows=t})),this.isSelectedAll=!1,this.expandableRows=[],this.hasExpandableRow=!1,this.columns=[],this.dataSource=[],this.rowSelection=null,this.rowExpandable=!1,this.rowClickable=!1,this.rowDraggable=!1,this.rowDivider=!1,this.columnDivider=!1,this.striped=!0,this.density="default",this.paddingX=["8px","8px"],this.showHeader=!0,this.pagination=null,this.emptyDescription="There is no data to display",this.rowKey="key",this.sortConfig={type:"multiple"},this.showEditError=!1}watchSelectedRowKeySet(){}watchSortersMap(){}watchCurrentData(t,e){}watchCurrentPage(){}watchSelectedAll(){}watchTemplateRenderMode(){}watchColumnStructureModel(){}watchExpandableRows(){}watchHasExpandableRow(){}watchColumns(){}watchGroupColumns(){}watchDataSource(){}watchRowSelection(){}watchRowExpandable(){}watchRowClickable(){}watchRowDraggable(){}watchRowDivider(){}watchColumnDivider(){}watchStriped(){}watchDensity(){}watchPaddingX(){}watchPagination(){}watchScrollConfig(){}async openExpandRow(t){}async closeExpandRow(t){}async closeAllExpandRow(){}async toggleExpandRow(t){}async clearSelection(){}async getSelection(){return v()}async setSelection(t){}async startRowEditMode(t){}async stopRowEditMode(t){}async stopAllRowEditMode(){}async getRowData(t){return v(t)}async getRowsData(){return v()}async getFormRef(t){return v(t)}async addNewRow(t={}){return v(t)}async saveEditRow(t){return v(t)}async saveAllEditRows(){}async getEditingRowsKey(){return v()}async removeRow(t){}render(){return p(t("slot",null)),this.vegaTableRenderer.render()}get host(){return a(this)}static get watchers(){return{selectedRowKeySet:["watchSelectedRowKeySet"],sortersMap:["watchSortersMap"],currentData:["watchCurrentData"],currentPage:["watchCurrentPage"],isSelectedAll:["watchSelectedAll"],isTemplateRenderMode:["watchTemplateRenderMode"],columnStructureModel:["watchColumnStructureModel"],expandableRows:["watchExpandableRows"],hasExpandableRow:["watchHasExpandableRow"],columns:["watchColumns"],groupColumns:["watchGroupColumns"],dataSource:["watchDataSource"],rowSelection:["watchRowSelection"],rowExpandable:["watchRowExpandable"],rowClickable:["watchRowClickable"],rowDraggable:["watchRowDraggable"],rowDivider:["watchRowDivider"],columnDivider:["watchColumnDivider"],striped:["watchStriped"],density:["watchDensity"],paddingX:["watchPaddingX"],pagination:["watchPagination"],scrollConfig:["watchScrollConfig"]}}};we([u()],me.prototype,"globalSlimmers",void 0),we([h()],me.prototype,"translationSlimmer",void 0),we([h()],me.prototype,"vegaTableRenderModeController",void 0),we([h()],me.prototype,"vegaTableColumnStructureModelController",void 0),we([h()],me.prototype,"vegaTableRenderInputController",void 0),we([h()],me.prototype,"vegaTablePinnedRenderer",void 0),we([h()],me.prototype,"vegaTableRenderer",void 0),we([h()],me.prototype,"vegaTableHeaderRenderer",void 0),we([h()],me.prototype,"vegaTableBodyRenderer",void 0),we([h()],me.prototype,"vegaTableRowRenderer",void 0),we([h()],me.prototype,"vegaTableCellRenderer",void 0),we([h()],me.prototype,"vegaTableBodyColSpanController",void 0),we([h()],me.prototype,"vegaTablePaginationRenderer",void 0),we([h()],me.prototype,"vegaTableScrollContainerRenderer",void 0),we([h()],me.prototype,"vegaTableRowSelectionController",void 0),we([h()],me.prototype,"vegaTableDataSourceController",void 0),we([h()],me.prototype,"vegaTablePaginationController",void 0),we([h()],me.prototype,"vegaTableEditableController",void 0),we([h()],me.prototype,"vegaTableSortController",void 0),we([h()],me.prototype,"vegaTableColGroupRenderer",void 0),we([h()],me.prototype,"vegaTableChildrenController",void 0),we([h()],me.prototype,"vegaTableRowDraggableController",void 0),we([h()],me.prototype,"vegaTableExpandRowController",void 0),we([h()],me.prototype,"pageResizeObserverSlimmer",void 0),we([h()],me.prototype,"rowSelectionNotifySlimmer",void 0),we([h()],me.prototype,"expandableRowsNotifySlimmer",void 0),we([h()],me.prototype,"hasExpandableRowNotifySlimmer",void 0),we([h()],me.prototype,"paddingXNotifySlimmer",void 0),we([h()],me.prototype,"rowClickableNotifySlimmer",void 0),we([h()],me.prototype,"scrollConfigNotifySlimmer",void 0),we([h()],me.prototype,"eventsPrevent",void 0),we([h()],me.prototype,"changeEventEmitter",void 0),we([h()],me.prototype,"selectChangeEventEmitter",void 0),we([h()],me.prototype,"selectAllChangeEventEmitter",void 0),we([h()],me.prototype,"rowClickEventEmitter",void 0),we([h()],me.prototype,"rowExpandEventEmitter",void 0),we([h()],me.prototype,"rowDragDropEventEmitter",void 0),we([h()],me.prototype,"rowDividerNotifySlimmer",void 0),we([h()],me.prototype,"columnDividerNotifySlimmer",void 0),we([h()],me.prototype,"densityNotifySlimmer",void 0),we([h()],me.prototype,"isTemplateRenderModeNotifySlimmer",void 0),we([h()],me.prototype,"currentDataNotifySlimmer",void 0),we([h()],me.prototype,"rowDraggableNotifySlimmer",void 0),we([h()],me.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),we([h()],me.prototype,"rowSelectEventEmitter",void 0),we([h()],me.prototype,"rowSelectAllEventEmitter",void 0),me.style=':host{display:block}table{width:100%;border-spacing:0}.vega-table-empty-description{text-align:center;padding:24px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}table.v-table-fixed{table-layout:fixed}.vega-table-scrollable-container{overflow:auto}.vega-table-scrollable-container vega-table-head{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.vega-table-scrollable-container.scrolled vega-table-head.fixed-header,.vega-table-scrollable-container.scrolled ::slotted(vega-table-head.fixed-header){box-shadow:0px 4px 0px rgba(0, 0, 0, 0.1);}.vega-table-scrollable-container.scrolled vega-table-foot.fixed-footer::after,.vega-table-scrollable-container.scrolled ::slotted(vega-table-foot.fixed-footer)::after{content:"";position:absolute;top:0;left:0;width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}vega-form{display:contents}table:not(.show-edit-error) *::part(field-error-message){display:none !important}.vega-table-pagination-container{margin-top:24px}.vega-table-pagination-container.bottom-center{display:flex;justify-content:center}.vega-table-pagination-container.bottom-right{display:flex;justify-content:flex-end}.vega-table-pagination-container.bottom-left{display:flex;justify-content:flex-start}col.v-hidden{display:none;visibility:collapse}@media (min-width: 320px){col.S\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 768px){col.M\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 1024px){col.L\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 1440px){col.XL\\:v-table-column{display:table-column;visibility:visible}}:host(.is-group-table) .vega-table-scrollable-container{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-width:1px;border-style:solid}:host(.is-group-table.density-relaxed) .vega-table-scrollable-container{border-radius:12px}:host(.is-group-table.density-default) .vega-table-scrollable-container{border-radius:12px}:host(.is-group-table.density-compact) .vega-table-scrollable-container{border-radius:4px}:host(.is-pinned-table) table{min-width:max-content}.draggable-col{min-width:16px;width:16px}';var ye=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const xe=class{constructor(t){s(this,t),this.globalSlimmers={},this.childChangeEventPrevent=new at([B],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new b}render(){return Q(t(o,null,t("tbody",null,t("slot",null))),this.host)}get host(){return a(this)}};ye([u()],xe.prototype,"globalSlimmers",void 0),ye([h()],xe.prototype,"childChangeEventPrevent",void 0),ye([h()],xe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),xe.style=":host{display:contents}";const Re=(t,e)=>t&&Z(t)?`v-hidden ${t}:${e}`:"";var Se=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ce extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:t=>{const e=this.host.parentElement;if(e){const i=e.querySelector("vega-table-cell:last-of-type");this.columnDivider=t&&i!==this.host}}},{subStateName:"clickable",parentStateName:"rowClickable"}]})}}Se([l()],Ce.prototype,"host",void 0),Se([l({writable:!0})],Ce.prototype,"density",void 0),Se([l({writable:!0})],Ce.prototype,"columnDivider",void 0),Se([l({writable:!0})],Ce.prototype,"clickable",void 0);var ke=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class je extends pt{constructor(){super({parent:"vega-table-row",subStates:[{subStateName:"checked",parentStateName:"checked"},{subStateName:"expanded",parentStateName:"expanded"},{subStateName:"striped",parentStateName:"striped"},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}}ke([l({writable:!0})],je.prototype,"checked",void 0),ke([l({writable:!0})],je.prototype,"expanded",void 0),ke([l({writable:!0})],je.prototype,"striped",void 0),ke([l({writable:!0})],je.prototype,"rowDivider",void 0);var Ee=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class De extends n{constructor(t){super(),this.observer=null,this.table=null,this.observerSubject=t}componentWillRenderInput(){this.renderInput=this.fetchRenderInput()}connectRenderInputObserver(){this.table=C(this.host,"vega-table"),this.table&&this.registerRenderInputChangeObserver()}disconnectRenderInputObserver(){this.table&&this.observer&&(this.unregisterRenderInputChangeObserver(),this.observer=null,this.table=null)}fetchRenderInput(){return this.table?O.call(E.getSubject(this.table,this.observerSubject),this.host):null}registerRenderInputChangeObserver(){this.observer=new S((()=>!0),(()=>{this.renderInput=this.fetchRenderInput()})),g.register(E.getSubject(this.table,A),this.observer)}unregisterRenderInputChangeObserver(){g.unregister(E.getSubject(this.table,A),this.observer)}}Ee([l()],De.prototype,"host",void 0),Ee([l({writable:!0})],De.prototype,"renderInput",void 0),Ee([c("componentWillRender")],De.prototype,"componentWillRenderInput",null),Ee([c("connectedCallback")],De.prototype,"connectRenderInputObserver",null),Ee([c("disconnectedCallback")],De.prototype,"disconnectRenderInputObserver",null);var Oe=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const Te=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableCellStateController=new Ce,this.vegaTableRowStateSubscriber=new je,this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.vegaTableRenderInputConsumerSlimmer=new De(W),this.currentBreakpoint=et(),this.ellipsisTooltipText="",this.ellipsisTooltipTrigger="none",this.ellipsisShowTooltip=!1,this.getCellOverflowClass=()=>{switch(this.overflow){case"ellipsis":return"vega-table-cell-ellipsis";case"scroll":return"vega-table-cell-scroll"}}}componentDidLoad(){"ellipsis"===this.overflow&&this.ellipsisShowTooltip&&requestAnimationFrame((()=>this.updateEllipsisState()))}render(){var e,i,s,r,a,l;const n=Re(this.breakpoint,"v-table-cell"),d=(()=>{let t;switch(this.textAlign){case"center":t="v-text-center";break;case"left":t="v-text-left";break;case"right":t="v-text-right";break;default:t=""}return t})(),c=this.getCellOverflowClass(),h=[n,d,"vega-table-cell"];return bt.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||h.push("break-word"),(null===(e=this.renderInput)||void 0===e?void 0:e.isRightStartPinned)&&h.push("left-divider"),(null===(i=this.renderInput)||void 0===i?void 0:i.isLeftEndPinned)&&h.push("right-divider"),((null===(s=this.renderInput)||void 0===s?void 0:s.isNoPinnedEnd)||(null===(r=this.renderInput)||void 0===r?void 0:r.isViewEnd))&&h.push("hide-right-border"),Q(t(o,{class:k([`density-${Y.formatCustom(this.density)}`,this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",this.clickable&&"clickable",this.checked&&"checked",this.striped&&"striped",this.expanded&&"expanded"]),"aria-colspan":(null!==(a=this.colSpan)&&void 0!==a?a:0)>1?String(this.colSpan):null},t("td",{class:k(h),part:"cell",colSpan:(null!==(l=this.colSpan)&&void 0!==l?l:0)>1?this.colSpan:null,onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),style:{width:this.width}},"ellipsis"===this.overflow&&this.ellipsisShowTooltip?t("vega-tooltip",{text:this.ellipsisTooltipText,trigger:this.ellipsisTooltipTrigger,maxWidth:300,style:{display:"block",width:"100%",minWidth:"0"}},t("div",{class:c,ref:t=>{this.overflowContentRef=t}},t("slot",{ref:t=>{this.slotRef=t}}))):t("div",{class:c,ref:t=>{this.overflowContentRef=t}},t("slot",{ref:t=>{this.slotRef=t}})))),this.host)}onMouseEnter(){this.updateEllipsisState(),this.getRowCells().forEach((t=>t.classList.add("hovered")))}onMouseLeave(){this.getRowCells().forEach((t=>t.classList.remove("hovered")))}getRowCells(){const t=this.host.parentElement;return t?Array.from(t.querySelectorAll("vega-table-cell")):[]}updateEllipsisState(){if("ellipsis"!==this.overflow||!this.overflowContentRef)return;const t=this.overflowContentRef.scrollWidth>this.overflowContentRef.clientWidth,e=this.getCellText();this.ellipsisShowTooltip?(this.overflowContentRef.removeAttribute("title"),this.ellipsisTooltipText=e,this.ellipsisTooltipTrigger=t?"hover":"none"):t&&e?this.overflowContentRef.setAttribute("title",e):this.overflowContentRef.removeAttribute("title")}getCellText(){var t,e,i;return(this.slotRef&&"function"==typeof this.slotRef.assignedNodes?this.slotRef.assignedNodes({flatten:!0}):[]).map((t=>{var e;return(null===(e=t.textContent)||void 0===e?void 0:e.trim())||""})).filter((t=>t)).join(" ")||(null===(e=null===(t=this.overflowContentRef)||void 0===t?void 0:t.textContent)||void 0===e?void 0:e.trim())||(null===(i=this.host.textContent)||void 0===i?void 0:i.trim())||""}get host(){return a(this)}};Oe([u()],Te.prototype,"globalSlimmers",void 0),Oe([h()],Te.prototype,"vegaTableCellStateController",void 0),Oe([h()],Te.prototype,"vegaTableRowStateSubscriber",void 0),Oe([h()],Te.prototype,"pageResizeObserverSlimmer",void 0),Oe([h()],Te.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Oe([h()],Te.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),Te.style=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}.vega-table-cell{padding:12px;box-sizing:border-box;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-table-cell.break-word{word-break:break-word}td{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;padding:0px;vertical-align:middle}td.v-text-center{text-align:center}td.v-text-left{text-align:left}td.v-text-right{text-align:right}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}.vega-table-cell-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vega-table-cell-scroll{overflow:auto}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}:host(.row-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host(.striped) .vega-table-cell{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.clickable.hovered:not(.checked)) .vega-table-cell{cursor:pointer;background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}:host(.checked) .vega-table-cell{background-color:rgba(var(--v-bg-table-selected-row, 204, 223, 255, 1))}:host(.expanded) .vega-table-cell{border-top-width:1px;border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}:host .vega-table-cell.right-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:2px;border-right-style:solid}:host .vega-table-cell.left-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-left-width:2px;border-left-style:solid}:host .vega-table-cell.hide-right-border{border-right-width:0px}';var Le=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Me extends n{render(){return t("tr",{class:{"vega-table-expanded-row":!0,expanded:this.expanded,checked:this.checked,striped:this.striped},key:`vega-table-expanded-row-${this.rowKey}`,"data-expanded-row-key":this.rowKey},t("td",null),t("td",{colSpan:this.colSpan,key:`${Ot.expandRowSlotNamePrefix}${this.rowKey}`,class:"vega-table-expanded-row-slot-container"},t("div",{class:"expanded-row-slot-inner"},t("slot",null))),t("td",null))}}Le([l()],Me.prototype,"host",void 0),Le([l()],Me.prototype,"rowKey",void 0),Le([l()],Me.prototype,"expanded",void 0),Le([l()],Me.prototype,"checked",void 0),Le([l()],Me.prototype,"colSpan",void 0),Le([l()],Me.prototype,"striped",void 0);var Ae=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ne extends n{connectedCallback(){this.expandObserver=new S(this.isAcceptableTableExpandRowObserver.bind(this),(t=>{t.rowKey===this.rowKey&&(this.expanded=t.expanded)})),g.register(w,this.expandObserver)}disconnectedCallback(){g.unregister(w,this.expandObserver)}isAcceptableTableExpandRowObserver(t){return"VEGA-TABLE"===t.host.tagName?"VEGA-TABLE"===t.host.tagName&&t.host===C(this.host,"vega-table"):"VEGA-TABLE-ROW"===t.host.tagName?C(this.host,"vega-table")===C(t.host,"vega-table"):void 0}}function Ie(t){return"VEGA-TABLE-ROW"===t.host.tagName&&C(this.host,"vega-table")===C(t.host,"vega-table")}function We(t){return"VEGA-TABLE"===t.host.tagName&&t.host===C(this.host,"vega-table")}Ae([l()],Ne.prototype,"host",void 0),Ae([l()],Ne.prototype,"rowKey",void 0),Ae([l({writable:!0})],Ne.prototype,"expanded",void 0),Ae([c("connectedCallback")],Ne.prototype,"connectedCallback",null),Ae([c("disconnectedCallback")],Ne.prototype,"disconnectedCallback",null);var Pe=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ze extends n{connectedCallback(){this.rowSelectionObserver=new S(Ie.bind(this),(t=>{t.rowKey===this.rowKey&&(this.checked=t.checked)})),g.register(m,this.rowSelectionObserver)}disconnectedCallback(){g.unregister(m,this.rowSelectionObserver)}}Pe([l({writable:!0})],ze.prototype,"checked",void 0),Pe([l()],ze.prototype,"host",void 0),Pe([l()],ze.prototype,"rowKey",void 0),Pe([c("connectedCallback")],ze.prototype,"connectedCallback",null),Pe([c("disconnectedCallback")],ze.prototype,"disconnectedCallback",null);var Be=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class _e extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"withMultipleSelection",parentStateName:"rowSelection",callback:t=>{if(t){const{type:e="multiple"}=t;this.withMultipleSelection="multiple"===e}else this.withMultipleSelection=!1}},{subStateName:"withRowDraggable",parentStateName:"rowDraggable"}]})}}Be([l()],_e.prototype,"host",void 0),Be([l({writable:!0})],_e.prototype,"withMultipleSelection",void 0),Be([l({writable:!0})],_e.prototype,"withRowDraggable",void 0),Be([l()],_e.prototype,"vegaTableExpandRowColSpanController",void 0);var Ke=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ve extends n{constructor(){super(...arguments),this.updateColSpan=()=>{this.colSpan=this.getVisibleColumnsNumber()+(this.withMultipleSelection?2:1)+(this.withRowDraggable?1:0)}}componentWillLoad(){this.updateColSpan()}watchCurrentBreakpoint(){this.updateColSpan()}watchWithMultipleSelection(){this.updateColSpan()}watchWithRowDraggable(){this.updateColSpan()}getVisibleColumnsNumber(){const t=C(this.host,"vega-table"),e=et(),i=t.children&&Array.from(t.children).filter((t=>{var e;return!(null===(e=t.getAttribute("slot"))||void 0===e?void 0:e.startsWith("vega-table-expand-row-"))})).length>0?t.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell"):t.shadowRoot.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell");return Array.from(i).filter((t=>!t.breakpoint||"default"!==e&&ut[e]>=ut[t.breakpoint])).reduce(((t,e)=>{var i;const o=null!==(i=e.colSpan)&&void 0!==i?i:1;return t+(o>1?o:1)}),0)}}Ke([l()],Ve.prototype,"host",void 0),Ke([l({writable:!0})],Ve.prototype,"colSpan",void 0),Ke([l()],Ve.prototype,"withMultipleSelection",void 0),Ke([l()],Ve.prototype,"withRowDraggable",void 0),Ke([c("componentWillLoad")],Ve.prototype,"componentWillLoad",null),Ke([c("watchCurrentBreakpoint")],Ve.prototype,"watchCurrentBreakpoint",null),Ke([c("watchWithMultipleSelection")],Ve.prototype,"watchWithMultipleSelection",null),Ke([c("watchWithRowDraggable")],Ve.prototype,"watchWithRowDraggable",null);var $e=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const Fe=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableExpandRowRenderer=new Me,this.vegaTableExpandRowExpandController=new Ne,this.vegaTableExpandRowSelectionController=new ze,this.vegaTableExpandRowStateController=new _e,this.vegaTableExpandRowColSpanController=new Ve,this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.currentBreakpoint=et(),this.expanded=!1,this.checked=!1}watchCurrentBreakpoint(){}watchWithMultipleSelection(){}watchWithRowDraggable(){}render(){return p(t("slot",null)),Q(t(o,null,this.vegaTableExpandRowRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],withMultipleSelection:["watchWithMultipleSelection"],withRowDraggable:["watchWithRowDraggable"]}}};$e([u()],Fe.prototype,"globalSlimmers",void 0),$e([h()],Fe.prototype,"vegaTableExpandRowRenderer",void 0),$e([h()],Fe.prototype,"vegaTableExpandRowExpandController",void 0),$e([h()],Fe.prototype,"vegaTableExpandRowSelectionController",void 0),$e([h()],Fe.prototype,"vegaTableExpandRowStateController",void 0),$e([h()],Fe.prototype,"vegaTableExpandRowColSpanController",void 0),$e([h()],Fe.prototype,"pageResizeObserverSlimmer",void 0),$e([h()],Fe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Fe.style=":host{display:contents}:host .vega-table-expanded-row.striped:not(.checked) td{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.v-hidden){display:none}.vega-table-expanded-row{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}.vega-table-expanded-row:not(.expanded){display:none}.vega-table-expanded-row.expanded td{border-bottom-width:1px;border-top-width:0px;border-right-width:0px;border-left-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1));padding:0px;vertical-align:middle}.vega-table-expanded-row.expanded td:first-of-type{border-left-width:1px;border-bottom-width:1px;border-top-left-radius:12px;border-bottom-left-radius:12px;border-top-left-radius:0px}.vega-table-expanded-row.expanded td:last-of-type{border-right-width:1px;border-bottom-width:1px;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-right-radius:0px}.vega-table-expanded-row.expanded td.vega-table-expanded-row-slot-container{border-top-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}.vega-table-expanded-row.expanded.checked{background-color:rgba(var(--v-bg-table-row-selected-expanded, 229, 239, 255, 1))}:host tr.is-pinned-row td:first-of-type{position:sticky;z-index:1;left:0px}:host tr.is-pinned-row td.vega-table-expanded-row-slot-container div{position:sticky;z-index:1;left:8px}";var Ge=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Xe extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:t=>{this.fixed=t&&t.maxHeight&&!1!==t.fixedFooter}},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}handleDisconnectedCallback(){vt.removeZIndex(this.tableFootRef,"base")}handleTableFootRefChange(t){this.tableFootRef&&vt.removeZIndex(this.tableFootRef,"base"),this.fixed&&vt.setZIndex(t,"base"),this.tableFootRef=t}}Ge([l()],Xe.prototype,"host",void 0),Ge([l({writable:!0})],Xe.prototype,"fixed",void 0),Ge([l({writable:!0})],Xe.prototype,"rowDivider",void 0),Ge([c("disconnectedCallback")],Xe.prototype,"handleDisconnectedCallback",null);var He=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const Ue=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableFootStateController=new Xe,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.childChangeEventPrevent=new at([B],(()=>this.host)),this.fixed=!1,this.rowDivider=!1}render(){return Q(t(o,{class:{"fixed-footer":this.fixed,"row-divider":this.rowDivider},ref:t=>this.vegaTableFootStateController.handleTableFootRefChange(t)},t("tfoot",null,t("slot",null))),this.host)}get host(){return a(this)}};He([u()],Ue.prototype,"globalSlimmers",void 0),He([h()],Ue.prototype,"vegaTableFootStateController",void 0),He([h()],Ue.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),He([h()],Ue.prototype,"childChangeEventPrevent",void 0),Ue.style=':host{display:table-footer-group;position:sticky;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-left-radius:12px;border-bottom-left-radius:12px}:host tfoot{display:contents}:host(.fixed-footer){bottom:0px}:host(.row-divider)::after{content:"";position:absolute;top:0;left:0;width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}:host(.v-hidden){display:none}';var Ye=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class qe extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:t=>{const e=this.host.parentElement;if(e){const i=e.querySelector("vega-table-foot-cell:last-of-type");this.columnDivider=t&&i!==this.host}}}]})}}Ye([l({writable:!0})],qe.prototype,"density",void 0),Ye([l({writable:!0})],qe.prototype,"columnDivider",void 0);var Ze=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Je extends n{render(){var e;return t("td",{class:{"vega-table-cell":!0,"break-word":!bt.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),[Re(this.breakpoint,"v-table-cell")]:!0},colSpan:(null!==(e=this.colSpan)&&void 0!==e?e:0)>1?this.colSpan:null},t("div",{class:k(["vega-table-column",this.textAlign])},t("span",{class:"vega-table-column-label"},t("slot",null))))}}Ze([l()],Je.prototype,"host",void 0),Ze([l()],Je.prototype,"breakpoint",void 0),Ze([l()],Je.prototype,"textAlign",void 0),Ze([l()],Je.prototype,"colSpan",void 0);var Qe=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const ti=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableFootCellStateController=new qe,this.vegaTableFootCellRenderer=new Je,this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.currentBreakpoint=et()}render(){var e;return Q(t(o,{class:{[`density-${Y.formatCustom(this.density)}`]:!0,"column-divider":this.columnDivider},style:{width:this.width},"aria-colspan":(null!==(e=this.colSpan)&&void 0!==e?e:0)>1?String(this.colSpan):null},this.vegaTableFootCellRenderer.render()),this.host)}get host(){return a(this)}};Qe([u()],ti.prototype,"globalSlimmers",void 0),Qe([h()],ti.prototype,"vegaTableFootCellStateController",void 0),Qe([h()],ti.prototype,"vegaTableFootCellRenderer",void 0),Qe([h()],ti.prototype,"pageResizeObserverSlimmer",void 0),Qe([h()],ti.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ti.style=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}td{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle;padding:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){td{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}td.break-word{word-break:break-word}.vega-table-column{display:flex;align-items:center}.vega-table-column.center{justify-content:center;text-align:center}.vega-table-column.right{justify-content:flex-end;text-align:right}.vega-table-column.left{justify-content:flex-start;text-align:left}.vega-table-column .vega-table-column-label{min-width:0px}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}';var ei=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ii extends n{constructor(){super(...arguments),this.renderFooterSelectionCell=()=>{if("multiple"===this.selectionType)return t("td",{class:"vega-table-selection-column"})},this.renderFooterExpandableCell=()=>this.hasExpandableRow&&t("td",{class:"vega-table-expand-action-column"}),this.renderFooterDraggableCell=()=>this.draggable&&t("td",{class:"vega-table-draggable-column"})}render(){return t("tr",null,t("td",{style:{width:this.paddingX[0]}}),this.renderFooterDraggableCell(),this.renderFooterSelectionCell(),t("slot",null),this.renderFooterExpandableCell(),t("td",{style:{width:this.paddingX[1]}}))}}ei([l()],ii.prototype,"host",void 0),ei([l()],ii.prototype,"paddingX",void 0),ei([l()],ii.prototype,"selectionType",void 0),ei([l()],ii.prototype,"hasExpandableRow",void 0),ei([l()],ii.prototype,"draggable",void 0);var oi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class si extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"paddingX",parentStateName:"paddingX"},{subStateName:"selectionType",parentStateName:"rowSelection",callback:t=>{this.updateSelectionType(t)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"draggable",parentStateName:"rowDraggable"}]}),this.updateSelectionType=t=>{if(t){const{type:e}=t;this.selectionType=e}else this.selectionType=null}}}oi([l()],si.prototype,"host",void 0),oi([l({writable:!0})],si.prototype,"selectionType",void 0),oi([l({writable:!0})],si.prototype,"paddingX",void 0),oi([l({writable:!0})],si.prototype,"columnDivider",void 0),oi([l({writable:!0})],si.prototype,"density",void 0),oi([l({writable:!0})],si.prototype,"hasExpandableRow",void 0),oi([l({writable:!0})],si.prototype,"draggable",void 0);var ri=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const ai=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableFootRowStateController=new si,this.vegaTableFootRowRenderer=new ii,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.pageResizeObserverSlimmer=new st,this.currentBreakpoint=et(),this.hasExpandableRow=!1}render(){return p(t("slot",null)),Q(t(o,{class:{"column-divider":this.columnDivider,[`density-${Y.formatCustom(this.density)}`]:!0}},this.vegaTableFootRowRenderer.render()),this.host)}get host(){return a(this)}};ri([u()],ai.prototype,"globalSlimmers",void 0),ri([h()],ai.prototype,"vegaTableFootRowStateController",void 0),ri([h()],ai.prototype,"vegaTableFootRowRenderer",void 0),ri([h()],ai.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ri([h()],ai.prototype,"pageResizeObserverSlimmer",void 0),ai.style=":host{display:contents}td{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));padding:0px;vertical-align:middle}td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-default) td:first-of-type,:host(.density-relaxed) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) td:last-of-type,:host(.density-relaxed) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-compact) td:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) td:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}";var li=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class ni extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:t=>{this.fixed=t&&t.maxHeight&&!1!==t.fixedHeader}}]})}}li([l()],ni.prototype,"host",void 0),li([l({writable:!0})],ni.prototype,"fixed",void 0);var di=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const ci=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableHeadStateController=new ni,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.headCellEventPrevent=new at([B],(()=>this.host)),this.fixed=!1,this.handleTableHeadRefChange=t=>{this.tableHeadRef&&vt.removeZIndex(this.tableHeadRef,"base"),this.fixed&&vt.setZIndex(t,"base"),this.tableHeadRef=t}}connectedCallback(){this.tableHeadRef&&this.fixed&&vt.setZIndex(this.tableHeadRef,"base")}disconnectedCallback(){vt.removeZIndex(this.tableHeadRef,"base")}render(){return Q(t(o,{class:{"fixed-header":this.fixed},ref:t=>this.handleTableHeadRefChange(t)},t("thead",null,t("slot",null))),this.host)}get host(){return a(this)}};di([u()],ci.prototype,"globalSlimmers",void 0),di([h()],ci.prototype,"vegaTableHeadStateController",void 0),di([h()],ci.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),di([h()],ci.prototype,"headCellEventPrevent",void 0),ci.style=":host{display:table-header-group;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-left-radius:12px;border-bottom-left-radius:12px}:host thead{display:contents}:host(.fixed-header){position:sticky;top:0px}";var hi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class vi extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:t=>{const e=this.host.parentElement;if(e){const i=e.querySelector("vega-table-head-cell:last-of-type");this.columnDivider=t&&i!==this.host}}}]})}}hi([l({writable:!0})],vi.prototype,"density",void 0),hi([l({writable:!0})],vi.prototype,"columnDivider",void 0);var pi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class bi extends n{render(){if(!this.sorter)return;const{icon:e,color:i}=bi.SORT_ICON_MAP[this.sortOrder||"default"];return t("span",{class:"vega-table-column-sorter"},t("vega-icon",{color:i,icon:gt.getIconKey(e),size:"size-12"}))}}bi.SORT_ICON_MAP={asc:{icon:"circle-arrow-up",color:"text-link"},desc:{icon:"circle-arrow-down",color:"text-link"},default:{icon:"arrow-up-arrow-down",color:"text-secondary"}},pi([l()],bi.prototype,"sorter",void 0),pi([l()],bi.prototype,"sortOrder",void 0);var ui=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class fi extends n{disconnectedCallback(){const t=C(this.host,"vega-table-head");t&&g.unregister(E.getSubject(t,P),this.observer)}componentWillLoad(){const t=C(this.host,"vega-table-head");t&&(this.hostTable=C(t,"vega-table"),this.isTemplateRenderMode=this.checkIsTemplateRenderMode(),this.observer=new S(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),g.register(E.getSubject(t,P),this.observer))}notifyOtherHeadCellOnClickSort(){const t=C(this.host,"vega-table-head");t&&g.notify(E.getSubject(t,P),{host:this.host})}isAcceptableObserver(t){return t.host!==this.host}observerListener(){var t;this.isTemplateRenderMode&&"single"===(null===(t=this.hostTable.sortConfig)||void 0===t?void 0:t.type)&&(this.sortOrder=void 0)}checkIsTemplateRenderMode(){return Array.from(this.hostTable.children).some((t=>t.tagName.startsWith("VEGA-TABLE-")))}}ui([l()],fi.prototype,"host",void 0),ui([l({writable:!0})],fi.prototype,"sortOrder",void 0),ui([l()],fi.prototype,"sortConfig",void 0),ui([c("disconnectedCallback")],fi.prototype,"disconnectedCallback",null),ui([c("componentWillLoad")],fi.prototype,"componentWillLoad",null);var gi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const wi=class{constructor(t){s(this,t),this.vegaClick=r(this,"vegaClick",7),this.click=r(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=lt(wi,z),this.vegaTableHeadCellStateController=new vi,this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.sortIconRenderer=new bi,this.vegaTableHeadCellSortConfigController=new fi,this.vegaTableRenderInputConsumerSlimmer=new De(I),this.currentBreakpoint=et(),this.handleSort=t=>{this.sortOrder=this.getNextSortOrder(this.sortOrder),this.clickEventEmitter.emit({sortOrder:this.sortOrder},t),this.vegaTableHeadCellSortConfigController.notifyOtherHeadCellOnClickSort()},this.getNextSortOrder=t=>{var e;const i=bt.isEnabled("VEGA_TABLE.REVERSE_SORT_ORDER")?["asc","desc"]:["desc","asc"],o=(null===(e=this.sortConfig)||void 0===e?void 0:e.disableUnsorted)?i:[...i,null];return o[(o.indexOf(t)+1)%o.length]}}render(){var e,i,s,r,a,l,n;const d=this.sorter?{role:"button",onKeyDown:ft(),tabIndex:0,onClick:t=>this.handleSort(t)}:null;return Q(t(o,{class:{[`density-${Y.formatCustom(this.density)}`]:!0,sortable:!!this.sorter,"column-divider":this.columnDivider},style:{width:this.width}},t("th",Object.assign({class:{"vega-table-cell":!0,"break-word":!bt.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),"is-group-cell":null===(e=this.renderInput)||void 0===e?void 0:e.headHasGroupColumn,"hide-right-border":(null===(i=this.renderInput)||void 0===i?void 0:i.isViewEnd)||(null===(s=this.renderInput)||void 0===s?void 0:s.isNoPinnedEnd),"right-divider":null===(r=this.renderInput)||void 0===r?void 0:r.isLeftEndPinned,"left-divider":null===(a=this.renderInput)||void 0===a?void 0:a.isRightStartPinned,[Re(this.breakpoint,"v-table-cell")]:!0}},d,{colSpan:null===(l=this.renderInput)||void 0===l?void 0:l.colSpan,rowSpan:null===(n=this.renderInput)||void 0===n?void 0:n.rowSpan}),t("div",{class:k(["vega-table-column",this.textAlign])},t("span",{class:"vega-table-column-label"},t("slot",null)),this.sortIconRenderer.render()))),this.host)}get host(){return a(this)}};gt.register({"chevron-up":wt,"chevron-down":mt,"arrow-up-arrow-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M489 377c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-55 55V56c0-13.3-10.7-24-24-24s-24 10.7-24 24V398.1l-55-55c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l96 96c9.4 9.4 24.6 9.4 33.9 0l96-96zM137 39c-9.4-9.4-24.6-9.4-33.9 0L7 135c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l55-55V456c0 13.3 10.7 24 24 24s24-10.7 24-24V113.9l55 55c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L137 39z"/></svg>'},"circle-arrow-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM127 281c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l71 71L232 136c0-13.3 10.7-24 24-24s24 10.7 24 24l0 182.1 71-71c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L273 393c-9.4 9.4-24.6 9.4-33.9 0L127 281z"/></svg>'},"circle-arrow-up":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM385 231c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-71-71V376c0 13.3-10.7 24-24 24s-24-10.7-24-24V193.9l-71 71c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 119c9.4-9.4 24.6-9.4 33.9 0L385 231z"/></svg>'}}),gi([u()],wi.prototype,"globalSlimmers",void 0),gi([h()],wi.prototype,"clickEventEmitter",void 0),gi([h()],wi.prototype,"vegaTableHeadCellStateController",void 0),gi([h()],wi.prototype,"pageResizeObserverSlimmer",void 0),gi([h()],wi.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),gi([h()],wi.prototype,"sortIconRenderer",void 0),gi([h()],wi.prototype,"vegaTableHeadCellSortConfigController",void 0),gi([h()],wi.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),wi.style=':host .vega-table-cell.v-hidden{display:none}@media (min-width: 320px){:host .vega-table-cell.S\\:v-table-cell{display:table-cell}}@media (min-width: 768px){:host .vega-table-cell.M\\:v-table-cell{display:table-cell}}@media (min-width: 1024px){:host .vega-table-cell.L\\:v-table-cell{display:table-cell}}@media (min-width: 1440px){:host .vega-table-cell.XL\\:v-table-cell{display:table-cell}}:host{display:contents}:host(.sortable){cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.sortable:hover){background-color:rgba(var(--v-bg-table-row-hover, 241, 248, 251, 1))}th{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle;padding:0px;padding:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}th.break-word{word-break:break-word}.vega-table-column{display:flex;align-items:center}.vega-table-column.center{justify-content:center;text-align:center}.vega-table-column.right{justify-content:flex-end;text-align:right}.vega-table-column.left{justify-content:flex-start;text-align:left}.vega-table-column .vega-table-column-label{min-width:0px}.vega-table-column .vega-table-column-sorter{display:flex;align-items:center;justify-content:center;padding:2px;margin-left:8px;cursor:pointer;outline:none}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}:host(.column-divider) .vega-table-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}:host .vega-table-cell.is-group-cell{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-bottom-width:1px;border-right-style:solid;border-bottom-style:solid}:host .vega-table-cell.hide-right-border{border-right-width:0px}:host .vega-table-cell.bottom-border{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host .vega-table-cell.right-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:2px;border-right-style:solid}:host .vega-table-cell.left-divider{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-left-width:2px;border-left-style:solid}';var mi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class yi extends n{constructor(){super(...arguments),this.renderHeaderSelectionCell=e=>{if("multiple"===this.selectionType)return t("th",{rowSpan:e.startRowSpan,class:{"vega-table-selection-column":!0,hidden:e.isStartHidden}},!this.hideSelectAll&&t("div",{class:"vega-table-checkbox-wrapper"},t("vega-checkbox",{size:"small",disabled:this.isEmptyTable||this.selectAllDisabled,checked:this.checkedAll,onClick:this.handleClick,ref:t=>{D.addUniqueObserverToNode(t,B,this.handleSelectAll)}})))},this.handleSelectAll=t=>{if("vegaChange"===t.eventName){const e=t.detail;q(e)&&e!==this.checkedAll&&g.notify(y,{host:this.host,checked:e})}},this.renderHeaderDraggableCell=e=>this.draggable&&t("th",{rowSpan:e.startRowSpan,class:{"vega-table-draggable-column":!0,hidden:e.isStartHidden}}),this.renderHeaderExpandableCell=e=>this.hasExpandableRow&&t("th",{rowSpan:e.endRowSpan,class:{"vega-table-expand-action-column":!0,hidden:e.isEndHidden}}),this.handleClick=t=>{t.stopPropagation(),O.call(E.getSubject(C(this.host,"vega-table"),M),{host:this.host,checked:!this.checkedAll}).defaultPrevented&&t.preventDefault()}}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}render(){var e,i;const o=this.getRowRenderInput();return t("tr",{class:{"is-group-row":o.headHasGroupColumn,"is-pinned-row":o.headHasPinnedColumn}},t("th",{style:{width:null===(e=this.paddingX)||void 0===e?void 0:e[0]},rowSpan:o.startRowSpan,class:{hidden:o.isStartHidden}}),this.renderHeaderDraggableCell(o),this.renderHeaderSelectionCell(o),t("slot",null),this.renderHeaderExpandableCell(o),t("th",{style:{width:null===(i=this.paddingX)||void 0===i?void 0:i[1]},rowSpan:o.endRowSpan,class:{hidden:o.isEndHidden}}))}getRowRenderInput(){const t={},e=this.renderInput,i=null==e?void 0:e[0],o=null==e?void 0:e[e.length-1];return i&&(t.headHasGroupColumn=i.headHasGroupColumn,t.headHasPinnedColumn=i.headHasPinnedColumn,t.headHasGroupColumn&&(t.startRowSpan="multiple"===this.selectionType&&0===i.level?i.headMaxDepth:i.rowSpan,t.isStartHidden=i.headHasGroupColumn&&("multiple"===this.selectionType&&i.level>0||!i.isViewStart))),o&&o.headHasGroupColumn&&(t.endRowSpan=o.rowSpan,t.isEndHidden=i.headHasGroupColumn&&!o.isViewEnd),t}}mi([l()],yi.prototype,"host",void 0),mi([l()],yi.prototype,"paddingX",void 0),mi([l()],yi.prototype,"selectionType",void 0),mi([l()],yi.prototype,"hideSelectAll",void 0),mi([l()],yi.prototype,"selectAllDisabled",void 0),mi([l()],yi.prototype,"checkedAll",void 0),mi([l()],yi.prototype,"hasExpandableRow",void 0),mi([l()],yi.prototype,"draggable",void 0),mi([l()],yi.prototype,"isEmptyTable",void 0),mi([l()],yi.prototype,"isTemplateRenderMode",void 0),mi([l()],yi.prototype,"renderInput",void 0),mi([c("connectedCallback")],yi.prototype,"connectedCallback",null),mi([c("disconnectedCallback")],yi.prototype,"disconnectedCallback",null),mi([c("componentDidLoad")],yi.prototype,"componentDidLoad",null);var xi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ri extends n{connectedCallback(){this.initRowSelectionAllObserver()}disconnectedCallback(){g.unregister(y,this.rowSelectionAllObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new S(We.bind({host:this.host}),(t=>{this.checkedAll=t.noneChecked||!1!==t.checked?t.checked:null})),g.register(y,this.rowSelectionAllObserver)}}xi([l()],Ri.prototype,"host",void 0),xi([l({writable:!0})],Ri.prototype,"checkedAll",void 0),xi([c("connectedCallback")],Ri.prototype,"connectedCallback",null),xi([c("disconnectedCallback")],Ri.prototype,"disconnectedCallback",null);var Si=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ci extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"paddingX",parentStateName:"paddingX",callback:t=>{const e=C(this.host,"vega-table");0!==e.dataSource.length&&0!==e.columns.length||(this.paddingX=t)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:t=>{this.updateSelectionType(t)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"isTemplateRenderMode",parentStateName:"isTemplateRenderMode"},{subStateName:"isEmptyTable",parentStateName:"currentData",callback:t=>{this.isEmptyTable=0===t.length}},{subStateName:"draggable",parentStateName:"rowDraggable"}]}),this.updateSelectionType=t=>{if(t){const{type:e="multiple"}=t;this.selectionType=e}else this.selectionType=null}}}Si([l()],Ci.prototype,"host",void 0),Si([l({writable:!0})],Ci.prototype,"hasExpandableRow",void 0),Si([l({writable:!0})],Ci.prototype,"selectionType",void 0),Si([l({writable:!0})],Ci.prototype,"paddingX",void 0),Si([l({writable:!0})],Ci.prototype,"columnDivider",void 0),Si([l({writable:!0})],Ci.prototype,"density",void 0),Si([l({writable:!0})],Ci.prototype,"isTemplateRenderMode",void 0),Si([l({writable:!0})],Ci.prototype,"isEmptyTable",void 0),Si([l({writable:!0})],Ci.prototype,"draggable",void 0);var ki=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const ji=class{constructor(t){s(this,t),this.globalSlimmers={},this.vegaTableHeadRowStateController=new Ci,this.vegaTableHeadRowRenderer=new yi,this.vegaTableHeadRowController=new Ri,this.headCellEventPrevent=new at([z],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.vegaTableRenderInputConsumerSlimmer=new De(N),this.currentBreakpoint=et(),this.hasExpandableRow=!1}render(){return p(t("slot",null)),Q(t(o,{class:{"column-divider":this.columnDivider,[`density-${Y.formatCustom(this.density)}`]:!0}},this.vegaTableHeadRowRenderer.render()),this.host)}get host(){return a(this)}};ki([u()],ji.prototype,"globalSlimmers",void 0),ki([h()],ji.prototype,"vegaTableHeadRowStateController",void 0),ki([h()],ji.prototype,"vegaTableHeadRowRenderer",void 0),ki([h()],ji.prototype,"vegaTableHeadRowController",void 0),ki([h()],ji.prototype,"headCellEventPrevent",void 0),ki([h()],ji.prototype,"pageResizeObserverSlimmer",void 0),ki([h()],ji.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ki([h()],ji.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),ji.style=":host{display:table-row}:host tr{display:contents}th{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));padding:0px;vertical-align:middle}th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.column-divider) ::slotted(vega-table-head-cell:not(:last-of-type)){border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}:host(.density-default) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-compact) th:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) th:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-relaxed) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}:host tr.is-group-row th{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host tr.is-group-row th.hidden{display:none}:host tr.is-group-row th.vega-table-selection-column{border-right-width:1px;border-right-style:solid}:host tr.is-group-row th:first-of-type{border-top-left-radius:0px;border-bottom-left-radius:0px}:host tr.is-group-row th:last-of-type{border-top-right-radius:0px;border-bottom-right-radius:0px}:host tr.is-pinned-row th{position:sticky;z-index:1}:host tr.is-pinned-row th:first-of-type{left:0px}:host tr.is-pinned-row th.vega-table-selection-column{left:8px}:host tr.is-pinned-row th.vega-table-expand-action-column{right:8px}:host tr.is-pinned-row th:last-of-type{right:0px}";var Ei=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Di extends n{constructor(){super(...arguments),this.renderDragIcon=()=>this.draggable&&t("td",{class:"vega-table-draggable-column"},t("vega-flex",{alignItems:"center"},t("vega-icon",{icon:gt.getIconKey("grip-dots-vertical"),color:"text-link"}))),this.renderRowSelection=()=>{if("multiple"===this.selectionType)return t("td",{class:"vega-table-selection-column"},t("div",{class:"vega-table-checkbox-wrapper"},t("vega-checkbox",{size:"small",checked:this.checked,onClick:this.handleClick,ref:t=>{D.addUniqueObserverToNode(t,B,this.onRowSelectionChange)}})))},this.renderExpandIcon=()=>(this.expandable||this.hasExpandableRow)&&t("td",{class:"vega-table-expand-action-column"},t("div",{class:"vega-table-expand-icon-wrapper"},this.expandable&&t("vega-icon",{icon:gt.getIconKey("chevron-down"),color:"text-link",onClick:this.onExpandIconClick}))),this.onRowClick=()=>{this.vegaTableRowClickController.handleRowClick()},this.onRowSelectionChange=t=>{"vegaChange"===t.eventName&&this.vegaTableRowSelectionController.handleRowSelect(t.detail)},this.handleClick=t=>{t.stopPropagation(),O.call(E.getSubject(this.parentTableRef,L),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented&&t.preventDefault()},this.onExpandIconClick=async t=>{t.stopPropagation();const e=this.expandEventEmitter.emit({expanded:!this.expanded,rowKey:this.rowKey});e&&!e.defaultPrevented&&this.vegaTableRowExpandController.handleExpandIconClick()}}connectedCallback(){this.setParentTableRef()}getParentTableRef(){return this.parentTableRef}render(){var e,o;return t(i,null,this.renderExpandRowSpace(this.rowKey),t("tr",{class:{"vega-table-row":!0,checked:this.checked,clickable:this.clickable,"current-clicked-row":this.clicked,"expand-row":this.expanded},onClick:this.clickable?this.onRowClick:null},t("td",{style:{width:null===(e=this.paddingX)||void 0===e?void 0:e[0]}}),this.renderDragIcon(),this.renderRowSelection(),t("slot",null),this.renderExpandIcon(),t("td",{style:{width:null===(o=this.paddingX)||void 0===o?void 0:o[1]}})))}renderExpandRowSpace(e){return this.expandable&&t("tr",{key:`vega-table-expand-row-space-${e}`,class:"expand-row-space"})}setParentTableRef(){this.parentTableRef=C(this.host,"vega-table")}}gt.register({"chevron-down":mt,"grip-dots-vertical":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M32 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm0 160a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM64 416A32 32 0 1 0 0 416a32 32 0 1 0 64 0zm96-288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm32 128a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM160 448a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"/></svg>'}}),Ei([l()],Di.prototype,"host",void 0),Ei([l()],Di.prototype,"rowKey",void 0),Ei([l()],Di.prototype,"checked",void 0),Ei([l()],Di.prototype,"clickable",void 0),Ei([l()],Di.prototype,"clicked",void 0),Ei([l()],Di.prototype,"expanded",void 0),Ei([l()],Di.prototype,"paddingX",void 0),Ei([l()],Di.prototype,"expandable",void 0),Ei([l()],Di.prototype,"hasExpandableRow",void 0),Ei([l()],Di.prototype,"vegaClick",void 0),Ei([l()],Di.prototype,"selectionType",void 0),Ei([l()],Di.prototype,"draggable",void 0),Ei([l()],Di.prototype,"vegaTableRowSelectionController",void 0),Ei([l()],Di.prototype,"vegaTableRowExpandController",void 0),Ei([l()],Di.prototype,"vegaTableRowClickController",void 0),Ei([l()],Di.prototype,"expandEventEmitter",void 0),Ei([c("connectedCallback")],Di.prototype,"connectedCallback",null);var Oi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ti extends n{constructor(){super(...arguments),this.handleRowSelect=t=>{this.checked=t,g.notify(m,{host:this.host,checked:t,rowKey:this.rowKey})}}connectedCallback(){this.initRowSelectionObserver()}disconnectedCallback(){g.unregister(y,this.rowSelectionAllObserver),g.unregister(m,this.rowSelectionObserver)}setChecked(t){this.checked=t}initRowSelectionObserver(){this.rowSelectionAllObserver=new S(We.bind(this),(t=>{(t.checked||!1===t.checked&&t.noneChecked)&&(this.checked=t.checked)})),g.register(y,this.rowSelectionAllObserver),this.rowSelectionObserver=new S(We.bind(this),(t=>{t.rowKey===this.rowKey&&(this.checked=t.checked)})),g.register(m,this.rowSelectionObserver)}}Oi([l()],Ti.prototype,"host",void 0),Oi([l()],Ti.prototype,"selectionType",void 0),Oi([l()],Ti.prototype,"rowKey",void 0),Oi([l({writable:!0})],Ti.prototype,"checked",void 0),Oi([c("connectedCallback")],Ti.prototype,"connectedCallback",null),Oi([c("disconnectedCallback")],Ti.prototype,"disconnectedCallback",null);var Li=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Mi extends n{connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){g.unregister(w,this.rowExpandObserver)}handleExpandIconClick(){O.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),T),{host:this.host,rowKey:this.rowKey,expanded:!this.expanded}).defaultPrevented||(this.expanded=!this.expanded,g.notify(w,{host:this.host,rowKey:this.rowKey,expanded:this.expanded}))}initRowExpandObserver(){this.rowExpandObserver=new S(We.bind({host:this.host}),(t=>{t.rowKey===this.rowKey&&(this.expanded=t.expanded)})),g.register(w,this.rowExpandObserver)}}Li([l()],Mi.prototype,"host",void 0),Li([l()],Mi.prototype,"rowKey",void 0),Li([l()],Mi.prototype,"expandable",void 0),Li([l({writable:!0})],Mi.prototype,"expanded",void 0),Li([l()],Mi.prototype,"vegaTableRowRenderer",void 0),Li([c("connectedCallback")],Mi.prototype,"connectedCallback",null),Li([c("disconnectedCallback")],Mi.prototype,"disconnectedCallback",null);var Ai=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Ni extends n{connectedCallback(){this.initRowClickObserver()}disconnectedCallback(){g.unregister(x,this.rowClickObserver)}handleRowClick(){O.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),L),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented||(g.notify(x,{host:this.host,rowKey:this.rowKey}),this.clickEventEmitter.emit({rowKey:this.rowKey}))}initRowClickObserver(){this.rowClickObserver=new S(Ie.bind(this),(t=>{this.clicked=t.host===this.host,"single"===this.selectionType&&this.vegaTableRowSelectionController.setChecked(t.host===this.host&&!this.checked)})),g.register(x,this.rowClickObserver)}}Ai([l()],Ni.prototype,"host",void 0),Ai([l()],Ni.prototype,"rowKey",void 0),Ai([l({writable:!0})],Ni.prototype,"clicked",void 0),Ai([l()],Ni.prototype,"checked",void 0),Ai([l()],Ni.prototype,"selectionType",void 0),Ai([l()],Ni.prototype,"vegaClick",void 0),Ai([l()],Ni.prototype,"vegaTableRowSelectionController",void 0),Ai([l()],Ni.prototype,"clickEventEmitter",void 0),Ai([l()],Ni.prototype,"vegaTableRowRenderer",void 0),Ai([c("connectedCallback")],Ni.prototype,"connectedCallback",null),Ai([c("disconnectedCallback")],Ni.prototype,"disconnectedCallback",null);var Ii=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class Wi extends pt{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"expandableRows",callback:t=>{this.expandable=t.includes(this.rowKey)}},{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"clickable",parentStateName:"rowClickable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:t=>{const e=C(this.host,"vega-table");0!==e.dataSource.length&&0!==e.columns.length||(this.paddingX=t)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:t=>{if(t){const{type:e="multiple"}=t;this.selectionType=e}else this.selectionType=null}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"draggable",parentStateName:"rowDraggable"}]})}watchSelectionType(){this.updateClickable()}handleComponentWillLoad(){this.updateClickable()}updateClickable(){this.selectionType&&(this.clickable="single"===this.selectionType||this.clickable)}}Ii([l()],Wi.prototype,"host",void 0),Ii([l({writable:!0})],Wi.prototype,"expandable",void 0),Ii([l({writable:!0})],Wi.prototype,"hasExpandableRow",void 0),Ii([l({writable:!0})],Wi.prototype,"clickable",void 0),Ii([l({writable:!0})],Wi.prototype,"paddingX",void 0),Ii([l({writable:!0})],Wi.prototype,"selectionType",void 0),Ii([l({writable:!0})],Wi.prototype,"columnDivider",void 0),Ii([l({writable:!0})],Wi.prototype,"density",void 0),Ii([l({writable:!0})],Wi.prototype,"draggable",void 0),Ii([l()],Wi.prototype,"rowKey",void 0),Ii([c("watchSelectionType")],Wi.prototype,"watchSelectionType",null),Ii([c("componentWillLoad")],Wi.prototype,"handleComponentWillLoad",null);var Pi=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const zi=class{constructor(t){s(this,t),this.vegaClick=r(this,"vegaClick",7),this.click=r(this,"click",7),this.vegaExpand=r(this,"vegaExpand",7),this.expand=r(this,"expand",7),this.globalSlimmers={},this.vegaTableRowRenderer=new Di,this.vegaTableRowSelectionController=new Ti,this.vegaTableRowExpandController=new Mi,this.vegaTableRowClickController=new Ni,this.vegaTableRowStateController=new Wi,this.clickEventEmitter=lt(zi,z),this.expandEventEmitter=lt(zi,K),this.checkboxValueChangeEventPrevent=new at([z],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new st,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.checkedNotifySlimmer=rt(zi,"checked","watchChecked"),this.expandedNotifySlimmer=rt(zi,"expanded","watchExpanded"),this.stripedNotifySlimmer=rt(zi,"striped","watchStriped"),this.rowDividerNotifySlimmer=rt(zi,"rowDivider","watchRowDivider"),this.currentBreakpoint=et(),this.hasExpandableRow=!1,this.draggable=!1}watchSelectionType(){}watchChecked(){}watchExpanded(){}watchStriped(){}watchRowDivider(){}render(){return p(t("slot",null)),Q(t(o,{class:{"row-divider":this.rowDivider,"column-divider":this.columnDivider,striped:this.striped,[`density-${Y.formatCustom(this.density)}`]:!0}},this.vegaTableRowRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{selectionType:["watchSelectionType"],checked:["watchChecked"],expanded:["watchExpanded"],striped:["watchStriped"],rowDivider:["watchRowDivider"]}}};Pi([u()],zi.prototype,"globalSlimmers",void 0),Pi([h()],zi.prototype,"vegaTableRowRenderer",void 0),Pi([h()],zi.prototype,"vegaTableRowSelectionController",void 0),Pi([h()],zi.prototype,"vegaTableRowExpandController",void 0),Pi([h()],zi.prototype,"vegaTableRowClickController",void 0),Pi([h()],zi.prototype,"vegaTableRowStateController",void 0),Pi([h()],zi.prototype,"clickEventEmitter",void 0),Pi([h()],zi.prototype,"expandEventEmitter",void 0),Pi([h()],zi.prototype,"checkboxValueChangeEventPrevent",void 0),Pi([h()],zi.prototype,"pageResizeObserverSlimmer",void 0),Pi([h()],zi.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Pi([h()],zi.prototype,"checkedNotifySlimmer",void 0),Pi([h()],zi.prototype,"expandedNotifySlimmer",void 0),Pi([h()],zi.prototype,"stripedNotifySlimmer",void 0),Pi([h()],zi.prototype,"rowDividerNotifySlimmer",void 0),zi.style=":host{display:contents}:host(.v-hidden){display:none}td{padding:0px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));vertical-align:middle}td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.striped) .vega-table-row:not(.checked):not(.clickable:hover) td{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.checked td{background-color:rgba(var(--v-bg-table-selected-row, 204, 223, 255, 1))}:not(.checked).clickable:hover{cursor:pointer}:not(.checked).clickable:hover td{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper vega-icon{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;cursor:pointer}.vega-table-row.expand-row .vega-table-expand-icon-wrapper vega-icon{transform:rotate(180deg)}:host tr.expand-row td{border-top-width:1px;border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}:host tr.expand-row td:first-of-type{border-left-width:1px;border-top-width:1px;border-bottom-left-radius:0px}:host tr.expand-row td:last-of-type{border-right-width:1px;border-top-width:1px;border-bottom-right-radius:0px}tr.expand-row-space{display:block;padding-top:8px}:host(.row-divider:not(:last-of-type)) td{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host(.row-divider:not(:last-of-type)) td:first-of-type,:host(.row-divider:not(:last-of-type)) td:last-of-type{border-radius:0px}:host(.density-default) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-default) tr.expand-row-space{display:block;padding-top:8px}:host(.density-compact) td:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) td:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-compact) tr.expand-row-space{display:block;padding-top:4px}:host(.density-relaxed) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-relaxed) tr.expand-row-space{display:block;padding-top:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}.vega-table-draggable-column{width:16px;min-width:16px;cursor:move}";export{me as vega_table,xe as vega_table_body,Te as vega_table_cell,Fe as vega_table_expand_row,Ue as vega_table_foot,ti as vega_table_foot_cell,ai as vega_table_foot_row,ci as vega_table_head,wi as vega_table_head_cell,ji as vega_table_head_row,zi as vega_table_row}
|