@solid-design-system/components 3.15.0 → 3.16.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/es/solid-components2.js +1 -1
- package/dist/components/es/textarea.js +1 -1
- package/dist/components/umd/solid-components.js +2 -2
- package/dist/custom-elements.json +1 -1
- package/dist/package/components/icon/library.default.js +2 -2
- package/dist/package/components/textarea/textarea.js +2 -2
- package/dist/versioned-components/es/accordion-group.js +1 -1
- package/dist/versioned-components/es/accordion.js +1 -1
- package/dist/versioned-components/es/badge.js +1 -1
- package/dist/versioned-components/es/brandshape.js +1 -1
- package/dist/versioned-components/es/button.js +1 -1
- package/dist/versioned-components/es/carousel-item.js +1 -1
- package/dist/versioned-components/es/carousel.js +3 -3
- package/dist/versioned-components/es/checkbox-group.js +1 -1
- package/dist/versioned-components/es/checkbox.js +1 -1
- package/dist/versioned-components/es/dialog.js +1 -1
- package/dist/versioned-components/es/divider.js +1 -1
- package/dist/versioned-components/es/drawer.js +1 -1
- package/dist/versioned-components/es/dropdown.js +1 -1
- package/dist/versioned-components/es/expandable.js +1 -1
- package/dist/versioned-components/es/flipcard.js +1 -1
- package/dist/versioned-components/es/form.js +1 -1
- package/dist/versioned-components/es/header.js +1 -1
- package/dist/versioned-components/es/icon.js +1 -1
- package/dist/versioned-components/es/include.js +1 -1
- package/dist/versioned-components/es/input.js +1 -1
- package/dist/versioned-components/es/link.js +1 -1
- package/dist/versioned-components/es/map-marker.js +1 -1
- package/dist/versioned-components/es/navigation-item.js +1 -1
- package/dist/versioned-components/es/notification.js +1 -1
- package/dist/versioned-components/es/option.js +1 -1
- package/dist/versioned-components/es/quickfact.js +1 -1
- package/dist/versioned-components/es/radio-button.js +1 -1
- package/dist/versioned-components/es/radio-group.js +1 -1
- package/dist/versioned-components/es/radio.js +1 -1
- package/dist/versioned-components/es/scrollable.js +1 -1
- package/dist/versioned-components/es/select.js +3 -3
- package/dist/versioned-components/es/solid-components2.js +2 -2
- package/dist/versioned-components/es/spinner.js +1 -1
- package/dist/versioned-components/es/step-group.js +1 -1
- package/dist/versioned-components/es/step.js +1 -1
- package/dist/versioned-components/es/switch.js +1 -1
- package/dist/versioned-components/es/tab-group.js +1 -1
- package/dist/versioned-components/es/tab-panel.js +1 -1
- package/dist/versioned-components/es/tab.js +1 -1
- package/dist/versioned-components/es/tag.js +1 -1
- package/dist/versioned-components/es/teaser-media.js +1 -1
- package/dist/versioned-components/es/teaser.js +1 -1
- package/dist/versioned-components/es/textarea.js +1 -1
- package/dist/versioned-components/es/tooltip.js +2 -2
- package/dist/versioned-components/es/video.js +1 -1
- package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
- package/dist/versioned-package/_components/button-group/button-group.js +11 -11
- package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
- package/dist/versioned-package/components/accordion/accordion.js +2 -2
- package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
- package/dist/versioned-package/components/badge/badge.d.ts +1 -1
- package/dist/versioned-package/components/badge/badge.js +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
- package/dist/versioned-package/components/button/button.d.ts +1 -1
- package/dist/versioned-package/components/button/button.js +4 -4
- package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
- package/dist/versioned-package/components/carousel/carousel.js +6 -6
- package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
- package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
- package/dist/versioned-package/components/checkbox/checkbox.js +3 -3
- package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
- package/dist/versioned-package/components/dialog/dialog.d.ts +1 -1
- package/dist/versioned-package/components/dialog/dialog.js +2 -2
- package/dist/versioned-package/components/divider/divider.d.ts +1 -1
- package/dist/versioned-package/components/divider/divider.js +2 -2
- package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
- package/dist/versioned-package/components/drawer/drawer.js +2 -2
- package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
- package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
- package/dist/versioned-package/components/expandable/expandable.d.ts +1 -1
- package/dist/versioned-package/components/expandable/expandable.js +2 -2
- package/dist/versioned-package/components/flipcard/flipcard.d.ts +1 -1
- package/dist/versioned-package/components/flipcard/flipcard.js +1 -1
- package/dist/versioned-package/components/header/header.d.ts +1 -1
- package/dist/versioned-package/components/header/header.js +4 -4
- package/dist/versioned-package/components/icon/icon.d.ts +1 -1
- package/dist/versioned-package/components/icon/icon.js +1 -1
- package/dist/versioned-package/components/icon/library.default.js +2 -2
- package/dist/versioned-package/components/include/include.d.ts +1 -1
- package/dist/versioned-package/components/include/include.js +1 -1
- package/dist/versioned-package/components/input/input.d.ts +1 -1
- package/dist/versioned-package/components/input/input.js +2 -2
- package/dist/versioned-package/components/link/link.d.ts +1 -1
- package/dist/versioned-package/components/link/link.js +2 -2
- package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
- package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
- package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist/versioned-package/components/navigation-item/navigation-item.js +5 -5
- package/dist/versioned-package/components/notification/notification.d.ts +1 -1
- package/dist/versioned-package/components/notification/notification.js +5 -5
- package/dist/versioned-package/components/option/option.d.ts +1 -1
- package/dist/versioned-package/components/option/option.js +2 -2
- package/dist/versioned-package/components/popup/popup.d.ts +1 -1
- package/dist/versioned-package/components/popup/popup.js +1 -1
- package/dist/versioned-package/components/quickfact/quickfact.d.ts +1 -1
- package/dist/versioned-package/components/quickfact/quickfact.js +2 -2
- package/dist/versioned-package/components/radio/radio.d.ts +1 -1
- package/dist/versioned-package/components/radio/radio.js +2 -2
- package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
- package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
- package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
- package/dist/versioned-package/components/radio-group/radio-group.js +13 -13
- package/dist/versioned-package/components/scrollable/scrollable.d.ts +1 -1
- package/dist/versioned-package/components/scrollable/scrollable.js +3 -3
- package/dist/versioned-package/components/select/select.d.ts +4 -4
- package/dist/versioned-package/components/select/select.js +25 -25
- package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
- package/dist/versioned-package/components/spinner/spinner.js +1 -1
- package/dist/versioned-package/components/step/step.d.ts +1 -1
- package/dist/versioned-package/components/step/step.js +5 -5
- package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
- package/dist/versioned-package/components/step-group/step-group.js +2 -2
- package/dist/versioned-package/components/switch/switch.d.ts +1 -1
- package/dist/versioned-package/components/switch/switch.js +1 -1
- package/dist/versioned-package/components/tab/tab.d.ts +1 -1
- package/dist/versioned-package/components/tab/tab.js +2 -2
- package/dist/versioned-package/components/tab-group/tab-group.d.ts +1 -1
- package/dist/versioned-package/components/tab-group/tab-group.js +13 -13
- package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
- package/dist/versioned-package/components/tag/tag.d.ts +1 -1
- package/dist/versioned-package/components/tag/tag.js +2 -2
- package/dist/versioned-package/components/teaser/teaser.js +1 -1
- package/dist/versioned-package/components/teaser-media/teaser-media.js +1 -1
- package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
- package/dist/versioned-package/components/textarea/textarea.js +4 -4
- package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
- package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
- package/dist/versioned-package/components/video/video.d.ts +1 -1
- package/dist/versioned-package/components/video/video.js +2 -2
- package/dist/versioned-package/internal/form.js +3 -3
- package/dist/versioned-package/styles/headline/headline.css.js +1 -1
- package/dist/versioned-package/utilities/autocomplete-config.js +4 -4
- package/dist/versioned-styles/solid-styles.css +1 -1
- package/dist/vscode.html-custom-data.json +44 -44
- package/dist/web-types.json +45 -45
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
var t,e;t=this,e=function(t){var e,i;const r={name:"default",resolver:t=>{const e=t.split("/");return("content"===e[0]||"system"===e[0])&&(t="union-investment/"+t),`https://celum-icons.fe.union-investment.de/${t}.svg`},mutator:t=>{const e={currentColorFills:[],currentColorStrokes:[],greenFills:[],greenStrokes:[]};return e.currentColorFills=t.querySelectorAll('[fill="#00358e" i]'),e.currentColorStrokes=t.querySelectorAll('[stroke="#00358e" i]'),e.greenFills=t.querySelectorAll('[fill="#43b02a" i]'),e.greenStrokes=t.querySelectorAll('[stroke="#43b02a" i]'),e.currentColorFills.forEach((t=>{t.setAttribute("fill","currentColor")})),e.currentColorStrokes.forEach((t=>{t.setAttribute("stroke","currentColor")})),e.greenFills.forEach((t=>{t.setAttribute("fill","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")})),e.greenStrokes.forEach((t=>{t.setAttribute("stroke","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")})),t}},o=Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"})),s={calendar:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21 2H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1ZM6 4v1.667a1 1 0 0 0 2 0V4h8v1.667a1 1 0 0 0 2 0V4h2v4H4V4h2ZM4 20V10h16v10H4Z"/>\n <path d="m7.603 13.263.597.81.31-.25c.31-.25.593-.49.733-.63h.017c-.017.333-.033 1.14-.033 1.647V18h1.223v-6.03H9.353l-1.75 1.293ZM14.667 11.867c-1.543 0-2.26 1-2.26 3.163 0 1.9.667 3.063 2.217 3.063s2.193-1.18 2.193-3.13c-.017-2.063-.743-3.097-2.15-3.097v.001Zm-.044 5.333c-.647 0-1-.76-1-2.28 0-1.44.353-2.173 1-2.173s1 .743 1 2.233c0 1.49-.387 2.227-1.017 2.227l.017-.007Z"/>\n </svg>\n ',"chevron-down":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M20.257 6.333l-8.257 9.173-8.257-9.173c-0.181-0.181-0.431-0.292-0.707-0.292-0.552 0-1 0.448-1 1 0 0.238 0.083 0.456 0.222 0.628l-0.001-0.002 9 10c0.184 0.204 0.449 0.331 0.743 0.331s0.56-0.127 0.743-0.33l0.001-0.001 9-10c0.137-0.17 0.22-0.388 0.22-0.626 0-0.552-0.448-1-1-1-0.276 0-0.526 0.112-0.707 0.293v0z"></path>\n </svg>\n ',"chevron-up":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.743 6.333c-0.188-0.195-0.452-0.316-0.743-0.316s-0.555 0.121-0.743 0.315l-0 0-9 10c-0.137 0.17-0.22 0.388-0.22 0.626 0 0.552 0.448 1 1 1 0.276 0 0.526-0.112 0.707-0.293v0l8.257-9.173 8.257 9.173c0.181 0.181 0.431 0.292 0.707 0.292 0.552 0 1-0.448 1-1 0-0.238-0.083-0.456-0.222-0.628l0.001 0.002z"></path>\n </svg>\n ',clock:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13 11.587V8a1 1 0 0 0-2 0v4c0 .07.007.138.021.203l-.001-.006a.855.855 0 0 0 .029.093l-.002-.006c0 .033 0 .067.03.1a.709.709 0 0 0 .055.103l-.002-.003.037.07c.04.057.081.107.127.153l2.827 2.83a1.002 1.002 0 0 0 1.417-1.417L13 11.587Z"/>\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n </svg>\n ',close:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21.707 2.293a1 1 0 0 0-1.414 0L12 10.586 3.707 2.293a1 1 0 0 0-1.413 1.414l-.001-.001 8.293 8.293-8.293 8.293a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0L12 13.413l8.293 8.293a1 1 0 0 0 1.414 0 1 1 0 0 0 0-1.414l-8.293-8.293 8.293-8.293a1 1 0 0 0 0-1.414z"/></svg>\n </svg>\n ',"closing-round":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n <path d="M16.373 7.627a1 1 0 0 0-1.414 0l-2.96 2.96-2.96-2.96a1 1 0 0 0-1.413 1.414l-.001-.001 2.96 2.96-2.96 2.96a1 1 0 0 0 1.414 1.414l2.96-2.96 2.96 2.96a1 1 0 0 0 1.414-1.414L13.413 12l2.96-2.96a1 1 0 0 0 0-1.414v.001Z"/>\n </svg>',eye:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n </svg>\n ',"eye-crossed-out":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M3 22a1 1 0 0 1-.707-1.707l18-18a1 1 0 0 1 1.414 1.414l-18 18A.991.991 0 0 1 3 22Z"/>\n </svg>\n ',"info-circle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M13.333 7.833a1.5 1.5 0 1 1-3.001-.001 1.5 1.5 0 0 1 3.001.001ZM13 11.667a1 1 0 0 0-1-1h-1a1 1 0 0 0 0 2v2.667h2v-3.667Z"/><path d="M11 16.333v-1h-1a1 1 0 0 0 0 2h2a1 1 0 0 1-1-1Zm3-1h-1v1a1 1 0 0 1-1 1h2a1 1 0 0 0 0-2Z"/><path d="M13 16.333v-1h-2v1a1 1 0 0 0 2 0Z"/></svg>',"status-check":'\n <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 13">\n <path fill="currentColor" d="m9.947 1.138-.005.008-.001.003-5.56 8.34-2.434-2.447-.004-.004a.648.648 0 0 0-1.093.475c0 .172.066.328.175.444l.003.004 3 2.999c.117.117.28.19.46.19h.065c.2-.021.37-.13.475-.286l.005-.008.001-.002 5.994-8.992a.65.65 0 0 0-.18-.902l-.007-.005-.002-.002a.65.65 0 0 0-.892.185Z"/>\n </svg>\n ',"status-minus":'\n <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">\n <path d="M10 5.375H2C1.65496 5.375 1.375 5.65496 1.375 6C1.375 6.34504 1.65496 6.625 2 6.625H10C10.345 6.625 10.625 6.34504 10.625 6C10.625 5.65496 10.345 5.375 10 5.375Z" fill="currentColor"/>\n </svg>\n ',pause:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M9 22a.99997.99997 0 0 0 1-1V3a1.00003 1.00003 0 0 0-1-1H5a1.00003 1.00003 0 0 0-1 1v18a.99997.99997 0 0 0 1 1h4ZM6 4h2v16H6V4ZM19 22c.2652 0 .5196-.1054.7071-.2929A1.0001 1.0001 0 0 0 20 21V3a.99997.99997 0 0 0-1-1h-4a.99997.99997 0 0 0-1 1v18c0 .2652.1054.5196.2929.7071S14.7348 22 15 22h4ZM16 4h2v16h-2V4Z"/>\n </svg>\n ',risk:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.893 2.553a1.002 1.002 0 0 0-1.784-.006L2.106 20.553A1 1 0 0 0 3 22h18a1 1 0 0 0 .891-1.452l.003.006-9.001-18.001ZM4.617 20 12 5.237 19.383 20H4.617Z"/>\n <path d="M11 10.667V15a1 1 0 0 0 2 0v-4.333a1 1 0 0 0-2 0ZM13 18a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"/>\n </svg>\n ',start:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\n <path d="m57.44 29.76-37.333-24A2.667 2.667 0 0 0 16 8v48a2.668 2.668 0 0 0 2.667 2.666 2.672 2.672 0 0 0 1.45-.431l-.01.005 37.333-24a2.67 2.67 0 0 0 1.192-2.221c0-.923-.47-1.74-1.184-2.216l-.01-.006.002-.037ZM21.333 51.112V12.89l29.734 19.112-29.734 19.11Z"/>\n </svg>\n ',"confirm-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M15.843 7.473a.999.999 0 0 0-1.367.329l-.002.004-3.667 6.223-1.757-1.753a1 1 0 0 0-1.413 1.414l-.001-.001 2.667 2.667a.997.997 0 0 0 .695.31h.128c.314-.042.578-.223.731-.479l.003-.005 4.333-7.333a1 1 0 0 0-.345-1.374l-.005-.003v.001Z"/></svg>',warning:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.893 2.55295C12.725 2.22395 12.388 2.00195 12 2.00195C11.612 2.00195 11.275 2.22295 11.109 2.54695L2.10598 20.553C2.03998 20.683 2.00098 20.837 2.00098 21C2.00098 21.552 2.44798 21.999 2.99998 22H21C21.552 21.999 21.999 21.552 21.999 21C21.999 20.837 21.96 20.683 21.891 20.548L21.894 20.554L12.893 2.55295ZM4.61698 20L12 5.23695L19.383 20H4.61698Z"/><path d="M11 10.667V15C11 15.552 11.448 16 12 16C12.552 16 13 15.552 13 15V10.667C13 10.115 12.552 9.66695 12 9.66695C11.448 9.66695 11 10.115 11 10.667Z"/><path d="M13 18C13 18.552 12.552 19 12 19C11.448 19 11 18.552 11 18C11 17.448 11.448 17 12 17C12.552 17 13 17.448 13 18Z"/></svg>',"exclamation-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 17C13 17.552 12.552 18 12 18C11.448 18 11 17.552 11 17C11 16.448 11.448 16 12 16C12.552 16 13 16.448 13 17Z"/><path d="M12 6C11.448 6 11 6.448 11 7V13C11 13.552 11.448 14 12 14C12.552 14 13 13.552 13 13V7C13 6.448 12.552 6 12 6Z"/><path d="M12 2C6.477 2 2 6.477 2 12C2 17.523 6.477 22 12 22C17.523 22 22 17.523 22 12C22 6.477 17.523 2 12 2ZM12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12C20 16.418 16.418 20 12 20Z"/></svg>',"magnifying-glass":'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M21.707 20.293l-6.967-6.96c-0.046-0.046-0.096-0.087-0.15-0.124l-0.004-0.002c0.882-1.162 1.413-2.632 1.413-4.227 0-3.881-3.146-7.027-7.027-7.027s-7.027 3.146-7.027 7.027c0 3.881 3.146 7.027 7.027 7.027 1.594 0 3.065-0.531 4.244-1.426l-0.017 0.013c0.039 0.057 0.081 0.107 0.127 0.153l6.967 6.967c0.181 0.181 0.431 0.292 0.707 0.292s0.526-0.112 0.707-0.292v0c0.183-0.181 0.296-0.432 0.296-0.71s-0.113-0.529-0.296-0.71l-0-0zM9 14c-2.761 0-5-2.239-5-5s2.239-5 5-5c2.761 0 5 2.239 5 5v0c0 2.761-2.239 5-5 5v0z"></path></svg>'},a={name:"system",resolver:t=>t in s?`data:image/svg+xml,${encodeURIComponent(s[t])}`:"",mutator:t=>t.setAttribute("fill","currentColor")},n=Object.freeze(Object.defineProperty({__proto__:null,default:a,icons:s},Symbol.toStringTag,{value:"Module"}));let l=[a,r],d=[];function h(t){d.push(t)}function c(t){d=d.filter((e=>e!==t))}function p(t){return l.find((e=>e.name===t))}function u(t,e){b(t),l.push({name:t,resolver:e.resolver,mutator:e.mutator}),d.forEach((e=>{e.library===t&&e.setIcon()}))}function b(t){l=l.filter((e=>e.name!==t))}const g=Object.freeze(Object.defineProperty({__proto__:null,getIconLibrary:p,registerIconLibrary:u,unregisterIconLibrary:b,unwatchIcon:c,watchIcon:h},Symbol.toStringTag,{value:"Module"})),v=new Set,m=new MutationObserver($),f=new Map;let y,w=document.documentElement.dir||"ltr",x=document.documentElement.lang||navigator.language;function k(...t){t.map((t=>{const e=t.$code.toLowerCase();f.has(e)?f.set(e,Object.assign(Object.assign({},f.get(e)),t)):f.set(e,t),y||(y=t)})),$()}function $(){w=document.documentElement.dir||"ltr",x=document.documentElement.lang||navigator.language,[...v.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}m.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});let C=class{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){v.add(this.host)}hostDisconnected(){v.delete(this.host)}dir(){return`${this.host.dir||w}`.toLowerCase()}lang(){return`${this.host.lang||x}`.toLowerCase()}getTranslationData(t){var e,i;const r=new Intl.Locale(t.replace(/_/g,"-")),o=null==r?void 0:r.language.toLowerCase(),s=null!==(i=null===(e=null==r?void 0:r.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==i?i:"";return{locale:r,language:o,region:s,primary:f.get(`${o}-${s}`),secondary:f.get(o)}}exists(t,e){var i;const{primary:r,secondary:o}=this.getTranslationData(null!==(i=e.lang)&&void 0!==i?i:this.lang());return e=Object.assign({includeFallback:!1},e),!!(r&&r[t]||o&&o[t]||e.includeFallback&&y&&y[t])}term(t,...e){const{primary:i,secondary:r}=this.getTranslationData(this.lang());let o;if(i&&i[t])o=i[t];else if(r&&r[t])o=r[t];else{if(!y||!y[t])return console.error(`No translation found for: ${String(t)}`),String(t);o=y[t]}return"function"==typeof o?o(...e):o}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,i){return new Intl.RelativeTimeFormat(this.lang(),i).format(t,e)}};k({$code:"de",$name:"Deutsch",$dir:"ltr",carousel:"Karussell",clearEntry:"Eingabe löschen",close:"Schließen",copy:"Kopieren",numOptionsSelected:t=>0===t?"":`Optionen ausgewählt (${t})`,previousSlide:"Vorherige Folie",currentValue:"Aktueller Wert",goToSlide:(t,e)=>`Zu Folie ${t} von ${e} gehen`,hidePassword:"Passwort verbergen",loading:"Wird geladen",nextSlide:"Nächste Folie",progress:"Fortschritt",remove:"Entfernen",resize:"Größe ändern",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",selectAColorFromTheScreen:"Farbe vom Bildschirm auswählen",selectDefaultPlaceholder:"Bitte auswählen",showPassword:"Passwort anzeigen",slideNum:t=>`Folie ${t}`,toggleColorFormat:"Farbformat umschalten",showMore:"Mehr anzeigen",showLess:"Weniger anzeigen"}),k({$code:"en",$name:"English",$dir:"ltr",clearEntry:"Clear entry",close:"Close",copy:"Copy",numOptionsSelected:t=>0===t?"":`Options Selected (${t})`,currentValue:"Current value",hidePassword:"Hide password",loading:"Loading",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showPassword:"Show password",toggleColorFormat:"Toggle color format",carousel:"Carousel",nextSlide:"Next slide",previousSlide:"Previous slide",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,slideNum:t=>`Slide ${t}`,showMore:"Show more",showLess:"Show less"});class S extends C{constructor(t){super(t),this._instanceTranslations=null}get instanceTranslations(){return this._instanceTranslations}set instanceTranslations(t){this._instanceTranslations=t,this.host.requestUpdate()}hostConnected(){super.hostConnected(),this.setCustomLocalizationFromData(),new MutationObserver((()=>this.setCustomLocalizationFromData())).observe(this.host,{attributes:!0,attributeFilter:["data-custom-localization"]})}hostDisconnected(){super.hostDisconnected()}setCustomLocalizationFromData(){const t=this.host.dataset.customLocalization;if(t)try{this.setCustomLocalization(JSON.parse(t))}catch(t){console.error("Error parsing custom-localization attribute:",t)}}term(t,...e){const i=this.instanceTranslations&&this.instanceTranslations[t];return i?"function"==typeof i?i(...e):i:super.term(t,...e)}setCustomLocalization(t){this.instanceTranslations={...this.instanceTranslations,...t}}}const z=Math.min,_=Math.max,O=Math.round,P=Math.floor,E=t=>({x:t,y:t}),A={left:"right",right:"left",bottom:"top",top:"bottom"},T={start:"end",end:"start"};function L(t,e,i){return _(t,z(e,i))}function D(t,e){return"function"==typeof t?t(e):t}function M(t){return t.split("-")[0]}function B(t){return t.split("-")[1]}function j(t){return"x"===t?"y":"x"}function V(t){return"y"===t?"height":"width"}function I(t){return["top","bottom"].includes(M(t))?"y":"x"}function F(t){return j(I(t))}function U(t){return t.replace(/start|end/g,(t=>T[t]))}function R(t){return t.replace(/left|right|bottom|top/g,(t=>A[t]))}function H(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function N(t){const{x:e,y:i,width:r,height:o}=t;return{width:r,height:o,top:i,left:e,right:e+r,bottom:i+o,x:e,y:i}}function q(t,e,i){let{reference:r,floating:o}=t;const s=I(e),a=F(e),n=V(a),l=M(e),d="y"===s,h=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,p=r[n]/2-o[n]/2;let u;switch(l){case"top":u={x:h,y:r.y-o.height};break;case"bottom":u={x:h,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:c};break;case"left":u={x:r.x-o.width,y:c};break;default:u={x:r.x,y:r.y}}switch(B(e)){case"start":u[a]-=p*(i&&d?-1:1);break;case"end":u[a]+=p*(i&&d?-1:1)}return u}async function K(t,e){var i;void 0===e&&(e={});const{x:r,y:o,platform:s,rects:a,elements:n,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:p=!1,padding:u=0}=D(e,t),b=H(u),g=n[p?"floating"===c?"reference":"floating":c],v=N(await s.getClippingRect({element:null==(i=await(null==s.isElement?void 0:s.isElement(g)))||i?g:g.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(n.floating)),boundary:d,rootBoundary:h,strategy:l})),m="floating"===c?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,f=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n.floating)),y=await(null==s.isElement?void 0:s.isElement(f))&&await(null==s.getScale?void 0:s.getScale(f))||{x:1,y:1},w=N(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:m,offsetParent:f,strategy:l}):m);return{top:(v.top-w.top+b.top)/y.y,bottom:(w.bottom-v.bottom+b.bottom)/y.y,left:(v.left-w.left+b.left)/y.x,right:(w.right-v.right+b.right)/y.x}}function Z(t){return X(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Y(t){var e;return null==(e=(X(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function X(t){return t instanceof Node||t instanceof W(t).Node}function G(t){return t instanceof Element||t instanceof W(t).Element}function J(t){return t instanceof HTMLElement||t instanceof W(t).HTMLElement}function Q(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof W(t).ShadowRoot)}function tt(t){const{overflow:e,overflowX:i,overflowY:r,display:o}=st(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&!["inline","contents"].includes(o)}function et(t){return["table","td","th"].includes(Z(t))}function it(t){const e=rt(),i=st(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function rt(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ot(t){return["html","body","#document"].includes(Z(t))}function st(t){return W(t).getComputedStyle(t)}function at(t){return G(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nt(t){if("html"===Z(t))return t;const e=t.assignedSlot||t.parentNode||Q(t)&&t.host||Y(t);return Q(e)?e.host:e}function lt(t){const e=nt(t);return ot(e)?t.ownerDocument?t.ownerDocument.body:t.body:J(e)&&tt(e)?e:lt(e)}function dt(t,e,i){var r;void 0===e&&(e=[]),void 0===i&&(i=!0);const o=lt(t),s=o===(null==(r=t.ownerDocument)?void 0:r.body),a=W(o);return s?e.concat(a,a.visualViewport||[],tt(o)?o:[],a.frameElement&&i?dt(a.frameElement):[]):e.concat(o,dt(o,[],i))}function ht(t){const e=st(t);let i=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=J(t),s=o?t.offsetWidth:i,a=o?t.offsetHeight:r,n=O(i)!==s||O(r)!==a;return n&&(i=s,r=a),{width:i,height:r,$:n}}function ct(t){return G(t)?t:t.contextElement}function pt(t){const e=ct(t);if(!J(e))return E(1);const i=e.getBoundingClientRect(),{width:r,height:o,$:s}=ht(e);let a=(s?O(i.width):i.width)/r,n=(s?O(i.height):i.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}const ut=E(0);function bt(t){const e=W(t);return rt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ut}function gt(t,e,i,r){void 0===e&&(e=!1),void 0===i&&(i=!1);const o=t.getBoundingClientRect(),s=ct(t);let a=E(1);e&&(r?G(r)&&(a=pt(r)):a=pt(t));const n=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==W(t))&&e}(s,i,r)?bt(s):E(0);let l=(o.left+n.x)/a.x,d=(o.top+n.y)/a.y,h=o.width/a.x,c=o.height/a.y;if(s){const t=W(s),e=r&&G(r)?W(r):r;let i=t,o=i.frameElement;for(;o&&r&&e!==i;){const t=pt(o),e=o.getBoundingClientRect(),r=st(o),s=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,d*=t.y,h*=t.x,c*=t.y,l+=s,d+=a,i=W(o),o=i.frameElement}}return N({width:h,height:c,x:l,y:d})}const vt=[":popover-open",":modal"];function mt(t){return vt.some((e=>{try{return t.matches(e)}catch{return!1}}))}function ft(t){return gt(Y(t)).left+at(t).scrollLeft}function yt(t,e,i){let r;if("viewport"===e)r=function(t,e){const i=W(t),r=Y(t),o=i.visualViewport;let s=r.clientWidth,a=r.clientHeight,n=0,l=0;if(o){s=o.width,a=o.height;const t=rt();(!t||t&&"fixed"===e)&&(n=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:n,y:l}}(t,i);else if("document"===e)r=function(t){const e=Y(t),i=at(t),r=t.ownerDocument.body,o=_(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=_(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-i.scrollLeft+ft(t);const n=-i.scrollTop;return"rtl"===st(r).direction&&(a+=_(e.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:n}}(Y(t));else if(G(e))r=function(t,e){const i=gt(t,!0,"fixed"===e),r=i.top+t.clientTop,o=i.left+t.clientLeft,s=J(t)?pt(t):E(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:o*s.x,y:r*s.y}}(e,i);else{const i=bt(t);r={...e,x:e.x-i.x,y:e.y-i.y}}return N(r)}function wt(t,e){const i=nt(t);return!(i===e||!G(i)||ot(i))&&("fixed"===st(i).position||wt(i,e))}function xt(t,e){const i=e.get(t);if(i)return i;let r=dt(t,[],!1).filter((t=>G(t)&&"body"!==Z(t))),o=null;const s="fixed"===st(t).position;let a=s?nt(t):t;for(;G(a)&&!ot(a);){const e=st(a),i=it(a);!i&&"fixed"===e.position&&(o=null),(s?!i&&!o:!i&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||tt(a)&&!i&&wt(t,a))?r=r.filter((t=>t!==a)):o=e,a=nt(a)}return e.set(t,r),r}function kt(t,e,i){const r=J(e),o=Y(e),s="fixed"===i,a=gt(t,!0,s,e);let n={scrollLeft:0,scrollTop:0};const l=E(0);if(r||!r&&!s)if(("body"!==Z(e)||tt(o))&&(n=at(e)),r){const t=gt(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&(l.x=ft(o));return{x:a.left+n.scrollLeft-l.x,y:a.top+n.scrollTop-l.y,width:a.width,height:a.height}}function $t(t){return"static"===st(t).position}function Ct(t,e){return J(t)&&"fixed"!==st(t).position?e?e(t):t.offsetParent:null}function St(t,e){const i=W(t);if(mt(t))return i;if(!J(t)){let e=nt(t);for(;e&&!ot(e);){if(G(e)&&!$t(e))return e;e=nt(e)}return i}let r=Ct(t,e);for(;r&&et(r)&&$t(r);)r=Ct(r,e);return r&&ot(r)&&$t(r)&&!it(r)?i:r||function(t){let e=nt(t);for(;J(e)&&!ot(e);){if(it(e))return e;e=nt(e)}return null}(t)||i}const zt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:i,offsetParent:r,strategy:o}=t;const s="fixed"===o,a=Y(r),n=!!e&&mt(e.floating);if(r===a||n&&s)return i;let l={scrollLeft:0,scrollTop:0},d=E(1);const h=E(0),c=J(r);if((c||!c&&!s)&&(("body"!==Z(r)||tt(a))&&(l=at(r)),J(r))){const t=gt(r);d=pt(r),h.x=t.x+r.clientLeft,h.y=t.y+r.clientTop}return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-l.scrollLeft*d.x+h.x,y:i.y*d.y-l.scrollTop*d.y+h.y}},getDocumentElement:Y,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:r,strategy:o}=t;const s=[..."clippingAncestors"===i?mt(e)?[]:xt(e,this._c):[].concat(i),r],a=s[0],n=s.reduce(((t,i)=>{const r=yt(e,i,o);return t.top=_(r.top,t.top),t.right=z(r.right,t.right),t.bottom=z(r.bottom,t.bottom),t.left=_(r.left,t.left),t}),yt(e,a,o));return{width:n.right-n.left,height:n.bottom-n.top,x:n.left,y:n.top}},getOffsetParent:St,getElementRects:async function(t){const e=this.getOffsetParent||St,i=this.getDimensions,r=await i(t.floating);return{reference:kt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:i}=ht(t);return{width:e,height:i}},getScale:pt,isElement:G,isRTL:function(t){return"rtl"===st(t).direction}};const _t=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var i,r;const{x:o,y:s,placement:a,middlewareData:n}=e,l=await async function(t,e){const{placement:i,platform:r,elements:o}=t,s=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=M(i),n=B(i),l="y"===I(i),d=["left","top"].includes(a)?-1:1,h=s&&l?-1:1,c=D(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:b}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return n&&"number"==typeof b&&(u="end"===n?-1*b:b),l?{x:u*h,y:p*d}:{x:p*d,y:u*h}}(e,t);return a===(null==(i=n.offset)?void 0:i.placement)&&null!=(r=n.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},Ot=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:r,platform:o,elements:s}=e,{apply:a=(()=>{}),...n}=D(t,e),l=await K(e,n),d=M(i),h=B(i),c="y"===I(i),{width:p,height:u}=r.floating;let b,g;"top"===d||"bottom"===d?(b=d,g=h===(await(null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,b="end"===h?"top":"bottom");const v=u-l.top-l.bottom,m=p-l.left-l.right,f=z(u-l[b],v),y=z(p-l[g],m),w=!e.middlewareData.shift;let x=f,k=y;if(c?k=h||w?z(y,m):m:x=h||w?z(f,v):v,w&&!h){const t=_(l.left,0),e=_(l.right,0),i=_(l.top,0),r=_(l.bottom,0);c?k=p-2*(0!==t||0!==e?t+e:_(l.left,l.right)):x=u-2*(0!==i||0!==r?i+r:_(l.top,l.bottom))}await a({...e,availableWidth:k,availableHeight:x});const $=await o.getDimensions(s.floating);return p!==$.width||u!==$.height?{reset:{rects:!0}}:{}}}},Pt=globalThis,Et=Pt.ShadowRoot&&(void 0===Pt.ShadyCSS||Pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,At=Symbol(),Tt=new WeakMap;
|
1
|
+
var t,e;t=this,e=function(t){var e,i;const r={name:"default",resolver:t=>{const e=t.split("/");return("content"===e[0]||"system"===e[0])&&(t="union-investment/"+t),`https://celum-icons.fe.union-investment.de/${t}.svg`},mutator:t=>{const e={currentColorFills:[],currentColorStrokes:[],greenFills:[],greenStrokes:[]};return e.currentColorFills=t.querySelectorAll('[fill="#00358e" i]'),e.currentColorStrokes=t.querySelectorAll('[stroke="#00358e" i]'),e.greenFills=t.querySelectorAll('[fill="#2d9d00" i]'),e.greenStrokes=t.querySelectorAll('[stroke="#2d9d00" i]'),e.currentColorFills.forEach((t=>{t.setAttribute("fill","currentColor")})),e.currentColorStrokes.forEach((t=>{t.setAttribute("stroke","currentColor")})),e.greenFills.forEach((t=>{t.setAttribute("fill","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")})),e.greenStrokes.forEach((t=>{t.setAttribute("stroke","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")})),t}},o=Object.freeze(Object.defineProperty({__proto__:null,default:r},Symbol.toStringTag,{value:"Module"})),s={calendar:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21 2H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1ZM6 4v1.667a1 1 0 0 0 2 0V4h8v1.667a1 1 0 0 0 2 0V4h2v4H4V4h2ZM4 20V10h16v10H4Z"/>\n <path d="m7.603 13.263.597.81.31-.25c.31-.25.593-.49.733-.63h.017c-.017.333-.033 1.14-.033 1.647V18h1.223v-6.03H9.353l-1.75 1.293ZM14.667 11.867c-1.543 0-2.26 1-2.26 3.163 0 1.9.667 3.063 2.217 3.063s2.193-1.18 2.193-3.13c-.017-2.063-.743-3.097-2.15-3.097v.001Zm-.044 5.333c-.647 0-1-.76-1-2.28 0-1.44.353-2.173 1-2.173s1 .743 1 2.233c0 1.49-.387 2.227-1.017 2.227l.017-.007Z"/>\n </svg>\n ',"chevron-down":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M20.257 6.333l-8.257 9.173-8.257-9.173c-0.181-0.181-0.431-0.292-0.707-0.292-0.552 0-1 0.448-1 1 0 0.238 0.083 0.456 0.222 0.628l-0.001-0.002 9 10c0.184 0.204 0.449 0.331 0.743 0.331s0.56-0.127 0.743-0.33l0.001-0.001 9-10c0.137-0.17 0.22-0.388 0.22-0.626 0-0.552-0.448-1-1-1-0.276 0-0.526 0.112-0.707 0.293v0z"></path>\n </svg>\n ',"chevron-up":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.743 6.333c-0.188-0.195-0.452-0.316-0.743-0.316s-0.555 0.121-0.743 0.315l-0 0-9 10c-0.137 0.17-0.22 0.388-0.22 0.626 0 0.552 0.448 1 1 1 0.276 0 0.526-0.112 0.707-0.293v0l8.257-9.173 8.257 9.173c0.181 0.181 0.431 0.292 0.707 0.292 0.552 0 1-0.448 1-1 0-0.238-0.083-0.456-0.222-0.628l0.001 0.002z"></path>\n </svg>\n ',clock:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13 11.587V8a1 1 0 0 0-2 0v4c0 .07.007.138.021.203l-.001-.006a.855.855 0 0 0 .029.093l-.002-.006c0 .033 0 .067.03.1a.709.709 0 0 0 .055.103l-.002-.003.037.07c.04.057.081.107.127.153l2.827 2.83a1.002 1.002 0 0 0 1.417-1.417L13 11.587Z"/>\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n </svg>\n ',close:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21.707 2.293a1 1 0 0 0-1.414 0L12 10.586 3.707 2.293a1 1 0 0 0-1.413 1.414l-.001-.001 8.293 8.293-8.293 8.293a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0L12 13.413l8.293 8.293a1 1 0 0 0 1.414 0 1 1 0 0 0 0-1.414l-8.293-8.293 8.293-8.293a1 1 0 0 0 0-1.414z"/></svg>\n </svg>\n ',"closing-round":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n <path d="M16.373 7.627a1 1 0 0 0-1.414 0l-2.96 2.96-2.96-2.96a1 1 0 0 0-1.413 1.414l-.001-.001 2.96 2.96-2.96 2.96a1 1 0 0 0 1.414 1.414l2.96-2.96 2.96 2.96a1 1 0 0 0 1.414-1.414L13.413 12l2.96-2.96a1 1 0 0 0 0-1.414v.001Z"/>\n </svg>',eye:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n </svg>\n ',"eye-crossed-out":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M3 22a1 1 0 0 1-.707-1.707l18-18a1 1 0 0 1 1.414 1.414l-18 18A.991.991 0 0 1 3 22Z"/>\n </svg>\n ',"info-circle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M13.333 7.833a1.5 1.5 0 1 1-3.001-.001 1.5 1.5 0 0 1 3.001.001ZM13 11.667a1 1 0 0 0-1-1h-1a1 1 0 0 0 0 2v2.667h2v-3.667Z"/><path d="M11 16.333v-1h-1a1 1 0 0 0 0 2h2a1 1 0 0 1-1-1Zm3-1h-1v1a1 1 0 0 1-1 1h2a1 1 0 0 0 0-2Z"/><path d="M13 16.333v-1h-2v1a1 1 0 0 0 2 0Z"/></svg>',"status-check":'\n <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 13">\n <path fill="currentColor" d="m9.947 1.138-.005.008-.001.003-5.56 8.34-2.434-2.447-.004-.004a.648.648 0 0 0-1.093.475c0 .172.066.328.175.444l.003.004 3 2.999c.117.117.28.19.46.19h.065c.2-.021.37-.13.475-.286l.005-.008.001-.002 5.994-8.992a.65.65 0 0 0-.18-.902l-.007-.005-.002-.002a.65.65 0 0 0-.892.185Z"/>\n </svg>\n ',"status-minus":'\n <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">\n <path d="M10 5.375H2C1.65496 5.375 1.375 5.65496 1.375 6C1.375 6.34504 1.65496 6.625 2 6.625H10C10.345 6.625 10.625 6.34504 10.625 6C10.625 5.65496 10.345 5.375 10 5.375Z" fill="currentColor"/>\n </svg>\n ',pause:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M9 22a.99997.99997 0 0 0 1-1V3a1.00003 1.00003 0 0 0-1-1H5a1.00003 1.00003 0 0 0-1 1v18a.99997.99997 0 0 0 1 1h4ZM6 4h2v16H6V4ZM19 22c.2652 0 .5196-.1054.7071-.2929A1.0001 1.0001 0 0 0 20 21V3a.99997.99997 0 0 0-1-1h-4a.99997.99997 0 0 0-1 1v18c0 .2652.1054.5196.2929.7071S14.7348 22 15 22h4ZM16 4h2v16h-2V4Z"/>\n </svg>\n ',risk:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.893 2.553a1.002 1.002 0 0 0-1.784-.006L2.106 20.553A1 1 0 0 0 3 22h18a1 1 0 0 0 .891-1.452l.003.006-9.001-18.001ZM4.617 20 12 5.237 19.383 20H4.617Z"/>\n <path d="M11 10.667V15a1 1 0 0 0 2 0v-4.333a1 1 0 0 0-2 0ZM13 18a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"/>\n </svg>\n ',start:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\n <path d="m57.44 29.76-37.333-24A2.667 2.667 0 0 0 16 8v48a2.668 2.668 0 0 0 2.667 2.666 2.672 2.672 0 0 0 1.45-.431l-.01.005 37.333-24a2.67 2.67 0 0 0 1.192-2.221c0-.923-.47-1.74-1.184-2.216l-.01-.006.002-.037ZM21.333 51.112V12.89l29.734 19.112-29.734 19.11Z"/>\n </svg>\n ',"confirm-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M15.843 7.473a.999.999 0 0 0-1.367.329l-.002.004-3.667 6.223-1.757-1.753a1 1 0 0 0-1.413 1.414l-.001-.001 2.667 2.667a.997.997 0 0 0 .695.31h.128c.314-.042.578-.223.731-.479l.003-.005 4.333-7.333a1 1 0 0 0-.345-1.374l-.005-.003v.001Z"/></svg>',warning:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.893 2.55295C12.725 2.22395 12.388 2.00195 12 2.00195C11.612 2.00195 11.275 2.22295 11.109 2.54695L2.10598 20.553C2.03998 20.683 2.00098 20.837 2.00098 21C2.00098 21.552 2.44798 21.999 2.99998 22H21C21.552 21.999 21.999 21.552 21.999 21C21.999 20.837 21.96 20.683 21.891 20.548L21.894 20.554L12.893 2.55295ZM4.61698 20L12 5.23695L19.383 20H4.61698Z"/><path d="M11 10.667V15C11 15.552 11.448 16 12 16C12.552 16 13 15.552 13 15V10.667C13 10.115 12.552 9.66695 12 9.66695C11.448 9.66695 11 10.115 11 10.667Z"/><path d="M13 18C13 18.552 12.552 19 12 19C11.448 19 11 18.552 11 18C11 17.448 11.448 17 12 17C12.552 17 13 17.448 13 18Z"/></svg>',"exclamation-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 17C13 17.552 12.552 18 12 18C11.448 18 11 17.552 11 17C11 16.448 11.448 16 12 16C12.552 16 13 16.448 13 17Z"/><path d="M12 6C11.448 6 11 6.448 11 7V13C11 13.552 11.448 14 12 14C12.552 14 13 13.552 13 13V7C13 6.448 12.552 6 12 6Z"/><path d="M12 2C6.477 2 2 6.477 2 12C2 17.523 6.477 22 12 22C17.523 22 22 17.523 22 12C22 6.477 17.523 2 12 2ZM12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12C20 16.418 16.418 20 12 20Z"/></svg>',"magnifying-glass":'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M21.707 20.293l-6.967-6.96c-0.046-0.046-0.096-0.087-0.15-0.124l-0.004-0.002c0.882-1.162 1.413-2.632 1.413-4.227 0-3.881-3.146-7.027-7.027-7.027s-7.027 3.146-7.027 7.027c0 3.881 3.146 7.027 7.027 7.027 1.594 0 3.065-0.531 4.244-1.426l-0.017 0.013c0.039 0.057 0.081 0.107 0.127 0.153l6.967 6.967c0.181 0.181 0.431 0.292 0.707 0.292s0.526-0.112 0.707-0.292v0c0.183-0.181 0.296-0.432 0.296-0.71s-0.113-0.529-0.296-0.71l-0-0zM9 14c-2.761 0-5-2.239-5-5s2.239-5 5-5c2.761 0 5 2.239 5 5v0c0 2.761-2.239 5-5 5v0z"></path></svg>'},a={name:"system",resolver:t=>t in s?`data:image/svg+xml,${encodeURIComponent(s[t])}`:"",mutator:t=>t.setAttribute("fill","currentColor")},n=Object.freeze(Object.defineProperty({__proto__:null,default:a,icons:s},Symbol.toStringTag,{value:"Module"}));let l=[a,r],d=[];function h(t){d.push(t)}function c(t){d=d.filter((e=>e!==t))}function p(t){return l.find((e=>e.name===t))}function u(t,e){b(t),l.push({name:t,resolver:e.resolver,mutator:e.mutator}),d.forEach((e=>{e.library===t&&e.setIcon()}))}function b(t){l=l.filter((e=>e.name!==t))}const g=Object.freeze(Object.defineProperty({__proto__:null,getIconLibrary:p,registerIconLibrary:u,unregisterIconLibrary:b,unwatchIcon:c,watchIcon:h},Symbol.toStringTag,{value:"Module"})),v=new Set,m=new MutationObserver($),f=new Map;let y,w=document.documentElement.dir||"ltr",x=document.documentElement.lang||navigator.language;function k(...t){t.map((t=>{const e=t.$code.toLowerCase();f.has(e)?f.set(e,Object.assign(Object.assign({},f.get(e)),t)):f.set(e,t),y||(y=t)})),$()}function $(){w=document.documentElement.dir||"ltr",x=document.documentElement.lang||navigator.language,[...v.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}m.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});let C=class{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){v.add(this.host)}hostDisconnected(){v.delete(this.host)}dir(){return`${this.host.dir||w}`.toLowerCase()}lang(){return`${this.host.lang||x}`.toLowerCase()}getTranslationData(t){var e,i;const r=new Intl.Locale(t.replace(/_/g,"-")),o=null==r?void 0:r.language.toLowerCase(),s=null!==(i=null===(e=null==r?void 0:r.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==i?i:"";return{locale:r,language:o,region:s,primary:f.get(`${o}-${s}`),secondary:f.get(o)}}exists(t,e){var i;const{primary:r,secondary:o}=this.getTranslationData(null!==(i=e.lang)&&void 0!==i?i:this.lang());return e=Object.assign({includeFallback:!1},e),!!(r&&r[t]||o&&o[t]||e.includeFallback&&y&&y[t])}term(t,...e){const{primary:i,secondary:r}=this.getTranslationData(this.lang());let o;if(i&&i[t])o=i[t];else if(r&&r[t])o=r[t];else{if(!y||!y[t])return console.error(`No translation found for: ${String(t)}`),String(t);o=y[t]}return"function"==typeof o?o(...e):o}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,i){return new Intl.RelativeTimeFormat(this.lang(),i).format(t,e)}};k({$code:"de",$name:"Deutsch",$dir:"ltr",carousel:"Karussell",clearEntry:"Eingabe löschen",close:"Schließen",copy:"Kopieren",numOptionsSelected:t=>0===t?"":`Optionen ausgewählt (${t})`,previousSlide:"Vorherige Folie",currentValue:"Aktueller Wert",goToSlide:(t,e)=>`Zu Folie ${t} von ${e} gehen`,hidePassword:"Passwort verbergen",loading:"Wird geladen",nextSlide:"Nächste Folie",progress:"Fortschritt",remove:"Entfernen",resize:"Größe ändern",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",selectAColorFromTheScreen:"Farbe vom Bildschirm auswählen",selectDefaultPlaceholder:"Bitte auswählen",showPassword:"Passwort anzeigen",slideNum:t=>`Folie ${t}`,toggleColorFormat:"Farbformat umschalten",showMore:"Mehr anzeigen",showLess:"Weniger anzeigen"}),k({$code:"en",$name:"English",$dir:"ltr",clearEntry:"Clear entry",close:"Close",copy:"Copy",numOptionsSelected:t=>0===t?"":`Options Selected (${t})`,currentValue:"Current value",hidePassword:"Hide password",loading:"Loading",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showPassword:"Show password",toggleColorFormat:"Toggle color format",carousel:"Carousel",nextSlide:"Next slide",previousSlide:"Previous slide",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,slideNum:t=>`Slide ${t}`,showMore:"Show more",showLess:"Show less"});class S extends C{constructor(t){super(t),this._instanceTranslations=null}get instanceTranslations(){return this._instanceTranslations}set instanceTranslations(t){this._instanceTranslations=t,this.host.requestUpdate()}hostConnected(){super.hostConnected(),this.setCustomLocalizationFromData(),new MutationObserver((()=>this.setCustomLocalizationFromData())).observe(this.host,{attributes:!0,attributeFilter:["data-custom-localization"]})}hostDisconnected(){super.hostDisconnected()}setCustomLocalizationFromData(){const t=this.host.dataset.customLocalization;if(t)try{this.setCustomLocalization(JSON.parse(t))}catch(t){console.error("Error parsing custom-localization attribute:",t)}}term(t,...e){const i=this.instanceTranslations&&this.instanceTranslations[t];return i?"function"==typeof i?i(...e):i:super.term(t,...e)}setCustomLocalization(t){this.instanceTranslations={...this.instanceTranslations,...t}}}const z=Math.min,_=Math.max,O=Math.round,P=Math.floor,E=t=>({x:t,y:t}),A={left:"right",right:"left",bottom:"top",top:"bottom"},T={start:"end",end:"start"};function L(t,e,i){return _(t,z(e,i))}function D(t,e){return"function"==typeof t?t(e):t}function M(t){return t.split("-")[0]}function B(t){return t.split("-")[1]}function j(t){return"x"===t?"y":"x"}function V(t){return"y"===t?"height":"width"}function I(t){return["top","bottom"].includes(M(t))?"y":"x"}function F(t){return j(I(t))}function U(t){return t.replace(/start|end/g,(t=>T[t]))}function R(t){return t.replace(/left|right|bottom|top/g,(t=>A[t]))}function H(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function N(t){const{x:e,y:i,width:r,height:o}=t;return{width:r,height:o,top:i,left:e,right:e+r,bottom:i+o,x:e,y:i}}function q(t,e,i){let{reference:r,floating:o}=t;const s=I(e),a=F(e),n=V(a),l=M(e),d="y"===s,h=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,p=r[n]/2-o[n]/2;let u;switch(l){case"top":u={x:h,y:r.y-o.height};break;case"bottom":u={x:h,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:c};break;case"left":u={x:r.x-o.width,y:c};break;default:u={x:r.x,y:r.y}}switch(B(e)){case"start":u[a]-=p*(i&&d?-1:1);break;case"end":u[a]+=p*(i&&d?-1:1)}return u}async function K(t,e){var i;void 0===e&&(e={});const{x:r,y:o,platform:s,rects:a,elements:n,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:p=!1,padding:u=0}=D(e,t),b=H(u),g=n[p?"floating"===c?"reference":"floating":c],v=N(await s.getClippingRect({element:null==(i=await(null==s.isElement?void 0:s.isElement(g)))||i?g:g.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(n.floating)),boundary:d,rootBoundary:h,strategy:l})),m="floating"===c?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,f=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n.floating)),y=await(null==s.isElement?void 0:s.isElement(f))&&await(null==s.getScale?void 0:s.getScale(f))||{x:1,y:1},w=N(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:m,offsetParent:f,strategy:l}):m);return{top:(v.top-w.top+b.top)/y.y,bottom:(w.bottom-v.bottom+b.bottom)/y.y,left:(v.left-w.left+b.left)/y.x,right:(w.right-v.right+b.right)/y.x}}function Z(t){return X(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Y(t){var e;return null==(e=(X(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function X(t){return t instanceof Node||t instanceof W(t).Node}function G(t){return t instanceof Element||t instanceof W(t).Element}function J(t){return t instanceof HTMLElement||t instanceof W(t).HTMLElement}function Q(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof W(t).ShadowRoot)}function tt(t){const{overflow:e,overflowX:i,overflowY:r,display:o}=st(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&!["inline","contents"].includes(o)}function et(t){return["table","td","th"].includes(Z(t))}function it(t){const e=rt(),i=st(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function rt(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ot(t){return["html","body","#document"].includes(Z(t))}function st(t){return W(t).getComputedStyle(t)}function at(t){return G(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nt(t){if("html"===Z(t))return t;const e=t.assignedSlot||t.parentNode||Q(t)&&t.host||Y(t);return Q(e)?e.host:e}function lt(t){const e=nt(t);return ot(e)?t.ownerDocument?t.ownerDocument.body:t.body:J(e)&&tt(e)?e:lt(e)}function dt(t,e,i){var r;void 0===e&&(e=[]),void 0===i&&(i=!0);const o=lt(t),s=o===(null==(r=t.ownerDocument)?void 0:r.body),a=W(o);return s?e.concat(a,a.visualViewport||[],tt(o)?o:[],a.frameElement&&i?dt(a.frameElement):[]):e.concat(o,dt(o,[],i))}function ht(t){const e=st(t);let i=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=J(t),s=o?t.offsetWidth:i,a=o?t.offsetHeight:r,n=O(i)!==s||O(r)!==a;return n&&(i=s,r=a),{width:i,height:r,$:n}}function ct(t){return G(t)?t:t.contextElement}function pt(t){const e=ct(t);if(!J(e))return E(1);const i=e.getBoundingClientRect(),{width:r,height:o,$:s}=ht(e);let a=(s?O(i.width):i.width)/r,n=(s?O(i.height):i.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}const ut=E(0);function bt(t){const e=W(t);return rt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ut}function gt(t,e,i,r){void 0===e&&(e=!1),void 0===i&&(i=!1);const o=t.getBoundingClientRect(),s=ct(t);let a=E(1);e&&(r?G(r)&&(a=pt(r)):a=pt(t));const n=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==W(t))&&e}(s,i,r)?bt(s):E(0);let l=(o.left+n.x)/a.x,d=(o.top+n.y)/a.y,h=o.width/a.x,c=o.height/a.y;if(s){const t=W(s),e=r&&G(r)?W(r):r;let i=t,o=i.frameElement;for(;o&&r&&e!==i;){const t=pt(o),e=o.getBoundingClientRect(),r=st(o),s=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,d*=t.y,h*=t.x,c*=t.y,l+=s,d+=a,i=W(o),o=i.frameElement}}return N({width:h,height:c,x:l,y:d})}const vt=[":popover-open",":modal"];function mt(t){return vt.some((e=>{try{return t.matches(e)}catch{return!1}}))}function ft(t){return gt(Y(t)).left+at(t).scrollLeft}function yt(t,e,i){let r;if("viewport"===e)r=function(t,e){const i=W(t),r=Y(t),o=i.visualViewport;let s=r.clientWidth,a=r.clientHeight,n=0,l=0;if(o){s=o.width,a=o.height;const t=rt();(!t||t&&"fixed"===e)&&(n=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:n,y:l}}(t,i);else if("document"===e)r=function(t){const e=Y(t),i=at(t),r=t.ownerDocument.body,o=_(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=_(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-i.scrollLeft+ft(t);const n=-i.scrollTop;return"rtl"===st(r).direction&&(a+=_(e.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:n}}(Y(t));else if(G(e))r=function(t,e){const i=gt(t,!0,"fixed"===e),r=i.top+t.clientTop,o=i.left+t.clientLeft,s=J(t)?pt(t):E(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:o*s.x,y:r*s.y}}(e,i);else{const i=bt(t);r={...e,x:e.x-i.x,y:e.y-i.y}}return N(r)}function wt(t,e){const i=nt(t);return!(i===e||!G(i)||ot(i))&&("fixed"===st(i).position||wt(i,e))}function xt(t,e){const i=e.get(t);if(i)return i;let r=dt(t,[],!1).filter((t=>G(t)&&"body"!==Z(t))),o=null;const s="fixed"===st(t).position;let a=s?nt(t):t;for(;G(a)&&!ot(a);){const e=st(a),i=it(a);!i&&"fixed"===e.position&&(o=null),(s?!i&&!o:!i&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||tt(a)&&!i&&wt(t,a))?r=r.filter((t=>t!==a)):o=e,a=nt(a)}return e.set(t,r),r}function kt(t,e,i){const r=J(e),o=Y(e),s="fixed"===i,a=gt(t,!0,s,e);let n={scrollLeft:0,scrollTop:0};const l=E(0);if(r||!r&&!s)if(("body"!==Z(e)||tt(o))&&(n=at(e)),r){const t=gt(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&(l.x=ft(o));return{x:a.left+n.scrollLeft-l.x,y:a.top+n.scrollTop-l.y,width:a.width,height:a.height}}function $t(t){return"static"===st(t).position}function Ct(t,e){return J(t)&&"fixed"!==st(t).position?e?e(t):t.offsetParent:null}function St(t,e){const i=W(t);if(mt(t))return i;if(!J(t)){let e=nt(t);for(;e&&!ot(e);){if(G(e)&&!$t(e))return e;e=nt(e)}return i}let r=Ct(t,e);for(;r&&et(r)&&$t(r);)r=Ct(r,e);return r&&ot(r)&&$t(r)&&!it(r)?i:r||function(t){let e=nt(t);for(;J(e)&&!ot(e);){if(it(e))return e;e=nt(e)}return null}(t)||i}const zt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:i,offsetParent:r,strategy:o}=t;const s="fixed"===o,a=Y(r),n=!!e&&mt(e.floating);if(r===a||n&&s)return i;let l={scrollLeft:0,scrollTop:0},d=E(1);const h=E(0),c=J(r);if((c||!c&&!s)&&(("body"!==Z(r)||tt(a))&&(l=at(r)),J(r))){const t=gt(r);d=pt(r),h.x=t.x+r.clientLeft,h.y=t.y+r.clientTop}return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-l.scrollLeft*d.x+h.x,y:i.y*d.y-l.scrollTop*d.y+h.y}},getDocumentElement:Y,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:r,strategy:o}=t;const s=[..."clippingAncestors"===i?mt(e)?[]:xt(e,this._c):[].concat(i),r],a=s[0],n=s.reduce(((t,i)=>{const r=yt(e,i,o);return t.top=_(r.top,t.top),t.right=z(r.right,t.right),t.bottom=z(r.bottom,t.bottom),t.left=_(r.left,t.left),t}),yt(e,a,o));return{width:n.right-n.left,height:n.bottom-n.top,x:n.left,y:n.top}},getOffsetParent:St,getElementRects:async function(t){const e=this.getOffsetParent||St,i=this.getDimensions,r=await i(t.floating);return{reference:kt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:i}=ht(t);return{width:e,height:i}},getScale:pt,isElement:G,isRTL:function(t){return"rtl"===st(t).direction}};const _t=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var i,r;const{x:o,y:s,placement:a,middlewareData:n}=e,l=await async function(t,e){const{placement:i,platform:r,elements:o}=t,s=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=M(i),n=B(i),l="y"===I(i),d=["left","top"].includes(a)?-1:1,h=s&&l?-1:1,c=D(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:b}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return n&&"number"==typeof b&&(u="end"===n?-1*b:b),l?{x:u*h,y:p*d}:{x:p*d,y:u*h}}(e,t);return a===(null==(i=n.offset)?void 0:i.placement)&&null!=(r=n.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},Ot=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:r,platform:o,elements:s}=e,{apply:a=(()=>{}),...n}=D(t,e),l=await K(e,n),d=M(i),h=B(i),c="y"===I(i),{width:p,height:u}=r.floating;let b,g;"top"===d||"bottom"===d?(b=d,g=h===(await(null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,b="end"===h?"top":"bottom");const v=u-l.top-l.bottom,m=p-l.left-l.right,f=z(u-l[b],v),y=z(p-l[g],m),w=!e.middlewareData.shift;let x=f,k=y;if(c?k=h||w?z(y,m):m:x=h||w?z(f,v):v,w&&!h){const t=_(l.left,0),e=_(l.right,0),i=_(l.top,0),r=_(l.bottom,0);c?k=p-2*(0!==t||0!==e?t+e:_(l.left,l.right)):x=u-2*(0!==i||0!==r?i+r:_(l.top,l.bottom))}await a({...e,availableWidth:k,availableHeight:x});const $=await o.getDimensions(s.floating);return p!==$.width||u!==$.height?{reset:{rects:!0}}:{}}}},Pt=globalThis,Et=Pt.ShadowRoot&&(void 0===Pt.ShadyCSS||Pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,At=Symbol(),Tt=new WeakMap;
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* Copyright 2019 Google LLC
|
@@ -96,7 +96,7 @@ let Me=class extends Gt{constructor(){super(...arguments),this.renderOptions={ho
|
|
96
96
|
removable-indicator:tag__removable-indicator,
|
97
97
|
" size="${"sm"===this.size?"sm":"lg"}" removable @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-tag>`,this.handleDocumentFocusIn=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()},this.handleDocumentKeyDown=t=>{const e=t.target,i=null!==e.closest(".select__clear"),r=null!==e.closest("sd-icon-button");if(!i&&!r){if("Escape"===t.key&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===t.key||" "===t.key&&""===this.typeToSelectString)return t.preventDefault(),t.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.getAllOptions(),i=e.indexOf(this.currentOption);let r=Math.max(0,i);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===t.key?(r=i+1,r>e.length-1&&(r=0)):"ArrowUp"===t.key?(r=i-1,r<0&&(r=e.length-1)):"Home"===t.key?r=0:"End"===t.key&&(r=e.length-1),this.setCurrentOption(e[r])}if(1===t.key.length||"Backspace"===t.key){const e=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if("Backspace"===t.key)return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===t.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(const t of e)if(t.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(t);break}}}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.applySizeToOptions(),this.open=!1}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){const e=t.composedPath().some((t=>t instanceof HTMLSlotElement&&"removable-indicator"===t.name));this.disabled||e||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})))}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){const e=t.target.closest("sd-option"),i=this.value;e&&!e.disabled&&(this.multiple?this.toggleOptionSelection(e):this.setSelectedOptions(e),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==i&&this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],i=[];customElements.get("sd-option")?(t.forEach((t=>{this.multiple&&(t.checkbox=!0),i.push(t.value)})),this.setSelectedOptions(t.filter((t=>e.includes(t.value))))):customElements.whenDefined("sd-option").then((()=>this.handleDefaultSlotChange()))}handleTagRemove(t,e){t.stopPropagation(),this.disabled||(this.toggleOptionSelection(e,!1),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})))}getAllOptions(){return[...this.querySelectorAll("sd-option")]}getFirstOption(){return this.querySelector("sd-option")}setCurrentOption(t){this.getAllOptions().forEach((t=>{t.current=!1,t.tabIndex=-1})),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){const e=this.getAllOptions(),i=Array.isArray(t)?t:[t];e.forEach((t=>t.selected=!1)),i.length&&i.forEach((t=>t.selected=!0)),this.selectionChanged()}toggleOptionSelection(t,e){t.selected=!0===e||!1===e?e:!t.selected,this.selectionChanged()}selectionChanged(){var t,e;this.selectedOptions=this.getAllOptions().filter((t=>t.selected)),this.multiple?(this.value=this.selectedOptions.map((t=>t.value)),this.useTags||0===this.value.length?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(null==(t=this.selectedOptions[0])?void 0:t.value)??"",this.displayLabel=(null==(e=this.selectedOptions[0])?void 0:e.getTextLabel())??""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}get tags(){return this.selectedOptions.map(((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){const i=this.getTag(t,e);return fe`<div @sd-remove="${e=>this.handleTagRemove(e,t)}">${"string"==typeof i?pi(i):i}</div>`}return e===this.maxOptionsVisible?fe`<sd-tag size="${"sm"===this.size?"sm":"lg"}" ?disabled="${this.disabled}">+${this.selectedOptions.length-e}</sd-tag>`:fe``}))}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){const e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){const t=this.getAllOptions();customElements.get("sd-option")&&t.forEach((t=>{t.checkbox=this.multiple}))}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await Si(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:t,options:e}=Ai(this,"select.show",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.currentOption&&ro(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Si(this);const{keyframes:t,options:e}=Ai(this,"select.hide",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach((t=>{t.size=this.size}))}handleValueChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter((t=>e.includes(t.value))))}async show(){if(!this.open&&!this.disabled)return this.open=!0,Ti(this,"sd-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,Ti(this,"sd-after-hide");this.open=!1}checkValidity(){var t;return null==(t=this.valueInput)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}render(){this.hasSlotController.test("[default]");const t=this.hasSlotController.test("label"),e=(this.hasSlotController.test("clear-icon"),this.hasSlotController.test("expand-icon"),this.hasSlotController.test("help-text")),i=!!this.label||!!t,r=!!this.helpText||!!e,o=this.clearable&&!this.disabled&&this.value.length>0,s=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",a=this.disabled?"cursor-not-allowed":"cursor-pointer",n={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],l={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return fe`<div part="form-control" class="${Ke("relative text-left",a,"sm"===this.size?"text-sm":"text-base",this.open&&"z-50")}"><label id="label" part="form-control-label" class="${i&&"inline-block mb-2"}" aria-hidden="${i?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${Ke("relative w-full bg-white",{disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[s])}"><div part="border" class="${Ke("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[s],this.open&&("bottom"===this.currentPlacement?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${Ke("inline-flex relative w-full","bottom"===this.currentPlacement?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
98
98
|
popup:popup__content,
|
99
|
-
"><div part="combobox" class="${Ke("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${Ke("appearance-none outline-none flex-grow bg-transparent w-full",a,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-describedby="help-text" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?fe`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""} <input class="${Ke("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",a)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${o?fe`<button part="clear-button" class="${Ke("select__clear flex justify-center",n)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Ke("text-icon-fill-neutral-800",l)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?fe`<sd-icon part="invalid-icon" class="${Ke(n,l)}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?fe`<sd-icon part="valid-icon" class="${Ke("flex-shrink-0",n,l)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${Ke("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled?"text-neutral-500":"text-primary",l)}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${Ke("bg-white px-2 py-3 relative border-primary",this.open&&"shadow","bottom"===this.currentPlacement?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${r?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};ba.dependencies={"sd-icon":wi,"sd-popup":ti,"sd-tag":da},ba.styles=[qe,Xe.styles,Mt`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249) / var(--tw-bg-opacity))}`],ua([Ne({selector:"sd-option"})],ba.prototype,"_optionsInDefaultSlot",2),ua([He("sd-popup")],ba.prototype,"popup",2),ua([He('[part="combobox"]')],ba.prototype,"combobox",2),ua([He('[part="display-input"]')],ba.prototype,"displayInput",2),ua([He(".value-input")],ba.prototype,"valueInput",2),ua([He('[part="listbox"]')],ba.prototype,"listbox",2),ua([He("#invalid-message")],ba.prototype,"invalidMessage",2),ua([Ue()],ba.prototype,"hasHover",2),ua([Ue()],ba.prototype,"displayLabel",2),ua([Ue()],ba.prototype,"hasFocus",2),ua([Ue()],ba.prototype,"currentOption",2),ua([Ue()],ba.prototype,"selectedOptions",2),ua([Ue()],ba.prototype,"showValidStyle",2),ua([Ue()],ba.prototype,"showInvalidStyle",2),ua([Kr()],ba.prototype,"defaultValue",2),ua([Fe({type:Boolean,reflect:!0})],ba.prototype,"open",2),ua([Fe({reflect:!0})],ba.prototype,"size",2),ua([Fe()],ba.prototype,"label",2),ua([Fe()],ba.prototype,"placeholder",2),ua([Fe({attribute:"help-text"})],ba.prototype,"helpText",2),ua([Fe({reflect:!0})],ba.prototype,"placement",2),ua([Ue()],ba.prototype,"currentPlacement",2),ua([Fe({type:Boolean})],ba.prototype,"clearable",2),ua([Fe({type:Boolean,reflect:!0})],ba.prototype,"disabled",2),ua([Fe({type:Boolean,reflect:!0})],ba.prototype,"multiple",2),ua([Fe({type:Boolean,reflect:!0})],ba.prototype,"useTags",2),ua([Fe({attribute:"max-options-visible",type:Number})],ba.prototype,"maxOptionsVisible",2),ua([Fe({reflect:!0})],ba.prototype,"form",2),ua([Fe()],ba.prototype,"name",2),ua([Fe({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],ba.prototype,"value",2),ua([Fe({type:Boolean,reflect:!0})],ba.prototype,"required",2),ua([Fe({type:Boolean,reflect:!0,attribute:"style-on-valid"})],ba.prototype,"styleOnValid",2),ua([Fe({type:Boolean})],ba.prototype,"hoist",2),ua([Fe()],ba.prototype,"getTag",2),ua([gi("useTags",{waitUntilFirstUpdate:!0})],ba.prototype,"handleUseTagsChange",1),ua([gi("disabled",{waitUntilFirstUpdate:!0})],ba.prototype,"handleDisabledChange",1),ua([gi("open",{waitUntilFirstUpdate:!0})],ba.prototype,"handleOpenChange",1),ua([gi("size",{waitUntilFirstUpdate:!0})],ba.prototype,"applySizeToOptions",1),ua([gi("value",{waitUntilFirstUpdate:!0})],ba.prototype,"handleValueChange",1),ba=ua([je("sd-select")],ba),Ei("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Ei("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const ga=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ba}},Symbol.toStringTag,{value:"Module"}));var va=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,fa=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?ma(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&va(e,i,s),s};let ya=class extends Xe{constructor(){super(...arguments),this.steps=[],this.size="lg",this.orientation="horizontal",this.activeStep=0,this.notInteractive=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{let t;this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0,this.steps.forEach(((e,i)=>{e.index=i+1,e.size=this.size,e.orientation=this.orientation,this.notInteractive?(e.current=!1,e.disabled=!1,e.notInteractive=!0):e.current&&(t=i)})),this.setActiveStep(t||this.activeStep)}))}updateSize(){this.steps.forEach((t=>{t.size=this.size}))}updateOrientation(){this.steps.forEach((t=>{t.orientation=this.orientation}))}getAllSteps(){return[...this.body.assignedElements()].filter((t=>"sd-step"===t.tagName.toLowerCase()))}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach(((e,i)=>{i===t?e.current=!0:i>t?e.disabled=!0:e.current=!1})))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach((t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0}))}render(){return fe`<div part="base" role="${this.notInteractive?"group":"navigation"}" class="${Ke("flex","vertical"===this.orientation&&"flex-col h-full")}"><slot part="body"></slot></div>`}};ya.styles=[Xe.styles,qe,Mt`:host{width:-moz-max-content;width:max-content}`],fa([He("[part=body]")],ya.prototype,"body",2),fa([Fe({reflect:!0})],ya.prototype,"size",2),fa([Fe({reflect:!0})],ya.prototype,"orientation",2),fa([Fe({type:Number,reflect:!0,attribute:"active-step"})],ya.prototype,"activeStep",2),fa([Fe({type:Boolean,reflect:!0,attribute:"not-interactive"})],ya.prototype,"notInteractive",2),fa([gi("size",{waitUntilFirstUpdate:!0})],ya.prototype,"updateSize",1),fa([gi("orientation",{waitUntilFirstUpdate:!0})],ya.prototype,"updateOrientation",1),fa([gi("notInteractive")],ya.prototype,"handleInteractivityChange",1),ya=fa([je("sd-step-group")],ya);const wa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ya}},Symbol.toStringTag,{value:"Module"}));var xa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,$a=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?ka(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&xa(e,i,s),s};let Ca=class extends Xe{constructor(){super(...arguments),this.size="lg",this.orientation="horizontal",this.disabled=!1,this.current=!1,this.noTail=!1,this.notInteractive=!1,this.label="",this.description="",this.index=1,this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1)}handleDisabledChange(){this.disabled&&(this.current=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1)}render(){const t=this.isLink(),e=this.notInteractive?gr`div`:t?gr`a`:gr`button`;return mr`<div part="base" class="${Ke("flex pt-1","horizontal"===this.orientation?"flex-col w-full":"flex-row gap-4 items-stretch h-full w-min overflow-hidden",!this.disabled&&!this.current&&!this.notInteractive&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${Ke("flex shrink-0 gap-2",this.noTail&&"w-max","horizontal"===this.orientation?"flex-row":"flex-col items-stretch","horizontal"===this.orientation?"lg"===this.size?"translateLg":"translateSm":"lg"===this.size?"mt-1":"mt-3")}"><${e} part="circle" ?disabled="${this.disabled}" tabindex="${this.disabled||this.current?"-1":"0"}" href="${yr(t?this.href:void 0)}" aria-current="${this.current?"step":void 0}" aria-label="Step ${this.index}" class="${Ke("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled||this.current?"focus-visible:outline-none":"focus-visible:focus-outline",this.notInteractive?"lg"===this.size?"w-[72px]":"w-12":"lg"===this.size?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-500",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive?"border-neutral-400":"group-hover:cursor-pointer",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${Ke(!this.disabled&&!this.current&&!this.notInteractive&&"text-primary group-hover:text-primary-500 group-hover:fill-primary-500",this.notInteractive&&"text-primary","lg"===this.size?"text-lg":"text-sm")}">${this.disabled||this.current||this.notInteractive?mr`${this.index}`:mr`<sd-icon name="status-check" library="system"></sd-icon>`}</slot></${e}>${this.noTail?"":"horizontal"===this.orientation?mr`<sd-divider part="tail" orientation="horizontal" class="${Ke("w-full my-auto mr-2",!this.disabled&&!this.current&&!this.notInteractive&&"tail-to-primary")}"></sd-divider>`:mr`<sd-divider part="tail" orientation="vertical" class="${Ke("flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",!this.disabled&&!this.current&&!this.notInteractive&&"tail-to-primary")}"></sd-divider>`}</div><div part="text-container" class="${Ke("mt-4 mr-4 break-words flex flex-col gap-2","horizontal"===this.orientation?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-500")}"><div part="label" class="${Ke("!font-bold sd-paragraph",this.disabled&&"!text-neutral-500",this.disabled||this.current||this.notInteractive?"text-black":"!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer")}"><slot name="label">${this.label}</slot></div><div part="description" class="${Ke("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-500")}">${this.description||mr`<slot></slot>`}</div></div></div>`}};Ca.styles=[Xe.styles,qe,Dt(".sd-paragraph,.sd-prose p{font-size:var(--sd-font-size-base,1rem)}.sd-paragraph,.sd-paragraph--size-sm,.sd-prose p,.sd-prose p--size-sm{font-weight:400;line-height:var(--sd-line-height-normal,150%);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.sd-paragraph--size-sm,.sd-prose p--size-sm{font-size:var(--sd-font-size-sm,.875rem)}.sd-paragraph--inverted,.sd-prose--inverted p{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}"),Mt`:host{flex:1 1 0%}[part=base]:not(:has(sd-divider)){height:-moz-max-content;height:max-content}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}.tail-to-primary::part(main){--tw-border-opacity:1!important;border-color:rgb(var(--sd-color-primary,0 53 142) / var(--tw-border-opacity))!important}.group:hover .tail-to-primary::part(main){--tw-border-opacity:1!important;border-color:rgb(var(--sd-color-primary-500,70 109 175) / var(--tw-border-opacity))!important}sd-divider::part(main){--tw-border-opacity:1!important;border-color:rgb(var(--sd-color-neutral-400,195 195 195) / var(--tw-border-opacity))!important}`],$a([Fe({reflect:!0})],Ca.prototype,"size",2),$a([Fe({reflect:!0})],Ca.prototype,"orientation",2),$a([Fe({type:Boolean,reflect:!0})],Ca.prototype,"disabled",2),$a([Fe({type:Boolean,reflect:!0})],Ca.prototype,"current",2),$a([Fe({reflect:!0,type:Boolean,attribute:"no-tail"})],Ca.prototype,"noTail",2),$a([Fe({type:Boolean,reflect:!0,attribute:"not-interactive"})],Ca.prototype,"notInteractive",2),$a([Fe()],Ca.prototype,"label",2),$a([Fe()],Ca.prototype,"description",2),$a([Fe({type:Number,reflect:!0,attribute:"index"})],Ca.prototype,"index",2),$a([Fe()],Ca.prototype,"href",2),$a([gi("current")],Ca.prototype,"handleCurrentChange",1),$a([gi("disabled")],Ca.prototype,"handleDisabledChange",1),$a([gi("notInteractive")],Ca.prototype,"handleInteractivityChange",1),Ca=$a([je("sd-step")],Ca);const Sa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ca}},Symbol.toStringTag,{value:"Module"}));var za=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,Oa=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?_a(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&za(e,i,s),s};let Pa=class extends Xe{constructor(){super(...arguments),this.formControlController=new lr(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.showInvalidStyle=!1,this.title="",this.name="",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return fe`<label part="base" class="${Ke("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${yr(this.value)}" .checked="${Wr(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"}" class="${Ke("relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2\n peer-focus-visible:outline-primary",this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?"border-error bg-error hover:bg-error-400":this.checked?"border-accent bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span id="thumb" part="thumb" class="${Ke("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",this.disabled&&this.checked?"bg-white":this.disabled?"-translate-x-2 bg-neutral-500":this.showInvalidStyle?"bg-white -translate-x-2":this.checked?"translate-x-2 bg-white":"bg-neutral-800 -translate-x-2")}"></span> </span><span part="label" id="label" class="${Ke("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};Pa.styles=[Xe.styles,Mt`:host{display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label::after{content:' *'}`],Oa([He("input")],Pa.prototype,"input",2),Oa([He("#invalid-message")],Pa.prototype,"invalidMessage",2),Oa([Ue()],Pa.prototype,"showInvalidStyle",2),Oa([Fe()],Pa.prototype,"title",2),Oa([Fe()],Pa.prototype,"name",2),Oa([Fe()],Pa.prototype,"value",2),Oa([Fe({type:Boolean,reflect:!0})],Pa.prototype,"disabled",2),Oa([Fe({type:Boolean,reflect:!0})],Pa.prototype,"checked",2),Oa([Kr("checked")],Pa.prototype,"defaultChecked",2),Oa([Fe({reflect:!0})],Pa.prototype,"form",2),Oa([Fe({type:Boolean,reflect:!0})],Pa.prototype,"required",2),Oa([gi("disabled",{waitUntilFirstUpdate:!0})],Pa.prototype,"handleDisabledChange",1),Oa([gi(["checked"],{waitUntilFirstUpdate:!0})],Pa.prototype,"handleStateChange",1),Pa=Oa([je("sd-switch")],Pa);const Ea=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Pa}},Symbol.toStringTag,{value:"Module"}));var Aa=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,La=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?Ta(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Aa(e,i,s),s};let Da=class extends Xe{constructor(){super(...arguments),this.localize=new S(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.variant="default",this.activation="auto"}connectedCallback(){const t=Promise.all([customElements.whenDefined("sd-tab"),customElements.whenDefined("sd-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>{this.updateScrollControls()})),this.mutationObserver=new MutationObserver((t=>{t.some((t=>!["aria-labelledby","aria-controls"].includes(t.attributeName)))&&setTimeout((()=>this.setAriaLabels())),t.some((t=>"disabled"===t.attributeName))&&this.syncTabsAndPanels()})),this.updateComplete.then((()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then((()=>{new IntersectionObserver(((t,e)=>{t[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(this.activeTab??this.tabs[0],{emitEvents:!1}),e.unobserve(t[0].target))})).observe(this.tabGroup)}))}))}disconnectedCallback(){this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter((e=>t.includeDisabled?"sd-tab"===e.tagName.toLowerCase():"sd-tab"===e.tagName.toLowerCase()&&!e.disabled))}getAllPanels(){return[...this.body.assignedElements()].filter((t=>"sd-tab-panel"===t.tagName.toLowerCase()))}getActiveTab(){return this.tabs.find((t=>t.matches(":focus")))}handleClick(t){const e=t.target.closest("sd-tab");(null==e?void 0:e.closest("sd-tab-group"))===this&&null!==e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){const e=t.target.closest("sd-tab");if((null==e?void 0:e.closest("sd-tab-group"))===this){if(["Enter"," "].includes(t.key)&&null!==e&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&ro(this.tabs[t+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&ro(this.tabs[t-1],this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.tabs.find((t=>t.matches(":focus"))),i="rtl"===this.localize.dir();if("sd-tab"===(null==e?void 0:e.tagName.toLowerCase())){let r=this.tabs.indexOf(e);"Home"===t.key?r=0:"End"===t.key?r=this.tabs.length-1:t.key===(i?"ArrowRight":"ArrowLeft")||"ArrowUp"===t.key?r--:(t.key===(i?"ArrowLeft":"ArrowRight")||"ArrowDown"===t.key)&&r++,r<0&&(r=this.tabs.length-1),r>this.tabs.length-1&&(r=0),this.tabs[r].focus({preventScroll:!0}),"auto"===this.activation&&this.setActiveTab(this.tabs[r],{scrollBehavior:"smooth"}),ro(this.tabs[r],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e={emitEvents:!0,scrollBehavior:"auto",...e},t!==this.activeTab&&!t.disabled){const i=this.activeTab;this.activeTab=t,this.tabs.map((t=>t.active=t===this.activeTab)),this.panels.map((t=>{var e;return t.active=t.name===(null==(e=this.activeTab)?void 0:e.panel)})),ro(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(i&&this.emit("sd-tab-hide",{detail:{name:i.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach((t=>{const e=this.panels.find((e=>e.name===t.panel));e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))}))}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.updateComplete.then((()=>this.updateScrollControls())),0!==this.tabs.length&&"container"===this.tabs[0].variant&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){const e=this.tabs.find((e=>e.panel===t));e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t="rtl"===this.localize.dir();return fe`<div part="base" class="${Ke("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${Ke(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?fe`<button part="scroll-button--start" exportparts="base:scroll-button__base" class="${Ke("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-icon library="system" name="${t?"chevron-up":"chevron-down"}" class="${Ke("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${Ke("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full h-0.25 bg-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?fe`<button part="scroll-button--end" exportparts="base:scroll-button__base" class="${Ke("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-icon library="system" name="${t?"chevron-down":"chevron-up"}" class="${Ke("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${Ke("block auto py-8 px-6","container"===this.variant&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};Da.styles=[Xe.styles,Dt(Mr),qe,Mt`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-tab-panel){--padding:1rem 0}`],La([He("[part=base]")],Da.prototype,"tabGroup",2),La([He("[part=body]")],Da.prototype,"body",2),La([He("[part=scroll-container]")],Da.prototype,"nav",2),La([Ue()],Da.prototype,"hasScrollControls",2),La([Ue()],Da.prototype,"variant",2),La([Fe()],Da.prototype,"activation",2),Da=La([je("sd-tab-group")],Da);const Ma=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Da}},Symbol.toStringTag,{value:"Module"}));var Ba=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,Va=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?ja(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Ba(e,i,s),s};let Ia=0,Fa=class extends Xe{constructor(){super(...arguments),this.attrId=++Ia,this.componentId=`sd-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return fe`<slot part="base" class="${Ke("block",this.active&&"tab-panel--active")}"></slot>`}};Fa.styles=[Xe.styles,qe,Mt`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],Va([Fe({reflect:!0})],Fa.prototype,"name",2),Va([Fe({type:Boolean,reflect:!0})],Fa.prototype,"active",2),Va([gi("active")],Fa.prototype,"handleActiveChange",1),Fa=Va([je("sd-tab-panel")],Fa);const Ua=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Fa}},Symbol.toStringTag,{value:"Module"}));var Ra=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,Na=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?Ha(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Ra(e,i,s),s};let qa=0,Ka=class extends Xe{constructor(){super(...arguments),this.attrId=++qa,this.componentId=`sd-tab-${this.attrId}`,this.panel="",this.variant="default",this.active=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,fe`<div part="base" class="${Ke("inline-flex min-w-max h-12 px-3 leading-none items-center justify-center whitespace-nowrap select-none cursor-pointer group relative focus-visible:focus-outline outline-2 !-outline-offset-2","container"===this.variant&&" rounded-[4px_4px_0_0]","container"===this.variant&&this.active&&"tab--active-container-border bg-white",this.disabled?"opacity-50 !cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${this.disabled?"-1":"0"}"><slot name="left" class="${Ke("pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${Ke(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${Ke((!this.active||this.disabled)&&"hidden","absolute bottom-0 h-1 bg-accent","default"===this.variant?"w-full":"w-3/4 group-hover:w-full transition-all duration-200 ease-in-out")}"></div><div part="hover-bottom-border" class="${Ke(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};Ka.styles=[Xe.styles,qe,Mt`:host{box-sizing:border-box;display:block}.tab--active-container-border::after{content:'';position:absolute;height:100%;width:100%;border-width:1px;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195) / var(--tw-border-opacity));border-bottom:none;border-radius:4px 4px 0 0}`],Na([He("[part=base]")],Ka.prototype,"tab",2),Na([Fe({reflect:!0})],Ka.prototype,"panel",2),Na([Fe({type:String,reflect:!0})],Ka.prototype,"variant",2),Na([Fe({type:Boolean,reflect:!0})],Ka.prototype,"active",2),Na([Fe({type:Boolean,reflect:!0})],Ka.prototype,"disabled",2),Na([gi("active")],Ka.prototype,"handleActiveChange",1),Na([gi("disabled")],Ka.prototype,"handleDisabledChange",1),Ka=Na([je("sd-tab")],Ka);const Za=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ka}},Symbol.toStringTag,{value:"Module"}));var Wa=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,Xa=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?Ya(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Wa(e,i,s),s};let Ga=class extends Xe{constructor(){super(...arguments),this.variant="white",this.hasSlotController=new pr(this,"[default]","media","meta","headline","expandable")}render(){const t={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return fe`<div class="relative flex flex-col group" part="base"><div class="${Ke("mb-4",!t["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${Ke("flex-1","gradient-white"===this.variant&&"bg-gradient-to-t from-white/[.8] to-60%","gradient-dark"===this.variant&&"bg-gradient-to-t from-primary-800/[.6] to-60%")}"></div><div class="${Ke({white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"bg-neutral-100/[.8] group-hover:bg-neutral-100/90",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"bg-primary-100/[.8] group-hover:bg-primary-100/90","gradient-white":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/75 to-primary-800/[.6] text-white"}[this.variant])}"><div class="flex-col text-left p-4" part="content"><div part="meta" class="${Ke("gap-2 mb-4",!t["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="text-lg font-bold m-0"><slot name="headline">Always insert one semantically correct heading element here (e. g. <h2>)</slot></div><div class="${Ke("hidden",t["teaser-has-expandable"]&&"h-[0px] invisible opacity-0 md:[transition:_height_0.2s_linear,opacity_0.1s_linear_0.1s] md:block md:group-hover:h-auto md:group-hover:my-4 md:group-hover:opacity-[100%] md:group-hover:visible")}" part="expandable"><slot name="expandable"></slot></div><div part="main" class="${Ke(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};Ga.styles=[Xe.styles,Mt`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],Xa([Fe({reflect:!0})],Ga.prototype,"variant",2),Xa([He('[part="base"]')],Ga.prototype,"teaserMedia",2),Ga=Xa([je("sd-teaser-media")],Ga);const Ja=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ga}},Symbol.toStringTag,{value:"Module"}));var Qa=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,en=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?tn(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Qa(e,i,s),s};let rn=class extends Xe{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new pr(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),0===this.breakpoint?this._orientation="horizontal":9999===this.breakpoint?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.updateOrientation())),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(t){super.updated(t),t.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){const t="white border-neutral-400"===this.variant||this.inset,e=this.hasSlotController.test("[default]"),i=this.hasSlotController.test("media"),r=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),fe`<div class="${Ke("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],"vertical"===this._orientation&&"flex-col","horizontal"===this._orientation&&"flex-row gap-8","horizontal"===this._orientation&&t&&"py-8 px-10")}" part="base"><div style="${"horizontal"===this._orientation?"width: var(--distribution-media, 100%);":""}" class="${Ke(!t&&"vertical"===this._orientation&&"mb-4",!i&&"hidden","white border-neutral-400"===this.variant&&"vertical"===this._orientation&&"mx-[-1px] mt-[-1px]")}" part="media"><slot name="media"></slot></div><div style="${"horizontal"===this._orientation?"width: var(--distribution-content, 100%); "+(t?"width: var(--distribution-content, calc(100% - 2rem));":""):""}" class="${Ke("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${Ke("gap-2 mb-4",!r&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${Ke("text-lg font-bold m-0","primary"===this.variant?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. <h2>)</slot></div><div part="main" class="${Ke(!e&&"hidden")}"><slot></slot></div></div></div>`}};rn.styles=[Xe.styles,Mt`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],en([Fe({reflect:!0})],rn.prototype,"variant",2),en([Fe({reflect:!0,type:Number})],rn.prototype,"breakpoint",2),en([Fe({type:Boolean,reflect:!0})],rn.prototype,"inset",2),en([He('[part="base"]')],rn.prototype,"teaser",2),en([Ue()],rn.prototype,"_orientation",2),rn=en([je("sd-teaser")],rn);const on=Object.freeze(Object.defineProperty({__proto__:null,get default(){return rn}},Symbol.toStringTag,{value:"Module"}));var sn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,nn=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?an(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&sn(e,i,s),s};let ln=class extends Xe{constructor(){super(...arguments),this.formControlController=new lr(this),this.hasSlotController=new pr(this,"help-text","label"),this.hasFocus=!1,this.showValidStyle=!1,this.showInvalidStyle=!1,this.title="",this.name="",this.value="",this.size="lg",this.label="",this.helpText="",this.placeholder="",this.rows=4,this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.styleOnValid=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this.setTextareaHeight()}))}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){return t?("number"==typeof t.top&&(this.textarea.scrollTop=t.top),void("number"==typeof t.left&&(this.textarea.scrollLeft=t.left))):{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,i="none"){this.textarea.setSelectionRange(t,e,i)}setRangeText(t,e,i,r){this.textarea.setRangeText(t,e,i,r),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return null==(t=this.textarea)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=!!this.label||!!t,r=!!this.helpText||!!e,o=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",s="sm"===this.size?"text-sm":"text-base",a={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return fe`<div part="form-control" class="text-left"><label part="form-control-label" id="label" class="${Ke("mb-2",i?"inline-block":"hidden",s)}" for="input" aria-hidden="${i?"false":"true"}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${Ke("relative w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${Ke("absolute w-full h-full pointer-events-none border rounded-default",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[o])}"></div><div part="base" class="${Ke("textarea px-4 flex items-top rounded-default bg-white group",{sm:"textarea-sm py-1",md:"textarea-md py-1",lg:"textarea-lg py-2"}[this.size],{disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[o],this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly&&"bg-neutral-100")}"><textarea part="textarea" id="input" class="${Ke("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",s)}" title="${this.title}" name="${yr(this.name)}" .value="${Wr(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${yr(this.placeholder)}" minlength="${yr(this.minlength)}" maxlength="${yr(this.maxlength)}" rows="${yr(this.rows)}" autocapitalize="${yr(this.autocapitalize)}" autocorrect="${yr(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${yr(this.spellcheck)}" enterkeyhint="${yr(this.enterkeyhint)}" inputmode="${yr(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?fe`<sd-icon class="${Ke("text-error absolute right-4 bg-white group-hover:bg-neutral-200",a)}" library="system" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?fe`<sd-icon class="${Ke("text-success absolute right-4 bg-white group-hover:bg-neutral-200",a)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${Ke("text-sm text-neutral-700",r?"block":"hidden")}" aria-hidden="${r?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};ln.styles=[qe,Xe.styles,Mt`:host{display:block}:host([required]) #label::after{content:' *'}.no-scrollbar::-webkit-scrollbar{display:none}`],nn([He("#input")],ln.prototype,"textarea",2),nn([He("#invalid-message")],ln.prototype,"invalidMessage",2),nn([Ue()],ln.prototype,"hasFocus",2),nn([Ue()],ln.prototype,"showValidStyle",2),nn([Ue()],ln.prototype,"showInvalidStyle",2),nn([Fe()],ln.prototype,"title",2),nn([Fe()],ln.prototype,"name",2),nn([Fe()],ln.prototype,"value",2),nn([Fe({reflect:!0})],ln.prototype,"size",2),nn([Fe()],ln.prototype,"label",2),nn([Fe({attribute:"help-text"})],ln.prototype,"helpText",2),nn([Fe()],ln.prototype,"placeholder",2),nn([Fe({type:Number})],ln.prototype,"rows",2),nn([Fe({type:Boolean,reflect:!0})],ln.prototype,"disabled",2),nn([Fe({type:Boolean,reflect:!0})],ln.prototype,"readonly",2),nn([Fe({reflect:!0})],ln.prototype,"form",2),nn([Fe({type:Boolean,reflect:!0})],ln.prototype,"required",2),nn([Fe({type:Number})],ln.prototype,"minlength",2),nn([Fe({type:Number})],ln.prototype,"maxlength",2),nn([Fe()],ln.prototype,"autocapitalize",2),nn([Fe()],ln.prototype,"autocorrect",2),nn([Fe()],ln.prototype,"autocomplete",2),nn([Fe({type:Boolean})],ln.prototype,"autofocus",2),nn([Fe()],ln.prototype,"enterkeyhint",2),nn([Fe({type:Boolean,reflect:!0,attribute:"style-on-valid"})],ln.prototype,"styleOnValid",2),nn([Fe({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],ln.prototype,"spellcheck",2),nn([Fe()],ln.prototype,"inputmode",2),nn([Kr()],ln.prototype,"defaultValue",2),nn([gi("disabled",{waitUntilFirstUpdate:!0})],ln.prototype,"handleDisabledChange",1),nn([gi("rows",{waitUntilFirstUpdate:!0})],ln.prototype,"handleRowsChange",1),nn([gi("value",{waitUntilFirstUpdate:!0})],ln.prototype,"handleValueChange",1),ln=nn([je("sd-textarea")],ln);const dn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ln}},Symbol.toStringTag,{value:"Module"}));var hn=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,pn=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?cn(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&hn(e,i,s),s};let un=class extends Xe{constructor(){super(...arguments),this.isFocusTriggered=!1,this.localize=new S(this),this.content="",this.placement="top",this.size="lg",this.disabled=!1,this.open=!1,this.trigger="click focus",this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then((()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}))}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){if(this.hasTrigger("click")){if(this.isFocusTriggered)return void(this.isFocusTriggered=!1);this.open?this.hide():this.show()}}handleFocus(){this.hasTrigger("focus")&&(this.isFocusTriggered=!0,this.show())}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){const t=$i(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=$i(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await Si(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=Ai(this,"tooltip.show",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await Si(this.body);const{keyframes:t,options:e}=Ai(this,"tooltip.hide",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Ti(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Ti(this,"sd-after-hide")}render(){const t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return fe`<sd-popup part="base" exportparts="
|
99
|
+
"><div part="combobox" class="${Ke("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${Ke("appearance-none outline-none flex-grow bg-transparent w-full",a,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-describedby="help-text" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?fe`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""} <input class="${Ke("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",a)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${o?fe`<button part="clear-button" class="${Ke("select__clear flex justify-center",n)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Ke("text-icon-fill-neutral-800",l)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?fe`<sd-icon part="invalid-icon" class="${Ke(n,l)}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?fe`<sd-icon part="valid-icon" class="${Ke("flex-shrink-0",n,l)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${Ke("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled?"text-neutral-500":"text-primary",l)}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${Ke("bg-white px-2 py-3 relative border-primary",this.open&&"shadow","bottom"===this.currentPlacement?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${r?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};ba.dependencies={"sd-icon":wi,"sd-popup":ti,"sd-tag":da},ba.styles=[qe,Xe.styles,Mt`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249) / var(--tw-bg-opacity))}`],ua([Ne({selector:"sd-option"})],ba.prototype,"_optionsInDefaultSlot",2),ua([He("sd-popup")],ba.prototype,"popup",2),ua([He('[part="combobox"]')],ba.prototype,"combobox",2),ua([He('[part="display-input"]')],ba.prototype,"displayInput",2),ua([He(".value-input")],ba.prototype,"valueInput",2),ua([He('[part="listbox"]')],ba.prototype,"listbox",2),ua([He("#invalid-message")],ba.prototype,"invalidMessage",2),ua([Ue()],ba.prototype,"hasHover",2),ua([Ue()],ba.prototype,"displayLabel",2),ua([Ue()],ba.prototype,"hasFocus",2),ua([Ue()],ba.prototype,"currentOption",2),ua([Ue()],ba.prototype,"selectedOptions",2),ua([Ue()],ba.prototype,"showValidStyle",2),ua([Ue()],ba.prototype,"showInvalidStyle",2),ua([Kr()],ba.prototype,"defaultValue",2),ua([Fe({type:Boolean,reflect:!0})],ba.prototype,"open",2),ua([Fe({reflect:!0})],ba.prototype,"size",2),ua([Fe()],ba.prototype,"label",2),ua([Fe()],ba.prototype,"placeholder",2),ua([Fe({attribute:"help-text"})],ba.prototype,"helpText",2),ua([Fe({reflect:!0})],ba.prototype,"placement",2),ua([Ue()],ba.prototype,"currentPlacement",2),ua([Fe({type:Boolean})],ba.prototype,"clearable",2),ua([Fe({type:Boolean,reflect:!0})],ba.prototype,"disabled",2),ua([Fe({type:Boolean,reflect:!0})],ba.prototype,"multiple",2),ua([Fe({type:Boolean,reflect:!0})],ba.prototype,"useTags",2),ua([Fe({attribute:"max-options-visible",type:Number})],ba.prototype,"maxOptionsVisible",2),ua([Fe({reflect:!0})],ba.prototype,"form",2),ua([Fe()],ba.prototype,"name",2),ua([Fe({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],ba.prototype,"value",2),ua([Fe({type:Boolean,reflect:!0})],ba.prototype,"required",2),ua([Fe({type:Boolean,reflect:!0,attribute:"style-on-valid"})],ba.prototype,"styleOnValid",2),ua([Fe({type:Boolean})],ba.prototype,"hoist",2),ua([Fe()],ba.prototype,"getTag",2),ua([gi("useTags",{waitUntilFirstUpdate:!0})],ba.prototype,"handleUseTagsChange",1),ua([gi("disabled",{waitUntilFirstUpdate:!0})],ba.prototype,"handleDisabledChange",1),ua([gi("open",{waitUntilFirstUpdate:!0})],ba.prototype,"handleOpenChange",1),ua([gi("size",{waitUntilFirstUpdate:!0})],ba.prototype,"applySizeToOptions",1),ua([gi("value",{waitUntilFirstUpdate:!0})],ba.prototype,"handleValueChange",1),ba=ua([je("sd-select")],ba),Ei("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Ei("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const ga=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ba}},Symbol.toStringTag,{value:"Module"}));var va=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,fa=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?ma(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&va(e,i,s),s};let ya=class extends Xe{constructor(){super(...arguments),this.steps=[],this.size="lg",this.orientation="horizontal",this.activeStep=0,this.notInteractive=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{let t;this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0,this.steps.forEach(((e,i)=>{e.index=i+1,e.size=this.size,e.orientation=this.orientation,this.notInteractive?(e.current=!1,e.disabled=!1,e.notInteractive=!0):e.current&&(t=i)})),this.setActiveStep(t||this.activeStep)}))}updateSize(){this.steps.forEach((t=>{t.size=this.size}))}updateOrientation(){this.steps.forEach((t=>{t.orientation=this.orientation}))}getAllSteps(){return[...this.body.assignedElements()].filter((t=>"sd-step"===t.tagName.toLowerCase()))}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach(((e,i)=>{i===t?e.current=!0:i>t?e.disabled=!0:e.current=!1})))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach((t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0}))}render(){return fe`<div part="base" role="${this.notInteractive?"group":"navigation"}" class="${Ke("flex","vertical"===this.orientation&&"flex-col h-full")}"><slot part="body"></slot></div>`}};ya.styles=[Xe.styles,qe,Mt`:host{width:-moz-max-content;width:max-content}`],fa([He("[part=body]")],ya.prototype,"body",2),fa([Fe({reflect:!0})],ya.prototype,"size",2),fa([Fe({reflect:!0})],ya.prototype,"orientation",2),fa([Fe({type:Number,reflect:!0,attribute:"active-step"})],ya.prototype,"activeStep",2),fa([Fe({type:Boolean,reflect:!0,attribute:"not-interactive"})],ya.prototype,"notInteractive",2),fa([gi("size",{waitUntilFirstUpdate:!0})],ya.prototype,"updateSize",1),fa([gi("orientation",{waitUntilFirstUpdate:!0})],ya.prototype,"updateOrientation",1),fa([gi("notInteractive")],ya.prototype,"handleInteractivityChange",1),ya=fa([je("sd-step-group")],ya);const wa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ya}},Symbol.toStringTag,{value:"Module"}));var xa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,$a=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?ka(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&xa(e,i,s),s};let Ca=class extends Xe{constructor(){super(...arguments),this.size="lg",this.orientation="horizontal",this.disabled=!1,this.current=!1,this.noTail=!1,this.notInteractive=!1,this.label="",this.description="",this.index=1,this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1)}handleDisabledChange(){this.disabled&&(this.current=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1)}render(){const t=this.isLink(),e=this.notInteractive?gr`div`:t?gr`a`:gr`button`;return mr`<div part="base" class="${Ke("flex pt-1","horizontal"===this.orientation?"flex-col w-full":"flex-row gap-4 items-stretch h-full w-min overflow-hidden",!this.disabled&&!this.current&&!this.notInteractive&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${Ke("flex shrink-0 gap-2",this.noTail&&"w-max","horizontal"===this.orientation?"flex-row":"flex-col items-stretch","horizontal"===this.orientation?"lg"===this.size?"translateLg":"translateSm":"lg"===this.size?"mt-1":"mt-3")}"><${e} part="circle" ?disabled="${this.disabled}" tabindex="${this.disabled||this.current?"-1":"0"}" href="${yr(t?this.href:void 0)}" aria-current="${this.current?"step":void 0}" aria-label="Step ${this.index}" class="${Ke("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled||this.current?"focus-visible:outline-none":"focus-visible:focus-outline",this.notInteractive?"lg"===this.size?"w-[72px]":"w-12":"lg"===this.size?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-500",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive?"border-neutral-400":"group-hover:cursor-pointer",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${Ke(!this.disabled&&!this.current&&!this.notInteractive&&"text-primary group-hover:text-primary-500 group-hover:fill-primary-500",this.notInteractive&&"text-primary","lg"===this.size?"text-lg":"text-sm")}">${this.disabled||this.current||this.notInteractive?mr`${this.index}`:mr`<sd-icon name="status-check" library="system"></sd-icon>`}</slot></${e}>${this.noTail?"":"horizontal"===this.orientation?mr`<sd-divider part="tail" orientation="horizontal" class="${Ke("w-full my-auto mr-2",!this.disabled&&!this.current&&!this.notInteractive&&"tail-to-primary")}"></sd-divider>`:mr`<sd-divider part="tail" orientation="vertical" class="${Ke("flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",!this.disabled&&!this.current&&!this.notInteractive&&"tail-to-primary")}"></sd-divider>`}</div><div part="text-container" class="${Ke("mt-4 mr-4 break-words flex flex-col gap-2","horizontal"===this.orientation?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-500")}"><div part="label" class="${Ke("!font-bold sd-paragraph",this.disabled&&"!text-neutral-500",this.disabled||this.current||this.notInteractive?"text-black":"!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer")}"><slot name="label">${this.label}</slot></div><div part="description" class="${Ke("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-500")}">${this.description||mr`<slot></slot>`}</div></div></div>`}};Ca.styles=[Xe.styles,qe,Dt(".sd-paragraph,.sd-prose p{font-size:var(--sd-font-size-base,1rem)}.sd-paragraph,.sd-paragraph--size-sm,.sd-prose p,.sd-prose p--size-sm{font-weight:400;line-height:var(--sd-line-height-normal,150%);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.sd-paragraph--size-sm,.sd-prose p--size-sm{font-size:var(--sd-font-size-sm,.875rem)}.sd-paragraph--inverted,.sd-prose--inverted p{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}"),Mt`:host{flex:1 1 0%}[part=base]:not(:has(sd-divider)){height:-moz-max-content;height:max-content}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}.tail-to-primary::part(main){--tw-border-opacity:1!important;border-color:rgb(var(--sd-color-primary,0 53 142) / var(--tw-border-opacity))!important}.group:hover .tail-to-primary::part(main){--tw-border-opacity:1!important;border-color:rgb(var(--sd-color-primary-500,70 109 175) / var(--tw-border-opacity))!important}sd-divider::part(main){--tw-border-opacity:1!important;border-color:rgb(var(--sd-color-neutral-400,195 195 195) / var(--tw-border-opacity))!important}`],$a([Fe({reflect:!0})],Ca.prototype,"size",2),$a([Fe({reflect:!0})],Ca.prototype,"orientation",2),$a([Fe({type:Boolean,reflect:!0})],Ca.prototype,"disabled",2),$a([Fe({type:Boolean,reflect:!0})],Ca.prototype,"current",2),$a([Fe({reflect:!0,type:Boolean,attribute:"no-tail"})],Ca.prototype,"noTail",2),$a([Fe({type:Boolean,reflect:!0,attribute:"not-interactive"})],Ca.prototype,"notInteractive",2),$a([Fe()],Ca.prototype,"label",2),$a([Fe()],Ca.prototype,"description",2),$a([Fe({type:Number,reflect:!0,attribute:"index"})],Ca.prototype,"index",2),$a([Fe()],Ca.prototype,"href",2),$a([gi("current")],Ca.prototype,"handleCurrentChange",1),$a([gi("disabled")],Ca.prototype,"handleDisabledChange",1),$a([gi("notInteractive")],Ca.prototype,"handleInteractivityChange",1),Ca=$a([je("sd-step")],Ca);const Sa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ca}},Symbol.toStringTag,{value:"Module"}));var za=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,Oa=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?_a(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&za(e,i,s),s};let Pa=class extends Xe{constructor(){super(...arguments),this.formControlController=new lr(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.showInvalidStyle=!1,this.title="",this.name="",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return fe`<label part="base" class="${Ke("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${yr(this.value)}" .checked="${Wr(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"}" class="${Ke("relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2\n peer-focus-visible:outline-primary",this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?"border-error bg-error hover:bg-error-400":this.checked?"border-accent bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span id="thumb" part="thumb" class="${Ke("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",this.disabled&&this.checked?"bg-white":this.disabled?"-translate-x-2 bg-neutral-500":this.showInvalidStyle?"bg-white -translate-x-2":this.checked?"translate-x-2 bg-white":"bg-neutral-800 -translate-x-2")}"></span> </span><span part="label" id="label" class="${Ke("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};Pa.styles=[Xe.styles,Mt`:host{display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label::after{content:' *'}`],Oa([He("input")],Pa.prototype,"input",2),Oa([He("#invalid-message")],Pa.prototype,"invalidMessage",2),Oa([Ue()],Pa.prototype,"showInvalidStyle",2),Oa([Fe()],Pa.prototype,"title",2),Oa([Fe()],Pa.prototype,"name",2),Oa([Fe()],Pa.prototype,"value",2),Oa([Fe({type:Boolean,reflect:!0})],Pa.prototype,"disabled",2),Oa([Fe({type:Boolean,reflect:!0})],Pa.prototype,"checked",2),Oa([Kr("checked")],Pa.prototype,"defaultChecked",2),Oa([Fe({reflect:!0})],Pa.prototype,"form",2),Oa([Fe({type:Boolean,reflect:!0})],Pa.prototype,"required",2),Oa([gi("disabled",{waitUntilFirstUpdate:!0})],Pa.prototype,"handleDisabledChange",1),Oa([gi(["checked"],{waitUntilFirstUpdate:!0})],Pa.prototype,"handleStateChange",1),Pa=Oa([je("sd-switch")],Pa);const Ea=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Pa}},Symbol.toStringTag,{value:"Module"}));var Aa=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,La=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?Ta(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Aa(e,i,s),s};let Da=class extends Xe{constructor(){super(...arguments),this.localize=new S(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.variant="default",this.activation="auto"}connectedCallback(){const t=Promise.all([customElements.whenDefined("sd-tab"),customElements.whenDefined("sd-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>{this.updateScrollControls()})),this.mutationObserver=new MutationObserver((t=>{t.some((t=>!["aria-labelledby","aria-controls"].includes(t.attributeName)))&&setTimeout((()=>this.setAriaLabels())),t.some((t=>"disabled"===t.attributeName))&&this.syncTabsAndPanels()})),this.updateComplete.then((()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then((()=>{new IntersectionObserver(((t,e)=>{t[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(this.activeTab??this.tabs[0],{emitEvents:!1}),e.unobserve(t[0].target))})).observe(this.tabGroup)}))}))}disconnectedCallback(){this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter((e=>t.includeDisabled?"sd-tab"===e.tagName.toLowerCase():"sd-tab"===e.tagName.toLowerCase()&&!e.disabled))}getAllPanels(){return[...this.body.assignedElements()].filter((t=>"sd-tab-panel"===t.tagName.toLowerCase()))}getActiveTab(){return this.tabs.find((t=>t.matches(":focus")))}handleClick(t){const e=t.target.closest("sd-tab");(null==e?void 0:e.closest("sd-tab-group"))===this&&null!==e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){const e=t.target.closest("sd-tab");if((null==e?void 0:e.closest("sd-tab-group"))===this){if(["Enter"," "].includes(t.key)&&null!==e&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&ro(this.tabs[t+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&ro(this.tabs[t-1],this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.tabs.find((t=>t.matches(":focus"))),i="rtl"===this.localize.dir();if("sd-tab"===(null==e?void 0:e.tagName.toLowerCase())){let r=this.tabs.indexOf(e);"Home"===t.key?r=0:"End"===t.key?r=this.tabs.length-1:t.key===(i?"ArrowRight":"ArrowLeft")||"ArrowUp"===t.key?r--:(t.key===(i?"ArrowLeft":"ArrowRight")||"ArrowDown"===t.key)&&r++,r<0&&(r=this.tabs.length-1),r>this.tabs.length-1&&(r=0),this.tabs[r].focus({preventScroll:!0}),"auto"===this.activation&&this.setActiveTab(this.tabs[r],{scrollBehavior:"smooth"}),ro(this.tabs[r],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e={emitEvents:!0,scrollBehavior:"auto",...e},t!==this.activeTab&&!t.disabled){const i=this.activeTab;this.activeTab=t,this.tabs.map((t=>t.active=t===this.activeTab)),this.panels.map((t=>{var e;return t.active=t.name===(null==(e=this.activeTab)?void 0:e.panel)})),ro(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(i&&this.emit("sd-tab-hide",{detail:{name:i.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach((t=>{const e=this.panels.find((e=>e.name===t.panel));e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))}))}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.updateComplete.then((()=>this.updateScrollControls())),0!==this.tabs.length&&"container"===this.tabs[0].variant&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){const e=this.tabs.find((e=>e.panel===t));e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t="rtl"===this.localize.dir();return fe`<div part="base" class="${Ke("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${Ke(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?fe`<button part="scroll-button--start" exportparts="base:scroll-button__base" class="${Ke("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-icon library="system" name="${t?"chevron-up":"chevron-down"}" class="${Ke("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${Ke("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full h-0.25 bg-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?fe`<button part="scroll-button--end" exportparts="base:scroll-button__base" class="${Ke("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-icon library="system" name="${t?"chevron-down":"chevron-up"}" class="${Ke("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${Ke("block auto py-8 px-6","container"===this.variant&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};Da.styles=[Xe.styles,Dt(Mr),qe,Mt`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-tab-panel){--padding:1rem 0}`],La([He("[part=base]")],Da.prototype,"tabGroup",2),La([He("[part=body]")],Da.prototype,"body",2),La([He("[part=scroll-container]")],Da.prototype,"nav",2),La([Ue()],Da.prototype,"hasScrollControls",2),La([Ue()],Da.prototype,"variant",2),La([Fe()],Da.prototype,"activation",2),Da=La([je("sd-tab-group")],Da);const Ma=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Da}},Symbol.toStringTag,{value:"Module"}));var Ba=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,Va=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?ja(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Ba(e,i,s),s};let Ia=0,Fa=class extends Xe{constructor(){super(...arguments),this.attrId=++Ia,this.componentId=`sd-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return fe`<slot part="base" class="${Ke("block",this.active&&"tab-panel--active")}"></slot>`}};Fa.styles=[Xe.styles,qe,Mt`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],Va([Fe({reflect:!0})],Fa.prototype,"name",2),Va([Fe({type:Boolean,reflect:!0})],Fa.prototype,"active",2),Va([gi("active")],Fa.prototype,"handleActiveChange",1),Fa=Va([je("sd-tab-panel")],Fa);const Ua=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Fa}},Symbol.toStringTag,{value:"Module"}));var Ra=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,Na=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?Ha(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Ra(e,i,s),s};let qa=0,Ka=class extends Xe{constructor(){super(...arguments),this.attrId=++qa,this.componentId=`sd-tab-${this.attrId}`,this.panel="",this.variant="default",this.active=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,fe`<div part="base" class="${Ke("inline-flex min-w-max h-12 px-3 leading-none items-center justify-center whitespace-nowrap select-none cursor-pointer group relative focus-visible:focus-outline outline-2 !-outline-offset-2","container"===this.variant&&" rounded-[4px_4px_0_0]","container"===this.variant&&this.active&&"tab--active-container-border bg-white",this.disabled?"opacity-50 !cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${this.disabled?"-1":"0"}"><slot name="left" class="${Ke("pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${Ke(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${Ke((!this.active||this.disabled)&&"hidden","absolute bottom-0 h-1 bg-accent","default"===this.variant?"w-full":"w-3/4 group-hover:w-full transition-all duration-200 ease-in-out")}"></div><div part="hover-bottom-border" class="${Ke(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};Ka.styles=[Xe.styles,qe,Mt`:host{box-sizing:border-box;display:block}.tab--active-container-border::after{content:'';position:absolute;height:100%;width:100%;border-width:1px;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195) / var(--tw-border-opacity));border-bottom:none;border-radius:4px 4px 0 0}`],Na([He("[part=base]")],Ka.prototype,"tab",2),Na([Fe({reflect:!0})],Ka.prototype,"panel",2),Na([Fe({type:String,reflect:!0})],Ka.prototype,"variant",2),Na([Fe({type:Boolean,reflect:!0})],Ka.prototype,"active",2),Na([Fe({type:Boolean,reflect:!0})],Ka.prototype,"disabled",2),Na([gi("active")],Ka.prototype,"handleActiveChange",1),Na([gi("disabled")],Ka.prototype,"handleDisabledChange",1),Ka=Na([je("sd-tab")],Ka);const Za=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ka}},Symbol.toStringTag,{value:"Module"}));var Wa=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,Xa=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?Ya(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Wa(e,i,s),s};let Ga=class extends Xe{constructor(){super(...arguments),this.variant="white",this.hasSlotController=new pr(this,"[default]","media","meta","headline","expandable")}render(){const t={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return fe`<div class="relative flex flex-col group" part="base"><div class="${Ke("mb-4",!t["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${Ke("flex-1","gradient-white"===this.variant&&"bg-gradient-to-t from-white/[.8] to-60%","gradient-dark"===this.variant&&"bg-gradient-to-t from-primary-800/[.6] to-60%")}"></div><div class="${Ke({white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"bg-neutral-100/[.8] group-hover:bg-neutral-100/90",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"bg-primary-100/[.8] group-hover:bg-primary-100/90","gradient-white":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/75 to-primary-800/[.6] text-white"}[this.variant])}"><div class="flex-col text-left p-4" part="content"><div part="meta" class="${Ke("gap-2 mb-4",!t["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="text-lg font-bold m-0"><slot name="headline">Always insert one semantically correct heading element here (e. g. <h2>)</slot></div><div class="${Ke("hidden",t["teaser-has-expandable"]&&"h-[0px] invisible opacity-0 md:[transition:_height_0.2s_linear,opacity_0.1s_linear_0.1s] md:block md:group-hover:h-auto md:group-hover:my-4 md:group-hover:opacity-[100%] md:group-hover:visible")}" part="expandable"><slot name="expandable"></slot></div><div part="main" class="${Ke(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};Ga.styles=[Xe.styles,Mt`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],Xa([Fe({reflect:!0})],Ga.prototype,"variant",2),Xa([He('[part="base"]')],Ga.prototype,"teaserMedia",2),Ga=Xa([je("sd-teaser-media")],Ga);const Ja=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ga}},Symbol.toStringTag,{value:"Module"}));var Qa=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,en=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?tn(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&Qa(e,i,s),s};let rn=class extends Xe{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new pr(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),0===this.breakpoint?this._orientation="horizontal":9999===this.breakpoint?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.updateOrientation())),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(t){super.updated(t),t.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){const t="white border-neutral-400"===this.variant||this.inset,e=this.hasSlotController.test("[default]"),i=this.hasSlotController.test("media"),r=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),fe`<div class="${Ke("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],"vertical"===this._orientation&&"flex-col","horizontal"===this._orientation&&"flex-row gap-8","horizontal"===this._orientation&&t&&"py-8 px-10")}" part="base"><div style="${"horizontal"===this._orientation?"width: var(--distribution-media, 100%);":""}" class="${Ke(!t&&"vertical"===this._orientation&&"mb-4",!i&&"hidden","white border-neutral-400"===this.variant&&"vertical"===this._orientation&&"mx-[-1px] mt-[-1px]")}" part="media"><slot name="media"></slot></div><div style="${"horizontal"===this._orientation?"width: var(--distribution-content, 100%); "+(t?"width: var(--distribution-content, calc(100% - 2rem));":""):""}" class="${Ke("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${Ke("gap-2 mb-4",!r&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${Ke("text-lg font-bold m-0","primary"===this.variant?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. <h2>)</slot></div><div part="main" class="${Ke(!e&&"hidden")}"><slot></slot></div></div></div>`}};rn.styles=[Xe.styles,Mt`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],en([Fe({reflect:!0})],rn.prototype,"variant",2),en([Fe({reflect:!0,type:Number})],rn.prototype,"breakpoint",2),en([Fe({type:Boolean,reflect:!0})],rn.prototype,"inset",2),en([He('[part="base"]')],rn.prototype,"teaser",2),en([Ue()],rn.prototype,"_orientation",2),rn=en([je("sd-teaser")],rn);const on=Object.freeze(Object.defineProperty({__proto__:null,get default(){return rn}},Symbol.toStringTag,{value:"Module"}));var sn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,nn=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?an(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&sn(e,i,s),s};let ln=class extends Xe{constructor(){super(...arguments),this.formControlController=new lr(this),this.hasSlotController=new pr(this,"help-text","label"),this.hasFocus=!1,this.showValidStyle=!1,this.showInvalidStyle=!1,this.title="",this.name="",this.value="",this.size="lg",this.label="",this.helpText="",this.placeholder="",this.rows=4,this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.styleOnValid=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this.setTextareaHeight()}))}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){return t?("number"==typeof t.top&&(this.textarea.scrollTop=t.top),void("number"==typeof t.left&&(this.textarea.scrollLeft=t.left))):{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,i="none"){this.textarea.setSelectionRange(t,e,i)}setRangeText(t,e,i,r){this.textarea.setRangeText(t,e,i,r),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return null==(t=this.textarea)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=!!this.label||!!t,r=!!this.helpText||!!e,o=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",s="sm"===this.size?"text-sm":"text-base",a={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return fe`<div part="form-control" class="text-left"><label part="form-control-label" id="label" class="${Ke("mb-2",i?"inline-block":"hidden",s)}" for="input" aria-hidden="${i?"false":"true"}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${Ke("relative w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${Ke("absolute w-full h-full pointer-events-none border rounded-default",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[o])}"></div><div part="base" class="${Ke("textarea px-4 flex items-top rounded-default group",{sm:"textarea-sm py-1",md:"textarea-md py-1",lg:"textarea-lg py-2"}[this.size],{disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[o],this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly?"bg-neutral-100":"bg-white")}"><textarea part="textarea" id="input" class="${Ke("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",s)}" title="${this.title}" name="${yr(this.name)}" .value="${Wr(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${yr(this.placeholder)}" minlength="${yr(this.minlength)}" maxlength="${yr(this.maxlength)}" rows="${yr(this.rows)}" autocapitalize="${yr(this.autocapitalize)}" autocorrect="${yr(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${yr(this.spellcheck)}" enterkeyhint="${yr(this.enterkeyhint)}" inputmode="${yr(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?fe`<sd-icon class="${Ke("text-error absolute right-4 bg-white group-hover:bg-neutral-200",a)}" library="system" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?fe`<sd-icon class="${Ke("text-success absolute right-4 bg-white group-hover:bg-neutral-200",a)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${Ke("text-sm text-neutral-700",r?"block":"hidden")}" aria-hidden="${r?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};ln.styles=[qe,Xe.styles,Mt`:host{display:block}:host([required]) #label::after{content:' *'}.no-scrollbar::-webkit-scrollbar{display:none}`],nn([He("#input")],ln.prototype,"textarea",2),nn([He("#invalid-message")],ln.prototype,"invalidMessage",2),nn([Ue()],ln.prototype,"hasFocus",2),nn([Ue()],ln.prototype,"showValidStyle",2),nn([Ue()],ln.prototype,"showInvalidStyle",2),nn([Fe()],ln.prototype,"title",2),nn([Fe()],ln.prototype,"name",2),nn([Fe()],ln.prototype,"value",2),nn([Fe({reflect:!0})],ln.prototype,"size",2),nn([Fe()],ln.prototype,"label",2),nn([Fe({attribute:"help-text"})],ln.prototype,"helpText",2),nn([Fe()],ln.prototype,"placeholder",2),nn([Fe({type:Number})],ln.prototype,"rows",2),nn([Fe({type:Boolean,reflect:!0})],ln.prototype,"disabled",2),nn([Fe({type:Boolean,reflect:!0})],ln.prototype,"readonly",2),nn([Fe({reflect:!0})],ln.prototype,"form",2),nn([Fe({type:Boolean,reflect:!0})],ln.prototype,"required",2),nn([Fe({type:Number})],ln.prototype,"minlength",2),nn([Fe({type:Number})],ln.prototype,"maxlength",2),nn([Fe()],ln.prototype,"autocapitalize",2),nn([Fe()],ln.prototype,"autocorrect",2),nn([Fe()],ln.prototype,"autocomplete",2),nn([Fe({type:Boolean})],ln.prototype,"autofocus",2),nn([Fe()],ln.prototype,"enterkeyhint",2),nn([Fe({type:Boolean,reflect:!0,attribute:"style-on-valid"})],ln.prototype,"styleOnValid",2),nn([Fe({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],ln.prototype,"spellcheck",2),nn([Fe()],ln.prototype,"inputmode",2),nn([Kr()],ln.prototype,"defaultValue",2),nn([gi("disabled",{waitUntilFirstUpdate:!0})],ln.prototype,"handleDisabledChange",1),nn([gi("rows",{waitUntilFirstUpdate:!0})],ln.prototype,"handleRowsChange",1),nn([gi("value",{waitUntilFirstUpdate:!0})],ln.prototype,"handleValueChange",1),ln=nn([je("sd-textarea")],ln);const dn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ln}},Symbol.toStringTag,{value:"Module"}));var hn=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,pn=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?cn(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&hn(e,i,s),s};let un=class extends Xe{constructor(){super(...arguments),this.isFocusTriggered=!1,this.localize=new S(this),this.content="",this.placement="top",this.size="lg",this.disabled=!1,this.open=!1,this.trigger="click focus",this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then((()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}))}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){if(this.hasTrigger("click")){if(this.isFocusTriggered)return void(this.isFocusTriggered=!1);this.open?this.hide():this.show()}}handleFocus(){this.hasTrigger("focus")&&(this.isFocusTriggered=!0,this.show())}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){const t=$i(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=$i(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await Si(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=Ai(this,"tooltip.show",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await Si(this.body);const{keyframes:t,options:e}=Ai(this,"tooltip.hide",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Ti(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Ti(this,"sd-after-hide")}render(){const t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return fe`<sd-popup part="base" exportparts="
|
100
100
|
popup:base__popup,
|
101
101
|
arrow:base__arrow
|
102
102
|
" class="${Ke(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[t?"start":e?"end":"default"]*("sm"===this.size?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" aria-describedby="tooltip" class="${Ke("lg"===this.size?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-icon library="system" name="info-circle" class="${Ke(this.disabled&&"sd-interactive--disabled")}"></sd-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-popup>`}};un.styles=[Xe.styles,Dt(Mr),Mt`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-popup{--arrow-color:rgb(var(--sd-color-primary, 0 53 142) / 1);--arrow-size:10px}sd-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-popup::part(arrow){--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-popup[placement^=top]::part(popup){transform-origin:bottom}sd-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],pn([He("slot:not([name])")],un.prototype,"defaultSlot",2),pn([He("#tooltip")],un.prototype,"body",2),pn([He("sd-popup")],un.prototype,"popup",2),pn([Fe()],un.prototype,"content",2),pn([Fe({reflect:!0})],un.prototype,"placement",2),pn([Fe()],un.prototype,"size",2),pn([Fe({type:Boolean,reflect:!0})],un.prototype,"disabled",2),pn([Fe({type:Boolean,reflect:!0})],un.prototype,"open",2),pn([Fe()],un.prototype,"trigger",2),pn([Fe({type:Boolean})],un.prototype,"hoist",2),pn([gi("open",{waitUntilFirstUpdate:!0})],un.prototype,"handleOpenChange",1),pn([gi(["content","hoist","placement"])],un.prototype,"handleOptionsChange",1),pn([gi("disabled")],un.prototype,"handleDisabledChange",1),un=pn([je("sd-tooltip")],un),Ei("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),Ei("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});const bn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return un}},Symbol.toStringTag,{value:"Module"}));var gn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,mn=(t,e,i,r)=>{for(var o,s=r>1?void 0:r?vn(e,i):e,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r?o(e,i,s):o(s))||s);return r&&s&&gn(e,i,s),s};let fn=class extends Xe{constructor(){super(...arguments),this.playing=!1,this.overlay=!1,this.isBelowBreakpoint=!1,this.hasSlotController=new pr(this,"[default]","play-icon","poster")}get poster(){const t=this.shadowRoot.querySelector("slot[name=poster]");return(null==t?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}fadeoutPoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0")}hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.display="none")}play(){this.emit("sd-play"),this.playing=!0,this.fadeoutPoster()}handleKeydown(t){t instanceof KeyboardEvent&&("Enter"===t.key||" "===t.key)&&(this.play(),setTimeout((()=>{var t;null==(t=this.querySelector("video"))||t.focus()})))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.handleButtonResize())),this.updateComplete.then((()=>{this.resizeObserver.observe(this.hostEl)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return fe`<div part="base" aria-label="Video Player" class="cursor-pointer"><button part="play-button" aria-label="Play video" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${Ke(this.playing&&"pointer-events-none","w-full h-full absolute top-0 left-0 z-30 text-primary hover:text-primary-500 sd-interactive sd-interactive--reset focus-visible:focus-outline")}"><div part="play-button-bg" class="${Ke(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition")}"><slot name="play-icon" part="play-icon" class="${Ke(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-icon id="default-play-icon" library="system" name="start"></sd-icon></slot></div></button> ${this.hasSlotController.test("poster")?fe`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>`:null}<div part="overlay" id="overlay" role="presentation" class="${Ke(this.overlay&&!this.playing?"opacity-100":"opacity-0","bg-[rgba(0,0,0,0.65)] w-full h-full absolute top-0 left-0 pointer-events-none z-20 play-pause-transition")}"></div><slot></slot></div>`}};fn.styles=[Xe.styles,Mt`:host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){transition-property:opacity;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}::slotted([slot=poster]){position:absolute;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);z-index:10;width:100%}#default-play-icon,::slotted([slot=play-icon]){position:absolute;left:50%;top:50%;--tw-translate-x:-50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}`],mn([He("[part=base]")],fn.prototype,"hostEl",2),mn([Fe({type:Boolean,reflect:!0})],fn.prototype,"playing",2),mn([Fe({type:Boolean,reflect:!0})],fn.prototype,"overlay",2),mn([Fe({type:Boolean})],fn.prototype,"isBelowBreakpoint",2),fn=mn([je("sd-video")],fn);const yn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return fn}},Symbol.toStringTag,{value:"Module"}));t.LocalizeController=S,t.registerIconLibrary=u,t.setupAutocomplete=function(t,{setValueOnSelection:e,scrollSelectionIntoView:i}={setValueOnSelection:!0,scrollSelectionIntoView:!0}){const r=t?"string"==typeof t?document.querySelector(t):t:document.querySelector("#autoComplete"),o=r.shadowRoot.querySelector("input"),s=t=>t[0];return o.addEventListener("init",(()=>{var t,e;const i=null==(t=r.shadowRoot)?void 0:t.querySelector("ul");null==i||i.setAttribute("part","listbox");const o=document.createElement("sd-popup");o.appendChild(i),null==(e=r.shadowRoot)||e.appendChild(o),null==o||o.setAttribute("exportparts","popup__content"),o&&(o.active=!1,o.autoSize="vertical",o.autoSizePadding=16,o.placement="bottom-start",o.anchor=r,o.sync="width");const a=s`sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll;border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-width:2px;border-top-width:0;--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255) / var(--tw-bg-opacity));padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem);padding-top:var(--sd-spacing-3,.75rem);padding-bottom:var(--sd-spacing-3,.75rem);--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-popup li{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}sd-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246) / var(--tw-bg-opacity))}sd-popup li{list-style-type:''}sd-popup li mark{background-color:transparent;font-weight:700}sd-popup li:not(:has(sd-option)){cursor:pointer;padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem);padding-top:var(--sd-spacing-3,.75rem);padding-bottom:var(--sd-spacing-3,.75rem);font-size:var(--sd-font-size-base,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24) / var(--tw-text-opacity))}sd-popup li:not(:has(sd-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233) / var(--tw-bg-opacity))}sd-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233) / var(--tw-bg-opacity))}`,n=new CSSStyleSheet;n.replaceSync(a),r.shadowRoot.adoptedStyleSheets=[...r.shadowRoot.adoptedStyleSheets,n]})),e&&o.addEventListener("selection",(t=>{var e;r.value=null==(e=null==t?void 0:t.detail)?void 0:e.selection.value})),o.addEventListener("open",(()=>{var t,e,i,o,s,a;null==(e=null==(t=r.shadowRoot)?void 0:t.querySelector("sd-popup"))||e.setAttribute("active","true"),null==(o=null==(i=r.shadowRoot)?void 0:i.querySelector('[part="border"]'))||o.classList.add("rounded-b-none"),null==(a=null==(s=r.shadowRoot)?void 0:s.querySelector('[part="form-control"]'))||a.classList.add("z-50")})),o.addEventListener("close",(()=>{var t,e,i,o,s,a;null==(e=null==(t=r.shadowRoot)?void 0:t.querySelector("sd-popup"))||e.removeAttribute("active"),null==(o=null==(i=r.shadowRoot)?void 0:i.querySelector('[part="border"]'))||o.classList.remove("rounded-b-none"),null==(a=null==(s=r.shadowRoot)?void 0:s.querySelector('[part="form-control"]'))||a.classList.remove("z-50")})),i&&o.addEventListener("navigate",(()=>{const t=r.shadowRoot.querySelector('[aria-selected="true"]');null==t||t.scrollIntoView({block:"nearest"})})),{config:{selector:()=>o,resultsList:{tag:"ul"},wrapper:!1}}},t.unregisterIconLibrary=b,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})},"object"==typeof exports&&typeof module<"u"?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=typeof globalThis<"u"?globalThis:t||self)["Solid Components"]={});
|