genesys-spark-components 4.115.1 → 4.116.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-all-row-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-overflow-beta_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge.cjs.entry.js +1 -1
- package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
- package/dist/cjs/gux-button_2.cjs.entry.js +3 -3
- package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
- package/dist/cjs/gux-card.cjs.entry.js +1 -1
- package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
- package/dist/cjs/gux-content-search.cjs.entry.js +2 -2
- package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
- package/dist/cjs/gux-create-option.cjs.entry.js +2 -2
- package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-file-list-item.cjs.entry.js +74 -0
- package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +234 -0
- package/dist/cjs/gux-form-field-file.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number_2.cjs.entry.js +9 -9
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +6 -6
- package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-range.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-search.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-select.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +2 -2
- package/dist/cjs/gux-inline-alert.cjs.entry.js +3 -3
- package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +2 -2
- package/dist/cjs/gux-loading-message.cjs.entry.js +2 -2
- package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +2 -2
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-buttons_2.cjs.entry.js +3 -3
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-items-per-page.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +2 -2
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +3 -3
- package/dist/cjs/gux-popup.cjs.entry.js +3 -3
- package/dist/cjs/gux-radial-loading.cjs.entry.js +2 -2
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +2 -2
- package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-style-list-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-row-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-sort-control.cjs.entry.js +4 -4
- package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +4 -4
- package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced.cjs.entry.js +3 -3
- package/dist/cjs/gux-tab-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-select-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/gux-table.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs.cjs.entry.js +2 -2
- package/dist/cjs/gux-tag.cjs.entry.js +2 -2
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toast.cjs.entry.js +3 -3
- package/dist/cjs/gux-toggle-slider.cjs.entry.js +2 -2
- package/dist/cjs/gux-toggle.cjs.entry.js +3 -3
- package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip-title.cjs.entry.js +2 -2
- package/dist/cjs/{gux-tooltip.cjs.entry.js → gux-tooltip_2.cjs.entry.js} +84 -3
- package/dist/cjs/index-2dd05ef3.js +24 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{on-attribute-change-321d434b.js → on-attribute-change-a9f44523.js} +12 -0
- package/dist/cjs/{usage-e9f2212c.js → usage-8174e7ca.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file-beta/components/gux-file-list-item/gux-file-list-item.css +66 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file-beta/components/gux-file-list-item/gux-file-list-item.js +153 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file-beta/gux-form-field-file.css +159 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file-beta/gux-form-field-file.js +296 -0
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.js +4 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio-group/gux-form-field-radio-group.js +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +3 -3
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.js +4 -4
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-zone-picker/gux-form-field-time-zone-picker.js +3 -3
- package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.js +1 -1
- package/dist/collection/components/stable/gux-icon/gux-icon.js +1 -1
- package/dist/collection/components/stable/gux-inline-alert/gux-inline-alert.js +2 -2
- package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +2 -2
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +1 -1
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message.js +1 -1
- package/dist/collection/components/stable/gux-modal/gux-modal.js +1 -1
- package/dist/collection/components/stable/gux-page-loading-spinner/gux-page-loading-spinner.js +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +4 -4
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js +2 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination.js +1 -1
- package/dist/collection/components/stable/gux-popover/gux-popover.js +2 -2
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +2 -2
- package/dist/collection/components/stable/gux-popup/gux-popup.js +3 -3
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.js +1 -1
- package/dist/collection/components/stable/gux-rating/gux-rating.js +1 -1
- package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-item/gux-skip-navigation-item.js +1 -1
- package/dist/collection/components/stable/gux-skip-navigation-list/gux-skip-navigation-list.js +1 -1
- package/dist/collection/components/stable/gux-table/gux-all-row-select/gux-all-row-select.js +1 -1
- package/dist/collection/components/stable/gux-table/gux-row-select/gux-row-select.js +2 -2
- package/dist/collection/components/stable/gux-table/gux-sort-control/gux-sort-control.js +3 -3
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.js +1 -1
- package/dist/collection/components/stable/gux-table/gux-table.js +1 -1
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-action/gux-table-toolbar-action.js +1 -1
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.js +1 -1
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-menu-button/gux-table-toolbar-menu-button.js +1 -1
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.js +2 -2
- package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.js +2 -2
- package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +2 -2
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.js +1 -1
- package/dist/collection/components/stable/gux-tabs/gux-tabs.js +1 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.css +5 -0
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced/gux-tab-advanced.js +2 -2
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.css +10 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +3 -3
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-panel/gux-tab-advanced-panel.js +1 -1
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tabs-advanced.js +1 -1
- package/dist/collection/components/stable/gux-tag/gux-tag.js +1 -1
- package/dist/collection/components/stable/gux-time-picker/gux-time-picker.js +1 -1
- package/dist/collection/components/stable/gux-toast/gux-toast.js +2 -2
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +2 -2
- package/dist/collection/components/stable/gux-toggle/gux-toggle.js +2 -2
- package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +2 -2
- package/dist/collection/components/stable/gux-tooltip-title/gux-tooltip-title.js +2 -2
- package/dist/collection/components/stable/gux-truncate/gux-truncate.js +3 -3
- package/dist/collection/utils/dom/on-attribute-change.js +11 -0
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-all-row-select.entry.js +1 -1
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-overflow-beta_2.entry.js +1 -1
- package/dist/esm/gux-badge.entry.js +1 -1
- package/dist/esm/gux-blank-state.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +1 -1
- package/dist/esm/gux-button-slot.entry.js +1 -1
- package/dist/esm/gux-button_2.entry.js +3 -3
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card.entry.js +1 -1
- package/dist/esm/gux-column-manager.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +2 -2
- package/dist/esm/gux-context-menu.entry.js +1 -1
- package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
- package/dist/esm/gux-create-option.entry.js +2 -2
- package/dist/esm/gux-date-beta.entry.js +1 -1
- package/dist/esm/gux-date-time-beta.entry.js +1 -1
- package/dist/esm/gux-datepicker.entry.js +1 -1
- package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +1 -1
- package/dist/esm/gux-file-list-item.entry.js +70 -0
- package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +2 -2
- package/dist/esm/gux-form-field-dropdown.entry.js +2 -2
- package/dist/esm/gux-form-field-file-beta.entry.js +230 -0
- package/dist/esm/gux-form-field-file.entry.js +2 -2
- package/dist/esm/gux-form-field-input-clear-button.entry.js +2 -2
- package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
- package/dist/esm/gux-form-field-number_2.entry.js +9 -9
- package/dist/esm/gux-form-field-phone.entry.js +6 -6
- package/dist/esm/gux-form-field-radio-group-beta.entry.js +3 -3
- package/dist/esm/gux-form-field-radio.entry.js +3 -3
- package/dist/esm/gux-form-field-range.entry.js +4 -4
- package/dist/esm/gux-form-field-search.entry.js +5 -5
- package/dist/esm/gux-form-field-select.entry.js +5 -5
- package/dist/esm/gux-form-field-text-like.entry.js +2 -2
- package/dist/esm/gux-form-field-textarea.entry.js +4 -4
- package/dist/esm/gux-form-field-time-picker.entry.js +6 -6
- package/dist/esm/gux-form-field-time-zone-picker.entry.js +5 -5
- package/dist/esm/gux-form-footer.entry.js +1 -1
- package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +2 -2
- package/dist/esm/gux-inline-alert.entry.js +3 -3
- package/dist/esm/gux-label-info-beta.entry.js +1 -1
- package/dist/esm/gux-link-beta.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +2 -2
- package/dist/esm/gux-loading-message.entry.js +2 -2
- package/dist/esm/gux-modal-legacy.entry.js +1 -1
- package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +2 -2
- package/dist/esm/gux-month-picker-beta.entry.js +1 -1
- package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +2 -2
- package/dist/esm/gux-pagination-buttons_2.entry.js +3 -3
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination-items-per-page.entry.js +1 -1
- package/dist/esm/gux-pagination-legacy.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +2 -2
- package/dist/esm/gux-phone-input-beta.entry.js +1 -1
- package/dist/esm/gux-popover-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +3 -3
- package/dist/esm/gux-popup.entry.js +3 -3
- package/dist/esm/gux-radial-loading.entry.js +2 -2
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +2 -2
- package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
- package/dist/esm/gux-rich-style-list-item.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
- package/dist/esm/gux-row-select.entry.js +2 -2
- package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
- package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
- package/dist/esm/gux-selector-card-beta.entry.js +1 -1
- package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
- package/dist/esm/gux-side-panel-beta.entry.js +1 -1
- package/dist/esm/gux-side-panel-heading.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-item.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +2 -2
- package/dist/esm/gux-sort-control.entry.js +4 -4
- package/dist/esm/gux-switch-legacy.entry.js +1 -1
- package/dist/esm/gux-tab-advanced-list.entry.js +4 -4
- package/dist/esm/gux-tab-advanced-panel.entry.js +1 -1
- package/dist/esm/gux-tab-advanced.entry.js +3 -3
- package/dist/esm/gux-tab-list.entry.js +2 -2
- package/dist/esm/gux-tab-panel.entry.js +1 -1
- package/dist/esm/gux-tab.entry.js +2 -2
- package/dist/esm/gux-table-select-menu.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-action.entry.js +2 -2
- package/dist/esm/gux-table-toolbar-custom-action.entry.js +2 -2
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +2 -2
- package/dist/esm/gux-table-toolbar.entry.js +3 -3
- package/dist/esm/gux-table.entry.js +2 -2
- package/dist/esm/gux-tabs-advanced.entry.js +2 -2
- package/dist/esm/gux-tabs.entry.js +2 -2
- package/dist/esm/gux-tag.entry.js +2 -2
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-time-beta.entry.js +1 -1
- package/dist/esm/gux-time-picker.entry.js +2 -2
- package/dist/esm/gux-time-zone-beta.entry.js +1 -1
- package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toast.entry.js +3 -3
- package/dist/esm/gux-toggle-slider.entry.js +2 -2
- package/dist/esm/gux-toggle.entry.js +3 -3
- package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
- package/dist/esm/gux-tooltip-title.entry.js +2 -2
- package/dist/esm/{gux-tooltip.entry.js → gux-tooltip_2.entry.js} +85 -5
- package/dist/esm/index-feb7be20.js +24 -20
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{on-attribute-change-f42eabee.js → on-attribute-change-33919964.js} +12 -1
- package/dist/esm/{usage-9c330580.js → usage-a89a5576.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/{p-66645e5c.entry.js → p-00a526a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5c58be88.entry.js → p-0132420c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-16d31feb.entry.js → p-0410d3f7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e7cf6c6d.entry.js → p-057259e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8cf7c686.entry.js → p-0580a273.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dcc4fd5f.entry.js → p-06581119.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4f362e88.js → p-0740e2df.js} +1 -1
- package/dist/genesys-webcomponents/{p-11253567.entry.js → p-0a10e2e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0b47480d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-96f5d164.entry.js → p-0b7b8102.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c5d5e5bd.entry.js → p-0cb49eb4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c9d9a6b6.entry.js → p-174515eb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a43e0510.entry.js → p-1988f7e6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6a6236a2.entry.js → p-1b869ebd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6b26aef0.entry.js → p-1da678af.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-387905bb.entry.js → p-1f2cf80e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-40daa702.entry.js → p-20e49335.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fb2e15f5.entry.js → p-2101c83e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-22579915.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-00757986.entry.js → p-229dc149.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-89ae91f1.entry.js → p-22c770b5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-53f8fb9c.entry.js → p-26b46ece.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-83f99839.entry.js → p-2971f4e3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-085b223b.entry.js → p-2e151cf0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cdd09836.entry.js → p-308c0605.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3bcaf358.entry.js → p-3c6428a1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dd7be042.entry.js → p-3d5516ca.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-527eaeda.entry.js → p-4232be88.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e1c24516.entry.js → p-432f4ab6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2dfd02ff.entry.js → p-4365f6cd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-856928e1.entry.js → p-44069e34.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a53955e.entry.js → p-451cb16f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-04e3c81a.entry.js → p-45d02ea7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-162ff53e.entry.js → p-4a08ebff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-028c5630.entry.js → p-4b140665.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2c85451.entry.js → p-4dfc6b6e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-68f329b8.entry.js → p-4edda537.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eed957f6.entry.js → p-4f114773.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a3da8a2d.entry.js → p-4f51ab8d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-14579d6d.entry.js → p-5289a9c8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-544633db.entry.js → p-542eaf93.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d3912e19.entry.js → p-59ac101f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c448e6d2.entry.js → p-5ab7c677.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4200fb31.entry.js → p-602d476d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dbc7abfb.entry.js → p-63f7a0ff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-21ee2e71.entry.js → p-65f9e3e8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-724e155b.entry.js → p-66b4cc5e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9c02a360.entry.js → p-676ef058.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ef4db655.entry.js → p-68350918.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-54f0f30d.entry.js → p-68ead306.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c8c39016.entry.js → p-6a0dbd20.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-6b12dd16.js +1 -0
- package/dist/genesys-webcomponents/p-71f111a3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8c3fc3e0.entry.js → p-74effd2b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e71768a0.entry.js → p-7550a634.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9bbb057f.entry.js → p-75b81271.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-75dc5903.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-64791f10.entry.js → p-760328b2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b1a44b54.entry.js → p-7715617b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-63bfd1fa.entry.js → p-7848d54a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-069f2fe2.entry.js → p-7aff2af6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9a12e6e3.entry.js → p-7b0f7f8e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7e30698b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5d251ef1.entry.js → p-7f3117f2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ae7388b9.entry.js → p-80a85831.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c67267ed.entry.js → p-8256823a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9e70db3b.entry.js → p-86b3738c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3aa566e0.entry.js → p-86ec0e75.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a9b2a651.entry.js → p-89cf828c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-336d443a.entry.js → p-8a52859e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d5b15a1d.entry.js → p-8aaf25f6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-73e6ab30.entry.js → p-8e0714f2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fc0be42d.entry.js → p-8e5766e5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2d930b2b.entry.js → p-8f8cc358.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f333506d.entry.js → p-8fd3bf3f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bed8151a.entry.js → p-933290a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-98deb610.entry.js → p-9795ff8e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ab3a109e.entry.js → p-991c0c6c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8051ad60.entry.js → p-9dee006b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b0e854d.entry.js → p-9e8a7451.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7e24081f.entry.js → p-a01b5fe1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be8a9af0.entry.js → p-a894ae4a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-df273ab8.entry.js → p-abd12365.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dbe8e5ae.entry.js → p-ade05f70.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1e79d2a8.entry.js → p-af98a983.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6edebe6b.entry.js → p-b267726e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5256b27c.entry.js → p-b32ff839.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d118c83a.entry.js → p-b60d4ee6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-12d08ca8.entry.js → p-bbebe84a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6aaf185d.entry.js → p-be273318.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c5bd2bd4.entry.js → p-c02e7527.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7046c178.entry.js → p-c4964fc5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dc3580c6.entry.js → p-c4cb0f72.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5039353e.entry.js → p-c77f56c2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b9c92fbb.entry.js → p-c798886e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fcaa82b7.entry.js → p-c83e7951.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2f0f8e48.entry.js → p-c8cb2d1e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f23667e9.entry.js → p-cc1e1fc9.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-cc2608c2.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-4f1759d5.entry.js → p-cd03c105.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d17a454b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a64fc44d.entry.js → p-d8f620af.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1ef901bf.entry.js → p-da1f252b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8dfae62c.entry.js → p-da81b340.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d5bcd405.entry.js → p-ddd4c68f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ac44c7e6.entry.js → p-def997a0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4099213f.entry.js → p-e06dd2a0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e12e6140.entry.js → p-e0a6cb94.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-21a6fe30.entry.js → p-e355f7f2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-14a6dd0f.entry.js → p-e465738e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a598a1c2.entry.js → p-e551ffeb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c331bd68.entry.js → p-e5e516e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-85dcd3da.entry.js → p-eabc1fc9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-75bf1516.entry.js → p-eafaef87.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2fc635a.entry.js → p-eb491f79.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-47733161.entry.js → p-ecc71b98.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-50ee8b09.entry.js → p-efbe10ff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cc386a21.entry.js → p-f0655420.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3c71b54c.entry.js → p-f1839727.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1e3d99b5.entry.js → p-f4400cba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7485e1ef.entry.js → p-f4a5a754.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2fd41f66.entry.js → p-f5314df3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5e250c17.entry.js → p-f59fdfdf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-aa18eb74.entry.js → p-f63f6abd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4e075626.entry.js → p-f6f92b11.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-624f26b2.entry.js → p-f9b076ec.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-87e9bf31.entry.js → p-fa9bcc28.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0d4b33a8.entry.js → p-fe64e567.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-file-beta/components/gux-file-list-item/gux-file-list-item.d.ts +15 -0
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-file-beta/gux-form-field-file.d.ts +49 -0
- package/dist/types/components.d.ts +60 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/dist/types/utils/dom/on-attribute-change.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/gux-truncate.cjs.entry.js +0 -87
- package/dist/esm/gux-truncate.entry.js +0 -83
- package/dist/genesys-webcomponents/p-149ed4f3.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2ecdc52f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-48dcd676.entry.js +0 -1
- package/dist/genesys-webcomponents/p-64aff8dd.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e5b1cffc.js +0 -1
- package/dist/genesys-webcomponents/p-eca569d4.entry.js +0 -1
- package/dist/genesys-webcomponents/p-fc49b13a.entry.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
import{r as t,f as e,d as
|
1
|
+
import{r as t,f as e,d as i,h as a,H as o,g as n}from"./p-78cb19b9.js";import{O as s}from"./p-0706aebd.js";import{O as r}from"./p-f4a8d565.js";import{t as l}from"./p-0740e2df.js";import{g as c}from"./p-1ccc4961.js";import{a as d}from"./p-cf0e7d3b.js";function u(t,e){[].concat(t).forEach((t=>{null!=t&&(t.accent=e)}))}function h(t,...e){e.flat().filter((t=>null!=t&&!(null==t?void 0:t.hasAttribute("icon-only")))).forEach((e=>e.iconOnly=t))}var b=function(t,e,i,a){var o,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const p=class{constructor(e){t(this,e),this.minimumSizes={full:0,iconOnly:0,condensed:0},this.displayedLayout="full",this.hasContextDivider=!1}onMutation(){this.hasContextDivider=this.needsContextDivider(),e(this.root)}recordLayoutMinSize(){i((()=>{var t,e,i;const a=0|(null===(t=this.searchAndFilterContainer)||void 0===t?void 0:t.clientWidth),o=0|(null===(e=this.actionsContainer)||void 0===e?void 0:e.clientWidth),n=0|(null===(i=this.minControlSize)||void 0===i?void 0:i.clientWidth);this.minimumSizes[this.displayedLayout]=a+o+n}))}get minControlSize(){return this.root.shadowRoot.querySelector(".section-spacing")}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get searchAndFilterContainer(){return this.root.shadowRoot.querySelector(".search-filter-container")}get filterSlot(){return c(this.root,"search-and-filter")}get menuActionSlot(){return c(this.root,"menu-actions")}get permanentSlot(){return c(this.root,"permanent-actions")}get contextualSlot(){return c(this.root,"contextual-actions")}get primaryAction(){var t;return null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-table-toolbar-custom-action[slot]")}get permanentActions(){var t,e;return(null===(t=this.permanentSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.permanentSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get menuActionsItems(){var t,e;if(null===(t=this.menuActionSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.menuActionSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get contextualActions(){var t,e;return(null===(t=this.contextualSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.contextualSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get filterActions(){var t,e;return(null===(t=this.filterSlot)||void 0===t?void 0:t.hasChildNodes)?Array.from(null===(e=this.filterSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action")):[]}get allFilterContextual(){var t;return null===(t=this.filterActions)||void 0===t?void 0:t.concat(this.contextualActions)}needsContextDivider(){var t;return(null===(t=this.contextualActions)||void 0===t?void 0:t.length)&&this.contextualSlot!==this.root.lastElementChild}renderMenu(){var t;return Boolean((null===(t=this.menuActionsItems)||void 0===t?void 0:t.length)||"condensed"==this.displayedLayout)}renderFullLayout(){this.displayedLayout="full",h(!1,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleDown(){this.displayedLayout="iconOnly",h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleUp(){var t,e;this.displayedLayout="iconOnly",u(this.permanentActions,"secondary"),u(this.primaryAction,"primary"),h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.permanentActions&&(null===(t=this.root)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.root)||void 0===e||e.appendChild(this.primaryAction))}renderCondensedLayout(){var t,e;this.displayedLayout="condensed",this.permanentActions&&(null===(t=this.menuActionSlot)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.menuActionSlot)||void 0===e||e.appendChild(this.primaryAction)),h(!0,...this.allFilterContextual),h(!1,...this.permanentActions),h(!1,this.primaryAction),u(this.menuActionsItems,"ghost")}componentWillRender(){l(this.root),this.hasContextDivider=this.needsContextDivider()}componentDidLoad(){d((()=>{this.recordLayoutMinSize(),this.checkResponsiveLayout()})),u(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){i((()=>{const t=this.root.clientWidth;t<=this.minimumSizes.iconOnly?"iconOnly"==this.displayedLayout&&this.renderCondensedLayout():t<=this.minimumSizes.full?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown():"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return a(o,{key:"7ad0fb671c3e365264386c2f23be5ababf7180f8",role:"toolbar","aria-orientation":"horizontal","gs-layout":this.displayedLayout},a("div",{key:"12c1685dde4fdaaec862a008266d05e0bf4ec1f9",class:"search-filter-container"},a("slot",{key:"2143a58f9d13eff7a503ffbf1d4a6b7b6e689374",name:"search-and-filter"})),a("div",{key:"9af6e0cc7068d479aad5919829f252a0fbd86e00",class:"section-spacing"}),a("div",{key:"871b7e4286154264a2eec141bec73cca183b8421",class:"gux-contextual-permanent-primary"},a("div",{key:"2bf2866557e37bed02b8d5753ac322b43368e24c",class:{"gux-contextual-wrapper":this.hasContextDivider}},a("slot",{key:"1656e1b40b31cba84ed05e6fde3ee4073d607590",name:"contextual-actions"})),a("div",{key:"2bc4175342480282781527ef1c1f8edd258917ee",class:"gux-permanent-menu-primary-wrapper"},a("slot",{key:"2e6965cbe31b963708286a5ee370b34e98f73bd9",name:"permanent-actions"}),a("gux-table-toolbar-menu-button",{key:"3ac915653b556f8eab471ea2c6d709db30d5f1b9","show-menu":this.renderMenu()},a("slot",{key:"11cafb537f792256326d7c7dfdf9fb53eb5be9e4",name:"menu-actions"})),a("slot",{key:"ac7e49c00b2c70d1bcfc885df0580e541c1fa701",name:"primary-action"}))))}get root(){return n(this)}};b([r({childList:!0,subtree:!0})],p.prototype,"onMutation",null),b([s()],p.prototype,"checkResponsiveLayout",null),p.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;inline-size:100%;max-block-size:var(--gse-ui-dataTableItems-tableToolbar-height);visibility:hidden;transition:visibility 0s 0.5s;}@keyframes show-toolbar{to{visibility:visible}}:host .search-filter-container{min-inline-size:260px;padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host slot[name=search-and-filter]::slotted(*){display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-start;align-items:center}:host .section-spacing{display:flex;flex-direction:row;min-inline-size:72px}:host .gux-contextual-permanent-primary{display:flex;flex-direction:row;justify-content:space-between;padding-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host .gux-contextual-permanent-primary slot[name=permanent-actions]::slotted(*),:host .gux-contextual-permanent-primary slot[name=contextual-actions]::slotted(*){display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-end;align-items:center}:host .gux-contextual-permanent-primary .gux-contextual-wrapper{padding-inline-end:var(--gse-ui-dataTableItems-tableToolbar-gap);border-inline-end:var(--gse-ui-dataTableItems-tableToolbar-divider-width) solid var(--gse-ui-dataTableItems-tableToolbar-dividerColor)}:host .gux-contextual-permanent-primary .gux-permanent-menu-primary-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);margin-inline-start:var(--gse-ui-dataTableItems-tableToolbar-gap)}";export{p as gux_table_toolbar}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as o,h as a,g as s}from"./p-78cb19b9.js";import{t as e}from"./p-
|
1
|
+
import{r as t,c as o,h as a,g as s}from"./p-78cb19b9.js";import{t as e}from"./p-0740e2df.js";import{h as i}from"./p-6d8b4027.js";import{a as n}from"./p-8eaf8caf.js";const r=class{constructor(a){t(this,a),this.guxdismiss=o(this,"guxdismiss",7),this.toastType="success",this.hasLink=!1,this.hasPrimaryButton=!1,this.hasSecondaryButton=!1}componentWillLoad(){e(this.root,{variant:this.toastType}),this.hasPrimaryButton=i(this.root,"primary-button"),this.hasSecondaryButton=i(this.root,"secondary-button"),this.hasLink=i(this.root,"link")}componentDidLoad(){this.checkAriaLive()}checkAriaLive(){let t=this.root.parentElement;for(;t;){if(t.hasAttribute("aria-live"))return;t=t.parentElement}n(this.root,"gux-toast must have a parent element with an `aria-live` attribute")}renderToastIcon(){switch(this.toastType){case"success":return a("gux-icon",{"icon-name":"fa/circle-check-solid",decorative:!0});case"warning":return a("gux-icon",{"icon-name":"fa/triangle-exclamation-solid",decorative:!0});case"error":return a("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0});case"info":return a("gux-icon",{"icon-name":"fa/circle-info-solid",decorative:!0});case"action":return a("slot",{name:"icon"})}}renderLink(){return a("div",{class:"gux-buttons-bar"},a("gux-link-beta",{standalone:!0},a("slot",{name:"link"})))}renderActions(){return a("gux-cta-group",{class:"gux-buttons-bar",align:"end"},this.hasSecondaryButton&&a("gux-button-slot",{slot:"secondary"},a("slot",{name:"secondary-button"})),a("gux-button-slot",{slot:"primary"},a("slot",{name:"primary-button"})))}render(){return a("div",{key:"033e2dc79c03f9afa1022feca4afc4e4bccc93cb",class:`gux-toast gux-toast-${this.toastType}`},a("div",{key:"67eb72c257e01e983153dec3096ad37c2e497282",class:`gux-icon gux-icon-${this.toastType}`},this.renderToastIcon()),a("div",{key:"cf8bc1c227f0fa3543e9f9bc85561afbb855539f",class:"gux-content"},a("div",{key:"075e2ae02e39c1624cac4d215fb4b9059b0a59a2",class:"gux-message"},a("gux-truncate",{key:"0ad6f3854d48bfc545b9823077f26ac8d3946d5d",class:"gux-message-title","max-lines":1},a("slot",{key:"dbff2c08c81ac809316c5c75421b14c9d22f4838",name:"title"})),a("gux-truncate",{key:"06913a1b60bf729a2b0ece4af528602cf0964bb4",class:"gux-message-body","max-lines":2},a("slot",{key:"e394d5a2170959e6fd263bf618d0bbc6512a047b",name:"message"}))),"action"!==this.toastType&&this.hasLink&&this.renderLink(),"action"===this.toastType&&this.hasPrimaryButton&&this.renderActions()),a("gux-dismiss-button",{key:"bc8a930bb582f4aa874facfedab5b6f02a60201a",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(t){t.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return s(this)}};r.style=".gux-toast{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toast-gap);place-content:stretch flex-start;align-items:flex-start;inline-size:var(--gse-ui-toast-wrappingWidth);padding:var(--gse-ui-toast-margin);margin-block-end:var(--gse-ui-toast-stacking-gap);border-radius:var(--gse-ui-toast-borderRadius);box-shadow:var(--gse-ui-toast-boxShadow)}.gux-toast .gux-icon ::slotted(gux-icon){inline-size:var(--gse-ui-toast-icon) !important;block-size:var(--gse-ui-toast-icon) !important}.gux-toast .gux-icon gux-icon{inline-size:var(--gse-ui-toast-icon) !important;block-size:var(--gse-ui-toast-icon) !important}.gux-toast .gux-icon.gux-icon-error{color:var(--gse-ui-toast-error-iconColor)}.gux-toast .gux-icon.gux-icon-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-toast .gux-icon.gux-icon-success{color:var(--gse-ui-toast-success-iconColor)}.gux-toast .gux-icon.gux-icon-info{color:var(--gse-ui-toast-info-iconColor)}.gux-toast .gux-icon.gux-icon-action{color:var(--gse-ui-toast-action-iconColor)}.gux-toast .gux-content{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-toast-gapButton);place-content:stretch flex-start;align-items:flex-start;align-self:auto;order:0}.gux-toast .gux-content .gux-message{display:flex;flex-direction:column;gap:var(--gse-ui-toast-gapText)}.gux-toast .gux-content .gux-message .gux-message-title{font-family:var(--gse-ui-toast-heading-fontFamily);font-size:var(--gse-ui-toast-heading-fontSize);font-weight:var(--gse-ui-toast-heading-fontWeight);line-height:var(--gse-ui-toast-heading-lineHeight)}.gux-toast .gux-content .gux-message .gux-message-body{font-family:var(--gse-ui-toast-text-fontFamily);font-size:var(--gse-ui-toast-text-fontSize);line-height:var(--gse-ui-toast-text-lineHeight)}.gux-toast .gux-content .gux-buttons-bar{inline-size:100%}.gux-toast.gux-toast-success{background-color:var(--gse-ui-toast-success-backgroundColor)}.gux-toast.gux-toast-success .gux-message{color:var(--gse-ui-toast-success-foregroundColor)}.gux-toast.gux-toast-warning{background-color:var(--gse-ui-toast-warning-backgroundColor)}.gux-toast.gux-toast-warning .gux-message{color:var(--gse-ui-toast-warning-foregroundColor)}.gux-toast.gux-toast-error{background-color:var(--gse-ui-toast-error-backgroundColor)}.gux-toast.gux-toast-error .gux-message{color:var(--gse-ui-toast-error-foregroundColor)}.gux-toast.gux-toast-info{background-color:var(--gse-ui-toast-info-backgroundColor)}.gux-toast.gux-toast-info .gux-message{color:var(--gse-ui-toast-info-foregroundColor)}.gux-toast.gux-toast-action{background-color:var(--gse-ui-toast-action-backgroundColor)}.gux-toast.gux-toast-action .gux-message{color:var(--gse-ui-toast-action-foregroundColor)}";export{r as gux_toast}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,c as t,h as o,H as i,g as s}from"./p-78cb19b9.js";import{r as n}from"./p-0934300e.js";import{b as a}from"./p-4b423804.js";import"./p-4202e9f2.js";const r={createCustomOptionInstructions:", select to create a new custom option",createOption:'Add "{optionValue}"'},u=class{constructor(o){e(this,o),this.internalcreatenewoption=t(this,"internalcreatenewoption",7),this.value=void 0,this.active=!1,this.hidden=!0,this.filtered=!0,this.hovered=!1}onmouseenter(){this.hovered=!0}onMouseleave(){this.hovered=!1}async guxEmitInternalCreateNewOption(){this.internalcreatenewoption.emit()}handleClick(){this.internalcreatenewoption.emit(this.value)}async componentWillLoad(){this.i18n=await a(this.root,r),this.root.id=this.root.id||n("gux-option-multi")}renderCustomOptionInstructions(){return o("span",{class:"gux-screenreader"},this.i18n("createCustomOptionInstructions"))}render(){return o(i,{key:"
|
1
|
+
import{r as e,c as t,h as o,H as i,g as s}from"./p-78cb19b9.js";import{r as n}from"./p-0934300e.js";import{b as a}from"./p-4b423804.js";import"./p-4202e9f2.js";const r={createCustomOptionInstructions:", select to create a new custom option",createOption:'Add "{optionValue}"'},u=class{constructor(o){e(this,o),this.internalcreatenewoption=t(this,"internalcreatenewoption",7),this.value=void 0,this.active=!1,this.hidden=!0,this.filtered=!0,this.hovered=!1}onmouseenter(){this.hovered=!0}onMouseleave(){this.hovered=!1}async guxEmitInternalCreateNewOption(){this.internalcreatenewoption.emit()}handleClick(){this.internalcreatenewoption.emit(this.value)}async componentWillLoad(){this.i18n=await a(this.root,r),this.root.id=this.root.id||n("gux-option-multi")}renderCustomOptionInstructions(){return o("span",{class:"gux-screenreader"},this.i18n("createCustomOptionInstructions"))}render(){return o(i,{key:"a75dc5acc74156404a41d589777df2418185386f",role:"option","aria-selected":!1,class:{"gux-active":this.active,"gux-hovered":this.hovered,"gux-filtered":this.filtered}},o("div",{key:"256278e5b949c188f20be826cf86f2759986ed11",class:"gux-option"},o("gux-icon",{key:"3ea7a34b74ccc3cade832e9ebbaeaad2f5321743",decorative:!0,"icon-name":"fa/plus-regular"}),o("div",{key:"fc5e1f2591d3cf32826f98a7d9793c78481b66a3",class:"gux-create-text"},this.i18n("createOption",{optionValue:this.value})),this.renderCustomOptionInstructions()))}get root(){return s(this)}};u.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);word-wrap:break-word;cursor:pointer}:host:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host:host(.gux-active){border-radius:var(--gse-semantic-focusOutline-sm-borderRadius);outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);outline-offset:-2px}:host:host(.gux-hovered:not([disabled])){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host:host(.gux-filtered){display:none}:host gux-icon{inline-size:var(--gse-ui-menu-option-startIcon-width);block-size:var(--gse-ui-menu-option-startIcon-height);padding-inline-end:var(--gse-ui-menu-option-gap)}:host .gux-option{display:inline-flex}:host .gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{u as gux_create_option}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as s,H as i,g as e}from"./p-78cb19b9.js";import{s as o}from"./p-2c25e2f2.js";import{t as a}from"./p-
|
1
|
+
import{r as t,h as s,H as i,g as e}from"./p-78cb19b9.js";import{s as o}from"./p-2c25e2f2.js";import{t as a}from"./p-0740e2df.js";const c=class{constructor(s){t(this,s),this.value=void 0,this.layout="default",this.switchItems=[]}onClick(t){t.stopPropagation();const s=t.target.closest("gux-switch-item");s&&this.value!==s.value&&(this.value=s.value,o(this.root,"input"),o(this.root,"change"))}slotChanged(){this.switchItems=Array.from(this.root.children)}componentWillLoad(){a(this.root,{variant:this.layout})}componentWillRender(){this.switchItems.forEach((t=>{t.selected=t.value===this.value}))}render(){return s(i,{key:"2a5f7a42ae51622f621083945722d55b21c61c95",role:"group",class:`gux-${this.layout}`},s("slot",{key:"ad155fd665ccca61c80cf77cd5da7e5ab45f899b",onSlotchange:this.slotChanged.bind(this)}))}get root(){return e(this)}};c.style=":host{display:flex;align-items:flex-end}";export{c as gux_switch_legacy}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as r,g as s}from"./p-78cb19b9.js";import{t as a}from"./p-
|
1
|
+
import{r as e,h as r,g as s}from"./p-78cb19b9.js";import{t as a}from"./p-0740e2df.js";const t=class{constructor(r){e(this,r)}componentWillLoad(){a(this.root)}render(){return r("div",{key:"69e50b437e17b14b8e0fd5dbd3d3c3167bdb9b70",class:"gux-selector-cards"},r("slot",{key:"c8719a29b42c4241f72f67f45ae4c30605976ae4"}))}get root(){return s(this)}};t.style=".gux-selector-cards{display:flex;flex-wrap:wrap;gap:var(--gse-ui-selectorCard-simple-gap)}";export{t as gux_selector_cards_beta}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as s,g as i}from"./p-78cb19b9.js";import{t as r}from"./p-
|
1
|
+
import{r as t,h as s,g as i}from"./p-78cb19b9.js";import{t as r}from"./p-0740e2df.js";const n=/[ +]/g,e=new Map,h=new Map;function a(t){return t.replace(/[\^$*+?.(){}[\]\\]/g,"\\$&")}const o=class{constructor(s){t(this,s),this.text=void 0,this.highlight=void 0,this.strategy="start",this.dimmed=!1}componentWillLoad(){r(this.root)}render(){if(this.highlight&&this.text)switch(this.strategy){case"start":return this.renderStartsWith();case"contains":return this.renderContains();case"fuzzy":return this.renderFuzzy()}return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}renderStartsWith(){if(this.text.toLowerCase().startsWith(this.highlight.toLowerCase())){const t=this.text.substring(0,this.highlight.length),i=this.text.substring(this.highlight.length);return s("span",{class:{"gux-dimmed":this.dimmed}},s("mark",null,t),i)}return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}renderContains(){const t={highlighted:"",remaining:this.text};for(;t.remaining.toLowerCase().includes(this.highlight.toLowerCase());){const s=t.remaining.toLowerCase().indexOf(this.highlight.toLowerCase()),i=t.remaining.substring(0,s),r=t.remaining.substring(s,s+this.highlight.length);t.highlighted+=i+`<mark>${r}</mark>`,t.remaining=t.remaining.substring(s+r.length)}return s("span",{class:{"gux-dimmed":this.dimmed},innerHTML:t.highlighted+t.remaining})}renderFuzzy(){if(function(t,s){let i=e.get(t);return i||(i=function(t){const s=t.split(n).map(a);if(1===s.length)return new RegExp(s[0],"i");let i="(";return s.forEach(((t,r)=>{i+=t+").*",r!==s.length-1&&(i+="(")})),new RegExp(i+"$","i")}(t),e.set(t,i)),i.test(s)}(this.highlight,this.text)){const i=(t=this.highlight,t.split(n).map(a).map((t=>{let s=h.get(t);return s||(s=new RegExp(t,"i"),h.set(t,s)),s}))).reduce(((t,s)=>{const{0:i,index:r,input:n}=t.remaining.match(s),e=n.substring(0,r);return{highlighted:`${t.highlighted+e}<mark>${i}</mark>`,remaining:n.substring(r+i.length)}}),{highlighted:"",remaining:this.text});return s("span",{class:{"gux-dimmed":this.dimmed},innerHTML:i.highlighted+i.remaining})}var t;return s("span",{class:{"gux-dimmed":this.dimmed}},this.text)}get root(){return i(this)}};o.style="span mark{background-color:var(--gse-ui-search-match-firstLevel-backgroundColor)}.gux-dimmed mark{background-color:var(--gse-ui-search-match-subsequentLevel-backgroundColor)}";export{o as gux_text_highlight}
|
@@ -1 +1 @@
|
|
1
|
-
const t="4.
|
1
|
+
const t="4.116.0",e=20,n=3e4,o=[function(t){const[e,n,...o]=t.split(".");return{name:"spark-library",metadata:{fullVersion:`${e}.${n}.${o.join(".")}`,majorVersion:e,minorVersion:`${e}.${n}`}}}(t)];function i(){const t=window.newrelic;if(t){for(let r=0;r<e;r++){if(0==o.length)return void setTimeout(i,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(i,n)}}let r=!1;function c(e,n){window.newrelic&&(r||(r=!0,i()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}export{c as t}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,f as s,d as i,h as a,H as h,g as o}from"./p-78cb19b9.js";import{b as n}from"./p-4b423804.js";import{w as l}from"./p-e97879b4.js";import{r}from"./p-0934300e.js";import{t as c}from"./p-
|
1
|
+
import{r as t,c as e,f as s,d as i,h as a,H as h,g as o}from"./p-78cb19b9.js";import{b as n}from"./p-4b423804.js";import{w as l}from"./p-e97879b4.js";import{r}from"./p-0934300e.js";import{t as c}from"./p-0740e2df.js";import{t as d}from"./p-408d5857.js";import"./p-4202e9f2.js";const b=class{constructor(i){t(this,i),this.guxselectionchanged=e(this,"guxselectionchanged",7),this.guxsortchanged=e(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>{this.prepareSelectableRows(),s(this)})),this.tableId=r("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){c(this.root),this.i18n=await n(this.root,d)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),i((()=>{this.checkVerticalScroll()})),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkVerticalScroll()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows(t.detail)}onInternalRowSelectChange(t){t.stopPropagation();const e=t.target;e.selected=t.detail,this.handleRowSelection(e)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const e=this.rowCheckboxes,s=e.filter((t=>!t.disabled)),i=s.filter((t=>t.selected)),a=Boolean(e.length),h=i.length===s.length,o=0===i.length;t.selected=a&&h,t.setIndeterminate(a&&!h&&!o)}}handleSelectAllRows(t){this.rowCheckboxes.forEach((e=>{e.disabled||(e.selected=t,this.updateRowSelection(e))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const e=t.closest("tr");t.selected?e.setAttribute("data-selected-row",""):e.removeAttribute("data-selected-row")}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t),this.calculateColumnWidths(this.tableColumns).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const e=this.columnResizeState.resizableColumn.dataset.columnName,s=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===e?Object.assign(Object.assign({},t),{width:s}):t));this.columnsWidths[e]=i.find((t=>t.name===e)).width,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,l("th",t,(e=>{this.tableColumns.length-1!==e.cellIndex&&this.isInResizeZone(t,e)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){l("th",t,(e=>{this.isInResizeZone(t,e)&&(this.columnResizeState={resizableColumn:e,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:e.clientWidth})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,e){return e.getBoundingClientRect().right-t.clientX<3}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:t.clientWidth})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let e="";Object.keys(this.columnsWidths).forEach((t=>{e+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=e}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return a(h,{key:"73aee8a90fbda7b70630f3bb7c51dfd9097fe3fb","gs-table-id":this.tableId,"gs-obj-table":this.objectTable,"gs-compact":this.compact},a("div",{key:"411b266888702c89db3d9a433a7afda659e93779",class:"gux-table"},a("div",{key:"5d8d33f9526b8d506297b77f6314667ecb09edc8",tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},a("slot",{key:"fd1b7ec4dc41f3e568a340be5d41ed0f7b2de117",name:"data"})),this.isTableEmpty&&a("div",{key:"663a13e00ac43c13d24366dc146f4b9ead0a52d4",class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return o(this)}};b.style=":host{position:relative;display:block}:host .gux-table{position:relative;block-size:inherit}:host .gux-table .gux-table-container{max-block-size:100%;overflow:auto;scrollbar-color:var(--gse-ui-dataTableItems-scrollbar-foregroundColor);scrollbar-width:thin}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;block-size:calc(100% - var(--gse-ui-dataTableItems-header-default-height));color:var(--gse-semantic-foreground-container-lowEmphasis);background:var(--gse-semantic-background-container-page-tonalSubtle);font-family:var(--gse-semantic-heading-lg-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-lg-bold-fontSize);line-height:var(--gse-semantic-heading-lg-bold-lineHeight);font-weight:var(--gse-semantic-heading-lg-bold-fontWeight)}";export{b as gux_table}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,c as s,h as a,H as i,g as e}from"./p-78cb19b9.js";import{t as h}from"./p-0740e2df.js";const c=class{constructor(a){t(this,a),this.guxactivetabchange=s(this,"guxactivetabchange",7),this.tabList=void 0,this.tabPanels=[],this.activeTab=void 0}watchActiveTab(t){this.activateTab(t,this.tabList,this.tabPanels),this.guxactivetabchange.emit(t)}onInternalActivateTabPanel(t){t.stopPropagation(),this.activateTab(t.detail,this.tabList,this.tabPanels)}async guxActivate(t){this.activateTab(t,this.tabList,this.tabPanels)}onSlotchange(){const[t,s]=Array.from(this.root.shadowRoot.querySelectorAll("slot"));this.tabList=t.assignedElements()[0],this.tabPanels=s.assignedElements(),this.activateTab(this.activeTab,this.tabList,this.tabPanels)}activateTab(t,s,a){var i;this.activeTab=t||(null===(i=null==s?void 0:s.querySelector("gux-tab-advanced"))||void 0===i?void 0:i.getAttribute("tab-id")),s.guxSetActive(this.activeTab),a.forEach((t=>{t.guxSetActive(t.tabId===this.activeTab)}))}componentWillLoad(){h(this.root)}render(){return a(i,{key:"3fe412189e324adbff02b631f40dff277ba061e4"},a("slot",{key:"514367acd750c518346185579c4ae41e7994ee61",name:"tab-list"}),a("slot",{key:"1ee63ae1a038b85ce60640239572c5a0e02b7e3f",onSlotchange:this.onSlotchange.bind(this)}))}get root(){return e(this)}static get watchers(){return{activeTab:["watchActiveTab"]}}};export{c as gux_tabs_advanced}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,c as t,h as g,H as l,g as i}from"./p-78cb19b9.js";import{t as o}from"./p-
|
1
|
+
import{r as e,c as t,h as g,H as l,g as i}from"./p-78cb19b9.js";import{t as o}from"./p-0740e2df.js";import{r as a}from"./p-0934300e.js";import{b as r}from"./p-4b423804.js";import"./p-4202e9f2.js";const s={defaultAriaLabel:"Toggle Switch",toggleIsLoading:"Toggle is loading",toggleIsFinishedLoading:"Toggle is finished loading"},n=class{constructor(g){e(this,g),this.check=t(this,"check",7),this.labelId=a("gux-toggle-label"),this.errorId=a("gux-toggle-error"),this.checked=!1,this.disabled=!1,this.loading=!1,this.label=void 0,this.checkedLabel=void 0,this.uncheckedLabel=void 0,this.labelPosition="right",this.errorMessage=void 0,this.displayInline=!1}handleLoading(e){this.announceElement.guxAnnounce(this.i18n(e?"toggleIsLoading":"toggleIsFinishedLoading"))}onKeydown(e){" "===e.key&&(e.preventDefault(),this.toggle())}toggle(){this.disabled||this.loading||this.check.emit(!this.checked).defaultPrevented||(this.checked=!this.checked)}getAriaLabel(){return this.root.getAttribute("aria-label")||this.label||this.checkedLabel||this.root.title||this.i18n("defaultAriaLabel")}async componentWillLoad(){this.i18n=await r(this.root,s),o(this.root,{variant:this.checkedLabel||this.uncheckedLabel?"labled":"unlabled"})}renderLoading(){if(this.loading)return g("div",{class:"gux-toggle-label-loading"},g("gux-radial-loading",{context:"input"}))}renderLabel(){return this.label?g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.label),this.renderLoading())))):this.uncheckedLabel&&this.checkedLabel?g("div",{class:"gux-toggle-label-and-error"},g("div",{class:"gux-toggle-label"},g("div",{class:"gux-toggle-label-text"},g("span",{class:"gux-toggle-label-text-inner"},g("span",{id:this.labelId},this.checked?this.checkedLabel:this.uncheckedLabel),this.renderLoading()),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.checkedLabel),g("span",{class:"gux-toggle-label-text-inner gux-hidden"},this.uncheckedLabel)))):void 0}renderError(){if(this.errorMessage)return g("div",{id:this.errorId,class:"gux-toggle-error"},g("div",{class:"gux-toggle-error-container"},g("gux-icon",{"icon-name":"fa/hexagon-exclamation-regular",decorative:!0}),g("div",{class:"gux-toggle-error-message"},this.errorMessage)))}render(){return g(l,{key:"cef1633b4202b230995d9d2f2998506a080afbc6",class:{"gux-display-inline":this.displayInline}},g("div",{key:"b817cce5eed444f31dc16558c448a071101abb42",class:{"gux-toggle-container":!0,"gux-toggle-label-left":"left"===this.labelPosition,"gux-disabled":this.disabled||this.loading}},g("div",{key:"be56531795d1a5c5d60705bd3ee20e243ee725dd",class:"gux-toggle-input",onClick:this.toggle.bind(this)},g("gux-toggle-slider",{key:"26fb392765b4ce01d8c8e61eb82f5d10f2abaab3",checked:this.checked,disabled:this.disabled||this.loading,guxAriaLabel:this.getAriaLabel(),labelId:this.checkedLabel&&this.uncheckedLabel?this.labelId:"",onKeyDown:this.onKeydown.bind(this),errorId:this.errorMessage?this.errorId:""}),this.renderLabel()),this.renderError()),g("gux-announce-beta",{key:"ade05b674c5debdb6059d1ef6c70324b49545fc4",ref:e=>this.announceElement=e}))}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{loading:["handleLoading"]}}};n.style=':host{display:block;outline:none}:host(.gux-display-inline){display:inline-block}.gux-toggle-container.gux-disabled{pointer-events:none;cursor:default}.gux-toggle-container.gux-disabled .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{opacity:var(--gse-ui-toggle-disabled-opacity)}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input{flex-direction:row-reverse}.gux-toggle-container.gux-toggle-label-left .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{place-items:end}.gux-toggle-container.gux-toggle-label-left .gux-toggle-error{float:inline-end}.gux-toggle-container .gux-toggle-input{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;align-items:center;inline-size:fit-content;cursor:pointer}.gux-toggle-container .gux-toggle-input .gux-toggle-label{position:relative;display:inline-block}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text{display:grid;grid-template-areas:"inner-div";place-items:center start}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner{position:relative;grid-area:inner-div;font-family:var(--gse-ui-toggle-label-fontFamily);font-size:var(--gse-ui-toggle-label-fontSize);font-weight:var(--gse-ui-toggle-label-fontWeight);line-height:var(--gse-ui-toggle-label-lineHeight);color:var(--gse-ui-formControl-label-labelColor);word-wrap:break-word}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-text .gux-toggle-label-text-inner.gux-hidden{visibility:hidden}.gux-toggle-container .gux-toggle-input .gux-toggle-label .gux-toggle-label-loading{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch center;align-items:center}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toggle-gap);place-content:stretch flex-start;align-items:flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-size:var(--gse-ui-toggle-label-fontSize);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container gux-icon{flex:0 1 auto;align-self:auto;order:0;inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size);color:var(--gse-ui-formControl-helper-errorColor)}.gux-toggle-container .gux-toggle-error .gux-toggle-error-container .gux-toggle-error-message{flex:0 1 auto;align-self:auto;order:0}';export{n as gux_toggle}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,c as
|
1
|
+
import{r as e,c as a,h as t}from"./p-78cb19b9.js";const s=class{constructor(t){e(this,t),this.guxactivepanelchange=a(this,"guxactivepanelchange",7),this.tabId=void 0,this.active=!1}async guxSetActive(e){this.active=e}watchActivePanel(){!0===this.active&&this.guxactivepanelchange.emit(this.tabId)}render(){return t("div",{key:"616f158831fffcc9a96b301de1d7bbb58aa316b1",id:`gux-${this.tabId}-panel`,class:"gux-tabpanel",role:"tabpanel","aria-labelledby":`gux-${this.tabId}-tab`,tabIndex:0,hidden:!this.active,"aria-live":"assertive"},t("slot",{key:"ede830c67fd31cb9c7bfcd07c6179f740e2588ba"}))}static get watchers(){return{active:["watchActivePanel"]}}};s.style="gux-tab-advanced-panel .gux-tabpanel:focus{outline:none}gux-tab-advanced-panel .gux-tabpanel:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}";export{s as gux_tab_advanced_panel}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as s,H as e,g as i}from"./p-78cb19b9.js";import{t as r}from"./p-
|
1
|
+
import{r as t,h as s,H as e,g as i}from"./p-78cb19b9.js";import{t as r}from"./p-0740e2df.js";import{D as a,g as o}from"./p-17c48a40.js";import{u as h,d as p,a as m}from"./p-2319558c.js";import{g as n}from"./p-4b423804.js";import"./p-43af726d.js";import"./p-4202e9f2.js";const d=class{constructor(s){t(this,s),this.hasRegionalDatesCookie=!1,this.datetime=(new Date).toISOString(),this.format="short",this.timeZone=void 0}componentWillLoad(){r(this.root),h()?this.hasRegionalDatesCookie=!0:this.formatter=new a(n(this.root))}renderDate(){return this.hasRegionalDatesCookie?p(m(this.root),{dateStyle:this.format,timeZone:o(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatDate(new Date(this.datetime),this.format,{timeZone:o(this.timeZone)})}render(){return s(e,{key:"34a577a4ae435b5debd5f2d50b8443364b669445"},this.renderDate())}get root(){return i(this)}};export{d as gux_date_beta}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-78cb19b9.js";import{a as s,c as a,o as n,f as o,e as d,s as
|
1
|
+
import{r as t,c as e,h as i}from"./p-78cb19b9.js";import{a as s,c as a,o as n,f as o,e as d,s as p,h as c}from"./p-a2f2c0a9.js";const h=class{constructor(i){t(this,i),this.internalexpanded=e(this,"internalexpanded",7),this.internalcollapsed=e(this,"internalcollapsed",7),this.placement="bottom-start",this.expanded=!1,this.disabled=!1,this.offset=2,this.exceedTargetWidth=!1}runUpdatePosition(){this.cleanupUpdatePosition=s(this.targetElementContainer,this.popupElementContainer,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0})}updatePosition(){if(this.targetElementContainer&&this.popupElementContainer){const t=this.exceedTargetWidth;a(this.targetElementContainer,this.popupElementContainer,{strategy:"fixed",placement:this.placement,middleware:[n(this.offset),o(),d({apply({rects:e,elements:i}){Object.assign(i.floating.style,t?{minWidth:`${e.reference.width}px`}:{width:`${e.reference.width}px`,overflow:"hidden"})}}),p(),c()]}).then((({x:t,y:e,middlewareData:i})=>{const{referenceHidden:s}=i.hide;isNaN(t)||Object.assign(this.popupElementContainer.style,{left:`${t}px`}),isNaN(e)||Object.assign(this.popupElementContainer.style,{top:`${e}px`}),s?this.popupElementContainer.classList.add("gux-sr-only-clip"):this.popupElementContainer.classList.remove("gux-sr-only-clip")}))}}onExpandedChange(t){t?this.internalexpanded.emit():this.internalcollapsed.emit()}componentDidLoad(){this.expanded?this.runUpdatePosition():this.updatePosition()}componentDidUpdate(){this.expanded?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return i("div",{key:"86661e9a1ffebb0288baca4f7de135fbad546f94",class:{"gux-target-container":!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled.toString(),ref:t=>this.targetElementContainer=t},i("slot",{key:"1bebbdd4662c7936552ff386d546a2132e533cd7",name:"target"}),i("div",{key:"ea9d72d6a89cec3d8eec15414ba0983482091702",class:{"gux-popup-container":!0,"gux-expanded":this.expanded&&!this.disabled},ref:t=>this.popupElementContainer=t},i("slot",{key:"70d5b808259f11ad8e3930f1daf1773353dffbf2",name:"popup"})))}static get watchers(){return{expanded:["onExpandedChange"]}}};h.style=".gux-target-container.gux-disabled{pointer-events:none;cursor:default;opacity:0.5}.gux-popup-container{position:fixed;z-index:var(--gse-semantic-zIndex-popup);inline-size:max-content;visibility:hidden;background-color:var(--gse-ui-menu-backgroundColor)}.gux-popup-container.gux-expanded{visibility:visible}.gux-sr-only-clip:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{h as gux_popup}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,h as o,g as n}from"./p-78cb19b9.js";import{t as i}from"./p-
|
1
|
+
import{r as t,c as e,h as o,g as n}from"./p-78cb19b9.js";import{t as i}from"./p-0740e2df.js";import{b as r}from"./p-4b423804.js";import{a}from"./p-6b12dd16.js";import{f as s}from"./p-54822e3b.js";import"./p-4202e9f2.js";const u={eraseBtnAria:"Clear search text",navigateNextBtn:"Highlight next match",navigatePreviousBtn:"Highlight previous match",totalMatches:"{currentMatch, number} of {matchCount, number}",clear:"Clear"},c=class{constructor(o){t(this,o),this.guxcurrentmatchchanged=e(this,"guxcurrentmatchchanged",7),this.matchCount=0,this.currentMatch=0,this.disabled=void 0,this.value=void 0}async clear(){this.disabled||(this.matchCount=0,this.currentMatch=0,this.value="",this.resetInputSlottedElement(),this.emitCurrentMatchChanged(),this.inputSlottedElement.focus())}async componentWillLoad(){i(this.root),this.i18n=await r(this.root,u),this.inputSlottedElement=this.root.querySelector("input"),this.disabled=this.inputSlottedElement.disabled,this.value=this.inputSlottedElement.value,this.disabledObserver=a(this.inputSlottedElement,(t=>{this.disabled=t})),this.inputSlottedElement.addEventListener("input",(t=>this.onInput(t)))}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o("div",{key:"c13e18adcc7893bd09918918011f06a6c631b690",class:{"gux-content-search":!0,"gux-disabled":this.disabled},onClick:()=>s(this.inputSlottedElement)},o("div",{key:"9ba14b3d49298ebda817fb6d600dbad6dfa63713",class:"gux-search-icon"},o("gux-icon",{key:"2146014de1e824adcb11d8a0d61d12604c9b3206",size:"small",decorative:!0,"icon-name":"fa/magnifying-glass-regular"})),o("slot",{key:"ea3eb44b3235e9cfc0bb3f3afd7c0b3c81864332"}),this.getNavigationPanel())}getNavigationPanel(){if(this.showNavigationPanel()){const t=this.disableNavigationPanel();return o("div",{class:"gux-content-control-panel"},o("div",{class:{"gux-navigation-panel":!0,"gux-navigation-disabled":t},"aria-disabled":t.toString()},o("span",{class:{"gux-navigation-result":!0,"gux-navigation-result-disabled":t}},this.matchCountResult()),o("div",{class:"gux-navigation-buttons"},o("button",{type:"button",class:"gux-previous-button",title:this.i18n("navigatePreviousBtn"),"aria-label":this.i18n("navigatePreviousBtn"),onClick:()=>this.previousClick(),disabled:t},o("gux-icon",{decorative:!0,"icon-name":"fa/caret-up-solid",size:"small"})),o("button",{type:"button",class:"gux-next-button",title:this.i18n("navigateNextBtn"),"aria-label":this.i18n("navigateNextBtn"),onClick:()=>this.nextClick(),disabled:t},o("gux-icon",{decorative:!0,"icon-name":"fa/caret-down-solid",size:"small"}))),o("div",{class:"gux-navigation-divider"})),o("button",{class:"gux-clear-button",tabIndex:-1,type:"button",title:this.i18n("clear"),onClick:()=>{this.clear()},disabled:t},o("gux-icon",{"icon-name":"fa/xmark-large-regular",decorative:!0,size:"small"})))}return null}matchCountResult(){return this.i18n("totalMatches",{currentMatch:this.getNormalizedCurrentMatch(),matchCount:this.getNormalizedMatchCount()})}showNavigationPanel(){return""!==this.value}disableNavigationPanel(){return this.disabled||this.getNormalizedMatchCount()<=0}getNormalizedMatchCount(){return this.matchCount&&Number.isInteger(this.matchCount)&&this.matchCount>=0?Number(this.matchCount):0}getNormalizedCurrentMatch(){return this.currentMatch&&Number.isInteger(this.currentMatch)&&this.currentMatch>=0&&this.currentMatch<=this.getNormalizedMatchCount()&&this.getNormalizedMatchCount()>0?Number(this.currentMatch):0}resetInputSlottedElement(){this.inputSlottedElement.value="",this.inputSlottedElement.dispatchEvent(new InputEvent("input",{bubbles:!0,cancelable:!0})),this.inputSlottedElement.dispatchEvent(new InputEvent("change",{bubbles:!0}))}nextClick(){this.disableNavigationPanel()||(this.currentMatch=this.getNormalizedCurrentMatch()===this.getNormalizedMatchCount()?1:this.getNormalizedCurrentMatch()+1,this.emitCurrentMatchChanged())}previousClick(){this.disableNavigationPanel()||(this.currentMatch=1===this.getNormalizedCurrentMatch()||0===this.getNormalizedCurrentMatch()?this.getNormalizedMatchCount():this.getNormalizedCurrentMatch()-1,this.emitCurrentMatchChanged())}onInput(t){this.value=t.target.value}emitCurrentMatchChanged(){this.guxcurrentmatchchanged.emit(this.getNormalizedCurrentMatch())}get root(){return n(this)}};c.style=":host{display:inline-block;inline-size:var(--gse-ui-search-width);min-inline-size:var(--gse-ui-search-width)}::slotted(input[disabled]){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(input){box-sizing:border-box;flex-shrink:1;flex-basis:100%;inline-size:100%;overflow:hidden;font-family:var(--gse-ui-search-counter-text-fontFamily);font-size:var(--gse-ui-search-counter-text-fontSize);font-weight:var(--gse-ui-search-counter-text-fontWeight);line-height:var(--gse-ui-search-counter-text-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);text-overflow:ellipsis;white-space:nowrap;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:0;border-radius:0;outline:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-populatedColor)}::slotted(input).gux-focused,::slotted(input):focus,::slotted(input):focus-visible{border:0;outline:none;box-shadow:none}.gux-content-search{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-formControl-input-gap);inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-textarea-padding);cursor:text;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-content-search gux-truncate{display:flex;align-items:center}.gux-content-search.gux-disabled{pointer-events:none;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search:focus-visible,.gux-content-search:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-content-search:not(:disabled):not(.gux-disabled):hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-content-search .gux-search-icon{display:flex;flex-shrink:0;align-items:center}.gux-content-search .gux-search-icon:disabled{pointer-events:none;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search .gux-search-icon gux-icon{color:var(--gse-ui-formControl-input-inputIcon-defaultColor)}.gux-content-search .gux-content-control-panel{box-sizing:border-box;display:flex;flex-grow:1;flex-shrink:0;gap:var(--gse-ui-formControl-input-gap);place-content:center flex-end;align-items:center;padding:0}.gux-content-search .gux-content-control-panel button{display:block;align-items:center;block-size:var(--gse-ui-search-counter-icon-height);padding:0;overflow:hidden;color:var(--gse-ui-search-counter-default-foregroundColor);cursor:pointer;background:none;border:none;border-radius:var(--gse-ui-button-borderRadius);outline:none}.gux-content-search .gux-content-control-panel button:disabled{pointer-events:none;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search .gux-content-control-panel button:not(:disabled):hover,.gux-content-search .gux-content-control-panel button:not(:disabled):focus-visible{color:var(--gse-ui-search-counter-hover-foregroundColor)}.gux-content-search .gux-content-control-panel button:not(.gux-clear-button):focus-visible:enabled{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-content-search .gux-content-control-panel button.gux-clear-button{flex-shrink:0;align-items:center}.gux-content-search .gux-content-control-panel button.gux-clear-button gux-icon{inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}.gux-content-search .gux-content-control-panel .gux-navigation-disabled{pointer-events:auto;cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-content-search .gux-content-control-panel .gux-navigation-panel{display:flex;gap:var(--gse-ui-search-counter-gap);align-items:center}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-navigation-divider{box-sizing:border-box;align-self:center;block-size:var(--gse-ui-search-counter-divider-height);color:var(--gse-ui-search-counter-default-foregroundColor);border:var(--gse-ui-search-counter-divider-border-width) var(--gse-ui-search-counter-divider-border-style) var(--gse-ui-search-counter-divider-border-color)}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-navigation-buttons{display:flex;flex-direction:row}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-navigation-result{align-items:center;color:var(--gse-ui-search-counter-default-foregroundColor);white-space:nowrap}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-previous-button{flex-shrink:0;align-items:center}.gux-content-search .gux-content-control-panel .gux-navigation-panel .gux-next-button{flex-shrink:0;align-items:center}";export{c as gux_content_search}
|
@@ -4,4 +4,4 @@ import{r as t,c as i,d as n,w as e,h as o,g as r}from"./p-78cb19b9.js";import{O
|
|
4
4
|
* @author RubaXa <trash@rubaxa.org>
|
5
5
|
* @author owenm <owen23355@gmail.com>
|
6
6
|
* @license MIT
|
7
|
-
*/function h(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function f(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?h(Object(n),!0).forEach((function(i){v(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function v(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function b(){return b=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},b.apply(this,arguments)}function g(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var m=g(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=g(/Edge/i),w=g(/firefox/i),x=g(/safari/i)&&!g(/chrome/i)&&!g(/android/i),y=g(/iP(ad|od|hone)/i),E=g(/chrome/i)&&g(/android/i),S={capture:!1,passive:!1};function T(t,i,n){t.addEventListener(i,n,!m&&S)}function O(t,i,n){t.removeEventListener(i,n,!m&&S)}function k(t,i){if(i){if(">"===i[0]&&(i=i.substring(1)),t)try{if(t.matches)return t.matches(i);if(t.msMatchesSelector)return t.msMatchesSelector(i);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(i)}catch(t){return!1}return!1}}function M(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function I(t,i,n,e){if(t){n=n||document;do{if(null!=i&&(">"===i[0]?t.parentNode===n&&k(t,i):k(t,i))||e&&t===n)return t;if(t===n)break}while(t=M(t))}return null}var j,A=/\s+/g;function C(t,i,n){if(t&&i)if(t.classList)t.classList[n?"add":"remove"](i);else{var e=(" "+t.className+" ").replace(A," ").replace(" "+i+" "," ");t.className=(e+(n?" "+i:"")).replace(A," ")}}function D(t,i,n){var e=t&&t.style;if(e){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===i?n:n[i];i in e||-1!==i.indexOf("webkit")||(i="-webkit-"+i),e[i]=n+("string"==typeof n?"":"px")}}function _(t,i){var n="";if("string"==typeof t)n=t;else do{var e=D(t,"transform");e&&"none"!==e&&(n=e+" "+n)}while(!i&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function z(t,i,n){if(t){var e=t.getElementsByTagName(i),o=0,r=e.length;if(n)for(;o<r;o++)n(e[o],o);return e}return[]}function L(){return document.scrollingElement||document.documentElement}function N(t,i,n,e,o){if(t.getBoundingClientRect||t===window){var r,s,a,u,l,c,h;if(t!==window&&t.parentNode&&t!==L()?(s=(r=t.getBoundingClientRect()).top,a=r.left,u=r.bottom,l=r.right,c=r.height,h=r.width):(s=0,a=0,u=window.innerHeight,l=window.innerWidth,c=window.innerHeight,h=window.innerWidth),(i||n)&&t!==window&&(o=o||t.parentNode,!m))do{if(o&&o.getBoundingClientRect&&("none"!==D(o,"transform")||n&&"static"!==D(o,"position"))){var f=o.getBoundingClientRect();s-=f.top+parseInt(D(o,"border-top-width")),a-=f.left+parseInt(D(o,"border-left-width")),u=s+r.height,l=a+r.width;break}}while(o=o.parentNode);if(e&&t!==window){var d=_(o||t),v=d&&d.a,b=d&&d.d;d&&(u=(s/=b)+(c/=b),l=(a/=v)+(h/=v))}return{top:s,left:a,bottom:u,right:l,width:h,height:c}}}function R(t,i,n){for(var e=G(t,!0),o=N(t)[i];e;){var r=N(e)[n];if(!("top"===n||"left"===n?o>=r:o<=r))return e;if(e===L())break;e=G(e,!1)}return!1}function F(t,i,n,e){for(var o=0,r=0,s=t.children;r<s.length;){if("none"!==s[r].style.display&&s[r]!==Ut.ghost&&(e||s[r]!==Ut.dragged)&&I(s[r],n.draggable,t,!1)){if(o===i)return s[r];o++}r++}return null}function B(t,i){for(var n=t.lastElementChild;n&&(n===Ut.ghost||"none"===D(n,"display")||i&&!k(n,i));)n=n.previousElementSibling;return n||null}function H(t,i){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ut.clone||i&&!k(t,i)||n++;return n}function P(t){var i=0,n=0,e=L();if(t)do{var o=_(t);i+=t.scrollLeft*o.a,n+=t.scrollTop*o.d}while(t!==e&&(t=t.parentNode));return[i,n]}function G(t,i){if(!t||!t.getBoundingClientRect)return L();var n=t,e=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(e||i)return n;e=!0}}}while(n=n.parentNode);return L()}function W(t,i){return Math.round(t.top)===Math.round(i.top)&&Math.round(t.left)===Math.round(i.left)&&Math.round(t.height)===Math.round(i.height)&&Math.round(t.width)===Math.round(i.width)}function K(t,i){return function(){if(!j){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),j=setTimeout((function(){j=void 0}),i)}}}function U(t,i,n){t.scrollLeft+=i,t.scrollTop+=n}function X(t){var i=window.Polymer,n=window.jQuery||window.Zepto;return i&&i.dom?i.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function Y(t,i,n){var e={};return Array.from(t.children).forEach((function(o){var r,s,a,u;if(I(o,i.draggable,t,!1)&&!o.animated&&o!==n){var l=N(o);e.left=Math.min(null!==(r=e.left)&&void 0!==r?r:1/0,l.left),e.top=Math.min(null!==(s=e.top)&&void 0!==s?s:1/0,l.top),e.right=Math.max(null!==(a=e.right)&&void 0!==a?a:-1/0,l.right),e.bottom=Math.max(null!==(u=e.bottom)&&void 0!==u?u:-1/0,l.bottom)}})),e.width=e.right-e.left,e.height=e.bottom-e.top,e.x=e.left,e.y=e.top,e}var $="Sortable"+(new Date).getTime();var V=[],Z={initializeByDefault:!0},q={mount:function(t){for(var i in Z)Z.hasOwnProperty(i)&&!(i in t)&&(t[i]=Z[i]);V.forEach((function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),V.push(t)},pluginEvent:function(t,i,n){var e=this;this.eventCanceled=!1,n.cancel=function(){e.eventCanceled=!0};var o=t+"Global";V.forEach((function(e){i[e.pluginName]&&(i[e.pluginName][o]&&i[e.pluginName][o](f({sortable:i},n)),i.options[e.pluginName]&&i[e.pluginName][t]&&i[e.pluginName][t](f({sortable:i},n)))}))},initializePlugins:function(t,i,n){for(var e in V.forEach((function(e){var o=e.pluginName;if(t.options[o]||e.initializeByDefault){var r=new e(t,i,t.options);r.sortable=t,r.options=t.options,t[o]=r,b(n,r.defaults)}})),t.options)if(t.options.hasOwnProperty(e)){var o=this.modifyOption(t,e,t.options[e]);void 0!==o&&(t.options[e]=o)}},getEventProperties:function(t,i){var n={};return V.forEach((function(e){"function"==typeof e.eventProperties&&b(n,e.eventProperties.call(i[e.pluginName],t))})),n},modifyOption:function(t,i,n){var e;return V.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[i]&&(e=o.optionListeners[i].call(t[o.pluginName],n))})),e}},J=["evt"],Q=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=n.evt,o=function(t,i){if(null==t)return{};var n,e,o=function(t,i){if(null==t)return{};var n,e,o={},r=Object.keys(t);for(e=0;e<r.length;e++)i.indexOf(n=r[e])>=0||(o[n]=t[n]);return o}(t,i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(e=0;e<r.length;e++)i.indexOf(n=r[e])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(n,J);q.pluginEvent.bind(Ut)(t,i,f({dragEl:it,parentEl:nt,ghostEl:et,rootEl:ot,nextEl:rt,lastDownEl:st,cloneEl:at,cloneHidden:ut,dragStarted:yt,putSortable:vt,activeSortable:Ut.active,originalEvent:e,oldIndex:lt,oldDraggableIndex:ht,newIndex:ct,newDraggableIndex:ft,hideGhostForTarget:Pt,unhideGhostForTarget:Gt,cloneNowHidden:function(){ut=!0},cloneNowShown:function(){ut=!1},dispatchSortableEvent:function(t){tt({sortable:i,name:t,originalEvent:e})}},o))};function tt(t){!function(t){var i=t.sortable,n=t.rootEl,e=t.name,o=t.targetEl,r=t.cloneEl,s=t.toEl,a=t.fromEl,u=t.oldIndex,l=t.newIndex,c=t.oldDraggableIndex,h=t.newDraggableIndex,d=t.originalEvent,v=t.putSortable,b=t.extraEventProperties;if(i=i||n&&n[$]){var g,w=i.options,x="on"+e.charAt(0).toUpperCase()+e.substr(1);!window.CustomEvent||m||p?(g=document.createEvent("Event")).initEvent(e,!0,!0):g=new CustomEvent(e,{bubbles:!0,cancelable:!0}),g.to=s||n,g.from=a||n,g.item=o||n,g.clone=r,g.oldIndex=u,g.newIndex=l,g.oldDraggableIndex=c,g.newDraggableIndex=h,g.originalEvent=d,g.pullMode=v?v.lastPutMode:void 0;var y=f(f({},b),q.getEventProperties(e,i));for(var E in y)g[E]=y[E];n&&n.dispatchEvent(g),w[x]&&w[x].call(i,g)}}(f({putSortable:vt,cloneEl:at,targetEl:it,rootEl:ot,oldIndex:lt,oldDraggableIndex:ht,newIndex:ct,newDraggableIndex:ft},t))}var it,nt,et,ot,rt,st,at,ut,lt,ct,ht,ft,dt,vt,bt,gt,mt,pt,wt,xt,yt,Et,St,Tt,Ot,kt=!1,Mt=!1,It=[],jt=!1,At=!1,Ct=[],Dt=!1,_t=[],zt="undefined"!=typeof document,Lt=y,Nt=p||m?"cssFloat":"float",Rt=zt&&!E&&!y&&"draggable"in document.createElement("div"),Ft=function(){if(zt){if(m)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Bt=function(t,i){var n=D(t),e=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=F(t,0,i),r=F(t,1,i),s=o&&D(o),a=r&&D(r),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+N(o).width,l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+N(r).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&s.float&&"none"!==s.float?!r||"both"!==a.clear&&a.clear!==("left"===s.float?"left":"right")?"horizontal":"vertical":o&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||u>=e&&"none"===n[Nt]||r&&"none"===n[Nt]&&u+l>e)?"vertical":"horizontal"},Ht=function(t){function i(t,n){return function(e,o,r,s){if(null==t&&(n||e.options.group.name&&o.options.group.name&&e.options.group.name===o.options.group.name))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return i(t(e,o,r,s),n)(e,o,r,s);var a=(n?e:o).options.group.name;return!0===t||"string"==typeof t&&t===a||t.join&&t.indexOf(a)>-1}}var n={},e=t.group;e&&"object"==d(e)||(e={name:e}),n.name=e.name,n.checkPull=i(e.pull,!0),n.checkPut=i(e.put),n.revertClone=e.revertClone,t.group=n},Pt=function(){!Ft&&et&&D(et,"display","none")},Gt=function(){!Ft&&et&&D(et,"display","")};zt&&!E&&document.addEventListener("click",(function(t){if(Mt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Mt=!1,!1}),!0);var Wt=function(t){if(it){var i=(o=(t=t.touches?t.touches[0]:t).clientX,r=t.clientY,It.some((function(t){var i=t[$].options.emptyInsertThreshold;if(i&&!B(t)){var n=N(t);return o>=n.left-i&&o<=n.right+i&&r>=n.top-i&&r<=n.bottom+i?s=t:void 0}})),s);if(i){var n={};for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[$]._onDragOver(n)}}var o,r,s},Kt=function(t){it&&it.parentNode[$]._isOutsideThisEl(t.target)};function Ut(t,i){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=i=b({},i),t[$]=this;var n,e,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Bt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,i){t.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ut.supportPointer&&"PointerEvent"in window&&(!x||y),emptyInsertThreshold:5};for(var r in q.initializePlugins(this,t,o),o)!(r in i)&&(i[r]=o[r]);for(var s in Ht(i),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!i.forceFallback&&Rt,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?T(t,"pointerdown",this._onTapStart):(T(t,"mousedown",this._onTapStart),T(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(T(t,"dragover",this),T(t,"dragenter",this)),It.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),b(this,(e=[],{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==D(t,"display")&&t!==Ut.ghost){e.push({target:t,rect:N(t)});var i=f({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=_(t,!0);n&&(i.top-=n.f,i.left-=n.e)}t.fromRect=i}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,i){for(var n in t)if(t.hasOwnProperty(n))for(var e in i)if(i.hasOwnProperty(e)&&i[e]===t[n][e])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(t){var i=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof t&&t());var o=!1,r=0;e.forEach((function(t){var n=0,e=t.target,s=e.fromRect,a=N(e),u=e.prevFromRect,l=e.prevToRect,c=t.rect,h=_(e,!0);h&&(a.top-=h.f,a.left-=h.e),e.toRect=a,e.thisAnimationDuration&&W(u,a)&&!W(s,a)&&(c.top-a.top)/(c.left-a.left)==(s.top-a.top)/(s.left-a.left)&&(n=function(t,i,n,e){return Math.sqrt(Math.pow(i.top-t.top,2)+Math.pow(i.left-t.left,2))/Math.sqrt(Math.pow(i.top-n.top,2)+Math.pow(i.left-n.left,2))*e.animation}(c,u,l,i.options)),W(a,s)||(e.prevFromRect=s,e.prevToRect=a,n||(n=i.options.animation),i.animate(e,c,a,n)),n&&(o=!0,r=Math.max(r,n),clearTimeout(e.animationResetTimer),e.animationResetTimer=setTimeout((function(){e.animationTime=0,e.prevFromRect=null,e.fromRect=null,e.prevToRect=null,e.thisAnimationDuration=null}),n),e.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof t&&t()}),r):"function"==typeof t&&t(),e=[]},animate:function(t,i,n,e){if(e){D(t,"transition",""),D(t,"transform","");var o=_(this.el),r=(i.left-n.left)/(o&&o.a||1),s=(i.top-n.top)/(o&&o.d||1);t.animatingX=!!r,t.animatingY=!!s,D(t,"transform","translate3d("+r+"px,"+s+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),D(t,"transition","transform "+e+"ms"+(this.options.easing?" "+this.options.easing:"")),D(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){D(t,"transition",""),D(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),e)}}}))}function Xt(t,i,n,e,o,r,s,a){var u,l,c=t[$],h=c.options.onMove;return!window.CustomEvent||m||p?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=i,u.from=t,u.dragged=n,u.draggedRect=e,u.related=o||i,u.relatedRect=r||N(i),u.willInsertAfter=a,u.originalEvent=s,t.dispatchEvent(u),h&&(l=h.call(c,u,s)),l}function Yt(t){t.draggable=!1}function $t(){Dt=!1}function Vt(t){for(var i=t.tagName+t.className+t.src+t.href+t.textContent,n=i.length,e=0;n--;)e+=i.charCodeAt(n);return e.toString(36)}function Zt(t){return setTimeout(t,0)}function qt(t){return clearTimeout(t)}Ut.prototype={constructor:Ut,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Et=null)},_getDirection:function(t,i){return"function"==typeof this.options.direction?this.options.direction.call(this,t,i,it):this.options.direction},_onTapStart:function(t){if(t.cancelable){var i=this,n=this.el,e=this.options,o=e.preventOnFilter,r=t.type,s=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,l=e.filter;if(function(t){_t.length=0;for(var i=t.getElementsByTagName("input"),n=i.length;n--;){var e=i[n];e.checked&&_t.push(e)}}(n),!it&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||e.disabled)&&!u.isContentEditable&&(this.nativeDraggable||!x||!a||"SELECT"!==a.tagName.toUpperCase())&&!((a=I(a,e.draggable,n,!1))&&a.animated||st===a)){if(lt=H(a),ht=H(a,e.draggable),"function"==typeof l){if(l.call(this,t,a,this))return tt({sortable:i,rootEl:u,name:"filter",targetEl:a,toEl:n,fromEl:n}),Q("filter",i,{evt:t}),void(o&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(e){if(e=I(u,e.trim(),n,!1))return tt({sortable:i,rootEl:e,name:"filter",targetEl:a,fromEl:n,toEl:n}),Q("filter",i,{evt:t}),!0}))))return void(o&&t.preventDefault());e.handle&&!I(u,e.handle,n,!1)||this._prepareDragStart(t,s,a)}}},_prepareDragStart:function(t,i,n){var e,o=this,r=o.el,s=o.options,a=r.ownerDocument;if(n&&!it&&n.parentNode===r){var u=N(n);if(ot=r,nt=(it=n).parentNode,rt=it.nextSibling,st=n,dt=s.group,Ut.dragged=it,wt=(bt={target:it,clientX:(i||t).clientX,clientY:(i||t).clientY}).clientX-u.left,xt=bt.clientY-u.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,it.style["will-change"]="all",e=function(){Q("delayEnded",o,{evt:t}),Ut.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!w&&o.nativeDraggable&&(it.draggable=!0),o._triggerDragStart(t,i),tt({sortable:o,name:"choose",originalEvent:t}),C(it,s.chosenClass,!0))},s.ignore.split(",").forEach((function(t){z(it,t.trim(),Yt)})),T(a,"dragover",Wt),T(a,"mousemove",Wt),T(a,"touchmove",Wt),s.supportPointer?(T(a,"pointerup",o._onDrop),!this.nativeDraggable&&T(a,"pointercancel",o._onDrop)):(T(a,"mouseup",o._onDrop),T(a,"touchend",o._onDrop),T(a,"touchcancel",o._onDrop)),w&&this.nativeDraggable&&(this.options.touchStartThreshold=4,it.draggable=!0),Q("delayStart",this,{evt:t}),!s.delay||s.delayOnTouchOnly&&!i||this.nativeDraggable&&(p||m))e();else{if(Ut.eventCanceled)return void this._onDrop();s.supportPointer?(T(a,"pointerup",o._disableDelayedDrag),T(a,"pointercancel",o._disableDelayedDrag)):(T(a,"mouseup",o._disableDelayedDrag),T(a,"touchend",o._disableDelayedDrag),T(a,"touchcancel",o._disableDelayedDrag)),T(a,"mousemove",o._delayedDragTouchMoveHandler),T(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&T(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(e,s.delay)}}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){it&&Yt(it),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;O(t,"mouseup",this._disableDelayedDrag),O(t,"touchend",this._disableDelayedDrag),O(t,"touchcancel",this._disableDelayedDrag),O(t,"pointerup",this._disableDelayedDrag),O(t,"pointercancel",this._disableDelayedDrag),O(t,"mousemove",this._delayedDragTouchMoveHandler),O(t,"touchmove",this._delayedDragTouchMoveHandler),O(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||"touch"==t.pointerType&&t,!this.nativeDraggable||i?T(document,this.options.supportPointer?"pointermove":i?"touchmove":"mousemove",this._onTouchMove):(T(it,"dragend",this),T(ot,"dragstart",this._onDragStart));try{document.selection?Zt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,i){if(kt=!1,ot&&it){Q("dragStarted",this,{evt:i}),this.nativeDraggable&&T(document,"dragover",Kt);var n=this.options;!t&&C(it,n.dragClass,!1),C(it,n.ghostClass,!0),Ut.active=this,t&&this._appendGhost(),tt({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(gt){this._lastX=gt.clientX,this._lastY=gt.clientY,Pt();for(var t=document.elementFromPoint(gt.clientX,gt.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(gt.clientX,gt.clientY))!==i;)i=t;if(it.parentNode[$]._isOutsideThisEl(t),i)do{if(i[$]&&i[$]._onDragOver({clientX:gt.clientX,clientY:gt.clientY,target:t,rootEl:i})&&!this.options.dragoverBubble)break;t=i}while(i=M(i));Gt()}},_onTouchMove:function(t){if(bt){var i=this.options,n=i.fallbackTolerance,e=i.fallbackOffset,o=t.touches?t.touches[0]:t,r=et&&_(et,!0),s=et&&r&&r.a,a=et&&r&&r.d,u=Lt&&Ot&&P(Ot),l=(o.clientX-bt.clientX+e.x)/(s||1)+(u?u[0]-Ct[0]:0)/(s||1),c=(o.clientY-bt.clientY+e.y)/(a||1)+(u?u[1]-Ct[1]:0)/(a||1);if(!Ut.active&&!kt){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(et){r?(r.e+=l-(mt||0),r.f+=c-(pt||0)):r={a:1,b:0,c:0,d:1,e:l,f:c};var h="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");D(et,"webkitTransform",h),D(et,"mozTransform",h),D(et,"msTransform",h),D(et,"transform",h),mt=l,pt=c,gt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!et){var t=this.options.fallbackOnBody?document.body:ot,i=N(it,!0,Lt,!0,t),n=this.options;if(Lt){for(Ot=t;"static"===D(Ot,"position")&&"none"===D(Ot,"transform")&&Ot!==document;)Ot=Ot.parentNode;Ot!==document.body&&Ot!==document.documentElement?(Ot===document&&(Ot=L()),i.top+=Ot.scrollTop,i.left+=Ot.scrollLeft):Ot=L(),Ct=P(Ot)}C(et=it.cloneNode(!0),n.ghostClass,!1),C(et,n.fallbackClass,!0),C(et,n.dragClass,!0),D(et,"transition",""),D(et,"transform",""),D(et,"box-sizing","border-box"),D(et,"margin",0),D(et,"top",i.top),D(et,"left",i.left),D(et,"width",i.width),D(et,"height",i.height),D(et,"opacity","0.8"),D(et,"position",Lt?"absolute":"fixed"),D(et,"zIndex","100000"),D(et,"pointerEvents","none"),Ut.ghost=et,t.appendChild(et),D(et,"transform-origin",wt/parseInt(et.style.width)*100+"% "+xt/parseInt(et.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,e=t.dataTransfer,o=n.options;Q("dragStart",this,{evt:t}),Ut.eventCanceled?this._onDrop():(Q("setupClone",this),Ut.eventCanceled||((at=X(it)).removeAttribute("id"),at.draggable=!1,at.style["will-change"]="",this._hideClone(),C(at,this.options.chosenClass,!1),Ut.clone=at),n.cloneId=Zt((function(){Q("clone",n),Ut.eventCanceled||(n.options.removeCloneOnHide||ot.insertBefore(at,it),n._hideClone(),tt({sortable:n,name:"clone"}))})),!i&&C(it,o.dragClass,!0),i?(Mt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(O(document,"mouseup",n._onDrop),O(document,"touchend",n._onDrop),O(document,"touchcancel",n._onDrop),e&&(e.effectAllowed="move",o.setData&&o.setData.call(n,e,it)),T(document,"drop",n),D(it,"transform","translateZ(0)")),kt=!0,n._dragStartId=Zt(n._dragStarted.bind(n,i,t)),T(document,"selectstart",n),yt=!0,window.getSelection().removeAllRanges(),x&&D(document.body,"user-select","none"))},_onDragOver:function(t){var i,n,e,o,r=this.el,s=t.target,a=this.options,u=a.group,l=Ut.active,c=dt===u,h=a.sort,d=vt||l,v=this,b=!1;if(!Dt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=I(s,a.draggable,r,!0),_("dragOver"),Ut.eventCanceled)return b;if(it.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||v._ignoreWhileAnimating===s)return L(!1);if(Mt=!1,l&&!a.disabled&&(c?h||(e=nt!==ot):vt===this||(this.lastPutMode=dt.checkPull(this,l,it,t))&&u.checkPut(this,l,it,t))){if(o="vertical"===this._getDirection(t,s),i=N(it),_("dragOverValid"),Ut.eventCanceled)return b;if(e)return nt=ot,z(),this._hideClone(),_("revert"),Ut.eventCanceled||(rt?ot.insertBefore(it,rt):ot.appendChild(it)),L(!0);var g=B(r,a.draggable);if(!g||function(t,i,n){var e=N(B(n.el,n.options.draggable)),o=Y(n.el,n.options,et);return i?t.clientX>o.right+10||t.clientY>e.bottom&&t.clientX>e.left:t.clientY>o.bottom+10||t.clientX>e.right&&t.clientY>e.top}(t,o,this)&&!g.animated){if(g===it)return L(!1);if(g&&r===t.target&&(s=g),s&&(n=N(s)),!1!==Xt(ot,r,it,i,s,n,t,!!s))return z(),g&&g.nextSibling?r.insertBefore(it,g.nextSibling):r.appendChild(it),nt=r,P(),L(!0)}else if(g&&function(t,i,n){var e=N(F(n.el,0,n.options,!0)),o=Y(n.el,n.options,et);return i?t.clientX<o.left-10||t.clientY<e.top&&t.clientX<e.right:t.clientY<o.top-10||t.clientY<e.bottom&&t.clientX<e.left}(t,o,this)){var m=F(r,0,a,!0);if(m===it)return L(!1);if(n=N(s=m),!1!==Xt(ot,r,it,i,s,n,t,!1))return z(),r.insertBefore(it,m),nt=r,P(),L(!0)}else if(s.parentNode===r){n=N(s);var p,w,x,y=it.parentNode!==r,E=!function(t,i,n){var e=n?t.left:t.top,o=n?i.left:i.top;return e===o||(n?t.right:t.bottom)===(n?i.right:i.bottom)||e+(n?t.width:t.height)/2===o+(n?i.width:i.height)/2}(it.animated&&it.toRect||i,s.animated&&s.toRect||n,o),S=o?"top":"left",T=R(s,"top","top")||R(it,"top","top"),O=T?T.scrollTop:void 0;if(Et!==s&&(w=n[S],jt=!1,At=!E&&a.invertSwap||y),p=function(t,i,n,e,o,r,s,a){var u=e?t.clientY:t.clientX,l=e?n.height:n.width,c=e?n.top:n.left,h=e?n.bottom:n.right,f=!1;if(!s)if(a&&Tt<l*o){if(!jt&&(1===St?u>c+l*r/2:u<h-l*r/2)&&(jt=!0),jt)f=!0;else if(1===St?u<c+Tt:u>h-Tt)return-St}else if(u>c+l*(1-o)/2&&u<h-l*(1-o)/2)return function(t){return H(it)<H(t)?1:-1}(i);return(f=f||s)&&(u<c+l*r/2||u>h-l*r/2)?u>c+l/2?1:-1:0}(t,s,n,o,E?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,At,Et===s),0!==p){var k=H(it);do{x=nt.children[k-=p]}while(x&&("none"===D(x,"display")||x===et))}if(0===p||x===s)return L(!1);Et=s,St=p;var M=s.nextElementSibling,j=!1,A=Xt(ot,r,it,i,s,n,t,j=1===p);if(!1!==A)return 1!==A&&-1!==A||(j=1===A),Dt=!0,setTimeout($t,30),z(),j&&!M?r.appendChild(it):s.parentNode.insertBefore(it,j?M:s),T&&U(T,0,O-T.scrollTop),nt=it.parentNode,void 0===w||At||(Tt=Math.abs(w-N(s)[S])),P(),L(!0)}if(r.contains(it))return L(!1)}return!1}function _(a,u){Q(a,v,f({evt:t,isOwner:c,axis:o?"vertical":"horizontal",revert:e,dragRect:i,targetRect:n,canSort:h,fromSortable:d,target:s,completed:L,onMove:function(n,e){return Xt(ot,r,it,i,n,N(n),t,e)},changed:P},u))}function z(){_("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function L(i){return _("dragOverCompleted",{insertion:i}),i&&(c?l._hideClone():l._showClone(v),v!==d&&(C(it,vt?vt.options.ghostClass:l.options.ghostClass,!1),C(it,a.ghostClass,!0)),vt!==v&&v!==Ut.active?vt=v:v===Ut.active&&vt&&(vt=null),d===v&&(v._ignoreWhileAnimating=s),v.animateAll((function(){_("dragOverAnimationComplete"),v._ignoreWhileAnimating=null})),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(s===it&&!it.animated||s===r&&!s.animated)&&(Et=null),a.dragoverBubble||t.rootEl||s===document||(it.parentNode[$]._isOutsideThisEl(t.target),!i&&Wt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function P(){ct=H(it),ft=H(it,a.draggable),tt({sortable:v,name:"change",toEl:r,newIndex:ct,newDraggableIndex:ft,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",Wt),O(document,"mousemove",Wt),O(document,"touchmove",Wt)},_offUpEvents:function(){var t=this.el.ownerDocument;O(t,"mouseup",this._onDrop),O(t,"touchend",this._onDrop),O(t,"pointerup",this._onDrop),O(t,"pointercancel",this._onDrop),O(t,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(t){var i=this.el,n=this.options;ct=H(it),ft=H(it,n.draggable),Q("drop",this,{evt:t}),nt=it&&it.parentNode,ct=H(it),ft=H(it,n.draggable),Ut.eventCanceled||(kt=!1,At=!1,jt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qt(this.cloneId),qt(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),x&&D(document.body,"user-select",""),D(it,"transform",""),t&&(yt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),et&&et.parentNode&&et.parentNode.removeChild(et),(ot===nt||vt&&"clone"!==vt.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),it&&(this.nativeDraggable&&O(it,"dragend",this),Yt(it),it.style["will-change"]="",yt&&!kt&&C(it,vt?vt.options.ghostClass:this.options.ghostClass,!1),C(it,this.options.chosenClass,!1),tt({sortable:this,name:"unchoose",toEl:nt,newIndex:null,newDraggableIndex:null,originalEvent:t}),ot!==nt?(ct>=0&&(tt({rootEl:nt,name:"add",toEl:nt,fromEl:ot,originalEvent:t}),tt({sortable:this,name:"remove",toEl:nt,originalEvent:t}),tt({rootEl:nt,name:"sort",toEl:nt,fromEl:ot,originalEvent:t}),tt({sortable:this,name:"sort",toEl:nt,originalEvent:t})),vt&&vt.save()):ct!==lt&&ct>=0&&(tt({sortable:this,name:"update",toEl:nt,originalEvent:t}),tt({sortable:this,name:"sort",toEl:nt,originalEvent:t})),Ut.active&&(null!=ct&&-1!==ct||(ct=lt,ft=ht),tt({sortable:this,name:"end",toEl:nt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Q("nulling",this),ot=it=nt=et=rt=at=st=ut=bt=gt=yt=ct=ft=lt=ht=Et=St=vt=dt=Ut.dragged=Ut.ghost=Ut.clone=Ut.active=null,_t.forEach((function(t){t.checked=!0})),_t.length=mt=pt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":it&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,i=[],n=this.el.children,e=0,o=n.length,r=this.options;e<o;e++)I(t=n[e],r.draggable,this.el,!1)&&i.push(t.getAttribute(r.dataIdAttr)||Vt(t));return i},sort:function(t,i){var n={},e=this.el;this.toArray().forEach((function(t,i){var o=e.children[i];I(o,this.options.draggable,e,!1)&&(n[t]=o)}),this),i&&this.captureAnimationState(),t.forEach((function(t){n[t]&&(e.removeChild(n[t]),e.appendChild(n[t]))})),i&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return I(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var n=this.options;if(void 0===i)return n[t];var e=q.modifyOption(this,t,i);n[t]=void 0!==e?e:i,"group"===t&&Ht(n)},destroy:function(){Q("destroy",this);var t=this.el;t[$]=null,O(t,"mousedown",this._onTapStart),O(t,"touchstart",this._onTapStart),O(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(t,"dragover",this),O(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),It.splice(It.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ut){if(Q("hideClone",this),Ut.eventCanceled)return;D(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),ut=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ut){if(Q("showClone",this),Ut.eventCanceled)return;it.parentNode!=ot||this.options.group.revertClone?rt?ot.insertBefore(at,rt):ot.appendChild(at):ot.insertBefore(at,it),this.options.group.revertClone&&this.animate(it,at),D(at,"display",""),ut=!1}}else this._hideClone()}},zt&&T(document,"touchmove",(function(t){(Ut.active||kt)&&t.cancelable&&t.preventDefault()})),Ut.utils={on:T,off:O,css:D,find:z,is:function(t,i){return!!I(t,i,t,!1)},extend:function(t,i){if(t&&i)for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n]);return t},throttle:K,closest:I,toggleClass:C,clone:X,index:H,nextTick:Zt,cancelNextTick:qt,detectDirection:Bt,getChild:F,expando:$},Ut.get=function(t){return t[$]},Ut.mount=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];i[0].constructor===Array&&(i=i[0]),i.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ut.utils=f(f({},Ut.utils),t.utils)),q.mount(t)}))},Ut.create=function(t,i){return new Ut(t,i)},Ut.version="1.15.6";var Jt,Qt,ti,ii,ni,ei,oi=[],ri=!1;function si(){oi.forEach((function(t){clearInterval(t.pid)})),oi=[]}function ai(){clearInterval(ei)}var ui=K((function(t,i,n,e){if(i.scroll){var o,r=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,a=i.scrollSensitivity,u=i.scrollSpeed,l=L(),c=!1;Qt!==n&&(Qt=n,si(),o=i.scrollFn,!0===(Jt=i.scroll)&&(Jt=G(n,!0)));var h=0,f=Jt;do{var d=f,v=N(d),b=v.top,g=v.bottom,m=v.left,p=v.right,w=v.width,x=v.height,y=void 0,E=void 0,S=d.scrollWidth,T=d.scrollHeight,O=D(d),k=d.scrollLeft,M=d.scrollTop;d===l?(y=w<S&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),E=x<T&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(y=w<S&&("auto"===O.overflowX||"scroll"===O.overflowX),E=x<T&&("auto"===O.overflowY||"scroll"===O.overflowY));var I=y&&(Math.abs(p-r)<=a&&k+w<S)-(Math.abs(m-r)<=a&&!!k),j=E&&(Math.abs(g-s)<=a&&M+x<T)-(Math.abs(b-s)<=a&&!!M);if(!oi[h])for(var A=0;A<=h;A++)oi[A]||(oi[A]={});oi[h].vx==I&&oi[h].vy==j&&oi[h].el===d||(oi[h].el=d,oi[h].vx=I,oi[h].vy=j,clearInterval(oi[h].pid),0==I&&0==j||(c=!0,oi[h].pid=setInterval(function(){e&&0===this.layer&&Ut.active._onTouchMove(ni);var i=oi[this.layer].vy?oi[this.layer].vy*u:0,n=oi[this.layer].vx?oi[this.layer].vx*u:0;"function"==typeof o&&"continue"!==o.call(Ut.dragged.parentNode[$],n,i,t,ni,oi[this.layer].el)||U(oi[this.layer].el,n,i)}.bind({layer:h}),24))),h++}while(i.bubbleScroll&&f!==l&&(f=G(f,!1)));ri=c}}),30),li=function(t){var i=t.originalEvent,n=t.putSortable,e=t.dragEl,o=t.dispatchSortableEvent,r=t.unhideGhostForTarget;if(i){var s=n||t.activeSortable;(0,t.hideGhostForTarget)();var a=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,u=document.elementFromPoint(a.clientX,a.clientY);r(),s&&!s.el.contains(u)&&(o("spill"),this.onSpill({dragEl:e,putSortable:n}))}};function ci(){}function hi(){}ci.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var i=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var e=F(this.sortable.el,this.startIndex,this.options);e?this.sortable.el.insertBefore(i,e):this.sortable.el.appendChild(i),this.sortable.animateAll(),n&&n.animateAll()},drop:li},b(ci,{pluginName:"revertOnSpill"}),hi.prototype={onSpill:function(t){var i=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),n.animateAll()},drop:li},b(hi,{pluginName:"removeOnSpill"}),Ut.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var i=t.originalEvent;this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):T(document,this.options.supportPointer?"pointermove":i.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var i=t.originalEvent;this.options.dragOverBubble||i.rootEl||this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),ai(),si(),clearTimeout(j),j=void 0},nulling:function(){ni=Qt=Jt=ri=ei=ti=ii=null,oi.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,i){var n=this,e=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(e,o);if(ni=t,i||this.options.forceAutoScrollFallback||p||m||x){ui(t,this.options,r,i);var s=G(r,!0);!ri||ei&&e===ti&&o===ii||(ei&&ai(),ei=setInterval((function(){var r=G(document.elementFromPoint(e,o),!0);r!==s&&(s=r,si()),ui(t,n.options,r,i)}),10),ti=e,ii=o)}else{if(!this.options.bubbleScroll||G(r,!0)===L())return void si();ui(t,this.options,G(r,!1),!1)}}},b(t,{pluginName:"scroll",initializeByDefault:!0})}),Ut.mount(hi,ci);const fi=class{constructor(n){t(this,n),this.newTab=i(this,"newTab",7),this.sortChanged=i(this,"sortChanged",7),this.showNewTabButton=!0,this.tabLimit=1/0,this.allowSort=!0,this.focused=0,this.disableAddTabButton=!1,this.tabTriggers=void 0,this.hasScrollbar=!1,this.keyboardSort=!1,this.initialSortIndex=0,this.sortTarget=void 0,this.ariaLiveAlert=""}onFocusin(t){this.allowSort&&a(".gux-tablist",t)&&!this.keyboardSort&&(this.ariaLiveAlert="toggleSort")}onFocusout(t){this.root.querySelector(".gux-tablist").contains(t.relatedTarget)||this.tabTriggers.forEach(((t,i)=>{t.guxGetActive().then((n=>{n?this.focused=i:(t.querySelector(".gux-tab-button").setAttribute("tabindex","-1"),t.querySelector(".gux-tab-options-button")&&t.querySelector(".gux-tab-options-button").setAttribute("tabindex","-1"))}))}))}watchAllowSort(t){t?this.validateSortableInstance():this.destroySortable()}onMutation(){this.setTabTriggers()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":if(t.preventDefault(),this.keyboardSort&&!a(".gux-tab-options-button",t)){this.ariaLiveAlert="";const t=this.root.querySelector(".gux-tablist"),i=t.querySelectorAll("gux-tab-advanced"),n=Array.prototype.indexOf.call(i,this.sortTarget);let e;e=n===i.length-1?i[0]:i[n+2],t.insertBefore(this.sortTarget,e),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.focused)}else a(".gux-tab-options-button",t)||a(".gux-dropdown-option-container",t)||this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":if(t.preventDefault(),this.keyboardSort&&!a(".gux-tab-options-button",t)){this.ariaLiveAlert="";const t=this.root.querySelector(".gux-tablist"),i=t.querySelectorAll("gux-tab-advanced"),n=Array.prototype.indexOf.call(i,this.sortTarget);t.insertBefore(this.sortTarget,i[n-1]||null),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.focused)}else a(".gux-tab-options-button",t)||a(".gux-dropdown-option-container",t)||this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.keyboardSort&&this.allowSort&&(this.keyboardSort=!1,this.ariaLiveAlert="sortCancelled",this.root.querySelector(".gux-tablist").insertBefore(this.sortTarget,this.tabTriggers[this.initialSortIndex]||null)),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.initialSortIndex),u((()=>{this.focusTab(this.initialSortIndex)}));break;case"Enter":this.keyboardSort&&(t.preventDefault(),this.keyboardSort=!1,this.ariaLiveAlert="sortComplete",this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.focused=i)})),this.emitSortChanged());break;case"Tab":this.keyboardSort&&(this.keyboardSort=!1,this.ariaLiveAlert="sortCancelled");break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onKeyup(t){" "===t.key&&a(".gux-tab",t)&&!a(".gux-tab-options-button",t)&&!a("gux-popover-list",t)&&this.allowSort&&(t.preventDefault(),!0===this.keyboardSort?(this.keyboardSort=!1,this.ariaLiveAlert="sortComplete",this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.focused),this.emitSortChanged()):(this.keyboardSort=!0,this.sortTarget=t.target.closest("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.initialSortIndex=i)})),this.ariaLiveAlert="sortModeOn"))}async guxSetActive(t){this.tabTriggers.forEach(((i,n)=>{const e=i.tabId===t;i.guxSetActive(e),e&&(this.focused=n)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach(((t,i)=>{t.guxGetActive().then((n=>{this.focused===i||n||(t.querySelector(".gux-tab-button").setAttribute("tabindex","-1"),t.querySelector(".gux-tab-options-button")&&t.querySelector(".gux-tab-options-button").setAttribute("tabindex","-1"))}))})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].querySelector(".gux-tab-options-button")&&this.tabTriggers[this.focused].querySelector(".gux-tab-options-button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}createSortable(){this.sortableInstance=new Ut(this.root.querySelector(".gux-tablist"),{animation:250,draggable:"gux-tab-advanced",filter:".ignore-sort",onMove:t=>!t.related.classList.contains("ignore-sort"),onUpdate:()=>{this.emitSortChanged()}})}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}emitSortChanged(){const t=Array.from(this.root.querySelectorAll("gux-tab-advanced")).map((t=>t.tabId));this.sortChanged.emit(t)}checkForScrollbarHideOrShow(){n((()=>{const t=this.root.querySelector(".gux-scrollable-section"),i=t.clientWidth<t.scrollWidth;i!==this.hasScrollbar&&(this.hasScrollbar=i)}))}handleKeyboardScroll(t){"forward"===t?this.focused<this.tabTriggers.length-1?(this.hasScrollbar&&this.scrollRight(),this.focusTab(this.focused+1)):(this.hasScrollbar&&this.scrollToStart(),this.focusTab(0)):"backward"===t&&(this.focused>0?(this.hasScrollbar&&this.scrollLeft(),this.focusTab(this.focused-1)):(this.hasScrollbar&&this.scrollToEnd(),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.sortableInstance&&this.destroySortable(),this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await l(this.root,c,"gux-tabs-advanced")}validateSortableInstance(){this.allowSort&&!this.sortableInstance&&this.createSortable()}componentDidLoad(){this.validateSortableInstance(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),u((()=>{this.checkForScrollbarHideOrShow()}),500)}scrollLeft(){e((()=>{var t;this.root.querySelector(".gux-scrollable-section").scrollBy(-(null===(t=this.root.querySelector("gux-tab-advanced"))||void 0===t?void 0:t.scrollWidth),0)}))}scrollRight(){e((()=>{var t;this.root.querySelector(".gux-scrollable-section").scrollBy(null===(t=this.root.querySelector("gux-tab-advanced"))||void 0===t?void 0:t.scrollWidth,0)}))}scrollToStart(){const t=this.root.querySelector(".gux-scrollable-section");e((()=>{null==t||t.scrollBy(-(null==t?void 0:t.scrollWidth),0)}))}scrollToEnd(){const t=this.root.querySelector(".gux-scrollable-section");e((()=>{t.scrollBy(null==t?void 0:t.scrollWidth,0)}))}componentWillRender(){const t=Array.from(this.root.querySelectorAll("gux-tab-advanced"));this.disableAddTabButton=t.length>=this.tabLimit}render(){return[this.renderAlert(),o("div",{key:"3141c7d26950d26eccfd136d7aee263963f0ef14",class:"gux-tab-container"},this.renderScrollButton("scrollLeft"),o("div",{key:"f5d4ef90168f0e44933ca388d6f49e120cabf26a",class:"gux-scrollable-section"},o("div",{key:"dcffc6d1f7336e040a7ad612789627f4556eadc0",class:"gux-tablist",role:"tablist","data-gux-tab-sorting":this.keyboardSort,"aria-owns":this.triggerIds},o("slot",{key:"4b705d1ce564196a4feaf2698b057acab03b9f8a"})),this.renderAddButton()),this.renderScrollButton("scrollRight"))]}renderAlert(){return o("div",{class:"gux-sr-only gux-aria-live-region","aria-live":"polite"},this.ariaLiveAlert?this.i18n(this.ariaLiveAlert):"")}renderAddButton(){return o("div",null,this.showNewTabButton?o("gux-button-slot",{class:"gux-add-button",accent:"ghost"},o("button",{onClick:()=>this.newTab.emit(),disabled:this.disableAddTabButton},o("slot",{name:"add-tab"},o("gux-icon",{"icon-name":"fa/plus-regular","screenreader-text":this.disableAddTabButton?this.i18n("disableNewTab"):this.root.querySelector('[slot="add-tab"]')?this.root.querySelector('[slot="add-tab"]').textContent.trim():this.i18n("createNewTab")})))):null)}renderScrollButton(t){return o("div",null,this.hasScrollbar?o("gux-button-slot",{class:"gux-scroll-button",accent:"ghost","icon-only":!0},o("button",{tabindex:"-1",onDragOver:()=>this.getScrollDirection(t),onClick:()=>this.getScrollDirection(t)},o("gux-icon",{"icon-name":this.getChevronIconName(t),"screenreader-text":this.i18n(t)}))):null)}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight()}}getChevronIconName(t){switch(t){case"scrollLeft":return"fa/chevron-left-regular";case"scrollRight":return"fa/chevron-right-regular"}}get root(){return r(this)}static get watchers(){return{allowSort:["watchAllowSort"]}}};(function(t,i,n,e){var o,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(i,n,s):o(i,n))||s);r>3&&s&&Object.defineProperty(i,n,s)})([s({childList:!0,subtree:!0})],fi.prototype,"onMutation",null),fi.style=".gux-tab-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;inline-size:100%;background-color:var(--gse-ui-advancedTabs-set-backgroundColor)}.gux-tab-container .gux-scrollable-section{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;inline-size:100%;overflow-x:auto;scrollbar-width:none;border-block-end:var(--gse-ui-advancedTabs-item-divider-border-width) var(--gse-ui-advancedTabs-item-divider-border-style) var(--gse-ui-advancedTabs-item-divider-border-color);scroll-behavior:smooth}.gux-tab-container .gux-scrollable-section::-webkit-scrollbar{block-size:0}.gux-tab-container .gux-scrollable-section .gux-tablist{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{fi as gux_tab_advanced_list}
|
7
|
+
*/function h(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function d(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?h(Object(n),!0).forEach((function(i){v(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function v(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function b(){return b=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},b.apply(this,arguments)}function g(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var m=g(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=g(/Edge/i),w=g(/firefox/i),x=g(/safari/i)&&!g(/chrome/i)&&!g(/android/i),y=g(/iP(ad|od|hone)/i),E=g(/chrome/i)&&g(/android/i),S={capture:!1,passive:!1};function T(t,i,n){t.addEventListener(i,n,!m&&S)}function O(t,i,n){t.removeEventListener(i,n,!m&&S)}function k(t,i){if(i){if(">"===i[0]&&(i=i.substring(1)),t)try{if(t.matches)return t.matches(i);if(t.msMatchesSelector)return t.msMatchesSelector(i);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(i)}catch(t){return!1}return!1}}function M(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function I(t,i,n,e){if(t){n=n||document;do{if(null!=i&&(">"===i[0]?t.parentNode===n&&k(t,i):k(t,i))||e&&t===n)return t;if(t===n)break}while(t=M(t))}return null}var j,A=/\s+/g;function C(t,i,n){if(t&&i)if(t.classList)t.classList[n?"add":"remove"](i);else{var e=(" "+t.className+" ").replace(A," ").replace(" "+i+" "," ");t.className=(e+(n?" "+i:"")).replace(A," ")}}function D(t,i,n){var e=t&&t.style;if(e){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===i?n:n[i];i in e||-1!==i.indexOf("webkit")||(i="-webkit-"+i),e[i]=n+("string"==typeof n?"":"px")}}function _(t,i){var n="";if("string"==typeof t)n=t;else do{var e=D(t,"transform");e&&"none"!==e&&(n=e+" "+n)}while(!i&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function z(t,i,n){if(t){var e=t.getElementsByTagName(i),o=0,r=e.length;if(n)for(;o<r;o++)n(e[o],o);return e}return[]}function R(){return document.scrollingElement||document.documentElement}function L(t,i,n,e,o){if(t.getBoundingClientRect||t===window){var r,s,a,u,l,c,h;if(t!==window&&t.parentNode&&t!==R()?(s=(r=t.getBoundingClientRect()).top,a=r.left,u=r.bottom,l=r.right,c=r.height,h=r.width):(s=0,a=0,u=window.innerHeight,l=window.innerWidth,c=window.innerHeight,h=window.innerWidth),(i||n)&&t!==window&&(o=o||t.parentNode,!m))do{if(o&&o.getBoundingClientRect&&("none"!==D(o,"transform")||n&&"static"!==D(o,"position"))){var d=o.getBoundingClientRect();s-=d.top+parseInt(D(o,"border-top-width")),a-=d.left+parseInt(D(o,"border-left-width")),u=s+r.height,l=a+r.width;break}}while(o=o.parentNode);if(e&&t!==window){var f=_(o||t),v=f&&f.a,b=f&&f.d;f&&(u=(s/=b)+(c/=b),l=(a/=v)+(h/=v))}return{top:s,left:a,bottom:u,right:l,width:h,height:c}}}function N(t,i,n){for(var e=G(t,!0),o=L(t)[i];e;){var r=L(e)[n];if(!("top"===n||"left"===n?o>=r:o<=r))return e;if(e===R())break;e=G(e,!1)}return!1}function F(t,i,n,e){for(var o=0,r=0,s=t.children;r<s.length;){if("none"!==s[r].style.display&&s[r]!==Ut.ghost&&(e||s[r]!==Ut.dragged)&&I(s[r],n.draggable,t,!1)){if(o===i)return s[r];o++}r++}return null}function B(t,i){for(var n=t.lastElementChild;n&&(n===Ut.ghost||"none"===D(n,"display")||i&&!k(n,i));)n=n.previousElementSibling;return n||null}function H(t,i){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ut.clone||i&&!k(t,i)||n++;return n}function P(t){var i=0,n=0,e=R();if(t)do{var o=_(t);i+=t.scrollLeft*o.a,n+=t.scrollTop*o.d}while(t!==e&&(t=t.parentNode));return[i,n]}function G(t,i){if(!t||!t.getBoundingClientRect)return R();var n=t,e=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return R();if(e||i)return n;e=!0}}}while(n=n.parentNode);return R()}function W(t,i){return Math.round(t.top)===Math.round(i.top)&&Math.round(t.left)===Math.round(i.left)&&Math.round(t.height)===Math.round(i.height)&&Math.round(t.width)===Math.round(i.width)}function K(t,i){return function(){if(!j){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),j=setTimeout((function(){j=void 0}),i)}}}function U(t,i,n){t.scrollLeft+=i,t.scrollTop+=n}function X(t){var i=window.Polymer,n=window.jQuery||window.Zepto;return i&&i.dom?i.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function Y(t,i,n){var e={};return Array.from(t.children).forEach((function(o){var r,s,a,u;if(I(o,i.draggable,t,!1)&&!o.animated&&o!==n){var l=L(o);e.left=Math.min(null!==(r=e.left)&&void 0!==r?r:1/0,l.left),e.top=Math.min(null!==(s=e.top)&&void 0!==s?s:1/0,l.top),e.right=Math.max(null!==(a=e.right)&&void 0!==a?a:-1/0,l.right),e.bottom=Math.max(null!==(u=e.bottom)&&void 0!==u?u:-1/0,l.bottom)}})),e.width=e.right-e.left,e.height=e.bottom-e.top,e.x=e.left,e.y=e.top,e}var $="Sortable"+(new Date).getTime();var V=[],Z={initializeByDefault:!0},q={mount:function(t){for(var i in Z)Z.hasOwnProperty(i)&&!(i in t)&&(t[i]=Z[i]);V.forEach((function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),V.push(t)},pluginEvent:function(t,i,n){var e=this;this.eventCanceled=!1,n.cancel=function(){e.eventCanceled=!0};var o=t+"Global";V.forEach((function(e){i[e.pluginName]&&(i[e.pluginName][o]&&i[e.pluginName][o](d({sortable:i},n)),i.options[e.pluginName]&&i[e.pluginName][t]&&i[e.pluginName][t](d({sortable:i},n)))}))},initializePlugins:function(t,i,n){for(var e in V.forEach((function(e){var o=e.pluginName;if(t.options[o]||e.initializeByDefault){var r=new e(t,i,t.options);r.sortable=t,r.options=t.options,t[o]=r,b(n,r.defaults)}})),t.options)if(t.options.hasOwnProperty(e)){var o=this.modifyOption(t,e,t.options[e]);void 0!==o&&(t.options[e]=o)}},getEventProperties:function(t,i){var n={};return V.forEach((function(e){"function"==typeof e.eventProperties&&b(n,e.eventProperties.call(i[e.pluginName],t))})),n},modifyOption:function(t,i,n){var e;return V.forEach((function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[i]&&(e=o.optionListeners[i].call(t[o.pluginName],n))})),e}},J=["evt"],Q=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=n.evt,o=function(t,i){if(null==t)return{};var n,e,o=function(t,i){if(null==t)return{};var n,e,o={},r=Object.keys(t);for(e=0;e<r.length;e++)i.indexOf(n=r[e])>=0||(o[n]=t[n]);return o}(t,i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(e=0;e<r.length;e++)i.indexOf(n=r[e])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(n,J);q.pluginEvent.bind(Ut)(t,i,d({dragEl:it,parentEl:nt,ghostEl:et,rootEl:ot,nextEl:rt,lastDownEl:st,cloneEl:at,cloneHidden:ut,dragStarted:yt,putSortable:vt,activeSortable:Ut.active,originalEvent:e,oldIndex:lt,oldDraggableIndex:ht,newIndex:ct,newDraggableIndex:dt,hideGhostForTarget:Pt,unhideGhostForTarget:Gt,cloneNowHidden:function(){ut=!0},cloneNowShown:function(){ut=!1},dispatchSortableEvent:function(t){tt({sortable:i,name:t,originalEvent:e})}},o))};function tt(t){!function(t){var i=t.sortable,n=t.rootEl,e=t.name,o=t.targetEl,r=t.cloneEl,s=t.toEl,a=t.fromEl,u=t.oldIndex,l=t.newIndex,c=t.oldDraggableIndex,h=t.newDraggableIndex,f=t.originalEvent,v=t.putSortable,b=t.extraEventProperties;if(i=i||n&&n[$]){var g,w=i.options,x="on"+e.charAt(0).toUpperCase()+e.substr(1);!window.CustomEvent||m||p?(g=document.createEvent("Event")).initEvent(e,!0,!0):g=new CustomEvent(e,{bubbles:!0,cancelable:!0}),g.to=s||n,g.from=a||n,g.item=o||n,g.clone=r,g.oldIndex=u,g.newIndex=l,g.oldDraggableIndex=c,g.newDraggableIndex=h,g.originalEvent=f,g.pullMode=v?v.lastPutMode:void 0;var y=d(d({},b),q.getEventProperties(e,i));for(var E in y)g[E]=y[E];n&&n.dispatchEvent(g),w[x]&&w[x].call(i,g)}}(d({putSortable:vt,cloneEl:at,targetEl:it,rootEl:ot,oldIndex:lt,oldDraggableIndex:ht,newIndex:ct,newDraggableIndex:dt},t))}var it,nt,et,ot,rt,st,at,ut,lt,ct,ht,dt,ft,vt,bt,gt,mt,pt,wt,xt,yt,Et,St,Tt,Ot,kt=!1,Mt=!1,It=[],jt=!1,At=!1,Ct=[],Dt=!1,_t=[],zt="undefined"!=typeof document,Rt=y,Lt=p||m?"cssFloat":"float",Nt=zt&&!E&&!y&&"draggable"in document.createElement("div"),Ft=function(){if(zt){if(m)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Bt=function(t,i){var n=D(t),e=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=F(t,0,i),r=F(t,1,i),s=o&&D(o),a=r&&D(r),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+L(o).width,l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+L(r).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&s.float&&"none"!==s.float?!r||"both"!==a.clear&&a.clear!==("left"===s.float?"left":"right")?"horizontal":"vertical":o&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||u>=e&&"none"===n[Lt]||r&&"none"===n[Lt]&&u+l>e)?"vertical":"horizontal"},Ht=function(t){function i(t,n){return function(e,o,r,s){if(null==t&&(n||e.options.group.name&&o.options.group.name&&e.options.group.name===o.options.group.name))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return i(t(e,o,r,s),n)(e,o,r,s);var a=(n?e:o).options.group.name;return!0===t||"string"==typeof t&&t===a||t.join&&t.indexOf(a)>-1}}var n={},e=t.group;e&&"object"==f(e)||(e={name:e}),n.name=e.name,n.checkPull=i(e.pull,!0),n.checkPut=i(e.put),n.revertClone=e.revertClone,t.group=n},Pt=function(){!Ft&&et&&D(et,"display","none")},Gt=function(){!Ft&&et&&D(et,"display","")};zt&&!E&&document.addEventListener("click",(function(t){if(Mt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Mt=!1,!1}),!0);var Wt=function(t){if(it){var i=(o=(t=t.touches?t.touches[0]:t).clientX,r=t.clientY,It.some((function(t){var i=t[$].options.emptyInsertThreshold;if(i&&!B(t)){var n=L(t);return o>=n.left-i&&o<=n.right+i&&r>=n.top-i&&r<=n.bottom+i?s=t:void 0}})),s);if(i){var n={};for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[$]._onDragOver(n)}}var o,r,s},Kt=function(t){it&&it.parentNode[$]._isOutsideThisEl(t.target)};function Ut(t,i){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=i=b({},i),t[$]=this;var n,e,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Bt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,i){t.setData("Text",i.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ut.supportPointer&&"PointerEvent"in window&&(!x||y),emptyInsertThreshold:5};for(var r in q.initializePlugins(this,t,o),o)!(r in i)&&(i[r]=o[r]);for(var s in Ht(i),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!i.forceFallback&&Nt,this.nativeDraggable&&(this.options.touchStartThreshold=1),i.supportPointer?T(t,"pointerdown",this._onTapStart):(T(t,"mousedown",this._onTapStart),T(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(T(t,"dragover",this),T(t,"dragenter",this)),It.push(this.el),i.store&&i.store.get&&this.sort(i.store.get(this)||[]),b(this,(e=[],{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==D(t,"display")&&t!==Ut.ghost){e.push({target:t,rect:L(t)});var i=d({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=_(t,!0);n&&(i.top-=n.f,i.left-=n.e)}t.fromRect=i}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,i){for(var n in t)if(t.hasOwnProperty(n))for(var e in i)if(i.hasOwnProperty(e)&&i[e]===t[n][e])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(t){var i=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof t&&t());var o=!1,r=0;e.forEach((function(t){var n=0,e=t.target,s=e.fromRect,a=L(e),u=e.prevFromRect,l=e.prevToRect,c=t.rect,h=_(e,!0);h&&(a.top-=h.f,a.left-=h.e),e.toRect=a,e.thisAnimationDuration&&W(u,a)&&!W(s,a)&&(c.top-a.top)/(c.left-a.left)==(s.top-a.top)/(s.left-a.left)&&(n=function(t,i,n,e){return Math.sqrt(Math.pow(i.top-t.top,2)+Math.pow(i.left-t.left,2))/Math.sqrt(Math.pow(i.top-n.top,2)+Math.pow(i.left-n.left,2))*e.animation}(c,u,l,i.options)),W(a,s)||(e.prevFromRect=s,e.prevToRect=a,n||(n=i.options.animation),i.animate(e,c,a,n)),n&&(o=!0,r=Math.max(r,n),clearTimeout(e.animationResetTimer),e.animationResetTimer=setTimeout((function(){e.animationTime=0,e.prevFromRect=null,e.fromRect=null,e.prevToRect=null,e.thisAnimationDuration=null}),n),e.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof t&&t()}),r):"function"==typeof t&&t(),e=[]},animate:function(t,i,n,e){if(e){D(t,"transition",""),D(t,"transform","");var o=_(this.el),r=(i.left-n.left)/(o&&o.a||1),s=(i.top-n.top)/(o&&o.d||1);t.animatingX=!!r,t.animatingY=!!s,D(t,"transform","translate3d("+r+"px,"+s+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),D(t,"transition","transform "+e+"ms"+(this.options.easing?" "+this.options.easing:"")),D(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){D(t,"transition",""),D(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),e)}}}))}function Xt(t,i,n,e,o,r,s,a){var u,l,c=t[$],h=c.options.onMove;return!window.CustomEvent||m||p?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=i,u.from=t,u.dragged=n,u.draggedRect=e,u.related=o||i,u.relatedRect=r||L(i),u.willInsertAfter=a,u.originalEvent=s,t.dispatchEvent(u),h&&(l=h.call(c,u,s)),l}function Yt(t){t.draggable=!1}function $t(){Dt=!1}function Vt(t){for(var i=t.tagName+t.className+t.src+t.href+t.textContent,n=i.length,e=0;n--;)e+=i.charCodeAt(n);return e.toString(36)}function Zt(t){return setTimeout(t,0)}function qt(t){return clearTimeout(t)}Ut.prototype={constructor:Ut,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Et=null)},_getDirection:function(t,i){return"function"==typeof this.options.direction?this.options.direction.call(this,t,i,it):this.options.direction},_onTapStart:function(t){if(t.cancelable){var i=this,n=this.el,e=this.options,o=e.preventOnFilter,r=t.type,s=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,l=e.filter;if(function(t){_t.length=0;for(var i=t.getElementsByTagName("input"),n=i.length;n--;){var e=i[n];e.checked&&_t.push(e)}}(n),!it&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||e.disabled)&&!u.isContentEditable&&(this.nativeDraggable||!x||!a||"SELECT"!==a.tagName.toUpperCase())&&!((a=I(a,e.draggable,n,!1))&&a.animated||st===a)){if(lt=H(a),ht=H(a,e.draggable),"function"==typeof l){if(l.call(this,t,a,this))return tt({sortable:i,rootEl:u,name:"filter",targetEl:a,toEl:n,fromEl:n}),Q("filter",i,{evt:t}),void(o&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(e){if(e=I(u,e.trim(),n,!1))return tt({sortable:i,rootEl:e,name:"filter",targetEl:a,fromEl:n,toEl:n}),Q("filter",i,{evt:t}),!0}))))return void(o&&t.preventDefault());e.handle&&!I(u,e.handle,n,!1)||this._prepareDragStart(t,s,a)}}},_prepareDragStart:function(t,i,n){var e,o=this,r=o.el,s=o.options,a=r.ownerDocument;if(n&&!it&&n.parentNode===r){var u=L(n);if(ot=r,nt=(it=n).parentNode,rt=it.nextSibling,st=n,ft=s.group,Ut.dragged=it,wt=(bt={target:it,clientX:(i||t).clientX,clientY:(i||t).clientY}).clientX-u.left,xt=bt.clientY-u.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,it.style["will-change"]="all",e=function(){Q("delayEnded",o,{evt:t}),Ut.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!w&&o.nativeDraggable&&(it.draggable=!0),o._triggerDragStart(t,i),tt({sortable:o,name:"choose",originalEvent:t}),C(it,s.chosenClass,!0))},s.ignore.split(",").forEach((function(t){z(it,t.trim(),Yt)})),T(a,"dragover",Wt),T(a,"mousemove",Wt),T(a,"touchmove",Wt),s.supportPointer?(T(a,"pointerup",o._onDrop),!this.nativeDraggable&&T(a,"pointercancel",o._onDrop)):(T(a,"mouseup",o._onDrop),T(a,"touchend",o._onDrop),T(a,"touchcancel",o._onDrop)),w&&this.nativeDraggable&&(this.options.touchStartThreshold=4,it.draggable=!0),Q("delayStart",this,{evt:t}),!s.delay||s.delayOnTouchOnly&&!i||this.nativeDraggable&&(p||m))e();else{if(Ut.eventCanceled)return void this._onDrop();s.supportPointer?(T(a,"pointerup",o._disableDelayedDrag),T(a,"pointercancel",o._disableDelayedDrag)):(T(a,"mouseup",o._disableDelayedDrag),T(a,"touchend",o._disableDelayedDrag),T(a,"touchcancel",o._disableDelayedDrag)),T(a,"mousemove",o._delayedDragTouchMoveHandler),T(a,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&T(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(e,s.delay)}}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){it&&Yt(it),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;O(t,"mouseup",this._disableDelayedDrag),O(t,"touchend",this._disableDelayedDrag),O(t,"touchcancel",this._disableDelayedDrag),O(t,"pointerup",this._disableDelayedDrag),O(t,"pointercancel",this._disableDelayedDrag),O(t,"mousemove",this._delayedDragTouchMoveHandler),O(t,"touchmove",this._delayedDragTouchMoveHandler),O(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||"touch"==t.pointerType&&t,!this.nativeDraggable||i?T(document,this.options.supportPointer?"pointermove":i?"touchmove":"mousemove",this._onTouchMove):(T(it,"dragend",this),T(ot,"dragstart",this._onDragStart));try{document.selection?Zt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,i){if(kt=!1,ot&&it){Q("dragStarted",this,{evt:i}),this.nativeDraggable&&T(document,"dragover",Kt);var n=this.options;!t&&C(it,n.dragClass,!1),C(it,n.ghostClass,!0),Ut.active=this,t&&this._appendGhost(),tt({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(gt){this._lastX=gt.clientX,this._lastY=gt.clientY,Pt();for(var t=document.elementFromPoint(gt.clientX,gt.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(gt.clientX,gt.clientY))!==i;)i=t;if(it.parentNode[$]._isOutsideThisEl(t),i)do{if(i[$]&&i[$]._onDragOver({clientX:gt.clientX,clientY:gt.clientY,target:t,rootEl:i})&&!this.options.dragoverBubble)break;t=i}while(i=M(i));Gt()}},_onTouchMove:function(t){if(bt){var i=this.options,n=i.fallbackTolerance,e=i.fallbackOffset,o=t.touches?t.touches[0]:t,r=et&&_(et,!0),s=et&&r&&r.a,a=et&&r&&r.d,u=Rt&&Ot&&P(Ot),l=(o.clientX-bt.clientX+e.x)/(s||1)+(u?u[0]-Ct[0]:0)/(s||1),c=(o.clientY-bt.clientY+e.y)/(a||1)+(u?u[1]-Ct[1]:0)/(a||1);if(!Ut.active&&!kt){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(et){r?(r.e+=l-(mt||0),r.f+=c-(pt||0)):r={a:1,b:0,c:0,d:1,e:l,f:c};var h="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");D(et,"webkitTransform",h),D(et,"mozTransform",h),D(et,"msTransform",h),D(et,"transform",h),mt=l,pt=c,gt=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!et){var t=this.options.fallbackOnBody?document.body:ot,i=L(it,!0,Rt,!0,t),n=this.options;if(Rt){for(Ot=t;"static"===D(Ot,"position")&&"none"===D(Ot,"transform")&&Ot!==document;)Ot=Ot.parentNode;Ot!==document.body&&Ot!==document.documentElement?(Ot===document&&(Ot=R()),i.top+=Ot.scrollTop,i.left+=Ot.scrollLeft):Ot=R(),Ct=P(Ot)}C(et=it.cloneNode(!0),n.ghostClass,!1),C(et,n.fallbackClass,!0),C(et,n.dragClass,!0),D(et,"transition",""),D(et,"transform",""),D(et,"box-sizing","border-box"),D(et,"margin",0),D(et,"top",i.top),D(et,"left",i.left),D(et,"width",i.width),D(et,"height",i.height),D(et,"opacity","0.8"),D(et,"position",Rt?"absolute":"fixed"),D(et,"zIndex","100000"),D(et,"pointerEvents","none"),Ut.ghost=et,t.appendChild(et),D(et,"transform-origin",wt/parseInt(et.style.width)*100+"% "+xt/parseInt(et.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,e=t.dataTransfer,o=n.options;Q("dragStart",this,{evt:t}),Ut.eventCanceled?this._onDrop():(Q("setupClone",this),Ut.eventCanceled||((at=X(it)).removeAttribute("id"),at.draggable=!1,at.style["will-change"]="",this._hideClone(),C(at,this.options.chosenClass,!1),Ut.clone=at),n.cloneId=Zt((function(){Q("clone",n),Ut.eventCanceled||(n.options.removeCloneOnHide||ot.insertBefore(at,it),n._hideClone(),tt({sortable:n,name:"clone"}))})),!i&&C(it,o.dragClass,!0),i?(Mt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(O(document,"mouseup",n._onDrop),O(document,"touchend",n._onDrop),O(document,"touchcancel",n._onDrop),e&&(e.effectAllowed="move",o.setData&&o.setData.call(n,e,it)),T(document,"drop",n),D(it,"transform","translateZ(0)")),kt=!0,n._dragStartId=Zt(n._dragStarted.bind(n,i,t)),T(document,"selectstart",n),yt=!0,window.getSelection().removeAllRanges(),x&&D(document.body,"user-select","none"))},_onDragOver:function(t){var i,n,e,o,r=this.el,s=t.target,a=this.options,u=a.group,l=Ut.active,c=ft===u,h=a.sort,f=vt||l,v=this,b=!1;if(!Dt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=I(s,a.draggable,r,!0),_("dragOver"),Ut.eventCanceled)return b;if(it.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||v._ignoreWhileAnimating===s)return R(!1);if(Mt=!1,l&&!a.disabled&&(c?h||(e=nt!==ot):vt===this||(this.lastPutMode=ft.checkPull(this,l,it,t))&&u.checkPut(this,l,it,t))){if(o="vertical"===this._getDirection(t,s),i=L(it),_("dragOverValid"),Ut.eventCanceled)return b;if(e)return nt=ot,z(),this._hideClone(),_("revert"),Ut.eventCanceled||(rt?ot.insertBefore(it,rt):ot.appendChild(it)),R(!0);var g=B(r,a.draggable);if(!g||function(t,i,n){var e=L(B(n.el,n.options.draggable)),o=Y(n.el,n.options,et);return i?t.clientX>o.right+10||t.clientY>e.bottom&&t.clientX>e.left:t.clientY>o.bottom+10||t.clientX>e.right&&t.clientY>e.top}(t,o,this)&&!g.animated){if(g===it)return R(!1);if(g&&r===t.target&&(s=g),s&&(n=L(s)),!1!==Xt(ot,r,it,i,s,n,t,!!s))return z(),g&&g.nextSibling?r.insertBefore(it,g.nextSibling):r.appendChild(it),nt=r,P(),R(!0)}else if(g&&function(t,i,n){var e=L(F(n.el,0,n.options,!0)),o=Y(n.el,n.options,et);return i?t.clientX<o.left-10||t.clientY<e.top&&t.clientX<e.right:t.clientY<o.top-10||t.clientY<e.bottom&&t.clientX<e.left}(t,o,this)){var m=F(r,0,a,!0);if(m===it)return R(!1);if(n=L(s=m),!1!==Xt(ot,r,it,i,s,n,t,!1))return z(),r.insertBefore(it,m),nt=r,P(),R(!0)}else if(s.parentNode===r){n=L(s);var p,w,x,y=it.parentNode!==r,E=!function(t,i,n){var e=n?t.left:t.top,o=n?i.left:i.top;return e===o||(n?t.right:t.bottom)===(n?i.right:i.bottom)||e+(n?t.width:t.height)/2===o+(n?i.width:i.height)/2}(it.animated&&it.toRect||i,s.animated&&s.toRect||n,o),S=o?"top":"left",T=N(s,"top","top")||N(it,"top","top"),O=T?T.scrollTop:void 0;if(Et!==s&&(w=n[S],jt=!1,At=!E&&a.invertSwap||y),p=function(t,i,n,e,o,r,s,a){var u=e?t.clientY:t.clientX,l=e?n.height:n.width,c=e?n.top:n.left,h=e?n.bottom:n.right,d=!1;if(!s)if(a&&Tt<l*o){if(!jt&&(1===St?u>c+l*r/2:u<h-l*r/2)&&(jt=!0),jt)d=!0;else if(1===St?u<c+Tt:u>h-Tt)return-St}else if(u>c+l*(1-o)/2&&u<h-l*(1-o)/2)return function(t){return H(it)<H(t)?1:-1}(i);return(d=d||s)&&(u<c+l*r/2||u>h-l*r/2)?u>c+l/2?1:-1:0}(t,s,n,o,E?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,At,Et===s),0!==p){var k=H(it);do{x=nt.children[k-=p]}while(x&&("none"===D(x,"display")||x===et))}if(0===p||x===s)return R(!1);Et=s,St=p;var M=s.nextElementSibling,j=!1,A=Xt(ot,r,it,i,s,n,t,j=1===p);if(!1!==A)return 1!==A&&-1!==A||(j=1===A),Dt=!0,setTimeout($t,30),z(),j&&!M?r.appendChild(it):s.parentNode.insertBefore(it,j?M:s),T&&U(T,0,O-T.scrollTop),nt=it.parentNode,void 0===w||At||(Tt=Math.abs(w-L(s)[S])),P(),R(!0)}if(r.contains(it))return R(!1)}return!1}function _(a,u){Q(a,v,d({evt:t,isOwner:c,axis:o?"vertical":"horizontal",revert:e,dragRect:i,targetRect:n,canSort:h,fromSortable:f,target:s,completed:R,onMove:function(n,e){return Xt(ot,r,it,i,n,L(n),t,e)},changed:P},u))}function z(){_("dragOverAnimationCapture"),v.captureAnimationState(),v!==f&&f.captureAnimationState()}function R(i){return _("dragOverCompleted",{insertion:i}),i&&(c?l._hideClone():l._showClone(v),v!==f&&(C(it,vt?vt.options.ghostClass:l.options.ghostClass,!1),C(it,a.ghostClass,!0)),vt!==v&&v!==Ut.active?vt=v:v===Ut.active&&vt&&(vt=null),f===v&&(v._ignoreWhileAnimating=s),v.animateAll((function(){_("dragOverAnimationComplete"),v._ignoreWhileAnimating=null})),v!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===it&&!it.animated||s===r&&!s.animated)&&(Et=null),a.dragoverBubble||t.rootEl||s===document||(it.parentNode[$]._isOutsideThisEl(t.target),!i&&Wt(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function P(){ct=H(it),dt=H(it,a.draggable),tt({sortable:v,name:"change",toEl:r,newIndex:ct,newDraggableIndex:dt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",Wt),O(document,"mousemove",Wt),O(document,"touchmove",Wt)},_offUpEvents:function(){var t=this.el.ownerDocument;O(t,"mouseup",this._onDrop),O(t,"touchend",this._onDrop),O(t,"pointerup",this._onDrop),O(t,"pointercancel",this._onDrop),O(t,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(t){var i=this.el,n=this.options;ct=H(it),dt=H(it,n.draggable),Q("drop",this,{evt:t}),nt=it&&it.parentNode,ct=H(it),dt=H(it,n.draggable),Ut.eventCanceled||(kt=!1,At=!1,jt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qt(this.cloneId),qt(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),x&&D(document.body,"user-select",""),D(it,"transform",""),t&&(yt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),et&&et.parentNode&&et.parentNode.removeChild(et),(ot===nt||vt&&"clone"!==vt.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),it&&(this.nativeDraggable&&O(it,"dragend",this),Yt(it),it.style["will-change"]="",yt&&!kt&&C(it,vt?vt.options.ghostClass:this.options.ghostClass,!1),C(it,this.options.chosenClass,!1),tt({sortable:this,name:"unchoose",toEl:nt,newIndex:null,newDraggableIndex:null,originalEvent:t}),ot!==nt?(ct>=0&&(tt({rootEl:nt,name:"add",toEl:nt,fromEl:ot,originalEvent:t}),tt({sortable:this,name:"remove",toEl:nt,originalEvent:t}),tt({rootEl:nt,name:"sort",toEl:nt,fromEl:ot,originalEvent:t}),tt({sortable:this,name:"sort",toEl:nt,originalEvent:t})),vt&&vt.save()):ct!==lt&&ct>=0&&(tt({sortable:this,name:"update",toEl:nt,originalEvent:t}),tt({sortable:this,name:"sort",toEl:nt,originalEvent:t})),Ut.active&&(null!=ct&&-1!==ct||(ct=lt,dt=ht),tt({sortable:this,name:"end",toEl:nt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Q("nulling",this),ot=it=nt=et=rt=at=st=ut=bt=gt=yt=ct=dt=lt=ht=Et=St=vt=ft=Ut.dragged=Ut.ghost=Ut.clone=Ut.active=null,_t.forEach((function(t){t.checked=!0})),_t.length=mt=pt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":it&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,i=[],n=this.el.children,e=0,o=n.length,r=this.options;e<o;e++)I(t=n[e],r.draggable,this.el,!1)&&i.push(t.getAttribute(r.dataIdAttr)||Vt(t));return i},sort:function(t,i){var n={},e=this.el;this.toArray().forEach((function(t,i){var o=e.children[i];I(o,this.options.draggable,e,!1)&&(n[t]=o)}),this),i&&this.captureAnimationState(),t.forEach((function(t){n[t]&&(e.removeChild(n[t]),e.appendChild(n[t]))})),i&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return I(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var n=this.options;if(void 0===i)return n[t];var e=q.modifyOption(this,t,i);n[t]=void 0!==e?e:i,"group"===t&&Ht(n)},destroy:function(){Q("destroy",this);var t=this.el;t[$]=null,O(t,"mousedown",this._onTapStart),O(t,"touchstart",this._onTapStart),O(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(t,"dragover",this),O(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),It.splice(It.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ut){if(Q("hideClone",this),Ut.eventCanceled)return;D(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),ut=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ut){if(Q("showClone",this),Ut.eventCanceled)return;it.parentNode!=ot||this.options.group.revertClone?rt?ot.insertBefore(at,rt):ot.appendChild(at):ot.insertBefore(at,it),this.options.group.revertClone&&this.animate(it,at),D(at,"display",""),ut=!1}}else this._hideClone()}},zt&&T(document,"touchmove",(function(t){(Ut.active||kt)&&t.cancelable&&t.preventDefault()})),Ut.utils={on:T,off:O,css:D,find:z,is:function(t,i){return!!I(t,i,t,!1)},extend:function(t,i){if(t&&i)for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n]);return t},throttle:K,closest:I,toggleClass:C,clone:X,index:H,nextTick:Zt,cancelNextTick:qt,detectDirection:Bt,getChild:F,expando:$},Ut.get=function(t){return t[$]},Ut.mount=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];i[0].constructor===Array&&(i=i[0]),i.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ut.utils=d(d({},Ut.utils),t.utils)),q.mount(t)}))},Ut.create=function(t,i){return new Ut(t,i)},Ut.version="1.15.6";var Jt,Qt,ti,ii,ni,ei,oi=[],ri=!1;function si(){oi.forEach((function(t){clearInterval(t.pid)})),oi=[]}function ai(){clearInterval(ei)}var ui=K((function(t,i,n,e){if(i.scroll){var o,r=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,a=i.scrollSensitivity,u=i.scrollSpeed,l=R(),c=!1;Qt!==n&&(Qt=n,si(),o=i.scrollFn,!0===(Jt=i.scroll)&&(Jt=G(n,!0)));var h=0,d=Jt;do{var f=d,v=L(f),b=v.top,g=v.bottom,m=v.left,p=v.right,w=v.width,x=v.height,y=void 0,E=void 0,S=f.scrollWidth,T=f.scrollHeight,O=D(f),k=f.scrollLeft,M=f.scrollTop;f===l?(y=w<S&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),E=x<T&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(y=w<S&&("auto"===O.overflowX||"scroll"===O.overflowX),E=x<T&&("auto"===O.overflowY||"scroll"===O.overflowY));var I=y&&(Math.abs(p-r)<=a&&k+w<S)-(Math.abs(m-r)<=a&&!!k),j=E&&(Math.abs(g-s)<=a&&M+x<T)-(Math.abs(b-s)<=a&&!!M);if(!oi[h])for(var A=0;A<=h;A++)oi[A]||(oi[A]={});oi[h].vx==I&&oi[h].vy==j&&oi[h].el===f||(oi[h].el=f,oi[h].vx=I,oi[h].vy=j,clearInterval(oi[h].pid),0==I&&0==j||(c=!0,oi[h].pid=setInterval(function(){e&&0===this.layer&&Ut.active._onTouchMove(ni);var i=oi[this.layer].vy?oi[this.layer].vy*u:0,n=oi[this.layer].vx?oi[this.layer].vx*u:0;"function"==typeof o&&"continue"!==o.call(Ut.dragged.parentNode[$],n,i,t,ni,oi[this.layer].el)||U(oi[this.layer].el,n,i)}.bind({layer:h}),24))),h++}while(i.bubbleScroll&&d!==l&&(d=G(d,!1)));ri=c}}),30),li=function(t){var i=t.originalEvent,n=t.putSortable,e=t.dragEl,o=t.dispatchSortableEvent,r=t.unhideGhostForTarget;if(i){var s=n||t.activeSortable;(0,t.hideGhostForTarget)();var a=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,u=document.elementFromPoint(a.clientX,a.clientY);r(),s&&!s.el.contains(u)&&(o("spill"),this.onSpill({dragEl:e,putSortable:n}))}};function ci(){}function hi(){}ci.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var i=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var e=F(this.sortable.el,this.startIndex,this.options);e?this.sortable.el.insertBefore(i,e):this.sortable.el.appendChild(i),this.sortable.animateAll(),n&&n.animateAll()},drop:li},b(ci,{pluginName:"revertOnSpill"}),hi.prototype={onSpill:function(t){var i=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),n.animateAll()},drop:li},b(hi,{pluginName:"removeOnSpill"}),Ut.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var i=t.originalEvent;this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):T(document,this.options.supportPointer?"pointermove":i.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var i=t.originalEvent;this.options.dragOverBubble||i.rootEl||this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),ai(),si(),clearTimeout(j),j=void 0},nulling:function(){ni=Qt=Jt=ri=ei=ti=ii=null,oi.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,i){var n=this,e=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(e,o);if(ni=t,i||this.options.forceAutoScrollFallback||p||m||x){ui(t,this.options,r,i);var s=G(r,!0);!ri||ei&&e===ti&&o===ii||(ei&&ai(),ei=setInterval((function(){var r=G(document.elementFromPoint(e,o),!0);r!==s&&(s=r,si()),ui(t,n.options,r,i)}),10),ti=e,ii=o)}else{if(!this.options.bubbleScroll||G(r,!0)===R())return void si();ui(t,this.options,G(r,!1),!1)}}},b(t,{pluginName:"scroll",initializeByDefault:!0})}),Ut.mount(hi,ci);const di=class{constructor(n){t(this,n),this.newTab=i(this,"newTab",7),this.sortChanged=i(this,"sortChanged",7),this.showNewTabButton=!0,this.tabLimit=1/0,this.allowSort=!0,this.focused=0,this.disableAddTabButton=!1,this.tabTriggers=void 0,this.hasScrollbar=!1,this.keyboardSort=!1,this.initialSortIndex=0,this.sortTarget=void 0,this.ariaLiveAlert=""}onFocusin(t){this.allowSort&&a(".gux-tablist",t)&&!this.keyboardSort&&(this.ariaLiveAlert="toggleSort")}onFocusout(t){this.root.querySelector(".gux-tablist").contains(t.relatedTarget)||this.tabTriggers.forEach(((t,i)=>{t.guxGetActive().then((n=>{n?this.focused=i:(t.querySelector(".gux-tab-button").setAttribute("tabindex","-1"),t.querySelector(".gux-tab-options-button")&&t.querySelector(".gux-tab-options-button").setAttribute("tabindex","-1"))}))}))}watchAllowSort(t){t?this.validateSortableInstance():this.destroySortable()}onMutation(){this.setTabTriggers()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":if(t.preventDefault(),this.keyboardSort&&!a(".gux-tab-options-button",t)){this.ariaLiveAlert="";const t=this.root.querySelector(".gux-tablist"),i=t.querySelectorAll("gux-tab-advanced"),n=Array.prototype.indexOf.call(i,this.sortTarget);let e;e=n===i.length-1?i[0]:i[n+2],t.insertBefore(this.sortTarget,e),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.focused)}else a(".gux-tab-options-button",t)||a(".gux-dropdown-option-container",t)||this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":if(t.preventDefault(),this.keyboardSort&&!a(".gux-tab-options-button",t)){this.ariaLiveAlert="";const t=this.root.querySelector(".gux-tablist"),i=t.querySelectorAll("gux-tab-advanced"),n=Array.prototype.indexOf.call(i,this.sortTarget);t.insertBefore(this.sortTarget,i[n-1]||null),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.focused)}else a(".gux-tab-options-button",t)||a(".gux-dropdown-option-container",t)||this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.keyboardSort&&this.allowSort&&(this.keyboardSort=!1,this.ariaLiveAlert="sortCancelled",this.root.querySelector(".gux-tablist").insertBefore(this.sortTarget,this.tabTriggers[this.initialSortIndex]||null)),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.initialSortIndex),u((()=>{this.focusTab(this.initialSortIndex)}));break;case"Enter":this.keyboardSort&&(t.preventDefault(),this.keyboardSort=!1,this.ariaLiveAlert="sortComplete",this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.focused=i)})),this.emitSortChanged());break;case"Tab":this.keyboardSort&&(this.keyboardSort=!1,this.ariaLiveAlert="sortCancelled");break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onKeyup(t){" "===t.key&&a(".gux-tab",t)&&!a(".gux-tab-options-button",t)&&!a("gux-popover-list",t)&&this.allowSort&&(t.preventDefault(),!0===this.keyboardSort?(this.keyboardSort=!1,this.ariaLiveAlert="sortComplete",this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.focused),this.emitSortChanged()):(this.keyboardSort=!0,this.sortTarget=t.target.closest("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var n;t.tabId===(null===(n=this.sortTarget)||void 0===n?void 0:n.getAttribute("tab-id"))&&(this.initialSortIndex=i)})),this.ariaLiveAlert="sortModeOn"))}async guxSetActive(t){this.tabTriggers.forEach(((i,n)=>{const e=i.tabId===t;i.guxSetActive(e),e&&(this.focused=n)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach(((t,i)=>{t.guxGetActive().then((n=>{this.focused===i||n||(t.querySelector(".gux-tab-button").setAttribute("tabindex","-1"),t.querySelector(".gux-tab-options-button")&&t.querySelector(".gux-tab-options-button").setAttribute("tabindex","-1"))}))})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].querySelector(".gux-tab-options-button")&&this.tabTriggers[this.focused].querySelector(".gux-tab-options-button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}createSortable(){this.sortableInstance=new Ut(this.root.querySelector(".gux-tablist"),{animation:250,draggable:"gux-tab-advanced",filter:".ignore-sort",onMove:t=>!t.related.classList.contains("ignore-sort"),onUpdate:()=>{this.emitSortChanged()}})}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}emitSortChanged(){const t=Array.from(this.root.querySelectorAll("gux-tab-advanced")).map((t=>t.tabId));this.sortChanged.emit(t)}checkForScrollbarHideOrShow(){n((()=>{const t=this.root.querySelector(".gux-scrollable-section"),i=t.clientWidth<t.scrollWidth;i!==this.hasScrollbar&&(this.hasScrollbar=i)}))}handleKeyboardScroll(t){"forward"===t?this.focused<this.tabTriggers.length-1?(this.hasScrollbar&&this.scrollRight(),this.focusTab(this.focused+1)):(this.hasScrollbar&&this.scrollToStart(),this.focusTab(0)):"backward"===t&&(this.focused>0?(this.hasScrollbar&&this.scrollLeft(),this.focusTab(this.focused-1)):(this.hasScrollbar&&this.scrollToEnd(),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.sortableInstance&&this.destroySortable(),this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await l(this.root,c,"gux-tabs-advanced")}validateSortableInstance(){this.allowSort&&!this.sortableInstance&&this.createSortable()}componentDidLoad(){this.validateSortableInstance(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),u((()=>{this.checkForScrollbarHideOrShow()}),500)}scrollLeft(){e((()=>{var t;this.root.querySelector(".gux-scrollable-section").scrollBy(-(null===(t=this.root.querySelector("gux-tab-advanced"))||void 0===t?void 0:t.scrollWidth),0)}))}scrollRight(){e((()=>{var t;this.root.querySelector(".gux-scrollable-section").scrollBy(null===(t=this.root.querySelector("gux-tab-advanced"))||void 0===t?void 0:t.scrollWidth,0)}))}scrollToStart(){const t=this.root.querySelector(".gux-scrollable-section");e((()=>{null==t||t.scrollBy(-(null==t?void 0:t.scrollWidth),0)}))}scrollToEnd(){const t=this.root.querySelector(".gux-scrollable-section");e((()=>{t.scrollBy(null==t?void 0:t.scrollWidth,0)}))}componentWillRender(){const t=Array.from(this.root.querySelectorAll("gux-tab-advanced"));this.disableAddTabButton=t.length>=this.tabLimit}render(){return[this.renderAlert(),o("div",{key:"e9b9aedcbef480914c52a7f91c3822c1e9eb572e",class:"gux-tab-container"},this.renderScrollButton("scrollLeft"),o("div",{key:"abc6d5227defc6371dd229a2e982b270423f419e",class:"gux-scrollable-section"},o("div",{key:"e04ad66453eba2c7e6969fc2590e427c5102e382",class:"gux-tablist",role:"tablist","data-gux-tab-sorting":this.keyboardSort,"aria-owns":this.triggerIds},o("slot",{key:"efdfbeb4834b3360e3bc571eecf224ed3327e577"}))),this.renderScrollButton("scrollRight"),this.renderAddButton())]}renderAlert(){return o("div",{class:"gux-sr-only gux-aria-live-region","aria-live":"polite"},this.ariaLiveAlert?this.i18n(this.ariaLiveAlert):"")}renderAddButton(){return o("div",null,this.showNewTabButton?o("gux-button-slot",{accent:"ghost"},o("button",{onClick:()=>this.newTab.emit(),disabled:this.disableAddTabButton},o("slot",{name:"add-tab"},o("gux-icon",{size:"small","icon-name":"fa/plus-regular","screenreader-text":this.disableAddTabButton?this.i18n("disableNewTab"):this.root.querySelector('[slot="add-tab"]')?this.root.querySelector('[slot="add-tab"]').textContent.trim():this.i18n("createNewTab")})))):null)}renderScrollButton(t){return o("div",null,this.hasScrollbar?o("gux-button-slot",{class:"gux-scroll-button",accent:"ghost","icon-only":!0},o("button",{tabindex:"-1",onDragOver:()=>this.getScrollDirection(t),onClick:()=>this.getScrollDirection(t)},o("gux-icon",{size:"small","icon-name":this.getChevronIconName(t),"screenreader-text":this.i18n(t)}))):null)}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight()}}getChevronIconName(t){switch(t){case"scrollLeft":return"fa/chevron-left-regular";case"scrollRight":return"fa/chevron-right-regular"}}get root(){return r(this)}static get watchers(){return{allowSort:["watchAllowSort"]}}};(function(t,i,n,e){var o,r=arguments.length,s=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,n):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(i,n,s):o(i,n))||s);r>3&&s&&Object.defineProperty(i,n,s)})([s({childList:!0,subtree:!0})],di.prototype,"onMutation",null),di.style=".gux-tab-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;inline-size:100%;background-color:var(--gse-ui-advancedTabs-set-backgroundColor)}.gux-tab-container button{block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-paddingIconOnly);border-radius:var(--gse-ui-button-borderRadius)}.gux-tab-container [slot=add-tab]{display:flex;align-items:center;justify-content:center}.gux-tab-container .gux-scrollable-section{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;border-block-end:var(--gse-ui-advancedTabs-item-divider-border-width) var(--gse-ui-advancedTabs-item-divider-border-style) var(--gse-ui-advancedTabs-item-divider-border-color);scroll-behavior:smooth}.gux-tab-container .gux-scrollable-section::-webkit-scrollbar{block-size:0}.gux-tab-container .gux-scrollable-section .gux-tablist{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{di as gux_tab_advanced_list}
|