@globalpayments/vega 2.42.0 → 2.44.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-77b1f80b.js → app-globals-c23133a1.js} +5 -5
- package/dist/cjs/{child-nodes-event-prevent-slimmer-7f59159e.js → child-nodes-event-prevent-slimmer-4982065c.js} +1 -1
- package/dist/cjs/{content-state-45707be4.js → content-state-5659cad7.js} +2 -14
- package/dist/cjs/{design-token-d8362603.js → design-token-02d1846e.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-ad1e5774.js → element-appender-slimmer-040db7e3.js} +154 -34
- package/dist/cjs/{form-field-controller-slimmer-928d263f.js → form-field-controller-slimmer-2d4a4f40.js} +2 -2
- package/dist/cjs/{image-annotation-action-0df6f005.js → image-annotation-action-64f0e28c.js} +1 -1
- package/dist/cjs/{index-84ce6b33.js → index-cea30b8b.js} +1 -1
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/loader.cjs.js +7 -7
- package/dist/cjs/{public-rules-7994300f.js → public-rules-a23c74a9.js} +3 -3
- package/dist/cjs/{responsive-format-facade-9439e9ae.js → responsive-format-facade-22eb285c.js} +3 -3
- package/dist/cjs/{rich-text-editor-required-rule-11d07c7d.js → rich-text-editor-required-rule-cdc2e15e.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-017370ec.js → string-input-formatter-slimmer-90bdfcf6.js} +6 -3
- package/dist/cjs/{style-formatter-65652117.js → style-formatter-0536214a.js} +1 -1
- package/dist/cjs/{sub-state-notify-slimmer-b9e39b9d.js → sub-state-notify-slimmer-88e2f4aa.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-c6665cec.js → sub-state-observer-slimmer-8ed18a5a.js} +1 -1
- package/dist/cjs/{translation-2c8a32bb.js → translation-648b7910.js} +27 -0
- package/dist/cjs/{translation-slimmer-593b92fe.js → translation-slimmer-8eeb1c99.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +6 -6
- package/dist/cjs/vega-app-header-button.cjs.entry.js +7 -7
- package/dist/cjs/vega-banner.cjs.entry.js +1 -1
- package/dist/cjs/vega-box.cjs.entry.js +7 -7
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/vega-button-circle.cjs.entry.js +7 -7
- package/dist/cjs/vega-button-group_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-button-link.cjs.entry.js +2 -2
- package/dist/cjs/vega-button.cjs.entry.js +6 -6
- package/dist/cjs/vega-calendar_3.cjs.entry.js +7 -7
- package/dist/cjs/vega-card.cjs.entry.js +6 -6
- package/dist/cjs/vega-carousel.cjs.entry.js +5 -5
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-chip.cjs.entry.js +7 -7
- package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-combo-box.cjs.entry.js +5 -5
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-dialog_2.cjs.entry.js +83 -8
- package/dist/cjs/vega-divider.cjs.entry.js +6 -6
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +10 -10
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +4 -4
- package/dist/cjs/vega-flex.cjs.entry.js +7 -7
- package/dist/cjs/vega-font.cjs.entry.js +6 -6
- package/dist/cjs/vega-form.cjs.entry.js +5 -5
- package/dist/cjs/vega-grid.cjs.entry.js +6 -6
- package/dist/cjs/vega-icon.cjs.entry.js +6 -6
- package/dist/cjs/vega-image-uploader.cjs.entry.js +8 -8
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +17 -13
- package/dist/cjs/vega-input-numeric.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-select.cjs.entry.js +8 -8
- package/dist/cjs/vega-input.cjs.entry.js +6 -6
- package/dist/cjs/{vega-internal-event-id-4ba74761.js → vega-internal-event-id-a0ca9af9.js} +4 -0
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +17 -10
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +18 -10
- package/dist/cjs/vega-pagination.cjs.entry.js +7 -7
- package/dist/cjs/vega-popover_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-radio_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +5 -5
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +10 -10
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +7 -7
- package/dist/cjs/vega-signature-capture.cjs.entry.js +8 -8
- package/dist/cjs/vega-stepper.cjs.entry.js +5 -5
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-table_8.cjs.entry.js +9 -9
- package/dist/cjs/vega-textarea.cjs.entry.js +5 -5
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -6
- package/dist/cjs/vega.cjs.js +7 -7
- package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +15 -10
- 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 +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.js +4 -1
- package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.js +25 -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-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/test/dto/blocks/list-block.test.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/test/e2e-utils.js +177 -0
- package/dist/collection/components/vega-rich-text-editor/test/fixture.js +257 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +2 -0
- package/dist/collection/helpers/slimmers/element-appender/element-appender-hierarchy-tree-manager.js +108 -0
- package/dist/collection/helpers/slimmers/element-appender/element-appender-slimmer.js +19 -3
- package/dist/collection/helpers/slimmers/element-appender/test/element-appender-slimmer.test.js +232 -0
- package/dist/collection/helpers/slimmers/string-input-formatter-slimmer.js +5 -2
- package/dist/collection/helpers/translation/internal-translation-controller.js +25 -0
- package/dist/collection/helpers/translation/locales/en.js +2 -0
- package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +14 -0
- package/dist/collection/helpers/ui/element-appender.js +2 -2
- package/dist/collection/helpers/validator/test/rules/rich-text-editor-required-rule.test.js +4 -4
- package/dist/esm/{app-globals-0aeb2171.js → app-globals-e6203355.js} +5 -5
- package/dist/esm/{child-nodes-event-prevent-slimmer-2f5824ee.js → child-nodes-event-prevent-slimmer-aab1c019.js} +1 -1
- package/dist/esm/{content-state-2de41bc0.js → content-state-7e9f3421.js} +2 -14
- package/dist/esm/{design-token-b195686e.js → design-token-e1b56333.js} +1 -1
- package/dist/esm/{element-appender-slimmer-f425d203.js → element-appender-slimmer-9d5d4108.js} +155 -35
- package/dist/esm/{form-field-controller-slimmer-d18d01da.js → form-field-controller-slimmer-16f7a11b.js} +2 -2
- package/dist/esm/{image-annotation-action-a0dd92ed.js → image-annotation-action-1e675348.js} +1 -1
- package/dist/esm/{index-4153fe96.js → index-707fec53.js} +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/loader.js +7 -7
- package/dist/esm/{public-rules-31433f1e.js → public-rules-596db5ba.js} +3 -3
- package/dist/esm/{responsive-format-facade-cf37ffd2.js → responsive-format-facade-6e639588.js} +3 -3
- package/dist/esm/{rich-text-editor-required-rule-c0f5a754.js → rich-text-editor-required-rule-ef25c4da.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-99bed828.js → string-input-formatter-slimmer-452c439c.js} +6 -3
- package/dist/esm/{style-formatter-c5aec4a3.js → style-formatter-f454626b.js} +1 -1
- package/dist/esm/{sub-state-notify-slimmer-e3b2bff5.js → sub-state-notify-slimmer-c7169226.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-ada3467b.js → sub-state-observer-slimmer-1d3336d6.js} +1 -1
- package/dist/esm/{translation-a18bc15e.js → translation-fd7a290a.js} +27 -0
- package/dist/esm/{translation-slimmer-a8c20249.js → translation-slimmer-7c37f252.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +6 -6
- package/dist/esm/vega-app-header-button.entry.js +7 -7
- package/dist/esm/vega-banner.entry.js +1 -1
- package/dist/esm/vega-box.entry.js +7 -7
- package/dist/esm/vega-breadcrumb.entry.js +2 -2
- package/dist/esm/vega-button-circle.entry.js +7 -7
- package/dist/esm/vega-button-group_2.entry.js +5 -5
- package/dist/esm/vega-button-link.entry.js +2 -2
- package/dist/esm/vega-button.entry.js +6 -6
- package/dist/esm/vega-calendar_3.entry.js +7 -7
- package/dist/esm/vega-card.entry.js +6 -6
- package/dist/esm/vega-carousel.entry.js +5 -5
- package/dist/esm/vega-checkbox_2.entry.js +5 -5
- package/dist/esm/vega-chip.entry.js +7 -7
- package/dist/esm/vega-color-picker.entry.js +3 -3
- package/dist/esm/vega-combo-box.entry.js +5 -5
- package/dist/esm/vega-date-picker_2.entry.js +11 -11
- package/dist/esm/vega-dialog_2.entry.js +83 -8
- package/dist/esm/vega-divider.entry.js +6 -6
- package/dist/esm/vega-dropdown_5.entry.js +10 -10
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +4 -4
- package/dist/esm/vega-flex.entry.js +7 -7
- package/dist/esm/vega-font.entry.js +6 -6
- package/dist/esm/vega-form.entry.js +5 -5
- package/dist/esm/vega-grid.entry.js +6 -6
- package/dist/esm/vega-icon.entry.js +6 -6
- package/dist/esm/vega-image-uploader.entry.js +8 -8
- package/dist/esm/vega-input-credit-card.entry.js +17 -13
- package/dist/esm/vega-input-numeric.entry.js +6 -6
- package/dist/esm/vega-input-phone-number.entry.js +5 -5
- package/dist/esm/vega-input-range.entry.js +6 -6
- package/dist/esm/vega-input-select.entry.js +8 -8
- package/dist/esm/vega-input.entry.js +6 -6
- package/dist/esm/{vega-internal-event-id-7809368b.js → vega-internal-event-id-d7113cf7.js} +3 -1
- package/dist/esm/vega-left-nav_5.entry.js +17 -10
- package/dist/esm/vega-loader-wrapper_2.entry.js +5 -5
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +18 -10
- package/dist/esm/vega-pagination.entry.js +7 -7
- package/dist/esm/vega-popover_2.entry.js +6 -6
- package/dist/esm/vega-radio_2.entry.js +5 -5
- package/dist/esm/vega-rich-text-content.entry.js +5 -5
- package/dist/esm/vega-rich-text-editor_4.entry.js +10 -10
- package/dist/esm/vega-selection-chip_2.entry.js +9 -9
- package/dist/esm/vega-selection-tile_2.entry.js +7 -7
- package/dist/esm/vega-sidenav_3.entry.js +7 -7
- package/dist/esm/vega-signature-capture.entry.js +8 -8
- package/dist/esm/vega-stepper.entry.js +5 -5
- package/dist/esm/vega-tab-group_2.entry.js +2 -2
- package/dist/esm/vega-table_8.entry.js +9 -9
- package/dist/esm/vega-textarea.entry.js +5 -5
- package/dist/esm/vega-time-picker_2.entry.js +9 -9
- package/dist/esm/vega-toggle-switch.entry.js +3 -3
- package/dist/esm/vega-tooltip_2.entry.js +7 -6
- package/dist/esm/vega.js +7 -7
- 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 +1 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.d.ts +1 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/vega-left-nav-group.d.ts +4 -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-rich-text-editor/dto/blocks/list-item-block.d.ts +0 -4
- package/dist/types/components/vega-rich-text-editor/test/e2e-utils.d.ts +67 -0
- package/dist/types/components/vega-rich-text-editor/test/fixture.d.ts +19 -0
- package/dist/types/components.d.ts +10 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +2 -0
- package/dist/types/helpers/slimmers/element-appender/element-appender-hierarchy-tree-manager.d.ts +48 -0
- package/dist/types/helpers/slimmers/element-appender/element-appender-slimmer.d.ts +2 -0
- package/dist/types/helpers/translation/interface.d.ts +7 -0
- 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-02603c02.js +1 -0
- package/dist/vega/{p-0b6adb26.entry.js → p-05b7d047.entry.js} +1 -1
- package/dist/vega/p-09279679.entry.js +1 -0
- package/dist/vega/{p-30840b1d.entry.js → p-0a30fcaf.entry.js} +1 -1
- package/dist/vega/p-0c57091c.entry.js +1 -0
- package/dist/vega/{p-18520b0b.entry.js → p-0cb40df0.entry.js} +1 -1
- package/dist/vega/{p-9ae0b8bf.entry.js → p-0eedb5a8.entry.js} +1 -1
- package/dist/vega/p-11ccc1a9.entry.js +1 -0
- package/dist/vega/{p-b129beb6.js → p-12a10bdf.js} +1 -1
- package/dist/vega/p-16194709.entry.js +1 -0
- package/dist/vega/{p-de2e3383.js → p-179887da.js} +1 -1
- package/dist/vega/{p-a607c168.js → p-179c59ff.js} +1 -1
- package/dist/vega/{p-2d4e7947.entry.js → p-184f3b15.entry.js} +1 -1
- package/dist/vega/{p-8d6b1d3c.entry.js → p-1917b593.entry.js} +2 -2
- package/dist/vega/p-19f33816.js +1 -0
- package/dist/vega/{p-28244d46.entry.js → p-1d8f86f9.entry.js} +1 -1
- package/dist/vega/{p-08c829c6.entry.js → p-21b34b8b.entry.js} +1 -1
- package/dist/vega/p-27192960.js +1 -0
- package/dist/vega/{p-b5dac03a.entry.js → p-2796fa10.entry.js} +1 -1
- package/dist/vega/{p-4230112f.entry.js → p-2aba65ab.entry.js} +1 -1
- package/dist/vega/{p-11e1a374.entry.js → p-3291b8f9.entry.js} +1 -1
- package/dist/vega/{p-cdaa4c9d.entry.js → p-359e08ea.entry.js} +1 -1
- package/dist/vega/{p-d40e55f5.entry.js → p-391d6370.entry.js} +1 -1
- package/dist/vega/{p-c6cceae7.entry.js → p-3c236410.entry.js} +1 -1
- package/dist/vega/p-40c77aa8.entry.js +1 -0
- package/dist/vega/{p-a8f8b1e0.entry.js → p-4a47bc03.entry.js} +1 -1
- package/dist/vega/{p-c6c3c0c2.entry.js → p-4e9df296.entry.js} +1 -1
- package/dist/vega/{p-9ac32d6b.entry.js → p-4f3cce8d.entry.js} +1 -1
- package/dist/vega/{p-c0e8c86f.entry.js → p-54be441e.entry.js} +1 -1
- package/dist/vega/{p-28bf1b10.entry.js → p-5558ab9c.entry.js} +1 -1
- package/dist/vega/{p-d0c06937.entry.js → p-5dbf9c42.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-4047a36f.js → p-5f5bfd9c.js} +1 -1
- package/dist/vega/{p-d009cdaf.entry.js → p-6465cb2d.entry.js} +1 -1
- package/dist/vega/p-66c5fa14.js +1 -0
- package/dist/vega/{p-b440309d.entry.js → p-758e6e80.entry.js} +1 -1
- package/dist/vega/{p-0692350d.entry.js → p-759137be.entry.js} +1 -1
- package/dist/vega/p-7644a589.entry.js +1 -0
- package/dist/vega/{p-66cd4404.entry.js → p-765469bf.entry.js} +1 -1
- package/dist/vega/{p-2383031a.js → p-7f9e7ca2.js} +1 -1
- package/dist/vega/{p-a85855b0.entry.js → p-8de75077.entry.js} +1 -1
- package/dist/vega/{p-de7db3c6.entry.js → p-8fe6ded4.entry.js} +1 -1
- package/dist/vega/{p-0fbb350f.entry.js → p-944fb238.entry.js} +1 -1
- package/dist/vega/{p-c2f8e6eb.js → p-99289273.js} +1 -1
- package/dist/vega/{p-ec4b5c1c.entry.js → p-a22c9906.entry.js} +1 -1
- package/dist/vega/p-a34d2aab.entry.js +1 -0
- package/dist/vega/{p-45eba113.entry.js → p-a37f9db6.entry.js} +1 -1
- package/dist/vega/p-a53359f4.entry.js +1 -0
- package/dist/vega/p-a7abd309.entry.js +1 -0
- package/dist/vega/{p-b6143b84.js → p-ad86f6da.js} +1 -1
- package/dist/vega/{p-715e2775.entry.js → p-b1bc88d7.entry.js} +1 -1
- package/dist/vega/p-c66b55f8.js +1 -0
- package/dist/vega/{p-332d2c1a.entry.js → p-c838c746.entry.js} +1 -1
- package/dist/vega/{p-ac01f362.entry.js → p-c8f159d9.entry.js} +1 -1
- package/dist/vega/{p-5ea5c14b.entry.js → p-ca6ef342.entry.js} +1 -1
- package/dist/vega/{p-5c30b476.js → p-cd53bde4.js} +1 -1
- package/dist/vega/p-cda9bca2.js +1 -0
- package/dist/vega/{p-c52dfbaf.entry.js → p-cdc7d8cf.entry.js} +1 -1
- package/dist/vega/{p-90ae575e.js → p-d2e11032.js} +1 -1
- package/dist/vega/{p-237dbeef.entry.js → p-d3aa2ea7.entry.js} +1 -1
- package/dist/vega/{p-653c77ec.entry.js → p-dd63dbae.entry.js} +1 -1
- package/dist/vega/p-e06361df.js +1 -0
- package/dist/vega/p-e437c58a.entry.js +1 -0
- package/dist/vega/{p-c6be6b2d.entry.js → p-eaa6417d.entry.js} +1 -1
- package/dist/vega/{p-dc7b70e9.entry.js → p-eae914b0.entry.js} +1 -1
- package/dist/vega/{p-df272c95.entry.js → p-ed569397.entry.js} +1 -1
- package/dist/vega/{p-bbbc0126.js → p-f0e9c75e.js} +1 -1
- package/dist/vega/{p-7a63a63c.entry.js → p-f4fd6f84.entry.js} +1 -1
- package/dist/vega/{p-ba5f6a53.entry.js → p-f8f056db.entry.js} +1 -1
- package/dist/vega/{p-24431cf0.entry.js → p-fb48539c.entry.js} +1 -1
- package/dist/vega/p-ffca3a50.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-0eed617a.js +0 -1
- package/dist/vega/p-139f735b.entry.js +0 -1
- package/dist/vega/p-166e7211.entry.js +0 -1
- package/dist/vega/p-2ade4dd9.js +0 -1
- package/dist/vega/p-378feb27.entry.js +0 -1
- package/dist/vega/p-40ef693f.entry.js +0 -1
- package/dist/vega/p-49604637.entry.js +0 -1
- package/dist/vega/p-497c8b0f.entry.js +0 -1
- package/dist/vega/p-8876b776.js +0 -1
- package/dist/vega/p-9060b003.js +0 -1
- package/dist/vega/p-9aa54f7e.entry.js +0 -1
- package/dist/vega/p-a49d0f17.entry.js +0 -1
- package/dist/vega/p-a66b60c4.js +0 -1
- package/dist/vega/p-a685c7da.entry.js +0 -1
- package/dist/vega/p-a907df7a.entry.js +0 -1
- package/dist/vega/p-ab75d371.js +0 -1
- package/dist/vega/p-c3cb20ef.js +0 -1
- package/dist/vega/p-d920b18c.js +0 -1
- package/dist/vega/p-fa4552a1.entry.js +0 -1
- /package/dist/cjs/{feature-flag-controller-ccf4a113.js → feature-flag-controller-075fa683.js} +0 -0
- /package/dist/esm/{feature-flag-controller-723f1ff5.js → feature-flag-controller-690eac1d.js} +0 -0
- /package/dist/vega/{p-03b8af98.js → p-1e940ce8.js} +0 -0
|
@@ -2366,6 +2366,11 @@ export namespace Components {
|
|
|
2366
2366
|
* @vegaVersion 1.31.0
|
|
2367
2367
|
*/
|
|
2368
2368
|
"label": string;
|
|
2369
|
+
/**
|
|
2370
|
+
* Specifies whether the navigation group is expanded by default **
|
|
2371
|
+
* @vegaVersion 2.44.0
|
|
2372
|
+
*/
|
|
2373
|
+
"openByDefault": boolean;
|
|
2369
2374
|
}
|
|
2370
2375
|
interface VegaLeftNavLink {
|
|
2371
2376
|
/**
|
|
@@ -7862,6 +7867,11 @@ declare namespace LocalJSX {
|
|
|
7862
7867
|
* @vegaVersion 1.41.0
|
|
7863
7868
|
*/
|
|
7864
7869
|
"onVegaGroupClick"?: (event: VegaLeftNavGroupCustomEvent<string>) => void;
|
|
7870
|
+
/**
|
|
7871
|
+
* Specifies whether the navigation group is expanded by default **
|
|
7872
|
+
* @vegaVersion 2.44.0
|
|
7873
|
+
*/
|
|
7874
|
+
"openByDefault"?: boolean;
|
|
7865
7875
|
}
|
|
7866
7876
|
interface VegaLeftNavLink {
|
|
7867
7877
|
/**
|
|
@@ -41,3 +41,5 @@ export declare const VegaInternalPopoverUpdateTarget: VegaInternalEventID;
|
|
|
41
41
|
export declare const VegaInternalRichTextEditDeleteSelectedNodes: VegaInternalEventID;
|
|
42
42
|
export declare const VegaInternalPaginationPageSizeChange: VegaInternalEventID;
|
|
43
43
|
export declare const VegaInternalPaginationCurrentChange: VegaInternalEventID;
|
|
44
|
+
export declare const VegaInternalPasteEvent: VegaInternalEventID;
|
|
45
|
+
export declare const VegaInternalNestEAHierarchyTreeChange: VegaInternalEventID;
|
package/dist/types/helpers/slimmers/element-appender/element-appender-hierarchy-tree-manager.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { VegaSlimmer } from '../../../vega-slimmer/vega-slimmer-core';
|
|
2
|
+
import { Nullable } from '../../../types/general';
|
|
3
|
+
import { ElementAppenderShowConfig } from '../../ui/element-appender';
|
|
4
|
+
import { ElementAppenderSlimmer } from './element-appender-slimmer';
|
|
5
|
+
/**
|
|
6
|
+
* Dynamically add parents and children of nest element appender while it show or hide.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ElementAppenderHierarchyTreeManager extends VegaSlimmer {
|
|
9
|
+
showConfig: Nullable<ElementAppenderShowConfig>;
|
|
10
|
+
private parentEA;
|
|
11
|
+
private childrenEA;
|
|
12
|
+
private currentEA;
|
|
13
|
+
/**
|
|
14
|
+
* Listen current element appender did load.
|
|
15
|
+
*/
|
|
16
|
+
componentDidLoad(): void;
|
|
17
|
+
constructor(currentEA: ElementAppenderSlimmer);
|
|
18
|
+
/**
|
|
19
|
+
* Listen current element appender show.
|
|
20
|
+
*/
|
|
21
|
+
onShow(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Listen current element appender hide.
|
|
24
|
+
*/
|
|
25
|
+
onHide(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get current parent of element appender.
|
|
28
|
+
*
|
|
29
|
+
* @returns {Nullable<ElementAppenderSlimmer>} - parent.
|
|
30
|
+
*/
|
|
31
|
+
getParent(): Nullable<ElementAppenderSlimmer>;
|
|
32
|
+
/**
|
|
33
|
+
* Get current children of element appender.
|
|
34
|
+
*
|
|
35
|
+
* @returns {ElementAppenderSlimmer[]} - children.
|
|
36
|
+
*/
|
|
37
|
+
getChildren(): ElementAppenderSlimmer[];
|
|
38
|
+
/**
|
|
39
|
+
* While current element appender show or hide we should notify nest element appender to add or remove chain.
|
|
40
|
+
*
|
|
41
|
+
* @param {NestEANotifyType} type - Notify type.
|
|
42
|
+
*/
|
|
43
|
+
private notify;
|
|
44
|
+
/**
|
|
45
|
+
* Add a change manager to observer the nest element appender show or hide.
|
|
46
|
+
*/
|
|
47
|
+
private register;
|
|
48
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VegaSlimmer } from '../../../vega-slimmer/vega-slimmer-core';
|
|
2
2
|
import { ElementAppender, ElementAppenderShowConfig } from '../../ui/element-appender';
|
|
3
3
|
import { Nullable } from '../../../types/general';
|
|
4
|
+
import { ElementAppenderHierarchyTreeManager } from './element-appender-hierarchy-tree-manager';
|
|
4
5
|
declare type ShowConfigFactoryType = () => ElementAppenderShowConfig;
|
|
5
6
|
/**
|
|
6
7
|
* - click: means the dropdown show/hide by click, it also listen global area click. example: VegaPopover
|
|
@@ -13,6 +14,7 @@ declare type GetTriggerType = () => TriggerType;
|
|
|
13
14
|
declare type DisableInteractiveGetter = () => boolean;
|
|
14
15
|
export declare class ElementAppenderSlimmer extends VegaSlimmer {
|
|
15
16
|
private static readonly DELAY_HIDE_TIME;
|
|
17
|
+
protected hierarchyTreeManager: ElementAppenderHierarchyTreeManager;
|
|
16
18
|
private showConfigFactory;
|
|
17
19
|
private getTrigger;
|
|
18
20
|
private isDropdownShowName;
|
|
@@ -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'
|
|
@@ -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-f0e9c75e.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-02603c02.js";export{G as GridColumns,a as GridRows}from"./p-d2e11032.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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{L as e}from"./p-6e1ab235.js";import{C as t}from"./p-2d0d575f.js";import{U as a}from"./p-a247e073.js";import{I as n,c as r}from"./p-37b05e0b.js";const i={"This field is required":"This field is required","The minimum input value is {0}":"The minimum input value is {0}","The maximum input value is {0}":"The maximum input value is {0}","The end value should be greater than the start value":"The end value should be greater than the start value","The end date should be later than start date":"The end date should be later than start date","Credit card number is invalid":"Credit card number is invalid","Please enter the correct email format.":"Please enter the correct email format.","The maximum input length is {0}":"The maximum input length is {0}","The start date should be later than {0}":"The start date should be later than {0}","The start date should be earlier than {0}":"The start date should be earlier than {0}","The end date should be earlier than {0}":"The end date should be earlier than {0}","The date should be later than {0}":"The date should be later than {0}","The date should be earlier than {0}":"The date should be earlier than {0}","The minimum input length is {0}":"The minimum input length is {0}","The end time should be later than start time":"The end time should be later than start time","Phone number is not valid":"Phone number is not valid","Phone number is valid but it belongs to country {0}, not country {1}":"Phone number is valid but it belongs to country {0}, not country {1}",Viewing:"Viewing",Show:"Show","Go To":"Go To","Viewing {0}-{1} of {2}":"Viewing {0}-{1} of {2}","Viewing [{0}-{1}] of {2}":"Viewing [{0}-{1}] of {2}","Show [{0} items / page]":"Show [{0} items / page]","Items Per Page":"Items Per Page",Upload:"Upload",Clear:"Clear",Today:"Today",Day:"Day",Week:"Week",Month:"Month",Sun:"Sun",Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat","Sun-short":"S","Mon-short":"M","Tue-short":"T","Wed-short":"W","Thu-short":"T","Fri-short":"F","Sat-short":"S",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December","All Day":"All Day","Select or drop your file here":"Select or drop your file here","Please sign here":"Please sign here","Clear Signature":"Clear Signature","Start Date":"Start Date","End Date":"End Date","Please select":"Please select","No options":"No options","No results found":"No results found",Minimum:"Minimum",Maximum:"Maximum","Select Time":"Select Time","Start Time":"Start Time","End Time":"End Time","There is no data to display":"There is no data to display"};class o{constructor(){this.resources={en:i},this._currentLanguage="en"}get currentLanguage(){return this._currentLanguage}init({resources:n,language:r}){n&&Object.keys(n).length>0?this.resources=n:(e.warn('Resources are empty. Falling back to default language "en".'),this.resources={en:i}),r&&r in this.resources?this._currentLanguage=r:(e.warn(`Language "${r}" not found in resources. Falling back to default language "en".`),this._currentLanguage="en"),t.notify(a,{})}changeLanguage(n){this.resources[n]?(this._currentLanguage=n,t.notify(a,{})):e.warn(`Language "${n}" not found in resources.`)}t(e,...t){return t.reduce(((e,t,a)=>e.replace(new RegExp(`\\{${a}\\}`,"g"),String(t))),this.resources[this._currentLanguage][e]||i[e]||e)}registerComponent(e){const t=o.connectedComponents.get(e.tagName);t?t.add(e):o.connectedComponents.set(e.tagName,new Set([e]))}unRegisterComponent(e){const t=o.connectedComponents.get(e.tagName);t&&t.delete(e)}getConnectedComponents(){return o.connectedComponents}tWithPreservedBlocks(e,t=/(\[[^\]]*\])/g,...a){return this.t(e,...a).split(t).map((e=>{const a=t.test(e);return{content:a?e.substring(1,e.length-1):e,isPreserved:a}}))}}o.connectedComponents=new Map;const s=new o,l=[{payloadKey:"IS_INIT_METHOD_CALLED",payloadDescription:"Indicate if the method load of public API VegaTranslation.init is called",canAccept:(e,t)=>"TranslationController"===e&&"init"===t,payloadValue:()=>!0},{payloadKey:"IS_CHANGE_LANGUAGE_METHOD_CALLED",payloadDescription:"Indicate if the method load of public API VegaTranslation.changeLanguage is called",canAccept:(e,t)=>"TranslationController"===e&&"changeLanguage"===t,payloadValue:()=>!0}];class u{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=r(u,["init","changeLanguage"],l)}get currentLanguage(){return s.currentLanguage}init(e){s.init(e)}changeLanguage(e){s.changeLanguage(e)}}!function(e,t,a,n){var r,i=arguments.length,o=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,a):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(i<3?r(o):i>3?r(t,a,o):r(t,a))||o);i>3&&o&&Object.defineProperty(t,a,o)}([n()],u.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const h=new u;export{s as V,h as a,i as s}
|
|
@@ -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-cd53bde4.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-02603c02.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 x=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(x,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()],x.prototype,"globalSlimmers",void 0),b([d()],x.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),b([d()],x.prototype,"formFieldController",void 0),b([d()],x.prototype,"changeEventEmitter",void 0),x.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{x as vega_toggle_switch}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,r as t,c as i,H as a,g as n}from"./p-1c298d5a.js";import{s as o}from"./p-9b797118.js";import{n as s,c as r}from"./p-262ec334.js";import{D as g}from"./p-59c9de55.js";import{v as p,A as l,f as h,a as c,K as m}from"./p-c8408c13.js";import{a as f}from"./p-bf953152.js";import{C as u}from"./p-179887da.js";import{c as v}from"./p-c8f914d2.js";import{c as d,M as b,V as x,I as w}from"./p-6e1ab235.js";import{V as S,I as y}from"./p-4387d550.js";import{T as C}from"./p-12a10bdf.js";import{R as z}from"./p-d2e11032.js";import{P as j,g as P}from"./p-c0291e2e.js";import{j as O,k}from"./p-e06361df.js";import"./p-5f377954.js";import"./p-f1e0e7d4.js";import{F as I}from"./p-1e940ce8.js";import"./p-01d4c679.js";import"./p-cc63e827.js";import"./p-0fd6c35b.js";import"./p-02603c02.js";import"./p-2d0d575f.js";import"./p-619fdde5.js";import"./p-6a334573.js";import"./p-b1f65b13.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-3a0a4d15.js";import"./p-d884c644.js";import"./p-0c667d6a.js";import"./p-3647d61d.js";import"./p-37b05e0b.js";import"./p-7a40e033.js";import"./p-112455b1.js";import"./p-a247e073.js";const M=({pageSize:t,current:i,total:a,translationSlimmer:n})=>{const o=a>0?t*(i-1)+1:0,s=Math.min(i*t,a);return e("vega-field-label",{label:n.t("Viewing {0}-{1} of {2}",o,s,a)})},L=({onChange:t,pageCount:i,translationSlimmer:a})=>{let n;const o=()=>{if(n.value){const e=s(r(n.value,1),1,i);t(e),n.value=""}},h=e=>{e.stopPropagation()};return e("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},e("vega-field-label",{label:a.t("Go To")}),e("vega-form",{ref:e=>{g.addUniqueObserverToNode(e,p,o)}},e("vega-input",{"data-vega-form":"paginationGoTo",type:"number",size:"small",showClearIcon:!1,style:{width:"60px"},maskConfig:{type:"number",options:{allowNegative:!1,precision:0}},onVegaChange:h,onChange:h,ref:e=>{n=e,g.addUniqueObserverToNode(e,l,o)}})))},E=({pageSize:t,pageSizeSelectorOptions:i,dropdownProps:a,onChange:n,translationSlimmer:o})=>{const s=i.sort(((e,t)=>e-t)),r=e=>{const t=Number(e.detail);n(t)};return e("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},e("vega-field-label",{label:o.t("Show")}),e("div",null,e("vega-input-select",{size:"small",source:s.map((e=>({id:e.toString(),displayName:e.toString()}))),value:t.toString(),placeholder:"Page Size",vegaDropdownProps:Object.assign({matchTargetWidth:!1,searchable:!1},a),ref:e=>{g.addUniqueObserverToNode(e,h,r)}})))},R=({total:t,current:i,onChange:a,pageCount:n})=>{const o=t=>{const n=i!==t;return e("li",{key:t,class:f(["vega-pagination-item",i===t?"active":""])},e("button",{onClick:()=>n&&a(t)},t))},s=(t,i,a)=>e("li",{class:f(["vega-pagination-button",i&&"disabled"])},e("vega-button-circle",{variant:"icon-only",icon:t,iconColor:"text-link",size:"small",disabled:i,ref:e=>{g.addUniqueObserverToNode(e,c,a)}}));return e("ul",{class:"vega-pagination"},s("chevron-left",0===t||1===i,(()=>{a(i-1)})),0===t?[o(1)]:((e,t,i=7)=>{if(i<7)throw new Error("Must allow at least 7 pager items");if(i%2==0)throw new Error("Must allow odd number of pager items");if(t<i)return Array(t).fill(0).map(((e,t)=>t+1));const a=Math.max(1,Math.min(t-i+1,e-Math.floor(i/2))),n=new Array(i);for(let e=0;e<i;e+=1)n[e]=e+a;return Number(n[0])>1&&(n[0]=1,n[1]="..."),Number(n[n.length-1])<=t-1&&(n[n.length-1]=t,n[n.length-2]="..."),n})(i,n).map((t=>"string"==typeof t?e("li",{class:"vega-pagination-item pager-ellipsis"},"..."):o(t))),s("chevron-right",0===t||i===n,(()=>{a(i+1)})))};var T=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class N extends x{registerPaginationPageSizeChangeObserver(){g.addUniqueObserverToNode(this.host,O,(e=>{this.pageSize=Number(e.detail)}))}unregisterPaginationPageSizeChangeObserver(){g.removeUniqueObserverFromNode(this.host,O)}}T([d()],N.prototype,"host",void 0),T([d({writable:!0})],N.prototype,"pageSize",void 0),T([b("connectedCallback")],N.prototype,"registerPaginationPageSizeChangeObserver",null),T([b("disconnectedCallback")],N.prototype,"unregisterPaginationPageSizeChangeObserver",null);var _=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class A extends x{registerPaginationCurrentChangeObserver(){g.addUniqueObserverToNode(this.host,k,(e=>{this.current=Number(e.detail)}))}unregisterPaginationCurrentChangeObserver(){g.removeUniqueObserverFromNode(this.host,k)}}_([d()],A.prototype,"host",void 0),_([d({writable:!0})],A.prototype,"current",void 0),_([b("connectedCallback")],A.prototype,"registerPaginationCurrentChangeObserver",null),_([b("disconnectedCallback")],A.prototype,"unregisterPaginationCurrentChangeObserver",null);var V=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class B extends j{constructor(){super({callback:()=>{this.calculatePaginationLayout()}}),this.calculatePaginationLayout=()=>{if("vertical"===this.currentLayout)this.host.classList.add("vega-pagination-vertical"),this.host.classList.remove("vega-pagination-horizontal");else{this.host.classList.remove("vega-pagination-vertical"),this.host.classList.add("vega-pagination-horizontal");const e=this.host.offsetHeight;Array.from(this.host.shadowRoot.children).filter((e=>"VEGA-FLEX"===e.tagName)).every((t=>e>t.offsetHeight))&&(this.host.classList.add("vega-pagination-vertical"),this.host.classList.remove("vega-pagination-horizontal"))}}}componentWillLoad(){this.setCurrentLayout()}watchCurrentBreakpoint(){this.setCurrentLayout()}watchLayout(){this.setCurrentLayout(),this.calculatePaginationLayout()}setCurrentLayout(){this.currentLayout=z.formatCustom(this.layout)}}V([d()],B.prototype,"host",void 0),V([d()],B.prototype,"layout",void 0),V([b("componentWillLoad")],B.prototype,"componentWillLoad",null),V([b("watchCurrentBreakpoint")],B.prototype,"watchCurrentBreakpoint",null),V([b("watchLayout")],B.prototype,"watchLayout",null);var W=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};const G=class{constructor(a){t(this,a),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaPageSizeChange=i(this,"vegaPageSizeChange",7),this.pageSizeChange=i(this,"pageSizeChange",7),this.globalSlimmers={},this.translationSlimmer=new C,this.childEventPrevent=new u([p],(()=>this.host)),this.childValueChangePrevent=new u([h],(()=>this.host),!0),this.vegaChangeEventEmitter=v(G,h),this.vegaPageSizeChangeEventEmitter=v(G,m),this.vegaComponentUsageRuntimeMetricsSlimmer=new S,this.vegaPaginationPageSizeObserverController=new N,this.vegaPaginationCurrentPageObserverController=new A,this.breakpointPageResizeObserverSlimmer=new j,this.vegaPaginationLayoutController=new B,this.vegaPaginationItemTypes=["currentPageLabel","pageSizeSelector","pageSelector","goTo","pageSelectorMobile","pageSizeSelectorMobile","pageSelectorMobile_goTo","pageSizeSelectorMobile_currentPageLabel"],this.currentBreakpoint=P(),this.pageCount=0,this.current=1,this.total=0,this.pageSize=10,this.extensions=I.isEnabled("VEGA_PAGINATION.ENABLE_EXTENSIONS_RESPONSIVE_DEFAULT_VALUE")?{default:[["pageSizeSelectorMobile_currentPageLabel"],["pageSelectorMobile_goTo"]],M:[["pageSelector"]]}:[["pageSelector"]],this.layout="horizontal",this.pageSizeSelectorOptions=[10,20,50,100],this.renderPaginationItemsWrapper=t=>e("vega-flex",{gap:{default:"size-4",M:"size-24"},flexWrap:"wrap",alignItems:"center",justifyContent:"center",key:this.generateWrapperKey(t)},t.map((t=>e("div",{key:t},this.renderPaginationItem(t))))),this.renderPaginationItem=t=>{switch(t){case"currentPageLabel":return e(M,{total:this.total,current:this.current,pageSize:this.pageSize,translationSlimmer:this.translationSlimmer});case"pageSizeSelector":{const t=this.pageSizeSelectorOptions.includes(this.pageSize)?this.pageSizeSelectorOptions:[...this.pageSizeSelectorOptions,this.pageSize];return e(E,{pageSize:this.pageSize,pageSizeSelectorOptions:t,dropdownProps:this.dropdownProps,onChange:this.onPageSizeSelectorChange,translationSlimmer:this.translationSlimmer})}case"pageSelector":return e(R,{current:this.current,total:this.total,onChange:this.onPageSelectorChange,pageCount:this.pageCount});case"goTo":return e(L,{onChange:this.handlePaginationGoToChange,pageCount:this.pageCount,translationSlimmer:this.translationSlimmer});case"pageSelectorMobile":case"pageSelectorMobile_goTo":return e("vega-pagination-page-selector-mobile",{type:t,pageCount:this.pageCount,current:this.current,total:this.total});case"pageSizeSelectorMobile":case"pageSizeSelectorMobile_currentPageLabel":return e("vega-pagination-page-size-selector-mobile",{type:t,pageSize:this.pageSize,current:this.current,total:this.total,pageSizeSelectorOptions:this.pageSizeSelectorOptions,dropdownProps:this.dropdownProps})}},this.handlePaginationGoToChange=e=>{this.current=e},this.onPageSizeSelectorChange=e=>{this.pageSize=e},this.calculatePages=()=>this.total?Math.floor((this.total-1)/this.pageSize)+1:0,this.onPageSelectorChange=e=>{this.current=e},this.removeDuplicateItems=e=>{const t=[...this.vegaPaginationItemTypes];return[...e].map((e=>e.filter(((i,a)=>{const n=t.indexOf(i);return n>=0?(t.splice(n,1),!0):(e.splice(a,1),!1)})))).filter((e=>e.length>0))},this.generateWrapperKey=e=>e.map(String).reduce(((e,t)=>`${e}-${t}`)),this.currentValueGuard=()=>{0===this.pageCount?this.current=1:this.current>this.pageCount&&(this.current=this.pageCount)}}watchCurrentBreakpoint(){}watchPageCount(){this.currentValueGuard()}watchCurrent(){this.currentValueGuard(),this.vegaChangeEventEmitter.emit(this.current)}watchTotal(){this.pageCount=this.calculatePages()}watchPageSize(){this.vegaPageSizeChangeEventEmitter.emit(this.pageSize),this.pageCount=this.calculatePages()}watchLayout(){}componentWillLoad(){this.pageCount=this.calculatePages(),this.currentValueGuard(),this.pageSizeSelectorOptions.includes(this.pageSize)||(this.pageSizeSelectorOptions=[...this.pageSizeSelectorOptions,this.pageSize])}render(){const t=z.formatCustom(this.extensions);return o(e(a,null,this.removeDuplicateItems(t).map(this.renderPaginationItemsWrapper)),this.host)}get host(){return n(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],pageCount:["watchPageCount"],current:["watchCurrent"],total:["watchTotal"],pageSize:["watchPageSize"],layout:["watchLayout"]}}};W([y()],G.prototype,"globalSlimmers",void 0),W([w()],G.prototype,"translationSlimmer",void 0),W([w()],G.prototype,"childEventPrevent",void 0),W([w()],G.prototype,"childValueChangePrevent",void 0),W([w()],G.prototype,"vegaChangeEventEmitter",void 0),W([w()],G.prototype,"vegaPageSizeChangeEventEmitter",void 0),W([w()],G.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),W([w()],G.prototype,"vegaPaginationPageSizeObserverController",void 0),W([w()],G.prototype,"vegaPaginationCurrentPageObserverController",void 0),W([w()],G.prototype,"breakpointPageResizeObserverSlimmer",void 0),W([w()],G.prototype,"vegaPaginationLayoutController",void 0),G.style=':host{display:flex;align-items:center;line-height:normal;flex-wrap:wrap}:host(.vega-pagination-horizontal){flex-direction:row;justify-content:space-between}:host(.vega-pagination-vertical){flex-direction:column;gap:16px;justify-content:center}@media (min-width: 320px){:host(.vega-pagination-horizontal){gap:4px}}@media (min-width: 768px){:host(.vega-pagination-horizontal){gap:24px}}.vega-pagination{display:flex;padding:0px;margin:0px}.vega-pagination .vega-pagination-item{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item button{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px;outline:2px solid transparent;outline-offset:2px;width:100%;height:100%;cursor:pointer;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item.pager-ellipsis{cursor:default}.vega-pagination .vega-pagination-item:not(.pager-ellipsis):not(:active):hover{text-decoration:underline;text-underline-offset:2px}.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.vega-pagination .vega-pagination-item button:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25));border-radius:9999px}.vega-pagination .vega-pagination-button{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}';export{G as vega_pagination}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as r,h as e,H as a,g as o}from"./p-1c298d5a.js";import{s as i}from"./p-9b797118.js";import{i as n}from"./p-bbbc0126.js";import{C as c}from"./p-2d0d575f.js";import{F as v,a as s}from"./p-a247e073.js";import{I as l}from"./p-6e1ab235.js";import{V as b,I as d}from"./p-4387d550.js";import{c as g}from"./p-c8f914d2.js";import{a as p}from"./p-c8408c13.js";import{C as x}from"./p-de2e3383.js";import"./p-b1f65b13.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-3a0a4d15.js";import"./p-d884c644.js";import"./p-90ae575e.js";import"./p-c0291e2e.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-3647d61d.js";import"./p-5f377954.js";import"./p-f1e0e7d4.js";import"./p-37b05e0b.js";import"./p-6a334573.js";import"./p-bf953152.js";import"./p-619fdde5.js";import"./p-03b8af98.js";import"./p-7a40e033.js";import"./p-112455b1.js";import"./p-9060b003.js";import"./p-0eed617a.js";import"./p-cc63e827.js";import"./p-0fd6c35b.js";import"./p-d920b18c.js";import"./p-2205ee4c.js";import"./p-59c9de55.js";const h=[{payloadKey:"VARIANT_IS_PRIMARY",payloadDescription:"The circular button is rendered with the bg-action background color, which typically signifies a primary or important action",payloadValue:t=>"primary"===t.variant},{payloadKey:"VARIANT_IS_SECONDARY",payloadDescription:"The circular button is rendered with a transparent background and an action border color. This variant is often used for secondary or less prominent actions",payloadValue:t=>"secondary"===t.variant},{payloadKey:"VARIANT_IS_ICON_ONLY",payloadDescription:"The circular button is rendered with an icon displayed in the default state, and the circle background appears when hovering over the button",payloadValue:t=>"icon-only"===t.variant}];var u=function(t,r,e,a){var o,i=arguments.length,n=i<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(n=(i<3?o(n):i>3?o(r,e,n):o(r,e))||n);return i>3&&n&&Object.defineProperty(r,e,n),n};const y=class{constructor(e){t(this,e),this.vegaClick=r(this,"vegaClick",7),this.click=r(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=g(y,p),this.eventPrevent=new x([p],(()=>this.host),{useCapture:!0,customPreventHandle:t=>{this.disabled&&t.stopImmediatePropagation()}}),this.vegaComponentUsageRuntimeMetricsSlimmer=new b(h),this.size="default",this.variant="primary",this.disabled=!1,this.danger=!1,this.type="button",this.iconColor="text-primary",this.showTooltip=!0,this.handleClick=t=>{this.disabled?t.preventDefault():(["submit","reset"].includes(this.type)&&c.notify("submit"===this.type?v:s,{host:this.host}),this.clickEventEmitter.emit(void 0,t))}}componentWillLoad(){this.host.innerHTML=""}render(){var t;return i(e(a,null,e("vega-tooltip",{text:this.label,trigger:this.label&&this.showTooltip&&!this.disabled?"hover":"none",disableInteractive:null===(t=this.tooltip)||void 0===t?void 0:t.disableInteractive},this.renderButton())),this.host)}renderButton(){var t;return e("button",{type:this.type,"aria-label":(null===(t=this.label)||void 0===t?void 0:t.trim())||"No label defined",class:{[`vega-button-circle-size-${this.size}`]:!0,[`vega-button-circle-variant-${this.variant}`]:!0,"vega-button-circle-danger":this.danger,"vega-button-circle-disabled":this.disabled,[`${n(this.iconColor)}`]:"icon-only"==this.variant},onClick:this.handleClick,disabled:this.disabled,part:"button"},this.renderContent())}renderContent(){return e("vega-icon",{icon:this.icon,size:this.getIconSize(this.size),part:"icon"})}getIconSize(t){switch(t){case"large":return"size-24";case"extra-small":return"size-12";default:return"size-16"}}get host(){return o(this)}};u([d()],y.prototype,"globalSlimmers",void 0),u([l()],y.prototype,"clickEventEmitter",void 0),u([l()],y.prototype,"eventPrevent",void 0),u([l()],y.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),y.style=":host(.v-text-primary),.v-text-primary{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.v-text-secondary),.v-text-secondary{color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}:host(.v-text-inverted-primary),.v-text-inverted-primary{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host(.v-text-inverted-secondary),.v-text-inverted-secondary{color:rgba(var(--v-text-inverted-secondary, 188, 186, 213, 1))}:host(.v-text-black),.v-text-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host(.v-text-white),.v-text-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host(.v-text-brand),.v-text-brand{color:rgba(var(--v-text-brand, 51, 57, 61, 1))}:host(.v-text-danger-link),.v-text-danger-link{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}:host(.v-text-danger-link-hover),.v-text-danger-link-hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}:host(.v-text-danger-link-active),.v-text-danger-link-active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}:host(.v-text-danger-link-focus),.v-text-danger-link-focus{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}:host(.v-text-danger-link-visited),.v-text-danger-link-visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}:host(.v-text-disabled),.v-text-disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.v-text-error),.v-text-error{color:rgba(var(--v-text-error, 189, 41, 71, 1))}:host(.v-text-input-disabled),.v-text-input-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}:host(.v-text-input-placeholder),.v-text-input-placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host(.v-text-link),.v-text-link{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host(.v-text-link-hover),.v-text-link-hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host(.v-text-link-active),.v-text-link-active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host(.v-text-link-focus),.v-text-link-focus{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}:host(.v-text-link-visited),.v-text-link-visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}:host(.v-text-on-action),.v-text-on-action{color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.v-text-on-danger),.v-text-on-danger{color:rgba(var(--v-text-on-danger, 252, 252, 252, 1))}:host(.v-text-on-disabled),.v-text-on-disabled{color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}:host(.v-text-sidebar-link),.v-text-sidebar-link{color:rgba(var(--v-text-sidebar-link, 188, 186, 213, 1))}:host(.v-text-sidebar-link-hover),.v-text-sidebar-link-hover{color:rgba(var(--v-text-sidebar-link-hover, 18, 18, 39, 1))}:host(.v-text-sidebar-link-selected),.v-text-sidebar-link-selected{color:rgba(var(--v-text-sidebar-link-selected, 252, 252, 252, 1))}:host(.v-text-site-footer-link),.v-text-site-footer-link{color:rgba(var(--v-text-site-footer-link, 171, 198, 216, 1))}:host(.v-text-site-footer-link-hover),.v-text-site-footer-link-hover{color:rgba(var(--v-text-site-footer-link-hover, 199, 217, 229, 1))}:host(.v-text-site-footer-link-active),.v-text-site-footer-link-active{color:rgba(var(--v-text-site-footer-link-active, 143, 179, 203, 1))}:host(.v-text-success),.v-text-success{color:rgba(var(--v-text-success, 1, 128, 31, 1))}:host(.v-text-inverted-success),.v-text-inverted-success{color:rgba(var(--v-text-inverted-success, 89, 217, 119, 1))}:host(.v-text-accent1-primary),.v-text-accent1-primary{color:rgba(var(--v-text-accent1-primary, 115, 230, 220, 1))}:host(.v-text-accent2-primary),.v-text-accent2-primary{color:rgba(var(--v-text-accent2-primary, 128, 107, 255, 1))}:host(.v-text-accent3-primary),.v-text-accent3-primary{color:rgba(var(--v-text-accent3-primary, 255, 220, 131, 1))}:host(.v-text-accent4-primary),.v-text-accent4-primary{color:rgba(var(--v-text-accent4-primary, 255, 149, 113, 1))}:host(.v-text-accent5-primary),.v-text-accent5-primary{color:rgba(var(--v-text-accent5-primary, 0, 187, 255, 1))}:host(.v-text-accent6-primary),.v-text-accent6-primary{color:rgba(var(--v-text-accent6-primary, 240, 52, 91, 1))}:host(.v-text-accent7-primary),.v-text-accent7-primary{color:rgba(var(--v-text-accent7-primary, 37, 159, 159, 1))}:host(.v-text-accent8-primary),.v-text-accent8-primary{color:rgba(var(--v-text-accent8-primary, 86, 61, 130, 1))}:host(.v-text-accent9-primary),.v-text-accent9-primary{color:rgba(var(--v-text-accent9-primary, 255, 191, 63, 1))}:host(.v-text-accent10-primary),.v-text-accent10-primary{color:rgba(var(--v-text-accent10-primary, 237, 122, 35, 1))}:host{display:inline-block;border-radius:9999px}:host vega-tooltip{border-radius:9999px}button{border-radius:9999px;cursor:pointer;outline:2px solid transparent;outline-offset:2px;line-height:normal}button:focus{outline:none}.vega-button-circle-size-extra-small{width:24px;height:24px;padding:6px}.vega-button-circle-size-extra-small vega-icon{vertical-align:top}.vega-button-circle-size-small{width:32px;height:32px;padding:8px}.vega-button-circle-size-default{width:40px;height:40px;padding:12px}.vega-button-circle-size-large{width:56px;height:56px;padding:16px}.vega-button-circle-size-extra-small.vega-button-circle-variant-secondary{padding:4px}.vega-button-circle-size-small.vega-button-circle-variant-secondary{padding:6px}.vega-button-circle-size-default.vega-button-circle-variant-secondary{padding:10px}.vega-button-circle-size-large.vega-button-circle-variant-secondary{padding:14px}.vega-button-circle-variant-primary{border-width:0px;background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-button-circle-variant-primary:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.vega-button-circle-variant-primary:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.vega-button-circle-variant-primary:focus-visible{background-color:rgba(var(--v-bg-action-focus, 19, 98, 226, 1));box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25))}.vega-button-circle-variant-secondary{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-link, 19, 98, 226, 1))}.vega-button-circle-variant-secondary:hover{border:2px solid rgba(var(--v-border-secondary-btn-hover, 4, 112, 236, 1));background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1));color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}.vega-button-circle-variant-secondary:active{border:2px solid rgba(var(--v-border-secondary-btn-active, 29, 65, 195, 1));color:rgba(var(--v-text-link-active, 29, 65, 195, 1));background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1))}.vega-button-circle-variant-secondary:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25))}.vega-button-circle-variant-icon-only{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px}.vega-button-circle-variant-icon-only:hover{background-color:rgba(var(--v-bg-action-tertiary-hover, 4, 4, 28, 0.05))}.vega-button-circle-variant-icon-only:active{background-color:rgba(var(--v-bg-action-tertiary-active, 4, 4, 28, 0.1))}.vega-button-circle-variant-icon-only:focus-visible{background-color:rgba(var(--v-bg-action-tertiary, 0, 0, 0, 0));box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25))}.vega-button-circle-variant-primary.vega-button-circle-danger{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}.vega-button-circle-variant-primary.vega-button-circle-danger:hover{background-color:rgba(var(--v-bg-danger-hover, 233, 71, 104, 1))}.vega-button-circle-variant-primary.vega-button-circle-danger:active{background-color:rgba(var(--v-bg-danger-active, 230, 50, 87, 1))}.vega-button-circle-variant-primary.vega-button-circle-danger:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-danger-focus, 230, 50, 87, 0.25))}.vega-button-circle-variant-secondary.vega-button-circle-danger{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1));color:rgba(var(--v-text-danger-link, 230, 50, 87, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1))}.vega-button-circle-variant-secondary.vega-button-circle-danger:hover{border:2px solid rgba(var(--v-border-secondary-danger-btn-hover, 255, 87, 114, 1));background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}.vega-button-circle-variant-secondary.vega-button-circle-danger:active{border:2px solid rgba(var(--v-border-secondary-danger-btn-active, 189, 41, 71, 1));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1));background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2))}.vega-button-circle-variant-secondary.vega-button-circle-danger:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-danger-focus, 230, 50, 87, 0.25))}.vega-button-circle-variant-icon-only.vega-button-circle-danger{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-danger:hover{background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-danger:active{background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-danger:focus-visible{background-color:rgba(var(--v-bg-danger-tertiary, 0, 0, 0, 0));box-shadow:0 0 0 4px rgba(var(--v-ring-action-danger-focus, 230, 50, 87, 0.25))}.vega-button-circle-disabled{pointer-events:none}.vega-button-circle-disabled:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.vega-button-circle-variant-primary.vega-button-circle-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}.vega-button-circle-variant-secondary.vega-button-circle-disabled{background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border:2px solid rgba(var(--v-border-secondary-btn-disabled, 176, 180, 181, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-disabled{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border-width:0px}.vega-button-circle-disabled:focus{box-shadow:unset !important}";export{y as vega_button_circle}
|
|
1
|
+
import{r as t,c as r,h as e,H as a,g as o}from"./p-1c298d5a.js";import{s as i}from"./p-9b797118.js";import{i as c}from"./p-f0e9c75e.js";import{C as n}from"./p-2d0d575f.js";import{F as v,a as s}from"./p-a247e073.js";import{I as l}from"./p-6e1ab235.js";import{V as d,I as b}from"./p-4387d550.js";import{c as g}from"./p-c8f914d2.js";import{a as p}from"./p-c8408c13.js";import{C as x}from"./p-179887da.js";import"./p-b1f65b13.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-3a0a4d15.js";import"./p-d884c644.js";import"./p-d2e11032.js";import"./p-c0291e2e.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-3647d61d.js";import"./p-5f377954.js";import"./p-f1e0e7d4.js";import"./p-37b05e0b.js";import"./p-6a334573.js";import"./p-bf953152.js";import"./p-619fdde5.js";import"./p-1e940ce8.js";import"./p-7a40e033.js";import"./p-112455b1.js";import"./p-01d4c679.js";import"./p-e06361df.js";import"./p-cc63e827.js";import"./p-0fd6c35b.js";import"./p-02603c02.js";import"./p-2205ee4c.js";import"./p-59c9de55.js";const h=[{payloadKey:"VARIANT_IS_PRIMARY",payloadDescription:"The circular button is rendered with the bg-action background color, which typically signifies a primary or important action",payloadValue:t=>"primary"===t.variant},{payloadKey:"VARIANT_IS_SECONDARY",payloadDescription:"The circular button is rendered with a transparent background and an action border color. This variant is often used for secondary or less prominent actions",payloadValue:t=>"secondary"===t.variant},{payloadKey:"VARIANT_IS_ICON_ONLY",payloadDescription:"The circular button is rendered with an icon displayed in the default state, and the circle background appears when hovering over the button",payloadValue:t=>"icon-only"===t.variant}];var u=function(t,r,e,a){var o,i=arguments.length,c=i<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,e,a);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(c=(i<3?o(c):i>3?o(r,e,c):o(r,e))||c);return i>3&&c&&Object.defineProperty(r,e,c),c};const y=class{constructor(e){t(this,e),this.vegaClick=r(this,"vegaClick",7),this.click=r(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=g(y,p),this.eventPrevent=new x([p],(()=>this.host),{useCapture:!0,customPreventHandle:t=>{this.disabled&&t.stopImmediatePropagation()}}),this.vegaComponentUsageRuntimeMetricsSlimmer=new d(h),this.size="default",this.variant="primary",this.disabled=!1,this.danger=!1,this.type="button",this.iconColor="text-primary",this.showTooltip=!0,this.handleClick=t=>{this.disabled?t.preventDefault():(["submit","reset"].includes(this.type)&&n.notify("submit"===this.type?v:s,{host:this.host}),this.clickEventEmitter.emit(void 0,t))}}componentWillLoad(){this.host.innerHTML=""}render(){var t;return i(e(a,null,e("vega-tooltip",{text:this.label,trigger:this.label&&this.showTooltip&&!this.disabled?"hover":"none",disableInteractive:null===(t=this.tooltip)||void 0===t?void 0:t.disableInteractive},this.renderButton())),this.host)}renderButton(){var t;return e("button",{type:this.type,"aria-label":(null===(t=this.label)||void 0===t?void 0:t.trim())||"No label defined",class:{[`vega-button-circle-size-${this.size}`]:!0,[`vega-button-circle-variant-${this.variant}`]:!0,"vega-button-circle-danger":this.danger,"vega-button-circle-disabled":this.disabled,[`${c(this.iconColor)}`]:"icon-only"==this.variant},onClick:this.handleClick,disabled:this.disabled,part:"button"},this.renderContent())}renderContent(){return e("vega-icon",{icon:this.icon,size:this.getIconSize(this.size),part:"icon"})}getIconSize(t){switch(t){case"large":return"size-24";case"extra-small":return"size-12";default:return"size-16"}}get host(){return o(this)}};u([b()],y.prototype,"globalSlimmers",void 0),u([l()],y.prototype,"clickEventEmitter",void 0),u([l()],y.prototype,"eventPrevent",void 0),u([l()],y.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),y.style=":host(.v-text-primary),.v-text-primary{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.v-text-secondary),.v-text-secondary{color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}:host(.v-text-inverted-primary),.v-text-inverted-primary{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host(.v-text-inverted-secondary),.v-text-inverted-secondary{color:rgba(var(--v-text-inverted-secondary, 188, 186, 213, 1))}:host(.v-text-black),.v-text-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host(.v-text-white),.v-text-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host(.v-text-brand),.v-text-brand{color:rgba(var(--v-text-brand, 51, 57, 61, 1))}:host(.v-text-danger-link),.v-text-danger-link{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}:host(.v-text-danger-link-hover),.v-text-danger-link-hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}:host(.v-text-danger-link-active),.v-text-danger-link-active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}:host(.v-text-danger-link-focus),.v-text-danger-link-focus{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}:host(.v-text-danger-link-visited),.v-text-danger-link-visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}:host(.v-text-disabled),.v-text-disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.v-text-error),.v-text-error{color:rgba(var(--v-text-error, 189, 41, 71, 1))}:host(.v-text-input-disabled),.v-text-input-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}:host(.v-text-input-placeholder),.v-text-input-placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host(.v-text-link),.v-text-link{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host(.v-text-link-hover),.v-text-link-hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host(.v-text-link-active),.v-text-link-active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host(.v-text-link-focus),.v-text-link-focus{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}:host(.v-text-link-visited),.v-text-link-visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}:host(.v-text-on-action),.v-text-on-action{color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.v-text-on-danger),.v-text-on-danger{color:rgba(var(--v-text-on-danger, 252, 252, 252, 1))}:host(.v-text-on-disabled),.v-text-on-disabled{color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}:host(.v-text-sidebar-link),.v-text-sidebar-link{color:rgba(var(--v-text-sidebar-link, 188, 186, 213, 1))}:host(.v-text-sidebar-link-hover),.v-text-sidebar-link-hover{color:rgba(var(--v-text-sidebar-link-hover, 18, 18, 39, 1))}:host(.v-text-sidebar-link-selected),.v-text-sidebar-link-selected{color:rgba(var(--v-text-sidebar-link-selected, 252, 252, 252, 1))}:host(.v-text-site-footer-link),.v-text-site-footer-link{color:rgba(var(--v-text-site-footer-link, 171, 198, 216, 1))}:host(.v-text-site-footer-link-hover),.v-text-site-footer-link-hover{color:rgba(var(--v-text-site-footer-link-hover, 199, 217, 229, 1))}:host(.v-text-site-footer-link-active),.v-text-site-footer-link-active{color:rgba(var(--v-text-site-footer-link-active, 143, 179, 203, 1))}:host(.v-text-success),.v-text-success{color:rgba(var(--v-text-success, 1, 128, 31, 1))}:host(.v-text-inverted-success),.v-text-inverted-success{color:rgba(var(--v-text-inverted-success, 89, 217, 119, 1))}:host(.v-text-accent1-primary),.v-text-accent1-primary{color:rgba(var(--v-text-accent1-primary, 115, 230, 220, 1))}:host(.v-text-accent2-primary),.v-text-accent2-primary{color:rgba(var(--v-text-accent2-primary, 128, 107, 255, 1))}:host(.v-text-accent3-primary),.v-text-accent3-primary{color:rgba(var(--v-text-accent3-primary, 255, 220, 131, 1))}:host(.v-text-accent4-primary),.v-text-accent4-primary{color:rgba(var(--v-text-accent4-primary, 255, 149, 113, 1))}:host(.v-text-accent5-primary),.v-text-accent5-primary{color:rgba(var(--v-text-accent5-primary, 0, 187, 255, 1))}:host(.v-text-accent6-primary),.v-text-accent6-primary{color:rgba(var(--v-text-accent6-primary, 240, 52, 91, 1))}:host(.v-text-accent7-primary),.v-text-accent7-primary{color:rgba(var(--v-text-accent7-primary, 37, 159, 159, 1))}:host(.v-text-accent8-primary),.v-text-accent8-primary{color:rgba(var(--v-text-accent8-primary, 86, 61, 130, 1))}:host(.v-text-accent9-primary),.v-text-accent9-primary{color:rgba(var(--v-text-accent9-primary, 255, 191, 63, 1))}:host(.v-text-accent10-primary),.v-text-accent10-primary{color:rgba(var(--v-text-accent10-primary, 237, 122, 35, 1))}:host{display:inline-block;border-radius:9999px}:host vega-tooltip{border-radius:9999px}button{border-radius:9999px;cursor:pointer;outline:2px solid transparent;outline-offset:2px;line-height:normal}button:focus{outline:none}.vega-button-circle-size-extra-small{width:24px;height:24px;padding:6px}.vega-button-circle-size-extra-small vega-icon{vertical-align:top}.vega-button-circle-size-small{width:32px;height:32px;padding:8px}.vega-button-circle-size-default{width:40px;height:40px;padding:12px}.vega-button-circle-size-large{width:56px;height:56px;padding:16px}.vega-button-circle-size-extra-small.vega-button-circle-variant-secondary{padding:4px}.vega-button-circle-size-small.vega-button-circle-variant-secondary{padding:6px}.vega-button-circle-size-default.vega-button-circle-variant-secondary{padding:10px}.vega-button-circle-size-large.vega-button-circle-variant-secondary{padding:14px}.vega-button-circle-variant-primary{border-width:0px;background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-button-circle-variant-primary:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.vega-button-circle-variant-primary:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.vega-button-circle-variant-primary:focus-visible{background-color:rgba(var(--v-bg-action-focus, 19, 98, 226, 1));box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25))}.vega-button-circle-variant-secondary{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-link, 19, 98, 226, 1))}.vega-button-circle-variant-secondary:hover{border:2px solid rgba(var(--v-border-secondary-btn-hover, 4, 112, 236, 1));background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1));color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}.vega-button-circle-variant-secondary:active{border:2px solid rgba(var(--v-border-secondary-btn-active, 29, 65, 195, 1));color:rgba(var(--v-text-link-active, 29, 65, 195, 1));background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1))}.vega-button-circle-variant-secondary:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25))}.vega-button-circle-variant-icon-only{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px}.vega-button-circle-variant-icon-only:hover{background-color:rgba(var(--v-bg-action-tertiary-hover, 4, 4, 28, 0.05))}.vega-button-circle-variant-icon-only:active{background-color:rgba(var(--v-bg-action-tertiary-active, 4, 4, 28, 0.1))}.vega-button-circle-variant-icon-only:focus-visible{background-color:rgba(var(--v-bg-action-tertiary, 0, 0, 0, 0));box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25))}.vega-button-circle-variant-primary.vega-button-circle-danger{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}.vega-button-circle-variant-primary.vega-button-circle-danger:hover{background-color:rgba(var(--v-bg-danger-hover, 233, 71, 104, 1))}.vega-button-circle-variant-primary.vega-button-circle-danger:active{background-color:rgba(var(--v-bg-danger-active, 230, 50, 87, 1))}.vega-button-circle-variant-primary.vega-button-circle-danger:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-danger-focus, 230, 50, 87, 0.25))}.vega-button-circle-variant-secondary.vega-button-circle-danger{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1));color:rgba(var(--v-text-danger-link, 230, 50, 87, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1))}.vega-button-circle-variant-secondary.vega-button-circle-danger:hover{border:2px solid rgba(var(--v-border-secondary-danger-btn-hover, 255, 87, 114, 1));background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}.vega-button-circle-variant-secondary.vega-button-circle-danger:active{border:2px solid rgba(var(--v-border-secondary-danger-btn-active, 189, 41, 71, 1));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1));background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2))}.vega-button-circle-variant-secondary.vega-button-circle-danger:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-danger-focus, 230, 50, 87, 0.25))}.vega-button-circle-variant-icon-only.vega-button-circle-danger{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-danger:hover{background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-danger:active{background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-danger:focus-visible{background-color:rgba(var(--v-bg-danger-tertiary, 0, 0, 0, 0));box-shadow:0 0 0 4px rgba(var(--v-ring-action-danger-focus, 230, 50, 87, 0.25))}.vega-button-circle-disabled{pointer-events:none}.vega-button-circle-disabled:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.vega-button-circle-variant-primary.vega-button-circle-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}.vega-button-circle-variant-secondary.vega-button-circle-disabled{background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border:2px solid rgba(var(--v-border-secondary-btn-disabled, 176, 180, 181, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-disabled{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border-width:0px}.vega-button-circle-disabled:focus{box-shadow:unset !important}";export{y as vega_button_circle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,H as e,g as i}from"./p-1c298d5a.js";import{s}from"./p-9b797118.js";import{j as r,f as l,k as d}from"./p-f0e9c75e.js";import{a as n}from"./p-bf953152.js";import{c as h,M as a,V as c,I as p}from"./p-6e1ab235.js";import{V as b,I as m}from"./p-4387d550.js";import{R as v}from"./p-d2e11032.js";import{P as g}from"./p-c0291e2e.js";import{f}from"./p-cda9bca2.js";import"./p-b1f65b13.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-3a0a4d15.js";import"./p-d884c644.js";import"./p-2205ee4c.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-3647d61d.js";import"./p-5f377954.js";import"./p-f1e0e7d4.js";import"./p-37b05e0b.js";import"./p-6a334573.js";import"./p-619fdde5.js";import"./p-c8408c13.js";import"./p-1e940ce8.js";import"./p-7a40e033.js";import"./p-112455b1.js";import"./p-01d4c679.js";import"./p-2d0d575f.js";import"./p-e06361df.js";import"./p-a247e073.js";import"./p-cc63e827.js";import"./p-0fd6c35b.js";import"./p-02603c02.js";var y=function(t,o,e,i){var s,r=arguments.length,l=r<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,o,e,i);else for(var d=t.length-1;d>=0;d--)(s=t[d])&&(l=(r<3?s(l):r>3?s(o,e,l):s(o,e))||l);return r>3&&l&&Object.defineProperty(o,e,l),l};class w extends c{componentWillLoad(){this.appendAllStateStyles()}watchBorder(){this.appendStateStyles(this.border,"border"),this.makeBorderColorAfterBorder()}watchShadow(){this.appendStateStyles(this.shadow,"shadow")}watchBorderColor(){this.appendStateStyles(this.borderColor,"borderColor"),this.makeBorderColorAfterBorder()}watchBackgroundColor(){this.appendStateStyles(this.backgroundColor,"backgroundColor")}appendStateStyles(t,o){var e;if(null===(e=this.host.shadowRoot.querySelector(`style#state-styles-${o}`))||void 0===e||e.remove(),r(t,o)){const e=document.createElement("style");e.setAttribute("id",`state-styles-${o}`),e.innerHTML=r(t,o),this.host.shadowRoot.append(e)}}makeBorderColorAfterBorder(){const t=this.host.shadowRoot.querySelector("style#state-styles-borderColor"),o=this.host.shadowRoot.querySelector("style#state-styles-border");t&&o&&o.after(t)}appendAllStateStyles(){this.appendStateStyles(this.backgroundColor,"backgroundColor"),this.appendStateStyles(this.border,"border"),this.appendStateStyles(this.borderColor,"borderColor"),this.appendStateStyles(this.shadow,"shadow")}}y([h()],w.prototype,"host",void 0),y([h()],w.prototype,"backgroundColor",void 0),y([h()],w.prototype,"borderColor",void 0),y([h()],w.prototype,"border",void 0),y([h()],w.prototype,"shadow",void 0),y([a("componentWillLoad")],w.prototype,"componentWillLoad",null),y([a("watchBorder")],w.prototype,"watchBorder",null),y([a("watchShadow")],w.prototype,"watchShadow",null),y([a("watchBorderColor")],w.prototype,"watchBorderColor",null),y([a("watchBackgroundColor")],w.prototype,"watchBackgroundColor",null);var u=function(t,o,e,i){var s,r=arguments.length,l=r<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,o,e,i);else for(var d=t.length-1;d>=0;d--)(s=t[d])&&(l=(r<3?s(l):r>3?s(o,e,l):s(o,e))||l);return r>3&&l&&Object.defineProperty(o,e,l),l};class j extends c{constructor(){super(...arguments),this.paddingStyleRef=null,this.marginStyleRef=null,this.cornersStyleRef=null}setDefaultStyle(){this.generatePaddingStyle(),this.generateMarginStyle(),this.generateCornersStyle()}generatePaddingStyle(){const t=l(this.padding,"paddingStyle");this.attachStyle("padding",t)}generateMarginStyle(){const t=l(this.margin,"marginStyle");this.attachStyle("margin",t)}generateCornersStyle(){const t=l(this.corners,"cornersStyle");this.attachStyle("corners",t)}attachStyle(t,o){if(o){const e=`${t}StyleRef`,i=this.host.shadowRoot;this[e]||(this[e]=document.createElement("style"),i.appendChild(this[e])),this[e].innerHTML=o}}}u([h()],j.prototype,"host",void 0),u([h()],j.prototype,"padding",void 0),u([h()],j.prototype,"margin",void 0),u([h()],j.prototype,"corners",void 0),u([a("componentWillLoad")],j.prototype,"setDefaultStyle",null),u([a("watchPaddingChange")],j.prototype,"generatePaddingStyle",null),u([a("watchMarginChange")],j.prototype,"generateMarginStyle",null),u([a("watchCornersChange")],j.prototype,"generateCornersStyle",null);var k=function(t,o,e,i){var s,r=arguments.length,l=r<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,o,e,i);else for(var d=t.length-1;d>=0;d--)(s=t[d])&&(l=(r<3?s(l):r>3?s(o,e,l):s(o,e))||l);return r>3&&l&&Object.defineProperty(o,e,l),l};const C=class{constructor(o){t(this,o),this.globalSlimmers={},this.pageResizeSlimmer=new g,this.stateStyleController=new w,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.responsiveStyleController=new j}watchPaddingChange(){}watchMarginChange(){}watchBorder(){}watchShadow(){}watchBorderColor(){}watchBackgroundColor(){}watchCornersChange(){}render(){const t=[l(this.padding,"padding"),l(this.margin,"margin"),l(this.display,"boxDisplay"),l(this.corners,"corners"),d(this.borderStyle),v.formatCustom(this.responsiveClass)],i=Object.assign({width:l(this.width,"widthAndHeight"),height:l(this.height,"widthAndHeight"),minHeight:l(this.minHeight,"widthAndHeight"),maxHeight:l(this.maxHeight,"widthAndHeight"),order:this.order&&`${v.formatCustom(this.order)}`,alignSelf:this.alignSelf&&`${v.formatCustom(this.alignSelf)}`,justifySelf:this.justifySelf&&`${v.formatCustom(this.justifySelf)}`},f(this.flex,this.flexGrow,this.flexShrink,this.flexBasis));return this.gridArea?i.gridArea=`${v.formatCustom(this.gridArea)}`:(i.gridColumn=this.gridColumn&&`${v.formatCustom(this.gridColumn)}`,i.gridRow=this.gridRow&&`${v.formatCustom(this.gridRow)}`),s(o(e,{style:i,class:n(t)},o("slot",null)),this.host)}get host(){return i(this)}static get watchers(){return{padding:["watchPaddingChange"],margin:["watchMarginChange"],border:["watchBorder"],shadow:["watchShadow"],borderColor:["watchBorderColor"],backgroundColor:["watchBackgroundColor"],corners:["watchCornersChange"]}}};k([m()],C.prototype,"globalSlimmers",void 0),k([p()],C.prototype,"pageResizeSlimmer",void 0),k([p()],C.prototype,"stateStyleController",void 0),k([p()],C.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),k([p()],C.prototype,"responsiveStyleController",void 0),C.style=":host(.v-block),.v-block{display:block}:host(.v-inline-block),.v-inline-block{display:inline-block}:host(.v-hidden),.v-hidden{display:none}@media (min-width: 320px){:host(.S\\:v-block),.S\\:v-block{display:block}:host(.S\\:v-inline-block),.S\\:v-inline-block{display:inline-block}:host(.S\\:v-hidden),.S\\:v-hidden{display:none}}@media (min-width: 768px){:host(.M\\:v-block),.M\\:v-block{display:block}:host(.M\\:v-inline-block),.M\\:v-inline-block{display:inline-block}:host(.M\\:v-hidden),.M\\:v-hidden{display:none}}@media (min-width: 1024px){:host(.L\\:v-block),.L\\:v-block{display:block}:host(.L\\:v-inline-block),.L\\:v-inline-block{display:inline-block}:host(.L\\:v-hidden),.L\\:v-hidden{display:none}}@media (min-width: 1440px){:host(.XL\\:v-block),.XL\\:v-block{display:block}:host(.XL\\:v-inline-block),.XL\\:v-inline-block{display:inline-block}:host(.XL\\:v-hidden),.XL\\:v-hidden{display:none}}:host(.v-border-solid),.v-border-solid{border-style:solid}:host(.v-border-dashed),.v-border-dashed{border-style:dashed}:host(.v-border-dotted),.v-border-dotted{border-style:dotted}:host(.v-border-double),.v-border-double{border-style:double}:host(.v-border-none),.v-border-none{border-style:none}:host{display:block}";export{C as vega_box}
|