@globalpayments/vega 2.98.0 → 2.99.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/{action-color-accessibility-validator-24498816.js → action-color-accessibility-validator-b8a9ef0f.js} +2 -2
- package/dist/cjs/{app-globals-b3f05631.js → app-globals-a306dce6.js} +10 -10
- package/dist/cjs/{code-block-d78c2b2c.js → code-block-ea1f5eb3.js} +43 -6
- package/dist/cjs/{component-global-style-slimmer-93c5fb50.js → component-global-style-slimmer-ba588eb4.js} +1 -1
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-beb00fea.js → component-value-history-controller-slimmer.abstract-7071b064.js} +24 -5
- package/dist/cjs/{content-state-78a620a9.js → content-state-8d07d530.js} +60 -8
- package/dist/cjs/{dark-mode-style-controller-32d4054a.js → dark-mode-style-controller-f3da3342.js} +2 -2
- package/dist/cjs/{date-required-rule-5250f26d.js → date-required-rule-c0c498ad.js} +1 -1
- package/dist/cjs/{design-token-74674ee7.js → design-token-58bf7fe8.js} +3 -3
- package/dist/cjs/{element-appender-slimmer-597e9e48.js → element-appender-slimmer-a0269315.js} +2 -2
- package/dist/cjs/{form-field-controller-slimmer-a743be34.js → form-field-controller-slimmer-f73f200e.js} +2 -2
- package/dist/cjs/{image-annotation-action-85c4bd83.js → image-annotation-action-2a28038e.js} +3 -3
- package/dist/cjs/{image-extension-260fa69c.js → image-extension-9659708b.js} +2 -2
- package/dist/cjs/{index-592b4052.js → index-5d1adcd1.js} +86 -0
- package/dist/cjs/index.cjs.js +19 -19
- package/dist/cjs/{inject-keyboard-manager-6a6f5c9f.js → inject-keyboard-manager-4fa45f9c.js} +1 -1
- package/dist/cjs/{internal-calendar-period-factory-dfcdd3f6.js → internal-calendar-period-factory-6196bc80.js} +1 -1
- package/dist/cjs/{internal-translation-controller-1dac2df8.js → internal-translation-controller-51f7f865.js} +2 -0
- package/dist/cjs/{keyboard-manager-c56033b1.js → keyboard-manager-482fe257.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-7043a106.js → keyboard-manager-slimmer-a19430dd.js} +1 -1
- package/dist/cjs/{link-extension-220ff6a9.js → link-extension-11340e1c.js} +26 -7
- package/dist/cjs/loader.cjs.js +13 -13
- package/dist/cjs/{month-view-generator-7b704a80.js → month-view-generator-1a534451.js} +1 -1
- package/dist/cjs/{public-rules-5657bce4.js → public-rules-6c77b545.js} +9 -9
- package/dist/cjs/{range-c5afd53a.js → range-22ddd452.js} +1 -1
- package/dist/cjs/{responsive-format-facade-493d1763.js → responsive-format-facade-74e6d791.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-385c1b61.js → rich-text-editor-required-rule-09d1093a.js} +1 -1
- package/dist/cjs/{split-cell-operation-873d5db7.js → split-cell-operation-11bfb305.js} +14 -4
- package/dist/cjs/{state-border-formatter-711c7aaa.js → state-border-formatter-bf4f9f1c.js} +1 -1
- package/dist/cjs/{string-format-strategy.abstract-b61bdcbd.js → string-format-strategy.abstract-bf37b14c.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-ef65cca7.js → string-input-formatter-slimmer-ffeb18a6.js} +1 -1
- package/dist/cjs/{string-mask-strategy-ad3fa0ac.js → string-mask-strategy-7f394726.js} +2 -2
- package/dist/cjs/{style-formatter-8f711cb0.js → style-formatter-4ac63910.js} +2 -2
- package/dist/cjs/{time-required-rule-87417359.js → time-required-rule-e2a50003.js} +1 -1
- package/dist/cjs/{token-extension-78b5a026.js → token-extension-4686cb3b.js} +2920 -157
- package/dist/cjs/{translation-slimmer-77c7f37d.js → translation-slimmer-e4997f8f.js} +1 -1
- package/dist/cjs/{type-guard-a57ef3ac.js → type-guard-b8d7bb3f.js} +1 -1
- package/dist/cjs/{valid-credit-card-number-rule-4c0a3040.js → valid-credit-card-number-rule-f5a6f009.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +6 -6
- package/dist/cjs/vega-app-footer.cjs.entry.js +2 -2
- package/dist/cjs/vega-app-header-button.cjs.entry.js +5 -5
- package/dist/cjs/vega-box.cjs.entry.js +7 -7
- package/dist/cjs/vega-brand-logo.cjs.entry.js +2 -2
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/vega-button-circle.cjs.entry.js +6 -6
- package/dist/cjs/vega-button-link.cjs.entry.js +1 -1
- package/dist/cjs/vega-button.cjs.entry.js +4 -4
- package/dist/cjs/vega-calendar_5.cjs.entry.js +21 -10
- package/dist/cjs/vega-card.cjs.entry.js +5 -5
- package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-chip.cjs.entry.js +5 -5
- package/dist/cjs/vega-code-block.cjs.entry.js +11 -11
- package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +4 -4
- package/dist/cjs/vega-color-swatch.cjs.entry.js +2 -2
- package/dist/cjs/vega-combo-box.cjs.entry.js +9 -9
- package/dist/cjs/vega-counter-badge.cjs.entry.js +2 -2
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +14 -14
- package/dist/cjs/vega-dialog_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-divider.cjs.entry.js +5 -5
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +23 -14
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
- package/dist/cjs/vega-file-uploader.cjs.entry.js +4 -4
- package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
- package/dist/cjs/vega-flex.cjs.entry.js +6 -6
- package/dist/cjs/vega-font.cjs.entry.js +5 -5
- package/dist/cjs/vega-form.cjs.entry.js +2 -2
- package/dist/cjs/vega-grid.cjs.entry.js +5 -5
- package/dist/cjs/vega-icon.cjs.entry.js +6 -6
- package/dist/cjs/vega-image-uploader.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-numeric.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-passcode.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-range.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-select.cjs.entry.js +6 -6
- package/dist/cjs/vega-input.cjs.entry.js +7 -7
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +10 -10
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +4 -4
- package/dist/cjs/vega-popover_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-radio_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +39 -11
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +79 -22
- package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +1 -1
- package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +5 -5
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +10 -10
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-signature-capture.cjs.entry.js +8 -8
- package/dist/cjs/vega-stepper.cjs.entry.js +3 -3
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +21 -8
- package/dist/cjs/vega-table_11.cjs.entry.js +81 -45
- package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -6
- package/dist/cjs/vega.cjs.js +13 -13
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +5 -2
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +9 -1
- package/dist/collection/components/vega-counter-badge/vega-counter-badge.js +2 -2
- package/dist/collection/components/vega-dropdown/vega-dropdown-group/slimmers/renderers/vega-dropdown-group-renderer.js +6 -4
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +10 -2
- package/dist/collection/components/vega-field-label/vega-field-label.css +1 -0
- package/dist/collection/components/vega-rich-text-editor/constants/constant.js +16 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-default-styles.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy.abstract.js +5 -2
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.js +36 -2
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.js +20 -3
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/block-boundary-registry.js +34 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/action-handler-strategies/insert-function-block-strategy.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/constants.js +8 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/function-block.js +14 -3
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-containing-function-block-strategy.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-function-block-strategy.js +9 -5
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-function-content-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-logic-control-block-strategy.js +4 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-block-renderer.js +5 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/logic-control-block-renderer.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/utils.js +36 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-extension.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/action-handler-strategies/image-replace-src-strategy.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/actions/image-replace-src-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/paste-image-parser.js +295 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/pending-image-registry.js +116 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.js +13 -4
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-extension.js +70 -7
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/default-paste-strategy.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/paste-processing-strategy.abstract.js +55 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/paste-strategy-selector.js +59 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/word-paste-strategy.js +416 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-code-block-transformer.js +106 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-image-transformer.js +198 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-list-transformer.js +591 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-paragraph-transformer.js +112 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-table-transformer.js +551 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-transformer.js +7 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +10 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/span-to-token-node-strategy.js +4 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +44 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.js +7 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +18 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +21 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.js +7 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-source-view-renderer.js +5 -2
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.js +14 -7
- package/dist/collection/components/vega-tab-group/vega-tab-group.css +6 -0
- package/dist/collection/components/vega-tab-group/vega-tab-group.js +5 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-body-col-span-controller.js +31 -1
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-body-col-span-resolver.js +18 -11
- package/dist/collection/helpers/translation/locales/en.js +2 -0
- package/dist/collection/utils/sanitize/index.js +3 -2
- package/dist/collection/utils/sanitize/strategies/index.js +1 -0
- package/dist/collection/utils/sanitize/strategies/label-sanitize-strategy.js +14 -0
- package/dist/collection/utils/sanitize/strategies/plain-text-sanitize-strategy.js +70 -0
- package/dist/esm/{action-color-accessibility-validator-ce55cb07.js → action-color-accessibility-validator-08877515.js} +2 -2
- package/dist/esm/{app-globals-95c7110a.js → app-globals-c59364c2.js} +10 -10
- package/dist/esm/{code-block-9c513169.js → code-block-e6443949.js} +39 -7
- package/dist/esm/{component-global-style-slimmer-ac703085.js → component-global-style-slimmer-7d60a04a.js} +1 -1
- package/dist/esm/{component-value-history-controller-slimmer.abstract-9cef2a2a.js → component-value-history-controller-slimmer.abstract-ee393213.js} +24 -5
- package/dist/esm/{content-state-25c81c08.js → content-state-43cdacff.js} +60 -9
- package/dist/esm/{dark-mode-style-controller-ca5afd2d.js → dark-mode-style-controller-352f15ff.js} +2 -2
- package/dist/esm/{date-required-rule-85334d0c.js → date-required-rule-b5b67498.js} +1 -1
- package/dist/esm/{design-token-10ff79b5.js → design-token-8319bb59.js} +3 -3
- package/dist/esm/{element-appender-slimmer-8a06ecdd.js → element-appender-slimmer-c81d1fe3.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-68fc5380.js → form-field-controller-slimmer-511b7ac5.js} +2 -2
- package/dist/esm/{image-annotation-action-d7f2aecc.js → image-annotation-action-d7cb80aa.js} +3 -3
- package/dist/esm/{image-extension-fbd1ed6e.js → image-extension-9b8abd0d.js} +2 -2
- package/dist/esm/{index-3b327f29.js → index-35451d12.js} +86 -1
- package/dist/esm/index.js +19 -19
- package/dist/esm/{inject-keyboard-manager-ea1aad5b.js → inject-keyboard-manager-dd368d56.js} +1 -1
- package/dist/esm/{internal-calendar-period-factory-7b294fb6.js → internal-calendar-period-factory-d58f35c6.js} +1 -1
- package/dist/esm/{internal-translation-controller-fac22598.js → internal-translation-controller-b33430c6.js} +2 -0
- package/dist/esm/{keyboard-manager-50da85d7.js → keyboard-manager-b4a0d97d.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-1f7c8bfb.js → keyboard-manager-slimmer-0517fc70.js} +1 -1
- package/dist/esm/{link-extension-e8ee103e.js → link-extension-230bae8d.js} +26 -7
- package/dist/esm/loader.js +13 -13
- package/dist/esm/{month-view-generator-a1a9a4ec.js → month-view-generator-f470caac.js} +1 -1
- package/dist/esm/{public-rules-49de79c7.js → public-rules-28ef32d3.js} +9 -9
- package/dist/esm/{range-b678c693.js → range-efad2578.js} +1 -1
- package/dist/esm/{responsive-format-facade-f19b601c.js → responsive-format-facade-dec87e46.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-578e0958.js → rich-text-editor-required-rule-a697e5bd.js} +1 -1
- package/dist/esm/{split-cell-operation-1c8e7585.js → split-cell-operation-89b91a38.js} +14 -4
- package/dist/esm/{state-border-formatter-bfda33aa.js → state-border-formatter-1e900a2f.js} +1 -1
- package/dist/esm/{string-format-strategy.abstract-1f4ff1b3.js → string-format-strategy.abstract-d0ce3f65.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-0006a107.js → string-input-formatter-slimmer-6546cfc7.js} +1 -1
- package/dist/esm/{string-mask-strategy-bbbcdbef.js → string-mask-strategy-dd13ae21.js} +2 -2
- package/dist/esm/{style-formatter-e9adc8f4.js → style-formatter-057d7120.js} +2 -2
- package/dist/esm/{time-required-rule-1ce2d0a0.js → time-required-rule-73753a54.js} +1 -1
- package/dist/esm/{token-extension-f2d009e3.js → token-extension-74a0eeb1.js} +2918 -155
- package/dist/esm/{translation-slimmer-ee0f0e76.js → translation-slimmer-ef970ffc.js} +1 -1
- package/dist/esm/{type-guard-f2624334.js → type-guard-6fc96870.js} +1 -1
- package/dist/esm/{valid-credit-card-number-rule-60212b1d.js → valid-credit-card-number-rule-b54a31e7.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +6 -6
- package/dist/esm/vega-app-footer.entry.js +2 -2
- package/dist/esm/vega-app-header-button.entry.js +5 -5
- package/dist/esm/vega-box.entry.js +7 -7
- package/dist/esm/vega-brand-logo.entry.js +2 -2
- package/dist/esm/vega-breadcrumb.entry.js +2 -2
- package/dist/esm/vega-button-circle.entry.js +6 -6
- package/dist/esm/vega-button-link.entry.js +1 -1
- package/dist/esm/vega-button.entry.js +4 -4
- package/dist/esm/vega-calendar_5.entry.js +21 -10
- package/dist/esm/vega-card.entry.js +5 -5
- package/dist/esm/vega-carousel.entry.js +3 -3
- package/dist/esm/vega-checkbox_2.entry.js +3 -3
- package/dist/esm/vega-chip.entry.js +5 -5
- package/dist/esm/vega-code-block.entry.js +11 -11
- 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 +2 -2
- package/dist/esm/vega-combo-box.entry.js +9 -9
- package/dist/esm/vega-counter-badge.entry.js +2 -2
- package/dist/esm/vega-date-picker_2.entry.js +14 -14
- package/dist/esm/vega-dialog_2.entry.js +5 -5
- package/dist/esm/vega-divider.entry.js +5 -5
- package/dist/esm/vega-dropdown_5.entry.js +23 -14
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-label.entry.js +3 -3
- package/dist/esm/vega-file-uploader.entry.js +4 -4
- package/dist/esm/vega-flag-icon.entry.js +5 -5
- package/dist/esm/vega-flex.entry.js +6 -6
- package/dist/esm/vega-font.entry.js +5 -5
- package/dist/esm/vega-form.entry.js +2 -2
- package/dist/esm/vega-grid.entry.js +5 -5
- package/dist/esm/vega-icon.entry.js +6 -6
- package/dist/esm/vega-image-uploader.entry.js +7 -7
- package/dist/esm/vega-input-credit-card.entry.js +7 -7
- package/dist/esm/vega-input-numeric.entry.js +6 -6
- package/dist/esm/vega-input-passcode.entry.js +6 -6
- package/dist/esm/vega-input-phone-number.entry.js +5 -5
- package/dist/esm/vega-input-range.entry.js +4 -4
- package/dist/esm/vega-input-select.entry.js +6 -6
- package/dist/esm/vega-input.entry.js +7 -7
- package/dist/esm/vega-left-nav_5.entry.js +10 -10
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +4 -4
- package/dist/esm/vega-popover_2.entry.js +8 -8
- package/dist/esm/vega-progress-tracker_2.entry.js +3 -3
- package/dist/esm/vega-radio_2.entry.js +6 -6
- package/dist/esm/vega-rich-text-content.entry.js +39 -11
- package/dist/esm/vega-rich-text-editor_4.entry.js +79 -22
- package/dist/esm/vega-rich-text-find-replace-panel.entry.js +1 -1
- package/dist/esm/vega-rich-text-special-characters-panel.entry.js +5 -5
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +10 -10
- package/dist/esm/vega-selection-chip_2.entry.js +5 -5
- package/dist/esm/vega-selection-tile_2.entry.js +3 -3
- package/dist/esm/vega-sidenav_3.entry.js +3 -3
- package/dist/esm/vega-signature-capture.entry.js +8 -8
- package/dist/esm/vega-stepper.entry.js +3 -3
- package/dist/esm/vega-tab-group_2.entry.js +21 -8
- package/dist/esm/vega-table_11.entry.js +53 -17
- package/dist/esm/vega-textarea.entry.js +3 -3
- package/dist/esm/vega-time-picker_2.entry.js +10 -10
- package/dist/esm/vega-toggle-switch.entry.js +3 -3
- package/dist/esm/vega-tooltip_2.entry.js +6 -6
- package/dist/esm/vega.js +13 -13
- package/dist/sri/vega-sri-manifest.json +349 -349
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +2 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-default-styles.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy.abstract.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.d.ts +25 -3
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/extensions/block-boundary-registry.d.ts +21 -0
- package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/constants.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/function-block.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-containing-function-block-strategy.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/function-extension.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/utils.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/action-handler-strategies/image-replace-src-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/actions/image-replace-src-action.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/paste-image-parser.d.ts +136 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/pending-image-registry.d.ts +68 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.d.ts +9 -4
- package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-extension.d.ts +39 -2
- package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/default-paste-strategy.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/paste-processing-strategy.abstract.d.ts +61 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/paste-strategy-selector.d.ts +45 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/word-paste-strategy.d.ts +186 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-code-block-transformer.d.ts +51 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-image-transformer.d.ts +86 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-list-transformer.d.ts +271 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-paragraph-transformer.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-table-transformer.d.ts +240 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-transformer.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/span-to-token-node-strategy.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +19 -1
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.d.ts +4 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.d.ts +1 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.d.ts +1 -0
- package/dist/types/components/vega-tab-group/types.d.ts +3 -1
- package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +2 -0
- package/dist/types/components/vega-table/interface.d.ts +4 -4
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-body-col-span-controller.d.ts +16 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-body-col-span-resolver.d.ts +8 -10
- package/dist/types/helpers/translation/interface.d.ts +3 -1
- package/dist/types/types/public-api.d.ts +1 -0
- package/dist/types/utils/sanitize/index.d.ts +3 -2
- package/dist/types/utils/sanitize/strategies/index.d.ts +1 -0
- package/dist/types/utils/sanitize/strategies/label-sanitize-strategy.d.ts +9 -0
- package/dist/types/utils/sanitize/strategies/plain-text-sanitize-strategy.d.ts +36 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-0cbf09f7.entry.js → p-024db952.entry.js} +1 -1
- package/dist/vega/p-0b2c4c0b.js +1 -0
- package/dist/vega/{p-c2277448.entry.js → p-0ca3b4bf.entry.js} +1 -1
- package/dist/vega/{p-6f537797.entry.js → p-1a37d63c.entry.js} +1 -1
- package/dist/vega/{p-b622c455.js → p-1fa22fda.js} +1 -1
- package/dist/vega/{p-d609c3fd.js → p-2044eba9.js} +1 -1
- package/dist/vega/{p-56db3323.js → p-22edd3cc.js} +1 -1
- package/dist/vega/{p-5f96e741.entry.js → p-23c1f378.entry.js} +1 -1
- package/dist/vega/{p-6c95a6a3.js → p-2529820e.js} +1 -1
- package/dist/vega/{p-8d96f0e8.entry.js → p-2af1d8b8.entry.js} +1 -1
- package/dist/vega/{p-17c69503.entry.js → p-2f89ee14.entry.js} +1 -1
- package/dist/vega/{p-2bb5a232.js → p-3091b105.js} +1 -1
- package/dist/vega/{p-52c69f9e.entry.js → p-328ebbdb.entry.js} +1 -1
- package/dist/vega/p-35628af4.js +1 -0
- package/dist/vega/{p-9abf7d0a.entry.js → p-35d37477.entry.js} +1 -1
- package/dist/vega/{p-8c56d74d.entry.js → p-3a230d4b.entry.js} +1 -1
- package/dist/vega/{p-4bfe3258.entry.js → p-3c152bad.entry.js} +1 -1
- package/dist/vega/p-3c559c8b.js +1 -0
- package/dist/vega/{p-d470fce2.entry.js → p-3c8421d5.entry.js} +1 -1
- package/dist/vega/{p-7dcd2850.entry.js → p-4022412e.entry.js} +1 -1
- package/dist/vega/{p-c70748f7.entry.js → p-433b1395.entry.js} +1 -1
- package/dist/vega/{p-b98ead05.entry.js → p-4370b954.entry.js} +1 -1
- package/dist/vega/p-444e24c6.js +1 -0
- package/dist/vega/p-4473d8b1.js +3 -0
- package/dist/vega/{p-a484e32d.entry.js → p-44999c88.entry.js} +1 -1
- package/dist/vega/{p-f29ea345.entry.js → p-47a48329.entry.js} +1 -1
- package/dist/vega/{p-0cf3b5c1.entry.js → p-49d7cfed.entry.js} +1 -1
- package/dist/vega/{p-92528dc9.entry.js → p-4afd6715.entry.js} +1 -1
- package/dist/vega/{p-461100b8.entry.js → p-4f6aaac5.entry.js} +1 -1
- package/dist/vega/p-50eda925.js +1 -0
- package/dist/vega/{p-ae2abdfa.js → p-5110c84f.js} +1 -1
- package/dist/vega/{p-2a245138.entry.js → p-5147c30d.entry.js} +1 -1
- package/dist/vega/{p-874e5624.js → p-52878ea9.js} +1 -1
- package/dist/vega/{p-b00ec194.entry.js → p-55dc3053.entry.js} +1 -1
- package/dist/vega/p-5af312f8.js +1 -0
- package/dist/vega/{p-3e09aeed.js → p-5b3c8a56.js} +1 -1
- package/dist/vega/{p-2acf9b42.entry.js → p-5e9e04f3.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-6493f13a.entry.js +1 -0
- package/dist/vega/{p-56598858.entry.js → p-6659c910.entry.js} +1 -1
- package/dist/vega/{p-95c18f79.entry.js → p-66728dd4.entry.js} +1 -1
- package/dist/vega/{p-4cbfc01e.entry.js → p-66a785d0.entry.js} +1 -1
- package/dist/vega/{p-36d9e782.entry.js → p-66fe8b4e.entry.js} +1 -1
- package/dist/vega/p-67e88cd7.entry.js +1 -0
- package/dist/vega/{p-456f678b.js → p-691bdc20.js} +1 -1
- package/dist/vega/{p-94975537.entry.js → p-6d6b4495.entry.js} +1 -1
- package/dist/vega/p-7754b10f.entry.js +1 -0
- package/dist/vega/{p-085d1647.entry.js → p-77fb3971.entry.js} +1 -1
- package/dist/vega/{p-544ce391.entry.js → p-7977352b.entry.js} +1 -1
- package/dist/vega/{p-a91927eb.entry.js → p-7b133734.entry.js} +1 -1
- package/dist/vega/p-7b84a943.entry.js +1 -0
- package/dist/vega/{p-02d3ce79.entry.js → p-840444c9.entry.js} +1 -1
- package/dist/vega/{p-3737b9e2.entry.js → p-860e76f5.entry.js} +1 -1
- package/dist/vega/{p-72fd17a1.entry.js → p-867cc602.entry.js} +1 -1
- package/dist/vega/p-8d2a9012.js +1 -0
- package/dist/vega/{p-7e8fdac4.js → p-8d4be607.js} +1 -1
- package/dist/vega/p-8d77c7cf.js +1 -0
- package/dist/vega/{p-4fd0cf01.js → p-8f3b93db.js} +1 -1
- package/dist/vega/{p-56417ec5.entry.js → p-944e284d.entry.js} +1 -1
- package/dist/vega/{p-6fd4f2c6.js → p-94b54a95.js} +1 -1
- package/dist/vega/p-9c2b3279.js +1 -0
- package/dist/vega/{p-ca3c1317.entry.js → p-9c5289dc.entry.js} +1 -1
- package/dist/vega/{p-810c9c29.js → p-9c9b0629.js} +1 -1
- package/dist/vega/{p-585e4f1c.entry.js → p-9c9ff871.entry.js} +1 -1
- package/dist/vega/{p-2f07d719.entry.js → p-9d90e271.entry.js} +1 -1
- package/dist/vega/{p-d319ebb5.js → p-9e9f49f4.js} +1 -1
- package/dist/vega/{p-dcd3e3a7.js → p-a1f220ca.js} +1 -1
- package/dist/vega/{p-035e2f05.entry.js → p-a4360b7e.entry.js} +1 -1
- package/dist/vega/{p-6d4518d7.entry.js → p-a7517760.entry.js} +1 -1
- package/dist/vega/{p-c5fb8a69.entry.js → p-aa433430.entry.js} +1 -1
- package/dist/vega/{p-1cff027b.entry.js → p-aa914dbd.entry.js} +1 -1
- package/dist/vega/{p-72ab5cd5.entry.js → p-b12de1bf.entry.js} +1 -1
- package/dist/vega/p-b21cc390.entry.js +1 -0
- package/dist/vega/{p-dbb4b1d1.js → p-b3c4943b.js} +1 -1
- package/dist/vega/{p-1aedbfd2.entry.js → p-ba6881da.entry.js} +1 -1
- package/dist/vega/{p-9834d5d4.entry.js → p-bd7725f7.entry.js} +1 -1
- package/dist/vega/{p-a090b2be.js → p-c348eaf5.js} +1 -1
- package/dist/vega/{p-ccbe3f1b.entry.js → p-c8ad7207.entry.js} +1 -1
- package/dist/vega/{p-b3733762.entry.js → p-c8fb3aac.entry.js} +1 -1
- package/dist/vega/p-cc569b54.js +1 -0
- package/dist/vega/{p-c98c2f5f.entry.js → p-ccbed811.entry.js} +1 -1
- package/dist/vega/{p-da867019.entry.js → p-ce82d6bb.entry.js} +1 -1
- package/dist/vega/{p-a81ad3bd.js → p-cede3535.js} +1 -1
- package/dist/vega/p-d35a31a5.entry.js +1 -0
- package/dist/vega/{p-ac94ba1b.entry.js → p-d4d90ce2.entry.js} +1 -1
- package/dist/vega/{p-cb81126a.entry.js → p-d6023dc0.entry.js} +1 -1
- package/dist/vega/{p-a8174ad8.entry.js → p-d62e618a.entry.js} +1 -1
- package/dist/vega/{p-1ea9ad9a.js → p-dd0bd78b.js} +1 -1
- package/dist/vega/{p-36d2df7a.entry.js → p-ded1ecc1.entry.js} +1 -1
- package/dist/vega/p-df63c2fb.entry.js +1 -0
- package/dist/vega/{p-c6d775b8.entry.js → p-e1a65e06.entry.js} +1 -1
- package/dist/vega/{p-39c5054b.js → p-e1c82ca9.js} +1 -1
- package/dist/vega/{p-f6c0e9e7.entry.js → p-e469ba27.entry.js} +1 -1
- package/dist/vega/{p-373541fa.js → p-e4c5cb4f.js} +1 -1
- package/dist/vega/{p-ec64cc59.entry.js → p-f0a0fc77.entry.js} +1 -1
- package/dist/vega/{p-12e8a1b2.js → p-f13b39d8.js} +1 -1
- package/dist/vega/{p-4e065ef7.entry.js → p-f2384411.entry.js} +1 -1
- package/dist/vega/{p-8d2501b2.js → p-f9a3805d.js} +1 -1
- package/dist/vega/{p-1e0a8fd3.js → p-fa5cd8b1.js} +1 -1
- package/dist/vega/{p-2c2e8615.js → p-fcb6b499.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-constants.js +0 -6
- package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-constants.d.ts +0 -6
- package/dist/vega/p-03eeadc1.entry.js +0 -1
- package/dist/vega/p-0eb29065.js +0 -3
- package/dist/vega/p-10d30c03.js +0 -1
- package/dist/vega/p-1250b1ab.entry.js +0 -1
- package/dist/vega/p-1abd3c17.js +0 -1
- package/dist/vega/p-2d158cbd.js +0 -1
- package/dist/vega/p-3d0b4074.js +0 -1
- package/dist/vega/p-56493601.js +0 -1
- package/dist/vega/p-571ec00b.js +0 -1
- package/dist/vega/p-5b1f5e4a.entry.js +0 -1
- package/dist/vega/p-6234852e.entry.js +0 -1
- package/dist/vega/p-781b7a54.js +0 -1
- package/dist/vega/p-cd69aeae.js +0 -1
- package/dist/vega/p-cfe268a8.entry.js +0 -1
- package/dist/vega/p-de8f0d98.js +0 -1
- package/dist/vega/p-f0e828d8.js +0 -1
- package/dist/vega/p-f62c5a20.entry.js +0 -1
- package/dist/vega/p-fa65956c.entry.js +0 -1
package/dist/vega/p-571ec00b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as t}from"./p-2d0d575f.js";import{d as e}from"./p-526e3634.js";import{e as s,f as n}from"./p-4a2fe3a4.js";import{d as r,c as i}from"./p-02841589.js";import{L as o}from"./p-6e1ab235.js";import{i as c}from"./p-456f678b.js";import{T as a}from"./p-b438e68b.js";import{g as l}from"./p-8b5d3a52.js";import{V as h}from"./p-3e09aeed.js";import{c as u}from"./p-a841cf13.js";import{f as d}from"./p-528748fa.js";var f,p;!function(t){t.SELECTION_RANGE="SELECTION_RANGE",t.CLEAR_FORMATTING="CLEAR_FORMATTING",t.LINK_GROUP="LINK_GROUP"}(f||(f={}));class w{}!function(t){t.ALIGNMENT="ALIGNMENT",t.TEXT_STYLE="TEXT_STYLE",t.INDENT="INDENT",t.LIST="LIST",t.INTERNAL_WRAPPER="INTERNAL_WRAPPER"}(p||(p={}));class g extends w{}const m=new class{constructor(){this.domToEntity=new WeakMap,this.entityToDOM=new WeakMap,this.contentEntityToRootDom=new Map,this.rootDomToContentEntity=new WeakMap}register(t,e){this.isVegaRTEContent(e)?this.registerRootDomAndContentEntity(t,e):(this.domToEntity.set(t,e),this.entityToDOM.set(e,t))}getEntityByDOM(t){return this.domToEntity.get(t)}getDOMByEntity(t){return this.isVegaRTEContent(t)?this.contentEntityToRootDom.get(t):this.entityToDOM.get(t)}removeDirtyDomRef(t){this.domToEntity.delete(t)}registerRootDomAndContentEntity(t,e){const s=this.rootDomToContentEntity.get(t);s&&s!==e&&this.contentEntityToRootDom.delete(s),this.rootDomToContentEntity.set(t,e),this.contentEntityToRootDom.set(e,t)}isVegaRTEContent(t){return t&&"VegaRTEContent"===t.dtoName}};var x,S,A,y;!function(t){t.DELETE_CHILDREN="DELETE_CHILDREN",t.DELETE_NEST_LIST="DELETE_NEST_LIST",t.UPDATE_TEXT="UPDATE_TEXT",t.REPLACE_SELECTED_TEXT="REPLACE_SELECTED_TEXT",t.APPEND_CHILDREN="APPEND_CHILDREN",t.INSERT_CHILDREN_AFTER="INSERT_CHILDREN_AFTER",t.INSERT_CHILDREN_BEFORE="INSERT_CHILDREN_BEFORE",t.SPLIT_BLOCK_WITH_NODE="SPLIT_BLOCK_WITH_NODE",t.REPLACE_CHILD_NODES="REPLACE_CHILD_NODES",t.REPLACE_NEST_LIST="REPLACE_NEST_LIST",t.MERGE_TWO_BLOCKS_NODES="MERGE_TWO_BLOCKS_NODES",t.INSERT_NEW_PARAGRAPH="INSERT_NEW_PARAGRAPH",t.LINE_BREAK_SINGLE_BLOCK="LINE_BREAK_SINGLE_BLOCK",t.LINE_BREAK_MULTIPLE_BLOCKS="LINE_BREAK_MULTIPLE_BLOCKS",t.TRANSFORM_LIST_BLOCK="TRANSFORM_LIST_BLOCK",t.TRANSFORM_PARAGRAPH_BLOCK="TRANSFORM_PARAGRAPH_BLOCK",t.NEST_LIST_ITEMS="NEST_LIST_ITEMS",t.UNNEST_LIST_ITEMS="UNNEST_LIST_ITEMS",t.DELETE_BLOCK_CONTENT="DELETE_BLOCK_CONTENT",t.INSERT_IMAGE_TO_BLOCK="INSERT_IMAGE_TO_BLOCK",t.UPDATE_IMAGE_NODE_URL="UPDATE_IMAGE_NODE_URL",t.TRANSFORM_TO_CODE_BLOCK="TRANSFORM_TO_CODE_BLOCK",t.UPDATE_CODE_BLOCK="UPDATE_CODE_BLOCK",t.SWITCH_OUT_FROM_CODE_BLOCK="SWITCH_OUT_FROM_CODE_BLOCK",t.DELETE_CODE_BLOCK="DELETE_CODE_BLOCK",t.UNLINK_LINK_GROUP="UNLINK_LINK_GROUP",t.LINK_GROUP_NODE_SPLIT="LINK_GROUP_NODE_SPLIT",t.DELETE_LINK_GROUP="DELETE_LINK_GROUP",t.UPDATE_CURSOR_POSITION="UPDATE_CURSOR_POSITION",t.INSERT_TEXT_TO_DECORATOR_NODE="INSERT_TEXT_TO_DECORATOR_NODE",t.INSERT_NODE_TO_NEAREST_ROOT="INSERT_NODE_TO_NEAREST_ROOT",t.PASTE_CONTENT="PASTE_CONTENT",t.DELETE_SELECTED_CONTENT="DELETE_SELECTED_CONTENT"}(x||(x={}));class O{constructor(){this.isFlushable=!1}}function E(t){const e={},s=t.getAttribute("style");if(!s)return e;const n=function(t){const e=[];let s="",n=0;for(let r=0;r<t.length;r++){const i=t[r];"("===i?(n++,s+=i):")"===i?(n--,s+=i):";"===i&&0===n?(e.push(s),s=""):s+=i}return s&&e.push(s),e}(s);for(const t of n){const s=t.trim(),n=s.indexOf(":"),i=s.substring(0,n).trim(),o=s.substring(n+1).trim();e[r(i)]=o}return e}function T(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function v(t){return T(t).replace(/"/g,""").replace(/'/g,"'")}function N(t){return t.replace(/&(?!(?:[a-zA-Z][a-zA-Z0-9]+|#[0-9]+|#x[a-fA-F0-9]+);)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}class b{constructor(){this.classNameToBeAdded=""}filterAnnotations(t){const e=t.customStyle;return e?(this.extractAndDeleteMatchedStyles(e),0===Object.keys(e).length&&delete t.customStyle,t):t}filterAndDeleteStyles(t,e){const s=new Set(e);return this.extractAndDeleteMatchedStyles(t)&&this.classNameToBeAdded&&s.add(this.classNameToBeAdded),{styles:t,classNames:Array.from(s)}}refillStyles(t){this.classNameToBeAdded&&t.classList.remove(this.classNameToBeAdded);const e=E(t),s=Object.assign(Object.assign({},this.stylesToBeFiltered),e),n=Object.entries(Object.assign({},s)).map((([t,e])=>`${i(t)}: ${e};`)).join("");t.setAttribute("style",n)}canFilter(t){return!1}canRefill(t,e){return!1}toCssText(){return""}get alwaysFilter(){return!1}extractAndDeleteMatchedStyles(t){let e=!1;const s=this.stylesToBeFiltered;if(t&&s){const n=Object.keys(s);for(const r of n)t[r]===s[r]&&(delete t[r],e=!0)}return e}buildCssTextForStyles(t,e){return`${`.${b.RTE_CONTENT_CONTAINER_CLASS_NAME}`+(e?` .${e}`:` ${t}`)} { ${Object.entries(this.stylesToBeFiltered).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")} }`}convertStylesMapToCssText(t){return Object.entries(t||this.stylesToBeFiltered).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")}isBlockOrNodeStylesMatchFilterStyles(t,e){const s=t.getStyles({standalone:!0});return this.isMatchFilterStyles(s,e)}isMatchFilterStyles(t,e){return(e&&e.length>0?e:Object.keys(this.stylesToBeFiltered)).every((e=>t[e]===this.stylesToBeFiltered[e]))}}b.RTE_CONTENT_CONTAINER_CLASS_NAME="vega-rte-content",function(t){t.BOLD="BOLD",t.ITALIC="ITALIC",t.UNDERLINE="UNDERLINE",t.STRIKETHROUGH="STRIKETHROUGH",t.SELECTION_RANGE="SELECTION_RANGE",t.IMAGE="IMAGE",t.CODE="CODE",t.TEXT_COLOR="TEXT_COLOR",t.LINK="LINK",t.INLINE_HTML="INLINE_HTML",t.PLAIN_TEXT="PLAIN_TEXT"}(S||(S={}));class C extends w{}class L{static isTextBlock(t){return t===this.RTE_TEXT_BLOCK_CLASS_NAME}static isCodeBlock(t){return"RTECodeBlock"===t}static isListBlock(t){return"RTEListBlock"===t}static isListItemBlock(t){return"RTEListItemBlock"===t}static isTextNode(t){return t===this.RTE_TEXT_NODE_CLASS_NAME}static isLinkNode(t){return this.isTextNode(t.dtoName)&&!!t.getAnnotationByType(S.LINK)}static isCodeNode(t){if(this.isTextNode(t.dtoName)){const e=t.getAnnotationByType(S.CODE);return!!e&&e.code}return!1}static isImageNode(t){return"RTEImageNode"===t.dtoName}static isCodeBlockNode(t){return"RTECodeBlockNode"===t.dtoName}}L.RTE_TEXT_NODE_CLASS_NAME="RTETextNode",L.RTE_TEXT_BLOCK_CLASS_NAME="RTETextBlock";class R extends b{constructor(){super(...arguments),this.stylesToBeFiltered=k.getDefaultStyles(),this.elementTagName="a"}filterAnnotations(t){const e=t.link;return(null==e?void 0:e.customStyle)?(this.extractAndDeleteMatchedStyles(e.customStyle),0===Object.keys(e.customStyle).length&&delete e.customStyle,t):t}canFilter(t){return L.isLinkNode(t)}canRefill(t,e){return"RTETextNode"===t&&e.matches(this.elementTagName)}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}filterLinkGroupInlineStyles(t){const e=t.style,s=t.class?t.class.split(" "):[],n=this.filterAndDeleteStyles(e,s);return n.styles&&Object.keys(n.styles).length>0&&(t.style=n.styles),n.classNames&&n.classNames.length>0&&(t.class=n.classNames.join(" ")),t.style&&0===Object.keys(t.style).length&&delete t.style,t}}class k extends w{constructor(t){super(),this.type=f.LINK_GROUP,this.linkGroups=new Map,this.linkGroups=new Map([[t,[]]])}static getDefaultStyles(){return{color:"rgba(var(--v-text-link, 19, 98, 226, 1))"}}clone(){const t=new k("");return this.linkGroups.forEach(((e,s)=>{t.linkGroups.set(s,e.map((t=>t.clone(t.parent))))})),t}toString(t,e){let s=this.toJsx(t,e);return(null==e?void 0:e.filterInlineStyles)&&(s=k.linkGroupFilterStylesStrategy.filterLinkGroupInlineStyles(s)),Object.entries(s).map((([t,e])=>{const s="string"==typeof e?e:this.formatStyleToString(e);return`${i(t)}="${s}"`})).join(" ")}toJsx(t,e){const s=this.getStyle(t,e),n=this.getClass(t,e),r=this.getAttribute(t);return n.length>0&&(r.class=n.join(" ")),s&&Object.keys(s).length>0&&(r.style=s),r}getClass(t,e){const s=[];return t.link.customClass&&s.push(...t.link.customClass),!(null==e?void 0:e.standalone)&&t.useInternalStyle&&s.push("v-rte--link"),s}getStyle(t,e){const s={};return t.link.customStyle&&Object.assign(s,t.link.customStyle),(null==e?void 0:e.standalone)&&t.useInternalStyle&&Object.assign(s,k.getDefaultStyles()),s}getAttribute(t){const{href:e,customAttribute:s={}}=t.link,n=t.useInternalStyle,r=s.target||(n?"_blank":"");return Object.assign(Object.assign(Object.assign({},s),e||n?{href:e}:{}),r?{target:r}:{})}formatStyleToString(t){return Object.entries(t).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")}}k.linkGroupFilterStylesStrategy=new R;class j extends g{constructor(t){super(),this.type=p.ALIGNMENT,this.textAlign=t}static from(t){return[p.ALIGNMENT,new j(t)]}static getDefaultStyles(t){switch(t){case"right":case"center":case"justify":return{textAlign:t};case"left":default:return{textAlign:"left"}}}toJSON(){return{textAlign:this.textAlign}}renderClass(t){if(null==t?void 0:t.standalone)return null;switch(this.textAlign){case"right":case"center":case"justify":return`v-rte--horizontal-alignment-${this.textAlign}`;case"left":default:return"v-rte--horizontal-alignment-left"}}clone(){return new j(this.textAlign)}renderStyle(t){return(null==t?void 0:t.standalone)?j.getDefaultStyles(this.textAlign):null}}class _ extends g{constructor(t){super(),this.type=p.INDENT,this.indent=Math.max(0,t)}static from(t){return[p.INDENT,new _(t)]}toJSON(){return this.indent>0?{indent:this.indent}:null}clone(){return new _(this.indent)}renderClass(){return null}renderStyle(){return this.indent>0?{marginLeft:16*this.indent+"px"}:null}}class ${static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).has(t)||this.registry.get(e).set(t,new Set),this.registry.get(e).get(t).add(s)}static unregister(t,e,s){const n=this.registry.get(e);if(n){const e=n.get(t);e&&e.delete(s)}}static get(t,e){const s=t instanceof O?t.type:t.constructor.name,n=this.registry.get(e.constructor.name);if(n){const r=n.get(s);if(r&&r.size>0)return Array.from(r).find((s=>s.canIntercept(t,e)))}}}$.registry=new Map;class I{static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).set(t,s)}static unregister(t,e){const s=this.registry.get(e);s&&s.delete(t)}static get(t,e){const s=this.registry.get(e);if(s)return s.get(t)}static executeTheStrategy(t,e){const s=$.get(t,e),n=()=>{const s=t instanceof O?t.type:t.constructor.name,n=I.get(s,e.constructor.name);if(n)return t.executedFlag=!0,n.execute(t,e);o.warn(`Type ${s} action handle strategy is not registered in class ${e.constructor.name}`)};return s?s.intercept(n,t,e):n()}static canHandle(t,e){return!!I.get(t,e.constructor.name)}}I.registry=new Map,function(t){t.CUSTOM_ATTRIBUTE="CUSTOM_ATTRIBUTE",t.CUSTOM_CLASS="CUSTOM_CLASS",t.CUSTOM_STYLE="CUSTOM_STYLE"}(A||(A={}));class B extends w{}class D extends B{constructor(t){super(),this.type=A.CUSTOM_ATTRIBUTE,this.BOOLEAN_ATTRS=new Set(["controls","disabled","checked","readonly","multiple","required","autoplay","muted"]),this.customAttribute=t}static from(t){return[A.CUSTOM_ATTRIBUTE,new D(t)]}toJSON(){return{customAttribute:this.customAttribute}}clone(){return new D(this.customAttribute)}toString(t=[]){const e=t.map((t=>t.split("=")[0]));return Object.keys(this.customAttribute).map((t=>e.includes(t)?null:`${t}="${this.customAttribute[t]}"`)).filter(c)}render(t={}){var e;const s=Object.assign({},this.customAttribute);return null===(e=t.filterAttributes)||void 0===e||e.forEach((t=>delete s[t])),Object.keys(s).forEach((t=>{this.BOOLEAN_ATTRS.has(t)&&""===s[t]&&(s[t]="true")})),s}}class M extends B{constructor(t){super(),this.type=A.CUSTOM_CLASS,this.customClass=t}static from(t){return[A.CUSTOM_CLASS,new M(t)]}toJSON(){return{customClass:this.customClass}}clone(){return new M(this.customClass)}toString(){return`class="${this.customClass.join(" ")}"`}renderClass(){return this.customClass}}class F extends B{constructor(t){super(),this.type=A.CUSTOM_STYLE,this.customStyle=t}static from(t){return[A.CUSTOM_STYLE,new F(t)]}toJSON(){return{customStyle:this.customStyle}}clone(){return new F(this.customStyle)}renderStyle(){return this.customStyle}removeStyles(t){const e=Object.assign({},this.customStyle);return t.forEach((t=>delete e[t])),e}toString(){return`style="${N(Object.entries(this.customStyle).map((([t,e])=>`${t}: ${e};`)).join(" "))}"`}}class H extends g{constructor(t){super(),this.type=p.INTERNAL_WRAPPER,this.internalWrapper=t}static from(t){return[p.INTERNAL_WRAPPER,new H(t)]}clone(){return new H(this.internalWrapper)}renderClass(){}renderStyle(){}toJSON(){return this.internalWrapper?{internalWrapper:this.internalWrapper}:void 0}}class P{constructor(t){this.dtoName=t instanceof W?"block":"node",this.annotationMap=t.annotationMap}toCssText(t={standalone:!1},e,s){return s=s||this.toJSON(t,e),Object.entries(Object.assign({},s)).map((([t,e])=>`${i(t)}: ${e};`)).join("")}toJSON(t={standalone:!1},e){const s=Array.from(this.annotationMap.values()).filter((t=>this.filterAnnotation(t)||t instanceof F)).map((e=>e.renderStyle(t))).filter(c);return e&&e.length>0?this.mergeAnnotationStyles(s,e):s.reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{})}filterAnnotation(t){return"block"===this.dtoName?t instanceof g:t instanceof C}mergeAnnotationStyles(t,e){const s={};for(const n of t)for(const t in n){const r=n[t],i=s[t];s[t]="string"==typeof i&&"string"==typeof r&&e.includes(t)?Array.from(new Set(`${i} ${r}`.split(/\s+/).filter(Boolean))).join(" "):r}return s}}class J{static register(t,e){var s;const n=null!==(s=this.registry.get(t))&&void 0!==s?s:new Set;n.add(e),this.registry.set(t,n)}static getStrategies(t){var e;return Array.from(null!==(e=this.registry.get(t))&&void 0!==e?e:[])}static executeTheStrategyFilterAction(t,e,s){return this.getStrategies(t.dtoName).filter((e=>e.canFilter(t))).reduce(((t,e)=>e.filterAndDeleteStyles(t.styles,t.classNames)),{styles:e,classNames:s})}static executeTheStrategyRefillAction(t,e){this.getStrategies(t).filter((s=>s.canRefill(t,e))).forEach((t=>{t.refillStyles(e)}))}static generateAllStylesContent(t=!1){const e=[];return t&&(e.push("/* Font-face imports begin */\n"),e.push(Object.keys(a).map((t=>`@import url('${a[t].url}');\n`)).join(" ")),e.push("/* Font-face imports end */\n")),this.registry.forEach((t=>{t.forEach((t=>{const s=t.toCssText();s&&!e.includes(s)&&e.push(s)}))})),e.join(" ")}}J.registry=new Map,function(t){t.TEXT="TEXT",t.IMAGE="IMAGE",t.CODE_BLOCK_NODE="CODE_BLOCK_NODE"}(y||(y={}));class K{constructor(t,e){this.annotationMap=new Map,this.dtoName=this.constructor.name,this.id=t,e&&(this.annotationMap=e)}static from(t,e,s){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}, ${s}) is not implemented. Please implement this method in the subclass.`)}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return D.from(e);case"customClass":return M.from(e);case"customStyle":return F.from(e)}}getAnnotationByType(t){return this.annotationMap.get(t)}deleteAnnotationByType(t){this.annotationMap.delete(t),this.flushChange()}apply(t){return this.doApply(t),t.isFlushable&&this.flushChange(),this}getStyles(t={standalone:!1}){return new P(this).toJSON(t,["textDecoration"])}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof C||t instanceof M)).map((e=>e.renderClass(t))).filter(c).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(A.CUSTOM_ATTRIBUTE)}isTextNode(){return!1}getElementRef(){return m.getDOMByEntity(this)}generateAttributeString(t,...e){var s;const n=new P(this),r=n.toJSON({standalone:!0},["textDecoration"]),i=this.annotationMap.get(A.CUSTOM_CLASS);let o=r,a=null==i?void 0:i.renderClass();if(t&&t.filterInlineStyles){const t=J.executeTheStrategyFilterAction(this,r,a);o=t.styles,a=t.classNames}const l=[...(null===(s=this.getCustomAttributesAnnotation())||void 0===s?void 0:s.toString(e))||[],a&&a.length>0?`class="${a.join(" ")}"`:null,o&&Object.keys(o).length>0?`style="${N(n.toCssText({standalone:!0},void 0,o))}"`:null,...e].filter(c);return l.length?` ${l.join(" ")}`:""}doApply(t){t instanceof O?this.doModifyActionApply(t):this.doAnnotationActionApply(t)}flushChange(){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}doAnnotationActionApply(t){}doModifyActionApply(t){}}const U=new class{constructor(){this.RTE_BLOCK_DTO_CLASS_MAP=new Map,this.RTE_NODE_DTO_CLASS_MAP=new Map}registerRTEDTOClass(t,e){if(e.prototype instanceof W)this.RTE_BLOCK_DTO_CLASS_MAP.set(t,e);else{if(!(e.prototype instanceof K))throw new Error(`Invalid RTE DTO class type: ${t}`);this.RTE_NODE_DTO_CLASS_MAP.set(t,e)}}getRTEBlockClass(t){return this.RTE_BLOCK_DTO_CLASS_MAP.get(t)}getRTENodeClass(t){return this.RTE_NODE_DTO_CLASS_MAP.get(t)}};class W{constructor(t){this.annotationMap=new Map,this.dtoName=this.constructor.name,this.id=t}static from(t,e){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}) is not implemented. Please implement this method in the subclass.`)}static generateBlockChildren(t,e,s){return t.map((t=>{const n=U.getRTEBlockClass(t.type);if(n){const r=n.from(t,e);return r.parent=s,r}})).filter(c)}static createAnnotationEntity(t,e){switch(t){case"textAlign":return j.from(e);case"indent":return _.from(e);case"customAttribute":return D.from(e);case"customClass":return M.from(e);case"customStyle":return F.from(e);case"internalWrapper":return H.from(e)}}static convertAnnotationsToMap(t,e){Object.entries(e).forEach((([e,s])=>{const n=this.createAnnotationEntity(e,s);c(n)&&t.set(...n)}))}shouldRenderAsInternalWrapper(){const t=this.getAnnotationByType(p.INTERNAL_WRAPPER);return!!t&&t.internalWrapper&&0===Array.from(this.annotationMap.values()).filter((t=>!(t instanceof k||t instanceof H))).length}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof g||t instanceof B)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{})}getAnnotationByType(t){return this.annotationMap.get(t)}apply(n){if(this.doApply(n),n.isFlushable){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}getFirstNode(){if(!this.children||!this.children[0])return null;const t=this.children[0];return t instanceof W?t.getFirstNode():t}isListItemBlock(){return"list-item"===this.type}getStyles(t={standalone:!1}){const e=new P(this).toJSON(t);return Object.assign(Object.assign({},e),this.shouldRenderAsInternalWrapper()?{display:"contents"}:{})}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof g||t instanceof M)).map((e=>e.renderClass(t))).filter(c).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(A.CUSTOM_ATTRIBUTE)}generateAttributeString(t,...e){var s;const n=new P(this),r=n.toJSON({standalone:!0}),i=this.annotationMap.get(A.CUSTOM_CLASS);let o=r,a=null==i?void 0:i.renderClass();if(t&&t.filterInlineStyles){const t=J.executeTheStrategyFilterAction(this,r,a);o=t.styles,a=t.classNames}const l=[...(null===(s=this.getCustomAttributesAnnotation())||void 0===s?void 0:s.toString(e))||[],a&&a.length>0?`class="${a.join(" ")}"`:null,o&&Object.keys(o).length>0?`style="${N(n.toCssText({standalone:!0},void 0,o))}"`:null,...e].filter(c);return l.length?` ${l.join(" ")}`:""}doApply(t){t instanceof O?I.executeTheStrategy(t,this):this.applyAnnotationAction(t)}applyAnnotationAction(t){const e=t.toAnnotation();if(e instanceof k||this.annotationMap.set(e.type,e),"function"==typeof this.doAnnotationActionApply)this.doAnnotationActionApply(t);else{const e=I.get(t.constructor.name,this.constructor.name);e&&e.execute(t,this)}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}}class G{}class z extends G{constructor(){super(...arguments),this.doSplit=!0}}class V extends w{constructor(t){super(),this.type=f.SELECTION_RANGE,this.range=t}clone(){return new V(this.range)}}const X="700",q="bold",Y="italic",Z="underline",Q="line-through";class tt extends C{constructor(t){super(),this.type=S.STRIKETHROUGH,this.strikethrough=t}static from(t){return[S.STRIKETHROUGH,new tt(t)]}toJSON(){return{strikethrough:this.strikethrough}}clone(){return new tt(this.strikethrough)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.strikethrough?"v-rte--strikethrough":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.strikethrough?{textDecoration:"line-through"}:null}}class et extends C{constructor(t){super(),this.type=S.UNDERLINE,this.underline=t}static from(t){return[S.UNDERLINE,new et(t)]}toJSON(){return{underline:this.underline}}clone(){return new et(this.underline)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.underline?"v-rte--underline":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.underline?{textDecoration:"underline"}:null}}class st extends C{constructor(t){super(),this.type=S.ITALIC,this.italic=t}static from(t){return[S.ITALIC,new st(t)]}toJSON(){return{italic:this.italic}}clone(){return new st(this.italic)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.italic?"v-rte--italic":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.italic?{fontStyle:"italic"}:null}}class nt extends C{constructor(t){super(),this.type=S.BOLD,this.bold=t}static from(t){return[S.BOLD,new nt(t)]}toJSON(){return{bold:this.bold}}clone(){return new nt(this.bold)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.bold?"v-rte--bold":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.bold?{fontWeight:"700"}:null}}class rt extends C{constructor(t,e=!0){super(),this.type=S.CODE,this.code=t,this.useInternalStyle=e}static from(t,e){return[S.CODE,new rt(t,e)]}static getDefaultStyles(){return{fontFamily:"Roboto Mono",whiteSpace:"pre-wrap"}}toJSON(){return{code:this.code}}clone(){return new rt(this.code,this.useInternalStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.code&&this.useInternalStyle?"v-rte--code":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.code&&this.useInternalStyle?rt.getDefaultStyles():null}}const it={key:"black",light:"#111128",dark:"#E3E3E8"},ot=[it,{key:"gray",light:"#5E5E6D",dark:"#B9B9C1"},{key:"green",light:"#01801F",dark:"#59D977"},{key:"red",light:"#BD2947",dark:"#FFB2B5"},{key:"purple",light:"#563D82",dark:"#BEB2FF"},{key:"teal",light:"#17758F",dark:"#4CD8FF"}],ct="",at=[{key:"title"},{key:"subtitle"},{key:"heading-1"},{key:"heading-2"},{key:"heading-3"},{key:"paragraph"}],lt=[["textStyles"],["bold","italic","underline","strikethrough","code"],["textColor"],["horizontalAlignment","bulletsNumbers"],["moreIndent","lessIndent"],["link"],["image"],["clearStyle"]],ht=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),ut=22,dt="url",ft="email",pt=["url","email"];class wt extends C{constructor(t){super(),this.type=S.TEXT_COLOR,this.textColor=this.formatTextColor(t)}static from(t){return[S.TEXT_COLOR,new wt(t)]}toJSON(){return{textColor:this.textColor.key}}clone(){return new wt(this.textColor.key)}renderClass(){return null}renderStyle(){return{color:h.isDarkMode()?this.textColor.dark:this.textColor.light}}formatTextColor(t){return ot.find((e=>e.key===t))||ot[0]}}class gt extends C{constructor(t,e=!0){super(),this.type=S.LINK,this.link=t,this.useInternalStyle=e}static from(t,e=!0){return[S.LINK,new gt(t,e)]}toJSON(){return{link:this.link}}clone(){return new gt(this.link,this.useInternalStyle)}toEqual(t){return this.link.groupKey===t.link.groupKey}renderClass(){return null}renderStyle(){return null}}class mt extends G{constructor(t,e,s){super(),this.isFlushable=!1,this.groupKey=t,this.nodes=e,this.type=s}toAnnotation(){return new k(this.groupKey)}}class xt extends G{constructor(){super(),this.isFlushable=!1}toAnnotation(){return null}}class St{execute(t,e){return o.log(`Executing action ${t.constructor.name} on ${e.constructor.name} ${e.id}`),this.handleAction(t,e)}updateCustomStyleAnnotation(t,e){const s=t.annotationMap.get(A.CUSTOM_STYLE);s&&this.isCustomStyle(s,e)&&t.annotationMap.set(s.type,new F(s.removeStyles(e)))}createNewParagraph(t){const e=U.getRTEBlockClass("paragraph");if(e)return e.from({id:l(),type:"paragraph",nodes:[{id:l(),type:"text",text:t}]})}getRootContent(t){const e=t.parent;if(e)return"VegaRTEContent"===e.dtoName?e:this.getRootContent(e)}isCaretPositionAtBlockStart(t,e,s){return e===t.children[0]&&0===s}isCaretPositionAtBlockEnd(t,e,s){return e.isContentEditable()?this.isCaretPositionAtTextBlockEnd(t,e,s):this.isCaretPositionAtDecoratorBlockEnd(t,e,s)}getDOMByEntity(t){return m.getDOMByEntity(t)}isCaretPositionAtTextBlockEnd(t,e,s){const n=t.children[t.children.length-1];return e===n&&(e.isEmpty()||s===n.text.length)}isCaretPositionAtDecoratorBlockEnd(t,e,s){return e===t.children[t.children.length-1]&&0!==s}isCustomStyle(t,e){return e.some((e=>Object.keys(t.customStyle).includes(e)))}}class At extends O{constructor(t){super(),this.type=x.LINK_GROUP_NODE_SPLIT,this.splittedTextNodes=t}}class yt extends St{constructor(){super(...arguments),this.applyTargetNode=null}handleAction(t,e){const s=e.getAnnotationByType(f.SELECTION_RANGE);if(this.setApplyTargetNode(null),t instanceof z&&t.doSplit&&s){const{startContainer:t,endContainer:n,startOffset:r,endOffset:i}=s.range,o=t===n&&r===i;e.parent.children=e.parent.children.flatMap((t=>{if(t.id===e.id){if(o)return this.insertNewNode(r,e);if(this.shouldSplitSelection(s.range)&&e.isContentEditable()){const n=this.splitTextNode(s.range,e);return t.annotationMap.has("LINK")&&t.apply(new At(n)),n}return this.setApplyTargetNode(e),e}return t}))}return this.applyTargetNode}insertNewNode(t,e){const s=e.cloneWithText("");this.setApplyTargetNode(s);const n=e.parent.children.findIndex((t=>t===e));return 0===t||!e.isContentEditable()&&t===n?[s,e]:t===e.text.length||!e.isContentEditable()&&t===n+1?[e,s]:[e.cloneWithText(e.text.substring(0,t)),s,e.cloneWithText(e.text.substring(t))]}shouldSplitSelection(t){const{startContainer:e,endContainer:s,startOffset:n,endOffset:r}=t;return e!==s||n>0||r<(s.textContent?s.textContent.length:0)}splitTextNode(t,e){const{startContainer:s,endContainer:n,startOffset:r}=t,i=s.parentElement,o=n.parentElement,c=(t,s,n)=>{const r=t.substring(0,s),i=t.substring(s,n),o=t.substring(n);return[e.cloneWithText(r),e.cloneWithText(i),e.cloneWithText(o)]},a=i&&m.getEntityByDOM(i),l=o&&m.getEntityByDOM(o);if(a&&a.id===e.id){const i=s===n?t.endOffset:e.text.length,[o,a,l]=c(e.text,r,i);return this.setApplyTargetNode(a),[o,a,l].filter((t=>!!t.text))}if(l&&l.id===e.id){const[s,n,r]=c(e.text,0,t.endOffset);return this.setApplyTargetNode(n),[s,n,r].filter((t=>!!t.text))}return this.setApplyTargetNode(e),e}setApplyTargetNode(t){this.applyTargetNode=t}}class Ot extends z{constructor(t){super(),this.isFlushable=!0,this.bold=t}toAnnotation(){return new nt(this.bold)}}class Et extends w{constructor(){super(...arguments),this.type=f.CLEAR_FORMATTING,this.items=[S.BOLD,S.ITALIC,S.UNDERLINE,S.STRIKETHROUGH,S.TEXT_COLOR,S.CODE,A.CUSTOM_STYLE]}}class Tt extends z{constructor(){super(...arguments),this.isFlushable=!0}toAnnotation(){return new Et}}class vt extends z{constructor(t){super(),this.isFlushable=!0,this.code=t}toAnnotation(){return new rt(this.code)}}class Nt extends G{constructor(t){super(),this.isFlushable=!0,this.annotationType=t}toAnnotation(){}}class bt extends z{constructor(t){super(),this.isFlushable=!0,this.italic=t}toAnnotation(){return new st(this.italic)}}class Ct extends z{constructor({link:t,newText:e,needMergeNode:s,doSplit:n,type:r}){super(),this.isFlushable=!0,this.link=t,this.needMergeNode=s,this.newText=e,this.type=r,c(n)&&(this.doSplit=n)}toAnnotation(){return new gt(this.link)}}class Lt extends z{constructor(t){super(),this.isFlushable=!0,this.strikethrough=t}toAnnotation(){return new tt(this.strikethrough)}}class Rt extends z{constructor(t){super(),this.isFlushable=!0,this.underline=t}toAnnotation(){return new et(this.underline)}}class kt extends St{handleAction(t,e){const s=t.toAnnotation();if(t instanceof Nt)e.annotationMap.delete(t.annotationType);else{if(!(s instanceof Et))return s instanceof C||s instanceof V?(t instanceof Ct&&(c(t.newText)&&(e.text=t.newText),e.parent.apply(new mt(t.link.groupKey,[e],t.type))),t instanceof vt&&this.handleAction(new Tt,e),t instanceof Ot&&this.updateCustomStyleAnnotation(e,["fontWeight"]),t instanceof bt&&this.updateCustomStyleAnnotation(e,["fontStyle"]),(t instanceof Rt||t instanceof Lt)&&this.updateCustomStyleAnnotation(e,["textDecoration"]),void e.annotationMap.set(s.type,s)):void 0;s.items.forEach((t=>{e.deleteAnnotationByType(t)}))}}}class jt extends O{constructor(){super(...arguments),this.type=x.DELETE_LINK_GROUP}}class _t extends St{handleAction(t,e){e.text=t.newTextContent,!e.text&&e.annotationMap.has("LINK")&&e.apply(new jt)}}class $t extends O{constructor(t){super(),this.type=x.UPDATE_TEXT,this.newTextContent="",this.newTextContent=t}}class It extends St{handleAction(t,e){this.replaceSelectedText(t.textToBeInsert,t.currentRange,e)}replaceSelectedText(t,e,s){if(e&&e.startContainer&&e.endContainer){const{startContainer:n,endContainer:r,startOffset:i,endOffset:o}=e;let c=s.text;if(n===r&&i===o&&t)c=s.text.slice(0,i)+t+s.text.slice(i);else{const e=n.parentElement,a=r.parentElement,l=e&&m.getEntityByDOM(e),h=a&&m.getEntityByDOM(a);let u=0,d=s.text.length;l&&l===s?(u=i,d=n===r?o:d):h&&h===s&&(d=o),c=s.text.slice(0,u)+t+s.text.slice(d)}s.apply(new $t(c))}}}class Bt extends w{constructor(t){super(),this.type=S.INLINE_HTML,this.htmlTag=t}static from(t){const{htmlTag:e,child:s,customStyle:n,customClass:r,customAttribute:i}=t,o=new Bt(e);return o.groupId=t.groupId,o.child=s?Bt.from(s)[1]:void 0,o.customAttribute=i?D.from(i)[1]:void 0,o.customClass=r?M.from(r)[1]:void 0,o.customStyle=n?F.from(n)[1]:void 0,[S.INLINE_HTML,o]}clone(){var t,e,s,n;const r=new Bt(this.htmlTag);return r.groupId=this.groupId,r.child=null===(t=this.child)||void 0===t?void 0:t.clone(),r.customAttribute=null===(e=this.customAttribute)||void 0===e?void 0:e.clone(),r.customClass=null===(s=this.customClass)||void 0===s?void 0:s.clone(),r.customStyle=null===(n=this.customStyle)||void 0===n?void 0:n.clone(),r}renderProps(){var t,e,s;return Object.assign(Object.assign({},null===(t=this.customAttribute)||void 0===t?void 0:t.render()),{style:null===(e=this.customStyle)||void 0===e?void 0:e.renderStyle(),class:null===(s=this.customClass)||void 0===s?void 0:s.renderClass().join(" ")})}toJSON(){var t,e,s,n;return{inlineHtml:u({htmlTag:this.htmlTag,groupId:this.groupId,child:null===(t=this.child)||void 0===t?void 0:t.toJSON().inlineHtml,customAttribute:null===(e=this.customAttribute)||void 0===e?void 0:e.toJSON().customAttribute,customClass:null===(s=this.customClass)||void 0===s?void 0:s.toJSON().customClass,customStyle:null===(n=this.customStyle)||void 0===n?void 0:n.toJSON().customStyle})}}}class Dt extends St{handleAction(t,e){const s=e.parent.getAnnotationByType(f.LINK_GROUP);if(s){const n=e.annotationMap.get("LINK").link.groupKey,r=s.linkGroups.get(n);if(r){const i=r.indexOf(e);-1!==i&&(r.splice(i,1,...Array.isArray(t.splittedTextNodes)?t.splittedTextNodes:[t.splittedTextNodes]),s.linkGroups.set(n,r))}}}}class Mt extends St{handleAction(t,e){const s=e.parent.getAnnotationByType(f.LINK_GROUP);if(s){const t=e.annotationMap.get(S.LINK).link.groupKey,n=s.linkGroups.get(t);if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&s.linkGroups.delete(t),0===s.linkGroups.size&&e.parent.annotationMap.delete(f.LINK_GROUP)}}e.annotationMap.delete(S.LINK)}}class Ft extends C{constructor(t){super(),this.type=S.PLAIN_TEXT,this.plainText=!0,this.plainText=t}static from(t){return[S.PLAIN_TEXT,new Ft(t)]}clone(){return new Ft(this.plainText)}renderClass(){}renderStyle(){}toJSON(){return this.plainText?{plainText:this.plainText}:void 0}}class Ht extends z{constructor(t){super(),this.isFlushable=!0,this.textColor=t}toAnnotation(){return new wt(this.textColor)}}class Pt extends K{constructor(t,e,s,n){super(t,n),this.dtoName=Pt.dtoName,this.type=y.TEXT,this.parent=s,this.text=e,this.registerModifyStrategy()}static supportsHtmlTag(t){return["span","code"].includes(t)}static from(t,e,s={autoMatchFormat:!0}){const n=new Pt(t.id,t.text,e),{annotations:r}=t;return r&&(n.annotationMap=this.generateTextAnnotationMap(r,s,e,n)),n}static generateTextAnnotationMap(t,e,s,n){return new Map(Object.keys(t).map((r=>("link"===r&&t.link&&s&&n&&s.apply(new mt(t.link.groupKey,[n],"link")),this.createAnnotationEntity(r,t[r],e)))).filter(c))}static createAnnotationEntity(t,e,s){const n=!(!s||!s.autoMatchFormat);switch(t){case"bold":return nt.from(e);case"italic":return st.from(e);case"underline":return et.from(e);case"strikethrough":return tt.from(e);case"code":return rt.from(e,n);case"textColor":return wt.from(e);case"link":return gt.from(e,n);case"inlineHtml":return Bt.from(e);case"plainText":return Ft.from(e)}return K.createAnnotationEntity(t,e)}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof C||t instanceof B||t instanceof Bt)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"text",text:this.text})}toHtml(t){const e=this.getAnnotationByType(S.INLINE_HTML);return e?this.renderWithWrapperStr(e,t):this.renderTextStr(t)}cloneWithText(t){return new Pt(l(),t,this.parent,super.cloneAnnotations())}clone(t){return new Pt(this.id,this.text,t,super.cloneAnnotations())}isEmpty(){return!(this.getAnnotationByType(S.INLINE_HTML)||this.text&&""!==this.text&&"\n"!==this.text)}isTextNode(){return!0}getRangeEndOffset(){return!this.isContentEditable()&&this.parent?this.parent.children.indexOf(this)+1:"\n"===this.text?0:this.text.length}getRangeContainer(){const t=this.getElementRef();if(t)return this.isContentEditable()?t.firstChild:t.parentElement}isContentEditable(){return!0}getInlineHtmlTagAtDepth(t){const e=this.getInlineHtmlAnnotationAtDepth(t);return e?ht.has(e.htmlTag)?null:{htmlTag:e.htmlTag,attrStr:this.annotationAttrStr(e),groupId:e.groupId,annotation:e}:null}renderHtmlFromDepth(t,e){if(0===t)return this.toHtml(e);const s=this.getInlineHtmlAnnotationAtDepth(t);return s?this.renderWithWrapperStr(s,e):this.renderTextStr(e)}getInlineHtmlAnnotationAtDepth(t){let e=this.getAnnotationByType(S.INLINE_HTML);for(let s=0;s<t&&e;s++)e=e.child;return e}registerModifyStrategy(){const t=this.constructor.name;Pt.registerActionStrategyStatus[t]||(this.isContentEditable()&&(I.register(x.UPDATE_TEXT,t,new _t),I.register(x.REPLACE_SELECTED_TEXT,t,new It),I.register(x.LINK_GROUP_NODE_SPLIT,t,new Dt),I.register(Ct.name,t,new kt)),I.register(z.name,t,new yt),I.register(x.DELETE_LINK_GROUP,t,new Mt),I.register(Ot.name,t,new kt),I.register(Tt.name,t,new kt),I.register(bt.name,t,new kt),I.register(Rt.name,t,new kt),I.register(Ht.name,t,new kt),I.register(Lt.name,t,new kt),I.register(vt.name,t,new kt),I.register(G.name,t,new kt),Pt.registerActionStrategyStatus[t]=!0)}doAnnotationActionApply(t){const e=this.getAnnotationByType(f.SELECTION_RANGE);if(t instanceof z&&t.doSplit&&e){const e=I.get(z.name,this.constructor.name);if(e){const s=e.execute(t,this);s&&this.applyActionToNode(s,t)}}else this.applyActionToNode(this,t);"function"==typeof this.parent.mergeNodes&&this.parent.mergeNodes(t)}doModifyActionApply(t){I.executeTheStrategy(t,this)}applyActionToNode(t,e){const s=e.toAnnotation();if(e instanceof xt)return void this.syncUpSelectedNodes(t);s instanceof V||this.syncUpSelectedNodes(t);const n=I.get(e.constructor.name,t.constructor.name);if(n)return void n.execute(e,t);const r=I.get(G.name,Pt.name);r&&r.execute(e,t)}syncUpSelectedNodes(s){const r=this.getElementRef();if(r){const i=e.getSubjectFromParentNodeByEventId(r,n);i&&t.notify(i,{node:s})}}renderWithWrapperStr(t,e){const{htmlTag:s,child:n}=t,r=this.annotationAttrStr(t);return n?`<${s}${r}>${this.renderWithWrapperStr(n,e)}</${s}>`:ht.has(s)?`<${s}${r}>`:this.text?`<${s}${r}>${this.renderTextStr(e)}</${s}>`:`<${s}${r}></${s}>`}annotationAttrStr(t){const{customAttribute:e,customClass:s,customStyle:n}=t,r=[...(null==e?void 0:e.toString())||[],null==s?void 0:s.toString(),null==n?void 0:n.toString()].filter(c);return r.length>0?` ${r.join(" ")}`:""}renderTextStr(t){var e;const s=(null===(e=this.getAnnotationByType(S.CODE))||void 0===e?void 0:e.code)?"code":"span",n=super.generateAttributeString(t);return"\n"===this.text?"<br>":this.shouldRenderAsPlainText()?this.text:`<${s}${n}>${"code"===s?v(this.text):this.text}</${s}>`}shouldRenderAsPlainText(){const t=super.getAnnotationByType(S.PLAIN_TEXT);return!!t&&t.plainText&&0===Array.from(this.annotationMap.values()).filter((t=>t instanceof C&&!(t instanceof gt)&&!(t instanceof Ft)||t instanceof B)).length}}Pt.registerActionStrategyStatus={},Pt.htmlTag="span",Pt.dtoName="RTETextNode";class Jt extends O{constructor(t){super(),this.type=x.APPEND_CHILDREN,this.entityToBeAppended=t}}const Kt={fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",minHeight:"22px",fontWeight:"500"},Ut=Object.assign(Object.assign({},Kt),{marginTop:"0px",marginBottom:"0px"}),Wt={paragraph:Ut,title:Object.assign(Object.assign({},Kt),{fontSize:"36px",lineHeight:"40px",minHeight:"40px"}),subtitle:Object.assign(Object.assign({},Kt),{fontSize:"28px",lineHeight:"32px",minHeight:"32px"}),"heading-1":Object.assign(Object.assign({},Ut),{fontSize:"22px",lineHeight:"24px",minHeight:"24px"}),"heading-2":Object.assign(Object.assign({},Ut),{fontSize:"20px",lineHeight:"24px",minHeight:"24px"}),"heading-3":Object.assign(Object.assign({},Ut),{fontSize:"18px"}),"heading-4":Object.assign({},Ut),"heading-5":Object.assign(Object.assign({},Ut),{fontSize:"14px"}),"heading-6":Object.assign(Object.assign({},Ut),{fontSize:"12px"})};class Gt extends g{constructor(t){super(),this.type=p.TEXT_STYLE,this.textStyle=t}static from(t){return[p.TEXT_STYLE,new Gt(t)]}static getDefaultStyles(t){return t?Wt[t]:null}toJSON(){return{textStyle:this.textStyle}}clone(){return new Gt(this.textStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.textStyle?`v-rte--text-style-${this.textStyle}`:null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.textStyle?Gt.getDefaultStyles(this.textStyle):null}}class zt extends G{constructor(t,e){super(),this.isFlushable=!0,this.textStyle=t,this.bold=e}toAnnotation(){return new Gt(this.textStyle)}}class Vt extends St{handleAction(t,e){"list-item"!==e.type&&(e.type=t.textStyle),e.children.forEach(t.bold?t=>{const e=new Ot(!0);e.doSplit=!1,t.apply(e)}:t=>{t.apply(new Nt(S.BOLD))}),this.updateCustomStyleAnnotation(e,["fontFamily","lineHeight","fontWeight","fontSize"])}}class Xt extends O{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_AFTER,this.referChildren=t,this.childrenToBeInserted=e}}class qt extends O{constructor(t){super(),this.type=x.REPLACE_CHILD_NODES,this.newChildNodes=t}}class Yt extends St{handleAction(t,e){t.newBlock=this.splitTextNodeBlock(t.splitPointNode,t.startOffsetOfNode,e)}splitTextNodeBlock(t,e,s){if(t){const n=t.text.slice(0,e),r=t.text.slice(e),i=s.children.indexOf(t);if(i>-1){const o=s.children.slice(0,i),c=s.children.slice(i+1);t.isContentEditable()?(n&&o.push(t.cloneWithText(n)),r&&c.unshift(t.cloneWithText(r))):e>0?o.push(t):c.unshift(t),s.apply(new qt(o));const a=s.cloneWithNodes(c);return s.parent.apply(new Xt(s,a)),a}}}}class Zt extends St{handleAction(t,e){e.children=[],e.apply(new Jt(t.newChildNodes))}}class Qt extends O{constructor(t){super(),this.type=x.DELETE_CHILDREN,this.entityToBeRemoved=t}}class te extends St{handleAction(t,e){const s=t.blockNeedToBeMerged;if(e.type===s.type||"image"!==e.type&&"image"!==s.type){let t=s.children;"image"!==s.type&&(t=s.children.filter((t=>t.text))),e.apply(new Jt(t)),"image"!==e.type&&this.transferLinkGroups(t,e),s.parent.apply(new Qt(s))}}transferLinkGroups(t,e){t.forEach((t=>{if(!(t instanceof Pt))return;const s=t.getAnnotationByType(S.LINK);s&&e.apply(new mt(s.link.groupKey,[t],"link"))}))}}class ee extends St{handleAction(t,e){t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset,e)}lineBreakSingleBlock(t,e,s){if(t){const n=new Pt(l(),"\n",s),r=t.text.slice(0,e),i=t.text.slice(e),o=s.children.indexOf(t);if(o>-1){const c=s.children.slice(0,o),a=s.children.slice(o+1);t.isContentEditable()?(r&&c.push(t.cloneWithText(r)),i&&a.unshift(t.cloneWithText(i))):e>0?c.push(t):a.unshift(t),this.mergeLineBreakNodes(c,n,a,s)}return n}}mergeLineBreakNodes(t,e,s,n){if(0===s.length||s[0]&&""===s[0].text){const e=t[t.length-1];s.push(new Pt(l(),"\n",n,e&&new Map(e.annotationMap)))}n.apply(new qt([...t,e,...s]))}}class se extends St{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,e){const s=e.children,n=new Pt(l(),"\n",e),r=this.concatBlocksNodes(t.slice(1));return this.mergeLineBreakNodes(s,n,r,e),n}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new Qt(t)))})),e}mergeLineBreakNodes(t,e,s,n){(0===s.length||s[0]&&""===s[0].text)&&s.push(new Pt(l(),"\n",n,t[t.length-1]&&t[t.length-1].annotationMap)),n.apply(new qt([...t,e,...s]))}}class ne extends O{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_BEFORE,this.referChildren=t,this.childrenToBeInserted=e}}class re extends O{constructor(t,e){super(),this.type=x.SPLIT_BLOCK_WITH_NODE,this.splitPointNode=t,this.startOffsetOfNode=e}}function ie(t,e){const s=new Set(t.filter((t=>"RTEListItemBlock"===t.dtoName)));return t.filter((t=>{if("RTEListItemBlock"!==t.dtoName)return!0;let n=t.parent;for(;n.parent&&"RTEListItemBlock"===n.parent.dtoName;){const r=n.parent;if(s.has(r))return t.parent.type=e,!1;n=r.parent}return!0}))}class oe extends G{constructor(t){super(),this.isFlushable=!0,this.textAlign=t}toAnnotation(){return new j(this.textAlign)}}class ce extends St{handleAction(t,e){this.updateCustomStyleAnnotation(e,["textAlign"])}}class ae extends G{constructor(t){super(),this.isFlushable=!0,this.indent=t}toAnnotation(){return new _(this.indent)}}class le extends W{constructor(t,e,s){super(t),this.dtoName=le.dtoName,this.children=[],this.type=e;const{autoMatchFormat:n}=s||{autoMatchFormat:!0};n&&(this.annotationMap=le.isAcceptableTextStyle(e)?new Map([Gt.from(e)]):new Map([Gt.from("paragraph")]))}static from(t,e={autoMatchFormat:!0}){var s,n;const r=new le(t.id,t.type,e),i=e.autoMatchFormat?Object.assign(Object.assign({},t.annotations),{textStyle:null!==(n=null===(s=t.annotations)||void 0===s?void 0:s.textStyle)&&void 0!==n?n:r.type}):t.annotations;return r.children=t.nodes.map((t=>{const s=U.getRTENodeClass(t.type);if(s)return s.from(t,r,e)})).filter(c),i&&super.convertAnnotationsToMap(r.annotationMap,i),r}static createAnnotationEntity(t,e){return"textStyle"===t?Gt.from(e):super.createAnnotationEntity(t,e)}static isAcceptableTextStyle(t){return["title","subtitle","paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6"].includes(t)}mergeNodes(t){this.children=this.children.reduce(((e,s)=>{const n=e.at(-1);if(t instanceof Ct&&t.needMergeNode){const t=null==n?void 0:n.getAnnotationByType(S.LINK),r=s.getAnnotationByType(S.LINK);if(t&&r&&t.toEqual(r))return e}return[...e,s]}),[])}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,nodes:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag(),s=super.generateAttributeString(t),n=this.getChildrenHtml(t);return super.shouldRenderAsInternalWrapper()?n:[`<${e}${s}>`,n,`</${e}>`].join("")}cloneWithNodes(t){const e=new le(l(),this.type);return e.annotationMap=super.cloneAnnotations(),e.apply(new Jt(t)),e}clone(t){const e=new le(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}isNotEmpty(){return this.children.length>0&&this.children.some((t=>!t.isEmpty()))}getLastNode(){return this.children[this.children.length-1]}getBlockTag(){switch(this.type){case"title":case"subtitle":return"div";case"heading-1":return"h1";case"heading-2":return"h2";case"heading-3":return"h3";case"heading-4":return"h4";case"heading-5":return"h5";case"heading-6":return"h6";case"paragraph":default:return"p"}}getChildrenHtml(t){if(!this.isNotEmpty())return"<br>";const e=this.getAnnotationByType(f.LINK_GROUP);let s=this.renderGroupedNodesAtDepth(this.children,0,t);return e&&this.children.length>0&&(s=this.generateLinkHtml(e,s,t)),s}doAnnotationActionApply(t){const e=I.get(t.constructor.name,le.name);e&&e.execute(t,this)}renderGroupedNodesAtDepth(t,e,s){var n;let r="",i=0;for(;i<t.length;){const o=t[i].getInlineHtmlTagAtDepth(e);if(!(null==o?void 0:o.groupId)){r+=t[i].renderHtmlFromDepth(e,s),i++;continue}let c=i+1;for(;c<t.length&&(null===(n=t[c].getInlineHtmlTagAtDepth(e))||void 0===n?void 0:n.groupId)===o.groupId;)c++;if(c===i+1)r+=t[i].renderHtmlFromDepth(e,s);else{const n=this.renderGroupedNodesAtDepth(t.slice(i,c),e+1,s);r+=`<${o.htmlTag}${o.attrStr}>${n}</${o.htmlTag}>`}i=c}return r}generateLinkHtml(t,e,s){e="";let n=[];for(let r=0;r<this.children.length;r++){const i=this.children[r].getAnnotationByType(S.LINK),o=this.children[r+1]?this.children[r+1].getAnnotationByType(S.LINK):null;if(i){if(n.push(this.children[r]),!o||i.link.groupKey!==o.link.groupKey){const r=t.toString(i,{standalone:!0,filterInlineStyles:null==s?void 0:s.filterInlineStyles});e+=[`<a${r?` ${r}`:""}>`,this.renderGroupedNodesAtDepth(n,0,s),"</a>"].join(""),n=[]}}else e+=this.children[r].toHtml(s)}return e}}I.register(zt.name,le.name,new Vt),I.register(oe.name,le.name,new ce),I.register(ae.name,le.name,new class extends St{handleAction(t,e){this.updateCustomStyleAnnotation(e,["marginLeft"])}}),I.register(mt.name,le.name,new class extends St{handleAction(t,e){let s=e.getAnnotationByType(f.LINK_GROUP);if("update_link"===t.type){if(s){const e=s.linkGroups.get(t.groupKey);e&&s.linkGroups.set(t.groupKey,[e[0]])}}else{if(s){const e=s.linkGroups.get(t.groupKey)||[];s.linkGroups.set(t.groupKey,[...e,...t.nodes])}else s=t.toAnnotation(),s.linkGroups.set(t.groupKey,[...t.nodes]);e.annotationMap.set(f.LINK_GROUP,s)}}}),I.register(x.UNLINK_LINK_GROUP,le.name,new class extends St{handleAction(t,e){const s=e.getAnnotationByType(f.LINK_GROUP);s&&(s.linkGroups.size>1?s.linkGroups.delete(t.groupKey):e.annotationMap.delete(f.LINK_GROUP))}}),I.register(x.SPLIT_BLOCK_WITH_NODE,le.name,new Yt),I.register(x.REPLACE_CHILD_NODES,le.name,new Zt),I.register(x.MERGE_TWO_BLOCKS_NODES,le.name,new te),I.register(x.LINE_BREAK_SINGLE_BLOCK,le.name,new ee),I.register(x.LINE_BREAK_MULTIPLE_BLOCKS,le.name,new se),I.register(x.INSERT_IMAGE_TO_BLOCK,le.name,new class extends St{handleAction(t,e){const s=t.splitPointNode,n=t.startOffsetOfNode,r=t.imageBlockToBeInserted;if(this.isCaretPositionAtBlockEnd(e,s,n))e.parent.apply(new Xt(e,r));else if(this.isCaretPositionAtBlockStart(e,s,n))e.parent.apply(new ne(e,r));else{const t=new re(s,n);e.apply(t),e.parent.apply(new Xt(e,r))}}}),I.register(x.TRANSFORM_LIST_BLOCK,le.name,new class extends St{handleAction(t,e){const s=this.getRootContent(e);if(!s)return;const n=e.parent,r=s.createList(t.listType),i=ie(t.selectedBlocks,t.listType),o=i.map((t=>s.toListItem(t)));r.apply(new Jt(o)),n.apply(new Xt(t.selectedBlocks[0],r)),i.forEach((t=>{t.parent.apply(new Qt(t))}))}}),le.dtoName="RTETextBlock";class he extends St{copyListAnnotations(t,e){t.annotationMap.forEach(((t,s)=>{e.annotationMap.set(s,t.clone())}))}haveSameListAnnotations(t,e){var s,n;const r=Array.from(t.annotationMap.keys()).sort(),i=Array.from(e.annotationMap.keys()).sort();return JSON.stringify(r)===JSON.stringify(i)&&JSON.stringify(this.normalizeAnnotationValue(null!==(s=t.toJSON().annotations)&&void 0!==s?s:{}))===JSON.stringify(this.normalizeAnnotationValue(null!==(n=e.toJSON().annotations)&&void 0!==n?n:{}))}normalizeAnnotationValue(t){if(Array.isArray(t))return t.map((t=>this.normalizeAnnotationValue(t)));if(t&&"object"==typeof t){const e=t;return Object.keys(e).sort().reduce(((t,s)=>(t[s]=this.normalizeAnnotationValue(e[s]),t)),{})}return t}}class ue extends le{constructor(t,e,s){super(t,"list-item",s),this.dtoName=ue.dtoName,this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new ue(t.id,void 0,e);s.children=t.nodes.map((t=>Pt.from(t,s,e))),t.children&&(s.nestList=t.children.map((t=>{const n=xe.from(t,e);return n.parent=s,n})));const{annotations:n}=t;return n&&Object.entries(n).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);c(n)&&s.annotationMap.set(...n)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.nestList)||void 0===t?void 0:t.map((t=>t.toJSON()))})}toHtml(t){var e;const s=super.generateAttributeString(t),n=(null===(e=this.nestList)||void 0===e?void 0:e.length)?this.nestList.map((e=>e.toHtml(t))).join(""):"";return[`<li${s}>`,this.getChildrenHtml(t),n,"</li>"].join("")}cloneWithNodes(t){const e=new ue(l());return e.children=[],e.apply(new Jt(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new ue(l())}clone(t){var e;const s=new ue(this.id);return s.children=this.children.map((t=>t.clone(s))),s.annotationMap=super.cloneAnnotations(),s.nestList=null===(e=this.nestList)||void 0===e?void 0:e.map((t=>t.clone(s))),s.parent=t,s}}I.register(zt.name,ue.name,new Vt),I.register(oe.name,ue.name,new ce),I.register(x.LINE_BREAK_SINGLE_BLOCK,ue.name,new ee),I.register(x.LINE_BREAK_MULTIPLE_BLOCKS,ue.name,new se),I.register(x.DELETE_NEST_LIST,ue.name,new class extends St{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),I.register(x.SPLIT_BLOCK_WITH_NODE,ue.name,new Yt),I.register(x.REPLACE_CHILD_NODES,ue.name,new Zt),I.register(x.REPLACE_NEST_LIST,ue.name,new class extends he{handleAction(t,e){const s=this.mergeAdjacentSameType(t.newList);s.forEach((t=>{t.parent=e})),e.nestList=s}mergeAdjacentSameType(t){if(t.length<=1)return t;const e=[t[0]];for(let s=1;s<t.length;s++){const n=e[e.length-1],r=t[s];n.type===r.type&&this.haveSameListAnnotations(n,r)?(r.children.forEach((t=>{t.parent=n})),n.children=n.children.concat(r.children)):e.push(r)}return e}}),I.register(x.MERGE_TWO_BLOCKS_NODES,ue.name,new te),I.register(x.INSERT_IMAGE_TO_BLOCK,ue.name,new class extends St{handleAction(t,e){e.parent.apply(t)}}),ue.dtoName="RTEListItemBlock";class de extends O{constructor(t){super(),this.type=x.REPLACE_NEST_LIST,this.newList=t}}class fe extends O{constructor(t){super(),this.type=x.TRANSFORM_PARAGRAPH_BLOCK,this.isFlushable=!0,this.selectedBlocks=t}}class pe extends W{constructor(t,e){super(t),this.dtoName=pe.dtoName,this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const s=new pe(t.id,t.htmlTag),{annotations:n}=t;return n&&super.convertAnnotationsToMap(s.annotationMap,n),s.children=this.generateBlockChildren(t.children,e,s),s}clone(t){const e=new pe(this.id,this.htmlTag);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return!0}toHtml(t){const e=this.htmlTag,s=super.generateAttributeString(t);return ht.has(this.htmlTag)?`<${e}${s}>`:[`<${e}${s}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,htmlTag:this.htmlTag,children:this.children.map((t=>t.toJSON()))})}}pe.dtoName="RTEHtmlBlock";class we extends St{getOrderedContiguousItems(t,e){const s=[...e].sort(((e,s)=>t.children.indexOf(e)-t.children.indexOf(s))),n=t.children.indexOf(s[0]);return n<0?[]:t.children.slice(n,n+s.length).every(((t,e)=>t===s[e]))?s:[]}}class ge extends O{constructor(t){super(),this.type=x.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class me extends g{constructor(){super(...arguments),this.type=p.LIST}static getDefaultStyles(){return{paddingLeft:"8px",marginLeft:"16px"}}static getDefaultMarkerStyles(){return{fontSize:"16px"}}renderStyle(t){return(null==t?void 0:t.standalone)?me.getDefaultStyles():null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new me}toJSON(){}}class xe extends W{constructor(t,e,s){super(t),this.dtoName=xe.dtoName,this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:n}=s||{autoMatchFormat:!0};n&&this.annotationMap.set(p.LIST,new me)}static from(t,e={autoMatchFormat:!0}){const s=new xe(t.id,t.type,e),{annotations:n}=t;return n&&Object.entries(n).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);c(n)&&s.annotationMap.set(...n)})),s.children=t.blocks.map((t=>{const n=ue.from(t,e);return n.parent=s,n})),s}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return D.from(e);case"customClass":return M.from(e);case"customStyle":return F.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag();return[`<${e}${super.generateAttributeString(t)}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(t){const e=new xe(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getBlockTag(){return"number-list"===this.type?"ol":"ul"}}I.register(x.TRANSFORM_LIST_BLOCK,xe.name,new class extends he{handleAction(t,e){var s;const n=t.selectedBlocks,r=n.every((t=>t.parent===e)),i=this.getRootContent(e);if(!i)return;if(e.parent instanceof ue){if(r){const r=this.createListFromSource(i,e,t.listType);r.apply(new Jt(e.children));const o=e.parent,c=(null!==(s=o.nestList)&&void 0!==s?s:[]).map((t=>t===e?r:t));o.apply(new de(c)),n.forEach((t=>t.children.map((t=>t.apply(new xt)))))}else this.handleCrossListTransform(t,e);return}if(!r&&n.every((t=>t instanceof ue))){const e=new Set(n.map((t=>t.parent))),s=new Set;e.forEach((e=>{e.type!==t.listType&&this.convertListTypeInPlace(e,t.listType)}));const r=new Set;return n.forEach((t=>{const e=t.parent;e.parent instanceof ue||(s.add(e),r.add(e.parent))})),r.forEach((t=>{for(let e=0;e<t.children.length-1;){const n=t.children[e],r=t.children[e+1];n instanceof xe&&r instanceof xe&&n.type===r.type&&this.haveSameListAnnotations(n,r)&&s.has(n)&&s.has(r)?(n.apply(new Jt([...r.children])),t.apply(new Qt(r)),s.delete(r)):e++}})),void n.forEach((t=>t.children.map((t=>t.apply(new xt)))))}const o=this.createListFromSource(i,e,t.listType),c=e.parent;if(r)o.apply(new Jt(e.children)),c.apply(new Xt(e,o)),c.apply(new Qt(e)),n.forEach((t=>t.children.map((t=>t.apply(new xt)))));else{const s=ie(t.selectedBlocks,t.listType),n=s.map((t=>i.toListItem(t)));o.apply(new Jt(n)),c.apply(new Xt(e,o)),s.forEach((t=>{t.parent.apply(new Qt(t))})),0===e.children.length&&c.apply(new Qt(e))}}convertListTypeInPlace(t,e){var s;const n=this.getRootContent(t);if(!n)return;const r=t.parent,i=this.createListFromSource(n,t,e);if(i.apply(new Jt([...t.children])),r instanceof ue){const e=(null!==(s=r.nestList)&&void 0!==s?s:[]).map((e=>e===t?i:e));r.apply(new de(e))}else r.apply(new Xt(t,i)),r.apply(new Qt(t))}handleCrossListTransform(t,e){if(!(e.parent instanceof ue))return;const s=this.getRootContent(e);if(!s)return;const n=e.parent,r=n.nestList,i=new Set(t.selectedBlocks.filter((t=>t instanceof ue)).map((t=>t.parent)).filter((t=>r.includes(t))));if(!i.size)return;const o=r.map((e=>{if(!i.has(e))return e;const n=this.createListFromSource(s,e,t.listType);return n.apply(new Jt(e.children)),n}));n.apply(new de(o)),t.selectedBlocks.forEach((t=>t.children.map((t=>t.apply(new xt)))))}createListFromSource(t,e,s){const n=t.createList(s);return this.copyListAnnotations(e,n),n}}),I.register(x.TRANSFORM_PARAGRAPH_BLOCK,xe.name,new class extends he{handleAction(t,e){const s=this.getSelectedSegments(t.selectedBlocks);0!==s.length&&this.hasConsistentTargetAndRoot(s,e)&&(this.syncSelection(s),[...s].reverse().forEach((t=>this.transformSegment(t))))}hasConsistentTargetAndRoot(t,e){if(t[0][0].parent!==e)return!1;const s=this.getRootContent(e);return Boolean(s&&t.every((t=>t.every((t=>this.getRootContent(t)===s)))))}syncSelection(t){t.forEach((t=>{t.forEach((t=>{t.children.forEach((t=>t.apply(new xt)))}))}))}transformSegment(t){const e=t[0].parent,s=new fe(t);e.parent instanceof ue?this.handleNestedListCase(s,e):this.handleRootListCase(s,e)}handleRootListCase(t,e){const s=this.getRootContent(e);let n=!1,r=!1;const i=t.selectedBlocks,o=[];if(i.forEach((t=>{var s;t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),o.push(this.toParagraph(t));for(const e of null!==(s=t.nestList)&&void 0!==s?s:[])this.appendListBlock(o,e)})),n)e.parent.apply(new ne(e,...o));else if(r)e.parent.apply(new Xt(e,...o));else{const t=e.children.indexOf(i[0]),n=e.children.indexOf(i[i.length-1]),r=this.createListFromSource(s,e);r.apply(new Jt(e.children.slice(0,t)));const c=this.createListFromSource(s,e);c.apply(new Jt(e.children.slice(n+1)));const a=o[o.length-1];a instanceof xe&&c.children.length>0&&a.type===c.type&&this.haveSameListAnnotations(a,c)?(a.apply(new Jt(c.children)),e.parent.apply(new ne(e,r,...o))):e.parent.apply(new ne(e,r,...o,c)),e.parent.apply(new Qt(e))}if(i.map((t=>{t.nestList=[],e.apply(new Qt(t))})),0===e.children.length)e.parent.apply(new Qt(e));else if(n){const t=o[o.length-1];t instanceof xe&&t.type===e.type&&this.haveSameListAnnotations(t,e)&&(t.apply(new Jt([...e.children])),e.parent.apply(new Qt(e)))}}handleNestedListCase(t,e){const s=t.selectedBlocks,n=this.getRootContent(e),r=e.children.indexOf(s[0]),i=[];s.forEach((t=>{var e;i.push(this.toParagraph(t));for(const s of null!==(e=t.nestList)&&void 0!==e?e:[])this.appendListBlock(i,s)}));const o=e.children.indexOf(s[s.length-1]),c=e.children.slice(o+1),a=[];let l=e;for(;l.parent instanceof ue;){const t=l.parent,e=t.parent,s=e.children.indexOf(t),n=t.nestList,r=n.indexOf(l),i=n.slice(r+1);a.push({list:e,ancestorIndex:s,trailingNestLists:i}),l=e}const h=l,u=h.parent,d=[];c.length>0&&d.push({items:c,sourceList:e});for(const t of a){for(const e of t.trailingNestLists)e.children.length>0&&d.push({items:[...e.children],sourceList:e});const e=t.list.children.slice(t.ancestorIndex+1);e.length>0&&d.push({items:e,sourceList:t.list})}const f=[];for(const t of d){const e=f[f.length-1];e&&e.sourceList.type===t.sourceList.type&&this.haveSameListAnnotations(e.sourceList,t.sourceList)?e.items.push(...t.items):f.push({items:[...t.items],sourceList:t.sourceList})}f.map((t=>{const e=this.createListFromSource(n,t.sourceList);return e.apply(new Jt(t.items)),e})).forEach((t=>this.appendListBlock(i,t))),e.children=e.children.slice(0,r);const p=e.parent,w=p.nestList,g=w.indexOf(e);let m=w.slice(0,g+1);0===e.children.length&&(m=m.filter((t=>t!==e))),p.apply(new de(m));for(const t of a)if(t.list.children=t.list.children.slice(0,t.ancestorIndex+1),t.trailingNestLists.length>0){const e=t.list.children[t.ancestorIndex],s=e.nestList,n=s.indexOf(t.trailingNestLists[0]);if(n>=0){const t=s.slice(0,n);e.apply(new de(t))}}u.apply(new Xt(h,...i))}getSelectedSegments(t){const e=Array.from(new Set(t.filter((t=>t instanceof ue)))).map((t=>({item:t,path:this.getStructuralPath(t)}))).filter((t=>null!==t.path)).sort(((t,e)=>this.compareStructuralPaths(t.path,e.path))).map((t=>t.item)),s=[];for(const t of e){const e=s[s.length-1],n=null==e?void 0:e[e.length-1];(null==n?void 0:n.parent)===t.parent&&t.parent.children.indexOf(t)-t.parent.children.indexOf(n)==1?e.push(t):s.push([t])}return s}getStructuralPath(t){var e;const s=[],n=new Set;let r=t,i=t.parent;for(;!n.has(i);){n.add(i);const t=i.children.indexOf(r);if(t<0)return null;if(s.unshift(t),"VegaRTEContent"===i.parent.dtoName||"RTEHtmlBlock"===i.parent.dtoName){const t=this.getContainerPath(i);return t?[...t,...s]:null}if(!(i.parent instanceof ue))return null;const o=i.parent,c=(null!==(e=o.nestList)&&void 0!==e?e:[]).indexOf(i);if(c<0)return null;s.unshift(c),r=o,i=o.parent}return null}getContainerPath(t){const e=[],s=new Set;let n=t,r=t.parent;for(;r instanceof pe;){if(s.has(r))return null;s.add(r);const t=r.children.indexOf(n);if(t<0)return null;e.unshift(t),n=r,r=r.parent}const i=r.children.indexOf(n);return i<0?null:(e.unshift(i),e)}compareStructuralPaths(t,e){const s=Math.min(t.length,e.length);for(let n=0;n<s;n++)if(t[n]!==e[n])return t[n]-e[n];return t.length-e.length}appendListBlock(t,e){const s=t[t.length-1];s instanceof xe&&s.type===e.type&&this.haveSameListAnnotations(s,e)?s.apply(new Jt([...e.children])):t.push(e)}createListFromSource(t,e){const s=t.createList(e.type);return this.copyListAnnotations(e,s),s}toParagraph(t){const e=new le(l(),"paragraph");return e.apply(new Jt(t.children)),e.annotationMap=t.annotationMap,e}}),I.register(x.INSERT_IMAGE_TO_BLOCK,xe.name,new class extends St{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new Xt(e,t.imageBlockToBeInserted):t)}}),I.register(x.NEST_LIST_ITEMS,xe.name,new class extends we{handleAction(t,e){var s,n;const r=this.getOrderedContiguousItems(e,t.selectedBlocks);if(!r.length)return;const i=e.children.indexOf(r[0]);if(i<=0)return;const o=e.children[i-1],c=new Set(r);let a=null===(s=o.nestList)||void 0===s?void 0:s[o.nestList.length-1];a||(a=new xe(l(),e.type),o.apply(new de([...null!==(n=o.nestList)&&void 0!==n?n:[],a]))),e.children=e.children.filter((t=>!c.has(t))),a.children=a.children.concat(r),r.forEach((t=>{var e;t.parent=a,(null===(e=t.nestList)||void 0===e?void 0:e.length)&&this.unifyDescendantNestLists(t,t.nestList[0].type),t.children.forEach((t=>t.apply(new xt)))}))}unifyDescendantNestLists(t,e){var s;if(!(null===(s=t.nestList)||void 0===s?void 0:s.length))return;let n=!1;for(const s of t.nestList){s.type!==e&&(s.type=e,n=!0);for(const t of s.children)this.unifyDescendantNestLists(t,e)}n&&t.apply(new de([...t.nestList]))}}),I.register(x.UNNEST_LIST_ITEMS,xe.name,new class extends we{handleAction(t,e){var s;const n=this.getOrderedContiguousItems(e,t.selectedBlocks),r=e.parent;if(!(n.length&&r instanceof ue))return;const i=e.children.indexOf(n[0]),o=e.children.indexOf(n[n.length-1]);if(i<0||o<i)return;const c=r,a=c.parent,h=a.children.indexOf(c);if(h<0)return;const u=e.children.slice(o+1),d=new Set(n);if(e.children=e.children.filter((t=>!d.has(t))),a.children=[...a.children.slice(0,h+1),...n,...a.children.slice(h+1)],n.forEach((t=>{t.parent=a,t.children.forEach((t=>t.apply(new xt)))})),u.length>0){const t=new Set(u);e.children=e.children.filter((e=>!t.has(e)));const r=n[n.length-1];let i=null===(s=r.nestList)||void 0===s?void 0:s[r.nestList.length-1];if(i&&i.type!==e.type&&(i=null),!i){i=new xe(l(),e.type);const t=Array.isArray(r.nestList)?r.nestList:[];r.apply(new de([...t,i]))}i.children=i.children.concat(u),u.forEach((t=>{t.parent=i}))}const f=this.collectTrailingNestLists(c,e);if(f.length>0){const t=n[n.length-1],e=Array.isArray(t.nestList)?t.nestList:[];t.apply(new de([...e,...f]))}0===e.children.length&&c.apply(new ge(e))}collectTrailingNestLists(t,e){var s;const n=null!==(s=t.nestList)&&void 0!==s?s:[],r=n.indexOf(e);if(r<0||r>=n.length-1)return[];const i=n.slice(r+1);return t.apply(new de(n.slice(0,r+1))),i}}),xe.dtoName="RTEListBlock";class Se extends St{getPreviousNode(t){var e;const s=t.parent,n=s.children.indexOf(t);if(n>0)return s.children[n-1];if(s.parent){if(s.isListItemBlock()&&0===s.parent.children.indexOf(s)&&s.parent.parent instanceof ue){const t=s.parent.parent;if(0!==(null!==(e=t.nestList)&&void 0!==e?e:[]).indexOf(s.parent)){const t=this.getPreviousBlock(s);return t?this.getBlockLastNode(t):null}const n=t.children;return n.length>0?n[n.length-1]:null}const t=this.getPreviousBlock(s);if(t)return this.getBlockLastNode(t)}}getNextNode(t){const e=t.parent,s=e.children.indexOf(t);if(e.children[s+1])return e.children[s+1];if(e.parent){const t=this.getNextBlock(e);if(t)return this.getBlockFirstNode(t)}}isContentFirstNode(t){const e=t.parent,s=e.children.indexOf(t),n=e.parent;if(e.isListItemBlock()){const t=n.parent;return 0===s&&Array.isArray(n.children)&&n.children[0]===e&&"list-item"!==t.type&&Array.isArray(t.children)&&t.children[0]===n}return 0===s&&Array.isArray(n.children)&&n.children[0]===e}getPreviousBlock(t){var e;if(t.parent instanceof ue){const s=null!==(e=t.parent.nestList)&&void 0!==e?e:[],n=s.indexOf(t);if(n>0)return s[n-1];if(0===n)return t.parent}if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(e>0)return t.parent.children[e-1];if(this.isRTEBlock(t.parent)&&0===e)return this.getPreviousBlock(t.parent)}}getBlockLastNode(t){return t.getLastNode()}getBlockFirstNode(t){if("number-list"===t.type||"bullet-list"===t.type){if(t.children)return this.getBlockFirstNode(t.children[0])}else if(t.children)return t.children[0]}getNextBlock(t){if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(t.parent.children[e+1])return t.parent.children[e+1];if("list-item"===t.type&&t.parent.children.length===e+1)return this.getNextBlock(t.parent)}}isRTEBlock(t){return t&&"VegaRTEContent"!==t.dtoName}}class Ae extends O{constructor(t,e){super(),this.isFlushable=!0,this.type=x.UPDATE_CODE_BLOCK,this.content=t,this.language=e}}class ye extends G{constructor(t){super(),this.isFlushable=!1,this.range=t}toAnnotation(){return new V(this.range)}}class Oe extends K{constructor(){super(...arguments),this.type="decorator-node",this.isSelected=!1}static isDecoratorNodeContainerElement(t){return t&&t.classList.contains(Oe.DECORATOR_CONTAINER_CLASS)}static getDecoratorNodeElement(t){return t.querySelector(`.${Oe.DECORATOR_NODE_CLASS}`)}getRangeEndOffset(){return 1}getRangeContainer(){const t=this.getElementRef();if(t)return d(t,`.${Oe.DECORATOR_CONTAINER_CLASS}`)}isContentEditable(){return!1}}Oe.DECORATOR_CONTAINER_CLASS="v-internal-decorator-container",Oe.DECORATOR_NODE_CLASS="v-internal-decorator-node";class Ee extends b{constructor(){super(...arguments),this.stylesToBeFiltered=Ee.STYLES,this.elementTagName="pre code"}canFilter(t){return L.isCodeBlockNode(t)}canRefill(t,e){return!1}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}Ee.STYLES={boxSizing:"border-box",color:"rgba(var(--v-text-primary, 32, 54, 69, 1))",textAlign:"left",fontFamily:"'Roboto Mono'",fontWeight:"400",lineHeight:"22px",fontSize:"16px",whiteSpace:"pre-wrap",minHeight:"22px",tabSize:"2px"};class Te extends Oe{constructor(t,e,s,n){super(t),this.dtoName=Te.dtoName,this.type=y.CODE_BLOCK_NODE,this.text="",this.annotationMap=new Map,this.text=e,this.parent=n,this.language=s,this.annotationMap.set(A.CUSTOM_STYLE,new F(Ee.STYLES))}toJSON(){return{id:this.id,type:"text",text:this.text,language:this.language}}toHtml(t){return`<code${this.generateAttributeString(t)}>${T(this.text)}</code>`}clone(t){return new Te(this.id,this.text,this.language,t)}doAnnotationActionApply(t){I.executeTheStrategy(t,this)}doModifyActionApply(t){I.executeTheStrategy(t,this)}}I.register(x.UPDATE_CODE_BLOCK,Te.name,new class extends St{handleAction(t,e){const{content:s,language:n}=t;e.language=n,e.text=s}}),I.register(ye.name,Te.name,new class extends St{handleAction(t,e){e.annotationMap.set(f.SELECTION_RANGE,t.toAnnotation())}}),Te.dtoName="RTECodeBlockNode";var ve;!function(t){t.CSS="css",t.HTML="html",t.JavaScript="js",t.JSX="jsx",t["Plain Text"]="plainText",t.TypeScript="ts",t.TSX="tsx"}(ve||(ve={}));class Ne extends St{handleAction(t,e){e.children=e.children.filter((e=>e!==t.entityToBeRemoved)),0===e.children.length&&"parent"in e&&e.parent&&(e.isListItemBlock()&&e.nestList&&e.nestList.length||e.parent.apply(new Qt(e)))}}class be extends b{constructor(){super(...arguments),this.stylesToBeFiltered=be.STYLES,this.elementTagName="pre"}canFilter(t){return L.isCodeBlock(t.dtoName)}canRefill(t,e){return!1}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}be.STYLES={backgroundColor:"rgba(var(--v-bg-secondary, 245, 247, 247, 1))",padding:"12px"};class Ce extends W{constructor(t,e,s){super(t),this.dtoName=Ce.dtoName,this.type="code-block",this.annotationMap=new Map([F.from(be.STYLES)]),this.children=[new Te(`${t}-1`,e,s,this)]}static from(t){return new Ce(t.id,t.content,t.language)}toJSON(){const{language:t,text:e}=this.children[0];return{id:this.id,type:"code-block",content:e,language:t}}toHtml(t){const{language:e=ve["Plain Text"]}=this.children[0];return`<pre data-language="${e}"${super.generateAttributeString(t)}>${this.children.map((e=>e.toHtml(t)))}</pre>`}clone(t){const e=Ce.from(this.toJSON());return e.parent=t,e}apply(n){if(n instanceof O&&I.executeTheStrategy(n,this),n.isFlushable){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}isNotEmpty(){return!!this.children.length}getLastNode(){return this.children[0]}isSelected(){return this.children[0].annotationMap.has(f.SELECTION_RANGE)}}I.register(x.DELETE_CODE_BLOCK,Ce.name,new class extends Se{handleAction(t,e){const s=e.children[0],n=e.parent;if(n){let t=this.getPreviousNode(s),r=this.getRTENodeEndOffset(t);t||(t=this.getNextNode(s),r=0),n.apply(new Qt(e));const i=t?m.getDOMByEntity(t):null;if(0===n.children.length){const s=le.from({id:l(),type:"paragraph",nodes:[{id:l(),type:"text",text:""}]});e.parent.apply(new Jt([s])),t=s.children[0],r=0}this.notifyUpdateSelection(t,i,r,e)}}notifyUpdateSelection(s,r,i,o){const c=m.getDOMByEntity(o);if(c){const o=e.getSubjectFromParentNodeByEventId(c,n);o&&t.notify(o,{node:s,updateDirectly:!!r,offset:i})}}getRTENodeEndOffset(t){return t?t.getRangeEndOffset():0}}),I.register(x.DELETE_CHILDREN,Ce.name,new Ne),I.register(x.SWITCH_OUT_FROM_CODE_BLOCK,Ce.name,new class extends St{handleAction(s,r){const{content:i,language:o}=s,c=i.split("\n"),a=new Ae(c.slice(0,c.length-2).join("\n"),o);a.isFlushable=!1,r.children[0].apply(a);const h=le.from({id:l(),type:"paragraph",nodes:[{id:l(),text:"",type:"text"}]});r.parent.apply(new Xt(r,h));const u=m.getDOMByEntity(r);if(u){const s=e.getSubjectFromParentNodeByEventId(u,n);s&&t.notify(s,{node:h.children[0]})}}}),I.register(x.INSERT_IMAGE_TO_BLOCK,Ce.name,new class extends St{handleAction(t,e){e.parent.apply(new Xt(e,t.imageBlockToBeInserted))}}),Ce.CODE_BLOCK_PLACEHOLDER_CLASS_NAME="code-block-placeholder-element",Ce.dtoName="RTECodeBlock";export{pe as $,I as A,g as B,A as C,Zt as D,ce as E,Se as F,Ne as G,oe as H,Xt as I,ge as J,de as K,xe as L,O as M,S as N,q as O,X as P,E as Q,Pt as R,re as S,ot as T,$t as U,lt as V,it as W,Y as X,Q as Y,Z,Gt as _,W as a,L as a0,me as a1,j as a2,rt as a3,R as a4,be as a5,Ee as a6,xt as a7,$ as a8,ve as a9,M as aa,at as ab,ct as ac,Ct as ad,Ae as ae,ye as af,Ht as ag,ut as ah,Ot as ai,bt as aj,Rt as ak,zt as al,nt as am,p as an,Tt as ao,vt as ap,Lt as aq,ae as ar,fe as as,v as at,ft as au,dt as av,pt as aw,le as b,P as c,St as d,Jt as e,K as f,ne as g,f as h,x as i,G as j,Qt as k,D as l,U as m,b as n,Oe as o,Ce as p,ue as q,Te as r,m as s,F as t,J as u,C as v,y as w,B as x,qt as y,te as z}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,F as t,f as i,r as o,c as r,H as s,g as n}from"./p-6b2342e0.js";import{g as l,s as a}from"./p-519a7d55.js";import{c as d,M as h,V as c,I as p,L as v}from"./p-6e1ab235.js";import{m as u,s as f}from"./p-6bd5c49b.js";import{V as g,I as m}from"./p-8ce9e214.js";import{f as w,e as x,m as b,n as y}from"./p-528748fa.js";import{a1 as S,a2 as R}from"./p-456f678b.js";import{c as C}from"./p-3a620268.js";import{D as j,d as I}from"./p-526e3634.js";import{d as T,z as D,A,V as k,u as O,g as E,s as M,h as L,B as z,a as K}from"./p-5447a8e8.js";import{K as H}from"./p-d609c3fd.js";import{c as V}from"./p-6a334573.js";import{E as W}from"./p-4fd0cf01.js";import{A as N}from"./p-83ad8988.js";import{h as P,l as $}from"./p-f0e828d8.js";import{i as F,e as B}from"./p-d27ae9ff.js";import{a as _,V as U}from"./p-6db1b9ac.js";import{c as G}from"./p-daba4af1.js";import{M as Y}from"./p-78a57a17.js";import{C as q}from"./p-2d0d575f.js";import{m as X,x as J,w as Q,n as Z}from"./p-4a2fe3a4.js";import{c as ee}from"./p-66647244.js";import{C as te}from"./p-014cd411.js";import{S as ie,l as oe}from"./p-cb378636.js";import{r as re}from"./p-77e64f26.js";import{T as se}from"./p-cd69aeae.js";import{C as ne}from"./p-2c737fc8.js";import{C as le}from"./p-2bb5a232.js";import{S as ae}from"./p-c41a2d4a.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-b438e68b.js";import"./p-874e5624.js";import"./p-331a62d5.js";import"./p-6c95a6a3.js";import"./p-781fd6e0.js";import"./p-262ec334.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-b75ee3ba.js";import"./p-1e0a8fd3.js";import"./p-0c667d6a.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-1fb56e14.js";import"./p-8c30a60d.js";import"./p-5f377954.js";import"./p-4866e390.js";var de=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class he extends c{componentDidRender(){this.setVirtualContainer(),this.appendItemsToContentBox(),this.appendDropdownToContentBox()}getDropdownRef(){return this.dropdownRef}getDropdownContentBoxRef(){return this.dropdownContentBoxRef}getVirtualContainerRef(){return this.virtualContainerRef}getNextActiveItem(e){const t=this.getAllItems(),i=this.getCurrentActiveItem();if(i){const o=t.findIndex((e=>e===i)),r="ArrowDown"===e?o+1:o-1,s=t[r];return s?s.disabled?this.findNextCallFocusItem(t,r,e):s:null}return t[0]}render(){return e(t,null,this.renderContentSlot(),this.renderDropdown())}renderContentSlot(){return this.renderModeController.isSourceRenderMode()?e("slot",null):e(t,null,e("slot",{name:"dropdown-content"}),e("slot",null))}renderDropdown(){return e("vega-dropdown-content-box",{ref:e=>this.dropdownContentBoxRef=e,style:{maxHeight:`${this.maxHeight}px`},"data-parent-ref":this.host,role:"dialog","aria-modal":"true","aria-label":"Dropdown menu list","data-vega-no-event-prevent":this.host&&"true"===this.host.dataset.vegaNoEventPrevent?"true":"false"},e("div",{ref:e=>this.dropdownRef=e,class:"vega-dropdown"},e("div",{class:"vega-dropdown-actions"},this.resetRenderer.render(),this.searchRenderer.render(),this.createRenderer.render()),e("div",null,e("div",{class:"vega-dropdown-container"},this.renderModeController.isSourceRenderMode()?this.listRenderer.renderBySource():this.listRenderer.renderBySlot()))))}setVirtualContainer(){this.virtualContainerRef=this.dropdownRef.querySelector(".vega-dropdown-container")}appendItemsToContentBox(){if(!this.renderModeController.isSourceRenderMode()){const e=this.host.querySelector("[slot='items']");!this.dropdownContentBoxRef.contains(e)&&e&&this.dropdownContentBoxRef.append(e)}}appendDropdownToContentBox(){var e,t;(null===(e=this.dropdownContentBoxRef.shadowRoot)||void 0===e?void 0:e.contains(this.dropdownRef))||null===(t=this.dropdownContentBoxRef.shadowRoot)||void 0===t||t.append(this.dropdownRef)}getAllItems(){const e=this.dropdownRef.querySelector("vega-virtual-scroll");return Array.from((e?e.shadowRoot:this.dropdownRef).querySelectorAll("vega-dropdown-item"))}getCurrentActiveItem(){return w(l(this.dropdownContentBoxRef.shadowRoot),"vega-dropdown-item")}findNextCallFocusItem(e,t,i){const o="ArrowDown"===i?t+1:t-1,r=e[o];return r?r.disabled?this.findNextCallFocusItem(e,o,i):r:null}}de([d()],he.prototype,"host",void 0),de([d()],he.prototype,"maxHeight",void 0),de([d()],he.prototype,"searchable",void 0),de([d()],he.prototype,"searchRenderer",void 0),de([d()],he.prototype,"createRenderer",void 0),de([d()],he.prototype,"listRenderer",void 0),de([d()],he.prototype,"renderModeController",void 0),de([d()],he.prototype,"resetRenderer",void 0),de([d()],he.prototype,"isDropdownShow",void 0),de([h("componentDidRender")],he.prototype,"componentDidRender",null);var ce=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class pe extends c{componentWillLoad(){this.handleSource()}watchSource(){this.handleSource()}watchCaseSensitive(){this.handleSource()}watchAllowSelectAll(){this.handleSource()}setRenderSource(){this.renderModeController.isSourceRenderMode()&&(this.sourceForRender=this.searchController.search(this.selectAllController.getSourceWithSelectAll(this.source)))}handleSource(){this.validSource(),this.setRenderSource()}validSource(){this.source=S(this.source,R)?this.source:[]}}ce([d({writable:!0})],pe.prototype,"source",void 0),ce([d({writable:!0})],pe.prototype,"sourceForRender",void 0),ce([d()],pe.prototype,"searchController",void 0),ce([d()],pe.prototype,"renderModeController",void 0),ce([d()],pe.prototype,"selectAllController",void 0),ce([h("componentWillLoad")],pe.prototype,"componentWillLoad",null),ce([h("watchSource")],pe.prototype,"watchSource",null),ce([h("watchCaseSensitive")],pe.prototype,"watchCaseSensitive",null),ce([h("watchAllowSelectAll")],pe.prototype,"watchAllowSelectAll",null);var ve=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class ue extends c{constructor(){super(...arguments),this.onItemAdd=()=>{this.createEventEmitter.emit(this.searchString),this.appenderController.hide()}}render(){return this.searchString&&this.dynamicOption&&!this.childrenController.isLabelExist(this.searchString)&&e("fragment",null,e("div",{class:"vega-dropdown-add-item",onClick:this.onItemAdd,tabIndex:0,role:"button","aria-label":`Add ${this.searchString}`,onKeyDown:C()},e("div",null,e("vega-icon",{icon:"plus-sign"})),e("span",{class:"v-break-all"},`Add "${this.searchString}"`)),e("div",{class:"vega-dropdown-divider"}))}}ve([d()],ue.prototype,"searchString",void 0),ve([d()],ue.prototype,"dynamicOption",void 0),ve([d()],ue.prototype,"sourceForRender",void 0),ve([d()],ue.prototype,"appenderController",void 0),ve([d()],ue.prototype,"childrenController",void 0),ve([d()],ue.prototype,"renderModeController",void 0),ve([d()],ue.prototype,"createEventEmitter",void 0);var fe=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class ge extends c{constructor(){super(...arguments),this.defaultMaxHeightOfItemsContainer=400}getVirtualScrollRef(){return this.virtualScrollRef}getTemplateContainerRef(){return this.templateContainerRef}renderBySource(){return e(t,null,this.renderLoading(),this.renderDropdownListBySource())}renderBySlot(){return e(t,null,this.renderLoading(),this.renderDropdownListBySlot())}renderLoading(){return e("div",{class:{"vega-dropdown-loading":!0,"v-hidden":!this.isLoading}},e("vega-flex",{gap:"size-8",direction:"row"},e("vega-loading-indicator",{size:"small"}),e("span",null,"Loading")))}renderDropdownListBySource(){return e(t,null,e("div",{class:{"vega-dropdown-empty-list":!0,"v-hidden":this.isLoading||this.sourceForRender.length>0}},this.translationSlimmer.t(this.searchString?this.searchNoResultsText:"No options")),e("ul",{role:"menu",class:{"v-hidden":this.isLoading||0===this.sourceForRender.length}},e("vega-virtual-scroll",{source:this.sourceForRender,renderItem:(e,t,i)=>e.children?this.groupLevelRenderer.render(e,t,i):this.itemLevelRenderer.render(e,i),viewportMaxHeight:this.defaultMaxHeightOfItemsContainer,ref:e=>this.virtualScrollRef=e,isLoading:this.isLazyLoading,virtualizationThreshold:this.virtualizationThreshold})))}renderDropdownListBySlot(){return e("ul",{role:"menu",class:{[`vega-dropdown-item-display-${this.itemDisplayRule}`]:!0,"v-hidden":this.isLoading},ref:e=>this.templateContainerRef=e,onScroll:this.scrollableController.onScroll},this.selectAllController.shouldRenderTemplateSelectAll()&&e("vega-dropdown-item",{itemKey:this.selectAllController.getSelectAllItemKey(),label:this.translationSlimmer.t("Select All")}),e("slot",{name:"items"}))}}fe([d()],ge.prototype,"host",void 0),fe([d()],ge.prototype,"isLoading",void 0),fe([d()],ge.prototype,"searchString",void 0),fe([d()],ge.prototype,"itemDisplayRule",void 0),fe([d()],ge.prototype,"sourceForRender",void 0),fe([d()],ge.prototype,"itemLevelRenderer",void 0),fe([d()],ge.prototype,"groupLevelRenderer",void 0),fe([d()],ge.prototype,"isLazyLoading",void 0),fe([d()],ge.prototype,"isDropdownShow",void 0),fe([d()],ge.prototype,"searchNoResultsText",void 0),fe([d()],ge.prototype,"renderModeController",void 0),fe([d()],ge.prototype,"scrollableController",void 0),fe([d()],ge.prototype,"translationSlimmer",void 0),fe([d()],ge.prototype,"virtualizationThreshold",void 0),fe([d()],ge.prototype,"allowSelectAll",void 0),fe([d()],ge.prototype,"selectAllController",void 0);var me=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class we extends c{render(t,i){return this.remoteInvocationController.callRemoteItemRender(t,i)||e("vega-dropdown-item",Object.assign({},t,{itemKey:t.key,height:i,prefixIcon:t.prefixIcon}))}}me([d()],we.prototype,"host",void 0),me([d()],we.prototype,"selectType",void 0),me([d()],we.prototype,"caseSensitive",void 0),me([d()],we.prototype,"searchString",void 0),me([d()],we.prototype,"selectedController",void 0),me([d()],we.prototype,"sourceController",void 0),me([d()],we.prototype,"remoteInvocationController",void 0);var xe=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class be extends c{constructor(){super(...arguments),this.clear=()=>{this.searchString=null,this.searchInputRef&&(this.searchInputRef.value="")},this.onInputSearch=e=>{e&&(this.searchInputRef=e),j.addUniqueObserverToNode(e,T,(e=>{this.search(e.detail,"input")}))},this.search=(e,t)=>{this.searchTriggerBy&&this.searchTriggerBy!==t||(this.searchString=e,this.renderModeController.isSourceRenderMode()?this.useDefaultFilter?(this.sourceController.setRenderSource(),this.focus()):this.isDropdownShow&&(this.searchEventEmitter.emit(e),this.searchTriggerEventEmitter.emit({trigger:t,value:e})):(this.searchEventEmitter.emit(e),this.searchTriggerEventEmitter.emit({trigger:t,value:e})))}}userSearch(e){this.search(e,"input")}focus(){this.searchInputRef&&this.searchInputRef.shadowRoot.querySelector("input").focus()}render(){return this.searchable&&e(t,null,e("div",{class:"vega-dropdown-search"},e("vega-input",{"prefix-icon":"search",size:"small",autoValidation:!1,ref:this.onInputSearch,onKeyDown:e=>{"Enter"===e.code&&this.search(this.searchInputRef.value,"enter")}})),e("vega-divider",{margin:{y:"size-4"}}))}}xe([d()],be.prototype,"searchable",void 0),xe([d({writable:!0})],be.prototype,"searchString",void 0),xe([d()],be.prototype,"source",void 0),xe([d()],be.prototype,"useDefaultFilter",void 0),xe([d()],be.prototype,"searchEventEmitter",void 0),xe([d()],be.prototype,"searchTriggerEventEmitter",void 0),xe([d()],be.prototype,"isDropdownShow",void 0),xe([d()],be.prototype,"sourceController",void 0),xe([d()],be.prototype,"renderModeController",void 0),xe([d()],be.prototype,"searchTriggerBy",void 0),xe([h("search")],be.prototype,"userSearch",null);var ye=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Se extends H{constructor(){super((e=>{const t=this.renderer.getDropdownRef(),i=this.renderer.getVirtualContainerRef();return[{keyCode:"Tab",activeElementInScope:[e.host],callback:e.showDropdownIfHover},{keyCode:"Escape",activeElementInScope:[e.host,t,i],callback:()=>e.appenderController.hide()},{keyCode:["ArrowUp","ArrowDown"],activeElementInScope:[e.host,t],callback:t=>e.controlDirectionByKeyboard(t.code)},{keyCode:"Tab",activeElementOutScope:[e.host,t,i],callback:()=>e.isDropdownShow&&e.appenderController.hide()}]})),this.showDropdownIfHover=async()=>{"hover"===this.trigger&&this.appenderController.show()},this.controlDirectionByKeyboard=e=>{var t;null===(t=this.renderer.getNextActiveItem(e))||void 0===t||t.shadowRoot.querySelector("li").focus()}}}ye([d()],Se.prototype,"host",void 0),ye([d()],Se.prototype,"trigger",void 0),ye([d()],Se.prototype,"isDropdownShow",void 0),ye([d()],Se.prototype,"renderer",void 0),ye([d()],Se.prototype,"appenderController",void 0),ye([d()],Se.prototype,"listRenderer",void 0);var Re=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Ce extends W{constructor(){super((()=>this.generateShowConfigFactory()),(()=>this.trigger)),this.ariaDialogFocusableTrapSlimmer=V(Ce,N,[],[{mapFrom:"show",mapTo:"show"},{mapFrom:"hide",mapTo:"hide"},{mapFrom:"ariaComponentDidLoad",mapTo:"componentDidLoad"}],[{triggerEl:()=>this.host,dialogEl:()=>this.renderer.getDropdownContentBoxRef()}]),this.lastFocusedElement=null}connectedCallback(){}disconnectedCallback(){}componentDidRender(){}ariaComponentDidLoad(){}async watchIsDropdownShow(){this.isDropdownShow?(this.selectAllController.isEnabled()&&this.sourceController.setRenderSource(),this.showEventEmitter.emit(),this.updateLastFocusedElement()):(this.searchRenderer.clear(),this.hideEventEmitter.emit(),this.focusTriggerForAria())}userShow(){this.isDropdownShow||this.show()}userHide(){this.isDropdownShow&&this.hide()}focusTriggerForAria(){const e=x();if((null==e?void 0:e.matches)&&e.matches(":focus-visible")){const e=this.lastFocusedElement;e&&"function"==typeof e.focus&&(e.focus(),this.lastFocusedElement=null)}}updateLastFocusedElement(){this.lastFocusedElement=x()}generateShowConfigFactory(){return{target:this.target||this.host,appendableElement:this.renderer.getDropdownContentBoxRef(),positionRelativeTo:this.positionRelativeTo,matchTargetWidth:this.matchTargetWidth,matchContainerHeight:this.matchContainerHeight,size:this.size,minWidth:this.minWidth,maxWidth:this.maxWidth,translocation:this.translocation,maxHeight:this.maxHeight,placement:this.placement,alignment:this.alignment,isScreenPosition:this.isScreenPosition}}}Re([d()],Ce.prototype,"host",void 0),Re([d()],Ce.prototype,"trigger",void 0),Re([d({writable:!0})],Ce.prototype,"isDropdownShow",void 0),Re([d()],Ce.prototype,"positionRelativeTo",void 0),Re([d()],Ce.prototype,"matchTargetWidth",void 0),Re([d()],Ce.prototype,"matchContainerHeight",void 0),Re([d()],Ce.prototype,"size",void 0),Re([d()],Ce.prototype,"minWidth",void 0),Re([d()],Ce.prototype,"maxWidth",void 0),Re([d()],Ce.prototype,"translocation",void 0),Re([d()],Ce.prototype,"maxHeight",void 0),Re([d()],Ce.prototype,"placement",void 0),Re([d()],Ce.prototype,"alignment",void 0),Re([d()],Ce.prototype,"renderer",void 0),Re([d()],Ce.prototype,"sourceController",void 0),Re([d()],Ce.prototype,"selectAllController",void 0),Re([d()],Ce.prototype,"searchRenderer",void 0),Re([d()],Ce.prototype,"showEventEmitter",void 0),Re([d()],Ce.prototype,"hideEventEmitter",void 0),Re([d()],Ce.prototype,"isScreenPosition",void 0),Re([p()],Ce.prototype,"ariaDialogFocusableTrapSlimmer",void 0),Re([h("connectedCallback")],Ce.prototype,"connectedCallback",null),Re([h("disconnectedCallback")],Ce.prototype,"disconnectedCallback",null),Re([h("componentDidRender")],Ce.prototype,"componentDidRender",null),Re([h("componentDidLoad")],Ce.prototype,"ariaComponentDidLoad",null),Re([h("watchIsDropdownShow")],Ce.prototype,"watchIsDropdownShow",null),Re([h("show")],Ce.prototype,"userShow",null),Re([h("hide")],Ce.prototype,"userHide",null);var je=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Ie extends c{render(t,i,o){return e("vega-dropdown-group",{label:t.label,key:t.key,divide:i<this.sourceForRender.length-1},t.children.map((e=>this.itemLevelRenderer.render(e,o))))}}je([d()],Ie.prototype,"sourceForRender",void 0),je([d()],Ie.prototype,"itemLevelRenderer",void 0);var Te=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class De extends c{search(e){return this.canSearch()?this.searchSource(e,[]):e}canSearch(){return this.useDefaultFilter&&!!this.searchString}searchSource(e,t){return this.remoteInvocationController.callRemoteSearch(e,this.searchString,this.caseSensitive)||(e.forEach((e=>{if(e.label=P.sanitize(e.label,$),e.children){const i=this.searchSource(e.children,[]);i.length>0&&t.push(Object.assign(Object.assign({},e),{children:i}))}else this.isLabelIncludeSearchString(e.label)&&t.push(Object.assign(Object.assign({},e),{label:this.replaceLabelBySearchString(e.label)}))})),t)}isLabelIncludeSearchString(e){return this.caseSensitive?e.includes(this.searchString):e.toLowerCase().includes(this.searchString.toLowerCase())}replaceLabelBySearchString(e){const t=this.searchString.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(`(${t})`,"g"+(this.caseSensitive?"":"i")),"<b>$1</b>")}}Te([d()],De.prototype,"host",void 0),Te([d()],De.prototype,"searchString",void 0),Te([d()],De.prototype,"caseSensitive",void 0),Te([d()],De.prototype,"useDefaultFilter",void 0),Te([d()],De.prototype,"searchable",void 0),Te([d()],De.prototype,"remoteInvocationController",void 0);var Ae=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class ke extends c{componentWillLoad(){this.checkSelectedSourceKey(this.selectedSourceKey)}clearSelection(){this.selectedSourceKey="multiple"===this.selectType?[]:""}getSelection(){return this.selectAllController.isEnabled()&&Array.isArray(this.selectedSourceKey)?this.selectAllController.filterOutSelectAllKey(this.selectedSourceKey):this.selectedSourceKey}watchSelectedRowKeySet(e){"none"!==this.selectType?this.checkSelectedSourceKey(e):this.selectedSourceKey=""}watchSelectType(){this.checkSelectedSourceKey(this.selectedSourceKey)}watchAllowSelectAll(){this.checkSelectedSourceKey(this.selectedSourceKey)}watchSelectedSourceKey(e,t){Array.isArray(t)&&Array.isArray(e)&&F(t,e)||this.checkSelectedSourceKey(e)}watchSource(){this.checkSelectedSourceKey(this.selectedSourceKey)}isAcceptableItemSelectionObserver(e){return"VEGA-DROPDOWN-ITEM"===e.host.tagName&&this.isCurrentDropdown(e.host)}select(e){const t=this.selectAllController.isAllowedVirtualKey(e);if("multiple"===this.selectType?this.selectedSourceKey=this.selectAllController.toggleSelectionForMultiple(this.source,this.selectedSourceKey,e):"single"===this.selectType?(this.selectedSourceKey=e,this.appenderController.hide()):this.appenderController.hide(),t){const e=Array.isArray(this.selectedSourceKey)&&this.selectedSourceKey.includes(this.selectAllController.getSelectAllItemKey());this.selectAllClickEventEmitter.emit(e)}else this.dropdownClickEventEmitter.emit(e)}reset(){this.resetEventEmitter.emit().defaultPrevented||(this.selectedSourceKey="multiple"===this.selectType?[]:"","multiple"!==this.selectType&&this.appenderController.hide())}isCurrentDropdown(e){const t=w(e,"vega-dropdown-content-box"),i="VEGA-DROPDOWN"===e.parentElement.tagName||!!w(e,"vega-dropdown");return this.host===t["data-parent-ref"]&&!i}checkSelectedSourceKey(e){if(this.renderModeController.isSourceRenderMode()&&!this.preserveValueIfNotInSource){let t;"string"==typeof e&&"single"===this.selectType&&this.childrenController.isKeyExist(e)?t=e:Array.isArray(e)&&"multiple"===this.selectType?t=this.checkMultipleSelectedKeys(e):(v.warn(`Invalid selectedSourceKey ${e} for ${this.selectType} mode`),t="multiple"===this.selectType?[]:""),this.selectedSourceKey=t}else{const t=this.normalizeSelectedSourceKeyBySelectType(e);this.selectedSourceKey=this.selectAllController.isEnabled()&&Array.isArray(t)&&"multiple"===this.selectType?this.selectAllController.syncSelectedKeysWithSelectAll(this.source,t):t}}normalizeSelectedSourceKeyBySelectType(e){return"multiple"===this.selectType?Array.isArray(e)?e:e?[e]:[]:"single"===this.selectType?"string"==typeof e?e:e[0]||"":e}checkMultipleSelectedKeys(e){const t=[],i=e.filter((e=>{if(this.selectAllController.isAllowedVirtualKey(e))return!0;const i=this.childrenController.isKeyExist(e);return i||t.push(e),i}));return t.length>0&&v.warn(`Invalid selectedSourceKey ${e} for ${this.selectType} mode`),this.selectAllController.isEnabled()?this.selectAllController.syncSelectedKeysWithSelectAll(this.source,i):i}}Ae([d()],ke.prototype,"host",void 0),Ae([d()],ke.prototype,"selectType",void 0),Ae([d()],ke.prototype,"source",void 0),Ae([d({writable:!0})],ke.prototype,"selectedSourceKey",void 0),Ae([d()],ke.prototype,"preserveValueIfNotInSource",void 0),Ae([d()],ke.prototype,"vegaDropdownClick",void 0),Ae([d()],ke.prototype,"appenderController",void 0),Ae([d()],ke.prototype,"childrenController",void 0),Ae([d()],ke.prototype,"renderModeController",void 0),Ae([d()],ke.prototype,"dropdownClickEventEmitter",void 0),Ae([d()],ke.prototype,"selectAllClickEventEmitter",void 0),Ae([d()],ke.prototype,"resetEventEmitter",void 0),Ae([d()],ke.prototype,"selectAllController",void 0),Ae([h("componentWillLoad")],ke.prototype,"componentWillLoad",null),Ae([h("clearSelection")],ke.prototype,"clearSelection",null),Ae([h("getSelection")],ke.prototype,"getSelection",null),Ae([h("setSelection")],ke.prototype,"watchSelectedRowKeySet",null),Ae([h("watchSelectType")],ke.prototype,"watchSelectType",null),Ae([h("watchAllowSelectAll")],ke.prototype,"watchAllowSelectAll",null),Ae([h("watchSelectedSourceKey")],ke.prototype,"watchSelectedSourceKey",null),Ae([h("watchSource")],ke.prototype,"watchSource",null);var Oe=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Ee extends c{connectedCallback(){this.setRenderMode()}isSourceRenderMode(){return"SOURCE"===this.renderMode}setRenderMode(){const e=this.renderer.getDropdownContentBoxRef(),t=Boolean((null==e?void 0:e.querySelector("[slot=items]"))||this.host.querySelector("[slot=items]"));this.renderMode=t?"SLOT":"SOURCE"}}Oe([d()],Ee.prototype,"host",void 0),Oe([d()],Ee.prototype,"renderer",void 0),Oe([d({writable:!0})],Ee.prototype,"renderMode",void 0),Oe([h("connectedCallback")],Ee.prototype,"connectedCallback",null);var Me=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Le extends c{constructor(){super(...arguments),this.mutationObserver=new Y({target:()=>this.renderer.getDropdownContentBoxRef(),options:{childList:!0,subtree:!0},callback:()=>this.syncUpDropdownCurrentData()}),this.labelSet=new Set,this.keySet=new Set,this.previousSelectableKeys=[],this.collectKeyAndLabelFromSlot=()=>{const e=this.getContainerElement();Array.from(e.querySelectorAll("vega-dropdown-item")).forEach((e=>{this.isCurrentDropdownTemplateItem(e)&&(e.label&&this.labelSet.add(e.label),e.itemKey&&this.keySet.add(e.itemKey))}))}}disconnectedCallback(){}componentWillLoad(){this.syncUpDropdownCurrentData()}componentDidLoad(){}watchSource(){this.renderModeController.isSourceRenderMode()&&this.syncUpDropdownCurrentData()}syncTemplateData(){this.syncUpDropdownCurrentData(),this.selectAllController.isEnabled()?(this.syncTemplateSelectAllState(),this.updateTemplateSelectableKeysAndRefresh()):this.previousSelectableKeys=[]}isLabelExist(e){return this.labelSet.has(e)}isKeyExist(e){return this.keySet.has(e)}getSelectableKeys(){const e=this.getContainerElement(),t=[];return Array.from(e.querySelectorAll("vega-dropdown-item")).forEach((e=>{this.isCurrentDropdownTemplateItem(e)&&!e.disabled&&e.itemKey&&t.push(e.itemKey)})),t}syncUpDropdownCurrentData(){this.clearDropdownCurrentData(),this.renderModeController.isSourceRenderMode()?this.collectKeyAndLabelFromSource(this.source):(this.collectKeyAndLabelFromSlot(),this.notifyTemplateItemsChange())}updateTemplateSelectableKeysAndRefresh(){const e=this.previousSelectableKeys.length>0,t=this.getSelectableKeys(),o=t.length>0;this.previousSelectableKeys=t,e!==o&&i(this.host)}syncTemplateSelectAllState(){if(this.selectAllController.isEnabled()&&Array.isArray(this.selectedController.selectedSourceKey)){const e=this.selectedController.selectedSourceKey,t=this.selectAllController.syncSelectedKeysWithSelectAll([],e);F(e,t)||(this.selectedController.selectedSourceKey=t)}}isCurrentDropdownTemplateItem(e){const t=w(e,"vega-dropdown-content-box");if(t){const i="VEGA-DROPDOWN"===e.parentElement.tagName;return t["data-parent-ref"]===this.host&&!i}return w(e,"vega-dropdown")===this.host}collectKeyAndLabelFromSource(e){e.forEach((e=>{e.children?this.collectKeyAndLabelFromSource(e.children):(this.labelSet.add(e.label),this.keySet.add(e.key))}))}clearDropdownCurrentData(){this.keySet.clear(),this.labelSet.clear()}getContainerElement(){return this.renderer.getDropdownContentBoxRef()||this.host}notifyTemplateItemsChange(){const e=this.getContainerElement();q.notify(I.getSubject(this.host,X),e.querySelectorAll("vega-dropdown-item"))}}Me([d()],Le.prototype,"host",void 0),Me([d()],Le.prototype,"source",void 0),Me([d()],Le.prototype,"sourceController",void 0),Me([d()],Le.prototype,"renderModeController",void 0),Me([d()],Le.prototype,"listRenderer",void 0),Me([d()],Le.prototype,"renderer",void 0),Me([d()],Le.prototype,"selectedController",void 0),Me([d()],Le.prototype,"selectAllController",void 0),Me([p()],Le.prototype,"mutationObserver",void 0),Me([h("disconnectedCallback")],Le.prototype,"disconnectedCallback",null),Me([h("componentWillLoad")],Le.prototype,"componentWillLoad",null),Me([h("componentDidLoad")],Le.prototype,"componentDidLoad",null),Me([h("watchSource")],Le.prototype,"watchSource",null),Me([h("syncTemplateData")],Le.prototype,"syncTemplateData",null);const ze=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the dropdown",payloadValue:e=>0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the dropdown",payloadValue:e=>e.source.length>0}];var Ke=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class He extends c{constructor(){super(...arguments),this.onScroll=()=>{!this.renderModeController.isSourceRenderMode()&&q.notify(ie,{host:this.renderer.getDropdownContentBoxRef()})}}async watchIsDropdownShow(){this.isDropdownShow&&(this.adjustListContainerMaxHeight(),await this.scrollToSelectedIndex())}watchSelectedSourceKey(e,t){this.resettable&&(e&&e.length>0&&(!t||0===t.length)||(!e||0===e.length)&&t&&t.length>0)&&this.adjustListContainerMaxHeight()}async scrollToSelectedIndex(){this.renderModeController.isSourceRenderMode()?await this.scrollToVirtualIndex():this.scrollToTemplateIndex()}async scrollToVirtualIndex(){const e=this.sourceForRender.findIndex((e=>e.key===this.getSelectedKey()));e>=0&&await this.listRenderer.getVirtualScrollRef().scrollToIndex(e)}scrollToTemplateIndex(){const e=this.getSelectedKey();if(e){const t=this.renderer.getDropdownContentBoxRef(),i=t.querySelector(`vega-dropdown-item[item-key='${e}']`);if(i){const e=t.shadowRoot.querySelector("ul"),o=e.getBoundingClientRect(),r=i.getBoundingClientRect();e.scrollTop=r.top-o.top+e.scrollTop}}}getSelectedKey(){return"multiple"===this.selectType?this.selectedSourceKey[0]:this.selectedSourceKey}adjustListContainerMaxHeight(){const e=this.renderer.getDropdownContentBoxRef();if(!e)return;const t=b(e.style.maxHeight),i=this.resettable&&this.selectedSourceKey.length>0?He.actionButtonContentHeight:0,o=t-(this.searchable?He.actionButtonContentHeight:0)-(e.classList.contains("vega-placement-top")?0:He.dropdownLayoutSpaceHeight)-i;o<=40?(this.setItemsContainerMaxHeight(40),v.error("There have no space on the bottom to display dropdown, if you want to adjust position, you should make 'match-container-height' as false.")):this.setItemsContainerMaxHeight(o)}setItemsContainerMaxHeight(e){if(this.renderModeController.isSourceRenderMode())this.listRenderer.getVirtualScrollRef().viewportMaxHeight=e;else{const t=this.listRenderer.getTemplateContainerRef();t.style.overflowY="auto",t.style.maxHeight=`${e}px`}}}He.actionButtonContentHeight=49,He.dropdownLayoutSpaceHeight=10,Ke([d()],He.prototype,"isDropdownShow",void 0),Ke([d()],He.prototype,"renderModeController",void 0),Ke([d()],He.prototype,"sourceForRender",void 0),Ke([d()],He.prototype,"selectType",void 0),Ke([d()],He.prototype,"selectedSourceKey",void 0),Ke([d()],He.prototype,"searchable",void 0),Ke([d()],He.prototype,"listRenderer",void 0),Ke([d()],He.prototype,"renderer",void 0),Ke([d()],He.prototype,"resettable",void 0),Ke([h("watchIsDropdownShow")],He.prototype,"watchIsDropdownShow",null),Ke([h("watchSelectedSourceKey")],He.prototype,"watchSelectedSourceKey",null);var Ve=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class We extends c{connectedCallback(){this.remotePhoneNumberSearchSubject=I.getSubjectFromParentNodeByEventId(this.host,J),this.remotePhoneNumberItemRenderSubject=I.getSubjectFromParentNodeByEventId(this.host,Q)}callRemoteSearch(...e){if(this.remotePhoneNumberSearchSubject){const t=re.call(this.remotePhoneNumberSearchSubject,...e);if(t)return t}return null}callRemoteItemRender(...e){if(this.remotePhoneNumberItemRenderSubject){const t=re.call(this.remotePhoneNumberItemRenderSubject,...e);if(t)return t}return null}}Ve([d()],We.prototype,"host",void 0),Ve([h("connectedCallback")],We.prototype,"connectedCallback",null);var Ne=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Pe extends c{render(){return this.resettable&&this.selectedSourceKey.length>0&&e(t,null,e("vega-font",{variant:"font-field-value",color:"text-link",class:"vega-dropdown-reset",onClick:()=>this.selectedController.reset(),tabIndex:0,role:"button","aria-label":"Reset",onKeyDown:C()},this.translationSlimmer.t("Reset Selection")),e("vega-divider",{margin:{y:"size-4"}}))}}Ne([d()],Pe.prototype,"resettable",void 0),Ne([d()],Pe.prototype,"translationSlimmer",void 0),Ne([d()],Pe.prototype,"selectedController",void 0),Ne([d()],Pe.prototype,"selectedSourceKey",void 0);var $e=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const Fe=(e,t,i=_)=>{if(!Array.isArray(e))return!1;const o=e.filter((e=>e!==i));if(0===t.length)return o.length>0&&!e.includes(i);const r=o.filter((e=>t.includes(e))).length;return r>0&&r<t.length};class Be extends c{constructor(){super(...arguments),this.selectAllKey=_}isEnabled(){return this.allowSelectAll&&"multiple"===this.selectType}getSourceWithSelectAll(e){return this.isEnabled()&&0!==e.length?[{key:this.selectAllKey,label:this.translationSlimmer.t("Select All")},...e]:e}filterOutSelectAllKey(e){return e.filter((e=>e!==this.selectAllKey))}toggleSelectionForMultiple(e,t,i){const o=this.getSelectableKeys(e),r=this.filterOutSelectAllKey(t);if(!this.isEnabled())return r.includes(i)?r.filter((e=>e!==i)):[...r,i];if(i===this.selectAllKey)return o.every((e=>r.includes(e)))?[]:[...o,this.selectAllKey];const s=r.includes(i)?r.filter((e=>e!==i)):[...r,i];return o.every((e=>s.includes(e)))?[...s,this.selectAllKey]:s}syncSelectedKeysWithSelectAll(e,t){if(!this.isEnabled())return t;const i=this.getSelectableKeys(e);if(0===i.length)return t;const o=this.filterOutSelectAllKey(t);return i.every((e=>o.includes(e)))?t.includes(this.selectAllKey)?t:[...o,this.selectAllKey]:o}isAllowedVirtualKey(e){return this.isEnabled()&&e===this.selectAllKey}isSelectAllIndeterminate(e,t){if(!this.isEnabled()||!Array.isArray(e))return!1;const i=this.getSelectableKeys(t);return Fe(e,i,this.selectAllKey)}getSelectAllItemKey(){return this.selectAllKey}shouldRenderTemplateSelectAll(){return!(!this.isEnabled()||this.renderModeController.isSourceRenderMode())&&this.getSelectableKeys([]).length>0}getSelectableKeys(e){return this.renderModeController.isSourceRenderMode()?B(e).filter((e=>!e.disabled)).map((e=>e.key)):this.childrenController.getSelectableKeys().filter((e=>e!==this.selectAllKey))}}$e([d()],Be.prototype,"allowSelectAll",void 0),$e([d()],Be.prototype,"selectType",void 0),$e([d()],Be.prototype,"translationSlimmer",void 0),$e([d()],Be.prototype,"renderModeController",void 0),$e([d()],Be.prototype,"childrenController",void 0);var _e=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const Ue=class{constructor(e){o(this,e),this.vegaDropdownClick=r(this,"vegaDropdownClick",7),this.dropdownClick=r(this,"dropdownClick",7),this.vegaDropdownSelectAllClick=r(this,"vegaDropdownSelectAllClick",7),this.dropdownSelectAllClick=r(this,"dropdownSelectAllClick",7),this.vegaShow=r(this,"vegaShow",7),this.dropdownShow=r(this,"dropdownShow",7),this.vegaHide=r(this,"vegaHide",7),this.dropdownHide=r(this,"dropdownHide",7),this.vegaCreate=r(this,"vegaCreate",7),this.create=r(this,"create",7),this.vegaSearch=r(this,"vegaSearch",7),this.dropdownSearch=r(this,"dropdownSearch",7),this.vegaReset=r(this,"vegaReset",7),this.reset=r(this,"reset",7),this.vegaSearchTrigger=r(this,"vegaSearchTrigger",7),this.searchTrigger=r(this,"searchTrigger",7),this.globalSlimmers={},this.translationSlimmer=new se,this.renderer=new he,this.sourceController=new pe,this.searchRenderer=new be,this.createRenderer=new ue,this.listRenderer=new ge,this.resetRenderer=new Pe,this.groupLevelRenderer=new Ie,this.itemLevelRenderer=new we,this.keyboardController=new Se,this.appenderController=new Ce,this.searchController=new De,this.selectAllController=new Be,this.childrenController=new Le,this.selectedController=new ke,this.renderModeController=new Ee,this.scrollableController=new He,this.remoteInvocationController=new We,this.selectTypeNotifySlimmer=G(Ue,"selectType","watchSelectType"),this.selectedSourceKeyNotifySlimmer=G(Ue,"selectedSourceKey","watchSelectedSourceKey"),this.prefixIconSlotNotifySlimmer=G(Ue,"prefixIconSlot","watchPrefixIconSlot"),this.itemTooltipPropsNotifySlimmer=G(Ue,"itemTooltipProps","watchItemTooltipProps"),this.itemClickObserver=new te(oe,(e=>this.selectedController.select(e.detail.itemKey)),this.selectedController.isAcceptableItemSelectionObserver.bind(this.selectedController)),this.showEventEmitter=ee(Ue,D),this.hideEventEmitter=ee(Ue,A),this.dropdownClickEventEmitter=ee(Ue,k),this.selectAllClickEventEmitter=ee(Ue,O),this.resetEventEmitter=ee(Ue,E),this.createEventEmitter=ee(Ue,M),this.searchEventEmitter=ee(Ue,L),this.searchTriggerEventEmitter=ee(Ue,z),this.itemDisplayRuleNotifySlimmer=G(Ue,"itemDisplayRule","watchItemDisplayRule"),this.vegaComponentUsageRuntimeMetricsSlimmer=new g(ze),this.searchString=null,this.isDropdownShow=!1,this.renderMode="SOURCE",this.trigger="hover",this.translocation={X:0,Y:8},this.source=[],this.selectType="none",this.selectedSourceKey="multiple"===this.selectType?[]:"",this.prefixIconSlot=!1,this.maxHeight=400,this.searchable=!1,this.matchTargetWidth=!1,this.itemDisplayRule=U.itemDisplayRule,this.matchContainerHeight=!1,this.caseSensitive=U.caseSensitive,this.dynamicOption=!1,this.useDefaultFilter=!0,this.isLoading=U.isLoading,this.placement=U.placement,this.alignment=U.alignment,this.isLazyLoading=!1,this.isScreenPosition=U.isScreenPosition,this.resettable=!1,this.virtualizationThreshold=60,this.preserveValueIfNotInSource=!1,this.searchNoResultsText=U.searchNoResultsText,this.allowSelectAll=!1}watchIsDropdownShow(){}watchSource(){}watchSelectType(){}watchSelectedSourceKey(){}watchPrefixIconSlot(){}watchItemDisplayRule(){}watchItemTooltipProps(){}watchCaseSensitive(){}watchAllowSelectAll(){}async show(){}async hide(){}async search(e){}async clearSelection(){}async getSelection(){return u()}async setSelection(e){}async syncTemplateData(){}render(){return f(e("slot",null)),a(e(s,null,this.renderer.render()),this.host)}get host(){return n(this)}static get watchers(){return{isDropdownShow:["watchIsDropdownShow"],source:["watchSource"],selectType:["watchSelectType"],selectedSourceKey:["watchSelectedSourceKey"],prefixIconSlot:["watchPrefixIconSlot"],itemDisplayRule:["watchItemDisplayRule"],itemTooltipProps:["watchItemTooltipProps"],caseSensitive:["watchCaseSensitive"],allowSelectAll:["watchAllowSelectAll"]}}};_e([m()],Ue.prototype,"globalSlimmers",void 0),_e([p()],Ue.prototype,"translationSlimmer",void 0),_e([p()],Ue.prototype,"renderer",void 0),_e([p()],Ue.prototype,"sourceController",void 0),_e([p()],Ue.prototype,"searchRenderer",void 0),_e([p()],Ue.prototype,"createRenderer",void 0),_e([p()],Ue.prototype,"listRenderer",void 0),_e([p()],Ue.prototype,"resetRenderer",void 0),_e([p()],Ue.prototype,"groupLevelRenderer",void 0),_e([p()],Ue.prototype,"itemLevelRenderer",void 0),_e([p()],Ue.prototype,"keyboardController",void 0),_e([p()],Ue.prototype,"appenderController",void 0),_e([p()],Ue.prototype,"searchController",void 0),_e([p()],Ue.prototype,"selectAllController",void 0),_e([p()],Ue.prototype,"childrenController",void 0),_e([p()],Ue.prototype,"selectedController",void 0),_e([p()],Ue.prototype,"renderModeController",void 0),_e([p()],Ue.prototype,"scrollableController",void 0),_e([p()],Ue.prototype,"remoteInvocationController",void 0),_e([p()],Ue.prototype,"selectTypeNotifySlimmer",void 0),_e([p()],Ue.prototype,"selectedSourceKeyNotifySlimmer",void 0),_e([p()],Ue.prototype,"prefixIconSlotNotifySlimmer",void 0),_e([p()],Ue.prototype,"itemTooltipPropsNotifySlimmer",void 0),_e([p()],Ue.prototype,"itemClickObserver",void 0),_e([p()],Ue.prototype,"showEventEmitter",void 0),_e([p()],Ue.prototype,"hideEventEmitter",void 0),_e([p()],Ue.prototype,"dropdownClickEventEmitter",void 0),_e([p()],Ue.prototype,"selectAllClickEventEmitter",void 0),_e([p()],Ue.prototype,"resetEventEmitter",void 0),_e([p()],Ue.prototype,"createEventEmitter",void 0),_e([p()],Ue.prototype,"searchEventEmitter",void 0),_e([p()],Ue.prototype,"searchTriggerEventEmitter",void 0),_e([p()],Ue.prototype,"itemDisplayRuleNotifySlimmer",void 0),_e([p()],Ue.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ue.style=":host{display:inline-block}";var Ge=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const Ye=class{constructor(e){o(this,e),this.globalSlimmers={},this.componentGlobalStyleSlimmer=new le("vega-dropdown-content-box vega-dropdown{display:block}"),this.eventPrevent=new ne([K],(()=>this.host),void 0,!0),this.vegaComponentUsageRuntimeMetricsSlimmer=new g}render(){return a(e(s,null,e("slot",null)),this.host)}get host(){return n(this)}};Ge([m()],Ye.prototype,"globalSlimmers",void 0),Ge([p()],Ye.prototype,"componentGlobalStyleSlimmer",void 0),Ge([p()],Ye.prototype,"eventPrevent",void 0),Ge([p()],Ye.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ye.style=':host{display:block;position:absolute}:host .vega-dropdown{box-shadow:var(--v-shadow-dropdown-menu, 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));padding-top:4px;padding-bottom:4px;text-align:left;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;overflow:hidden;box-sizing:border-box;width:inherit}:host(.vega-force-hidden){display:none}:host .vega-dropdown .vega-dropdown-container{overflow-y:auto;position:relative;min-width:100px;min-height:40px}:host .vega-dropdown .vega-dropdown-container>ul{padding-left:0px;margin:0px;list-style-type:none}:host .vega-dropdown .vega-dropdown-search{padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px;margin-left:4px;margin-right:4px}:host .vega-dropdown .vega-dropdown-search vega-input{display:block}:host .vega-dropdown .vega-dropdown-search vega-input::part(input-container){padding:0px;border-width:0px;--tw-shadow:0 0 #0000;box-shadow:rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px}:host .vega-dropdown .vega-dropdown-search vega-input::part(prefix-icon-container){color:rgba(var(--v-text-secondary, 107, 116, 125, 1));width:16px;height:16px;padding-top:0px}:host .vega-dropdown .vega-dropdown-search vega-input::part(input-container):focus-within{outline:none}:host .vega-dropdown .vega-dropdown-search vega-input::part(input-container):hover{border-width:0px}:host .vega-dropdown .vega-dropdown-loading{padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}:host .v-hidden{display:none}:host .vega-dropdown .vega-dropdown-loading>vega-flex>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-dropdown .vega-dropdown-loading>vega-flex>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-dropdown .vega-dropdown-loading>vega-flex>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-dropdown .vega-dropdown-loading>vega-flex>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-dropdown .vega-dropdown-add-item{padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px;margin-left:4px;margin-right:4px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));cursor:pointer;display:flex;gap:8px;align-items:center}:host .vega-dropdown .vega-dropdown-add-item>div{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host .vega-dropdown .vega-dropdown-add-item>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-dropdown .vega-dropdown-add-item>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-dropdown .vega-dropdown-add-item>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-dropdown .vega-dropdown-add-item>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-dropdown .vega-dropdown-add-item:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border-radius:4px}:host .vega-dropdown .vega-dropdown-clear-icon{width:16px;height:16px;cursor:pointer}:host .vega-dropdown .vega-dropdown-empty-list{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-dropdown .vega-dropdown-empty-list{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-dropdown .vega-dropdown-empty-list{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-dropdown .vega-dropdown-empty-list{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-dropdown .vega-dropdown-divider{margin-top:4px;margin-bottom:4px;border-bottom:1px solid rgb(171, 198, 216)}:host .vega-dropdown .vega-dropdown-reset{padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px;margin-left:4px;margin-right:4px;display:block;cursor:pointer}:host .vega-dropdown .vega-dropdown-reset:hover{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1));color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host .vega-dropdown .vega-dropdown-reset:focus-visible{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1))}';var qe=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Xe extends c{render(){return e("li",{role:"group","aria-label":this.label,class:"vega-dropdown-group"},this.renderLabel(),this.renderChildren(),this.renderDivide())}renderLabel(){return this.label&&e("div",{class:"vega-dropdown-group-label","aria-hidden":"true"},this.label)}renderChildren(){return e("ul",{role:"none",class:"vega-dropdown-group-items"},e("slot",null))}renderDivide(){return this.divide&&e("div",{class:"vega-dropdown-group-divide"})}}qe([d()],Xe.prototype,"label",void 0),qe([d()],Xe.prototype,"divide",void 0);var Je=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const Qe=class{constructor(e){o(this,e),this.globalSlimmers={},this.renderer=new Xe,this.vegaComponentUsageRuntimeMetricsSlimmer=new g,this.divide=!0}render(){return f(e("slot",null)),a(e(s,null,this.renderer.render()),this.host)}get host(){return n(this)}};Je([m()],Qe.prototype,"globalSlimmers",void 0),Je([p()],Qe.prototype,"renderer",void 0),Je([p()],Qe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Qe.style=':host{display:block}:host .vega-dropdown-group{padding:0px;margin:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));cursor:default;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-dropdown-group{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-dropdown-group{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-dropdown-group{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host .vega-dropdown-group-label{padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:4px}:host .vega-dropdown-group-items{padding:0px;margin:0px}:host .vega-dropdown-group-divide{background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));margin-top:4px;margin-bottom:4px;height:1px}';var Ze=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class et extends c{constructor(){super(...arguments),this.setLabelRef=e=>{e&&(this.labelRef=e)}}render(){return e("li",{key:this.label,role:"menuitem","aria-label":this.count>0?`${this.label}, ${this.count}`:this.label,"aria-disabled":`${this.disabled}`,class:{"vega-dropdown-item-selected":this.selected,"vega-dropdown-item-disabled":this.disabled,[`vega-dropdown-item-display-${this.itemDisplayRule}`]:!0,danger:this.danger&&"none"===this.selectType},tabIndex:this.disabled?-1:0,onClick:this.disabled?void 0:e=>this.onSelect(e),onKeyDown:C({preventDefault:!0}),style:this.height>0&&{height:`${this.height}px`,boxSizing:"border-box",overflow:"hidden"}},this.renderSelectIcon(),this.renderPrefixIcon(),"ellipsis"===this.itemDisplayRule?this.renderLabelWithTooltip():this.renderLabel(),this.renderCounter())}renderSelectIcon(){return"none"!==this.selectType&&e("span",{class:"selected-prefix"},"single"===this.selectType&&this.renderSingleSelectIcon(),"multiple"===this.selectType&&this.renderMultipleSelectIcon())}renderSingleSelectIcon(){return this.selected&&e("vega-icon",{icon:"checkmark",size:"size-16"})}renderMultipleSelectIcon(){return e("vega-checkbox",{size:"small",checked:this.selected,indeterminate:this.indeterminate,disabled:this.disabled})}renderPrefixIcon(){return(this.prefixIcon||this.prefixIconSlot)&&e("div",{class:"item-prefix"},this.renderItemPrefixIcon())}renderItemPrefixIcon(){return this.prefixIcon&&e("vega-icon",{icon:this.prefixIcon,size:"size-16"})}renderLabel(){return this.host.childElementCount>0||""!==this.host.textContent.trim()?e("span",{class:"vega-dropdown-item-label",ref:this.setLabelRef},e("slot",null)):e(t,null,e("span",{class:"vega-dropdown-item-label",innerHTML:P.sanitize(this.label,$),ref:this.setLabelRef}),e("span",{class:"v-hidden"},e("slot",null)))}renderCounter(){return this.count>0&&e("div",{class:"item-counter"},e("vega-counter-badge",{count:this.count,color:"bg-action",offset:[10,10]}))}onSelect(e){this.vegaDropdownItemClickController.handleClick(e)}renderLabelWithTooltip(){var t,i,o;return this.label?e("vega-tooltip",{ref:e=>{e&&(this.tooltipRef=e)},text:P.sanitize(this.label,$).replace(/<b>(.*?)<\/b>/g,"$1"),trigger:"none",placement:(null===(t=this.itemTooltipProps)||void 0===t?void 0:t.placement)||["bottom","top"],alignment:"center",maxWidth:null===(i=this.itemTooltipProps)||void 0===i?void 0:i.maxWidth,minWidth:null===(o=this.itemTooltipProps)||void 0===o?void 0:o.minWidth,onMouseEnter:()=>{this.labelRef.scrollWidth>this.labelRef.clientWidth&&(this.tooltipRef.trigger="hover",this.labelRef.style.pointerEvents="none")},onMouseLeave:()=>{this.tooltipRef.trigger="none",this.labelRef.style.pointerEvents="auto"}},this.renderLabel()):this.renderLabel()}}Ze([d()],et.prototype,"host",void 0),Ze([d()],et.prototype,"label",void 0),Ze([d()],et.prototype,"count",void 0),Ze([d()],et.prototype,"prefixIcon",void 0),Ze([d()],et.prototype,"prefixIconSlot",void 0),Ze([d()],et.prototype,"disabled",void 0),Ze([d()],et.prototype,"selected",void 0),Ze([d()],et.prototype,"indeterminate",void 0),Ze([d()],et.prototype,"selectType",void 0),Ze([d()],et.prototype,"height",void 0),Ze([d()],et.prototype,"itemDisplayRule",void 0),Ze([d()],et.prototype,"itemTooltipProps",void 0),Ze([d()],et.prototype,"danger",void 0),Ze([d()],et.prototype,"vegaDropdownItemClickController",void 0);var tt=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class it extends ae{constructor(){super({parent:()=>{const e=w(this.host,"vega-dropdown");if(e)return e;{const e=w(this.host,"vega-dropdown-content-box");if(e&&e["data-parent-ref"])return e["data-parent-ref"]}},subStates:[{subStateName:"selectType",parentStateName:"selectType"},{subStateName:"prefixIconSlot",parentStateName:"prefixIconSlot"},{subStateName:"itemDisplayRule",parentStateName:"itemDisplayRule"},{subStateName:"itemTooltipProps",parentStateName:"itemTooltipProps"},{subStateName:"selected",parentStateName:"selectedSourceKey",callback:e=>{this.selected=Array.isArray(e)?e.includes(this.itemKey):e===this.itemKey,this.indeterminate=this.isSelectAllIndeterminate(e)}}],pullStatesWhenReattached:!0}),this.selectAllKey=_}getParentDropdownSource(){const e=this.getParentDropdown();if(e&&Array.isArray(e.source))return e.source;const t=w(this.host,"vega-dropdown-content-box"),i=null==t?void 0:t["data-parent-ref"];return i&&Array.isArray(i.source)?i.source:[]}getParentDropdown(){const e=w(this.host,"vega-dropdown");if(e)return e;const t=w(this.host,"vega-dropdown-content-box");return null==t?void 0:t["data-parent-ref"]}isSelectAllIndeterminate(e){return((e,t,i,o=_)=>{if(!Array.isArray(t)||e!==o)return!1;const r=i.length?B(i).filter((e=>!e.disabled)).map((e=>e.key)):[];return Fe(t,r,o)})(this.itemKey,e,this.getParentDropdownSource(),this.selectAllKey)}}tt([d()],it.prototype,"host",void 0),tt([d({writable:!0})],it.prototype,"selectType",void 0),tt([d()],it.prototype,"itemKey",void 0),tt([d({writable:!0})],it.prototype,"selected",void 0),tt([d({writable:!0})],it.prototype,"indeterminate",void 0),tt([d({writable:!0})],it.prototype,"prefixIconSlot",void 0),tt([d({writable:!0})],it.prototype,"itemDisplayRule",void 0),tt([d({writable:!0})],it.prototype,"itemTooltipProps",void 0);var ot=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class rt extends c{handleClick(e){this.clickEventEmitter.emit({itemKey:this.itemKey},e),q.notify(oe,{host:this.host,detail:{itemKey:this.itemKey}})}}ot([d()],rt.prototype,"host",void 0),ot([d()],rt.prototype,"itemKey",void 0),ot([d()],rt.prototype,"vegaClick",void 0),ot([d()],rt.prototype,"clickEventEmitter",void 0);var st=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const nt=class{constructor(e){o(this,e),this.vegaClick=r(this,"vegaClick",7),this.click=r(this,"click",7),this.globalSlimmers={},this.renderer=new et,this.vegaDropdownItemStateController=new it,this.vegaDropdownItemClickController=new rt,this.dropdownItemEventPrevent=new ne([T],(()=>this.host)),this.clickEventEmitter=ee(nt,K),this.vegaComponentUsageRuntimeMetricsSlimmer=new g,this.prefixIconSlot=!1,this.selected=!1,this.indeterminate=!1,this.itemDisplayRule="newline",this.disabled=!1,this.danger=!1}render(){return f(e("slot",null)),a(e(s,null,this.renderer.render()),this.host)}get host(){return n(this)}};st([m()],nt.prototype,"globalSlimmers",void 0),st([p()],nt.prototype,"renderer",void 0),st([p()],nt.prototype,"vegaDropdownItemStateController",void 0),st([p()],nt.prototype,"vegaDropdownItemClickController",void 0),st([p()],nt.prototype,"dropdownItemEventPrevent",void 0),st([p()],nt.prototype,"clickEventEmitter",void 0),st([p()],nt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),nt.style=':host{display:block}:host li{padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px;margin-left:4px;margin-right:4px;cursor:pointer;display:flex;align-items:center;gap:8px}:host li,:host li a{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;text-decoration:none}@media screen and (min-width: 768px) and (max-width: 1023px){:host li,:host li a{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host li,:host li a{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host li,:host li a{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host li:not(.vega-dropdown-item-disabled):hover{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}:host li:not(.vega-dropdown-item-disabled):focus{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1));outline:0}:host li.vega-dropdown-item-disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));cursor:default}:host li.vega-dropdown-item-disabled .item-prefix,:host li.vega-dropdown-item-disabled .selected-prefix{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host li.danger .item-prefix,:host li.danger .vega-dropdown-item-label{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}:host li .item-prefix{display:flex;width:16px;height:16px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));flex-shrink:1}:host li .selected-prefix{color:rgba(var(--v-text-link, 19, 98, 226, 1));width:16px;height:16px;display:flex;align-items:center;min-width:16px}:host li .item-counter{width:20px;height:20px}:host .vega-dropdown-item-label{flex-grow:1}:host .vega-dropdown-item-display-newline .vega-dropdown-item-label{overflow-wrap:break-word}:host .vega-dropdown-item-display-ellipsis .vega-dropdown-item-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .vega-dropdown-item-display-ellipsis vega-tooltip{flex-grow:1;display:block;overflow:hidden}:host .v-hidden{display:none}';var lt=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class at extends c{constructor(){super(...arguments),this.extendItemsCount=10,this.totalCount=0,this.viewportItemsCount=0}componentWillLoad(){this.initVirtualScroll(),this.initPositionConfig()}watchSourceChange(e,t){this.isSameSource(e,t)||this.initVirtualScroll()}watchApproxItemHeight(){this.initVirtualScroll()}watchViewportMaxHeight(){this.initVirtualScroll()}getMaxStartIndex(){return this.maxStartIndex}setPositionByScrollTop(){if("virtual"===this.modeController.getMode()){const e=Math.floor(this.scrollTop/this.approxItemHeight),t=Math.min(Math.max(e-this.extendItemsCount,0),this.maxStartIndex),i=0===t?e:t+this.extendItemsCount,o=i+this.viewportItemsCount+this.extendItemsCount,r=Math.min(Math.max(this.scrollTop-this.extendItemsCount*this.approxItemHeight,0),this.maxStartIndex*this.approxItemHeight);this.positionConfig={startIndex:t,viewportStartIndex:i,endIndex:o,transformY:r}}}changeModeFromNormalToVirtual(){this.initVirtualScroll(),this.setPositionByScrollTop()}initVirtualScroll(){"virtual"===this.modeController.getMode()&&(this.totalCount=this.source.length,this.viewportItemsCount=Math.ceil(this.viewportMaxHeight/this.approxItemHeight),this.maxStartIndex=this.totalCount-this.viewportItemsCount-this.extendItemsCount)}initPositionConfig(){this.positionConfig={startIndex:0,viewportStartIndex:0,endIndex:this.viewportItemsCount+this.extendItemsCount,transformY:0},this.scrollableController.resetScrollTop()}isSameSource(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i][this.sourceItemIdentifier]!==t[i][this.sourceItemIdentifier])return!1;return!0}}lt([d()],at.prototype,"sourceItemIdentifier",void 0),lt([d()],at.prototype,"source",void 0),lt([d()],at.prototype,"approxItemHeight",void 0),lt([d()],at.prototype,"viewportMaxHeight",void 0),lt([d({writable:!0})],at.prototype,"positionConfig",void 0),lt([d()],at.prototype,"scrollTop",void 0),lt([d()],at.prototype,"scrollableController",void 0),lt([d()],at.prototype,"modeController",void 0),lt([h("componentWillLoad")],at.prototype,"componentWillLoad",null),lt([h("watchSourceChange")],at.prototype,"watchSourceChange",null),lt([h("watchApproxItemHeight")],at.prototype,"watchApproxItemHeight",null),lt([h("watchViewportMaxHeight")],at.prototype,"watchViewportMaxHeight",null);var dt=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class ht extends c{componentDidLoad(){this.listenScrollContainer()}componentDidRender(){this.renderer.getContainerRef().scrollTop=this.scrollTop}watchScrollTop(){this.handleScroll()}watchSourceChange(){this.adjustScrollTopInVirtualMode()}watchApproxItemHeight(){this.adjustScrollTopInVirtualMode()}watchViewportMaxHeight(){this.adjustScrollTopInVirtualMode()}scrollToIndex(e){const t=this.renderer.getContainerRef();if(e>=0)if("normal"===this.modeController.getMode()){const i=t.querySelector(`:nth-child(${e+1})`);y(t,i)}else this.scrollTop=e*this.approxItemHeight}resetScrollTop(){this.scrollTop=0}listenScrollContainer(){this.renderer.getContainerRef().addEventListener("scroll",(()=>{this.scrollTop=this.renderer.getContainerRef().scrollTop}))}handleScroll(){const e=this.renderer.getContainerRef();e&&(e.scrollTop=this.scrollTop),this.positionController.setPositionByScrollTop(),this.checkIsScrollToBottom()}adjustScrollTopInVirtualMode(){"normal"!==this.modeController.getMode()&&(this.scrollTop=Math.min((this.source.length-Math.floor(this.viewportMaxHeight/this.approxItemHeight))*this.approxItemHeight,this.scrollTop))}checkIsScrollToBottom(){this.isLoading||!this.isScrollToBottomInVirtualMode()&&!this.isScrollToBottomInNormalMode()||q.notify(I.getSubject(this.host,Z),{endIndex:this.source.length-1})}isScrollToBottomInVirtualMode(){return"virtual"===this.modeController.getMode()&&this.positionConfig.startIndex===this.positionController.getMaxStartIndex()}isScrollToBottomInNormalMode(){const e=this.renderer.getContainerRef();return"normal"===this.modeController.getMode()&&e.scrollHeight-this.scrollTop>=this.viewportMaxHeight}}dt([d()],ht.prototype,"sourceItemIdentifier",void 0),dt([d()],ht.prototype,"source",void 0),dt([d()],ht.prototype,"host",void 0),dt([d()],ht.prototype,"viewportMaxHeight",void 0),dt([d()],ht.prototype,"approxItemHeight",void 0),dt([d({writable:!0})],ht.prototype,"scrollTop",void 0),dt([d()],ht.prototype,"positionConfig",void 0),dt([d()],ht.prototype,"isLoading",void 0),dt([d()],ht.prototype,"renderer",void 0),dt([d()],ht.prototype,"positionController",void 0),dt([d()],ht.prototype,"modeController",void 0),dt([h("componentDidLoad")],ht.prototype,"componentDidLoad",null),dt([h("componentDidRender")],ht.prototype,"componentDidRender",null),dt([h("watchScrollTop")],ht.prototype,"watchScrollTop",null),dt([h("watchSourceChange")],ht.prototype,"watchSourceChange",null),dt([h("watchApproxItemHeight")],ht.prototype,"watchApproxItemHeight",null),dt([h("watchViewportMaxHeight")],ht.prototype,"watchViewportMaxHeight",null),dt([h("scrollToIndex")],ht.prototype,"scrollToIndex",null);var ct=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class pt extends c{getContainerRef(){return this.virtualScrollContainerRef}render(){return e("div",{style:{maxHeight:`${this.viewportMaxHeight}px`,overflow:"auto"},class:"virtual-scroll-container",ref:e=>this.virtualScrollContainerRef=e},"normal"===this.modeController.getMode()?this.renderNormal():this.renderVirtualScroll())}renderNormal(){return e(t,null,this.source.map(((e,t)=>this.renderItem(e,t))),this.loadingRenderer.render())}renderVirtualScroll(){return e("div",{style:{height:this.source.length*this.approxItemHeight+"px",position:"relative"}},e("div",{class:"virtual-scroll-block",style:{transform:`translateY(${this.positionConfig.transformY}px)`}},this.source.slice(this.positionConfig.startIndex,this.positionConfig.viewportStartIndex).map(((e,t)=>this.renderItem(e,this.positionConfig.startIndex+t,this.approxItemHeight))),this.source.slice(this.positionConfig.viewportStartIndex,this.positionConfig.endIndex).map(((e,t)=>this.renderItem(e,this.positionConfig.viewportStartIndex+t))),this.loadingRenderer.render()))}}ct([d()],pt.prototype,"source",void 0),ct([d()],pt.prototype,"renderItem",void 0),ct([d()],pt.prototype,"approxItemHeight",void 0),ct([d()],pt.prototype,"positionConfig",void 0),ct([d()],pt.prototype,"viewportMaxHeight",void 0),ct([d()],pt.prototype,"modeController",void 0),ct([d()],pt.prototype,"loadingRenderer",void 0);var vt=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class ut extends c{constructor(){super(...arguments),this.mode="normal"}componentWillLoad(){this.setMode()}watchVirtualizationThreshold(){this.setMode()}watchSourceChange(){this.setMode()}getMode(){return this.mode}setMode(){const e=this.mode;this.mode=this.source.length>this.virtualizationThreshold&&this.virtualizationThreshold>0?"virtual":"normal","normal"===e&&"virtual"===this.mode&&this.positionController.changeModeFromNormalToVirtual()}}vt([d()],ut.prototype,"source",void 0),vt([d()],ut.prototype,"virtualizationThreshold",void 0),vt([d()],ut.prototype,"positionController",void 0),vt([h("componentWillLoad")],ut.prototype,"componentWillLoad",null),vt([h("watchVirtualizationThreshold")],ut.prototype,"watchVirtualizationThreshold",null),vt([h("watchSourceChange")],ut.prototype,"watchSourceChange",null);class ft extends c{render(){return this.isLoading&&e("div",{class:"virtual-scroll-more-loading"},e("vega-flex",{gap:"size-8",direction:"row"},e("vega-loading-indicator",{size:"small"}),e("vega-font",{variant:"font-field-value",color:"text-secondary"},"Loading")))}}!function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);s>3&&n&&Object.defineProperty(t,i,n)}([d()],ft.prototype,"isLoading",void 0);var gt=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const mt=class{constructor(e){o(this,e),this.globalSlimmers={},this.modeController=new ut,this.positionController=new at,this.scrollableController=new ht,this.renderer=new pt,this.loadingRenderer=new ft,this.vegaComponentUsageRuntimeMetricsSlimmer=new g,this.scrollTop=0,this.source=[],this.approxItemHeight=40,this.viewportMaxHeight=320,this.isLoading=!1,this.virtualizationThreshold=60,this.sourceItemIdentifier="key"}watchScrollTop(){}watchSourceChange(e,t){}watchApproxItemHeight(){}watchViewportMaxHeight(){}watchVirtualizationThreshold(){}async scrollToIndex(e){}render(){return a(e(s,null,this.renderer.render()),this.host)}get host(){return n(this)}static get watchers(){return{scrollTop:["watchScrollTop"],source:["watchSourceChange"],approxItemHeight:["watchApproxItemHeight"],viewportMaxHeight:["watchViewportMaxHeight"],virtualizationThreshold:["watchVirtualizationThreshold"]}}};gt([m()],mt.prototype,"globalSlimmers",void 0),gt([p()],mt.prototype,"modeController",void 0),gt([p()],mt.prototype,"positionController",void 0),gt([p()],mt.prototype,"scrollableController",void 0),gt([p()],mt.prototype,"renderer",void 0),gt([p()],mt.prototype,"loadingRenderer",void 0),gt([p()],mt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),mt.style=":host .virtual-scroll-more-loading{padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}";export{Ue as vega_dropdown,Ye as vega_dropdown_content_box,Qe as vega_dropdown_group,nt as vega_dropdown_item,mt as vega_virtual_scroll}
|