@solid-design-system/components 3.23.0 → 3.23.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/es/dropdown.js +1 -1
- package/dist/components/es/navigation-item.js +1 -1
- package/dist/components/es/solid-components2.js +1 -1
- package/dist/components/es/step-group.js +1 -1
- package/dist/components/es/step.js +1 -1
- package/dist/components/es/tabbable.js +1 -1
- package/dist/components/umd/solid-components.js +4 -4
- package/dist/custom-elements.json +1 -1
- package/dist/package/components/dropdown/dropdown.d.ts +2 -1
- package/dist/package/components/dropdown/dropdown.js +37 -28
- package/dist/package/components/navigation-item/navigation-item.d.ts +1 -0
- package/dist/package/components/navigation-item/navigation-item.js +4 -1
- package/dist/package/components/step/step.js +6 -6
- package/dist/package/components/step-group/step-group.js +1 -1
- package/dist/package/internal/tabbable.js +1 -1
- package/dist/package/styles/tailwind.css.js +1 -1
- package/dist/versioned-components/es/accordion-group.js +1 -1
- package/dist/versioned-components/es/accordion.js +1 -1
- package/dist/versioned-components/es/audio.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/combobox.js +4 -4
- 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/optgroup.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 +4 -4
- package/dist/versioned-components/es/solid-components2.js +1 -1
- 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/tabbable.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/utils.js +1 -1
- 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/audio/audio.d.ts +1 -1
- package/dist/versioned-package/components/audio/audio.js +6 -6
- 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/combobox/combobox.d.ts +4 -4
- package/dist/versioned-package/components/combobox/combobox.js +26 -26
- package/dist/versioned-package/components/combobox/utils.js +2 -2
- 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 +3 -2
- package/dist/versioned-package/components/dropdown/dropdown.js +42 -33
- 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/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 +3 -3
- 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 +2 -1
- package/dist/versioned-package/components/navigation-item/navigation-item.js +9 -6
- 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/optgroup/optgroup.d.ts +2 -2
- package/dist/versioned-package/components/optgroup/optgroup.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 +29 -29
- 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 +8 -8
- package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
- package/dist/versioned-package/components/step-group/step-group.js +3 -3
- 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 +2 -2
- 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/internal/tabbable.js +1 -1
- package/dist/versioned-package/styles/headline/headline.css.js +1 -1
- package/dist/versioned-package/styles/tailwind.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 +49 -49
- package/dist/web-types.json +66 -56
- package/package.json +2 -2
@@ -51,7 +51,7 @@ let Fe=class extends Wt{constructor(){super(...arguments),this.renderOptions={ho
|
|
51
51
|
* Copyright 2021 Google LLC
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
53
53
|
*/
|
54
|
-
function Ve(t){return(e,i)=>{const{slot:o,selector:s}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return He(e,i,{get(){var e;const i=null==(e=this.renderRoot)?void 0:e.querySelector(r),o=(null==i?void 0:i.assignedElements(t))??[];return void 0===s?o:o.filter((t=>t.matches(s)))}})}}const qe=Ft`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`;function Ne(){let t,e="",i=0;for(;i<arguments.length;)(t=arguments[i++])&&"string"==typeof t&&(e&&(e+=" "),e+=t);return e}var Ke=Object.defineProperty,Ze=(t,e,i,o)=>{for(var s,r=void 0,a=t.length-1;a>=0;a--)(s=t[a])&&(r=s(e,i,r)||r);return r&&Ke(e,i,r),r};const Je=class extends Fe{emit(t,e){const i=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...e});return this.dispatchEvent(i),i}};Je.styles=Pt('/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:var(--sd-spacing-0,0)}.\\!right-0{right:var(--sd-spacing-0,0)!important}.-top-0{top:calc(var(--sd-spacing-0, 0px)*-1)}.-top-0\\.25{top:calc(var(--sd-spacing-0-25, 1px)*-1)}.-top-4{top:calc(var(--sd-spacing-4, 1rem)*-1)}.bottom-0{bottom:var(--sd-spacing-0,0)}.bottom-auto{bottom:var(--sd-spacing-auto,auto)}.end-0{inset-inline-end:var(--sd-spacing-0,0)}.end-auto{inset-inline-end:var(--sd-spacing-auto,auto)}.left-0{left:var(--sd-spacing-0,0)}.left-1\\/2{left:50%}.left-auto{left:var(--sd-spacing-auto,auto)}.right-0{right:var(--sd-spacing-0,0)}.right-2{right:var(--sd-spacing-2,.5rem)}.right-4{right:var(--sd-spacing-4,1rem)}.right-auto{right:var(--sd-spacing-auto,auto)}.start-0{inset-inline-start:var(--sd-spacing-0,0)}.start-auto{inset-inline-start:var(--sd-spacing-auto,auto)}.top-0{top:var(--sd-spacing-0,0)}.top-1{top:var(--sd-spacing-1,.25rem)}.top-1\\/2{top:50%}.top-2{top:var(--sd-spacing-2,.5rem)}.top-full{top:100%}.isolate{isolation:isolate}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-dialog{z-index:var(--sd-z-index-dialog,800)}.z-dropdown{z-index:var(--sd-z-index-dropdown,900)}.\\!m-0{margin:var(--sd-spacing-0,0)!important}.m-0{margin:var(--sd-spacing-0,0)}.m-2{margin:var(--sd-spacing-2,.5rem)}.m-4{margin:var(--sd-spacing-4,1rem)}.mx-\\[-1px\\]{margin-left:-1px;margin-right:-1px}.mx-auto{margin-left:var(--sd-spacing-auto,auto);margin-right:var(--sd-spacing-auto,auto)}.my-0{margin-bottom:var(--sd-spacing-0,0);margin-top:var(--sd-spacing-0,0)}.my-auto{margin-bottom:var(--sd-spacing-auto,auto);margin-top:var(--sd-spacing-auto,auto)}.\\!ml-6{margin-left:var(--sd-spacing-6,1.5rem)!important}.\\!mr-6{margin-right:var(--sd-spacing-6,1.5rem)!important}.mb-2{margin-bottom:var(--sd-spacing-2,.5rem)}.mb-4{margin-bottom:var(--sd-spacing-4,1rem)}.mb-6{margin-bottom:var(--sd-spacing-6,1.5rem)}.mb-auto{margin-bottom:var(--sd-spacing-auto,auto)}.ml-1{margin-left:var(--sd-spacing-1,.25rem)}.ml-2{margin-left:var(--sd-spacing-2,.5rem)}.ml-4{margin-left:var(--sd-spacing-4,1rem)}.ml-6{margin-left:var(--sd-spacing-6,1.5rem)}.ml-\\[0\\.25em\\]{margin-left:.25em}.ml-\\[0\\.5em\\]{margin-left:.5em}.ml-auto{margin-left:var(--sd-spacing-auto,auto)}.mr-1{margin-right:var(--sd-spacing-1,.25rem)}.mr-2{margin-right:var(--sd-spacing-2,.5rem)}.mr-4{margin-right:var(--sd-spacing-4,1rem)}.mr-6{margin-right:var(--sd-spacing-6,1.5rem)}.mr-\\[0\\.25em\\]{margin-right:.25em}.mr-\\[0\\.5em\\]{margin-right:.5em}.mt-0{margin-top:var(--sd-spacing-0,0)}.mt-0\\.25{margin-top:var(--sd-spacing-0-25,1px)}.mt-1{margin-top:var(--sd-spacing-1,.25rem)}.mt-2{margin-top:var(--sd-spacing-2,.5rem)}.mt-3{margin-top:var(--sd-spacing-3,.75rem)}.mt-4{margin-top:var(--sd-spacing-4,1rem)}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[2px\\]{margin-top:2px}.mt-\\[3px\\]{margin-top:3px}.mt-auto{margin-top:var(--sd-spacing-auto,auto)}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.\\!hidden{display:none!important}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.\\!h-full{height:100%!important}.h-0{height:var(--sd-spacing-0,0)}.h-0\\.25{height:var(--sd-spacing-0-25,1px)}.h-1{height:var(--sd-spacing-1,.25rem)}.h-10{height:var(--sd-spacing-10,2.5rem)}.h-12{height:var(--sd-spacing-12,3rem)}.h-16{height:var(--sd-spacing-16,4rem)}.h-2{height:var(--sd-spacing-2,.5rem)}.h-2\\.5{height:var(--sd-spacing-2-5,.625rem)}.h-3{height:var(--sd-spacing-3,.75rem)}.h-4{height:var(--sd-spacing-4,1rem)}.h-5{height:var(--sd-spacing-5,1.25rem)}.h-6{height:var(--sd-spacing-6,1.5rem)}.h-8{height:var(--sd-spacing-8,2rem)}.h-\\[0px\\]{height:0}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[48px\\]{height:48px}.h-\\[6px\\]{height:6px}.h-\\[96px\\]{height:96px}.h-\\[calc\\(100\\%-16px\\)\\]{height:calc(100% - 16px)}.h-\\[calc\\(100\\%-8px\\)\\]{height:calc(100% - 8px)}.h-full{height:100%}.h-varspacing{height:var(--tw-varspacing)}.max-h-full{max-height:100%}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[40px\\]{min-height:40px}.min-h-\\[48px\\]{min-height:48px}.\\!w-full{width:100%!important}.w-0{width:var(--sd-spacing-0,0)}.w-1{width:var(--sd-spacing-1,.25rem)}.w-12{width:var(--sd-spacing-12,3rem)}.w-16{width:var(--sd-spacing-16,4rem)}.w-2{width:var(--sd-spacing-2,.5rem)}.w-2\\.5{width:var(--sd-spacing-2-5,.625rem)}.w-3{width:var(--sd-spacing-3,.75rem)}.w-3\\/4{width:75%}.w-4{width:var(--sd-spacing-4,1rem)}.w-40{width:var(--sd-spacing-40,10rem)}.w-5{width:var(--sd-spacing-5,1.25rem)}.w-6{width:var(--sd-spacing-6,1.5rem)}.w-8{width:var(--sd-spacing-8,2rem)}.w-\\[--width\\]{width:var(--width)}.w-\\[1px\\]{width:1px}.w-\\[48px\\]{width:48px}.w-\\[6px\\]{width:6px}.w-\\[72px\\]{width:72px}.w-\\[96px\\]{width:96px}.w-auto{width:var(--sd-spacing-auto,auto)}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.w-varspacing{width:var(--tw-varspacing)}.min-w-0{min-width:var(--sd-spacing-0,0)}.min-w-2{min-width:var(--sd-spacing-2,.5rem)}.min-w-4{min-width:var(--sd-spacing-4,1rem)}.min-w-5{min-width:var(--sd-spacing-5,1.25rem)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-\\[0_0_auto\\]{flex:0 0 auto}.flex-auto{flex:1 1 auto}.flex-initial{flex:0 1 auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.basis-auto{flex-basis:var(--sd-spacing-auto,auto)}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.\\!-translate-x-1\\/2{--tw-translate-x:-50%!important}.\\!-translate-x-1\\/2,.\\!-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.\\!-translate-y-1\\/2{--tw-translate-y:-50%!important}.\\!translate-x-1\\/2{--tw-translate-x:50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-2{--tw-translate-x:calc(var(--sd-spacing-2, .5rem)*-1)}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x:var(--sd-spacing-2,.5rem)}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.rotate-45{--tw-rotate:45deg}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.rotate-\\[-90deg\\]{--tw-rotate:-90deg}.rotate-\\[-90deg\\],.rotate-\\[270deg\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-\\[270deg\\]{--tw-rotate:270deg}.scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}.scale-110,.scale-y-\\[1\\.5\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-\\[1\\.5\\]{--tw-scale-y:1.5}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce-once{0%{transform:translateY(0)}15%{transform:translateY(-9px)}25%{transform:translateY(-12px)}40%{transform:translateY(-4px)}50%{transform:translateY(0)}65%{transform:translateY(-4px)}75%{transform:translateY(-6px)}90%{transform:translateY(-2px)}to{transform:translateY(0)}}.animate-bounce-once{animation:bounce-once .6s ease-in-out}@keyframes grow{0%{width:0}to{width:100%}}.animate-grow{animation:grow linear}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.\\!cursor-not-allowed{cursor:not-allowed!important}.cursor-\\[inherit\\]{cursor:inherit}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-col{grid-auto-flow:column}.auto-rows-\\[100\\%\\]{grid-auto-rows:100%}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.\\!items-center{align-items:center!important}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.\\!justify-center{justify-content:center!important}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.justify-items-center{justify-items:center}.gap-0{gap:var(--sd-spacing-0,0)}.gap-0\\.5{gap:var(--sd-spacing-0-5,.125rem)}.gap-1{gap:var(--sd-spacing-1,.25rem)}.gap-2{gap:var(--sd-spacing-2,.5rem)}.gap-3{gap:var(--sd-spacing-3,.75rem)}.gap-4{gap:var(--sd-spacing-4,1rem)}.gap-6{gap:var(--sd-spacing-6,1.5rem)}.gap-8{gap:var(--sd-spacing-8,2rem)}.gap-x-\\[1px\\]{-moz-column-gap:1px;column-gap:1px}.self-start{align-self:flex-start}.self-center{align-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.overscroll-x-contain{overscroll-behavior-x:contain}.scroll-auto{scroll-behavior:auto}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.\\!rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)!important}.rounded-\\[4px_4px_0_0\\]{border-radius:4px 4px 0 0}.rounded-default{border-radius:var(--sd-border-radius-default,.25rem)}.rounded-full{border-radius:var(--sd-border-radius-full,9999px)}.rounded-md{border-radius:var(--sd-border-radius-md,.375rem)}.rounded-none{border-radius:var(--sd-border-radius-none,0)}.rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)}.rounded-b-default{border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-b-none{border-bottom-left-radius:var(--sd-border-radius-none,0);border-bottom-right-radius:var(--sd-border-radius-none,0)}.rounded-bl-default{border-bottom-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-bl-none{border-bottom-left-radius:var(--sd-border-radius-none,0)}.rounded-br-default{border-bottom-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-br-none{border-bottom-right-radius:var(--sd-border-radius-none,0)}.rounded-tl-default{border-top-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-tl-none{border-top-left-radius:var(--sd-border-radius-none,0)}.rounded-tr-default{border-top-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-tr-none{border-top-right-radius:var(--sd-border-radius-none,0)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-\\[0\\.25px\\]{border-width:.25px}.border-\\[1px\\]{border-width:1px}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-none{border-style:none}.border-accent{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-border-opacity))}.border-error{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-border-opacity))}.border-neutral-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity))}.border-neutral-500{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity))}.border-neutral-800{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity))}.border-primary-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-border-opacity))}.border-success{--tw-border-opacity:1;border-color:rgb(var(--sd-color-success,37 136 14)/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-border-opacity))}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.65\\)\\]{background-color:#000000a6}.bg-accent{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-bg-opacity))}.bg-accent-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-500,37 136 14)/var(--tw-bg-opacity))}.bg-error{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-bg-opacity))}.bg-info{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-info,21 130 213)/var(--tw-bg-opacity))}.bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity))}.bg-neutral-100\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-neutral-100,246 246 246)/.8)}.bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.bg-neutral-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity))}.bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-bg-opacity))}.bg-neutral-800\\/75{background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--sd-opacity-75,.75))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-bg-opacity))}.bg-primary-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity))}.bg-primary-100\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-primary-100,236 240 249)/.8)}.bg-primary-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity))}.bg-primary-800{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-bg-opacity))}.bg-primary\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-primary,0 53 142)/.8)}.bg-success{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-success,37 136 14)/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-warning,187 141 32)/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity))}.bg-white\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-white,255 255 255)/.8)}.bg-opacity-75{--tw-bg-opacity:var(--sd-opacity-75,.75)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.bg-none{background-image:none}.from-primary-800\\/60{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-60,.6)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-800\\/75{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-75,.75)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-800\\/\\[\\.6\\]{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/.6) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/60{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-60,.6)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/75{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-75,.75)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/90{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-90,.9)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/\\[\\.8\\]{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/.8) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-primary-800\\/60{--tw-gradient-to:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-60,.6)) var(--tw-gradient-to-position)}.to-primary-800\\/\\[\\.6\\]{--tw-gradient-to:rgb(var(--sd-color-primary-800,5 21 48)/.6) var(--tw-gradient-to-position)}.to-white\\/60{--tw-gradient-to:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-60,.6)) var(--tw-gradient-to-position)}.to-white\\/\\[\\.8\\]{--tw-gradient-to:rgb(var(--sd-color-white,255 255 255)/.8) var(--tw-gradient-to-position)}.to-40\\%{--tw-gradient-to-position:40%}.to-60\\%{--tw-gradient-to-position:60%}.fill-accent{fill:rgb(var(--sd-color-accent,45 157 0)/1)}.fill-accent-550{fill:rgb(var(--sd-color-accent-550,54 123 40)/1)}.fill-accent-700{fill:rgb(var(--sd-color-accent-700,33 87 37)/1)}.fill-neutral-100{fill:rgb(var(--sd-color-neutral-100,246 246 246)/1)}.fill-primary{fill:rgb(var(--sd-color-primary,0 53 142)/1)}.fill-primary-100{fill:rgb(var(--sd-color-primary-100,236 240 249)/1)}.fill-primary-200{fill:rgb(var(--sd-color-primary-200,224 233 243)/1)}.fill-primary-500{fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.fill-transparent{fill:transparent}.fill-white{fill:rgb(var(--sd-color-white,255 255 255)/1)}.p-0{padding:var(--sd-spacing-0,0)}.p-1{padding:var(--sd-spacing-1,.25rem)}.p-4{padding:var(--sd-spacing-4,1rem)}.px-0{padding-left:var(--sd-spacing-0,0);padding-right:var(--sd-spacing-0,0)}.px-1{padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}.px-10{padding-left:var(--sd-spacing-10,2.5rem);padding-right:var(--sd-spacing-10,2.5rem)}.px-12{padding-left:var(--sd-spacing-12,3rem);padding-right:var(--sd-spacing-12,3rem)}.px-2{padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}.px-3{padding-left:var(--sd-spacing-3,.75rem);padding-right:var(--sd-spacing-3,.75rem)}.px-4{padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem)}.px-6{padding-left:var(--sd-spacing-6,1.5rem);padding-right:var(--sd-spacing-6,1.5rem)}.py-0{padding-bottom:var(--sd-spacing-0,0);padding-top:var(--sd-spacing-0,0)}.py-1{padding-bottom:var(--sd-spacing-1,.25rem);padding-top:var(--sd-spacing-1,.25rem)}.py-2{padding-bottom:var(--sd-spacing-2,.5rem);padding-top:var(--sd-spacing-2,.5rem)}.py-3{padding-bottom:var(--sd-spacing-3,.75rem);padding-top:var(--sd-spacing-3,.75rem)}.py-4{padding-bottom:var(--sd-spacing-4,1rem);padding-top:var(--sd-spacing-4,1rem)}.py-6{padding-bottom:var(--sd-spacing-6,1.5rem);padding-top:var(--sd-spacing-6,1.5rem)}.py-8{padding-bottom:var(--sd-spacing-8,2rem);padding-top:var(--sd-spacing-8,2rem)}.py-\\[5px\\]{padding-bottom:5px;padding-top:5px}.pb-1{padding-bottom:var(--sd-spacing-1,.25rem)}.pb-2{padding-bottom:var(--sd-spacing-2,.5rem)}.pb-3{padding-bottom:var(--sd-spacing-3,.75rem)}.pb-4{padding-bottom:var(--sd-spacing-4,1rem)}.pl-3{padding-left:var(--sd-spacing-3,.75rem)}.pl-4{padding-left:var(--sd-spacing-4,1rem)}.pl-8{padding-left:var(--sd-spacing-8,2rem)}.pr-2{padding-right:var(--sd-spacing-2,.5rem)}.pr-3{padding-right:var(--sd-spacing-3,.75rem)}.pr-4{padding-right:var(--sd-spacing-4,1rem)}.pt-0{padding-top:var(--sd-spacing-0,0)}.pt-1{padding-top:var(--sd-spacing-1,.25rem)}.pt-2{padding-top:var(--sd-spacing-2,.5rem)}.pt-3{padding-top:var(--sd-spacing-3,.75rem)}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.\\!text-base{font-size:var(--sd-font-size-base,1rem)!important}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[2rem\\]{font-size:2rem}.text-\\[4rem\\]{font-size:4rem}.text-base{font-size:var(--sd-font-size-base,1rem)}.text-lg{font-size:var(--sd-font-size-lg,1.25rem)}.text-sm{font-size:var(--sd-font-size-sm,.875rem)}.text-xl{font-size:var(--sd-font-size-xl,1.5rem)}.\\!font-bold{font-weight:700!important}.font-bold{font-weight:700}.font-normal{font-weight:400}.lowercase{text-transform:lowercase}.leading-\\[0\\]{line-height:0}.leading-\\[calc\\(var\\(--tw-varspacing\\)-2px\\)\\]{line-height:calc(var(--tw-varspacing) - 2px)}.leading-none{line-height:var(--sd-line-height-none,100%)}.leading-normal{line-height:var(--sd-line-height-normal,150%)}.leading-tight{line-height:var(--sd-line-height-tight,120%)}.\\!text-neutral-500{--tw-text-opacity:1!important;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity))!important}.\\!text-primary{--tw-text-opacity:1!important;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))!important}.text-black{--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.text-error{--tw-text-opacity:1;color:rgb(var(--sd-color-error,204 25 55)/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-neutral-500{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity))}.text-neutral-600{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}.text-primary-400{--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity))}.text-success{--tw-text-opacity:1;color:rgb(var(--sd-color-success,37 136 14)/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.\\!underline{text-decoration-line:underline!important}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.\\!underline-offset-2{text-underline-offset:2px!important}.underline-offset-2{text-underline-offset:2px}.placeholder-black::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-placeholder-opacity))}.placeholder-black::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-placeholder-opacity))}.placeholder-neutral-700::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity))}.placeholder-neutral-700::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity))}.opacity-0{opacity:var(--sd-opacity-0,0)}.opacity-100{opacity:var(--sd-opacity-100,1)}.opacity-20{opacity:var(--sd-opacity-20,.2)}.opacity-50{opacity:var(--sd-opacity-50,.5)}.opacity-90{opacity:var(--sd-opacity-90,.9)}.shadow{--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(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)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-dotted{outline-style:dotted}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.\\!-outline-offset-2{outline-offset:-2px!important}.\\!outline-offset-0{outline-offset:0!important}.outline-offset-2{outline-offset:2px}.outline-error{outline-color:rgb(var(--sd-color-error,204 25 55)/1)}.outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.varspacing-10{--tw-varspacing:var(--sd-spacing-10,2.5rem)}.varspacing-12{--tw-varspacing:var(--sd-spacing-12,3rem)}.varspacing-8{--tw-varspacing:var(--sd-spacing-8,2rem)}.focus-within\\:focus-outline:focus-within{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-within\\:focus-outline-inverted:focus-within{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline:focus-visible{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline-inverted:focus-visible{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.\\*\\:drop-shadow-md>*{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus\\:outline-offset-2:focus{outline-offset:2px}.focus\\:outline-primary:focus{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:border-neutral-500:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity))}.disabled\\:border-neutral-600:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-border-opacity))}.disabled\\:bg-neutral-500:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity))}.disabled\\:bg-neutral-600:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-bg-opacity))}.disabled\\:text-neutral-500:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity))}.disabled\\:text-neutral-600:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity))}.disabled\\:text-white:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.group:hover .group-hover\\:visible{visibility:visible}.group:hover .group-hover\\:top-0{top:var(--sd-spacing-0,0)}.group:hover .group-hover\\:h-full{height:100%}.group:hover .group-hover\\:w-full{width:100%}.group:hover .group-hover\\:cursor-pointer{cursor:pointer}.group:hover .group-hover\\:border-accent-550{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity))}.group:hover .group-hover\\:border-error-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity))}.group:hover .group-hover\\:border-primary-500{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-border-opacity))}.group:hover .group-hover\\:bg-accent-550{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-error-400{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-neutral-100\\/90{background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-primary-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-primary-100\\/90{background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-primary\\/90{background-color:rgb(var(--sd-color-primary,0 53 142)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-white\\/90{background-color:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:fill-primary-500{fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.group:hover .group-hover\\:\\!text-primary-500{--tw-text-opacity:1!important;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity))!important}.group:hover .group-hover\\:text-primary-500{--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity))}.group:focus-visible .group-focus-visible\\:outline{outline-style:solid}.peer:focus-visible~.peer-focus-visible\\:outline{outline-style:solid}.peer:focus-visible~.peer-focus-visible\\:outline-2{outline-width:2px}.peer:focus-visible~.peer-focus-visible\\:outline-offset-2{outline-offset:2px}.peer:focus-visible~.peer-focus-visible\\:outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.hover\\:scale-110:hover:not([disabled]){--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-not-allowed:hover:not([disabled]){cursor:not-allowed}.hover\\:cursor-pointer:hover:not([disabled]){cursor:pointer}.hover\\:border-accent-550:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity))}.hover\\:border-error-400:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity))}.hover\\:border-primary-100:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-border-opacity))}.hover\\:border-primary-500:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-border-opacity))}.hover\\:bg-accent-300:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-300,108 194 84)/var(--tw-bg-opacity))}.hover\\:bg-accent-550:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity))}.hover\\:bg-error-400:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity))}.hover\\:bg-neutral-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity))}.hover\\:bg-neutral-200:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.hover\\:bg-primary-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity))}.hover\\:bg-primary-500:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity))}.hover\\:bg-transparent:hover:not([disabled]){background-color:transparent}.hover\\:fill-accent-550:hover:not([disabled]){fill:rgb(var(--sd-color-accent-550,54 123 40)/1)}.hover\\:fill-primary-100:hover:not([disabled]){fill:rgb(var(--sd-color-primary-100,236 240 249)/1)}.hover\\:fill-primary-500:hover:not([disabled]){fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.hover\\:text-primary-100:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-text-opacity))}.hover\\:text-primary-200:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity))}.hover\\:text-primary-500:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity))}.active\\:border-primary-200:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-border-opacity))}.active\\:border-primary-800:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-border-opacity))}.active\\:bg-accent-700:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-700,33 87 37)/var(--tw-bg-opacity))}.active\\:bg-primary-200:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-bg-opacity))}.active\\:bg-primary-800:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-bg-opacity))}.active\\:fill-accent-700:active:not([disabled]){fill:rgb(var(--sd-color-accent-700,33 87 37)/1)}.active\\:text-primary-200:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity))}.active\\:text-primary-400:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity))}.active\\:text-primary-800:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-text-opacity))}@media (min-width:640px){.sm\\:mt-2{margin-top:var(--sd-spacing-2,.5rem)}.sm\\:flex-col{flex-direction:column}.sm\\:gap-4{gap:var(--sd-spacing-4,1rem)}.sm\\:self-center{align-self:center}.sm\\:p-6{padding:var(--sd-spacing-6,1.5rem)}.sm\\:px-10{padding-left:var(--sd-spacing-10,2.5rem);padding-right:var(--sd-spacing-10,2.5rem)}.sm\\:py-8{padding-top:var(--sd-spacing-8,2rem)}.sm\\:pb-8,.sm\\:py-8{padding-bottom:var(--sd-spacing-8,2rem)}.sm\\:text-center{text-align:center}.sm\\:text-3xl{font-size:var(--sd-font-size-3xl,2rem)}.sm\\:text-4xl{font-size:var(--sd-font-size-4xl,2.5rem)}.sm\\:leading-tight{line-height:var(--sd-line-height-tight,120%)}}@media (min-width:768px){.md\\:block{display:block}.md\\:\\[transition\\:_height_0\\.2s_linear\\,opacity_0\\.1s_linear_0\\.1s\\]{transition:height .2s linear,opacity .1s linear .1s}.group:hover .md\\:group-hover\\:visible{visibility:visible}.group:hover .md\\:group-hover\\:my-4{margin-bottom:var(--sd-spacing-4,1rem);margin-top:var(--sd-spacing-4,1rem)}.group:hover .md\\:group-hover\\:h-auto{height:var(--sd-spacing-auto,auto)}.group:hover .md\\:group-hover\\:opacity-\\[100\\%\\]{opacity:100%}}');let We=Je;Ze([Ue()],We.prototype,"dir"),Ze([Ue()],We.prototype,"lang");var _e=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,ti=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Xe(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&_e(e,i,r),r};let ei=class extends We{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver((t=>this.handleCurrentPlacementChange(t))),this.mutationObserver.observe(this,{attributes:!0})}handleCurrentPlacementChange(t){return t.forEach((t=>{if("data-current-placement"===t.attributeName){const t=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:t})}}))}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=function(t,e,i,o){void 0===o&&(o={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:n="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,d=ct(t),h=s||r?[...d?dt(d):[],...dt(e)]:[];h.forEach((t=>{s&&t.addEventListener("scroll",i,{passive:!0}),r&&t.addEventListener("resize",i)}));const c=d&&n?function(t,e){let i,o=null;const s=Z(t);function r(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}return function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),r();const{left:d,top:h,width:c,height:p}=t.getBoundingClientRect();if(n||e(),!c||!p)return;const u={rootMargin:-B(h)+"px "+-B(s.clientWidth-(d+c))+"px "+-B(s.clientHeight-(h+p))+"px "+-B(d)+"px",threshold:I(0,E(1,l))||1};let g=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!g)return a();e?a(!1,e):i=setTimeout((()=>{a(!1,1e-7)}),1e3)}g=!1}try{o=new IntersectionObserver(m,{...u,root:s.ownerDocument})}catch{o=new IntersectionObserver(m,u)}o.observe(t)}(!0),r}(d,i):null;let p=-1,u=null;a&&(u=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&u&&(u.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=u)||t.observe(e)}))),i()})),d&&!l&&u.observe(d),u.observe(e));let g,m=l?mt(t):null;return l&&function e(){const o=mt(t);m&&(o.x!==m.x||o.y!==m.y||o.width!==m.width||o.height!==m.height)&&i(),m=o,g=requestAnimationFrame(e)}(),i(),()=>{var t;h.forEach((t=>{s&&t.removeEventListener("scroll",i),r&&t.removeEventListener("resize",i)})),null==c||c(),null==(t=u)||t.disconnect(),u=null,l&&cancelAnimationFrame(g)}}(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const t=[It({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Ot({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,i="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=i?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var i,o;const{placement:s,middlewareData:r,rects:a,initialPlacement:n,platform:l,elements:d}=e,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=P(t,e);if(null!=(i=r.arrow)&&i.alignmentOffset)return{};const v=F(s),y=F(n)===n,f=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=p||(y||!m?[H(n)]:function(t){const e=H(t);return[Y(t),e,Y(e)]}(n));!p&&"none"!==g&&w.push(...function(t,e,i,o){const s=j(t);let r=function(t,e,i){const o=["left","right"],s=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return i?e?s:o:e?o:s;case"left":case"right":return e?r:a;default:return[]}}(F(t),"start"===i,o);return s&&(r=r.map((t=>t+"-"+s)),e&&(r=r.concat(r.map(Y)))),r}(n,m,g,f));const A=[n,...w],x=await q(e,b),k=[];let C=(null==(o=r.flip)?void 0:o.overflows)||[];if(h&&k.push(x[v]),c){const t=function(t,e,i){void 0===i&&(i=!1);const o=j(t),s=U(t),r=Q(s);let a="x"===s?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=H(a)),[a,H(a)]}(s,a,f);k.push(x[t[0]],x[t[1]])}if(C=[...C,{placement:s,overflows:k}],!k.every((t=>t<=0))){var S,E;const t=((null==(S=r.flip)?void 0:S.index)||0)+1,e=A[t];if(e)return{data:{index:t,overflows:C},reset:{placement:e}};let i=null==(E=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:E.placement;if(!i)switch(u){case"bestFit":{var I;const t=null==(I=C.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:I[0];t&&(i=t);break}case"initialPlacement":i=n}if(s!==i)return{reset:{placement:i}}}return{}}}}({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:s}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:n={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=P(t,e),d={x:i,y:o},h=await q(e,l),c=R(F(s)),p=L(c);let u=d[p],g=d[c];if(r){const t="y"===p?"bottom":"right";u=T(u+h["y"===p?"top":"left"],u,u-h[t])}if(a){const t="y"===c?"bottom":"right";g=T(g+h["y"===c?"top":"left"],g,g-h[t])}const m=n.fn({...e,[p]:u,[c]:g});return{...m,data:{x:m.x-i,y:m.y-o}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Ot({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:i,y:o,placement:s,rects:r,platform:a,elements:n,middlewareData:l}=e,{element:d,padding:h=0}=P(t,e)||{};if(null==d)return{};const c=$(h),p={x:i,y:o},u=U(s),g=Q(u),m=await a.getDimensions(d),b="y"===u,v=b?"top":"left",y=b?"bottom":"right",f=b?"clientHeight":"clientWidth",w=r.reference[g]+r.reference[u]-p[u]-r.floating[g],A=p[u]-r.reference[u],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d));let k=x?x[f]:0;(!k||!await(null==a.isElement?void 0:a.isElement(x)))&&(k=n.floating[f]||r.floating[g]);const C=w/2-A/2,S=k/2-m[g]/2-1,I=E(c[v],S),O=E(c[y],S),B=I,D=k-m[g]-O,M=k/2-m[g]/2+C,z=T(B,M,D),F=!l.arrow&&null!=j(s)&&M!==z&&r.reference[g]/2-(M<B?I:O)-m[g]/2<0,L=F?M<B?M-B:M-D:0;return{[u]:p[u]+L,data:{[u]:z,centerOffset:M-z-L,...F&&{alignmentOffset:L}},reset:F}}}))({element:this.arrowEl,padding:this.arrowPadding})),((t,e,i)=>{const o=new Map,s={platform:Et,...i},r={...s.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:s="absolute",middleware:r=[],platform:a}=i,n=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let d=await a.getElementRects({reference:t,floating:e,strategy:s}),{x:h,y:c}=V(d,o,l),p=o,u={},g=0;for(let i=0;i<n.length;i++){const{name:r,fn:m}=n[i],{x:b,y:v,data:y,reset:f}=await m({x:h,y:c,initialPlacement:o,placement:p,strategy:s,middlewareData:u,rects:d,platform:a,elements:{reference:t,floating:e}});h=b??h,c=v??c,u={...u,[r]:{...u[r],...y}},f&&g<=50&&(g++,"object"==typeof f&&(f.placement&&(p=f.placement),f.rects&&(d=!0===f.rects?await a.getElementRects({reference:t,floating:e,strategy:s}):f.rects),({x:h,y:c}=V(d,p,l))),i=-1)}return{x:h,y:c,placement:p,strategy:s,middlewareData:u}})(t,e,{...s,platform:r})})(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then((({x:t,y:e,middlewareData:i,placement:o})=>{const s="rtl"===getComputedStyle(this).direction,r={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]];if(this.setAttribute("data-current-placement",o),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=i.arrow.x,e=i.arrow.y;let o="",a="",n="",l="";if("start"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";o="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=s?i:"",l=s?"":i}else if("end"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=s?"":i,l=s?i:"",n="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",o="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",o="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:o,right:a,bottom:n,left:l,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("sd-reposition")}render(){return ye`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${Ne("isolate","fixed"!==this.strategy?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?ye`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};ei.styles=[We.styles,qe,Ft`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * 0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],ti([$e('[part="popup"]')],ei.prototype,"popup",2),ti([$e('[part="arrow"]')],ei.prototype,"arrowEl",2),ti([Ue()],ei.prototype,"anchor",2),ti([Ue({type:Boolean,reflect:!0})],ei.prototype,"active",2),ti([Ue({reflect:!0})],ei.prototype,"placement",2),ti([Ue({reflect:!0})],ei.prototype,"strategy",2),ti([Ue({type:Number})],ei.prototype,"distance",2),ti([Ue({type:Number})],ei.prototype,"skidding",2),ti([Ue({type:Boolean})],ei.prototype,"arrow",2),ti([Ue({attribute:"arrow-placement"})],ei.prototype,"arrowPlacement",2),ti([Ue({attribute:"arrow-padding",type:Number})],ei.prototype,"arrowPadding",2),ti([Ue({type:Boolean})],ei.prototype,"flip",2),ti([Ue({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],ei.prototype,"flipFallbackPlacements",2),ti([Ue({attribute:"flip-fallback-strategy"})],ei.prototype,"flipFallbackStrategy",2),ti([Ue({type:Object})],ei.prototype,"flipBoundary",2),ti([Ue({attribute:"flip-padding",type:Number})],ei.prototype,"flipPadding",2),ti([Ue({type:Boolean})],ei.prototype,"shift",2),ti([Ue({type:Object})],ei.prototype,"shiftBoundary",2),ti([Ue({attribute:"shift-padding",type:Number})],ei.prototype,"shiftPadding",2),ti([Ue({attribute:"auto-size"})],ei.prototype,"autoSize",2),ti([Ue()],ei.prototype,"sync",2),ti([Ue({type:Object})],ei.prototype,"autoSizeBoundary",2),ti([Ue({attribute:"auto-size-padding",type:Number})],ei.prototype,"autoSizePadding",2),ei=ti([Le("sd-popup")],ei);const ii=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ei}},Symbol.toStringTag,{value:"Module"})),oi=Object.assign({"./components/accordion-group/accordion-group.ts":()=>Promise.resolve().then((()=>$i)),"./components/accordion/accordion.ts":()=>Promise.resolve().then((()=>Qi)),"./components/audio/audio.ts":()=>Promise.resolve().then((()=>_i)),"./components/audio/base64Audio.ts":()=>Promise.resolve().then((()=>Xi)),"./components/audio/wave.ts":()=>Promise.resolve().then((()=>qi)),"./components/badge/badge.ts":()=>Promise.resolve().then((()=>so)),"./components/brandshape/brandshape.ts":()=>Promise.resolve().then((()=>ho)),"./components/button/button.ts":()=>Promise.resolve().then((()=>Fo)),"./components/carousel-item/carousel-item.ts":()=>Promise.resolve().then((()=>Lo)),"./components/carousel/autoplay-controller.ts":()=>Promise.resolve().then((()=>Ro)),"./components/carousel/carousel.ts":()=>Promise.resolve().then((()=>Jo)),"./components/carousel/scroll-controller.ts":()=>Promise.resolve().then((()=>Vo)),"./components/checkbox-group/checkbox-group.ts":()=>Promise.resolve().then((()=>es)),"./components/checkbox/checkbox.ts":()=>Promise.resolve().then((()=>hs)),"./components/combobox/combobox.ts":()=>Promise.resolve().then((()=>Ts)),"./components/combobox/option-renderer.ts":()=>Promise.resolve().then((()=>ps)),"./components/combobox/utils.ts":()=>Promise.resolve().then((()=>fs)),"./components/dialog/dialog.ts":()=>Promise.resolve().then((()=>Hs)),"./components/divider/divider.ts":()=>Promise.resolve().then((()=>Ns)),"./components/drawer/drawer.ts":()=>Promise.resolve().then((()=>Xs)),"./components/dropdown/dropdown.ts":()=>Promise.resolve().then((()=>sr)),"./components/expandable/expandable.ts":()=>Promise.resolve().then((()=>dr)),"./components/flipcard/flipcard.ts":()=>Promise.resolve().then((()=>gr)),"./components/header/header.ts":()=>Promise.resolve().then((()=>fr)),"./components/icon/icon.ts":()=>Promise.resolve().then((()=>xi)),"./components/icon/library.default.ts":()=>Promise.resolve().then((()=>s)),"./components/icon/library.system.ts":()=>Promise.resolve().then((()=>n)),"./components/icon/library.ts":()=>Promise.resolve().then((()=>m)),"./components/icon/request.ts":()=>Promise.resolve().then((()=>di)),"./components/include/include.ts":()=>Promise.resolve().then((()=>Cr)),"./components/include/request.ts":()=>Promise.resolve().then((()=>ai)),"./components/input/input.ts":()=>Promise.resolve().then((()=>Qr)),"./components/link/link.ts":()=>Promise.resolve().then((()=>$r)),"./components/map-marker/map-marker.ts":()=>Promise.resolve().then((()=>Kr)),"./components/navigation-item/navigation-item.ts":()=>Promise.resolve().then((()=>Xr)),"./components/notification/notification.ts":()=>Promise.resolve().then((()=>aa)),"./components/optgroup/optgroup.ts":()=>Promise.resolve().then((()=>ca)),"./components/option/option.ts":()=>Promise.resolve().then((()=>ba)),"./components/popup/popup.ts":()=>Promise.resolve().then((()=>ii)),"./components/quickfact/quickfact.ts":()=>Promise.resolve().then((()=>Aa)),"./components/radio-button/radio-button.ts":()=>Promise.resolve().then((()=>Ea)),"./components/radio-group/radio-group.ts":()=>Promise.resolve().then((()=>Ha)),"./components/radio/radio.ts":()=>Promise.resolve().then((()=>La)),"./components/scrollable/scrollable.ts":()=>Promise.resolve().then((()=>Na)),"./components/select/select.ts":()=>Promise.resolve().then((()=>_a)),"./components/spinner/spinner.ts":()=>Promise.resolve().then((()=>mo)),"./components/step-group/step-group.ts":()=>Promise.resolve().then((()=>sn)),"./components/step/step.ts":()=>Promise.resolve().then((()=>dn)),"./components/switch/switch.ts":()=>Promise.resolve().then((()=>gn)),"./components/tab-group/tab-group.ts":()=>Promise.resolve().then((()=>fn)),"./components/tab-panel/tab-panel.ts":()=>Promise.resolve().then((()=>Sn)),"./components/tab/tab.ts":()=>Promise.resolve().then((()=>Mn)),"./components/tag/tag.ts":()=>Promise.resolve().then((()=>Os)),"./components/teaser-media/teaser-media.ts":()=>Promise.resolve().then((()=>jn)),"./components/teaser/teaser.ts":()=>Promise.resolve().then((()=>Yn)),"./components/textarea/textarea.ts":()=>Promise.resolve().then((()=>qn)),"./components/tooltip/tooltip.ts":()=>Promise.resolve().then((()=>Wn)),"./components/video/video.ts":()=>Promise.resolve().then((()=>il))});Object.keys(oi).forEach((t=>{oi[t]()}));const si=new Map;function ri(t,e="cors"){if(si.has(t))return si.get(t);const i=fetch(t,{mode:e}).then((async t=>({ok:t.ok,status:t.status,html:await t.text()})));return si.set(t,i),i}const ai=Object.freeze(Object.defineProperty({__proto__:null,requestInclude:ri},Symbol.toStringTag,{value:"Module"})),ni=new Map;async function li(t){if(ni.has(t))return ni.get(t);const e=await ri(t),i={ok:e.ok,status:e.status,svg:null};if(e.ok){const t=document.createElement("div");t.innerHTML=e.html;const o=t.firstElementChild;i.svg="svg"===(null==o?void 0:o.tagName.toLowerCase())?o.outerHTML:""}return ni.set(t,i),i}const di=Object.freeze(Object.defineProperty({__proto__:null,requestIcon:li},Symbol.toStringTag,{value:"Module"})),hi=t=>(...e)=>({_$litDirective$:t,values:e});
|
54
|
+
function Ve(t){return(e,i)=>{const{slot:o,selector:s}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return He(e,i,{get(){var e;const i=null==(e=this.renderRoot)?void 0:e.querySelector(r),o=(null==i?void 0:i.assignedElements(t))??[];return void 0===s?o:o.filter((t=>t.matches(s)))}})}}const qe=Ft`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`;function Ne(){let t,e="",i=0;for(;i<arguments.length;)(t=arguments[i++])&&"string"==typeof t&&(e&&(e+=" "),e+=t);return e}var Ke=Object.defineProperty,Ze=(t,e,i,o)=>{for(var s,r=void 0,a=t.length-1;a>=0;a--)(s=t[a])&&(r=s(e,i,r)||r);return r&&Ke(e,i,r),r};const Je=class extends Fe{emit(t,e){const i=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...e});return this.dispatchEvent(i),i}};Je.styles=Pt('/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:var(--sd-spacing-0,0)}.\\!right-0{right:var(--sd-spacing-0,0)!important}.-top-0{top:calc(var(--sd-spacing-0, 0px)*-1)}.-top-0\\.25{top:calc(var(--sd-spacing-0-25, 1px)*-1)}.-top-4{top:calc(var(--sd-spacing-4, 1rem)*-1)}.bottom-0{bottom:var(--sd-spacing-0,0)}.bottom-auto{bottom:var(--sd-spacing-auto,auto)}.end-0{inset-inline-end:var(--sd-spacing-0,0)}.end-auto{inset-inline-end:var(--sd-spacing-auto,auto)}.left-0{left:var(--sd-spacing-0,0)}.left-1\\/2{left:50%}.left-auto{left:var(--sd-spacing-auto,auto)}.right-0{right:var(--sd-spacing-0,0)}.right-2{right:var(--sd-spacing-2,.5rem)}.right-4{right:var(--sd-spacing-4,1rem)}.right-auto{right:var(--sd-spacing-auto,auto)}.start-0{inset-inline-start:var(--sd-spacing-0,0)}.start-auto{inset-inline-start:var(--sd-spacing-auto,auto)}.top-0{top:var(--sd-spacing-0,0)}.top-1{top:var(--sd-spacing-1,.25rem)}.top-1\\/2{top:50%}.top-2{top:var(--sd-spacing-2,.5rem)}.top-full{top:100%}.isolate{isolation:isolate}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-dialog{z-index:var(--sd-z-index-dialog,800)}.z-dropdown{z-index:var(--sd-z-index-dropdown,900)}.\\!m-0{margin:var(--sd-spacing-0,0)!important}.m-0{margin:var(--sd-spacing-0,0)}.m-2{margin:var(--sd-spacing-2,.5rem)}.m-4{margin:var(--sd-spacing-4,1rem)}.mx-\\[-1px\\]{margin-left:-1px;margin-right:-1px}.mx-auto{margin-left:var(--sd-spacing-auto,auto);margin-right:var(--sd-spacing-auto,auto)}.my-0{margin-bottom:var(--sd-spacing-0,0);margin-top:var(--sd-spacing-0,0)}.my-auto{margin-bottom:var(--sd-spacing-auto,auto);margin-top:var(--sd-spacing-auto,auto)}.\\!ml-6{margin-left:var(--sd-spacing-6,1.5rem)!important}.\\!mr-6{margin-right:var(--sd-spacing-6,1.5rem)!important}.mb-2{margin-bottom:var(--sd-spacing-2,.5rem)}.mb-4{margin-bottom:var(--sd-spacing-4,1rem)}.mb-6{margin-bottom:var(--sd-spacing-6,1.5rem)}.mb-auto{margin-bottom:var(--sd-spacing-auto,auto)}.ml-1{margin-left:var(--sd-spacing-1,.25rem)}.ml-2{margin-left:var(--sd-spacing-2,.5rem)}.ml-3{margin-left:var(--sd-spacing-3,.75rem)}.ml-4{margin-left:var(--sd-spacing-4,1rem)}.ml-6{margin-left:var(--sd-spacing-6,1.5rem)}.ml-\\[0\\.25em\\]{margin-left:.25em}.ml-\\[0\\.5em\\]{margin-left:.5em}.ml-auto{margin-left:var(--sd-spacing-auto,auto)}.mr-1{margin-right:var(--sd-spacing-1,.25rem)}.mr-2{margin-right:var(--sd-spacing-2,.5rem)}.mr-4{margin-right:var(--sd-spacing-4,1rem)}.mr-6{margin-right:var(--sd-spacing-6,1.5rem)}.mr-\\[0\\.25em\\]{margin-right:.25em}.mr-\\[0\\.5em\\]{margin-right:.5em}.mt-0{margin-top:var(--sd-spacing-0,0)}.mt-0\\.25{margin-top:var(--sd-spacing-0-25,1px)}.mt-1{margin-top:var(--sd-spacing-1,.25rem)}.mt-2{margin-top:var(--sd-spacing-2,.5rem)}.mt-3{margin-top:var(--sd-spacing-3,.75rem)}.mt-4{margin-top:var(--sd-spacing-4,1rem)}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[2px\\]{margin-top:2px}.mt-\\[3px\\]{margin-top:3px}.mt-auto{margin-top:var(--sd-spacing-auto,auto)}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.\\!hidden{display:none!important}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.\\!h-full{height:100%!important}.h-0{height:var(--sd-spacing-0,0)}.h-0\\.25{height:var(--sd-spacing-0-25,1px)}.h-1{height:var(--sd-spacing-1,.25rem)}.h-10{height:var(--sd-spacing-10,2.5rem)}.h-12{height:var(--sd-spacing-12,3rem)}.h-16{height:var(--sd-spacing-16,4rem)}.h-2{height:var(--sd-spacing-2,.5rem)}.h-2\\.5{height:var(--sd-spacing-2-5,.625rem)}.h-3{height:var(--sd-spacing-3,.75rem)}.h-4{height:var(--sd-spacing-4,1rem)}.h-5{height:var(--sd-spacing-5,1.25rem)}.h-6{height:var(--sd-spacing-6,1.5rem)}.h-8{height:var(--sd-spacing-8,2rem)}.h-\\[0px\\]{height:0}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[48px\\]{height:48px}.h-\\[6px\\]{height:6px}.h-\\[96px\\]{height:96px}.h-\\[calc\\(100\\%-16px\\)\\]{height:calc(100% - 16px)}.h-\\[calc\\(100\\%-8px\\)\\]{height:calc(100% - 8px)}.h-full{height:100%}.h-varspacing{height:var(--tw-varspacing)}.max-h-full{max-height:100%}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[40px\\]{min-height:40px}.min-h-\\[48px\\]{min-height:48px}.\\!w-full{width:100%!important}.w-0{width:var(--sd-spacing-0,0)}.w-1{width:var(--sd-spacing-1,.25rem)}.w-12{width:var(--sd-spacing-12,3rem)}.w-16{width:var(--sd-spacing-16,4rem)}.w-2{width:var(--sd-spacing-2,.5rem)}.w-2\\.5{width:var(--sd-spacing-2-5,.625rem)}.w-3{width:var(--sd-spacing-3,.75rem)}.w-3\\/4{width:75%}.w-4{width:var(--sd-spacing-4,1rem)}.w-40{width:var(--sd-spacing-40,10rem)}.w-5{width:var(--sd-spacing-5,1.25rem)}.w-6{width:var(--sd-spacing-6,1.5rem)}.w-8{width:var(--sd-spacing-8,2rem)}.w-\\[--width\\]{width:var(--width)}.w-\\[1px\\]{width:1px}.w-\\[48px\\]{width:48px}.w-\\[6px\\]{width:6px}.w-\\[72px\\]{width:72px}.w-\\[96px\\]{width:96px}.w-auto{width:var(--sd-spacing-auto,auto)}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.w-varspacing{width:var(--tw-varspacing)}.min-w-0{min-width:var(--sd-spacing-0,0)}.min-w-2{min-width:var(--sd-spacing-2,.5rem)}.min-w-4{min-width:var(--sd-spacing-4,1rem)}.min-w-5{min-width:var(--sd-spacing-5,1.25rem)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-\\[0_0_auto\\]{flex:0 0 auto}.flex-auto{flex:1 1 auto}.flex-initial{flex:0 1 auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.basis-auto{flex-basis:var(--sd-spacing-auto,auto)}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.\\!-translate-x-1\\/2{--tw-translate-x:-50%!important}.\\!-translate-x-1\\/2,.\\!-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.\\!-translate-y-1\\/2{--tw-translate-y:-50%!important}.\\!translate-x-1\\/2{--tw-translate-x:50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-2{--tw-translate-x:calc(var(--sd-spacing-2, .5rem)*-1)}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x:var(--sd-spacing-2,.5rem)}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.rotate-45{--tw-rotate:45deg}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.rotate-\\[-90deg\\]{--tw-rotate:-90deg}.rotate-\\[-90deg\\],.rotate-\\[270deg\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-\\[270deg\\]{--tw-rotate:270deg}.scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}.scale-110,.scale-y-\\[1\\.5\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-\\[1\\.5\\]{--tw-scale-y:1.5}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce-once{0%{transform:translateY(0)}15%{transform:translateY(-9px)}25%{transform:translateY(-12px)}40%{transform:translateY(-4px)}50%{transform:translateY(0)}65%{transform:translateY(-4px)}75%{transform:translateY(-6px)}90%{transform:translateY(-2px)}to{transform:translateY(0)}}.animate-bounce-once{animation:bounce-once .6s ease-in-out}@keyframes grow{0%{width:0}to{width:100%}}.animate-grow{animation:grow linear}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.\\!cursor-not-allowed{cursor:not-allowed!important}.cursor-\\[inherit\\]{cursor:inherit}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-col{grid-auto-flow:column}.auto-rows-\\[100\\%\\]{grid-auto-rows:100%}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.\\!items-center{align-items:center!important}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.\\!justify-center{justify-content:center!important}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.justify-items-center{justify-items:center}.gap-0{gap:var(--sd-spacing-0,0)}.gap-0\\.5{gap:var(--sd-spacing-0-5,.125rem)}.gap-1{gap:var(--sd-spacing-1,.25rem)}.gap-2{gap:var(--sd-spacing-2,.5rem)}.gap-3{gap:var(--sd-spacing-3,.75rem)}.gap-4{gap:var(--sd-spacing-4,1rem)}.gap-6{gap:var(--sd-spacing-6,1.5rem)}.gap-8{gap:var(--sd-spacing-8,2rem)}.gap-x-\\[1px\\]{-moz-column-gap:1px;column-gap:1px}.self-start{align-self:flex-start}.self-center{align-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.overscroll-x-contain{overscroll-behavior-x:contain}.scroll-auto{scroll-behavior:auto}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.\\!rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)!important}.rounded-\\[4px_4px_0_0\\]{border-radius:4px 4px 0 0}.rounded-default{border-radius:var(--sd-border-radius-default,.25rem)}.rounded-full{border-radius:var(--sd-border-radius-full,9999px)}.rounded-md{border-radius:var(--sd-border-radius-md,.375rem)}.rounded-none{border-radius:var(--sd-border-radius-none,0)}.rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)}.rounded-b-default{border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-b-none{border-bottom-left-radius:var(--sd-border-radius-none,0);border-bottom-right-radius:var(--sd-border-radius-none,0)}.rounded-bl-default{border-bottom-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-bl-none{border-bottom-left-radius:var(--sd-border-radius-none,0)}.rounded-br-default{border-bottom-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-br-none{border-bottom-right-radius:var(--sd-border-radius-none,0)}.rounded-tl-default{border-top-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-tl-none{border-top-left-radius:var(--sd-border-radius-none,0)}.rounded-tr-default{border-top-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-tr-none{border-top-right-radius:var(--sd-border-radius-none,0)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-\\[0\\.25px\\]{border-width:.25px}.border-\\[1px\\]{border-width:1px}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-none{border-style:none}.border-accent{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-border-opacity))}.border-error{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-border-opacity))}.border-neutral-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity))}.border-neutral-500{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity))}.border-neutral-800{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity))}.border-primary-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-border-opacity))}.border-success{--tw-border-opacity:1;border-color:rgb(var(--sd-color-success,37 136 14)/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-border-opacity))}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.65\\)\\]{background-color:#000000a6}.bg-accent{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-bg-opacity))}.bg-accent-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-500,37 136 14)/var(--tw-bg-opacity))}.bg-error{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-bg-opacity))}.bg-info{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-info,21 130 213)/var(--tw-bg-opacity))}.bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity))}.bg-neutral-100\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-neutral-100,246 246 246)/.8)}.bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.bg-neutral-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity))}.bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-bg-opacity))}.bg-neutral-800\\/75{background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--sd-opacity-75,.75))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-bg-opacity))}.bg-primary-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity))}.bg-primary-100\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-primary-100,236 240 249)/.8)}.bg-primary-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity))}.bg-primary-800{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-bg-opacity))}.bg-primary\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-primary,0 53 142)/.8)}.bg-success{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-success,37 136 14)/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-warning,187 141 32)/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity))}.bg-white\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-white,255 255 255)/.8)}.bg-opacity-75{--tw-bg-opacity:var(--sd-opacity-75,.75)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.bg-none{background-image:none}.from-primary-800\\/60{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-60,.6)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-800\\/75{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-75,.75)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-800\\/\\[\\.6\\]{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/.6) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/60{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-60,.6)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/75{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-75,.75)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/90{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-90,.9)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/\\[\\.8\\]{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/.8) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-primary-800\\/60{--tw-gradient-to:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-60,.6)) var(--tw-gradient-to-position)}.to-primary-800\\/\\[\\.6\\]{--tw-gradient-to:rgb(var(--sd-color-primary-800,5 21 48)/.6) var(--tw-gradient-to-position)}.to-white\\/60{--tw-gradient-to:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-60,.6)) var(--tw-gradient-to-position)}.to-white\\/\\[\\.8\\]{--tw-gradient-to:rgb(var(--sd-color-white,255 255 255)/.8) var(--tw-gradient-to-position)}.to-40\\%{--tw-gradient-to-position:40%}.to-60\\%{--tw-gradient-to-position:60%}.fill-accent{fill:rgb(var(--sd-color-accent,45 157 0)/1)}.fill-accent-550{fill:rgb(var(--sd-color-accent-550,54 123 40)/1)}.fill-accent-700{fill:rgb(var(--sd-color-accent-700,33 87 37)/1)}.fill-neutral-100{fill:rgb(var(--sd-color-neutral-100,246 246 246)/1)}.fill-primary{fill:rgb(var(--sd-color-primary,0 53 142)/1)}.fill-primary-100{fill:rgb(var(--sd-color-primary-100,236 240 249)/1)}.fill-primary-200{fill:rgb(var(--sd-color-primary-200,224 233 243)/1)}.fill-primary-500{fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.fill-transparent{fill:transparent}.fill-white{fill:rgb(var(--sd-color-white,255 255 255)/1)}.p-0{padding:var(--sd-spacing-0,0)}.p-1{padding:var(--sd-spacing-1,.25rem)}.p-4{padding:var(--sd-spacing-4,1rem)}.px-0{padding-left:var(--sd-spacing-0,0);padding-right:var(--sd-spacing-0,0)}.px-1{padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}.px-10{padding-left:var(--sd-spacing-10,2.5rem);padding-right:var(--sd-spacing-10,2.5rem)}.px-12{padding-left:var(--sd-spacing-12,3rem);padding-right:var(--sd-spacing-12,3rem)}.px-2{padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}.px-3{padding-left:var(--sd-spacing-3,.75rem);padding-right:var(--sd-spacing-3,.75rem)}.px-4{padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem)}.px-6{padding-left:var(--sd-spacing-6,1.5rem);padding-right:var(--sd-spacing-6,1.5rem)}.py-0{padding-bottom:var(--sd-spacing-0,0);padding-top:var(--sd-spacing-0,0)}.py-1{padding-bottom:var(--sd-spacing-1,.25rem);padding-top:var(--sd-spacing-1,.25rem)}.py-2{padding-bottom:var(--sd-spacing-2,.5rem);padding-top:var(--sd-spacing-2,.5rem)}.py-3{padding-bottom:var(--sd-spacing-3,.75rem);padding-top:var(--sd-spacing-3,.75rem)}.py-4{padding-bottom:var(--sd-spacing-4,1rem);padding-top:var(--sd-spacing-4,1rem)}.py-6{padding-bottom:var(--sd-spacing-6,1.5rem);padding-top:var(--sd-spacing-6,1.5rem)}.py-8{padding-bottom:var(--sd-spacing-8,2rem);padding-top:var(--sd-spacing-8,2rem)}.py-\\[5px\\]{padding-bottom:5px;padding-top:5px}.pb-1{padding-bottom:var(--sd-spacing-1,.25rem)}.pb-2{padding-bottom:var(--sd-spacing-2,.5rem)}.pb-3{padding-bottom:var(--sd-spacing-3,.75rem)}.pb-4{padding-bottom:var(--sd-spacing-4,1rem)}.pl-3{padding-left:var(--sd-spacing-3,.75rem)}.pl-4{padding-left:var(--sd-spacing-4,1rem)}.pl-8{padding-left:var(--sd-spacing-8,2rem)}.pr-2{padding-right:var(--sd-spacing-2,.5rem)}.pr-3{padding-right:var(--sd-spacing-3,.75rem)}.pr-4{padding-right:var(--sd-spacing-4,1rem)}.pt-0{padding-top:var(--sd-spacing-0,0)}.pt-1{padding-top:var(--sd-spacing-1,.25rem)}.pt-2{padding-top:var(--sd-spacing-2,.5rem)}.pt-3{padding-top:var(--sd-spacing-3,.75rem)}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.\\!text-base{font-size:var(--sd-font-size-base,1rem)!important}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[2rem\\]{font-size:2rem}.text-\\[4rem\\]{font-size:4rem}.text-base{font-size:var(--sd-font-size-base,1rem)}.text-lg{font-size:var(--sd-font-size-lg,1.25rem)}.text-sm{font-size:var(--sd-font-size-sm,.875rem)}.text-xl{font-size:var(--sd-font-size-xl,1.5rem)}.\\!font-bold{font-weight:700!important}.font-bold{font-weight:700}.font-normal{font-weight:400}.lowercase{text-transform:lowercase}.leading-\\[0\\]{line-height:0}.leading-\\[calc\\(var\\(--tw-varspacing\\)-2px\\)\\]{line-height:calc(var(--tw-varspacing) - 2px)}.leading-none{line-height:var(--sd-line-height-none,100%)}.leading-normal{line-height:var(--sd-line-height-normal,150%)}.leading-tight{line-height:var(--sd-line-height-tight,120%)}.\\!text-neutral-700{--tw-text-opacity:1!important;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity))!important}.\\!text-primary{--tw-text-opacity:1!important;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))!important}.text-black{--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.text-error{--tw-text-opacity:1;color:rgb(var(--sd-color-error,204 25 55)/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-neutral-500{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity))}.text-neutral-600{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}.text-primary-400{--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity))}.text-success{--tw-text-opacity:1;color:rgb(var(--sd-color-success,37 136 14)/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.\\!underline{text-decoration-line:underline!important}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.\\!underline-offset-2{text-underline-offset:2px!important}.underline-offset-2{text-underline-offset:2px}.placeholder-black::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-placeholder-opacity))}.placeholder-black::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-placeholder-opacity))}.placeholder-neutral-700::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity))}.placeholder-neutral-700::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity))}.opacity-0{opacity:var(--sd-opacity-0,0)}.opacity-100{opacity:var(--sd-opacity-100,1)}.opacity-20{opacity:var(--sd-opacity-20,.2)}.opacity-50{opacity:var(--sd-opacity-50,.5)}.opacity-90{opacity:var(--sd-opacity-90,.9)}.shadow{--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(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)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-dotted{outline-style:dotted}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.\\!-outline-offset-2{outline-offset:-2px!important}.\\!outline-offset-0{outline-offset:0!important}.outline-offset-2{outline-offset:2px}.outline-error{outline-color:rgb(var(--sd-color-error,204 25 55)/1)}.outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.varspacing-10{--tw-varspacing:var(--sd-spacing-10,2.5rem)}.varspacing-12{--tw-varspacing:var(--sd-spacing-12,3rem)}.varspacing-8{--tw-varspacing:var(--sd-spacing-8,2rem)}.focus-within\\:focus-outline:focus-within{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-within\\:focus-outline-inverted:focus-within{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline:focus-visible{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline-inverted:focus-visible{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.\\*\\:drop-shadow-md>*{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus\\:outline-offset-2:focus{outline-offset:2px}.focus\\:outline-primary:focus{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:border-neutral-500:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity))}.disabled\\:border-neutral-600:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-border-opacity))}.disabled\\:bg-neutral-500:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity))}.disabled\\:bg-neutral-600:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-bg-opacity))}.disabled\\:text-neutral-500:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity))}.disabled\\:text-neutral-600:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity))}.disabled\\:text-white:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.group:hover .group-hover\\:visible{visibility:visible}.group:hover .group-hover\\:top-0{top:var(--sd-spacing-0,0)}.group:hover .group-hover\\:h-full{height:100%}.group:hover .group-hover\\:w-full{width:100%}.group:hover .group-hover\\:cursor-pointer{cursor:pointer}.group:hover .group-hover\\:border-accent-550{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity))}.group:hover .group-hover\\:border-error-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity))}.group:hover .group-hover\\:border-primary-500{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-border-opacity))}.group:hover .group-hover\\:bg-accent-550{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-error-400{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-neutral-100\\/90{background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-primary-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-primary-100\\/90{background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-primary\\/90{background-color:rgb(var(--sd-color-primary,0 53 142)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-white\\/90{background-color:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:fill-primary-500{fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.group:hover .group-hover\\:\\!text-primary-500{--tw-text-opacity:1!important;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity))!important}.group:hover .group-hover\\:text-primary-500{--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity))}.group:focus-visible .group-focus-visible\\:outline{outline-style:solid}.peer:focus-visible~.peer-focus-visible\\:outline{outline-style:solid}.peer:focus-visible~.peer-focus-visible\\:outline-2{outline-width:2px}.peer:focus-visible~.peer-focus-visible\\:outline-offset-2{outline-offset:2px}.peer:focus-visible~.peer-focus-visible\\:outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.hover\\:scale-110:hover:not([disabled]){--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-not-allowed:hover:not([disabled]){cursor:not-allowed}.hover\\:cursor-pointer:hover:not([disabled]){cursor:pointer}.hover\\:border-accent-550:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity))}.hover\\:border-error-400:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity))}.hover\\:border-primary-100:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-border-opacity))}.hover\\:border-primary-500:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-border-opacity))}.hover\\:bg-accent-300:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-300,108 194 84)/var(--tw-bg-opacity))}.hover\\:bg-accent-550:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity))}.hover\\:bg-error-400:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity))}.hover\\:bg-neutral-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity))}.hover\\:bg-neutral-200:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.hover\\:bg-primary-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity))}.hover\\:bg-primary-500:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity))}.hover\\:bg-transparent:hover:not([disabled]){background-color:transparent}.hover\\:fill-accent-550:hover:not([disabled]){fill:rgb(var(--sd-color-accent-550,54 123 40)/1)}.hover\\:fill-primary-100:hover:not([disabled]){fill:rgb(var(--sd-color-primary-100,236 240 249)/1)}.hover\\:fill-primary-500:hover:not([disabled]){fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.hover\\:text-primary-100:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-text-opacity))}.hover\\:text-primary-200:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity))}.hover\\:text-primary-500:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity))}.active\\:border-primary-200:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-border-opacity))}.active\\:border-primary-800:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-border-opacity))}.active\\:bg-accent-700:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-700,33 87 37)/var(--tw-bg-opacity))}.active\\:bg-primary-200:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-bg-opacity))}.active\\:bg-primary-800:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-bg-opacity))}.active\\:fill-accent-700:active:not([disabled]){fill:rgb(var(--sd-color-accent-700,33 87 37)/1)}.active\\:text-primary-200:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity))}.active\\:text-primary-400:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity))}.active\\:text-primary-800:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-text-opacity))}@media (min-width:640px){.sm\\:mt-2{margin-top:var(--sd-spacing-2,.5rem)}.sm\\:flex-col{flex-direction:column}.sm\\:gap-4{gap:var(--sd-spacing-4,1rem)}.sm\\:self-center{align-self:center}.sm\\:p-6{padding:var(--sd-spacing-6,1.5rem)}.sm\\:px-10{padding-left:var(--sd-spacing-10,2.5rem);padding-right:var(--sd-spacing-10,2.5rem)}.sm\\:py-8{padding-top:var(--sd-spacing-8,2rem)}.sm\\:pb-8,.sm\\:py-8{padding-bottom:var(--sd-spacing-8,2rem)}.sm\\:text-center{text-align:center}.sm\\:text-3xl{font-size:var(--sd-font-size-3xl,2rem)}.sm\\:text-4xl{font-size:var(--sd-font-size-4xl,2.5rem)}.sm\\:leading-tight{line-height:var(--sd-line-height-tight,120%)}}@media (min-width:768px){.md\\:block{display:block}.md\\:\\[transition\\:_height_0\\.2s_linear\\,opacity_0\\.1s_linear_0\\.1s\\]{transition:height .2s linear,opacity .1s linear .1s}.group:hover .md\\:group-hover\\:visible{visibility:visible}.group:hover .md\\:group-hover\\:my-4{margin-bottom:var(--sd-spacing-4,1rem);margin-top:var(--sd-spacing-4,1rem)}.group:hover .md\\:group-hover\\:h-auto{height:var(--sd-spacing-auto,auto)}.group:hover .md\\:group-hover\\:opacity-\\[100\\%\\]{opacity:100%}}');let We=Je;Ze([Ue()],We.prototype,"dir"),Ze([Ue()],We.prototype,"lang");var _e=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,ti=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Xe(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&_e(e,i,r),r};let ei=class extends We{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver((t=>this.handleCurrentPlacementChange(t))),this.mutationObserver.observe(this,{attributes:!0})}handleCurrentPlacementChange(t){return t.forEach((t=>{if("data-current-placement"===t.attributeName){const t=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:t})}}))}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=function(t,e,i,o){void 0===o&&(o={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:n="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,d=ct(t),h=s||r?[...d?dt(d):[],...dt(e)]:[];h.forEach((t=>{s&&t.addEventListener("scroll",i,{passive:!0}),r&&t.addEventListener("resize",i)}));const c=d&&n?function(t,e){let i,o=null;const s=Z(t);function r(){var t;clearTimeout(i),null==(t=o)||t.disconnect(),o=null}return function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),r();const{left:d,top:h,width:c,height:p}=t.getBoundingClientRect();if(n||e(),!c||!p)return;const u={rootMargin:-B(h)+"px "+-B(s.clientWidth-(d+c))+"px "+-B(s.clientHeight-(h+p))+"px "+-B(d)+"px",threshold:I(0,E(1,l))||1};let g=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!g)return a();e?a(!1,e):i=setTimeout((()=>{a(!1,1e-7)}),1e3)}g=!1}try{o=new IntersectionObserver(m,{...u,root:s.ownerDocument})}catch{o=new IntersectionObserver(m,u)}o.observe(t)}(!0),r}(d,i):null;let p=-1,u=null;a&&(u=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&u&&(u.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=u)||t.observe(e)}))),i()})),d&&!l&&u.observe(d),u.observe(e));let g,m=l?mt(t):null;return l&&function e(){const o=mt(t);m&&(o.x!==m.x||o.y!==m.y||o.width!==m.width||o.height!==m.height)&&i(),m=o,g=requestAnimationFrame(e)}(),i(),()=>{var t;h.forEach((t=>{s&&t.removeEventListener("scroll",i),r&&t.removeEventListener("resize",i)})),null==c||c(),null==(t=u)||t.disconnect(),u=null,l&&cancelAnimationFrame(g)}}(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const t=[It({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Ot({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,i="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=i?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var i,o;const{placement:s,middlewareData:r,rects:a,initialPlacement:n,platform:l,elements:d}=e,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=P(t,e);if(null!=(i=r.arrow)&&i.alignmentOffset)return{};const v=F(s),y=F(n)===n,f=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=p||(y||!m?[H(n)]:function(t){const e=H(t);return[Y(t),e,Y(e)]}(n));!p&&"none"!==g&&w.push(...function(t,e,i,o){const s=j(t);let r=function(t,e,i){const o=["left","right"],s=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return i?e?s:o:e?o:s;case"left":case"right":return e?r:a;default:return[]}}(F(t),"start"===i,o);return s&&(r=r.map((t=>t+"-"+s)),e&&(r=r.concat(r.map(Y)))),r}(n,m,g,f));const A=[n,...w],x=await q(e,b),k=[];let C=(null==(o=r.flip)?void 0:o.overflows)||[];if(h&&k.push(x[v]),c){const t=function(t,e,i){void 0===i&&(i=!1);const o=j(t),s=U(t),r=Q(s);let a="x"===s?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=H(a)),[a,H(a)]}(s,a,f);k.push(x[t[0]],x[t[1]])}if(C=[...C,{placement:s,overflows:k}],!k.every((t=>t<=0))){var S,E;const t=((null==(S=r.flip)?void 0:S.index)||0)+1,e=A[t];if(e)return{data:{index:t,overflows:C},reset:{placement:e}};let i=null==(E=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:E.placement;if(!i)switch(u){case"bestFit":{var I;const t=null==(I=C.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:I[0];t&&(i=t);break}case"initialPlacement":i=n}if(s!==i)return{reset:{placement:i}}}return{}}}}({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:s}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:n={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=P(t,e),d={x:i,y:o},h=await q(e,l),c=R(F(s)),p=L(c);let u=d[p],g=d[c];if(r){const t="y"===p?"bottom":"right";u=T(u+h["y"===p?"top":"left"],u,u-h[t])}if(a){const t="y"===c?"bottom":"right";g=T(g+h["y"===c?"top":"left"],g,g-h[t])}const m=n.fn({...e,[p]:u,[c]:g});return{...m,data:{x:m.x-i,y:m.y-o}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Ot({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:i,y:o,placement:s,rects:r,platform:a,elements:n,middlewareData:l}=e,{element:d,padding:h=0}=P(t,e)||{};if(null==d)return{};const c=$(h),p={x:i,y:o},u=U(s),g=Q(u),m=await a.getDimensions(d),b="y"===u,v=b?"top":"left",y=b?"bottom":"right",f=b?"clientHeight":"clientWidth",w=r.reference[g]+r.reference[u]-p[u]-r.floating[g],A=p[u]-r.reference[u],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d));let k=x?x[f]:0;(!k||!await(null==a.isElement?void 0:a.isElement(x)))&&(k=n.floating[f]||r.floating[g]);const C=w/2-A/2,S=k/2-m[g]/2-1,I=E(c[v],S),O=E(c[y],S),B=I,D=k-m[g]-O,M=k/2-m[g]/2+C,z=T(B,M,D),F=!l.arrow&&null!=j(s)&&M!==z&&r.reference[g]/2-(M<B?I:O)-m[g]/2<0,L=F?M<B?M-B:M-D:0;return{[u]:p[u]+L,data:{[u]:z,centerOffset:M-z-L,...F&&{alignmentOffset:L}},reset:F}}}))({element:this.arrowEl,padding:this.arrowPadding})),((t,e,i)=>{const o=new Map,s={platform:Et,...i},r={...s.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:s="absolute",middleware:r=[],platform:a}=i,n=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let d=await a.getElementRects({reference:t,floating:e,strategy:s}),{x:h,y:c}=V(d,o,l),p=o,u={},g=0;for(let i=0;i<n.length;i++){const{name:r,fn:m}=n[i],{x:b,y:v,data:y,reset:f}=await m({x:h,y:c,initialPlacement:o,placement:p,strategy:s,middlewareData:u,rects:d,platform:a,elements:{reference:t,floating:e}});h=b??h,c=v??c,u={...u,[r]:{...u[r],...y}},f&&g<=50&&(g++,"object"==typeof f&&(f.placement&&(p=f.placement),f.rects&&(d=!0===f.rects?await a.getElementRects({reference:t,floating:e,strategy:s}):f.rects),({x:h,y:c}=V(d,p,l))),i=-1)}return{x:h,y:c,placement:p,strategy:s,middlewareData:u}})(t,e,{...s,platform:r})})(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then((({x:t,y:e,middlewareData:i,placement:o})=>{const s="rtl"===getComputedStyle(this).direction,r={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]];if(this.setAttribute("data-current-placement",o),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=i.arrow.x,e=i.arrow.y;let o="",a="",n="",l="";if("start"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";o="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=s?i:"",l=s?"":i}else if("end"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=s?"":i,l=s?i:"",n="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",o="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",o="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:o,right:a,bottom:n,left:l,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("sd-reposition")}render(){return ye`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${Ne("isolate","fixed"!==this.strategy?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?ye`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};ei.styles=[We.styles,qe,Ft`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * 0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],ti([$e('[part="popup"]')],ei.prototype,"popup",2),ti([$e('[part="arrow"]')],ei.prototype,"arrowEl",2),ti([Ue()],ei.prototype,"anchor",2),ti([Ue({type:Boolean,reflect:!0})],ei.prototype,"active",2),ti([Ue({reflect:!0})],ei.prototype,"placement",2),ti([Ue({reflect:!0})],ei.prototype,"strategy",2),ti([Ue({type:Number})],ei.prototype,"distance",2),ti([Ue({type:Number})],ei.prototype,"skidding",2),ti([Ue({type:Boolean})],ei.prototype,"arrow",2),ti([Ue({attribute:"arrow-placement"})],ei.prototype,"arrowPlacement",2),ti([Ue({attribute:"arrow-padding",type:Number})],ei.prototype,"arrowPadding",2),ti([Ue({type:Boolean})],ei.prototype,"flip",2),ti([Ue({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],ei.prototype,"flipFallbackPlacements",2),ti([Ue({attribute:"flip-fallback-strategy"})],ei.prototype,"flipFallbackStrategy",2),ti([Ue({type:Object})],ei.prototype,"flipBoundary",2),ti([Ue({attribute:"flip-padding",type:Number})],ei.prototype,"flipPadding",2),ti([Ue({type:Boolean})],ei.prototype,"shift",2),ti([Ue({type:Object})],ei.prototype,"shiftBoundary",2),ti([Ue({attribute:"shift-padding",type:Number})],ei.prototype,"shiftPadding",2),ti([Ue({attribute:"auto-size"})],ei.prototype,"autoSize",2),ti([Ue()],ei.prototype,"sync",2),ti([Ue({type:Object})],ei.prototype,"autoSizeBoundary",2),ti([Ue({attribute:"auto-size-padding",type:Number})],ei.prototype,"autoSizePadding",2),ei=ti([Le("sd-popup")],ei);const ii=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ei}},Symbol.toStringTag,{value:"Module"})),oi=Object.assign({"./components/accordion-group/accordion-group.ts":()=>Promise.resolve().then((()=>$i)),"./components/accordion/accordion.ts":()=>Promise.resolve().then((()=>Qi)),"./components/audio/audio.ts":()=>Promise.resolve().then((()=>_i)),"./components/audio/base64Audio.ts":()=>Promise.resolve().then((()=>Xi)),"./components/audio/wave.ts":()=>Promise.resolve().then((()=>qi)),"./components/badge/badge.ts":()=>Promise.resolve().then((()=>so)),"./components/brandshape/brandshape.ts":()=>Promise.resolve().then((()=>ho)),"./components/button/button.ts":()=>Promise.resolve().then((()=>Fo)),"./components/carousel-item/carousel-item.ts":()=>Promise.resolve().then((()=>Lo)),"./components/carousel/autoplay-controller.ts":()=>Promise.resolve().then((()=>Ro)),"./components/carousel/carousel.ts":()=>Promise.resolve().then((()=>Jo)),"./components/carousel/scroll-controller.ts":()=>Promise.resolve().then((()=>Vo)),"./components/checkbox-group/checkbox-group.ts":()=>Promise.resolve().then((()=>es)),"./components/checkbox/checkbox.ts":()=>Promise.resolve().then((()=>hs)),"./components/combobox/combobox.ts":()=>Promise.resolve().then((()=>Ts)),"./components/combobox/option-renderer.ts":()=>Promise.resolve().then((()=>ps)),"./components/combobox/utils.ts":()=>Promise.resolve().then((()=>fs)),"./components/dialog/dialog.ts":()=>Promise.resolve().then((()=>Hs)),"./components/divider/divider.ts":()=>Promise.resolve().then((()=>Ns)),"./components/drawer/drawer.ts":()=>Promise.resolve().then((()=>Xs)),"./components/dropdown/dropdown.ts":()=>Promise.resolve().then((()=>sr)),"./components/expandable/expandable.ts":()=>Promise.resolve().then((()=>dr)),"./components/flipcard/flipcard.ts":()=>Promise.resolve().then((()=>gr)),"./components/header/header.ts":()=>Promise.resolve().then((()=>fr)),"./components/icon/icon.ts":()=>Promise.resolve().then((()=>xi)),"./components/icon/library.default.ts":()=>Promise.resolve().then((()=>s)),"./components/icon/library.system.ts":()=>Promise.resolve().then((()=>n)),"./components/icon/library.ts":()=>Promise.resolve().then((()=>m)),"./components/icon/request.ts":()=>Promise.resolve().then((()=>di)),"./components/include/include.ts":()=>Promise.resolve().then((()=>Cr)),"./components/include/request.ts":()=>Promise.resolve().then((()=>ai)),"./components/input/input.ts":()=>Promise.resolve().then((()=>Qr)),"./components/link/link.ts":()=>Promise.resolve().then((()=>$r)),"./components/map-marker/map-marker.ts":()=>Promise.resolve().then((()=>Kr)),"./components/navigation-item/navigation-item.ts":()=>Promise.resolve().then((()=>Xr)),"./components/notification/notification.ts":()=>Promise.resolve().then((()=>aa)),"./components/optgroup/optgroup.ts":()=>Promise.resolve().then((()=>ca)),"./components/option/option.ts":()=>Promise.resolve().then((()=>ba)),"./components/popup/popup.ts":()=>Promise.resolve().then((()=>ii)),"./components/quickfact/quickfact.ts":()=>Promise.resolve().then((()=>Aa)),"./components/radio-button/radio-button.ts":()=>Promise.resolve().then((()=>Ea)),"./components/radio-group/radio-group.ts":()=>Promise.resolve().then((()=>Ha)),"./components/radio/radio.ts":()=>Promise.resolve().then((()=>La)),"./components/scrollable/scrollable.ts":()=>Promise.resolve().then((()=>Na)),"./components/select/select.ts":()=>Promise.resolve().then((()=>_a)),"./components/spinner/spinner.ts":()=>Promise.resolve().then((()=>mo)),"./components/step-group/step-group.ts":()=>Promise.resolve().then((()=>sn)),"./components/step/step.ts":()=>Promise.resolve().then((()=>dn)),"./components/switch/switch.ts":()=>Promise.resolve().then((()=>gn)),"./components/tab-group/tab-group.ts":()=>Promise.resolve().then((()=>fn)),"./components/tab-panel/tab-panel.ts":()=>Promise.resolve().then((()=>Sn)),"./components/tab/tab.ts":()=>Promise.resolve().then((()=>Mn)),"./components/tag/tag.ts":()=>Promise.resolve().then((()=>Os)),"./components/teaser-media/teaser-media.ts":()=>Promise.resolve().then((()=>jn)),"./components/teaser/teaser.ts":()=>Promise.resolve().then((()=>Yn)),"./components/textarea/textarea.ts":()=>Promise.resolve().then((()=>qn)),"./components/tooltip/tooltip.ts":()=>Promise.resolve().then((()=>Wn)),"./components/video/video.ts":()=>Promise.resolve().then((()=>il))});Object.keys(oi).forEach((t=>{oi[t]()}));const si=new Map;function ri(t,e="cors"){if(si.has(t))return si.get(t);const i=fetch(t,{mode:e}).then((async t=>({ok:t.ok,status:t.status,html:await t.text()})));return si.set(t,i),i}const ai=Object.freeze(Object.defineProperty({__proto__:null,requestInclude:ri},Symbol.toStringTag,{value:"Module"})),ni=new Map;async function li(t){if(ni.has(t))return ni.get(t);const e=await ri(t),i={ok:e.ok,status:e.status,svg:null};if(e.ok){const t=document.createElement("div");t.innerHTML=e.html;const o=t.firstElementChild;i.svg="svg"===(null==o?void 0:o.tagName.toLowerCase())?o.outerHTML:""}return ni.set(t,i),i}const di=Object.freeze(Object.defineProperty({__proto__:null,requestIcon:li},Symbol.toStringTag,{value:"Module"})),hi=t=>(...e)=>({_$litDirective$:t,values:e});
|
55
55
|
/**
|
56
56
|
* @license
|
57
57
|
* Copyright 2017 Google LLC
|
@@ -109,12 +109,12 @@ const Do=t=>t??Ae;var Mo=Object.defineProperty,zo=Object.getOwnPropertyDescripto
|
|
109
109
|
removable-indicator:tag__removable-indicator,
|
110
110
|
" size="${"sm"===this.size?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){"Backspace"===t.key&&this.multiple&&(t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))))}handleTagMaxOptionsKeyDown(t){"Backspace"===t.key&&this.multiple&&(t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))))}handleLabelClick(){this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.updateComplete.then((()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")})))}handleComboboxMouseDown(t){const e=t.composedPath().some((t=>t instanceof HTMLSlotElement&&"removable-indicator"===t.name));this.disabled||e||(this.open?this.hide():this.show()).then((()=>{setTimeout((()=>this.displayInput.focus({preventScroll:!0})))}))}handleComboboxKeyDown(t){"Tab"!==t.key&&this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){""!==this.value&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach((t=>{t.selected=!1})),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})))}preventLoosingFocus(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.lastOption=e,this.setOrderedSelectedOptions(e),this.updateComplete.then((()=>{this.selectionChanged()}))):(this.setOrderedSelectedOptions(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})))}selectNextOption(t){const e=this.getAllFilteredOptions();if(0===e.length)return;const i=this.getCurrentOption(),o=e.indexOf(i);let s=Math.max(0,o);if(t){const t=o+1;s=t>e.length-1?0:t}else{const t=o-1;s=t<0?e.length-1:t}this.setCurrentOption(e[s]),ks(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-option")]}getCurrentOption(){return this.getAllFilteredOptions().find((t=>t.current))}setCurrentOption(t){const e=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),e.forEach((t=>{t.current=!1,t.setAttribute("aria-selected","false")})),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id))}toggleOptionSelection(t,e){const i=this.getSlottedOptions().find((e=>e.value&&t.value?e.value===t.value:e.getTextLabel()===t.getTextLabel()));i&&(i.selected=e??!i.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find((t=>e.includes(t.value))):t.find((t=>t.value===e))}selectedOptionsAndValueSynced(){var t;return!this.value&&0===this.selectedOptions.length||(Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===(null==(t=this.selectedOptions[0])?void 0:t.value))}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach((t=>{t.selected=!1})),this.selectedOptions=this.getSlottedOptions().filter((t=>this.isOptionSelected(t))),this.selectedOptions.forEach((t=>{t&&(t.selected=!0)})),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach((e=>{e.selected=this.compareOptions(e,t)})),this.selectionChanged()}setOrderedSelectedOptions(t){const e=this.getSlottedOptions().find((e=>this.compareOptions(e,t)));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find((t=>this.compareOptions(t,e)))?this.selectedOptions=this.selectedOptions.filter((t=>!this.compareOptions(t,e))):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var t,e,i;const o=this.selectedOptions.some((t=>!!t&&this.isOptionSelected(t)));this.multiple?(!o&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map((t=>t.value||t.getTextLabel()))]:this.value=this.selectedOptions.map((t=>(null==t?void 0:t.value)||(null==t?void 0:t.getTextLabel())||"")),this.displayInputValue=""):(this.value=(null==(t=this.selectedOptions[0])?void 0:t.value)||(null==(e=this.selectedOptions[0])?void 0:e.getTextLabel())||"",this.selectedTextLabel=(null==(i=this.selectedOptions[0])?void 0:i.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}createComboboxOptionsFromQuery(t){const e=[];this.filteredOptions=this.getSlottedOptions().filter((e=>this.filter(e,t)||""===t)).map((t=>{var i,o,s;const r=t.cloneNode(!0);if(r.current=r.value===(null==(i=this.lastOption)?void 0:i.value),r.selected=t.selected,"sd-optgroup"!==(null==(o=t.parentElement)?void 0:o.tagName.toLowerCase()))return r;const a=t.parentElement,n=null==(s=a.querySelector('[slot="label"]'))?void 0:s.cloneNode(!0),l=e.find((t=>t.id===a.id));if(l)return null==l||l.appendChild(r),void(n&&(null==l||l.appendChild(n)));const d=a.cloneNode();return d.appendChild(r),n&&d.appendChild(n),e.push(d),d})).filter(Boolean)}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)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){const t=this.getAllFilteredOptions();customElements.get("sd-option")&&t.forEach((t=>{t.checkbox=this.multiple}))}applySizeToOptions(){this.getSlottedOptions().forEach((t=>{t.size=this.size}))}handleDisabledChange(){this.formControlController.setValidity(this.disabled),this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&!this.disabled){this.emit("sd-show"),this.addOpenListeners(),await Ei(this),this.listbox.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=zi(this,"combobox.show",{dir:this.localize.dir()});return await ki(this.popup.popup,t,e),this.emit("sd-after-show"),void(0===this.filteredOptions.length&&this.emit("sd-error"))}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await Ei(this);const{keyframes:t,options:e}=zi(this,"combobox.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")}async show(){if(!this.open&&!this.disabled)return this.open=!0,Promise.race([Ti(this,"sd-after-show"),Ti(this,"sd-error")]);this.open=!1}async hide(){if(this.open&&!this.disabled)return this.displayInputValue="",this.open=!1,Ti(this,"sd-after-hide");this.open=!1}checkValidity(){return this.valueInput.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()}async handleInput(){const t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then((()=>{this.formControlController.updateValidity()})),this.emit("sd-change"))}getSlottedOptions(){return bs(us(this.defaultSlot)).flat()}getSlottedOptGroups(){return vs(us(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-option"))return void customElements.whenDefined("sd-option").then((()=>this.handleDefaultSlotChange()));const t=this.getSlottedOptions(),e=this.getSlottedOptGroups();t.forEach(((t,e)=>{this.multiple&&(t.checkbox=!0),t.id=t.id||`sd-combobox-option-${e}`})),e.forEach(((t,e)=>{t.id=t.id||`sd-combobox-optgroup-${e}`})),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery(""),this.hasFocus&&this.value.length>0&&!this.open&&await this.show()}render(){const t=this.hasSlotController.test("left"),e=(this.hasSlotController.test("right"),this.hasSlotController.test("label")),i=this.hasSlotController.test("help-text"),o=!!this.label||!!e,s=!!this.helpText||!!i,r=this.clearable&&!this.disabled&&this.value.length>0,a=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",n=this.disabled?"cursor-not-allowed":"cursor-pointer",l=this.disabled?"text-neutral-500":"text-primary",d={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],h={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],c={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return ye`<div part="form-control" class="${Ne("relative text-left",n,"sm"===this.size?"text-sm":"text-base",this.open&&"z-50")}"><label id="label" part="form-control-label" class="${o&&"inline-block mb-2"}" aria-hidden="${!o}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="relative w-full bg-white text-black"><div part="border" class="${Ne("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"}[a],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="${Ne("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="
|
111
111
|
popup:popup__content,
|
112
|
-
"><div part="combobox" class="${Ne("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}">${t?ye`<slot part="left" name="left" class="${Ne("inline-flex",h,l,c)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?ye`<div part="tags" class="${Ne("flex items-center gap-1",h)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${Ne("appearance-none outline-none bg-transparent flex-auto min-w-0",n,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((t=>null==t?void 0:t.getTextLabel())).join(", ")}</div><input class="${Ne("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",n)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${r?ye`<button part="clear-button" class="${Ne("flex justify-center",d)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Ne("text-icon-fill-neutral-800",c)}" name="closing-round" library="system"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${Ne(d,c,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?ye`<sd-icon part="valid-icon" class="${Ne("flex-shrink-0 text-success",d,c)}" library="system" name="status-check"></sd-icon>`:""}<slot name="right" part="right" class="${Ne("inline-flex ml-2 leading-[0]",this.disabled?"text-neutral-500":"text-primary",c)}"><sd-icon class="${Ne("transition-all",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${Ne("bg-white px-2 py-3 relative border-primary overflow-y-auto",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" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${0===this.filteredOptions.length?ye`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700" aria-hidden="${!s}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};zs.dependencies={"sd-icon":Ai,"sd-popup":ei,"sd-tag":Is},zs.styles=[qe,We.styles,Ft`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}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::part(content){max-width:var(--tag-max-width,15ch);overflow:hidden;white-space:nowrap;display:inline-block;text-overflow:ellipsis}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))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;font-weight:700;color:inherit}`],Ms([$e("sd-popup")],zs.prototype,"popup",2),Ms([$e('[part="combobox"]')],zs.prototype,"combobox",2),Ms([$e('[part="display-input"]')],zs.prototype,"displayInput",2),Ms([$e(".value-input")],zs.prototype,"valueInput",2),Ms([$e('[part="listbox"]')],zs.prototype,"listbox",2),Ms([$e('[part="tags"]')],zs.prototype,"tagWrapper",2),Ms([$e('[part="filtered-listbox"]')],zs.prototype,"filteredWrapper",2),Ms([$e("slot:not([name])")],zs.prototype,"defaultSlot",2),Ms([$e("#invalid-message")],zs.prototype,"invalidMessage",2),Ms([Ye()],zs.prototype,"hasHover",2),Ms([Ye()],zs.prototype,"hasFocus",2),Ms([Ye()],zs.prototype,"displayInputValue",2),Ms([Ye()],zs.prototype,"selectedTextLabel",2),Ms([Ye()],zs.prototype,"selectedOptions",2),Ms([Ye()],zs.prototype,"filteredOptions",2),Ms([Ye()],zs.prototype,"allOptions",2),Ms([Ye()],zs.prototype,"lastOption",2),Ms([Ye()],zs.prototype,"showValidStyle",2),Ms([Ye()],zs.prototype,"showInvalidStyle",2),Ms([Ue()],zs.prototype,"name",2),Ms([Ue({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],zs.prototype,"value",2),Ms([is()],zs.prototype,"defaultValue",2),Ms([Ue({reflect:!0})],zs.prototype,"size",2),Ms([Ue()],zs.prototype,"placeholder",2),Ms([Ue({reflect:!0,type:Boolean})],zs.prototype,"disabled",2),Ms([Ue({type:Boolean})],zs.prototype,"clearable",2),Ms([Ue({reflect:!0,type:Boolean})],zs.prototype,"open",2),Ms([Ue({type:Boolean})],zs.prototype,"hoist",2),Ms([Ue()],zs.prototype,"label",2),Ms([Ue({reflect:!0})],zs.prototype,"placement",2),Ms([Ue({attribute:"help-text"})],zs.prototype,"helpText",2),Ms([Ue({reflect:!0})],zs.prototype,"form",2),Ms([Ue({reflect:!0,type:Boolean})],zs.prototype,"required",2),Ms([Ye()],zs.prototype,"currentPlacement",2),Ms([Ue()],zs.prototype,"getOption",2),Ms([Ue({type:Boolean,reflect:!0})],zs.prototype,"multiple",2),Ms([Ue({type:Boolean,reflect:!0})],zs.prototype,"useTags",2),Ms([Ue({attribute:"max-options-visible",type:Number})],zs.prototype,"maxOptionsVisible",2),Ms([Ue({type:Boolean,reflect:!0,attribute:"style-on-valid"})],zs.prototype,"styleOnValid",2),Ms([Ue()],zs.prototype,"filter",2),Ms([Ue()],zs.prototype,"getTag",2),Ms([bi("filter",{waitUntilFirstUpdate:!0})],zs.prototype,"handleFilterChange",1),Ms([bi("useTags",{waitUntilFirstUpdate:!0})],zs.prototype,"handleUseTagsChange",1),Ms([bi("size",{waitUntilFirstUpdate:!0})],zs.prototype,"applySizeToOptions",1),Ms([bi("disabled",{waitUntilFirstUpdate:!0})],zs.prototype,"handleDisabledChange",1),Ms([bi("value",{waitUntilFirstUpdate:!0})],zs.prototype,"handleValueChange",1),Ms([bi("displayInputValue",{waitUntilFirstUpdate:!0})],zs.prototype,"handleDisplayInputValueChange",1),Ms([bi("open",{waitUntilFirstUpdate:!0})],zs.prototype,"handleOpenChange",1),zs=Ms([Le("sd-combobox")],zs),Mi("combobox.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Mi("combobox.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const Ts=Object.freeze(Object.defineProperty({__proto__:null,get default(){return zs}},Symbol.toStringTag,{value:"Module"}));function Ps(t){const e=t.tagName.toLowerCase();return!("-1"===t.getAttribute("tabindex")||t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&"false"!==t.getAttribute("aria-disabled")||"input"===e&&"radio"===t.getAttribute("type")&&!t.hasAttribute("checked")||null===t.offsetParent||"hidden"===window.getComputedStyle(t).visibility)&&(!!(("audio"===e||"video"===e)&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&"false"!==t.getAttribute("contenteditable"))||["button","input","select","textarea","a","audio","video","summary"].includes(e))}function Fs(t){const e=[];return function t(i){i instanceof HTMLElement&&(e.push(i),null!==i.shadowRoot&&"open"===i.shadowRoot.mode&&t(i.shadowRoot)),[...i.children].forEach((e=>t(e)))}(t),{start:e.find((t=>Ps(t)))??null,end:e.reverse().find((t=>Ps(t)))??null}}let js=[];class Ls{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){js.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){js=js.filter((t=>t!==this.element)),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return js[js.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:e}=Fs(this.element),i="forward"===this.tabDirection?t:e;"function"==typeof(null==i?void 0:i.focus)&&i.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){"Tab"===t.key&&t.shiftKey&&(this.tabDirection="backward",requestAnimationFrame((()=>this.checkFocus())))}handleKeyUp(){this.tabDirection="forward"}}var Qs=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,Us=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Rs(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Qs(e,i,r),r};let Ys=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"footer"),this.localize=new S(this),this.open=!1,this.headline="",this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new Ls(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),As(this))}disconnectedCallback(){super.disconnectedCallback(),xs(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=zi(this,"dialog.denyClose",{dir:this.localize.dir()});ki(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),As(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([Ei(this.dialog),Ei(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame((()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=zi(this,"dialog.show",{dir:this.localize.dir()}),i=zi(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([ki(this.panel,e.keyframes,e.options),ki(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([Ei(this.dialog),Ei(this.overlay)]);const t=zi(this,"dialog.hide",{dir:this.localize.dir()}),e=zi(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([ki(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),ki(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,xs(this);const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sd-after-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(){return ye`<div part="base" class="${Ne("flex items-center justify-center fixed inset-0 z-dialog",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${Ne("flex flex-col z-20 bg-white focus:outline-none py-4 sm:py-8 relative gap-6",this.open&&"flex opacity-100")}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length>0?ye`<h4 class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</h4>`:ye`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":ye`<sd-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${Ne("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`}};Ys.styles=[qe,Pt(".sd-headline,.sd-prose :is(h1,h2,h3,h4,h5){display:flex;font-weight:700;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}.sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-icon{flex-shrink:0;font-size:3rem;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}@media (min-width:640px){.sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-icon{margin-top:var(--sd-spacing-2,.5rem)}}.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){font-size:var(--sd-font-size-3xl,2rem);gap:var(--sd-spacing-4,1rem);line-height:var(--sd-line-height-tight,120%)}@media (min-width:640px){.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){font-size:var(--sd-font-size-4xl,2.5rem)}}.sd-headline.sd-headline sd-icon,.sd-headline:is(h1):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline sd-icon,.sd-headline:is(h1):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){font-size:var(--sd-font-size-2xl,1.75rem);gap:var(--sd-spacing-4,1rem);line-height:var(--sd-line-height-tight,120%)}@media (min-width:640px){.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){font-size:var(--sd-font-size-3xl,2rem)}}.sd-headline.sd-headline--size-3xl sd-icon,.sd-headline:is(h2):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline--size-3xl sd-icon,.sd-headline:is(h2):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline.sd-headline--size-xl,.sd-headline:is(h3,h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline){gap:var(--sd-spacing-2,.5rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.sd-headline.sd-headline--size-base sd-icon,.sd-headline.sd-headline--size-lg sd-icon,.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3,h4,h5):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline) sd-icon{font-size:2rem}.sd-headline.sd-headline--size-xl,.sd-headline:is(h3):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline){font-size:var(--sd-font-size-xl,1.5rem)}.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0-5,.125rem)}@media (min-width:640px){.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0-5,.125rem)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline:is(h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4,h5):not(.sd-headline){line-height:var(--sd-line-height-normal,150%)}.sd-headline.sd-headline--size-lg,.sd-headline:is(h4),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4){font-size:var(--sd-font-size-lg,1.25rem)}.sd-headline.sd-headline--size-lg sd-icon,.sd-headline:is(h4) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-icon{margin-top:var(--sd-spacing-0,0)}@media (min-width:640px){.sd-headline.sd-headline--size-lg sd-icon,.sd-headline:is(h4) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-base,.sd-headline:is(h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline){font-size:var(--sd-font-size-base,1rem)}.sd-headline.sd-headline--size-base sd-icon,.sd-headline:is(h5):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}.sd-headline.sd-headline--size-base mark,.sd-headline:is(h5):not(.sd-headline) mark,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base mark,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) mark{color:inherit}.sd-headline--inline{display:inline-block}.sd-headline--inline sd-icon{margin-right:var(--sd-spacing-2,.5rem);margin-top:calc(var(--sd-spacing-1, .25rem)*-1);vertical-align:middle}.sd-headline--inline:is(.sd-headline--size-xl,.sd-headline--size-lg,.sd-headline--size-base) sd-icon{margin-right:var(--sd-spacing-0-5,.125rem)}.sd-headline--inverted:not(#\\\t),.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#\\\t){--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.sd-headline--inverted:not(#\\\t) sd-icon,.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#\\\t) sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}"),We.styles,Ft`:host{--width:662px}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=footer]{width:100%}}`],Us([$e('[part="base"]')],Ys.prototype,"dialog",2),Us([$e('[part="panel"]')],Ys.prototype,"panel",2),Us([$e('[part="overlay"]')],Ys.prototype,"overlay",2),Us([Ue({type:Boolean,reflect:!0})],Ys.prototype,"open",2),Us([Ue({reflect:!0})],Ys.prototype,"headline",2),Us([Ue({attribute:"no-close-button",type:Boolean,reflect:!0})],Ys.prototype,"noCloseButton",2),Us([bi("open",{waitUntilFirstUpdate:!0})],Ys.prototype,"handleOpenChange",1),Ys=Us([Le("sd-dialog")],Ys),Mi("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Mi("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),Mi("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),Mi("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),Mi("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const Hs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ys}},Symbol.toStringTag,{value:"Module"}));var $s=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Vs=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Gs(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&$s(e,i,r),r};let qs=class extends We{constructor(){super(...arguments),this.orientation="horizontal",this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return ye`<hr part="main" class="${Ne(this.inverted?"border-primary-400":"border-neutral-400","horizontal"===this.orientation?"border-t w-full":" border-l h-full")}">`}};qs.styles=[qe,We.styles,Ft`:host{margin:var(--sd-spacing-0,0)}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],Vs([Ue({reflect:!0})],qs.prototype,"orientation",2),Vs([Ue({type:Boolean,reflect:!0})],qs.prototype,"inverted",2),qs=Vs([Le("sd-divider")],qs);const Ns=Object.freeze(Object.defineProperty({__proto__:null,get default(){return qs}},Symbol.toStringTag,{value:"Module"}));function Ks(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Zs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,Ws=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Js(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Zs(e,i,r),r};let _s=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"footer"),this.localize=new S(this),this.modal=new Ls(this),this.open=!1,this.label="",this.placement="end",this.contained=!1,this.noHeader=!1,this.handleDocumentKeyDown=t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),As(this)))}disconnectedCallback(){super.disconnectedCallback(),xs(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=zi(this,"drawer.denyClose",{dir:this.localize.dir()});ki(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),As(this));const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([Ei(this.drawer),Ei(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame((()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=zi(this,`drawer.show${Ks(this.placement)}`,{dir:this.localize.dir()}),i=zi(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([ki(this.panel,e.keyframes,e.options),ki(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),xs(this)),await Promise.all([Ei(this.drawer),Ei(this.overlay)]);const t=zi(this,`drawer.hide${Ks(this.placement)}`,{dir:this.localize.dir()}),e=zi(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([ki(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),ki(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),As(this)),this.open&&this.contained&&(this.modal.deactivate(),xs(this))}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(){return ye`<div part="base" class="${Ne("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}"><div part="overlay" class="${Ne("block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${Ne("absolute flex flex-col z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[--width] h-full",start:"top-0 end-auto bottom-auto start-0 w-[--width] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.label}" aria-labelledby="${Do(this.noHeader?void 0:"title")}" tabindex="0">${this.noHeader?"":ye`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button></div></header>`}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${Ne(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></div>`}};_s.styles=[We.styles,qe,Ft`:host{--width:25rem;display:contents}:host([contained]){z-index:initial}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}`],Ws([$e("[part=base]")],_s.prototype,"drawer",2),Ws([$e("[part=panel]")],_s.prototype,"panel",2),Ws([$e("[part=overlay]")],_s.prototype,"overlay",2),Ws([Ue({type:Boolean,reflect:!0})],_s.prototype,"open",2),Ws([Ue({attribute:"label",reflect:!0})],_s.prototype,"label",2),Ws([Ue({reflect:!0})],_s.prototype,"placement",2),Ws([Ue({type:Boolean,reflect:!0})],_s.prototype,"contained",2),Ws([Ue({attribute:"no-header",type:Boolean})],_s.prototype,"noHeader",2),Ws([bi("open",{waitUntilFirstUpdate:!0})],_s.prototype,"handleOpenChange",1),Ws([bi("contained",{waitUntilFirstUpdate:!0})],_s.prototype,"handleNoModalChange",1),_s=Ws([Le("sd-drawer")],_s),Mi("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),Mi("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}}),Mi("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),Mi("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}}),Mi("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}}),Mi("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),Mi("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const Xs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _s}},Symbol.toStringTag,{value:"Module"}));var tr=Object.defineProperty,er=Object.getOwnPropertyDescriptor,ir=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?er(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&tr(e,i,r),r};let or=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.open=!1,this.rounded=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.noAutoSize=!1,this.noFlip=!1,this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const t=this.trigger.assignedElements({flatten:!0})[0];"function"==typeof(null==t?void 0:t.focus)&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find((t=>"sd-menu"===t.tagName.toLowerCase()))}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if("Tab"===t.key){if(this.open&&"sd-menu-item"===(null==(e=document.activeElement)?void 0:e.tagName.toLowerCase()))return t.preventDefault(),this.hide(),void this.focusOnTrigger();setTimeout((()=>{var t,e,i,o,s,r,a,n,l,d,h,c;const p=(null==(s=null==(o=null==(i=null==(e=null==(t=document.activeElement)?void 0:t.shadowRoot)?void 0:e.activeElement)?void 0:i.shadowRoot)?void 0:o.activeElement)?void 0:s.getRootNode())instanceof ShadowRoot?null==(l=null==(n=null==(a=null==(r=document.activeElement)?void 0:r.shadowRoot)?void 0:a.activeElement)?void 0:n.shadowRoot)?void 0:l.activeElement:(null==(d=this.containingElement)?void 0:d.getRootNode())instanceof ShadowRoot?null==(c=null==(h=document.activeElement)?void 0:h.shadowRoot)?void 0:c.activeElement:document.activeElement;(!this.containingElement||(null==p?void 0:p.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()}))}}handleDocumentMouseDown(t){const e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){ks(t.target,this.panel)}handlePanelSelect(t){const e=t.target;!this.stayOpenOnSelect&&"sd-menu"===e.tagName.toLowerCase()&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if("Escape"===t.key&&this.open)return t.stopPropagation(),this.focusOnTrigger(),void this.hide();if([" ","Enter"].includes(t.key))return t.preventDefault(),void this.handleTriggerClick();const e=this.getMenu();if(e){const i=e.defaultSlot.assignedElements({flatten:!0}),o=i[0],s=i[i.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),i.length>0&&requestAnimationFrame((()=>{("ArrowDown"===t.key||"Home"===t.key)&&(e.setCurrentItem(o),o.focus()),("ArrowUp"===t.key||"End"===t.key)&&(e.setCurrentItem(s),s.focus())})))}}handleTriggerKeyUp(t){" "===t.key&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const t=this.trigger.assignedElements({flatten:!0}).find((t=>Fs(t).start));let e;if(t){switch(t.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":e=t.button;break;default:e=t}e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded",this.open?"true":"false")}}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")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled)this.open=!1;else if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await Ei(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=zi(this,"dropdown.show",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Ei(this);const{keyframes:t,options:e}=zi(this,"dropdown.hide",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return ye`<sd-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${Ne("shadow bg-white",this.open?"block pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-popup>`}};or.styles=[We.styles,qe,Ft`:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:right}#dropdown[data-current-placement^=right]::part(popup){transform-origin:left}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],ir([$e("#dropdown")],or.prototype,"popup",2),ir([$e("[part=trigger]")],or.prototype,"trigger",2),ir([$e("[part=panel]")],or.prototype,"panel",2),ir([Ue({type:Boolean,reflect:!0})],or.prototype,"open",2),ir([Ue({type:Boolean,reflect:!0})],or.prototype,"rounded",2),ir([Ue({reflect:!0})],or.prototype,"placement",2),ir([Ue({type:Boolean,reflect:!0})],or.prototype,"disabled",2),ir([Ue({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],or.prototype,"stayOpenOnSelect",2),ir([Ue({attribute:!1})],or.prototype,"containingElement",2),ir([Ue({type:Number})],or.prototype,"distance",2),ir([Ue({type:Number})],or.prototype,"skidding",2),ir([Ue({type:Boolean,reflect:!0,attribute:"no-auto-size"})],or.prototype,"noAutoSize",2),ir([Ue({type:Boolean,reflect:!0,attribute:"no-flip"})],or.prototype,"noFlip",2),ir([Ue({type:Boolean})],or.prototype,"hoist",2),ir([bi("open",{waitUntilFirstUpdate:!0})],or.prototype,"handleOpenChange",1),or=ir([Le("sd-dropdown")],or),Mi("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Mi("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const sr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return or}},Symbol.toStringTag,{value:"Module"}));var rr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,nr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?ar(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&rr(e,i,r),r};let lr=class extends We{constructor(){super(...arguments),this.open=!1,this.inverted=!1,this.localize=new S(this)}updateMaxHeight(){var t;const e=null==(t=this.contentPreview)?void 0:t.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${e}px`),this.style.setProperty("--max-height",e)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}onOpenChange(){this.open?(this.emit("sd-show"),this.updateComplete.then((()=>{this.emit("sd-after-show")}))):(this.emit("sd-hide"),this.updateComplete.then((()=>{this.emit("sd-after-hide")}))),this.details.setAttribute("open",this.open.toString())}async show(){if(!this.open)return this.onToggleClick(),Ti(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),Ti(this,"sd-after-hide")}render(){return ye`<details part="details"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details><button part="toggle" class="${Ne("sd-interactive sd-interactive--reset !h-full !justify-center !w-full !text-base !flex !items-center !underline !underline-offset-2 !toggle",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}">${this.open?ye`<slot name="toggle-open"><sd-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-icon>${this.localize.term("showLess")}</slot>`:ye`<slot name="toggle-closed"><sd-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-icon>${this.localize.term("showMore")}</slot>`}</button>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){const t=document.createElement("div");t.setAttribute("slot","clone"),Array.from(this.childNodes).forEach((e=>{const i=e.cloneNode(!0);t.appendChild(i)})),this.appendChild(t)}};lr.styles=[We.styles,Pt(Ni),qe,Ft`:host{--gradient-color-start:rgba(255, 255, 255, 0);--gradient-color-end:rgba(255, 255, 255, 1);--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start) 0%,var(--gradient-color-end) 80%,var(--gradient-color-end) 100%;position:relative;display:inline-block;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content{max-block-size:var(--max-height-pixel,1000vh)}:host(:not([open])) .content::after{position:absolute;bottom:var(--sd-spacing-0,0);left:var(--sd-spacing-0,0);display:block;width:100%;content:' ';height:var(--gradient-height);background:linear-gradient(180deg,var(--gradient))}:host([inverted]:not([open])) .content::after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,rgba(0,53,142,0) 0,#00358e 80%,#00358e 100%))}`],nr([$e(".content-preview")],lr.prototype,"contentPreview",2),nr([$e("details")],lr.prototype,"details",2),nr([Ue({type:Boolean,reflect:!0})],lr.prototype,"open",2),nr([Ue({type:Boolean,reflect:!0})],lr.prototype,"inverted",2),nr([bi("open",{waitUntilFirstUpdate:!0})],lr.prototype,"onOpenChange",1),lr=nr([Le("sd-expandable")],lr);const dr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return lr}},Symbol.toStringTag,{value:"Module"}));var hr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,pr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?cr(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&hr(e,i,r),r};let ur=class extends We{constructor(){super(...arguments),this.activation="click hover",this.flipDirection="horizontal",this.frontVariant="empty",this.backVariant="empty"}connectedCallback(){super.connectedCallback()}flipFront(){this.front.classList.add("clicked--front"),this.back.classList.add("clicked--back"),this.emit("sd-flip-front"),this.back.focus()}flipBack(){this.front.classList.remove("clicked--front"),this.back.classList.remove("clicked--back"),this.emit("sd-flip-back"),this.front.focus()}handleFrontClick(t){const e=t.target;null===e.getAttribute("onclick")&&null===e.getAttribute("href")&&this.flipFront()}handleBackClick(t){const e=t.target;null===e.getAttribute("onclick")&&null===e.getAttribute("href")&&this.flipBack()}handleFrontKeydown(t){"Enter"===t.code&&this.front===t.target&&this.flipFront()}handleBackKeydown(t){"Enter"===t.code&&this.back===t.target&&this.flipBack()}render(){return ye`<div part="base" class="${Ne("flip-card relative h-full w-full")}"><div part="front" tabindex="0" class="${Ne("flip-card__side flip-card__side--front overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left","click hover"===this.activation&&"hover","primary"===this.frontVariant&&"bg-primary","primary-100"===this.frontVariant&&"bg-primary-100","gradient-dark-bottom"===this.frontVariant||"gradient-light-bottom"===this.frontVariant?"flex-col-reverse":"flex-col","vertical"===this.flipDirection&&"vertical")}" @click="${this.handleFrontClick}" @keydown="${this.handleFrontKeydown}"><div part="media-front" class="${Ne("absolute h-full w-full -z-20",("primary"===this.frontVariant||"primary-100"===this.frontVariant)&&"hidden")}"><slot name="media-front"></slot></div><div part="front-slot-container" class="${Ne("flex",{empty:"text-black",primary:"text-white","primary-100":"text-black","gradient-light-top":"text-black","gradient-light-bottom":"text-black","gradient-dark-top":"text-white","gradient-dark-bottom":"text-white"}[this.frontVariant],{empty:"",primary:"","primary-100":"","gradient-light-top":"bg-gradient-to-b from-white/75 to-white/60","gradient-light-bottom":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark-top":"bg-gradient-to-b from-primary-800/75 to-primary-800/60","gradient-dark-bottom":"bg-gradient-to-t from-primary-800/75 to-primary-800/60"}[this.frontVariant])}"><slot name="front"></slot></div><div part="front-secondary-gradient" class="${Ne("flip-card__gradient",{empty:"mb-auto",primary:"mb-auto","primary-100":"mb-auto","gradient-light-top":"bg-gradient-to-b from-white/60 to-40% mb-auto","gradient-light-bottom":"bg-gradient-to-t from-white/60 to-40% mt-auto","gradient-dark-top":"bg-gradient-to-b from-primary-800/60 to-40% mb-auto","gradient-dark-bottom":"bg-gradient-to-t from-primary-800/60 to-40% mt-auto"}[this.frontVariant])}"></div></div><div part="back" tabindex="0" class="${Ne("flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left","click hover"===this.activation&&"hover","primary"===this.backVariant&&"bg-primary","primary-100"===this.backVariant&&"bg-primary-100","gradient-dark-bottom"===this.backVariant||"gradient-light-bottom"===this.backVariant?"flex-col-reverse":"flex-col","vertical"===this.flipDirection&&"vertical")}" @click="${this.handleBackClick}" @keydown="${this.handleBackKeydown}"><div part="media-back" class="${Ne("absolute h-full w-full -z-20",("primary"===this.backVariant||"primary-100"===this.backVariant)&&"hidden")}"><slot name="media-back"></slot></div><div part="back-slot-container" class="${Ne("flex",{empty:"text-black",primary:"text-white","primary-100":"text-black","gradient-light-top":"text-black","gradient-light-bottom":"text-black","gradient-dark-top":"text-white","gradient-dark-bottom":"text-white"}[this.backVariant],{empty:"",primary:"","primary-100":"","gradient-light-top":"bg-gradient-to-b from-white/75 to-white/60","gradient-light-bottom":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark-top":"bg-gradient-to-b from-primary-800/75 to-primary-800/60","gradient-dark-bottom":"bg-gradient-to-t from-primary-800/75 to-primary-800/60"}[this.backVariant])}"><slot name="back"></slot></div><div part="back-secondary-gradient" class="${Ne("flip-card__gradient",{empty:"mb-auto",primary:"mb-auto","primary-100":"mb-auto","gradient-light-top":"bg-gradient-to-b from-white/60 to-40% mb-auto","gradient-light-bottom":"bg-gradient-to-t from-white/60 to-40% mt-auto","gradient-dark-top":"bg-gradient-to-b from-primary-800/60 to-40% mb-auto","gradient-dark-bottom":"bg-gradient-to-t from-primary-800/60 to-40% mt-auto"}[this.backVariant])}"></div></div></div>`}};ur.styles=[qe,We.styles,Ft`:host{display:block;aspect-ratio:3/4;--name:'';--height:480px;height:var(--height)}.flip-card{perspective:100rem}.flip-card__side{backface-visibility:hidden}.flip-card__side--back{transform:rotateY(180deg)}.clicked--front{transform:rotateY(-180deg)}.clicked--back{transform:rotateY(0)}.flip-card__side--back.vertical{transform:rotateX(180deg)}.clicked--front.vertical{transform:rotateX(-180deg)}.clicked--back.vertical{transform:rotateX(0)}.flip-card__gradient{flex:.4 1 0}@media (hover:hover) and (pointer:fine){.flip-card:hover .flip-card__side--front.hover{transform:rotateY(-180deg)}.flip-card:hover .flip-card__side--back.hover{transform:rotateY(0)}.flip-card:hover .flip-card__side--front.hover.vertical{transform:rotateX(-180deg)}.flip-card:hover .flip-card__side--back.hover.vertical{transform:rotateX(0)}}`],pr([$e('[part="front"]')],ur.prototype,"front",2),pr([$e('[part="back"]')],ur.prototype,"back",2),pr([Ue({reflect:!0})],ur.prototype,"activation",2),pr([Ue({reflect:!0,attribute:"flip-direction"})],ur.prototype,"flipDirection",2),pr([Ue({type:String,reflect:!0,attribute:"front-variant"})],ur.prototype,"frontVariant",2),pr([Ue({type:String,reflect:!0,attribute:"back-variant"})],ur.prototype,"backVariant",2),ur=pr([Le("sd-flipcard")],ur);const gr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ur}},Symbol.toStringTag,{value:"Module"}));var mr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,vr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?br(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&mr(e,i,r),r};let yr=class extends We{constructor(){super(...arguments),this.fixed=!1}connectedCallback(){super.connectedCallback(),this.setCalculatedHeightProperty=this.setCalculatedHeightProperty.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this)}firstUpdated(){this.toggleHeightCalculation()}toggleHeightCalculation(){var t;this.fixed?(this.setCalculatedHeightProperty(),this.addResizeObserver()):(this.setCalculatedHeightProperty(),null==(t=this.resizeObserver)||t.disconnect(),this.resizeObserver=void 0)}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t),t.has("fixed")&&this.toggleHeightCalculation()}onResize(){this.fixed&&this.setCalculatedHeightProperty()}addResizeObserver(){this.resizeObserver=new ResizeObserver((()=>{this.onResize()})),this.refHeaderElement&&this.resizeObserver.observe(this.refHeaderElement)}setCalculatedHeightProperty(){this.fixed&&this.refHeaderElement?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.refHeaderElement.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return ye`<header class="w-full bg-white relative" role="banner" @slotchange="${this.handleSlotChange}"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}handleSlotChange(t){t.target.assignedElements().length>0&&(this.refHeaderElement=t.currentTarget,this.setCalculatedHeightProperty())}};yr.styles=[We.styles,qe,Ft`:host{display:block}:host([fixed]){position:fixed;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header::after{content:'';position:absolute;left:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);top:100%;height:var(--sd-spacing-2,.5rem);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}`],vr([Ue({reflect:!0,type:Boolean})],yr.prototype,"fixed",2),vr([Yo(100)],yr.prototype,"onResize",1),yr=vr([Le("sd-header")],yr);const fr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return yr}},Symbol.toStringTag,{value:"Module"}));var wr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor,xr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Ar(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&wr(e,i,r),r};let kr=class extends We{constructor(){super(...arguments),this.mode="cors",this.allowScripts=!1}executeScript(t){const e=document.createElement("script");[...t.attributes].forEach((t=>e.setAttribute(t.name,t.value))),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{const t=this.src,e=await ri(t,this.mode);if(t!==this.src)return;if(!e.ok)return void this.emit("sd-error",{detail:{status:e.status}});this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach((t=>this.executeScript(t))),this.emit("sd-load")}catch{this.emit("sd-error",{detail:{status:-1}})}}render(){return ye`<slot></slot>`}};kr.styles=[qe,Ft`:host{display:block}`],xr([Ue()],kr.prototype,"src",2),xr([Ue()],kr.prototype,"mode",2),xr([Ue({attribute:"allow-scripts",type:Boolean})],kr.prototype,"allowScripts",2),xr([bi("src")],kr.prototype,"handleSrcChange",1),kr=xr([Le("sd-include")],kr);const Cr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return kr}},Symbol.toStringTag,{value:"Module"})),Sr=(t,e)=>{var i;const o=t._$AN;if(void 0===o)return!1;for(const t of o)null==(i=t._$AO)||i.call(t,e,!1),Sr(t,e);return!0},Er=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===(null==i?void 0:i.size))},Ir=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),Dr(e)}};
|
112
|
+
"><div part="combobox" class="${Ne("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}">${t?ye`<slot part="left" name="left" class="${Ne("inline-flex",h,l,c)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?ye`<div part="tags" class="${Ne("flex items-center gap-1",h)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${Ne("appearance-none outline-none bg-transparent flex-auto min-w-0",n,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((t=>null==t?void 0:t.getTextLabel())).join(", ")}</div><input class="${Ne("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",n)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${r?ye`<button part="clear-button" class="${Ne("flex justify-center",d)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Ne("text-icon-fill-neutral-800",c)}" name="closing-round" library="system"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${Ne(d,c,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?ye`<sd-icon part="valid-icon" class="${Ne("flex-shrink-0 text-success",d,c)}" library="system" name="status-check"></sd-icon>`:""}<slot name="right" part="right" class="${Ne("inline-flex ml-2 leading-[0]",this.disabled?"text-neutral-500":"text-primary",c)}"><sd-icon class="${Ne("transition-all",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${Ne("bg-white px-2 py-3 relative border-primary overflow-y-auto",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" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${0===this.filteredOptions.length?ye`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700" aria-hidden="${!s}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};zs.dependencies={"sd-icon":Ai,"sd-popup":ei,"sd-tag":Is},zs.styles=[qe,We.styles,Ft`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}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::part(content){max-width:var(--tag-max-width,15ch);overflow:hidden;white-space:nowrap;display:inline-block;text-overflow:ellipsis}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))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;font-weight:700;color:inherit}`],Ms([$e("sd-popup")],zs.prototype,"popup",2),Ms([$e('[part="combobox"]')],zs.prototype,"combobox",2),Ms([$e('[part="display-input"]')],zs.prototype,"displayInput",2),Ms([$e(".value-input")],zs.prototype,"valueInput",2),Ms([$e('[part="listbox"]')],zs.prototype,"listbox",2),Ms([$e('[part="tags"]')],zs.prototype,"tagWrapper",2),Ms([$e('[part="filtered-listbox"]')],zs.prototype,"filteredWrapper",2),Ms([$e("slot:not([name])")],zs.prototype,"defaultSlot",2),Ms([$e("#invalid-message")],zs.prototype,"invalidMessage",2),Ms([Ye()],zs.prototype,"hasHover",2),Ms([Ye()],zs.prototype,"hasFocus",2),Ms([Ye()],zs.prototype,"displayInputValue",2),Ms([Ye()],zs.prototype,"selectedTextLabel",2),Ms([Ye()],zs.prototype,"selectedOptions",2),Ms([Ye()],zs.prototype,"filteredOptions",2),Ms([Ye()],zs.prototype,"allOptions",2),Ms([Ye()],zs.prototype,"lastOption",2),Ms([Ye()],zs.prototype,"showValidStyle",2),Ms([Ye()],zs.prototype,"showInvalidStyle",2),Ms([Ue()],zs.prototype,"name",2),Ms([Ue({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],zs.prototype,"value",2),Ms([is()],zs.prototype,"defaultValue",2),Ms([Ue({reflect:!0})],zs.prototype,"size",2),Ms([Ue()],zs.prototype,"placeholder",2),Ms([Ue({reflect:!0,type:Boolean})],zs.prototype,"disabled",2),Ms([Ue({type:Boolean})],zs.prototype,"clearable",2),Ms([Ue({reflect:!0,type:Boolean})],zs.prototype,"open",2),Ms([Ue({type:Boolean})],zs.prototype,"hoist",2),Ms([Ue()],zs.prototype,"label",2),Ms([Ue({reflect:!0})],zs.prototype,"placement",2),Ms([Ue({attribute:"help-text"})],zs.prototype,"helpText",2),Ms([Ue({reflect:!0})],zs.prototype,"form",2),Ms([Ue({reflect:!0,type:Boolean})],zs.prototype,"required",2),Ms([Ye()],zs.prototype,"currentPlacement",2),Ms([Ue()],zs.prototype,"getOption",2),Ms([Ue({type:Boolean,reflect:!0})],zs.prototype,"multiple",2),Ms([Ue({type:Boolean,reflect:!0})],zs.prototype,"useTags",2),Ms([Ue({attribute:"max-options-visible",type:Number})],zs.prototype,"maxOptionsVisible",2),Ms([Ue({type:Boolean,reflect:!0,attribute:"style-on-valid"})],zs.prototype,"styleOnValid",2),Ms([Ue()],zs.prototype,"filter",2),Ms([Ue()],zs.prototype,"getTag",2),Ms([bi("filter",{waitUntilFirstUpdate:!0})],zs.prototype,"handleFilterChange",1),Ms([bi("useTags",{waitUntilFirstUpdate:!0})],zs.prototype,"handleUseTagsChange",1),Ms([bi("size",{waitUntilFirstUpdate:!0})],zs.prototype,"applySizeToOptions",1),Ms([bi("disabled",{waitUntilFirstUpdate:!0})],zs.prototype,"handleDisabledChange",1),Ms([bi("value",{waitUntilFirstUpdate:!0})],zs.prototype,"handleValueChange",1),Ms([bi("displayInputValue",{waitUntilFirstUpdate:!0})],zs.prototype,"handleDisplayInputValueChange",1),Ms([bi("open",{waitUntilFirstUpdate:!0})],zs.prototype,"handleOpenChange",1),zs=Ms([Le("sd-combobox")],zs),Mi("combobox.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Mi("combobox.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const Ts=Object.freeze(Object.defineProperty({__proto__:null,get default(){return zs}},Symbol.toStringTag,{value:"Module"}));function Ps(t){const e=t.tagName.toLowerCase();return!("-1"===t.getAttribute("tabindex")||t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&"false"!==t.getAttribute("aria-disabled")||"input"===e&&"radio"===t.getAttribute("type")&&!t.hasAttribute("checked"))&&(null!==t.offsetParent||t.getRootNode()instanceof ShadowRoot)&&"hidden"!==window.getComputedStyle(t).visibility&&(!!(("audio"===e||"video"===e)&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&"false"!==t.getAttribute("contenteditable"))||["button","input","select","textarea","a","audio","video","summary"].includes(e))}function Fs(t){const e=[];return function t(i){i instanceof HTMLElement&&(e.push(i),null!==i.shadowRoot&&"open"===i.shadowRoot.mode&&t(i.shadowRoot)),[...i.children].forEach((e=>t(e)))}(t),{start:e.find((t=>Ps(t)))??null,end:e.reverse().find((t=>Ps(t)))??null}}let js=[];class Ls{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){js.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){js=js.filter((t=>t!==this.element)),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return js[js.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:e}=Fs(this.element),i="forward"===this.tabDirection?t:e;"function"==typeof(null==i?void 0:i.focus)&&i.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){"Tab"===t.key&&t.shiftKey&&(this.tabDirection="backward",requestAnimationFrame((()=>this.checkFocus())))}handleKeyUp(){this.tabDirection="forward"}}var Qs=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,Us=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Rs(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Qs(e,i,r),r};let Ys=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"footer"),this.localize=new S(this),this.open=!1,this.headline="",this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new Ls(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),As(this))}disconnectedCallback(){super.disconnectedCallback(),xs(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=zi(this,"dialog.denyClose",{dir:this.localize.dir()});ki(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),As(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([Ei(this.dialog),Ei(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame((()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=zi(this,"dialog.show",{dir:this.localize.dir()}),i=zi(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([ki(this.panel,e.keyframes,e.options),ki(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([Ei(this.dialog),Ei(this.overlay)]);const t=zi(this,"dialog.hide",{dir:this.localize.dir()}),e=zi(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([ki(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),ki(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,xs(this);const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sd-after-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(){return ye`<div part="base" class="${Ne("flex items-center justify-center fixed inset-0 z-dialog",this.hasSlotController.test("footer")&&"dialog--has-footer")}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${Ne("flex flex-col z-20 bg-white focus:outline-none py-4 sm:py-8 relative gap-6",this.open&&"flex opacity-100")}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length>0?ye`<h4 class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</h4>`:ye`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":ye`<sd-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${Ne("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`}};Ys.styles=[qe,Pt(".sd-headline,.sd-prose :is(h1,h2,h3,h4,h5){display:flex;font-weight:700;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}.sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-icon{flex-shrink:0;font-size:3rem;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}@media (min-width:640px){.sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-icon{margin-top:var(--sd-spacing-2,.5rem)}}.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){font-size:var(--sd-font-size-3xl,2rem);gap:var(--sd-spacing-4,1rem);line-height:var(--sd-line-height-tight,120%)}@media (min-width:640px){.sd-headline.sd-headline,.sd-headline:is(h1):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline){font-size:var(--sd-font-size-4xl,2.5rem)}}.sd-headline.sd-headline sd-icon,.sd-headline:is(h1):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline sd-icon,.sd-headline:is(h1):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){font-size:var(--sd-font-size-2xl,1.75rem);gap:var(--sd-spacing-4,1rem);line-height:var(--sd-line-height-tight,120%)}@media (min-width:640px){.sd-headline.sd-headline--size-3xl,.sd-headline:is(h2):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline){font-size:var(--sd-font-size-3xl,2rem)}}.sd-headline.sd-headline--size-3xl sd-icon,.sd-headline:is(h2):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline--size-3xl sd-icon,.sd-headline:is(h2):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline.sd-headline--size-xl,.sd-headline:is(h3,h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline){gap:var(--sd-spacing-2,.5rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.sd-headline.sd-headline--size-base sd-icon,.sd-headline.sd-headline--size-lg sd-icon,.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3,h4,h5):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline) sd-icon{font-size:2rem}.sd-headline.sd-headline--size-xl,.sd-headline:is(h3):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline){font-size:var(--sd-font-size-xl,1.5rem)}.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0-5,.125rem)}@media (min-width:640px){.sd-headline.sd-headline--size-xl sd-icon,.sd-headline:is(h3):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-icon{margin-top:var(--sd-spacing-0-5,.125rem)}}.sd-headline.sd-headline--size-base,.sd-headline.sd-headline--size-lg,.sd-headline:is(h4,h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4,h5):not(.sd-headline){line-height:var(--sd-line-height-normal,150%)}.sd-headline.sd-headline--size-lg,.sd-headline:is(h4),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg,.sd-prose :is(h1,h2,h3,h4,h5):is(h4){font-size:var(--sd-font-size-lg,1.25rem)}.sd-headline.sd-headline--size-lg sd-icon,.sd-headline:is(h4) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-icon{margin-top:var(--sd-spacing-0,0)}@media (min-width:640px){.sd-headline.sd-headline--size-lg sd-icon,.sd-headline:is(h4) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-icon{margin-top:var(--sd-spacing-0,0)}}.sd-headline.sd-headline--size-base,.sd-headline:is(h5):not(.sd-headline),.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline){font-size:var(--sd-font-size-base,1rem)}.sd-headline.sd-headline--size-base sd-icon,.sd-headline:is(h5):not(.sd-headline) sd-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) sd-icon{margin-top:calc(var(--sd-spacing-1, .25rem)*-1)}.sd-headline.sd-headline--size-base mark,.sd-headline:is(h5):not(.sd-headline) mark,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base mark,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) mark{color:inherit}.sd-headline--inline{display:inline-block}.sd-headline--inline sd-icon{margin-right:var(--sd-spacing-2,.5rem);margin-top:calc(var(--sd-spacing-1, .25rem)*-1);vertical-align:middle}.sd-headline--inline:is(.sd-headline--size-xl,.sd-headline--size-lg,.sd-headline--size-base) sd-icon{margin-right:var(--sd-spacing-0-5,.125rem)}.sd-headline--inverted:not(#\\\t),.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#\\\t){--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.sd-headline--inverted:not(#\\\t) sd-icon,.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#\\\t) sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}"),We.styles,Ft`:host{--width:662px}[part=panel]{width:var(--width);max-height:80vh}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=footer]{width:100%}}`],Us([$e('[part="base"]')],Ys.prototype,"dialog",2),Us([$e('[part="panel"]')],Ys.prototype,"panel",2),Us([$e('[part="overlay"]')],Ys.prototype,"overlay",2),Us([Ue({type:Boolean,reflect:!0})],Ys.prototype,"open",2),Us([Ue({reflect:!0})],Ys.prototype,"headline",2),Us([Ue({attribute:"no-close-button",type:Boolean,reflect:!0})],Ys.prototype,"noCloseButton",2),Us([bi("open",{waitUntilFirstUpdate:!0})],Ys.prototype,"handleOpenChange",1),Ys=Us([Le("sd-dialog")],Ys),Mi("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Mi("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),Mi("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),Mi("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),Mi("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const Hs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ys}},Symbol.toStringTag,{value:"Module"}));var $s=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Vs=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Gs(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&$s(e,i,r),r};let qs=class extends We{constructor(){super(...arguments),this.orientation="horizontal",this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return ye`<hr part="main" class="${Ne(this.inverted?"border-primary-400":"border-neutral-400","horizontal"===this.orientation?"border-t w-full":" border-l h-full")}">`}};qs.styles=[qe,We.styles,Ft`:host{margin:var(--sd-spacing-0,0)}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],Vs([Ue({reflect:!0})],qs.prototype,"orientation",2),Vs([Ue({type:Boolean,reflect:!0})],qs.prototype,"inverted",2),qs=Vs([Le("sd-divider")],qs);const Ns=Object.freeze(Object.defineProperty({__proto__:null,get default(){return qs}},Symbol.toStringTag,{value:"Module"}));function Ks(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Zs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,Ws=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Js(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Zs(e,i,r),r};let _s=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"footer"),this.localize=new S(this),this.modal=new Ls(this),this.open=!1,this.label="",this.placement="end",this.contained=!1,this.noHeader=!1,this.handleDocumentKeyDown=t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),As(this)))}disconnectedCallback(){super.disconnectedCallback(),xs(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=zi(this,"drawer.denyClose",{dir:this.localize.dir()});ki(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),As(this));const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([Ei(this.drawer),Ei(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame((()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=zi(this,`drawer.show${Ks(this.placement)}`,{dir:this.localize.dir()}),i=zi(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([ki(this.panel,e.keyframes,e.options),ki(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),xs(this)),await Promise.all([Ei(this.drawer),Ei(this.overlay)]);const t=zi(this,`drawer.hide${Ks(this.placement)}`,{dir:this.localize.dir()}),e=zi(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([ki(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),ki(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),As(this)),this.open&&this.contained&&(this.modal.deactivate(),xs(this))}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(){return ye`<div part="base" class="${Ne("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}"><div part="overlay" class="${Ne("block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${Ne("absolute flex flex-col z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[--width] h-full",start:"top-0 end-auto bottom-auto start-0 w-[--width] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.label}" aria-labelledby="${Do(this.noHeader?void 0:"title")}" tabindex="0">${this.noHeader?"":ye`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-icon label="${this.localize.term("close")}" name="close" library="system"></sd-icon></sd-button></div></header>`}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${Ne(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></div>`}};_s.styles=[We.styles,qe,Ft`:host{--width:25rem;display:contents}:host([contained]){z-index:initial}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}`],Ws([$e("[part=base]")],_s.prototype,"drawer",2),Ws([$e("[part=panel]")],_s.prototype,"panel",2),Ws([$e("[part=overlay]")],_s.prototype,"overlay",2),Ws([Ue({type:Boolean,reflect:!0})],_s.prototype,"open",2),Ws([Ue({attribute:"label",reflect:!0})],_s.prototype,"label",2),Ws([Ue({reflect:!0})],_s.prototype,"placement",2),Ws([Ue({type:Boolean,reflect:!0})],_s.prototype,"contained",2),Ws([Ue({attribute:"no-header",type:Boolean})],_s.prototype,"noHeader",2),Ws([bi("open",{waitUntilFirstUpdate:!0})],_s.prototype,"handleOpenChange",1),Ws([bi("contained",{waitUntilFirstUpdate:!0})],_s.prototype,"handleNoModalChange",1),_s=Ws([Le("sd-drawer")],_s),Mi("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),Mi("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}}),Mi("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),Mi("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}}),Mi("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}}),Mi("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),Mi("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const Xs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _s}},Symbol.toStringTag,{value:"Module"}));var tr=Object.defineProperty,er=Object.getOwnPropertyDescriptor,ir=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?er(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&tr(e,i,r),r};let or=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.open=!1,this.rounded=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.noAutoSize=!1,this.noFlip=!1,this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}getAccessibleTrigger(){const t=this.trigger.assignedElements({flatten:!0}).find((t=>Fs(t).start));let e=null;if(t)switch(t.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":case"sd-navigation-item":e=t.button;break;default:e=t}return e}updateAccessibleTrigger(){const t=this.getAccessibleTrigger();t&&(t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){const t=this.getAccessibleTrigger();"function"==typeof(null==t?void 0:t.focus)&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find((t=>"sd-menu"===t.tagName.toLowerCase()))}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if("Tab"===t.key){if(this.open&&"sd-menu-item"===(null==(e=document.activeElement)?void 0:e.tagName.toLowerCase()))return t.preventDefault(),this.hide(),void this.focusOnTrigger();setTimeout((()=>{var t,e,i,o,s,r,a,n,l,d,h,c;const p=(null==(s=null==(o=null==(i=null==(e=null==(t=document.activeElement)?void 0:t.shadowRoot)?void 0:e.activeElement)?void 0:i.shadowRoot)?void 0:o.activeElement)?void 0:s.getRootNode())instanceof ShadowRoot?null==(l=null==(n=null==(a=null==(r=document.activeElement)?void 0:r.shadowRoot)?void 0:a.activeElement)?void 0:n.shadowRoot)?void 0:l.activeElement:(null==(d=this.containingElement)?void 0:d.getRootNode())instanceof ShadowRoot?null==(c=null==(h=document.activeElement)?void 0:h.shadowRoot)?void 0:c.activeElement:document.activeElement;(!this.containingElement||(null==p?void 0:p.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()}))}}handleDocumentMouseDown(t){const e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){ks(t.target,this.panel)}handlePanelSelect(t){const e=t.target;!this.stayOpenOnSelect&&"sd-menu"===e.tagName.toLowerCase()&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if("Escape"===t.key&&this.open)return t.stopPropagation(),this.focusOnTrigger(),void this.hide();if([" ","Enter"].includes(t.key))return t.preventDefault(),void this.handleTriggerClick();const e=this.getMenu();if(e){const i=e.defaultSlot.assignedElements({flatten:!0}),o=i[0],s=i[i.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),i.length>0&&requestAnimationFrame((()=>{("ArrowDown"===t.key||"Home"===t.key)&&(e.setCurrentItem(o),o.focus()),("ArrowUp"===t.key||"End"===t.key)&&(e.setCurrentItem(s),s.focus())})))}}handleTriggerKeyUp(t){" "===t.key&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}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")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled)this.open=!1;else if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await Ei(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=zi(this,"dropdown.show",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Ei(this);const{keyframes:t,options:e}=zi(this,"dropdown.hide",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return ye`<sd-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${Ne("shadow bg-white",this.open?"block pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-popup>`}};or.styles=[We.styles,qe,Ft`:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:right}#dropdown[data-current-placement^=right]::part(popup){transform-origin:left}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],ir([$e("#dropdown")],or.prototype,"popup",2),ir([$e("[part=trigger]")],or.prototype,"trigger",2),ir([$e("[part=panel]")],or.prototype,"panel",2),ir([Ue({type:Boolean,reflect:!0})],or.prototype,"open",2),ir([Ue({type:Boolean,reflect:!0})],or.prototype,"rounded",2),ir([Ue({reflect:!0})],or.prototype,"placement",2),ir([Ue({type:Boolean,reflect:!0})],or.prototype,"disabled",2),ir([Ue({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],or.prototype,"stayOpenOnSelect",2),ir([Ue({attribute:!1})],or.prototype,"containingElement",2),ir([Ue({type:Number})],or.prototype,"distance",2),ir([Ue({type:Number})],or.prototype,"skidding",2),ir([Ue({type:Boolean,reflect:!0,attribute:"no-auto-size"})],or.prototype,"noAutoSize",2),ir([Ue({type:Boolean,reflect:!0,attribute:"no-flip"})],or.prototype,"noFlip",2),ir([Ue({type:Boolean})],or.prototype,"hoist",2),ir([bi("open",{waitUntilFirstUpdate:!0})],or.prototype,"handleOpenChange",1),or=ir([Le("sd-dropdown")],or),Mi("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Mi("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const sr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return or}},Symbol.toStringTag,{value:"Module"}));var rr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,nr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?ar(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&rr(e,i,r),r};let lr=class extends We{constructor(){super(...arguments),this.open=!1,this.inverted=!1,this.localize=new S(this)}updateMaxHeight(){var t;const e=null==(t=this.contentPreview)?void 0:t.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${e}px`),this.style.setProperty("--max-height",e)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}onOpenChange(){this.open?(this.emit("sd-show"),this.updateComplete.then((()=>{this.emit("sd-after-show")}))):(this.emit("sd-hide"),this.updateComplete.then((()=>{this.emit("sd-after-hide")}))),this.details.setAttribute("open",this.open.toString())}async show(){if(!this.open)return this.onToggleClick(),Ti(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),Ti(this,"sd-after-hide")}render(){return ye`<details part="details"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details><button part="toggle" class="${Ne("sd-interactive sd-interactive--reset !h-full !justify-center !w-full !text-base !flex !items-center !underline !underline-offset-2 !toggle",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}">${this.open?ye`<slot name="toggle-open"><sd-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-icon>${this.localize.term("showLess")}</slot>`:ye`<slot name="toggle-closed"><sd-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-icon>${this.localize.term("showMore")}</slot>`}</button>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){const t=document.createElement("div");t.setAttribute("slot","clone"),Array.from(this.childNodes).forEach((e=>{const i=e.cloneNode(!0);t.appendChild(i)})),this.appendChild(t)}};lr.styles=[We.styles,Pt(Ni),qe,Ft`:host{--gradient-color-start:rgba(255, 255, 255, 0);--gradient-color-end:rgba(255, 255, 255, 1);--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start) 0%,var(--gradient-color-end) 80%,var(--gradient-color-end) 100%;position:relative;display:inline-block;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content{max-block-size:var(--max-height-pixel,1000vh)}:host(:not([open])) .content::after{position:absolute;bottom:var(--sd-spacing-0,0);left:var(--sd-spacing-0,0);display:block;width:100%;content:' ';height:var(--gradient-height);background:linear-gradient(180deg,var(--gradient))}:host([inverted]:not([open])) .content::after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,rgba(0,53,142,0) 0,#00358e 80%,#00358e 100%))}`],nr([$e(".content-preview")],lr.prototype,"contentPreview",2),nr([$e("details")],lr.prototype,"details",2),nr([Ue({type:Boolean,reflect:!0})],lr.prototype,"open",2),nr([Ue({type:Boolean,reflect:!0})],lr.prototype,"inverted",2),nr([bi("open",{waitUntilFirstUpdate:!0})],lr.prototype,"onOpenChange",1),lr=nr([Le("sd-expandable")],lr);const dr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return lr}},Symbol.toStringTag,{value:"Module"}));var hr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,pr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?cr(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&hr(e,i,r),r};let ur=class extends We{constructor(){super(...arguments),this.activation="click hover",this.flipDirection="horizontal",this.frontVariant="empty",this.backVariant="empty"}connectedCallback(){super.connectedCallback()}flipFront(){this.front.classList.add("clicked--front"),this.back.classList.add("clicked--back"),this.emit("sd-flip-front"),this.back.focus()}flipBack(){this.front.classList.remove("clicked--front"),this.back.classList.remove("clicked--back"),this.emit("sd-flip-back"),this.front.focus()}handleFrontClick(t){const e=t.target;null===e.getAttribute("onclick")&&null===e.getAttribute("href")&&this.flipFront()}handleBackClick(t){const e=t.target;null===e.getAttribute("onclick")&&null===e.getAttribute("href")&&this.flipBack()}handleFrontKeydown(t){"Enter"===t.code&&this.front===t.target&&this.flipFront()}handleBackKeydown(t){"Enter"===t.code&&this.back===t.target&&this.flipBack()}render(){return ye`<div part="base" class="${Ne("flip-card relative h-full w-full")}"><div part="front" tabindex="0" class="${Ne("flip-card__side flip-card__side--front overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left","click hover"===this.activation&&"hover","primary"===this.frontVariant&&"bg-primary","primary-100"===this.frontVariant&&"bg-primary-100","gradient-dark-bottom"===this.frontVariant||"gradient-light-bottom"===this.frontVariant?"flex-col-reverse":"flex-col","vertical"===this.flipDirection&&"vertical")}" @click="${this.handleFrontClick}" @keydown="${this.handleFrontKeydown}"><div part="media-front" class="${Ne("absolute h-full w-full -z-20",("primary"===this.frontVariant||"primary-100"===this.frontVariant)&&"hidden")}"><slot name="media-front"></slot></div><div part="front-slot-container" class="${Ne("flex",{empty:"text-black",primary:"text-white","primary-100":"text-black","gradient-light-top":"text-black","gradient-light-bottom":"text-black","gradient-dark-top":"text-white","gradient-dark-bottom":"text-white"}[this.frontVariant],{empty:"",primary:"","primary-100":"","gradient-light-top":"bg-gradient-to-b from-white/75 to-white/60","gradient-light-bottom":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark-top":"bg-gradient-to-b from-primary-800/75 to-primary-800/60","gradient-dark-bottom":"bg-gradient-to-t from-primary-800/75 to-primary-800/60"}[this.frontVariant])}"><slot name="front"></slot></div><div part="front-secondary-gradient" class="${Ne("flip-card__gradient",{empty:"mb-auto",primary:"mb-auto","primary-100":"mb-auto","gradient-light-top":"bg-gradient-to-b from-white/60 to-40% mb-auto","gradient-light-bottom":"bg-gradient-to-t from-white/60 to-40% mt-auto","gradient-dark-top":"bg-gradient-to-b from-primary-800/60 to-40% mb-auto","gradient-dark-bottom":"bg-gradient-to-t from-primary-800/60 to-40% mt-auto"}[this.frontVariant])}"></div></div><div part="back" tabindex="0" class="${Ne("flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left","click hover"===this.activation&&"hover","primary"===this.backVariant&&"bg-primary","primary-100"===this.backVariant&&"bg-primary-100","gradient-dark-bottom"===this.backVariant||"gradient-light-bottom"===this.backVariant?"flex-col-reverse":"flex-col","vertical"===this.flipDirection&&"vertical")}" @click="${this.handleBackClick}" @keydown="${this.handleBackKeydown}"><div part="media-back" class="${Ne("absolute h-full w-full -z-20",("primary"===this.backVariant||"primary-100"===this.backVariant)&&"hidden")}"><slot name="media-back"></slot></div><div part="back-slot-container" class="${Ne("flex",{empty:"text-black",primary:"text-white","primary-100":"text-black","gradient-light-top":"text-black","gradient-light-bottom":"text-black","gradient-dark-top":"text-white","gradient-dark-bottom":"text-white"}[this.backVariant],{empty:"",primary:"","primary-100":"","gradient-light-top":"bg-gradient-to-b from-white/75 to-white/60","gradient-light-bottom":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark-top":"bg-gradient-to-b from-primary-800/75 to-primary-800/60","gradient-dark-bottom":"bg-gradient-to-t from-primary-800/75 to-primary-800/60"}[this.backVariant])}"><slot name="back"></slot></div><div part="back-secondary-gradient" class="${Ne("flip-card__gradient",{empty:"mb-auto",primary:"mb-auto","primary-100":"mb-auto","gradient-light-top":"bg-gradient-to-b from-white/60 to-40% mb-auto","gradient-light-bottom":"bg-gradient-to-t from-white/60 to-40% mt-auto","gradient-dark-top":"bg-gradient-to-b from-primary-800/60 to-40% mb-auto","gradient-dark-bottom":"bg-gradient-to-t from-primary-800/60 to-40% mt-auto"}[this.backVariant])}"></div></div></div>`}};ur.styles=[qe,We.styles,Ft`:host{display:block;aspect-ratio:3/4;--name:'';--height:480px;height:var(--height)}.flip-card{perspective:100rem}.flip-card__side{backface-visibility:hidden}.flip-card__side--back{transform:rotateY(180deg)}.clicked--front{transform:rotateY(-180deg)}.clicked--back{transform:rotateY(0)}.flip-card__side--back.vertical{transform:rotateX(180deg)}.clicked--front.vertical{transform:rotateX(-180deg)}.clicked--back.vertical{transform:rotateX(0)}.flip-card__gradient{flex:.4 1 0}@media (hover:hover) and (pointer:fine){.flip-card:hover .flip-card__side--front.hover{transform:rotateY(-180deg)}.flip-card:hover .flip-card__side--back.hover{transform:rotateY(0)}.flip-card:hover .flip-card__side--front.hover.vertical{transform:rotateX(-180deg)}.flip-card:hover .flip-card__side--back.hover.vertical{transform:rotateX(0)}}`],pr([$e('[part="front"]')],ur.prototype,"front",2),pr([$e('[part="back"]')],ur.prototype,"back",2),pr([Ue({reflect:!0})],ur.prototype,"activation",2),pr([Ue({reflect:!0,attribute:"flip-direction"})],ur.prototype,"flipDirection",2),pr([Ue({type:String,reflect:!0,attribute:"front-variant"})],ur.prototype,"frontVariant",2),pr([Ue({type:String,reflect:!0,attribute:"back-variant"})],ur.prototype,"backVariant",2),ur=pr([Le("sd-flipcard")],ur);const gr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ur}},Symbol.toStringTag,{value:"Module"}));var mr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,vr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?br(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&mr(e,i,r),r};let yr=class extends We{constructor(){super(...arguments),this.fixed=!1}connectedCallback(){super.connectedCallback(),this.setCalculatedHeightProperty=this.setCalculatedHeightProperty.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this)}firstUpdated(){this.toggleHeightCalculation()}toggleHeightCalculation(){var t;this.fixed?(this.setCalculatedHeightProperty(),this.addResizeObserver()):(this.setCalculatedHeightProperty(),null==(t=this.resizeObserver)||t.disconnect(),this.resizeObserver=void 0)}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t),t.has("fixed")&&this.toggleHeightCalculation()}onResize(){this.fixed&&this.setCalculatedHeightProperty()}addResizeObserver(){this.resizeObserver=new ResizeObserver((()=>{this.onResize()})),this.refHeaderElement&&this.resizeObserver.observe(this.refHeaderElement)}setCalculatedHeightProperty(){this.fixed&&this.refHeaderElement?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.refHeaderElement.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return ye`<header class="w-full bg-white relative" role="banner" @slotchange="${this.handleSlotChange}"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}handleSlotChange(t){t.target.assignedElements().length>0&&(this.refHeaderElement=t.currentTarget,this.setCalculatedHeightProperty())}};yr.styles=[We.styles,qe,Ft`:host{display:block}:host([fixed]){position:fixed;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header::after{content:'';position:absolute;left:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);top:100%;height:var(--sd-spacing-2,.5rem);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}`],vr([Ue({reflect:!0,type:Boolean})],yr.prototype,"fixed",2),vr([Yo(100)],yr.prototype,"onResize",1),yr=vr([Le("sd-header")],yr);const fr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return yr}},Symbol.toStringTag,{value:"Module"}));var wr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor,xr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Ar(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&wr(e,i,r),r};let kr=class extends We{constructor(){super(...arguments),this.mode="cors",this.allowScripts=!1}executeScript(t){const e=document.createElement("script");[...t.attributes].forEach((t=>e.setAttribute(t.name,t.value))),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{const t=this.src,e=await ri(t,this.mode);if(t!==this.src)return;if(!e.ok)return void this.emit("sd-error",{detail:{status:e.status}});this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach((t=>this.executeScript(t))),this.emit("sd-load")}catch{this.emit("sd-error",{detail:{status:-1}})}}render(){return ye`<slot></slot>`}};kr.styles=[qe,Ft`:host{display:block}`],xr([Ue()],kr.prototype,"src",2),xr([Ue()],kr.prototype,"mode",2),xr([Ue({attribute:"allow-scripts",type:Boolean})],kr.prototype,"allowScripts",2),xr([bi("src")],kr.prototype,"handleSrcChange",1),kr=xr([Le("sd-include")],kr);const Cr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return kr}},Symbol.toStringTag,{value:"Module"})),Sr=(t,e)=>{var i;const o=t._$AN;if(void 0===o)return!1;for(const t of o)null==(i=t._$AO)||i.call(t,e,!1),Sr(t,e);return!0},Er=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===(null==i?void 0:i.size))},Ir=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),Dr(e)}};
|
113
113
|
/**
|
114
114
|
* @license
|
115
115
|
* Copyright 2017 Google LLC
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
117
|
-
*/function Or(t){void 0!==this._$AN?(Er(this),this._$AM=t,Ir(this)):this._$AM=t}function Br(t,e=!1,i=0){const o=this._$AH,s=this._$AN;if(void 0!==s&&0!==s.size)if(e)if(Array.isArray(o))for(let t=i;t<o.length;t++)Sr(o[t],!1),Er(o[t]);else null!=o&&(Sr(o,!1),Er(o));else Sr(this,t)}const Dr=t=>{2==t.type&&(t._$AP??(t._$AP=Br),t._$AQ??(t._$AQ=Or))};class Mr extends ci{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Ir(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,o;t!==this.isConnected&&(this.isConnected=t,t?null==(i=this.reconnected)||i.call(this):null==(o=this.disconnected)||o.call(this)),e&&(Sr(this,t),Er(this))}setValue(t){if(os(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const zr=hi(class extends Mr{constructor(t){if(super(t),this.handlePointerDown=t=>{0!==t.button||this.host.disabled||this.spinOnLongPressCallback(t)},this.handlePointerUp=t=>{null==t||t.preventDefault(),null==t||t.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)},6!==t.type||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return Ae}update(t,[e]){return void 0===this.callbacks&&void 0===this.host&&(this.host=t.element,this.callbacks={...e},this.host.addEventListener("pointerdown",this.handlePointerDown)),we}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(t){var e;t.preventDefault(),t.stopPropagation(),this.timeout=setTimeout((()=>{this.timeout=void 0,this.interval=setInterval((()=>{this.callbacks.start()}),50)}),500),document.addEventListener("pointerup",this.handlePointerUp),null==(e=this.observer)||e.disconnect(),this.observer=new MutationObserver((t=>{t.forEach((t=>{"disabled"===t.attributeName&&this.stopSpinningAndCleanUp()}))})),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var t;clearInterval(this.interval),clearTimeout(this.timeout),null==(t=this.observer)||t.disconnect()}});var Tr=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,Fr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Pr(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Tr(e,i,r),r};const jr=!(null==(i=navigator.userAgentData)?void 0:i.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let Lr=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new Gi(this,"help-text","label","left","right","message","placeholder"),this.localize=new S(this),this.hasFocus=!1,this.showValidStyle=!1,this.showInvalidStyle=!1,this.type="text",this.size="lg",this.value="",this.defaultValue="",this.placeholder="",this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.spinButtons=!1,this.form="",this.name="",this.title="",this.required=!1,this.styleOnValid=!1,this.spellcheck=!0}get valueAsDate(){var t;return(null==(t=this.input)?void 0:t.valueAsDate)??null}set valueAsDate(t){const e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t;return(null==(t=this.input)?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleKeyDown(t){const e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"===t.key&&!e&&setTimeout((()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}))}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(void 0===this.min||null===this.min)return!1;const t="string"==typeof this.min?parseFloat(this.min):this.min;return this.valueAsNumber<=t}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(void 0===this.max||null===this.max)return!1;const t="string"==typeof this.max?parseFloat(this.max):this.max;return this.valueAsNumber>=t}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,o){this.input.setRangeText(t,e,i,o),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return null==(t=this.input)?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=(this.hasSlotController.test("description"),this.hasSlotController.test("left")),o=this.hasSlotController.test("right"),s=!!this.label||!!t,r=!!this.helpText||!!e,a=this.clearable&&!this.readonly&&("number"==typeof this.value||this.value.length>0),n=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",l="sm"===this.size?"text-sm":"text-base",d={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"}[n],h=this.disabled?"text-neutral-500":"text-primary",c={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],p={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return ye`<div part="form-control" class="${Ne(this.disabled&&"pointer-events-none")}"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${Ne(s?"inline-block":"hidden",l)}" for="input" aria-hidden="${s?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="relative w-full"><div part="border" class="${Ne("absolute w-full h-full pointer-events-none border rounded-default",d)}"></div><div part="base" class="${Ne("px-4 flex flex-row items-center rounded-default transition-all","lg"===this.size?"py-2":"py-1",this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly?"bg-neutral-100":"bg-white","disabled"===n?"text-neutral-500":"text-black")}">${i?ye`<slot name="left" part="left" class="${Ne("inline-flex","sm"===this.size?"mr-1":"mr-2",h,p)}"></slot>`:""} <input part="input" id="input" class="${Ne("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700","sm"===this.size?"h-6":"h-8",l)}" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${Do(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Do(this.placeholder)}" minlength="${Do(this.minlength)}" maxlength="${Do(this.maxlength)}" min="${Do(this.min)}" max="${Do(this.max)}" step="${Do(this.step)}" .value="${rs(this.value)}" autocapitalize="${Do("password"===this.type?"off":this.autocapitalize)}" autocomplete="${Do("password"===this.type?"off":this.autocomplete)}" autocorrect="${Do("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${Do(this.pattern)}" enterkeyhint="${Do(this.enterkeyhint)}" inputmode="${Do(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?ye`<button part="clear-button" class="${Ne("flex justify-center ",c)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Ne("icon-fill-neutral-800",p)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&"password"===this.type?ye`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?ye`<slot name="show-password-icon"><sd-icon class="${Ne(h,c,p)}" library="system" name="eye"></sd-icon></slot>`:ye`<slot name="hide-password-icon"><sd-icon class="${Ne(h,c,p)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||jr?"":ye`<sd-icon class="${Ne(h,c,p)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?ye`<sd-icon class="${Ne(h,c,p)}" library="system" name="clock"></sd-icon>`:""} ${"search"===this.type?ye`<button class="flex items-center" type="button" tabindex="-1"><sd-icon class="${Ne(h,c,p)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${Ne("text-error",c,p)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?ye`<sd-icon class="${Ne("text-success flex-shrink-0",c,p)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${o?ye`<slot name="right" part="right" class="${Ne("inline-flex",h,c,p)}"></slot>`:""} ${"number"===this.type&&this.spinButtons?ye`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${zr({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-icon name="system/minus-circle" label="Decrease value" class="${Ne(h,c,p)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${zr({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon name="system/plus-circle" label="Decrease value" class="${Ne(h,c,p)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${Ne("text-sm text-neutral-700",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};Lr.styles=[qe,We.styles,Ft`:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label::after{content:' *'}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174) / var(--tw-text-opacity))}`],Fr([$e("#input")],Lr.prototype,"input",2),Fr([$e("#invalid-message")],Lr.prototype,"invalidMessage",2),Fr([Ye()],Lr.prototype,"hasFocus",2),Fr([Ye()],Lr.prototype,"showValidStyle",2),Fr([Ye()],Lr.prototype,"showInvalidStyle",2),Fr([Ue({reflect:!0})],Lr.prototype,"type",2),Fr([Ue({reflect:!0})],Lr.prototype,"size",2),Fr([Ue()],Lr.prototype,"inputmode",2),Fr([Ue()],Lr.prototype,"value",2),Fr([is()],Lr.prototype,"defaultValue",2),Fr([Ue()],Lr.prototype,"placeholder",2),Fr([Ue()],Lr.prototype,"label",2),Fr([Ue({attribute:"help-text"})],Lr.prototype,"helpText",2),Fr([Ue({type:Boolean})],Lr.prototype,"clearable",2),Fr([Ue({type:Boolean,reflect:!0})],Lr.prototype,"disabled",2),Fr([Ue({type:Boolean,reflect:!0})],Lr.prototype,"readonly",2),Fr([Ue({attribute:"password-toggle",type:Boolean})],Lr.prototype,"passwordToggle",2),Fr([Ue({attribute:"password-visible",type:Boolean})],Lr.prototype,"passwordVisible",2),Fr([Ue({attribute:"spin-buttons",type:Boolean})],Lr.prototype,"spinButtons",2),Fr([Ue({type:Number})],Lr.prototype,"minlength",2),Fr([Ue({type:Number})],Lr.prototype,"maxlength",2),Fr([Ue()],Lr.prototype,"min",2),Fr([Ue()],Lr.prototype,"max",2),Fr([Ue({reflect:!0})],Lr.prototype,"form",2),Fr([Ue()],Lr.prototype,"name",2),Fr([Ue()],Lr.prototype,"title",2),Fr([Ue({type:Boolean,reflect:!0})],Lr.prototype,"required",2),Fr([Ue()],Lr.prototype,"pattern",2),Fr([Ue()],Lr.prototype,"step",2),Fr([Ue()],Lr.prototype,"autocapitalize",2),Fr([Ue()],Lr.prototype,"autocorrect",2),Fr([Ue()],Lr.prototype,"autocomplete",2),Fr([Ue({type:Boolean})],Lr.prototype,"autofocus",2),Fr([Ue()],Lr.prototype,"enterkeyhint",2),Fr([Ue({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Lr.prototype,"styleOnValid",2),Fr([Ue({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Lr.prototype,"spellcheck",2),Fr([bi("disabled",{waitUntilFirstUpdate:!0})],Lr.prototype,"handleDisabledChange",1),Fr([bi("step",{waitUntilFirstUpdate:!0})],Lr.prototype,"handleStepChange",1),Fr([bi("value",{waitUntilFirstUpdate:!0})],Lr.prototype,"handleValueChange",1),Lr=Fr([Le("sd-input")],Lr);const Qr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Lr}},Symbol.toStringTag,{value:"Module"}));var Rr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,Yr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Ur(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Rr(e,i,r),r};let Hr=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"[default]","icon-left","icon-right"),this.standalone=!1,this.size="inherit",this.inverted=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return ye`<a part="base" class="${Ne("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${Do(this.href||void 0)}" target="${Do(this.target||void 0)}" download="${Do(this.download)}" rel="${Do(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${Ne("inline",t["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${Ne("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};Hr.styles=[We.styles,Ft`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],Yr([$e("a")],Hr.prototype,"button",2),Yr([Ue({type:Boolean,reflect:!0})],Hr.prototype,"standalone",2),Yr([Ue({reflect:!0})],Hr.prototype,"size",2),Yr([Ue({type:Boolean,reflect:!0})],Hr.prototype,"inverted",2),Yr([Ue()],Hr.prototype,"href",2),Yr([Ue()],Hr.prototype,"target",2),Yr([Ue()],Hr.prototype,"download",2),Hr=Yr([Le("sd-link")],Hr);const $r=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Hr}},Symbol.toStringTag,{value:"Module"}));var Gr=Object.defineProperty,Vr=Object.getOwnPropertyDescriptor,qr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Vr(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Gr(e,i,r),r};let Nr=class extends We{constructor(){super(...arguments),this.variant="main",this.state="default",this.animated=!1,this.notInteractive=!1,this.href="",this.marker={cluster:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" opacity="1" r="20"/><circle cx="25" cy="25" opacity=".3" r="25"/></svg>`,main:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z"/><circle cx="30" cy="28" r="10" fill="#fff"/></svg>`,place:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd"/></svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){const t=this.isLink(),e=this.notInteractive?Eo`div`:t?Eo`a`:Eo`button`;return Oo`<${e} part="base" class="${Ne("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${Do(t?this.href:void 0)}" target="${Do(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${Do(this.notInteractive||t?void 0:"button")}" aria-labelledby="${Do(this.notInteractive?void 0:"content")}"><div part="marker" class="${Ne("inline-flex",this.animated&&("main"===this.variant||"place"===this.variant)&&"animate-bounce-once","cluster"===this.variant&&"hover"===this.state&&"scale-110 fill-primary-500","cluster"===this.variant&&!this.notInteractive&&"transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500","main"===this.variant&&"hover"===this.state&&"fill-accent-550","main"===this.variant&&"active"===this.state&&"fill-accent-700","main"===this.variant&&!this.notInteractive&&"hover:fill-accent-550 active:fill-accent-700","place"===this.variant&&"default"===this.state&&"fill-white","place"===this.variant&&"hover"===this.state&&"fill-primary-100","place"===this.variant&&"active"===this.state&&"fill-primary-200","place"===this.variant&&!this.notInteractive&&"hover:fill-primary-100",{cluster:"fill-primary",main:"fill-accent *:drop-shadow-md",place:"*:drop-shadow-md"}[this.variant])}">${this.marker[this.variant]}</div><div id="content" part="content" class="${Ne("absolute self-center pointer-events-none","cluster"===this.variant&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Nr.styles=[qe,We.styles,Ft`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}`],qr([Ue({reflect:!0})],Nr.prototype,"variant",2),qr([Ue({reflect:!0})],Nr.prototype,"state",2),qr([Ue({type:Boolean,reflect:!0})],Nr.prototype,"animated",2),qr([Ue({type:Boolean,reflect:!0,attribute:"not-interactive"})],Nr.prototype,"notInteractive",2),qr([Ue()],Nr.prototype,"href",2),qr([Ue()],Nr.prototype,"target",2),Nr=qr([Le("sd-map-marker")],Nr);const Kr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Nr}},Symbol.toStringTag,{value:"Module"}));var Zr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Wr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Jr(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Zr(e,i,r),r};let _r=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"[default]","description","children"),this.vertical=!1,this.size="base",this.current=!1,this.disabled=!1,this.chevron=!1,this.relaxed=!1,this.divider=!1,this.indented=!1,this.open=!1,this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.isAccordion&&!this.isLink?Eo`summary`:this.separated?Eo`div`:this.isLink?Eo`a`:Eo`button`}render(){const t=this.tag,e=this.isLink,i=this.isButton,o=this.isAccordion,s=(this.hasSlotController.test("[default]"),this.hasSlotController.test("main"),this.hasSlotController.test("description")),r=this.hasSlotController.test("children"),a=this.vertical?"pb-3":"pb-2",n=Oo`<${t} part="base" class="${Ne("cursor-pointer relative focus-visible:focus-outline",{base:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",o?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-all min-h-[48px] px-4")}" aria-controls="${Do(o?"navigation-item-details":void 0)}" aria-current="${Do(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${Do(i?this.disabled:void 0)}" href="${Do(e?this.href:void 0)}" target="${Do(e?this.target:void 0)}" download="${Do(e?this.download:void 0)}" rel="${Do(e&&this.target?"noreferrer noopener":void 0)}" role="${e?"link":"button"}" tabindex="${this.disabled||this.separated?"-1":"0"}" @click="${this.separated?void 0:o?this.handleClickSummary:i?this.handleClickButton:void 0}"><div part="current-indicator" class="${Ne("absolute left-0 pointer-events-none transition-all duration-150",this.vertical?"w-1 h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"h-1 w-full bottom-0",this.current?"bg-accent":"bg-transparent",this.disabled&&"bg-neutral-500")}"></div><span part="content-area" class="${Ne("relative pt-3 inline-flex justify-between items-center",o?"grow":"w-full",s||this.separated?"pb-1":a,this.calculatePaddingX)}">${this.divider&&this.vertical?Oo`<sd-divider part="divider" class="${Ne("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated?Oo`<a class="${Ne("mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",!s&&"py-4")}" href="${Do(e?this.href:void 0)}" target="${Do(e?this.target:void 0)}" download="${Do(e?this.download:void 0)}"><slot part="content" class="inline"></slot></a>`:Oo`<slot part="content" class="inline"></slot>`} </span>${(this.chevron||r)&&this.vertical?this.separated?Oo`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${Ne("mr-4 h-6 w-6 transition-all",o||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:Oo`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${Ne("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${s&&this.vertical?Oo`<slot name="description" part="description" class="${Ne("inline-block text-sm text-left text-black",o||this.separated?"grow":"w-full",this.separated?"px-4":this.calculatePaddingX,a)}"></slot>`:""}</${t}>`;return o?Oo`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative flex">${n}<slot name="children"></slot></details>`:this.separated?Oo`<div part="details" id="navigation-item-details" class="relative flex flex-col">${n}${this.open?Oo`<slot name="children"></slot>`:""}</div>`:Oo`${n}`}};_r.styles=[qe,We.styles,Pt(Ni),Ft`:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"vertical",2),Wr([Ue({reflect:!0})],_r.prototype,"size",2),Wr([Ue({reflect:!0})],_r.prototype,"href",2),Wr([Ue()],_r.prototype,"target",2),Wr([Ue()],_r.prototype,"download",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"current",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"disabled",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"chevron",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"relaxed",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"divider",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"indented",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"open",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"separated",2),_r=Wr([Le("sd-navigation-item")],_r);const Xr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _r}},Symbol.toStringTag,{value:"Module"}));var ta=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,ia=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?ea(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&ta(e,i,r),r};const oa=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),sa=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let ra=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.variant="info",this.open=!1,this.closable=!1,this.duration=1/0,this.durationIndicator=!1,this.toastStack="top-right",this.remainingDuration=this.duration,this.startTime=Date.now()}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>{this.hide()}),this.remainingDuration))}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Ei(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=zi(this,"notification.show",{dir:this.localize.dir()});await ki(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Ei(this.base);const{keyframes:t,options:e}=zi(this,"notification.hide",{dir:this.localize.dir()});await ki(this.base,t,e),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}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")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?sa:oa;null===e.parentElement&&document.body.append(e),e.appendChild(this),requestAnimationFrame((()=>{this.clientWidth,this.show()})),this.addEventListener("sd-after-hide",(()=>{e.removeChild(this),t(),null===e.querySelector("sd-notification")&&e.remove()}),{once:!0})}))}render(){return ye`<div part="base" class="${Ne("w-full overflow-hidden flex items-stretch relative m-2")}" role="alert" id="notification" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}"><slot name="icon" part="icon" class="${Ne("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${Ne("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable?ye`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?ye`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${Ne("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div>`}};ra.styles=[qe,We.styles,Ft`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],ia([$e('[part~="base"]')],ra.prototype,"base",2),ia([Ue({reflect:!0})],ra.prototype,"variant",2),ia([Ue({type:Boolean,reflect:!0})],ra.prototype,"open",2),ia([Ue({type:Boolean,reflect:!0})],ra.prototype,"closable",2),ia([Ue({type:Number})],ra.prototype,"duration",2),ia([Ue({type:Boolean,reflect:!0,attribute:"duration-indicator"})],ra.prototype,"durationIndicator",2),ia([Ue({reflect:!0,attribute:"toast-stack"})],ra.prototype,"toastStack",2),ia([bi("open",{waitUntilFirstUpdate:!0})],ra.prototype,"handleOpenChange",1),ia([bi("duration")],ra.prototype,"handleDurationChange",1),ra=ia([Le("sd-notification")],ra),Mi("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Mi("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});const aa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ra}},Symbol.toStringTag,{value:"Module"}));var na=Object.defineProperty,la=Object.getOwnPropertyDescriptor,da=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?la(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&na(e,i,r),r};let ha=class extends We{constructor(){super(...arguments),this.disabled=!1,this.label=""}handleDisableOptions(){const{disabled:t}=this;this.defaultSlot.assignedElements().filter((t=>"sd-option"===t.tagName.toLowerCase())).forEach((e=>{e.disabled=t}))}handleDisabledChange(){this.handleDisableOptions()}render(){const{disabled:t}=this;return Oo`<div role="${t?"presentation":"group"}" class="${Ne(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-divider id="divider" class="pt-2 pb-4" part="divider"></sd-divider><div part="label-container" class="${Ne(this.disabled?"text-neutral-500":"text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="group" part="options"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`}};ha.dependencies={"sd-divider":qs},ha.styles=[qe,We.styles,Ft`:host{--display-divider:block}#divider{display:var(--display-divider)}`],da([$e("slot:not([name])")],ha.prototype,"defaultSlot",2),da([Ue({reflect:!0,type:Boolean})],ha.prototype,"disabled",2),da([Ue()],ha.prototype,"label",2),da([bi("disabled",{waitUntilFirstUpdate:!0})],ha.prototype,"handleDisabledChange",1),ha=da([Le("sd-optgroup")],ha);const ca=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ha}},Symbol.toStringTag,{value:"Module"}));var pa=Object.defineProperty,ua=Object.getOwnPropertyDescriptor,ga=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?ua(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&pa(e,i,r),r};let ma=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"default","left","right"),this.current=!1,this.selected=!1,this.hasHover=!1,this.size="lg",this.checkbox=!1,this.disabled=!1,this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){const t=this.getTextLabel();typeof this.cachedTextLabel>"u"?this.cachedTextLabel=t:t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){return(this.textContent??"").trim()}render(){this.hasSlotController.test("default");const t=this.hasSlotController.test("left"),e=this.hasSlotController.test("right");return ye`<div part="base" class="${Ne("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${Ne("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?ye`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${Ne("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?ye`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""}</span>`:""} ${t?ye`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${e?ye`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};ma.styles=[qe,We.styles,Ft`:host{position:relative;display:block;width:100%;outline:2px solid transparent!important;outline-offset:2px!important}`],ga([$e('[part="base"]')],ma.prototype,"defaultSlot",2),ga([Ye()],ma.prototype,"current",2),ga([Ye()],ma.prototype,"selected",2),ga([Ye()],ma.prototype,"hasHover",2),ga([Ue({reflect:!0})],ma.prototype,"size",2),ga([Ue({type:Boolean,reflect:!0})],ma.prototype,"checkbox",2),ga([Ue({type:Boolean,reflect:!0})],ma.prototype,"disabled",2),ga([Ue({reflect:!0})],ma.prototype,"value",2),ga([bi("disabled")],ma.prototype,"handleDisabledChange",1),ga([bi("selected")],ma.prototype,"handleSelectedChange",1),ga([bi("value")],ma.prototype,"handleValueChange",1),ma=ga([Le("sd-option")],ma);const ba=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ma}},Symbol.toStringTag,{value:"Module"}));var va=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,fa=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?ya(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&va(e,i,r),r};let wa=class extends Li{constructor(){super(...arguments),this.expandable=!1}render(){return ye`<div part="base" class="sm:p-6"><header part="header" id="header" class="${Ne("text-base font-bold items-center focus-visible:focus-outline text-primary relative group flex flex-row hover:bg-transparent gap-3 pb-3 pt-0 px-0 sm:flex-col sm:gap-4 sm:pb-8",this.expandable&&"cursor-pointer select-none")}" role="${Do(this.expandable?"button":void 0)}" aria-expanded="${Do(this.expandable?this.open?"true":"false":void 0)}" aria-controls="${Do(this.expandable?"content":void 0)}" tabindex="${this.expandable?"0":"-1"}" @click="${this.expandable?this.handleSummaryClick:null}" @keydown="${this.expandable?this.handleSummaryKeyDown:null}"><div part="icon" class="${Ne("flex flex-grow-0 flex-shrink-0 flex-auto items-center",!this.expandable&&"cursor-default")}"><slot name="icon"></slot></div><slot name="summary" part="summary" class="${Ne("flex flex-auto items-start text-left text-base leading-normal font-normal sm:leading-tight sm:text-3xl sm:text-center",this.expandable?"text-primary":"text-black cursor-default")}">${this.summary}</slot><span part="summary-icon" class="${Ne("flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-all ease-in-out duration-300 text-xl sm:text-4xl sm:mt-2",this.open&&"rotate-180",!this.expandable&&"hidden")}"><slot name="expand-icon" class="${Ne(this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot><slot name="collapse-icon" class="${Ne(!this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot></span></header><div part="content" id="content" class="${Ne("overflow-hidden",!this.expandable&&"hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></div>`}};wa.styles=[Li.styles,Ft`:host{display:block}@media (min-width:640px){[part=summary-icon]{font-size:var(--sd-spacing-12,3rem)}}[part=icon]{font-size:var(--sd-spacing-12,3rem)}@media (min-width:640px){[part=icon]{font-size:var(--sd-spacing-24,6rem)}}`],fa([Ue({type:Boolean,reflect:!0})],wa.prototype,"expandable",2),wa=fa([Le("sd-quickfact")],wa),Mi("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}}),Mi("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});const Aa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return wa}},Symbol.toStringTag,{value:"Module"}));var xa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,Ca=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?ka(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&xa(e,i,r),r};let Sa=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"[default]","icon"),this.hasFocus=!1,this.size="lg",this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled)return t.preventDefault(),void t.stopPropagation();this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){const t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),i=`${this.size}-${t?"label":"no-label"}`;return ye`<div part="base" role="presentation" class="relative"><button part="${"button"+(this.checked?" button--checked":"")}" role="radio" aria-checked="${this.checked}" class="${Ne("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline","sm"===this.size?"text-sm":"text-base",this.checked&&!this.disabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":this.disabled&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":this.disabled&&this.checked?"bg-neutral-500 border-neutral-500 text-white hover:cursor-not-allowed":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",t&&"px-4",this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",i)}" aria-disabled="${this.disabled}" type="button" value="${Do(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${Ne(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?ye`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};Sa.styles=[We.styles,qe,Ft`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:var(--sd-spacing-0,0);z-index:-10;opacity:var(--sd-opacity-0,0);outline-style:dotted;outline-width:1px;outline-color:rgb(var(--sd-color-error,204 25 55) / 1)}.lg-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{height:var(--sd-spacing-12,3rem);width:var(--sd-spacing-12,3rem)}.md-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{height:var(--sd-spacing-10,2.5rem);width:var(--sd-spacing-10,2.5rem)}.sm-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}:host(.sd-button-group__button--first:not(.sd-button-group__button--last)) button{border-top-right-radius:var(--sd-border-radius-none,0);border-bottom-right-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--last:not(.sd-button-group__button--first)) button{border-top-left-radius:var(--sd-border-radius-none,0);border-bottom-left-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button:not(.sd-button-group__button--first)){margin-inline-start:-1px}:host(.sd-button-group__button--hover){z-index:10}:host(.sd-button-group__button--focus),:host(.sd-button-group__button[checked]){z-index:20}`],Ca([$e(".button")],Sa.prototype,"input",2),Ca([$e(".hidden-input")],Sa.prototype,"hiddenInput",2),Ca([Ye()],Sa.prototype,"hasFocus",2),Ca([Ue({reflect:!0})],Sa.prototype,"size",2),Ca([Ue({type:Boolean,reflect:!0})],Sa.prototype,"disabled",2),Ca([Ue({type:Boolean,reflect:!0})],Sa.prototype,"checked",2),Ca([Ue()],Sa.prototype,"value",2),Ca([bi("disabled",{waitUntilFirstUpdate:!0})],Sa.prototype,"handleDisabledChange",1),Sa=Ca([Le("sd-radio-button")],Sa);const Ea=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Sa}},Symbol.toStringTag,{value:"Module"})),Ia=Ft`${qe}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var Oa=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,Da=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Ba(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Oa(e,i,r),r};let Ma=class extends We{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=za(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=za(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=za(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=za(t.target);null==e||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach((e=>{const i=t.indexOf(e),o=za(e);null!==o&&(o.classList.add("sd-button-group__button"),o.classList.toggle("sd-button-group__button--first",0===i),o.classList.toggle("sd-button-group__button--inner",i>0&&i<t.length-1),o.classList.toggle("sd-button-group__button--last",i===t.length-1),o.classList.toggle("sd-button-group__button--radio","sd-radio-button"===o.tagName.toLowerCase()))}))}render(){return ye`<slot part="base" class="button-group" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};function za(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}Ma.styles=Ia,Da([$e("slot")],Ma.prototype,"defaultSlot",2),Da([Ye()],Ma.prototype,"disableRole",2),Da([Ue()],Ma.prototype,"label",2),Ma=Da([Le("sd-button-group")],Ma);var Ta=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Fa=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Pa(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Ta(e,i,r),r};let ja=class extends We{constructor(){super(...arguments),this.checked=!1,this.hasFocus=!1,this.size="lg",this.disabled=!1,this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){this.disabled||(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return ye`<span part="base" class="${Ne("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",this.disabled&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${this.checked?"control--checked":"control--unchecked"}" class="${Ne("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?ye`<span part="checked" class="${Ne("rounded-full inline-flex text-white border bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${Ne("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};ja.styles=[We.styles,Ft`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:rgb(var(--sd-color-primary,0 53 142) / 1)}`],Fa([Ye()],ja.prototype,"checked",2),Fa([Ye()],ja.prototype,"hasFocus",2),Fa([Ue({reflect:!0})],ja.prototype,"size",2),Fa([Ue({type:Boolean,reflect:!0})],ja.prototype,"disabled",2),Fa([Ue()],ja.prototype,"value",2),Fa([Ue({type:Boolean,reflect:!0})],ja.prototype,"invalid",2),Fa([bi("checked")],ja.prototype,"handleCheckedChange",1),Fa([bi("disabled",{waitUntilFirstUpdate:!0})],ja.prototype,"handleDisabledChange",1),ja=Fa([Le("sd-radio")],ja);const La=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ja}},Symbol.toStringTag,{value:"Module"}));var Qa=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Ua=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Ra(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Qa(e,i,r),r};let Ya=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new Gi(this,"label","error-text"),this.customValidityMessage="",this.hasButtonGroup=!1,this.defaultValue="",this.showInvalidStyle=!1,this.size="lg",this.required=!1,this.orientation="vertical",this.label="",this.boldLabel=!1,this.name="option",this.value="",this.form=""}get validity(){const t=this.required&&!this.value;return""!==this.customValidityMessage?ko:t?xo:Ao}get validationMessage(){const t=this.required&&!this.value;return""!==this.customValidityMessage?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){const e=t.target.closest("sd-radio, sd-radio-button"),i=this.getAllRadios(),o=this.value;e.disabled||(this.value=e.value,i.forEach((t=>t.checked=t===e)),this.value!==o&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const e=this.getAllRadios().filter((t=>!t.disabled)),i=e.find((t=>t.checked))??e[0],o=" "===t.key?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,s=this.value;let r=e.indexOf(i)+o;r<0&&(r=e.length-1),r>e.length-1&&(r=0),this.getAllRadios().forEach((t=>{t.checked=!1,this.hasButtonGroup||(t.tabIndex=-1)})),this.value=e[r].value,e[r].checked=!0,this.hasButtonGroup?e[r].shadowRoot.querySelector("button").focus():(e[r].tabIndex=0,e[r].focus()),this.value!==s&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){const t=this.getAllRadios(),e=t.find((t=>t.checked))||t[0];e&&e.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var t,e;const i=this.getAllRadios();if(await Promise.all(i.map((async t=>{await t.updateComplete,t.checked=t.value===this.value,t.size=this.size,t instanceof ja&&(t.invalid=this.showInvalidStyle)}))),this.hasButtonGroup=i.some((t=>"sd-radio-button"===t.tagName.toLowerCase())),!i.some((t=>t.checked)))if(this.hasButtonGroup){const e=null==(t=i[0].shadowRoot)?void 0:t.querySelector("button");e&&(e.tabIndex=0)}else i[0].tabIndex=0;if(this.hasButtonGroup){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("sd-button-group");t&&(t.disableRole=!0)}}syncRadios(){customElements.get("sd-radio")&&customElements.get("sd-radio-button")?this.syncRadioElements():(customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then((()=>this.syncRadios())),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then((()=>this.syncRadios())))}updateCheckedRadio(){this.getAllRadios().forEach((t=>t.checked=t.value===this.value)),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){const t=this.required&&!this.value,e=""!==this.customValidityMessage;return!t&&!e||(this.formControlController.emitInvalidEvent(),!1)}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout((()=>this.validationInput.hidden=!0),1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=!!this.label||!!t,i=ye`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return ye`<fieldset part="form-control" class="${Ne("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message"><div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${Ne("p-0 leading-normal text-black text-left",!e&&"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend><slot name="tooltip"></slot></div><div part="form-control-input" class="${Ne("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?ye`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${i}</sd-button-group>`:i}</div></fieldset>${this.formControlController.renderInvalidMessage()}`}};Ya.dependencies={"sd-button-group":Ma},Ya.styles=[qe,We.styles,Ft`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label::after{content:' *'}`],Ua([$e("slot:not([name])")],Ya.prototype,"defaultSlot",2),Ua([$e("#validation-input")],Ya.prototype,"validationInput",2),Ua([$e("#invalid-message")],Ya.prototype,"invalidMessage",2),Ua([Ye()],Ya.prototype,"hasButtonGroup",2),Ua([Ye()],Ya.prototype,"defaultValue",2),Ua([Ye()],Ya.prototype,"showInvalidStyle",2),Ua([Ue({reflect:!0})],Ya.prototype,"size",2),Ua([Ue({type:Boolean,reflect:!0})],Ya.prototype,"required",2),Ua([Ue({reflect:!0})],Ya.prototype,"orientation",2),Ua([Ue()],Ya.prototype,"label",2),Ua([Ue({type:Boolean,reflect:!0})],Ya.prototype,"boldLabel",2),Ua([Ue()],Ya.prototype,"name",2),Ua([Ue({reflect:!0})],Ya.prototype,"value",2),Ua([Ue({reflect:!0})],Ya.prototype,"form",2),Ua([bi("size",{waitUntilFirstUpdate:!0})],Ya.prototype,"handleSizeChange",1),Ua([bi("showInvalidStyle",{waitUntilFirstUpdate:!0})],Ya.prototype,"handleInvalidChange",1),Ua([bi("value")],Ya.prototype,"handleValueChange",1),Ya=Ua([Le("sd-radio-group")],Ya);const Ha=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ya}},Symbol.toStringTag,{value:"Module"}));var $a=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Va=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Ga(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&$a(e,i,r),r};let qa=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.orientation="horizontal",this.scrollbars=!1,this.buttons=!1,this.shadows=!1,this.inset=!1,this.step=150,this.canScroll={left:!1,right:!1,up:!1,down:!1},this.isScrollHorizontalEnabled=!1,this.isScrollVerticalEnabled=!1,this.isKeyboardNavigation=!1,this.scrollContainer=null}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver((()=>{this.updateScrollIndicatorVisibility()})),this.updateComplete.then((()=>{this.scrollContainer=this.renderRoot.querySelector(".scroll-container"),this.scrollContainer&&this.resizeObserver.observe(this.scrollContainer)}))}disconnectedCallback(){super.disconnectedCallback(),this.scrollContainer&&this.resizeObserver.unobserve(this.scrollContainer)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.updateScrollIndicatorVisibility())}updateScrollEnabledFlags(){const t=this.orientation;this.isScrollHorizontalEnabled="horizontal"===t||"auto"===t,this.isScrollVerticalEnabled="vertical"===t||"auto"===t}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){const t=this.container;if(!t)return;const e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,i=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,o=this.isScrollVerticalEnabled&&t.scrollTop>0,s=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1,r=this.renderRoot.querySelector('[part="button-start"]'),a=this.renderRoot.querySelector('[part="button-end"]');this.canScroll={left:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:e,right:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:i,up:this.isKeyboardNavigation?this.isScrollVerticalEnabled:o,down:this.isKeyboardNavigation?this.isScrollVerticalEnabled:s};const n=e||o,l=i||s;n&&this.dispatchEvent(new CustomEvent("start")),l&&this.dispatchEvent(new CustomEvent("end")),this.isKeyboardNavigation&&(r&&(r.hidden=!n),r&&n&&!(s||i)&&r.focus(),a&&(a.hidden=!l),a&&l&&!o&&!e&&a.focus())}handleScroll(t,e){var i;const o="left"===t||"up"===t?-this.step:this.step,s="left"===t||"right"===t?"left":"top";this.isKeyboardNavigation="mouse"!==(null==e?void 0:e.pointerType);const r={behavior:"smooth"};r[s]=o,null==(i=this.scrollContainer)||i.scrollBy(r);const a=`button-${t}`;this.dispatchEvent(new CustomEvent(a,{bubbles:!0,composed:!0}))}render(){const t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none";return ye`<div part="base" class="${Ne("scroll-container flex overflow-hidden flex-1","horizontal"===this.orientation&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden","vertical"===this.orientation&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden","auto"===this.orientation&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?ye`${this.isScrollHorizontalEnabled?ye`${this.canScroll.left?ye`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${Ne(t)}" @click="${t=>this.handleScroll("left",t)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.right?ye`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${Ne(t)}" @click="${t=>this.handleScroll("right",t)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?ye`${this.canScroll.up?ye`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${Ne(t)}" @click="${t=>this.handleScroll("up",t)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.down?ye`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${Ne(t)}" @click="${t=>this.handleScroll("down",t)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?ye`${this.isScrollHorizontalEnabled?ye`${this.canScroll.left?ye`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?ye`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?ye`${this.canScroll.up?ye`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?ye`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};qa.styles=[We.styles,Pt(Ni),qe,Ft`:host{--gradient-color:rgba(255, 255, 255, 0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;position:relative;display:flex;overflow:hidden}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-right]{background:linear-gradient(90deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-top]{background:linear-gradient(0deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-bottom]{background:linear-gradient(180deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}.sd-icon--top{align-self:flex-start}.sd-icon--down{align-self:flex-end}`],Va([Ue({type:String,reflect:!0})],qa.prototype,"orientation",2),Va([Ue({type:Boolean,reflect:!0})],qa.prototype,"scrollbars",2),Va([Ue({type:Boolean,reflect:!0})],qa.prototype,"buttons",2),Va([Ue({type:Boolean,reflect:!0})],qa.prototype,"shadows",2),Va([Ue({type:Boolean,reflect:!0})],qa.prototype,"inset",2),Va([Ue({type:Number,reflect:!0})],qa.prototype,"step",2),Va([Ye()],qa.prototype,"canScroll",2),Va([Ye()],qa.prototype,"isScrollHorizontalEnabled",2),Va([Ye()],qa.prototype,"isScrollVerticalEnabled",2),Va([Ye()],qa.prototype,"isKeyboardNavigation",2),qa=Va([Le("sd-scrollable")],qa);const Na=Object.freeze(Object.defineProperty({__proto__:null,get default(){return qa}},Symbol.toStringTag,{value:"Module"}));var Ka=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,Ja=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Za(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Ka(e,i,r),r};let Wa=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new Gi(this,"help-text","label"),this.localize=new S(this),this.typeToSelectString="",this.hasHover=!1,this.displayLabel="",this.deletedTagLabel="",this.hasFocus=!1,this.selectedOptions=[],this.showValidStyle=!1,this.showInvalidStyle=!1,this.defaultValue="",this.open=!1,this.size="lg",this.placement="bottom",this.label="",this.placeholder=this.localize.term("selectDefaultPlaceholder"),this.disabled=!1,this.helpText="",this.currentPlacement=this.placement,this.clearable=!1,this.multiple=!1,this.useTags=!1,this.maxOptionsVisible=3,this.form="",this.name="",this.value="",this.required=!1,this.styleOnValid=!1,this.hoist=!1,this.getTag=t=>ye`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
117
|
+
*/function Or(t){void 0!==this._$AN?(Er(this),this._$AM=t,Ir(this)):this._$AM=t}function Br(t,e=!1,i=0){const o=this._$AH,s=this._$AN;if(void 0!==s&&0!==s.size)if(e)if(Array.isArray(o))for(let t=i;t<o.length;t++)Sr(o[t],!1),Er(o[t]);else null!=o&&(Sr(o,!1),Er(o));else Sr(this,t)}const Dr=t=>{2==t.type&&(t._$AP??(t._$AP=Br),t._$AQ??(t._$AQ=Or))};class Mr extends ci{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Ir(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,o;t!==this.isConnected&&(this.isConnected=t,t?null==(i=this.reconnected)||i.call(this):null==(o=this.disconnected)||o.call(this)),e&&(Sr(this,t),Er(this))}setValue(t){if(os(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const zr=hi(class extends Mr{constructor(t){if(super(t),this.handlePointerDown=t=>{0!==t.button||this.host.disabled||this.spinOnLongPressCallback(t)},this.handlePointerUp=t=>{null==t||t.preventDefault(),null==t||t.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)},6!==t.type||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return Ae}update(t,[e]){return void 0===this.callbacks&&void 0===this.host&&(this.host=t.element,this.callbacks={...e},this.host.addEventListener("pointerdown",this.handlePointerDown)),we}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(t){var e;t.preventDefault(),t.stopPropagation(),this.timeout=setTimeout((()=>{this.timeout=void 0,this.interval=setInterval((()=>{this.callbacks.start()}),50)}),500),document.addEventListener("pointerup",this.handlePointerUp),null==(e=this.observer)||e.disconnect(),this.observer=new MutationObserver((t=>{t.forEach((t=>{"disabled"===t.attributeName&&this.stopSpinningAndCleanUp()}))})),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var t;clearInterval(this.interval),clearTimeout(this.timeout),null==(t=this.observer)||t.disconnect()}});var Tr=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,Fr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Pr(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Tr(e,i,r),r};const jr=!(null==(i=navigator.userAgentData)?void 0:i.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let Lr=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new Gi(this,"help-text","label","left","right","message","placeholder"),this.localize=new S(this),this.hasFocus=!1,this.showValidStyle=!1,this.showInvalidStyle=!1,this.type="text",this.size="lg",this.value="",this.defaultValue="",this.placeholder="",this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.spinButtons=!1,this.form="",this.name="",this.title="",this.required=!1,this.styleOnValid=!1,this.spellcheck=!0}get valueAsDate(){var t;return(null==(t=this.input)?void 0:t.valueAsDate)??null}set valueAsDate(t){const e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t;return(null==(t=this.input)?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleKeyDown(t){const e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"===t.key&&!e&&setTimeout((()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}))}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(void 0===this.min||null===this.min)return!1;const t="string"==typeof this.min?parseFloat(this.min):this.min;return this.valueAsNumber<=t}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(void 0===this.max||null===this.max)return!1;const t="string"==typeof this.max?parseFloat(this.max):this.max;return this.valueAsNumber>=t}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,o){this.input.setRangeText(t,e,i,o),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return null==(t=this.input)?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=(this.hasSlotController.test("description"),this.hasSlotController.test("left")),o=this.hasSlotController.test("right"),s=!!this.label||!!t,r=!!this.helpText||!!e,a=this.clearable&&!this.readonly&&("number"==typeof this.value||this.value.length>0),n=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",l="sm"===this.size?"text-sm":"text-base",d={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"}[n],h=this.disabled?"text-neutral-500":"text-primary",c={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],p={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return ye`<div part="form-control" class="${Ne(this.disabled&&"pointer-events-none")}"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${Ne(s?"inline-block":"hidden",l)}" for="input" aria-hidden="${s?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="relative w-full"><div part="border" class="${Ne("absolute w-full h-full pointer-events-none border rounded-default",d)}"></div><div part="base" class="${Ne("px-4 flex flex-row items-center rounded-default transition-all","lg"===this.size?"py-2":"py-1",this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly?"bg-neutral-100":"bg-white","disabled"===n?"text-neutral-500":"text-black")}">${i?ye`<slot name="left" part="left" class="${Ne("inline-flex","sm"===this.size?"mr-1":"mr-2",h,p)}"></slot>`:""} <input part="input" id="input" class="${Ne("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700","sm"===this.size?"h-6":"h-8",l)}" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${Do(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Do(this.placeholder)}" minlength="${Do(this.minlength)}" maxlength="${Do(this.maxlength)}" min="${Do(this.min)}" max="${Do(this.max)}" step="${Do(this.step)}" .value="${rs(this.value)}" autocapitalize="${Do("password"===this.type?"off":this.autocapitalize)}" autocomplete="${Do("password"===this.type?"off":this.autocomplete)}" autocorrect="${Do("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${Do(this.pattern)}" enterkeyhint="${Do(this.enterkeyhint)}" inputmode="${Do(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?ye`<button part="clear-button" class="${Ne("flex justify-center ",c)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Ne("icon-fill-neutral-800",p)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&"password"===this.type?ye`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?ye`<slot name="show-password-icon"><sd-icon class="${Ne(h,c,p)}" library="system" name="eye"></sd-icon></slot>`:ye`<slot name="hide-password-icon"><sd-icon class="${Ne(h,c,p)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||jr?"":ye`<sd-icon class="${Ne(h,c,p)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?ye`<sd-icon class="${Ne(h,c,p)}" library="system" name="clock"></sd-icon>`:""} ${"search"===this.type?ye`<button class="flex items-center" type="button" tabindex="-1"><sd-icon class="${Ne(h,c,p)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${Ne("text-error",c,p)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?ye`<sd-icon class="${Ne("text-success flex-shrink-0",c,p)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${o?ye`<slot name="right" part="right" class="${Ne("inline-flex",h,c,p)}"></slot>`:""} ${"number"===this.type&&this.spinButtons?ye`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${zr({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-icon name="system/minus-circle" label="Decrease value" class="${Ne(h,c,p)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${zr({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon name="system/plus-circle" label="Decrease value" class="${Ne(h,c,p)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${Ne("text-sm text-neutral-700",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};Lr.styles=[qe,We.styles,Ft`:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label::after{content:' *'}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174) / var(--tw-text-opacity))}`],Fr([$e("#input")],Lr.prototype,"input",2),Fr([$e("#invalid-message")],Lr.prototype,"invalidMessage",2),Fr([Ye()],Lr.prototype,"hasFocus",2),Fr([Ye()],Lr.prototype,"showValidStyle",2),Fr([Ye()],Lr.prototype,"showInvalidStyle",2),Fr([Ue({reflect:!0})],Lr.prototype,"type",2),Fr([Ue({reflect:!0})],Lr.prototype,"size",2),Fr([Ue()],Lr.prototype,"inputmode",2),Fr([Ue()],Lr.prototype,"value",2),Fr([is()],Lr.prototype,"defaultValue",2),Fr([Ue()],Lr.prototype,"placeholder",2),Fr([Ue()],Lr.prototype,"label",2),Fr([Ue({attribute:"help-text"})],Lr.prototype,"helpText",2),Fr([Ue({type:Boolean})],Lr.prototype,"clearable",2),Fr([Ue({type:Boolean,reflect:!0})],Lr.prototype,"disabled",2),Fr([Ue({type:Boolean,reflect:!0})],Lr.prototype,"readonly",2),Fr([Ue({attribute:"password-toggle",type:Boolean})],Lr.prototype,"passwordToggle",2),Fr([Ue({attribute:"password-visible",type:Boolean})],Lr.prototype,"passwordVisible",2),Fr([Ue({attribute:"spin-buttons",type:Boolean})],Lr.prototype,"spinButtons",2),Fr([Ue({type:Number})],Lr.prototype,"minlength",2),Fr([Ue({type:Number})],Lr.prototype,"maxlength",2),Fr([Ue()],Lr.prototype,"min",2),Fr([Ue()],Lr.prototype,"max",2),Fr([Ue({reflect:!0})],Lr.prototype,"form",2),Fr([Ue()],Lr.prototype,"name",2),Fr([Ue()],Lr.prototype,"title",2),Fr([Ue({type:Boolean,reflect:!0})],Lr.prototype,"required",2),Fr([Ue()],Lr.prototype,"pattern",2),Fr([Ue()],Lr.prototype,"step",2),Fr([Ue()],Lr.prototype,"autocapitalize",2),Fr([Ue()],Lr.prototype,"autocorrect",2),Fr([Ue()],Lr.prototype,"autocomplete",2),Fr([Ue({type:Boolean})],Lr.prototype,"autofocus",2),Fr([Ue()],Lr.prototype,"enterkeyhint",2),Fr([Ue({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Lr.prototype,"styleOnValid",2),Fr([Ue({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Lr.prototype,"spellcheck",2),Fr([bi("disabled",{waitUntilFirstUpdate:!0})],Lr.prototype,"handleDisabledChange",1),Fr([bi("step",{waitUntilFirstUpdate:!0})],Lr.prototype,"handleStepChange",1),Fr([bi("value",{waitUntilFirstUpdate:!0})],Lr.prototype,"handleValueChange",1),Lr=Fr([Le("sd-input")],Lr);const Qr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Lr}},Symbol.toStringTag,{value:"Module"}));var Rr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,Yr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Ur(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Rr(e,i,r),r};let Hr=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"[default]","icon-left","icon-right"),this.standalone=!1,this.size="inherit",this.inverted=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return ye`<a part="base" class="${Ne("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${Do(this.href||void 0)}" target="${Do(this.target||void 0)}" download="${Do(this.download)}" rel="${Do(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${Ne("inline",t["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${Ne("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};Hr.styles=[We.styles,Ft`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],Yr([$e("a")],Hr.prototype,"button",2),Yr([Ue({type:Boolean,reflect:!0})],Hr.prototype,"standalone",2),Yr([Ue({reflect:!0})],Hr.prototype,"size",2),Yr([Ue({type:Boolean,reflect:!0})],Hr.prototype,"inverted",2),Yr([Ue()],Hr.prototype,"href",2),Yr([Ue()],Hr.prototype,"target",2),Yr([Ue()],Hr.prototype,"download",2),Hr=Yr([Le("sd-link")],Hr);const $r=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Hr}},Symbol.toStringTag,{value:"Module"}));var Gr=Object.defineProperty,Vr=Object.getOwnPropertyDescriptor,qr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Vr(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Gr(e,i,r),r};let Nr=class extends We{constructor(){super(...arguments),this.variant="main",this.state="default",this.animated=!1,this.notInteractive=!1,this.href="",this.marker={cluster:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" opacity="1" r="20"/><circle cx="25" cy="25" opacity=".3" r="25"/></svg>`,main:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z"/><circle cx="30" cy="28" r="10" fill="#fff"/></svg>`,place:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd"/></svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){const t=this.isLink(),e=this.notInteractive?Eo`div`:t?Eo`a`:Eo`button`;return Oo`<${e} part="base" class="${Ne("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${Do(t?this.href:void 0)}" target="${Do(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${Do(this.notInteractive||t?void 0:"button")}" aria-labelledby="${Do(this.notInteractive?void 0:"content")}"><div part="marker" class="${Ne("inline-flex",this.animated&&("main"===this.variant||"place"===this.variant)&&"animate-bounce-once","cluster"===this.variant&&"hover"===this.state&&"scale-110 fill-primary-500","cluster"===this.variant&&!this.notInteractive&&"transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500","main"===this.variant&&"hover"===this.state&&"fill-accent-550","main"===this.variant&&"active"===this.state&&"fill-accent-700","main"===this.variant&&!this.notInteractive&&"hover:fill-accent-550 active:fill-accent-700","place"===this.variant&&"default"===this.state&&"fill-white","place"===this.variant&&"hover"===this.state&&"fill-primary-100","place"===this.variant&&"active"===this.state&&"fill-primary-200","place"===this.variant&&!this.notInteractive&&"hover:fill-primary-100",{cluster:"fill-primary",main:"fill-accent *:drop-shadow-md",place:"*:drop-shadow-md"}[this.variant])}">${this.marker[this.variant]}</div><div id="content" part="content" class="${Ne("absolute self-center pointer-events-none","cluster"===this.variant&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Nr.styles=[qe,We.styles,Ft`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}`],qr([Ue({reflect:!0})],Nr.prototype,"variant",2),qr([Ue({reflect:!0})],Nr.prototype,"state",2),qr([Ue({type:Boolean,reflect:!0})],Nr.prototype,"animated",2),qr([Ue({type:Boolean,reflect:!0,attribute:"not-interactive"})],Nr.prototype,"notInteractive",2),qr([Ue()],Nr.prototype,"href",2),qr([Ue()],Nr.prototype,"target",2),Nr=qr([Le("sd-map-marker")],Nr);const Kr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Nr}},Symbol.toStringTag,{value:"Module"}));var Zr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Wr=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Jr(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Zr(e,i,r),r};let _r=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"[default]","description","children"),this.vertical=!1,this.size="base",this.current=!1,this.disabled=!1,this.chevron=!1,this.relaxed=!1,this.divider=!1,this.indented=!1,this.open=!1,this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.isAccordion&&!this.isLink?Eo`summary`:this.separated?Eo`div`:this.isLink?Eo`a`:Eo`button`}render(){const t=this.tag,e=this.isLink,i=this.isButton,o=this.isAccordion,s=(this.hasSlotController.test("[default]"),this.hasSlotController.test("main"),this.hasSlotController.test("description")),r=this.hasSlotController.test("children"),a=this.vertical?"pb-3":"pb-2",n=Oo`<${t} part="base" class="${Ne("cursor-pointer relative focus-visible:focus-outline",{base:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",o?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-all min-h-[48px] px-4")}" aria-controls="${Do(o?"navigation-item-details":void 0)}" aria-current="${Do(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${Do(i?this.disabled:void 0)}" href="${Do(e?this.href:void 0)}" target="${Do(e?this.target:void 0)}" download="${Do(e?this.download:void 0)}" rel="${Do(e&&this.target?"noreferrer noopener":void 0)}" role="${e?"link":"button"}" tabindex="${this.disabled||this.separated?"-1":"0"}" @click="${this.separated?void 0:o?this.handleClickSummary:i?this.handleClickButton:void 0}"><div part="current-indicator" class="${Ne("absolute left-0 pointer-events-none transition-all duration-150",this.vertical?"w-1 h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"h-1 w-full bottom-0",this.current?"bg-accent":"bg-transparent",this.disabled&&"bg-neutral-500")}"></div><span part="content-area" class="${Ne("relative pt-3 inline-flex justify-between items-center",o?"grow":"w-full",s||this.separated?"pb-1":a,this.calculatePaddingX)}">${this.divider&&this.vertical?Oo`<sd-divider part="divider" class="${Ne("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated?Oo`<a class="${Ne("mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",!s&&"py-4")}" href="${Do(e?this.href:void 0)}" target="${Do(e?this.target:void 0)}" download="${Do(e?this.download:void 0)}"><slot part="content" class="inline"></slot></a>`:Oo`<slot part="content" class="inline"></slot>`} </span>${(this.chevron||r)&&this.vertical?this.separated?Oo`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${Ne("mr-4 h-6 w-6 transition-all",o||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:Oo`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${Ne("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${s&&this.vertical?Oo`<slot name="description" part="description" class="${Ne("inline-block text-sm text-left text-black",o||this.separated?"grow":"w-full",this.separated?"px-4":this.calculatePaddingX,a)}"></slot>`:""}</${t}>`;return o?Oo`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative flex">${n}<slot name="children"></slot></details>`:this.separated?Oo`<div part="details" id="navigation-item-details" class="relative flex flex-col">${n}${this.open?Oo`<slot name="children"></slot>`:""}</div>`:Oo`${n}`}};_r.styles=[qe,We.styles,Pt(Ni),Ft`:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],Wr([$e('a[part="base"], button[part="base"]')],_r.prototype,"button",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"vertical",2),Wr([Ue({reflect:!0})],_r.prototype,"size",2),Wr([Ue({reflect:!0})],_r.prototype,"href",2),Wr([Ue()],_r.prototype,"target",2),Wr([Ue()],_r.prototype,"download",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"current",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"disabled",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"chevron",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"relaxed",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"divider",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"indented",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"open",2),Wr([Ue({type:Boolean,reflect:!0})],_r.prototype,"separated",2),_r=Wr([Le("sd-navigation-item")],_r);const Xr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _r}},Symbol.toStringTag,{value:"Module"}));var ta=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,ia=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?ea(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&ta(e,i,r),r};const oa=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),sa=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let ra=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.variant="info",this.open=!1,this.closable=!1,this.duration=1/0,this.durationIndicator=!1,this.toastStack="top-right",this.remainingDuration=this.duration,this.startTime=Date.now()}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>{this.hide()}),this.remainingDuration))}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Ei(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=zi(this,"notification.show",{dir:this.localize.dir()});await ki(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Ei(this.base);const{keyframes:t,options:e}=zi(this,"notification.hide",{dir:this.localize.dir()});await ki(this.base,t,e),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}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")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?sa:oa;null===e.parentElement&&document.body.append(e),e.appendChild(this),requestAnimationFrame((()=>{this.clientWidth,this.show()})),this.addEventListener("sd-after-hide",(()=>{e.removeChild(this),t(),null===e.querySelector("sd-notification")&&e.remove()}),{once:!0})}))}render(){return ye`<div part="base" class="${Ne("w-full overflow-hidden flex items-stretch relative m-2")}" role="alert" id="notification" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}"><slot name="icon" part="icon" class="${Ne("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${Ne("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable?ye`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?ye`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${Ne("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div>`}};ra.styles=[qe,We.styles,Ft`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],ia([$e('[part~="base"]')],ra.prototype,"base",2),ia([Ue({reflect:!0})],ra.prototype,"variant",2),ia([Ue({type:Boolean,reflect:!0})],ra.prototype,"open",2),ia([Ue({type:Boolean,reflect:!0})],ra.prototype,"closable",2),ia([Ue({type:Number})],ra.prototype,"duration",2),ia([Ue({type:Boolean,reflect:!0,attribute:"duration-indicator"})],ra.prototype,"durationIndicator",2),ia([Ue({reflect:!0,attribute:"toast-stack"})],ra.prototype,"toastStack",2),ia([bi("open",{waitUntilFirstUpdate:!0})],ra.prototype,"handleOpenChange",1),ia([bi("duration")],ra.prototype,"handleDurationChange",1),ra=ia([Le("sd-notification")],ra),Mi("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Mi("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});const aa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ra}},Symbol.toStringTag,{value:"Module"}));var na=Object.defineProperty,la=Object.getOwnPropertyDescriptor,da=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?la(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&na(e,i,r),r};let ha=class extends We{constructor(){super(...arguments),this.disabled=!1,this.label=""}handleDisableOptions(){const{disabled:t}=this;this.defaultSlot.assignedElements().filter((t=>"sd-option"===t.tagName.toLowerCase())).forEach((e=>{e.disabled=t}))}handleDisabledChange(){this.handleDisableOptions()}render(){const{disabled:t}=this;return Oo`<div role="${t?"presentation":"group"}" class="${Ne(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-divider id="divider" class="pt-2 pb-4" part="divider"></sd-divider><div part="label-container" class="${Ne(this.disabled?"text-neutral-500":"text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="group" part="options"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`}};ha.dependencies={"sd-divider":qs},ha.styles=[qe,We.styles,Ft`:host{--display-divider:block}#divider{display:var(--display-divider)}`],da([$e("slot:not([name])")],ha.prototype,"defaultSlot",2),da([Ue({reflect:!0,type:Boolean})],ha.prototype,"disabled",2),da([Ue()],ha.prototype,"label",2),da([bi("disabled",{waitUntilFirstUpdate:!0})],ha.prototype,"handleDisabledChange",1),ha=da([Le("sd-optgroup")],ha);const ca=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ha}},Symbol.toStringTag,{value:"Module"}));var pa=Object.defineProperty,ua=Object.getOwnPropertyDescriptor,ga=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?ua(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&pa(e,i,r),r};let ma=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"default","left","right"),this.current=!1,this.selected=!1,this.hasHover=!1,this.size="lg",this.checkbox=!1,this.disabled=!1,this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){const t=this.getTextLabel();typeof this.cachedTextLabel>"u"?this.cachedTextLabel=t:t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){return(this.textContent??"").trim()}render(){this.hasSlotController.test("default");const t=this.hasSlotController.test("left"),e=this.hasSlotController.test("right");return ye`<div part="base" class="${Ne("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${Ne("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?ye`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${Ne("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?ye`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""}</span>`:""} ${t?ye`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${e?ye`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};ma.styles=[qe,We.styles,Ft`:host{position:relative;display:block;width:100%;outline:2px solid transparent!important;outline-offset:2px!important}`],ga([$e('[part="base"]')],ma.prototype,"defaultSlot",2),ga([Ye()],ma.prototype,"current",2),ga([Ye()],ma.prototype,"selected",2),ga([Ye()],ma.prototype,"hasHover",2),ga([Ue({reflect:!0})],ma.prototype,"size",2),ga([Ue({type:Boolean,reflect:!0})],ma.prototype,"checkbox",2),ga([Ue({type:Boolean,reflect:!0})],ma.prototype,"disabled",2),ga([Ue({reflect:!0})],ma.prototype,"value",2),ga([bi("disabled")],ma.prototype,"handleDisabledChange",1),ga([bi("selected")],ma.prototype,"handleSelectedChange",1),ga([bi("value")],ma.prototype,"handleValueChange",1),ma=ga([Le("sd-option")],ma);const ba=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ma}},Symbol.toStringTag,{value:"Module"}));var va=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,fa=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?ya(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&va(e,i,r),r};let wa=class extends Li{constructor(){super(...arguments),this.expandable=!1}render(){return ye`<div part="base" class="sm:p-6"><header part="header" id="header" class="${Ne("text-base font-bold items-center focus-visible:focus-outline text-primary relative group flex flex-row hover:bg-transparent gap-3 pb-3 pt-0 px-0 sm:flex-col sm:gap-4 sm:pb-8",this.expandable&&"cursor-pointer select-none")}" role="${Do(this.expandable?"button":void 0)}" aria-expanded="${Do(this.expandable?this.open?"true":"false":void 0)}" aria-controls="${Do(this.expandable?"content":void 0)}" tabindex="${this.expandable?"0":"-1"}" @click="${this.expandable?this.handleSummaryClick:null}" @keydown="${this.expandable?this.handleSummaryKeyDown:null}"><div part="icon" class="${Ne("flex flex-grow-0 flex-shrink-0 flex-auto items-center",!this.expandable&&"cursor-default")}"><slot name="icon"></slot></div><slot name="summary" part="summary" class="${Ne("flex flex-auto items-start text-left text-base leading-normal font-normal sm:leading-tight sm:text-3xl sm:text-center",this.expandable?"text-primary":"text-black cursor-default")}">${this.summary}</slot><span part="summary-icon" class="${Ne("flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-all ease-in-out duration-300 text-xl sm:text-4xl sm:mt-2",this.open&&"rotate-180",!this.expandable&&"hidden")}"><slot name="expand-icon" class="${Ne(this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot><slot name="collapse-icon" class="${Ne(!this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot></span></header><div part="content" id="content" class="${Ne("overflow-hidden",!this.expandable&&"hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></div>`}};wa.styles=[Li.styles,Ft`:host{display:block}@media (min-width:640px){[part=summary-icon]{font-size:var(--sd-spacing-12,3rem)}}[part=icon]{font-size:var(--sd-spacing-12,3rem)}@media (min-width:640px){[part=icon]{font-size:var(--sd-spacing-24,6rem)}}`],fa([Ue({type:Boolean,reflect:!0})],wa.prototype,"expandable",2),wa=fa([Le("sd-quickfact")],wa),Mi("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}}),Mi("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});const Aa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return wa}},Symbol.toStringTag,{value:"Module"}));var xa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,Ca=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?ka(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&xa(e,i,r),r};let Sa=class extends We{constructor(){super(...arguments),this.hasSlotController=new Gi(this,"[default]","icon"),this.hasFocus=!1,this.size="lg",this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled)return t.preventDefault(),void t.stopPropagation();this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){const t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),i=`${this.size}-${t?"label":"no-label"}`;return ye`<div part="base" role="presentation" class="relative"><button part="${"button"+(this.checked?" button--checked":"")}" role="radio" aria-checked="${this.checked}" class="${Ne("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline","sm"===this.size?"text-sm":"text-base",this.checked&&!this.disabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":this.disabled&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":this.disabled&&this.checked?"bg-neutral-500 border-neutral-500 text-white hover:cursor-not-allowed":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",t&&"px-4",this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",i)}" aria-disabled="${this.disabled}" type="button" value="${Do(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${Ne(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?ye`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};Sa.styles=[We.styles,qe,Ft`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:var(--sd-spacing-0,0);z-index:-10;opacity:var(--sd-opacity-0,0);outline-style:dotted;outline-width:1px;outline-color:rgb(var(--sd-color-error,204 25 55) / 1)}.lg-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{height:var(--sd-spacing-12,3rem);width:var(--sd-spacing-12,3rem)}.md-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{height:var(--sd-spacing-10,2.5rem);width:var(--sd-spacing-10,2.5rem)}.sm-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}:host(.sd-button-group__button--first:not(.sd-button-group__button--last)) button{border-top-right-radius:var(--sd-border-radius-none,0);border-bottom-right-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--last:not(.sd-button-group__button--first)) button{border-top-left-radius:var(--sd-border-radius-none,0);border-bottom-left-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button:not(.sd-button-group__button--first)){margin-inline-start:-1px}:host(.sd-button-group__button--hover){z-index:10}:host(.sd-button-group__button--focus),:host(.sd-button-group__button[checked]){z-index:20}`],Ca([$e(".button")],Sa.prototype,"input",2),Ca([$e(".hidden-input")],Sa.prototype,"hiddenInput",2),Ca([Ye()],Sa.prototype,"hasFocus",2),Ca([Ue({reflect:!0})],Sa.prototype,"size",2),Ca([Ue({type:Boolean,reflect:!0})],Sa.prototype,"disabled",2),Ca([Ue({type:Boolean,reflect:!0})],Sa.prototype,"checked",2),Ca([Ue()],Sa.prototype,"value",2),Ca([bi("disabled",{waitUntilFirstUpdate:!0})],Sa.prototype,"handleDisabledChange",1),Sa=Ca([Le("sd-radio-button")],Sa);const Ea=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Sa}},Symbol.toStringTag,{value:"Module"})),Ia=Ft`${qe}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var Oa=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,Da=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Ba(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Oa(e,i,r),r};let Ma=class extends We{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=za(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=za(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=za(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=za(t.target);null==e||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach((e=>{const i=t.indexOf(e),o=za(e);null!==o&&(o.classList.add("sd-button-group__button"),o.classList.toggle("sd-button-group__button--first",0===i),o.classList.toggle("sd-button-group__button--inner",i>0&&i<t.length-1),o.classList.toggle("sd-button-group__button--last",i===t.length-1),o.classList.toggle("sd-button-group__button--radio","sd-radio-button"===o.tagName.toLowerCase()))}))}render(){return ye`<slot part="base" class="button-group" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};function za(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}Ma.styles=Ia,Da([$e("slot")],Ma.prototype,"defaultSlot",2),Da([Ye()],Ma.prototype,"disableRole",2),Da([Ue()],Ma.prototype,"label",2),Ma=Da([Le("sd-button-group")],Ma);var Ta=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Fa=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Pa(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Ta(e,i,r),r};let ja=class extends We{constructor(){super(...arguments),this.checked=!1,this.hasFocus=!1,this.size="lg",this.disabled=!1,this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){this.disabled||(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return ye`<span part="base" class="${Ne("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",this.disabled&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${this.checked?"control--checked":"control--unchecked"}" class="${Ne("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?ye`<span part="checked" class="${Ne("rounded-full inline-flex text-white border bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${Ne("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};ja.styles=[We.styles,Ft`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:rgb(var(--sd-color-primary,0 53 142) / 1)}`],Fa([Ye()],ja.prototype,"checked",2),Fa([Ye()],ja.prototype,"hasFocus",2),Fa([Ue({reflect:!0})],ja.prototype,"size",2),Fa([Ue({type:Boolean,reflect:!0})],ja.prototype,"disabled",2),Fa([Ue()],ja.prototype,"value",2),Fa([Ue({type:Boolean,reflect:!0})],ja.prototype,"invalid",2),Fa([bi("checked")],ja.prototype,"handleCheckedChange",1),Fa([bi("disabled",{waitUntilFirstUpdate:!0})],ja.prototype,"handleDisabledChange",1),ja=Fa([Le("sd-radio")],ja);const La=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ja}},Symbol.toStringTag,{value:"Module"}));var Qa=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Ua=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Ra(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Qa(e,i,r),r};let Ya=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new Gi(this,"label","error-text"),this.customValidityMessage="",this.hasButtonGroup=!1,this.defaultValue="",this.showInvalidStyle=!1,this.size="lg",this.required=!1,this.orientation="vertical",this.label="",this.boldLabel=!1,this.name="option",this.value="",this.form=""}get validity(){const t=this.required&&!this.value;return""!==this.customValidityMessage?ko:t?xo:Ao}get validationMessage(){const t=this.required&&!this.value;return""!==this.customValidityMessage?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){const e=t.target.closest("sd-radio, sd-radio-button"),i=this.getAllRadios(),o=this.value;e.disabled||(this.value=e.value,i.forEach((t=>t.checked=t===e)),this.value!==o&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const e=this.getAllRadios().filter((t=>!t.disabled)),i=e.find((t=>t.checked))??e[0],o=" "===t.key?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,s=this.value;let r=e.indexOf(i)+o;r<0&&(r=e.length-1),r>e.length-1&&(r=0),this.getAllRadios().forEach((t=>{t.checked=!1,this.hasButtonGroup||(t.tabIndex=-1)})),this.value=e[r].value,e[r].checked=!0,this.hasButtonGroup?e[r].shadowRoot.querySelector("button").focus():(e[r].tabIndex=0,e[r].focus()),this.value!==s&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){const t=this.getAllRadios(),e=t.find((t=>t.checked))||t[0];e&&e.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var t,e;const i=this.getAllRadios();if(await Promise.all(i.map((async t=>{await t.updateComplete,t.checked=t.value===this.value,t.size=this.size,t instanceof ja&&(t.invalid=this.showInvalidStyle)}))),this.hasButtonGroup=i.some((t=>"sd-radio-button"===t.tagName.toLowerCase())),!i.some((t=>t.checked)))if(this.hasButtonGroup){const e=null==(t=i[0].shadowRoot)?void 0:t.querySelector("button");e&&(e.tabIndex=0)}else i[0].tabIndex=0;if(this.hasButtonGroup){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("sd-button-group");t&&(t.disableRole=!0)}}syncRadios(){customElements.get("sd-radio")&&customElements.get("sd-radio-button")?this.syncRadioElements():(customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then((()=>this.syncRadios())),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then((()=>this.syncRadios())))}updateCheckedRadio(){this.getAllRadios().forEach((t=>t.checked=t.value===this.value)),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){const t=this.required&&!this.value,e=""!==this.customValidityMessage;return!t&&!e||(this.formControlController.emitInvalidEvent(),!1)}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout((()=>this.validationInput.hidden=!0),1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=!!this.label||!!t,i=ye`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return ye`<fieldset part="form-control" class="${Ne("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message"><div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${Ne("p-0 leading-normal text-black text-left",!e&&"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend><slot name="tooltip"></slot></div><div part="form-control-input" class="${Ne("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?ye`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${i}</sd-button-group>`:i}</div></fieldset>${this.formControlController.renderInvalidMessage()}`}};Ya.dependencies={"sd-button-group":Ma},Ya.styles=[qe,We.styles,Ft`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label::after{content:' *'}`],Ua([$e("slot:not([name])")],Ya.prototype,"defaultSlot",2),Ua([$e("#validation-input")],Ya.prototype,"validationInput",2),Ua([$e("#invalid-message")],Ya.prototype,"invalidMessage",2),Ua([Ye()],Ya.prototype,"hasButtonGroup",2),Ua([Ye()],Ya.prototype,"defaultValue",2),Ua([Ye()],Ya.prototype,"showInvalidStyle",2),Ua([Ue({reflect:!0})],Ya.prototype,"size",2),Ua([Ue({type:Boolean,reflect:!0})],Ya.prototype,"required",2),Ua([Ue({reflect:!0})],Ya.prototype,"orientation",2),Ua([Ue()],Ya.prototype,"label",2),Ua([Ue({type:Boolean,reflect:!0})],Ya.prototype,"boldLabel",2),Ua([Ue()],Ya.prototype,"name",2),Ua([Ue({reflect:!0})],Ya.prototype,"value",2),Ua([Ue({reflect:!0})],Ya.prototype,"form",2),Ua([bi("size",{waitUntilFirstUpdate:!0})],Ya.prototype,"handleSizeChange",1),Ua([bi("showInvalidStyle",{waitUntilFirstUpdate:!0})],Ya.prototype,"handleInvalidChange",1),Ua([bi("value")],Ya.prototype,"handleValueChange",1),Ya=Ua([Le("sd-radio-group")],Ya);const Ha=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ya}},Symbol.toStringTag,{value:"Module"}));var $a=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Va=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Ga(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&$a(e,i,r),r};let qa=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.orientation="horizontal",this.scrollbars=!1,this.buttons=!1,this.shadows=!1,this.inset=!1,this.step=150,this.canScroll={left:!1,right:!1,up:!1,down:!1},this.isScrollHorizontalEnabled=!1,this.isScrollVerticalEnabled=!1,this.isKeyboardNavigation=!1,this.scrollContainer=null}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver((()=>{this.updateScrollIndicatorVisibility()})),this.updateComplete.then((()=>{this.scrollContainer=this.renderRoot.querySelector(".scroll-container"),this.scrollContainer&&this.resizeObserver.observe(this.scrollContainer)}))}disconnectedCallback(){super.disconnectedCallback(),this.scrollContainer&&this.resizeObserver.unobserve(this.scrollContainer)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.updateScrollIndicatorVisibility())}updateScrollEnabledFlags(){const t=this.orientation;this.isScrollHorizontalEnabled="horizontal"===t||"auto"===t,this.isScrollVerticalEnabled="vertical"===t||"auto"===t}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){const t=this.container;if(!t)return;const e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,i=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,o=this.isScrollVerticalEnabled&&t.scrollTop>0,s=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1,r=this.renderRoot.querySelector('[part="button-start"]'),a=this.renderRoot.querySelector('[part="button-end"]');this.canScroll={left:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:e,right:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:i,up:this.isKeyboardNavigation?this.isScrollVerticalEnabled:o,down:this.isKeyboardNavigation?this.isScrollVerticalEnabled:s};const n=e||o,l=i||s;n&&this.dispatchEvent(new CustomEvent("start")),l&&this.dispatchEvent(new CustomEvent("end")),this.isKeyboardNavigation&&(r&&(r.hidden=!n),r&&n&&!(s||i)&&r.focus(),a&&(a.hidden=!l),a&&l&&!o&&!e&&a.focus())}handleScroll(t,e){var i;const o="left"===t||"up"===t?-this.step:this.step,s="left"===t||"right"===t?"left":"top";this.isKeyboardNavigation="mouse"!==(null==e?void 0:e.pointerType);const r={behavior:"smooth"};r[s]=o,null==(i=this.scrollContainer)||i.scrollBy(r);const a=`button-${t}`;this.dispatchEvent(new CustomEvent(a,{bubbles:!0,composed:!0}))}render(){const t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none";return ye`<div part="base" class="${Ne("scroll-container flex overflow-hidden flex-1","horizontal"===this.orientation&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden","vertical"===this.orientation&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden","auto"===this.orientation&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?ye`${this.isScrollHorizontalEnabled?ye`${this.canScroll.left?ye`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${Ne(t)}" @click="${t=>this.handleScroll("left",t)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.right?ye`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${Ne(t)}" @click="${t=>this.handleScroll("right",t)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?ye`${this.canScroll.up?ye`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${Ne(t)}" @click="${t=>this.handleScroll("up",t)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.down?ye`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${Ne(t)}" @click="${t=>this.handleScroll("down",t)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?ye`${this.isScrollHorizontalEnabled?ye`${this.canScroll.left?ye`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?ye`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?ye`${this.canScroll.up?ye`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?ye`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};qa.styles=[We.styles,Pt(Ni),qe,Ft`:host{--gradient-color:rgba(255, 255, 255, 0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;position:relative;display:flex;overflow:hidden}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-right]{background:linear-gradient(90deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-top]{background:linear-gradient(0deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-bottom]{background:linear-gradient(180deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}.sd-icon--top{align-self:flex-start}.sd-icon--down{align-self:flex-end}`],Va([Ue({type:String,reflect:!0})],qa.prototype,"orientation",2),Va([Ue({type:Boolean,reflect:!0})],qa.prototype,"scrollbars",2),Va([Ue({type:Boolean,reflect:!0})],qa.prototype,"buttons",2),Va([Ue({type:Boolean,reflect:!0})],qa.prototype,"shadows",2),Va([Ue({type:Boolean,reflect:!0})],qa.prototype,"inset",2),Va([Ue({type:Number,reflect:!0})],qa.prototype,"step",2),Va([Ye()],qa.prototype,"canScroll",2),Va([Ye()],qa.prototype,"isScrollHorizontalEnabled",2),Va([Ye()],qa.prototype,"isScrollVerticalEnabled",2),Va([Ye()],qa.prototype,"isKeyboardNavigation",2),qa=Va([Le("sd-scrollable")],qa);const Na=Object.freeze(Object.defineProperty({__proto__:null,get default(){return qa}},Symbol.toStringTag,{value:"Module"}));var Ka=Object.defineProperty,Za=Object.getOwnPropertyDescriptor,Ja=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Za(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Ka(e,i,r),r};let Wa=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new Gi(this,"help-text","label"),this.localize=new S(this),this.typeToSelectString="",this.hasHover=!1,this.displayLabel="",this.deletedTagLabel="",this.hasFocus=!1,this.selectedOptions=[],this.showValidStyle=!1,this.showInvalidStyle=!1,this.defaultValue="",this.open=!1,this.size="lg",this.placement="bottom",this.label="",this.placeholder=this.localize.term("selectDefaultPlaceholder"),this.disabled=!1,this.helpText="",this.currentPlacement=this.placement,this.clearable=!1,this.multiple=!1,this.useTags=!1,this.maxOptionsVisible=3,this.form="",this.name="",this.value="",this.required=!1,this.styleOnValid=!1,this.hoist=!1,this.getTag=t=>ye`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
118
118
|
base:tag__base,
|
119
119
|
content:tag__content,
|
120
120
|
removable-indicator:tag__removable-indicator,
|
@@ -124,7 +124,7 @@ const Do=t=>t??Ae;var Mo=Object.defineProperty,zo=Object.getOwnPropertyDescripto
|
|
124
124
|
removable-indicator:tag__removable-indicator,
|
125
125
|
" size="${"sm"===this.size?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-tag>`]}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.multiple||this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await Ei(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:t,options:e}=zi(this,"select.show",{dir:this.localize.dir()});await ki(this.popup.popup,t,e),this.currentOption&&ks(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Ei(this);const{keyframes:t,options:e}=zi(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(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;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,o=!!this.helpText||!!e,s=this.clearable&&!this.disabled&&this.value.length>0,r=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 ye`<div part="form-control" class="${Ne("relative text-left",a,"sm"===this.size?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" role="alert" aria-live="assertive">${this.deletedTagLabel}</span><div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${i&&"inline-block"}" aria-hidden="${i?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${Ne("relative w-full bg-white","disabled"===r?"text-neutral-500":"text-black")}"><div part="border" class="${Ne("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"}[r],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="${Ne("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="
|
126
126
|
popup:popup__content,
|
127
|
-
"><div part="combobox" class="${Ne("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="${Ne("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",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-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?ye`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((t=>null==t?void 0:t.getTextLabel())).join(", ")}</div><input class="${Ne("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-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${s?ye`<button part="clear-button" class="${Ne("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="${Ne("text-icon-fill-neutral-800",l)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${Ne(n,l,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?ye`<sd-icon part="valid-icon" class="${Ne("flex-shrink-0 text-success",n,l)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${Ne("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="${Ne("bg-white px-2 py-3 relative border-primary overflow-y-scroll",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="${o?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};Wa.dependencies={"sd-icon":Ai,"sd-popup":ei,"sd-tag":Is},Wa.styles=[qe,We.styles,Ft`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}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))}`],Ja([Ve({selector:"sd-option"})],Wa.prototype,"_optionsInDefaultSlot",2),Ja([$e("sd-popup")],Wa.prototype,"popup",2),Ja([$e('[part="combobox"]')],Wa.prototype,"combobox",2),Ja([$e('[part="display-input"]')],Wa.prototype,"displayInput",2),Ja([$e(".value-input")],Wa.prototype,"valueInput",2),Ja([$e('[part="listbox"]')],Wa.prototype,"listbox",2),Ja([$e("#invalid-message")],Wa.prototype,"invalidMessage",2),Ja([Ye()],Wa.prototype,"hasHover",2),Ja([Ye()],Wa.prototype,"displayLabel",2),Ja([Ye()],Wa.prototype,"deletedTagLabel",2),Ja([Ye()],Wa.prototype,"hasFocus",2),Ja([Ye()],Wa.prototype,"currentOption",2),Ja([Ye()],Wa.prototype,"selectedOptions",2),Ja([Ye()],Wa.prototype,"showValidStyle",2),Ja([Ye()],Wa.prototype,"showInvalidStyle",2),Ja([is()],Wa.prototype,"defaultValue",2),Ja([Ue({type:Boolean,reflect:!0})],Wa.prototype,"open",2),Ja([Ue({reflect:!0})],Wa.prototype,"size",2),Ja([Ue({reflect:!0})],Wa.prototype,"placement",2),Ja([Ue()],Wa.prototype,"label",2),Ja([Ue()],Wa.prototype,"placeholder",2),Ja([Ue({type:Boolean,reflect:!0})],Wa.prototype,"disabled",2),Ja([Ue({attribute:"help-text"})],Wa.prototype,"helpText",2),Ja([Ye()],Wa.prototype,"currentPlacement",2),Ja([Ue({type:Boolean})],Wa.prototype,"clearable",2),Ja([Ue({type:Boolean,reflect:!0})],Wa.prototype,"multiple",2),Ja([Ue({type:Boolean,reflect:!0})],Wa.prototype,"useTags",2),Ja([Ue({attribute:"max-options-visible",type:Number})],Wa.prototype,"maxOptionsVisible",2),Ja([Ue({reflect:!0})],Wa.prototype,"form",2),Ja([Ue()],Wa.prototype,"name",2),Ja([Ue({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],Wa.prototype,"value",2),Ja([Ue({type:Boolean,reflect:!0})],Wa.prototype,"required",2),Ja([Ue({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Wa.prototype,"styleOnValid",2),Ja([Ue({type:Boolean})],Wa.prototype,"hoist",2),Ja([Ue()],Wa.prototype,"getTag",2),Ja([bi("useTags",{waitUntilFirstUpdate:!0})],Wa.prototype,"handleUseTagsChange",1),Ja([bi("disabled",{waitUntilFirstUpdate:!0})],Wa.prototype,"handleDisabledChange",1),Ja([bi("open",{waitUntilFirstUpdate:!0})],Wa.prototype,"handleOpenChange",1),Ja([bi("size",{waitUntilFirstUpdate:!0})],Wa.prototype,"applySizeToOptions",1),Ja([bi("value",{waitUntilFirstUpdate:!0})],Wa.prototype,"handleValueChange",1),Wa=Ja([Le("sd-select")],Wa),Mi("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Mi("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const _a=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Wa}},Symbol.toStringTag,{value:"Module"}));var Xa=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,en=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?tn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Xa(e,i,r),r};let on=class extends We{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 ye`<div part="base" role="${this.notInteractive?"group":"navigation"}" class="${Ne("flex","vertical"===this.orientation&&"flex-col h-full")}"><slot part="body"></slot></div>`}};on.styles=[We.styles,qe,Ft`:host{width:-moz-max-content;width:max-content}`],en([$e("[part=body]")],on.prototype,"body",2),en([Ue({reflect:!0})],on.prototype,"size",2),en([Ue({reflect:!0})],on.prototype,"orientation",2),en([Ue({type:Number,reflect:!0,attribute:"active-step"})],on.prototype,"activeStep",2),en([Ue({type:Boolean,reflect:!0,attribute:"not-interactive"})],on.prototype,"notInteractive",2),en([bi("size",{waitUntilFirstUpdate:!0})],on.prototype,"updateSize",1),en([bi("orientation",{waitUntilFirstUpdate:!0})],on.prototype,"updateOrientation",1),en([bi("notInteractive")],on.prototype,"handleInteractivityChange",1),on=en([Le("sd-step-group")],on);const sn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return on}},Symbol.toStringTag,{value:"Module"}));var rn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,nn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?an(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&rn(e,i,r),r};let ln=class extends We{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?Eo`div`:t?Eo`a`:Eo`button`;return Oo`<div part="base" class="${Ne("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="${Ne("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="${Do(t?this.href:void 0)}" aria-current="${this.current?"step":void 0}" aria-label="Step ${this.index}" class="${Ne("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="${Ne(!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?Oo`${this.index}`:Oo`<sd-icon name="status-check" library="system"></sd-icon>`}</slot></${e}>${this.noTail?"":Oo`<div part="tail" class="${Ne("horizontal"===this.orientation?"border-t w-full my-auto mr-2":"border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",this.disabled||this.current||this.notInteractive?"border-neutral-400":" border-primary group-hover:border-primary-500")}"></div>`}</div><div part="text-container" class="${Ne("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="${Ne("!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="${Ne("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-500")}">${this.description||Oo`<slot></slot>`}</div></div></div>`}};ln.styles=[We.styles,qe,Pt(".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))}"),Ft`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}`],nn([Ue({reflect:!0})],ln.prototype,"size",2),nn([Ue({reflect:!0})],ln.prototype,"orientation",2),nn([Ue({type:Boolean,reflect:!0})],ln.prototype,"disabled",2),nn([Ue({type:Boolean,reflect:!0})],ln.prototype,"current",2),nn([Ue({reflect:!0,type:Boolean,attribute:"no-tail"})],ln.prototype,"noTail",2),nn([Ue({type:Boolean,reflect:!0,attribute:"not-interactive"})],ln.prototype,"notInteractive",2),nn([Ue()],ln.prototype,"label",2),nn([Ue()],ln.prototype,"description",2),nn([Ue({type:Number,reflect:!0,attribute:"index"})],ln.prototype,"index",2),nn([Ue()],ln.prototype,"href",2),nn([bi("current")],ln.prototype,"handleCurrentChange",1),nn([bi("disabled")],ln.prototype,"handleDisabledChange",1),nn([bi("notInteractive")],ln.prototype,"handleInteractivityChange",1),ln=nn([Le("sd-step")],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,o)=>{for(var s,r=o>1?void 0:o?cn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&hn(e,i,r),r};let un=class extends We{constructor(){super(...arguments),this.formControlController=new wo(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 ye`<label part="base" class="${Ne("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" role="switch" title="${this.title}" name="${this.name}" value="${Do(this.value)}" .checked="${rs(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @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="${Ne("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="${Ne("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="${Ne("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};un.styles=[We.styles,Ft`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label::after{content:' *'}`],pn([$e("input")],un.prototype,"input",2),pn([$e("#invalid-message")],un.prototype,"invalidMessage",2),pn([Ye()],un.prototype,"showInvalidStyle",2),pn([Ue()],un.prototype,"title",2),pn([Ue()],un.prototype,"name",2),pn([Ue()],un.prototype,"value",2),pn([Ue({type:Boolean,reflect:!0})],un.prototype,"disabled",2),pn([Ue({type:Boolean,reflect:!0})],un.prototype,"checked",2),pn([is("checked")],un.prototype,"defaultChecked",2),pn([Ue({reflect:!0})],un.prototype,"form",2),pn([Ue({type:Boolean,reflect:!0})],un.prototype,"required",2),pn([bi("disabled",{waitUntilFirstUpdate:!0})],un.prototype,"handleDisabledChange",1),pn([bi(["checked"],{waitUntilFirstUpdate:!0})],un.prototype,"handleStateChange",1),un=pn([Le("sd-switch")],un);const gn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return un}},Symbol.toStringTag,{value:"Module"}));var mn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,vn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?bn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&mn(e,i,r),r};let yn=class extends We{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&&ks(this.tabs[t+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&ks(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 o=this.tabs.indexOf(e);"Home"===t.key?o=0:"End"===t.key?o=this.tabs.length-1:t.key===(i?"ArrowRight":"ArrowLeft")||"ArrowUp"===t.key?o--:(t.key===(i?"ArrowLeft":"ArrowRight")||"ArrowDown"===t.key)&&o++,o<0&&(o=this.tabs.length-1),o>this.tabs.length-1&&(o=0),this.tabs[o].focus({preventScroll:!0}),"auto"===this.activation&&this.setActiveTab(this.tabs[o],{scrollBehavior:"smooth"}),ks(this.tabs[o],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)})),ks(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"))}))}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.panels.forEach((t=>{t.tabIndex=0})),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 ye`<div part="base" class="${Ne("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${Ne(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?ye`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${Ne("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"}" label="previous" class="${Ne("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="${Ne("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full border-[0.25px] border-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?ye`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${Ne("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"}" label="next" class="${Ne("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${Ne("block auto py-8 px-6","container"===this.variant&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};yn.styles=[We.styles,Pt(Ni),qe,Ft`:host{@apply block box-border;}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{@apply w-0 h-0;}::slotted(sd-tab-panel){--padding:1rem 0}`],vn([$e("[part=base]")],yn.prototype,"tabGroup",2),vn([$e("[part=body]")],yn.prototype,"body",2),vn([$e("[part=scroll-container]")],yn.prototype,"nav",2),vn([Ye()],yn.prototype,"hasScrollControls",2),vn([Ye()],yn.prototype,"variant",2),vn([Ue()],yn.prototype,"activation",2),yn=vn([Le("sd-tab-group")],yn);const fn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return yn}},Symbol.toStringTag,{value:"Module"}));var wn=Object.defineProperty,An=Object.getOwnPropertyDescriptor,xn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?An(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&wn(e,i,r),r};let kn=0,Cn=class extends We{constructor(){super(...arguments),this.attrId=++kn,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 ye`<slot part="base" class="${Ne("block",this.active&&"tab-panel--active")}"></slot>`}};Cn.styles=[We.styles,qe,Ft`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],xn([Ue({reflect:!0})],Cn.prototype,"name",2),xn([Ue({type:Boolean,reflect:!0})],Cn.prototype,"active",2),xn([bi("active")],Cn.prototype,"handleActiveChange",1),Cn=xn([Le("sd-tab-panel")],Cn);const Sn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Cn}},Symbol.toStringTag,{value:"Module"}));var En=Object.defineProperty,In=Object.getOwnPropertyDescriptor,On=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?In(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&En(e,i,r),r};let Bn=0,Dn=class extends We{constructor(){super(...arguments),this.attrId=++Bn,this.componentId=`sd-tab-${this.attrId}`,this.variant="default",this.active=!1,this.disabled=!1,this.panel=""}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,ye`<div part="base" class="${Ne("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":this.active?"0":"-1"}"><slot name="left" class="${Ne("pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${Ne(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${Ne((!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="${Ne(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};Dn.styles=[We.styles,qe,Ft`: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}`],On([$e("[part=base]")],Dn.prototype,"tab",2),On([Ue({type:String,reflect:!0})],Dn.prototype,"variant",2),On([Ue({type:Boolean,reflect:!0})],Dn.prototype,"active",2),On([Ue({type:Boolean,reflect:!0})],Dn.prototype,"disabled",2),On([Ue({reflect:!0})],Dn.prototype,"panel",2),On([bi("active")],Dn.prototype,"handleActiveChange",1),On([bi("disabled")],Dn.prototype,"handleDisabledChange",1),Dn=On([Le("sd-tab")],Dn);const Mn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Dn}},Symbol.toStringTag,{value:"Module"}));var zn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Pn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Tn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&zn(e,i,r),r};let Fn=class extends We{constructor(){super(...arguments),this.variant="white",this.hasSlotController=new Gi(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 ye`<div class="relative flex flex-col group" part="base"><div class="${Ne("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="${Ne("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="${Ne({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="${Ne("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="${Ne("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" aria-hidden="true"><slot name="expandable"></slot></div><div part="main" class="${Ne(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};Fn.styles=[We.styles,Ft`: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}`],Pn([Ue({reflect:!0})],Fn.prototype,"variant",2),Pn([$e('[part="base"]')],Fn.prototype,"teaserMedia",2),Fn=Pn([Le("sd-teaser-media")],Fn);const jn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Fn}},Symbol.toStringTag,{value:"Module"}));var Ln=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,Rn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Qn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Ln(e,i,r),r};let Un=class extends We{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new Gi(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"),o=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),ye`<div class="${Ne("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="${Ne(!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="${Ne("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${Ne("gap-2 mb-4",!o&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${Ne("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="${Ne(!e&&"hidden")}"><slot></slot></div></div></div>`}};Un.styles=[We.styles,Ft`: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}`],Rn([Ue({reflect:!0})],Un.prototype,"variant",2),Rn([Ue({reflect:!0,type:Number})],Un.prototype,"breakpoint",2),Rn([Ue({type:Boolean,reflect:!0})],Un.prototype,"inset",2),Rn([$e('[part="base"]')],Un.prototype,"teaser",2),Rn([Ye()],Un.prototype,"_orientation",2),Un=Rn([Le("sd-teaser")],Un);const Yn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Un}},Symbol.toStringTag,{value:"Module"}));var Hn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,Gn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?$n(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Hn(e,i,r),r};let Vn=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new Gi(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,o){this.textarea.setRangeText(t,e,i,o),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,o=!!this.helpText||!!e,s=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",r="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 ye`<div part="form-control" class="flex flex-col h-full text-left"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${Ne(i?"inline-block":"hidden",r)}" for="input" aria-hidden="${i?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${Ne("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${Ne("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"}[s])}"></div><div part="base" class="${Ne("textarea h-full 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],this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly?"bg-neutral-100":"bg-white","disabled"===s?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${Ne("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",r)}" title="${this.title}" name="${Do(this.name)}" .value="${rs(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Do(this.placeholder)}" minlength="${Do(this.minlength)}" maxlength="${Do(this.maxlength)}" rows="${Do(this.rows)}" autocapitalize="${Do(this.autocapitalize)}" autocorrect="${Do(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${Do(this.spellcheck)}" enterkeyhint="${Do(this.enterkeyhint)}" inputmode="${Do(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?ye`<sd-icon class="${Ne("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?ye`<sd-icon class="${Ne("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="${Ne("text-sm text-neutral-700",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};Vn.styles=[qe,We.styles,Ft`:host{display:block;height:100%}:host([required]) #label::after{content:' *'}.no-scrollbar::-webkit-scrollbar{display:none}`],Gn([$e("#input")],Vn.prototype,"textarea",2),Gn([$e("#invalid-message")],Vn.prototype,"invalidMessage",2),Gn([Ye()],Vn.prototype,"hasFocus",2),Gn([Ye()],Vn.prototype,"showValidStyle",2),Gn([Ye()],Vn.prototype,"showInvalidStyle",2),Gn([Ue()],Vn.prototype,"title",2),Gn([Ue()],Vn.prototype,"name",2),Gn([Ue()],Vn.prototype,"value",2),Gn([Ue({reflect:!0})],Vn.prototype,"size",2),Gn([Ue()],Vn.prototype,"label",2),Gn([Ue({attribute:"help-text"})],Vn.prototype,"helpText",2),Gn([Ue()],Vn.prototype,"placeholder",2),Gn([Ue({type:Number})],Vn.prototype,"rows",2),Gn([Ue({type:Boolean,reflect:!0})],Vn.prototype,"disabled",2),Gn([Ue({type:Boolean,reflect:!0})],Vn.prototype,"readonly",2),Gn([Ue({reflect:!0})],Vn.prototype,"form",2),Gn([Ue({type:Boolean,reflect:!0})],Vn.prototype,"required",2),Gn([Ue({type:Number})],Vn.prototype,"minlength",2),Gn([Ue({type:Number})],Vn.prototype,"maxlength",2),Gn([Ue()],Vn.prototype,"autocapitalize",2),Gn([Ue()],Vn.prototype,"autocorrect",2),Gn([Ue()],Vn.prototype,"autocomplete",2),Gn([Ue({type:Boolean})],Vn.prototype,"autofocus",2),Gn([Ue()],Vn.prototype,"enterkeyhint",2),Gn([Ue({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Vn.prototype,"styleOnValid",2),Gn([Ue({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Vn.prototype,"spellcheck",2),Gn([Ue()],Vn.prototype,"inputmode",2),Gn([is()],Vn.prototype,"defaultValue",2),Gn([bi("disabled",{waitUntilFirstUpdate:!0})],Vn.prototype,"handleDisabledChange",1),Gn([bi("rows",{waitUntilFirstUpdate:!0})],Vn.prototype,"handleRowsChange",1),Gn([bi("value",{waitUntilFirstUpdate:!0})],Vn.prototype,"handleValueChange",1),Vn=Gn([Le("sd-textarea")],Vn);const qn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Vn}},Symbol.toStringTag,{value:"Module"}));var Nn=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,Zn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Kn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Nn(e,i,r),r};let Jn=class extends We{constructor(){super(...arguments),this.isFocusTriggered=!1,this.localize=new S(this),this.size="lg",this.content="",this.placement="top",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=Ci(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=Ci(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 Ei(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=zi(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 Ei(this.body);const{keyframes:t,options:e}=zi(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 ye`<sd-popup part="base" exportparts="
|
127
|
+
"><div part="combobox" class="${Ne("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="${Ne("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",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-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?ye`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((t=>null==t?void 0:t.getTextLabel())).join(", ")}</div><input class="${Ne("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-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${s?ye`<button part="clear-button" class="${Ne("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="${Ne("text-icon-fill-neutral-800",l)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${Ne(n,l,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?ye`<sd-icon part="valid-icon" class="${Ne("flex-shrink-0 text-success",n,l)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${Ne("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="${Ne("bg-white px-2 py-3 relative border-primary overflow-y-scroll",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="${o?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};Wa.dependencies={"sd-icon":Ai,"sd-popup":ei,"sd-tag":Is},Wa.styles=[qe,We.styles,Ft`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}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))}`],Ja([Ve({selector:"sd-option"})],Wa.prototype,"_optionsInDefaultSlot",2),Ja([$e("sd-popup")],Wa.prototype,"popup",2),Ja([$e('[part="combobox"]')],Wa.prototype,"combobox",2),Ja([$e('[part="display-input"]')],Wa.prototype,"displayInput",2),Ja([$e(".value-input")],Wa.prototype,"valueInput",2),Ja([$e('[part="listbox"]')],Wa.prototype,"listbox",2),Ja([$e("#invalid-message")],Wa.prototype,"invalidMessage",2),Ja([Ye()],Wa.prototype,"hasHover",2),Ja([Ye()],Wa.prototype,"displayLabel",2),Ja([Ye()],Wa.prototype,"deletedTagLabel",2),Ja([Ye()],Wa.prototype,"hasFocus",2),Ja([Ye()],Wa.prototype,"currentOption",2),Ja([Ye()],Wa.prototype,"selectedOptions",2),Ja([Ye()],Wa.prototype,"showValidStyle",2),Ja([Ye()],Wa.prototype,"showInvalidStyle",2),Ja([is()],Wa.prototype,"defaultValue",2),Ja([Ue({type:Boolean,reflect:!0})],Wa.prototype,"open",2),Ja([Ue({reflect:!0})],Wa.prototype,"size",2),Ja([Ue({reflect:!0})],Wa.prototype,"placement",2),Ja([Ue()],Wa.prototype,"label",2),Ja([Ue()],Wa.prototype,"placeholder",2),Ja([Ue({type:Boolean,reflect:!0})],Wa.prototype,"disabled",2),Ja([Ue({attribute:"help-text"})],Wa.prototype,"helpText",2),Ja([Ye()],Wa.prototype,"currentPlacement",2),Ja([Ue({type:Boolean})],Wa.prototype,"clearable",2),Ja([Ue({type:Boolean,reflect:!0})],Wa.prototype,"multiple",2),Ja([Ue({type:Boolean,reflect:!0})],Wa.prototype,"useTags",2),Ja([Ue({attribute:"max-options-visible",type:Number})],Wa.prototype,"maxOptionsVisible",2),Ja([Ue({reflect:!0})],Wa.prototype,"form",2),Ja([Ue()],Wa.prototype,"name",2),Ja([Ue({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],Wa.prototype,"value",2),Ja([Ue({type:Boolean,reflect:!0})],Wa.prototype,"required",2),Ja([Ue({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Wa.prototype,"styleOnValid",2),Ja([Ue({type:Boolean})],Wa.prototype,"hoist",2),Ja([Ue()],Wa.prototype,"getTag",2),Ja([bi("useTags",{waitUntilFirstUpdate:!0})],Wa.prototype,"handleUseTagsChange",1),Ja([bi("disabled",{waitUntilFirstUpdate:!0})],Wa.prototype,"handleDisabledChange",1),Ja([bi("open",{waitUntilFirstUpdate:!0})],Wa.prototype,"handleOpenChange",1),Ja([bi("size",{waitUntilFirstUpdate:!0})],Wa.prototype,"applySizeToOptions",1),Ja([bi("value",{waitUntilFirstUpdate:!0})],Wa.prototype,"handleValueChange",1),Wa=Ja([Le("sd-select")],Wa),Mi("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Mi("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const _a=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Wa}},Symbol.toStringTag,{value:"Module"}));var Xa=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,en=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?tn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Xa(e,i,r),r};let on=class extends We{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 ye`<div role="${this.notInteractive?"group":"navigation"}" class="h-full"><div role="list" part="base" class="${Ne("flex","vertical"===this.orientation&&"flex-col h-full")}"><slot part="body"></slot></div></div>`}};on.styles=[We.styles,qe,Ft`:host{width:-moz-max-content;width:max-content}`],en([$e("[part=body]")],on.prototype,"body",2),en([Ue({reflect:!0})],on.prototype,"size",2),en([Ue({reflect:!0})],on.prototype,"orientation",2),en([Ue({type:Number,reflect:!0,attribute:"active-step"})],on.prototype,"activeStep",2),en([Ue({type:Boolean,reflect:!0,attribute:"not-interactive"})],on.prototype,"notInteractive",2),en([bi("size",{waitUntilFirstUpdate:!0})],on.prototype,"updateSize",1),en([bi("orientation",{waitUntilFirstUpdate:!0})],on.prototype,"updateOrientation",1),en([bi("notInteractive")],on.prototype,"handleInteractivityChange",1),on=en([Le("sd-step-group")],on);const sn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return on}},Symbol.toStringTag,{value:"Module"}));var rn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,nn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?an(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&rn(e,i,r),r};let ln=class extends We{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?Eo`div`:t?Eo`a`:Eo`button`;return Oo`<div role="listitem" part="base" class="${Ne("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="${Ne("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" href="${Do(t?this.href:void 0)}" aria-disabled="${Do(this.disabled||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${Do("label")}" aria-describedby="${Do("description")}" class="${Ne("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled?"focus-visible:outline-none cursor-not-allowed":"focus-visible:focus-outline group-hover:cursor-pointer",this.notInteractive?"lg"===this.size?"w-[72px]":"w-12":"lg"===this.size?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive&&"border-neutral-400",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${Ne(!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?Oo`${this.index}`:Oo`<sd-icon name="status-check" library="system"></sd-icon>`}</slot></${e}>${this.noTail?"":Oo`<div part="tail" class="${Ne("horizontal"===this.orientation?"border-t w-full my-auto mr-2":"border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",this.disabled||this.current||this.notInteractive?"border-neutral-400":" border-primary group-hover:border-primary-500")}"></div>`}</div><div part="text-container" class="${Ne("mt-4 break-words flex flex-col gap-2","horizontal"===this.orientation?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-700",this.notInteractive?"ml-3":"mr-4")}"><div part="label" id="label" class="${Ne("!font-bold sd-paragraph",this.disabled&&"!text-neutral-700",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" id="description" class="${Ne("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-700")}">${this.description||Oo`<slot></slot>`}</div></div></div>`}};ln.styles=[We.styles,qe,Pt(".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))}"),Ft`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}`],nn([Ue({reflect:!0})],ln.prototype,"size",2),nn([Ue({reflect:!0})],ln.prototype,"orientation",2),nn([Ue({type:Boolean,reflect:!0})],ln.prototype,"disabled",2),nn([Ue({type:Boolean,reflect:!0})],ln.prototype,"current",2),nn([Ue({reflect:!0,type:Boolean,attribute:"no-tail"})],ln.prototype,"noTail",2),nn([Ue({type:Boolean,reflect:!0,attribute:"not-interactive"})],ln.prototype,"notInteractive",2),nn([Ue()],ln.prototype,"label",2),nn([Ue()],ln.prototype,"description",2),nn([Ue({type:Number,reflect:!0,attribute:"index"})],ln.prototype,"index",2),nn([Ue()],ln.prototype,"href",2),nn([bi("current")],ln.prototype,"handleCurrentChange",1),nn([bi("disabled")],ln.prototype,"handleDisabledChange",1),nn([bi("notInteractive")],ln.prototype,"handleInteractivityChange",1),ln=nn([Le("sd-step")],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,o)=>{for(var s,r=o>1?void 0:o?cn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&hn(e,i,r),r};let un=class extends We{constructor(){super(...arguments),this.formControlController=new wo(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 ye`<label part="base" class="${Ne("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" role="switch" title="${this.title}" name="${this.name}" value="${Do(this.value)}" .checked="${rs(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @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="${Ne("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="${Ne("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="${Ne("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};un.styles=[We.styles,Ft`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label::after{content:' *'}`],pn([$e("input")],un.prototype,"input",2),pn([$e("#invalid-message")],un.prototype,"invalidMessage",2),pn([Ye()],un.prototype,"showInvalidStyle",2),pn([Ue()],un.prototype,"title",2),pn([Ue()],un.prototype,"name",2),pn([Ue()],un.prototype,"value",2),pn([Ue({type:Boolean,reflect:!0})],un.prototype,"disabled",2),pn([Ue({type:Boolean,reflect:!0})],un.prototype,"checked",2),pn([is("checked")],un.prototype,"defaultChecked",2),pn([Ue({reflect:!0})],un.prototype,"form",2),pn([Ue({type:Boolean,reflect:!0})],un.prototype,"required",2),pn([bi("disabled",{waitUntilFirstUpdate:!0})],un.prototype,"handleDisabledChange",1),pn([bi(["checked"],{waitUntilFirstUpdate:!0})],un.prototype,"handleStateChange",1),un=pn([Le("sd-switch")],un);const gn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return un}},Symbol.toStringTag,{value:"Module"}));var mn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,vn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?bn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&mn(e,i,r),r};let yn=class extends We{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&&ks(this.tabs[t+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&ks(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 o=this.tabs.indexOf(e);"Home"===t.key?o=0:"End"===t.key?o=this.tabs.length-1:t.key===(i?"ArrowRight":"ArrowLeft")||"ArrowUp"===t.key?o--:(t.key===(i?"ArrowLeft":"ArrowRight")||"ArrowDown"===t.key)&&o++,o<0&&(o=this.tabs.length-1),o>this.tabs.length-1&&(o=0),this.tabs[o].focus({preventScroll:!0}),"auto"===this.activation&&this.setActiveTab(this.tabs[o],{scrollBehavior:"smooth"}),ks(this.tabs[o],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)})),ks(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"))}))}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.panels.forEach((t=>{t.tabIndex=0})),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 ye`<div part="base" class="${Ne("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${Ne(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?ye`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${Ne("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"}" label="previous" class="${Ne("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="${Ne("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full border-[0.25px] border-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?ye`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${Ne("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"}" label="next" class="${Ne("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${Ne("block auto py-8 px-6","container"===this.variant&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};yn.styles=[We.styles,Pt(Ni),qe,Ft`:host{@apply block box-border;}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{@apply w-0 h-0;}::slotted(sd-tab-panel){--padding:1rem 0}`],vn([$e("[part=base]")],yn.prototype,"tabGroup",2),vn([$e("[part=body]")],yn.prototype,"body",2),vn([$e("[part=scroll-container]")],yn.prototype,"nav",2),vn([Ye()],yn.prototype,"hasScrollControls",2),vn([Ye()],yn.prototype,"variant",2),vn([Ue()],yn.prototype,"activation",2),yn=vn([Le("sd-tab-group")],yn);const fn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return yn}},Symbol.toStringTag,{value:"Module"}));var wn=Object.defineProperty,An=Object.getOwnPropertyDescriptor,xn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?An(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&wn(e,i,r),r};let kn=0,Cn=class extends We{constructor(){super(...arguments),this.attrId=++kn,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 ye`<slot part="base" class="${Ne("block",this.active&&"tab-panel--active")}"></slot>`}};Cn.styles=[We.styles,qe,Ft`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],xn([Ue({reflect:!0})],Cn.prototype,"name",2),xn([Ue({type:Boolean,reflect:!0})],Cn.prototype,"active",2),xn([bi("active")],Cn.prototype,"handleActiveChange",1),Cn=xn([Le("sd-tab-panel")],Cn);const Sn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Cn}},Symbol.toStringTag,{value:"Module"}));var En=Object.defineProperty,In=Object.getOwnPropertyDescriptor,On=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?In(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&En(e,i,r),r};let Bn=0,Dn=class extends We{constructor(){super(...arguments),this.attrId=++Bn,this.componentId=`sd-tab-${this.attrId}`,this.variant="default",this.active=!1,this.disabled=!1,this.panel=""}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,ye`<div part="base" class="${Ne("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":this.active?"0":"-1"}"><slot name="left" class="${Ne("pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${Ne(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${Ne((!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="${Ne(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};Dn.styles=[We.styles,qe,Ft`: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}`],On([$e("[part=base]")],Dn.prototype,"tab",2),On([Ue({type:String,reflect:!0})],Dn.prototype,"variant",2),On([Ue({type:Boolean,reflect:!0})],Dn.prototype,"active",2),On([Ue({type:Boolean,reflect:!0})],Dn.prototype,"disabled",2),On([Ue({reflect:!0})],Dn.prototype,"panel",2),On([bi("active")],Dn.prototype,"handleActiveChange",1),On([bi("disabled")],Dn.prototype,"handleDisabledChange",1),Dn=On([Le("sd-tab")],Dn);const Mn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Dn}},Symbol.toStringTag,{value:"Module"}));var zn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Pn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Tn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&zn(e,i,r),r};let Fn=class extends We{constructor(){super(...arguments),this.variant="white",this.hasSlotController=new Gi(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 ye`<div class="relative flex flex-col group" part="base"><div class="${Ne("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="${Ne("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="${Ne({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="${Ne("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="${Ne("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" aria-hidden="true"><slot name="expandable"></slot></div><div part="main" class="${Ne(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};Fn.styles=[We.styles,Ft`: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}`],Pn([Ue({reflect:!0})],Fn.prototype,"variant",2),Pn([$e('[part="base"]')],Fn.prototype,"teaserMedia",2),Fn=Pn([Le("sd-teaser-media")],Fn);const jn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Fn}},Symbol.toStringTag,{value:"Module"}));var Ln=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,Rn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Qn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Ln(e,i,r),r};let Un=class extends We{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new Gi(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"),o=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),ye`<div class="${Ne("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="${Ne(!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="${Ne("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${Ne("gap-2 mb-4",!o&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${Ne("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="${Ne(!e&&"hidden")}"><slot></slot></div></div></div>`}};Un.styles=[We.styles,Ft`: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}`],Rn([Ue({reflect:!0})],Un.prototype,"variant",2),Rn([Ue({reflect:!0,type:Number})],Un.prototype,"breakpoint",2),Rn([Ue({type:Boolean,reflect:!0})],Un.prototype,"inset",2),Rn([$e('[part="base"]')],Un.prototype,"teaser",2),Rn([Ye()],Un.prototype,"_orientation",2),Un=Rn([Le("sd-teaser")],Un);const Yn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Un}},Symbol.toStringTag,{value:"Module"}));var Hn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,Gn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?$n(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Hn(e,i,r),r};let Vn=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new Gi(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,o){this.textarea.setRangeText(t,e,i,o),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,o=!!this.helpText||!!e,s=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",r="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 ye`<div part="form-control" class="flex flex-col h-full text-left"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${Ne(i?"inline-block":"hidden",r)}" for="input" aria-hidden="${i?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${Ne("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${Ne("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"}[s])}"></div><div part="base" class="${Ne("textarea h-full 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],this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly?"bg-neutral-100":"bg-white","disabled"===s?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${Ne("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",r)}" title="${this.title}" name="${Do(this.name)}" .value="${rs(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Do(this.placeholder)}" minlength="${Do(this.minlength)}" maxlength="${Do(this.maxlength)}" rows="${Do(this.rows)}" autocapitalize="${Do(this.autocapitalize)}" autocorrect="${Do(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${Do(this.spellcheck)}" enterkeyhint="${Do(this.enterkeyhint)}" inputmode="${Do(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?ye`<sd-icon class="${Ne("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?ye`<sd-icon class="${Ne("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="${Ne("text-sm text-neutral-700",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};Vn.styles=[qe,We.styles,Ft`:host{display:block;height:100%}:host([required]) #label::after{content:' *'}.no-scrollbar::-webkit-scrollbar{display:none}`],Gn([$e("#input")],Vn.prototype,"textarea",2),Gn([$e("#invalid-message")],Vn.prototype,"invalidMessage",2),Gn([Ye()],Vn.prototype,"hasFocus",2),Gn([Ye()],Vn.prototype,"showValidStyle",2),Gn([Ye()],Vn.prototype,"showInvalidStyle",2),Gn([Ue()],Vn.prototype,"title",2),Gn([Ue()],Vn.prototype,"name",2),Gn([Ue()],Vn.prototype,"value",2),Gn([Ue({reflect:!0})],Vn.prototype,"size",2),Gn([Ue()],Vn.prototype,"label",2),Gn([Ue({attribute:"help-text"})],Vn.prototype,"helpText",2),Gn([Ue()],Vn.prototype,"placeholder",2),Gn([Ue({type:Number})],Vn.prototype,"rows",2),Gn([Ue({type:Boolean,reflect:!0})],Vn.prototype,"disabled",2),Gn([Ue({type:Boolean,reflect:!0})],Vn.prototype,"readonly",2),Gn([Ue({reflect:!0})],Vn.prototype,"form",2),Gn([Ue({type:Boolean,reflect:!0})],Vn.prototype,"required",2),Gn([Ue({type:Number})],Vn.prototype,"minlength",2),Gn([Ue({type:Number})],Vn.prototype,"maxlength",2),Gn([Ue()],Vn.prototype,"autocapitalize",2),Gn([Ue()],Vn.prototype,"autocorrect",2),Gn([Ue()],Vn.prototype,"autocomplete",2),Gn([Ue({type:Boolean})],Vn.prototype,"autofocus",2),Gn([Ue()],Vn.prototype,"enterkeyhint",2),Gn([Ue({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Vn.prototype,"styleOnValid",2),Gn([Ue({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Vn.prototype,"spellcheck",2),Gn([Ue()],Vn.prototype,"inputmode",2),Gn([is()],Vn.prototype,"defaultValue",2),Gn([bi("disabled",{waitUntilFirstUpdate:!0})],Vn.prototype,"handleDisabledChange",1),Gn([bi("rows",{waitUntilFirstUpdate:!0})],Vn.prototype,"handleRowsChange",1),Gn([bi("value",{waitUntilFirstUpdate:!0})],Vn.prototype,"handleValueChange",1),Vn=Gn([Le("sd-textarea")],Vn);const qn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Vn}},Symbol.toStringTag,{value:"Module"}));var Nn=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,Zn=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Kn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&Nn(e,i,r),r};let Jn=class extends We{constructor(){super(...arguments),this.isFocusTriggered=!1,this.localize=new S(this),this.size="lg",this.content="",this.placement="top",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=Ci(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=Ci(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 Ei(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=zi(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 Ei(this.body);const{keyframes:t,options:e}=zi(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 ye`<sd-popup part="base" exportparts="
|
128
128
|
popup:base__popup,
|
129
129
|
arrow:base__arrow
|
130
130
|
" class="${Ne(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="${Ne("lg"===this.size?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-icon library="system" name="info-circle" class="${Ne(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>`}};Jn.styles=[We.styles,Pt(Ni),Ft`: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}`],Zn([$e("slot:not([name])")],Jn.prototype,"defaultSlot",2),Zn([$e("#tooltip")],Jn.prototype,"body",2),Zn([$e("sd-popup")],Jn.prototype,"popup",2),Zn([Ue()],Jn.prototype,"size",2),Zn([Ue()],Jn.prototype,"content",2),Zn([Ue({reflect:!0})],Jn.prototype,"placement",2),Zn([Ue({type:Boolean,reflect:!0})],Jn.prototype,"disabled",2),Zn([Ue({type:Boolean,reflect:!0})],Jn.prototype,"open",2),Zn([Ue()],Jn.prototype,"trigger",2),Zn([Ue({type:Boolean})],Jn.prototype,"hoist",2),Zn([bi("open",{waitUntilFirstUpdate:!0})],Jn.prototype,"handleOpenChange",1),Zn([bi(["content","hoist","placement"])],Jn.prototype,"handleOptionsChange",1),Zn([bi("disabled")],Jn.prototype,"handleDisabledChange",1),Jn=Zn([Le("sd-tooltip")],Jn),Mi("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),Mi("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});const Wn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Jn}},Symbol.toStringTag,{value:"Module"}));var _n=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,tl=(t,e,i,o)=>{for(var s,r=o>1?void 0:o?Xn(e,i):e,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o?s(e,i,r):s(r))||r);return o&&r&&_n(e,i,r),r};let el=class extends We{constructor(){super(...arguments),this.playing=!1,this.overlay=!1,this.isBelowBreakpoint=!1,this.hasSlotController=new Gi(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}get video(){return this.querySelector("video")}fadeoutPoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0")}hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.display="none")}setVideoInert(t){var e,i;t?null==(e=this.video)||e.setAttribute("inert",""):null==(i=this.video)||i.removeAttribute("inert")}play(){var t;this.emit("sd-play"),this.playing=!0,null==(t=this.video)||t.play(),this.fadeoutPoster(),this.setVideoInert(!1)}handleKeydown(t){t instanceof KeyboardEvent&&("Enter"===t.key||" "===t.key)&&(this.play(),setTimeout((()=>{var t;null==(t=this.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.setVideoInert(!0),this.resizeObserver=new ResizeObserver((()=>this.handleButtonResize())),this.updateComplete.then((()=>{this.resizeObserver.observe(this.hostEl)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return ye`<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="${Ne(this.playing&&"pointer-events-none","group 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="${Ne(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 outline-2 outline-offset-2 group-focus-visible:outline")}"><slot name="play-icon" part="play-icon" class="${Ne(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")?ye`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>`:null}<div part="overlay" id="overlay" role="presentation" class="${Ne(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>`}};el.styles=[We.styles,Ft`: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))}`],tl([$e("[part=base]")],el.prototype,"hostEl",2),tl([Ue({type:Boolean,reflect:!0})],el.prototype,"playing",2),tl([Ue({type:Boolean,reflect:!0})],el.prototype,"overlay",2),tl([Ue({type:Boolean})],el.prototype,"isBelowBreakpoint",2),el=tl([Le("sd-video")],el);const il=Object.freeze(Object.defineProperty({__proto__:null,get default(){return el}},Symbol.toStringTag,{value:"Module"}));t.LocalizeController=S,t.registerIconLibrary=u,t.setupAutocomplete=function(t,{setValueOnSelection:e,scrollSelectionIntoView:i}={setValueOnSelection:!0,scrollSelectionIntoView:!0}){const o=t?"string"==typeof t?document.querySelector(t):t:document.querySelector("#autoComplete"),s=o.shadowRoot.querySelector("input"),r=t=>t[0];return s.addEventListener("init",(()=>{var t,e;const i=null==(t=o.shadowRoot)?void 0:t.querySelector("ul");null==i||i.setAttribute("part","listbox");const s=document.createElement("sd-popup");s.appendChild(i),null==(e=o.shadowRoot)||e.appendChild(s),null==s||s.setAttribute("exportparts","popup__content"),s&&(s.active=!1,s.autoSize="vertical",s.autoSizePadding=16,s.placement="bottom-start",s.anchor=o,s.sync="width");const a=r`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),o.shadowRoot.adoptedStyleSheets=[...o.shadowRoot.adoptedStyleSheets,n]})),e&&s.addEventListener("selection",(t=>{var e;o.value=null==(e=null==t?void 0:t.detail)?void 0:e.selection.value})),s.addEventListener("open",(()=>{var t,e,i,s,r,a;null==(e=null==(t=o.shadowRoot)?void 0:t.querySelector("sd-popup"))||e.setAttribute("active","true"),null==(s=null==(i=o.shadowRoot)?void 0:i.querySelector('[part="border"]'))||s.classList.add("rounded-b-none"),null==(a=null==(r=o.shadowRoot)?void 0:r.querySelector('[part="form-control"]'))||a.classList.add("z-50")})),s.addEventListener("close",(()=>{var t,e,i,s,r,a;null==(e=null==(t=o.shadowRoot)?void 0:t.querySelector("sd-popup"))||e.removeAttribute("active"),null==(s=null==(i=o.shadowRoot)?void 0:i.querySelector('[part="border"]'))||s.classList.remove("rounded-b-none"),null==(a=null==(r=o.shadowRoot)?void 0:r.querySelector('[part="form-control"]'))||a.classList.remove("z-50")})),i&&s.addEventListener("navigate",(()=>{const t=o.shadowRoot.querySelector('[aria-selected="true"]');null==t||t.scrollIntoView({block:"nearest"})})),{config:{selector:()=>s,resultsList:{tag:"ul"},wrapper:!1}}},t.unregisterIconLibrary=g,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"]={});
|