@prolibu-suite/cobalt-core 0.3.0 → 0.5.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/README.md +3 -3
- package/custom-elements.json +6887 -3484
- package/dist/cjs/co-accordion.cjs.entry.js +4 -4
- package/dist/cjs/co-app-shell.cjs.entry.js +3 -3
- package/dist/cjs/co-autocomplete.cjs.entry.js +38 -73
- package/dist/cjs/co-avatar-group.cjs.entry.js +3 -3
- package/dist/cjs/co-avatar.cjs.entry.js +9 -4
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +4 -4
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +37 -0
- package/dist/cjs/co-breadcrumb.cjs.entry.js +55 -0
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +10 -4
- package/dist/cjs/co-calendar-month.cjs.entry.js +2 -2
- package/dist/cjs/co-calendar_3.cjs.entry.js +50 -15
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/co-checkbox.cjs.entry.js +18 -6
- package/dist/cjs/co-chip_2.cjs.entry.js +485 -0
- package/dist/cjs/co-color-picker.cjs.entry.js +4 -4
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +51 -82
- package/dist/cjs/co-command-search.cjs.entry.js +20 -59
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +73 -17
- package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-drive-card.cjs.entry.js +81 -0
- package/dist/cjs/co-drop-zone.cjs.entry.js +63 -0
- package/dist/cjs/co-empty-state.cjs.entry.js +13 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +3 -3
- package/dist/cjs/co-fab.cjs.entry.js +5 -5
- package/dist/cjs/co-file-field.cjs.entry.js +7 -7
- package/dist/cjs/co-file-type-tile.cjs.entry.js +78 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +23 -7
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +36 -7
- package/dist/cjs/co-json-field.cjs.entry.js +5 -5
- package/dist/cjs/co-lightbox.cjs.entry.js +6 -6
- package/dist/cjs/co-list-footer.cjs.entry.js +2 -2
- package/dist/cjs/co-list-item.cjs.entry.js +5 -5
- package/dist/cjs/co-loader.cjs.entry.js +34 -0
- package/dist/cjs/co-media-thumb.cjs.entry.js +36 -0
- package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +11 -3
- package/dist/cjs/co-menu.cjs.entry.js +3 -3
- package/dist/cjs/co-modal.cjs.entry.js +29 -5
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +5 -5
- package/dist/cjs/{co-loader_2.cjs.entry.js → co-overlay.cjs.entry.js} +2 -32
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +4 -4
- package/dist/cjs/co-popover.cjs.entry.js +12 -3
- package/dist/cjs/co-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +31 -135
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +5 -5
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +2 -2
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +58 -0
- package/dist/cjs/co-select.cjs.entry.js +7 -7
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +10 -8
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +6 -6
- package/dist/cjs/co-tab-group.cjs.entry.js +21 -3
- package/dist/cjs/co-tab.cjs.entry.js +8 -5
- package/dist/cjs/co-tags-field.cjs.entry.js +8 -8
- package/dist/cjs/co-textarea.cjs.entry.js +6 -6
- package/dist/cjs/co-toast.cjs.entry.js +10 -4
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +16 -4
- package/dist/cjs/co-toggle-button.cjs.entry.js +9 -5
- package/dist/cjs/co-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/co-transfer-list.cjs.entry.js +3 -3
- package/dist/cjs/co-video.cjs.entry.js +4 -4
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{fieldChip-CDIMz_Y6.js → fieldChip-D8YJCyQF.js} +1 -1
- package/dist/cjs/{index-5NdsiFjZ.js → index-4y1Dm145.js} +64 -11
- package/dist/cjs/{index-BumlM92r.js → index-DxEFsH_t.js} +69 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{requiredMark-CqMGt1H1.js → requiredMark-B3pKyqYI.js} +1 -1
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-002e5beb.entry.js +1 -0
- package/dist/cobalt/{p-ba90e871.entry.js → p-02c5a9a9.entry.js} +1 -1
- package/dist/cobalt/p-075eed3d.entry.js +1 -0
- package/dist/cobalt/p-0c0621a7.entry.js +1 -0
- package/dist/cobalt/{p-ef7d4ae3.entry.js → p-0d6a562d.entry.js} +1 -1
- package/dist/cobalt/p-0d7536a8.entry.js +1 -0
- package/dist/cobalt/{p-6d1217c3.entry.js → p-13fc9c8a.entry.js} +1 -1
- package/dist/cobalt/{p-afb7e19e.entry.js → p-14d4c5c7.entry.js} +1 -1
- package/dist/cobalt/{p-31ab9a46.entry.js → p-1681ce1d.entry.js} +1 -1
- package/dist/cobalt/{p-93046365.entry.js → p-1726ce07.entry.js} +1 -1
- package/dist/cobalt/p-20ba59a2.entry.js +1 -0
- package/dist/cobalt/p-2d1cbd7f.entry.js +1 -0
- package/dist/cobalt/{p-4871690e.entry.js → p-373cd08e.entry.js} +1 -1
- package/dist/cobalt/{p-37595103.entry.js → p-3f06d373.entry.js} +1 -1
- package/dist/cobalt/p-3f68fd2e.entry.js +1 -0
- package/dist/cobalt/p-47a2dd67.entry.js +1 -0
- package/dist/cobalt/p-495c9b99.entry.js +1 -0
- package/dist/cobalt/p-4a075257.entry.js +1 -0
- package/dist/cobalt/{p-52de17da.entry.js → p-5647ca9d.entry.js} +1 -1
- package/dist/cobalt/{p-1a07c23c.entry.js → p-5b31d45b.entry.js} +1 -1
- package/dist/cobalt/{p-929e647f.entry.js → p-5c3101b5.entry.js} +1 -1
- package/dist/cobalt/{p-8d59f5ad.entry.js → p-5c43d30e.entry.js} +1 -1
- package/dist/cobalt/{p-4504f7b0.entry.js → p-5e9a9caf.entry.js} +1 -1
- package/dist/cobalt/p-5edd0d3f.entry.js +1 -0
- package/dist/cobalt/{p-12e2c2c4.entry.js → p-627d2d1a.entry.js} +1 -1
- package/dist/cobalt/p-6911a034.entry.js +1 -0
- package/dist/cobalt/{p-e53861e4.entry.js → p-6ad1625a.entry.js} +1 -1
- package/dist/cobalt/{p-f4063c41.entry.js → p-70f70e02.entry.js} +1 -1
- package/dist/cobalt/p-73b30ebb.entry.js +1 -0
- package/dist/cobalt/p-771bc8fe.entry.js +1 -0
- package/dist/cobalt/p-7780ddb5.entry.js +1 -0
- package/dist/cobalt/p-77d01b39.entry.js +1 -0
- package/dist/cobalt/p-7FZXeBK4.js +1 -0
- package/dist/cobalt/p-7a3fb93b.entry.js +1 -0
- package/dist/cobalt/{p-0bb55163.entry.js → p-809015dd.entry.js} +1 -1
- package/dist/cobalt/p-8128e84a.entry.js +1 -0
- package/dist/cobalt/p-81cfd951.entry.js +1 -0
- package/dist/cobalt/p-82ce1178.entry.js +1 -0
- package/dist/cobalt/p-85eed52c.entry.js +1 -0
- package/dist/cobalt/p-86d4e016.entry.js +1 -0
- package/dist/cobalt/{p-cb235aa7.entry.js → p-86e60cfa.entry.js} +1 -1
- package/dist/cobalt/p-8a9ed2da.entry.js +1 -0
- package/dist/cobalt/{p-8e1dc062.entry.js → p-8dfb6886.entry.js} +1 -1
- package/dist/cobalt/{p-2f86e1e0.entry.js → p-8e823c15.entry.js} +1 -1
- package/dist/cobalt/p-9a587867.entry.js +1 -0
- package/dist/cobalt/p-9c6ca902.entry.js +1 -0
- package/dist/cobalt/{p-279bf91c.entry.js → p-9c873a6a.entry.js} +1 -1
- package/dist/cobalt/{p-BZJ7NCm5.js → p-BAA4ln31.js} +1 -1
- package/dist/cobalt/{p-CegCk7FL.js → p-Bgxofdfb.js} +1 -1
- package/dist/cobalt/p-a6900010.entry.js +1 -0
- package/dist/cobalt/p-a9afbaa6.entry.js +1 -0
- package/dist/cobalt/{p-c10697e1.entry.js → p-aa20ffca.entry.js} +1 -1
- package/dist/cobalt/{p-3863ea91.entry.js → p-ac5df270.entry.js} +1 -1
- package/dist/cobalt/{p-b6f20268.entry.js → p-af4cb263.entry.js} +1 -1
- package/dist/cobalt/p-b1197c08.entry.js +1 -0
- package/dist/cobalt/{p-4c01d984.entry.js → p-b4bed98b.entry.js} +1 -1
- package/dist/cobalt/{p-58a53421.entry.js → p-b8ec0cc1.entry.js} +1 -1
- package/dist/cobalt/p-ba66584f.entry.js +1 -0
- package/dist/cobalt/p-bb534985.entry.js +1 -0
- package/dist/cobalt/{p-1531d3c9.entry.js → p-c0f39ddd.entry.js} +1 -1
- package/dist/cobalt/{p-51a53177.entry.js → p-c1e53e4c.entry.js} +1 -1
- package/dist/cobalt/p-c2e2eee9.entry.js +1 -0
- package/dist/cobalt/p-c3462def.entry.js +1 -0
- package/dist/cobalt/p-c6fedc59.entry.js +1 -0
- package/dist/cobalt/{p-6e808b3a.entry.js → p-c750b2d2.entry.js} +1 -1
- package/dist/cobalt/{p-70b14b05.entry.js → p-cc0a4617.entry.js} +1 -1
- package/dist/cobalt/{p-29be61a9.entry.js → p-cc8e2f16.entry.js} +1 -1
- package/dist/cobalt/{p-790d384e.entry.js → p-d9608046.entry.js} +1 -1
- package/dist/cobalt/{p-cfb36943.entry.js → p-e1957078.entry.js} +1 -1
- package/dist/cobalt/{p-8d7fdb9d.entry.js → p-e2762263.entry.js} +1 -1
- package/dist/cobalt/p-e33853fa.entry.js +1 -0
- package/dist/cobalt/p-e420d5c9.entry.js +1 -0
- package/dist/cobalt/{p-377c2ccc.entry.js → p-e4a539da.entry.js} +1 -1
- package/dist/cobalt/{p-d809bd44.entry.js → p-e7085f08.entry.js} +1 -1
- package/dist/cobalt/p-e710b9ea.entry.js +1 -0
- package/dist/cobalt/{p-eb18fdbf.entry.js → p-e9aaeaf7.entry.js} +1 -1
- package/dist/cobalt/{p-65af5017.entry.js → p-f073b467.entry.js} +1 -1
- package/dist/cobalt/p-f0de4415.entry.js +1 -0
- package/dist/cobalt/p-f36e461f.entry.js +1 -0
- package/dist/cobalt/p-f6ac5301.entry.js +1 -0
- package/dist/cobalt/{p-9a04ca90.entry.js → p-f6b0c4a0.entry.js} +1 -1
- package/dist/cobalt/p-f86ccb38.entry.js +1 -0
- package/dist/cobalt/{p-1f747e45.entry.js → p-fb251497.entry.js} +1 -1
- package/dist/cobalt/p-fd27c2bd.entry.js +1 -0
- package/dist/cobalt/p-tT-aZV0-.js +2 -0
- package/dist/collection/collection-manifest.json +9 -1
- package/dist/collection/components/co-accordion/co-accordion.css +20 -8
- package/dist/collection/components/co-accordion/co-accordion.js +5 -2
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +4 -751
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +41 -76
- package/dist/collection/components/co-avatar/co-avatar.js +27 -3
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +2 -2
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +3 -3
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.css +6 -0
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +111 -0
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.css +66 -0
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +169 -0
- package/dist/collection/components/co-button/co-button.css +23 -0
- package/dist/collection/components/co-button/co-button.js +48 -2
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/co-calendar.css +12 -12
- package/dist/collection/components/co-calendar/co-calendar.js +1 -1
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +1 -1
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-checkbox/co-checkbox.css +63 -0
- package/dist/collection/components/co-checkbox/co-checkbox.js +58 -7
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +3 -3
- package/dist/collection/components/co-chip/co-chip.css +56 -1
- package/dist/collection/components/co-chip/co-chip.js +52 -9
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +6 -830
- package/dist/collection/components/co-combobox/co-combobox.js +73 -84
- package/dist/collection/components/co-command-search/co-command-search.css +2 -60
- package/dist/collection/components/co-command-search/co-command-search.js +23 -48
- package/dist/collection/components/co-data-table/co-data-table.css +47 -8
- package/dist/collection/components/co-data-table/co-data-table.js +199 -15
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.css +4 -7
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +9 -9
- package/dist/collection/components/co-drawer/co-drawer.css +63 -10
- package/dist/collection/components/co-drawer/co-drawer.js +60 -5
- package/dist/collection/components/co-drive-card/co-drive-card.css +285 -0
- package/dist/collection/components/co-drive-card/co-drive-card.js +329 -0
- package/dist/collection/components/co-drop-zone/co-drop-zone.css +49 -0
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +197 -0
- package/dist/collection/components/co-empty-state/co-empty-state.css +39 -1
- package/dist/collection/components/co-empty-state/co-empty-state.js +72 -1
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
- package/dist/collection/components/co-fab/co-fab.css +8 -1
- package/dist/collection/components/co-fab/co-fab.js +24 -5
- package/dist/collection/components/co-file-field/co-file-field.js +5 -5
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.css +14 -0
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +164 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +11 -4
- package/dist/collection/components/co-icon-button/co-icon-button.js +80 -25
- package/dist/collection/components/co-input/co-input.css +67 -6
- package/dist/collection/components/co-input/co-input.js +54 -5
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-lightbox/co-lightbox.css +2 -2
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
- package/dist/collection/components/co-list-item/co-list-item.js +4 -4
- package/dist/collection/components/co-media-thumb/co-media-thumb.css +43 -0
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +148 -0
- package/dist/collection/components/co-menu/co-menu.css +6 -4
- package/dist/collection/components/co-menu/co-menu.js +20 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +27 -9
- package/dist/collection/components/co-menu-item/co-menu-item.js +69 -2
- package/dist/collection/components/co-modal/co-modal.css +17 -0
- package/dist/collection/components/co-modal/co-modal.js +59 -6
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +10 -11
- package/dist/collection/components/co-number-field/co-number-field.js +2 -2
- package/dist/collection/components/co-option-list/co-option-list.css +966 -0
- package/dist/collection/components/co-option-list/co-option-list.js +899 -0
- package/dist/collection/components/co-option-list/optionListLogic.js +100 -0
- package/dist/collection/components/co-overlay/co-overlay.js +1 -1
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +4 -7
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.js +11 -2
- package/dist/collection/components/co-progress-bar/co-progress-bar.css +1 -1
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.js +3 -3
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +6 -897
- package/dist/collection/components/co-ref-field/co-ref-field.js +0 -0
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +1 -1
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +2 -2
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.css +36 -0
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +176 -0
- package/dist/collection/components/co-select/co-select.css +4 -7
- package/dist/collection/components/co-select/co-select.js +4 -4
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +8 -6
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +8 -6
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +3 -1
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +93 -7
- package/dist/collection/components/co-tab/co-tab.js +45 -3
- package/dist/collection/components/co-tab-group/co-tab-group.css +19 -0
- package/dist/collection/components/co-tab-group/co-tab-group.js +41 -1
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-toast/co-toast.css +56 -2
- package/dist/collection/components/co-toast/co-toast.js +27 -2
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +38 -0
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +46 -3
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +16 -0
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +34 -2
- package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +2 -2
- package/dist/collection/components/co-video/co-video.css +2 -2
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-badge.js +1 -1
- package/dist/components/co-bottom-sheet.js +1 -1
- package/dist/components/co-breadcrumb-item.d.ts +11 -0
- package/dist/components/co-breadcrumb-item.js +1 -0
- package/dist/components/co-breadcrumb.d.ts +11 -0
- package/dist/components/co-breadcrumb.js +1 -0
- package/dist/components/co-button-group.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.js +1 -1
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-card.js +1 -1
- package/dist/components/co-checkbox-group.js +1 -1
- package/dist/components/co-checkbox.js +1 -1
- package/dist/components/co-chip.js +1 -1
- package/dist/components/co-color-picker.js +1 -1
- package/dist/components/co-column-picker.js +1 -1
- package/dist/components/co-combobox.js +1 -1
- package/dist/components/co-command-search.js +1 -1
- package/dist/components/co-data-table-pagination.js +1 -1
- package/dist/components/co-data-table.js +1 -1
- package/dist/components/co-date-field.js +1 -1
- package/dist/components/co-date-picker.js +1 -1
- package/dist/components/co-date-range-picker.js +1 -1
- package/dist/components/co-date-range.js +1 -1
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-drive-card.d.ts +11 -0
- package/dist/components/co-drive-card.js +1 -0
- package/dist/components/co-drop-zone.d.ts +11 -0
- package/dist/components/co-drop-zone.js +1 -0
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-event-calendar.js +1 -1
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.js +1 -1
- package/dist/components/co-file-type-tile.d.ts +11 -0
- package/dist/components/co-file-type-tile.js +1 -0
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.js +1 -1
- package/dist/components/co-lightbox.js +1 -1
- package/dist/components/co-list-footer.js +1 -1
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-media-thumb.d.ts +11 -0
- package/dist/components/co-media-thumb.js +1 -0
- package/dist/components/co-menu-divider.js +1 -1
- package/dist/components/co-menu-item.js +1 -1
- package/dist/components/co-menu.js +1 -1
- package/dist/components/co-modal.js +1 -1
- package/dist/components/co-navbar.js +1 -1
- package/dist/components/co-number-field.js +1 -1
- package/dist/components/co-option-list.d.ts +11 -0
- package/dist/components/co-option-list.js +1 -0
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.js +1 -1
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.js +1 -1
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.js +1 -1
- package/dist/components/co-rich-text-toolbar.js +1 -1
- package/dist/components/co-rich-text-viewer.js +1 -1
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-segmented-bar.d.ts +11 -0
- package/dist/components/co-segmented-bar.js +1 -0
- package/dist/components/co-select.js +1 -1
- package/dist/components/co-separator.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-sidebar.js +1 -1
- package/dist/components/co-skeleton.js +1 -1
- package/dist/components/co-slider.js +1 -1
- package/dist/components/co-switch.js +1 -1
- package/dist/components/co-tab-group.js +1 -1
- package/dist/components/co-tab.js +1 -1
- package/dist/components/co-tags-field.js +1 -1
- package/dist/components/co-textarea.js +1 -1
- package/dist/components/co-toast.js +1 -1
- package/dist/components/co-toggle-button-group.js +1 -1
- package/dist/components/co-toggle-button.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/co-transfer-list.js +1 -1
- package/dist/components/co-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BHqdcGDh.js +1 -0
- package/dist/components/{p-D3Y_ti3Q.js → p-BJTMFYax.js} +1 -1
- package/dist/components/p-Ba5lW0pA.js +1 -0
- package/dist/components/{p-CegCk7FL.js → p-Bgxofdfb.js} +1 -1
- package/dist/components/{p-BB2OaYKF.js → p-CNIs9j-h.js} +1 -1
- package/dist/components/{p-DeZxp9vb.js → p-COb8X_fE.js} +1 -1
- package/dist/components/{p-BFeE_fiq.js → p-Cam92sWP.js} +1 -1
- package/dist/components/p-CmCsm4L-.js +1 -0
- package/dist/components/p-D3ts7oo9.js +1 -0
- package/dist/components/{p-BNKz39GA.js → p-D4SOCy8I.js} +1 -1
- package/dist/components/{p-DKh8ZK4U.js → p-Dh-h40mY.js} +1 -1
- package/dist/components/p-DrQh1Cb8.js +1 -0
- package/dist/components/p-DvL2TcDG.js +1 -0
- package/dist/components/{p-C_ULDaks.js → p-OKwHt2i9.js} +1 -1
- package/dist/components/p-QWi9AmnD.js +1 -0
- package/dist/components/p-Xwo2HQmt.js +1 -0
- package/dist/components/p-_k-j03K-.js +1 -0
- package/dist/components/{p-B7vGYFbO.js → p-eSq2ze8W.js} +1 -1
- package/dist/components/p-ivjj-BP8.js +1 -0
- package/dist/components/{p-DxCFMMfY.js → p-lus32JrB.js} +1 -1
- package/dist/esm/co-accordion.entry.js +4 -4
- package/dist/esm/co-app-shell.entry.js +3 -3
- package/dist/esm/co-autocomplete.entry.js +38 -73
- package/dist/esm/co-avatar-group.entry.js +3 -3
- package/dist/esm/co-avatar.entry.js +9 -4
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +4 -4
- package/dist/esm/co-breadcrumb-item.entry.js +35 -0
- package/dist/esm/co-breadcrumb.entry.js +53 -0
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +10 -4
- package/dist/esm/co-calendar-month.entry.js +2 -2
- package/dist/esm/co-calendar_3.entry.js +50 -15
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-checkbox-group.entry.js +4 -4
- package/dist/esm/co-checkbox.entry.js +18 -6
- package/dist/esm/co-chip_2.entry.js +482 -0
- package/dist/esm/co-color-picker.entry.js +4 -4
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +52 -83
- package/dist/esm/co-command-search.entry.js +21 -60
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +73 -17
- package/dist/esm/co-date-picker.entry.js +2 -2
- package/dist/esm/co-date-range-picker.entry.js +3 -3
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-drive-card.entry.js +79 -0
- package/dist/esm/co-drop-zone.entry.js +61 -0
- package/dist/esm/co-empty-state.entry.js +13 -3
- package/dist/esm/co-event-calendar.entry.js +3 -3
- package/dist/esm/co-fab.entry.js +5 -5
- package/dist/esm/co-file-field.entry.js +7 -7
- package/dist/esm/co-file-type-tile.entry.js +76 -0
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +23 -7
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +36 -7
- package/dist/esm/co-json-field.entry.js +5 -5
- package/dist/esm/co-lightbox.entry.js +6 -6
- package/dist/esm/co-list-footer.entry.js +2 -2
- package/dist/esm/co-list-item.entry.js +5 -5
- package/dist/esm/co-loader.entry.js +32 -0
- package/dist/esm/co-media-thumb.entry.js +34 -0
- package/dist/esm/co-menu-divider.entry.js +2 -2
- package/dist/esm/co-menu-item.entry.js +11 -3
- package/dist/esm/co-menu.entry.js +3 -3
- package/dist/esm/co-modal.entry.js +29 -5
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +5 -5
- package/dist/esm/{co-loader_2.entry.js → co-overlay.entry.js} +3 -32
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +4 -4
- package/dist/esm/co-popover.entry.js +12 -3
- package/dist/esm/co-progress-bar.entry.js +4 -4
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-radio-group.entry.js +4 -4
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +31 -135
- package/dist/esm/co-rich-text-editor.entry.js +5 -5
- package/dist/esm/co-rich-text-toolbar.entry.js +1 -1
- package/dist/esm/co-rich-text-viewer.entry.js +2 -2
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +56 -0
- package/dist/esm/co-select.entry.js +7 -7
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +10 -8
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-skeleton.entry.js +2 -2
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +6 -6
- package/dist/esm/co-tab-group.entry.js +21 -3
- package/dist/esm/co-tab.entry.js +8 -5
- package/dist/esm/co-tags-field.entry.js +8 -8
- package/dist/esm/co-textarea.entry.js +6 -6
- package/dist/esm/co-toast.entry.js +10 -4
- package/dist/esm/co-toggle-button-group.entry.js +16 -4
- package/dist/esm/co-toggle-button.entry.js +9 -5
- package/dist/esm/co-tooltip.entry.js +3 -3
- package/dist/esm/co-transfer-list.entry.js +3 -3
- package/dist/esm/co-video.entry.js +4 -4
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{fieldChip-GPikjpYw.js → fieldChip-ChXW__C5.js} +1 -1
- package/dist/esm/{index-w_Wxgclf.js → index-Cyrxk8Qq.js} +64 -11
- package/dist/esm/{index-CYsftTKf.js → index-tT-aZV0-.js} +69 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{requiredMark-CEbXKHcU.js → requiredMark-C7-_2UhB.js} +1 -1
- package/dist/types/components/co-accordion/co-accordion.d.ts +3 -0
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +12 -14
- package/dist/types/components/co-avatar/co-avatar.d.ts +2 -0
- package/dist/types/components/co-breadcrumb/co-breadcrumb.d.ts +27 -0
- package/dist/types/components/co-breadcrumb-item/co-breadcrumb-item.d.ts +33 -0
- package/dist/types/components/co-button/co-button.d.ts +4 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +10 -2
- package/dist/types/components/co-chip/co-chip.d.ts +15 -3
- package/dist/types/components/co-combobox/co-combobox.d.ts +29 -15
- package/dist/types/components/co-command-search/co-command-search.d.ts +13 -5
- package/dist/types/components/co-command-search/commandSearchLogic.d.ts +1 -1
- package/dist/types/components/co-data-table/co-data-table.d.ts +35 -1
- package/dist/types/components/co-drawer/co-drawer.d.ts +12 -0
- package/dist/types/components/co-drive-card/co-drive-card.d.ts +52 -0
- package/dist/types/components/co-drop-zone/co-drop-zone.d.ts +38 -0
- package/dist/types/components/co-empty-state/co-empty-state.d.ts +6 -0
- package/dist/types/components/co-fab/co-fab.d.ts +3 -1
- package/dist/types/components/co-file-type-tile/co-file-type-tile.d.ts +11 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +18 -3
- package/dist/types/components/co-input/co-input.d.ts +13 -1
- package/dist/types/components/co-media-thumb/co-media-thumb.d.ts +21 -0
- package/dist/types/components/co-menu/co-menu.d.ts +4 -0
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +10 -1
- package/dist/types/components/co-modal/co-modal.d.ts +20 -2
- package/dist/types/components/co-option-list/co-option-list.d.ts +105 -0
- package/dist/types/components/co-option-list/optionListLogic.d.ts +69 -0
- package/dist/types/components/co-popover/co-popover.d.ts +1 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +8 -30
- package/dist/types/components/co-segmented-bar/co-segmented-bar.d.ts +32 -0
- package/dist/types/components/co-sidebar-nav/co-sidebar-nav.d.ts +2 -0
- package/dist/types/components/co-tab/co-tab.d.ts +4 -0
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +7 -0
- package/dist/types/components/co-toast/co-toast.d.ts +7 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +6 -0
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +5 -0
- package/dist/types/components.d.ts +1451 -82
- package/package.json +3 -3
- package/dist/cjs/co-chip.cjs.entry.js +0 -86
- package/dist/cobalt/p-0a506c9d.entry.js +0 -1
- package/dist/cobalt/p-0e8c0d87.entry.js +0 -1
- package/dist/cobalt/p-136ad468.entry.js +0 -1
- package/dist/cobalt/p-14b59277.entry.js +0 -1
- package/dist/cobalt/p-1774d211.entry.js +0 -1
- package/dist/cobalt/p-180e1106.entry.js +0 -1
- package/dist/cobalt/p-1dc9c49e.entry.js +0 -1
- package/dist/cobalt/p-201eaf35.entry.js +0 -1
- package/dist/cobalt/p-260101ab.entry.js +0 -1
- package/dist/cobalt/p-2d2ce434.entry.js +0 -1
- package/dist/cobalt/p-3a257cb0.entry.js +0 -1
- package/dist/cobalt/p-3e187456.entry.js +0 -1
- package/dist/cobalt/p-4431faac.entry.js +0 -1
- package/dist/cobalt/p-456fa86f.entry.js +0 -1
- package/dist/cobalt/p-5890e4d1.entry.js +0 -1
- package/dist/cobalt/p-62274eba.entry.js +0 -1
- package/dist/cobalt/p-635b03d5.entry.js +0 -1
- package/dist/cobalt/p-64ddee92.entry.js +0 -1
- package/dist/cobalt/p-69d4c0c8.entry.js +0 -1
- package/dist/cobalt/p-6c480916.entry.js +0 -1
- package/dist/cobalt/p-8012e152.entry.js +0 -1
- package/dist/cobalt/p-80b27203.entry.js +0 -1
- package/dist/cobalt/p-867c1465.entry.js +0 -1
- package/dist/cobalt/p-86a143d7.entry.js +0 -1
- package/dist/cobalt/p-8dc1dab8.entry.js +0 -1
- package/dist/cobalt/p-92bd9b29.entry.js +0 -1
- package/dist/cobalt/p-98ab5f3f.entry.js +0 -1
- package/dist/cobalt/p-9a088515.entry.js +0 -1
- package/dist/cobalt/p-9abbd436.entry.js +0 -1
- package/dist/cobalt/p-9d69c067.entry.js +0 -1
- package/dist/cobalt/p-CYsftTKf.js +0 -2
- package/dist/cobalt/p-c4f59532.entry.js +0 -1
- package/dist/cobalt/p-e54dd404.entry.js +0 -1
- package/dist/cobalt/p-eb73052a.entry.js +0 -1
- package/dist/cobalt/p-oImf-7fN.js +0 -1
- package/dist/collection/components/co-command-search/commandSearchGroup.js +0 -17
- package/dist/components/p-Ba4v1NXo.js +0 -1
- package/dist/components/p-EPZfLt5l.js +0 -1
- package/dist/components/p-FMnqPWcM.js +0 -1
- package/dist/components/p-Hzh9U2cM.js +0 -1
- package/dist/components/p-WZ06pT2Y.js +0 -1
- package/dist/components/p-tloAgDin.js +0 -1
- package/dist/esm/co-chip.entry.js +0 -84
- package/dist/types/components/co-command-search/commandSearchGroup.d.ts +0 -20
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const o=":root{--co-color-base-negro:#1f1c1b;--co-color-base-blanco:#ffffff;--co-color-base-off-white:#f7f6f0;--co-color-primary-verde:#02a270;--co-color-primary-amarillo:#fdbf00;--co-color-primary-azul:#2563eb;--co-color-primary-rosado:#f32a73;--co-color-azul-100:#eff4ff;--co-color-azul-200:#dbe6fe;--co-color-azul-300:#bfd3fe;--co-color-azul-400:#93b4fd;--co-color-azul-500:#6090fa;--co-color-azul-600:#3b76f6;--co-color-azul-700:#2563eb;--co-color-azul-800:#1d58d8;--co-color-azul-900:#1e408a;--co-color-rosado-100:#fef1f6;--co-color-rosado-200:#fde6f0;--co-color-rosado-300:#fdcde2;--co-color-rosado-400:#fda4c8;--co-color-rosado-500:#fb6ba3;--co-color-rosado-600:#f32a73;--co-color-rosado-700:#e41e5c;--co-color-rosado-800:#c61044;--co-color-rosado-900:#a41039;--co-color-amarillo-100:#ffffea;--co-color-amarillo-200:#fffbc5;--co-color-amarillo-300:#fff885;--co-color-amarillo-400:#ffe01b;--co-color-amarillo-500:#fdbf00;--co-color-amarillo-600:#e29500;--co-color-amarillo-700:#bb6902;--co-color-amarillo-800:#985108;--co-color-amarillo-900:#7c420b;--co-color-verde-100:#ecfdf5;--co-color-verde-200:#d0fbe5;--co-color-verde-300:#a5f5d0;--co-color-verde-400:#6beab8;--co-color-verde-500:#31d69a;--co-color-verde-600:#0cbd82;--co-color-verde-700:#02a270;--co-color-verde-800:#027a58;--co-color-verde-900:#046147;--co-color-neutral-100:#e6e5df;--co-color-neutral-200:#eeede7;--co-color-neutral-300:#f3f2ec;--co-color-gray-100:#f6f6f6;--co-color-gray-200:#e3e3e3;--co-color-gray-300:#c4c4c4;--co-color-gray-400:#a0a0a0;--co-color-gray-500:#888888;--co-color-gray-600:#585858;--co-color-gray-700:#1f1c1b;--co-color-gray-800:#0a0a0a;--co-color-secondary-rosado-100:#d74ba0;--co-color-secondary-rosado-50:#ffc8eb;--co-color-secondary-rosado-25:#ffe6f5;--co-color-secondary-rojo-100:#eb1e1e;--co-color-secondary-rojo-50:#ff878c;--co-color-secondary-rojo-25:#ffd7dc;--co-color-secondary-naranja-100:#f0821e;--co-color-secondary-naranja-50:#ffbe82;--co-color-secondary-naranja-25:#ffe6d2;--co-color-secondary-amarillo-100:#fad223;--co-color-secondary-amarillo-50:#ffe67d;--co-color-secondary-amarillo-25:#fffac3;--co-color-secondary-verde-100:#afe664;--co-color-secondary-verde-50:#d7ffb4;--co-color-secondary-verde-25:#ebffc8;--co-color-secondary-oliva-100:#aab43c;--co-color-secondary-oliva-50:#d2dc96;--co-color-secondary-oliva-25:#f0f0d2;--co-color-secondary-turquesa-100:#00afaf;--co-color-secondary-turquesa-50:#3ce1c8;--co-color-secondary-turquesa-25:#c8f0f0;--co-color-secondary-azul-claro-100:#00bee6;--co-color-secondary-azul-claro-50:#6ee6f0;--co-color-secondary-azul-claro-25:#befaff;--co-color-secondary-azul-electrico-100:#000aff;--co-color-secondary-azul-electrico-50:#8095ff;--co-color-secondary-azul-electrico-25:#cce0ff;--co-color-secondary-violeta-100:#5f4bd7;--co-color-secondary-violeta-50:#b9b4ff;--co-color-secondary-violeta-25:#e1e1ff;--co-color-secondary-marron-100:#af7355;--co-color-secondary-marron-50:#d7b9a5;--co-color-secondary-marron-25:#f0e1d7;--co-color-secondary-guinda-100:#811137;--co-color-secondary-guinda-50:#c0889c;--co-color-secondary-guinda-25:#e6cfd7;--co-color-status-success:#0a7724;--co-color-status-bg-success:#ebf9ec;--co-color-status-progress:#2d6cc5;--co-color-status-bg-progress:#eef3fa;--co-color-status-submitted:#7556ca;--co-color-status-bg-submitted:#f4f1fb;--co-color-status-review:#85571f;--co-color-status-bg-review:#fcf5db;--co-color-status-pending:#b45103;--co-color-status-bg-pending:#f9f1eb;--co-color-status-error:#aa2e1b;--co-color-status-bg-error:#ffefef;--co-color-opacity-negro-4:rgba(31, 28, 27, 0.04);--co-color-opacity-negro-8:rgba(31, 28, 27, 0.08);--co-color-opacity-negro-16:rgba(31, 28, 27, 0.16);--co-color-opacity-negro-25:rgba(31, 28, 27, 0.25);--co-color-opacity-negro-50:rgba(31, 28, 27, 0.50);--co-color-opacity-negro-80:rgba(31, 28, 27, 0.80);--co-color-opacity-blanco-4:rgba(255, 255, 255, 0.04);--co-color-opacity-blanco-8:rgba(255, 255, 255, 0.08);--co-color-opacity-blanco-16:rgba(255, 255, 255, 0.16);--co-color-opacity-blanco-25:rgba(255, 255, 255, 0.25);--co-color-opacity-blanco-50:rgba(255, 255, 255, 0.50);--co-color-opacity-blanco-80:rgba(255, 255, 255, 0.80);--co-border-radius-xxs:4px;--co-border-radius-xs:8px;--co-border-radius-sm:12px;--co-border-radius-lg:16px;--co-border-radius-xl:24px;--co-border-radius-2xl:32px;--co-border-radius-3xl:40px;--co-border-radius-4xl:48px;--co-border-radius-5xl:56px;--co-border-radius-6xl:64px;--co-border-radius-full:9999px;--co-shadow-lg:0 10px 15px -3px rgba(26, 26, 26, 0.05), 0 4px 6px -4px rgba(26, 26, 26, 0.05);--co-spacing-xxs:2px;--co-spacing-xs:4px;--co-spacing-sm:6px;--co-spacing-sm2:8px;--co-spacing-md:12px;--co-spacing-lg:16px;--co-spacing-xl:20px;--co-spacing-2xl:24px;--co-spacing-3xl:32px;--co-spacing-4xl:40px;--co-spacing-5xl:48px;--co-spacing-6xl:56px;--co-spacing-7xl:64px;--co-spacing-8xl:72px;--co-spacing-9xl:80px;--co-spacing-10xl:88px;--co-spacing-11xl:96px;--co-spacing-12xl:104px;--co-spacing-13xl:112px;--co-spacing-14xl:120px;--co-spacing-full:9999px;--co-font-family-primary:'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--co-font-family-mono:'Geist Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;--co-font-size-10:10px;--co-font-size-12:12px;--co-font-size-14:14px;--co-font-size-16:16px;--co-font-size-18:18px;--co-font-size-20:20px;--co-font-size-22:22px;--co-font-size-24:24px;--co-font-size-26:26px;--co-font-size-30:30px;--co-font-size-32:32px;--co-font-size-36:36px;--co-font-size-40:40px;--co-font-size-44:44px;--co-font-size-48:48px;--co-font-size-50:50px;--co-font-size-56:56px;--co-font-size-64:64px;--co-font-size-72:72px;--co-font-size-80:80px;--co-font-size-96:96px;--co-font-size-104:104px;--co-font-size-112:112px;--co-font-size-128:128px;--co-font-size-144:144px;--co-font-size-160:160px;--co-font-size-180:180px;--co-font-size-200:200px;--co-font-size-220:220px;--co-font-weight-regular:400;--co-font-weight-medium:500;--co-font-weight-semibold:600;--co-font-weight-bold:700;--co-font-line-height-none:1;--co-font-line-height-tight:1.2;--co-font-line-height-snug:1.3;--co-font-line-height-normal:1.5;--co-font-line-height-relaxed:1.6;--co-font-letter-spacing-body:-0.03em;--co-font-letter-spacing-overline:0.08em;--co-semantic-surface-primary:var(--co-color-base-negro);--co-semantic-surface-inverse:var(--co-semantic-surface-primary);--co-semantic-surface-secondary:var(--co-color-base-blanco);--co-semantic-surface-page:var(--co-color-base-blanco);--co-semantic-surface-muted:var(--co-color-gray-200);--co-semantic-surface-hover:var(--co-color-opacity-negro-4);--co-semantic-surface-disabled:var(--co-color-gray-100);--co-semantic-on-primary:var(--co-color-base-blanco);--co-semantic-on-secondary:var(--co-color-base-negro);--co-semantic-text-default:var(--co-color-base-negro);--co-semantic-text-inverse:var(--co-color-base-blanco);--co-semantic-text-secondary:var(--co-color-gray-600);--co-semantic-text-muted:var(--co-color-gray-500);--co-semantic-text-disabled:var(--co-color-gray-400);--co-semantic-border-default:var(--co-color-opacity-negro-16);--co-semantic-border-subtle:var(--co-color-opacity-negro-8);--co-semantic-border-strong:var(--co-color-opacity-negro-50);--co-semantic-border-focus:var(--co-color-opacity-negro-25);--co-semantic-border-focus-ring:var(--co-color-opacity-negro-8);--co-semantic-control-thumb:var(--co-color-base-blanco);--co-semantic-control-shadow:var(--co-color-opacity-negro-16);--co-semantic-status-success:var(--co-color-status-success);--co-semantic-status-error:var(--co-color-status-error);--co-semantic-status-warning:var(--co-color-primary-amarillo);--co-semantic-status-info:var(--co-color-status-progress);--co-glass-blur:12px;--co-glass-saturate:1.3;--co-glass-panel-blur:18px}:root{--co-color-negro:var(--co-color-base-negro);--co-color-blanco:var(--co-color-base-blanco);--co-color-neutral-beige:var(--co-color-base-off-white);--co-color-secondary-rojo:var(--co-color-secondary-rojo-100);--co-color-secondary-naranja:var(--co-color-secondary-naranja-100);--co-color-secondary-oliva:var(--co-color-secondary-oliva-100);--co-color-secondary-violeta:var(--co-color-secondary-violeta-100);--co-color-secondary-marron:var(--co-color-secondary-marron-100);--co-color-status-success-bg:var(--co-color-status-bg-success);--co-font-family:var(--co-font-family-primary);--co-border-radius-md:var(--co-border-radius-lg);--co-font-size-11:11px;--co-font-size-28:28px}";function c(o,c,e){const r="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;o&&o!==r;){const r=Object.getOwnPropertyDescriptor(o,c);if(r&&(!e||r.get))return r;o=Object.getPrototypeOf(o)}}var e,r=(o,e)=>{var r;Object.entries(null!=(r=e.t.o)?r:{}).map((([r,[t]])=>{if(31&t||32&t){const t=o[r],n=c(Object.getPrototypeOf(o),r,!0)||Object.getOwnPropertyDescriptor(o,r);n&&Object.defineProperty(o,r,{get(){return n.get.call(this)},set(o){n.set.call(this,o)},configurable:!0,enumerable:!0}),e.l.has(r)?o[r]=e.l.get(r):void 0!==t&&(o[r]=t)}}))},t=o=>{if(o.__stencil__getHostRef)return o.__stencil__getHostRef()},n=(o,c)=>c in o,l=(o,c)=>(0,console.error)(o,c),s=new Map,a="http://www.w3.org/1999/xlink",i="undefined"!=typeof window?window:{},f=i.HTMLElement||class{},u={i:0,u:"",jmp:o=>o(),raf:o=>requestAnimationFrame(o),ael:(o,c,e,r)=>o.addEventListener(c,e,r),rel:(o,c,e,r)=>o.removeEventListener(c,e,r),ce:(o,c)=>new CustomEvent(o,c)},d=(()=>{try{return!!i.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(o){}return!1})(),p=!!d&&(()=>!!i.document&&Object.getOwnPropertyDescriptor(i.document.adoptedStyleSheets,"length").writable)(),b=!1,y=[],g=[],m=(o,c)=>e=>{o.push(e),b||(b=!0,c&&4&u.i?h(x):u.raf(x))},v=o=>{for(let c=0;c<o.length;c++)try{o[c](performance.now())}catch(o){l(o)}o.length=0},x=()=>{v(y),v(g),(b=y.length>0)&&u.raf(x)},h=o=>Promise.resolve(void 0).then(o),$=m(g,!0),z=o=>{const c=new URL(o,u.u);return c.origin!==i.location.origin?c.href:c.pathname},w=o=>u.u=o;function j(){var c;const r=this.attachShadow({mode:"open"});if(void 0===e&&(e=null!=(c=function(o){if(!d)return;const c=new CSSStyleSheet;return c.replaceSync(o),c}(o))?c:null),e)p?r.adoptedStyleSheets.push(e):r.adoptedStyleSheets=[...r.adoptedStyleSheets,e];else if(!d){const c=document.createElement("style");c.innerHTML=o,r.prepend(c)}}var S=o=>{const c=E(o,"childNodes");o.tagName&&o.tagName.includes("-")&&o["s-cr"]&&"SLOT-FB"!==o.tagName&&O(c,o.tagName).forEach((o=>{1===o.nodeType&&"SLOT-FB"===o.tagName&&(o.hidden=!!k(o,N(o),!1).length)}));let e=0;for(e=0;e<c.length;e++){const o=c[e];1===o.nodeType&&E(o,"childNodes").length&&S(o)}};function O(o,c,e){let r,t=0,n=[];for(;t<o.length;t++){if(r=o[t],r["s-sr"]&&(!c||r["s-hn"]===c)&&(void 0===e||N(r)===e)&&(n.push(r),void 0!==e))return n;n=[...n,...O(r.childNodes,c,e)]}return n}var k=(o,c,e=!0)=>{const r=[];(e&&o["s-sr"]||!o["s-sr"])&&r.push(o);let t=o;for(;t=t.nextSibling;)N(t)!==c||!e&&t["s-sr"]||r.push(t);return r},M=(o,c)=>1===o.nodeType?null===o.getAttribute("slot")&&""===c||o.getAttribute("slot")===c:o["s-sn"]===c||""===c,N=o=>"string"==typeof o["s-sn"]?o["s-sn"]:1===o.nodeType&&o.getAttribute("slot")||void 0;function E(o,c){if("__"+c in o){const e=o["__"+c];return"function"!=typeof e?e:e.bind(o)}return"function"!=typeof o[c]?o[c]:o[c].bind(o)}var C,L,_=new WeakMap,A=o=>"sc-"+o.p,F=o=>"object"==(o=typeof o)||"function"===o,R=(o,c,...e)=>{let r=null,t=null,n=null,l=!1,s=!1;const a=[],i=c=>{for(let e=0;e<c.length;e++)r=c[e],Array.isArray(r)?i(r):null!=r&&"boolean"!=typeof r&&((l="function"!=typeof o&&!F(r))&&(r+=""),l&&s?a[a.length-1].m+=r:a.push(l?T(null,r):r),s=l)};if(i(e),c){c.key&&(t=c.key),c.name&&(n=c.name);{const o=c.className||c.class;o&&(c.class="object"!=typeof o?o:Object.keys(o).filter((c=>o[c])).join(" "))}}if("function"==typeof o)return o(null===c?{}:c,a,q);const f=T(o,null);return f.v=c,a.length>0&&(f.h=a),f.$=t,f.j=n,f},T=(o,c)=>({i:0,S:o,m:null!=c?c:null,O:null,h:null,v:null,$:null,j:null}),U={},q={forEach:(o,c)=>o.map(D).forEach(c),map:(o,c)=>o.map(D).map(c).map(H)},D=o=>({vattrs:o.v,vchildren:o.h,vkey:o.$,vname:o.j,vtag:o.S,vtext:o.m}),H=o=>{if("function"==typeof o.vtag){const c={...o.vattrs};return o.vkey&&(c.key=o.vkey),o.vname&&(c.name=o.vname),R(o.vtag,c,...o.vchildren||[])}const c=T(o.vtag,o.vtext);return c.v=o.vattrs,c.h=o.vchildren,c.$=o.vkey,c.j=o.vname,c},P=o=>{if(!o)return;const c=Object.keys(o);if(0===c.length)return;let e=!1;for(const r of c){if(e)break;for(const c of o[r])if("string"==typeof c){e=!0;break}}if(!e)return o;const r={};for(const e of c)r[e]=o[e].map((o=>"string"==typeof o?{[o]:0}:o));return r},W=(o,c)=>null==o||F(o)?o:4&c?"false"!==o&&(""===o||!!o):2&c?"string"==typeof o?parseFloat(o):"number"==typeof o?o:NaN:1&c?o+"":o,B=(o,c,e)=>{const r=o;return{emit:o=>V(r,c,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:o})}},V=(o,c,e)=>{const r=u.ce(c,e);return o.dispatchEvent(r),r},G=(o,c,e,r,l,s)=>{if(e===r)return;let f=n(o,c),d=c.toLowerCase();if("class"===c){const c=o.classList,t=Y(e);let n=Y(r);c.remove(...t.filter((o=>o&&!n.includes(o)))),c.add(...n.filter((o=>o&&!t.includes(o))))}else if("style"===c){for(const c in e)r&&null!=r[c]||(c.includes("-")?o.style.removeProperty(c):o.style[c]="");for(const c in r)e&&r[c]===e[c]||(c.includes("-")?o.style.setProperty(c,r[c]):o.style[c]=r[c])}else if("key"===c);else if("ref"===c)r&&mo(r,o);else if(o.__lookupSetter__(c)||"o"!==c[0]||"n"!==c[1]){if("a"===c[0]&&c.startsWith("attr:")){const e=c.slice(5);let n;{const c=t(o);if(c&&c.t&&c.t.o){const o=c.t.o[e];o&&o[1]&&(n=o[1])}}return n||(n=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==r||!1===r?!1===r&&""!==o.getAttribute(n)||o.removeAttribute(n):o.setAttribute(n,!0===r?"":r))}if("p"===c[0]&&c.startsWith("prop:")){const e=c.slice(5);try{o[e]=r}catch(o){}return}{const t=F(r);if((f||t&&null!==r)&&!l)try{if(o.tagName.includes("-"))o[c]!==r&&(o[c]=r);else{const t=null==r?"":r;"list"===c?f=!1:null!=e&&o[c]===t||("function"==typeof o.__lookupSetter__(c)?o[c]=t:o.setAttribute(c,t))}}catch(o){}let n=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(c=d,n=!0),null==r||!1===r?!1===r&&""!==o.getAttribute(c)||(n?o.removeAttributeNS(a,c):o.removeAttribute(c)):(!f||4&s||l)&&!t&&1===o.nodeType&&(r=!0===r?"":r,n?o.setAttributeNS(a,c,r):o.setAttribute(c,r))}}else if(c="-"===c[2]?c.slice(3):n(i,d)?d.slice(2):d[2]+c.slice(3),e||r){const t=c.endsWith(Z);c=c.replace(J,""),e&&u.rel(o,c,e,t),r&&u.ael(o,c,r,t)}},I=/\s/,Y=o=>("object"==typeof o&&o&&"baseVal"in o&&(o=o.baseVal),o&&"string"==typeof o?o.split(I):[]),Z="Capture",J=RegExp(Z+"$"),K=(o,c,e)=>{const r=11===c.O.nodeType&&c.O.host?c.O.host:c.O,t=o&&o.v||{},n=c.v||{};for(const o of Q(Object.keys(t)))o in n||G(r,o,t[o],void 0,e,c.i);for(const o of Q(Object.keys(n)))G(r,o,t[o],n[o],e,c.i)};function Q(o){return o.includes("ref")?[...o.filter((o=>"ref"!==o)),"ref"]:o}var X=!1,oo=!1,co=!1,eo=!1,ro=[],to=[],no=(o,c,e)=>{var r;const t=c.h[e];let n,l,s,a=0;if(X||(co=!0,"slot"===t.S&&(t.i|=t.h?2:1)),null!=t.m)n=t.O=i.document.createTextNode(t.m);else if(1&t.i)n=t.O=i.document.createTextNode(""),K(null,t,eo);else{if(!i.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(n=t.O=i.document.createElement(!X&&2&t.i?"slot-fb":t.S),K(null,t,eo),t.h){const c="template"===t.S?n.content:n;for(a=0;a<t.h.length;++a)l=no(o,t,a),l&&c.appendChild(l)}}return n["s-hn"]=L,3&t.i&&(n["s-sr"]=!0,n["s-cr"]=C,n["s-sn"]=t.j||"",n["s-rf"]=null==(r=t.v)?void 0:r.ref,function(o){if(o.assignedElements||o.assignedNodes||!o["s-sr"])return;const c=c=>function(o){const e=[],r=this["s-sn"];(null==o?void 0:o.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const t=this["s-cr"].parentElement;return(t.__childNodes?t.childNodes:(o=>{const c=[];for(let e=0;e<o.length;e++){const r=o[e]["s-nr"]||void 0;r&&r.isConnected&&c.push(r)}return c})(t.childNodes)).forEach((o=>{r===N(o)&&e.push(o)})),c?e.filter((o=>1===o.nodeType)):e}.bind(o);o.assignedElements=c(!0),o.assignedNodes=c(!1)}(n),s=o&&o.h&&o.h[e],s&&s.S===t.S&&o.O&&lo(o.O)),n},lo=o=>{u.i|=1;const c=o.closest(L.toLowerCase());if(null!=c){const e=Array.from(c.__childNodes||c.childNodes).find((o=>o["s-cr"])),r=Array.from(o.__childNodes||o.childNodes);for(const o of e?r.reverse():r)null!=o["s-sh"]&&(vo(c,o,null!=e?e:null),o["s-sh"]=void 0,co=!0)}u.i&=-2},so=(o,c)=>{u.i|=1;const e=Array.from(o.__childNodes||o.childNodes);if(o["s-sr"]){let c=o;for(;c=c.nextSibling;)c&&c["s-sn"]===o["s-sn"]&&c["s-sh"]===L&&e.push(c)}for(let o=e.length-1;o>=0;o--){const r=e[o];r["s-hn"]!==L&&r["s-ol"]&&(vo(uo(r).parentNode,r,uo(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,co=!0),c&&so(r,c)}u.i&=-2},ao=(o,c,e,r,t,n)=>{let l,s=o["s-cr"]&&o["s-cr"].parentNode||o;for(s.shadowRoot&&s.tagName===L&&(s=s.shadowRoot),"template"===e.S&&(s=s.content);t<=n;++t)r[t]&&(l=no(null,e,t),l&&(r[t].O=l,vo(s,l,uo(c))))},io=(o,c,e)=>{for(let r=c;r<=e;++r){const c=o[r];if(c){const o=c.O;go(c),o&&(oo=!0,o["s-ol"]?o["s-ol"].remove():so(o,!0),o.remove())}}},fo=(o,c,e=!1)=>o.S===c.S&&("slot"===o.S?o.j===c.j:e?(e&&!o.$&&c.$&&(o.$=c.$),!0):o.$===c.$),uo=o=>o&&o["s-ol"]||o,po=(o,c,e=!1)=>{const r=c.O=o.O,t=o.h,n=c.h,l=c.m;let s;null==l?("slot"!==c.S||X||o.j!==c.j&&(c.O["s-sn"]=c.j||"",lo(c.O.parentElement)),K(o,c,eo),null!==t&&null!==n?((o,c,e,r,t=!1)=>{let n,l,s=0,a=0,i=0,f=0,u=c.length-1,d=c[0],p=c[u],b=r.length-1,y=r[0],g=r[b];const m="template"===e.S?o.content:o;for(;s<=u&&a<=b;)if(null==d)d=c[++s];else if(null==p)p=c[--u];else if(null==y)y=r[++a];else if(null==g)g=r[--b];else if(fo(d,y,t))po(d,y,t),d=c[++s],y=r[++a];else if(fo(p,g,t))po(p,g,t),p=c[--u],g=r[--b];else if(fo(d,g,t))"slot"!==d.S&&"slot"!==g.S||so(d.O.parentNode,!1),po(d,g,t),vo(m,d.O,p.O.nextSibling),d=c[++s],g=r[--b];else if(fo(p,y,t))"slot"!==d.S&&"slot"!==g.S||so(p.O.parentNode,!1),po(p,y,t),vo(m,p.O,d.O),p=c[--u],y=r[++a];else{for(i=-1,f=s;f<=u;++f)if(c[f]&&null!==c[f].$&&c[f].$===y.$){i=f;break}i>=0?(l=c[i],l.S!==y.S?n=no(c&&c[a],e,i):(po(l,y,t),c[i]=void 0,n=l.O),y=r[++a]):(n=no(c&&c[a],e,a),y=r[++a]),n&&vo(uo(d.O).parentNode,n,uo(d.O))}s>u?ao(o,null==r[b+1]?null:r[b+1].O,e,r,a,b):a>b&&io(c,s,u)})(r,t,c,n,e):null!==n?(null!==o.m&&(r.textContent=""),ao(r,null,c,n,0,n.length-1)):!e&&null!==t&&io(t,0,t.length-1)):(s=r["s-cr"])?s.parentNode.textContent=l:o.m!==l&&(r.data=l)},bo=[],yo=o=>{let c,e,r;const t=o.__childNodes||o.childNodes;for(const o of t){if(o["s-sr"]&&(c=o["s-cr"])&&c.parentNode){e=c.parentNode.__childNodes||c.parentNode.childNodes;const t=o["s-sn"];for(r=e.length-1;r>=0;r--)if(c=e[r],!(c["s-cn"]||c["s-nr"]||c["s-hn"]===o["s-hn"]||c["s-sh"]&&c["s-sh"]===o["s-hn"]))if(M(c,t)){let e=bo.find((o=>o.k===c));oo=!0,c["s-sn"]=c["s-sn"]||t,e?(e.k["s-sh"]=o["s-hn"],e.M=o):(c["s-sh"]=o["s-hn"],bo.push({M:o,k:c})),c["s-sr"]&&bo.map((o=>{M(o.k,c["s-sn"])&&(e=bo.find((o=>o.k===c)),e&&!o.M&&(o.M=e.M))}))}else bo.some((o=>o.k===c))||bo.push({k:c})}1===o.nodeType&&yo(o)}},go=o=>{o.v&&o.v.ref&&ro.push((()=>o.v.ref(null))),o.h&&o.h.map(go)},mo=(o,c)=>{to.push((()=>o(c)))},vo=(o,c,e,r)=>{if("string"==typeof c["s-sn"]){o.insertBefore(c,e);const{slotNode:t}=function(o,c){var e;if(!(c=c||(null==(e=o["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=N(o)||"";return{slotNode:O(E(c,"childNodes"),c.tagName,r)[0],slotName:r}}(c);return t&&!r&&function(o){o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(t),c}return o.__insertBefore?o.__insertBefore(c,e):null==o?void 0:o.insertBefore(c,e)},xo=(o,c,e=!1)=>{var r,t,n,l,s;const a=o.$hostElement$,f=o.t,d=o.N||T(null,null),p=(o=>o&&o.S===U)(c)?c:R(null,null,c);if(L=a.tagName,f.C&&(p.v=p.v||{},f.C.forEach((([o,c])=>{p.v[c]=a[o]}))),e&&p.v)for(const o of Object.keys(p.v))a.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(p.v[o]=a[o]);if(p.S=null,p.i|=4,o.N=p,p.O=d.O=a.shadowRoot||a,X=!(!(1&f.i)||128&f.i),C=a["s-cr"],oo=!1,po(d,p,e),u.i|=1,co){yo(p.O);for(const o of bo){const c=o.k;if(!c["s-ol"]&&i.document){const o=i.document.createTextNode("");o["s-nr"]=c,vo(c.parentNode,c["s-ol"]=o,c,e)}}for(const o of bo){const c=o.k,s=o.M;if(1===c.nodeType&&e&&(c["s-ih"]=null!=(r=c.hidden)&&r),s){const o=s.parentNode;let r=s.nextSibling;if(r&&1===r.nodeType){let e=null==(t=c["s-ol"])?void 0:t.previousSibling;for(;e;){let t=null!=(n=e["s-nr"])?n:null;if(t&&t["s-sn"]===c["s-sn"]&&o===(t.__parentNode||t.parentNode)){for(t=t.nextSibling;t===c||(null==t?void 0:t["s-sr"]);)t=null==t?void 0:t.nextSibling;if(!t||!t["s-nr"]){r=t;break}}e=e.previousSibling}}if((!r&&o!==(c.__parentNode||c.parentNode)||(c.__nextSibling||c.nextSibling)!==r)&&c!==r){if(vo(o,c,r,e),8===c.nodeType&&c.nodeValue.startsWith("s-nt-")){const o=i.document.createTextNode(c.nodeValue.replace(/^s-nt-/,""));o["s-hn"]=c["s-hn"],o["s-sn"]=c["s-sn"],o["s-sh"]=c["s-sh"],o["s-sr"]=c["s-sr"],o["s-ol"]=c["s-ol"],o["s-ol"]["s-nr"]=o,vo(c.parentNode,o,c,e),c.parentNode.removeChild(c)}1===c.nodeType&&"SLOT-FB"!==c.tagName&&(c.hidden=null!=(l=c["s-ih"])&&l)}c&&"function"==typeof s["s-rf"]&&s["s-rf"](s)}else 1===c.nodeType&&(c.hidden=!0)}}if(oo&&S(p.O),u.i&=-2,bo.length=0,!X&&!(1&f.i)&&a["s-cr"]){const o=p.O.__childNodes||p.O.childNodes;for(const c of o)if(c["s-hn"]!==L&&!c["s-sh"])if(e&&null==c["s-ih"]&&(c["s-ih"]=null!=(s=c.hidden)&&s),1===c.nodeType)c.hidden=!0;else if(3===c.nodeType&&c.nodeValue.trim()){const o=i.document.createComment("s-nt-"+c.nodeValue);o["s-sn"]=c["s-sn"],vo(c.parentNode,o,c,e),c.parentNode.removeChild(c)}}C=void 0,ro.forEach((o=>o())),ro.length=0,to.forEach((o=>o())),to.length=0},ho=(o,c)=>{if(c&&!o.L&&c["s-p"]){const e=c["s-p"].push(new Promise((r=>o.L=()=>{c["s-p"].splice(e-1,1),r()})))}},$o=(o,c)=>{if(o.i|=16,4&o.i)return void(o.i|=512);ho(o,o._);const e=()=>zo(o,c);if(!c)return $(e);queueMicrotask((()=>{e()}))},zo=(o,c)=>{const e=o.$hostElement$,r=e;if(!r)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let t;return t=No(r,c?"componentWillLoad":"componentWillUpdate",void 0,e),t=wo(t,(()=>No(r,"componentWillRender",void 0,e))),wo(t,(()=>So(o,r,c)))},wo=(o,c)=>jo(o)?o.then(c).catch((o=>{console.error(o),c()})):c(),jo=o=>o instanceof Promise||o&&o.then&&"function"==typeof o.then,So=async(o,c,e)=>{var r;const t=o.$hostElement$,n=t["s-rc"];e&&(o=>{const c=o.t,e=o.$hostElement$,r=c.i,t=((o,c)=>{var e,r,t;const n=A(c),l=s.get(n);if(!i.document)return n;if(o=11===o.nodeType?o:i.document,l)if("string"==typeof l){let t,s=_.get(o=o.head||o);if(s||_.set(o,s=new Set),!s.has(n)){t=i.document.createElement("style"),t.textContent=l;const a=null!=(e=u.A)?e:function(){var o,c,e;return null!=(e=null==(c=null==(o=i.document.head)?void 0:o.querySelector('meta[name="csp-nonce"]'))?void 0:c.getAttribute("content"))?e:void 0}();if(null!=a&&t.setAttribute("nonce",a),!(1&c.i))if("HEAD"===o.nodeName){const c=o.querySelectorAll("link[rel=preconnect]"),e=c.length>0?c[c.length-1].nextSibling:o.querySelector("style");o.insertBefore(t,(null==e?void 0:e.parentNode)===o?e:null)}else if("host"in o)if(d){const c=new(null!=(r=o.defaultView)?r:o.ownerDocument.defaultView).CSSStyleSheet;c.replaceSync(l),p?o.adoptedStyleSheets.unshift(c):o.adoptedStyleSheets=[c,...o.adoptedStyleSheets]}else{const c=o.querySelector("style");c?c.textContent=l+c.textContent:o.prepend(t)}else o.append(t);1&c.i&&o.insertBefore(t,null),4&c.i&&(t.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(n)}}else{let c=_.get(o);if(c||_.set(o,c=new Set),!c.has(n)){const e=null!=(t=o.defaultView)?t:o.ownerDocument.defaultView;let r;if(l.constructor===e.CSSStyleSheet)r=l;else{r=new e.CSSStyleSheet;for(let o=0;o<l.cssRules.length;o++)r.insertRule(l.cssRules[o].cssText,o)}p?o.adoptedStyleSheets.push(r):o.adoptedStyleSheets=[...o.adoptedStyleSheets,r],c.add(n)}}return n})(e.shadowRoot?e.shadowRoot:e.getRootNode(),c);10&r&&(e["s-sc"]=t,e.classList.add(t+"-h"))})(o);Oo(o,c,t,e),n&&(n.map((o=>o())),t["s-rc"]=void 0);{const c=null!=(r=t["s-p"])?r:[],e=()=>ko(o);0===c.length?e():(Promise.all(c).then(e).catch(e),o.i|=4,c.length=0)}},Oo=(o,c,e,r)=>{try{c=c.render(),o.i&=-17,o.i|=2,xo(o,c,r)}catch(c){l(c,o.$hostElement$)}return null},ko=o=>{const c=o.$hostElement$,e=c,r=o._;No(e,"componentDidRender",void 0,c),64&o.i?No(e,"componentDidUpdate",void 0,c):(o.i|=64,Eo(c),No(e,"componentDidLoad",void 0,c),o.F(c),r||Mo()),o.L&&(o.L(),o.L=void 0),512&o.i&&h((()=>$o(o,!1))),o.i&=-517},Mo=()=>{h((()=>V(i,"appload",{detail:{namespace:"cobalt"}})))},No=(o,c,e,r)=>{if(o&&o[c])try{return o[c](e)}catch(o){l(o,r)}},Eo=o=>o.classList.add("hydrated"),Co=(o,c,e,r)=>{const n=t(o);if(!n)return;const s=o,a=n.l.get(c),i=n.i,f=s;if(!((e=W(e,r.o[c][0]))===a||Number.isNaN(a)&&Number.isNaN(e))){if(n.l.set(c,e),r.R){const o=r.R[c];o&&o.map((o=>{try{const[[r,t]]=Object.entries(o);(128&i||1&t)&&(f?f[r](e,a,c):n.T.push((()=>{n.U[r](e,a,c)})))}catch(o){l(o,s)}}))}if(2&i){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(e,a,c)&&!(16&i))return;16&i||$o(n,!1)}}},Lo=(o,e)=>{var r,n;const l=o.prototype;{o.watchers&&!e.R&&(e.R=P(o.watchers)),o.deserializers&&!e.q&&(e.q=o.deserializers),o.serializers&&!e.D&&(e.D=o.serializers);const s=Object.entries(null!=(r=e.o)?r:{});s.map((([o,[r]])=>{if(31&r||32&r){const{get:n,set:s}=c(l,o)||{};n&&(e.o[o][0]|=2048),s&&(e.o[o][0]|=4096),Object.defineProperty(l,o,{get(){return n?n.apply(this):((o,c)=>t(this).l.get(c))(0,o)},configurable:!0,enumerable:!0}),Object.defineProperty(l,o,{set(c){const n=t(this);if(n){if(s)return void 0===(32&r?this[o]:n.$hostElement$[o])&&n.l.get(o)&&(c=n.l.get(o)),s.call(this,W(c,r)),void Co(this,o,c=32&r?this[o]:n.$hostElement$[o],e);Co(this,o,c,e)}}})}}));{const c=new Map;l.attributeChangedCallback=function(o,r,n){u.jmp((()=>{var a;const i=c.get(o),f=t(this);if(this.hasOwnProperty(i),l.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==n)return;if(null==i){const c=null==f?void 0:f.i;if(f&&c&&!(8&c)&&n!==r){const t=this,l=null==(a=e.R)?void 0:a[o];null==l||l.forEach((e=>{const[[l,s]]=Object.entries(e);null!=t[l]&&(128&c||1&s)&&t[l].call(t,n,r,o)}))}return}const u=s.find((([o])=>o===i)),d=u&&4&u[1][0],p=d&&null===n&&void 0===this[i];d&&(n=null!==n&&"false"!==n);const b=Object.getOwnPropertyDescriptor(l,i);p||n==this[i]||b.get&&!b.set||(this[i]=n)}))},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(n=e.R)?n:{}),...s.filter((([o,c])=>31&c[0])).map((([o,r])=>{var t;const n=r[1]||o;return c.set(n,o),512&r[0]&&(null==(t=e.C)||t.push([o,n])),n}))]))}}return o},_o=(o,c)=>{const e={i:c[0],p:c[1]};try{e.o=c[2],e.H=c[3],e.R=P(o.R),e.q=o.q,e.D=o.D,e.C=[];const n=o.prototype.connectedCallback,a=o.prototype.disconnectedCallback;return Object.assign(o.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,c)=>{const e={i:0,$hostElement$:o,t:c,l:new Map,P:new Map};e.W=new Promise((o=>e.F=o)),o["s-p"]=[],o["s-rc"]=[];const t=e;o.__stencil__getHostRef=()=>t,512&c.i&&r(o,e)})(this,e)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=t(this);if(!o)return;Ao(this,o,e.H),this.__hasHostListenerAttached=!0}(o=>{if(!(1&u.i)){const c=t(o);if(!c)return;const e=c.t,r=()=>{};if(1&c.i)Ao(o,c,e.H),(null==c?void 0:c.U)||(null==c?void 0:c.W)&&c.W.then((()=>{}));else{c.i|=1,12&e.i&&(o=>{if(!i.document)return;const c=o["s-cr"]=i.document.createComment("");c["s-cn"]=!0,vo(o,c,o.firstChild)})(o);{let e=o;for(;e=e.parentNode||e.host;)if(e["s-p"]){ho(c,c._=e);break}}e.o&&Object.entries(e.o).map((([c,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(o,c)){const e=o[c];delete o[c],o[c]=e}})),(async(o,c,e)=>{let r;try{if(!(32&c.i)&&(c.i|=32,r=o.constructor,customElements.whenDefined(o.localName).then((()=>c.i|=128)),r&&r.style)){let o;"string"==typeof r.style&&(o=r.style);const c=A(e);if(!s.has(c)){const r=()=>{};((o,c,e)=>{let r=s.get(o);d&&e?(r=r||new CSSStyleSheet,"string"==typeof r?r=c:r.replaceSync(c)):r=c,s.set(o,r)})(c,o,!!(1&e.i)),r()}}const t=c._,n=()=>$o(c,!0);t&&t["s-rc"]?t["s-rc"].push(n):n()}catch(e){l(e,o),c.L&&(c.L(),c.L=void 0),c.F&&c.F(o)}})(o,c,e)}r()}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{if(!(1&u.i)){const c=t(o);(null==c?void 0:c.B)&&(c.B.map((o=>o())),c.B=void 0)}_.has(o)&&_.delete(o),o.shadowRoot&&_.has(o.shadowRoot)&&_.delete(o.shadowRoot)})(this),a&&a.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${e.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else j.call(this,e)}}),Object.defineProperty(o,"is",{value:e.p,configurable:!0}),Lo(o,e)}catch(c){return l(c),o}},Ao=(o,c,e)=>{e&&i.document&&e.map((([e,r,t])=>{const n=Ro(i.document,o,e),l=Fo(c,t),s=To(e);u.ael(n,r,l,s),(c.B=c.B||[]).push((()=>u.rel(n,r,l,s)))}))},Fo=(o,c)=>e=>{try{o.$hostElement$[c](e)}catch(c){l(c,o.$hostElement$)}},Ro=(o,c,e)=>4&e?o:c,To=o=>({passive:!!(1&o),capture:!!(2&o)}),Uo=o=>u.A=o,qo=o=>Object.assign(u,o),Do=new WeakMap;function Ho(o,c){let e=Do.get(c);e||(e={i:0,t:{i:0,p:c.tagName},$hostElement$:c},Do.set(c,e)),xo(e,o)}function Po(o){return o}export{f as H,U as a,B as c,z as getAssetPath,R as h,_o as p,Ho as render,w as setAssetPath,Uo as setNonce,qo as setPlatformOptions,Po as t}
|
|
1
|
+
const o=":root{--co-color-base-negro:#1f1c1b;--co-color-base-blanco:#ffffff;--co-color-base-off-white:#f7f6f0;--co-color-primary-verde:#02a270;--co-color-primary-amarillo:#fdbf00;--co-color-primary-azul:#2563eb;--co-color-primary-rosado:#f32a73;--co-color-azul-100:#eff4ff;--co-color-azul-200:#dbe6fe;--co-color-azul-300:#bfd3fe;--co-color-azul-400:#93b4fd;--co-color-azul-500:#6090fa;--co-color-azul-600:#3b76f6;--co-color-azul-700:#2563eb;--co-color-azul-800:#1d58d8;--co-color-azul-900:#1e408a;--co-color-rosado-100:#fef1f6;--co-color-rosado-200:#fde6f0;--co-color-rosado-300:#fdcde2;--co-color-rosado-400:#fda4c8;--co-color-rosado-500:#fb6ba3;--co-color-rosado-600:#f32a73;--co-color-rosado-700:#e41e5c;--co-color-rosado-800:#c61044;--co-color-rosado-900:#a41039;--co-color-amarillo-100:#ffffea;--co-color-amarillo-200:#fffbc5;--co-color-amarillo-300:#fff885;--co-color-amarillo-400:#ffe01b;--co-color-amarillo-500:#fdbf00;--co-color-amarillo-600:#e29500;--co-color-amarillo-700:#bb6902;--co-color-amarillo-800:#985108;--co-color-amarillo-900:#7c420b;--co-color-verde-100:#ecfdf5;--co-color-verde-200:#d0fbe5;--co-color-verde-300:#a5f5d0;--co-color-verde-400:#6beab8;--co-color-verde-500:#31d69a;--co-color-verde-600:#0cbd82;--co-color-verde-700:#02a270;--co-color-verde-800:#027a58;--co-color-verde-900:#046147;--co-color-neutral-100:#e6e5df;--co-color-neutral-200:#eeede7;--co-color-neutral-300:#f3f2ec;--co-color-gray-100:#f6f6f6;--co-color-gray-200:#e3e3e3;--co-color-gray-300:#c4c4c4;--co-color-gray-400:#a0a0a0;--co-color-gray-500:#888888;--co-color-gray-600:#585858;--co-color-gray-700:#1f1c1b;--co-color-gray-800:#0a0a0a;--co-color-secondary-rosado-100:#d74ba0;--co-color-secondary-rosado-50:#ffc8eb;--co-color-secondary-rosado-25:#ffe6f5;--co-color-secondary-rojo-100:#eb1e1e;--co-color-secondary-rojo-50:#ff878c;--co-color-secondary-rojo-25:#ffd7dc;--co-color-secondary-naranja-100:#f0821e;--co-color-secondary-naranja-50:#ffbe82;--co-color-secondary-naranja-25:#ffe6d2;--co-color-secondary-amarillo-100:#fad223;--co-color-secondary-amarillo-50:#ffe67d;--co-color-secondary-amarillo-25:#fffac3;--co-color-secondary-verde-100:#afe664;--co-color-secondary-verde-50:#d7ffb4;--co-color-secondary-verde-25:#ebffc8;--co-color-secondary-oliva-100:#aab43c;--co-color-secondary-oliva-50:#d2dc96;--co-color-secondary-oliva-25:#f0f0d2;--co-color-secondary-turquesa-100:#00afaf;--co-color-secondary-turquesa-50:#3ce1c8;--co-color-secondary-turquesa-25:#c8f0f0;--co-color-secondary-azul-claro-100:#00bee6;--co-color-secondary-azul-claro-50:#6ee6f0;--co-color-secondary-azul-claro-25:#befaff;--co-color-secondary-azul-electrico-100:#000aff;--co-color-secondary-azul-electrico-50:#8095ff;--co-color-secondary-azul-electrico-25:#cce0ff;--co-color-secondary-violeta-100:#5f4bd7;--co-color-secondary-violeta-50:#b9b4ff;--co-color-secondary-violeta-25:#e1e1ff;--co-color-secondary-marron-100:#af7355;--co-color-secondary-marron-50:#d7b9a5;--co-color-secondary-marron-25:#f0e1d7;--co-color-secondary-guinda-100:#811137;--co-color-secondary-guinda-50:#c0889c;--co-color-secondary-guinda-25:#e6cfd7;--co-color-status-success:#0a7724;--co-color-status-bg-success:#ebf9ec;--co-color-status-progress:#2d6cc5;--co-color-status-bg-progress:#eef3fa;--co-color-status-submitted:#7556ca;--co-color-status-bg-submitted:#f4f1fb;--co-color-status-review:#85571f;--co-color-status-bg-review:#fcf5db;--co-color-status-pending:#b45103;--co-color-status-bg-pending:#f9f1eb;--co-color-status-error:#aa2e1b;--co-color-status-bg-error:#ffefef;--co-color-opacity-negro-4:rgba(31, 28, 27, 0.04);--co-color-opacity-negro-8:rgba(31, 28, 27, 0.08);--co-color-opacity-negro-16:rgba(31, 28, 27, 0.16);--co-color-opacity-negro-25:rgba(31, 28, 27, 0.25);--co-color-opacity-negro-50:rgba(31, 28, 27, 0.50);--co-color-opacity-negro-80:rgba(31, 28, 27, 0.80);--co-color-opacity-blanco-4:rgba(255, 255, 255, 0.04);--co-color-opacity-blanco-8:rgba(255, 255, 255, 0.08);--co-color-opacity-blanco-16:rgba(255, 255, 255, 0.16);--co-color-opacity-blanco-25:rgba(255, 255, 255, 0.25);--co-color-opacity-blanco-50:rgba(255, 255, 255, 0.50);--co-color-opacity-blanco-80:rgba(255, 255, 255, 0.80);--co-border-radius-xxs:4px;--co-border-radius-xs:8px;--co-border-radius-sm:12px;--co-border-radius-lg:16px;--co-border-radius-xl:24px;--co-border-radius-2xl:32px;--co-border-radius-3xl:40px;--co-border-radius-4xl:48px;--co-border-radius-5xl:56px;--co-border-radius-6xl:64px;--co-border-radius-full:9999px;--co-shadow-sm:0 1px 2px 0 rgba(26, 26, 26, 0.04);--co-shadow-lg:0 10px 15px -3px rgba(26, 26, 26, 0.05), 0 4px 6px -4px rgba(26, 26, 26, 0.05);--co-spacing-xxs:2px;--co-spacing-xs:4px;--co-spacing-sm:6px;--co-spacing-sm2:8px;--co-spacing-md:12px;--co-spacing-lg:16px;--co-spacing-xl:20px;--co-spacing-2xl:24px;--co-spacing-3xl:32px;--co-spacing-4xl:40px;--co-spacing-5xl:48px;--co-spacing-6xl:56px;--co-spacing-7xl:64px;--co-spacing-8xl:72px;--co-spacing-9xl:80px;--co-spacing-10xl:88px;--co-spacing-11xl:96px;--co-spacing-12xl:104px;--co-spacing-13xl:112px;--co-spacing-14xl:120px;--co-spacing-full:9999px;--co-font-family-primary:'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--co-font-family-mono:'Geist Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;--co-font-size-10:10px;--co-font-size-12:12px;--co-font-size-14:14px;--co-font-size-16:16px;--co-font-size-18:18px;--co-font-size-20:20px;--co-font-size-22:22px;--co-font-size-24:24px;--co-font-size-26:26px;--co-font-size-30:30px;--co-font-size-32:32px;--co-font-size-36:36px;--co-font-size-40:40px;--co-font-size-44:44px;--co-font-size-48:48px;--co-font-size-50:50px;--co-font-size-56:56px;--co-font-size-64:64px;--co-font-size-72:72px;--co-font-size-80:80px;--co-font-size-96:96px;--co-font-size-104:104px;--co-font-size-112:112px;--co-font-size-128:128px;--co-font-size-144:144px;--co-font-size-160:160px;--co-font-size-180:180px;--co-font-size-200:200px;--co-font-size-220:220px;--co-font-weight-regular:400;--co-font-weight-medium:500;--co-font-weight-semibold:600;--co-font-weight-bold:700;--co-font-line-height-none:1;--co-font-line-height-tight:1.2;--co-font-line-height-snug:1.3;--co-font-line-height-normal:1.5;--co-font-line-height-relaxed:1.6;--co-font-letter-spacing-body:-0.03em;--co-font-letter-spacing-overline:0.08em;--co-semantic-surface-primary:var(--co-color-base-negro);--co-semantic-surface-inverse:var(--co-semantic-surface-primary);--co-semantic-surface-secondary:var(--co-color-base-blanco);--co-semantic-surface-page:var(--co-color-base-blanco);--co-semantic-surface-muted:var(--co-color-gray-200);--co-semantic-surface-hover:var(--co-color-opacity-negro-4);--co-semantic-surface-disabled:var(--co-color-gray-100);--co-semantic-on-primary:var(--co-color-base-blanco);--co-semantic-on-secondary:var(--co-color-base-negro);--co-semantic-text-default:var(--co-color-base-negro);--co-semantic-text-inverse:var(--co-color-base-blanco);--co-semantic-text-secondary:var(--co-color-gray-600);--co-semantic-text-muted:var(--co-color-gray-500);--co-semantic-text-disabled:var(--co-color-gray-400);--co-semantic-border-default:var(--co-color-opacity-negro-16);--co-semantic-border-subtle:var(--co-color-opacity-negro-8);--co-semantic-border-strong:var(--co-color-opacity-negro-50);--co-semantic-border-focus:var(--co-color-opacity-negro-25);--co-semantic-border-focus-ring:var(--co-color-opacity-negro-8);--co-semantic-control-thumb:var(--co-color-base-blanco);--co-semantic-control-shadow:var(--co-color-opacity-negro-16);--co-semantic-status-success:var(--co-color-status-success);--co-semantic-status-error:var(--co-color-status-error);--co-semantic-status-warning:var(--co-color-primary-amarillo);--co-semantic-status-info:var(--co-color-status-progress);--co-glass-blur:12px;--co-glass-saturate:1.3;--co-glass-panel-blur:18px}:root{--co-color-negro:var(--co-color-base-negro);--co-color-blanco:var(--co-color-base-blanco);--co-color-neutral-beige:var(--co-color-base-off-white);--co-color-secondary-rojo:var(--co-color-secondary-rojo-100);--co-color-secondary-naranja:var(--co-color-secondary-naranja-100);--co-color-secondary-oliva:var(--co-color-secondary-oliva-100);--co-color-secondary-violeta:var(--co-color-secondary-violeta-100);--co-color-secondary-marron:var(--co-color-secondary-marron-100);--co-color-status-success-bg:var(--co-color-status-bg-success);--co-font-family:var(--co-font-family-primary);--co-font-size-11:11px;--co-font-size-13:13px;--co-font-size-28:28px}";function c(o,c,e){const r="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;o&&o!==r;){const r=Object.getOwnPropertyDescriptor(o,c);if(r&&(!e||r.get))return r;o=Object.getPrototypeOf(o)}}var e,r=(o,e)=>{var r;Object.entries(null!=(r=e.t.o)?r:{}).map((([r,[t]])=>{if(31&t||32&t){const t=o[r],n=c(Object.getPrototypeOf(o),r,!0)||Object.getOwnPropertyDescriptor(o,r);n&&Object.defineProperty(o,r,{get(){return n.get.call(this)},set(o){n.set.call(this,o)},configurable:!0,enumerable:!0}),e.l.has(r)?o[r]=e.l.get(r):void 0!==t&&(o[r]=t)}}))},t=o=>{if(o.__stencil__getHostRef)return o.__stencil__getHostRef()},n=(o,c)=>c in o,l=(o,c)=>(0,console.error)(o,c),s=new Map,a="http://www.w3.org/1999/xlink",i="undefined"!=typeof window?window:{},f=i.HTMLElement||class{},u={i:0,u:"",jmp:o=>o(),raf:o=>requestAnimationFrame(o),ael:(o,c,e,r)=>o.addEventListener(c,e,r),rel:(o,c,e,r)=>o.removeEventListener(c,e,r),ce:(o,c)=>new CustomEvent(o,c)},d=(()=>{try{return!!i.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(o){}return!1})(),p=!!d&&(()=>!!i.document&&Object.getOwnPropertyDescriptor(i.document.adoptedStyleSheets,"length").writable)(),b=!1,y=[],g=[],m=(o,c)=>e=>{o.push(e),b||(b=!0,c&&4&u.i?h(x):u.raf(x))},v=o=>{for(let c=0;c<o.length;c++)try{o[c](performance.now())}catch(o){l(o)}o.length=0},x=()=>{v(y),v(g),(b=y.length>0)&&u.raf(x)},h=o=>Promise.resolve(void 0).then(o),w=m(g,!0),$=o=>{const c=new URL(o,u.u);return c.origin!==i.location.origin?c.href:c.pathname},z=o=>u.u=o;function j(){var c;const r=this.attachShadow({mode:"open"});if(void 0===e&&(e=null!=(c=function(o){if(!d)return;const c=new CSSStyleSheet;return c.replaceSync(o),c}(o))?c:null),e)p?r.adoptedStyleSheets.push(e):r.adoptedStyleSheets=[...r.adoptedStyleSheets,e];else if(!d){const c=document.createElement("style");c.innerHTML=o,r.prepend(c)}}var O=o=>{const c=E(o,"childNodes");o.tagName&&o.tagName.includes("-")&&o["s-cr"]&&"SLOT-FB"!==o.tagName&&S(c,o.tagName).forEach((o=>{1===o.nodeType&&"SLOT-FB"===o.tagName&&(o.hidden=!!k(o,N(o),!1).length)}));let e=0;for(e=0;e<c.length;e++){const o=c[e];1===o.nodeType&&E(o,"childNodes").length&&O(o)}};function S(o,c,e){let r,t=0,n=[];for(;t<o.length;t++){if(r=o[t],r["s-sr"]&&(!c||r["s-hn"]===c)&&(void 0===e||N(r)===e)&&(n.push(r),void 0!==e))return n;n=[...n,...S(r.childNodes,c,e)]}return n}var k=(o,c,e=!0)=>{const r=[];(e&&o["s-sr"]||!o["s-sr"])&&r.push(o);let t=o;for(;t=t.nextSibling;)N(t)!==c||!e&&t["s-sr"]||r.push(t);return r},M=(o,c)=>1===o.nodeType?null===o.getAttribute("slot")&&""===c||o.getAttribute("slot")===c:o["s-sn"]===c||""===c,N=o=>"string"==typeof o["s-sn"]?o["s-sn"]:1===o.nodeType&&o.getAttribute("slot")||void 0;function E(o,c){if("__"+c in o){const e=o["__"+c];return"function"!=typeof e?e:e.bind(o)}return"function"!=typeof o[c]?o[c]:o[c].bind(o)}var C,L,_=new WeakMap,A=o=>"sc-"+o.p,F=o=>"object"==(o=typeof o)||"function"===o,R=(o,c,...e)=>{let r=null,t=null,n=null,l=!1,s=!1;const a=[],i=c=>{for(let e=0;e<c.length;e++)r=c[e],Array.isArray(r)?i(r):null!=r&&"boolean"!=typeof r&&((l="function"!=typeof o&&!F(r))&&(r+=""),l&&s?a[a.length-1].m+=r:a.push(l?T(null,r):r),s=l)};if(i(e),c){c.key&&(t=c.key),c.name&&(n=c.name);{const o=c.className||c.class;o&&(c.class="object"!=typeof o?o:Object.keys(o).filter((c=>o[c])).join(" "))}}if("function"==typeof o)return o(null===c?{}:c,a,q);const f=T(o,null);return f.v=c,a.length>0&&(f.h=a),f.$=t,f.j=n,f},T=(o,c)=>({i:0,O:o,m:null!=c?c:null,S:null,h:null,v:null,$:null,j:null}),U={},q={forEach:(o,c)=>o.map(D).forEach(c),map:(o,c)=>o.map(D).map(c).map(H)},D=o=>({vattrs:o.v,vchildren:o.h,vkey:o.$,vname:o.j,vtag:o.O,vtext:o.m}),H=o=>{if("function"==typeof o.vtag){const c={...o.vattrs};return o.vkey&&(c.key=o.vkey),o.vname&&(c.name=o.vname),R(o.vtag,c,...o.vchildren||[])}const c=T(o.vtag,o.vtext);return c.v=o.vattrs,c.h=o.vchildren,c.$=o.vkey,c.j=o.vname,c},P=o=>{if(!o)return;const c=Object.keys(o);if(0===c.length)return;let e=!1;for(const r of c){if(e)break;for(const c of o[r])if("string"==typeof c){e=!0;break}}if(!e)return o;const r={};for(const e of c)r[e]=o[e].map((o=>"string"==typeof o?{[o]:0}:o));return r},W=(o,c)=>null==o||F(o)?o:4&c?"false"!==o&&(""===o||!!o):2&c?"string"==typeof o?parseFloat(o):"number"==typeof o?o:NaN:1&c?o+"":o,B=(o,c,e)=>{const r=o;return{emit:o=>V(r,c,{bubbles:!!(4&e),composed:!!(2&e),cancelable:!!(1&e),detail:o})}},V=(o,c,e)=>{const r=u.ce(c,e);return o.dispatchEvent(r),r},G=(o,c,e,r,l,s)=>{if(e===r)return;let f=n(o,c),d=c.toLowerCase();if("class"===c){const c=o.classList,t=Y(e);let n=Y(r);c.remove(...t.filter((o=>o&&!n.includes(o)))),c.add(...n.filter((o=>o&&!t.includes(o))))}else if("style"===c){for(const c in e)r&&null!=r[c]||(c.includes("-")?o.style.removeProperty(c):o.style[c]="");for(const c in r)e&&r[c]===e[c]||(c.includes("-")?o.style.setProperty(c,r[c]):o.style[c]=r[c])}else if("key"===c);else if("ref"===c)r&&mo(r,o);else if(o.__lookupSetter__(c)||"o"!==c[0]||"n"!==c[1]){if("a"===c[0]&&c.startsWith("attr:")){const e=c.slice(5);let n;{const c=t(o);if(c&&c.t&&c.t.o){const o=c.t.o[e];o&&o[1]&&(n=o[1])}}return n||(n=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==r||!1===r?!1===r&&""!==o.getAttribute(n)||o.removeAttribute(n):o.setAttribute(n,!0===r?"":r))}if("p"===c[0]&&c.startsWith("prop:")){const e=c.slice(5);try{o[e]=r}catch(o){}return}{const t=F(r);if((f||t&&null!==r)&&!l)try{if(o.tagName.includes("-"))o[c]!==r&&(o[c]=r);else{const t=null==r?"":r;"list"===c?f=!1:null!=e&&o[c]===t||("function"==typeof o.__lookupSetter__(c)?o[c]=t:o.setAttribute(c,t))}}catch(o){}let n=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(c=d,n=!0),null==r||!1===r?!1===r&&""!==o.getAttribute(c)||(n?o.removeAttributeNS(a,c):o.removeAttribute(c)):(!f||4&s||l)&&!t&&1===o.nodeType&&(r=!0===r?"":r,n?o.setAttributeNS(a,c,r):o.setAttribute(c,r))}}else if(c="-"===c[2]?c.slice(3):n(i,d)?d.slice(2):d[2]+c.slice(3),e||r){const t=c.endsWith(Z);c=c.replace(J,""),e&&u.rel(o,c,e,t),r&&u.ael(o,c,r,t)}},I=/\s/,Y=o=>("object"==typeof o&&o&&"baseVal"in o&&(o=o.baseVal),o&&"string"==typeof o?o.split(I):[]),Z="Capture",J=RegExp(Z+"$"),K=(o,c,e)=>{const r=11===c.S.nodeType&&c.S.host?c.S.host:c.S,t=o&&o.v||{},n=c.v||{};for(const o of Q(Object.keys(t)))o in n||G(r,o,t[o],void 0,e,c.i);for(const o of Q(Object.keys(n)))G(r,o,t[o],n[o],e,c.i)};function Q(o){return o.includes("ref")?[...o.filter((o=>"ref"!==o)),"ref"]:o}var X=!1,oo=!1,co=!1,eo=!1,ro=[],to=[],no=(o,c,e)=>{var r;const t=c.h[e];let n,l,s,a=0;if(X||(co=!0,"slot"===t.O&&(t.i|=t.h?2:1)),null!=t.m)n=t.S=i.document.createTextNode(t.m);else if(1&t.i)n=t.S=i.document.createTextNode(""),K(null,t,eo);else{if(eo||(eo="svg"===t.O),!i.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(n=t.S=i.document.createElementNS(eo?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!X&&2&t.i?"slot-fb":t.O),eo&&"foreignObject"===t.O&&(eo=!1),K(null,t,eo),t.h){const c="template"===t.O?n.content:n;for(a=0;a<t.h.length;++a)l=no(o,t,a),l&&c.appendChild(l)}"svg"===t.O?eo=!1:"foreignObject"===n.tagName&&(eo=!0)}return n["s-hn"]=L,3&t.i&&(n["s-sr"]=!0,n["s-cr"]=C,n["s-sn"]=t.j||"",n["s-rf"]=null==(r=t.v)?void 0:r.ref,function(o){if(o.assignedElements||o.assignedNodes||!o["s-sr"])return;const c=c=>function(o){const e=[],r=this["s-sn"];(null==o?void 0:o.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const t=this["s-cr"].parentElement;return(t.__childNodes?t.childNodes:(o=>{const c=[];for(let e=0;e<o.length;e++){const r=o[e]["s-nr"]||void 0;r&&r.isConnected&&c.push(r)}return c})(t.childNodes)).forEach((o=>{r===N(o)&&e.push(o)})),c?e.filter((o=>1===o.nodeType)):e}.bind(o);o.assignedElements=c(!0),o.assignedNodes=c(!1)}(n),s=o&&o.h&&o.h[e],s&&s.O===t.O&&o.S&&lo(o.S)),n},lo=o=>{u.i|=1;const c=o.closest(L.toLowerCase());if(null!=c){const e=Array.from(c.__childNodes||c.childNodes).find((o=>o["s-cr"])),r=Array.from(o.__childNodes||o.childNodes);for(const o of e?r.reverse():r)null!=o["s-sh"]&&(vo(c,o,null!=e?e:null),o["s-sh"]=void 0,co=!0)}u.i&=-2},so=(o,c)=>{u.i|=1;const e=Array.from(o.__childNodes||o.childNodes);if(o["s-sr"]){let c=o;for(;c=c.nextSibling;)c&&c["s-sn"]===o["s-sn"]&&c["s-sh"]===L&&e.push(c)}for(let o=e.length-1;o>=0;o--){const r=e[o];r["s-hn"]!==L&&r["s-ol"]&&(vo(uo(r).parentNode,r,uo(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,co=!0),c&&so(r,c)}u.i&=-2},ao=(o,c,e,r,t,n)=>{let l,s=o["s-cr"]&&o["s-cr"].parentNode||o;for(s.shadowRoot&&s.tagName===L&&(s=s.shadowRoot),"template"===e.O&&(s=s.content);t<=n;++t)r[t]&&(l=no(null,e,t),l&&(r[t].S=l,vo(s,l,uo(c))))},io=(o,c,e)=>{for(let r=c;r<=e;++r){const c=o[r];if(c){const o=c.S;go(c),o&&(oo=!0,o["s-ol"]?o["s-ol"].remove():so(o,!0),o.remove())}}},fo=(o,c,e=!1)=>o.O===c.O&&("slot"===o.O?o.j===c.j:e?(e&&!o.$&&c.$&&(o.$=c.$),!0):o.$===c.$),uo=o=>o&&o["s-ol"]||o,po=(o,c,e=!1)=>{const r=c.S=o.S,t=o.h,n=c.h,l=c.O,s=c.m;let a;null==s?(eo="svg"===l||"foreignObject"!==l&&eo,"slot"!==l||X||o.j!==c.j&&(c.S["s-sn"]=c.j||"",lo(c.S.parentElement)),K(o,c,eo),null!==t&&null!==n?((o,c,e,r,t=!1)=>{let n,l,s=0,a=0,i=0,f=0,u=c.length-1,d=c[0],p=c[u],b=r.length-1,y=r[0],g=r[b];const m="template"===e.O?o.content:o;for(;s<=u&&a<=b;)if(null==d)d=c[++s];else if(null==p)p=c[--u];else if(null==y)y=r[++a];else if(null==g)g=r[--b];else if(fo(d,y,t))po(d,y,t),d=c[++s],y=r[++a];else if(fo(p,g,t))po(p,g,t),p=c[--u],g=r[--b];else if(fo(d,g,t))"slot"!==d.O&&"slot"!==g.O||so(d.S.parentNode,!1),po(d,g,t),vo(m,d.S,p.S.nextSibling),d=c[++s],g=r[--b];else if(fo(p,y,t))"slot"!==d.O&&"slot"!==g.O||so(p.S.parentNode,!1),po(p,y,t),vo(m,p.S,d.S),p=c[--u],y=r[++a];else{for(i=-1,f=s;f<=u;++f)if(c[f]&&null!==c[f].$&&c[f].$===y.$){i=f;break}i>=0?(l=c[i],l.O!==y.O?n=no(c&&c[a],e,i):(po(l,y,t),c[i]=void 0,n=l.S),y=r[++a]):(n=no(c&&c[a],e,a),y=r[++a]),n&&vo(uo(d.S).parentNode,n,uo(d.S))}s>u?ao(o,null==r[b+1]?null:r[b+1].S,e,r,a,b):a>b&&io(c,s,u)})(r,t,c,n,e):null!==n?(null!==o.m&&(r.textContent=""),ao(r,null,c,n,0,n.length-1)):!e&&null!==t&&io(t,0,t.length-1),eo&&"svg"===l&&(eo=!1)):(a=r["s-cr"])?a.parentNode.textContent=s:o.m!==s&&(r.data=s)},bo=[],yo=o=>{let c,e,r;const t=o.__childNodes||o.childNodes;for(const o of t){if(o["s-sr"]&&(c=o["s-cr"])&&c.parentNode){e=c.parentNode.__childNodes||c.parentNode.childNodes;const t=o["s-sn"];for(r=e.length-1;r>=0;r--)if(c=e[r],!(c["s-cn"]||c["s-nr"]||c["s-hn"]===o["s-hn"]||c["s-sh"]&&c["s-sh"]===o["s-hn"]))if(M(c,t)){let e=bo.find((o=>o.k===c));oo=!0,c["s-sn"]=c["s-sn"]||t,e?(e.k["s-sh"]=o["s-hn"],e.M=o):(c["s-sh"]=o["s-hn"],bo.push({M:o,k:c})),c["s-sr"]&&bo.map((o=>{M(o.k,c["s-sn"])&&(e=bo.find((o=>o.k===c)),e&&!o.M&&(o.M=e.M))}))}else bo.some((o=>o.k===c))||bo.push({k:c})}1===o.nodeType&&yo(o)}},go=o=>{o.v&&o.v.ref&&ro.push((()=>o.v.ref(null))),o.h&&o.h.map(go)},mo=(o,c)=>{to.push((()=>o(c)))},vo=(o,c,e,r)=>{if("string"==typeof c["s-sn"]){o.insertBefore(c,e);const{slotNode:t}=function(o,c){var e;if(!(c=c||(null==(e=o["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=N(o)||"";return{slotNode:S(E(c,"childNodes"),c.tagName,r)[0],slotName:r}}(c);return t&&!r&&function(o){o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(t),c}return o.__insertBefore?o.__insertBefore(c,e):null==o?void 0:o.insertBefore(c,e)},xo=(o,c,e=!1)=>{var r,t,n,l,s;const a=o.$hostElement$,f=o.t,d=o.N||T(null,null),p=(o=>o&&o.O===U)(c)?c:R(null,null,c);if(L=a.tagName,f.C&&(p.v=p.v||{},f.C.forEach((([o,c])=>{p.v[c]=a[o]}))),e&&p.v)for(const o of Object.keys(p.v))a.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(p.v[o]=a[o]);if(p.O=null,p.i|=4,o.N=p,p.S=d.S=a.shadowRoot||a,X=!(!(1&f.i)||128&f.i),C=a["s-cr"],oo=!1,po(d,p,e),u.i|=1,co){yo(p.S);for(const o of bo){const c=o.k;if(!c["s-ol"]&&i.document){const o=i.document.createTextNode("");o["s-nr"]=c,vo(c.parentNode,c["s-ol"]=o,c,e)}}for(const o of bo){const c=o.k,s=o.M;if(1===c.nodeType&&e&&(c["s-ih"]=null!=(r=c.hidden)&&r),s){const o=s.parentNode;let r=s.nextSibling;if(r&&1===r.nodeType){let e=null==(t=c["s-ol"])?void 0:t.previousSibling;for(;e;){let t=null!=(n=e["s-nr"])?n:null;if(t&&t["s-sn"]===c["s-sn"]&&o===(t.__parentNode||t.parentNode)){for(t=t.nextSibling;t===c||(null==t?void 0:t["s-sr"]);)t=null==t?void 0:t.nextSibling;if(!t||!t["s-nr"]){r=t;break}}e=e.previousSibling}}if((!r&&o!==(c.__parentNode||c.parentNode)||(c.__nextSibling||c.nextSibling)!==r)&&c!==r){if(vo(o,c,r,e),8===c.nodeType&&c.nodeValue.startsWith("s-nt-")){const o=i.document.createTextNode(c.nodeValue.replace(/^s-nt-/,""));o["s-hn"]=c["s-hn"],o["s-sn"]=c["s-sn"],o["s-sh"]=c["s-sh"],o["s-sr"]=c["s-sr"],o["s-ol"]=c["s-ol"],o["s-ol"]["s-nr"]=o,vo(c.parentNode,o,c,e),c.parentNode.removeChild(c)}1===c.nodeType&&"SLOT-FB"!==c.tagName&&(c.hidden=null!=(l=c["s-ih"])&&l)}c&&"function"==typeof s["s-rf"]&&s["s-rf"](s)}else 1===c.nodeType&&(c.hidden=!0)}}if(oo&&O(p.S),u.i&=-2,bo.length=0,!X&&!(1&f.i)&&a["s-cr"]){const o=p.S.__childNodes||p.S.childNodes;for(const c of o)if(c["s-hn"]!==L&&!c["s-sh"])if(e&&null==c["s-ih"]&&(c["s-ih"]=null!=(s=c.hidden)&&s),1===c.nodeType)c.hidden=!0;else if(3===c.nodeType&&c.nodeValue.trim()){const o=i.document.createComment("s-nt-"+c.nodeValue);o["s-sn"]=c["s-sn"],vo(c.parentNode,o,c,e),c.parentNode.removeChild(c)}}C=void 0,ro.forEach((o=>o())),ro.length=0,to.forEach((o=>o())),to.length=0},ho=(o,c)=>{if(c&&!o.L&&c["s-p"]){const e=c["s-p"].push(new Promise((r=>o.L=()=>{c["s-p"].splice(e-1,1),r()})))}},wo=(o,c)=>{if(o.i|=16,4&o.i)return void(o.i|=512);ho(o,o._);const e=()=>$o(o,c);if(!c)return w(e);queueMicrotask((()=>{e()}))},$o=(o,c)=>{const e=o.$hostElement$,r=e;if(!r)throw Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let t;return t=No(r,c?"componentWillLoad":"componentWillUpdate",void 0,e),t=zo(t,(()=>No(r,"componentWillRender",void 0,e))),zo(t,(()=>Oo(o,r,c)))},zo=(o,c)=>jo(o)?o.then(c).catch((o=>{console.error(o),c()})):c(),jo=o=>o instanceof Promise||o&&o.then&&"function"==typeof o.then,Oo=async(o,c,e)=>{var r;const t=o.$hostElement$,n=t["s-rc"];e&&(o=>{const c=o.t,e=o.$hostElement$,r=c.i,t=((o,c)=>{var e,r,t;const n=A(c),l=s.get(n);if(!i.document)return n;if(o=11===o.nodeType?o:i.document,l)if("string"==typeof l){let t,s=_.get(o=o.head||o);if(s||_.set(o,s=new Set),!s.has(n)){t=i.document.createElement("style"),t.textContent=l;const a=null!=(e=u.A)?e:function(){var o,c,e;return null!=(e=null==(c=null==(o=i.document.head)?void 0:o.querySelector('meta[name="csp-nonce"]'))?void 0:c.getAttribute("content"))?e:void 0}();if(null!=a&&t.setAttribute("nonce",a),!(1&c.i))if("HEAD"===o.nodeName){const c=o.querySelectorAll("link[rel=preconnect]"),e=c.length>0?c[c.length-1].nextSibling:o.querySelector("style");o.insertBefore(t,(null==e?void 0:e.parentNode)===o?e:null)}else if("host"in o)if(d){const c=new(null!=(r=o.defaultView)?r:o.ownerDocument.defaultView).CSSStyleSheet;c.replaceSync(l),p?o.adoptedStyleSheets.unshift(c):o.adoptedStyleSheets=[c,...o.adoptedStyleSheets]}else{const c=o.querySelector("style");c?c.textContent=l+c.textContent:o.prepend(t)}else o.append(t);1&c.i&&o.insertBefore(t,null),4&c.i&&(t.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(n)}}else{let c=_.get(o);if(c||_.set(o,c=new Set),!c.has(n)){const e=null!=(t=o.defaultView)?t:o.ownerDocument.defaultView;let r;if(l.constructor===e.CSSStyleSheet)r=l;else{r=new e.CSSStyleSheet;for(let o=0;o<l.cssRules.length;o++)r.insertRule(l.cssRules[o].cssText,o)}p?o.adoptedStyleSheets.push(r):o.adoptedStyleSheets=[...o.adoptedStyleSheets,r],c.add(n)}}return n})(e.shadowRoot?e.shadowRoot:e.getRootNode(),c);10&r&&(e["s-sc"]=t,e.classList.add(t+"-h"))})(o);So(o,c,t,e),n&&(n.map((o=>o())),t["s-rc"]=void 0);{const c=null!=(r=t["s-p"])?r:[],e=()=>ko(o);0===c.length?e():(Promise.all(c).then(e).catch(e),o.i|=4,c.length=0)}},So=(o,c,e,r)=>{try{c=c.render(),o.i&=-17,o.i|=2,xo(o,c,r)}catch(c){l(c,o.$hostElement$)}return null},ko=o=>{const c=o.$hostElement$,e=c,r=o._;No(e,"componentDidRender",void 0,c),64&o.i?No(e,"componentDidUpdate",void 0,c):(o.i|=64,Eo(c),No(e,"componentDidLoad",void 0,c),o.F(c),r||Mo()),o.L&&(o.L(),o.L=void 0),512&o.i&&h((()=>wo(o,!1))),o.i&=-517},Mo=()=>{h((()=>V(i,"appload",{detail:{namespace:"cobalt"}})))},No=(o,c,e,r)=>{if(o&&o[c])try{return o[c](e)}catch(o){l(o,r)}},Eo=o=>o.classList.add("hydrated"),Co=(o,c,e,r)=>{const n=t(o);if(!n)return;const s=o,a=n.l.get(c),i=n.i,f=s;if(!((e=W(e,r.o[c][0]))===a||Number.isNaN(a)&&Number.isNaN(e))){if(n.l.set(c,e),r.R){const o=r.R[c];o&&o.map((o=>{try{const[[r,t]]=Object.entries(o);(128&i||1&t)&&(f?f[r](e,a,c):n.T.push((()=>{n.U[r](e,a,c)})))}catch(o){l(o,s)}}))}if(2&i){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(e,a,c)&&!(16&i))return;16&i||wo(n,!1)}}},Lo=(o,e)=>{var r,n;const l=o.prototype;{o.watchers&&!e.R&&(e.R=P(o.watchers)),o.deserializers&&!e.q&&(e.q=o.deserializers),o.serializers&&!e.D&&(e.D=o.serializers);const s=Object.entries(null!=(r=e.o)?r:{});s.map((([o,[r]])=>{if(31&r||32&r){const{get:n,set:s}=c(l,o)||{};n&&(e.o[o][0]|=2048),s&&(e.o[o][0]|=4096),Object.defineProperty(l,o,{get(){return n?n.apply(this):((o,c)=>t(this).l.get(c))(0,o)},configurable:!0,enumerable:!0}),Object.defineProperty(l,o,{set(c){const n=t(this);if(n){if(s)return void 0===(32&r?this[o]:n.$hostElement$[o])&&n.l.get(o)&&(c=n.l.get(o)),s.call(this,W(c,r)),void Co(this,o,c=32&r?this[o]:n.$hostElement$[o],e);Co(this,o,c,e)}}})}}));{const c=new Map;l.attributeChangedCallback=function(o,r,n){u.jmp((()=>{var a;const i=c.get(o),f=t(this);if(this.hasOwnProperty(i),l.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==n)return;if(null==i){const c=null==f?void 0:f.i;if(f&&c&&!(8&c)&&n!==r){const t=this,l=null==(a=e.R)?void 0:a[o];null==l||l.forEach((e=>{const[[l,s]]=Object.entries(e);null!=t[l]&&(128&c||1&s)&&t[l].call(t,n,r,o)}))}return}const u=s.find((([o])=>o===i)),d=u&&4&u[1][0],p=d&&null===n&&void 0===this[i];d&&(n=null!==n&&"false"!==n);const b=Object.getOwnPropertyDescriptor(l,i);p||n==this[i]||b.get&&!b.set||(this[i]=n)}))},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(n=e.R)?n:{}),...s.filter((([o,c])=>31&c[0])).map((([o,r])=>{var t;const n=r[1]||o;return c.set(n,o),512&r[0]&&(null==(t=e.C)||t.push([o,n])),n}))]))}}return o},_o=(o,c)=>{const e={i:c[0],p:c[1]};try{e.o=c[2],e.H=c[3],e.R=P(o.R),e.q=o.q,e.D=o.D,e.C=[];const n=o.prototype.connectedCallback,a=o.prototype.disconnectedCallback;return Object.assign(o.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,c)=>{const e={i:0,$hostElement$:o,t:c,l:new Map,P:new Map};e.W=new Promise((o=>e.F=o)),o["s-p"]=[],o["s-rc"]=[];const t=e;o.__stencil__getHostRef=()=>t,512&c.i&&r(o,e)})(this,e)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=t(this);if(!o)return;Ao(this,o,e.H),this.__hasHostListenerAttached=!0}(o=>{if(!(1&u.i)){const c=t(o);if(!c)return;const e=c.t,r=()=>{};if(1&c.i)Ao(o,c,e.H),(null==c?void 0:c.U)||(null==c?void 0:c.W)&&c.W.then((()=>{}));else{c.i|=1,12&e.i&&(o=>{if(!i.document)return;const c=o["s-cr"]=i.document.createComment("");c["s-cn"]=!0,vo(o,c,o.firstChild)})(o);{let e=o;for(;e=e.parentNode||e.host;)if(e["s-p"]){ho(c,c._=e);break}}e.o&&Object.entries(e.o).map((([c,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(o,c)){const e=o[c];delete o[c],o[c]=e}})),(async(o,c,e)=>{let r;try{if(!(32&c.i)&&(c.i|=32,r=o.constructor,customElements.whenDefined(o.localName).then((()=>c.i|=128)),r&&r.style)){let o;"string"==typeof r.style&&(o=r.style);const c=A(e);if(!s.has(c)){const r=()=>{};((o,c,e)=>{let r=s.get(o);d&&e?(r=r||new CSSStyleSheet,"string"==typeof r?r=c:r.replaceSync(c)):r=c,s.set(o,r)})(c,o,!!(1&e.i)),r()}}const t=c._,n=()=>wo(c,!0);t&&t["s-rc"]?t["s-rc"].push(n):n()}catch(e){l(e,o),c.L&&(c.L(),c.L=void 0),c.F&&c.F(o)}})(o,c,e)}r()}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{if(!(1&u.i)){const c=t(o);(null==c?void 0:c.B)&&(c.B.map((o=>o())),c.B=void 0)}_.has(o)&&_.delete(o),o.shadowRoot&&_.has(o.shadowRoot)&&_.delete(o.shadowRoot)})(this),a&&a.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${e.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else j.call(this,e)}}),Object.defineProperty(o,"is",{value:e.p,configurable:!0}),Lo(o,e)}catch(c){return l(c),o}},Ao=(o,c,e)=>{e&&i.document&&e.map((([e,r,t])=>{const n=Ro(i.document,o,e),l=Fo(c,t),s=To(e);u.ael(n,r,l,s),(c.B=c.B||[]).push((()=>u.rel(n,r,l,s)))}))},Fo=(o,c)=>e=>{try{o.$hostElement$[c](e)}catch(c){l(c,o.$hostElement$)}},Ro=(o,c,e)=>4&e?o:c,To=o=>({passive:!!(1&o),capture:!!(2&o)}),Uo=o=>u.A=o,qo=o=>Object.assign(u,o),Do=new WeakMap;function Ho(o,c){let e=Do.get(c);e||(e={i:0,t:{i:0,p:c.tagName},$hostElement$:c},Do.set(c,e)),xo(e,o)}function Po(o){return o}export{f as H,U as a,B as c,$ as getAssetPath,R as h,_o as p,Ho as render,z as setAssetPath,Uo as setNonce,qo as setPlatformOptions,Po as t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as o,p as r,H as e,c as t,h as a}from"./index.js";import{h as s}from"./p-CQY6Ul7q.js";import{i}from"./p-DqyWGweA.js";import{d as l}from"./p-Xwo2HQmt.js";import{d as n}from"./p-D4SOCy8I.js";import{d as c}from"./p-DzoNGEDU.js";function d(o){let r=o;if("string"==typeof o)try{r=JSON.parse(o)}catch(o){return[]}return Array.isArray(r)?r:[]}function p(o,r,e){const t=[];if(e.forEach(((o,r)=>{o.disabled||t.push(r)})),0===t.length)return-1;const a=t.indexOf(o);return-1===a?1===r?t[0]:t[t.length-1]:t[(a+r+t.length)%t.length]}function h(o,r,e){return r>0?{hasMore:o<r,remaining:Math.max(0,r-o)}:{hasMore:e,remaining:0}}const b=r(class extends e{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.coSearch=t(this,"coSearch",3),this.coChange=t(this,"coChange",3),this.coLoadMore=t(this,"coLoadMore",3),this.coClearSelection=t(this,"coClearSelection",3),this.coRemoveItem=t(this,"coRemoveItem",3),this.items="[]",this.value="",this.selectedItems="[]",this.multiple=!1,this.selectedFirst=!1,this.selectedAffordance="check",this.removableItems=!1,this.searchable=!1,this.searchPlaceholder="Search…",this.searchDebounce=350,this.initialTerm="",this.loading=!1,this.total=0,this.hasMore=!1,this.emptyMessage="No results found",this.clearOptionLabel="",this.virtual=!1,this.highlightMatches=!1,this.highlightTerm="",this.avatarShape="circle",this.autoHighlight=!1,this.term="",this.activeIndex=-1,this.scrollTop=0,this.sortSnapshot=new Set,this.displaySnapshot=[],this.onRootKeyDown=o=>{var r,t;if("Enter"===o.key){const a=(null===(r=o.composedPath)||void 0===r?void 0:r.call(o)[0])||o.target;if(a instanceof e&&(null===(t=a.closest)||void 0===t?void 0:t.call(a,"button:not(.co-option-list__option), co-list-footer")))return}this.processKey(o.key)&&o.preventDefault()},this.onSearchInput=o=>{const r=o.target.value;this.term=r,this.activeIndex=-1,this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>this.coSearch.emit(r)),this.searchDebounce)},this.onNativeScroll=o=>{const r=o.target;this.scrollTop=r.scrollTop,this.maybeLoadMore(r.scrollTop,r.clientHeight,r.scrollHeight)}}get parsedItems(){return d(this.items)}get selectedIds(){return function(o){if(!o)return[];try{const r=JSON.parse(o);return Array.isArray(r)?r:[o]}catch(r){return[o]}}(this.value)}get orderedItems(){return this.selectedFirst?function(o,r,e,t){var a;if(0===r.size)return o;const s=new Map(o.map((o=>[o._id,o]))),i=[];if(t)for(const e of o)r.has(e._id)&&i.push(e);else for(const o of e)i.push(null!==(a=s.get(o._id))&&void 0!==a?a:o);const l=o.filter((o=>!r.has(o._id)));return[...i,...l]}(this.parsedItems,this.sortSnapshot,this.displaySnapshot,!!this.term):this.parsedItems}get effectiveHighlightTerm(){return this.highlightMatches?this.searchable?this.term:this.highlightTerm:""}componentWillLoad(){this.term=this.initialTerm||"",this.takeSnapshot(),this.autoHighlight&&(this.activeIndex=p(-1,1,this.orderedItems))}componentDidRender(){this.optionsEl&&!this.osInstance&&(this.osInstance=i(this.optionsEl,(o=>{this.scrollTop=o.scrollTop,this.maybeLoadMore(o.scrollTop,o.clientHeight,o.scrollHeight)})))}disconnectedCallback(){var o;this.debounceTimer&&clearTimeout(this.debounceTimer),null===(o=this.osInstance)||void 0===o||o.destroy(),this.osInstance=void 0}onItemsChange(){this.autoHighlight?this.activeIndex=p(-1,1,this.orderedItems):this.activeIndex>=this.orderedItems.length&&(this.activeIndex=-1);const o=Math.max(0,34*this.orderedItems.length-272);this.scrollTop>34*this.orderedItems.length&&(this.scrollTop=o)}async snapshotOrder(){this.takeSnapshot()}async focusSearch(){var o,r;for(let e=0;e<20;e++){if(null===(o=this.searchInputEl)||void 0===o||o.focus(),this.searchInputEl&&(null===(r=this.el.shadowRoot)||void 0===r?void 0:r.activeElement)===this.searchInputEl)return;await new Promise((o=>requestAnimationFrame((()=>o()))))}}async handleKey(o){return this.processKey(o.key)}takeSnapshot(){this.sortSnapshot=new Set(this.selectedIds);const o=new Map;for(const r of d(this.selectedItems))o.set(r._id,r);for(const r of this.parsedItems)o.has(r._id)||o.set(r._id,r);this.displaySnapshot=this.selectedIds.map((r=>o.get(r))).filter(Boolean)}processKey(o){const r=this.orderedItems;switch(o){case"ArrowDown":return this.activeIndex=p(this.activeIndex,1,r),this.scrollActiveIntoView(),!0;case"ArrowUp":return this.activeIndex=p(this.activeIndex,-1,r),this.scrollActiveIntoView(),!0;case"Enter":{if(this.loading)return!0;const o=r[this.activeIndex];return!(!o||o.disabled||(this.pick(o),0))}default:return!1}}pick(o){if(this.multiple){const r=this.selectedIds,e=r.indexOf(o._id)>=0?r.filter((r=>r!==o._id)):[...r,o._id];this.coChange.emit({value:e,item:o})}else this.coChange.emit({value:o._id,item:o})}maybeLoadMore(o,r,e){if(this.loading)return;const{hasMore:t}=h(this.parsedItems.length,this.total,this.hasMore);t&&o+r>=e-40&&this.coLoadMore.emit()}scrollActiveIntoView(){requestAnimationFrame((()=>{var o,r;null===(r=null===(o=this.el.shadowRoot)||void 0===o?void 0:o.getElementById(`co-optlist-${this.activeIndex}`))||void 0===r||r.scrollIntoView({block:"nearest"})}))}renderLeading(o){return o.image||o.avatar?a("co-avatar",{class:"co-option-list__avatar",type:o.image?"image":"text",src:o.image,text:o.avatar,color:o.color,size:"xxs",shape:this.avatarShape}):o.color?a("span",{class:"co-option-list__dot",style:{backgroundColor:o.color}}):o.icon?a("co-icon",{name:o.icon,size:16,class:"co-option-list__icon"}):null}renderLabelText(o){const r=this.effectiveHighlightTerm,e=r?s(o,r):null;return e?[e.pre,a("span",{class:"co-option-list__match"},e.match),e.post]:o}renderRow(o,r,e){const t=e.includes(o._id);return a("div",{class:{"co-option-list__option":!0,"co-option-list__option--selected":t,"co-option-list__option--active":r===this.activeIndex,"co-option-list__option--disabled":!!o.disabled},key:o._id,id:`co-optlist-${r}`,role:"option","aria-selected":t?"true":"false","aria-disabled":o.disabled?"true":"false",onClick:()=>!o.disabled&&this.pick(o),onMouseEnter:()=>{this.activeIndex=r}},this.renderLeading(o),a("div",{class:"co-option-list__text"},a("span",{class:"co-option-list__title"},a("span",{class:"co-option-list__label",style:o.labelColor?{color:o.labelColor,fontWeight:"600"}:void 0},this.renderLabelText(o.label)),o.suffix&&a("span",{class:"co-option-list__suffix"},"- ",o.suffix),o.badge&&a("span",{class:"co-option-list__badge",style:o.badge.color?{backgroundColor:o.badge.color,color:"var(--co-color-base-blanco, #fff)"}:void 0},o.badge.label)),o.description&&a("span",{class:"co-option-list__desc"},o.description)),t&&this.removableItems&&this.multiple&&a("button",{class:"co-option-list__row-action",type:"button",tabIndex:-1,"aria-label":`Remove ${o.label}`,onClick:r=>{r.stopPropagation(),this.coRemoveItem.emit(o._id)}},a("co-icon",{name:"x-circle",size:16,weight:"fill"})),t&&!this.removableItems&&"deselect"===this.selectedAffordance&&a("button",{class:"co-option-list__row-action",type:"button",tabIndex:-1,"aria-label":`Deselect ${o.label}`,onClick:r=>{r.stopPropagation(),this.pick(o)}},a("co-icon",{name:"x-circle",size:16,weight:"fill"})),t&&!this.removableItems&&"check"===this.selectedAffordance&&a("co-icon",{name:"check",size:16,class:"co-option-list__check"}))}renderVirtual(o,r){const{totalHeight:e,startIdx:t,endIdx:s,offsetY:i}=function(o,r){const e=34*r,t=Math.max(0,Math.floor(o/34)-3);return{totalHeight:e,startIdx:t,endIdx:Math.min(r,t+8+6),offsetY:34*t}}(this.scrollTop,o.length);return a("div",{class:"co-option-list__spacer",style:{height:`${e}px`,position:"relative"}},a("div",{style:{position:"absolute",top:`${i}px`,left:"0",right:"0"}},o.slice(t,s).map(((o,e)=>this.renderRow(o,t+e,r)))))}render(){const o=this.orderedItems,r=this.selectedIds,{hasMore:e,remaining:t}=h(this.parsedItems.length,this.total,this.hasMore),s=!!this.clearOptionLabel&&r.length>0;return a("div",{key:"f6262519bd90bb9a419daeb9a1386147396a79ff",class:"co-option-list",onKeyDown:this.onRootKeyDown},this.searchable&&a("div",{key:"081a2cfee9a8a903c6bd2a2f0bd06cbac635c021",class:"co-option-list__search",part:"search"},a("co-icon",{key:"a001c71f5de00288907cde1e123f8d393e052a9e",name:"magnifying-glass",size:16}),a("input",{key:"355520b7d77077e02666fcd5012f36c648eaeacf",class:"co-option-list__search-input",type:"text",placeholder:this.searchPlaceholder,value:this.term,onInput:this.onSearchInput,ref:o=>this.searchInputEl=o,role:"combobox","aria-expanded":"true","aria-autocomplete":"list"})),a("div",{key:"833708f614d3f561ba45bf1656f4bcfa6701b8ce",class:"co-option-list__options",part:"options",role:"listbox","aria-multiselectable":this.multiple?"true":"false",ref:o=>this.optionsEl=o,onScroll:this.onNativeScroll},a("div",{key:"10da99a56133af0748f43c20af62e03e975aebcd",class:"co-option-list__inner"},s&&a("button",{key:"208bc13eb8e89c88657022fbc174bb22ffe9e1c4",class:"co-option-list__clear-row",type:"button",onClick:()=>this.coClearSelection.emit()},a("co-icon",{key:"8c6d29e405a12e53bd3ab9f1662c7237bcae0617",name:"x-circle",size:14}),a("span",{key:"d7e11cc7753c8dd63ae6a556bf5368c01ea1fc2a"},this.clearOptionLabel)),this.loading&&0===o.length&&a("div",{key:"dec374969fe6b401a95d60d101cc625c181f3e72",class:"co-option-list__loading"},a("co-loader",{key:"c1547fc0f49911f2f8ab8b85063bf15af6500314",size:"sm"})),!this.loading&&0===o.length&&a("div",{key:"1e0692572f89d4f9507f1e4b8c4ef90f9f8d307c",class:"co-option-list__empty"},a("co-icon",{key:"ff979119305afdd7b2180336c203ff33adc3c463",name:"magnifying-glass",size:20}),a("span",{key:"9d460743d6edf7734012d75cabb0f488b67d20cf"},this.emptyMessage)),o.length>0&&this.virtual?this.renderVirtual(o,r):function(o){const r=[];let e,t=0;for(const a of o)a.group&&a.group!==e&&r.push({kind:"header",label:a.group}),e=a.group,r.push({kind:"item",item:a,index:t}),t++;return r}(o).map((o=>"header"===o.kind?a("div",{class:"co-option-list__group",role:"presentation"},o.label):this.renderRow(o.item,o.index,r))),this.loading&&o.length>0&&a("div",{key:"f9c506fddfba9d360a7dd4b2d4ed4142aaa179c5",class:"co-option-list__loading-more"},a("co-loader",{key:"587d93ebd03eb3764e5637c748975c925d1bd59f",size:"sm"})),!this.loading&&e&&t>0&&a("div",{key:"cef0c72b2aa1f246404001bae6c8ee4ea560ee07",class:"co-option-list__more"},t," more results"))),a("slot",{key:"646b6421fb03008d55e5361e14f12d05db08e299",name:"footer"}))}get el(){return this}static get watchers(){return{items:[{onItemsChange:0}]}}static get style(){return".os-size-observer,.os-size-observer-listener{scroll-behavior:auto !important;direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:-133px;top:0;right:0;bottom:0;left:0;transform:scale(0.1)}.os-size-observer::before{content:\"\";flex:none;box-sizing:inherit;padding:10px;width:10px;height:10px}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:-133px;transform:scale(calc(1 / 0.1))}.os-size-observer-listener.ltr{margin-right:-266px;margin-left:0}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty::before{content:\"\";width:100%;height:100%}.os-size-observer-listener:empty::before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{from{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:1px;padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + 1px);contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}html[data-overlayscrollbars-body]{overflow:hidden}html[data-overlayscrollbars-body],html[data-overlayscrollbars-body]>body{width:100%;height:100%;margin:0}html[data-overlayscrollbars-body]>body{overflow:visible;margin:0}[data-overlayscrollbars]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;align-items:stretch !important;flex-direction:row !important;flex-wrap:nowrap !important;scroll-behavior:auto !important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){box-sizing:inherit;position:relative;flex:auto;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){--os-vaw:0;--os-vah:0;outline:none}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]):focus{outline:none}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]::before{content:\"\";position:absolute;pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{overflow:hidden !important}[data-overlayscrollbars~=host][data-overlayscrollbars~=noClipping],[data-overlayscrollbars-padding~=noClipping]{overflow:visible !important}[data-overlayscrollbars-viewport]{--os-viewport-overflow-x:hidden;--os-viewport-overflow-y:hidden;overflow-x:var(--os-viewport-overflow-x);overflow-y:var(--os-viewport-overflow-y)}[data-overlayscrollbars-viewport~=overflowXVisible]{--os-viewport-overflow-x:visible}[data-overlayscrollbars-viewport~=overflowXHidden]{--os-viewport-overflow-x:hidden}[data-overlayscrollbars-viewport~=overflowXScroll]{--os-viewport-overflow-x:scroll}[data-overlayscrollbars-viewport~=overflowYVisible]{--os-viewport-overflow-y:visible}[data-overlayscrollbars-viewport~=overflowYHidden]{--os-viewport-overflow-y:hidden}[data-overlayscrollbars-viewport~=overflowYScroll]{--os-viewport-overflow-y:scroll}[data-overlayscrollbars-viewport~=overflowImportant]{overflow-x:var(--os-viewport-overflow-x) !important;overflow-y:var(--os-viewport-overflow-y) !important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId){font-size:0 !important;line-height:0 !important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)::before,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)::after,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)>*:not(#osFakeId){display:none !important;position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}[data-overlayscrollbars-viewport~=measuring],[data-overlayscrollbars-viewport~=scrolling]{scroll-behavior:auto !important;scroll-snap-type:none !important}[data-overlayscrollbars-viewport~=measuring][data-overlayscrollbars-viewport~=overflowXVisible]{overflow-x:hidden !important}[data-overlayscrollbars-viewport~=measuring][data-overlayscrollbars-viewport~=overflowYVisible]{overflow-y:hidden !important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not(#osFakeId):not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto !important;width:auto !important}@property --os-scroll-percent{syntax:\"<number>\";inherits:true;initial-value:0}@property --os-viewport-percent{syntax:\"<number>\";inherits:true;initial-value:0}.os-scrollbar{--os-viewport-percent:0;--os-scroll-percent:0;--os-scroll-direction:0;--os-scroll-percent-directional:calc( var(--os-scroll-percent) - (var(--os-scroll-percent) + (1 - var(--os-scroll-percent)) * -1) * var(--os-scroll-direction) )}.os-scrollbar{contain:size layout;contain:size layout style;transition:opacity 0.15s, visibility 0.15s, top 0.15s, right 0.15s, bottom 0.15s, left 0.15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none !important}.os-scrollbar-track{position:relative;padding:0 !important;border:none !important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none !important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0 !important;transition:none !important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0;left:calc(var(--os-scroll-percent-directional) * 100%);transform:translateX(calc(var(--os-scroll-percent-directional) * -100%));width:calc(var(--os-viewport-percent) * 100%)}.os-scrollbar-vertical .os-scrollbar-handle{right:0;top:calc(var(--os-scroll-percent-directional) * 100%);transform:translateY(calc(var(--os-scroll-percent-directional) * -100%));height:calc(var(--os-viewport-percent) * 100%)}@supports (container-type: size){.os-scrollbar-track{container-type:size}.os-scrollbar-horizontal .os-scrollbar-handle{left:auto;transform:translateX(calc(var(--os-scroll-percent-directional) * 100cqw + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-vertical .os-scrollbar-handle{top:auto;transform:translateY(calc(var(--os-scroll-percent-directional) * 100cqh + var(--os-scroll-percent-directional) * -100%))}.os-scrollbar-rtl.os-scrollbar-horizontal .os-scrollbar-handle{right:auto;left:0}}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}@media print{.os-scrollbar{display:none}}.os-scrollbar{--os-size:0;--os-padding-perpendicular:0;--os-padding-axis:0;--os-track-border-radius:0;--os-track-bg:none;--os-track-bg-hover:none;--os-track-bg-active:none;--os-track-border:none;--os-track-border-hover:none;--os-track-border-active:none;--os-handle-border-radius:0;--os-handle-bg:none;--os-handle-bg-hover:none;--os-handle-bg-active:none;--os-handle-border:none;--os-handle-border-hover:none;--os-handle-border-active:none;--os-handle-min-size:33px;--os-handle-max-size:none;--os-handle-perpendicular-size:100%;--os-handle-perpendicular-size-hover:100%;--os-handle-perpendicular-size-active:100%;--os-handle-interactive-area-offset:0}.os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity 0.15s, background-color 0.15s, border-color 0.15s}.os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-track:before,.os-scrollbar-handle:before{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-track:before{top:calc(var(--os-padding-perpendicular) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity 0.15s, background-color 0.15s, border-color 0.15s, height 0.15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-track:before{left:calc(var(--os-padding-perpendicular) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity 0.15s, background-color 0.15s, border-color 0.15s, width 0.15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars-viewport~=measuring]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none !important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size:10px;--os-padding-perpendicular:2px;--os-padding-axis:2px;--os-track-border-radius:10px;--os-handle-interactive-area-offset:4px;--os-handle-border-radius:10px}.os-theme-dark{--os-handle-bg:rgba(0, 0, 0, 0.44);--os-handle-bg-hover:rgba(0, 0, 0, 0.55);--os-handle-bg-active:rgba(0, 0, 0, 0.66)}.os-theme-light{--os-handle-bg:rgba(255, 255, 255, 0.44);--os-handle-bg-hover:rgba(255, 255, 255, 0.55);--os-handle-bg-active:rgba(255, 255, 255, 0.66)}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport]),[data-overlayscrollbars-viewport~=scrollbarHidden],html[data-overlayscrollbars-viewport~=scrollbarHidden]>body{scrollbar-width:none !important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport])::-webkit-scrollbar,[data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport])::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,html[data-overlayscrollbars-viewport~=scrollbarHidden]>body::-webkit-scrollbar,html[data-overlayscrollbars-viewport~=scrollbarHidden]>body::-webkit-scrollbar-corner{-webkit-appearance:none !important;appearance:none !important;display:none !important;width:0 !important;height:0 !important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body){overflow:auto}:host{display:block;font-family:var(--co-font-family-primary, 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif)}.co-option-list{display:flex;flex-direction:column;min-width:0}.co-option-list__search{display:flex;align-items:center;gap:var(--co-spacing-sm, 6px);height:32px;box-sizing:border-box;margin:var(--co-spacing-md, 12px) var(--co-spacing-md, 12px) 0;padding:0 var(--co-spacing-sm2, 8px) 0 var(--co-spacing-xs, 4px);border:1px solid var(--co-semantic-border-subtle, rgba(31, 28, 27, 0.08));border-radius:var(--co-border-radius-xs, 8px);color:var(--co-semantic-text-muted, #888888)}.co-option-list__search:focus-within{border-color:var(--co-semantic-border-focus, rgba(31, 28, 27, 0.25))}.co-option-list__search co-icon{flex-shrink:0;width:24px;display:flex;align-items:center;justify-content:center;opacity:0.7}.co-option-list__search-input{flex:1;min-width:0;border:0;outline:none;background:transparent;padding:0;font-family:var(--co-font-family-primary, 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:var(--co-font-size-12, 12px);font-weight:500;letter-spacing:var(--co-font-letter-spacing-body, -0.03em);line-height:1;color:var(--co-semantic-text-default, #1f1c1b)}.co-option-list__search-input::placeholder{color:var(--co-semantic-text-muted, #888888)}.co-option-list__options{max-height:280px;overflow-y:auto;overflow-x:hidden;padding:var(--co-spacing-md, 12px)}.co-option-list__inner{display:flex;flex-direction:column;gap:var(--co-spacing-xxs, 2px);min-width:0}.os-scrollbar.os-theme-co{--os-size:10px;--os-padding-perpendicular:2px;--os-padding-axis:2px;--os-track-bg:transparent;--os-handle-border-radius:var(--co-border-radius-full, 9999px);--os-handle-bg:var(--co-color-opacity-negro-16, rgba(31, 28, 27, 0.16));--os-handle-bg-hover:var(--co-color-opacity-negro-25, rgba(31, 28, 27, 0.25));--os-handle-bg-active:var(--co-color-opacity-negro-50, rgba(31, 28, 27, 0.5));--os-handle-min-size:24px}.co-option-list__option{display:flex;align-items:center;gap:var(--co-spacing-sm2, 8px);min-width:0;min-height:32px;box-sizing:border-box;padding:var(--co-spacing-xs, 4px) var(--co-spacing-sm2, 8px) var(--co-spacing-xs, 4px) var(--co-spacing-xs, 4px);border-radius:var(--co-border-radius-xs, 8px);cursor:pointer;font-size:var(--co-font-size-12, 12px);letter-spacing:var(--co-font-letter-spacing-body, -0.03em);color:var(--co-semantic-text-default, #1f1c1b);transition:background 0.1s ease}.co-option-list__spacer .co-option-list__option{height:32px;margin-bottom:var(--co-spacing-xxs, 2px)}.co-option-list__option--active{background:var(--co-semantic-surface-hover, rgba(31, 28, 27, 0.04))}.co-option-list__option--selected{background:var(--co-semantic-surface-hover, rgba(31, 28, 27, 0.04))}.co-option-list__option--disabled{opacity:0.5;cursor:not-allowed}.co-option-list__avatar,.co-option-list__icon{flex-shrink:0}.co-option-list__icon{margin:0 var(--co-spacing-xs, 4px)}.co-option-list__dot{flex-shrink:0;width:10px;height:10px;margin:0 7px;border-radius:var(--co-border-radius-full, 9999px)}.co-option-list__text{display:flex;flex-direction:column;gap:var(--co-spacing-xxs, 2px);flex:1;min-width:0}.co-option-list__title{display:flex;align-items:center;gap:var(--co-spacing-xs, 4px);min-width:0}.co-option-list__label{font-weight:400;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.co-option-list__suffix{color:var(--co-semantic-text-secondary, #585858);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1}.co-option-list__badge{flex-shrink:0;padding:0 var(--co-spacing-xs, 4px);border-radius:var(--co-border-radius-full, 9999px);background:var(--co-semantic-surface-hover, rgba(31, 28, 27, 0.04));color:var(--co-semantic-text-default, #1f1c1b);font-size:var(--co-font-size-10, 10px);font-weight:600;line-height:16px}.co-option-list__desc{font-size:var(--co-font-size-12, 12px);color:var(--co-semantic-text-muted, #888888);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.co-option-list__match{color:var(--co-color-primary-azul, #2563eb);font-weight:700}.co-option-list__check{flex-shrink:0;color:var(--co-semantic-text-default, #1f1c1b)}.co-option-list__row-action{flex-shrink:0;display:inline-flex;align-items:center;border:0;background:transparent;padding:0;cursor:pointer;color:var(--co-semantic-text-muted, #888888);transition:color 0.15s ease}.co-option-list__row-action:hover{color:var(--co-semantic-text-default, #1f1c1b)}.co-option-list__group{padding:var(--co-spacing-sm2, 8px) var(--co-spacing-xs, 4px) var(--co-spacing-xs, 4px);font-family:var(--co-font-family-mono, 'Geist Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace);font-size:var(--co-font-size-10, 10px);font-weight:400;text-transform:uppercase;letter-spacing:var(--co-font-letter-spacing-overline, 0.08em);line-height:1.1;color:var(--co-semantic-text-default, #1f1c1b)}.co-option-list__clear-row{display:flex;align-items:center;gap:var(--co-spacing-sm2, 8px);width:100%;min-height:32px;box-sizing:border-box;border:0;background:transparent;padding:var(--co-spacing-xs, 4px) var(--co-spacing-sm2, 8px);border-radius:var(--co-border-radius-xs, 8px);cursor:pointer;text-align:left;font-family:var(--co-font-family-primary, 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);font-size:var(--co-font-size-12, 12px);letter-spacing:var(--co-font-letter-spacing-body, -0.03em);color:var(--co-semantic-text-secondary, #585858)}.co-option-list__clear-row:hover{background:var(--co-semantic-surface-hover, rgba(31, 28, 27, 0.04))}.co-option-list__loading,.co-option-list__loading-more{display:flex;justify-content:center;padding:var(--co-spacing-sm, 6px)}.co-option-list__empty{display:flex;align-items:center;gap:var(--co-spacing-sm2, 8px);padding:var(--co-spacing-md, 12px) var(--co-spacing-xs, 4px);font-size:var(--co-font-size-12, 12px);color:var(--co-semantic-text-muted, #888888)}.co-option-list__more{padding:var(--co-spacing-xs, 4px) var(--co-spacing-sm, 6px);font-size:var(--co-font-size-12, 12px);color:var(--co-semantic-text-muted, #888888);text-align:center}.co-option-list__option:focus-visible,.co-option-list__clear-row:focus-visible{outline:2px solid var(--co-semantic-border-focus, rgba(31, 28, 27, 0.25));outline-offset:-2px}"}},[257,"co-option-list",{items:[1],value:[1],selectedItems:[1,"selected-items"],multiple:[4],selectedFirst:[4,"selected-first"],selectedAffordance:[1,"selected-affordance"],removableItems:[4,"removable-items"],searchable:[516],searchPlaceholder:[1,"search-placeholder"],searchDebounce:[2,"search-debounce"],initialTerm:[1,"initial-term"],loading:[4],total:[2],hasMore:[4,"has-more"],emptyMessage:[1,"empty-message"],clearOptionLabel:[1,"clear-option-label"],virtual:[516],highlightMatches:[4,"highlight-matches"],highlightTerm:[1,"highlight-term"],avatarShape:[1,"avatar-shape"],autoHighlight:[4,"auto-highlight"],term:[32],activeIndex:[32],scrollTop:[32],snapshotOrder:[64],focusSearch:[64],handleKey:[64]},void 0,{items:[{onItemsChange:0}]}]);function v(){"undefined"!=typeof customElements&&["co-option-list","co-avatar","co-icon","co-loader"].forEach((r=>{switch(r){case"co-option-list":customElements.get(o(r))||customElements.define(o(r),b);break;case"co-avatar":customElements.get(o(r))||l();break;case"co-icon":customElements.get(o(r))||n();break;case"co-loader":customElements.get(o(r))||c()}}))}v();export{b as C,v as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as o,h as r,t as a}from"./index.js";import{d as i}from"./p-BNKz39GA.js";import{C as n,T as c,t as l}from"./p-ChibIpZv.js";const s={en:{bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Code",styles:"Styles",normalText:"Normal text",title:"Title",subtitle:"Subtitle",heading3:"Heading 3",fontSize:"Font size",font:"Font",systemFonts:"System fonts",bulletList:"Bullet list",orderedList:"Numbered list",taskList:"Task list",disc:"Disc",circle:"Circle",square:"Square",strikeOnComplete:"Strike on complete",noStrikethrough:"No strikethrough",quote:"Quote",codeBlock:"Code block",horizontalRule:"Horizontal rule",link:"Link",image:"Image",youtubeVideo:"YouTube video",iframeEmbed:"Embed (iframe)",table:"Table",textColor:"Text color",highlight:"Highlight",backgroundColor:"Background color",removeColor:"Remove color",noColor:"No color",alignment:"Alignment",left:"Left",center:"Center",right:"Right",justify:"Justify",alignLeft:"Align left",alignRight:"Align right",lineSpacing:"Line spacing",single:"Single",double:"Double",letterSpacing:"Letter spacing",normal:"Normal",tight:"Tight (-0.05em)",light:"Light (0.05em)",wide:"Wide (0.1em)",veryWide:"Very wide (0.2em)",increaseIndent:"Increase indent",decreaseIndent:"Decrease indent",callout:"Callout",info:"Info",warning:"Warning",success:"Success",error:"Error",undo:"Undo",redo:"Redo",addColumnAfter:"Add column after",addColumnBefore:"Add column before",deleteColumn:"Delete column",addRowAfter:"Add row after",addRowBefore:"Add row before",addRowAbove:"Add row above",addRowBelow:"Add row below",deleteRow:"Delete row",deleteTable:"Delete table",mergeCells:"Merge cells",splitCell:"Split cell",headerRow:"Header row",tableHeaderLabel:"Header",tableOptions:"TABLE OPTIONS",add:"Add",remove:"Remove",cancel:"Cancel",back:"Back",createTable:"Create table",configureTable:"CONFIGURE TABLE",grid:"Grid",manual:"Manual",includeHeaderRow:"Include header row",selectSize:"Select size",changeSelection:"Change selection",columns:"Columns",rows:"Rows",youtubeUrlPlaceholder:"YouTube URL",iframeUrlPlaceholder:"https:// embed URL",imageUrlPlaceholder:"Image URL",sizePlaceholder:"Size…",lineSpacingPlaceholder:"1.5, 20px, 150%…",letterSpacingPlaceholder:"0.05em, normal…",uploadFromComputer:"Upload from computer",viaUrl:"Via URL",moreOptions:"More options",superscript:"Superscript",subscript:"Subscript",clearFormat:"Clear format",fontWeight:"Font weight",writeSize:"Write size...",searchFont:"Search font...",noResults:"No results",loadingFonts:"Loading fonts...",importedFonts:"Imported fonts",unlinkLink:"Unlink",heading1:"Heading 1",heading2:"Heading 2",headingAbbr1:"H1",headingAbbr2:"H2",headingAbbr3:"H3",stylesPrefix:"Styles:",imageLayoutInline:"Inline",imageLayoutWrapLeft:"Wrap left",imageLayoutWrapRight:"Wrap right",imageLayoutCenter:"Center",imageLayoutFullWidth:"Full width"},es:{bold:"Negrita",italic:"Cursiva",underline:"Subrayado",strikethrough:"Tachado",code:"Código",styles:"Estilos",normalText:"Texto normal",title:"Título",subtitle:"Subtítulo",heading3:"Encabezado 3",fontSize:"Tamaño de fuente",font:"Fuente",systemFonts:"Fuentes del sistema",bulletList:"Lista con viñetas",orderedList:"Lista numerada",taskList:"Lista de tareas",disc:"Disco",circle:"Círculo",square:"Cuadrado",strikeOnComplete:"Tachar al completar",noStrikethrough:"Sin tachado",quote:"Cita",codeBlock:"Bloque de código",horizontalRule:"Línea horizontal",link:"Enlace",image:"Imagen",youtubeVideo:"Video de YouTube",iframeEmbed:"Insertar (iframe)",table:"Tabla",textColor:"Color de texto",highlight:"Resaltar",backgroundColor:"Color de fondo",removeColor:"Quitar color",noColor:"Sin color",alignment:"Alineación",left:"Izquierda",center:"Centro",right:"Derecha",justify:"Justificado",alignLeft:"Izquierda",alignRight:"Derecha",lineSpacing:"Interlineado",single:"Sencillo",double:"Doble",letterSpacing:"Espaciado entre letras",normal:"Normal",tight:"Estrecho (-0.05em)",light:"Ligero (0.05em)",wide:"Amplio (0.1em)",veryWide:"Muy amplio (0.2em)",increaseIndent:"Aumentar sangría",decreaseIndent:"Disminuir sangría",callout:"Nota",info:"Información",warning:"Advertencia",success:"Éxito",error:"Error",undo:"Deshacer",redo:"Rehacer",addColumnAfter:"Añadir columna después",addColumnBefore:"Añadir columna antes",deleteColumn:"Eliminar columna",addRowAfter:"Añadir fila después",addRowBefore:"Añadir fila antes",addRowAbove:"Añadir fila arriba",addRowBelow:"Añadir fila abajo",deleteRow:"Eliminar fila",deleteTable:"Eliminar tabla",mergeCells:"Unir celdas",splitCell:"Dividir celda",headerRow:"Fila de encabezado",tableHeaderLabel:"Encabezado",tableOptions:"OPCIONES DE TABLA",add:"Agregar",remove:"Quitar",cancel:"Cancelar",back:"Volver",createTable:"Crear tabla",configureTable:"CONFIGURAR TABLA",grid:"Cuadrícula",manual:"Manual",includeHeaderRow:"Incluir fila de encabezado",selectSize:"Selecciona tamaño",changeSelection:"Cambiar selección",columns:"Columnas",rows:"Filas",youtubeUrlPlaceholder:"URL de YouTube",iframeUrlPlaceholder:"URL https:// para insertar",imageUrlPlaceholder:"URL de la imagen",sizePlaceholder:"Tamaño…",lineSpacingPlaceholder:"1.5, 20px, 150%…",letterSpacingPlaceholder:"0.05em, normal…",uploadFromComputer:"Subir desde la computadora",viaUrl:"Mediante URL",moreOptions:"Más opciones",superscript:"Superíndice",subscript:"Subíndice",clearFormat:"Limpiar formato",fontWeight:"Grosor de fuente",writeSize:"Escribir tamaño...",searchFont:"Buscar fuente...",noResults:"Sin resultados",loadingFonts:"Cargando fuentes...",importedFonts:"Fuentes importadas",unlinkLink:"Quitar enlace",heading1:"Encabezado 1",heading2:"Encabezado 2",headingAbbr1:"Enc. 1",headingAbbr2:"Enc. 2",headingAbbr3:"Enc. 3",stylesPrefix:"Estilos:",imageLayoutInline:"En línea",imageLayoutWrapLeft:"Ajustar a la izquierda",imageLayoutWrapRight:"Ajustar a la derecha",imageLayoutCenter:"Centrar",imageLayoutFullWidth:"Ancho completo"},pt:{bold:"Negrito",italic:"Itálico",underline:"Sublinhado",strikethrough:"Tachado",code:"Código",styles:"Estilos",normalText:"Texto normal",title:"Título",subtitle:"Subtítulo",heading3:"Título 3",fontSize:"Tamanho da fonte",font:"Fonte",systemFonts:"Fontes do sistema",bulletList:"Lista com marcadores",orderedList:"Lista numerada",taskList:"Lista de tarefas",disc:"Disco",circle:"Círculo",square:"Quadrado",strikeOnComplete:"Riscar ao concluir",noStrikethrough:"Sem tachado",quote:"Citação",codeBlock:"Bloco de código",horizontalRule:"Linha horizontal",link:"Link",image:"Imagem",youtubeVideo:"Vídeo do YouTube",iframeEmbed:"Incorporar (iframe)",table:"Tabela",textColor:"Cor do texto",highlight:"Destaque",backgroundColor:"Cor de fundo",removeColor:"Remover cor",noColor:"Sem cor",alignment:"Alinhamento",left:"Esquerda",center:"Centro",right:"Direita",justify:"Justificado",alignLeft:"Esquerda",alignRight:"Direita",lineSpacing:"Espaçamento entre linhas",single:"Simples",double:"Duplo",letterSpacing:"Espaçamento entre letras",normal:"Normal",tight:"Estreito (-0.05em)",light:"Leve (0.05em)",wide:"Amplo (0.1em)",veryWide:"Muito amplo (0.2em)",increaseIndent:"Aumentar recuo",decreaseIndent:"Diminuir recuo",callout:"Nota",info:"Informação",warning:"Aviso",success:"Sucesso",error:"Erro",undo:"Desfazer",redo:"Refazer",addColumnAfter:"Adicionar coluna depois",addColumnBefore:"Adicionar coluna antes",deleteColumn:"Excluir coluna",addRowAfter:"Adicionar linha depois",addRowBefore:"Adicionar linha antes",addRowAbove:"Adicionar linha acima",addRowBelow:"Adicionar linha abaixo",deleteRow:"Excluir linha",deleteTable:"Excluir tabela",mergeCells:"Mesclar células",splitCell:"Dividir célula",headerRow:"Linha de cabeçalho",tableHeaderLabel:"Cabeçalho",tableOptions:"OPÇÕES DE TABELA",add:"Adicionar",remove:"Remover",cancel:"Cancelar",back:"Voltar",createTable:"Criar tabela",configureTable:"CONFIGURAR TABELA",grid:"Grade",manual:"Manual",includeHeaderRow:"Incluir linha de cabeçalho",selectSize:"Selecionar tamanho",changeSelection:"Alterar seleção",columns:"Colunas",rows:"Linhas",youtubeUrlPlaceholder:"URL do YouTube",iframeUrlPlaceholder:"URL https:// para incorporar",imageUrlPlaceholder:"URL da imagem",sizePlaceholder:"Tamanho…",lineSpacingPlaceholder:"1.5, 20px, 150%…",letterSpacingPlaceholder:"0.05em, normal…",uploadFromComputer:"Carregar do computador",viaUrl:"Via URL",moreOptions:"Mais opções",superscript:"Sobrescrito",subscript:"Subscrito",clearFormat:"Limpar formatação",fontWeight:"Peso da fonte",writeSize:"Escrever tamanho...",searchFont:"Buscar fonte...",noResults:"Sem resultados",loadingFonts:"Carregando fontes...",importedFonts:"Fontes importadas",unlinkLink:"Remover link",heading1:"Título 1",heading2:"Título 2",headingAbbr1:"T. 1",headingAbbr2:"T. 2",headingAbbr3:"T. 3",stylesPrefix:"Estilos:",imageLayoutInline:"Em linha",imageLayoutWrapLeft:"Ajustar à esquerda",imageLayoutWrapRight:"Ajustar à direita",imageLayoutCenter:"Centralizar",imageLayoutFullWidth:"Largura total"}};function d(t){return s[function(t){const e=(t||"").toLowerCase();return e.startsWith("es")?"es":e.startsWith("pt")?"pt":(e.startsWith("en"),"en")}(t)]}const p=t(class t extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.coAction=o(this,"coAction",7),this.coPopoverChange=o(this,"coPopoverChange",7),this.variant="basic",this.disabled=!1,this.locale="en",this.items=[],this.tick=0,this.openPopover=null,this.popoverInput="",this.gridHoverRows=0,this.gridHoverCols=0,this.gridLockedRows=0,this.gridLockedCols=0,this.tableTab="grid",this.tableManualRows=3,this.tableManualCols=3,this.tableWithHeader=!1,this.tableContextItems=[],this.imagePopoverMode="menu",this.colorHexInput="",this.onTransaction=()=>{this.tick++,this.updateTableContext()},this.colorPalette=[],this._tableContextItems=[],this.handleHostMouseDown=t=>{t.composedPath().some((t=>t instanceof e&&"INPUT"===t.tagName))||t.preventDefault()},this.handleDocumentClick=t=>{this.openPopover&&(this.el.contains(t.target)||this.closePopover())},this.run=t=>{const e=this.editor;if(!e||this.disabled)return;const o=e.chain().focus();switch(t.action){case"bold":o.toggleBold().run();break;case"italic":o.toggleItalic().run();break;case"underline":o.toggleUnderline().run();break;case"strike":o.toggleStrike().run();break;case"code":o.toggleCode().run();break;case"bulletList":case"bulletListMenu":o.toggleBulletList().run();break;case"orderedList":case"orderedListMenu":o.toggleOrderedList().run();break;case"taskListMenu":o.toggleTaskList().run();break;case"blockquote":o.toggleBlockquote().run();break;case"codeBlock":o.toggleCodeBlock().run();break;case"heading":o.toggleHeading(t.payload).run();break;case"horizontalRule":o.setHorizontalRule().run();break;case"textAlign":o.setTextAlign(t.payload).run();break;case"undo":o.undo().run();break;case"redo":o.redo().run();break;case"addColumnAfter":o.addColumnAfter().run();break;case"addColumnBefore":o.addColumnBefore().run();break;case"deleteColumn":o.deleteColumn().run();break;case"addRowAfter":o.addRowAfter().run();break;case"addRowBefore":o.addRowBefore().run();break;case"deleteRow":o.deleteRow().run();break;case"deleteTable":o.deleteTable().run();break;case"mergeCells":o.mergeCells().run();break;case"splitCell":o.splitCell().run();break;case"toggleHeaderRow":o.toggleHeaderRow().run();break;case"indentIncrease":e.isActive("bulletList")||e.isActive("orderedList")?o.sinkListItem("listItem").run():o.indent().run();break;case"indentDecrease":e.isActive("bulletList")||e.isActive("orderedList")?o.liftListItem("listItem").run():o.outdent().run();break;case"link":case"image":case"youtube":case"iframe":case"callout":case"fontSize":case"fontFamily":case"headingStyle":case"lineSpacing":case"letterSpacing":case"table":case"textColor":case"highlight":return void this.togglePopover(t.action);default:o.run()}this.coAction.emit({action:t.action,payload:t.payload})}}get s(){return d(this.locale)}tItem(t){var e;const o=this.s;return null!==(e={bold:o.bold,italic:o.italic,underline:o.underline,strike:o.strikethrough,code:o.code,headingStyle:o.styles,fontSize:o.fontSize,fontFamily:o.font,bulletList:o.bulletList,orderedList:o.orderedList,bulletListMenu:o.bulletList,orderedListMenu:o.orderedList,taskListMenu:o.taskList,blockquote:o.quote,codeBlock:o.codeBlock,horizontalRule:o.horizontalRule,link:o.link,image:o.image,youtube:o.youtubeVideo,iframe:o.iframeEmbed,table:o.table,textColor:o.textColor,highlight:o.highlight,alignment:o.alignment,lineSpacing:o.lineSpacing,letterSpacing:o.letterSpacing,indentIncrease:o.increaseIndent,indentDecrease:o.decreaseIndent,callout:o.callout,undo:o.undo,redo:o.redo,addColumnAfter:o.addColumnAfter,addColumnBefore:o.addColumnBefore,deleteColumn:o.deleteColumn,addRowAfter:o.addRowAfter,addRowBefore:o.addRowBefore,deleteRow:o.deleteRow,deleteTable:o.deleteTable,mergeCells:o.mergeCells,splitCell:o.splitCell,toggleHeaderRow:o.headerRow}[t.action])&&void 0!==e?e:t.label}tOpt(t){var e,o,r,a,i;const n=this.s;if("separator"===t.action)return`─── ${n.systemFonts} ───`;if("paragraph"===t.action)return n.normalText;if("heading"===t.action){const o=null===(e=t.payload)||void 0===e?void 0:e.level;if(1===o)return n.title;if(2===o)return n.subtitle;if(3===o)return n.heading3}if("bulletStyle"===t.action)return null!==(o={disc:n.disc,circle:n.circle,square:n.square}[t.payload])&&void 0!==o?o:t.label;if("taskStyle"===t.action){if("strike"===t.payload)return n.strikeOnComplete;if("plain"===t.payload)return n.noStrikethrough}if("textAlign"===t.action)return null!==(r={left:n.left,center:n.center,right:n.right,justify:n.justify}[t.payload])&&void 0!==r?r:t.label;if("lineHeight"===t.action){if("1"===t.payload)return n.single;if("2"===t.payload)return n.double}return"letterSpacing"===t.action?null!==(a={normal:n.normal,"-0.05em":n.tight,"0.05em":n.light,"0.1em":n.wide,"0.2em":n.veryWide}[t.payload])&&void 0!==a?a:t.label:"callout"===t.action&&null!==(i={info:n.info,warning:n.warning,success:n.success,error:n.error}[t.payload])&&void 0!==i?i:t.label}connectedCallback(){this.el.addEventListener("mousedown",this.handleHostMouseDown),document.addEventListener("click",this.handleDocumentClick,!0)}componentWillLoad(){this.items=this.resolveItems(this.variant),this.colorPalette=n,this._tableContextItems=c}onVariantChange(t){this.items=this.resolveItems(t)}onEditorChange(t,e){null==e||e.off("transaction",this.onTransaction),null==t||t.on("transaction",this.onTransaction),this.items=this.resolveItems(this.variant),this.tick++}resolveItems(e){const o=l("none"===e?"compact":e),r=this.editor;if(!r)return o;const a=o.filter((e=>{if(this.isSeparator(e))return!0;const o=t.ITEM_COMMAND[e.action];return!o||(t=>{try{return"function"==typeof r.can()[t]}catch(t){return!0}})(o)})),i=[];for(const t of a)(!this.isSeparator(t)||i.length&&!this.isSeparator(i[i.length-1]))&&i.push(t);return i.length&&this.isSeparator(i[i.length-1])&&i.pop(),i}onOpenPopoverChange(t,e){!!t!=!!e&&this.coPopoverChange.emit({open:!!t})}disconnectedCallback(){var t;null===(t=this.editor)||void 0===t||t.off("transaction",this.onTransaction),this.el.removeEventListener("mousedown",this.handleHostMouseDown),document.removeEventListener("click",this.handleDocumentClick,!0)}updateTableContext(){if(!this.editor)return void(this.tableContextItems.length&&(this.tableContextItems=[]));const t=this.editor.isActive("table");t&&!this.tableContextItems.length?this.tableContextItems=this._tableContextItems:!t&&this.tableContextItems.length&&(this.tableContextItems=[])}isSeparator(t){return"separator"===t.type}isActive(t){if(!this.editor)return!1;try{if("textAlign"===t.action)return this.editor.isActive({textAlign:t.payload});if("heading"===t.action)return this.editor.isActive("heading",t.payload);if("bulletListMenu"===t.action)return this.editor.isActive("bulletList");if("orderedListMenu"===t.action)return this.editor.isActive("orderedList");if("taskListMenu"===t.action)return this.editor.isActive("taskList");if("iframe"===t.action)return this.editor.isActive("iframe");if("youtube"===t.action)return this.editor.isActive("youtube");if("toggle"===t.type)return this.editor.isActive(t.action)}catch(t){}return!1}getDynamicIcon(t){return"alignment"===t.action&&this.editor?this.editor.isActive({textAlign:"center"})?"text-align-center":this.editor.isActive({textAlign:"right"})?"text-align-right":this.editor.isActive({textAlign:"justify"})?"text-align-justify":"text-align-left":t.icon}togglePopover(t){var e,o;this.openPopover===t?(this.openPopover=null,this.popoverInput=""):(this.openPopover=t,this.popoverInput="","link"===t&&(null===(e=this.editor)||void 0===e?void 0:e.isActive("link"))?this.popoverInput=this.editor.getAttributes("link").href||"":"iframe"===t&&(null===(o=this.editor)||void 0===o?void 0:o.isActive("iframe"))&&(this.popoverInput=this.editor.getAttributes("iframe").src||""))}closePopover(){this.openPopover=null,this.popoverInput="",this.colorHexInput="",this.imagePopoverMode="menu",this.gridLockedRows=0,this.gridLockedCols=0,this.gridHoverRows=0,this.gridHoverCols=0}submitPopover(t){const e=this.editor;if(!e||!this.popoverInput.trim())return void this.closePopover();const o=this.popoverInput.trim(),r="youtube"===t||"iframe"===t;r&&e.view.focus();const a=r?e.chain():e.chain().focus();switch(t){case"link":a.setLink({href:o}).run();break;case"image":a.setImage({src:o}).run();break;case"youtube":a.setYoutubeVideo({src:o}).run();break;case"iframe":e.isActive("iframe")?a.updateIframe({src:o}).run():a.setIframe({src:o}).run()}this.coAction.emit({action:t,payload:o}),this.closePopover(),r&&this.smoothScrollToInserted()}smoothScrollToInserted(){requestAnimationFrame((()=>{const t=this.editor;if(!t)return;const o=t.view.dom.querySelector(".ProseMirror-selectednode");if(o)return void o.scrollIntoView({behavior:"smooth",block:"center"});const{from:r}=t.state.selection,a=t.state.doc.resolve(r);if(a.nodeBefore)try{const o=t.view.nodeDOM(r-a.nodeBefore.nodeSize);o instanceof e&&o.scrollIntoView({behavior:"smooth",block:"center"})}catch(t){}}))}removeLink(){const t=this.editor;t&&(t.chain().focus().unsetLink().run(),this.coAction.emit({action:"link",payload:null}),this.closePopover())}removeIframe(){const t=this.editor;t&&(t.chain().focus().deleteSelection().run(),this.coAction.emit({action:"iframe",payload:null}),this.closePopover())}selectColor(t,e){const o=this.editor;if(!o)return;const r=o.chain().focus();"textColor"===t?r.setColor(e).run():"highlight"===t&&r.setHighlight({color:e}).run(),this.coAction.emit({action:t,payload:e}),this.closePopover()}clearColor(t){const e=this.editor;if(!e)return;const o=e.chain().focus();"textColor"===t?o.unsetColor().run():"highlight"===t&&o.unsetHighlight().run(),this.coAction.emit({action:t,payload:null}),this.closePopover()}canRun(t){if(!this.editor||this.disabled)return!1;const e=this.editor,o=e.can(),r=(t,...e)=>{if("function"!=typeof o[t])return!0;try{return o[t](...e)}catch(t){return!0}};switch(t.action){case"undo":return r("undo");case"redo":return r("redo");case"table":return!e.isActive("table");case"bold":return r("toggleBold");case"italic":return r("toggleItalic");case"underline":return r("toggleUnderline");case"strike":return r("toggleStrike");case"code":return r("toggleCode");case"blockquote":return r("toggleBlockquote");case"codeBlock":return r("toggleCodeBlock");case"horizontalRule":return r("setHorizontalRule");case"bulletList":case"bulletListMenu":return r("toggleBulletList");case"orderedList":case"orderedListMenu":return r("toggleOrderedList");case"taskListMenu":return r("toggleTaskList");default:return!0}}getDropdownLabel(t){if(!this.editor)return null;const e=this.s;if("headingStyle"===t.action)return this.editor.isActive("heading",{level:1})?e.title:this.editor.isActive("heading",{level:2})?e.subtitle:this.editor.isActive("heading",{level:3})?e.headingAbbr3:e.normal;if("fontSize"===t.action){const t=this.editor.getAttributes("textStyle"),e=null==t?void 0:t.fontSize;return e?e.replace("px",""):"16"}if("fontFamily"===t.action){const t=this.editor.getAttributes("textStyle"),e=null==t?void 0:t.fontFamily;if(!e)return"Sans-serif";const o=e.replace(/['"]/g,"").split(",")[0].trim();return o.length>10?o.substring(0,10)+"…":o}return null}getActiveColor(t){var e,o;if(!this.editor)return"textColor"===t?"#000000":"transparent";const r=this.editor.getAttributes("textStyle");if("textColor"===t)return null!==(e=null==r?void 0:r.color)&&void 0!==e?e:"#000000";const a=this.editor.getAttributes("highlight");return null!==(o=null==a?void 0:a.color)&&void 0!==o?o:"transparent"}renderButton(t){var e,o;const a="popover"===t.type||"dropdown"===t.type||"color"===t.type||"grid"===t.type,i=this.openPopover===t.action,n="headingStyle"===t.action||"fontSize"===t.action||"fontFamily"===t.action,c=n?this.getDropdownLabel(t):null;if("alignment"===t.action&&(null===(e=t.options)||void 0===e?void 0:e.length))return this.renderAlignmentGroup(t);if("listpicker"===t.type){const e=this.isActive(t),o=this.tItem(t);return r("div",{class:"co-rich-text-toolbar__split-wrap",key:t.action},r("button",{type:"button",class:{"co-rich-text-toolbar__btn":!0,"co-rich-text-toolbar__split-main":!0,"co-rich-text-toolbar__btn--active":e},"data-tooltip":o,"aria-label":o,"aria-pressed":String(e),disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.run(t),part:"button"},r("co-icon",{name:t.icon,size:18})),r("button",{type:"button",class:{"co-rich-text-toolbar__split-caret":!0,"co-rich-text-toolbar__split-caret--open":i},"data-tooltip":`${this.s.stylesPrefix} ${o}`,"aria-label":`${this.s.stylesPrefix} ${o}`,"aria-expanded":String(i),disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.togglePopover(t.action)},r("co-icon",{name:"caret-down",size:10})),i&&this.renderListPicker(t))}if("color"===t.type)return this.renderColorButton(t);const l=this.tItem(t);return r("div",{class:"co-rich-text-toolbar__btn-wrap",key:`${t.action}-${JSON.stringify(null!==(o=t.payload)&&void 0!==o?o:"")}`},n?r("button",{type:"button",class:{"co-rich-text-toolbar__select-btn":!0,"co-rich-text-toolbar__select-btn--open":i},"data-tooltip":l,"aria-label":l,"aria-expanded":String(i),disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.run(t),part:"button"},r("span",{class:"co-rich-text-toolbar__select-label"},c),r("co-icon",{name:"caret-down",size:10})):r("button",{type:"button",class:{"co-rich-text-toolbar__btn":!0,"co-rich-text-toolbar__btn--active":this.isActive(t)||i},"data-tooltip":l,"aria-label":l,"aria-pressed":"toggle"===t.type?String(this.isActive(t)):void 0,"aria-expanded":a?String(i):void 0,disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.run(t),part:"button"},r("co-icon",{name:this.getDynamicIcon(t),size:18})),i&&"popover"===t.type&&this.renderInputPopover(t),i&&"dropdown"===t.type&&this.renderDropdown(t),i&&"grid"===t.type&&this.renderTableGrid())}renderAlignmentGroup(t){const e=this.s,o={left:e.alignLeft,center:e.center,right:e.alignRight,justify:e.justify};return r("div",{class:"co-rich-text-toolbar__align-group",key:t.action},t.options.map((t=>{var e,a,i;const n=null!==(a=null===(e=this.editor)||void 0===e?void 0:e.isActive({textAlign:t.payload}))&&void 0!==a&&a,c=null!==(i=o[t.payload])&&void 0!==i?i:t.label;return r("button",{type:"button",class:{"co-rich-text-toolbar__btn":!0,"co-rich-text-toolbar__btn--active":n},"data-tooltip":c,"aria-label":c,"aria-pressed":String(n),disabled:!this.editor||this.disabled,onMouseDown:t=>t.preventDefault(),onClick:()=>{this.editor&&(this.editor.chain().focus().setTextAlign(t.payload).run(),this.coAction.emit({action:"textAlign",payload:t.payload}))},part:"button"},r("co-icon",{name:t.icon,size:18}))})))}renderColorButton(t){const e=this.openPopover===t.action,o=this.tItem(t),a=this.getActiveColor(t.action),i="textColor"===t.action;return r("div",{class:"co-rich-text-toolbar__btn-wrap",key:t.action},r("button",{type:"button",class:{"co-rich-text-toolbar__btn":!0,"co-rich-text-toolbar__btn--active":e},"data-tooltip":o,"aria-label":o,"aria-expanded":String(e),disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.run(t),part:"button"},i?r("span",{class:"co-rich-text-toolbar__color-indicator"},r("span",{class:"co-rich-text-toolbar__color-letter"},"A"),r("span",{class:"co-rich-text-toolbar__color-bar",style:{background:a}})):r("span",{class:"co-rich-text-toolbar__color-indicator"},r("co-icon",{name:t.icon,size:16}),r("span",{class:"co-rich-text-toolbar__color-bar",style:{background:"transparent"===a?"#cccccc":a}}))),e&&this.renderColorPicker(t))}renderListPicker(t){var e,o;if(!(null===(e=t.options)||void 0===e?void 0:e.length))return null;if("taskListMenu"===t.action)return this.renderTaskListPicker(t);const a="orderedListMenu"===t.action,i=this.editor?null===(o=this.editor.getAttributes(a?"orderedList":"bulletList"))||void 0===o?void 0:o.listStyleType:null;return r("div",{class:"co-rich-text-toolbar__listpicker",onMouseDown:t=>{t.preventDefault(),t.stopPropagation()}},t.options.map((t=>r("button",{type:"button",class:{"co-rich-text-toolbar__listpicker-item":!0,"co-rich-text-toolbar__listpicker-item--active":i===t.payload},"data-tooltip":t.label,onMouseDown:t=>t.preventDefault(),onClick:()=>this.applyListStyle(a,t.payload)},r("ol",{class:{"co-rich-text-toolbar__listpicker-preview":!0,"co-rich-text-toolbar__listpicker-preview--ordered":a},style:{"list-style-type":t.payload}},r("li",null),r("li",null),r("li",null))))))}renderTaskListPicker(t){var e,o;const a=this.editor&&this.editor.isActive("taskList")?null!==(o=null===(e=this.editor.getAttributes("taskList"))||void 0===e?void 0:e.variant)&&void 0!==o?o:"strike":null;return r("div",{class:"co-rich-text-toolbar__listpicker co-rich-text-toolbar__listpicker--task",onMouseDown:t=>{t.preventDefault(),t.stopPropagation()}},t.options.map((t=>{const e=t.payload;return r("button",{type:"button",class:{"co-rich-text-toolbar__listpicker-item":!0,"co-rich-text-toolbar__listpicker-item--task":!0,"co-rich-text-toolbar__listpicker-item--active":a===e},"data-tooltip":t.label,onMouseDown:t=>t.preventDefault(),onClick:()=>this.applyTaskStyle(e)},r("span",{class:"co-rich-text-toolbar__taskpreview","data-variant":e},r("span",{class:"co-rich-text-toolbar__taskpreview-row"},r("span",{class:"co-rich-text-toolbar__taskpreview-box"}),r("span",{class:"co-rich-text-toolbar__taskpreview-line"})),r("span",{class:"co-rich-text-toolbar__taskpreview-row co-rich-text-toolbar__taskpreview-row--checked"},r("span",{class:"co-rich-text-toolbar__taskpreview-box co-rich-text-toolbar__taskpreview-box--checked"}),r("span",{class:"co-rich-text-toolbar__taskpreview-line"}))))})))}applyListStyle(t,e){const o=this.editor;if(!o)return;const r=o.chain().focus();t?o.isActive("orderedList")||r.toggleOrderedList():o.isActive("bulletList")||r.toggleBulletList(),r.setListStyleType(e).run(),this.coAction.emit({action:t?"orderedStyle":"bulletStyle",payload:e}),this.closePopover()}applyTaskStyle(t){const e=this.editor;if(!e)return;const o=e.chain().focus();e.isActive("taskList")||o.toggleTaskList(),o.setTaskListVariant(t).run(),this.coAction.emit({action:"taskStyle",payload:t}),this.closePopover()}renderInputPopover(t){var e,o;if("image"===t.action)return this.renderImagePopover();const a="link"===t.action,i="iframe"===t.action,n=a&&(null===(e=this.editor)||void 0===e?void 0:e.isActive("link"))||i&&(null===(o=this.editor)||void 0===o?void 0:o.isActive("iframe"));return r("div",{class:"co-rich-text-toolbar__popover",onMouseDown:t=>{"INPUT"!==t.target.tagName&&t.preventDefault(),t.stopPropagation()}},r("input",{type:"url",class:"co-rich-text-toolbar__popover-input",placeholder:"iframe"===t.action?this.s.iframeUrlPlaceholder:"link"===t.action?"https://...":this.s.youtubeUrlPlaceholder,value:this.popoverInput,onInput:t=>{this.popoverInput=t.target.value},onKeyDown:e=>{"Enter"===e.key&&this.submitPopover(t.action),"Escape"===e.key&&this.closePopover()},ref:t=>t&&setTimeout((()=>t.focus()),0)}),r("div",{class:"co-rich-text-toolbar__popover-actions"},r("button",{type:"button",class:"co-rich-text-toolbar__popover-btn co-rich-text-toolbar__popover-btn--primary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.submitPopover(t.action)},this.s.add),n&&r("button",{type:"button",class:"co-rich-text-toolbar__popover-btn co-rich-text-toolbar__popover-btn--danger",onMouseDown:t=>t.preventDefault(),onClick:()=>a?this.removeLink():this.removeIframe()},this.s.remove),r("button",{type:"button",class:"co-rich-text-toolbar__popover-btn",onMouseDown:t=>t.preventDefault(),onClick:()=>this.closePopover()},this.s.cancel)))}renderImagePopover(){return"url"===this.imagePopoverMode?r("div",{class:"co-rich-text-toolbar__popover",onMouseDown:t=>{"INPUT"!==t.target.tagName&&t.preventDefault(),t.stopPropagation()}},r("input",{type:"url",class:"co-rich-text-toolbar__popover-input",placeholder:this.s.imageUrlPlaceholder,value:this.popoverInput,onInput:t=>{this.popoverInput=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.submitPopover("image"),"Escape"===t.key&&(this.imagePopoverMode="menu")},ref:t=>t&&setTimeout((()=>t.focus()),0)}),r("div",{class:"co-rich-text-toolbar__popover-actions"},r("button",{type:"button",class:"co-rich-text-toolbar__popover-btn co-rich-text-toolbar__popover-btn--primary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.submitPopover("image")},this.s.add),r("button",{type:"button",class:"co-rich-text-toolbar__popover-btn",onMouseDown:t=>t.preventDefault(),onClick:()=>{this.imagePopoverMode="menu"}},this.s.back))):r("div",{class:"co-rich-text-toolbar__popover",onMouseDown:t=>{t.preventDefault(),t.stopPropagation()}},r("button",{type:"button",class:"co-rich-text-toolbar__popover-option",onMouseDown:t=>t.preventDefault(),onClick:()=>this.triggerImageFileUpload()},r("co-icon",{name:"upload-simple",size:16}),r("span",null,this.s.uploadFromComputer)),r("button",{type:"button",class:"co-rich-text-toolbar__popover-option",onMouseDown:t=>t.preventDefault(),onClick:()=>{this.imagePopoverMode="url"}},r("co-icon",{name:"link",size:16}),r("span",null,this.s.viaUrl)))}triggerImageFileUpload(){const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=()=>{var e;const o=null===(e=t.files)||void 0===e?void 0:e[0];if(!o||!this.editor)return;const r=new FileReader;r.onload=()=>{const t=r.result;this.editor.chain().focus().setImage({src:t}).run(),this.imageUpload&&this.imageUpload(o).then((e=>{var o;const r="string"==typeof e?{src:e}:{src:e.src,dataFileId:null!==(o=e.fileId)&&void 0!==o?o:null},{state:a}=this.editor.view;a.doc.descendants(((e,o)=>{if("image"===e.type.name&&e.attrs.src===t){const t=this.editor.view.state.tr.setNodeMarkup(o,void 0,Object.assign(Object.assign({},e.attrs),r));return this.editor.view.dispatch(t),!1}}))})).catch((()=>{})),this.coAction.emit({action:"image",payload:t})},r.readAsDataURL(o),this.closePopover()},t.click()}isDropdownOptionActive(t){var e,o,r;if(!this.editor)return!1;try{if("textAlign"===t.action)return this.editor.isActive({textAlign:t.payload});if("lineHeight"===t.action){const r=this.editor.getAttributes("paragraph");return(null!==(e=null==r?void 0:r.lineHeight)&&void 0!==e?e:null)===(null!==(o=t.payload)&&void 0!==o?o:null)}if("letterSpacing"===t.action){const e=this.editor.getAttributes("textStyle"),o=null!==(r=null==e?void 0:e.letterSpacing)&&void 0!==r?r:null;return"normal"===t.payload?null===o||"normal"===o:o===t.payload}if("heading"===t.action)return this.editor.isActive("heading",t.payload);if("paragraph"===t.action)return!this.editor.isActive("heading")}catch(t){}return!1}applyDropdownCustom(t,e){const o=this.editor,r=e.trim();if(!o||!r)return;const a=o.chain().focus();if("fontSize"===t){const t=parseFloat(r);if(!(t>0))return;a.setFontSize(/^\d+(\.\d+)?$/.test(r)?`${t}px`:r).run()}else"lineSpacing"===t?a.setLineHeight(r).run():"letterSpacing"===t&&("normal"===r?a.unsetLetterSpacing().run():a.setLetterSpacing(r).run());this.closePopover()}renderDropdown(t){var e;if(!(null===(e=t.options)||void 0===e?void 0:e.length))return null;const o="fontFamily"===t.action,a="headingStyle"===t.action,i="lineSpacing"===t.action,n="letterSpacing"===t.action,c="alignment"===t.action||i||n||a,l="fontSize"===t.action?{placeholder:this.s.sizePlaceholder}:i?{placeholder:this.s.lineSpacingPlaceholder}:n?{placeholder:this.s.letterSpacingPlaceholder}:null;return r("div",{class:"co-rich-text-toolbar__dropdown",onMouseDown:t=>{t.preventDefault(),t.stopPropagation()}},l&&r("div",{class:"co-rich-text-toolbar__dropdown-input-wrap"},r("input",{type:"text",class:"co-rich-text-toolbar__dropdown-input",placeholder:l.placeholder,onMouseDown:t=>t.stopPropagation(),onKeyDown:e=>{"Enter"===e.key?(this.applyDropdownCustom(t.action,e.target.value),e.target.value=""):"Escape"===e.key&&this.closePopover()}})),t.options.map((e=>{var i;if("separator"===e.action)return r("div",{class:"co-rich-text-toolbar__dropdown-sep-label"},r("span",null,this.tOpt(e)));const n={},l=c&&this.isDropdownOptionActive(e);if(a&&"heading"===e.action){const t=null===(i=e.payload)||void 0===i?void 0:i.level;n.fontSize=1===t?"20px":2===t?"16px":"14px",n.fontWeight="600"}return o&&e.payload&&(n.fontFamily=e.payload),r("button",{type:"button",class:{"co-rich-text-toolbar__dropdown-item":!0,"co-rich-text-toolbar__dropdown-item--active":l},style:n,onMouseDown:t=>t.preventDefault(),onClick:()=>this.handleDropdownSelect(t,e)},c&&r("span",{class:"co-rich-text-toolbar__dropdown-check"},l?r("co-icon",{name:"check",size:14}):null),e.icon&&r("co-icon",{name:e.icon,size:16}),r("span",null,this.tOpt(e)))})))}handleDropdownSelect(t,e){const o=this.editor;if(!o)return;const r=o.chain().focus();switch(e.action){case"heading":r.toggleHeading(e.payload).run();break;case"paragraph":r.setParagraph().run();break;case"fontSize":r.setFontSize(e.payload).run();break;case"fontFamily":r.setFontFamily(e.payload).run();break;case"textAlign":r.setTextAlign(e.payload).run();break;case"lineHeight":r.setLineHeight(e.payload).run();break;case"letterSpacing":"normal"===e.payload?r.unsetLetterSpacing().run():r.setLetterSpacing(e.payload).run();break;case"callout":r.insertCallout(e.payload).run()}this.coAction.emit({action:e.action,payload:e.payload}),this.closePopover()}renderTableGrid(){return r("div",{class:"co-rich-text-toolbar__table-picker",onMouseDown:t=>{"INPUT"!==t.target.tagName&&t.preventDefault(),t.stopPropagation()}},r("div",{class:"co-rich-text-toolbar__table-header"},r("co-icon",{name:"table",size:16}),r("span",{class:"co-rich-text-toolbar__table-title"},this.s.configureTable),r("button",{type:"button",class:"co-rich-text-toolbar__table-close",onMouseDown:t=>t.preventDefault(),onClick:()=>this.closePopover()},r("co-icon",{name:"x",size:16}))),r("div",{class:"co-rich-text-toolbar__table-tabs"},r("button",{type:"button",class:{"co-rich-text-toolbar__table-tab":!0,"co-rich-text-toolbar__table-tab--active":"grid"===this.tableTab},onMouseDown:t=>t.preventDefault(),onClick:()=>{this.tableTab="grid"}},this.s.grid),r("button",{type:"button",class:{"co-rich-text-toolbar__table-tab":!0,"co-rich-text-toolbar__table-tab--active":"manual"===this.tableTab},onMouseDown:t=>t.preventDefault(),onClick:()=>{this.tableTab="manual"}},this.s.manual)),"grid"===this.tableTab&&this.renderGridTab(),"manual"===this.tableTab&&this.renderManualTab(),r("label",{class:"co-rich-text-toolbar__table-check"},r("input",{type:"checkbox",checked:this.tableWithHeader,onChange:t=>{this.tableWithHeader=t.target.checked}}),r("span",null,this.s.includeHeaderRow)),"manual"===this.tableTab&&r("div",{class:"co-rich-text-toolbar__table-actions"},r("button",{type:"button",class:"co-rich-text-toolbar__table-btn co-rich-text-toolbar__table-btn--secondary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.closePopover()},this.s.cancel),r("button",{type:"button",class:"co-rich-text-toolbar__table-btn co-rich-text-toolbar__table-btn--primary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.insertTable(this.tableManualRows,this.tableManualCols)},this.s.createTable)))}renderGridTab(){const t=[],e=this.gridLockedRows>0,o=e?this.gridLockedRows:this.gridHoverRows,a=e?this.gridLockedCols:this.gridHoverCols;for(let i=1;i<=8;i++)for(let n=1;n<=8;n++)t.push(r("div",{class:{"co-rich-text-toolbar__grid-cell":!0,"co-rich-text-toolbar__grid-cell--active":i<=o&&n<=a},onMouseEnter:()=>{e||(this.gridHoverRows=i,this.gridHoverCols=n)},onMouseDown:t=>t.preventDefault(),onClick:()=>{this.gridLockedRows=i,this.gridLockedCols=n}}));const i=this.s,n=o>0?`${a} × ${o} (${a} ${i.columns.toLowerCase()} × ${o} ${i.rows.toLowerCase()})`:i.selectSize;return r("div",{class:"co-rich-text-toolbar__grid-container",onMouseLeave:()=>{e||(this.gridHoverRows=0,this.gridHoverCols=0)}},r("div",{class:"co-rich-text-toolbar__grid",style:{"grid-template-columns":"repeat(8, 1fr)"}},t),r("div",{class:"co-rich-text-toolbar__grid-footer"},r("span",{class:"co-rich-text-toolbar__grid-label"},n),e&&r("button",{type:"button",class:"co-rich-text-toolbar__grid-reset",onMouseDown:t=>t.preventDefault(),onClick:()=>{this.gridLockedRows=0,this.gridLockedCols=0,this.gridHoverRows=0,this.gridHoverCols=0}},i.changeSelection)),e&&r("div",{class:"co-rich-text-toolbar__table-actions"},r("button",{type:"button",class:"co-rich-text-toolbar__table-btn co-rich-text-toolbar__table-btn--secondary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.closePopover()},i.cancel),r("button",{type:"button",class:"co-rich-text-toolbar__table-btn co-rich-text-toolbar__table-btn--primary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.insertTable(this.gridLockedRows,this.gridLockedCols)},i.createTable)))}renderManualTab(){return r("div",{class:"co-rich-text-toolbar__table-manual"},r("div",{class:"co-rich-text-toolbar__table-field"},r("label",null,this.s.columns,":"),r("input",{type:"number",min:"1",max:"20",value:this.tableManualCols,onInput:t=>{this.tableManualCols=Math.max(1,parseInt(t.target.value)||1)}})),r("div",{class:"co-rich-text-toolbar__table-field"},r("label",null,this.s.rows,":"),r("input",{type:"number",min:"1",max:"50",value:this.tableManualRows,onInput:t=>{this.tableManualRows=Math.max(1,parseInt(t.target.value)||1)}})))}insertTable(t,e){const o=this.editor;if(!o)return;if(o.isActive("table"))return void this.closePopover();const r=this.tableWithHeader,a=t=>({type:"tableHeader",content:[{type:"paragraph",content:[{type:"text",text:`${this.s.tableHeaderLabel} ${t+1}`}]}]}),i=[];r&&i.push({type:"tableRow",content:Array.from({length:e},((t,e)=>a(e)))});const n=r?t-1:t;for(let t=0;t<n;t++)i.push({type:"tableRow",content:Array.from({length:e},(()=>({type:"tableCell",content:[{type:"paragraph"}]})))});o.chain().focus().insertContent({type:"table",content:i}).run(),this.coAction.emit({action:"table",payload:{rows:t,cols:e,withHeaderRow:r}}),this.closePopover()}renderColorPicker(t){return r("div",{class:"co-rich-text-toolbar__color-picker",onMouseDown:t=>{"INPUT"!==t.target.tagName&&t.preventDefault(),t.stopPropagation()}},r("div",{class:"co-rich-text-toolbar__color-grid"},this.colorPalette.map((e=>r("button",{type:"button",class:"co-rich-text-toolbar__color-swatch",style:Object.assign({background:e},"#ffffff"===e?{border:"1px solid #ccc"}:{}),title:e,onMouseDown:t=>t.preventDefault(),onClick:()=>this.selectColor(t.action,e)})))),r("div",{class:"co-rich-text-toolbar__color-hex"},r("input",{type:"text",class:"co-rich-text-toolbar__color-hex-input",placeholder:"#hex",maxLength:7,value:this.colorHexInput,onInput:t=>{this.colorHexInput=t.target.value},onKeyDown:e=>{if("Enter"===e.key){const e=this.colorHexInput.trim();/^#[0-9a-fA-F]{3,6}$/.test(e)&&(this.selectColor(t.action,e),this.colorHexInput="")}else"Escape"===e.key&&this.closePopover()}})),r("button",{type:"button",class:"co-rich-text-toolbar__color-clear",onMouseDown:t=>t.preventDefault(),onClick:()=>this.clearColor(t.action)},r("co-icon",{name:"x",size:12}),r("span",null,this.s.removeColor)))}render(){return"none"===this.variant||0===this.items.length?null:r("div",{class:"co-rich-text-toolbar",role:"toolbar","aria-label":"Formatting",part:"toolbar"},this.items.map((t=>this.isSeparator(t)?r("span",{class:"co-rich-text-toolbar__sep"}):this.renderButton(t))))}get el(){return this}static get watchers(){return{variant:[{onVariantChange:0}],editor:[{onEditorChange:0}],openPopover:[{onOpenPopoverChange:0}]}}static get style(){return":host{display:block;font-family:var(--co-font-family-primary);z-index:10;flex-shrink:0;background:var(--co-semantic-surface-secondary, #fff);overflow:visible}.co-rich-text-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--co-spacing-xxs, 2px);padding:var(--co-spacing-xs) var(--co-spacing-sm);border-bottom:1px solid var(--co-semantic-border-subtle);background:var(--co-semantic-surface-secondary)}.co-rich-text-toolbar__btn-wrap,.co-rich-text-toolbar__split-wrap{overflow:visible}[data-tooltip]{position:relative}[data-tooltip]::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);padding:4px 8px;background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff);font-size:11px;font-weight:500;line-height:1.3;white-space:nowrap;border-radius:4px;pointer-events:none;opacity:0;transition:opacity 0.15s ease;z-index:9999}[data-tooltip]:hover::after{opacity:1;transition-delay:0.4s}[data-tooltip]:active::after,[data-tooltip][aria-expanded=\"true\"]::after{opacity:0 !important;transition-delay:0s}.co-rich-text-toolbar__btn-wrap{position:relative;display:inline-flex}.co-rich-text-toolbar__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:none;border-radius:var(--co-border-radius-xxs);background:transparent;color:var(--co-semantic-text-default, #333);cursor:pointer;transition:background 0.12s ease, color 0.12s ease}.co-rich-text-toolbar__btn:hover:not(:disabled):not(.co-rich-text-toolbar__btn--active){background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.08));color:var(--co-semantic-text-default, #1a1a1a)}.co-rich-text-toolbar__btn--active{background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff)}.co-rich-text-toolbar__btn--active:hover{background:var(--co-color-base-negro, #333);color:var(--co-color-base-blanco, #fff)}.co-rich-text-toolbar__btn:disabled{opacity:0.4;cursor:not-allowed}.co-rich-text-toolbar__btn:focus-visible{outline:2px solid var(--co-semantic-border-focus, var(--co-color-base-negro, #1a1a1a));outline-offset:1px}.co-rich-text-toolbar__select-btn{display:inline-flex;align-items:center;gap:2px;height:30px;padding:0 6px;border:1px solid transparent;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);cursor:pointer;white-space:nowrap;transition:background 0.12s, border-color 0.12s}.co-rich-text-toolbar__select-btn:hover:not(:disabled){background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06));border-color:var(--co-semantic-border-default, #e0e0e0)}.co-rich-text-toolbar__select-btn--open{background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06));border-color:var(--co-semantic-border-default, #e0e0e0)}.co-rich-text-toolbar__select-btn:disabled{opacity:0.4;cursor:not-allowed}.co-rich-text-toolbar__select-label{max-width:100px;overflow:hidden;text-overflow:ellipsis}.co-rich-text-toolbar__sep{display:inline-block;width:1px;height:20px;margin:0 var(--co-spacing-xs, 4px);background:var(--co-semantic-border-subtle, rgba(0, 0, 0, 0.12))}.co-rich-text-toolbar__popover{position:absolute;top:100%;left:0;z-index:100;display:flex;flex-direction:column;gap:var(--co-spacing-xs, 4px);min-width:280px;padding:var(--co-spacing-sm, 8px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);margin-top:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__popover-input{width:100%;padding:6px 10px;border:1px solid var(--co-semantic-border-default, #ccc);border-radius:var(--co-border-radius-xxs, 4px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);outline:none;box-sizing:border-box}.co-rich-text-toolbar__popover-input:focus{border-color:var(--co-color-base-negro, #1a1a1a);box-shadow:0 0 0 2px rgba(0, 0, 0, 0.1)}.co-rich-text-toolbar__popover-actions{display:flex;gap:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__popover-btn{padding:4px 12px;border:1px solid var(--co-semantic-border-default, #ccc);border-radius:var(--co-border-radius-xxs, 4px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);cursor:pointer;background:var(--co-semantic-surface-secondary, #fff);color:var(--co-semantic-text-default, #333);transition:background 0.12s}.co-rich-text-toolbar__popover-btn:hover:not(.co-rich-text-toolbar__popover-btn--primary){background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rich-text-toolbar__popover-btn--primary{background:var(--co-color-base-negro, #1a1a1a);color:#fff;border-color:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__popover-btn--primary:hover{background:var(--co-color-base-negro, #333);color:#fff}.co-rich-text-toolbar__popover-btn--danger{color:var(--co-color-status-error, #aa2e1b);border-color:var(--co-color-status-error, #aa2e1b)}.co-rich-text-toolbar__popover-option{display:flex;align-items:center;gap:var(--co-spacing-sm, 8px);width:100%;padding:8px 10px;border:none;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);cursor:pointer;text-align:left;transition:background 0.1s}.co-rich-text-toolbar__popover-option:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rich-text-toolbar__dropdown{position:absolute;top:100%;left:0;z-index:100;display:flex;flex-direction:column;min-width:180px;max-height:360px;overflow-y:auto;padding:var(--co-spacing-xs, 4px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);margin-top:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__dropdown-item{display:flex;align-items:center;gap:var(--co-spacing-sm, 8px);padding:6px 10px;border:none;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);cursor:pointer;text-align:left;transition:background 0.12s}.co-rich-text-toolbar__dropdown-item:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rich-text-toolbar__dropdown-sep{height:1px;margin:4px 0;background:var(--co-semantic-border-default, #e0e0e0)}.co-rich-text-toolbar__dropdown-sep-label{padding:6px 10px 2px;font-family:var(--co-font-family-primary);font-size:11px;font-weight:600;color:var(--co-semantic-text-muted, #999);letter-spacing:0.03em;border-top:1px solid var(--co-semantic-border-default, #e0e0e0);margin-top:2px}.co-rich-text-toolbar__dropdown-input-wrap{padding:6px 8px;border-bottom:1px solid var(--co-semantic-border-default, #e0e0e0)}.co-rich-text-toolbar__dropdown-input{width:100%;padding:4px 8px;border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:4px;font-size:13px;font-family:var(--co-font-family-primary);outline:none;box-sizing:border-box}.co-rich-text-toolbar__dropdown-input:focus{border-color:var(--co-color-base-negro, #1a1a1a);box-shadow:0 0 0 2px rgba(0, 0, 0, 0.1)}.co-rich-text-toolbar__color-picker{position:absolute;top:100%;left:0;z-index:100;display:flex;flex-direction:column;gap:var(--co-spacing-xs, 4px);padding:var(--co-spacing-sm, 8px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);margin-top:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__color-grid{display:grid;grid-template-columns:repeat(10, 1fr);gap:2px}.co-rich-text-toolbar__color-swatch{width:22px;height:22px;padding:0;border:none;border-radius:3px;cursor:pointer;transition:transform 0.1s, box-shadow 0.1s}.co-rich-text-toolbar__color-swatch:hover{transform:scale(1.2);box-shadow:0 0 0 2px var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__color-clear{display:flex;align-items:center;gap:var(--co-spacing-xs, 4px);padding:4px 8px;border:none;background:transparent;color:var(--co-semantic-text-secondary, #666);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);cursor:pointer;border-radius:var(--co-border-radius-xxs, 4px);margin-top:var(--co-spacing-xxs, 2px)}.co-rich-text-toolbar__color-clear:hover{background:var(--co-semantic-surface-hover, #f5f5f5);color:var(--co-semantic-text-default, #333)}.co-rich-text-toolbar__table-picker{position:absolute;top:100%;left:0;z-index:100;display:flex;flex-direction:column;width:280px;padding:var(--co-spacing-lg, 16px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 8px 24px rgba(0, 0, 0, 0.12);margin-top:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__table-header{display:flex;align-items:center;gap:var(--co-spacing-sm, 8px);margin-bottom:var(--co-spacing-md, 12px)}.co-rich-text-toolbar__table-title{flex:1;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);font-weight:600;letter-spacing:0.06em;color:var(--co-semantic-text-secondary, #666)}.co-rich-text-toolbar__table-close{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-secondary, #666);cursor:pointer}.co-rich-text-toolbar__table-close:hover{background:var(--co-semantic-surface-hover, #f0f0f0)}.co-rich-text-toolbar__table-tabs{display:flex;gap:0;margin-bottom:var(--co-spacing-md, 12px);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xxs, 4px);overflow:hidden}.co-rich-text-toolbar__table-tab{flex:1;padding:var(--co-spacing-sm, 8px) var(--co-spacing-md, 12px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-13, 13px);font-weight:500;border:none;background:transparent;color:var(--co-semantic-text-secondary, #666);cursor:pointer;transition:background 0.12s, color 0.12s}.co-rich-text-toolbar__table-tab:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rich-text-toolbar__table-tab--active{background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff)}.co-rich-text-toolbar__grid-container{display:flex;flex-direction:column;gap:var(--co-spacing-sm, 8px);margin-bottom:var(--co-spacing-md, 12px)}.co-rich-text-toolbar__grid{display:grid;gap:3px}.co-rich-text-toolbar__grid-cell{width:24px;height:24px;border:1px solid var(--co-semantic-border-default, #d0d0d0);border-radius:3px;background:transparent;cursor:pointer;transition:background 0.08s, border-color 0.08s}.co-rich-text-toolbar__grid-cell:hover,.co-rich-text-toolbar__grid-cell--active{background:var(--co-color-base-negro, #1a1a1a);border-color:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__grid-footer{display:flex;align-items:center;justify-content:space-between}.co-rich-text-toolbar__grid-label{font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);color:var(--co-semantic-text-muted, #999)}.co-rich-text-toolbar__grid-reset{font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);color:var(--co-semantic-text-default, #333);text-decoration:underline;border:none;background:transparent;cursor:pointer;padding:0}.co-rich-text-toolbar__table-manual{display:flex;flex-direction:column;gap:var(--co-spacing-md, 12px);margin-bottom:var(--co-spacing-md, 12px)}.co-rich-text-toolbar__table-field{display:flex;align-items:center;gap:var(--co-spacing-md, 12px)}.co-rich-text-toolbar__table-field label{font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);color:var(--co-semantic-text-default, #333);min-width:70px}.co-rich-text-toolbar__table-field input{flex:1;padding:var(--co-spacing-sm, 8px) var(--co-spacing-md, 12px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xxs, 4px);background:var(--co-semantic-surface-secondary, #fff);outline:none}.co-rich-text-toolbar__table-field input:focus{border-color:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__table-check{display:flex;align-items:center;gap:var(--co-spacing-sm, 8px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);color:var(--co-semantic-text-default, #333);cursor:pointer;margin-bottom:var(--co-spacing-md, 12px)}.co-rich-text-toolbar__table-check input{width:18px;height:18px;cursor:pointer;accent-color:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__table-actions{display:flex;gap:var(--co-spacing-sm, 8px);justify-content:flex-end}.co-rich-text-toolbar__table-btn{padding:var(--co-spacing-sm, 8px) var(--co-spacing-lg, 16px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-13, 13px);font-weight:500;border:none;border-radius:var(--co-border-radius-xxs, 4px);cursor:pointer;transition:opacity 0.12s}.co-rich-text-toolbar__table-btn--primary{background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff)}.co-rich-text-toolbar__table-btn--primary:hover{opacity:0.85}.co-rich-text-toolbar__table-btn--secondary{background:transparent;color:var(--co-semantic-text-default, #333)}.co-rich-text-toolbar__table-btn--secondary:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rich-text-toolbar__split-wrap{position:relative;display:inline-flex;align-items:center}.co-rich-text-toolbar__split-main{border-top-right-radius:0;border-bottom-right-radius:0;width:28px}.co-rich-text-toolbar__split-caret{display:inline-flex;align-items:center;justify-content:center;width:16px;height:30px;padding:0;border:none;border-radius:var(--co-border-radius-xxs);border-top-left-radius:0;border-bottom-left-radius:0;background:transparent;color:var(--co-semantic-text-default, #333);cursor:pointer;transition:background 0.12s ease}.co-rich-text-toolbar__split-caret:hover:not(:disabled),.co-rich-text-toolbar__split-caret--open{background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.08))}.co-rich-text-toolbar__split-caret:disabled{opacity:0.4;cursor:not-allowed}.co-rich-text-toolbar__listpicker{position:absolute;top:100%;left:0;z-index:100;display:grid;grid-template-columns:repeat(3, 1fr);gap:14px;padding:16px;background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 8px 24px rgba(0, 0, 0, 0.14);margin-top:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__listpicker-item{display:flex;align-items:center;justify-content:flex-start;width:76px;height:60px;padding:0;border:1px solid var(--co-semantic-border-default, #e3e3e3);border-radius:8px;background:var(--co-semantic-surface-secondary, #fff);cursor:pointer;transition:border-color 0.12s, box-shadow 0.12s, background 0.12s}.co-rich-text-toolbar__listpicker-item:hover{border-color:var(--co-color-base-negro, #1a1a1a);background:var(--co-semantic-surface-hover, #fafafa)}.co-rich-text-toolbar__listpicker-item--active{border-color:var(--co-color-base-negro, #1a1a1a);box-shadow:0 0 0 1.5px var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__listpicker-preview{margin:0;padding:0 0 0 22px;list-style-position:outside;pointer-events:none}.co-rich-text-toolbar__listpicker-preview li{height:3px;width:30px;margin:7px 0;background:var(--co-semantic-border-default, #cfcfcf);border-radius:2px}.co-rich-text-toolbar__listpicker-preview li::marker{color:var(--co-color-base-negro, #1a1a1a);font-size:11px;font-weight:600}.co-rich-text-toolbar__listpicker--task{grid-template-columns:repeat(2, 1fr)}.co-rich-text-toolbar__listpicker-item--task{width:92px;justify-content:center}.co-rich-text-toolbar__taskpreview{display:flex;flex-direction:column;gap:9px}.co-rich-text-toolbar__taskpreview-row{display:flex;align-items:center;gap:7px}.co-rich-text-toolbar__taskpreview-box{flex:0 0 auto;width:11px;height:11px;border:1.5px solid var(--co-color-base-negro, #1a1a1a);border-radius:3px;box-sizing:border-box}.co-rich-text-toolbar__taskpreview-box--checked{position:relative;background:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__taskpreview-box--checked::after{content:'';position:absolute;left:3px;top:0.5px;width:3px;height:6px;border:solid #fff;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}.co-rich-text-toolbar__taskpreview-line{position:relative;width:34px;height:3px;background:var(--co-semantic-border-default, #cfcfcf);border-radius:2px}.co-rich-text-toolbar__taskpreview[data-variant=\"strike\"] .co-rich-text-toolbar__taskpreview-row--checked .co-rich-text-toolbar__taskpreview-line::after{content:'';position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:1.5px;background:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__dropdown-check{display:inline-flex;align-items:center;justify-content:center;width:18px;flex-shrink:0}.co-rich-text-toolbar__dropdown-item--active{background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.04));font-weight:600}.co-rich-text-toolbar__align-group{display:inline-flex;align-items:center;gap:0}.co-rich-text-toolbar__color-indicator{display:flex;flex-direction:column;align-items:center;gap:1px;line-height:1}.co-rich-text-toolbar__color-letter{font-family:var(--co-font-family-primary);font-size:14px;font-weight:700;color:var(--co-semantic-text-default, #333);line-height:1}.co-rich-text-toolbar__color-bar{width:14px;height:3px;border-radius:1px}.co-rich-text-toolbar__color-hex{display:flex;align-items:center;gap:4px;margin-top:6px}.co-rich-text-toolbar__color-hex-input{width:100%;padding:3px 6px;border:1px solid var(--co-semantic-border-default, #ccc);border-radius:3px;background:var(--co-semantic-surface-secondary, #fff);color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-mono, monospace);font-size:11px;outline:none;box-sizing:border-box}.co-rich-text-toolbar__color-hex-input:focus{border-color:var(--co-color-base-negro, #1a1a1a);box-shadow:0 0 0 2px rgba(0, 0, 0, 0.1)}"}},[1,"co-rich-text-toolbar",{editor:[16],variant:[1],disabled:[4],locale:[1],imageUpload:[16],items:[32],tick:[32],openPopover:[32],popoverInput:[32],gridHoverRows:[32],gridHoverCols:[32],gridLockedRows:[32],gridLockedCols:[32],tableTab:[32],tableManualRows:[32],tableManualCols:[32],tableWithHeader:[32],tableContextItems:[32],imagePopoverMode:[32],colorHexInput:[32]},void 0,{variant:[{onVariantChange:0}],editor:[{onEditorChange:0}],openPopover:[{onOpenPopoverChange:0}]}]);function h(){"undefined"!=typeof customElements&&["co-rich-text-toolbar","co-icon"].forEach((t=>{switch(t){case"co-rich-text-toolbar":customElements.get(a(t))||customElements.define(a(t),p);break;case"co-icon":customElements.get(a(t))||i()}}))}p.ITEM_COMMAND={table:"insertTable",image:"setImage",youtube:"setYoutubeVideo",iframe:"setIframe",callout:"insertCallout",fontFamily:"setFontFamily",fontSize:"setFontSize",highlight:"toggleHighlight",alignment:"setTextAlign",lineSpacing:"setLineHeight",letterSpacing:"setLetterSpacing",taskListMenu:"toggleTaskList",indentIncrease:"indent",indentDecrease:"outdent",codeBlock:"toggleCodeBlock",blockquote:"toggleBlockquote",horizontalRule:"setHorizontalRule",bulletListMenu:"toggleBulletList",orderedListMenu:"toggleOrderedList"},h();export{p as C,h as d,d as g}
|
|
1
|
+
import{p as t,H as e,c as o,h as r,t as a}from"./index.js";import{d as i}from"./p-D4SOCy8I.js";import{C as n,T as c,t as l}from"./p-ChibIpZv.js";const s={en:{bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",code:"Code",styles:"Styles",normalText:"Normal text",title:"Title",subtitle:"Subtitle",heading3:"Heading 3",fontSize:"Font size",font:"Font",systemFonts:"System fonts",bulletList:"Bullet list",orderedList:"Numbered list",taskList:"Task list",disc:"Disc",circle:"Circle",square:"Square",strikeOnComplete:"Strike on complete",noStrikethrough:"No strikethrough",quote:"Quote",codeBlock:"Code block",horizontalRule:"Horizontal rule",link:"Link",image:"Image",youtubeVideo:"YouTube video",iframeEmbed:"Embed (iframe)",table:"Table",textColor:"Text color",highlight:"Highlight",backgroundColor:"Background color",removeColor:"Remove color",noColor:"No color",alignment:"Alignment",left:"Left",center:"Center",right:"Right",justify:"Justify",alignLeft:"Align left",alignRight:"Align right",lineSpacing:"Line spacing",single:"Single",double:"Double",letterSpacing:"Letter spacing",normal:"Normal",tight:"Tight (-0.05em)",light:"Light (0.05em)",wide:"Wide (0.1em)",veryWide:"Very wide (0.2em)",increaseIndent:"Increase indent",decreaseIndent:"Decrease indent",callout:"Callout",info:"Info",warning:"Warning",success:"Success",error:"Error",undo:"Undo",redo:"Redo",addColumnAfter:"Add column after",addColumnBefore:"Add column before",deleteColumn:"Delete column",addRowAfter:"Add row after",addRowBefore:"Add row before",addRowAbove:"Add row above",addRowBelow:"Add row below",deleteRow:"Delete row",deleteTable:"Delete table",mergeCells:"Merge cells",splitCell:"Split cell",headerRow:"Header row",tableHeaderLabel:"Header",tableOptions:"TABLE OPTIONS",add:"Add",remove:"Remove",cancel:"Cancel",back:"Back",createTable:"Create table",configureTable:"CONFIGURE TABLE",grid:"Grid",manual:"Manual",includeHeaderRow:"Include header row",selectSize:"Select size",changeSelection:"Change selection",columns:"Columns",rows:"Rows",youtubeUrlPlaceholder:"YouTube URL",iframeUrlPlaceholder:"https:// embed URL",imageUrlPlaceholder:"Image URL",sizePlaceholder:"Size…",lineSpacingPlaceholder:"1.5, 20px, 150%…",letterSpacingPlaceholder:"0.05em, normal…",uploadFromComputer:"Upload from computer",viaUrl:"Via URL",moreOptions:"More options",superscript:"Superscript",subscript:"Subscript",clearFormat:"Clear format",fontWeight:"Font weight",writeSize:"Write size...",searchFont:"Search font...",noResults:"No results",loadingFonts:"Loading fonts...",importedFonts:"Imported fonts",unlinkLink:"Unlink",heading1:"Heading 1",heading2:"Heading 2",headingAbbr1:"H1",headingAbbr2:"H2",headingAbbr3:"H3",stylesPrefix:"Styles:",imageLayoutInline:"Inline",imageLayoutWrapLeft:"Wrap left",imageLayoutWrapRight:"Wrap right",imageLayoutCenter:"Center",imageLayoutFullWidth:"Full width"},es:{bold:"Negrita",italic:"Cursiva",underline:"Subrayado",strikethrough:"Tachado",code:"Código",styles:"Estilos",normalText:"Texto normal",title:"Título",subtitle:"Subtítulo",heading3:"Encabezado 3",fontSize:"Tamaño de fuente",font:"Fuente",systemFonts:"Fuentes del sistema",bulletList:"Lista con viñetas",orderedList:"Lista numerada",taskList:"Lista de tareas",disc:"Disco",circle:"Círculo",square:"Cuadrado",strikeOnComplete:"Tachar al completar",noStrikethrough:"Sin tachado",quote:"Cita",codeBlock:"Bloque de código",horizontalRule:"Línea horizontal",link:"Enlace",image:"Imagen",youtubeVideo:"Video de YouTube",iframeEmbed:"Insertar (iframe)",table:"Tabla",textColor:"Color de texto",highlight:"Resaltar",backgroundColor:"Color de fondo",removeColor:"Quitar color",noColor:"Sin color",alignment:"Alineación",left:"Izquierda",center:"Centro",right:"Derecha",justify:"Justificado",alignLeft:"Izquierda",alignRight:"Derecha",lineSpacing:"Interlineado",single:"Sencillo",double:"Doble",letterSpacing:"Espaciado entre letras",normal:"Normal",tight:"Estrecho (-0.05em)",light:"Ligero (0.05em)",wide:"Amplio (0.1em)",veryWide:"Muy amplio (0.2em)",increaseIndent:"Aumentar sangría",decreaseIndent:"Disminuir sangría",callout:"Nota",info:"Información",warning:"Advertencia",success:"Éxito",error:"Error",undo:"Deshacer",redo:"Rehacer",addColumnAfter:"Añadir columna después",addColumnBefore:"Añadir columna antes",deleteColumn:"Eliminar columna",addRowAfter:"Añadir fila después",addRowBefore:"Añadir fila antes",addRowAbove:"Añadir fila arriba",addRowBelow:"Añadir fila abajo",deleteRow:"Eliminar fila",deleteTable:"Eliminar tabla",mergeCells:"Unir celdas",splitCell:"Dividir celda",headerRow:"Fila de encabezado",tableHeaderLabel:"Encabezado",tableOptions:"OPCIONES DE TABLA",add:"Agregar",remove:"Quitar",cancel:"Cancelar",back:"Volver",createTable:"Crear tabla",configureTable:"CONFIGURAR TABLA",grid:"Cuadrícula",manual:"Manual",includeHeaderRow:"Incluir fila de encabezado",selectSize:"Selecciona tamaño",changeSelection:"Cambiar selección",columns:"Columnas",rows:"Filas",youtubeUrlPlaceholder:"URL de YouTube",iframeUrlPlaceholder:"URL https:// para insertar",imageUrlPlaceholder:"URL de la imagen",sizePlaceholder:"Tamaño…",lineSpacingPlaceholder:"1.5, 20px, 150%…",letterSpacingPlaceholder:"0.05em, normal…",uploadFromComputer:"Subir desde la computadora",viaUrl:"Mediante URL",moreOptions:"Más opciones",superscript:"Superíndice",subscript:"Subíndice",clearFormat:"Limpiar formato",fontWeight:"Grosor de fuente",writeSize:"Escribir tamaño...",searchFont:"Buscar fuente...",noResults:"Sin resultados",loadingFonts:"Cargando fuentes...",importedFonts:"Fuentes importadas",unlinkLink:"Quitar enlace",heading1:"Encabezado 1",heading2:"Encabezado 2",headingAbbr1:"Enc. 1",headingAbbr2:"Enc. 2",headingAbbr3:"Enc. 3",stylesPrefix:"Estilos:",imageLayoutInline:"En línea",imageLayoutWrapLeft:"Ajustar a la izquierda",imageLayoutWrapRight:"Ajustar a la derecha",imageLayoutCenter:"Centrar",imageLayoutFullWidth:"Ancho completo"},pt:{bold:"Negrito",italic:"Itálico",underline:"Sublinhado",strikethrough:"Tachado",code:"Código",styles:"Estilos",normalText:"Texto normal",title:"Título",subtitle:"Subtítulo",heading3:"Título 3",fontSize:"Tamanho da fonte",font:"Fonte",systemFonts:"Fontes do sistema",bulletList:"Lista com marcadores",orderedList:"Lista numerada",taskList:"Lista de tarefas",disc:"Disco",circle:"Círculo",square:"Quadrado",strikeOnComplete:"Riscar ao concluir",noStrikethrough:"Sem tachado",quote:"Citação",codeBlock:"Bloco de código",horizontalRule:"Linha horizontal",link:"Link",image:"Imagem",youtubeVideo:"Vídeo do YouTube",iframeEmbed:"Incorporar (iframe)",table:"Tabela",textColor:"Cor do texto",highlight:"Destaque",backgroundColor:"Cor de fundo",removeColor:"Remover cor",noColor:"Sem cor",alignment:"Alinhamento",left:"Esquerda",center:"Centro",right:"Direita",justify:"Justificado",alignLeft:"Esquerda",alignRight:"Direita",lineSpacing:"Espaçamento entre linhas",single:"Simples",double:"Duplo",letterSpacing:"Espaçamento entre letras",normal:"Normal",tight:"Estreito (-0.05em)",light:"Leve (0.05em)",wide:"Amplo (0.1em)",veryWide:"Muito amplo (0.2em)",increaseIndent:"Aumentar recuo",decreaseIndent:"Diminuir recuo",callout:"Nota",info:"Informação",warning:"Aviso",success:"Sucesso",error:"Erro",undo:"Desfazer",redo:"Refazer",addColumnAfter:"Adicionar coluna depois",addColumnBefore:"Adicionar coluna antes",deleteColumn:"Excluir coluna",addRowAfter:"Adicionar linha depois",addRowBefore:"Adicionar linha antes",addRowAbove:"Adicionar linha acima",addRowBelow:"Adicionar linha abaixo",deleteRow:"Excluir linha",deleteTable:"Excluir tabela",mergeCells:"Mesclar células",splitCell:"Dividir célula",headerRow:"Linha de cabeçalho",tableHeaderLabel:"Cabeçalho",tableOptions:"OPÇÕES DE TABELA",add:"Adicionar",remove:"Remover",cancel:"Cancelar",back:"Voltar",createTable:"Criar tabela",configureTable:"CONFIGURAR TABELA",grid:"Grade",manual:"Manual",includeHeaderRow:"Incluir linha de cabeçalho",selectSize:"Selecionar tamanho",changeSelection:"Alterar seleção",columns:"Colunas",rows:"Linhas",youtubeUrlPlaceholder:"URL do YouTube",iframeUrlPlaceholder:"URL https:// para incorporar",imageUrlPlaceholder:"URL da imagem",sizePlaceholder:"Tamanho…",lineSpacingPlaceholder:"1.5, 20px, 150%…",letterSpacingPlaceholder:"0.05em, normal…",uploadFromComputer:"Carregar do computador",viaUrl:"Via URL",moreOptions:"Mais opções",superscript:"Sobrescrito",subscript:"Subscrito",clearFormat:"Limpar formatação",fontWeight:"Peso da fonte",writeSize:"Escrever tamanho...",searchFont:"Buscar fonte...",noResults:"Sem resultados",loadingFonts:"Carregando fontes...",importedFonts:"Fontes importadas",unlinkLink:"Remover link",heading1:"Título 1",heading2:"Título 2",headingAbbr1:"T. 1",headingAbbr2:"T. 2",headingAbbr3:"T. 3",stylesPrefix:"Estilos:",imageLayoutInline:"Em linha",imageLayoutWrapLeft:"Ajustar à esquerda",imageLayoutWrapRight:"Ajustar à direita",imageLayoutCenter:"Centralizar",imageLayoutFullWidth:"Largura total"}};function d(t){return s[function(t){const e=(t||"").toLowerCase();return e.startsWith("es")?"es":e.startsWith("pt")?"pt":(e.startsWith("en"),"en")}(t)]}const p=t(class t extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.coAction=o(this,"coAction",7),this.coPopoverChange=o(this,"coPopoverChange",7),this.variant="basic",this.disabled=!1,this.locale="en",this.items=[],this.tick=0,this.openPopover=null,this.popoverInput="",this.gridHoverRows=0,this.gridHoverCols=0,this.gridLockedRows=0,this.gridLockedCols=0,this.tableTab="grid",this.tableManualRows=3,this.tableManualCols=3,this.tableWithHeader=!1,this.tableContextItems=[],this.imagePopoverMode="menu",this.colorHexInput="",this.onTransaction=()=>{this.tick++,this.updateTableContext()},this.colorPalette=[],this._tableContextItems=[],this.handleHostMouseDown=t=>{t.composedPath().some((t=>t instanceof e&&"INPUT"===t.tagName))||t.preventDefault()},this.handleDocumentClick=t=>{this.openPopover&&(this.el.contains(t.target)||this.closePopover())},this.run=t=>{const e=this.editor;if(!e||this.disabled)return;const o=e.chain().focus();switch(t.action){case"bold":o.toggleBold().run();break;case"italic":o.toggleItalic().run();break;case"underline":o.toggleUnderline().run();break;case"strike":o.toggleStrike().run();break;case"code":o.toggleCode().run();break;case"bulletList":case"bulletListMenu":o.toggleBulletList().run();break;case"orderedList":case"orderedListMenu":o.toggleOrderedList().run();break;case"taskListMenu":o.toggleTaskList().run();break;case"blockquote":o.toggleBlockquote().run();break;case"codeBlock":o.toggleCodeBlock().run();break;case"heading":o.toggleHeading(t.payload).run();break;case"horizontalRule":o.setHorizontalRule().run();break;case"textAlign":o.setTextAlign(t.payload).run();break;case"undo":o.undo().run();break;case"redo":o.redo().run();break;case"addColumnAfter":o.addColumnAfter().run();break;case"addColumnBefore":o.addColumnBefore().run();break;case"deleteColumn":o.deleteColumn().run();break;case"addRowAfter":o.addRowAfter().run();break;case"addRowBefore":o.addRowBefore().run();break;case"deleteRow":o.deleteRow().run();break;case"deleteTable":o.deleteTable().run();break;case"mergeCells":o.mergeCells().run();break;case"splitCell":o.splitCell().run();break;case"toggleHeaderRow":o.toggleHeaderRow().run();break;case"indentIncrease":e.isActive("bulletList")||e.isActive("orderedList")?o.sinkListItem("listItem").run():o.indent().run();break;case"indentDecrease":e.isActive("bulletList")||e.isActive("orderedList")?o.liftListItem("listItem").run():o.outdent().run();break;case"link":case"image":case"youtube":case"iframe":case"callout":case"fontSize":case"fontFamily":case"headingStyle":case"lineSpacing":case"letterSpacing":case"table":case"textColor":case"highlight":return void this.togglePopover(t.action);default:o.run()}this.coAction.emit({action:t.action,payload:t.payload})}}get s(){return d(this.locale)}tItem(t){var e;const o=this.s;return null!==(e={bold:o.bold,italic:o.italic,underline:o.underline,strike:o.strikethrough,code:o.code,headingStyle:o.styles,fontSize:o.fontSize,fontFamily:o.font,bulletList:o.bulletList,orderedList:o.orderedList,bulletListMenu:o.bulletList,orderedListMenu:o.orderedList,taskListMenu:o.taskList,blockquote:o.quote,codeBlock:o.codeBlock,horizontalRule:o.horizontalRule,link:o.link,image:o.image,youtube:o.youtubeVideo,iframe:o.iframeEmbed,table:o.table,textColor:o.textColor,highlight:o.highlight,alignment:o.alignment,lineSpacing:o.lineSpacing,letterSpacing:o.letterSpacing,indentIncrease:o.increaseIndent,indentDecrease:o.decreaseIndent,callout:o.callout,undo:o.undo,redo:o.redo,addColumnAfter:o.addColumnAfter,addColumnBefore:o.addColumnBefore,deleteColumn:o.deleteColumn,addRowAfter:o.addRowAfter,addRowBefore:o.addRowBefore,deleteRow:o.deleteRow,deleteTable:o.deleteTable,mergeCells:o.mergeCells,splitCell:o.splitCell,toggleHeaderRow:o.headerRow}[t.action])&&void 0!==e?e:t.label}tOpt(t){var e,o,r,a,i;const n=this.s;if("separator"===t.action)return`─── ${n.systemFonts} ───`;if("paragraph"===t.action)return n.normalText;if("heading"===t.action){const o=null===(e=t.payload)||void 0===e?void 0:e.level;if(1===o)return n.title;if(2===o)return n.subtitle;if(3===o)return n.heading3}if("bulletStyle"===t.action)return null!==(o={disc:n.disc,circle:n.circle,square:n.square}[t.payload])&&void 0!==o?o:t.label;if("taskStyle"===t.action){if("strike"===t.payload)return n.strikeOnComplete;if("plain"===t.payload)return n.noStrikethrough}if("textAlign"===t.action)return null!==(r={left:n.left,center:n.center,right:n.right,justify:n.justify}[t.payload])&&void 0!==r?r:t.label;if("lineHeight"===t.action){if("1"===t.payload)return n.single;if("2"===t.payload)return n.double}return"letterSpacing"===t.action?null!==(a={normal:n.normal,"-0.05em":n.tight,"0.05em":n.light,"0.1em":n.wide,"0.2em":n.veryWide}[t.payload])&&void 0!==a?a:t.label:"callout"===t.action&&null!==(i={info:n.info,warning:n.warning,success:n.success,error:n.error}[t.payload])&&void 0!==i?i:t.label}connectedCallback(){this.el.addEventListener("mousedown",this.handleHostMouseDown),document.addEventListener("click",this.handleDocumentClick,!0)}componentWillLoad(){this.items=this.resolveItems(this.variant),this.colorPalette=n,this._tableContextItems=c}onVariantChange(t){this.items=this.resolveItems(t)}onEditorChange(t,e){null==e||e.off("transaction",this.onTransaction),null==t||t.on("transaction",this.onTransaction),this.items=this.resolveItems(this.variant),this.tick++}resolveItems(e){const o=l("none"===e?"compact":e),r=this.editor;if(!r)return o;const a=o.filter((e=>{if(this.isSeparator(e))return!0;const o=t.ITEM_COMMAND[e.action];return!o||(t=>{try{return"function"==typeof r.can()[t]}catch(t){return!0}})(o)})),i=[];for(const t of a)(!this.isSeparator(t)||i.length&&!this.isSeparator(i[i.length-1]))&&i.push(t);return i.length&&this.isSeparator(i[i.length-1])&&i.pop(),i}onOpenPopoverChange(t,e){!!t!=!!e&&this.coPopoverChange.emit({open:!!t})}disconnectedCallback(){var t;null===(t=this.editor)||void 0===t||t.off("transaction",this.onTransaction),this.el.removeEventListener("mousedown",this.handleHostMouseDown),document.removeEventListener("click",this.handleDocumentClick,!0)}updateTableContext(){if(!this.editor)return void(this.tableContextItems.length&&(this.tableContextItems=[]));const t=this.editor.isActive("table");t&&!this.tableContextItems.length?this.tableContextItems=this._tableContextItems:!t&&this.tableContextItems.length&&(this.tableContextItems=[])}isSeparator(t){return"separator"===t.type}isActive(t){if(!this.editor)return!1;try{if("textAlign"===t.action)return this.editor.isActive({textAlign:t.payload});if("heading"===t.action)return this.editor.isActive("heading",t.payload);if("bulletListMenu"===t.action)return this.editor.isActive("bulletList");if("orderedListMenu"===t.action)return this.editor.isActive("orderedList");if("taskListMenu"===t.action)return this.editor.isActive("taskList");if("iframe"===t.action)return this.editor.isActive("iframe");if("youtube"===t.action)return this.editor.isActive("youtube");if("toggle"===t.type)return this.editor.isActive(t.action)}catch(t){}return!1}getDynamicIcon(t){return"alignment"===t.action&&this.editor?this.editor.isActive({textAlign:"center"})?"text-align-center":this.editor.isActive({textAlign:"right"})?"text-align-right":this.editor.isActive({textAlign:"justify"})?"text-align-justify":"text-align-left":t.icon}togglePopover(t){var e,o;this.openPopover===t?(this.openPopover=null,this.popoverInput=""):(this.openPopover=t,this.popoverInput="","link"===t&&(null===(e=this.editor)||void 0===e?void 0:e.isActive("link"))?this.popoverInput=this.editor.getAttributes("link").href||"":"iframe"===t&&(null===(o=this.editor)||void 0===o?void 0:o.isActive("iframe"))&&(this.popoverInput=this.editor.getAttributes("iframe").src||""))}closePopover(){this.openPopover=null,this.popoverInput="",this.colorHexInput="",this.imagePopoverMode="menu",this.gridLockedRows=0,this.gridLockedCols=0,this.gridHoverRows=0,this.gridHoverCols=0}submitPopover(t){const e=this.editor;if(!e||!this.popoverInput.trim())return void this.closePopover();const o=this.popoverInput.trim(),r="youtube"===t||"iframe"===t;r&&e.view.focus();const a=r?e.chain():e.chain().focus();switch(t){case"link":a.setLink({href:o}).run();break;case"image":a.setImage({src:o}).run();break;case"youtube":a.setYoutubeVideo({src:o}).run();break;case"iframe":e.isActive("iframe")?a.updateIframe({src:o}).run():a.setIframe({src:o}).run()}this.coAction.emit({action:t,payload:o}),this.closePopover(),r&&this.smoothScrollToInserted()}smoothScrollToInserted(){requestAnimationFrame((()=>{const t=this.editor;if(!t)return;const o=t.view.dom.querySelector(".ProseMirror-selectednode");if(o)return void o.scrollIntoView({behavior:"smooth",block:"center"});const{from:r}=t.state.selection,a=t.state.doc.resolve(r);if(a.nodeBefore)try{const o=t.view.nodeDOM(r-a.nodeBefore.nodeSize);o instanceof e&&o.scrollIntoView({behavior:"smooth",block:"center"})}catch(t){}}))}removeLink(){const t=this.editor;t&&(t.chain().focus().unsetLink().run(),this.coAction.emit({action:"link",payload:null}),this.closePopover())}removeIframe(){const t=this.editor;t&&(t.chain().focus().deleteSelection().run(),this.coAction.emit({action:"iframe",payload:null}),this.closePopover())}selectColor(t,e){const o=this.editor;if(!o)return;const r=o.chain().focus();"textColor"===t?r.setColor(e).run():"highlight"===t&&r.setHighlight({color:e}).run(),this.coAction.emit({action:t,payload:e}),this.closePopover()}clearColor(t){const e=this.editor;if(!e)return;const o=e.chain().focus();"textColor"===t?o.unsetColor().run():"highlight"===t&&o.unsetHighlight().run(),this.coAction.emit({action:t,payload:null}),this.closePopover()}canRun(t){if(!this.editor||this.disabled)return!1;const e=this.editor,o=e.can(),r=(t,...e)=>{if("function"!=typeof o[t])return!0;try{return o[t](...e)}catch(t){return!0}};switch(t.action){case"undo":return r("undo");case"redo":return r("redo");case"table":return!e.isActive("table");case"bold":return r("toggleBold");case"italic":return r("toggleItalic");case"underline":return r("toggleUnderline");case"strike":return r("toggleStrike");case"code":return r("toggleCode");case"blockquote":return r("toggleBlockquote");case"codeBlock":return r("toggleCodeBlock");case"horizontalRule":return r("setHorizontalRule");case"bulletList":case"bulletListMenu":return r("toggleBulletList");case"orderedList":case"orderedListMenu":return r("toggleOrderedList");case"taskListMenu":return r("toggleTaskList");default:return!0}}getDropdownLabel(t){if(!this.editor)return null;const e=this.s;if("headingStyle"===t.action)return this.editor.isActive("heading",{level:1})?e.title:this.editor.isActive("heading",{level:2})?e.subtitle:this.editor.isActive("heading",{level:3})?e.headingAbbr3:e.normal;if("fontSize"===t.action){const t=this.editor.getAttributes("textStyle"),e=null==t?void 0:t.fontSize;return e?e.replace("px",""):"16"}if("fontFamily"===t.action){const t=this.editor.getAttributes("textStyle"),e=null==t?void 0:t.fontFamily;if(!e)return"Sans-serif";const o=e.replace(/['"]/g,"").split(",")[0].trim();return o.length>10?o.substring(0,10)+"…":o}return null}getActiveColor(t){var e,o;if(!this.editor)return"textColor"===t?"#000000":"transparent";const r=this.editor.getAttributes("textStyle");if("textColor"===t)return null!==(e=null==r?void 0:r.color)&&void 0!==e?e:"#000000";const a=this.editor.getAttributes("highlight");return null!==(o=null==a?void 0:a.color)&&void 0!==o?o:"transparent"}renderButton(t){var e,o;const a="popover"===t.type||"dropdown"===t.type||"color"===t.type||"grid"===t.type,i=this.openPopover===t.action,n="headingStyle"===t.action||"fontSize"===t.action||"fontFamily"===t.action,c=n?this.getDropdownLabel(t):null;if("alignment"===t.action&&(null===(e=t.options)||void 0===e?void 0:e.length))return this.renderAlignmentGroup(t);if("listpicker"===t.type){const e=this.isActive(t),o=this.tItem(t);return r("div",{class:"co-rich-text-toolbar__split-wrap",key:t.action},r("button",{type:"button",class:{"co-rich-text-toolbar__btn":!0,"co-rich-text-toolbar__split-main":!0,"co-rich-text-toolbar__btn--active":e},"data-tooltip":o,"aria-label":o,"aria-pressed":String(e),disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.run(t),part:"button"},r("co-icon",{name:t.icon,size:18})),r("button",{type:"button",class:{"co-rich-text-toolbar__split-caret":!0,"co-rich-text-toolbar__split-caret--open":i},"data-tooltip":`${this.s.stylesPrefix} ${o}`,"aria-label":`${this.s.stylesPrefix} ${o}`,"aria-expanded":String(i),disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.togglePopover(t.action)},r("co-icon",{name:"caret-down",size:10})),i&&this.renderListPicker(t))}if("color"===t.type)return this.renderColorButton(t);const l=this.tItem(t);return r("div",{class:"co-rich-text-toolbar__btn-wrap",key:`${t.action}-${JSON.stringify(null!==(o=t.payload)&&void 0!==o?o:"")}`},n?r("button",{type:"button",class:{"co-rich-text-toolbar__select-btn":!0,"co-rich-text-toolbar__select-btn--open":i},"data-tooltip":l,"aria-label":l,"aria-expanded":String(i),disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.run(t),part:"button"},r("span",{class:"co-rich-text-toolbar__select-label"},c),r("co-icon",{name:"caret-down",size:10})):r("button",{type:"button",class:{"co-rich-text-toolbar__btn":!0,"co-rich-text-toolbar__btn--active":this.isActive(t)||i},"data-tooltip":l,"aria-label":l,"aria-pressed":"toggle"===t.type?String(this.isActive(t)):void 0,"aria-expanded":a?String(i):void 0,disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.run(t),part:"button"},r("co-icon",{name:this.getDynamicIcon(t),size:18})),i&&"popover"===t.type&&this.renderInputPopover(t),i&&"dropdown"===t.type&&this.renderDropdown(t),i&&"grid"===t.type&&this.renderTableGrid())}renderAlignmentGroup(t){const e=this.s,o={left:e.alignLeft,center:e.center,right:e.alignRight,justify:e.justify};return r("div",{class:"co-rich-text-toolbar__align-group",key:t.action},t.options.map((t=>{var e,a,i;const n=null!==(a=null===(e=this.editor)||void 0===e?void 0:e.isActive({textAlign:t.payload}))&&void 0!==a&&a,c=null!==(i=o[t.payload])&&void 0!==i?i:t.label;return r("button",{type:"button",class:{"co-rich-text-toolbar__btn":!0,"co-rich-text-toolbar__btn--active":n},"data-tooltip":c,"aria-label":c,"aria-pressed":String(n),disabled:!this.editor||this.disabled,onMouseDown:t=>t.preventDefault(),onClick:()=>{this.editor&&(this.editor.chain().focus().setTextAlign(t.payload).run(),this.coAction.emit({action:"textAlign",payload:t.payload}))},part:"button"},r("co-icon",{name:t.icon,size:18}))})))}renderColorButton(t){const e=this.openPopover===t.action,o=this.tItem(t),a=this.getActiveColor(t.action),i="textColor"===t.action;return r("div",{class:"co-rich-text-toolbar__btn-wrap",key:t.action},r("button",{type:"button",class:{"co-rich-text-toolbar__btn":!0,"co-rich-text-toolbar__btn--active":e},"data-tooltip":o,"aria-label":o,"aria-expanded":String(e),disabled:!this.canRun(t),onMouseDown:t=>t.preventDefault(),onClick:()=>this.run(t),part:"button"},i?r("span",{class:"co-rich-text-toolbar__color-indicator"},r("span",{class:"co-rich-text-toolbar__color-letter"},"A"),r("span",{class:"co-rich-text-toolbar__color-bar",style:{background:a}})):r("span",{class:"co-rich-text-toolbar__color-indicator"},r("co-icon",{name:t.icon,size:16}),r("span",{class:"co-rich-text-toolbar__color-bar",style:{background:"transparent"===a?"#cccccc":a}}))),e&&this.renderColorPicker(t))}renderListPicker(t){var e,o;if(!(null===(e=t.options)||void 0===e?void 0:e.length))return null;if("taskListMenu"===t.action)return this.renderTaskListPicker(t);const a="orderedListMenu"===t.action,i=this.editor?null===(o=this.editor.getAttributes(a?"orderedList":"bulletList"))||void 0===o?void 0:o.listStyleType:null;return r("div",{class:"co-rich-text-toolbar__listpicker",onMouseDown:t=>{t.preventDefault(),t.stopPropagation()}},t.options.map((t=>r("button",{type:"button",class:{"co-rich-text-toolbar__listpicker-item":!0,"co-rich-text-toolbar__listpicker-item--active":i===t.payload},"data-tooltip":t.label,onMouseDown:t=>t.preventDefault(),onClick:()=>this.applyListStyle(a,t.payload)},r("ol",{class:{"co-rich-text-toolbar__listpicker-preview":!0,"co-rich-text-toolbar__listpicker-preview--ordered":a},style:{"list-style-type":t.payload}},r("li",null),r("li",null),r("li",null))))))}renderTaskListPicker(t){var e,o;const a=this.editor&&this.editor.isActive("taskList")?null!==(o=null===(e=this.editor.getAttributes("taskList"))||void 0===e?void 0:e.variant)&&void 0!==o?o:"strike":null;return r("div",{class:"co-rich-text-toolbar__listpicker co-rich-text-toolbar__listpicker--task",onMouseDown:t=>{t.preventDefault(),t.stopPropagation()}},t.options.map((t=>{const e=t.payload;return r("button",{type:"button",class:{"co-rich-text-toolbar__listpicker-item":!0,"co-rich-text-toolbar__listpicker-item--task":!0,"co-rich-text-toolbar__listpicker-item--active":a===e},"data-tooltip":t.label,onMouseDown:t=>t.preventDefault(),onClick:()=>this.applyTaskStyle(e)},r("span",{class:"co-rich-text-toolbar__taskpreview","data-variant":e},r("span",{class:"co-rich-text-toolbar__taskpreview-row"},r("span",{class:"co-rich-text-toolbar__taskpreview-box"}),r("span",{class:"co-rich-text-toolbar__taskpreview-line"})),r("span",{class:"co-rich-text-toolbar__taskpreview-row co-rich-text-toolbar__taskpreview-row--checked"},r("span",{class:"co-rich-text-toolbar__taskpreview-box co-rich-text-toolbar__taskpreview-box--checked"}),r("span",{class:"co-rich-text-toolbar__taskpreview-line"}))))})))}applyListStyle(t,e){const o=this.editor;if(!o)return;const r=o.chain().focus();t?o.isActive("orderedList")||r.toggleOrderedList():o.isActive("bulletList")||r.toggleBulletList(),r.setListStyleType(e).run(),this.coAction.emit({action:t?"orderedStyle":"bulletStyle",payload:e}),this.closePopover()}applyTaskStyle(t){const e=this.editor;if(!e)return;const o=e.chain().focus();e.isActive("taskList")||o.toggleTaskList(),o.setTaskListVariant(t).run(),this.coAction.emit({action:"taskStyle",payload:t}),this.closePopover()}renderInputPopover(t){var e,o;if("image"===t.action)return this.renderImagePopover();const a="link"===t.action,i="iframe"===t.action,n=a&&(null===(e=this.editor)||void 0===e?void 0:e.isActive("link"))||i&&(null===(o=this.editor)||void 0===o?void 0:o.isActive("iframe"));return r("div",{class:"co-rich-text-toolbar__popover",onMouseDown:t=>{"INPUT"!==t.target.tagName&&t.preventDefault(),t.stopPropagation()}},r("input",{type:"url",class:"co-rich-text-toolbar__popover-input",placeholder:"iframe"===t.action?this.s.iframeUrlPlaceholder:"link"===t.action?"https://...":this.s.youtubeUrlPlaceholder,value:this.popoverInput,onInput:t=>{this.popoverInput=t.target.value},onKeyDown:e=>{"Enter"===e.key&&this.submitPopover(t.action),"Escape"===e.key&&this.closePopover()},ref:t=>t&&setTimeout((()=>t.focus()),0)}),r("div",{class:"co-rich-text-toolbar__popover-actions"},r("button",{type:"button",class:"co-rich-text-toolbar__popover-btn co-rich-text-toolbar__popover-btn--primary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.submitPopover(t.action)},this.s.add),n&&r("button",{type:"button",class:"co-rich-text-toolbar__popover-btn co-rich-text-toolbar__popover-btn--danger",onMouseDown:t=>t.preventDefault(),onClick:()=>a?this.removeLink():this.removeIframe()},this.s.remove),r("button",{type:"button",class:"co-rich-text-toolbar__popover-btn",onMouseDown:t=>t.preventDefault(),onClick:()=>this.closePopover()},this.s.cancel)))}renderImagePopover(){return"url"===this.imagePopoverMode?r("div",{class:"co-rich-text-toolbar__popover",onMouseDown:t=>{"INPUT"!==t.target.tagName&&t.preventDefault(),t.stopPropagation()}},r("input",{type:"url",class:"co-rich-text-toolbar__popover-input",placeholder:this.s.imageUrlPlaceholder,value:this.popoverInput,onInput:t=>{this.popoverInput=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.submitPopover("image"),"Escape"===t.key&&(this.imagePopoverMode="menu")},ref:t=>t&&setTimeout((()=>t.focus()),0)}),r("div",{class:"co-rich-text-toolbar__popover-actions"},r("button",{type:"button",class:"co-rich-text-toolbar__popover-btn co-rich-text-toolbar__popover-btn--primary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.submitPopover("image")},this.s.add),r("button",{type:"button",class:"co-rich-text-toolbar__popover-btn",onMouseDown:t=>t.preventDefault(),onClick:()=>{this.imagePopoverMode="menu"}},this.s.back))):r("div",{class:"co-rich-text-toolbar__popover",onMouseDown:t=>{t.preventDefault(),t.stopPropagation()}},r("button",{type:"button",class:"co-rich-text-toolbar__popover-option",onMouseDown:t=>t.preventDefault(),onClick:()=>this.triggerImageFileUpload()},r("co-icon",{name:"upload-simple",size:16}),r("span",null,this.s.uploadFromComputer)),r("button",{type:"button",class:"co-rich-text-toolbar__popover-option",onMouseDown:t=>t.preventDefault(),onClick:()=>{this.imagePopoverMode="url"}},r("co-icon",{name:"link",size:16}),r("span",null,this.s.viaUrl)))}triggerImageFileUpload(){const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=()=>{var e;const o=null===(e=t.files)||void 0===e?void 0:e[0];if(!o||!this.editor)return;const r=new FileReader;r.onload=()=>{const t=r.result;this.editor.chain().focus().setImage({src:t}).run(),this.imageUpload&&this.imageUpload(o).then((e=>{var o;const r="string"==typeof e?{src:e}:{src:e.src,dataFileId:null!==(o=e.fileId)&&void 0!==o?o:null},{state:a}=this.editor.view;a.doc.descendants(((e,o)=>{if("image"===e.type.name&&e.attrs.src===t){const t=this.editor.view.state.tr.setNodeMarkup(o,void 0,Object.assign(Object.assign({},e.attrs),r));return this.editor.view.dispatch(t),!1}}))})).catch((()=>{})),this.coAction.emit({action:"image",payload:t})},r.readAsDataURL(o),this.closePopover()},t.click()}isDropdownOptionActive(t){var e,o,r;if(!this.editor)return!1;try{if("textAlign"===t.action)return this.editor.isActive({textAlign:t.payload});if("lineHeight"===t.action){const r=this.editor.getAttributes("paragraph");return(null!==(e=null==r?void 0:r.lineHeight)&&void 0!==e?e:null)===(null!==(o=t.payload)&&void 0!==o?o:null)}if("letterSpacing"===t.action){const e=this.editor.getAttributes("textStyle"),o=null!==(r=null==e?void 0:e.letterSpacing)&&void 0!==r?r:null;return"normal"===t.payload?null===o||"normal"===o:o===t.payload}if("heading"===t.action)return this.editor.isActive("heading",t.payload);if("paragraph"===t.action)return!this.editor.isActive("heading")}catch(t){}return!1}applyDropdownCustom(t,e){const o=this.editor,r=e.trim();if(!o||!r)return;const a=o.chain().focus();if("fontSize"===t){const t=parseFloat(r);if(!(t>0))return;a.setFontSize(/^\d+(\.\d+)?$/.test(r)?`${t}px`:r).run()}else"lineSpacing"===t?a.setLineHeight(r).run():"letterSpacing"===t&&("normal"===r?a.unsetLetterSpacing().run():a.setLetterSpacing(r).run());this.closePopover()}renderDropdown(t){var e;if(!(null===(e=t.options)||void 0===e?void 0:e.length))return null;const o="fontFamily"===t.action,a="headingStyle"===t.action,i="lineSpacing"===t.action,n="letterSpacing"===t.action,c="alignment"===t.action||i||n||a,l="fontSize"===t.action?{placeholder:this.s.sizePlaceholder}:i?{placeholder:this.s.lineSpacingPlaceholder}:n?{placeholder:this.s.letterSpacingPlaceholder}:null;return r("div",{class:"co-rich-text-toolbar__dropdown",onMouseDown:t=>{t.preventDefault(),t.stopPropagation()}},l&&r("div",{class:"co-rich-text-toolbar__dropdown-input-wrap"},r("input",{type:"text",class:"co-rich-text-toolbar__dropdown-input",placeholder:l.placeholder,onMouseDown:t=>t.stopPropagation(),onKeyDown:e=>{"Enter"===e.key?(this.applyDropdownCustom(t.action,e.target.value),e.target.value=""):"Escape"===e.key&&this.closePopover()}})),t.options.map((e=>{var i;if("separator"===e.action)return r("div",{class:"co-rich-text-toolbar__dropdown-sep-label"},r("span",null,this.tOpt(e)));const n={},l=c&&this.isDropdownOptionActive(e);if(a&&"heading"===e.action){const t=null===(i=e.payload)||void 0===i?void 0:i.level;n.fontSize=1===t?"20px":2===t?"16px":"14px",n.fontWeight="600"}return o&&e.payload&&(n.fontFamily=e.payload),r("button",{type:"button",class:{"co-rich-text-toolbar__dropdown-item":!0,"co-rich-text-toolbar__dropdown-item--active":l},style:n,onMouseDown:t=>t.preventDefault(),onClick:()=>this.handleDropdownSelect(t,e)},c&&r("span",{class:"co-rich-text-toolbar__dropdown-check"},l?r("co-icon",{name:"check",size:14}):null),e.icon&&r("co-icon",{name:e.icon,size:16}),r("span",null,this.tOpt(e)))})))}handleDropdownSelect(t,e){const o=this.editor;if(!o)return;const r=o.chain().focus();switch(e.action){case"heading":r.toggleHeading(e.payload).run();break;case"paragraph":r.setParagraph().run();break;case"fontSize":r.setFontSize(e.payload).run();break;case"fontFamily":r.setFontFamily(e.payload).run();break;case"textAlign":r.setTextAlign(e.payload).run();break;case"lineHeight":r.setLineHeight(e.payload).run();break;case"letterSpacing":"normal"===e.payload?r.unsetLetterSpacing().run():r.setLetterSpacing(e.payload).run();break;case"callout":r.insertCallout(e.payload).run()}this.coAction.emit({action:e.action,payload:e.payload}),this.closePopover()}renderTableGrid(){return r("div",{class:"co-rich-text-toolbar__table-picker",onMouseDown:t=>{"INPUT"!==t.target.tagName&&t.preventDefault(),t.stopPropagation()}},r("div",{class:"co-rich-text-toolbar__table-header"},r("co-icon",{name:"table",size:16}),r("span",{class:"co-rich-text-toolbar__table-title"},this.s.configureTable),r("button",{type:"button",class:"co-rich-text-toolbar__table-close",onMouseDown:t=>t.preventDefault(),onClick:()=>this.closePopover()},r("co-icon",{name:"x",size:16}))),r("div",{class:"co-rich-text-toolbar__table-tabs"},r("button",{type:"button",class:{"co-rich-text-toolbar__table-tab":!0,"co-rich-text-toolbar__table-tab--active":"grid"===this.tableTab},onMouseDown:t=>t.preventDefault(),onClick:()=>{this.tableTab="grid"}},this.s.grid),r("button",{type:"button",class:{"co-rich-text-toolbar__table-tab":!0,"co-rich-text-toolbar__table-tab--active":"manual"===this.tableTab},onMouseDown:t=>t.preventDefault(),onClick:()=>{this.tableTab="manual"}},this.s.manual)),"grid"===this.tableTab&&this.renderGridTab(),"manual"===this.tableTab&&this.renderManualTab(),r("label",{class:"co-rich-text-toolbar__table-check"},r("input",{type:"checkbox",checked:this.tableWithHeader,onChange:t=>{this.tableWithHeader=t.target.checked}}),r("span",null,this.s.includeHeaderRow)),"manual"===this.tableTab&&r("div",{class:"co-rich-text-toolbar__table-actions"},r("button",{type:"button",class:"co-rich-text-toolbar__table-btn co-rich-text-toolbar__table-btn--secondary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.closePopover()},this.s.cancel),r("button",{type:"button",class:"co-rich-text-toolbar__table-btn co-rich-text-toolbar__table-btn--primary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.insertTable(this.tableManualRows,this.tableManualCols)},this.s.createTable)))}renderGridTab(){const t=[],e=this.gridLockedRows>0,o=e?this.gridLockedRows:this.gridHoverRows,a=e?this.gridLockedCols:this.gridHoverCols;for(let i=1;i<=8;i++)for(let n=1;n<=8;n++)t.push(r("div",{class:{"co-rich-text-toolbar__grid-cell":!0,"co-rich-text-toolbar__grid-cell--active":i<=o&&n<=a},onMouseEnter:()=>{e||(this.gridHoverRows=i,this.gridHoverCols=n)},onMouseDown:t=>t.preventDefault(),onClick:()=>{this.gridLockedRows=i,this.gridLockedCols=n}}));const i=this.s,n=o>0?`${a} × ${o} (${a} ${i.columns.toLowerCase()} × ${o} ${i.rows.toLowerCase()})`:i.selectSize;return r("div",{class:"co-rich-text-toolbar__grid-container",onMouseLeave:()=>{e||(this.gridHoverRows=0,this.gridHoverCols=0)}},r("div",{class:"co-rich-text-toolbar__grid",style:{"grid-template-columns":"repeat(8, 1fr)"}},t),r("div",{class:"co-rich-text-toolbar__grid-footer"},r("span",{class:"co-rich-text-toolbar__grid-label"},n),e&&r("button",{type:"button",class:"co-rich-text-toolbar__grid-reset",onMouseDown:t=>t.preventDefault(),onClick:()=>{this.gridLockedRows=0,this.gridLockedCols=0,this.gridHoverRows=0,this.gridHoverCols=0}},i.changeSelection)),e&&r("div",{class:"co-rich-text-toolbar__table-actions"},r("button",{type:"button",class:"co-rich-text-toolbar__table-btn co-rich-text-toolbar__table-btn--secondary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.closePopover()},i.cancel),r("button",{type:"button",class:"co-rich-text-toolbar__table-btn co-rich-text-toolbar__table-btn--primary",onMouseDown:t=>t.preventDefault(),onClick:()=>this.insertTable(this.gridLockedRows,this.gridLockedCols)},i.createTable)))}renderManualTab(){return r("div",{class:"co-rich-text-toolbar__table-manual"},r("div",{class:"co-rich-text-toolbar__table-field"},r("label",null,this.s.columns,":"),r("input",{type:"number",min:"1",max:"20",value:this.tableManualCols,onInput:t=>{this.tableManualCols=Math.max(1,parseInt(t.target.value)||1)}})),r("div",{class:"co-rich-text-toolbar__table-field"},r("label",null,this.s.rows,":"),r("input",{type:"number",min:"1",max:"50",value:this.tableManualRows,onInput:t=>{this.tableManualRows=Math.max(1,parseInt(t.target.value)||1)}})))}insertTable(t,e){const o=this.editor;if(!o)return;if(o.isActive("table"))return void this.closePopover();const r=this.tableWithHeader,a=t=>({type:"tableHeader",content:[{type:"paragraph",content:[{type:"text",text:`${this.s.tableHeaderLabel} ${t+1}`}]}]}),i=[];r&&i.push({type:"tableRow",content:Array.from({length:e},((t,e)=>a(e)))});const n=r?t-1:t;for(let t=0;t<n;t++)i.push({type:"tableRow",content:Array.from({length:e},(()=>({type:"tableCell",content:[{type:"paragraph"}]})))});o.chain().focus().insertContent({type:"table",content:i}).run(),this.coAction.emit({action:"table",payload:{rows:t,cols:e,withHeaderRow:r}}),this.closePopover()}renderColorPicker(t){return r("div",{class:"co-rich-text-toolbar__color-picker",onMouseDown:t=>{"INPUT"!==t.target.tagName&&t.preventDefault(),t.stopPropagation()}},r("div",{class:"co-rich-text-toolbar__color-grid"},this.colorPalette.map((e=>r("button",{type:"button",class:"co-rich-text-toolbar__color-swatch",style:Object.assign({background:e},"#ffffff"===e?{border:"1px solid #ccc"}:{}),title:e,onMouseDown:t=>t.preventDefault(),onClick:()=>this.selectColor(t.action,e)})))),r("div",{class:"co-rich-text-toolbar__color-hex"},r("input",{type:"text",class:"co-rich-text-toolbar__color-hex-input",placeholder:"#hex",maxLength:7,value:this.colorHexInput,onInput:t=>{this.colorHexInput=t.target.value},onKeyDown:e=>{if("Enter"===e.key){const e=this.colorHexInput.trim();/^#[0-9a-fA-F]{3,6}$/.test(e)&&(this.selectColor(t.action,e),this.colorHexInput="")}else"Escape"===e.key&&this.closePopover()}})),r("button",{type:"button",class:"co-rich-text-toolbar__color-clear",onMouseDown:t=>t.preventDefault(),onClick:()=>this.clearColor(t.action)},r("co-icon",{name:"x",size:12}),r("span",null,this.s.removeColor)))}render(){return"none"===this.variant||0===this.items.length?null:r("div",{class:"co-rich-text-toolbar",role:"toolbar","aria-label":"Formatting",part:"toolbar"},this.items.map((t=>this.isSeparator(t)?r("span",{class:"co-rich-text-toolbar__sep"}):this.renderButton(t))))}get el(){return this}static get watchers(){return{variant:[{onVariantChange:0}],editor:[{onEditorChange:0}],openPopover:[{onOpenPopoverChange:0}]}}static get style(){return":host{display:block;font-family:var(--co-font-family-primary);z-index:10;flex-shrink:0;background:var(--co-semantic-surface-secondary, #fff);overflow:visible}.co-rich-text-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--co-spacing-xxs, 2px);padding:var(--co-spacing-xs) var(--co-spacing-sm);border-bottom:1px solid var(--co-semantic-border-subtle);background:var(--co-semantic-surface-secondary)}.co-rich-text-toolbar__btn-wrap,.co-rich-text-toolbar__split-wrap{overflow:visible}[data-tooltip]{position:relative}[data-tooltip]::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 4px);left:50%;transform:translateX(-50%);padding:4px 8px;background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff);font-size:11px;font-weight:500;line-height:1.3;white-space:nowrap;border-radius:4px;pointer-events:none;opacity:0;transition:opacity 0.15s ease;z-index:9999}[data-tooltip]:hover::after{opacity:1;transition-delay:0.4s}[data-tooltip]:active::after,[data-tooltip][aria-expanded=\"true\"]::after{opacity:0 !important;transition-delay:0s}.co-rich-text-toolbar__btn-wrap{position:relative;display:inline-flex}.co-rich-text-toolbar__btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:none;border-radius:var(--co-border-radius-xxs);background:transparent;color:var(--co-semantic-text-default, #333);cursor:pointer;transition:background 0.12s ease, color 0.12s ease}.co-rich-text-toolbar__btn:hover:not(:disabled):not(.co-rich-text-toolbar__btn--active){background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.08));color:var(--co-semantic-text-default, #1a1a1a)}.co-rich-text-toolbar__btn--active{background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff)}.co-rich-text-toolbar__btn--active:hover{background:var(--co-color-base-negro, #333);color:var(--co-color-base-blanco, #fff)}.co-rich-text-toolbar__btn:disabled{opacity:0.4;cursor:not-allowed}.co-rich-text-toolbar__btn:focus-visible{outline:2px solid var(--co-semantic-border-focus, var(--co-color-base-negro, #1a1a1a));outline-offset:1px}.co-rich-text-toolbar__select-btn{display:inline-flex;align-items:center;gap:2px;height:30px;padding:0 6px;border:1px solid transparent;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);cursor:pointer;white-space:nowrap;transition:background 0.12s, border-color 0.12s}.co-rich-text-toolbar__select-btn:hover:not(:disabled){background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06));border-color:var(--co-semantic-border-default, #e0e0e0)}.co-rich-text-toolbar__select-btn--open{background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06));border-color:var(--co-semantic-border-default, #e0e0e0)}.co-rich-text-toolbar__select-btn:disabled{opacity:0.4;cursor:not-allowed}.co-rich-text-toolbar__select-label{max-width:100px;overflow:hidden;text-overflow:ellipsis}.co-rich-text-toolbar__sep{display:inline-block;width:1px;height:20px;margin:0 var(--co-spacing-xs, 4px);background:var(--co-semantic-border-subtle, rgba(0, 0, 0, 0.12))}.co-rich-text-toolbar__popover{position:absolute;top:100%;left:0;z-index:100;display:flex;flex-direction:column;gap:var(--co-spacing-xs, 4px);min-width:280px;padding:var(--co-spacing-sm, 8px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);margin-top:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__popover-input{width:100%;padding:6px 10px;border:1px solid var(--co-semantic-border-default, #ccc);border-radius:var(--co-border-radius-xxs, 4px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);outline:none;box-sizing:border-box}.co-rich-text-toolbar__popover-input:focus{border-color:var(--co-color-base-negro, #1a1a1a);box-shadow:0 0 0 2px rgba(0, 0, 0, 0.1)}.co-rich-text-toolbar__popover-actions{display:flex;gap:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__popover-btn{padding:4px 12px;border:1px solid var(--co-semantic-border-default, #ccc);border-radius:var(--co-border-radius-xxs, 4px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);cursor:pointer;background:var(--co-semantic-surface-secondary, #fff);color:var(--co-semantic-text-default, #333);transition:background 0.12s}.co-rich-text-toolbar__popover-btn:hover:not(.co-rich-text-toolbar__popover-btn--primary){background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rich-text-toolbar__popover-btn--primary{background:var(--co-color-base-negro, #1a1a1a);color:#fff;border-color:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__popover-btn--primary:hover{background:var(--co-color-base-negro, #333);color:#fff}.co-rich-text-toolbar__popover-btn--danger{color:var(--co-color-status-error, #aa2e1b);border-color:var(--co-color-status-error, #aa2e1b)}.co-rich-text-toolbar__popover-option{display:flex;align-items:center;gap:var(--co-spacing-sm, 8px);width:100%;padding:8px 10px;border:none;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);cursor:pointer;text-align:left;transition:background 0.1s}.co-rich-text-toolbar__popover-option:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rich-text-toolbar__dropdown{position:absolute;top:100%;left:0;z-index:100;display:flex;flex-direction:column;min-width:180px;max-height:360px;overflow-y:auto;padding:var(--co-spacing-xs, 4px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);margin-top:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__dropdown-item{display:flex;align-items:center;gap:var(--co-spacing-sm, 8px);padding:6px 10px;border:none;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);cursor:pointer;text-align:left;transition:background 0.12s}.co-rich-text-toolbar__dropdown-item:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rich-text-toolbar__dropdown-sep{height:1px;margin:4px 0;background:var(--co-semantic-border-default, #e0e0e0)}.co-rich-text-toolbar__dropdown-sep-label{padding:6px 10px 2px;font-family:var(--co-font-family-primary);font-size:11px;font-weight:600;color:var(--co-semantic-text-muted, #999);letter-spacing:0.03em;border-top:1px solid var(--co-semantic-border-default, #e0e0e0);margin-top:2px}.co-rich-text-toolbar__dropdown-input-wrap{padding:6px 8px;border-bottom:1px solid var(--co-semantic-border-default, #e0e0e0)}.co-rich-text-toolbar__dropdown-input{width:100%;padding:4px 8px;border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:4px;font-size:13px;font-family:var(--co-font-family-primary);outline:none;box-sizing:border-box}.co-rich-text-toolbar__dropdown-input:focus{border-color:var(--co-color-base-negro, #1a1a1a);box-shadow:0 0 0 2px rgba(0, 0, 0, 0.1)}.co-rich-text-toolbar__color-picker{position:absolute;top:100%;left:0;z-index:100;display:flex;flex-direction:column;gap:var(--co-spacing-xs, 4px);padding:var(--co-spacing-sm, 8px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);margin-top:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__color-grid{display:grid;grid-template-columns:repeat(10, 1fr);gap:2px}.co-rich-text-toolbar__color-swatch{width:22px;height:22px;padding:0;border:none;border-radius:3px;cursor:pointer;transition:transform 0.1s, box-shadow 0.1s}.co-rich-text-toolbar__color-swatch:hover{transform:scale(1.2);box-shadow:0 0 0 2px var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__color-clear{display:flex;align-items:center;gap:var(--co-spacing-xs, 4px);padding:4px 8px;border:none;background:transparent;color:var(--co-semantic-text-secondary, #666);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);cursor:pointer;border-radius:var(--co-border-radius-xxs, 4px);margin-top:var(--co-spacing-xxs, 2px)}.co-rich-text-toolbar__color-clear:hover{background:var(--co-semantic-surface-hover, #f5f5f5);color:var(--co-semantic-text-default, #333)}.co-rich-text-toolbar__table-picker{position:absolute;top:100%;left:0;z-index:100;display:flex;flex-direction:column;width:280px;padding:var(--co-spacing-lg, 16px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 8px 24px rgba(0, 0, 0, 0.12);margin-top:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__table-header{display:flex;align-items:center;gap:var(--co-spacing-sm, 8px);margin-bottom:var(--co-spacing-md, 12px)}.co-rich-text-toolbar__table-title{flex:1;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);font-weight:600;letter-spacing:0.06em;color:var(--co-semantic-text-secondary, #666)}.co-rich-text-toolbar__table-close{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-secondary, #666);cursor:pointer}.co-rich-text-toolbar__table-close:hover{background:var(--co-semantic-surface-hover, #f0f0f0)}.co-rich-text-toolbar__table-tabs{display:flex;gap:0;margin-bottom:var(--co-spacing-md, 12px);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xxs, 4px);overflow:hidden}.co-rich-text-toolbar__table-tab{flex:1;padding:var(--co-spacing-sm, 8px) var(--co-spacing-md, 12px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-13, 13px);font-weight:500;border:none;background:transparent;color:var(--co-semantic-text-secondary, #666);cursor:pointer;transition:background 0.12s, color 0.12s}.co-rich-text-toolbar__table-tab:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rich-text-toolbar__table-tab--active{background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff)}.co-rich-text-toolbar__grid-container{display:flex;flex-direction:column;gap:var(--co-spacing-sm, 8px);margin-bottom:var(--co-spacing-md, 12px)}.co-rich-text-toolbar__grid{display:grid;gap:3px}.co-rich-text-toolbar__grid-cell{width:24px;height:24px;border:1px solid var(--co-semantic-border-default, #d0d0d0);border-radius:3px;background:transparent;cursor:pointer;transition:background 0.08s, border-color 0.08s}.co-rich-text-toolbar__grid-cell:hover,.co-rich-text-toolbar__grid-cell--active{background:var(--co-color-base-negro, #1a1a1a);border-color:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__grid-footer{display:flex;align-items:center;justify-content:space-between}.co-rich-text-toolbar__grid-label{font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);color:var(--co-semantic-text-muted, #999)}.co-rich-text-toolbar__grid-reset{font-family:var(--co-font-family-primary);font-size:var(--co-font-size-12, 12px);color:var(--co-semantic-text-default, #333);text-decoration:underline;border:none;background:transparent;cursor:pointer;padding:0}.co-rich-text-toolbar__table-manual{display:flex;flex-direction:column;gap:var(--co-spacing-md, 12px);margin-bottom:var(--co-spacing-md, 12px)}.co-rich-text-toolbar__table-field{display:flex;align-items:center;gap:var(--co-spacing-md, 12px)}.co-rich-text-toolbar__table-field label{font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);color:var(--co-semantic-text-default, #333);min-width:70px}.co-rich-text-toolbar__table-field input{flex:1;padding:var(--co-spacing-sm, 8px) var(--co-spacing-md, 12px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xxs, 4px);background:var(--co-semantic-surface-secondary, #fff);outline:none}.co-rich-text-toolbar__table-field input:focus{border-color:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__table-check{display:flex;align-items:center;gap:var(--co-spacing-sm, 8px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14, 14px);color:var(--co-semantic-text-default, #333);cursor:pointer;margin-bottom:var(--co-spacing-md, 12px)}.co-rich-text-toolbar__table-check input{width:18px;height:18px;cursor:pointer;accent-color:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__table-actions{display:flex;gap:var(--co-spacing-sm, 8px);justify-content:flex-end}.co-rich-text-toolbar__table-btn{padding:var(--co-spacing-sm, 8px) var(--co-spacing-lg, 16px);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-13, 13px);font-weight:500;border:none;border-radius:var(--co-border-radius-xxs, 4px);cursor:pointer;transition:opacity 0.12s}.co-rich-text-toolbar__table-btn--primary{background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff)}.co-rich-text-toolbar__table-btn--primary:hover{opacity:0.85}.co-rich-text-toolbar__table-btn--secondary{background:transparent;color:var(--co-semantic-text-default, #333)}.co-rich-text-toolbar__table-btn--secondary:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rich-text-toolbar__split-wrap{position:relative;display:inline-flex;align-items:center}.co-rich-text-toolbar__split-main{border-top-right-radius:0;border-bottom-right-radius:0;width:28px}.co-rich-text-toolbar__split-caret{display:inline-flex;align-items:center;justify-content:center;width:16px;height:30px;padding:0;border:none;border-radius:var(--co-border-radius-xxs);border-top-left-radius:0;border-bottom-left-radius:0;background:transparent;color:var(--co-semantic-text-default, #333);cursor:pointer;transition:background 0.12s ease}.co-rich-text-toolbar__split-caret:hover:not(:disabled),.co-rich-text-toolbar__split-caret--open{background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.08))}.co-rich-text-toolbar__split-caret:disabled{opacity:0.4;cursor:not-allowed}.co-rich-text-toolbar__listpicker{position:absolute;top:100%;left:0;z-index:100;display:grid;grid-template-columns:repeat(3, 1fr);gap:14px;padding:16px;background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 8px 24px rgba(0, 0, 0, 0.14);margin-top:var(--co-spacing-xs, 4px)}.co-rich-text-toolbar__listpicker-item{display:flex;align-items:center;justify-content:flex-start;width:76px;height:60px;padding:0;border:1px solid var(--co-semantic-border-default, #e3e3e3);border-radius:8px;background:var(--co-semantic-surface-secondary, #fff);cursor:pointer;transition:border-color 0.12s, box-shadow 0.12s, background 0.12s}.co-rich-text-toolbar__listpicker-item:hover{border-color:var(--co-color-base-negro, #1a1a1a);background:var(--co-semantic-surface-hover, #fafafa)}.co-rich-text-toolbar__listpicker-item--active{border-color:var(--co-color-base-negro, #1a1a1a);box-shadow:0 0 0 1.5px var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__listpicker-preview{margin:0;padding:0 0 0 22px;list-style-position:outside;pointer-events:none}.co-rich-text-toolbar__listpicker-preview li{height:3px;width:30px;margin:7px 0;background:var(--co-semantic-border-default, #cfcfcf);border-radius:2px}.co-rich-text-toolbar__listpicker-preview li::marker{color:var(--co-color-base-negro, #1a1a1a);font-size:11px;font-weight:600}.co-rich-text-toolbar__listpicker--task{grid-template-columns:repeat(2, 1fr)}.co-rich-text-toolbar__listpicker-item--task{width:92px;justify-content:center}.co-rich-text-toolbar__taskpreview{display:flex;flex-direction:column;gap:9px}.co-rich-text-toolbar__taskpreview-row{display:flex;align-items:center;gap:7px}.co-rich-text-toolbar__taskpreview-box{flex:0 0 auto;width:11px;height:11px;border:1.5px solid var(--co-color-base-negro, #1a1a1a);border-radius:3px;box-sizing:border-box}.co-rich-text-toolbar__taskpreview-box--checked{position:relative;background:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__taskpreview-box--checked::after{content:'';position:absolute;left:3px;top:0.5px;width:3px;height:6px;border:solid #fff;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}.co-rich-text-toolbar__taskpreview-line{position:relative;width:34px;height:3px;background:var(--co-semantic-border-default, #cfcfcf);border-radius:2px}.co-rich-text-toolbar__taskpreview[data-variant=\"strike\"] .co-rich-text-toolbar__taskpreview-row--checked .co-rich-text-toolbar__taskpreview-line::after{content:'';position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:1.5px;background:var(--co-color-base-negro, #1a1a1a)}.co-rich-text-toolbar__dropdown-check{display:inline-flex;align-items:center;justify-content:center;width:18px;flex-shrink:0}.co-rich-text-toolbar__dropdown-item--active{background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.04));font-weight:600}.co-rich-text-toolbar__align-group{display:inline-flex;align-items:center;gap:0}.co-rich-text-toolbar__color-indicator{display:flex;flex-direction:column;align-items:center;gap:1px;line-height:1}.co-rich-text-toolbar__color-letter{font-family:var(--co-font-family-primary);font-size:14px;font-weight:700;color:var(--co-semantic-text-default, #333);line-height:1}.co-rich-text-toolbar__color-bar{width:14px;height:3px;border-radius:1px}.co-rich-text-toolbar__color-hex{display:flex;align-items:center;gap:4px;margin-top:6px}.co-rich-text-toolbar__color-hex-input{width:100%;padding:3px 6px;border:1px solid var(--co-semantic-border-default, #ccc);border-radius:3px;background:var(--co-semantic-surface-secondary, #fff);color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-mono, monospace);font-size:11px;outline:none;box-sizing:border-box}.co-rich-text-toolbar__color-hex-input:focus{border-color:var(--co-color-base-negro, #1a1a1a);box-shadow:0 0 0 2px rgba(0, 0, 0, 0.1)}"}},[1,"co-rich-text-toolbar",{editor:[16],variant:[1],disabled:[4],locale:[1],imageUpload:[16],items:[32],tick:[32],openPopover:[32],popoverInput:[32],gridHoverRows:[32],gridHoverCols:[32],gridLockedRows:[32],gridLockedCols:[32],tableTab:[32],tableManualRows:[32],tableManualCols:[32],tableWithHeader:[32],tableContextItems:[32],imagePopoverMode:[32],colorHexInput:[32]},void 0,{variant:[{onVariantChange:0}],editor:[{onEditorChange:0}],openPopover:[{onOpenPopoverChange:0}]}]);function h(){"undefined"!=typeof customElements&&["co-rich-text-toolbar","co-icon"].forEach((t=>{switch(t){case"co-rich-text-toolbar":customElements.get(a(t))||customElements.define(a(t),p);break;case"co-icon":customElements.get(a(t))||i()}}))}p.ITEM_COMMAND={table:"insertTable",image:"setImage",youtube:"setYoutubeVideo",iframe:"setIframe",callout:"insertCallout",fontFamily:"setFontFamily",fontSize:"setFontSize",highlight:"toggleHighlight",alignment:"setTextAlign",lineSpacing:"setLineHeight",letterSpacing:"setLetterSpacing",taskListMenu:"toggleTaskList",indentIncrease:"indent",indentDecrease:"outdent",codeBlock:"toggleCodeBlock",blockquote:"toggleBlockquote",horizontalRule:"setHorizontalRule",bulletListMenu:"toggleBulletList",orderedListMenu:"toggleOrderedList"},h();export{p as C,h as d,d as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,p as c,H as o,c as r,h as a}from"./index.js";const t=c(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.coChange=r(this,"coChange",7),this.checked=!1,this.indeterminate=!1,this.size="small",this.disabled=!1,this.value="",this.appearance="default",this.handleClick=()=>{this.disabled||(this.indeterminate?(this.indeterminate=!1,this.checked=!1,this.coChange.emit(!1)):(this.checked=!this.checked,this.coChange.emit(this.checked)))}}render(){const e="overlay"===this.appearance,c=this.onColor&&(this.checked||this.indeterminate)?{background:this.onColor}:void 0;return a("div",{key:"b52aa4d0412e9ab8b170f11d7a323bbbc80057e5",class:{"co-checkbox-row":!0,"co-checkbox-row--disabled":this.disabled},onClick:this.handleClick},a("span",{key:"d3a1caff03ad0358ea005bcb88a8ad607e9d3d24",role:"checkbox","aria-checked":this.indeterminate?"mixed":String(this.checked),"aria-label":this.label||"",class:{"co-checkbox":!0,[`co-checkbox--${this.size}`]:!0,"co-checkbox--overlay":e,"co-checkbox--checked":this.checked&&!this.indeterminate,"co-checkbox--indeterminate":this.indeterminate,"co-checkbox--disabled":this.disabled},style:c,part:"box"},e&&this.indeterminate&&a("svg",{key:"e6783c1035b4c9f8bb529b4a8f7efc75d9bb093a",class:"co-checkbox__glyph",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},a("path",{key:"19c92d5cd4cbda22338c1a675cabf444e5f58bfc",d:"M3 8h10",stroke:"#fff","stroke-width":"2.2","stroke-linecap":"round"})),e&&this.checked&&!this.indeterminate&&a("svg",{key:"b84d28ddb24652658b0afc88bafce1a3ae7a83c6",class:"co-checkbox__glyph",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},a("path",{key:"b5e21ca2634667abca82f16d30a6952ab8ccbc88",d:"M3.5 8.5l3 3 6-6.5",stroke:"#fff","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"}))),this.label&&a("span",{key:"f311bec251f6fd375d81dcd06cafdb380d6206f0",class:"co-checkbox__label",part:"label"},this.label))}static get style(){return":host{display:inline-flex;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-checkbox-row{display:flex;align-items:center;gap:var(--co-spacing-sm2);cursor:pointer}.co-checkbox-row--disabled{cursor:not-allowed}.co-checkbox__label{color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;line-height:1;white-space:nowrap;user-select:none}.co-checkbox-row--disabled .co-checkbox__label{color:var(--co-semantic-text-disabled)}.co-checkbox{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:none;outline:none;padding:0;overflow:hidden;flex-shrink:0;box-sizing:border-box;transition:background 0.15s ease, border-color 0.15s ease}.co-checkbox--small{width:16px;height:16px;border-radius:var(--co-border-radius-xxs);}.co-checkbox--medium{width:20px;height:20px;border-radius:var(--co-spacing-sm);}.co-checkbox--large{width:24px;height:24px;border-radius:var(--co-spacing-sm);}.co-checkbox:not(.co-checkbox--checked){background:color-mix(in srgb, var(--co-semantic-surface-secondary) 35%, transparent);-webkit-backdrop-filter:blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));backdrop-filter:blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));border:1px solid var(--co-semantic-border-subtle)}.co-checkbox--checked{background:var(--co-semantic-surface-primary);border:none}.co-checkbox--checked::after{content:'';display:block;box-sizing:border-box;border-style:solid;border-color:var(--co-semantic-on-primary);border-width:0 0 1.5px 1.5px;transform:rotate(-45deg) translateY(-15%)}.co-checkbox--small.co-checkbox--checked::after{width:7px;height:4px}.co-checkbox--medium.co-checkbox--checked::after{width:8px;height:5px}.co-checkbox--large.co-checkbox--checked::after{width:10px;height:6px}.co-checkbox--indeterminate{background:var(--co-semantic-surface-primary);border:none}.co-checkbox--indeterminate::after{content:'';display:block;background:var(--co-semantic-on-primary);border-radius:1px}.co-checkbox--small.co-checkbox--indeterminate::after{width:8px;height:1.5px}.co-checkbox--medium.co-checkbox--indeterminate::after{width:10px;height:1.75px}.co-checkbox--large.co-checkbox--indeterminate::after{width:12px;height:2px}.co-checkbox--disabled{opacity:0.4;cursor:not-allowed;pointer-events:none}.co-checkbox--overlay{border-radius:6px}.co-checkbox--overlay.co-checkbox--small{width:20px;height:20px;border-radius:6px}.co-checkbox--overlay.co-checkbox--medium,.co-checkbox--overlay.co-checkbox--large{width:22px;height:22px;border-radius:6px}.co-checkbox--overlay:not(.co-checkbox--checked):not(.co-checkbox--indeterminate){background:rgba(255, 255, 255, 0.9);box-shadow:inset 0 0 0 1px var(--co-color-opacity-negro-16, rgba(31, 28, 27, 0.16));border:none}.co-checkbox--overlay.co-checkbox--checked,.co-checkbox--overlay.co-checkbox--indeterminate{background:var(--co-color-primary-azul, #2563eb);border:none;box-shadow:none}.co-checkbox--overlay.co-checkbox--checked::after,.co-checkbox--overlay.co-checkbox--indeterminate::after{content:none}.co-checkbox__glyph{display:block;width:100%;height:100%;pointer-events:none}@supports not (background: color-mix(in srgb, red, transparent)){.co-checkbox:not(.co-checkbox--checked){background:transparent}}"}},[1,"co-checkbox",{checked:[1540],indeterminate:[1540],size:[1],disabled:[4],label:[1],value:[1],onColor:[1,"on-color"],appearance:[1]}]);function i(){"undefined"!=typeof customElements&&["co-checkbox"].forEach((c=>{"co-checkbox"===c&&(customElements.get(e(c))||customElements.define(e(c),t))}))}i();export{t as C,i as d}
|