@globalpayments/vega 2.43.0 → 2.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-e80a14da.js → app-globals-c99ca280.js} +3 -3
- package/dist/cjs/{content-state-7b418b83.js → content-state-5659cad7.js} +1 -13
- package/dist/cjs/{design-token-622f55de.js → design-token-61572ad6.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-f704b06d.js → element-appender-slimmer-6de02fb6.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-9ea504a7.js → form-field-controller-slimmer-ac875498.js} +1 -1
- package/dist/cjs/{image-annotation-action-46632b22.js → image-annotation-action-cd529b25.js} +5 -2
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{public-rules-ba486ffa.js → public-rules-a23c74a9.js} +2 -2
- package/dist/cjs/{responsive-format-facade-23588691.js → responsive-format-facade-bf7d9ab2.js} +2 -2
- package/dist/cjs/{rich-text-editor-required-rule-792fede0.js → rich-text-editor-required-rule-cdc2e15e.js} +1 -1
- package/dist/cjs/{style-formatter-42a4e762.js → style-formatter-f26738b9.js} +1 -1
- package/dist/cjs/{translation-2c8a32bb.js → translation-f7279bf1.js} +61 -0
- package/dist/cjs/{translation-slimmer-593b92fe.js → translation-slimmer-4d852eab.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +4 -4
- package/dist/cjs/vega-app-header-button.cjs.entry.js +4 -4
- package/dist/cjs/vega-box.cjs.entry.js +5 -5
- package/dist/cjs/vega-button-circle.cjs.entry.js +4 -4
- package/dist/cjs/vega-button.cjs.entry.js +3 -3
- package/dist/cjs/vega-calendar_3.cjs.entry.js +2 -2
- package/dist/cjs/vega-card.cjs.entry.js +4 -4
- package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-chip.cjs.entry.js +4 -4
- package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/vega-combo-box.cjs.entry.js +2 -2
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-dialog_2.cjs.entry.js +80 -5
- package/dist/cjs/vega-divider.cjs.entry.js +4 -4
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +33 -10
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
- package/dist/cjs/vega-flex.cjs.entry.js +5 -5
- package/dist/cjs/vega-font.cjs.entry.js +4 -4
- package/dist/cjs/vega-form.cjs.entry.js +2 -2
- package/dist/cjs/vega-grid.cjs.entry.js +4 -4
- package/dist/cjs/vega-icon.cjs.entry.js +4 -4
- package/dist/cjs/vega-image-uploader.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +2 -2
- package/dist/cjs/vega-input-numeric.cjs.entry.js +2 -2
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +8 -5
- package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
- package/dist/cjs/vega-input.cjs.entry.js +2 -2
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +28 -11
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +17 -9
- package/dist/cjs/vega-pagination.cjs.entry.js +9 -8
- package/dist/cjs/vega-popover_2.cjs.entry.js +6 -8
- package/dist/cjs/vega-radio_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +2 -2
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +38 -17
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-signature-capture.cjs.entry.js +6 -6
- package/dist/cjs/vega-skeleton.cjs.entry.js +14 -2
- package/dist/cjs/vega-stepper.cjs.entry.js +2 -2
- package/dist/cjs/vega-table_8.cjs.entry.js +4 -4
- package/dist/cjs/vega-textarea.cjs.entry.js +2 -2
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +22 -12
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +4 -4
- package/dist/cjs/vega.cjs.js +4 -4
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.js +19 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.js +6 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +3 -8
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +8 -5
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.js +62 -1
- package/dist/collection/components/vega-modal/vega-modal.js +28 -0
- package/dist/collection/components/vega-nav/slimmers/renderers/vega-nav-list-renderer.js +3 -3
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.js +7 -1
- package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.js +47 -2
- package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.js +4 -1
- package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.js +21 -0
- package/dist/collection/components/vega-nav/vega-left-nav-section/slimmers/renderers/vega-left-nav-section-renderer.js +4 -1
- package/dist/collection/components/vega-nav/vega-left-nav-section/vega-left-nav-section.js +20 -0
- package/dist/collection/components/vega-pagination/vega-pagination-page-size-selector-mobile/slimmers/renderers/page-size-selector-mobile-renderer.js +16 -7
- package/dist/collection/components/vega-pagination/vega-pagination.js +6 -5
- package/dist/collection/components/vega-popover/vega-popover.js +3 -8
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +0 -11
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/toolbar-button-slimmer.abstract.js +4 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-block.test.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/slimmers/renderers/vega-rich-text-image-editor-renderer.js +12 -7
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.js +7 -4
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.js +5 -0
- package/dist/collection/components/vega-skeleton/slimmers/renderers/vega-skeleton-image-renderer.js +4 -1
- package/dist/collection/components/vega-skeleton/vega-skeleton.css +0 -1
- package/dist/collection/components/vega-skeleton/vega-skeleton.js +38 -0
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-dropdown-renderer.js +3 -0
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-dropdown-renderer.js +2 -0
- package/dist/collection/components/vega-time-picker/vega-time-picker-dropdown/vega-time-picker-dropdown.css +2 -1
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +10 -5
- package/dist/collection/helpers/translation/internal-translation-controller.js +25 -0
- package/dist/collection/helpers/translation/locales/en.js +36 -0
- package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +48 -0
- package/dist/collection/helpers/validator/test/rules/rich-text-editor-required-rule.test.js +4 -4
- package/dist/esm/{app-globals-f767f6be.js → app-globals-6a7d90a9.js} +3 -3
- package/dist/esm/{content-state-2b4fdc4f.js → content-state-7e9f3421.js} +1 -13
- package/dist/esm/{design-token-9a3c1dc5.js → design-token-e349fd57.js} +1 -1
- package/dist/esm/{element-appender-slimmer-8adfc578.js → element-appender-slimmer-a187435b.js} +1 -1
- package/dist/esm/{form-field-controller-slimmer-75f525f4.js → form-field-controller-slimmer-c9280871.js} +1 -1
- package/dist/esm/{image-annotation-action-aea4f430.js → image-annotation-action-2541490e.js} +5 -2
- package/dist/esm/index.js +5 -5
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{public-rules-20db9763.js → public-rules-596db5ba.js} +2 -2
- package/dist/esm/{responsive-format-facade-175aee98.js → responsive-format-facade-ce8a1ef5.js} +2 -2
- package/dist/esm/{rich-text-editor-required-rule-ed41bdd9.js → rich-text-editor-required-rule-ef25c4da.js} +1 -1
- package/dist/esm/{style-formatter-99ad38cd.js → style-formatter-3b67ed25.js} +1 -1
- package/dist/esm/{translation-a18bc15e.js → translation-4bed3392.js} +61 -0
- package/dist/esm/{translation-slimmer-a8c20249.js → translation-slimmer-fc1ddf17.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +4 -4
- package/dist/esm/vega-app-header-button.entry.js +4 -4
- package/dist/esm/vega-box.entry.js +5 -5
- package/dist/esm/vega-button-circle.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +3 -3
- package/dist/esm/vega-calendar_3.entry.js +2 -2
- package/dist/esm/vega-card.entry.js +4 -4
- package/dist/esm/vega-carousel.entry.js +3 -3
- package/dist/esm/vega-checkbox_2.entry.js +2 -2
- package/dist/esm/vega-chip.entry.js +4 -4
- package/dist/esm/vega-color-picker.entry.js +2 -2
- package/dist/esm/vega-combo-box.entry.js +2 -2
- package/dist/esm/vega-date-picker_2.entry.js +6 -6
- package/dist/esm/vega-dialog_2.entry.js +80 -5
- package/dist/esm/vega-divider.entry.js +4 -4
- package/dist/esm/vega-dropdown_5.entry.js +33 -10
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +3 -3
- package/dist/esm/vega-flex.entry.js +5 -5
- package/dist/esm/vega-font.entry.js +4 -4
- package/dist/esm/vega-form.entry.js +2 -2
- package/dist/esm/vega-grid.entry.js +4 -4
- package/dist/esm/vega-icon.entry.js +4 -4
- package/dist/esm/vega-image-uploader.entry.js +5 -5
- package/dist/esm/vega-input-credit-card.entry.js +2 -2
- package/dist/esm/vega-input-numeric.entry.js +2 -2
- package/dist/esm/vega-input-phone-number.entry.js +8 -5
- package/dist/esm/vega-input-range.entry.js +3 -3
- package/dist/esm/vega-input-select.entry.js +5 -5
- package/dist/esm/vega-input.entry.js +2 -2
- package/dist/esm/vega-left-nav_5.entry.js +28 -11
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +17 -9
- package/dist/esm/vega-pagination.entry.js +9 -8
- package/dist/esm/vega-popover_2.entry.js +6 -8
- package/dist/esm/vega-radio_2.entry.js +2 -2
- package/dist/esm/vega-rich-text-content.entry.js +2 -2
- package/dist/esm/vega-rich-text-editor_4.entry.js +38 -17
- package/dist/esm/vega-selection-chip_2.entry.js +4 -4
- package/dist/esm/vega-selection-tile_2.entry.js +2 -2
- package/dist/esm/vega-sidenav_3.entry.js +3 -3
- package/dist/esm/vega-signature-capture.entry.js +6 -6
- package/dist/esm/vega-skeleton.entry.js +14 -2
- package/dist/esm/vega-stepper.entry.js +2 -2
- package/dist/esm/vega-table_8.entry.js +4 -4
- package/dist/esm/vega-textarea.entry.js +2 -2
- package/dist/esm/vega-time-picker_2.entry.js +22 -12
- package/dist/esm/vega-toggle-switch.entry.js +2 -2
- package/dist/esm/vega-tooltip_2.entry.js +4 -4
- package/dist/esm/vega.js +4 -4
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.d.ts +17 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.d.ts +2 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +2 -4
- package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +6 -3
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.d.ts +25 -0
- package/dist/types/components/vega-modal/vega-modal.d.ts +10 -0
- package/dist/types/components/vega-nav/interface.d.ts +4 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.d.ts +2 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/vega-left-nav-group.d.ts +10 -0
- package/dist/types/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.d.ts +1 -0
- package/dist/types/components/vega-nav/vega-left-nav-link/vega-left-nav-link.d.ts +7 -0
- package/dist/types/components/vega-nav/vega-left-nav-section/slimmers/renderers/vega-left-nav-section-renderer.d.ts +1 -0
- package/dist/types/components/vega-nav/vega-left-nav-section/vega-left-nav-section.d.ts +6 -0
- package/dist/types/components/vega-pagination/vega-pagination-page-size-selector-mobile/slimmers/renderers/page-size-selector-mobile-renderer.d.ts +2 -0
- package/dist/types/components/vega-pagination/vega-pagination.d.ts +5 -4
- package/dist/types/components/vega-popover/vega-popover.d.ts +2 -4
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +0 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/toolbar-button-slimmer.abstract.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/slimmers/renderers/vega-rich-text-image-editor-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.d.ts +2 -0
- package/dist/types/components/vega-skeleton/slimmers/renderers/vega-skeleton-image-renderer.d.ts +1 -0
- package/dist/types/components/vega-skeleton/vega-skeleton.d.ts +10 -1
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-dropdown-renderer.d.ts +1 -0
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-dropdown-renderer.d.ts +1 -0
- package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +2 -0
- package/dist/types/components.d.ts +62 -14
- package/dist/types/helpers/translation/interface.d.ts +42 -1
- package/dist/types/helpers/translation/internal-translation-controller.d.ts +10 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-01d4c679.js +1 -0
- package/dist/vega/{p-fcfc7b00.entry.js → p-0d8136bc.entry.js} +1 -1
- package/dist/vega/{p-ffe7cf8b.entry.js → p-11249b56.entry.js} +1 -1
- package/dist/vega/{p-3fcf766c.entry.js → p-1d46d29d.entry.js} +1 -1
- package/dist/vega/{p-2940fa99.entry.js → p-25d18888.entry.js} +1 -1
- package/dist/vega/p-2b7252c6.js +1 -0
- package/dist/vega/{p-a194988c.entry.js → p-32af415d.entry.js} +1 -1
- package/dist/vega/p-39bb2289.js +1 -0
- package/dist/vega/{p-c76024af.entry.js → p-39d3782b.entry.js} +1 -1
- package/dist/vega/{p-da6d71ed.entry.js → p-3b877fa3.entry.js} +1 -1
- package/dist/vega/{p-56926f06.entry.js → p-3c36bd11.entry.js} +1 -1
- package/dist/vega/{p-3bcd66e9.entry.js → p-3d236584.entry.js} +1 -1
- package/dist/vega/{p-8f6c028b.entry.js → p-46555732.entry.js} +1 -1
- package/dist/vega/p-4868e57c.entry.js +1 -0
- package/dist/vega/{p-eb87d418.entry.js → p-4e406f70.entry.js} +1 -1
- package/dist/vega/{p-c531d2f3.js → p-51686ec2.js} +1 -1
- package/dist/vega/p-5299a287.entry.js +1 -0
- package/dist/vega/p-55101775.entry.js +1 -0
- package/dist/vega/{p-5e38f071.entry.js → p-57f406cf.entry.js} +1 -1
- package/dist/vega/{p-6008c0c0.entry.js → p-5825343a.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-eac0f7ff.js → p-5f5bfd9c.js} +1 -1
- package/dist/vega/{p-b82b01fa.entry.js → p-60234e0a.entry.js} +1 -1
- package/dist/vega/{p-15d40cb5.entry.js → p-639c3322.entry.js} +1 -1
- package/dist/vega/{p-ac91b1b5.entry.js → p-6be0a9bf.entry.js} +1 -1
- package/dist/vega/{p-c5ddea92.entry.js → p-71b82ba5.entry.js} +1 -1
- package/dist/vega/{p-15d7a049.js → p-7617b2ac.js} +1 -1
- package/dist/vega/{p-30d56b87.entry.js → p-7839a201.entry.js} +1 -1
- package/dist/vega/{p-9c4271d9.entry.js → p-8b044ac7.entry.js} +1 -1
- package/dist/vega/{p-e3d6e626.entry.js → p-8d1e0418.entry.js} +1 -1
- package/dist/vega/{p-9fdb3ef8.js → p-99289273.js} +1 -1
- package/dist/vega/{p-502f523c.entry.js → p-9955844c.entry.js} +1 -1
- package/dist/vega/p-9ba28523.js +1 -0
- package/dist/vega/{p-1538cafa.entry.js → p-9bebdace.entry.js} +1 -1
- package/dist/vega/{p-60e678ea.entry.js → p-9d3d7854.entry.js} +1 -1
- package/dist/vega/{p-251315ac.entry.js → p-a04624f3.entry.js} +1 -1
- package/dist/vega/{p-e3820e5b.js → p-a3fa41c8.js} +1 -1
- package/dist/vega/{p-058f2c79.entry.js → p-a501fb74.entry.js} +1 -1
- package/dist/vega/{p-d293df16.entry.js → p-a88acecd.entry.js} +1 -1
- package/dist/vega/{p-1edaa1cc.entry.js → p-acba84aa.entry.js} +1 -1
- package/dist/vega/{p-265f6155.entry.js → p-b196eab0.entry.js} +1 -1
- package/dist/vega/{p-150f8194.entry.js → p-b288e52e.entry.js} +1 -1
- package/dist/vega/p-b587e576.entry.js +1 -0
- package/dist/vega/{p-f61c9513.entry.js → p-b6c155d4.entry.js} +1 -1
- package/dist/vega/{p-3c235627.entry.js → p-b87ede84.entry.js} +1 -1
- package/dist/vega/{p-40239f3f.entry.js → p-c00d95d2.entry.js} +1 -1
- package/dist/vega/p-c906aa4f.js +1 -0
- package/dist/vega/{p-9721f1ea.entry.js → p-cf3d8e47.entry.js} +1 -1
- package/dist/vega/p-d0007822.entry.js +1 -0
- package/dist/vega/{p-d924d6d4.entry.js → p-d3101d07.entry.js} +1 -1
- package/dist/vega/p-d8683a5f.js +1 -0
- package/dist/vega/{p-31c88532.entry.js → p-dbd3e747.entry.js} +1 -1
- package/dist/vega/{p-91ec1b58.entry.js → p-dd94bd57.entry.js} +1 -1
- package/dist/vega/{p-97950866.entry.js → p-e244aa52.entry.js} +1 -1
- package/dist/vega/{p-502dcacc.entry.js → p-e8bb5d2e.entry.js} +1 -1
- package/dist/vega/{p-d3a815a7.entry.js → p-e8be1bd4.entry.js} +1 -1
- package/dist/vega/p-f18ed03e.entry.js +1 -0
- package/dist/vega/p-f5c32d70.entry.js +1 -0
- package/dist/vega/{p-ca52f952.entry.js → p-fe51bfea.entry.js} +1 -1
- package/dist/vega/{p-d13704a2.entry.js → p-fea464ce.entry.js} +1 -1
- package/dist/vega/{p-1040bac6.js → p-ffaafd34.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +2 -2
- package/dist/vega/p-14514252.entry.js +0 -1
- package/dist/vega/p-1b6a38ab.js +0 -1
- package/dist/vega/p-31ba6562.entry.js +0 -1
- package/dist/vega/p-607ba0e0.entry.js +0 -1
- package/dist/vega/p-76076b46.js +0 -1
- package/dist/vega/p-7e1e319d.entry.js +0 -1
- package/dist/vega/p-8bc506e0.entry.js +0 -1
- package/dist/vega/p-b129beb6.js +0 -1
- package/dist/vega/p-b845ea28.js +0 -1
- package/dist/vega/p-c89c01b4.entry.js +0 -1
- package/dist/vega/p-d920b18c.js +0 -1
- package/dist/vega/p-e44c5f70.entry.js +0 -1
- package/dist/vega/p-f4931a1f.js +0 -1
|
@@ -14,6 +14,7 @@ export declare class VegaTimePickerRangeDropdownRenderer extends VegaSlimmer {
|
|
|
14
14
|
private startDropdownContainer;
|
|
15
15
|
private endDropdownContainer;
|
|
16
16
|
private isMobileDevice;
|
|
17
|
+
private isTabletDevice;
|
|
17
18
|
/**
|
|
18
19
|
* Component lifecycle - [componentDidRender]{@link VegaTimePicker.componentDidRender}
|
|
19
20
|
*/
|
|
@@ -10,6 +10,7 @@ export declare class VegaTimePickerSingleDropdownRenderer extends VegaSlimmer {
|
|
|
10
10
|
private dropdown;
|
|
11
11
|
private dropdownContainer;
|
|
12
12
|
private isMobileDevice;
|
|
13
|
+
private isTabletDevice;
|
|
13
14
|
/**
|
|
14
15
|
* Component lifecycle - [componentDidRender]{@link VegaTimePicker.componentDidRender}
|
|
15
16
|
*/
|
|
@@ -44,6 +44,7 @@ export declare class VegaTimePicker {
|
|
|
44
44
|
protected changeEventEmitter: EventEmitSlimmerBase;
|
|
45
45
|
protected vegaComponentUsageRuntimeMetricsSlimmer: VegaComponentUsageRuntimeMetricsSlimmer<HTMLVegaTimePickerElement>;
|
|
46
46
|
private isMobileDevice;
|
|
47
|
+
private isTabletDevice;
|
|
47
48
|
private inputContainerRef;
|
|
48
49
|
host: HTMLVegaTimePickerElement;
|
|
49
50
|
/** dropdown source */
|
|
@@ -176,4 +177,5 @@ export declare class VegaTimePicker {
|
|
|
176
177
|
componentDidLoad(): void;
|
|
177
178
|
componentDidRender(): void;
|
|
178
179
|
render(): VegaTimePicker;
|
|
180
|
+
private getTimePickerClass;
|
|
179
181
|
}
|
|
@@ -1257,8 +1257,7 @@ export namespace Components {
|
|
|
1257
1257
|
"isLoading": boolean;
|
|
1258
1258
|
/**
|
|
1259
1259
|
* Determines whether the dropdown position is calculated relative to the screen.
|
|
1260
|
-
* @VegaWarning
|
|
1261
|
-
* @VegaWarning Currently, when set to true, position calculation may be inaccurate if the dropdown is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
1260
|
+
* @VegaWarning - It will overrides the positionRelativeTo and matchContainerHeight properties, rendering them ineffective. - Currently, when set to true, the position calculation may be inaccurate if the popover is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
1262
1261
|
* @vegaVersion 2.36.0
|
|
1263
1262
|
*/
|
|
1264
1263
|
"isScreenPosition": boolean;
|
|
@@ -2072,7 +2071,7 @@ export namespace Components {
|
|
|
2072
2071
|
*/
|
|
2073
2072
|
"disabled": boolean;
|
|
2074
2073
|
/**
|
|
2075
|
-
* Specifies whether the phone number input field can be set to an empty value.
|
|
2074
|
+
* Specifies whether the phone number input field can be set to an empty value. - `true`: The value property is cleared when the input field is empty. - `false`: The value property is `+1` when no phone number is entered.
|
|
2076
2075
|
* @vegaVersion 2.35.0
|
|
2077
2076
|
*/
|
|
2078
2077
|
"emptyValueEnabled": boolean;
|
|
@@ -2113,7 +2112,7 @@ export namespace Components {
|
|
|
2113
2112
|
"validationRules": FormFieldValidationRule<unknown>[];
|
|
2114
2113
|
/**
|
|
2115
2114
|
* Specifies the value of the phone number input in [E.164]{@link https ://en.wikipedia.org/wiki/E.164} format.
|
|
2116
|
-
* @VegaWarning Note: The input phone number field will always have a value. If no phone number is entered, the default format is `+{default_country_code}`. For example, if the default country code is US, the default value will be `+1`.
|
|
2115
|
+
* @VegaWarning - Note: The input phone number field will always have a value. If no phone number is entered, the default format is `+{default_country_code}`. - For example, if the default country code is US, the default value will be `+1`.
|
|
2117
2116
|
* @vegaVersion 2.18.0
|
|
2118
2117
|
* @defaultValue +1
|
|
2119
2118
|
*/
|
|
@@ -2361,11 +2360,21 @@ export namespace Components {
|
|
|
2361
2360
|
* @vegaVersion 1.31.0
|
|
2362
2361
|
*/
|
|
2363
2362
|
"icon": string;
|
|
2363
|
+
/**
|
|
2364
|
+
* Defines a unique key for the left nav group item.
|
|
2365
|
+
* @vegaVersion 2.45.0
|
|
2366
|
+
*/
|
|
2367
|
+
"itemKey": string;
|
|
2364
2368
|
/**
|
|
2365
2369
|
* label attached to the left nav group items **
|
|
2366
2370
|
* @vegaVersion 1.31.0
|
|
2367
2371
|
*/
|
|
2368
2372
|
"label": string;
|
|
2373
|
+
/**
|
|
2374
|
+
* Specifies whether the navigation group is expanded by default **
|
|
2375
|
+
* @vegaVersion 2.44.0
|
|
2376
|
+
*/
|
|
2377
|
+
"openByDefault": boolean;
|
|
2369
2378
|
}
|
|
2370
2379
|
interface VegaLeftNavLink {
|
|
2371
2380
|
/**
|
|
@@ -2384,6 +2393,11 @@ export namespace Components {
|
|
|
2384
2393
|
* @vegaVersion 1.31.0
|
|
2385
2394
|
*/
|
|
2386
2395
|
"icon": string;
|
|
2396
|
+
/**
|
|
2397
|
+
* Defines a unique key for the left nav link item.
|
|
2398
|
+
* @vegaVersion 2.45.0
|
|
2399
|
+
*/
|
|
2400
|
+
"itemKey": string;
|
|
2387
2401
|
/**
|
|
2388
2402
|
* A boolean that indicates whether the current link item is selected.
|
|
2389
2403
|
* @VegaWarning Note: Ensure that the `custom-selection-enabled` property is set to `true` before modifying this value, as modifying it without this setting may lead to unexpected behavior.
|
|
@@ -2397,6 +2411,11 @@ export namespace Components {
|
|
|
2397
2411
|
"url": string;
|
|
2398
2412
|
}
|
|
2399
2413
|
interface VegaLeftNavSection {
|
|
2414
|
+
/**
|
|
2415
|
+
* Defines a unique key for the left nav nav section item.
|
|
2416
|
+
* @vegaVersion 2.45.0
|
|
2417
|
+
*/
|
|
2418
|
+
"itemKey": string;
|
|
2400
2419
|
/**
|
|
2401
2420
|
* sectionHeader attached to the left nav section **
|
|
2402
2421
|
* @vegaVersion 1.31.0
|
|
@@ -2586,7 +2605,7 @@ export namespace Components {
|
|
|
2586
2605
|
"dropdownProps": DropdownPropsForPagination;
|
|
2587
2606
|
/**
|
|
2588
2607
|
* Specifies the extensions associated with the pagination items in the pagination component. It refers to additional elements or components that can be added to enhance the functionality or appearance of each pagination item.
|
|
2589
|
-
* @VegaWarning Note: The default value is controlled by feature flag `VEGA_PAGINATION.ENABLE_EXTENSIONS_RESPONSIVE_DEFAULT_VALUE`, which is disabled by default. To enable the new responsive default value `{ default: [['pageSizeSelectorMobile_currentPageLabel'], ['pageSelectorMobile_goTo']], M: [['pageSelector']], }`, please enable the feature flag.
|
|
2608
|
+
* @VegaWarning - Note: The default value is controlled by feature flag `VEGA_PAGINATION.ENABLE_EXTENSIONS_RESPONSIVE_DEFAULT_VALUE`, which is disabled by default. - To enable the new responsive default value `{ default: [['pageSizeSelectorMobile_currentPageLabel'], ['pageSelectorMobile_goTo']], M: [['pageSelector']], }`, please enable the feature flag.
|
|
2590
2609
|
* @vegaVersion 1.25.0
|
|
2591
2610
|
* @defaultValue [['pageSelector']]
|
|
2592
2611
|
*/
|
|
@@ -2691,8 +2710,7 @@ export namespace Components {
|
|
|
2691
2710
|
"hide": () => Promise<void>;
|
|
2692
2711
|
/**
|
|
2693
2712
|
* Determines whether the popover's position is calculated relative to the screen.
|
|
2694
|
-
* @VegaWarning
|
|
2695
|
-
* @VegaWarning Currently, when set to true, the position calculation may be inaccurate if the popover is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
2713
|
+
* @VegaWarning - It will overrides the positionRelativeTo and matchContainerHeight properties, rendering them ineffective. - Currently, when set to true, the position calculation may be inaccurate if the popover is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
2696
2714
|
* @vegaVersion 2.39.0
|
|
2697
2715
|
*/
|
|
2698
2716
|
"isScreenPosition": boolean;
|
|
@@ -3359,6 +3377,12 @@ export namespace Components {
|
|
|
3359
3377
|
* @vegaVersion 2.15.0
|
|
3360
3378
|
*/
|
|
3361
3379
|
"animated": boolean;
|
|
3380
|
+
/**
|
|
3381
|
+
* Defines the corner of the skeleton. It accepts a string value representing a valid border radius token.
|
|
3382
|
+
* @VegaHint This property is only valid for image types.
|
|
3383
|
+
* @vegaVersion 2.45.0
|
|
3384
|
+
*/
|
|
3385
|
+
"corners": CornersType;
|
|
3362
3386
|
/**
|
|
3363
3387
|
* Specifies the height of the skeleton. - This property is applicable only when {@link type} is set to is `image` or `ellipse`.
|
|
3364
3388
|
* @vegaVersion 2.15.0
|
|
@@ -6421,8 +6445,7 @@ declare namespace LocalJSX {
|
|
|
6421
6445
|
"isLoading"?: boolean;
|
|
6422
6446
|
/**
|
|
6423
6447
|
* Determines whether the dropdown position is calculated relative to the screen.
|
|
6424
|
-
* @VegaWarning
|
|
6425
|
-
* @VegaWarning Currently, when set to true, position calculation may be inaccurate if the dropdown is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
6448
|
+
* @VegaWarning - It will overrides the positionRelativeTo and matchContainerHeight properties, rendering them ineffective. - Currently, when set to true, the position calculation may be inaccurate if the popover is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
6426
6449
|
* @vegaVersion 2.36.0
|
|
6427
6450
|
*/
|
|
6428
6451
|
"isScreenPosition"?: boolean;
|
|
@@ -7479,7 +7502,7 @@ declare namespace LocalJSX {
|
|
|
7479
7502
|
*/
|
|
7480
7503
|
"disabled"?: boolean;
|
|
7481
7504
|
/**
|
|
7482
|
-
* Specifies whether the phone number input field can be set to an empty value.
|
|
7505
|
+
* Specifies whether the phone number input field can be set to an empty value. - `true`: The value property is cleared when the input field is empty. - `false`: The value property is `+1` when no phone number is entered.
|
|
7483
7506
|
* @vegaVersion 2.35.0
|
|
7484
7507
|
*/
|
|
7485
7508
|
"emptyValueEnabled"?: boolean;
|
|
@@ -7542,7 +7565,7 @@ declare namespace LocalJSX {
|
|
|
7542
7565
|
"validationRules"?: FormFieldValidationRule<unknown>[];
|
|
7543
7566
|
/**
|
|
7544
7567
|
* Specifies the value of the phone number input in [E.164]{@link https ://en.wikipedia.org/wiki/E.164} format.
|
|
7545
|
-
* @VegaWarning Note: The input phone number field will always have a value. If no phone number is entered, the default format is `+{default_country_code}`. For example, if the default country code is US, the default value will be `+1`.
|
|
7568
|
+
* @VegaWarning - Note: The input phone number field will always have a value. If no phone number is entered, the default format is `+{default_country_code}`. - For example, if the default country code is US, the default value will be `+1`.
|
|
7546
7569
|
* @vegaVersion 2.18.0
|
|
7547
7570
|
* @defaultValue +1
|
|
7548
7571
|
*/
|
|
@@ -7846,6 +7869,11 @@ declare namespace LocalJSX {
|
|
|
7846
7869
|
* @vegaVersion 1.31.0
|
|
7847
7870
|
*/
|
|
7848
7871
|
"icon"?: string;
|
|
7872
|
+
/**
|
|
7873
|
+
* Defines a unique key for the left nav group item.
|
|
7874
|
+
* @vegaVersion 2.45.0
|
|
7875
|
+
*/
|
|
7876
|
+
"itemKey"?: string;
|
|
7849
7877
|
/**
|
|
7850
7878
|
* label attached to the left nav group items **
|
|
7851
7879
|
* @vegaVersion 1.31.0
|
|
@@ -7862,6 +7890,11 @@ declare namespace LocalJSX {
|
|
|
7862
7890
|
* @vegaVersion 1.41.0
|
|
7863
7891
|
*/
|
|
7864
7892
|
"onVegaGroupClick"?: (event: VegaLeftNavGroupCustomEvent<string>) => void;
|
|
7893
|
+
/**
|
|
7894
|
+
* Specifies whether the navigation group is expanded by default **
|
|
7895
|
+
* @vegaVersion 2.44.0
|
|
7896
|
+
*/
|
|
7897
|
+
"openByDefault"?: boolean;
|
|
7865
7898
|
}
|
|
7866
7899
|
interface VegaLeftNavLink {
|
|
7867
7900
|
/**
|
|
@@ -7880,6 +7913,11 @@ declare namespace LocalJSX {
|
|
|
7880
7913
|
* @vegaVersion 1.31.0
|
|
7881
7914
|
*/
|
|
7882
7915
|
"icon"?: string;
|
|
7916
|
+
/**
|
|
7917
|
+
* Defines a unique key for the left nav link item.
|
|
7918
|
+
* @vegaVersion 2.45.0
|
|
7919
|
+
*/
|
|
7920
|
+
"itemKey"?: string;
|
|
7883
7921
|
/**
|
|
7884
7922
|
* An event emitter notifying the link click event.
|
|
7885
7923
|
* @eventSemantics namespace:native
|
|
@@ -7904,6 +7942,11 @@ declare namespace LocalJSX {
|
|
|
7904
7942
|
"url"?: string;
|
|
7905
7943
|
}
|
|
7906
7944
|
interface VegaLeftNavSection {
|
|
7945
|
+
/**
|
|
7946
|
+
* Defines a unique key for the left nav nav section item.
|
|
7947
|
+
* @vegaVersion 2.45.0
|
|
7948
|
+
*/
|
|
7949
|
+
"itemKey"?: string;
|
|
7907
7950
|
/**
|
|
7908
7951
|
* An event emitter notifying the action click event when the action link is not configured.
|
|
7909
7952
|
* @eventSemantics namespace:native
|
|
@@ -8111,7 +8154,7 @@ declare namespace LocalJSX {
|
|
|
8111
8154
|
"dropdownProps"?: DropdownPropsForPagination;
|
|
8112
8155
|
/**
|
|
8113
8156
|
* Specifies the extensions associated with the pagination items in the pagination component. It refers to additional elements or components that can be added to enhance the functionality or appearance of each pagination item.
|
|
8114
|
-
* @VegaWarning Note: The default value is controlled by feature flag `VEGA_PAGINATION.ENABLE_EXTENSIONS_RESPONSIVE_DEFAULT_VALUE`, which is disabled by default. To enable the new responsive default value `{ default: [['pageSizeSelectorMobile_currentPageLabel'], ['pageSelectorMobile_goTo']], M: [['pageSelector']], }`, please enable the feature flag.
|
|
8157
|
+
* @VegaWarning - Note: The default value is controlled by feature flag `VEGA_PAGINATION.ENABLE_EXTENSIONS_RESPONSIVE_DEFAULT_VALUE`, which is disabled by default. - To enable the new responsive default value `{ default: [['pageSizeSelectorMobile_currentPageLabel'], ['pageSelectorMobile_goTo']], M: [['pageSelector']], }`, please enable the feature flag.
|
|
8115
8158
|
* @vegaVersion 1.25.0
|
|
8116
8159
|
* @defaultValue [['pageSelector']]
|
|
8117
8160
|
*/
|
|
@@ -8228,8 +8271,7 @@ declare namespace LocalJSX {
|
|
|
8228
8271
|
"alignment"?: PositionAlignmentType;
|
|
8229
8272
|
/**
|
|
8230
8273
|
* Determines whether the popover's position is calculated relative to the screen.
|
|
8231
|
-
* @VegaWarning
|
|
8232
|
-
* @VegaWarning Currently, when set to true, the position calculation may be inaccurate if the popover is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
8274
|
+
* @VegaWarning - It will overrides the positionRelativeTo and matchContainerHeight properties, rendering them ineffective. - Currently, when set to true, the position calculation may be inaccurate if the popover is placed inside a scrollable container within a shadowRoot (e.g., inside a vega-modal with scrollable content).
|
|
8233
8275
|
* @vegaVersion 2.39.0
|
|
8234
8276
|
*/
|
|
8235
8277
|
"isScreenPosition"?: boolean;
|
|
@@ -9069,6 +9111,12 @@ declare namespace LocalJSX {
|
|
|
9069
9111
|
* @vegaVersion 2.15.0
|
|
9070
9112
|
*/
|
|
9071
9113
|
"animated"?: boolean;
|
|
9114
|
+
/**
|
|
9115
|
+
* Defines the corner of the skeleton. It accepts a string value representing a valid border radius token.
|
|
9116
|
+
* @VegaHint This property is only valid for image types.
|
|
9117
|
+
* @vegaVersion 2.45.0
|
|
9118
|
+
*/
|
|
9119
|
+
"corners"?: CornersType;
|
|
9072
9120
|
/**
|
|
9073
9121
|
* Specifies the height of the skeleton. - This property is applicable only when {@link type} is set to is `image` or `ellipse`.
|
|
9074
9122
|
* @vegaVersion 2.15.0
|
|
@@ -14,6 +14,11 @@ export interface TranslationKeyMap {
|
|
|
14
14
|
dynamic: string;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
export type PreservedTranslationOutput = {
|
|
18
|
+
content: string;
|
|
19
|
+
isPreserved: boolean;
|
|
20
|
+
};
|
|
21
|
+
|
|
17
22
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
18
23
|
export type StaticTranslationKey =
|
|
19
24
|
// Form validation rule
|
|
@@ -72,6 +77,8 @@ export type StaticTranslationKey =
|
|
|
72
77
|
| 'Show'
|
|
73
78
|
| 'Go To'
|
|
74
79
|
| 'Viewing {0}-{1} of {2}'
|
|
80
|
+
| 'Viewing [{0}-{1}] of {2}'
|
|
81
|
+
| 'Show [{0} items / page]'
|
|
75
82
|
| 'Items Per Page'
|
|
76
83
|
| 'Upload'
|
|
77
84
|
| 'All Day'
|
|
@@ -88,4 +95,38 @@ export type StaticTranslationKey =
|
|
|
88
95
|
| 'Select Time'
|
|
89
96
|
| 'Start Time'
|
|
90
97
|
| 'End Time'
|
|
91
|
-
| 'There is no data to display'
|
|
98
|
+
| 'There is no data to display'
|
|
99
|
+
| 'Text Styles'
|
|
100
|
+
| 'Bold'
|
|
101
|
+
| 'Italic'
|
|
102
|
+
| 'Underline'
|
|
103
|
+
| 'Strikethrough'
|
|
104
|
+
| 'Code'
|
|
105
|
+
| 'Text Color'
|
|
106
|
+
| 'Left Align'
|
|
107
|
+
| 'Center Align'
|
|
108
|
+
| 'Right Align'
|
|
109
|
+
| 'Justified'
|
|
110
|
+
| 'Bullets'
|
|
111
|
+
| 'Numbers'
|
|
112
|
+
| 'More Indent'
|
|
113
|
+
| 'Less Indent'
|
|
114
|
+
| 'Link'
|
|
115
|
+
| 'Image'
|
|
116
|
+
| 'Clear Style'
|
|
117
|
+
| 'URL'
|
|
118
|
+
| 'Text'
|
|
119
|
+
| 'Edit'
|
|
120
|
+
| 'Unlink'
|
|
121
|
+
| 'Size'
|
|
122
|
+
| 'Alt Text'
|
|
123
|
+
| 'Delete Image'
|
|
124
|
+
| 'Sm'
|
|
125
|
+
| 'Md'
|
|
126
|
+
| 'Lg'
|
|
127
|
+
| 'Title'
|
|
128
|
+
| 'Subtitle'
|
|
129
|
+
| 'Heading 1'
|
|
130
|
+
| 'Heading 2'
|
|
131
|
+
| 'Heading 3'
|
|
132
|
+
| 'Paragraph';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TranslationKeyMap, TranslationKeyType, VegaTranslationConfig } from './interface';
|
|
1
|
+
import { PreservedTranslationOutput, TranslationKeyMap, TranslationKeyType, VegaTranslationConfig } from './interface';
|
|
2
2
|
import { HTMLStencilElement } from '../../stencil-public-runtime';
|
|
3
3
|
/**
|
|
4
4
|
* Vega translation controller to control the internal text translation
|
|
@@ -53,6 +53,15 @@ declare class InternalTranslationController {
|
|
|
53
53
|
* @returns {Map<string, Set<HTMLElement>>} A map of connected components.
|
|
54
54
|
*/
|
|
55
55
|
getConnectedComponents(): Map<string, Set<HTMLElement>>;
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves the preserved translated message segments.
|
|
58
|
+
*
|
|
59
|
+
* @param {string} key - The key for the translation.
|
|
60
|
+
* @param {RegExp} preservePattern - the preserved regulation pattern to apply.
|
|
61
|
+
* @param {unknown[]} args - A list of values to replace in the translation string.
|
|
62
|
+
* @returns {PreservedTranslationOutput[]} An array of translated segments
|
|
63
|
+
*/
|
|
64
|
+
tWithPreservedBlocks<T extends TranslationKeyType = 'static'>(key: TranslationKeyMap[T], preservePattern?: RegExp, ...args: unknown[]): PreservedTranslationOutput[];
|
|
56
65
|
}
|
|
57
66
|
export declare const VegaInternalTranslation: InternalTranslationController;
|
|
58
67
|
export {};
|
package/dist/vega/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getCurrentBreakpoint}from"./p-c0291e2e.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-
|
|
1
|
+
export{g as getCurrentBreakpoint}from"./p-c0291e2e.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-7617b2ac.js";export{c as camelToDashCase}from"./p-0bb29d98.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-b1f65b13.js";export{B as Breakpoints}from"./p-ed45b3b6.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{b as Typography,a as TypographyKeys,T as TypographyUrls}from"./p-d884c644.js";export{e as BoxDisplay,B as BreakpointKeys,C as CssStates,F as FlexDirections}from"./p-74168615.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{b as VegaDialog,c as VegaEventManager,V as VegaLoader,a as VegaNotify,e as VegaSkeletonLoader,d as VegaZIndexManager}from"./p-f1e0e7d4.js";export{F as FeatureFlag}from"./p-1e940ce8.js";export{M as ModifyContentAction,e as RTEBlock,b as RTEImageBlock,f as RTEImageNode,d as RTEListBlock,c as RTEListItemBlock,h as RTENode,R as RTETextBlock,g as RTETextNode,a as VegaRTEContent,V as VegaThemeManager}from"./p-01d4c679.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-619fdde5.js";export{V as VegaIconManager}from"./p-cc63e827.js";export{V as ValidCreditCardNumberRule}from"./p-6f90d444.js";export{w as waitForVega}from"./p-179c59ff.js";export{a as VegaTranslation,s as VegaTranslationResourceEN}from"./p-d8683a5f.js";export{G as GridColumns,a as GridRows}from"./p-51686ec2.js";export{C as CheckBoxRequiredRule}from"./p-590fd123.js";export{D as DateRequiredRule}from"./p-8fae8f9e.js";export{I as InputPhoneNumberRequiredRule}from"./p-07c2725a.js";export{I as InputRangeRequiredRule}from"./p-f396c69a.js";export{R as RequiredFieldRule}from"./p-280cbcdb.js";export{R as RichTextEditorRequiredRule}from"./p-5f5bfd9c.js";export{T as TimeRangeRequiredRule,a as TimeRequiredRule}from"./p-924b4e24.js";export{T as ToggleSwitchRequiredRule}from"./p-7c0b4c36.js";export{F as FileUploaderRequiredRule}from"./p-0bb860cc.js";import"./p-2205ee4c.js";import"./p-3a0a4d15.js";import"./p-37b05e0b.js";import"./p-6a334573.js";import"./p-bf953152.js";import"./p-262ec334.js";import"./p-7a40e033.js";import"./p-112455b1.js";import"./p-2d0d575f.js";import"./p-c8408c13.js";import"./p-e06361df.js";import"./p-a247e073.js";import"./p-abd7aeaa.js";import"./p-0fd6c35b.js";import"./p-0c667d6a.js";import"./p-3647d61d.js";import"./p-08835909.js";const o=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{o as Rings}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e}from"./p-2d0d575f.js";import{O as t,d as r}from"./p-c8408c13.js";import{V as n,a as i}from"./p-e06361df.js";import{L as o}from"./p-6e1ab235.js";import{i as s}from"./p-b1f65b13.js";import{I as a,c,g as d}from"./p-37b05e0b.js";import{c as l,a as u}from"./p-112455b1.js";import{D as h}from"./p-a247e073.js";var f=l((function(e){e.exports=function(){const e=/^\s+/,t=/\s+$/;function r(n,i){if(i=i||{},(n=n||"")instanceof r)return n;if(!(this instanceof r))return new r(n,i);var o=function(r){var n={r:0,g:0,b:0},i=1,o=null,s=null,a=null,c=!1,d=!1;return"string"==typeof r&&(r=function(r){r=r.replace(e,"").replace(t,"").toLowerCase();var n,i=!1;if(x[r])r=x[r],i=!0;else if("transparent"==r)return{r:0,g:0,b:0,a:0,format:"name"};return(n=L.rgb.exec(r))?{r:n[1],g:n[2],b:n[3]}:(n=L.rgba.exec(r))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=L.hsl.exec(r))?{h:n[1],s:n[2],l:n[3]}:(n=L.hsla.exec(r))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=L.hsv.exec(r))?{h:n[1],s:n[2],v:n[3]}:(n=L.hsva.exec(r))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=L.hex8.exec(r))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),a:S(n[4]),format:i?"name":"hex8"}:(n=L.hex6.exec(r))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),format:i?"name":"hex"}:(n=L.hex4.exec(r))?{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),a:S(n[4]+""+n[4]),format:i?"name":"hex8"}:!!(n=L.hex3.exec(r))&&{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),format:i?"name":"hex"}}(r)),"object"==typeof r&&(G(r.r)&&G(r.g)&&G(r.b)?(l=r.r,u=r.g,h=r.b,n={r:255*k(l,255),g:255*k(u,255),b:255*k(h,255)},c=!0,d="%"===String(r.r).substr(-1)?"prgb":"rgb"):G(r.h)&&G(r.s)&&G(r.v)?(o=O(r.s),s=O(r.v),n=function(e,t,r){e=6*k(e,360),t=k(t,100),r=k(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),a=r*(1-(1-i)*t),c=n%6;return{r:255*[r,s,o,o,a,r][c],g:255*[a,r,r,s,o,o][c],b:255*[o,o,a,r,r,s][c]}}(r.h,o,s),c=!0,d="hsv"):G(r.h)&&G(r.s)&&G(r.l)&&(o=O(r.s),a=O(r.l),n=function(e,t,r){var n,i,o;function s(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=k(e,360),t=k(t,100),r=k(r,100),0===t)n=i=o=r;else{var a=r<.5?r*(1+t):r+t-r*t,c=2*r-a;n=s(c,a,e+1/3),i=s(c,a,e),o=s(c,a,e-1/3)}return{r:255*n,g:255*i,b:255*o}}(r.h,o,a),c=!0,d="hsl"),r.hasOwnProperty("a")&&(i=r.a)),i=y(i),{ok:c,format:r.format||d,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:i};var l,u,h}(n);this._originalInput=n,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||o.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function n(e,t,r){e=k(e,255),t=k(t,255),r=k(r,255);var n,i,o=Math.max(e,t,r),s=Math.min(e,t,r),a=(o+s)/2;if(o==s)n=i=0;else{var c=o-s;switch(i=a>.5?c/(2-o-s):c/(o+s),o){case e:n=(t-r)/c+(t<r?6:0);break;case t:n=(r-e)/c+2;break;case r:n=(e-t)/c+4}n/=6}return{h:n,s:i,l:a}}function i(e,t,r){e=k(e,255),t=k(t,255),r=k(r,255);var n,i,o=Math.max(e,t,r),s=Math.min(e,t,r),a=o,c=o-s;if(i=0===o?0:c/o,o==s)n=0;else{switch(o){case e:n=(t-r)/c+(t<r?6:0);break;case t:n=(r-e)/c+2;break;case r:n=(e-t)/c+4}n/=6}return{h:n,s:i,v:a}}function o(e,t,r,n){var i=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function s(e,t,r,n){return[E(N(n)),E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(r).toString(16))].join("")}function a(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=A(n.s),r(n)}function c(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=A(n.s),r(n)}function d(e){return r(e).desaturate(100)}function l(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=A(n.l),r(n)}function u(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function h(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=A(n.l),r(n)}function f(e,t){var n=r(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,r(n)}function b(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function g(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),i=[r(e)],o=360/t,s=1;s<t;s++)i.push(r({h:(n.h+s*o)%360,s:n.s,l:n.l}));return i}function v(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function p(e,t,n){t=t||6,n=n||30;var i=r(e).toHsl(),o=360/n,s=[r(e)];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,s.push(r(i));return s}function m(e,t){t=t||6;for(var n=r(e).toHsv(),i=n.h,o=n.s,s=n.v,a=[],c=1/t;t--;)a.push(r({h:i,s:o,v:s})),s=(s+c)%1;return a}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return t=n.g/255,r=n.b/255,.2126*((e=n.r/255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=y(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=n(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=n(this._r,this._g,this._b),t=Math.round(360*e.h),r=Math.round(100*e.s),i=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+i+"%)":"hsla("+t+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return o(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,i){var o=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(r).toString(16)),E(N(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*k(this._r,255))+"%",g:Math.round(100*k(this._g,255))+"%",b:Math.round(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%)":"rgba("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(w[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var o=r(e);n="#"+s(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1;return t||!(this._a<1&&this._a>=0)||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(u,arguments)},darken:function(){return this._applyModification(h,arguments)},desaturate:function(){return this._applyModification(a,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(f,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(p,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(m,arguments)},splitcomplement:function(){return this._applyCombination(v,arguments)},triad:function(){return this._applyCombination(g,[3])},tetrad:function(){return this._applyCombination(g,[4])}},r.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:O(e[i]));e=n}return r(e,t)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var i=r(e).toRgb(),o=r(t).toRgb(),s=n/100;return r({r:(o.r-i.r)*s+i.r,g:(o.g-i.g)*s+i.g,b:(o.b-i.b)*s+i.b,a:(o.a-i.a)*s+i.a})},r.readability=function(e,t){var n=r(e),i=r(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},r.isReadable=function(e,t,n){var i,o,s,a,c,d=r.readability(e,t);switch(o=!1,(s=n,"AA"!==(a=((s=s||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==a&&(a="AA"),"small"!==(c=(s.size||"small").toLowerCase())&&"large"!==c&&(c="small"),i={level:a,size:c}).level+i.size){case"AAsmall":case"AAAlarge":o=d>=4.5;break;case"AAlarge":o=d>=3;break;case"AAAsmall":o=d>=7}return o},r.mostReadable=function(e,t,n){var i,o,s,a,c=null,d=0;o=(n=n||{}).includeFallbackColors,s=n.level,a=n.size;for(var l=0;l<t.length;l++)(i=r.readability(e,t[l]))>d&&(d=i,c=r(t[l]));return r.isReadable(e,c,{level:s,size:a})||!o?c:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var x=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},w=r.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(x);function y(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function k(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return Math.min(1,Math.max(0,e))}function M(e){return parseInt(e,16)}function E(e){return 1==e.length?"0"+e:""+e}function O(e){return e<=1&&(e=100*e+"%"),e}function N(e){return Math.round(255*parseFloat(e)).toString(16)}function S(e){return M(e)/255}var T,C,I,L=(C="[\\s|\\(]+("+(T="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+T+")[,|\\s]+("+T+")\\s*\\)?",I="[\\s|\\(]+("+T+")[,|\\s]+("+T+")[,|\\s]+("+T+")[,|\\s]+("+T+")\\s*\\)?",{CSS_UNIT:new RegExp(T),rgb:new RegExp("rgb"+C),rgba:new RegExp("rgba"+I),hsl:new RegExp("hsl"+C),hsla:new RegExp("hsla"+I),hsv:new RegExp("hsv"+C),hsva:new RegExp("hsva"+I),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!L.CSS_UNIT.exec(e)}return r}()}));const b=e=>{if(!e)return"";const{r:t,g:r,b:n,a:i}=e.toRgb();return`${t} ${r} ${n} / ${i}`},g=[{name:"bg-action",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return b(i)}},{name:"dark-bg-action"},{name:"bg-action-hover",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),b(i)}},{name:"dark-bg-action-hover"},{name:"bg-action-focus",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return b(i)}},{name:"dark-bg-action-focus"},{name:"bg-action-active",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(15):null==i?void 0:i.lighten(-15),b(i)}},{name:"dark-bg-action-active"},{name:"bg-action-secondary-hover",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),i=null==i?void 0:i.setAlpha(.15),b(i)}},{name:"dark-bg-action-secondary-hover"},{name:"bg-action-secondary-active",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(20):null==i?void 0:i.lighten(-20),i=null==i?void 0:i.setAlpha(.15),b(i)}},{name:"dark-bg-action-secondary-active"},{name:"bg-divider",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.6),b(i)}},{name:"dark-bg-divider"},{name:"bg-keypad-btn-active",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.3),b(i)}},{name:"dark-bg-keypad-btn-active"},{name:"bg-selected",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),i=null==i?void 0:i.setAlpha(.25),b(i)}},{name:"dark-bg-selected"},{name:"bg-sidebar",overrideGetter:(e,t)=>{const r=e.sidebarColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return b(i)}},{name:"dark-bg-sidebar"},{name:"bg-sidebar-item-hover",overrideGetter:(e,t)=>{const r=e.sidebarColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?t({a:.9,r:255,b:255,g:255}):t({a:.86,r:15,b:15,g:15}),b(i)}},{name:"dark-bg-sidebar-item-hover"},{name:"bg-sidebar-item-selected",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.4),b(i)}},{name:"dark-bg-sidebar-item-selected"},{name:"bg-table-selected-row",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.2),b(i)}},{name:"dark-bg-table-selected-row"},{name:"bg-toggle-switch-selected-disabled",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.5),b(i)}},{name:"dark-bg-toggle-switch-selected-disabled"},{name:"bg-date-picker-range",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),i=null==i?void 0:i.setAlpha(.15),b(i)}},{name:"dark-bg-date-picker-range"},{name:"text-link",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return b(i)}},{name:"dark-text-link"},{name:"text-link-hover",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),b(i)}},{name:"dark-text-link-hover"},{name:"text-link-active",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(15):null==i?void 0:i.lighten(-15),b(i)}},{name:"dark-text-link-active"},{name:"text-link-focus",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),b(i)}},{name:"dark-text-link-focus"},{name:"text-link-visited",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(20):null==i?void 0:i.lighten(-22),b(i)}},{name:"dark-text-link-visited"},{name:"text-sidebar-link",overrideGetter:(e,t)=>{const r=e.sidebarColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?t({a:.9,b:255,r:255,g:255}):t({a:.86,b:15,r:15,g:15}),b(i)}},{name:"dark-text-sidebar-link"},{name:"text-sidebar-link-hover",overrideGetter:(e,t)=>{const r=e.sidebarColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?t({a:.86,r:15,b:15,g:15}):t({a:.9,r:255,b:255,g:255}),b(i)}},{name:"dark-text-sidebar-link-hover"},{name:"text-sidebar-link-selected",overrideGetter:(e,t)=>{const r=e.sidebarColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?t({a:.9,r:255,b:255,g:255}):t({a:.86,b:15,r:15,g:15}),b(i)}},{name:"dark-text-sidebar-link-selected"},{name:"border-color-action",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return b(i)}},{name:"dark-border-color-action"},{name:"border-color-action-hover",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),b(i)}},{name:"dark-border-color-action-hover"},{name:"border-color-action-active",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(15):null==i?void 0:i.lighten(-15),b(i)}},{name:"dark-border-color-action-active"},{name:"border-color-divider",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.6),b(i)}},{name:"dark-border-color-divider"},{name:"border-color-divider-secondary",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(15):null==i?void 0:i.lighten(-15),i=null==i?void 0:i.setAlpha(.4),b(i)}},{name:"dark-border-color-divider-secondary"},{name:"border-color-input-field",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.6),b(i)}},{name:"dark-border-color-input-field"},{name:"border-color-input-field-hover",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),i=null==i?void 0:i.setAlpha(.6),b(i)}},{name:"dark-border-color-input-field-hover"},{name:"border-color-input-field-focus",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(15):null==i?void 0:i.lighten(-15),i=null==i?void 0:i.setAlpha(.6),b(i)}},{name:"dark-border-color-input-field-focus"},{name:"border-color-input-field-disabled",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=t({a:.2,r:15,b:15,g:15}),b(i)}},{name:"dark-border-color-input-field-disabled"},{name:"border-color-tile-focus",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return b(i)}},{name:"dark-border-color-tile-focus"},{name:"border-color-tile-selected-focus",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(15):null==i?void 0:i.lighten(-15),i=null==i?void 0:i.setAlpha(.6),b(i)}},{name:"dark-border-color-tile-selected-focus"},{name:"border-color-tile-selected",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return b(i)}},{name:"dark-border-color-tile-selected"},{name:"border-color-tile-selected-hover",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),b(i)}},{name:"dark-border-color-tile-selected-hover"}],v=e=>{if(!e)return"";const{r:t,g:r,b:n,a:i}=e.toRgb();return`${t} ${r} ${n} / ${i}`},p=[{name:"border-secondary-btn",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return v(i)}},{name:"dark-border-secondary-btn"},{name:"border-secondary-btn-hover",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),v(i)}},{name:"dark-border-secondary-btn-hover"},{name:"border-secondary-btn-active",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(15):null==i?void 0:i.lighten(-15),v(i)}},{name:"dark-border-secondary-btn-active"},{name:"border-input-field",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.6),v(i)}},{name:"dark-border-input-field"},{name:"border-input-field-hover",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),i=null==i?void 0:i.setAlpha(.6),v(i)}},{name:"dark-border-input-field-hover"},{name:"border-input-field-focus",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(15):null==i?void 0:i.lighten(-15),i=null==i?void 0:i.setAlpha(.6),v(i)}},{name:"dark-border-input-field-focus"},{name:"border-input-field-disabled",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=t({a:.2,r:15,b:15,g:15}),v(i)}},{name:"dark-border-input-field-disabled"},{name:"border-divider",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.6),v(i)}},{name:"dark-border-divider"},{name:"border-divider-secondary",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(15):null==i?void 0:i.lighten(-15),i=null==i?void 0:i.setAlpha(.4),v(i)}},{name:"dark-border-divider-secondary"},{name:"border-tile-selected",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return v(i)}},{name:"dark-border-tile-selected"},{name:"border-tile-selected-hover",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(10):null==i?void 0:i.lighten(-10),v(i)}},{name:"dark-border-tile-selected-hover"},{name:"border-tile-focus",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return v(i)}},{name:"dark-border-tile-focus"},{name:"border-tile-selected-focus",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=(null==n?void 0:n.isDark())?null==i?void 0:i.lighten(15):null==i?void 0:i.lighten(-15),i=null==i?void 0:i.setAlpha(.6),v(i)}},{name:"dark-border-tile-selected-focus"}],m=e=>{if(!e)return"";const{r:t,g:r,b:n,a:i}=e.toRgb();return`${t} ${r} ${n} / ${i}`},x=[{name:"ring-input-focus",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.25),m(i)}},{name:"dark-ring-input-focus"},{name:"ring-action-focus",overrideGetter:(e,t)=>{const r=e.actionColor;if(!r)return"";const n=r?t(r):void 0;let i=n?n.clone():void 0;return i=null==i?void 0:i.setAlpha(.25),m(i)}},{name:"dark-ring-action-focus"}],w=new class{generateOverrideThemes(e){return this.getOverridableTokens().map((t=>({name:t.name,value:this.parseCssVarValue(t,e)})))}applyTheme(e){this.getOverrideThemeContainer().innerHTML=`\n:root {\n\t\t${e.filter((e=>!!e.value)).map((e=>`--v-${e.name}: ${e.value};`)).join("\n\t\t")}\n}\n\t\t\t\t`}getOverrideThemeContainer(){let e=document.head.querySelector("#vegaCustomOverrideTheme");return e||(e=document.createElement("style"),e.id="vegaCustomOverrideTheme",document.head.append(e)),e}getOverridableTokens(){return[...g,...p,...x]}parseCssVarValue(e,t){var r;return null===(r=e.overrideGetter)||void 0===r?void 0:r.call(e,t,f)}},y={"bg-brand":"176, 180, 181, 1","bg-page":"24, 24, 48, 1","bg-primary":"4, 4, 28, 1","bg-secondary":"18, 18, 39, 1","bg-tertiary":"24, 24, 48, 1","bg-quaternary":"70, 71, 101, 1","bg-inverted-primary":"252, 252, 252, 1","bg-inverted-secondary":"247, 247, 247, 1","bg-inverted-tertiary":"240, 243, 247, 1","bg-inverted-quaternary":"241, 248, 251, 1","bg-action":"0, 187, 255, 1","bg-action-hover":"0, 204, 255, 1","bg-action-focus":"0, 187, 255, 1","bg-action-active":"4, 165, 245, 1","bg-action-quaternary":"51, 57, 61, 1","bg-action-quaternary-hover":"89, 96, 99, 1","bg-action-quaternary-active":"24, 24, 48, 1","bg-action-secondary":"0, 0, 0, 0","bg-action-secondary-hover":"0, 204, 255, 0.2","bg-action-secondary-active":"4, 165, 245, 0.2","bg-action-tertiary":"0, 0, 0, 0","bg-action-tertiary-hover":"252, 252, 252, 0.2","bg-action-tertiary-active":"252, 252, 252, 0.1","bg-app-header":"24, 24, 48, 0.92","bg-backdrop-modal":"70, 71, 101, 0.8","bg-backdrop-popover":"70, 71, 101, 0.56","bg-backdrop-sidebar":"70, 71, 101, 0.8","bg-chip":"252, 252, 252, 0.1","bg-chip-hover":"252, 252, 252, 0.2","bg-chip-active":"252, 252, 252, 0.06","bg-danger":"255, 56, 97, 1","bg-danger-hover":"255, 71, 123, 1","bg-danger-focus":"255, 56, 97, 1","bg-danger-active":"230, 50, 87, 1","bg-danger-tertiary":"0, 0, 0, 0","bg-danger-tertiary-hover":"255, 71, 123, 0.2","bg-danger-tertiary-active":"230, 50, 87, 0.2","bg-disabled":"70, 71, 101, 1","bg-divider":"32, 54, 69, 1","bg-divider-secondary":"51, 57, 61, 1","bg-keypad-btn-active":"45, 76, 97, 1","bg-loading-progress":"4, 165, 245, 1","bg-loading-track":"142, 223, 249, 1","bg-segment-hover":"70, 71, 101, 1","bg-segment-control":"210, 208, 223, 0.1","bg-selected":"85, 218, 255, 0.3","bg-sidebar":"18, 18, 39, 1","bg-sidebar-icon":"188, 186, 213, 1","bg-sidebar-icon-hover":"18, 18, 39, 1","bg-sidebar-icon-selected":"252, 252, 252, 1","bg-sidebar-item-hover":"252, 252, 252, 1","bg-sidebar-item-selected":"0, 187, 255, 0.4","bg-site-footer":"51, 57, 61, 1","bg-site-footer-action":"171, 198, 216, 1","bg-site-footer-action-hover":"199, 217, 229, 1","bg-site-footer-action-active":"143, 179, 203, 1","bg-site-footer-field":"89, 96, 99, 1","bg-slider-handle":"252, 252, 252, 1","bg-status-error":"189, 41, 71, 1","bg-status-info":"252, 252, 252, 1","bg-status-success":"123, 242, 151, 1","bg-status-warning":"255, 212, 105, 1","bg-tab":"51, 57, 61, 1","bg-tab-hover":"89, 96, 99, 1","bg-tab-selected":"240, 243, 247, 1","bg-table-alt-row":"18, 18, 39, 1","bg-table-header":"24, 24, 48, 1","bg-table-row-hover":"70, 71, 101, 1","bg-table-row-selected-expanded":"32, 54, 69, 1","bg-table-selected-row":"45, 76, 97, 1","bg-textarea-count":"252, 252, 252, 0.5","bg-tile":"4, 4, 28, 1","bg-tile-hover":"24, 24, 48, 1","bg-tile-selected":"32, 54, 69, 1","bg-tile-selected-hover":"45, 76, 97, 1","bg-toggle-switch":"210, 208, 223, 1","bg-toggle-switch-hover":"188, 186, 213, 1","bg-toggle-switch-selected-disabled":"0, 75, 128, 1","bg-transparent":"0, 0, 0, 0","bg-accent1-primary":"109, 217, 202, 1","bg-accent1-secondary":"174, 234, 226, 1","bg-accent1-tertiary":"223, 247, 243, 1","bg-accent2-primary":"95, 56, 206, 1","bg-accent2-secondary":"184, 167, 233, 1","bg-accent2-tertiary":"219, 211, 244, 1","bg-accent3-primary":"255, 203, 105, 1","bg-accent3-secondary":"251, 226, 185, 1","bg-accent3-tertiary":"255, 243, 222, 1","bg-accent4-primary":"255, 129, 87, 1","bg-accent4-secondary":"255, 185, 162, 1","bg-accent4-tertiary":"255, 227, 218, 1","bg-accent5-primary":"4, 165, 245, 1","bg-accent5-secondary":"85, 218, 255, 1","bg-accent5-tertiary":"227, 247, 253, 1","bg-accent6-primary":"255, 84, 165, 1","bg-accent6-secondary":"255, 179, 215, 1","bg-accent6-tertiary":"255, 217, 235, 1","bg-accent7-primary":"37, 159, 159, 1","bg-accent7-secondary":"155, 212, 214, 1","bg-accent7-tertiary":"208, 239, 239, 1","bg-accent8-primary":"86, 61, 130, 1","bg-accent8-secondary":"199, 162, 204, 1","bg-accent8-tertiary":"230, 214, 234, 1","bg-accent9-primary":"255, 191, 63, 1","bg-accent9-secondary":"254, 215, 142, 1","bg-accent9-tertiary":"251, 226, 185, 1","bg-accent10-primary":"237, 122, 35, 1","bg-accent10-secondary":"241, 146, 85, 1","bg-accent10-tertiary":"245, 187, 148, 1","bg-date-picker-range":"32, 54, 69, 1","text-primary":"252, 252, 252, 1","text-secondary":"188, 186, 213, 1","text-inverted-primary":"4, 4, 28, 1","text-inverted-secondary":"107, 116, 125, 1","text-black":"32, 54, 69, 1","text-white":"252, 252, 252, 1","text-brand":"176, 180, 181, 1","text-danger-link":"255, 56, 97, 1","text-danger-link-hover":"255, 71, 123, 1","text-danger-link-active":"230, 50, 87, 1","text-danger-link-focus":"255, 82, 136, 1","text-danger-link-visited":"255, 56, 97, 1","text-disabled":"70, 71, 101, 1","text-error":"255, 56, 97, 1","text-input-disabled":"176, 180, 181, 1","text-input-placeholder":"89, 96, 99, 1","text-link":"0, 187, 255, 1","text-link-hover":"0, 204, 255, 1","text-link-active":"4, 165, 245, 1","text-link-focus":"0, 204, 255, 1","text-link-visited":"128, 107, 255, 1","text-on-action":"4, 4, 28, 1","text-on-danger":"4, 4, 28, 1","text-on-disabled":"4, 4, 28, 1","text-sidebar-link":"188, 186, 213, 1","text-sidebar-link-hover":"18, 18, 39, 1","text-sidebar-link-selected":"252, 252, 252, 1","text-site-footer-link":"171, 198, 216, 1","text-site-footer-link-hover":"199, 217, 229, 1","text-site-footer-link-active":"143, 179, 203, 1","text-success":"89, 217, 119, 1","text-inverted-success":"1, 128, 31, 1","text-accent1-primary":"109, 217, 202, 1","text-accent2-primary":"95, 56, 206, 1","text-accent3-primary":"255, 203, 105, 1","text-accent4-primary":"255, 129, 87, 1","text-accent5-primary":"4, 165, 245, 1","text-accent6-primary":"255, 71, 123, 1","text-accent7-primary":"37, 159, 159, 1","text-accent8-primary":"86, 61, 130, 1","text-accent9-primary":"255, 191, 63, 1","text-accent10-primary":"237, 122, 35, 1","border-color-action":"0, 187, 255, 1","border-color-action-hover":"0, 204, 255, 1","border-color-action-active":"4, 165, 245, 1","border-color-chip":"107, 116, 125, 1","border-color-danger":"255, 56, 97, 1","border-color-danger-hover":"255, 71, 123, 1","border-color-danger-active":"230, 50, 87, 1","border-color-divider":"32, 54, 69, 1","border-color-divider-secondary":"51, 57, 61, 1","border-color-input-field":"32, 54, 69, 1","border-color-input-field-hover":"58, 98, 125, 1","border-color-input-field-focus":"0, 187, 255, 1","border-color-input-field-danger":"255, 56, 97, 1","border-color-input-field-danger-hover":"255, 71, 123, 1","border-color-input-field-danger-focus":"255, 56, 97, 1","border-color-input-field-disabled":"4, 4, 28, 1","border-color-secondary-btn-disabled":"70, 71, 101, 1","border-color-sidebar-item-focus":"0, 187, 255, 1","border-color-slider-handle":"107, 116, 125, 1","border-color-success":"89, 217, 119, 1","border-color-table-divider":"32, 54, 69, 1","border-color-tile":"32, 54, 69, 1","border-color-tile-hover":"58, 98, 125, 1","border-color-tile-focus":"0, 187, 255, 1","border-color-tile-selected-focus":"153, 192, 255, 1","border-color-tile-selected":"153, 192, 255, 1","border-color-tile-selected-hover":"178, 208, 255, 1","border-color-notification-btn":"252, 252, 252, 1","border-color-notification-btn-dark":"32, 54, 69, 1"},k={"border-secondary-btn":"0, 187, 255, 1","border-secondary-btn-hover":"0, 204, 255, 1","border-secondary-danger-btn":"255, 56, 97, 1","border-secondary-btn-active":"4, 165, 245, 1","border-secondary-danger-btn-hover":"255, 71, 123, 1","border-secondary-danger-btn-active":"230, 50, 87, 1","border-input-field":"32, 54, 69, 1","border-input-field-hover":"58, 98, 125, 1","border-input-field-focus":"0, 187, 255, 1","border-input-field-danger":"255, 56, 97, 1","border-input-field-danger-hover":"255, 71, 123, 1","border-input-field-danger-focus":"255, 56, 97, 1","border-sidebar-item-focus":"0, 187, 255, 1","border-input-field-disabled":"4, 4, 28, 1","border-success":"89, 217, 119, 1","border-secondary-btn-disabled":"70, 71, 101, 1","border-chip":"107, 116, 125, 1","border-divider":"32, 54, 69, 1","border-divider-secondary":"51, 57, 61, 1","border-tile-selected":"153, 192, 255, 1","border-tile-selected-hover":"178, 208, 255, 1","border-table-divider":"32, 54, 69, 1","border-slider-handle":"107, 116, 125, 1","border-tile":"32, 54, 69, 1","border-tile-hover":"58, 98, 125, 1","border-tile-focus":"0, 187, 255, 1","border-tile-selected-focus":"153, 192, 255, 1","border-notification-btn":"252, 252, 252, 1","border-notification-btn-black":"32, 54, 69, 1"},A={"shadow-card":"0px 2px 10px 0px rgba(0, 0, 0, 0.18), 0px 2px 4px 0px rgba(0, 0, 0, 0.1)","shadow-modal":"0px 6px 40px 0px rgba(2, 2, 15, 0.14), 0px 4px 24px 0px rgba(2, 2, 15, 0.28), 0px 8px 80px 0px rgba(2, 2, 15, 0.26)","shadow-popover":"0px 0px 88px 0px rgba(2, 2, 15, 0.08), 0px 0px 32px 0px rgba(2, 2, 15, 0.1), 0px 4px 72px 0px rgba(2, 2, 15, 0.16)","shadow-form-field":"0px 1px 2px 0px rgba(170, 170, 170, 0.06), 0px 1px 3px 0px rgba(170, 170, 170, 0.1)","shadow-dropdown-menu":"0px 2px 4px -2px rgba(0, 0, 0, 0.14), 0px 4px 6px -1px rgba(0, 0, 0, 0.16)","shadow-app-header":"0px 1px 0px 0px rgba(188, 186, 213, 0.25)","shadow-modal-header":"0px 1px 0px 0px rgba(188, 186, 213, 0.25)","shadow-modal-footer":"0px -2px 8px 0px rgba(188, 186, 213, 0.4), 0px -1px 0px 0px rgba(188, 186, 213, 0.25)","shadow-modal-footer-no-scroll":"0px -1px 0px 0px rgba(188, 186, 213, 0.25)"},M={"ring-input-focus":"0, 187, 255, 0.25","ring-input-danger-focus":"255, 56, 97, 0.25","ring-action-focus":"0, 187, 255, 0.25","ring-action-danger-focus":"255, 56, 97, 0.25"},E={"bg-backdrop-loading":"0, 0, 0, 0.5","text-page-notification-content":y["text-inverted-primary"],"bg-textarea-counter-exceed-max-length":"255, 87, 114","bg-date-picker-range":"32, 54, 69, 1","regular-credit-card-bg":"252, 252, 252, 1","regular-credit-card-top":"4, 4, 28, 1","regular-credit-card-bottom":"255, 255, 255, 1"},O=new class{constructor(){this.dynamicCustomDarkModeColor={},this.darkModeColorAllTokens={},this.observer=new t(this.isAcceptObserver.bind(this),(e=>{e?this.generateDarkModeStyle():this.removeDarkModeStyleContainer()})),e.register(h,this.observer)}registerCustomDarkModeColor(e){this.dynamicCustomDarkModeColor=Object.assign(Object.assign({},this.dynamicCustomDarkModeColor),e),this.generateDarkModeStyle()}generateDarkModeStyle(){this.darkModeColorAllTokens=Object.assign(y,k,M,A,E,this.dynamicCustomDarkModeColor);const e=Object.keys(this.darkModeColorAllTokens);this.getDarkModeStyleContainer().innerHTML=`\nhtml.dark {\n\t\t${e.map((e=>`--v-${e}: ${this.darkModeColorAllTokens[e]};`)).join("\n\t\t")}}`}getDarkModeStyleContainer(){let e=document.head.querySelector("#vegaDarkModeStyle");return e||(e=document.createElement("style"),e.id="vegaDarkModeStyle",document.head.append(e)),e}removeDarkModeStyleContainer(){const e=document.head.querySelector("#vegaDarkModeStyle");e&&e.remove()}isAcceptObserver(){return!0}},N=[{payloadKey:"IS_OVERRIDECOLORS_METHOD_CALLED",payloadDescription:"Indicate if the method overrideColors of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"overrideColors"===t,payloadValue:()=>!0},{payloadKey:"IS_RESET_METHOD_CALLED",payloadDescription:"Indicate if the method reset of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"reset"===t,payloadValue:()=>!0},{payloadKey:"IS_TOGGLEDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method toggleDarkMode of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"toggleDarkMode"===t,payloadValue:()=>!0},{payloadKey:"IS_ISDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method isDarkMode of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"isDarkMode"===t,payloadValue:()=>!0}];class S{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=c(S,["overrideColors","reset","toggleDarkMode","isDarkMode"],N)}async overrideColors(e){const t=w.generateOverrideThemes(e);w.applyTheme(t)}async reset(){w.getOverrideThemeContainer().innerHTML=""}toggleDarkMode(t){t?(document.documentElement.classList.add("dark"),O.generateDarkModeStyle()):document.documentElement.classList.remove("dark"),e.notify(h,t)}isDarkMode(){return document.documentElement.classList.contains("dark")}}!function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);o>3&&s&&Object.defineProperty(t,r,s)}([a()],S.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const T=new S;var C,I;!function(e){e.SELECTION_RANGE="SELECTION_RANGE",e.CLEAR_FORMATTING="CLEAR_FORMATTING",e.LINK_GROUP="LINK_GROUP"}(C||(C={}));class L{}!function(e){e.ALIGNMENT="ALIGNMENT",e.TEXT_STYLE="TEXT_STYLE",e.INDENT="INDENT"}(I||(I={}));class G extends L{}const _=new class{constructor(){this.domToEntity=new WeakMap,this.entityToDOM=new WeakMap}register(e,t){this.domToEntity.set(e,t),this.entityToDOM.set(t,e)}getEntityByDOM(e){return this.domToEntity.get(e)}getDOMByEntity(e){return this.entityToDOM.get(e)}removeDirtyDomRef(e){this.domToEntity.delete(e)}};var D,B,R;!function(e){e.DELETE_CHILD="DELETE_CHILD",e.DELETE_NEST_LIST="DELETE_NEST_LIST",e.UPDATE_TEXT="UPDATE_TEXT",e.REPLACE_SELECTED_TEXT="REPLACE_SELECTED_TEXT",e.APPEND_CHILD_NODES="APPEND_CHILD_NODES",e.INSERT_BLOCKS_AFTER="INSERT_BLOCKS_AFTER",e.INSERT_BLOCKS_BEFORE="INSERT_BLOCKS_BEFORE",e.INSERT_NODES_AFTER="INSERT_NODES_AFTER",e.INSERT_NODES_BEFORE="INSERT_NODES_BEFORE",e.SPLIT_BLOCK_WITH_NODE="SPLIT_BLOCK_WITH_NODE",e.REPLACE_CHILD_NODES="REPLACE_CHILD_NODES",e.REPLACE_NEST_LIST="REPLACE_NEST_LIST",e.MERGE_TWO_BLOCKS_NODES="MERGE_TWO_BLOCKS_NODES",e.BREAK_SINGLE_BLOCK="BREAK_SINGLE_BLOCK",e.LINE_BREAK_SINGLE_BLOCK="LINE_BREAK_SINGLE_BLOCK",e.LINE_BREAK_MULTIPLE_BLOCKS="LINE_BREAK_MULTIPLE_BLOCKS",e.TRANSFORM_LIST_BLOCK="TRANSFORM_LIST_BLOCK",e.TRANSFORM_PARAGRAPH_BLOCK="TRANSFORM_PARAGRAPH_BLOCK",e.DELETE_BLOCK_CONTENT="DELETE_BLOCK_CONTENT",e.INSERT_IMAGE_TO_BLOCK="INSERT_IMAGE_TO_BLOCK",e.UPDATE_IMAGE_NODE_URL="UPDATE_IMAGE_NODE_URL"}(D||(D={}));class j{constructor(){this.isFlushable=!1}}class F extends G{constructor(e){super(),this.type=I.ALIGNMENT,this.textAlign=e}static from(e){return[I.ALIGNMENT,new F(e)]}toJSON(){return{textAlign:this.textAlign}}renderClass(){return`v-rte--horizontal-alignment-${this.textAlign}`}render(){return null}}class $ extends G{constructor(e){super(),this.type=I.INDENT,this.indent=Math.max(0,e)}static from(e){return[I.INDENT,new $(e)]}toJSON(){return this.indent>0?{indent:this.indent}:null}render(){return this.indent>0?{"margin-left":16*this.indent+"px"}:null}}class P{static register(e,t,r){this.registry.has(t)||this.registry.set(t,new Map),this.registry.get(t).set(e,r)}static get(e,t){const r=this.registry.get(t);if(r)return r.get(e)}static executeTheStrategy(e,t){const r=e instanceof j?e.type:e.constructor.name,n=P.get(r,t.constructor.name);if(n)return n.execute(e,t);o.error(`Type ${r} action handle strategy is not registered in class ${t.constructor.name}`)}}P.registry=new Map;class K{constructor(e){this.annotationMap=new Map,this.id=e}static createAnnotationEntity(e,t){switch(e){case"textAlign":return F.from(t);case"indent":return $.from(t)}}toJSON(){const e=Array.from(this.annotationMap.values()).filter((e=>e instanceof G)).reduce(((e,t)=>Object.assign(Object.assign({},e),t.toJSON())),{});return Object.assign({id:this.id},Object.keys(e).length>0?{annotations:e}:{})}getAnnotationByType(e){return this.annotationMap.get(e)}apply(t){if(this.doApply(t),t.isFlushable){const t=_.getDOMByEntity(this);if(t){const i=r.getSubjectFromParentNodeByEventId(t,n);i&&e.notify(i,{})}}}doApply(e){e instanceof j?P.executeTheStrategy(e,this):this.applyAnnotationAction(e)}applyAnnotationAction(e){const t=e.toAnnotation();this.annotationMap.set(t.type,t),"function"==typeof this.doAnnotationActionApply&&this.doAnnotationActionApply(e)}}!function(e){e.TEXT="TEXT",e.IMAGE="IMAGE"}(B||(B={}));class H{constructor(e,t){this.annotationMap=new Map,this.id=e,t&&(this.annotationMap=t)}getAnnotationByType(e){return this.annotationMap.get(e)}deleteAnnotationByType(e){this.annotationMap.delete(e),this.flushChange()}apply(e){return this.doApply(e),e.isFlushable&&this.flushChange(),this}doApply(e){e instanceof j?this.doModifyActionApply(e):this.doAnnotationActionApply(e)}flushChange(){const t=_.getDOMByEntity(this);if(t){const i=r.getSubjectFromParentNodeByEventId(t,n);i&&e.notify(i,{})}}}!function(e){e.BOLD="BOLD",e.ITALIC="ITALIC",e.UNDERLINE="UNDERLINE",e.STRIKETHROUGH="STRIKETHROUGH",e.SELECTION_RANGE="SELECTION_RANGE",e.IMAGE="IMAGE",e.CODE="CODE",e.TEXT_COLOR="TEXT_COLOR",e.LINK="LINK"}(R||(R={}));class J extends L{}class q extends J{constructor(e="md",t){super(),this.type=R.IMAGE,this.size=e,this.alt=t}static from(e,t){return[R.IMAGE,new q(e,t)]}toJSON(){return s(this.alt)?{size:this.size,alt:this.alt}:{size:this.size}}render(){switch(this.size){case"sm":return{width:"25%"};case"md":return{width:"50%"};case"lg":return{width:"100%"}}}}class W{execute(e,t){return o.log(`Executing action ${e.constructor.name} on ${t.constructor.name} ${t.id}`),this.handleAction(e,t)}isCaretPositionAtTextBlockEnd(e,t,r){const n=e.nodes[e.nodes.length-1];return t===n&&(t.isEmpty()||r===n.text.length)}isCaretPositionAtTextBlockStart(e,t,r){return t===e.nodes[0]&&0===r}isCaretPositionAtImageBlockStart(e,t,r){return t===e.nodes[0]&&0===r}isCaretPositionAtImageBlockEnd(e,t,r){return t===e.nodes[e.nodes.length-1]&&1===r}}class z{}class U extends H{constructor(e,t,r,n){super(e,n),this.type=B.IMAGE,this.url=t,this.parentBlock=r}static from(e,t){const r=new U(e.id,e.url,t);let n;return n=e.annotations&&0!==Object.keys(e.annotations).length?e.annotations:{size:"md"},r.annotationMap=new Map(Object.keys(n).map((()=>q.from(n.size,n.alt))).filter(s)),r}toJSON(){const e=this.annotationMap.get(R.IMAGE),t={};return(null==e?void 0:e.size)&&(t.size=e.size),(null==e?void 0:e.alt)&&(t.alt=e.alt),Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"image",url:this.url})}doAnnotationActionApply(e){const t=P.get(z.name,U.name);t&&t.execute(e,this)}doModifyActionApply(e){P.executeTheStrategy(e,this)}}P.register(D.UPDATE_IMAGE_NODE_URL,U.name,new class extends W{handleAction(e,t){t.url=e.url}}),P.register(z.name,U.name,new class extends W{handleAction(e,t){const r=e.toAnnotation();t.annotationMap.set(r.type,r)}});class V extends j{constructor(e){super(),this.type=D.DELETE_CHILD,this.entityToBeRemoved=e}}class X extends W{getPreviousNode(e){const t=e.parentBlock,r=t.nodes.indexOf(e);if(r>0)return t.nodes[r-1];if(t.parent){const e=this.getPreviousBlock(t);if(e)return this.getBlockLastNode(e)}}getNextNode(e){const t=e.parentBlock,r=t.nodes.indexOf(e);if(t.nodes[r+1])return t.nodes[r+1];if(t.parent){const e=this.getNextBlock(t);if(e)return this.getBlockFirstNode(e)}}isContentFirstNode(e){const t=e.parentBlock,r=t.nodes.indexOf(e),n=t.parent;if("list-item"===t.type){const e=n.parent;return 0===r&&Array.isArray(n.blocks)&&n.blocks[0]===t&&"list-item"!==e.type&&Array.isArray(e.blocks)&&e.blocks[0]===n}return 0===r&&Array.isArray(n.blocks)&&n.blocks[0]===t}getPreviousBlock(e){if(e&&e.parent&&e.parent.blocks){const t=e.parent.blocks.indexOf(e);if(t>0)return e.parent.blocks[t-1];if(("number-list"===e.parent.type||"bullet-list"===e.parent.type)&&0===t)return this.getPreviousBlock(e.parent)}}getBlockLastNode(e){if("list-item"===e.type)return e.children&&e.children.length>0?this.getBlockLastNode(e.children[e.children.length-1]):e.nodes[e.nodes.length-1];if("number-list"===e.type||"bullet-list"===e.type){const t=e.blocks;if(t)return this.getBlockLastNode(t[t.length-1])}else if(e.nodes)return e.nodes[e.nodes.length-1]}getBlockFirstNode(e){if("number-list"===e.type||"bullet-list"===e.type){if(e.blocks)return this.getBlockFirstNode(e.blocks[0])}else if(e.nodes)return e.nodes[0]}getNextBlock(e){if(e&&e.parent&&e.parent.blocks){const t=e.parent.blocks.indexOf(e);if(e.parent.blocks[t+1])return e.parent.blocks[t+1];if("list-item"===e.type&&e.parent.blocks.length===t+1)return this.getNextBlock(e.parent)}}}class Y extends j{constructor(e){super(),this.type=D.APPEND_CHILD_NODES,this.entityToBeAppended=e}}class Z extends W{handleAction(e,t){const r=e.blockNeedToBeMerged;if(t.type===r.type||"image"!==t.type&&"image"!==r.type){let e=r.nodes;"image"!==r.type&&(e=r.nodes.filter((e=>e.text))),t.apply(new Y(e)),r.parent.apply(new V(r))}}}class Q extends W{handleAction(e,t){t.nodes=t.nodes.filter((t=>t!==e.entityToBeRemoved)),0===t.nodes.length&&t.parent&&t.parent.apply(new V(t))}}class ee extends W{handleAction(e,t){const r=e.entityToBeAppended;r.forEach((e=>{e.parentBlock=t})),t.nodes=t.nodes.concat(r)}}class te extends W{handleAction(e,t){t.nodes=[],t.apply(new Y(e.newChildNodes))}}class re extends j{constructor(e,...t){super(),this.type=D.INSERT_BLOCKS_AFTER,this.referBlock=e,this.blocksToBeInserted=t}}class ne extends j{constructor(e){super(),this.type=D.REPLACE_CHILD_NODES,this.newChildNodes=e}}class ie extends j{constructor(e,...t){super(),this.type=D.INSERT_BLOCKS_BEFORE,this.referBlock=e,this.blocksToBeInserted=t}}class oe extends j{constructor(e,t){super(),this.type=D.SPLIT_BLOCK_WITH_NODE,this.splitPointNode=e,this.startOffsetOfNode=t}}class se extends z{constructor(){super(...arguments),this.doSplit=!0}}class ae extends L{constructor(e){super(),this.type=C.SELECTION_RANGE,this.range=e}}class ce extends J{constructor(e){super(),this.type=R.STRIKETHROUGH,this.strikethrough=e}static from(e){return[R.STRIKETHROUGH,new ce(e)]}toJSON(){return{strikethrough:this.strikethrough}}renderClass(){return this.strikethrough?"v-rte--strikethrough":null}render(){return null}}class de extends J{constructor(e){super(),this.type=R.UNDERLINE,this.underline=e}static from(e){return[R.UNDERLINE,new de(e)]}toJSON(){return{underline:this.underline}}renderClass(){return this.underline?"v-rte--underline":null}render(){return null}}class le extends J{constructor(e){super(),this.type=R.ITALIC,this.italic=e}static from(e){return[R.ITALIC,new le(e)]}toJSON(){return{italic:this.italic}}render(){return this.italic?{"font-style":"italic"}:null}}class ue extends J{constructor(e){super(),this.type=R.BOLD,this.bold=e}static from(e){return[R.BOLD,new ue(e)]}toJSON(){return{bold:this.bold}}render(){return this.bold?{"font-weight":"700"}:null}}class he extends J{constructor(e){super(),this.type=R.CODE,this.code=e}static from(e){return[R.CODE,new he(e)]}toJSON(){return{code:this.code}}renderClass(){return this.code?"v-rte--code":null}render(){return null}}const fe=[{key:"black",light:"#111128",dark:"#E3E3E8"},{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"}],be="";class ge extends J{constructor(e){super(),this.type=R.TEXT_COLOR,this.textColor=this.formatTextColor(e)}static from(e){return[R.TEXT_COLOR,new ge(e)]}toJSON(){return{textColor:this.textColor.key}}renderClass(){return null}render(){return{color:T.isDarkMode()?this.textColor.dark:this.textColor.light}}formatTextColor(e){return fe.find((t=>t.key===e))||fe[0]}}class ve extends J{constructor(e){super(),this.type=R.LINK,this.link=e}static from(e){return[R.LINK,new ve({href:e.href,groupKey:e.groupKey})]}toJSON(){return{link:{href:this.link.href,groupKey:this.link.groupKey}}}toEqual(e){return this.link.groupKey===e.link.groupKey}render(){return null}}class pe extends L{constructor(e){super(),this.type=C.LINK_GROUP,this.linkGroups=new Map,this.linkGroups=new Map([[e,[]]])}}class me extends z{constructor(e,t){super(),this.isFlushable=!1,this.groupKey=e,this.nodes=t}toAnnotation(){return new pe(this.groupKey)}}class xe extends z{constructor(){super(),this.isFlushable=!1}toAnnotation(){return null}}class we extends j{constructor(e){super(),this.type=D.UPDATE_TEXT,this.newTextContent="",this.newTextContent=e}}class ye extends L{constructor(){super(...arguments),this.type=C.CLEAR_FORMATTING,this.items=[R.BOLD,R.ITALIC,R.UNDERLINE,R.STRIKETHROUGH,R.TEXT_COLOR,R.CODE]}}class ke extends se{constructor(){super(...arguments),this.isFlushable=!0}toAnnotation(){return new ye}}class Ae extends se{constructor(e){super(),this.isFlushable=!0,this.code=e}toAnnotation(){return new he(this.code)}}class Me extends z{constructor(e){super(),this.isFlushable=!0,this.annotationType=e}toAnnotation(){}}class Ee extends se{constructor({link:e,newText:t,needMergeNode:r,doSplit:n}){super(),this.isFlushable=!0,this.link=e,this.needMergeNode=r,this.newText=t,s(n)&&(this.doSplit=n)}toAnnotation(){return new ve(this.link)}}class Oe extends H{constructor(e,t,r,n){super(e,n),this.type=B.TEXT,this.parentBlock=r,this.text=t}static from(e,t){const r=new Oe(e.id,e.text,t),{annotations:n}=e;return n&&(r.annotationMap=new Map(Object.keys(n).map((e=>(n.link&&t.apply(new me(n.link.groupKey,[r])),this.createAnnotationEntity(e,n[e])))).filter(s))),r}static createAnnotationEntity(e,t){switch(e){case"bold":return ue.from(t);case"italic":return le.from(t);case"underline":return de.from(t);case"strikethrough":return ce.from(t);case"code":return he.from(t);case"textColor":return ge.from(t);case"link":return ve.from(t)}}toJSON(){const e=Array.from(this.annotationMap.values()).filter((e=>e instanceof J)).reduce(((e,t)=>Object.assign(Object.assign({},e),t.toJSON())),{});return Object.assign(Object.assign({id:this.id},Object.keys(e).length>0?{annotations:e}:{}),{type:"text",text:this.text})}cloneWithText(e){return new Oe(d(),e,this.parentBlock,new Map(this.annotationMap))}isEmpty(){return!this.text||""===this.text||"\n"===this.text}doAnnotationActionApply(e){const t=this.getAnnotationByType(C.SELECTION_RANGE);if(e instanceof se&&e.doSplit&&t){const t=P.get(se.name,Oe.name);if(t){const r=t.execute(e,this);r&&this.applyActionToNode(r,e)}}else this.applyActionToNode(this,e);this.parentBlock.mergeNodes(e)}doModifyActionApply(e){P.executeTheStrategy(e,this)}applyActionToNode(e,t){const r=t.toAnnotation();if(t instanceof xe)return void this.syncUpSelectedNodes(e);r instanceof ae||this.syncUpSelectedNodes(e);const n=P.get(z.name,Oe.name);n&&n.execute(t,e)}syncUpSelectedNodes(t){const n=_.getDOMByEntity(this);if(n){const o=r.getSubjectFromParentNodeByEventId(n,i);o&&e.notify(o,{node:t})}}}P.register(D.UPDATE_TEXT,Oe.name,new class extends W{handleAction(e,t){t.text=e.newTextContent,!t.text&&t.annotationMap.has("LINK")&&t.annotationMap.delete(R.LINK)}}),P.register(D.REPLACE_SELECTED_TEXT,Oe.name,new class extends W{handleAction(e,t){this.replaceSelectedText(e.textToBeInsert,e.currentRange,t)}replaceSelectedText(e,t,r){if(t&&t.startContainer&&t.endContainer){const{startContainer:n,endContainer:i,startOffset:o,endOffset:s}=t;let a=r.text;if(n===i&&o===s&&e)a=r.text.slice(0,o)+e+r.text.slice(o);else{const t=n.parentElement,c=i.parentElement,d=t&&_.getEntityByDOM(t),l=c&&_.getEntityByDOM(c);let u=0,h=r.text.length;d&&d===r?(u=o,h=n===i?s:h):l&&l===r&&(h=s),a=r.text.slice(0,u)+e+r.text.slice(h)}r.apply(new we(a))}}}),P.register(se.name,Oe.name,new class extends W{constructor(){super(...arguments),this.applyTargetNode=null}handleAction(e,t){const r=t.getAnnotationByType(C.SELECTION_RANGE);if(this.setApplyTargetNode(null),e instanceof se&&e.doSplit&&r){const{startContainer:e,endContainer:n,startOffset:i,endOffset:o}=r.range,s=e===n&&i===o;t.parentBlock.nodes=t.parentBlock.nodes.flatMap((e=>e.id===t.id?s?this.insertNewNode(i,t):this.shouldSplitSelection(r.range)?this.splitTextNode(r.range,t):(this.setApplyTargetNode(t),t):e))}return this.applyTargetNode}insertNewNode(e,t){const r=t.cloneWithText("");return this.setApplyTargetNode(r),0===e?[r,t]:e===t.text.length?[t,r]:[t.cloneWithText(t.text.substring(0,e)),r,t.cloneWithText(t.text.substring(e))]}shouldSplitSelection(e){const{startContainer:t,endContainer:r,startOffset:n,endOffset:i}=e;return t!==r||n>0||i<(r.textContent?r.textContent.length:0)}splitTextNode(e,t){const{startContainer:r,endContainer:n,startOffset:i}=e,o=r.parentElement,s=n.parentElement,a=(e,r,n)=>{const i=e.substring(0,r),o=e.substring(r,n),s=e.substring(n);return[t.cloneWithText(i),t.cloneWithText(o),t.cloneWithText(s)]},c=o&&_.getEntityByDOM(o),d=s&&_.getEntityByDOM(s);if(c&&c.id===t.id){const o=r===n?e.endOffset:t.text.length,[s,c,d]=a(t.text,i,o);return this.setApplyTargetNode(c),[s,c,d].filter((e=>!!e.text))}if(d&&d.id===t.id){const[r,n,i]=a(t.text,0,e.endOffset);return this.setApplyTargetNode(n),[r,n,i].filter((e=>!!e.text))}return this.setApplyTargetNode(t),t}setApplyTargetNode(e){this.applyTargetNode=e}}),P.register(z.name,Oe.name,new class extends W{handleAction(e,t){const r=e.toAnnotation();if(e instanceof Me)t.annotationMap.delete(e.annotationType);else{if(!(r instanceof ye))return r instanceof J||r instanceof ae?(e instanceof Ee&&(s(e.newText)&&(t.text=e.newText),t.parentBlock.apply(new me(e.link.groupKey,[t]))),e instanceof Ae&&this.handleAction(new ke,t),void t.annotationMap.set(r.type,r)):void 0;r.items.forEach((e=>{t.deleteAnnotationByType(e)}))}}});class Ne extends G{constructor(e){super(),this.type=I.TEXT_STYLE,this.textStyle=e}static from(e){return[I.TEXT_STYLE,new Ne(e)]}toJSON(){return{textStyle:this.textStyle}}render(){const e={fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",fontWeight:"500"};switch(this.textStyle){case"paragraph":return e;case"title":return{fontFamily:"Inter",fontSize:"36px",lineHeight:"40px",fontWeight:"500"};case"subtitle":return{fontFamily:"Inter",fontSize:"28px",lineHeight:"32px",fontWeight:"500"};case"heading-1":return{fontFamily:"Inter",fontSize:"22px",lineHeight:"24px",fontWeight:"500"};case"heading-2":return{fontFamily:"Inter",fontSize:"20px",lineHeight:"24px",fontWeight:"500"};case"heading-3":return{fontFamily:"Inter",fontSize:"18px",lineHeight:"22px",fontWeight:"500"}}}}class Se extends z{constructor(e,t){super(),this.isFlushable=!0,this.textStyle=e,this.bold=t}toAnnotation(){return new Ne(this.textStyle)}}class Te extends se{constructor(e){super(),this.isFlushable=!0,this.bold=e}toAnnotation(){return new ue(this.bold)}}class Ce extends W{handleAction(e,t){e.newBlock=this.splitTextNodeBlock(e.splitPointNode,e.startOffsetOfNode,t)}splitTextNodeBlock(e,t,r){if(e){const n=e.text.slice(0,t),i=e.text.slice(t),o=r.nodes.indexOf(e);if(o>-1){const t=r.nodes.slice(0,o),s=r.nodes.slice(o+1);n&&t.push(e.cloneWithText(n)),i&&s.unshift(e.cloneWithText(i)),r.apply(new ne(t));const a=r.cloneWithNodes(s);return r.parent.apply(new re(r,a)),a}}}}class Ie extends W{handleAction(e,t){e.lineBreakNode=this.lineBreakSingleBlock(e.startContainerNode,e.startOffset,t)}lineBreakSingleBlock(e,t,r){if(e){const n=new Oe(d(),"\n",r),i=e.text.slice(0,t),o=e.text.slice(t),s=r.nodes.indexOf(e);if(s>-1){const t=r.nodes.slice(0,s),a=r.nodes.slice(s+1);i&&t.push(e.cloneWithText(i)),o&&a.unshift(e.cloneWithText(o)),this.mergeLineBreakNodes(t,n,a,r)}return n}}mergeLineBreakNodes(e,t,r,n){(0===r.length||r[0]&&""===r[0].text)&&r.push(new Oe(d(),"\n",n,e[e.length-1]&&e[e.length-1].annotationMap)),n.apply(new ne([...e,t,...r]))}}class Le extends W{handleAction(e,t){e.lineBreakNode=this.lineBreakMultipleBlocks(e.selectedBlocks,t)}lineBreakMultipleBlocks(e,t){const r=t.nodes,n=new Oe(d(),"\n",t),i=this.concatBlocksNodes(e.slice(1));return this.mergeLineBreakNodes(r,n,i,t),n}concatBlocksNodes(e){const t=[];return e.map((e=>{"image"!==e.type&&(t.push(...e.nodes),e.parent.apply(new V(e)))})),t}mergeLineBreakNodes(e,t,r,n){(0===r.length||r[0]&&""===r[0].text)&&r.push(new Oe(d(),"\n",n,e[e.length-1]&&e[e.length-1].annotationMap)),n.apply(new ne([...e,t,...r]))}}class Ge extends j{constructor(e){super(),this.type=D.MERGE_TWO_BLOCKS_NODES,this.blockNeedToBeMerged=e}}class _e extends X{handleAction(e,t){this.deleteNodeContent(e,t)}deleteNodeContent(e,t){const r=e.startContainerNode,n=e.startOffset;if(0!==n&&!r.isEmpty()){const i=r.text.slice(0,n-1)+r.text.slice(n);if(r.apply(new we(i)),i)return void(e.previousNode=r);{const n=this.getPreviousNode(r);return n&&n.parentBlock===t&&"\n"===n.text||1===t.nodes.length?void(e.previousNode=r):(t.apply(new V(r)),void(e.previousNode=n))}}{let n=this.getPreviousNode(r),i=null;if(t.nodes.length&&n&&n.parentBlock!==t)r.isEmpty()&&t.apply(new V(r)),n.parentBlock.apply(new Ge(t));else if(this.isContentFirstNode(r)&&r.isEmpty()&&(i=this.getNextNode(r)),r.isEmpty()&&t.apply(new V(r)),n instanceof Oe&&n.isEmpty()){const e=n;n=this.getPreviousNode(n),e.parentBlock.apply(new V(e)),n||(i=r)}0===t.nodes.length&&t.parent.apply(new V(t)),n?e.previousNode=n:i&&(e.nextNode=i)}}}class De extends W{replaceNodeWithNodes(e,t,r){e.nodes&&(r.forEach((t=>{t.parentBlock=e})),e.nodes=e.nodes.flatMap((e=>e===t?r:e)))}}class Be extends De{handleAction(e,t){const r=e.referNode,n=[...e.nodesToBeInserted,r];this.replaceNodeWithNodes(t,r,n)}}class Re extends K{constructor(e,t){super(e),this.nodes=[],this.type=t,this.annotationMap=Re.isAcceptableTextStyle(t)?new Map([Ne.from(t)]):new Map([Ne.from("paragraph")])}static from(e){const t=new Re(e.id,e.type),{annotations:r}=e;return t.nodes=e.nodes.map((e=>Oe.from(e,t))),r&&Object.entries(r).forEach((([e,r])=>{const n=this.createAnnotationEntity(e,r);s(n)&&t.annotationMap.set(...n)})),t}static createAnnotationEntity(e,t){return"textStyle"===e?Ne.from(t):super.createAnnotationEntity(e,t)}static isAcceptableTextStyle(e){return["title","subtitle","paragraph","heading-1","heading-2","heading-3"].includes(e)}mergeNodes(e){this.nodes=this.nodes.reduce(((t,r)=>{const n=t.at(-1);if(e instanceof Ee&&e.needMergeNode){const e=null==n?void 0:n.getAnnotationByType(R.LINK),i=r.getAnnotationByType(R.LINK);if(e&&i&&e.toEqual(i))return t}return[...t,r]}),[])}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,nodes:this.nodes.map((e=>e.toJSON()))})}cloneWithNodes(e){const t=new Re(d(),this.type);return t.nodes=[],t.apply(new Y(e)),t}isNotEmpty(){return this.nodes.length>0&&this.nodes.some((e=>!e.isEmpty()))}getLastNode(){return this.nodes[this.nodes.length-1]}createNewParagraph(){return new Re(d(),"paragraph")}doAnnotationActionApply(e){const t=P.get(e.constructor.name,Re.name);t&&t.execute(e,this)}}P.register(Se.name,Re.name,new class extends W{handleAction(e,t){"list-item"!==t.type&&(t.type=e.textStyle),t.nodes.forEach(e.bold?e=>{const t=new Te(!0);t.doSplit=!1,e.apply(t)}:e=>{e.apply(new Me(R.BOLD))})}}),P.register(me.name,Re.name,new class extends W{handleAction(e,t){const r=t.getAnnotationByType(C.LINK_GROUP);if(r){const n=r.linkGroups.get(e.groupKey);r.linkGroups.set(e.groupKey,[...n,...e.nodes]),t.annotationMap.set(C.LINK_GROUP,r)}}}),P.register(D.DELETE_CHILD,Re.name,new Q),P.register(D.APPEND_CHILD_NODES,Re.name,new ee),P.register(D.SPLIT_BLOCK_WITH_NODE,Re.name,new Ce),P.register(D.REPLACE_CHILD_NODES,Re.name,new te),P.register(D.MERGE_TWO_BLOCKS_NODES,Re.name,new Z),P.register(D.BREAK_SINGLE_BLOCK,Re.name,new class extends W{handleAction(e,t){e.newBlock=this.breakSingleTextBlock(e.startContainerNode,e.startOffset,t)}breakSingleTextBlock(e,t,r){const n=this.copyInlineStyleToNewParagraph(e,r);if(this.isCaretPositionAtTextBlockEnd(r,e,t))r.parent.apply(new re(r,n));else{if(!this.isCaretPositionAtTextBlockStart(r,e,t)){const n=new oe(e,t);return r.apply(n),n.newBlock}r.parent.apply(new ie(r,n))}return n}copyInlineStyleToNewParagraph(e,t){const r=e.cloneWithText("");r.annotationMap.delete(R.LINK);const n=t.createNewParagraph();return n.apply(new Y([r])),n}}),P.register(D.LINE_BREAK_SINGLE_BLOCK,Re.name,new Ie),P.register(D.LINE_BREAK_MULTIPLE_BLOCKS,Re.name,new Le),P.register(D.DELETE_BLOCK_CONTENT,Re.name,new _e),P.register(D.INSERT_IMAGE_TO_BLOCK,Re.name,new class extends W{handleAction(e,t){const r=e.splitPointNode,n=e.startOffsetOfNode,i=e.imageBlockToBeInserted;if(this.isCaretPositionAtTextBlockEnd(t,r,n))t.parent.apply(new re(t,i));else if(this.isCaretPositionAtTextBlockStart(t,r,n))t.parent.apply(new ie(t,i));else{const e=new oe(r,n);t.apply(e),t.parent.apply(new re(t,i))}}}),P.register(D.INSERT_NODES_BEFORE,Re.name,new Be),P.register(D.TRANSFORM_LIST_BLOCK,Re.name,new class extends W{handleAction(e,t){const r=t.parent,n=r.createList(e.listType),i=e.selectedBlocks,o=i.map((e=>r.toListItem(e)));n.apply(new Y(o)),r.apply(new re(e.selectedBlocks[0],n)),i.forEach((e=>{e.parent.apply(new V(e))}))}});class je extends j{constructor(e,t){super(),this.type=D.BREAK_SINGLE_BLOCK,this.startContainerNode=e,this.startOffset=t}}class Fe extends K{constructor(e){super(e),this.type="image",this.nodes=[]}static from(e){const t=new Fe(e.id),{annotations:r}=e;return t.nodes=e.nodes.map((e=>U.from(e,t))),r&&Object.entries(r).forEach((([e,r])=>{const n=this.createAnnotationEntity(e,r);s(n)&&t.annotationMap.set(...n)})),t}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:"image",nodes:this.nodes.map((e=>e.toJSON()))})}isNotEmpty(){return this.nodes.length>0&&this.nodes.some((e=>e.url.length>0))}getLastNode(){return this.nodes[this.nodes.length-1]}createNewImageBlock(){return new Fe(d())}}P.register(D.DELETE_BLOCK_CONTENT,Fe.name,new class extends X{handleAction(e,t){this.deleteNodeContent(e,t)}deleteNodeContent(e,t){const r=e.startContainerNode,n=e.startOffset;let i=this.getPreviousNode(r),o=null;if(1===n){const e=t;this.isContentFirstNode(r)&&(o=this.getNextNode(r)),1===e.nodes.length?e.parent.apply(new V(e)):e.apply(new V(r))}else{const t=i;t&&t instanceof U&&(i=this.getPreviousNode(t),t.parentBlock.apply(new V(t)),i||(e.nextNode=r))}i?e.previousNode=i:o&&(e.nextNode=o)}}),P.register(D.MERGE_TWO_BLOCKS_NODES,Fe.name,new Z),P.register(D.DELETE_CHILD,Fe.name,new Q),P.register(D.APPEND_CHILD_NODES,Fe.name,new ee),P.register(D.REPLACE_CHILD_NODES,Fe.name,new te),P.register(D.SPLIT_BLOCK_WITH_NODE,Fe.name,new class extends W{handleAction(e,t){e.newBlock=this.splitImageNodes(e.splitPointNode,e.startOffsetOfNode,t)}splitImageNodes(e,t,r){const n=r.nodes.indexOf(e);if(n>-1){const e=r.nodes.slice(0,n+t),i=r.nodes.slice(n+t);r.apply(new ne(e));const o=this.cloneWithNodes(i,r);return r.parent.apply(new re(r,o)),o}}cloneWithNodes(e,t){const r=t.createNewImageBlock();return r.nodes=[],r.apply(new Y(e)),r}}),P.register(D.BREAK_SINGLE_BLOCK,Fe.name,new class extends W{handleAction(e,t){e.newBlock=this.breakSingleBlock(e.startContainerNode,e.startOffset,t)}breakSingleBlock(e,t,r){const n=Re.from({id:d(),type:"paragraph",nodes:[{id:d(),type:"text",text:""}]});if(this.isCaretPositionAtImageBlockEnd(r,e,t))r.parent.apply(new re(r,n));else{if(!this.isCaretPositionAtImageBlockStart(r,e,t)){const n=new oe(e,t);return r.apply(n),n.newBlock}r.parent.apply(new ie(r,n))}return n}}),P.register(D.LINE_BREAK_SINGLE_BLOCK,Fe.name,new class extends W{handleAction(e,t){const r=new je(e.startContainerNode,e.startOffset);t.apply(r);const n=r.newBlock;n&&(e.lineBreakNode=n.nodes[0])}}),P.register(D.LINE_BREAK_MULTIPLE_BLOCKS,Fe.name,new class extends W{handleAction(e,t){e.lineBreakNode=this.lineBreakMultipleBlocks(e.selectedBlocks,t)}lineBreakMultipleBlocks(e,t){const r=Re.from({id:d(),type:"paragraph",nodes:[{id:d(),type:"text",text:"\n"}]});t.parent.apply(new re(t,r));const n=this.concatBlocksNodes(e.slice(1));return(0===n.length||n[0]&&""===n[0].text)&&n.push(new Oe(d(),"\n",r)),r.apply(new Y(n)),r.nodes[0]}concatBlocksNodes(e){const t=[];return e.map((e=>{"image"!==e.type&&(t.push(...e.nodes),e.parent.apply(new V(e)))})),t}}),P.register(D.INSERT_IMAGE_TO_BLOCK,Fe.name,new class extends W{handleAction(e,t){const r=e.splitPointNode,n=e.startOffsetOfNode,i=e.imageBlockToBeInserted;t.nodes.length<1?t.apply(new Y(i.nodes)):this.isCaretPositionAtImageBlockEnd(t,r,n)?t.parent.apply(new re(t,i)):this.isCaretPositionAtImageBlockStart(t,r,n)?t.parent.apply(new ie(t,i)):(t.apply(new oe(r,n)),t.parent.apply(new re(t,i)))}}),P.register(D.INSERT_NODES_BEFORE,Fe.name,new Be),P.register(D.INSERT_NODES_AFTER,Fe.name,new class extends De{handleAction(e,t){const r=e.referNode,n=[r,...e.nodesToBeInserted];this.replaceNodeWithNodes(t,r,n)}});class $e extends Re{constructor(e,t){super(e,"list-item"),this.children=[],this.children=t}static from(e){const t=new $e(e.id);t.nodes=e.nodes.map((e=>Oe.from(e,t))),e.children&&(t.children=e.children.map((e=>{const r=We.from(e);return r.parent=t,r})));const{annotations:r}=e;return r&&Object.entries(r).forEach((([e,r])=>{const n=this.createAnnotationEntity(e,r);s(n)&&t.annotationMap.set(...n)})),t}toJSON(){var e;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(e=this.children)||void 0===e?void 0:e.map((e=>e.toJSON()))})}cloneWithNodes(e){const t=new $e(d());return t.nodes=[],t.apply(new Y(e)),t}getLastNode(){return this.children&&this.children.length>0?this.children[this.children.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new $e(d())}}P.register(D.DELETE_BLOCK_CONTENT,$e.name,new class extends _e{handleAction(e,t){const r=t.parent;this.deleteNodeContent(e,t),0===r.blocks.length&&r.parent.apply(new V(r))}}),P.register(D.LINE_BREAK_SINGLE_BLOCK,$e.name,new Ie),P.register(D.LINE_BREAK_MULTIPLE_BLOCKS,$e.name,new Le),P.register(D.DELETE_CHILD,$e.name,new class extends W{handleAction(e,t){t.nodes=t.nodes.filter((t=>t!==e.entityToBeRemoved)),0!==t.nodes.length||t.children&&t.children.length||t.parent.apply(new V(t))}}),P.register(D.DELETE_NEST_LIST,$e.name,new class extends W{handleAction(e,t){t.children&&(t.children=t.children.length>1?t.children.filter((t=>t!==e.nestListBlockToBeRemoved)):void 0)}}),P.register(D.APPEND_CHILD_NODES,$e.name,new ee),P.register(D.SPLIT_BLOCK_WITH_NODE,$e.name,new Ce),P.register(D.REPLACE_CHILD_NODES,$e.name,new te),P.register(D.REPLACE_NEST_LIST,$e.name,new class extends W{handleAction(e,t){e.newList.forEach((e=>{e.parent=t})),t.children=e.newList}}),P.register(D.MERGE_TWO_BLOCKS_NODES,$e.name,new Z),P.register(D.BREAK_SINGLE_BLOCK,$e.name,new class extends W{handleAction(e,t){e.newBlock=this.breakSingleListItemBlock(e.startContainerNode,e.startOffset,t)}breakSingleListItemBlock(e,t,r){const n=r.createNewListItem(),i=this.copyInlineStyleToNewNode(e);if(n.apply(new Y([i])),this.isCaretPositionAtTextBlockEnd(r,e,t))return this.breakListItemAtEnd(n,r);if(!this.isCaretPositionAtTextBlockStart(r,e,t)){const n=new oe(e,t);return r.apply(n),n.newBlock}return r.parent.apply(new ie(r,n)),n}breakListItemAtEnd(e,t){const r=t.parent.blocks[t.parent.blocks.length-1],n=1===t.nodes.length&&t.nodes[0].isEmpty();if(t===r&&n){const r=t.parent.parent;if("list-item"!==r.type){const n=Re.from({id:d(),type:"paragraph",nodes:[]});return n.apply(new Y(e.nodes)),r.apply(new re(t.parent,n)),t.parent.apply(new V(t)),n}r.parent.apply(new re(r,e)),t.parent.apply(new V(t))}else t.parent.apply(new re(t,e));return e}copyInlineStyleToNewNode(e){const t=e.cloneWithText("");return t.annotationMap.delete(R.LINK),t}}),P.register(D.INSERT_IMAGE_TO_BLOCK,$e.name,new class extends W{handleAction(e,t){t.parent.apply(e)}}),P.register(D.INSERT_NODES_BEFORE,$e.name,new Be);class Pe extends W{handleAction(e,t){this.replaceBlockWithBlocks(t,e.referBlock,[...e.blocksToBeInserted,e.referBlock])}replaceBlockWithBlocks(e,t,r){e.blocks&&(r.forEach((t=>{t.parent=e})),e.blocks=e.blocks.flatMap((e=>e===t?r:e)))}}class Ke extends Pe{handleAction(e,t){this.replaceBlockWithBlocks(t,e.referBlock,[e.referBlock,...e.blocksToBeInserted])}}class He extends W{handleAction(e,t){const r=e.entityToBeAppended;t.blocks&&(r.forEach((e=>{e.parent=t})),t.blocks=t.blocks.concat(r))}}class Je extends j{constructor(e){super(),this.type=D.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=e}}class qe extends W{handleAction(e,t){const r=e.entityToBeRemoved;t.blocks&&(t.blocks=t.blocks.filter((e=>e!==r)))}}class We extends K{constructor(e,t){super(e),this.type="bullet-list",this.blocks=[],this.type=t}static from(e){const t=new We(e.id,e.type);return t.blocks=e.blocks.map((e=>{const r=$e.from(e);return r.parent=t,r})),t}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.blocks.map((e=>e.toJSON()))})}isNotEmpty(){return this.blocks.length>0}getLastNode(){return this.blocks[this.blocks.length-1].getLastNode()}}P.register(D.DELETE_CHILD,We.name,new class extends qe{handleAction(e,t){super.handleAction(e,t);const r=t.parent;0===t.blocks.length&&r&&r.apply("list-item"===r.type?new Je(t):new V(t))}}),P.register(D.INSERT_BLOCKS_BEFORE,We.name,new Pe),P.register(D.INSERT_BLOCKS_AFTER,We.name,new Ke),P.register(D.APPEND_CHILD_NODES,We.name,new He),P.register(D.TRANSFORM_LIST_BLOCK,We.name,new class extends W{handleAction(e,t){const r=e.selectedBlocks,n=t.parent.createList(e.listType);if(r.every((e=>e.parent===t)))n.apply(new Y(t.blocks)),t.parent.apply(new re(t,n)),t.parent.apply(new V(t)),r.forEach((e=>e.nodes.map((e=>e.apply(new xe)))));else{const r=e.selectedBlocks.map((e=>t.parent.toListItem(e)));n.apply(new Y(r)),t.parent.apply(new re(t,n)),e.selectedBlocks.forEach((e=>{e.parent.apply(new V(e))})),0===t.blocks.length&&t.parent.apply(new V(t))}}}),P.register(D.TRANSFORM_PARAGRAPH_BLOCK,We.name,new class extends W{handleAction(e,t){let r=!1,n=!1;const i=e.selectedBlocks,o=i.map((e=>(e.nodes.map((e=>e.apply(new xe))),e===t.blocks[0]&&(r=!0),e===t.blocks[t.blocks.length-1]&&(n=!0),this.toParagraph(e))));if(r)t.parent.apply(new ie(t,...o));else if(n)t.parent.apply(new re(t,...o));else{const e=t.blocks.indexOf(i[0]),r=t.blocks.indexOf(i[i.length-1]),n=t.parent.createList(t.type);n.apply(new Y(t.blocks.slice(0,e)));const s=t.parent.createList(t.type);s.apply(new Y(t.blocks.slice(r+1))),t.parent.apply(new ie(t,n,...o,s)),t.parent.apply(new V(t))}i.map((e=>{t.apply(new V(e))})),0===t.blocks.length&&t.parent.apply(new V(t))}toParagraph(e){const t=new Re(d(),"paragraph");return t.apply(new Y(e.nodes)),t.annotationMap=e.annotationMap,t}}),P.register(D.INSERT_IMAGE_TO_BLOCK,We.name,new class extends W{handleAction(e,t){t.parent.apply("list-item"!==t.parent.type?new re(t,e.imageBlockToBeInserted):e)}});class ze{constructor(e){e.forEach((e=>{e.parent=this})),this.blocks=e}static fromJSON(e){const t=e.map((e=>{switch(e.type){case"paragraph":case"title":case"subtitle":case"heading-1":case"heading-2":case"heading-3":return Re.from(e);case"image":return Fe.from(e);case"bullet-list":case"number-list":return We.from(e);default:throw new Error(`[Vega] Unknown block type: ${e.type}`)}}));return new ze(t)}static createEmptyContent(){return ze.fromJSON([{id:d(),type:"paragraph",nodes:[{id:d(),type:"text",text:""}]}])}clone(){return new ze([...this.blocks])}toJSON(){return this.blocks.map((e=>e.toJSON()))}apply(e){P.executeTheStrategy(e,this)}toListItem(e){e.nodes.map((e=>e.apply(new xe)));const t=new $e(d());return t.apply(new Y(e.nodes)),t.annotationMap=e.annotationMap,t}createList(e){return new We(d(),e)}}P.register(D.DELETE_CHILD,ze.name,new qe),P.register(D.APPEND_CHILD_NODES,ze.name,new He),P.register(D.INSERT_BLOCKS_BEFORE,ze.name,new Pe),P.register(D.INSERT_BLOCKS_AFTER,ze.name,new Ke);export{z as A,G as B,ke as C,Ge as D,oe as E,je as F,V as G,F as H,C as I,ne as J,ie as K,Ee as L,j as M,J as N,re as O,Re as R,ce as S,se as T,de as U,T as V,be as Z,ze as a,Fe as b,$e as c,We as d,K as e,U as f,Oe as g,H as h,R as i,q as j,O as k,ge as l,fe as m,Te as n,le as o,Se as p,Ne as q,ue as r,_ as s,I as t,Ae as u,ae as v,$ as w,D as x,Y as y,we as z}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as e,h as t,H as a,g as r}from"./p-1c298d5a.js";import{f as n}from"./p-c8408c13.js";import{c as s}from"./p-c8f914d2.js";import{c as o}from"./p-86194314.js";import{s as p}from"./p-9b797118.js";import{I as d}from"./p-6e1ab235.js";import{V as h,I as l}from"./p-4387d550.js";import{F as c}from"./p-
|
|
1
|
+
import{r as i,c as e,h as t,H as a,g as r}from"./p-1c298d5a.js";import{f as n}from"./p-c8408c13.js";import{c as s}from"./p-c8f914d2.js";import{c as o}from"./p-86194314.js";import{s as p}from"./p-9b797118.js";import{I as d}from"./p-6e1ab235.js";import{V as h,I as l}from"./p-4387d550.js";import{F as c}from"./p-a3fa41c8.js";import{T as g}from"./p-7c0b4c36.js";import{b as v}from"./p-a247e073.js";import{C as m}from"./p-2d0d575f.js";import"./p-bf953152.js";import"./p-6a334573.js";import"./p-59c9de55.js";import"./p-619fdde5.js";import"./p-0bb29d98.js";import"./p-37b05e0b.js";import"./p-e06361df.js";import"./p-d8683a5f.js";import"./p-c0291e2e.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-abd7aeaa.js";import"./p-987fbbd0.js";import"./p-b5f5a5e0.js";import"./p-3647d61d.js";import"./p-262ec334.js";var b=function(i,e,t,a){var r,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(i,e,t,a);else for(var o=i.length-1;o>=0;o--)(r=i[o])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};const f=class{constructor(t){i(this,t),this.vegaChange=e(this,"vegaChange",7),this.change=e(this,"change",7),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.formFieldController=new c({propertyRules:[{propertyName:"required",ruleFactory:i=>i?new g:null}],validationRulesName:"validationRules",defaultValue:!1,attributeGetter:i=>this[i],inputContainerGetter:()=>this.toggleSwitchContainer,touchableAreaGetter:()=>[this.toggleSwitchContainer]}),this.changeEventEmitter=s(f,n),this.checked=!1,this.value=!1,this.size="default",this.required=!1,this.disabled=!1,this.validationRules=[],this.autoValidation=!0,this.isValid=null,this.toggleSwitch=()=>{this.disabled||(this.checked=!this.checked)},this.updateValue=i=>{this.checked=i.currentTarget.checked,i.stopPropagation()}}watchCheckedChange(){this.value=this.checked,this.changeEventEmitter.emit(this.checked),m.notify(v,{host:this.host,detail:this.value})}watchValue(i){this.checked=!0===i}watchValidationRules(){}componentWillLoad(){this.value=this.checked}render(){let i=this.checked?"vega-container vega-container-checked":"vega-container";return i+=this.disabled?" vega-container-disabled":"",i+="small"===this.size?" vega-container-small-size":"",p(t(a,null,t("vega-flex",{gap:"size-8",ref:i=>this.toggleSwitchContainer=i},t("div",{class:`${i} vega-flex-shrink-0 v-min-w-min`},t("input",{type:"checkbox",name:"switch",disabled:this.disabled,checked:this.checked,onChange:this.updateValue,"aria-label":this.label||"No label defined",role:"button",tabIndex:0,onKeyDown:o()}),t("span",{class:this.disabled?"v-bg-tertiary":"v-bg-primary"})),this.renderLabelDom())),this.host)}renderLabelDom(){return this.label?t("div",{class:"vega-flex-basis-0 vega-flex-grow"},t("vega-field-label",{onClick:this.toggleSwitch,disabled:this.disabled,label:this.label,isFieldRequired:this.required})):null}get host(){return r(this)}static get watchers(){return{checked:["watchCheckedChange"],value:["watchValue"],validationRules:["watchValidationRules"]}}};b([l()],f.prototype,"globalSlimmers",void 0),b([d()],f.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),b([d()],f.prototype,"formFieldController",void 0),b([d()],f.prototype,"changeEventEmitter",void 0),f.style=':host{display:inline-block}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}div.vega-container{display:flex;justify-content:flex-start;align-items:center;border-radius:9999px;position:relative;box-sizing:content-box;height:24px;width:48px;padding:4px;background-color:rgba(var(--v-bg-toggle-switch, 107, 116, 125, 0.7))}div.vega-container:hover{background-color:rgba(var(--v-bg-toggle-switch-hover, 107, 116, 125, 1))}div.vega-container.vega-container-checked{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}div.vega-container.vega-container-checked:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}div.vega-container.vega-container-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}div.vega-container.vega-container-checked.vega-container-disabled{background-color:rgba(var(--v-bg-toggle-switch-selected-disabled, 153, 192, 255, 1))}div.vega-container-small-size{box-sizing:border-box;height:20px;width:32px;padding:2px}div.vega-container>span{margin-left:0px;transition-property:margin;transition-duration:0.1s;transition-timing-function:linear}div.vega-container:focus-within{box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25))}div.vega-container-checked>span{margin-left:24px}div.vega-container-checked.vega-container-small-size>span{margin-left:12px}div.vega-container>input{position:absolute;cursor:pointer;opacity:0;left:0px;top:0px;width:100%;height:100%;margin:0px;-webkit-tap-highlight-color:transparent}div.vega-container input:disabled{cursor:default}div.vega-container>span{display:inline-block;border-radius:9999px;box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));width:24px;height:24px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));transition-property:margin;transition-duration:0.1s;transition-timing-function:linear}div.vega-container-small-size{height:20px}div.vega-container-small-size>span{width:16px;height:16px}div{align-self:center}';export{f as vega_toggle_switch}
|