@pine-ds/core 4.1.0 → 4.3.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/components/index.d.ts +8 -0
- package/components/index.js +1 -1
- package/components/mock-pds-modal.js +1 -1
- package/components/pds-button2.js +1 -1
- package/components/pds-checkbox2.js +1 -1
- package/components/pds-chip2.js +1 -1
- package/components/pds-combobox.js +1 -1
- package/components/pds-copytext.js +1 -1
- package/components/pds-drawer-content.d.ts +11 -0
- package/components/pds-drawer-content.js +1 -0
- package/components/pds-drawer-footer.d.ts +11 -0
- package/components/pds-drawer-footer.js +1 -0
- package/components/pds-drawer-header.d.ts +11 -0
- package/components/pds-drawer-header.js +1 -0
- package/components/pds-drawer.d.ts +11 -0
- package/components/pds-drawer.js +1 -0
- package/components/pds-dropdown-menu-item.js +1 -1
- package/components/pds-dropdown-menu-separator.js +1 -1
- package/components/pds-dropdown-menu.js +1 -1
- package/components/pds-filter.js +1 -1
- package/components/pds-filters.js +1 -1
- package/components/pds-icon2.js +1 -1
- package/components/pds-image.js +1 -1
- package/components/pds-input.js +1 -1
- package/components/pds-link2.js +1 -1
- package/components/pds-loader2.js +1 -1
- package/components/pds-modal-content.js +1 -1
- package/components/pds-modal-footer.js +1 -1
- package/components/pds-modal-header.js +1 -1
- package/components/pds-modal.js +1 -1
- package/components/pds-modal2.js +1 -0
- package/components/pds-multiselect.js +1 -1
- package/components/pds-popover.js +1 -1
- package/components/pds-progress.js +1 -1
- package/components/pds-property.js +1 -1
- package/components/pds-radio-group.js +1 -1
- package/components/pds-radio.js +1 -1
- package/components/pds-row.js +1 -1
- package/components/pds-select.js +1 -1
- package/components/pds-sortable-item.js +1 -1
- package/components/pds-sortable.js +2 -2
- package/components/pds-switch.js +1 -1
- package/components/pds-table-body.js +1 -1
- package/components/pds-table-cell2.js +1 -1
- package/components/pds-table-head-cell2.js +1 -1
- package/components/pds-table-head.js +1 -1
- package/components/pds-table-row.js +1 -1
- package/components/pds-tabpanel.js +1 -1
- package/components/pds-tabs.js +1 -1
- package/components/pds-text2.js +1 -1
- package/components/pds-textarea.js +1 -1
- package/components/pds-toast.js +1 -1
- package/components/pds-tooltip.js +1 -1
- package/components/truncation-tooltip.js +1 -1
- package/dist/cjs/{index-CuQil7H0.js → index-CaLa1zy9.js} +1 -1
- package/dist/cjs/{index-BMV0nzMk.js → index-DYvijwA6.js} +1 -1
- package/dist/cjs/index.cjs.js +20 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mock-pds-modal.cjs.entry.js +3 -3
- package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
- package/dist/cjs/pds-alert.cjs.entry.js +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
- package/dist/cjs/pds-box.cjs.entry.js +2 -2
- package/dist/cjs/pds-button.cjs.entry.js +4 -4
- package/dist/cjs/pds-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/pds-chip.cjs.entry.js +46 -12
- package/dist/cjs/pds-combobox.cjs.entry.js +3 -3
- package/dist/cjs/pds-container.cjs.entry.js +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +8 -4
- package/dist/cjs/pds-divider.cjs.entry.js +1 -1
- package/dist/cjs/pds-drawer-content.cjs.entry.js +23 -0
- package/dist/cjs/pds-drawer-footer.cjs.entry.js +23 -0
- package/dist/cjs/pds-drawer-header.cjs.entry.js +23 -0
- package/dist/cjs/pds-drawer.cjs.entry.js +137 -0
- package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +2 -2
- package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/pds-filter.cjs.entry.js +3 -3
- package/dist/cjs/pds-filters.cjs.entry.js +2 -2
- package/dist/cjs/pds-icon.cjs.entry.js +2 -2
- package/dist/cjs/pds-image.cjs.entry.js +3 -3
- package/dist/cjs/pds-input.cjs.entry.js +5 -5
- package/dist/cjs/pds-link.cjs.entry.js +5 -5
- package/dist/cjs/pds-loader.cjs.entry.js +2 -2
- package/dist/cjs/pds-modal-content.cjs.entry.js +3 -3
- package/dist/cjs/pds-modal-footer.cjs.entry.js +2 -2
- package/dist/cjs/pds-modal-header.cjs.entry.js +2 -2
- package/dist/cjs/pds-modal.cjs.entry.js +173 -14
- package/dist/cjs/pds-multiselect.cjs.entry.js +6 -6
- package/dist/cjs/pds-popover.cjs.entry.js +2 -2
- package/dist/cjs/pds-progress.cjs.entry.js +4 -2
- package/dist/cjs/pds-property.cjs.entry.js +2 -2
- package/dist/cjs/pds-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/pds-radio.cjs.entry.js +6 -6
- package/dist/cjs/pds-row.cjs.entry.js +2 -2
- package/dist/cjs/pds-select.cjs.entry.js +3 -3
- package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
- package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
- package/dist/cjs/pds-switch.cjs.entry.js +6 -6
- package/dist/cjs/pds-tab.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-cell.cjs.entry.js +4 -4
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -4
- package/dist/cjs/pds-table-head.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-row.cjs.entry.js +2 -2
- package/dist/cjs/pds-table.cjs.entry.js +1 -1
- package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
- package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
- package/dist/cjs/pds-text.cjs.entry.js +7 -25
- package/dist/cjs/pds-textarea.cjs.entry.js +7 -7
- package/dist/cjs/pds-toast.cjs.entry.js +4 -4
- package/dist/cjs/pds-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/pine-core.cjs.js +2 -2
- package/dist/cjs/{truncation-tooltip-CVzAha5B.js → truncation-tooltip-Bps7_rUy.js} +51 -1
- package/dist/cjs/{utils-7jx8T2mW.js → utils-KWALOgy9.js} +16 -2
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/pds-button/pds-button.css +1 -2
- package/dist/collection/components/pds-checkbox/pds-checkbox.css +6 -4
- package/dist/collection/components/pds-chip/pds-chip.css +60 -6
- package/dist/collection/components/pds-chip/pds-chip.js +82 -8
- package/dist/collection/components/pds-chip/pds-chip.tokens.css +16 -0
- package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +39 -1
- package/dist/collection/components/pds-combobox/pds-combobox.css +1 -2
- package/dist/collection/components/pds-combobox/pds-combobox.js +1 -1
- package/dist/collection/components/pds-copytext/pds-copytext.js +5 -1
- package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.css +22 -0
- package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.js +29 -0
- package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.css +15 -0
- package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.js +23 -0
- package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.css +15 -0
- package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.js +23 -0
- package/dist/collection/components/pds-drawer/pds-drawer.css +36 -0
- package/dist/collection/components/pds-drawer/pds-drawer.js +362 -0
- package/dist/collection/components/pds-drawer/stories/pds-drawer.stories.js +72 -0
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +1 -1
- package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +1 -1
- package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +1 -1
- package/dist/collection/components/pds-filters/pds-filters.js +1 -1
- package/dist/collection/components/pds-image/pds-image.js +2 -2
- package/dist/collection/components/pds-input/pds-input.js +2 -2
- package/dist/collection/components/pds-link/pds-link.js +2 -2
- package/dist/collection/components/pds-loader/pds-loader.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
- package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
- package/dist/collection/components/pds-modal/pds-modal.css +4 -0
- package/dist/collection/components/pds-modal/pds-modal.js +209 -16
- package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +14 -0
- package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
- package/dist/collection/components/pds-multiselect/pds-multiselect.js +3 -3
- package/dist/collection/components/pds-popover/pds-popover.js +1 -1
- package/dist/collection/components/pds-progress/pds-progress.js +3 -1
- package/dist/collection/components/pds-property/pds-property.js +1 -1
- package/dist/collection/components/pds-radio/pds-radio.css +1 -2
- package/dist/collection/components/pds-radio/pds-radio.js +3 -3
- package/dist/collection/components/pds-radio-group/pds-radio-group.js +3 -3
- package/dist/collection/components/pds-row/pds-row.js +1 -1
- package/dist/collection/components/pds-select/pds-select.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
- package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
- package/dist/collection/components/pds-switch/pds-switch.css +1 -1
- package/dist/collection/components/pds-switch/pds-switch.js +3 -3
- package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +3 -3
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
- package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
- package/dist/collection/components/pds-text/pds-text.js +2 -2
- package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
- package/dist/collection/components/pds-toast/pds-toast.js +3 -3
- package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/test/reduced-motion.js +78 -0
- package/dist/collection/utils/truncation-tooltip.js +51 -1
- package/dist/collection/utils/utils.js +16 -2
- package/dist/docs.json +492 -15
- package/dist/esm/{index-Bu9gFIxM.js → index-BU1hN5Vy.js} +1 -1
- package/dist/esm/{index-CTLu1TM4.js → index-DcT8--Dn.js} +1 -1
- package/dist/esm/index.js +19 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mock-pds-modal.entry.js +3 -3
- package/dist/esm/pds-accordion.entry.js +2 -2
- package/dist/esm/pds-alert.entry.js +1 -1
- package/dist/esm/pds-avatar.entry.js +2 -2
- package/dist/esm/pds-box.entry.js +2 -2
- package/dist/esm/pds-button.entry.js +4 -4
- package/dist/esm/pds-checkbox.entry.js +3 -3
- package/dist/esm/pds-chip.entry.js +46 -12
- package/dist/esm/pds-combobox.entry.js +3 -3
- package/dist/esm/pds-container.entry.js +1 -1
- package/dist/esm/pds-copytext.entry.js +8 -4
- package/dist/esm/pds-divider.entry.js +1 -1
- package/dist/esm/pds-drawer-content.entry.js +21 -0
- package/dist/esm/pds-drawer-footer.entry.js +21 -0
- package/dist/esm/pds-drawer-header.entry.js +21 -0
- package/dist/esm/pds-drawer.entry.js +135 -0
- package/dist/esm/pds-dropdown-menu-item.entry.js +2 -2
- package/dist/esm/pds-dropdown-menu-separator.entry.js +2 -2
- package/dist/esm/pds-dropdown-menu.entry.js +2 -2
- package/dist/esm/pds-filter.entry.js +3 -3
- package/dist/esm/pds-filters.entry.js +2 -2
- package/dist/esm/pds-icon.entry.js +2 -2
- package/dist/esm/pds-image.entry.js +3 -3
- package/dist/esm/pds-input.entry.js +5 -5
- package/dist/esm/pds-link.entry.js +5 -5
- package/dist/esm/pds-loader.entry.js +2 -2
- package/dist/esm/pds-modal-content.entry.js +3 -3
- package/dist/esm/pds-modal-footer.entry.js +2 -2
- package/dist/esm/pds-modal-header.entry.js +2 -2
- package/dist/esm/pds-modal.entry.js +173 -14
- package/dist/esm/pds-multiselect.entry.js +6 -6
- package/dist/esm/pds-popover.entry.js +2 -2
- package/dist/esm/pds-progress.entry.js +4 -2
- package/dist/esm/pds-property.entry.js +2 -2
- package/dist/esm/pds-radio-group.entry.js +5 -5
- package/dist/esm/pds-radio.entry.js +6 -6
- package/dist/esm/pds-row.entry.js +2 -2
- package/dist/esm/pds-select.entry.js +3 -3
- package/dist/esm/pds-sortable-item.entry.js +3 -3
- package/dist/esm/pds-sortable.entry.js +2 -2
- package/dist/esm/pds-switch.entry.js +6 -6
- package/dist/esm/pds-tab.entry.js +1 -1
- package/dist/esm/pds-table-body.entry.js +2 -2
- package/dist/esm/pds-table-cell.entry.js +4 -4
- package/dist/esm/pds-table-head-cell.entry.js +4 -4
- package/dist/esm/pds-table-head.entry.js +2 -2
- package/dist/esm/pds-table-row.entry.js +2 -2
- package/dist/esm/pds-table.entry.js +1 -1
- package/dist/esm/pds-tabpanel.entry.js +2 -2
- package/dist/esm/pds-tabs.entry.js +2 -2
- package/dist/esm/pds-text.entry.js +5 -23
- package/dist/esm/pds-textarea.entry.js +7 -7
- package/dist/esm/pds-toast.entry.js +4 -4
- package/dist/esm/pds-tooltip.entry.js +3 -3
- package/dist/esm/pine-core.js +3 -3
- package/dist/esm/{truncation-tooltip-Blk4GigP.js → truncation-tooltip-CdtEBn_5.js} +51 -1
- package/dist/esm/{utils-tJa4KYNO.js → utils-u_0lxWnH.js} +16 -2
- package/dist/esm-es5/{index-CTLu1TM4.js → index-DcT8--Dn.js} +2 -2
- package/dist/esm-es5/index.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-alert.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-combobox.entry.js +2 -2
- package/dist/esm-es5/pds-container.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-divider.entry.js +1 -1
- package/dist/esm-es5/pds-drawer-content.entry.js +1 -0
- package/dist/esm-es5/pds-drawer-footer.entry.js +1 -0
- package/dist/esm-es5/pds-drawer-header.entry.js +1 -0
- package/dist/esm-es5/pds-drawer.entry.js +1 -0
- package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
- package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/pds-filter.entry.js +1 -1
- package/dist/esm-es5/pds-filters.entry.js +1 -1
- package/dist/esm-es5/pds-icon.entry.js +1 -1
- package/dist/esm-es5/pds-image.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js +1 -1
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-loader.entry.js +1 -1
- package/dist/esm-es5/pds-modal-content.entry.js +1 -1
- package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
- package/dist/esm-es5/pds-modal-header.entry.js +1 -1
- package/dist/esm-es5/pds-modal.entry.js +1 -1
- package/dist/esm-es5/pds-multiselect.entry.js +1 -1
- package/dist/esm-es5/pds-popover.entry.js +1 -1
- package/dist/esm-es5/pds-progress.entry.js +1 -1
- package/dist/esm-es5/pds-property.entry.js +1 -1
- package/dist/esm-es5/pds-radio-group.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-select.entry.js +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-sortable.entry.js +2 -2
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-tab.entry.js +1 -1
- package/dist/esm-es5/pds-table-body.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head.entry.js +1 -1
- package/dist/esm-es5/pds-table-row.entry.js +1 -1
- package/dist/esm-es5/pds-table.entry.js +1 -1
- package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
- package/dist/esm-es5/pds-tabs.entry.js +1 -1
- package/dist/esm-es5/pds-text.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-toast.entry.js +1 -1
- package/dist/esm-es5/pds-tooltip.entry.js +1 -1
- package/dist/esm-es5/pine-core.js +1 -1
- package/dist/esm-es5/truncation-tooltip-CdtEBn_5.js +1 -0
- package/dist/pine-core/index.esm.js +1 -0
- package/dist/pine-core/p-003df3b3.entry.js +1 -0
- package/dist/pine-core/{p-92ef1608.system.entry.js → p-02452806.system.entry.js} +1 -1
- package/dist/pine-core/{p-5d585aa8.entry.js → p-026ee6de.entry.js} +1 -1
- package/dist/pine-core/{p-463eb0e6.system.entry.js → p-03f3fc92.system.entry.js} +1 -1
- package/dist/pine-core/p-06375326.system.entry.js +1 -0
- package/dist/pine-core/p-08196d6c.entry.js +1 -0
- package/dist/pine-core/{p-bf3afa16.system.entry.js → p-089606b8.system.entry.js} +1 -1
- package/dist/pine-core/p-12941e0d.entry.js +1 -0
- package/dist/pine-core/{p-3b9e77b3.entry.js → p-13bb89ff.entry.js} +1 -1
- package/dist/pine-core/{p-1649dd61.system.entry.js → p-15a0fa0a.system.entry.js} +1 -1
- package/dist/pine-core/{p-3050c66f.entry.js → p-1abae35f.entry.js} +1 -1
- package/dist/pine-core/p-1df5e088.entry.js +1 -0
- package/dist/pine-core/{p-460aa66f.system.entry.js → p-20753e42.system.entry.js} +1 -1
- package/dist/pine-core/{p-12ec8186.system.entry.js → p-24214ab9.system.entry.js} +1 -1
- package/dist/pine-core/p-250011ba.entry.js +1 -0
- package/dist/pine-core/{p-9b68669f.entry.js → p-2b420257.entry.js} +1 -1
- package/dist/pine-core/{p-86bc2a0c.entry.js → p-2bb101c2.entry.js} +1 -1
- package/dist/pine-core/{p-6089d811.entry.js → p-2dbc90ba.entry.js} +1 -1
- package/dist/pine-core/{p-2fd71a0c.entry.js → p-317337e4.entry.js} +1 -1
- package/dist/pine-core/{p-a9e54964.entry.js → p-32fc82c2.entry.js} +1 -1
- package/dist/pine-core/{p-714bfdbd.entry.js → p-35edd8b0.entry.js} +1 -1
- package/dist/pine-core/p-375eb7f4.entry.js +1 -0
- package/dist/pine-core/{p-e1653d75.system.entry.js → p-3b555f06.system.entry.js} +1 -1
- package/dist/pine-core/p-3b796898.entry.js +1 -0
- package/dist/pine-core/{p-c0753d9f.entry.js → p-3c5489ce.entry.js} +1 -1
- package/dist/pine-core/{p-8702635d.system.entry.js → p-3e868906.system.entry.js} +1 -1
- package/dist/pine-core/{p-eb4058ed.system.entry.js → p-441682f4.system.entry.js} +1 -1
- package/dist/pine-core/{p-7b1e3e91.entry.js → p-44222439.entry.js} +1 -1
- package/dist/pine-core/p-45d55983.entry.js +1 -0
- package/dist/pine-core/{p-544ccf67.entry.js → p-464f23e6.entry.js} +1 -1
- package/dist/pine-core/{p-aecaff12.entry.js → p-49c6112a.entry.js} +1 -1
- package/dist/pine-core/p-4bd57896.system.entry.js +1 -0
- package/dist/pine-core/{p-b0531455.entry.js → p-4cbb691f.entry.js} +1 -1
- package/dist/pine-core/{p-46f0dda5.system.entry.js → p-4ebdb90b.system.entry.js} +1 -1
- package/dist/pine-core/{p-b109de2e.entry.js → p-4f5aacd9.entry.js} +1 -1
- package/dist/pine-core/{p-9187c26c.system.entry.js → p-55532d56.system.entry.js} +1 -1
- package/dist/pine-core/{p-f35596cd.entry.js → p-558ac401.entry.js} +1 -1
- package/dist/pine-core/{p-c09dab1a.system.entry.js → p-57784f2f.system.entry.js} +1 -1
- package/dist/pine-core/p-5a8345e2.entry.js +1 -0
- package/dist/pine-core/{p-4923a3fe.entry.js → p-5c5bd609.entry.js} +1 -1
- package/dist/pine-core/p-5d2f95bd.entry.js +1 -0
- package/dist/pine-core/p-5f3d0c86.system.entry.js +1 -0
- package/dist/pine-core/{p-a3c4c0ee.entry.js → p-5f5339ab.entry.js} +1 -1
- package/dist/pine-core/{p-bfa640f4.system.entry.js → p-67fc26e5.system.entry.js} +1 -1
- package/dist/pine-core/p-6a6a767b.system.entry.js +1 -0
- package/dist/pine-core/p-6b260a97.entry.js +1 -0
- package/dist/pine-core/{p-d804d37b.system.entry.js → p-6b3d8c2b.system.entry.js} +1 -1
- package/dist/pine-core/p-6dabeebc.system.entry.js +3 -0
- package/dist/pine-core/{p-d157a33a.entry.js → p-70891202.entry.js} +1 -1
- package/dist/pine-core/p-70fb83d4.entry.js +1 -0
- package/dist/pine-core/{p-7a1971ec.entry.js → p-73c3a73f.entry.js} +1 -1
- package/dist/pine-core/p-73fa955a.system.entry.js +1 -0
- package/dist/pine-core/p-755e0b3c.system.entry.js +1 -0
- package/dist/pine-core/p-77082557.system.entry.js +1 -0
- package/dist/pine-core/{p-65557500.entry.js → p-7e4729e0.entry.js} +1 -1
- package/dist/pine-core/p-8b051229.entry.js +1 -0
- package/dist/pine-core/{p-c713ffc6.system.entry.js → p-8d1e7b3c.system.entry.js} +1 -1
- package/dist/pine-core/{p-63f5f66f.system.entry.js → p-8d8a8550.system.entry.js} +1 -1
- package/dist/pine-core/{p-2d4b9253.entry.js → p-93486f2e.entry.js} +1 -1
- package/dist/pine-core/{p-b255d3b7.entry.js → p-93ae562d.entry.js} +1 -1
- package/dist/pine-core/{p-ce79321b.system.entry.js → p-93c52e2b.system.entry.js} +1 -1
- package/dist/pine-core/{p-08151143.system.entry.js → p-95b8bece.system.entry.js} +1 -1
- package/dist/pine-core/{p-af4a24d9.entry.js → p-95defb53.entry.js} +1 -1
- package/dist/pine-core/{p-92c79ed4.system.entry.js → p-99f300ef.system.entry.js} +1 -1
- package/dist/pine-core/p-9d77f2f8.system.entry.js +1 -0
- package/dist/pine-core/p-9d902000.system.entry.js +1 -0
- package/dist/pine-core/p-9ef355b7.entry.js +1 -0
- package/dist/pine-core/p-B2nn1gSd.js +1 -0
- package/dist/pine-core/{p-CRCxGYgw.system.js → p-B2qvvB3q.system.js} +1 -1
- package/dist/pine-core/p-BI7Ml0VF.system.js +1 -0
- package/dist/pine-core/p-CJ8t3EBJ.system.js +2 -0
- package/dist/pine-core/p-DcT8--Dn.js +2 -0
- package/dist/pine-core/p-G3CPPJEt.system.js +1 -0
- package/dist/pine-core/p-a009ab10.system.entry.js +1 -0
- package/dist/pine-core/p-a616385b.system.entry.js +1 -0
- package/dist/pine-core/{p-bba759f8.system.entry.js → p-a6a269da.system.entry.js} +1 -1
- package/dist/pine-core/p-a8cd2ab5.entry.js +1 -0
- package/dist/pine-core/p-a8f1a48d.entry.js +1 -0
- package/dist/pine-core/p-b0becff3.system.entry.js +1 -0
- package/dist/pine-core/p-b45b8f8b.system.entry.js +1 -0
- package/dist/pine-core/{p-e16dfb32.system.entry.js → p-b53d9620.system.entry.js} +1 -1
- package/dist/pine-core/p-b85bb61d.system.entry.js +1 -0
- package/dist/pine-core/{p-ae296598.entry.js → p-b8a5597d.entry.js} +1 -1
- package/dist/pine-core/p-b9a857fc.system.entry.js +1 -0
- package/dist/pine-core/p-bd9b2931.system.entry.js +1 -0
- package/dist/pine-core/p-bdded57a.system.entry.js +1 -0
- package/dist/pine-core/{p-4dad0878.entry.js → p-bf025e38.entry.js} +1 -1
- package/dist/pine-core/{p-0fcda1ec.entry.js → p-c08b1697.entry.js} +1 -1
- package/dist/pine-core/p-c1a65082.entry.js +1 -0
- package/dist/pine-core/p-c1d1befb.system.entry.js +1 -0
- package/dist/pine-core/{p-1e952dbb.entry.js → p-c5b6b545.entry.js} +2 -2
- package/dist/pine-core/{p-ce63f726.system.entry.js → p-c6426e16.system.entry.js} +1 -1
- package/dist/pine-core/{p-d54af26c.system.entry.js → p-cfcb89d1.system.entry.js} +1 -1
- package/dist/pine-core/{p-aa208514.entry.js → p-d33d65f6.entry.js} +1 -1
- package/dist/pine-core/p-d70aa0c7.system.entry.js +1 -0
- package/dist/pine-core/{p-902b3e8b.system.entry.js → p-d9c1ee36.system.entry.js} +1 -1
- package/dist/pine-core/{p-e450eb27.system.entry.js → p-df285ece.system.entry.js} +1 -1
- package/dist/pine-core/{p-04a30a2d.system.entry.js → p-e039ebb6.system.entry.js} +1 -1
- package/dist/pine-core/{p-4d6944aa.entry.js → p-e055c543.entry.js} +1 -1
- package/dist/pine-core/{p-2af19aa7.entry.js → p-e08e4ca7.entry.js} +1 -1
- package/dist/pine-core/p-ea986474.system.entry.js +1 -0
- package/dist/pine-core/{p-afd07d5b.entry.js → p-ec04d4c3.entry.js} +1 -1
- package/dist/pine-core/p-ee114aef.entry.js +1 -0
- package/dist/pine-core/{p-d415bb01.entry.js → p-ee997fbf.entry.js} +2 -2
- package/dist/pine-core/{p-8e6a8a8e.entry.js → p-f1365550.entry.js} +1 -1
- package/dist/pine-core/{p-fcf91f14.system.entry.js → p-f26dcbc2.system.entry.js} +1 -1
- package/dist/pine-core/{p-cf72e9b1.system.entry.js → p-f5cf98be.system.entry.js} +1 -1
- package/dist/pine-core/{p-b17fa86a.system.entry.js → p-f682f08a.system.entry.js} +1 -1
- package/dist/pine-core/p-f89197c9.entry.js +1 -0
- package/dist/pine-core/p-f9f7101e.entry.js +1 -0
- package/dist/pine-core/{p-226232a7.system.entry.js → p-fa2a786d.system.entry.js} +1 -1
- package/dist/pine-core/{p-7c18e9e8.system.entry.js → p-fa8d3155.system.entry.js} +2 -2
- package/dist/pine-core/p-fb774f89.system.entry.js +1 -0
- package/dist/pine-core/{p-ba8bd9dc.system.entry.js → p-fbb72e66.system.entry.js} +1 -1
- package/dist/pine-core/pine-core.css +1 -1
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/pine-core/pine-core.js +1 -1
- package/dist/types/components/pds-chip/pds-chip.d.ts +12 -0
- package/dist/types/components/pds-drawer/pds-drawer-content/pds-drawer-content.d.ts +11 -0
- package/dist/types/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.d.ts +5 -0
- package/dist/types/components/pds-drawer/pds-drawer-header/pds-drawer-header.d.ts +5 -0
- package/dist/types/components/pds-drawer/pds-drawer.d.ts +78 -0
- package/dist/types/components/pds-modal/pds-modal.d.ts +47 -2
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +2 -1
- package/dist/types/components/pds-text/pds-text.d.ts +2 -1
- package/dist/types/components.d.ts +253 -11
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/test/reduced-motion.d.ts +30 -0
- package/dist/types/utils/truncation-tooltip.d.ts +12 -0
- package/dist/types/utils/types.d.ts +2 -1
- package/dist/types/utils/utils.d.ts +16 -1
- package/dist/vscode.html-data.json +169 -6
- package/hydrate/index.js +623 -115
- package/hydrate/index.mjs +623 -115
- package/package.json +7 -3
- package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +0 -1
- package/dist/pine-core/p-056667f0.entry.js +0 -1
- package/dist/pine-core/p-0d73d473.entry.js +0 -1
- package/dist/pine-core/p-0e89a189.entry.js +0 -1
- package/dist/pine-core/p-1ba361cb.entry.js +0 -1
- package/dist/pine-core/p-210f0994.system.entry.js +0 -1
- package/dist/pine-core/p-222ff58e.system.entry.js +0 -1
- package/dist/pine-core/p-228a9068.system.entry.js +0 -1
- package/dist/pine-core/p-2e214db6.entry.js +0 -1
- package/dist/pine-core/p-33de0eb7.system.entry.js +0 -1
- package/dist/pine-core/p-3aec9079.entry.js +0 -1
- package/dist/pine-core/p-3cdc1a5b.entry.js +0 -1
- package/dist/pine-core/p-4faff617.entry.js +0 -1
- package/dist/pine-core/p-50e0f726.system.entry.js +0 -1
- package/dist/pine-core/p-520f7a5b.entry.js +0 -1
- package/dist/pine-core/p-53999cd6.system.entry.js +0 -1
- package/dist/pine-core/p-5c239f0a.entry.js +0 -1
- package/dist/pine-core/p-611f68b7.system.entry.js +0 -1
- package/dist/pine-core/p-7691a875.system.entry.js +0 -3
- package/dist/pine-core/p-85434de8.system.entry.js +0 -1
- package/dist/pine-core/p-897fe88c.entry.js +0 -1
- package/dist/pine-core/p-9487ff20.system.entry.js +0 -1
- package/dist/pine-core/p-9507eb49.system.entry.js +0 -1
- package/dist/pine-core/p-97198cb6.system.entry.js +0 -1
- package/dist/pine-core/p-9a7294e7.system.entry.js +0 -1
- package/dist/pine-core/p-9fd1e8f4.system.entry.js +0 -1
- package/dist/pine-core/p-BNSGedhN.js +0 -1
- package/dist/pine-core/p-CTLu1TM4.js +0 -2
- package/dist/pine-core/p-DAIsVNlL.system.js +0 -2
- package/dist/pine-core/p-Dr-FzkdE.system.js +0 -1
- package/dist/pine-core/p-YWpyar7R.system.js +0 -1
- package/dist/pine-core/p-a53222f7.entry.js +0 -1
- package/dist/pine-core/p-a7eabc0c.system.entry.js +0 -1
- package/dist/pine-core/p-a8ab4d9b.entry.js +0 -1
- package/dist/pine-core/p-b52deffb.entry.js +0 -1
- package/dist/pine-core/p-b6c2090f.system.entry.js +0 -1
- package/dist/pine-core/p-d27ef352.system.entry.js +0 -1
- package/dist/pine-core/p-e11795db.system.entry.js +0 -1
- package/dist/pine-core/p-f09ce49e.entry.js +0 -1
- package/dist/pine-core/p-f3683be8.entry.js +0 -1
- /package/dist/esm-es5/{index-Bu9gFIxM.js → index-BU1hN5Vy.js} +0 -0
- /package/dist/esm-es5/{utils-tJa4KYNO.js → utils-u_0lxWnH.js} +0 -0
- /package/dist/pine-core/{p-Bu9gFIxM.js → p-BU1hN5Vy.js} +0 -0
- /package/dist/pine-core/{p-BG6uGRQj.system.js → p-D_I-k33A.system.js} +0 -0
- /package/dist/pine-core/{p-Bjc6fc_Y.system.js → p-ctdGub9B.system.js} +0 -0
- /package/dist/pine-core/{p-tJa4KYNO.js → p-u_0lxWnH.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{proxyCustomElement as t,HTMLElement as i,createEvent as e,h as o,Host as r,transformTag as n}from"@stencil/core/internal/client";import{i as s,m as a,a as l}from"./form.js";import{c,a as d,o as h,f as p,s as u}from"./floating-ui.dom.js";import{d as b}from"./utils.js";import{d as m}from"./pds-box2.js";import{d as g}from"./pds-chip2.js";import{d as f}from"./pds-icon2.js";import{d as v}from"./pds-loader2.js";
|
|
2
|
-
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:x,setPrototypeOf:_,isFrozen:y,getPrototypeOf:w,getOwnPropertyDescriptor:k}=Object;let{freeze:T,seal:O,create:A}=Object,{apply:S,construct:E}="undefined"!=typeof Reflect&&Reflect;T||(T=function(t){return t}),O||(O=function(t){return t}),S||(S=function(t,i){for(var e=arguments.length,o=Array(e>2?e-2:0),r=2;r<e;r++)o[r-2]=arguments[r];return t.apply(i,o)}),E||(E=function(t){for(var i=arguments.length,e=Array(i>1?i-1:0),o=1;o<i;o++)e[o-1]=arguments[o];return new t(...e)});const C=W(Array.prototype.forEach),z=W(Array.prototype.lastIndexOf),D=W(Array.prototype.pop),P=W(Array.prototype.push),R=W(Array.prototype.splice),L=W(String.prototype.toLowerCase),I=W(String.prototype.toString),F=W(String.prototype.match),M=W(String.prototype.replace),N=W(String.prototype.indexOf),j=W(String.prototype.trim),U=W(Object.prototype.hasOwnProperty),B=W(RegExp.prototype.test),H=function(t){return function(){for(var i=arguments.length,e=Array(i),o=0;o<i;o++)e[o]=arguments[o];return E(t,e)}}(TypeError);function W(t){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];return S(t,i,o)}}function G(t,i){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L;_&&_(t,null);let o=i.length;for(;o--;){let r=i[o];if("string"==typeof r){const t=e(r);t!==r&&(y(i)||(i[o]=t),r=t)}t[r]=!0}return t}function X(t){for(let i=0;i<t.length;i++)U(t,i)||(t[i]=null);return t}function $(t){const i=A(null);for(const[e,o]of x(t))U(t,e)&&(i[e]=Array.isArray(o)?X(o):o&&"object"==typeof o&&o.constructor===Object?$(o):o);return i}function q(t,i){for(;null!==t;){const e=k(t,i);if(e){if(e.get)return W(e.get);if("function"==typeof e.value)return W(e.value)}t=w(t)}return function(){return null}}const K=T(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),V=T(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Y=T(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Z=T(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),J=T(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Q=T(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tt=T(["#text"]),it=T(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),et=T(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ot=T(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rt=T(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nt=O(/\{\{[\w\W]*|[\w\W]*\}\}/gm),st=O(/<%[\w\W]*|[\w\W]*%>/gm),at=O(/\$\{[\w\W]*/gm),lt=O(/^data-[\-\w.\u00B7-\uFFFF]+$/),ct=O(/^aria-[\-\w]+$/),dt=O(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ht=O(/^(?:\w+script|data):/i),pt=O(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ut=O(/^html$/i),bt=O(/^[a-z][.\w]*(-[.\w]+)+$/i);var mt=Object.freeze({__proto__:null,ARIA_ATTR:ct,ATTR_WHITESPACE:pt,CUSTOM_ELEMENT:bt,DATA_ATTR:lt,DOCTYPE_NAME:ut,ERB_EXPR:st,IS_ALLOWED_URI:dt,IS_SCRIPT_OR_DATA:ht,MUSTACHE_EXPR:nt,TMPLIT_EXPR:at});const gt=function(){return"undefined"==typeof window?null:window};var ft=function t(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gt();const e=i=>t(i);if(e.version="3.3.3",e.removed=[],!i||!i.document||9!==i.document.nodeType||!i.Element)return e.isSupported=!1,e;let{document:o}=i;const r=o,n=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:d,NamedNodeMap:h=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:p,DOMParser:u,trustedTypes:b}=i,m=c.prototype,g=q(m,"cloneNode"),f=q(m,"remove"),v=q(m,"nextSibling"),_=q(m,"childNodes"),y=q(m,"parentNode");if("function"==typeof a){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let w,k="";const{implementation:O,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:W}=o,{importNode:X}=r;let nt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof x&&"function"==typeof y&&O&&void 0!==O.createHTMLDocument;const{MUSTACHE_EXPR:st,ERB_EXPR:at,TMPLIT_EXPR:lt,DATA_ATTR:ct,ARIA_ATTR:ht,IS_SCRIPT_OR_DATA:pt,ATTR_WHITESPACE:bt,CUSTOM_ELEMENT:ft}=mt;let{IS_ALLOWED_URI:vt}=mt,xt=null;const _t=G({},[...K,...V,...Y,...J,...tt]);let yt=null;const wt=G({},[...it,...et,...ot,...rt]);let kt=Object.seal(A(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,Ot=null;const At=Object.seal(A(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let St=!0,Et=!0,Ct=!1,zt=!0,Dt=!1,Pt=!0,Rt=!1,Lt=!1,It=!1,Ft=!1,Mt=!1,Nt=!1,jt=!0,Ut=!1,Bt=!0,Ht=!1,Wt={},Gt=null;const Xt=G({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $t=null;const qt=G({},["audio","video","img","source","image","track"]);let Kt=null;const Vt=G({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml";let Qt=Jt,ti=!1,ii=null;const ei=G({},[Yt,Zt,Jt],I);let oi=G({},["mi","mo","mn","ms","mtext"]),ri=G({},["annotation-xml"]);const ni=G({},["title","style","font","a","script"]);let si=null;const ai=["application/xhtml+xml","text/html"];let li=null,ci=null;const di=o.createElement("form"),hi=function(t){return t instanceof RegExp||t instanceof Function},pi=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ci||ci!==t){if(t&&"object"==typeof t||(t={}),t=$(t),si=-1===ai.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,li="application/xhtml+xml"===si?I:L,xt=U(t,"ALLOWED_TAGS")?G({},t.ALLOWED_TAGS,li):_t,yt=U(t,"ALLOWED_ATTR")?G({},t.ALLOWED_ATTR,li):wt,ii=U(t,"ALLOWED_NAMESPACES")?G({},t.ALLOWED_NAMESPACES,I):ei,Kt=U(t,"ADD_URI_SAFE_ATTR")?G($(Vt),t.ADD_URI_SAFE_ATTR,li):Vt,$t=U(t,"ADD_DATA_URI_TAGS")?G($(qt),t.ADD_DATA_URI_TAGS,li):qt,Gt=U(t,"FORBID_CONTENTS")?G({},t.FORBID_CONTENTS,li):Xt,Tt=U(t,"FORBID_TAGS")?G({},t.FORBID_TAGS,li):$({}),Ot=U(t,"FORBID_ATTR")?G({},t.FORBID_ATTR,li):$({}),Wt=!!U(t,"USE_PROFILES")&&t.USE_PROFILES,St=!1!==t.ALLOW_ARIA_ATTR,Et=!1!==t.ALLOW_DATA_ATTR,Ct=t.ALLOW_UNKNOWN_PROTOCOLS||!1,zt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Dt=t.SAFE_FOR_TEMPLATES||!1,Pt=!1!==t.SAFE_FOR_XML,Rt=t.WHOLE_DOCUMENT||!1,Ft=t.RETURN_DOM||!1,Mt=t.RETURN_DOM_FRAGMENT||!1,Nt=t.RETURN_TRUSTED_TYPE||!1,It=t.FORCE_BODY||!1,jt=!1!==t.SANITIZE_DOM,Ut=t.SANITIZE_NAMED_PROPS||!1,Bt=!1!==t.KEEP_CONTENT,Ht=t.IN_PLACE||!1,vt=t.ALLOWED_URI_REGEXP||dt,Qt=t.NAMESPACE||Jt,oi=t.MATHML_TEXT_INTEGRATION_POINTS||oi,ri=t.HTML_INTEGRATION_POINTS||ri,kt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&hi(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(kt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&hi(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(kt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(kt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Dt&&(Et=!1),Mt&&(Ft=!0),Wt&&(xt=G({},tt),yt=A(null),!0===Wt.html&&(G(xt,K),G(yt,it)),!0===Wt.svg&&(G(xt,V),G(yt,et),G(yt,rt)),!0===Wt.svgFilters&&(G(xt,Y),G(yt,et),G(yt,rt)),!0===Wt.mathMl&&(G(xt,J),G(yt,ot),G(yt,rt))),U(t,"ADD_TAGS")||(At.tagCheck=null),U(t,"ADD_ATTR")||(At.attributeCheck=null),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?At.tagCheck=t.ADD_TAGS:(xt===_t&&(xt=$(xt)),G(xt,t.ADD_TAGS,li))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?At.attributeCheck=t.ADD_ATTR:(yt===wt&&(yt=$(yt)),G(yt,t.ADD_ATTR,li))),t.ADD_URI_SAFE_ATTR&&G(Kt,t.ADD_URI_SAFE_ATTR,li),t.FORBID_CONTENTS&&(Gt===Xt&&(Gt=$(Gt)),G(Gt,t.FORBID_CONTENTS,li)),t.ADD_FORBID_CONTENTS&&(Gt===Xt&&(Gt=$(Gt)),G(Gt,t.ADD_FORBID_CONTENTS,li)),Bt&&(xt["#text"]=!0),Rt&&G(xt,["html","head","body"]),xt.table&&(G(xt,["tbody"]),delete Tt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=t.TRUSTED_TYPES_POLICY,k=w.createHTML("")}else void 0===w&&(w=function(t,i){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let e=null;const o="data-tt-policy-suffix";i&&i.hasAttribute(o)&&(e=i.getAttribute(o));const r="dompurify"+(e?"#"+e:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(b,n)),null!==w&&"string"==typeof k&&(k=w.createHTML(""));T&&T(t),ci=t}},ui=G({},[...V,...Y,...Z]),bi=G({},[...J,...Q]),mi=function(t){P(e.removed,{element:t});try{y(t).removeChild(t)}catch(i){f(t)}},gi=function(t,i){try{P(e.removed,{attribute:i.getAttributeNode(t),from:i})}catch(t){P(e.removed,{attribute:null,from:i})}if(i.removeAttribute(t),"is"===t)if(Ft||Mt)try{mi(i)}catch(t){}else try{i.setAttribute(t,"")}catch(t){}},fi=function(t){let i=null,e=null;if(It)t="<remove></remove>"+t;else{const i=F(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===si&&Qt===Jt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=w?w.createHTML(t):t;if(Qt===Jt)try{i=(new u).parseFromString(r,si)}catch(t){}if(!i||!i.documentElement){i=O.createDocument(Qt,"template",null);try{i.documentElement.innerHTML=ti?k:r}catch(t){}}const n=i.body||i.documentElement;return t&&e&&n.insertBefore(o.createTextNode(e),n.childNodes[0]||null),Qt===Jt?W.call(i,Rt?"html":"body")[0]:Rt?i.documentElement:n},vi=function(t){return S.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},xi=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},_i=function(t){return"function"==typeof l&&t instanceof l};function yi(t,i,o){C(t,(t=>{t.call(e,i,o,ci)}))}const wi=function(t){let i=null;if(yi(nt.beforeSanitizeElements,t,null),xi(t))return mi(t),!0;const o=li(t.nodeName);if(yi(nt.uponSanitizeElement,t,{tagName:o,allowedTags:xt}),Pt&&t.hasChildNodes()&&!_i(t.firstElementChild)&&B(/<[/\w!]/g,t.innerHTML)&&B(/<[/\w!]/g,t.textContent))return mi(t),!0;if(7===t.nodeType)return mi(t),!0;if(Pt&&8===t.nodeType&&B(/<[/\w]/g,t.data))return mi(t),!0;if(!(At.tagCheck instanceof Function&&At.tagCheck(o))&&(!xt[o]||Tt[o])){if(!Tt[o]&&Ti(o)){if(kt.tagNameCheck instanceof RegExp&&B(kt.tagNameCheck,o))return!1;if(kt.tagNameCheck instanceof Function&&kt.tagNameCheck(o))return!1}if(Bt&&!Gt[o]){const i=y(t)||t.parentNode,e=_(t)||t.childNodes;if(e&&i)for(let o=e.length-1;o>=0;--o){const r=g(e[o],!0);r.__removalCount=(t.__removalCount||0)+1,i.insertBefore(r,v(t))}}return mi(t),!0}return t instanceof c&&!function(t){let i=y(t);i&&i.tagName||(i={namespaceURI:Qt,tagName:"template"});const e=L(t.tagName),o=L(i.tagName);return!!ii[t.namespaceURI]&&(t.namespaceURI===Zt?i.namespaceURI===Jt?"svg"===e:i.namespaceURI===Yt?"svg"===e&&("annotation-xml"===o||oi[o]):!!ui[e]:t.namespaceURI===Yt?i.namespaceURI===Jt?"math"===e:i.namespaceURI===Zt?"math"===e&&ri[o]:!!bi[e]:t.namespaceURI===Jt?!(i.namespaceURI===Zt&&!ri[o])&&!(i.namespaceURI===Yt&&!oi[o])&&!bi[e]&&(ni[e]||!ui[e]):!("application/xhtml+xml"!==si||!ii[t.namespaceURI]))}(t)?(mi(t),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!B(/<\/no(script|embed|frames)/i,t.innerHTML)?(Dt&&3===t.nodeType&&(i=t.textContent,C([st,at,lt],(t=>{i=M(i,t," ")})),t.textContent!==i&&(P(e.removed,{element:t.cloneNode()}),t.textContent=i)),yi(nt.afterSanitizeElements,t,null),!1):(mi(t),!0)},ki=function(t,i,e){if(Ot[i])return!1;if(jt&&("id"===i||"name"===i)&&(e in o||e in di))return!1;if(Et&&!Ot[i]&&B(ct,i));else if(St&&B(ht,i));else if(At.attributeCheck instanceof Function&&At.attributeCheck(i,t));else if(!yt[i]||Ot[i]){if(!(Ti(t)&&(kt.tagNameCheck instanceof RegExp&&B(kt.tagNameCheck,t)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(t))&&(kt.attributeNameCheck instanceof RegExp&&B(kt.attributeNameCheck,i)||kt.attributeNameCheck instanceof Function&&kt.attributeNameCheck(i,t))||"is"===i&&kt.allowCustomizedBuiltInElements&&(kt.tagNameCheck instanceof RegExp&&B(kt.tagNameCheck,e)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(e))))return!1}else if(Kt[i]);else if(B(vt,M(e,bt,"")));else if("src"!==i&&"xlink:href"!==i&&"href"!==i||"script"===t||0!==N(e,"data:")||!$t[t])if(Ct&&!B(pt,M(e,bt,"")));else if(e)return!1;return!0},Ti=function(t){return"annotation-xml"!==t&&F(t,ft)},Oi=function(t){yi(nt.beforeSanitizeAttributes,t,null);const{attributes:i}=t;if(!i||xi(t))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:yt,forceKeepAttr:void 0};let r=i.length;for(;r--;){const n=i[r],{name:s,namespaceURI:a,value:l}=n,c=li(s),d=l;let h="value"===s?d:j(d);if(o.attrName=c,o.attrValue=h,o.keepAttr=!0,o.forceKeepAttr=void 0,yi(nt.uponSanitizeAttribute,t,o),h=o.attrValue,!Ut||"id"!==c&&"name"!==c||(gi(s,t),h="user-content-"+h),Pt&&B(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)){gi(s,t);continue}if("attributename"===c&&F(h,"href")){gi(s,t);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){gi(s,t);continue}if(!zt&&B(/\/>/i,h)){gi(s,t);continue}Dt&&C([st,at,lt],(t=>{h=M(h,t," ")}));const p=li(t.nodeName);if(ki(p,c,h)){if(w&&"object"==typeof b&&"function"==typeof b.getAttributeType)if(a);else switch(b.getAttributeType(p,c)){case"TrustedHTML":h=w.createHTML(h);break;case"TrustedScriptURL":h=w.createScriptURL(h)}if(h!==d)try{a?t.setAttributeNS(a,s,h):t.setAttribute(s,h),xi(t)?mi(t):D(e.removed)}catch(i){gi(s,t)}}else gi(s,t)}yi(nt.afterSanitizeAttributes,t,null)},Ai=function t(i){let e=null;const o=vi(i);for(yi(nt.beforeSanitizeShadowDOM,i,null);e=o.nextNode();)yi(nt.uponSanitizeShadowNode,e,null),wi(e),Oi(e),e.content instanceof s&&t(e.content);yi(nt.afterSanitizeShadowDOM,i,null)};return e.sanitize=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,n=null,a=null,c=null;if(ti=!t,ti&&(t="\x3c!--\x3e"),"string"!=typeof t&&!_i(t)){if("function"!=typeof t.toString)throw H("toString is not a function");if("string"!=typeof(t=""+t))throw H("dirty is not a string, aborting")}if(!e.isSupported)return t;if(Lt||pi(i),e.removed=[],"string"==typeof t&&(Ht=!1),Ht){if(t.nodeName){const i=li(t.nodeName);if(!xt[i]||Tt[i])throw H("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)o=fi("\x3c!----\x3e"),n=o.ownerDocument.importNode(t,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?o=n:o.appendChild(n);else{if(!Ft&&!Dt&&!Rt&&-1===t.indexOf("<"))return w&&Nt?w.createHTML(t):t;if(o=fi(t),!o)return Ft?null:Nt?k:""}o&&It&&mi(o.firstChild);const d=vi(Ht?t:o);for(;a=d.nextNode();)wi(a),Oi(a),a.content instanceof s&&Ai(a.content);if(Ht)return t;if(Ft){if(Mt)for(c=E.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(yt.shadowroot||yt.shadowrootmode)&&(c=X.call(r,c,!0)),c}let h=Rt?o.outerHTML:o.innerHTML;return Rt&&xt["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&B(ut,o.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+h),Dt&&C([st,at,lt],(t=>{h=M(h,t," ")})),w&&Nt?w.createHTML(h):h},e.setConfig=function(){pi(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lt=!0},e.clearConfig=function(){ci=null,Lt=!1},e.isValidAttribute=function(t,i,e){ci||pi({});const o=li(t),r=li(i);return ki(o,r,e)},e.addHook=function(t,i){"function"==typeof i&&P(nt[t],i)},e.removeHook=function(t,i){if(void 0!==i){const e=z(nt[t],i);return-1===e?void 0:R(nt[t],e,1)[0]}return D(nt[t])},e.removeHooks=function(t){nt[t]=[]},e.removeAllHooks=function(){nt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}();const vt=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pdsComboboxChange=e(this,"pdsComboboxChange",7),this.pdsComboboxSearch=e(this,"pdsComboboxSearch",7),this.pdsComboboxLoadOptions=e(this,"pdsComboboxLoadOptions",7),this.customOptionLayouts=!1,this.customTriggerContent=!1,this.disabled=!1,this.dropdownPlacement="bottom-start",this.dropdownWidth="236px",this.dropdownMount="host",this.hideLabel=!1,this.mode="filter",this.trigger="input",this.triggerWidth="fit-content",this.triggerVariant="secondary",this.triggerShape="pill",this.chipSentiment="neutral",this.chipLarge=!1,this.chipDot=!1,this.value="",this.asyncMethod="GET",this.debounce=300,this.fetchTimeout=3e4,this.loading=!1,this.displayText="",this.filteredItems=[],this.highlightedIndex=-1,this.isOpen=!1,this.selectedOption=null,this.selectedOptionLayoutContent="",this.selectedOptionChipProps=null,this.internalOptions=[],this.currentPage=1,this.hasMore=!1,this.optionEls=[],this.allItems=[],this.portalEl=null,this.bodyPortalAutoUpdateActive=!1,this.isUpdatingFromSelection=!1,this.expandFilterListWhileOpen=!1,this.handleInput=t=>{const i=t.target;this.clearExpandFilterList(),this.displayText=i.value,this.isOpen=!0,this.filterOptions(),this.pdsComboboxSearch.emit({query:this.displayText}),this.asyncUrl&&this.debouncedFetchAsyncOptions(this.displayText,1),setTimeout((()=>this.openDropdownPositioning()),0)},this.handleInputClick=()=>{this.isOpen||(this.isOpen=!0,this.prepareExpandFilterListOnOpen(),this.filterOptions(),this.asyncUrl&&0===this.internalOptions.length&&this.debouncedFetchAsyncOptions(this.displayText,1),this.setInitialHighlightedIndex(),setTimeout((()=>{this.openDropdownPositioning(),"input"===this.trigger&&this.expandFilterListWhileOpen&&this.inputEl&&this.inputEl.select()}),0))},this.handleKeyDown=t=>{if(!this.isOpen&&("ArrowDown"===t.key||"ArrowUp"===t.key||t.altKey&&"ArrowDown"===t.key))return t.preventDefault(),this.isOpen=!0,this.prepareExpandFilterListOnOpen(),this.filterOptions(),this.setInitialHighlightedIndex(),void setTimeout((()=>{this.openDropdownPositioning(),"input"===this.trigger?this.focusFirstOption():this.focusFirstOptionForArrowKeys()}),0);if(!this.isOpen)return;const i=this.filteredItems.filter((t=>"OPTION"===t.tagName));switch(t.key){case"ArrowDown":t.preventDefault(),this.highlightedIndex=this.highlightedIndex<0&&i.length>0?0:Math.min(this.highlightedIndex+1,i.length-1),this.updateOptionFocus();break;case"ArrowUp":t.preventDefault(),this.highlightedIndex=this.highlightedIndex<0&&i.length>0?i.length-1:Math.max(this.highlightedIndex-1,0),this.updateOptionFocus();break;case"Home":t.preventDefault(),i.length>0&&(this.highlightedIndex=0,this.updateOptionFocus());break;case"End":t.preventDefault(),i.length>0&&(this.highlightedIndex=i.length-1,this.updateOptionFocus());break;case"PageDown":t.preventDefault(),i.length>0&&(this.highlightedIndex=Math.min(this.highlightedIndex+10,i.length-1),this.updateOptionFocus());break;case"PageUp":t.preventDefault(),i.length>0&&(this.highlightedIndex=Math.max(this.highlightedIndex-10,0),this.updateOptionFocus());break;case"Enter":case" ":t.preventDefault(),this.highlightedIndex>=0&&this.highlightedIndex<i.length&&(this.handleOptionClick(i[this.highlightedIndex]),this.restoreFocusToTrigger());break;case"Escape":t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1,this.clearExpandFilterList(),this.isArrowKeyNavigationMode=!1,this.restoreFocusToTrigger();break;case"Tab":this.isOpen=!1,this.highlightedIndex=-1,this.clearExpandFilterList(),this.isArrowKeyNavigationMode=!1}},this.isArrowKeyNavigationMode=!1,this.onOptionClick=t=>{const i=Number(t.currentTarget.getAttribute("data-option-index")),e=this.filteredItems.filter((t=>"OPTION"===t.tagName));this.handleOptionClick(e[i])},this.onOptionMouseEnter=t=>{const i=Number(t.currentTarget.getAttribute("data-option-index"));this.highlightedIndex=i},this.onOptionMouseDown=t=>{t.preventDefault()},this.onOptionKeyDown=t=>{this.handleKeyDown(t)},this.onButtonTriggerClick=()=>{this.isOpen=!this.isOpen,this.isOpen?(this.prepareExpandFilterListOnOpen(),this.filterOptions(),this.asyncUrl&&0===this.internalOptions.length&&this.debouncedFetchAsyncOptions(this.displayText,1),this.setInitialHighlightedIndex(),this.isArrowKeyNavigationMode=!0,setTimeout((()=>this.openDropdownPositioning()),0)):(this.clearExpandFilterList(),this.isArrowKeyNavigationMode=!1)},this.onButtonTriggerKeyDown=t=>{"Enter"!==t.key&&" "!==t.key&&"ArrowDown"!==t.key&&"ArrowUp"!==t.key||this.isOpen?"Escape"===t.key?(t.preventDefault(),this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.clearExpandFilterList(),this.updateAriaActiveDescendant(),this.restoreFocusToTrigger())):this.isOpen&&this.handleKeyDown(t):(t.preventDefault(),t.stopPropagation(),this.isOpen=!0,this.prepareExpandFilterListOnOpen(),this.filterOptions(),this.setInitialHighlightedIndex(),setTimeout((()=>{this.openDropdownPositioning(),this.focusFirstOptionForArrowKeys()}),0))},this.onButtonTriggerKeyUp=t=>{" "===t.key&&(t.preventDefault(),t.stopPropagation())},this.onComboboxFocusOut=t=>{var i,e;const o=t.relatedTarget,r=o&&((null===(i=this.listboxEl)||void 0===i?void 0:i.contains(o))||(null===(e=this.portalEl)||void 0===e?void 0:e.contains(o)));this.el.contains(o)||r||(this.isOpen=!1,this.highlightedIndex=-1,this.clearExpandFilterList(),this.isArrowKeyNavigationMode=!1,this.updateAriaActiveDescendant(),this.selectedOption&&this.displayText!==this.getOptionLabel(this.selectedOption)&&(this.displayText=this.getOptionLabel(this.selectedOption)))},this.handleScroll=t=>{if(!this.asyncUrl||!this.hasMore||this.loading)return;const i=t.target;i.scrollHeight-i.scrollTop-i.clientHeight<50&&(this.pdsComboboxLoadOptions.emit({query:this.displayText,page:this.currentPage+1}),this.debouncedFetchAsyncOptions(this.displayText,this.currentPage+1))}}connectedCallback(){this.el.attachInternals&&!this.internals&&(this.internals=this.el.attachInternals())}componentWillLoad(){this.originalSearchEmitter=this.pdsComboboxSearch,this.updateOptions()}componentDidLoad(){var t,i,e;if(this.setupDebounce(),!this.selectedOption&&this.value&&this.optionEls.length>0){const t=this.optionEls.find((t=>t.value===this.value));t&&(this.setSelectedOption(t),this.displayText=this.getOptionLabel(t))}this.updateFormValue(null!==(e=null!==(i=null===(t=this.selectedOption)||void 0===t?void 0:t.value)&&void 0!==i?i:this.value)&&void 0!==e?e:"")}disconnectedCallback(){var t;void 0!==this.deferredPortalTeardownId&&(clearTimeout(this.deferredPortalTeardownId),this.deferredPortalTeardownId=void 0),null===(t=this.observer)||void 0===t||t.disconnect(),this.clearAsyncFetchState(),this.removeBodyPortal()}componentDidRender(){this.usesBodyPortal&&this.isOpen&&this.syncBodyPortal()}isOpenChanged(t){if(t&&void 0!==this.deferredPortalTeardownId&&(clearTimeout(this.deferredPortalTeardownId),this.deferredPortalTeardownId=void 0),t&&this.usesBodyPortal&&this.removeBodyPortal(),!t&&this.usesBodyPortal)return void 0!==this.deferredPortalTeardownId&&clearTimeout(this.deferredPortalTeardownId),void(this.deferredPortalTeardownId=setTimeout((()=>{this.deferredPortalTeardownId=void 0,this.el.isConnected&&(this.isOpen||this.removeBodyPortal())}),0));t||this.removeBodyPortal()}get usesBodyPortal(){return"body"===this.dropdownMount}get listboxId(){return this.componentId+"-listbox"}optionDomId(t){return`${this.componentId}-option-${t}`}setupDebounce(){const{pdsComboboxSearch:t,debounce:i,originalSearchEmitter:e}=this;this.pdsComboboxSearch=void 0===i?null!=e?e:t:b(t,i)}optionsChanged(){this.options&&(this.internalOptions=[...this.options],this.updateOptionsFromAsync())}handleValueChange(){if(this.filterOptions(),this.updateFormValue(this.value),!this.isUpdatingFromSelection&&this.value&&this.optionEls.length>0&&this.value!==(this.selectedOption?this.selectedOption.value:null)){const t=this.optionEls.find((t=>t.value===this.value));t&&(this.isUpdatingFromSelection=!0,this.setSelectedOption(t),this.displayText=this.getOptionLabel(t),this.isUpdatingFromSelection=!1)}}handleSelectedOptionChange(){this.selectedOptionLayoutContent=this.selectedOption&&this.isOptionLayout(this.selectedOption)?this.getOptionLayoutContent(this.selectedOption):"",this.selectedOptionChipProps=this.selectedOption&&this.isOptionChip(this.selectedOption)?this.getOptionChipProps(this.selectedOption):null,this.selectedOption?(this.displayText=this.getOptionLabel(this.selectedOption),this.value=this.selectedOption.value,this.updateFormValue(this.selectedOption.value)):(this.displayText="",this.value="",this.updateFormValue(""))}updateFormValue(t){s()||this.internals&&this.internals.setFormValue&&this.internals.setFormValue(t)}clearAsyncFetchState(){var t;void 0!==this.fetchDebounceTimer&&(window.clearTimeout(this.fetchDebounceTimer),this.fetchDebounceTimer=void 0),void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=void 0}debouncedFetchAsyncOptions(t,i=1){var e;if(!this.asyncUrl)return;void 0!==this.fetchDebounceTimer&&window.clearTimeout(this.fetchDebounceTimer);const o=Math.max(0,null!==(e=this.debounce)&&void 0!==e?e:0);this.fetchDebounceTimer=window.setTimeout((()=>{this.fetchDebounceTimer=void 0,this.fetchOptions(t,i)}),o)}async fetchOptions(t,i=1){var e;if(this.asyncUrl){null===(e=this.abortController)||void 0===e||e.abort(),void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),this.abortController=new AbortController,this.loading=!0,this.fetchTimeoutTimer=window.setTimeout((()=>{var t;null===(t=this.abortController)||void 0===t||t.abort(),this.fetchTimeoutTimer=void 0}),this.fetchTimeout);try{let e;try{e=new URL(this.asyncUrl,window.location.origin)}catch(t){throw new TypeError("Invalid asyncUrl: "+this.asyncUrl)}"GET"===this.asyncMethod&&(e.searchParams.set("search",t),e.searchParams.set("page",i+""));const o=await fetch(""+e,Object.assign({method:this.asyncMethod,signal:this.abortController.signal,headers:{"Content-Type":"application/json",Accept:"application/json"}},"POST"===this.asyncMethod&&{body:JSON.stringify({search:t,page:i})}));if(void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),!o.ok)throw Error("Failed to fetch options");const r=await o.json(),n=r.results.map((t=>this.formatResult?this.formatResult(t):"object"==typeof t&&null!==t?Object.assign({id:t.id,text:t.text},t):{id:t+"",text:t+""}));this.internalOptions=1===i?n:[...this.internalOptions,...n],this.hasMore=!!r.totalCount&&this.internalOptions.length<r.totalCount,this.currentPage=i,this.updateOptionsFromAsync()}catch(t){void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),"AbortError"!==t.name&&console.error("PdsCombobox: Failed to fetch options",t)}finally{this.loading=!1}}}updateOptionsFromAsync(){if(this.asyncUrl||this.options){if(this.optionEls=[],this.allItems=[],(this.options||this.internalOptions).forEach((t=>{const i=document.createElement("option");i.value=t.id+"",i.textContent=t.text,this.optionEls.push(i),this.allItems.push(i)})),this.value&&!this.selectedOption){const t=this.optionEls.find((t=>t.value===this.value));t&&this.setSelectedOption(t)}this.filterOptions()}}updateOptions(){var t;if(this.asyncUrl||this.options)return void this.updateOptionsFromAsync();const i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="option"], slot:not([name])');if(i){const t=i.assignedElements({flatten:!0});this.allItems=[],this.optionEls=[],t.forEach((t=>{if("OPTION"===t.tagName)this.optionEls.push(t),this.allItems.push(t);else if("OPTGROUP"===t.tagName){const i=t;this.allItems.push(i),Array.from(i.children).forEach((t=>{"OPTION"===t.tagName&&(this.optionEls.push(t),this.allItems.push(t))}))}else"PDS-TEXT"===t.tagName&&this.allItems.push(t)}));let e=null;this.value&&(e=this.optionEls.find((t=>t.value===this.value))||null,e&&(this.displayText=this.getOptionLabel(e))),!e&&"chip"===this.trigger&&this.optionEls.length>0&&(e=this.optionEls[0],this.value=e.value,this.displayText=this.getOptionLabel(e),console.warn("PDS Combobox: Chip triggers should always have a selected option. Automatically selected the first option.")),(e&&e!==this.selectedOption||!this.selectedOption&&e)&&this.setSelectedOption(e),this.filterOptions()}}getOptionLabel(t){return t.label||t.textContent||""}getOptionLayoutContent(t){return this.sanitizeHtml(t.innerHTML||"")}sanitizeHtml(t){return ft.sanitize(t,{CUSTOM_ELEMENT_HANDLING:{tagNameCheck:t=>t.startsWith("pds-")||/^[a-z]+$/i.test(t),attributeNameCheck:t=>/^[a-zA-Z][a-zA-Z0-9-]*$/.test(t)||t.startsWith("data-")||t.startsWith("aria-"),allowCustomizedBuiltInElements:!1},ALLOW_DATA_ATTR:!0,ALLOW_ARIA_ATTR:!0,FORBID_TAGS:["script","iframe","object","embed","form","input","textarea","select","button","style"],FORBID_ATTR:["onerror","onload","onclick","onmouseover","onmouseout","onmousemove","onfocus","onblur","onchange","onsubmit","onkeydown","onkeyup","onkeypress","onmousedown","onmouseup","ondblclick","oncontextmenu","onscroll"],ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i})}isOptionLayout(t){return this.customOptionLayouts&&t.hasAttribute("data-layout")}isOptionChip(t){return t.hasAttribute("chip-sentiment")||t.hasAttribute("chip-large")||t.hasAttribute("chip-icon")||t.hasAttribute("chip-dot")}getOptionChipProps(t){return{sentiment:t.getAttribute("chip-sentiment")||"neutral",large:t.hasAttribute("chip-large"),icon:t.getAttribute("chip-icon")||void 0,dot:t.hasAttribute("chip-dot")}}isOptionSelected(t){return this.selectedOption===t}setSelectedOption(t){this.selectedOption=t,this.selectedOptionChipProps=t&&this.isOptionChip(t)?this.getOptionChipProps(t):null}filterOptions(){if(0===this.allItems.length&&this.optionEls.length>0&&(this.allItems=[...this.optionEls]),"select-only"===this.mode||this.expandFilterListWhileOpen)this.filteredItems=[...this.allItems];else{const t=this.displayText.toLowerCase(),i=this.optionEls.filter((i=>this.isOptionLayout(i)?(i.getAttribute("data-search-text")||i.textContent||"").toLowerCase().includes(t):this.getOptionLabel(i).toLowerCase().includes(t)));this.filteredItems=[];let e=null;this.allItems.forEach((t=>{if("OPTGROUP"===t.tagName||"PDS-TEXT"===t.tagName)e=t;else if("OPTION"===t.tagName&&i.includes(t)){const i=t,o=i.parentElement;let r=null;o&&"OPTGROUP"===o.tagName?r=o:e&&"PDS-TEXT"===e.tagName&&(r=e),r&&!this.filteredItems.includes(r)&&this.filteredItems.push(r),this.filteredItems.push(i)}}))}this.highlightedIndex=-1}clearExpandFilterList(){this.expandFilterListWhileOpen=!1}prepareExpandFilterListOnOpen(){this.expandFilterListWhileOpen=!("filter"!==this.mode||!this.selectedOption||this.displayText!==this.getOptionLabel(this.selectedOption))}positionDropdown(){if(!this.triggerEl||!this.listboxEl)return;const t=this.usesBodyPortal?"fixed":"absolute",i=this.usesBodyPortal?"var(--pine-z-index-priority)":"var(--pine-z-index-raised)";return this.listboxEl.style.width=this.dropdownWidth,this.maxHeight&&(this.listboxEl.style.maxHeight=this.maxHeight,this.listboxEl.style.overflowY="auto"),c(this.triggerEl,this.listboxEl,{placement:this.dropdownPlacement,strategy:t,middleware:[h(12),p(),u({padding:5})]}).then((({x:e,y:o})=>{this.listboxEl&&Object.assign(this.listboxEl.style,{left:e+"px",top:o+"px",position:t,zIndex:i})}))}openDropdownPositioning(){this.triggerEl&&this.listboxEl&&this.positionDropdown()}startBodyPortalAutoUpdate(){!this.bodyPortalAutoUpdateActive&&this.triggerEl&&this.listboxEl&&(this.cleanupPositionAutoUpdate=d(this.triggerEl,this.listboxEl,(()=>{this.positionDropdown()})),this.bodyPortalAutoUpdateActive=!0)}stopBodyPortalAutoUpdate(){var t;null===(t=this.cleanupPositionAutoUpdate)||void 0===t||t.call(this),this.cleanupPositionAutoUpdate=void 0,this.bodyPortalAutoUpdateActive=!1}getPortalMountRoot(){var t;return null!==(t=this.findNearestDialogForPortal(this.el))&&void 0!==t?t:document.body}findNearestDialogForPortal(t){const i=new Set;let e=t;for(;e&&!i.has(e);){if(i.add(e),e.nodeType===Node.ELEMENT_NODE&&"dialog"===e.localName)return e;if(e.nodeType===Node.ELEMENT_NODE){const t=e.assignedSlot;if(t){e=t;continue}}const t=e.parentNode;if(!t)break;e=t instanceof ShadowRoot?t.host:t}const o=t.closest("pds-modal");if(o){const t=o.querySelector("dialog");if(t)return t}return null}ensureBodyPortal(){if(null!==this.portalEl){const t=this.getPortalMountRoot();return this.portalEl.parentElement!==t&&t.appendChild(this.portalEl),this.portalEl}return this.portalEl=document.createElement("div"),this.portalEl.className="pds-combobox-dropdown-portal",this.getPortalMountRoot().appendChild(this.portalEl),this.portalEl}syncBodyPortal(){if(!this.listboxEl)return;const t=this.ensureBodyPortal();for(const i of Array.from(t.children))i!==this.listboxEl&&i.remove();this.listboxEl.parentElement!==t&&(t.appendChild(this.listboxEl),this.positionDropdown(),this.startBodyPortalAutoUpdate())}removeBodyPortal(){var t;this.stopBodyPortalAutoUpdate(),(null===(t=this.portalEl)||void 0===t?void 0:t.parentNode)&&this.portalEl.parentNode.removeChild(this.portalEl),this.portalEl=null,this.listboxEl&&!this.listboxEl.isConnected&&(this.listboxEl=void 0)}async setFocus(){var t;this.inputEl?this.inputEl.focus():null===(t=this.triggerEl)||void 0===t||t.focus()}setInitialHighlightedIndex(){const t=this.filteredItems.filter((t=>"OPTION"===t.tagName));if(0!==t.length){if(this.selectedOption){const i=t.findIndex((t=>t===this.selectedOption));if(i>=0)return void(this.highlightedIndex=i)}this.highlightedIndex=0}else this.highlightedIndex=-1}focusFirstOption(){this.isOpen&&this.filteredItems.filter((t=>"OPTION"===t.tagName)).length>0&&(this.setInitialHighlightedIndex(),this.listboxEl&&this.updateOptionFocus())}focusFirstOptionForArrowKeys(){if(this.isOpen){if(this.usesBodyPortal)return this.isArrowKeyNavigationMode=!0,void this.focusFirstOption();if(this.isArrowKeyNavigationMode=!0,this.filteredItems.filter((t=>"OPTION"===t.tagName)).length>0){if(this.setInitialHighlightedIndex(),this.listboxEl){const t=this.listboxEl.querySelectorAll('[role="option"]'),i=t[this.highlightedIndex];i&&(t.forEach((t=>{t.setAttribute("tabindex","-1")})),i.setAttribute("tabindex","0"),i.focus(),i.scrollIntoView({block:"nearest",behavior:"smooth"}))}this.updateAriaActiveDescendant()}}}updateOptionFocus(){if(!this.listboxEl||this.highlightedIndex<0)return;const t=this.listboxEl.querySelectorAll('[role="option"]'),i=t[this.highlightedIndex];if(i){const e=Array.from(t).some((t=>t===document.activeElement));!this.usesBodyPortal&&(e||this.isArrowKeyNavigationMode)&&(t.forEach((t=>{t.setAttribute("tabindex","-1")})),i.setAttribute("tabindex","0"),i.focus()),i.scrollIntoView({block:"nearest",behavior:"smooth"})}this.updateAriaActiveDescendant()}updateAriaActiveDescendant(){this.triggerEl&&this.highlightedIndex>=0?this.triggerEl.setAttribute("aria-activedescendant",this.optionDomId(this.highlightedIndex)):this.triggerEl&&this.triggerEl.removeAttribute("aria-activedescendant")}restoreFocusToTrigger(){setTimeout((()=>{this.inputEl?this.inputEl.focus():this.triggerEl&&this.triggerEl.focus()}),0)}async getSelectedValue(){return this.selectedOption?this.selectedOption.value:null}async clear(){const t=""!==this.value||""!==this.displayText;this.displayText="",this.setSelectedOption(null),this.value="",this.filterOptions(),this.updateFormValue(""),t&&this.pdsComboboxChange.emit({value:""})}get selectedLabel(){return this.displayText||""}get selectedLayoutContent(){return this.selectedOptionLayoutContent}get selectedHasLayout(){return!!this.selectedOption&&this.isOptionLayout(this.selectedOption)}get selectedChipSentiment(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)){const t=this.selectedOption.getAttribute("chip-sentiment");if(t)return t}if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){const t=this.selectedOption.querySelector("pds-chip"),i=null==t?void 0:t.getAttribute("sentiment");if(i)return i}if(this.customTriggerContent){const t=this.el.querySelector('pds-chip[slot="trigger-content"]');if(t){const i=t.getAttribute("sentiment");if(i)return i}}return this.chipSentiment}get selectedChipLarge(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)&&this.selectedOption.hasAttribute("chip-large"))return!0;if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){const t=this.selectedOption.querySelector("pds-chip");if("lg"===(null==t?void 0:t.getAttribute("size")))return!0}if(this.customTriggerContent){const t=this.el.querySelector('pds-chip[slot="trigger-content"]');if(t&&"lg"===t.getAttribute("size"))return!0}return this.chipLarge}get selectedChipIcon(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)){const t=this.selectedOption.getAttribute("chip-icon");if(t)return t}if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){const t=this.selectedOption.querySelector("pds-chip"),i=null==t?void 0:t.getAttribute("icon");if(i)return i}if(this.customTriggerContent){const t=this.el.querySelector('pds-chip[slot="trigger-content"]');if(t){const i=t.getAttribute("icon");if(i)return i}}return this.chipIcon}get selectedChipDot(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)&&this.selectedOption.hasAttribute("chip-dot"))return!0;if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){const t=this.selectedOption.querySelector("pds-chip");if(null==t?void 0:t.hasAttribute("dot"))return!0}if(this.customTriggerContent){const t=this.el.querySelector('pds-chip[slot="trigger-content"]');if(t&&t.hasAttribute("dot"))return!0}return this.chipDot}handleOptionClick(t){this.setSelectedOption(t),this.isOpen=!1,this.clearExpandFilterList(),this.pdsComboboxChange.emit({value:t.value})}renderDropdown(){if(!this.isOpen)return null;const t=!this.usesBodyPortal&&!!this.el.querySelector('[slot="empty"]'),i=!this.usesBodyPortal&&!!this.el.querySelector('[slot="loading"]');let e=0;const r=this.filteredItems.filter((t=>"OPTION"===t.tagName));return o("ul",{class:"pds-combobox__listbox",role:"listbox",id:this.listboxId,"aria-label":this.label||"Options","aria-multiselectable":"false",ref:t=>this.listboxEl=t,onScroll:this.handleScroll},this.loading&&o("li",{class:"pds-combobox__loading",role:"presentation"},i?o("slot",{name:"loading"}):o("pds-loader",{size:"small"})),!this.loading&&0===this.filteredItems.length&&o("li",{class:"pds-combobox__empty",role:"presentation"},t?o("slot",{name:"empty"}):o("span",null,"No options found")),this.filteredItems.map(((t,i)=>{if("OPTGROUP"===t.tagName)return o("li",{key:"optgroup-"+i,class:"pds-combobox__group-label",role:"presentation","aria-label":t.label},t.label);if("PDS-TEXT"===t.tagName)return o("li",{key:"pds-text-"+i,class:"pds-combobox__group-label",role:"presentation"},t.textContent);if("OPTION"===t.tagName){const i=t,n=this.isOptionSelected(i),s=this.highlightedIndex===e,a=this.isOptionLayout(i),l=this.isOptionChip(i),c=e++;return o("li",{key:i.value,id:this.optionDomId(c),role:"option","aria-selected":n?"true":"false","aria-setsize":r.length,"aria-posinset":c+1,"aria-label":a||l?i.getAttribute("aria-label")||this.getOptionLabel(i):void 0,tabindex:this.usesBodyPortal?"-1":s?"0":"-1",class:{"pds-combobox__option":!0,"pds-combobox__option--highlighted":s,"pds-combobox__option--layout":a,"pds-combobox__option--chip":l},"data-option-index":c,onMouseDown:this.onOptionMouseDown,onClick:this.onOptionClick,onMouseEnter:this.onOptionMouseEnter,onKeyDown:this.onOptionKeyDown},a?o("pds-box",{class:"pds-combobox__option-layout-wrapper",innerHTML:this.getOptionLayoutContent(i)}):l?this.renderOptionChip(i):this.getOptionLabel(i),n&&o("pds-icon",{icon:"check",size:"regular",class:"pds-combobox__option-check"}))}return null})),this.hasMore&&!this.loading&&o("li",{class:"pds-combobox__load-more",role:"presentation"},o("pds-loader",{size:"small"})))}renderCaretIcon(){return o("pds-icon",{icon:"caret-down","aria-hidden":"true",class:"pds-combobox__button-trigger-chevron"})}renderLayoutContent(){return o("div",{class:"pds-combobox__button-trigger-layout-wrapper",innerHTML:this.selectedLayoutContent})}renderDefaultContent(){return o("span",{class:"pds-combobox__button-trigger-label"},this.selectedLabel||this.placeholder)}shouldShowLayoutContent(){return this.selectedHasLayout&&!!this.selectedLayoutContent}getChipTriggerClass(){const t=["pds-combobox__chip-trigger"];return t.push("pds-combobox__chip-trigger--"+this.selectedChipSentiment),t.push("pds-combobox__chip-trigger--dropdown"),this.selectedChipLarge&&t.push("pds-combobox__chip-trigger--large"),this.selectedChipDot&&t.push("pds-combobox__chip-trigger--dot"),t.join(" ")}renderButtonTriggerContent(){return this.customTriggerContent?this.shouldShowLayoutContent()?[this.renderLayoutContent(),this.renderCaretIcon()]:o("slot",{name:"trigger-content"}):this.shouldShowLayoutContent()?[this.renderLayoutContent(),this.renderCaretIcon()]:[this.renderDefaultContent(),this.renderCaretIcon()]}renderChipTriggerContent(){return this.customTriggerContent?this.shouldShowLayoutContent()?this.renderChipTriggerLayoutContent():o("slot",{name:"trigger-content"}):this.shouldShowLayoutContent()?this.renderChipTriggerLayoutContent():this.selectedOption&&this.selectedOptionChipProps?this.renderSelectedOptionAsChip():[this.renderChipTriggerDefaultContent(),this.renderCaretIcon()]}renderSelectedOptionAsChip(){return this.selectedOption&&this.selectedOptionChipProps?o("pds-chip",{sentiment:this.selectedOptionChipProps.sentiment,variant:"dropdown",size:this.selectedOptionChipProps.large?"lg":void 0,icon:this.selectedOptionChipProps.icon,dot:this.selectedOptionChipProps.dot,class:"pds-combobox__chip-trigger-auto"},this.getOptionLabel(this.selectedOption)):null}renderChipTriggerLayoutContent(){return o("div",{class:"pds-combobox__chip-trigger-layout-wrapper",innerHTML:this.getModifiedLayoutContentForTrigger()})}getModifiedLayoutContentForTrigger(){let t=this.selectedLayoutContent;if(t.includes("<pds-chip")){const i=document.createElement("div");i.innerHTML=t;const e=i.querySelector("pds-chip");e&&(e.setAttribute("variant","dropdown"),t=i.innerHTML)}return t}renderChipTriggerDefaultContent(){return o("span",{class:"pds-combobox__chip-trigger-label"},this.selectedChipIcon&&o("pds-icon",{icon:this.selectedChipIcon,class:"pds-combobox__chip-trigger-icon"}),this.selectedLabel||this.placeholder)}renderOptionChip(t){const i=this.getOptionChipProps(t);return o("pds-chip",{sentiment:i.sentiment,variant:"text",size:i.large?"lg":void 0,icon:i.icon,dot:i.dot,class:"pds-combobox__option-chip"},this.getOptionLabel(t))}isInvalid(){return!!this.invalid||!!this.errorMessage}renderMessages(){const t=!!this.errorMessage;return[!!this.helperMessage&&!t&&o("p",{class:"pds-combobox__helper",id:a(this.componentId,"helper")},this.helperMessage),t&&o("p",{class:"pds-combobox__error",id:a(this.componentId,"error"),"aria-live":"assertive"},o("pds-icon",{icon:"danger",size:"small","aria-hidden":"true"}),this.errorMessage)]}render(){const t=["pds-combobox__button-trigger","pds-combobox__button-trigger--"+this.triggerVariant,"input"===this.triggerShape&&"pds-combobox__button-trigger--input-shape"].filter(Boolean).join(" ");return o(r,{key:"a39df3c86a29028344943bd3a2828d5e99106d77","aria-disabled":this.disabled?"true":null},o("div",{key:"32cdb8ce31f9d7c9eac8f995cd233fe6f4d9dfc3",class:"pds-combobox",tabIndex:-1,onFocusout:this.onComboboxFocusOut,part:"combobox"},this.label&&!this.hideLabel&&o("label",{key:"64ed7fe37082e2f895daae0090ae3dfac472e3c3",htmlFor:this.componentId,class:"pds-combobox__label"},this.label),"input"===this.trigger?o("div",{class:"pds-combobox__input-wrapper",style:{width:this.triggerWidth}},o("input",{ref:t=>{this.inputEl=t,this.triggerEl=t},class:{"pds-combobox__input":!0,"pds-combobox__input--invalid":this.isInvalid()},type:"text",role:"combobox","aria-autocomplete":"list","aria-controls":this.listboxId,"aria-describedby":l(this.componentId,this.isInvalid(),this.helperMessage,this.errorMessage),"aria-invalid":this.isInvalid()?"true":void 0,"aria-activedescendant":this.isOpen&&this.highlightedIndex>=0?this.optionDomId(this.highlightedIndex):void 0,"aria-expanded":this.isOpen?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":this.hideLabel?this.label:void 0,id:this.componentId,value:this.displayText,placeholder:this.placeholder,disabled:this.disabled,onInput:this.handleInput,onClick:this.handleInputClick,onKeyDown:this.handleKeyDown,autocomplete:"off",part:"input"}),o("pds-icon",{icon:"enlarge","aria-hidden":"true",class:"pds-combobox__input-icon"})):"chip"===this.trigger?o("div",{class:this.getChipTriggerClass(),style:{width:this.triggerWidth},role:"combobox","aria-haspopup":"listbox","aria-controls":this.listboxId,"aria-describedby":l(this.componentId,this.isInvalid(),this.helperMessage,this.errorMessage),"aria-invalid":this.isInvalid()?"true":void 0,"aria-activedescendant":this.isOpen&&this.highlightedIndex>=0?this.optionDomId(this.highlightedIndex):void 0,"aria-expanded":this.isOpen?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":this.hideLabel?this.label:void 0,id:this.componentId,tabIndex:this.disabled?-1:0,onClick:this.onButtonTriggerClick,"data-layout":this.customTriggerContent,onKeyDown:this.onButtonTriggerKeyDown,onKeyUp:this.onButtonTriggerKeyUp,ref:t=>this.triggerEl=t,part:"chip-trigger"},this.renderChipTriggerContent()):o("div",{class:t,style:{width:this.triggerWidth},role:"combobox","aria-haspopup":"listbox","aria-controls":this.listboxId,"aria-describedby":l(this.componentId,this.isInvalid(),this.helperMessage,this.errorMessage),"aria-invalid":this.isInvalid()?"true":void 0,"aria-activedescendant":this.isOpen&&this.highlightedIndex>=0?this.optionDomId(this.highlightedIndex):void 0,"aria-expanded":this.isOpen?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":this.hideLabel?this.label:void 0,id:this.componentId,tabIndex:this.disabled?-1:0,onClick:this.onButtonTriggerClick,"data-layout":this.customTriggerContent,onKeyDown:this.onButtonTriggerKeyDown,onKeyUp:this.onButtonTriggerKeyUp,ref:t=>this.triggerEl=t,part:"button-trigger"},this.renderButtonTriggerContent()),this.renderMessages(),o("div",{key:"48041c41a39987f2f4093bd048d6c495ea69514b",style:{display:"none"}},o("slot",{key:"5f4d95fefbd3dbdb33ecb25af593c9429df0e10b",onSlotchange:()=>this.updateOptions()})),this.renderDropdown()))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{isOpen:[{isOpenChanged:0}],debounce:[{setupDebounce:0}],options:[{optionsChanged:0}],value:[{handleValueChange:0}],selectedOption:[{handleSelectedOptionChange:0}]}}static get style(){return':host{display:block}:host([aria-disabled=true]) .pds-combobox__input-icon{color:var(--pine-color-text-disabled);pointer-events:none}.pds-combobox{position:relative}.pds-combobox__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-combobox__input-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-combobox__input{background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body-medium);padding:var(--pine-dimension-xs) var(--pine-dimension-450) var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-transition:border-color var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease;width:100%}.pds-combobox__input:hover:not(:disabled){border-color:var(--pine-color-border-hover)}.pds-combobox__input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-combobox__input:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input.pds-combobox__input--invalid{background:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}:host-context([data-theme=dark]) .pds-combobox__input.pds-combobox__input--invalid{background:var(--pine-color-red-950)}.pds-combobox__input.pds-combobox__input--invalid:hover:not(:disabled){border-color:var(--pine-color-border-danger)}.pds-combobox__input.pds-combobox__input--invalid:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-combobox__input-icon{color:var(--pine-color-text-secondary);inset-inline-end:var(--pine-dimension-150);pointer-events:none;position:absolute;z-index:calc(var(--pine-z-index-raised) - 1)}.pds-combobox__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-combobox__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm-medium);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-combobox__error pds-icon{-ms-flex-negative:0;flex-shrink:0;-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.pds-combobox__listbox{background:var(--pine-color-background-overlay);border:0;border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);list-style:none;margin:0;min-width:220px;overflow-y:auto;padding:var(--pine-dimension-xs);position:absolute;z-index:var(--pine-z-index-raised)}.pds-combobox__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-125);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;-webkit-transition:background 0.15s;transition:background 0.15s}.pds-combobox__option[aria-selected=true]{background:var(--pine-color-background-muted)}.pds-combobox__option:focus-visible{outline:0}.pds-combobox__option.pds-combobox__option--layout .pds-combobox__option-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option.pds-combobox__option--chip .pds-combobox__option-chip{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option:last-child{-webkit-margin-after:0;margin-block-end:0}.pds-combobox__option--highlighted,.pds-combobox__option[selected],.pds-combobox__option--selected{background:var(--pine-color-background-muted)}.pds-combobox__option-check{color:currentColor;font-size:var(--pine-dimension-150);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__group-label{color:var(--pine-color-text-tertiary);cursor:default;font:var(--pine-typography-heading-caption);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-150);margin-block-start:var(--pine-dimension-150);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm);text-transform:uppercase}.pds-combobox__group-label:first-child{-webkit-margin-before:0;margin-block-start:0}.pds-combobox__loading{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__empty{color:var(--pine-color-text-tertiary);padding:var(--pine-dimension-150) var(--pine-dimension-sm);text-align:center}.pds-combobox__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__button-trigger{-ms-flex-align:center;align-items:center;background:var(--color-background-default, var(--pine-color-secondary));border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--color-text-default, var(--pine-color-text-inverse-emphasis));cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;min-height:var(--pine-dimension-450);outline:none;padding:0 var(--pine-dimension-sm);-webkit-transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s, -webkit-box-shadow 0.15s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__button-trigger .pds-combobox__button-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__button-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__button-trigger:focus-visible{border-color:var(--color-border-focus, var(--pine-color-border));-webkit-box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring));box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring))}.pds-combobox__button-trigger:hover{background:var(--color-background-hover, var(--pine-color-secondary-hover));border-color:var(--color-border-hover, var(--pine-color-border-hover))}.pds-combobox__button-trigger[aria-disabled=true],.pds-combobox__button-trigger:disabled{background:var(--color-background-disabled, var(--pine-color-secondary-disabled));border-color:var(--color-border-disabled, var(--pine-color-border-disabled));color:var(--color-text-disabled, var(--pine-color-text-secondary-disabled));cursor:not-allowed;opacity:0.6}.pds-combobox__button-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__button-trigger--input-shape{border-radius:var(--pine-dimension-125);min-height:var(--pine-dimension-500)}.pds-combobox__button-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__button-trigger--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-border-disabled:var(--pine-color-primary-disabled);--color-border-focus:var(--pine-color-primary);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-border-disabled:var(--pine-color-accent-disabled);--color-border-focus:var(--pine-color-accent);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--secondary{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-default:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-border-disabled:var(--pine-color-danger-disabled);--color-border-focus:var(--pine-color-danger);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger)}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-layout]{border-radius:var(--pine-dimension-125);padding-block:var(--pine-dimension-xs)}.pds-combobox__chip-trigger{-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;outline:none;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150);-webkit-transition:all 0.15s ease;transition:all 0.15s ease;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__chip-trigger .pds-combobox__chip-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__chip-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__chip-trigger:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__chip-trigger[aria-disabled=true]{cursor:not-allowed;opacity:0.6}.pds-combobox__chip-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__chip-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__chip-trigger-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-combobox__chip-trigger--neutral,.pds-combobox__chip-trigger--accent,.pds-combobox__chip-trigger--success,.pds-combobox__chip-trigger--warning,.pds-combobox__chip-trigger--danger,.pds-combobox__chip-trigger--info{background:var(--chip-bg);border:var(--pine-border-width) solid var(--chip-border);color:var(--chip-text)}.pds-combobox__chip-trigger--neutral:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--accent:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--success:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--warning:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--danger:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--info:hover:not([aria-disabled=true]){background:var(--chip-bg-hover)}.pds-combobox__chip-trigger--neutral:focus-visible,.pds-combobox__chip-trigger--accent:focus-visible,.pds-combobox__chip-trigger--success:focus-visible,.pds-combobox__chip-trigger--warning:focus-visible,.pds-combobox__chip-trigger--danger:focus-visible,.pds-combobox__chip-trigger--info:focus-visible{border-color:var(--chip-border)}.pds-combobox__chip-trigger--neutral{--chip-bg:var(--pine-chip-color-neutral);--chip-bg-hover:var(--pine-chip-color-neutral-hover);--chip-border:var(--pine-chip-color-neutral-hover);--chip-text:var(--pine-color-text-neutral)}.pds-combobox__chip-trigger--accent{--chip-bg:var(--pine-chip-color-accent);--chip-bg-hover:var(--pine-chip-color-accent-hover);--chip-border:var(--pine-chip-color-accent-hover);--chip-text:var(--pine-color-text-accent)}.pds-combobox__chip-trigger--success{--chip-bg:var(--pine-chip-color-success);--chip-bg-hover:var(--pine-chip-color-success-hover);--chip-border:var(--pine-chip-color-success-hover);--chip-text:var(--pine-color-text-success)}.pds-combobox__chip-trigger--warning{--chip-bg:var(--pine-chip-color-warning);--chip-bg-hover:var(--pine-chip-color-warning-hover);--chip-border:var(--pine-chip-color-warning-hover);--chip-text:var(--pine-color-text-warning)}.pds-combobox__chip-trigger--danger{--chip-bg:var(--pine-chip-color-danger);--chip-bg-hover:var(--pine-chip-color-danger-hover);--chip-border:var(--pine-chip-color-danger-hover);--chip-text:var(--pine-color-text-danger)}.pds-combobox__chip-trigger--info{--chip-bg:var(--pine-chip-color-info);--chip-bg-hover:var(--pine-chip-color-info-hover);--chip-border:var(--pine-chip-color-info-hover);--chip-text:var(--pine-color-text-info)}.pds-combobox__chip-trigger--brand{background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;color:var(--pine-color-text-neutral);padding:1px;position:relative}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-text-neutral);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-150);position:relative;z-index:1}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-chevron{position:relative;z-index:1}.pds-combobox__chip-trigger--brand:hover:not([aria-disabled=true]) .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.8)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand){padding:var(--pine-dimension-none)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand) .pds-combobox__chip-trigger-label{padding:var(--pine-dimension-025) var(--pine-dimension-150)}.pds-combobox__chip-trigger--large .pds-combobox__chip-trigger-label{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-combobox__chip-trigger--dot .pds-combobox__chip-trigger-label::before{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);content:"";display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}'}},[321,"pds-combobox",{componentId:[1,"component-id"],name:[513],customOptionLayouts:[4,"custom-option-layouts"],customTriggerContent:[4,"custom-trigger-content"],disabled:[4],errorMessage:[1,"error-message"],dropdownPlacement:[1,"dropdown-placement"],dropdownWidth:[1,"dropdown-width"],dropdownMount:[1,"dropdown-mount"],helperMessage:[1,"helper-message"],hideLabel:[4,"hide-label"],invalid:[4],label:[1],maxHeight:[1,"max-height"],mode:[1],placeholder:[1],trigger:[1],triggerWidth:[1,"trigger-width"],triggerVariant:[1,"trigger-variant"],triggerShape:[1,"trigger-shape"],chipSentiment:[1,"chip-sentiment"],chipLarge:[4,"chip-large"],chipIcon:[1,"chip-icon"],chipDot:[4,"chip-dot"],value:[1025],asyncUrl:[1,"async-url"],asyncMethod:[1,"async-method"],debounce:[2],fetchTimeout:[2,"fetch-timeout"],loading:[1028],options:[16],formatResult:[16],displayText:[32],filteredItems:[32],highlightedIndex:[32],isOpen:[32],selectedOption:[32],selectedOptionLayoutContent:[32],selectedOptionChipProps:[32],internalOptions:[32],currentPage:[32],hasMore:[32],setFocus:[64],getSelectedValue:[64],clear:[64]},void 0,{isOpen:[{isOpenChanged:0}],debounce:[{setupDebounce:0}],options:[{optionsChanged:0}],value:[{handleValueChange:0}],selectedOption:[{handleSelectedOptionChange:0}]}]),xt=vt,_t=function(){"undefined"!=typeof customElements&&["pds-combobox","pds-box","pds-chip","pds-icon","pds-loader"].forEach((t=>{switch(t){case"pds-combobox":customElements.get(n(t))||customElements.define(n(t),vt);break;case"pds-box":customElements.get(n(t))||m();break;case"pds-chip":customElements.get(n(t))||g();break;case"pds-icon":customElements.get(n(t))||f();break;case"pds-loader":customElements.get(n(t))||v()}}))};export{xt as PdsCombobox,_t as defineCustomElement}
|
|
2
|
+
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:x,setPrototypeOf:_,isFrozen:y,getPrototypeOf:w,getOwnPropertyDescriptor:k}=Object;let{freeze:T,seal:O,create:A}=Object,{apply:S,construct:E}="undefined"!=typeof Reflect&&Reflect;T||(T=function(t){return t}),O||(O=function(t){return t}),S||(S=function(t,i){for(var e=arguments.length,o=Array(e>2?e-2:0),r=2;r<e;r++)o[r-2]=arguments[r];return t.apply(i,o)}),E||(E=function(t){for(var i=arguments.length,e=Array(i>1?i-1:0),o=1;o<i;o++)e[o-1]=arguments[o];return new t(...e)});const C=W(Array.prototype.forEach),z=W(Array.prototype.lastIndexOf),D=W(Array.prototype.pop),P=W(Array.prototype.push),R=W(Array.prototype.splice),L=W(String.prototype.toLowerCase),I=W(String.prototype.toString),F=W(String.prototype.match),M=W(String.prototype.replace),N=W(String.prototype.indexOf),j=W(String.prototype.trim),U=W(Object.prototype.hasOwnProperty),B=W(RegExp.prototype.test),H=function(t){return function(){for(var i=arguments.length,e=Array(i),o=0;o<i;o++)e[o]=arguments[o];return E(t,e)}}(TypeError);function W(t){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];return S(t,i,o)}}function G(t,i){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L;_&&_(t,null);let o=i.length;for(;o--;){let r=i[o];if("string"==typeof r){const t=e(r);t!==r&&(y(i)||(i[o]=t),r=t)}t[r]=!0}return t}function X(t){for(let i=0;i<t.length;i++)U(t,i)||(t[i]=null);return t}function $(t){const i=A(null);for(const[e,o]of x(t))U(t,e)&&(i[e]=Array.isArray(o)?X(o):o&&"object"==typeof o&&o.constructor===Object?$(o):o);return i}function q(t,i){for(;null!==t;){const e=k(t,i);if(e){if(e.get)return W(e.get);if("function"==typeof e.value)return W(e.value)}t=w(t)}return function(){return null}}const K=T(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),V=T(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Y=T(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Z=T(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),J=T(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Q=T(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tt=T(["#text"]),it=T(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),et=T(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ot=T(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),rt=T(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nt=O(/\{\{[\w\W]*|[\w\W]*\}\}/gm),st=O(/<%[\w\W]*|[\w\W]*%>/gm),at=O(/\$\{[\w\W]*/gm),lt=O(/^data-[\-\w.\u00B7-\uFFFF]+$/),ct=O(/^aria-[\-\w]+$/),dt=O(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ht=O(/^(?:\w+script|data):/i),pt=O(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ut=O(/^html$/i),bt=O(/^[a-z][.\w]*(-[.\w]+)+$/i);var mt=Object.freeze({__proto__:null,ARIA_ATTR:ct,ATTR_WHITESPACE:pt,CUSTOM_ELEMENT:bt,DATA_ATTR:lt,DOCTYPE_NAME:ut,ERB_EXPR:st,IS_ALLOWED_URI:dt,IS_SCRIPT_OR_DATA:ht,MUSTACHE_EXPR:nt,TMPLIT_EXPR:at});const gt=function(){return"undefined"==typeof window?null:window};var ft=function t(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gt();const e=i=>t(i);if(e.version="3.3.3",e.removed=[],!i||!i.document||9!==i.document.nodeType||!i.Element)return e.isSupported=!1,e;let{document:o}=i;const r=o,n=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:d,NamedNodeMap:h=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:p,DOMParser:u,trustedTypes:b}=i,m=c.prototype,g=q(m,"cloneNode"),f=q(m,"remove"),v=q(m,"nextSibling"),_=q(m,"childNodes"),y=q(m,"parentNode");if("function"==typeof a){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let w,k="";const{implementation:O,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:W}=o,{importNode:X}=r;let nt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof x&&"function"==typeof y&&O&&void 0!==O.createHTMLDocument;const{MUSTACHE_EXPR:st,ERB_EXPR:at,TMPLIT_EXPR:lt,DATA_ATTR:ct,ARIA_ATTR:ht,IS_SCRIPT_OR_DATA:pt,ATTR_WHITESPACE:bt,CUSTOM_ELEMENT:ft}=mt;let{IS_ALLOWED_URI:vt}=mt,xt=null;const _t=G({},[...K,...V,...Y,...J,...tt]);let yt=null;const wt=G({},[...it,...et,...ot,...rt]);let kt=Object.seal(A(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,Ot=null;const At=Object.seal(A(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let St=!0,Et=!0,Ct=!1,zt=!0,Dt=!1,Pt=!0,Rt=!1,Lt=!1,It=!1,Ft=!1,Mt=!1,Nt=!1,jt=!0,Ut=!1,Bt=!0,Ht=!1,Wt={},Gt=null;const Xt=G({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let $t=null;const qt=G({},["audio","video","img","source","image","track"]);let Kt=null;const Vt=G({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml";let Qt=Jt,ti=!1,ii=null;const ei=G({},[Yt,Zt,Jt],I);let oi=G({},["mi","mo","mn","ms","mtext"]),ri=G({},["annotation-xml"]);const ni=G({},["title","style","font","a","script"]);let si=null;const ai=["application/xhtml+xml","text/html"];let li=null,ci=null;const di=o.createElement("form"),hi=function(t){return t instanceof RegExp||t instanceof Function},pi=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ci||ci!==t){if(t&&"object"==typeof t||(t={}),t=$(t),si=-1===ai.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,li="application/xhtml+xml"===si?I:L,xt=U(t,"ALLOWED_TAGS")?G({},t.ALLOWED_TAGS,li):_t,yt=U(t,"ALLOWED_ATTR")?G({},t.ALLOWED_ATTR,li):wt,ii=U(t,"ALLOWED_NAMESPACES")?G({},t.ALLOWED_NAMESPACES,I):ei,Kt=U(t,"ADD_URI_SAFE_ATTR")?G($(Vt),t.ADD_URI_SAFE_ATTR,li):Vt,$t=U(t,"ADD_DATA_URI_TAGS")?G($(qt),t.ADD_DATA_URI_TAGS,li):qt,Gt=U(t,"FORBID_CONTENTS")?G({},t.FORBID_CONTENTS,li):Xt,Tt=U(t,"FORBID_TAGS")?G({},t.FORBID_TAGS,li):$({}),Ot=U(t,"FORBID_ATTR")?G({},t.FORBID_ATTR,li):$({}),Wt=!!U(t,"USE_PROFILES")&&t.USE_PROFILES,St=!1!==t.ALLOW_ARIA_ATTR,Et=!1!==t.ALLOW_DATA_ATTR,Ct=t.ALLOW_UNKNOWN_PROTOCOLS||!1,zt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Dt=t.SAFE_FOR_TEMPLATES||!1,Pt=!1!==t.SAFE_FOR_XML,Rt=t.WHOLE_DOCUMENT||!1,Ft=t.RETURN_DOM||!1,Mt=t.RETURN_DOM_FRAGMENT||!1,Nt=t.RETURN_TRUSTED_TYPE||!1,It=t.FORCE_BODY||!1,jt=!1!==t.SANITIZE_DOM,Ut=t.SANITIZE_NAMED_PROPS||!1,Bt=!1!==t.KEEP_CONTENT,Ht=t.IN_PLACE||!1,vt=t.ALLOWED_URI_REGEXP||dt,Qt=t.NAMESPACE||Jt,oi=t.MATHML_TEXT_INTEGRATION_POINTS||oi,ri=t.HTML_INTEGRATION_POINTS||ri,kt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&hi(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(kt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&hi(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(kt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(kt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Dt&&(Et=!1),Mt&&(Ft=!0),Wt&&(xt=G({},tt),yt=A(null),!0===Wt.html&&(G(xt,K),G(yt,it)),!0===Wt.svg&&(G(xt,V),G(yt,et),G(yt,rt)),!0===Wt.svgFilters&&(G(xt,Y),G(yt,et),G(yt,rt)),!0===Wt.mathMl&&(G(xt,J),G(yt,ot),G(yt,rt))),U(t,"ADD_TAGS")||(At.tagCheck=null),U(t,"ADD_ATTR")||(At.attributeCheck=null),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?At.tagCheck=t.ADD_TAGS:(xt===_t&&(xt=$(xt)),G(xt,t.ADD_TAGS,li))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?At.attributeCheck=t.ADD_ATTR:(yt===wt&&(yt=$(yt)),G(yt,t.ADD_ATTR,li))),t.ADD_URI_SAFE_ATTR&&G(Kt,t.ADD_URI_SAFE_ATTR,li),t.FORBID_CONTENTS&&(Gt===Xt&&(Gt=$(Gt)),G(Gt,t.FORBID_CONTENTS,li)),t.ADD_FORBID_CONTENTS&&(Gt===Xt&&(Gt=$(Gt)),G(Gt,t.ADD_FORBID_CONTENTS,li)),Bt&&(xt["#text"]=!0),Rt&&G(xt,["html","head","body"]),xt.table&&(G(xt,["tbody"]),delete Tt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=t.TRUSTED_TYPES_POLICY,k=w.createHTML("")}else void 0===w&&(w=function(t,i){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let e=null;const o="data-tt-policy-suffix";i&&i.hasAttribute(o)&&(e=i.getAttribute(o));const r="dompurify"+(e?"#"+e:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(b,n)),null!==w&&"string"==typeof k&&(k=w.createHTML(""));T&&T(t),ci=t}},ui=G({},[...V,...Y,...Z]),bi=G({},[...J,...Q]),mi=function(t){P(e.removed,{element:t});try{y(t).removeChild(t)}catch(i){f(t)}},gi=function(t,i){try{P(e.removed,{attribute:i.getAttributeNode(t),from:i})}catch(t){P(e.removed,{attribute:null,from:i})}if(i.removeAttribute(t),"is"===t)if(Ft||Mt)try{mi(i)}catch(t){}else try{i.setAttribute(t,"")}catch(t){}},fi=function(t){let i=null,e=null;if(It)t="<remove></remove>"+t;else{const i=F(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===si&&Qt===Jt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=w?w.createHTML(t):t;if(Qt===Jt)try{i=(new u).parseFromString(r,si)}catch(t){}if(!i||!i.documentElement){i=O.createDocument(Qt,"template",null);try{i.documentElement.innerHTML=ti?k:r}catch(t){}}const n=i.body||i.documentElement;return t&&e&&n.insertBefore(o.createTextNode(e),n.childNodes[0]||null),Qt===Jt?W.call(i,Rt?"html":"body")[0]:Rt?i.documentElement:n},vi=function(t){return S.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},xi=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},_i=function(t){return"function"==typeof l&&t instanceof l};function yi(t,i,o){C(t,(t=>{t.call(e,i,o,ci)}))}const wi=function(t){let i=null;if(yi(nt.beforeSanitizeElements,t,null),xi(t))return mi(t),!0;const o=li(t.nodeName);if(yi(nt.uponSanitizeElement,t,{tagName:o,allowedTags:xt}),Pt&&t.hasChildNodes()&&!_i(t.firstElementChild)&&B(/<[/\w!]/g,t.innerHTML)&&B(/<[/\w!]/g,t.textContent))return mi(t),!0;if(7===t.nodeType)return mi(t),!0;if(Pt&&8===t.nodeType&&B(/<[/\w]/g,t.data))return mi(t),!0;if(!(At.tagCheck instanceof Function&&At.tagCheck(o))&&(!xt[o]||Tt[o])){if(!Tt[o]&&Ti(o)){if(kt.tagNameCheck instanceof RegExp&&B(kt.tagNameCheck,o))return!1;if(kt.tagNameCheck instanceof Function&&kt.tagNameCheck(o))return!1}if(Bt&&!Gt[o]){const i=y(t)||t.parentNode,e=_(t)||t.childNodes;if(e&&i)for(let o=e.length-1;o>=0;--o){const r=g(e[o],!0);r.__removalCount=(t.__removalCount||0)+1,i.insertBefore(r,v(t))}}return mi(t),!0}return t instanceof c&&!function(t){let i=y(t);i&&i.tagName||(i={namespaceURI:Qt,tagName:"template"});const e=L(t.tagName),o=L(i.tagName);return!!ii[t.namespaceURI]&&(t.namespaceURI===Zt?i.namespaceURI===Jt?"svg"===e:i.namespaceURI===Yt?"svg"===e&&("annotation-xml"===o||oi[o]):!!ui[e]:t.namespaceURI===Yt?i.namespaceURI===Jt?"math"===e:i.namespaceURI===Zt?"math"===e&&ri[o]:!!bi[e]:t.namespaceURI===Jt?!(i.namespaceURI===Zt&&!ri[o])&&!(i.namespaceURI===Yt&&!oi[o])&&!bi[e]&&(ni[e]||!ui[e]):!("application/xhtml+xml"!==si||!ii[t.namespaceURI]))}(t)?(mi(t),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!B(/<\/no(script|embed|frames)/i,t.innerHTML)?(Dt&&3===t.nodeType&&(i=t.textContent,C([st,at,lt],(t=>{i=M(i,t," ")})),t.textContent!==i&&(P(e.removed,{element:t.cloneNode()}),t.textContent=i)),yi(nt.afterSanitizeElements,t,null),!1):(mi(t),!0)},ki=function(t,i,e){if(Ot[i])return!1;if(jt&&("id"===i||"name"===i)&&(e in o||e in di))return!1;if(Et&&!Ot[i]&&B(ct,i));else if(St&&B(ht,i));else if(At.attributeCheck instanceof Function&&At.attributeCheck(i,t));else if(!yt[i]||Ot[i]){if(!(Ti(t)&&(kt.tagNameCheck instanceof RegExp&&B(kt.tagNameCheck,t)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(t))&&(kt.attributeNameCheck instanceof RegExp&&B(kt.attributeNameCheck,i)||kt.attributeNameCheck instanceof Function&&kt.attributeNameCheck(i,t))||"is"===i&&kt.allowCustomizedBuiltInElements&&(kt.tagNameCheck instanceof RegExp&&B(kt.tagNameCheck,e)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(e))))return!1}else if(Kt[i]);else if(B(vt,M(e,bt,"")));else if("src"!==i&&"xlink:href"!==i&&"href"!==i||"script"===t||0!==N(e,"data:")||!$t[t])if(Ct&&!B(pt,M(e,bt,"")));else if(e)return!1;return!0},Ti=function(t){return"annotation-xml"!==t&&F(t,ft)},Oi=function(t){yi(nt.beforeSanitizeAttributes,t,null);const{attributes:i}=t;if(!i||xi(t))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:yt,forceKeepAttr:void 0};let r=i.length;for(;r--;){const n=i[r],{name:s,namespaceURI:a,value:l}=n,c=li(s),d=l;let h="value"===s?d:j(d);if(o.attrName=c,o.attrValue=h,o.keepAttr=!0,o.forceKeepAttr=void 0,yi(nt.uponSanitizeAttribute,t,o),h=o.attrValue,!Ut||"id"!==c&&"name"!==c||(gi(s,t),h="user-content-"+h),Pt&&B(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)){gi(s,t);continue}if("attributename"===c&&F(h,"href")){gi(s,t);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){gi(s,t);continue}if(!zt&&B(/\/>/i,h)){gi(s,t);continue}Dt&&C([st,at,lt],(t=>{h=M(h,t," ")}));const p=li(t.nodeName);if(ki(p,c,h)){if(w&&"object"==typeof b&&"function"==typeof b.getAttributeType)if(a);else switch(b.getAttributeType(p,c)){case"TrustedHTML":h=w.createHTML(h);break;case"TrustedScriptURL":h=w.createScriptURL(h)}if(h!==d)try{a?t.setAttributeNS(a,s,h):t.setAttribute(s,h),xi(t)?mi(t):D(e.removed)}catch(i){gi(s,t)}}else gi(s,t)}yi(nt.afterSanitizeAttributes,t,null)},Ai=function t(i){let e=null;const o=vi(i);for(yi(nt.beforeSanitizeShadowDOM,i,null);e=o.nextNode();)yi(nt.uponSanitizeShadowNode,e,null),wi(e),Oi(e),e.content instanceof s&&t(e.content);yi(nt.afterSanitizeShadowDOM,i,null)};return e.sanitize=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,n=null,a=null,c=null;if(ti=!t,ti&&(t="\x3c!--\x3e"),"string"!=typeof t&&!_i(t)){if("function"!=typeof t.toString)throw H("toString is not a function");if("string"!=typeof(t=""+t))throw H("dirty is not a string, aborting")}if(!e.isSupported)return t;if(Lt||pi(i),e.removed=[],"string"==typeof t&&(Ht=!1),Ht){if(t.nodeName){const i=li(t.nodeName);if(!xt[i]||Tt[i])throw H("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)o=fi("\x3c!----\x3e"),n=o.ownerDocument.importNode(t,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?o=n:o.appendChild(n);else{if(!Ft&&!Dt&&!Rt&&-1===t.indexOf("<"))return w&&Nt?w.createHTML(t):t;if(o=fi(t),!o)return Ft?null:Nt?k:""}o&&It&&mi(o.firstChild);const d=vi(Ht?t:o);for(;a=d.nextNode();)wi(a),Oi(a),a.content instanceof s&&Ai(a.content);if(Ht)return t;if(Ft){if(Mt)for(c=E.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(yt.shadowroot||yt.shadowrootmode)&&(c=X.call(r,c,!0)),c}let h=Rt?o.outerHTML:o.innerHTML;return Rt&&xt["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&B(ut,o.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+h),Dt&&C([st,at,lt],(t=>{h=M(h,t," ")})),w&&Nt?w.createHTML(h):h},e.setConfig=function(){pi(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lt=!0},e.clearConfig=function(){ci=null,Lt=!1},e.isValidAttribute=function(t,i,e){ci||pi({});const o=li(t),r=li(i);return ki(o,r,e)},e.addHook=function(t,i){"function"==typeof i&&P(nt[t],i)},e.removeHook=function(t,i){if(void 0!==i){const e=z(nt[t],i);return-1===e?void 0:R(nt[t],e,1)[0]}return D(nt[t])},e.removeHooks=function(t){nt[t]=[]},e.removeAllHooks=function(){nt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}();const vt=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pdsComboboxChange=e(this,"pdsComboboxChange",7),this.pdsComboboxSearch=e(this,"pdsComboboxSearch",7),this.pdsComboboxLoadOptions=e(this,"pdsComboboxLoadOptions",7),this.customOptionLayouts=!1,this.customTriggerContent=!1,this.disabled=!1,this.dropdownPlacement="bottom-start",this.dropdownWidth="236px",this.dropdownMount="host",this.hideLabel=!1,this.mode="filter",this.trigger="input",this.triggerWidth="fit-content",this.triggerVariant="secondary",this.triggerShape="pill",this.chipSentiment="neutral",this.chipLarge=!1,this.chipDot=!1,this.value="",this.asyncMethod="GET",this.debounce=300,this.fetchTimeout=3e4,this.loading=!1,this.displayText="",this.filteredItems=[],this.highlightedIndex=-1,this.isOpen=!1,this.selectedOption=null,this.selectedOptionLayoutContent="",this.selectedOptionChipProps=null,this.internalOptions=[],this.currentPage=1,this.hasMore=!1,this.optionEls=[],this.allItems=[],this.portalEl=null,this.bodyPortalAutoUpdateActive=!1,this.isUpdatingFromSelection=!1,this.expandFilterListWhileOpen=!1,this.handleInput=t=>{const i=t.target;this.clearExpandFilterList(),this.displayText=i.value,this.isOpen=!0,this.filterOptions(),this.pdsComboboxSearch.emit({query:this.displayText}),this.asyncUrl&&this.debouncedFetchAsyncOptions(this.displayText,1),setTimeout((()=>this.openDropdownPositioning()),0)},this.handleInputClick=()=>{this.isOpen||(this.isOpen=!0,this.prepareExpandFilterListOnOpen(),this.filterOptions(),this.asyncUrl&&0===this.internalOptions.length&&this.debouncedFetchAsyncOptions(this.displayText,1),this.setInitialHighlightedIndex(),setTimeout((()=>{this.openDropdownPositioning(),"input"===this.trigger&&this.expandFilterListWhileOpen&&this.inputEl&&this.inputEl.select()}),0))},this.handleKeyDown=t=>{if(!this.isOpen&&("ArrowDown"===t.key||"ArrowUp"===t.key||t.altKey&&"ArrowDown"===t.key))return t.preventDefault(),this.isOpen=!0,this.prepareExpandFilterListOnOpen(),this.filterOptions(),this.setInitialHighlightedIndex(),void setTimeout((()=>{this.openDropdownPositioning(),"input"===this.trigger?this.focusFirstOption():this.focusFirstOptionForArrowKeys()}),0);if(!this.isOpen)return;const i=this.filteredItems.filter((t=>"OPTION"===t.tagName));switch(t.key){case"ArrowDown":t.preventDefault(),this.highlightedIndex=this.highlightedIndex<0&&i.length>0?0:Math.min(this.highlightedIndex+1,i.length-1),this.updateOptionFocus();break;case"ArrowUp":t.preventDefault(),this.highlightedIndex=this.highlightedIndex<0&&i.length>0?i.length-1:Math.max(this.highlightedIndex-1,0),this.updateOptionFocus();break;case"Home":t.preventDefault(),i.length>0&&(this.highlightedIndex=0,this.updateOptionFocus());break;case"End":t.preventDefault(),i.length>0&&(this.highlightedIndex=i.length-1,this.updateOptionFocus());break;case"PageDown":t.preventDefault(),i.length>0&&(this.highlightedIndex=Math.min(this.highlightedIndex+10,i.length-1),this.updateOptionFocus());break;case"PageUp":t.preventDefault(),i.length>0&&(this.highlightedIndex=Math.max(this.highlightedIndex-10,0),this.updateOptionFocus());break;case"Enter":case" ":t.preventDefault(),this.highlightedIndex>=0&&this.highlightedIndex<i.length&&(this.handleOptionClick(i[this.highlightedIndex]),this.restoreFocusToTrigger());break;case"Escape":t.preventDefault(),this.isOpen=!1,this.highlightedIndex=-1,this.clearExpandFilterList(),this.isArrowKeyNavigationMode=!1,this.restoreFocusToTrigger();break;case"Tab":this.isOpen=!1,this.highlightedIndex=-1,this.clearExpandFilterList(),this.isArrowKeyNavigationMode=!1}},this.isArrowKeyNavigationMode=!1,this.onOptionClick=t=>{const i=Number(t.currentTarget.getAttribute("data-option-index")),e=this.filteredItems.filter((t=>"OPTION"===t.tagName));this.handleOptionClick(e[i])},this.onOptionMouseEnter=t=>{const i=Number(t.currentTarget.getAttribute("data-option-index"));this.highlightedIndex=i},this.onOptionMouseDown=t=>{t.preventDefault()},this.onOptionKeyDown=t=>{this.handleKeyDown(t)},this.onButtonTriggerClick=()=>{this.isOpen=!this.isOpen,this.isOpen?(this.prepareExpandFilterListOnOpen(),this.filterOptions(),this.asyncUrl&&0===this.internalOptions.length&&this.debouncedFetchAsyncOptions(this.displayText,1),this.setInitialHighlightedIndex(),this.isArrowKeyNavigationMode=!0,setTimeout((()=>this.openDropdownPositioning()),0)):(this.clearExpandFilterList(),this.isArrowKeyNavigationMode=!1)},this.onButtonTriggerKeyDown=t=>{"Enter"!==t.key&&" "!==t.key&&"ArrowDown"!==t.key&&"ArrowUp"!==t.key||this.isOpen?"Escape"===t.key?(t.preventDefault(),this.isOpen&&(this.isOpen=!1,this.highlightedIndex=-1,this.clearExpandFilterList(),this.updateAriaActiveDescendant(),this.restoreFocusToTrigger())):this.isOpen&&this.handleKeyDown(t):(t.preventDefault(),t.stopPropagation(),this.isOpen=!0,this.prepareExpandFilterListOnOpen(),this.filterOptions(),this.setInitialHighlightedIndex(),setTimeout((()=>{this.openDropdownPositioning(),this.focusFirstOptionForArrowKeys()}),0))},this.onButtonTriggerKeyUp=t=>{" "===t.key&&(t.preventDefault(),t.stopPropagation())},this.onComboboxFocusOut=t=>{var i,e;const o=t.relatedTarget,r=o&&((null===(i=this.listboxEl)||void 0===i?void 0:i.contains(o))||(null===(e=this.portalEl)||void 0===e?void 0:e.contains(o)));this.el.contains(o)||r||(this.isOpen=!1,this.highlightedIndex=-1,this.clearExpandFilterList(),this.isArrowKeyNavigationMode=!1,this.updateAriaActiveDescendant(),this.selectedOption&&this.displayText!==this.getOptionLabel(this.selectedOption)&&(this.displayText=this.getOptionLabel(this.selectedOption)))},this.handleScroll=t=>{if(!this.asyncUrl||!this.hasMore||this.loading)return;const i=t.target;i.scrollHeight-i.scrollTop-i.clientHeight<50&&(this.pdsComboboxLoadOptions.emit({query:this.displayText,page:this.currentPage+1}),this.debouncedFetchAsyncOptions(this.displayText,this.currentPage+1))}}connectedCallback(){this.el.attachInternals&&!this.internals&&(this.internals=this.el.attachInternals())}componentWillLoad(){this.originalSearchEmitter=this.pdsComboboxSearch,this.updateOptions()}componentDidLoad(){var t,i,e;if(this.setupDebounce(),!this.selectedOption&&this.value&&this.optionEls.length>0){const t=this.optionEls.find((t=>t.value===this.value));t&&(this.setSelectedOption(t),this.displayText=this.getOptionLabel(t))}this.updateFormValue(null!==(e=null!==(i=null===(t=this.selectedOption)||void 0===t?void 0:t.value)&&void 0!==i?i:this.value)&&void 0!==e?e:"")}disconnectedCallback(){var t;void 0!==this.deferredPortalTeardownId&&(clearTimeout(this.deferredPortalTeardownId),this.deferredPortalTeardownId=void 0),null===(t=this.observer)||void 0===t||t.disconnect(),this.clearAsyncFetchState(),this.removeBodyPortal()}componentDidRender(){this.usesBodyPortal&&this.isOpen&&this.syncBodyPortal()}isOpenChanged(t){if(t&&void 0!==this.deferredPortalTeardownId&&(clearTimeout(this.deferredPortalTeardownId),this.deferredPortalTeardownId=void 0),t&&this.usesBodyPortal&&this.removeBodyPortal(),!t&&this.usesBodyPortal)return void 0!==this.deferredPortalTeardownId&&clearTimeout(this.deferredPortalTeardownId),void(this.deferredPortalTeardownId=setTimeout((()=>{this.deferredPortalTeardownId=void 0,this.el.isConnected&&(this.isOpen||this.removeBodyPortal())}),0));t||this.removeBodyPortal()}get usesBodyPortal(){return"body"===this.dropdownMount}get listboxId(){return this.componentId+"-listbox"}optionDomId(t){return`${this.componentId}-option-${t}`}setupDebounce(){const{pdsComboboxSearch:t,debounce:i,originalSearchEmitter:e}=this;this.pdsComboboxSearch=void 0===i?null!=e?e:t:b(t,i)}optionsChanged(){this.options&&(this.internalOptions=[...this.options],this.updateOptionsFromAsync())}handleValueChange(){if(this.filterOptions(),this.updateFormValue(this.value),!this.isUpdatingFromSelection&&this.value&&this.optionEls.length>0&&this.value!==(this.selectedOption?this.selectedOption.value:null)){const t=this.optionEls.find((t=>t.value===this.value));t&&(this.isUpdatingFromSelection=!0,this.setSelectedOption(t),this.displayText=this.getOptionLabel(t),this.isUpdatingFromSelection=!1)}}handleSelectedOptionChange(){this.selectedOptionLayoutContent=this.selectedOption&&this.isOptionLayout(this.selectedOption)?this.getOptionLayoutContent(this.selectedOption):"",this.selectedOptionChipProps=this.selectedOption&&this.isOptionChip(this.selectedOption)?this.getOptionChipProps(this.selectedOption):null,this.selectedOption?(this.displayText=this.getOptionLabel(this.selectedOption),this.value=this.selectedOption.value,this.updateFormValue(this.selectedOption.value)):(this.displayText="",this.value="",this.updateFormValue(""))}updateFormValue(t){s()||this.internals&&this.internals.setFormValue&&this.internals.setFormValue(t)}clearAsyncFetchState(){var t;void 0!==this.fetchDebounceTimer&&(window.clearTimeout(this.fetchDebounceTimer),this.fetchDebounceTimer=void 0),void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=void 0}debouncedFetchAsyncOptions(t,i=1){var e;if(!this.asyncUrl)return;void 0!==this.fetchDebounceTimer&&window.clearTimeout(this.fetchDebounceTimer);const o=Math.max(0,null!==(e=this.debounce)&&void 0!==e?e:0);this.fetchDebounceTimer=window.setTimeout((()=>{this.fetchDebounceTimer=void 0,this.fetchOptions(t,i)}),o)}async fetchOptions(t,i=1){var e;if(this.asyncUrl){null===(e=this.abortController)||void 0===e||e.abort(),void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),this.abortController=new AbortController,this.loading=!0,this.fetchTimeoutTimer=window.setTimeout((()=>{var t;null===(t=this.abortController)||void 0===t||t.abort(),this.fetchTimeoutTimer=void 0}),this.fetchTimeout);try{let e;try{e=new URL(this.asyncUrl,window.location.origin)}catch(t){throw new TypeError("Invalid asyncUrl: "+this.asyncUrl)}"GET"===this.asyncMethod&&(e.searchParams.set("search",t),e.searchParams.set("page",i+""));const o=await fetch(""+e,Object.assign({method:this.asyncMethod,signal:this.abortController.signal,headers:{"Content-Type":"application/json",Accept:"application/json"}},"POST"===this.asyncMethod&&{body:JSON.stringify({search:t,page:i})}));if(void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),!o.ok)throw Error("Failed to fetch options");const r=await o.json(),n=r.results.map((t=>this.formatResult?this.formatResult(t):"object"==typeof t&&null!==t?Object.assign({id:t.id,text:t.text},t):{id:t+"",text:t+""}));this.internalOptions=1===i?n:[...this.internalOptions,...n],this.hasMore=!!r.totalCount&&this.internalOptions.length<r.totalCount,this.currentPage=i,this.updateOptionsFromAsync()}catch(t){void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),"AbortError"!==t.name&&console.error("PdsCombobox: Failed to fetch options",t)}finally{this.loading=!1}}}updateOptionsFromAsync(){if(this.asyncUrl||this.options){if(this.optionEls=[],this.allItems=[],(this.options||this.internalOptions).forEach((t=>{const i=document.createElement("option");i.value=t.id+"",i.textContent=t.text,this.optionEls.push(i),this.allItems.push(i)})),this.value&&!this.selectedOption){const t=this.optionEls.find((t=>t.value===this.value));t&&this.setSelectedOption(t)}this.filterOptions()}}updateOptions(){var t;if(this.asyncUrl||this.options)return void this.updateOptionsFromAsync();const i=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="option"], slot:not([name])');if(i){const t=i.assignedElements({flatten:!0});this.allItems=[],this.optionEls=[],t.forEach((t=>{if("OPTION"===t.tagName)this.optionEls.push(t),this.allItems.push(t);else if("OPTGROUP"===t.tagName){const i=t;this.allItems.push(i),Array.from(i.children).forEach((t=>{"OPTION"===t.tagName&&(this.optionEls.push(t),this.allItems.push(t))}))}else"PDS-TEXT"===t.tagName&&this.allItems.push(t)}));let e=null;this.value&&(e=this.optionEls.find((t=>t.value===this.value))||null,e&&(this.displayText=this.getOptionLabel(e))),!e&&"chip"===this.trigger&&this.optionEls.length>0&&(e=this.optionEls[0],this.value=e.value,this.displayText=this.getOptionLabel(e),console.warn("PDS Combobox: Chip triggers should always have a selected option. Automatically selected the first option.")),(e&&e!==this.selectedOption||!this.selectedOption&&e)&&this.setSelectedOption(e),this.filterOptions()}}getOptionLabel(t){return t.label||t.textContent||""}getOptionLayoutContent(t){return this.sanitizeHtml(t.innerHTML||"")}sanitizeHtml(t){return ft.sanitize(t,{CUSTOM_ELEMENT_HANDLING:{tagNameCheck:t=>t.startsWith("pds-")||/^[a-z]+$/i.test(t),attributeNameCheck:t=>/^[a-zA-Z][a-zA-Z0-9-]*$/.test(t)||t.startsWith("data-")||t.startsWith("aria-"),allowCustomizedBuiltInElements:!1},ALLOW_DATA_ATTR:!0,ALLOW_ARIA_ATTR:!0,FORBID_TAGS:["script","iframe","object","embed","form","input","textarea","select","button","style"],FORBID_ATTR:["onerror","onload","onclick","onmouseover","onmouseout","onmousemove","onfocus","onblur","onchange","onsubmit","onkeydown","onkeyup","onkeypress","onmousedown","onmouseup","ondblclick","oncontextmenu","onscroll"],ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i})}isOptionLayout(t){return this.customOptionLayouts&&t.hasAttribute("data-layout")}isOptionChip(t){return t.hasAttribute("chip-sentiment")||t.hasAttribute("chip-large")||t.hasAttribute("chip-icon")||t.hasAttribute("chip-dot")}getOptionChipProps(t){return{sentiment:t.getAttribute("chip-sentiment")||"neutral",large:t.hasAttribute("chip-large"),icon:t.getAttribute("chip-icon")||void 0,dot:t.hasAttribute("chip-dot")}}isOptionSelected(t){return this.selectedOption===t}setSelectedOption(t){this.selectedOption=t,this.selectedOptionChipProps=t&&this.isOptionChip(t)?this.getOptionChipProps(t):null}filterOptions(){if(0===this.allItems.length&&this.optionEls.length>0&&(this.allItems=[...this.optionEls]),"select-only"===this.mode||this.expandFilterListWhileOpen)this.filteredItems=[...this.allItems];else{const t=this.displayText.toLowerCase(),i=this.optionEls.filter((i=>this.isOptionLayout(i)?(i.getAttribute("data-search-text")||i.textContent||"").toLowerCase().includes(t):this.getOptionLabel(i).toLowerCase().includes(t)));this.filteredItems=[];let e=null;this.allItems.forEach((t=>{if("OPTGROUP"===t.tagName||"PDS-TEXT"===t.tagName)e=t;else if("OPTION"===t.tagName&&i.includes(t)){const i=t,o=i.parentElement;let r=null;o&&"OPTGROUP"===o.tagName?r=o:e&&"PDS-TEXT"===e.tagName&&(r=e),r&&!this.filteredItems.includes(r)&&this.filteredItems.push(r),this.filteredItems.push(i)}}))}this.highlightedIndex=-1}clearExpandFilterList(){this.expandFilterListWhileOpen=!1}prepareExpandFilterListOnOpen(){this.expandFilterListWhileOpen=!("filter"!==this.mode||!this.selectedOption||this.displayText!==this.getOptionLabel(this.selectedOption))}positionDropdown(){if(!this.triggerEl||!this.listboxEl)return;const t=this.usesBodyPortal?"fixed":"absolute",i=this.usesBodyPortal?"var(--pine-z-index-priority)":"var(--pine-z-index-raised)";return this.listboxEl.style.width=this.dropdownWidth,this.maxHeight&&(this.listboxEl.style.maxHeight=this.maxHeight,this.listboxEl.style.overflowY="auto"),c(this.triggerEl,this.listboxEl,{placement:this.dropdownPlacement,strategy:t,middleware:[h(12),p(),u({padding:5})]}).then((({x:e,y:o})=>{this.listboxEl&&Object.assign(this.listboxEl.style,{left:e+"px",top:o+"px",position:t,zIndex:i})}))}openDropdownPositioning(){this.triggerEl&&this.listboxEl&&this.positionDropdown()}startBodyPortalAutoUpdate(){!this.bodyPortalAutoUpdateActive&&this.triggerEl&&this.listboxEl&&(this.cleanupPositionAutoUpdate=d(this.triggerEl,this.listboxEl,(()=>{this.positionDropdown()})),this.bodyPortalAutoUpdateActive=!0)}stopBodyPortalAutoUpdate(){var t;null===(t=this.cleanupPositionAutoUpdate)||void 0===t||t.call(this),this.cleanupPositionAutoUpdate=void 0,this.bodyPortalAutoUpdateActive=!1}getPortalMountRoot(){var t;return null!==(t=this.findNearestDialogForPortal(this.el))&&void 0!==t?t:document.body}findNearestDialogForPortal(t){const i=new Set;let e=t;for(;e&&!i.has(e);){if(i.add(e),e.nodeType===Node.ELEMENT_NODE&&"dialog"===e.localName)return e;if(e.nodeType===Node.ELEMENT_NODE){const t=e.assignedSlot;if(t){e=t;continue}}const t=e.parentNode;if(!t)break;e=t instanceof ShadowRoot?t.host:t}const o=t.closest("pds-modal");if(o){const t=o.querySelector("dialog");if(t)return t}return null}ensureBodyPortal(){if(null!==this.portalEl){const t=this.getPortalMountRoot();return this.portalEl.parentElement!==t&&t.appendChild(this.portalEl),this.portalEl}return this.portalEl=document.createElement("div"),this.portalEl.className="pds-combobox-dropdown-portal",this.getPortalMountRoot().appendChild(this.portalEl),this.portalEl}syncBodyPortal(){if(!this.listboxEl)return;const t=this.ensureBodyPortal();for(const i of Array.from(t.children))i!==this.listboxEl&&i.remove();this.listboxEl.parentElement!==t&&(t.appendChild(this.listboxEl),this.positionDropdown(),this.startBodyPortalAutoUpdate())}removeBodyPortal(){var t;this.stopBodyPortalAutoUpdate(),(null===(t=this.portalEl)||void 0===t?void 0:t.parentNode)&&this.portalEl.parentNode.removeChild(this.portalEl),this.portalEl=null,this.listboxEl&&!this.listboxEl.isConnected&&(this.listboxEl=void 0)}async setFocus(){var t;this.inputEl?this.inputEl.focus():null===(t=this.triggerEl)||void 0===t||t.focus()}setInitialHighlightedIndex(){const t=this.filteredItems.filter((t=>"OPTION"===t.tagName));if(0!==t.length){if(this.selectedOption){const i=t.findIndex((t=>t===this.selectedOption));if(i>=0)return void(this.highlightedIndex=i)}this.highlightedIndex=0}else this.highlightedIndex=-1}focusFirstOption(){this.isOpen&&this.filteredItems.filter((t=>"OPTION"===t.tagName)).length>0&&(this.setInitialHighlightedIndex(),this.listboxEl&&this.updateOptionFocus())}focusFirstOptionForArrowKeys(){if(this.isOpen){if(this.usesBodyPortal)return this.isArrowKeyNavigationMode=!0,void this.focusFirstOption();if(this.isArrowKeyNavigationMode=!0,this.filteredItems.filter((t=>"OPTION"===t.tagName)).length>0){if(this.setInitialHighlightedIndex(),this.listboxEl){const t=this.listboxEl.querySelectorAll('[role="option"]'),i=t[this.highlightedIndex];i&&(t.forEach((t=>{t.setAttribute("tabindex","-1")})),i.setAttribute("tabindex","0"),i.focus(),i.scrollIntoView({block:"nearest",behavior:"smooth"}))}this.updateAriaActiveDescendant()}}}updateOptionFocus(){if(!this.listboxEl||this.highlightedIndex<0)return;const t=this.listboxEl.querySelectorAll('[role="option"]'),i=t[this.highlightedIndex];if(i){const e=Array.from(t).some((t=>t===document.activeElement));!this.usesBodyPortal&&(e||this.isArrowKeyNavigationMode)&&(t.forEach((t=>{t.setAttribute("tabindex","-1")})),i.setAttribute("tabindex","0"),i.focus()),i.scrollIntoView({block:"nearest",behavior:"smooth"})}this.updateAriaActiveDescendant()}updateAriaActiveDescendant(){this.triggerEl&&this.highlightedIndex>=0?this.triggerEl.setAttribute("aria-activedescendant",this.optionDomId(this.highlightedIndex)):this.triggerEl&&this.triggerEl.removeAttribute("aria-activedescendant")}restoreFocusToTrigger(){setTimeout((()=>{this.inputEl?this.inputEl.focus():this.triggerEl&&this.triggerEl.focus()}),0)}async getSelectedValue(){return this.selectedOption?this.selectedOption.value:null}async clear(){const t=""!==this.value||""!==this.displayText;this.displayText="",this.setSelectedOption(null),this.value="",this.filterOptions(),this.updateFormValue(""),t&&this.pdsComboboxChange.emit({value:""})}get selectedLabel(){return this.displayText||""}get selectedLayoutContent(){return this.selectedOptionLayoutContent}get selectedHasLayout(){return!!this.selectedOption&&this.isOptionLayout(this.selectedOption)}get selectedChipSentiment(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)){const t=this.selectedOption.getAttribute("chip-sentiment");if(t)return t}if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){const t=this.selectedOption.querySelector("pds-chip"),i=null==t?void 0:t.getAttribute("sentiment");if(i)return i}if(this.customTriggerContent){const t=this.el.querySelector('pds-chip[slot="trigger-content"]');if(t){const i=t.getAttribute("sentiment");if(i)return i}}return this.chipSentiment}get selectedChipLarge(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)&&this.selectedOption.hasAttribute("chip-large"))return!0;if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){const t=this.selectedOption.querySelector("pds-chip");if("lg"===(null==t?void 0:t.getAttribute("size")))return!0}if(this.customTriggerContent){const t=this.el.querySelector('pds-chip[slot="trigger-content"]');if(t&&"lg"===t.getAttribute("size"))return!0}return this.chipLarge}get selectedChipIcon(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)){const t=this.selectedOption.getAttribute("chip-icon");if(t)return t}if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){const t=this.selectedOption.querySelector("pds-chip"),i=null==t?void 0:t.getAttribute("icon");if(i)return i}if(this.customTriggerContent){const t=this.el.querySelector('pds-chip[slot="trigger-content"]');if(t){const i=t.getAttribute("icon");if(i)return i}}return this.chipIcon}get selectedChipDot(){if(this.selectedOption&&this.isOptionChip(this.selectedOption)&&this.selectedOption.hasAttribute("chip-dot"))return!0;if(this.selectedOption&&this.isOptionLayout(this.selectedOption)){const t=this.selectedOption.querySelector("pds-chip");if(null==t?void 0:t.hasAttribute("dot"))return!0}if(this.customTriggerContent){const t=this.el.querySelector('pds-chip[slot="trigger-content"]');if(t&&t.hasAttribute("dot"))return!0}return this.chipDot}handleOptionClick(t){this.setSelectedOption(t),this.isOpen=!1,this.clearExpandFilterList(),this.pdsComboboxChange.emit({value:t.value})}renderDropdown(){if(!this.isOpen)return null;const t=!this.usesBodyPortal&&!!this.el.querySelector('[slot="empty"]'),i=!this.usesBodyPortal&&!!this.el.querySelector('[slot="loading"]');let e=0;const r=this.filteredItems.filter((t=>"OPTION"===t.tagName));return o("ul",{class:"pds-combobox__listbox",role:"listbox",id:this.listboxId,"aria-label":this.label||"Options","aria-multiselectable":"false",ref:t=>this.listboxEl=t,onScroll:this.handleScroll},this.loading&&o("li",{class:"pds-combobox__loading",role:"presentation"},i?o("slot",{name:"loading"}):o("pds-loader",{size:"small"})),!this.loading&&0===this.filteredItems.length&&o("li",{class:"pds-combobox__empty",role:"presentation"},t?o("slot",{name:"empty"}):o("span",null,"No options found")),this.filteredItems.map(((t,i)=>{if("OPTGROUP"===t.tagName)return o("li",{key:"optgroup-"+i,class:"pds-combobox__group-label",role:"presentation","aria-label":t.label},t.label);if("PDS-TEXT"===t.tagName)return o("li",{key:"pds-text-"+i,class:"pds-combobox__group-label",role:"presentation"},t.textContent);if("OPTION"===t.tagName){const i=t,n=this.isOptionSelected(i),s=this.highlightedIndex===e,a=this.isOptionLayout(i),l=this.isOptionChip(i),c=e++;return o("li",{key:i.value,id:this.optionDomId(c),role:"option","aria-selected":n?"true":"false","aria-setsize":r.length,"aria-posinset":c+1,"aria-label":a||l?i.getAttribute("aria-label")||this.getOptionLabel(i):void 0,tabindex:this.usesBodyPortal?"-1":s?"0":"-1",class:{"pds-combobox__option":!0,"pds-combobox__option--highlighted":s,"pds-combobox__option--layout":a,"pds-combobox__option--chip":l},"data-option-index":c,onMouseDown:this.onOptionMouseDown,onClick:this.onOptionClick,onMouseEnter:this.onOptionMouseEnter,onKeyDown:this.onOptionKeyDown},a?o("pds-box",{class:"pds-combobox__option-layout-wrapper",innerHTML:this.getOptionLayoutContent(i)}):l?this.renderOptionChip(i):this.getOptionLabel(i),n&&o("pds-icon",{icon:"check",size:"regular",class:"pds-combobox__option-check"}))}return null})),this.hasMore&&!this.loading&&o("li",{class:"pds-combobox__load-more",role:"presentation"},o("pds-loader",{size:"small"})))}renderCaretIcon(){return o("pds-icon",{icon:"caret-down","aria-hidden":"true",class:"pds-combobox__button-trigger-chevron"})}renderLayoutContent(){return o("div",{class:"pds-combobox__button-trigger-layout-wrapper",innerHTML:this.selectedLayoutContent})}renderDefaultContent(){return o("span",{class:"pds-combobox__button-trigger-label"},this.selectedLabel||this.placeholder)}shouldShowLayoutContent(){return this.selectedHasLayout&&!!this.selectedLayoutContent}getChipTriggerClass(){const t=["pds-combobox__chip-trigger"];return t.push("pds-combobox__chip-trigger--"+this.selectedChipSentiment),t.push("pds-combobox__chip-trigger--dropdown"),this.selectedChipLarge&&t.push("pds-combobox__chip-trigger--large"),this.selectedChipDot&&t.push("pds-combobox__chip-trigger--dot"),t.join(" ")}renderButtonTriggerContent(){return this.customTriggerContent?this.shouldShowLayoutContent()?[this.renderLayoutContent(),this.renderCaretIcon()]:o("slot",{name:"trigger-content"}):this.shouldShowLayoutContent()?[this.renderLayoutContent(),this.renderCaretIcon()]:[this.renderDefaultContent(),this.renderCaretIcon()]}renderChipTriggerContent(){return this.customTriggerContent?this.shouldShowLayoutContent()?this.renderChipTriggerLayoutContent():o("slot",{name:"trigger-content"}):this.shouldShowLayoutContent()?this.renderChipTriggerLayoutContent():this.selectedOption&&this.selectedOptionChipProps?this.renderSelectedOptionAsChip():[this.renderChipTriggerDefaultContent(),this.renderCaretIcon()]}renderSelectedOptionAsChip(){return this.selectedOption&&this.selectedOptionChipProps?o("pds-chip",{sentiment:this.selectedOptionChipProps.sentiment,variant:"dropdown",size:this.selectedOptionChipProps.large?"lg":void 0,icon:this.selectedOptionChipProps.icon,dot:this.selectedOptionChipProps.dot,class:"pds-combobox__chip-trigger-auto"},this.getOptionLabel(this.selectedOption)):null}renderChipTriggerLayoutContent(){return o("div",{class:"pds-combobox__chip-trigger-layout-wrapper",innerHTML:this.getModifiedLayoutContentForTrigger()})}getModifiedLayoutContentForTrigger(){let t=this.selectedLayoutContent;if(t.includes("<pds-chip")){const i=document.createElement("div");i.innerHTML=t;const e=i.querySelector("pds-chip");e&&(e.setAttribute("variant","dropdown"),t=i.innerHTML)}return t}renderChipTriggerDefaultContent(){return o("span",{class:"pds-combobox__chip-trigger-label"},this.selectedChipIcon&&o("pds-icon",{icon:this.selectedChipIcon,class:"pds-combobox__chip-trigger-icon"}),this.selectedLabel||this.placeholder)}renderOptionChip(t){const i=this.getOptionChipProps(t);return o("pds-chip",{sentiment:i.sentiment,variant:"text",size:i.large?"lg":void 0,icon:i.icon,dot:i.dot,class:"pds-combobox__option-chip"},this.getOptionLabel(t))}isInvalid(){return!!this.invalid||!!this.errorMessage}renderMessages(){const t=!!this.errorMessage;return[!!this.helperMessage&&!t&&o("p",{class:"pds-combobox__helper",id:a(this.componentId,"helper")},this.helperMessage),t&&o("p",{class:"pds-combobox__error",id:a(this.componentId,"error"),"aria-live":"assertive"},o("pds-icon",{icon:"danger",size:"small","aria-hidden":"true"}),this.errorMessage)]}render(){const t=["pds-combobox__button-trigger","pds-combobox__button-trigger--"+this.triggerVariant,"input"===this.triggerShape&&"pds-combobox__button-trigger--input-shape"].filter(Boolean).join(" ");return o(r,{key:"a39df3c86a29028344943bd3a2828d5e99106d77","aria-disabled":this.disabled?"true":null},o("div",{key:"32cdb8ce31f9d7c9eac8f995cd233fe6f4d9dfc3",class:"pds-combobox",tabIndex:-1,onFocusout:this.onComboboxFocusOut,part:"combobox"},this.label&&!this.hideLabel&&o("label",{key:"64ed7fe37082e2f895daae0090ae3dfac472e3c3",htmlFor:this.componentId,class:"pds-combobox__label"},this.label),"input"===this.trigger?o("div",{class:"pds-combobox__input-wrapper",style:{width:this.triggerWidth}},o("input",{ref:t=>{this.inputEl=t,this.triggerEl=t},class:{"pds-combobox__input":!0,"pds-combobox__input--invalid":this.isInvalid()},type:"text",role:"combobox","aria-autocomplete":"list","aria-controls":this.listboxId,"aria-describedby":l(this.componentId,this.isInvalid(),this.helperMessage,this.errorMessage),"aria-invalid":this.isInvalid()?"true":void 0,"aria-activedescendant":this.isOpen&&this.highlightedIndex>=0?this.optionDomId(this.highlightedIndex):void 0,"aria-expanded":this.isOpen?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":this.hideLabel?this.label:void 0,id:this.componentId,value:this.displayText,placeholder:this.placeholder,disabled:this.disabled,onInput:this.handleInput,onClick:this.handleInputClick,onKeyDown:this.handleKeyDown,autocomplete:"off",part:"input"}),o("pds-icon",{icon:"enlarge","aria-hidden":"true",class:"pds-combobox__input-icon"})):"chip"===this.trigger?o("div",{class:this.getChipTriggerClass(),style:{width:this.triggerWidth},role:"combobox","aria-haspopup":"listbox","aria-controls":this.listboxId,"aria-describedby":l(this.componentId,this.isInvalid(),this.helperMessage,this.errorMessage),"aria-invalid":this.isInvalid()?"true":void 0,"aria-activedescendant":this.isOpen&&this.highlightedIndex>=0?this.optionDomId(this.highlightedIndex):void 0,"aria-expanded":this.isOpen?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":this.hideLabel?this.label:void 0,id:this.componentId,tabIndex:this.disabled?-1:0,onClick:this.onButtonTriggerClick,"data-layout":this.customTriggerContent,onKeyDown:this.onButtonTriggerKeyDown,onKeyUp:this.onButtonTriggerKeyUp,ref:t=>this.triggerEl=t,part:"chip-trigger"},this.renderChipTriggerContent()):o("div",{class:t,style:{width:this.triggerWidth},role:"combobox","aria-haspopup":"listbox","aria-controls":this.listboxId,"aria-describedby":l(this.componentId,this.isInvalid(),this.helperMessage,this.errorMessage),"aria-invalid":this.isInvalid()?"true":void 0,"aria-activedescendant":this.isOpen&&this.highlightedIndex>=0?this.optionDomId(this.highlightedIndex):void 0,"aria-expanded":this.isOpen?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":this.hideLabel?this.label:void 0,id:this.componentId,tabIndex:this.disabled?-1:0,onClick:this.onButtonTriggerClick,"data-layout":this.customTriggerContent,onKeyDown:this.onButtonTriggerKeyDown,onKeyUp:this.onButtonTriggerKeyUp,ref:t=>this.triggerEl=t,part:"button-trigger"},this.renderButtonTriggerContent()),this.renderMessages(),o("div",{key:"48041c41a39987f2f4093bd048d6c495ea69514b",style:{display:"none"}},o("slot",{key:"5f4d95fefbd3dbdb33ecb25af593c9429df0e10b",onSlotchange:()=>this.updateOptions()})),this.renderDropdown()))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{isOpen:[{isOpenChanged:0}],debounce:[{setupDebounce:0}],options:[{optionsChanged:0}],value:[{handleValueChange:0}],selectedOption:[{handleSelectedOptionChange:0}]}}static get style(){return':host{display:block}:host([aria-disabled=true]) .pds-combobox__input-icon{color:var(--pine-color-text-disabled);pointer-events:none}.pds-combobox{position:relative}.pds-combobox__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-combobox__input-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;position:relative;width:100%}.pds-combobox__input{background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body-medium);padding:var(--pine-dimension-xs) var(--pine-dimension-450) var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-transition:border-color var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease;width:100%}.pds-combobox__input:hover:not(:disabled){border-color:var(--pine-color-border-hover)}.pds-combobox__input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-combobox__input:disabled::-webkit-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-moz-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled:-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::-ms-input-placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:disabled::placeholder{color:var(--pine-color-text-placeholder-disabled)}.pds-combobox__input:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input::placeholder{color:var(--pine-color-text-placeholder)}.pds-combobox__input.pds-combobox__input--invalid{background:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}:host-context([data-theme=dark]) .pds-combobox__input.pds-combobox__input--invalid{background:var(--pine-color-red-950)}.pds-combobox__input.pds-combobox__input--invalid:hover:not(:disabled){border-color:var(--pine-color-border-danger)}.pds-combobox__input.pds-combobox__input--invalid:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-combobox__input-icon{color:var(--pine-color-text-secondary);inset-inline-end:var(--pine-dimension-150);pointer-events:none;position:absolute;z-index:calc(var(--pine-z-index-raised) - 1)}.pds-combobox__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-combobox__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm-medium);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-combobox__error pds-icon{-ms-flex-negative:0;flex-shrink:0;-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.pds-combobox__listbox{background:var(--pine-color-background-overlay);border:0;border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);list-style:none;margin:0;min-width:220px;overflow-y:auto;padding:var(--pine-dimension-xs);position:absolute;z-index:var(--pine-z-index-raised)}.pds-combobox__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-125);color:var(--pine-color-text-secondary);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;-webkit-transition:background 0.15s;transition:background 0.15s}.pds-combobox__option[aria-selected=true]{background:var(--pine-color-background-muted)}.pds-combobox__option:focus-visible{outline:0}.pds-combobox__option.pds-combobox__option--layout .pds-combobox__option-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option.pds-combobox__option--chip .pds-combobox__option-chip{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__option:last-child{-webkit-margin-after:0;margin-block-end:0}.pds-combobox__option--highlighted,.pds-combobox__option[selected],.pds-combobox__option--selected{background:var(--pine-color-background-muted)}.pds-combobox__option-check{color:currentColor;font-size:var(--pine-dimension-150);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__group-label{color:var(--pine-color-text-tertiary);cursor:default;font:var(--pine-typography-heading-caption);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-150);margin-block-start:var(--pine-dimension-150);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm);text-transform:uppercase}.pds-combobox__group-label:first-child{-webkit-margin-before:0;margin-block-start:0}.pds-combobox__loading{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__empty{color:var(--pine-color-text-tertiary);padding:var(--pine-dimension-150) var(--pine-dimension-sm);text-align:center}.pds-combobox__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-150)}.pds-combobox__button-trigger{-ms-flex-align:center;align-items:center;background:var(--color-background-default, var(--pine-color-secondary));border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--color-text-default, var(--pine-color-text-inverse-emphasis));cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;min-height:var(--pine-dimension-450);outline:none;padding:0 var(--pine-dimension-sm);-webkit-transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, background 0.15s, -webkit-box-shadow 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s;transition:border-color 0.15s, box-shadow 0.15s, background 0.15s, -webkit-box-shadow 0.15s;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__button-trigger .pds-combobox__button-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__button-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__button-trigger:focus-visible{border-color:var(--color-border-focus, var(--pine-color-border));-webkit-box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring));box-shadow:0 0 0 2px var(--color-outline, var(--pine-color-focus-ring))}.pds-combobox__button-trigger:hover{background:var(--color-background-hover, var(--pine-color-secondary-hover));border-color:var(--color-border-hover, var(--pine-color-border-hover))}.pds-combobox__button-trigger[aria-disabled=true],.pds-combobox__button-trigger:disabled{background:var(--color-background-disabled, var(--pine-color-secondary-disabled));border-color:var(--color-border-disabled, var(--pine-color-border-disabled));color:var(--color-text-disabled, var(--pine-color-text-secondary-disabled));cursor:not-allowed;opacity:0.6}.pds-combobox__button-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__button-trigger--input-shape{border-radius:var(--pine-dimension-125);min-height:var(--pine-dimension-500)}.pds-combobox__button-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__button-trigger--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-border-disabled:var(--pine-color-primary-disabled);--color-border-focus:var(--pine-color-primary);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-border-disabled:var(--pine-color-accent-disabled);--color-border-focus:var(--pine-color-accent);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--secondary{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-default:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring)}.pds-combobox__button-trigger--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-border-disabled:var(--pine-color-danger-disabled);--color-border-focus:var(--pine-color-danger);--color-text-default:var(--pine-color-white);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger)}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-layout]{border-radius:var(--pine-dimension-125);padding-block:var(--pine-dimension-xs)}.pds-combobox__chip-trigger{-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font:var(--pine-typography-body-medium);-ms-flex-pack:justify;justify-content:space-between;outline:none;padding-block:var(--pine-dimension-025);padding-inline:var(--pine-dimension-150);-webkit-transition:all 0.15s ease;transition:all 0.15s ease;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.pds-combobox__chip-trigger .pds-combobox__chip-trigger-layout-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.pds-combobox__chip-trigger .trigger-content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:100%}.pds-combobox__chip-trigger:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-combobox__chip-trigger[aria-disabled=true]{cursor:not-allowed;opacity:0.6}.pds-combobox__chip-trigger-label{color:inherit;-ms-flex:1 1 auto;flex:1 1 auto;text-align:start}.pds-combobox__chip-trigger-chevron{color:currentColor;-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-combobox__chip-trigger-icon{-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs)}.pds-combobox__chip-trigger--neutral,.pds-combobox__chip-trigger--accent,.pds-combobox__chip-trigger--success,.pds-combobox__chip-trigger--warning,.pds-combobox__chip-trigger--danger,.pds-combobox__chip-trigger--info{background:var(--chip-bg);border:var(--pine-border-width) solid var(--chip-border);color:var(--chip-text)}.pds-combobox__chip-trigger--neutral:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--accent:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--success:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--warning:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--danger:hover:not([aria-disabled=true]),.pds-combobox__chip-trigger--info:hover:not([aria-disabled=true]){background:var(--chip-bg-hover)}.pds-combobox__chip-trigger--neutral:focus-visible,.pds-combobox__chip-trigger--accent:focus-visible,.pds-combobox__chip-trigger--success:focus-visible,.pds-combobox__chip-trigger--warning:focus-visible,.pds-combobox__chip-trigger--danger:focus-visible,.pds-combobox__chip-trigger--info:focus-visible{border-color:var(--chip-border)}.pds-combobox__chip-trigger--neutral{--chip-bg:var(--pine-chip-color-neutral);--chip-bg-hover:var(--pine-chip-color-neutral-hover);--chip-border:var(--pine-chip-color-neutral-hover);--chip-text:var(--pine-color-text-neutral)}.pds-combobox__chip-trigger--accent{--chip-bg:var(--pine-chip-color-accent);--chip-bg-hover:var(--pine-chip-color-accent-hover);--chip-border:var(--pine-chip-color-accent-hover);--chip-text:var(--pine-color-text-accent)}.pds-combobox__chip-trigger--success{--chip-bg:var(--pine-chip-color-success);--chip-bg-hover:var(--pine-chip-color-success-hover);--chip-border:var(--pine-chip-color-success-hover);--chip-text:var(--pine-color-text-success)}.pds-combobox__chip-trigger--warning{--chip-bg:var(--pine-chip-color-warning);--chip-bg-hover:var(--pine-chip-color-warning-hover);--chip-border:var(--pine-chip-color-warning-hover);--chip-text:var(--pine-color-text-warning)}.pds-combobox__chip-trigger--danger{--chip-bg:var(--pine-chip-color-danger);--chip-bg-hover:var(--pine-chip-color-danger-hover);--chip-border:var(--pine-chip-color-danger-hover);--chip-text:var(--pine-color-text-danger)}.pds-combobox__chip-trigger--info{--chip-bg:var(--pine-chip-color-info);--chip-bg-hover:var(--pine-chip-color-info-hover);--chip-border:var(--pine-chip-color-info-hover);--chip-text:var(--pine-color-text-info)}.pds-combobox__chip-trigger--brand{background:-webkit-gradient(linear, left top, right top, from(#FF3E14), to(#6B62F2));background:linear-gradient(90deg, #FF3E14 0%, #6B62F2 100%);border:0;color:var(--pine-color-text-neutral);padding:1px;position:relative}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.9);border-radius:calc(var(--pine-dimension-sm) - 1px);color:var(--pine-color-text-neutral);font-weight:var(--pine-font-weight-medium);padding:var(--pine-dimension-025) var(--pine-dimension-150);position:relative;z-index:1}.pds-combobox__chip-trigger--brand .pds-combobox__chip-trigger-chevron{position:relative;z-index:1}.pds-combobox__chip-trigger--brand:hover:not([aria-disabled=true]) .pds-combobox__chip-trigger-label{background:rgba(255, 255, 255, 0.8)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand){padding:var(--pine-dimension-none)}.pds-combobox__chip-trigger--dropdown:not(.pds-combobox__chip-trigger--brand) .pds-combobox__chip-trigger-label{padding:var(--pine-dimension-025) var(--pine-dimension-150)}.pds-combobox__chip-trigger--large .pds-combobox__chip-trigger-label{font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-combobox__chip-trigger--dot .pds-combobox__chip-trigger-label::before{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);content:"";display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}'}},[321,"pds-combobox",{componentId:[1,"component-id"],name:[513],customOptionLayouts:[4,"custom-option-layouts"],customTriggerContent:[4,"custom-trigger-content"],disabled:[4],errorMessage:[1,"error-message"],dropdownPlacement:[1,"dropdown-placement"],dropdownWidth:[1,"dropdown-width"],dropdownMount:[1,"dropdown-mount"],helperMessage:[1,"helper-message"],hideLabel:[4,"hide-label"],invalid:[4],label:[1],maxHeight:[1,"max-height"],mode:[1],placeholder:[1],trigger:[1],triggerWidth:[1,"trigger-width"],triggerVariant:[1,"trigger-variant"],triggerShape:[1,"trigger-shape"],chipSentiment:[1,"chip-sentiment"],chipLarge:[4,"chip-large"],chipIcon:[1,"chip-icon"],chipDot:[4,"chip-dot"],value:[1025],asyncUrl:[1,"async-url"],asyncMethod:[1,"async-method"],debounce:[2],fetchTimeout:[2,"fetch-timeout"],loading:[1028],options:[16],formatResult:[16],displayText:[32],filteredItems:[32],highlightedIndex:[32],isOpen:[32],selectedOption:[32],selectedOptionLayoutContent:[32],selectedOptionChipProps:[32],internalOptions:[32],currentPage:[32],hasMore:[32],setFocus:[64],getSelectedValue:[64],clear:[64]},void 0,{isOpen:[{isOpenChanged:0}],debounce:[{setupDebounce:0}],options:[{optionsChanged:0}],value:[{handleValueChange:0}],selectedOption:[{handleSelectedOptionChange:0}]}]),xt=vt,_t=function(){"undefined"!=typeof customElements&&["pds-combobox","pds-box","pds-chip","pds-icon","pds-loader"].forEach((t=>{switch(t){case"pds-combobox":customElements.get(n(t))||customElements.define(n(t),vt);break;case"pds-box":customElements.get(n(t))||m();break;case"pds-chip":customElements.get(n(t))||g();break;case"pds-icon":customElements.get(n(t))||f();break;case"pds-loader":customElements.get(n(t))||v()}}))};export{xt as PdsCombobox,_t as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as t,HTMLElement as e,createEvent as o,h as s,Host as n,transformTag as i}from"@stencil/core/internal/client";import{f as d}from"./index2.js";import{s as p}from"./truncation-tooltip.js";import{d as r}from"./pds-button2.js";import{d as a}from"./pds-icon2.js";import{d as c}from"./pds-loader2.js";const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pdsCopyTextClick=o(this,"pdsCopyTextClick",7),this.truncationCleanup=null,this.border=!0,this.fullWidth=!1,this.truncate=!1,this.copyToClipboard=async t=>{try{void 0!==navigator.clipboard&&(await navigator.clipboard.writeText(t),this.pdsCopyTextClick.emit("Copied to clipboard"))}catch(t){this.pdsCopyTextClick.emit("Error writing text to clipboard: "+t)}},this.handleClick=()=>{this.copyToClipboard(this.value)}}handleTruncateChange(t){t?this.initTruncationTooltip():this.destroyTruncationTooltip()}handleValueChange(){this.truncate&&this.initTruncationTooltip()}componentDidLoad(){this.truncate&&this.initTruncationTooltip()}disconnectedCallback(){this.destroyTruncationTooltip()}initTruncationTooltip(){this.destroyTruncationTooltip(),this.valueSpanEl&&(this.truncationCleanup=p({hostEl:this.el,contentEl:this.valueSpanEl,getTooltipText:()=>this.value||""}))}destroyTruncationTooltip(){this.truncationCleanup&&(this.truncationCleanup(),this.truncationCleanup=null)}classNames(){const t=["pds-copytext"];return this.border&&t.push("pds-copytext--bordered"),this.fullWidth&&t.push("pds-copytext--full-width"),this.truncate&&t.push("pds-copytext--truncated"),t.join(" ")}render(){return s(n,{key:"
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as e,createEvent as o,h as s,Host as n,transformTag as i}from"@stencil/core/internal/client";import{f as d}from"./index2.js";import{s as p}from"./truncation-tooltip.js";import{d as r}from"./pds-button2.js";import{d as a}from"./pds-icon2.js";import{d as c}from"./pds-loader2.js";const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.pdsCopyTextClick=o(this,"pdsCopyTextClick",7),this.truncationCleanup=null,this.border=!0,this.fullWidth=!1,this.truncate=!1,this.copyToClipboard=async t=>{try{void 0!==navigator.clipboard&&(await navigator.clipboard.writeText(t),this.pdsCopyTextClick.emit("Copied to clipboard"))}catch(t){this.pdsCopyTextClick.emit("Error writing text to clipboard: "+t)}},this.handleClick=()=>{this.copyToClipboard(this.value)}}handleTruncateChange(t){t?this.initTruncationTooltip():this.destroyTruncationTooltip()}handleValueChange(){this.truncate&&this.initTruncationTooltip()}componentDidLoad(){this.truncate&&this.initTruncationTooltip()}disconnectedCallback(){this.destroyTruncationTooltip()}initTruncationTooltip(){this.destroyTruncationTooltip(),this.valueSpanEl&&(this.truncationCleanup=p({hostEl:this.el,contentEl:this.valueSpanEl,getTooltipText:()=>this.value||"",manageTabIndex:!1}))}destroyTruncationTooltip(){this.truncationCleanup&&(this.truncationCleanup(),this.truncationCleanup=null)}classNames(){const t=["pds-copytext"];return this.border&&t.push("pds-copytext--bordered"),this.fullWidth&&t.push("pds-copytext--full-width"),this.truncate&&t.push("pds-copytext--truncated"),t.join(" ")}render(){return s(n,{key:"6e3ff4eb0dc42e57156a162196a06a675cac6f91",class:this.classNames(),id:this.componentId},s("pds-button",{key:"749a8dde35eb3c70941229d11dc6477aaf717ed1",type:"button",variant:"unstyled",onClick:this.handleClick},s("span",{key:"7f457a164f3ae76a37814d37d7b5e3fce86bd803",ref:t=>this.valueSpanEl=t},this.value),s("pds-icon",{key:"0ff6dad44148c23ee9d693e82880598b91b0630e","aria-hidden":"true",icon:d,size:"16px"})))}get el(){return this}static get watchers(){return{truncate:[{handleTruncateChange:0}],value:[{handleValueChange:0}]}}static get style(){return":host(.pds-copytext){--copytext-color-background-hover:var(--pine-color-background-inset)}:host(.pds-copytext) pds-button{-ms-flex-align:center;align-items:center;border-radius:var(--pine-border-radius-full);border-width:var(--pine-dimension-none);display:-ms-inline-flexbox;display:inline-flex;font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-body-md);font-weight:var(--pine-font-weight-body-medium);letter-spacing:var(--pine-letter-spacing);line-height:var(--pine-line-height-body);max-width:100%}:host(.pds-copytext) pds-button::part(button){padding-block:var(--pine-dimension-2xs);padding-inline:var(--pine-dimension-xs)}:host(.pds-copytext) pds-button::part(button):hover{background-color:var(--copytext-color-background-hover);color:var(--pine-color-text-secondary-hover)}:host(.pds-copytext) pds-button span{font-weight:var(--pine-font-weight-medium);-webkit-margin-end:var(--pine-dimension-xs);margin-inline-end:var(--pine-dimension-xs);white-space:nowrap}:host(.pds-copytext) pds-button :nth-child(2){-ms-flex-negative:0;flex-shrink:0}:host(.pds-copytext):host(.pds-copytext--bordered){border-width:var(--pine-dimension-none);padding:var(--pine-dimension-none)}:host(.pds-copytext):host(.pds-copytext--bordered) pds-button{padding:var(--pine-dimension-none)}:host(.pds-copytext):host(.pds-copytext--bordered) pds-button::part(button){padding:var(--pine-dimension-none)}:host(.pds-copytext):host(.pds-copytext--bordered) pds-button::part(button):hover{background-color:transparent}:host(.pds-copytext):host(.pds-copytext--bordered) span{background:var(--pine-color-secondary);border:var(--pine-border);border-radius:var(--pine-border-radius-full);-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm);padding-block:var(--pine-dimension-xs);padding-inline:var(--pine-dimension-sm)}:host(.pds-copytext):host(.pds-copytext--bordered) :hover span{border:var(--pine-border-hover)}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button,:host(.pds-copytext):host(.pds-copytext--truncated) pds-button{display:-ms-inline-flexbox;display:inline-flex;min-width:auto;width:100%}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button::part(button-content),:host(.pds-copytext):host(.pds-copytext--full-width) pds-button::part(button-text),:host(.pds-copytext):host(.pds-copytext--truncated) pds-button::part(button-content),:host(.pds-copytext):host(.pds-copytext--truncated) pds-button::part(button-text){-ms-flex-negative:1;flex-shrink:1;width:100%}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button span,:host(.pds-copytext):host(.pds-copytext--truncated) pds-button span{text-align:start;width:100%}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button{-ms-flex-pack:justify;justify-content:space-between}:host(.pds-copytext):host(.pds-copytext--truncated) pds-button span{overflow:hidden;text-overflow:ellipsis}"}},[1,"pds-copytext",{border:[516],componentId:[1,"component-id"],fullWidth:[4,"full-width"],truncate:[4],value:[1]},void 0,{truncate:[{handleTruncateChange:0}],value:[{handleValueChange:0}]}]),l=h,u=function(){"undefined"!=typeof customElements&&["pds-copytext","pds-button","pds-icon","pds-loader"].forEach((t=>{switch(t){case"pds-copytext":customElements.get(i(t))||customElements.define(i(t),h);break;case"pds-button":customElements.get(i(t))||r();break;case"pds-icon":customElements.get(i(t))||a();break;case"pds-loader":customElements.get(i(t))||c()}}))};export{l as PdsCopytext,u as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface PdsDrawerContent extends Components.PdsDrawerContent, HTMLElement {}
|
|
4
|
+
export const PdsDrawerContent: {
|
|
5
|
+
prototype: PdsDrawerContent;
|
|
6
|
+
new (): PdsDrawerContent;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as t,h as n,transformTag as o}from"@stencil/core/internal/client";import{u as d}from"./reconnected-content.js";const r=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}componentDidRender(){d(this.el.querySelector(".pds-drawer-content"),".pds-drawer-content")}render(){return n("div",{key:"432db626c93ab42365ec1af83562eec7ae1c4674",class:"pds-drawer-content"},n("slot",{key:"901ab074f31726023add709a4953bddb43842de2"}))}get el(){return this}static get style(){return"pds-drawer-content{display:block;-ms-flex:1 1 auto;flex:1 1 auto;min-height:0;width:100%}.pds-drawer-content{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:100%;padding:var(--pine-dimension-md);width:100%}.pds-modal--scrollable pds-drawer-content{overflow-y:auto}.pds-modal:not(.pds-modal--scrollable) pds-drawer-content{overflow-y:visible}"}},[260,"pds-drawer-content"]),s=r,c=function(){"undefined"!=typeof customElements&&["pds-drawer-content"].forEach((e=>{"pds-drawer-content"===e&&(customElements.get(o(e))||customElements.define(o(e),r))}))};export{s as PdsDrawerContent,c as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface PdsDrawerFooter extends Components.PdsDrawerFooter, HTMLElement {}
|
|
4
|
+
export const PdsDrawerFooter: {
|
|
5
|
+
prototype: PdsDrawerFooter;
|
|
6
|
+
new (): PdsDrawerFooter;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as r,h as o,transformTag as t}from"@stencil/core/internal/client";import{u as s}from"./reconnected-content.js";const d=e(class extends r{constructor(e){super(),!1!==e&&this.__registerHost()}componentDidRender(){s(this.el.querySelector(".pds-drawer__footer"),".pds-drawer__footer")}render(){return o("footer",{key:"71cb35f7b1ccba9e4187eb8942771741f13510dc",class:"pds-drawer__footer"},o("slot",{key:"28927c76ee8194c44f416ee5d4e9ea2e0376bf5a"}))}get el(){return this}static get style(){return"pds-drawer-footer{display:block;-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.pds-drawer__footer{-webkit-border-before:1px solid var(--pine-color-border-subtle);border-block-start:1px solid var(--pine-color-border-subtle);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-sm);-ms-flex-pack:end;justify-content:flex-end;padding:var(--pine-dimension-md);width:100%}"}},[260,"pds-drawer-footer"]),n=d,i=function(){"undefined"!=typeof customElements&&["pds-drawer-footer"].forEach((e=>{"pds-drawer-footer"===e&&(customElements.get(t(e))||customElements.define(t(e),d))}))};export{n as PdsDrawerFooter,i as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface PdsDrawerHeader extends Components.PdsDrawerHeader, HTMLElement {}
|
|
4
|
+
export const PdsDrawerHeader: {
|
|
5
|
+
prototype: PdsDrawerHeader;
|
|
6
|
+
new (): PdsDrawerHeader;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as r,h as d,transformTag as t}from"@stencil/core/internal/client";import{u as s}from"./reconnected-content.js";const o=e(class extends r{constructor(e){super(),!1!==e&&this.__registerHost()}componentDidRender(){s(this.el.querySelector(".pds-drawer__header"),".pds-drawer__header")}render(){return d("header",{key:"48d0585e0e20c9d3142635f0fc0184c0803413b8",class:"pds-drawer__header"},d("slot",{key:"14d9d0bde0116c81892140b22a2b6e9a2b1d969f"}))}get el(){return this}static get style(){return"pds-drawer-header{display:block;-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.pds-drawer__header{-ms-flex-align:center;align-items:center;-webkit-border-after:1px solid var(--pine-color-border-subtle);border-block-end:1px solid var(--pine-color-border-subtle);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--pine-dimension-md);width:100%}"}},[260,"pds-drawer-header"]),n=o,a=function(){"undefined"!=typeof customElements&&["pds-drawer-header"].forEach((e=>{"pds-drawer-header"===e&&(customElements.get(t(e))||customElements.define(t(e),o))}))};export{n as PdsDrawerHeader,a as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface PdsDrawer extends Components.PdsDrawer, HTMLElement {}
|
|
4
|
+
export const PdsDrawer: {
|
|
5
|
+
prototype: PdsDrawer;
|
|
6
|
+
new (): PdsDrawer;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{proxyCustomElement as d,HTMLElement as s,createEvent as e,h as r,Host as t,transformTag as a}from"@stencil/core/internal/client";import{u as o}from"./reconnected-content.js";import{d as p}from"./pds-modal2.js";const i=d(class extends s{constructor(d){super(),!1!==d&&this.__registerHost(),this.pdsDrawerOpen=e(this,"pdsDrawerOpen",7),this.pdsDrawerClose=e(this,"pdsDrawerClose",7),this.open=!1,this.side="end",this.size="md",this.scrollable=!0,this.lightDismiss=!0,this.initialFocus="auto"}componentDidRender(){o(this.el.querySelector("pds-modal.pds-drawer__modal .pds-modal"),"pds-modal.pds-drawer__modal",".pds-modal")}handleModalClose(d){d.target===this.modalEl&&(this.open=!1,this.pdsDrawerClose.emit())}handleModalOpen(d){d.target===this.modalEl&&this.pdsDrawerOpen.emit()}handleOutsidePointerDown(d){if(!this.lightDismiss||!this.open)return;const s=d.target;s&&(this.el.contains(s)||s.closest(".pds-popover, .pds-tooltip, .pds-combobox-dropdown-portal")||s.closest("pds-modal")||(this.open=!1))}render(){return r(t,{key:"66e16ca7704243e8bb98002f042fa073ec43c38b",class:{"pds-drawer":!0,["pds-drawer--"+this.side]:!0,["pds-drawer--"+this.size]:!0}},r("pds-modal",{key:"b52b8cb1892d52113920ab27344d9a969e6365b6",class:"pds-drawer__modal",ref:d=>this.modalEl=d,componentId:this.componentId,open:this.open,scrollable:this.scrollable,disableTopLayer:!0,backdropDismiss:this.lightDismiss,disableInitialFocus:"none"===this.initialFocus},r("slot",{key:"c9ce43ca12a06c550bd130a0fa7572dec22c9c92"})))}get el(){return this}static get style(){return".pds-drawer__modal>.pds-modal__backdrop{-ms-flex-align:stretch;align-items:stretch;background-color:transparent;pointer-events:none}@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))){.pds-drawer__modal>.pds-modal__backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}.pds-drawer__modal>.pds-modal__backdrop>.pds-modal{border-radius:0;height:100%;margin:0;max-height:100%;max-width:100%;pointer-events:auto;width:var(--pds-drawer-width, 500px)}.pds-drawer{display:contents}.pds-drawer.pds-drawer--end .pds-drawer__modal>.pds-modal__backdrop{-ms-flex-pack:end;justify-content:flex-end}.pds-drawer.pds-drawer--start .pds-drawer__modal>.pds-modal__backdrop{-ms-flex-pack:start;justify-content:flex-start}.pds-drawer.pds-drawer--sm{--pds-drawer-width:360px}.pds-drawer.pds-drawer--md{--pds-drawer-width:500px}"}},[260,"pds-drawer",{componentId:[1,"component-id"],open:[1028],side:[1],size:[1],scrollable:[4],lightDismiss:[4,"light-dismiss"],initialFocus:[1,"initial-focus"]},[[0,"pdsModalClose","handleModalClose"],[0,"pdsModalOpen","handleModalOpen"],[5,"pointerdown","handleOutsidePointerDown"]]]),n=i,l=function(){"undefined"!=typeof customElements&&["pds-drawer","pds-modal"].forEach((d=>{switch(d){case"pds-drawer":customElements.get(a(d))||customElements.define(a(d),i);break;case"pds-modal":customElements.get(a(d))||p()}}))};export{n as PdsDrawer,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as e,HTMLElement as t,createEvent as n,h as o,Host as i,transformTag as s}from"@stencil/core/internal/client";import{d as r}from"./pds-icon2.js";import{d}from"./pds-link2.js";const a=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.pdsClick=n(this,"pdsClick",7),this.destructive=!1,this.disabled=!1,this.external=!1,this.hasFocus=!1,this.handleFocus=()=>{this.hasFocus=!0},this.handleBlur=()=>{this.hasFocus=!1},this.handleKeyDown=e=>{this.disabled||"Enter"!==e.key||(this.href||e.preventDefault(),this.handleClick())}}async clickItem(){this.handleClick()}handleClick(){var e;const t=Array.from(this.host.parentNode.children).filter((e=>"pds-dropdown-menu-item"===e.tagName.toLowerCase())).indexOf(this.host),n=(null===(e=this.host.textContent)||void 0===e?void 0:e.trim())||"";this.pdsClick.emit({itemIndex:t,item:this.host,content:n})}renderElement(){return void 0!==this.href?o("pds-link",{download:this.download,href:this.disabled?null:this.href,external:this.external,target:this.target,class:{"pds-dropdown-menu-item__content":!0,"has-focus":this.hasFocus},tabIndex:this.disabled?-1:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,"aria-disabled":this.disabled?"true":null},o("slot",null)):o("button",{class:{"pds-dropdown-menu-item__content":!0,"has-focus":this.hasFocus},tabIndex:this.disabled?-1:0,type:"button",part:"button",onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:this.disabled,"aria-disabled":this.disabled?"true":null},o("slot",null))}render(){return o(i,{key:"
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as t,createEvent as n,h as o,Host as i,transformTag as s}from"@stencil/core/internal/client";import{d as r}from"./pds-icon2.js";import{d}from"./pds-link2.js";const a=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.pdsClick=n(this,"pdsClick",7),this.destructive=!1,this.disabled=!1,this.external=!1,this.hasFocus=!1,this.handleFocus=()=>{this.hasFocus=!0},this.handleBlur=()=>{this.hasFocus=!1},this.handleKeyDown=e=>{this.disabled||"Enter"!==e.key||(this.href||e.preventDefault(),this.handleClick())}}async clickItem(){this.handleClick()}handleClick(){var e;const t=Array.from(this.host.parentNode.children).filter((e=>"pds-dropdown-menu-item"===e.tagName.toLowerCase())).indexOf(this.host),n=(null===(e=this.host.textContent)||void 0===e?void 0:e.trim())||"";this.pdsClick.emit({itemIndex:t,item:this.host,content:n})}renderElement(){return void 0!==this.href?o("pds-link",{download:this.download,href:this.disabled?null:this.href,external:this.external,target:this.target,class:{"pds-dropdown-menu-item__content":!0,"has-focus":this.hasFocus},tabIndex:this.disabled?-1:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,"aria-disabled":this.disabled?"true":null},o("slot",null)):o("button",{class:{"pds-dropdown-menu-item__content":!0,"has-focus":this.hasFocus},tabIndex:this.disabled?-1:0,type:"button",part:"button",onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:this.disabled,"aria-disabled":this.disabled?"true":null},o("slot",null))}render(){return o(i,{key:"2fd3c925ba2f1ead6d0a23c44ac87449e8dad521",id:this.componentId,class:{"is-disabled":this.disabled,destructive:!this.disabled&&this.destructive},onClick:()=>!this.disabled&&this.handleClick(),role:"none",tabIndex:-1,"aria-disabled":this.disabled?"true":null},this.renderElement())}get host(){return this}static get style(){return":host{cursor:pointer;display:-ms-flexbox;display:flex;width:100%;}:host(.is-disabled){cursor:not-allowed !important;opacity:0.5 !important}:host(.is-disabled) .pds-dropdown-menu-item__content{cursor:not-allowed !important;pointer-events:none !important}.pds-dropdown-menu-item__content{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--pine-dimension-xs);color:var(--pine-color-text);display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;font:var(--pine-typography-body-medium);gap:var(--pine-dimension-xs);margin:calc(var(--pine-border-width) + 2px);padding:var(--pine-dimension-xs);text-align:start;width:100%;}.pds-dropdown-menu-item__content:hover{background-color:var(--pine-color-background-muted);color:var(--pine-color-text-hover)}.pds-dropdown-menu-item__content{}.pds-dropdown-menu-item__content:focus,.pds-dropdown-menu-item__content:focus-visible,.pds-dropdown-menu-item__content.has-focus{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}:host(.destructive) .pds-dropdown-menu-item__content{--pds-context-link-color:var(--pine-color-danger);--pds-context-link-color-hover:var(--pine-color-danger-hover);-ms-flex-align:center;align-items:center;color:var(--pine-color-danger)}:host(.destructive) .pds-dropdown-menu-item__content:hover{background-color:var(--pine-color-danger-disabled);color:var(--pine-color-danger-hover)}:host(.destructive) .pds-dropdown-menu-item__content:focus,:host(.destructive) .pds-dropdown-menu-item__content:focus-visible,:host(.destructive) .pds-dropdown-menu-item__content.has-focus{background-color:var(--pine-color-danger-disabled);outline:var(--pine-outline-focus-danger);outline-offset:var(--pine-border-width)}pds-link::part(link):focus,pds-link::part(link):focus-visible{-webkit-box-shadow:none;box-shadow:none;outline:none}pds-link::part(link){-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);margin:calc(var(--pine-dimension-xs) * -1);padding:var(--pine-dimension-xs);text-decoration:none;width:calc(100% + var(--pine-dimension-xs) * 2)}"}},[257,"pds-dropdown-menu-item",{componentId:[1,"component-id"],destructive:[4],disabled:[516],download:[1],href:[1],external:[516],target:[513],hasFocus:[32],clickItem:[64]}]),l=a,c=function(){"undefined"!=typeof customElements&&["pds-dropdown-menu-item","pds-icon","pds-link"].forEach((e=>{switch(e){case"pds-dropdown-menu-item":customElements.get(s(e))||customElements.define(s(e),a);break;case"pds-icon":customElements.get(s(e))||r();break;case"pds-link":customElements.get(s(e))||d()}}))};export{l as PdsDropdownMenuItem,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as e,HTMLElement as n,h as r,Host as o,transformTag as t}from"@stencil/core/internal/client";const
|
|
1
|
+
import{proxyCustomElement as e,HTMLElement as n,h as r,Host as o,transformTag as t}from"@stencil/core/internal/client";const s=e(class extends n{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.disabled=!1}render(){return r(o,{key:"f55fc3b23a6ccb94a7ce865189e5d65abdd97d8c",id:this.componentId},r("hr",{key:"784a1480881a27aec69c0a2b0afd06f103912544"}))}static get style(){return":host hr{border:0;border-top:var(--pine-border-width-thin) solid var(--pine-color-border);height:0;margin-block:var(--pine-dimension-xs);margin-inline:calc(var(--pine-dimension-xs) * -1)}"}},[1,"pds-dropdown-menu-separator",{componentId:[1,"component-id"],disabled:[4]}]),d=s,i=function(){"undefined"!=typeof customElements&&["pds-dropdown-menu-separator"].forEach((e=>{"pds-dropdown-menu-separator"===e&&(customElements.get(t(e))||customElements.define(t(e),s))}))};export{d as PdsDropdownMenuSeparator,i as defineCustomElement}
|