@solid-design-system/components 3.22.4 → 3.22.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. package/dist/components/es/tag.js +1 -1
  2. package/dist/components/es/textarea.js +1 -1
  3. package/dist/components/umd/solid-components.js +2 -2
  4. package/dist/custom-elements.json +1 -1
  5. package/dist/package/components/tag/tag.d.ts +1 -0
  6. package/dist/package/components/tag/tag.js +5 -1
  7. package/dist/package/components/textarea/textarea.js +1 -1
  8. package/dist/versioned-components/es/accordion-group.js +1 -1
  9. package/dist/versioned-components/es/accordion.js +1 -1
  10. package/dist/versioned-components/es/audio.js +1 -1
  11. package/dist/versioned-components/es/badge.js +1 -1
  12. package/dist/versioned-components/es/brandshape.js +1 -1
  13. package/dist/versioned-components/es/button.js +1 -1
  14. package/dist/versioned-components/es/carousel-item.js +1 -1
  15. package/dist/versioned-components/es/carousel.js +3 -3
  16. package/dist/versioned-components/es/checkbox-group.js +1 -1
  17. package/dist/versioned-components/es/checkbox.js +1 -1
  18. package/dist/versioned-components/es/dialog.js +1 -1
  19. package/dist/versioned-components/es/divider.js +1 -1
  20. package/dist/versioned-components/es/drawer.js +1 -1
  21. package/dist/versioned-components/es/dropdown.js +1 -1
  22. package/dist/versioned-components/es/expandable.js +1 -1
  23. package/dist/versioned-components/es/flipcard.js +1 -1
  24. package/dist/versioned-components/es/form.js +1 -1
  25. package/dist/versioned-components/es/header.js +1 -1
  26. package/dist/versioned-components/es/icon.js +1 -1
  27. package/dist/versioned-components/es/include.js +1 -1
  28. package/dist/versioned-components/es/input.js +1 -1
  29. package/dist/versioned-components/es/link.js +1 -1
  30. package/dist/versioned-components/es/map-marker.js +1 -1
  31. package/dist/versioned-components/es/navigation-item.js +1 -1
  32. package/dist/versioned-components/es/notification.js +1 -1
  33. package/dist/versioned-components/es/option.js +1 -1
  34. package/dist/versioned-components/es/quickfact.js +1 -1
  35. package/dist/versioned-components/es/radio-button.js +1 -1
  36. package/dist/versioned-components/es/radio-group.js +1 -1
  37. package/dist/versioned-components/es/radio.js +1 -1
  38. package/dist/versioned-components/es/scrollable.js +1 -1
  39. package/dist/versioned-components/es/select.js +3 -3
  40. package/dist/versioned-components/es/solid-components2.js +1 -1
  41. package/dist/versioned-components/es/spinner.js +1 -1
  42. package/dist/versioned-components/es/step-group.js +1 -1
  43. package/dist/versioned-components/es/step.js +1 -1
  44. package/dist/versioned-components/es/switch.js +1 -1
  45. package/dist/versioned-components/es/tab-group.js +1 -1
  46. package/dist/versioned-components/es/tab-panel.js +1 -1
  47. package/dist/versioned-components/es/tab.js +1 -1
  48. package/dist/versioned-components/es/tag.js +1 -1
  49. package/dist/versioned-components/es/teaser-media.js +1 -1
  50. package/dist/versioned-components/es/teaser.js +1 -1
  51. package/dist/versioned-components/es/textarea.js +1 -1
  52. package/dist/versioned-components/es/tooltip.js +2 -2
  53. package/dist/versioned-components/es/video.js +1 -1
  54. package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
  55. package/dist/versioned-package/_components/button-group/button-group.js +11 -11
  56. package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
  57. package/dist/versioned-package/components/accordion/accordion.js +2 -2
  58. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
  59. package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
  60. package/dist/versioned-package/components/audio/audio.d.ts +1 -1
  61. package/dist/versioned-package/components/audio/audio.js +6 -6
  62. package/dist/versioned-package/components/badge/badge.d.ts +1 -1
  63. package/dist/versioned-package/components/badge/badge.js +1 -1
  64. package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
  65. package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
  66. package/dist/versioned-package/components/button/button.d.ts +1 -1
  67. package/dist/versioned-package/components/button/button.js +4 -4
  68. package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
  69. package/dist/versioned-package/components/carousel/carousel.js +6 -6
  70. package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
  71. package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
  72. package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
  73. package/dist/versioned-package/components/checkbox/checkbox.js +3 -3
  74. package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
  75. package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
  76. package/dist/versioned-package/components/dialog/dialog.d.ts +1 -1
  77. package/dist/versioned-package/components/dialog/dialog.js +2 -2
  78. package/dist/versioned-package/components/divider/divider.d.ts +1 -1
  79. package/dist/versioned-package/components/divider/divider.js +2 -2
  80. package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
  81. package/dist/versioned-package/components/drawer/drawer.js +2 -2
  82. package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
  83. package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
  84. package/dist/versioned-package/components/expandable/expandable.d.ts +1 -1
  85. package/dist/versioned-package/components/expandable/expandable.js +2 -2
  86. package/dist/versioned-package/components/flipcard/flipcard.d.ts +1 -1
  87. package/dist/versioned-package/components/flipcard/flipcard.js +1 -1
  88. package/dist/versioned-package/components/header/header.d.ts +1 -1
  89. package/dist/versioned-package/components/header/header.js +4 -4
  90. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  91. package/dist/versioned-package/components/icon/icon.js +1 -1
  92. package/dist/versioned-package/components/include/include.d.ts +1 -1
  93. package/dist/versioned-package/components/include/include.js +1 -1
  94. package/dist/versioned-package/components/input/input.d.ts +1 -1
  95. package/dist/versioned-package/components/input/input.js +3 -3
  96. package/dist/versioned-package/components/link/link.d.ts +1 -1
  97. package/dist/versioned-package/components/link/link.js +2 -2
  98. package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
  99. package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
  100. package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
  101. package/dist/versioned-package/components/navigation-item/navigation-item.js +5 -5
  102. package/dist/versioned-package/components/notification/notification.d.ts +1 -1
  103. package/dist/versioned-package/components/notification/notification.js +5 -5
  104. package/dist/versioned-package/components/option/option.d.ts +1 -1
  105. package/dist/versioned-package/components/option/option.js +2 -2
  106. package/dist/versioned-package/components/popup/popup.d.ts +1 -1
  107. package/dist/versioned-package/components/popup/popup.js +1 -1
  108. package/dist/versioned-package/components/quickfact/quickfact.d.ts +1 -1
  109. package/dist/versioned-package/components/quickfact/quickfact.js +2 -2
  110. package/dist/versioned-package/components/radio/radio.d.ts +1 -1
  111. package/dist/versioned-package/components/radio/radio.js +2 -2
  112. package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
  113. package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
  114. package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
  115. package/dist/versioned-package/components/radio-group/radio-group.js +13 -13
  116. package/dist/versioned-package/components/scrollable/scrollable.d.ts +1 -1
  117. package/dist/versioned-package/components/scrollable/scrollable.js +3 -3
  118. package/dist/versioned-package/components/select/select.d.ts +4 -4
  119. package/dist/versioned-package/components/select/select.js +25 -25
  120. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  121. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  122. package/dist/versioned-package/components/step/step.d.ts +1 -1
  123. package/dist/versioned-package/components/step/step.js +2 -2
  124. package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
  125. package/dist/versioned-package/components/step-group/step-group.js +2 -2
  126. package/dist/versioned-package/components/switch/switch.d.ts +1 -1
  127. package/dist/versioned-package/components/switch/switch.js +1 -1
  128. package/dist/versioned-package/components/tab/tab.d.ts +1 -1
  129. package/dist/versioned-package/components/tab/tab.js +2 -2
  130. package/dist/versioned-package/components/tab-group/tab-group.d.ts +1 -1
  131. package/dist/versioned-package/components/tab-group/tab-group.js +13 -13
  132. package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
  133. package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
  134. package/dist/versioned-package/components/tag/tag.d.ts +2 -1
  135. package/dist/versioned-package/components/tag/tag.js +7 -3
  136. package/dist/versioned-package/components/teaser/teaser.js +1 -1
  137. package/dist/versioned-package/components/teaser-media/teaser-media.js +1 -1
  138. package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
  139. package/dist/versioned-package/components/textarea/textarea.js +2 -2
  140. package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
  141. package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
  142. package/dist/versioned-package/components/video/video.d.ts +1 -1
  143. package/dist/versioned-package/components/video/video.js +2 -2
  144. package/dist/versioned-package/internal/form.js +3 -3
  145. package/dist/versioned-package/styles/headline/headline.css.js +1 -1
  146. package/dist/versioned-package/utilities/autocomplete-config.js +4 -4
  147. package/dist/versioned-styles/solid-styles.css +1 -1
  148. package/dist/vscode.html-custom-data.json +55 -45
  149. package/dist/web-types.json +74 -46
  150. package/package.json +1 -1
@@ -98,13 +98,13 @@ const Mo=t=>t??Ae;var Do=Object.defineProperty,Oo=Object.getOwnPropertyDescripto
98
98
  * @license
99
99
  * Copyright 2017 Google LLC
100
100
  * SPDX-License-Identifier: BSD-3-Clause
101
- */function ls(t){void 0!==this._$AN?(as(this),this._$AM=t,ns(this)):this._$AM=t}function ds(t,e=!1,i=0){const o=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(o))for(let t=i;t<o.length;t++)ss(o[t],!1),as(o[t]);else null!=o&&(ss(o,!1),as(o));else ss(this,t)}const hs=t=>{2==t.type&&(t._$AP??(t._$AP=ds),t._$AQ??(t._$AQ=ls))};class cs extends hi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),ns(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&&(ss(this,t),as(this))}setValue(t){if(ir(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 ps=di(class extends cs{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 us=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,ms=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?gs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&us(e,i,s),s};const bs=!(null==(i=navigator.userAgentData)?void 0:i.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let vs=class extends Je{constructor(){super(...arguments),this.formControlController=new fo(this),this.hasSlotController=new Li(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"),r=!!this.label||!!t,s=!!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="${$e(this.disabled&&"pointer-events-none")}"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${$e(r?"inline-block":"hidden",l)}" for="input" aria-hidden="${r?"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="${$e("absolute w-full h-full pointer-events-none border rounded-default",d)}"></div><div part="base" class="${$e("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="${$e("inline-flex","sm"===this.size?"mr-1":"mr-2",h,p)}"></slot>`:""} <input part="input" id="input" class="${$e("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="${Mo(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Mo(this.placeholder)}" minlength="${Mo(this.minlength)}" maxlength="${Mo(this.maxlength)}" min="${Mo(this.min)}" max="${Mo(this.max)}" step="${Mo(this.step)}" .value="${rr(this.value)}" autocapitalize="${Mo("password"===this.type?"off":this.autocapitalize)}" autocomplete="${Mo("password"===this.type?"off":this.autocomplete)}" autocorrect="${Mo("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${Mo(this.pattern)}" enterkeyhint="${Mo(this.enterkeyhint)}" inputmode="${Mo(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="${$e("flex justify-center ",c)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${$e("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="${$e(h,c,p)}" library="system" name="eye"></sd-icon></slot>`:ye`<slot name="hide-password-icon"><sd-icon class="${$e(h,c,p)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||bs?"":ye`<sd-icon class="${$e(h,c,p)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?ye`<sd-icon class="${$e(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="${$e(h,c,p)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${$e("text-error",c,p)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?ye`<sd-icon class="${$e("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="${$e("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" ${ps({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-icon library="global-resources" name="system/minus-round" label="Decrease value" class="${$e(h,c,p)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${ps({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon library="global-resources" name="system/plus-round" label="Decrease value" class="${$e(h,c,p)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${$e("text-sm text-neutral-700",s?"block":"hidden")}" aria-hidden="${!s}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};vs.styles=[Ve,Je.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))}`],ms([Le("#input")],vs.prototype,"input",2),ms([Le("#invalid-message")],vs.prototype,"invalidMessage",2),ms([Ge()],vs.prototype,"hasFocus",2),ms([Ge()],vs.prototype,"showValidStyle",2),ms([Ge()],vs.prototype,"showInvalidStyle",2),ms([Re({reflect:!0})],vs.prototype,"type",2),ms([Re({reflect:!0})],vs.prototype,"size",2),ms([Re()],vs.prototype,"inputmode",2),ms([Re()],vs.prototype,"value",2),ms([er()],vs.prototype,"defaultValue",2),ms([Re()],vs.prototype,"placeholder",2),ms([Re()],vs.prototype,"label",2),ms([Re({attribute:"help-text"})],vs.prototype,"helpText",2),ms([Re({type:Boolean})],vs.prototype,"clearable",2),ms([Re({type:Boolean,reflect:!0})],vs.prototype,"disabled",2),ms([Re({type:Boolean,reflect:!0})],vs.prototype,"readonly",2),ms([Re({attribute:"password-toggle",type:Boolean})],vs.prototype,"passwordToggle",2),ms([Re({attribute:"password-visible",type:Boolean})],vs.prototype,"passwordVisible",2),ms([Re({attribute:"spin-buttons",type:Boolean})],vs.prototype,"spinButtons",2),ms([Re({type:Number})],vs.prototype,"minlength",2),ms([Re({type:Number})],vs.prototype,"maxlength",2),ms([Re()],vs.prototype,"min",2),ms([Re()],vs.prototype,"max",2),ms([Re({reflect:!0})],vs.prototype,"form",2),ms([Re()],vs.prototype,"name",2),ms([Re()],vs.prototype,"title",2),ms([Re({type:Boolean,reflect:!0})],vs.prototype,"required",2),ms([Re()],vs.prototype,"pattern",2),ms([Re()],vs.prototype,"step",2),ms([Re()],vs.prototype,"autocapitalize",2),ms([Re()],vs.prototype,"autocorrect",2),ms([Re()],vs.prototype,"autocomplete",2),ms([Re({type:Boolean})],vs.prototype,"autofocus",2),ms([Re()],vs.prototype,"enterkeyhint",2),ms([Re({type:Boolean,reflect:!0,attribute:"style-on-valid"})],vs.prototype,"styleOnValid",2),ms([Re({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],vs.prototype,"spellcheck",2),ms([mi("disabled",{waitUntilFirstUpdate:!0})],vs.prototype,"handleDisabledChange",1),ms([mi("step",{waitUntilFirstUpdate:!0})],vs.prototype,"handleStepChange",1),ms([mi("value",{waitUntilFirstUpdate:!0})],vs.prototype,"handleValueChange",1),vs=ms([Qe("sd-input")],vs);const ys=Object.freeze(Object.defineProperty({__proto__:null,get default(){return vs}},Symbol.toStringTag,{value:"Module"}));var fs=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,As=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ws(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&fs(e,i,s),s};let xs=class extends Je{constructor(){super(...arguments),this.hasSlotController=new Li(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="${$e("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="${Mo(this.href||void 0)}" target="${Mo(this.target||void 0)}" download="${Mo(this.download)}" rel="${Mo(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="${$e("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="${$e("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};xs.styles=[Je.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)}`],As([Le("a")],xs.prototype,"button",2),As([Re({type:Boolean,reflect:!0})],xs.prototype,"standalone",2),As([Re({reflect:!0})],xs.prototype,"size",2),As([Re({type:Boolean,reflect:!0})],xs.prototype,"inverted",2),As([Re()],xs.prototype,"href",2),As([Re()],xs.prototype,"target",2),As([Re()],xs.prototype,"download",2),xs=As([Qe("sd-link")],xs);const ks=Object.freeze(Object.defineProperty({__proto__:null,get default(){return xs}},Symbol.toStringTag,{value:"Module"}));var Cs=Object.defineProperty,Ss=Object.getOwnPropertyDescriptor,Es=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ss(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Cs(e,i,s),s};let Bs=class extends Je{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?So`div`:t?So`a`:So`button`;return Bo`<${e} part="base" class="${$e("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${Mo(t?this.href:void 0)}" target="${Mo(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${Mo(this.notInteractive||t?void 0:"button")}" aria-labelledby="${Mo(this.notInteractive?void 0:"content")}"><div part="marker" class="${$e("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="${$e("absolute self-center pointer-events-none","cluster"===this.variant&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Bs.styles=[Ve,Je.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))}`],Es([Re({reflect:!0})],Bs.prototype,"variant",2),Es([Re({reflect:!0})],Bs.prototype,"state",2),Es([Re({type:Boolean,reflect:!0})],Bs.prototype,"animated",2),Es([Re({type:Boolean,reflect:!0,attribute:"not-interactive"})],Bs.prototype,"notInteractive",2),Es([Re()],Bs.prototype,"href",2),Es([Re()],Bs.prototype,"target",2),Bs=Es([Qe("sd-map-marker")],Bs);const Is=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Bs}},Symbol.toStringTag,{value:"Module"}));var Ms=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,Os=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ds(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ms(e,i,s),s};let zs=class extends Je{constructor(){super(...arguments),this.hasSlotController=new Li(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?So`summary`:this.separated?So`div`:this.isLink?So`a`:So`button`}render(){const t=this.tag,e=this.isLink,i=this.isButton,o=this.isAccordion,r=(this.hasSlotController.test("[default]"),this.hasSlotController.test("main"),this.hasSlotController.test("description")),s=this.hasSlotController.test("children"),a=this.vertical?"pb-3":"pb-2",n=Bo`<${t} part="base" class="${$e("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="${Mo(o?"navigation-item-details":void 0)}" aria-current="${Mo(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${Mo(i?this.disabled:void 0)}" href="${Mo(e?this.href:void 0)}" target="${Mo(e?this.target:void 0)}" download="${Mo(e?this.download:void 0)}" rel="${Mo(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="${$e("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="${$e("relative pt-3 inline-flex justify-between items-center",o?"grow":"w-full",r||this.separated?"pb-1":a,this.calculatePaddingX)}">${this.divider&&this.vertical?Bo`<sd-divider part="divider" class="${$e("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?Bo`<a class="${$e("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]",!r&&"py-4")}" href="${Mo(e?this.href:void 0)}" target="${Mo(e?this.target:void 0)}" download="${Mo(e?this.download:void 0)}"><slot part="content" class="inline"></slot></a>`:Bo`<slot part="content" class="inline"></slot>`} </span>${(this.chevron||s)&&this.vertical?this.separated?Bo`<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="${$e("mr-4 h-6 w-6 transition-all",o||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:Bo`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${$e("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${r&&this.vertical?Bo`<slot name="description" part="description" class="${$e("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?Bo`<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?Bo`<div part="details" id="navigation-item-details" class="relative flex flex-col">${n}${this.open?Bo`<slot name="children"></slot>`:""}</div>`:Bo`${n}`}};zs.styles=[Ve,Je.styles,Pt($i),Ft`:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],Os([Re({type:Boolean,reflect:!0})],zs.prototype,"vertical",2),Os([Re({reflect:!0})],zs.prototype,"size",2),Os([Re({reflect:!0})],zs.prototype,"href",2),Os([Re()],zs.prototype,"target",2),Os([Re()],zs.prototype,"download",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"current",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"disabled",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"chevron",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"relaxed",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"divider",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"indented",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"open",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"separated",2),zs=Os([Qe("sd-navigation-item")],zs);const Ts=Object.freeze(Object.defineProperty({__proto__:null,get default(){return zs}},Symbol.toStringTag,{value:"Module"}));var Ps=Object.defineProperty,Fs=Object.getOwnPropertyDescriptor,js=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Fs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ps(e,i,s),s};const Qs=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),Ys=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let Us=class extends Je{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 Si(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=Oi(this,"notification.show",{dir:this.localize.dir()});await xi(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Si(this.base);const{keyframes:t,options:e}=Oi(this,"notification.hide",{dir:this.localize.dir()});await xi(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,zi(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,zi(this,"sd-after-hide")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?Ys:Qs;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="${$e("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="${$e("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="${$e("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="${$e("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 bg-neutral-400"></div>`:""}</div>`}};Us.styles=[Ve,Je.styles,Ft`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],js([Le('[part~="base"]')],Us.prototype,"base",2),js([Re({reflect:!0})],Us.prototype,"variant",2),js([Re({type:Boolean,reflect:!0})],Us.prototype,"open",2),js([Re({type:Boolean,reflect:!0})],Us.prototype,"closable",2),js([Re({type:Number})],Us.prototype,"duration",2),js([Re({type:Boolean,reflect:!0,attribute:"duration-indicator"})],Us.prototype,"durationIndicator",2),js([Re({reflect:!0,attribute:"toast-stack"})],Us.prototype,"toastStack",2),js([mi("open",{waitUntilFirstUpdate:!0})],Us.prototype,"handleOpenChange",1),js([mi("duration")],Us.prototype,"handleDurationChange",1),Us=js([Qe("sd-notification")],Us),Di("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Di("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});const Rs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Us}},Symbol.toStringTag,{value:"Module"}));var Gs=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Ls=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Hs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Gs(e,i,s),s};let qs=class extends Je{constructor(){super(...arguments),this.hasSlotController=new Li(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="${$e("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="${$e("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="${$e("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>`}};qs.styles=[Ve,Je.styles,Ft`:host{position:relative;display:block;width:100%;outline:2px solid transparent!important;outline-offset:2px!important}`],Ls([Le('[part="base"]')],qs.prototype,"defaultSlot",2),Ls([Ge()],qs.prototype,"current",2),Ls([Ge()],qs.prototype,"selected",2),Ls([Ge()],qs.prototype,"hasHover",2),Ls([Re({reflect:!0})],qs.prototype,"size",2),Ls([Re({type:Boolean,reflect:!0})],qs.prototype,"checkbox",2),Ls([Re({type:Boolean,reflect:!0})],qs.prototype,"disabled",2),Ls([Re({reflect:!0})],qs.prototype,"value",2),Ls([mi("disabled")],qs.prototype,"handleDisabledChange",1),Ls([mi("selected")],qs.prototype,"handleSelectedChange",1),Ls([mi("value")],qs.prototype,"handleValueChange",1),qs=Ls([Qe("sd-option")],qs);const Vs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return qs}},Symbol.toStringTag,{value:"Module"}));var $s=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Ns=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Zs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&$s(e,i,s),s};let Ks=class extends ji{constructor(){super(...arguments),this.expandable=!1}render(){return ye`<div part="base" class="sm:p-6"><header part="header" id="header" class="${$e("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="${Mo(this.expandable?"button":void 0)}" aria-expanded="${Mo(this.expandable?this.open?"true":"false":void 0)}" aria-controls="${Mo(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="${$e("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="${$e("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="${$e("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="${$e(this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot><slot name="collapse-icon" class="${$e(!this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot></span></header><div part="content" id="content" class="${$e("overflow-hidden",!this.expandable&&"hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></div>`}};Ks.styles=[ji.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)}}`],Ns([Re({type:Boolean,reflect:!0})],Ks.prototype,"expandable",2),Ks=Ns([Qe("sd-quickfact")],Ks),Di("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}}),Di("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});const Js=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ks}},Symbol.toStringTag,{value:"Module"}));var Ws=Object.defineProperty,_s=Object.getOwnPropertyDescriptor,Xs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?_s(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ws(e,i,s),s};let ta=class extends Je{constructor(){super(...arguments),this.hasSlotController=new Li(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="${$e("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="${Mo(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${$e(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>`}};ta.styles=[Je.styles,Ve,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}`],Xs([Le(".button")],ta.prototype,"input",2),Xs([Le(".hidden-input")],ta.prototype,"hiddenInput",2),Xs([Ge()],ta.prototype,"hasFocus",2),Xs([Re({reflect:!0})],ta.prototype,"size",2),Xs([Re({type:Boolean,reflect:!0})],ta.prototype,"disabled",2),Xs([Re({type:Boolean,reflect:!0})],ta.prototype,"checked",2),Xs([Re()],ta.prototype,"value",2),Xs([mi("disabled",{waitUntilFirstUpdate:!0})],ta.prototype,"handleDisabledChange",1),ta=Xs([Qe("sd-radio-button")],ta);const ea=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ta}},Symbol.toStringTag,{value:"Module"})),ia=Ft`${Ve}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var oa=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,sa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ra(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&oa(e,i,s),s};let aa=class extends Je{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=na(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=na(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=na(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=na(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=na(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 na(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}aa.styles=ia,sa([Le("slot")],aa.prototype,"defaultSlot",2),sa([Ge()],aa.prototype,"disableRole",2),sa([Re()],aa.prototype,"label",2),aa=sa([Qe("sd-button-group")],aa);var la=Object.defineProperty,da=Object.getOwnPropertyDescriptor,ha=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?da(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&la(e,i,s),s};let ca=class extends Je{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="${$e("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="${$e("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="${$e("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="${$e("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};ca.styles=[Je.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)}`],ha([Ge()],ca.prototype,"checked",2),ha([Ge()],ca.prototype,"hasFocus",2),ha([Re({reflect:!0})],ca.prototype,"size",2),ha([Re({type:Boolean,reflect:!0})],ca.prototype,"disabled",2),ha([Re()],ca.prototype,"value",2),ha([Re({type:Boolean,reflect:!0})],ca.prototype,"invalid",2),ha([mi("checked")],ca.prototype,"handleCheckedChange",1),ha([mi("disabled",{waitUntilFirstUpdate:!0})],ca.prototype,"handleDisabledChange",1),ca=ha([Qe("sd-radio")],ca);const pa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ca}},Symbol.toStringTag,{value:"Module"}));var ua=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,ma=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ga(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ua(e,i,s),s};let ba=class extends Je{constructor(){super(...arguments),this.formControlController=new fo(this),this.hasSlotController=new Li(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?xo:t?Ao:wo}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,r=this.value;let s=e.indexOf(i)+o;s<0&&(s=e.length-1),s>e.length-1&&(s=0),this.getAllRadios().forEach((t=>{t.checked=!1,this.hasButtonGroup||(t.tabIndex=-1)})),this.value=e[s].value,e[s].checked=!0,this.hasButtonGroup?e[s].shadowRoot.querySelector("button").focus():(e[s].tabIndex=0,e[s].focus()),this.value!==r&&(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 ca&&(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="${$e("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="${$e("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="${$e("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()}`}};ba.dependencies={"sd-button-group":aa},ba.styles=[Ve,Je.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:' *'}`],ma([Le("slot:not([name])")],ba.prototype,"defaultSlot",2),ma([Le("#validation-input")],ba.prototype,"validationInput",2),ma([Le("#invalid-message")],ba.prototype,"invalidMessage",2),ma([Ge()],ba.prototype,"hasButtonGroup",2),ma([Ge()],ba.prototype,"defaultValue",2),ma([Ge()],ba.prototype,"showInvalidStyle",2),ma([Re({reflect:!0})],ba.prototype,"size",2),ma([Re({type:Boolean,reflect:!0})],ba.prototype,"required",2),ma([Re({reflect:!0})],ba.prototype,"orientation",2),ma([Re()],ba.prototype,"label",2),ma([Re({type:Boolean,reflect:!0})],ba.prototype,"boldLabel",2),ma([Re()],ba.prototype,"name",2),ma([Re({reflect:!0})],ba.prototype,"value",2),ma([Re({reflect:!0})],ba.prototype,"form",2),ma([mi("size",{waitUntilFirstUpdate:!0})],ba.prototype,"handleSizeChange",1),ma([mi("showInvalidStyle",{waitUntilFirstUpdate:!0})],ba.prototype,"handleInvalidChange",1),ma([mi("value")],ba.prototype,"handleValueChange",1),ba=ma([Qe("sd-radio-group")],ba);const va=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ba}},Symbol.toStringTag,{value:"Module"}));var ya=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,wa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?fa(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ya(e,i,s),s};let Aa=class extends Je{constructor(){super(...arguments),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.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){const e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,i=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,o=this.isScrollVerticalEnabled&&t.scrollTop>0,r=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1;this.canScroll={left:e,right:i,up:o,down:r},(e||o)&&this.dispatchEvent(new CustomEvent("start")),(i||r)&&this.dispatchEvent(new CustomEvent("end"))}}handleScroll(t){var e;const i="left"===t||"up"===t?-this.step:this.step,o={behavior:"smooth"};o["left"===t||"right"===t?"left":"top"]=i,null==(e=this.scrollContainer)||e.scrollBy(o);const r=`button-${t}`;this.dispatchEvent(new CustomEvent(r,{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="${$e("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}"><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="${$e(t)}" @click="${()=>this.handleScroll("left")}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]"></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="${$e(t)}" @click="${()=>this.handleScroll("right")}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]"></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="${$e(t)}" @click="${()=>this.handleScroll("up")}"><slot name="icon-start"><sd-icon library="system" name="chevron-up"></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="${$e(t)}" @click="${()=>this.handleScroll("down")}"><slot name="icon-end"><sd-icon library="system" name="chevron-down"></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}`}};Aa.styles=[Je.styles,Pt($i),Ve,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}`],wa([Re({type:String,reflect:!0})],Aa.prototype,"orientation",2),wa([Re({type:Boolean,reflect:!0})],Aa.prototype,"scrollbars",2),wa([Re({type:Boolean,reflect:!0})],Aa.prototype,"buttons",2),wa([Re({type:Boolean,reflect:!0})],Aa.prototype,"shadows",2),wa([Re({type:Boolean,reflect:!0})],Aa.prototype,"inset",2),wa([Re({type:Number,reflect:!0})],Aa.prototype,"step",2),wa([Ge()],Aa.prototype,"canScroll",2),wa([Ge()],Aa.prototype,"isScrollHorizontalEnabled",2),wa([Ge()],Aa.prototype,"isScrollVerticalEnabled",2),Aa=wa([Qe("sd-scrollable")],Aa);const xa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Aa}},Symbol.toStringTag,{value:"Module"}));var ka=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,Sa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ca(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ka(e,i,s),s};let Ea=class extends Je{constructor(){super(...arguments),this.size="lg",this.selected=!1,this.removable=!1,this.disabled=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}render(){const t=this.isLink(),e=t?So`a`:So`button`;return Bo`<${e} part="base" type="${Mo(t?void 0:"button")}" href="${Mo(t?this.href:void 0)}" rel="${Mo(t&&this.target?"noreferrer noopener":void 0)}" target="${Mo(t?this.target:void 0)}" download="${Mo(t?this.download:void 0)}" ?disabled="${Mo(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${$e("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!t&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?Bo`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${$e({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};Ea.styles=[Je.styles,Ft`:host{display:inline-block}`],Sa([Le("a, button")],Ea.prototype,"tag",2),Sa([Re({reflect:!0})],Ea.prototype,"size",2),Sa([Re({type:Boolean,reflect:!0})],Ea.prototype,"selected",2),Sa([Re({type:Boolean,reflect:!0})],Ea.prototype,"removable",2),Sa([Re({type:Boolean,reflect:!0})],Ea.prototype,"disabled",2),Sa([Re()],Ea.prototype,"href",2),Sa([Re()],Ea.prototype,"target",2),Sa([Re()],Ea.prototype,"download",2),Ea=Sa([Qe("sd-tag")],Ea);const Ba=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ea}},Symbol.toStringTag,{value:"Module"}));var Ia=Object.defineProperty,Ma=Object.getOwnPropertyDescriptor,Da=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ma(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ia(e,i,s),s};let Oa=class extends Je{constructor(){super(...arguments),this.formControlController=new fo(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new Li(this,"help-text","label"),this.localize=new S(this),this.typeToSelectString="",this.hasHover=!1,this.displayLabel="",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="
101
+ */function ls(t){void 0!==this._$AN?(as(this),this._$AM=t,ns(this)):this._$AM=t}function ds(t,e=!1,i=0){const o=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(o))for(let t=i;t<o.length;t++)ss(o[t],!1),as(o[t]);else null!=o&&(ss(o,!1),as(o));else ss(this,t)}const hs=t=>{2==t.type&&(t._$AP??(t._$AP=ds),t._$AQ??(t._$AQ=ls))};class cs extends hi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),ns(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&&(ss(this,t),as(this))}setValue(t){if(ir(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 ps=di(class extends cs{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 us=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,ms=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?gs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&us(e,i,s),s};const bs=!(null==(i=navigator.userAgentData)?void 0:i.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let vs=class extends Je{constructor(){super(...arguments),this.formControlController=new fo(this),this.hasSlotController=new Li(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"),r=!!this.label||!!t,s=!!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="${$e(this.disabled&&"pointer-events-none")}"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${$e(r?"inline-block":"hidden",l)}" for="input" aria-hidden="${r?"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="${$e("absolute w-full h-full pointer-events-none border rounded-default",d)}"></div><div part="base" class="${$e("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="${$e("inline-flex","sm"===this.size?"mr-1":"mr-2",h,p)}"></slot>`:""} <input part="input" id="input" class="${$e("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="${Mo(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Mo(this.placeholder)}" minlength="${Mo(this.minlength)}" maxlength="${Mo(this.maxlength)}" min="${Mo(this.min)}" max="${Mo(this.max)}" step="${Mo(this.step)}" .value="${rr(this.value)}" autocapitalize="${Mo("password"===this.type?"off":this.autocapitalize)}" autocomplete="${Mo("password"===this.type?"off":this.autocomplete)}" autocorrect="${Mo("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${Mo(this.pattern)}" enterkeyhint="${Mo(this.enterkeyhint)}" inputmode="${Mo(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="${$e("flex justify-center ",c)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${$e("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="${$e(h,c,p)}" library="system" name="eye"></sd-icon></slot>`:ye`<slot name="hide-password-icon"><sd-icon class="${$e(h,c,p)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||bs?"":ye`<sd-icon class="${$e(h,c,p)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?ye`<sd-icon class="${$e(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="${$e(h,c,p)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${$e("text-error",c,p)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?ye`<sd-icon class="${$e("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="${$e("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" ${ps({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-icon library="global-resources" name="system/minus-round" label="Decrease value" class="${$e(h,c,p)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${ps({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon library="global-resources" name="system/plus-round" label="Decrease value" class="${$e(h,c,p)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${$e("text-sm text-neutral-700",s?"block":"hidden")}" aria-hidden="${!s}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};vs.styles=[Ve,Je.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))}`],ms([Le("#input")],vs.prototype,"input",2),ms([Le("#invalid-message")],vs.prototype,"invalidMessage",2),ms([Ge()],vs.prototype,"hasFocus",2),ms([Ge()],vs.prototype,"showValidStyle",2),ms([Ge()],vs.prototype,"showInvalidStyle",2),ms([Re({reflect:!0})],vs.prototype,"type",2),ms([Re({reflect:!0})],vs.prototype,"size",2),ms([Re()],vs.prototype,"inputmode",2),ms([Re()],vs.prototype,"value",2),ms([er()],vs.prototype,"defaultValue",2),ms([Re()],vs.prototype,"placeholder",2),ms([Re()],vs.prototype,"label",2),ms([Re({attribute:"help-text"})],vs.prototype,"helpText",2),ms([Re({type:Boolean})],vs.prototype,"clearable",2),ms([Re({type:Boolean,reflect:!0})],vs.prototype,"disabled",2),ms([Re({type:Boolean,reflect:!0})],vs.prototype,"readonly",2),ms([Re({attribute:"password-toggle",type:Boolean})],vs.prototype,"passwordToggle",2),ms([Re({attribute:"password-visible",type:Boolean})],vs.prototype,"passwordVisible",2),ms([Re({attribute:"spin-buttons",type:Boolean})],vs.prototype,"spinButtons",2),ms([Re({type:Number})],vs.prototype,"minlength",2),ms([Re({type:Number})],vs.prototype,"maxlength",2),ms([Re()],vs.prototype,"min",2),ms([Re()],vs.prototype,"max",2),ms([Re({reflect:!0})],vs.prototype,"form",2),ms([Re()],vs.prototype,"name",2),ms([Re()],vs.prototype,"title",2),ms([Re({type:Boolean,reflect:!0})],vs.prototype,"required",2),ms([Re()],vs.prototype,"pattern",2),ms([Re()],vs.prototype,"step",2),ms([Re()],vs.prototype,"autocapitalize",2),ms([Re()],vs.prototype,"autocorrect",2),ms([Re()],vs.prototype,"autocomplete",2),ms([Re({type:Boolean})],vs.prototype,"autofocus",2),ms([Re()],vs.prototype,"enterkeyhint",2),ms([Re({type:Boolean,reflect:!0,attribute:"style-on-valid"})],vs.prototype,"styleOnValid",2),ms([Re({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],vs.prototype,"spellcheck",2),ms([mi("disabled",{waitUntilFirstUpdate:!0})],vs.prototype,"handleDisabledChange",1),ms([mi("step",{waitUntilFirstUpdate:!0})],vs.prototype,"handleStepChange",1),ms([mi("value",{waitUntilFirstUpdate:!0})],vs.prototype,"handleValueChange",1),vs=ms([Qe("sd-input")],vs);const ys=Object.freeze(Object.defineProperty({__proto__:null,get default(){return vs}},Symbol.toStringTag,{value:"Module"}));var fs=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,As=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ws(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&fs(e,i,s),s};let xs=class extends Je{constructor(){super(...arguments),this.hasSlotController=new Li(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="${$e("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="${Mo(this.href||void 0)}" target="${Mo(this.target||void 0)}" download="${Mo(this.download)}" rel="${Mo(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="${$e("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="${$e("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};xs.styles=[Je.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)}`],As([Le("a")],xs.prototype,"button",2),As([Re({type:Boolean,reflect:!0})],xs.prototype,"standalone",2),As([Re({reflect:!0})],xs.prototype,"size",2),As([Re({type:Boolean,reflect:!0})],xs.prototype,"inverted",2),As([Re()],xs.prototype,"href",2),As([Re()],xs.prototype,"target",2),As([Re()],xs.prototype,"download",2),xs=As([Qe("sd-link")],xs);const ks=Object.freeze(Object.defineProperty({__proto__:null,get default(){return xs}},Symbol.toStringTag,{value:"Module"}));var Cs=Object.defineProperty,Ss=Object.getOwnPropertyDescriptor,Es=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ss(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Cs(e,i,s),s};let Bs=class extends Je{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?So`div`:t?So`a`:So`button`;return Bo`<${e} part="base" class="${$e("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${Mo(t?this.href:void 0)}" target="${Mo(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${Mo(this.notInteractive||t?void 0:"button")}" aria-labelledby="${Mo(this.notInteractive?void 0:"content")}"><div part="marker" class="${$e("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="${$e("absolute self-center pointer-events-none","cluster"===this.variant&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Bs.styles=[Ve,Je.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))}`],Es([Re({reflect:!0})],Bs.prototype,"variant",2),Es([Re({reflect:!0})],Bs.prototype,"state",2),Es([Re({type:Boolean,reflect:!0})],Bs.prototype,"animated",2),Es([Re({type:Boolean,reflect:!0,attribute:"not-interactive"})],Bs.prototype,"notInteractive",2),Es([Re()],Bs.prototype,"href",2),Es([Re()],Bs.prototype,"target",2),Bs=Es([Qe("sd-map-marker")],Bs);const Is=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Bs}},Symbol.toStringTag,{value:"Module"}));var Ms=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,Os=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ds(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ms(e,i,s),s};let zs=class extends Je{constructor(){super(...arguments),this.hasSlotController=new Li(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?So`summary`:this.separated?So`div`:this.isLink?So`a`:So`button`}render(){const t=this.tag,e=this.isLink,i=this.isButton,o=this.isAccordion,r=(this.hasSlotController.test("[default]"),this.hasSlotController.test("main"),this.hasSlotController.test("description")),s=this.hasSlotController.test("children"),a=this.vertical?"pb-3":"pb-2",n=Bo`<${t} part="base" class="${$e("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="${Mo(o?"navigation-item-details":void 0)}" aria-current="${Mo(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${Mo(i?this.disabled:void 0)}" href="${Mo(e?this.href:void 0)}" target="${Mo(e?this.target:void 0)}" download="${Mo(e?this.download:void 0)}" rel="${Mo(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="${$e("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="${$e("relative pt-3 inline-flex justify-between items-center",o?"grow":"w-full",r||this.separated?"pb-1":a,this.calculatePaddingX)}">${this.divider&&this.vertical?Bo`<sd-divider part="divider" class="${$e("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?Bo`<a class="${$e("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]",!r&&"py-4")}" href="${Mo(e?this.href:void 0)}" target="${Mo(e?this.target:void 0)}" download="${Mo(e?this.download:void 0)}"><slot part="content" class="inline"></slot></a>`:Bo`<slot part="content" class="inline"></slot>`} </span>${(this.chevron||s)&&this.vertical?this.separated?Bo`<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="${$e("mr-4 h-6 w-6 transition-all",o||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:Bo`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${$e("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${r&&this.vertical?Bo`<slot name="description" part="description" class="${$e("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?Bo`<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?Bo`<div part="details" id="navigation-item-details" class="relative flex flex-col">${n}${this.open?Bo`<slot name="children"></slot>`:""}</div>`:Bo`${n}`}};zs.styles=[Ve,Je.styles,Pt($i),Ft`:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],Os([Re({type:Boolean,reflect:!0})],zs.prototype,"vertical",2),Os([Re({reflect:!0})],zs.prototype,"size",2),Os([Re({reflect:!0})],zs.prototype,"href",2),Os([Re()],zs.prototype,"target",2),Os([Re()],zs.prototype,"download",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"current",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"disabled",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"chevron",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"relaxed",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"divider",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"indented",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"open",2),Os([Re({type:Boolean,reflect:!0})],zs.prototype,"separated",2),zs=Os([Qe("sd-navigation-item")],zs);const Ts=Object.freeze(Object.defineProperty({__proto__:null,get default(){return zs}},Symbol.toStringTag,{value:"Module"}));var Ps=Object.defineProperty,Fs=Object.getOwnPropertyDescriptor,js=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Fs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ps(e,i,s),s};const Qs=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),Ys=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let Us=class extends Je{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 Si(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=Oi(this,"notification.show",{dir:this.localize.dir()});await xi(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Si(this.base);const{keyframes:t,options:e}=Oi(this,"notification.hide",{dir:this.localize.dir()});await xi(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,zi(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,zi(this,"sd-after-hide")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?Ys:Qs;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="${$e("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="${$e("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="${$e("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="${$e("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 bg-neutral-400"></div>`:""}</div>`}};Us.styles=[Ve,Je.styles,Ft`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],js([Le('[part~="base"]')],Us.prototype,"base",2),js([Re({reflect:!0})],Us.prototype,"variant",2),js([Re({type:Boolean,reflect:!0})],Us.prototype,"open",2),js([Re({type:Boolean,reflect:!0})],Us.prototype,"closable",2),js([Re({type:Number})],Us.prototype,"duration",2),js([Re({type:Boolean,reflect:!0,attribute:"duration-indicator"})],Us.prototype,"durationIndicator",2),js([Re({reflect:!0,attribute:"toast-stack"})],Us.prototype,"toastStack",2),js([mi("open",{waitUntilFirstUpdate:!0})],Us.prototype,"handleOpenChange",1),js([mi("duration")],Us.prototype,"handleDurationChange",1),Us=js([Qe("sd-notification")],Us),Di("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Di("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});const Rs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Us}},Symbol.toStringTag,{value:"Module"}));var Gs=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Ls=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Hs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Gs(e,i,s),s};let qs=class extends Je{constructor(){super(...arguments),this.hasSlotController=new Li(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="${$e("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="${$e("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="${$e("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>`}};qs.styles=[Ve,Je.styles,Ft`:host{position:relative;display:block;width:100%;outline:2px solid transparent!important;outline-offset:2px!important}`],Ls([Le('[part="base"]')],qs.prototype,"defaultSlot",2),Ls([Ge()],qs.prototype,"current",2),Ls([Ge()],qs.prototype,"selected",2),Ls([Ge()],qs.prototype,"hasHover",2),Ls([Re({reflect:!0})],qs.prototype,"size",2),Ls([Re({type:Boolean,reflect:!0})],qs.prototype,"checkbox",2),Ls([Re({type:Boolean,reflect:!0})],qs.prototype,"disabled",2),Ls([Re({reflect:!0})],qs.prototype,"value",2),Ls([mi("disabled")],qs.prototype,"handleDisabledChange",1),Ls([mi("selected")],qs.prototype,"handleSelectedChange",1),Ls([mi("value")],qs.prototype,"handleValueChange",1),qs=Ls([Qe("sd-option")],qs);const Vs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return qs}},Symbol.toStringTag,{value:"Module"}));var $s=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Ns=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Zs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&$s(e,i,s),s};let Ks=class extends ji{constructor(){super(...arguments),this.expandable=!1}render(){return ye`<div part="base" class="sm:p-6"><header part="header" id="header" class="${$e("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="${Mo(this.expandable?"button":void 0)}" aria-expanded="${Mo(this.expandable?this.open?"true":"false":void 0)}" aria-controls="${Mo(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="${$e("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="${$e("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="${$e("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="${$e(this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot><slot name="collapse-icon" class="${$e(!this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot></span></header><div part="content" id="content" class="${$e("overflow-hidden",!this.expandable&&"hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></div>`}};Ks.styles=[ji.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)}}`],Ns([Re({type:Boolean,reflect:!0})],Ks.prototype,"expandable",2),Ks=Ns([Qe("sd-quickfact")],Ks),Di("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}}),Di("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});const Js=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ks}},Symbol.toStringTag,{value:"Module"}));var Ws=Object.defineProperty,_s=Object.getOwnPropertyDescriptor,Xs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?_s(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ws(e,i,s),s};let ta=class extends Je{constructor(){super(...arguments),this.hasSlotController=new Li(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="${$e("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="${Mo(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${$e(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>`}};ta.styles=[Je.styles,Ve,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}`],Xs([Le(".button")],ta.prototype,"input",2),Xs([Le(".hidden-input")],ta.prototype,"hiddenInput",2),Xs([Ge()],ta.prototype,"hasFocus",2),Xs([Re({reflect:!0})],ta.prototype,"size",2),Xs([Re({type:Boolean,reflect:!0})],ta.prototype,"disabled",2),Xs([Re({type:Boolean,reflect:!0})],ta.prototype,"checked",2),Xs([Re()],ta.prototype,"value",2),Xs([mi("disabled",{waitUntilFirstUpdate:!0})],ta.prototype,"handleDisabledChange",1),ta=Xs([Qe("sd-radio-button")],ta);const ea=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ta}},Symbol.toStringTag,{value:"Module"})),ia=Ft`${Ve}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var oa=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,sa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ra(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&oa(e,i,s),s};let aa=class extends Je{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=na(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=na(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=na(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=na(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=na(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 na(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}aa.styles=ia,sa([Le("slot")],aa.prototype,"defaultSlot",2),sa([Ge()],aa.prototype,"disableRole",2),sa([Re()],aa.prototype,"label",2),aa=sa([Qe("sd-button-group")],aa);var la=Object.defineProperty,da=Object.getOwnPropertyDescriptor,ha=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?da(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&la(e,i,s),s};let ca=class extends Je{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="${$e("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="${$e("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="${$e("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="${$e("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};ca.styles=[Je.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)}`],ha([Ge()],ca.prototype,"checked",2),ha([Ge()],ca.prototype,"hasFocus",2),ha([Re({reflect:!0})],ca.prototype,"size",2),ha([Re({type:Boolean,reflect:!0})],ca.prototype,"disabled",2),ha([Re()],ca.prototype,"value",2),ha([Re({type:Boolean,reflect:!0})],ca.prototype,"invalid",2),ha([mi("checked")],ca.prototype,"handleCheckedChange",1),ha([mi("disabled",{waitUntilFirstUpdate:!0})],ca.prototype,"handleDisabledChange",1),ca=ha([Qe("sd-radio")],ca);const pa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ca}},Symbol.toStringTag,{value:"Module"}));var ua=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,ma=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ga(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ua(e,i,s),s};let ba=class extends Je{constructor(){super(...arguments),this.formControlController=new fo(this),this.hasSlotController=new Li(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?xo:t?Ao:wo}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,r=this.value;let s=e.indexOf(i)+o;s<0&&(s=e.length-1),s>e.length-1&&(s=0),this.getAllRadios().forEach((t=>{t.checked=!1,this.hasButtonGroup||(t.tabIndex=-1)})),this.value=e[s].value,e[s].checked=!0,this.hasButtonGroup?e[s].shadowRoot.querySelector("button").focus():(e[s].tabIndex=0,e[s].focus()),this.value!==r&&(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 ca&&(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="${$e("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="${$e("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="${$e("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()}`}};ba.dependencies={"sd-button-group":aa},ba.styles=[Ve,Je.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:' *'}`],ma([Le("slot:not([name])")],ba.prototype,"defaultSlot",2),ma([Le("#validation-input")],ba.prototype,"validationInput",2),ma([Le("#invalid-message")],ba.prototype,"invalidMessage",2),ma([Ge()],ba.prototype,"hasButtonGroup",2),ma([Ge()],ba.prototype,"defaultValue",2),ma([Ge()],ba.prototype,"showInvalidStyle",2),ma([Re({reflect:!0})],ba.prototype,"size",2),ma([Re({type:Boolean,reflect:!0})],ba.prototype,"required",2),ma([Re({reflect:!0})],ba.prototype,"orientation",2),ma([Re()],ba.prototype,"label",2),ma([Re({type:Boolean,reflect:!0})],ba.prototype,"boldLabel",2),ma([Re()],ba.prototype,"name",2),ma([Re({reflect:!0})],ba.prototype,"value",2),ma([Re({reflect:!0})],ba.prototype,"form",2),ma([mi("size",{waitUntilFirstUpdate:!0})],ba.prototype,"handleSizeChange",1),ma([mi("showInvalidStyle",{waitUntilFirstUpdate:!0})],ba.prototype,"handleInvalidChange",1),ma([mi("value")],ba.prototype,"handleValueChange",1),ba=ma([Qe("sd-radio-group")],ba);const va=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ba}},Symbol.toStringTag,{value:"Module"}));var ya=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,wa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?fa(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ya(e,i,s),s};let Aa=class extends Je{constructor(){super(...arguments),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.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){const e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,i=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,o=this.isScrollVerticalEnabled&&t.scrollTop>0,r=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1;this.canScroll={left:e,right:i,up:o,down:r},(e||o)&&this.dispatchEvent(new CustomEvent("start")),(i||r)&&this.dispatchEvent(new CustomEvent("end"))}}handleScroll(t){var e;const i="left"===t||"up"===t?-this.step:this.step,o={behavior:"smooth"};o["left"===t||"right"===t?"left":"top"]=i,null==(e=this.scrollContainer)||e.scrollBy(o);const r=`button-${t}`;this.dispatchEvent(new CustomEvent(r,{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="${$e("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}"><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="${$e(t)}" @click="${()=>this.handleScroll("left")}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]"></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="${$e(t)}" @click="${()=>this.handleScroll("right")}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]"></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="${$e(t)}" @click="${()=>this.handleScroll("up")}"><slot name="icon-start"><sd-icon library="system" name="chevron-up"></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="${$e(t)}" @click="${()=>this.handleScroll("down")}"><slot name="icon-end"><sd-icon library="system" name="chevron-down"></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}`}};Aa.styles=[Je.styles,Pt($i),Ve,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}`],wa([Re({type:String,reflect:!0})],Aa.prototype,"orientation",2),wa([Re({type:Boolean,reflect:!0})],Aa.prototype,"scrollbars",2),wa([Re({type:Boolean,reflect:!0})],Aa.prototype,"buttons",2),wa([Re({type:Boolean,reflect:!0})],Aa.prototype,"shadows",2),wa([Re({type:Boolean,reflect:!0})],Aa.prototype,"inset",2),wa([Re({type:Number,reflect:!0})],Aa.prototype,"step",2),wa([Ge()],Aa.prototype,"canScroll",2),wa([Ge()],Aa.prototype,"isScrollHorizontalEnabled",2),wa([Ge()],Aa.prototype,"isScrollVerticalEnabled",2),Aa=wa([Qe("sd-scrollable")],Aa);const xa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Aa}},Symbol.toStringTag,{value:"Module"}));var ka=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,Sa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ca(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ka(e,i,s),s};let Ea=class extends Je{constructor(){super(...arguments),this.size="lg",this.selected=!1,this.toggleable=!1,this.removable=!1,this.disabled=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}render(){const t=this.isLink(),e=t?So`a`:So`button`;return Bo`<${e} part="base" type="${Mo(t?void 0:"button")}" href="${Mo(t?this.href:void 0)}" rel="${Mo(t&&this.target?"noreferrer noopener":void 0)}" target="${Mo(t?this.target:void 0)}" download="${Mo(t?this.download:void 0)}" ?disabled="${Mo(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${Mo(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${$e("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!t&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?Bo`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${$e({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};Ea.styles=[Je.styles,Ft`:host{display:inline-block}`],Sa([Le("a, button")],Ea.prototype,"tag",2),Sa([Re({reflect:!0})],Ea.prototype,"size",2),Sa([Re({type:Boolean,reflect:!0})],Ea.prototype,"selected",2),Sa([Re({type:Boolean,reflect:!0})],Ea.prototype,"toggleable",2),Sa([Re({type:Boolean,reflect:!0})],Ea.prototype,"removable",2),Sa([Re({type:Boolean,reflect:!0})],Ea.prototype,"disabled",2),Sa([Re()],Ea.prototype,"href",2),Sa([Re()],Ea.prototype,"target",2),Sa([Re()],Ea.prototype,"download",2),Ea=Sa([Qe("sd-tag")],Ea);const Ba=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ea}},Symbol.toStringTag,{value:"Module"}));var Ia=Object.defineProperty,Ma=Object.getOwnPropertyDescriptor,Da=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ma(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ia(e,i,s),s};let Oa=class extends Je{constructor(){super(...arguments),this.formControlController=new fo(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new Li(this,"help-text","label"),this.localize=new S(this),this.typeToSelectString="",this.hasHover=!1,this.displayLabel="",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="
102
102
  base:tag__base,
103
103
  content:tag__content,
104
104
  removable-indicator:tag__removable-indicator,
105
105
  " size="${"sm"===this.size?"sm":"lg"}" removable @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-tag>`,this.handleDocumentFocusIn=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()},this.handleDocumentKeyDown=t=>{const e=t.target,i=null!==e.closest(".select__clear"),o=null!==e.closest("sd-icon-button");if(!i&&!o){if("Escape"===t.key&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===t.key||" "===t.key&&""===this.typeToSelectString)return t.preventDefault(),t.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.getAllOptions(),i=e.indexOf(this.currentOption);let o=Math.max(0,i);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===t.key?(o=i+1,o>e.length-1&&(o=0)):"ArrowUp"===t.key?(o=i-1,o<0&&(o=e.length-1)):"Home"===t.key?o=0:"End"===t.key&&(o=e.length-1),this.setCurrentOption(e[o])}if(1===t.key.length||"Backspace"===t.key){const e=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if("Backspace"===t.key)return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===t.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(const t of e)if(t.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(t);break}}}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.applySizeToOptions(),this.open=!1}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){const e=t.composedPath().some((t=>t instanceof HTMLSlotElement&&"removable-indicator"===t.name));this.disabled||e||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})))}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){const e=t.target.closest("sd-option"),i=this.value;e&&!e.disabled&&(this.multiple?this.toggleOptionSelection(e):this.setSelectedOptions(e),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==i&&this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],i=[];customElements.get("sd-option")?(t.forEach((t=>{this.multiple&&(t.checkbox=!0),i.push(t.value)})),this.setSelectedOptions(t.filter((t=>e.includes(t.value))))):customElements.whenDefined("sd-option").then((()=>this.handleDefaultSlotChange()))}handleTagRemove(t,e){t.stopPropagation(),this.disabled||(this.toggleOptionSelection(e,!1),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})))}getAllOptions(){return[...this.querySelectorAll("sd-option")]}getFirstOption(){return this.querySelector("sd-option")}setCurrentOption(t){this.getAllOptions().forEach((t=>{t.current=!1,t.tabIndex=-1})),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){const e=this.getAllOptions(),i=Array.isArray(t)?t:[t];e.forEach((t=>t.selected=!1)),i.length&&i.forEach((t=>t.selected=!0)),this.selectionChanged()}toggleOptionSelection(t,e){t.selected=!0===e||!1===e?e:!t.selected,this.selectionChanged()}selectionChanged(){var t,e;this.selectedOptions=this.getAllOptions().filter((t=>t.selected)),this.multiple?(this.value=this.selectedOptions.map((t=>t.value)),this.useTags||0===this.value.length?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(null==(t=this.selectedOptions[0])?void 0:t.value)??"",this.displayLabel=(null==(e=this.selectedOptions[0])?void 0:e.getTextLabel())??""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}get tags(){return this.selectedOptions.map(((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){const i=this.getTag(t,e);return ye`<div @sd-remove="${e=>this.handleTagRemove(e,t)}">${"string"==typeof i?pi(i):i}</div>`}return e===this.maxOptionsVisible?ye`<sd-tag size="${"sm"===this.size?"sm":"lg"}" ?disabled="${this.disabled}">+${this.selectedOptions.length-e}</sd-tag>`:ye``}))}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){const e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){const t=this.getAllOptions();customElements.get("sd-option")&&t.forEach((t=>{t.checkbox=this.multiple}))}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await Si(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:t,options:e}=Oi(this,"select.show",{dir:this.localize.dir()});await xi(this.popup.popup,t,e),this.currentOption&&ur(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await Si(this);const{keyframes:t,options:e}=Oi(this,"select.hide",{dir:this.localize.dir()});await xi(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach((t=>{t.size=this.size}))}handleValueChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter((t=>e.includes(t.value))))}async show(){if(!this.open&&!this.disabled)return this.open=!0,zi(this,"sd-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,zi(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,r=this.clearable&&!this.disabled&&this.value.length>0,s=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",a=this.disabled?"cursor-not-allowed":"cursor-pointer",n={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],l={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return ye`<div part="form-control" class="${$e("relative text-left",a,"sm"===this.size?"text-sm":"text-base",this.open&&"z-50")}"><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="${$e("relative w-full bg-white","disabled"===s?"text-neutral-500":"text-black")}"><div part="border" class="${$e("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[s],this.open&&("bottom"===this.currentPlacement?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${$e("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="
106
106
  popup:popup__content,
107
- "><div part="combobox" class="${$e("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="${$e("appearance-none outline-none flex-grow bg-transparent w-full",a,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-describedby="help-text 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>`:""} <input class="${$e("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",a)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${r?ye`<button part="clear-button" class="${$e("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="${$e("text-icon-fill-neutral-800",l)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${$e(n,l,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?ye`<sd-icon part="valid-icon" class="${$e("flex-shrink-0 text-success",n,l)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${$e("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="${$e("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" @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()}`}};Oa.dependencies={"sd-icon":wi,"sd-popup":ti,"sd-tag":Ea},Oa.styles=[Ve,Je.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);overflow-y:scroll}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249) / var(--tw-bg-opacity))}`],Da([qe({selector:"sd-option"})],Oa.prototype,"_optionsInDefaultSlot",2),Da([Le("sd-popup")],Oa.prototype,"popup",2),Da([Le('[part="combobox"]')],Oa.prototype,"combobox",2),Da([Le('[part="display-input"]')],Oa.prototype,"displayInput",2),Da([Le(".value-input")],Oa.prototype,"valueInput",2),Da([Le('[part="listbox"]')],Oa.prototype,"listbox",2),Da([Le("#invalid-message")],Oa.prototype,"invalidMessage",2),Da([Ge()],Oa.prototype,"hasHover",2),Da([Ge()],Oa.prototype,"displayLabel",2),Da([Ge()],Oa.prototype,"hasFocus",2),Da([Ge()],Oa.prototype,"currentOption",2),Da([Ge()],Oa.prototype,"selectedOptions",2),Da([Ge()],Oa.prototype,"showValidStyle",2),Da([Ge()],Oa.prototype,"showInvalidStyle",2),Da([er()],Oa.prototype,"defaultValue",2),Da([Re({type:Boolean,reflect:!0})],Oa.prototype,"open",2),Da([Re({reflect:!0})],Oa.prototype,"size",2),Da([Re({reflect:!0})],Oa.prototype,"placement",2),Da([Re()],Oa.prototype,"label",2),Da([Re()],Oa.prototype,"placeholder",2),Da([Re({type:Boolean,reflect:!0})],Oa.prototype,"disabled",2),Da([Re({attribute:"help-text"})],Oa.prototype,"helpText",2),Da([Ge()],Oa.prototype,"currentPlacement",2),Da([Re({type:Boolean})],Oa.prototype,"clearable",2),Da([Re({type:Boolean,reflect:!0})],Oa.prototype,"multiple",2),Da([Re({type:Boolean,reflect:!0})],Oa.prototype,"useTags",2),Da([Re({attribute:"max-options-visible",type:Number})],Oa.prototype,"maxOptionsVisible",2),Da([Re({reflect:!0})],Oa.prototype,"form",2),Da([Re()],Oa.prototype,"name",2),Da([Re({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],Oa.prototype,"value",2),Da([Re({type:Boolean,reflect:!0})],Oa.prototype,"required",2),Da([Re({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Oa.prototype,"styleOnValid",2),Da([Re({type:Boolean})],Oa.prototype,"hoist",2),Da([Re()],Oa.prototype,"getTag",2),Da([mi("useTags",{waitUntilFirstUpdate:!0})],Oa.prototype,"handleUseTagsChange",1),Da([mi("disabled",{waitUntilFirstUpdate:!0})],Oa.prototype,"handleDisabledChange",1),Da([mi("open",{waitUntilFirstUpdate:!0})],Oa.prototype,"handleOpenChange",1),Da([mi("size",{waitUntilFirstUpdate:!0})],Oa.prototype,"applySizeToOptions",1),Da([mi("value",{waitUntilFirstUpdate:!0})],Oa.prototype,"handleValueChange",1),Oa=Da([Qe("sd-select")],Oa),Di("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Di("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const za=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Oa}},Symbol.toStringTag,{value:"Module"}));var Ta=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Fa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Pa(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ta(e,i,s),s};let ja=class extends Je{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="${$e("flex","vertical"===this.orientation&&"flex-col h-full")}"><slot part="body"></slot></div>`}};ja.styles=[Je.styles,Ve,Ft`:host{width:-moz-max-content;width:max-content}`],Fa([Le("[part=body]")],ja.prototype,"body",2),Fa([Re({reflect:!0})],ja.prototype,"size",2),Fa([Re({reflect:!0})],ja.prototype,"orientation",2),Fa([Re({type:Number,reflect:!0,attribute:"active-step"})],ja.prototype,"activeStep",2),Fa([Re({type:Boolean,reflect:!0,attribute:"not-interactive"})],ja.prototype,"notInteractive",2),Fa([mi("size",{waitUntilFirstUpdate:!0})],ja.prototype,"updateSize",1),Fa([mi("orientation",{waitUntilFirstUpdate:!0})],ja.prototype,"updateOrientation",1),Fa([mi("notInteractive")],ja.prototype,"handleInteractivityChange",1),ja=Fa([Qe("sd-step-group")],ja);const Qa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ja}},Symbol.toStringTag,{value:"Module"}));var Ya=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,Ra=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ua(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ya(e,i,s),s};let Ga=class extends Je{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?So`div`:t?So`a`:So`button`;return Bo`<div part="base" class="${$e("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="${$e("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="${Mo(t?this.href:void 0)}" aria-current="${this.current?"step":void 0}" aria-label="Step ${this.index}" class="${$e("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="${$e(!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?Bo`${this.index}`:Bo`<sd-icon name="status-check" library="system"></sd-icon>`}</slot></${e}>${this.noTail?"":Bo`<div part="tail" class="${$e("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="${$e("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="${$e("!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="${$e("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-500")}">${this.description||Bo`<slot></slot>`}</div></div></div>`}};Ga.styles=[Je.styles,Ve,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)}`],Ra([Re({reflect:!0})],Ga.prototype,"size",2),Ra([Re({reflect:!0})],Ga.prototype,"orientation",2),Ra([Re({type:Boolean,reflect:!0})],Ga.prototype,"disabled",2),Ra([Re({type:Boolean,reflect:!0})],Ga.prototype,"current",2),Ra([Re({reflect:!0,type:Boolean,attribute:"no-tail"})],Ga.prototype,"noTail",2),Ra([Re({type:Boolean,reflect:!0,attribute:"not-interactive"})],Ga.prototype,"notInteractive",2),Ra([Re()],Ga.prototype,"label",2),Ra([Re()],Ga.prototype,"description",2),Ra([Re({type:Number,reflect:!0,attribute:"index"})],Ga.prototype,"index",2),Ra([Re()],Ga.prototype,"href",2),Ra([mi("current")],Ga.prototype,"handleCurrentChange",1),Ra([mi("disabled")],Ga.prototype,"handleDisabledChange",1),Ra([mi("notInteractive")],Ga.prototype,"handleInteractivityChange",1),Ga=Ra([Qe("sd-step")],Ga);const Ha=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ga}},Symbol.toStringTag,{value:"Module"}));var La=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,Va=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?qa(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&La(e,i,s),s};let $a=class extends Je{constructor(){super(...arguments),this.formControlController=new fo(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="${$e("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="${Mo(this.value)}" .checked="${rr(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="${$e("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="${$e("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="${$e("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};$a.styles=[Je.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:' *'}`],Va([Le("input")],$a.prototype,"input",2),Va([Le("#invalid-message")],$a.prototype,"invalidMessage",2),Va([Ge()],$a.prototype,"showInvalidStyle",2),Va([Re()],$a.prototype,"title",2),Va([Re()],$a.prototype,"name",2),Va([Re()],$a.prototype,"value",2),Va([Re({type:Boolean,reflect:!0})],$a.prototype,"disabled",2),Va([Re({type:Boolean,reflect:!0})],$a.prototype,"checked",2),Va([er("checked")],$a.prototype,"defaultChecked",2),Va([Re({reflect:!0})],$a.prototype,"form",2),Va([Re({type:Boolean,reflect:!0})],$a.prototype,"required",2),Va([mi("disabled",{waitUntilFirstUpdate:!0})],$a.prototype,"handleDisabledChange",1),Va([mi(["checked"],{waitUntilFirstUpdate:!0})],$a.prototype,"handleStateChange",1),$a=Va([Qe("sd-switch")],$a);const Za=Object.freeze(Object.defineProperty({__proto__:null,get default(){return $a}},Symbol.toStringTag,{value:"Module"}));var Na=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,Ja=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ka(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Na(e,i,s),s};let Wa=class extends Je{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&&ur(this.tabs[t+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&ur(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"}),ur(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)})),ur(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(i&&this.emit("sd-tab-hide",{detail:{name:i.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach((t=>{const e=this.panels.find((e=>e.name===t.panel));e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))}))}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.updateComplete.then((()=>this.updateScrollControls())),0!==this.tabs.length&&"container"===this.tabs[0].variant&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){const e=this.tabs.find((e=>e.panel===t));e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t="rtl"===this.localize.dir();return ye`<div part="base" class="${$e("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${$e(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?ye`<button part="scroll-button--start" exportparts="base:scroll-button__base" class="${$e("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-icon library="system" name="${t?"chevron-up":"chevron-down"}" class="${$e("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="${$e("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full h-0.25 bg-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?ye`<button part="scroll-button--end" exportparts="base:scroll-button__base" class="${$e("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-icon library="system" name="${t?"chevron-down":"chevron-up"}" class="${$e("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${$e("block auto py-8 px-6","container"===this.variant&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};Wa.styles=[Je.styles,Pt($i),Ve,Ft`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-tab-panel){--padding:1rem 0}`],Ja([Le("[part=base]")],Wa.prototype,"tabGroup",2),Ja([Le("[part=body]")],Wa.prototype,"body",2),Ja([Le("[part=scroll-container]")],Wa.prototype,"nav",2),Ja([Ge()],Wa.prototype,"hasScrollControls",2),Ja([Ge()],Wa.prototype,"variant",2),Ja([Re()],Wa.prototype,"activation",2),Wa=Ja([Qe("sd-tab-group")],Wa);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 r,s=o>1?void 0:o?tn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Xa(e,i,s),s};let on=0,rn=class extends Je{constructor(){super(...arguments),this.attrId=++on,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="${$e("block",this.active&&"tab-panel--active")}"></slot>`}};rn.styles=[Je.styles,Ve,Ft`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],en([Re({reflect:!0})],rn.prototype,"name",2),en([Re({type:Boolean,reflect:!0})],rn.prototype,"active",2),en([mi("active")],rn.prototype,"handleActiveChange",1),rn=en([Qe("sd-tab-panel")],rn);const sn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return rn}},Symbol.toStringTag,{value:"Module"}));var an=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,ln=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?nn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&an(e,i,s),s};let dn=0,hn=class extends Je{constructor(){super(...arguments),this.attrId=++dn,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="${$e("inline-flex min-w-max h-12 px-3 leading-none items-center justify-center whitespace-nowrap select-none cursor-pointer group relative focus-visible:focus-outline outline-2 !-outline-offset-2","container"===this.variant&&" rounded-[4px_4px_0_0]","container"===this.variant&&this.active&&"tab--active-container-border bg-white",this.disabled?"opacity-50 !cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${this.disabled?"-1":"0"}"><slot name="left" class="${$e("pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${$e(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${$e((!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="${$e(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};hn.styles=[Je.styles,Ve,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}`],ln([Le("[part=base]")],hn.prototype,"tab",2),ln([Re({type:String,reflect:!0})],hn.prototype,"variant",2),ln([Re({type:Boolean,reflect:!0})],hn.prototype,"active",2),ln([Re({type:Boolean,reflect:!0})],hn.prototype,"disabled",2),ln([Re({reflect:!0})],hn.prototype,"panel",2),ln([mi("active")],hn.prototype,"handleActiveChange",1),ln([mi("disabled")],hn.prototype,"handleDisabledChange",1),hn=ln([Qe("sd-tab")],hn);const cn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return hn}},Symbol.toStringTag,{value:"Module"}));var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,gn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?un(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&pn(e,i,s),s};let mn=class extends Je{constructor(){super(...arguments),this.variant="white",this.hasSlotController=new Li(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="${$e("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="${$e("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="${$e({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="${$e("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. &lt;h2>)</slot></div><div class="${$e("hidden",t["teaser-has-expandable"]&&"h-[0px] invisible opacity-0 md:[transition:_height_0.2s_linear,opacity_0.1s_linear_0.1s] md:block md:group-hover:h-auto md:group-hover:my-4 md:group-hover:opacity-[100%] md:group-hover:visible")}" part="expandable"><slot name="expandable"></slot></div><div part="main" class="${$e(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};mn.styles=[Je.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}`],gn([Re({reflect:!0})],mn.prototype,"variant",2),gn([Le('[part="base"]')],mn.prototype,"teaserMedia",2),mn=gn([Qe("sd-teaser-media")],mn);const bn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return mn}},Symbol.toStringTag,{value:"Module"}));var vn=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,fn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?yn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&vn(e,i,s),s};let wn=class extends Je{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new Li(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="${$e("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="${$e(!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="${$e("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${$e("gap-2 mb-4",!o&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${$e("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. &lt;h2>)</slot></div><div part="main" class="${$e(!e&&"hidden")}"><slot></slot></div></div></div>`}};wn.styles=[Je.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}`],fn([Re({reflect:!0})],wn.prototype,"variant",2),fn([Re({reflect:!0,type:Number})],wn.prototype,"breakpoint",2),fn([Re({type:Boolean,reflect:!0})],wn.prototype,"inset",2),fn([Le('[part="base"]')],wn.prototype,"teaser",2),fn([Ge()],wn.prototype,"_orientation",2),wn=fn([Qe("sd-teaser")],wn);const An=Object.freeze(Object.defineProperty({__proto__:null,get default(){return wn}},Symbol.toStringTag,{value:"Module"}));var xn=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Cn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?kn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&xn(e,i,s),s};let Sn=class extends Je{constructor(){super(...arguments),this.formControlController=new fo(this),this.hasSlotController=new Li(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,r=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",s="sm"===this.size?"text-sm":"text-base",a={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return 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="${$e(i?"inline-block":"hidden",s)}" 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="${$e("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${$e("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"}[r])}"></div><div part="base" class="${$e("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"===r?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${$e("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",s)}" title="${this.title}" name="${Mo(this.name)}" .value="${rr(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Mo(this.placeholder)}" minlength="${Mo(this.minlength)}" maxlength="${Mo(this.maxlength)}" rows="${Mo(this.rows)}" autocapitalize="${Mo(this.autocapitalize)}" autocorrect="${Mo(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${Mo(this.spellcheck)}" enterkeyhint="${Mo(this.enterkeyhint)}" inputmode="${Mo(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?ye`<sd-icon class="${$e("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="${$e("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="${$e("text-sm text-neutral-700",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};Sn.styles=[Ve,Je.styles,Ft`:host{display:block;height:100%}:host([required]) #label::after{content:' *'}.no-scrollbar::-webkit-scrollbar{display:none}`],Cn([Le("#input")],Sn.prototype,"textarea",2),Cn([Le("#invalid-message")],Sn.prototype,"invalidMessage",2),Cn([Ge()],Sn.prototype,"hasFocus",2),Cn([Ge()],Sn.prototype,"showValidStyle",2),Cn([Ge()],Sn.prototype,"showInvalidStyle",2),Cn([Re()],Sn.prototype,"title",2),Cn([Re()],Sn.prototype,"name",2),Cn([Re()],Sn.prototype,"value",2),Cn([Re({reflect:!0})],Sn.prototype,"size",2),Cn([Re()],Sn.prototype,"label",2),Cn([Re({attribute:"help-text"})],Sn.prototype,"helpText",2),Cn([Re()],Sn.prototype,"placeholder",2),Cn([Re({type:Number})],Sn.prototype,"rows",2),Cn([Re({type:Boolean,reflect:!0})],Sn.prototype,"disabled",2),Cn([Re({type:Boolean,reflect:!0})],Sn.prototype,"readonly",2),Cn([Re({reflect:!0})],Sn.prototype,"form",2),Cn([Re({type:Boolean,reflect:!0})],Sn.prototype,"required",2),Cn([Re({type:Number})],Sn.prototype,"minlength",2),Cn([Re({type:Number})],Sn.prototype,"maxlength",2),Cn([Re()],Sn.prototype,"autocapitalize",2),Cn([Re()],Sn.prototype,"autocorrect",2),Cn([Re()],Sn.prototype,"autocomplete",2),Cn([Re({type:Boolean})],Sn.prototype,"autofocus",2),Cn([Re()],Sn.prototype,"enterkeyhint",2),Cn([Re({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Sn.prototype,"styleOnValid",2),Cn([Re({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Sn.prototype,"spellcheck",2),Cn([Re()],Sn.prototype,"inputmode",2),Cn([er()],Sn.prototype,"defaultValue",2),Cn([mi("disabled",{waitUntilFirstUpdate:!0})],Sn.prototype,"handleDisabledChange",1),Cn([mi("rows",{waitUntilFirstUpdate:!0})],Sn.prototype,"handleRowsChange",1),Cn([mi("value",{waitUntilFirstUpdate:!0})],Sn.prototype,"handleValueChange",1),Sn=Cn([Qe("sd-textarea")],Sn);const En=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Sn}},Symbol.toStringTag,{value:"Module"}));var Bn=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Mn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?In(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Bn(e,i,s),s};let Dn=class extends Je{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=ki(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=ki(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await Si(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=Oi(this,"tooltip.show",{dir:this.localize.dir()});await xi(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await Si(this.body);const{keyframes:t,options:e}=Oi(this,"tooltip.hide",{dir:this.localize.dir()});await xi(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,zi(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,zi(this,"sd-after-hide")}render(){const t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return ye`<sd-popup part="base" exportparts="
107
+ "><div part="combobox" class="${$e("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="${$e("appearance-none outline-none flex-grow bg-transparent w-full",a,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-describedby="help-text 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>`:""} <input class="${$e("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",a)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${r?ye`<button part="clear-button" class="${$e("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="${$e("text-icon-fill-neutral-800",l)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${$e(n,l,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?ye`<sd-icon part="valid-icon" class="${$e("flex-shrink-0 text-success",n,l)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${$e("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="${$e("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" @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()}`}};Oa.dependencies={"sd-icon":wi,"sd-popup":ti,"sd-tag":Ea},Oa.styles=[Ve,Je.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);overflow-y:scroll}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249) / var(--tw-bg-opacity))}`],Da([qe({selector:"sd-option"})],Oa.prototype,"_optionsInDefaultSlot",2),Da([Le("sd-popup")],Oa.prototype,"popup",2),Da([Le('[part="combobox"]')],Oa.prototype,"combobox",2),Da([Le('[part="display-input"]')],Oa.prototype,"displayInput",2),Da([Le(".value-input")],Oa.prototype,"valueInput",2),Da([Le('[part="listbox"]')],Oa.prototype,"listbox",2),Da([Le("#invalid-message")],Oa.prototype,"invalidMessage",2),Da([Ge()],Oa.prototype,"hasHover",2),Da([Ge()],Oa.prototype,"displayLabel",2),Da([Ge()],Oa.prototype,"hasFocus",2),Da([Ge()],Oa.prototype,"currentOption",2),Da([Ge()],Oa.prototype,"selectedOptions",2),Da([Ge()],Oa.prototype,"showValidStyle",2),Da([Ge()],Oa.prototype,"showInvalidStyle",2),Da([er()],Oa.prototype,"defaultValue",2),Da([Re({type:Boolean,reflect:!0})],Oa.prototype,"open",2),Da([Re({reflect:!0})],Oa.prototype,"size",2),Da([Re({reflect:!0})],Oa.prototype,"placement",2),Da([Re()],Oa.prototype,"label",2),Da([Re()],Oa.prototype,"placeholder",2),Da([Re({type:Boolean,reflect:!0})],Oa.prototype,"disabled",2),Da([Re({attribute:"help-text"})],Oa.prototype,"helpText",2),Da([Ge()],Oa.prototype,"currentPlacement",2),Da([Re({type:Boolean})],Oa.prototype,"clearable",2),Da([Re({type:Boolean,reflect:!0})],Oa.prototype,"multiple",2),Da([Re({type:Boolean,reflect:!0})],Oa.prototype,"useTags",2),Da([Re({attribute:"max-options-visible",type:Number})],Oa.prototype,"maxOptionsVisible",2),Da([Re({reflect:!0})],Oa.prototype,"form",2),Da([Re()],Oa.prototype,"name",2),Da([Re({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],Oa.prototype,"value",2),Da([Re({type:Boolean,reflect:!0})],Oa.prototype,"required",2),Da([Re({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Oa.prototype,"styleOnValid",2),Da([Re({type:Boolean})],Oa.prototype,"hoist",2),Da([Re()],Oa.prototype,"getTag",2),Da([mi("useTags",{waitUntilFirstUpdate:!0})],Oa.prototype,"handleUseTagsChange",1),Da([mi("disabled",{waitUntilFirstUpdate:!0})],Oa.prototype,"handleDisabledChange",1),Da([mi("open",{waitUntilFirstUpdate:!0})],Oa.prototype,"handleOpenChange",1),Da([mi("size",{waitUntilFirstUpdate:!0})],Oa.prototype,"applySizeToOptions",1),Da([mi("value",{waitUntilFirstUpdate:!0})],Oa.prototype,"handleValueChange",1),Oa=Da([Qe("sd-select")],Oa),Di("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),Di("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const za=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Oa}},Symbol.toStringTag,{value:"Module"}));var Ta=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Fa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Pa(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ta(e,i,s),s};let ja=class extends Je{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="${$e("flex","vertical"===this.orientation&&"flex-col h-full")}"><slot part="body"></slot></div>`}};ja.styles=[Je.styles,Ve,Ft`:host{width:-moz-max-content;width:max-content}`],Fa([Le("[part=body]")],ja.prototype,"body",2),Fa([Re({reflect:!0})],ja.prototype,"size",2),Fa([Re({reflect:!0})],ja.prototype,"orientation",2),Fa([Re({type:Number,reflect:!0,attribute:"active-step"})],ja.prototype,"activeStep",2),Fa([Re({type:Boolean,reflect:!0,attribute:"not-interactive"})],ja.prototype,"notInteractive",2),Fa([mi("size",{waitUntilFirstUpdate:!0})],ja.prototype,"updateSize",1),Fa([mi("orientation",{waitUntilFirstUpdate:!0})],ja.prototype,"updateOrientation",1),Fa([mi("notInteractive")],ja.prototype,"handleInteractivityChange",1),ja=Fa([Qe("sd-step-group")],ja);const Qa=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ja}},Symbol.toStringTag,{value:"Module"}));var Ya=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,Ra=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ua(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ya(e,i,s),s};let Ga=class extends Je{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?So`div`:t?So`a`:So`button`;return Bo`<div part="base" class="${$e("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="${$e("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="${Mo(t?this.href:void 0)}" aria-current="${this.current?"step":void 0}" aria-label="Step ${this.index}" class="${$e("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="${$e(!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?Bo`${this.index}`:Bo`<sd-icon name="status-check" library="system"></sd-icon>`}</slot></${e}>${this.noTail?"":Bo`<div part="tail" class="${$e("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="${$e("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="${$e("!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="${$e("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-500")}">${this.description||Bo`<slot></slot>`}</div></div></div>`}};Ga.styles=[Je.styles,Ve,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)}`],Ra([Re({reflect:!0})],Ga.prototype,"size",2),Ra([Re({reflect:!0})],Ga.prototype,"orientation",2),Ra([Re({type:Boolean,reflect:!0})],Ga.prototype,"disabled",2),Ra([Re({type:Boolean,reflect:!0})],Ga.prototype,"current",2),Ra([Re({reflect:!0,type:Boolean,attribute:"no-tail"})],Ga.prototype,"noTail",2),Ra([Re({type:Boolean,reflect:!0,attribute:"not-interactive"})],Ga.prototype,"notInteractive",2),Ra([Re()],Ga.prototype,"label",2),Ra([Re()],Ga.prototype,"description",2),Ra([Re({type:Number,reflect:!0,attribute:"index"})],Ga.prototype,"index",2),Ra([Re()],Ga.prototype,"href",2),Ra([mi("current")],Ga.prototype,"handleCurrentChange",1),Ra([mi("disabled")],Ga.prototype,"handleDisabledChange",1),Ra([mi("notInteractive")],Ga.prototype,"handleInteractivityChange",1),Ga=Ra([Qe("sd-step")],Ga);const Ha=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ga}},Symbol.toStringTag,{value:"Module"}));var La=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,Va=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?qa(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&La(e,i,s),s};let $a=class extends Je{constructor(){super(...arguments),this.formControlController=new fo(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="${$e("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="${Mo(this.value)}" .checked="${rr(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="${$e("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="${$e("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="${$e("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};$a.styles=[Je.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:' *'}`],Va([Le("input")],$a.prototype,"input",2),Va([Le("#invalid-message")],$a.prototype,"invalidMessage",2),Va([Ge()],$a.prototype,"showInvalidStyle",2),Va([Re()],$a.prototype,"title",2),Va([Re()],$a.prototype,"name",2),Va([Re()],$a.prototype,"value",2),Va([Re({type:Boolean,reflect:!0})],$a.prototype,"disabled",2),Va([Re({type:Boolean,reflect:!0})],$a.prototype,"checked",2),Va([er("checked")],$a.prototype,"defaultChecked",2),Va([Re({reflect:!0})],$a.prototype,"form",2),Va([Re({type:Boolean,reflect:!0})],$a.prototype,"required",2),Va([mi("disabled",{waitUntilFirstUpdate:!0})],$a.prototype,"handleDisabledChange",1),Va([mi(["checked"],{waitUntilFirstUpdate:!0})],$a.prototype,"handleStateChange",1),$a=Va([Qe("sd-switch")],$a);const Za=Object.freeze(Object.defineProperty({__proto__:null,get default(){return $a}},Symbol.toStringTag,{value:"Module"}));var Na=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,Ja=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ka(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Na(e,i,s),s};let Wa=class extends Je{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&&ur(this.tabs[t+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){const t=this.tabs.indexOf(this.getActiveTab());null!==e&&ur(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"}),ur(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)})),ur(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(i&&this.emit("sd-tab-hide",{detail:{name:i.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach((t=>{const e=this.panels.find((e=>e.name===t.panel));e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))}))}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.updateComplete.then((()=>this.updateScrollControls())),0!==this.tabs.length&&"container"===this.tabs[0].variant&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){const e=this.tabs.find((e=>e.panel===t));e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t="rtl"===this.localize.dir();return ye`<div part="base" class="${$e("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${$e(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?ye`<button part="scroll-button--start" exportparts="base:scroll-button__base" class="${$e("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-icon library="system" name="${t?"chevron-up":"chevron-down"}" class="${$e("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="${$e("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full h-0.25 bg-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?ye`<button part="scroll-button--end" exportparts="base:scroll-button__base" class="${$e("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10","rtl"===this.localize.dir()&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-icon library="system" name="${t?"chevron-down":"chevron-up"}" class="${$e("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${$e("block auto py-8 px-6","container"===this.variant&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};Wa.styles=[Je.styles,Pt($i),Ve,Ft`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-tab-panel){--padding:1rem 0}`],Ja([Le("[part=base]")],Wa.prototype,"tabGroup",2),Ja([Le("[part=body]")],Wa.prototype,"body",2),Ja([Le("[part=scroll-container]")],Wa.prototype,"nav",2),Ja([Ge()],Wa.prototype,"hasScrollControls",2),Ja([Ge()],Wa.prototype,"variant",2),Ja([Re()],Wa.prototype,"activation",2),Wa=Ja([Qe("sd-tab-group")],Wa);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 r,s=o>1?void 0:o?tn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Xa(e,i,s),s};let on=0,rn=class extends Je{constructor(){super(...arguments),this.attrId=++on,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="${$e("block",this.active&&"tab-panel--active")}"></slot>`}};rn.styles=[Je.styles,Ve,Ft`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],en([Re({reflect:!0})],rn.prototype,"name",2),en([Re({type:Boolean,reflect:!0})],rn.prototype,"active",2),en([mi("active")],rn.prototype,"handleActiveChange",1),rn=en([Qe("sd-tab-panel")],rn);const sn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return rn}},Symbol.toStringTag,{value:"Module"}));var an=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,ln=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?nn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&an(e,i,s),s};let dn=0,hn=class extends Je{constructor(){super(...arguments),this.attrId=++dn,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="${$e("inline-flex min-w-max h-12 px-3 leading-none items-center justify-center whitespace-nowrap select-none cursor-pointer group relative focus-visible:focus-outline outline-2 !-outline-offset-2","container"===this.variant&&" rounded-[4px_4px_0_0]","container"===this.variant&&this.active&&"tab--active-container-border bg-white",this.disabled?"opacity-50 !cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${this.disabled?"-1":"0"}"><slot name="left" class="${$e("pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${$e(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${$e((!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="${$e(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};hn.styles=[Je.styles,Ve,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}`],ln([Le("[part=base]")],hn.prototype,"tab",2),ln([Re({type:String,reflect:!0})],hn.prototype,"variant",2),ln([Re({type:Boolean,reflect:!0})],hn.prototype,"active",2),ln([Re({type:Boolean,reflect:!0})],hn.prototype,"disabled",2),ln([Re({reflect:!0})],hn.prototype,"panel",2),ln([mi("active")],hn.prototype,"handleActiveChange",1),ln([mi("disabled")],hn.prototype,"handleDisabledChange",1),hn=ln([Qe("sd-tab")],hn);const cn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return hn}},Symbol.toStringTag,{value:"Module"}));var pn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,gn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?un(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&pn(e,i,s),s};let mn=class extends Je{constructor(){super(...arguments),this.variant="white",this.hasSlotController=new Li(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="${$e("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="${$e("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="${$e({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="${$e("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. &lt;h2>)</slot></div><div class="${$e("hidden",t["teaser-has-expandable"]&&"h-[0px] invisible opacity-0 md:[transition:_height_0.2s_linear,opacity_0.1s_linear_0.1s] md:block md:group-hover:h-auto md:group-hover:my-4 md:group-hover:opacity-[100%] md:group-hover:visible")}" part="expandable"><slot name="expandable"></slot></div><div part="main" class="${$e(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};mn.styles=[Je.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}`],gn([Re({reflect:!0})],mn.prototype,"variant",2),gn([Le('[part="base"]')],mn.prototype,"teaserMedia",2),mn=gn([Qe("sd-teaser-media")],mn);const bn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return mn}},Symbol.toStringTag,{value:"Module"}));var vn=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,fn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?yn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&vn(e,i,s),s};let wn=class extends Je{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new Li(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="${$e("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="${$e(!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="${$e("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${$e("gap-2 mb-4",!o&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${$e("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. &lt;h2>)</slot></div><div part="main" class="${$e(!e&&"hidden")}"><slot></slot></div></div></div>`}};wn.styles=[Je.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}`],fn([Re({reflect:!0})],wn.prototype,"variant",2),fn([Re({reflect:!0,type:Number})],wn.prototype,"breakpoint",2),fn([Re({type:Boolean,reflect:!0})],wn.prototype,"inset",2),fn([Le('[part="base"]')],wn.prototype,"teaser",2),fn([Ge()],wn.prototype,"_orientation",2),wn=fn([Qe("sd-teaser")],wn);const An=Object.freeze(Object.defineProperty({__proto__:null,get default(){return wn}},Symbol.toStringTag,{value:"Module"}));var xn=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Cn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?kn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&xn(e,i,s),s};let Sn=class extends Je{constructor(){super(...arguments),this.formControlController=new fo(this),this.hasSlotController=new Li(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,r=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",s="sm"===this.size?"text-sm":"text-base",a={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return 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="${$e(i?"inline-block":"hidden",s)}" 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="${$e("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${$e("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"}[r])}"></div><div part="base" class="${$e("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"===r?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${$e("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",s)}" title="${this.title}" name="${Mo(this.name)}" .value="${rr(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Mo(this.placeholder)}" minlength="${Mo(this.minlength)}" maxlength="${Mo(this.maxlength)}" rows="${Mo(this.rows)}" autocapitalize="${Mo(this.autocapitalize)}" autocorrect="${Mo(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${Mo(this.spellcheck)}" enterkeyhint="${Mo(this.enterkeyhint)}" inputmode="${Mo(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="${$e("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="${$e("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="${$e("text-sm text-neutral-700",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};Sn.styles=[Ve,Je.styles,Ft`:host{display:block;height:100%}:host([required]) #label::after{content:' *'}.no-scrollbar::-webkit-scrollbar{display:none}`],Cn([Le("#input")],Sn.prototype,"textarea",2),Cn([Le("#invalid-message")],Sn.prototype,"invalidMessage",2),Cn([Ge()],Sn.prototype,"hasFocus",2),Cn([Ge()],Sn.prototype,"showValidStyle",2),Cn([Ge()],Sn.prototype,"showInvalidStyle",2),Cn([Re()],Sn.prototype,"title",2),Cn([Re()],Sn.prototype,"name",2),Cn([Re()],Sn.prototype,"value",2),Cn([Re({reflect:!0})],Sn.prototype,"size",2),Cn([Re()],Sn.prototype,"label",2),Cn([Re({attribute:"help-text"})],Sn.prototype,"helpText",2),Cn([Re()],Sn.prototype,"placeholder",2),Cn([Re({type:Number})],Sn.prototype,"rows",2),Cn([Re({type:Boolean,reflect:!0})],Sn.prototype,"disabled",2),Cn([Re({type:Boolean,reflect:!0})],Sn.prototype,"readonly",2),Cn([Re({reflect:!0})],Sn.prototype,"form",2),Cn([Re({type:Boolean,reflect:!0})],Sn.prototype,"required",2),Cn([Re({type:Number})],Sn.prototype,"minlength",2),Cn([Re({type:Number})],Sn.prototype,"maxlength",2),Cn([Re()],Sn.prototype,"autocapitalize",2),Cn([Re()],Sn.prototype,"autocorrect",2),Cn([Re()],Sn.prototype,"autocomplete",2),Cn([Re({type:Boolean})],Sn.prototype,"autofocus",2),Cn([Re()],Sn.prototype,"enterkeyhint",2),Cn([Re({type:Boolean,reflect:!0,attribute:"style-on-valid"})],Sn.prototype,"styleOnValid",2),Cn([Re({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Sn.prototype,"spellcheck",2),Cn([Re()],Sn.prototype,"inputmode",2),Cn([er()],Sn.prototype,"defaultValue",2),Cn([mi("disabled",{waitUntilFirstUpdate:!0})],Sn.prototype,"handleDisabledChange",1),Cn([mi("rows",{waitUntilFirstUpdate:!0})],Sn.prototype,"handleRowsChange",1),Cn([mi("value",{waitUntilFirstUpdate:!0})],Sn.prototype,"handleValueChange",1),Sn=Cn([Qe("sd-textarea")],Sn);const En=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Sn}},Symbol.toStringTag,{value:"Module"}));var Bn=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Mn=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?In(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Bn(e,i,s),s};let Dn=class extends Je{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=ki(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=ki(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await Si(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=Oi(this,"tooltip.show",{dir:this.localize.dir()});await xi(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await Si(this.body);const{keyframes:t,options:e}=Oi(this,"tooltip.hide",{dir:this.localize.dir()});await xi(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,zi(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,zi(this,"sd-after-hide")}render(){const t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return ye`<sd-popup part="base" exportparts="
108
108
  popup:base__popup,
109
109
  arrow:base__arrow
110
110
  " class="${$e(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="${$e("lg"===this.size?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-icon library="system" name="info-circle" class="${$e(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>`}};Dn.styles=[Je.styles,Pt($i),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}`],Mn([Le("slot:not([name])")],Dn.prototype,"defaultSlot",2),Mn([Le("#tooltip")],Dn.prototype,"body",2),Mn([Le("sd-popup")],Dn.prototype,"popup",2),Mn([Re()],Dn.prototype,"size",2),Mn([Re()],Dn.prototype,"content",2),Mn([Re({reflect:!0})],Dn.prototype,"placement",2),Mn([Re({type:Boolean,reflect:!0})],Dn.prototype,"disabled",2),Mn([Re({type:Boolean,reflect:!0})],Dn.prototype,"open",2),Mn([Re()],Dn.prototype,"trigger",2),Mn([Re({type:Boolean})],Dn.prototype,"hoist",2),Mn([mi("open",{waitUntilFirstUpdate:!0})],Dn.prototype,"handleOpenChange",1),Mn([mi(["content","hoist","placement"])],Dn.prototype,"handleOptionsChange",1),Mn([mi("disabled")],Dn.prototype,"handleDisabledChange",1),Dn=Mn([Qe("sd-tooltip")],Dn),Di("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),Di("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});const On=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 r,s=o>1?void 0:o?Tn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&zn(e,i,s),s};let Fn=class extends Je{constructor(){super(...arguments),this.playing=!1,this.overlay=!1,this.isBelowBreakpoint=!1,this.hasSlotController=new Li(this,"[default]","play-icon","poster")}get poster(){const t=this.shadowRoot.querySelector("slot[name=poster]");return(null==t?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}fadeoutPoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0")}hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.display="none")}play(){this.emit("sd-play"),this.playing=!0,this.fadeoutPoster()}handleKeydown(t){t instanceof KeyboardEvent&&("Enter"===t.key||" "===t.key)&&(this.play(),setTimeout((()=>{var t;null==(t=this.querySelector("video"))||t.focus()})))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.handleButtonResize())),this.updateComplete.then((()=>{this.resizeObserver.observe(this.hostEl)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return 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="${$e(this.playing&&"pointer-events-none","w-full h-full absolute top-0 left-0 z-30 text-primary hover:text-primary-500 sd-interactive sd-interactive--reset focus-visible:focus-outline")}"><div part="play-button-bg" class="${$e(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition")}"><slot name="play-icon" part="play-icon" class="${$e(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="${$e(this.overlay&&!this.playing?"opacity-100":"opacity-0","bg-[rgba(0,0,0,0.65)] w-full h-full absolute top-0 left-0 pointer-events-none z-20 play-pause-transition")}"></div><slot></slot></div>`}};Fn.styles=[Je.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))}`],Pn([Le("[part=base]")],Fn.prototype,"hostEl",2),Pn([Re({type:Boolean,reflect:!0})],Fn.prototype,"playing",2),Pn([Re({type:Boolean,reflect:!0})],Fn.prototype,"overlay",2),Pn([Re({type:Boolean})],Fn.prototype,"isBelowBreakpoint",2),Fn=Pn([Qe("sd-video")],Fn);const jn=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Fn}},Symbol.toStringTag,{value:"Module"}));t.LocalizeController=S,t.registerIconLibrary=u,t.setupAutocomplete=function(t,{setValueOnSelection:e,scrollSelectionIntoView:i}={setValueOnSelection:!0,scrollSelectionIntoView:!0}){const o=t?"string"==typeof t?document.querySelector(t):t:document.querySelector("#autoComplete"),r=o.shadowRoot.querySelector("input"),s=t=>t[0];return r.addEventListener("init",(()=>{var t,e;const i=null==(t=o.shadowRoot)?void 0:t.querySelector("ul");null==i||i.setAttribute("part","listbox");const r=document.createElement("sd-popup");r.appendChild(i),null==(e=o.shadowRoot)||e.appendChild(r),null==r||r.setAttribute("exportparts","popup__content"),r&&(r.active=!1,r.autoSize="vertical",r.autoSizePadding=16,r.placement="bottom-start",r.anchor=o,r.sync="width");const a=s`sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll;border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-width:2px;border-top-width:0;--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255) / var(--tw-bg-opacity));padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem);padding-top:var(--sd-spacing-3,.75rem);padding-bottom:var(--sd-spacing-3,.75rem);--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-popup li{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}sd-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246) / var(--tw-bg-opacity))}sd-popup li{list-style-type:''}sd-popup li mark{background-color:transparent;font-weight:700}sd-popup li:not(:has(sd-option)){cursor:pointer;padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem);padding-top:var(--sd-spacing-3,.75rem);padding-bottom:var(--sd-spacing-3,.75rem);font-size:var(--sd-font-size-base,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24) / var(--tw-text-opacity))}sd-popup li:not(:has(sd-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233) / var(--tw-bg-opacity))}sd-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233) / var(--tw-bg-opacity))}`,n=new CSSStyleSheet;n.replaceSync(a),o.shadowRoot.adoptedStyleSheets=[...o.shadowRoot.adoptedStyleSheets,n]})),e&&r.addEventListener("selection",(t=>{var e;o.value=null==(e=null==t?void 0:t.detail)?void 0:e.selection.value})),r.addEventListener("open",(()=>{var t,e,i,r,s,a;null==(e=null==(t=o.shadowRoot)?void 0:t.querySelector("sd-popup"))||e.setAttribute("active","true"),null==(r=null==(i=o.shadowRoot)?void 0:i.querySelector('[part="border"]'))||r.classList.add("rounded-b-none"),null==(a=null==(s=o.shadowRoot)?void 0:s.querySelector('[part="form-control"]'))||a.classList.add("z-50")})),r.addEventListener("close",(()=>{var t,e,i,r,s,a;null==(e=null==(t=o.shadowRoot)?void 0:t.querySelector("sd-popup"))||e.removeAttribute("active"),null==(r=null==(i=o.shadowRoot)?void 0:i.querySelector('[part="border"]'))||r.classList.remove("rounded-b-none"),null==(a=null==(s=o.shadowRoot)?void 0:s.querySelector('[part="form-control"]'))||a.classList.remove("z-50")})),i&&r.addEventListener("navigate",(()=>{const t=o.shadowRoot.querySelector('[aria-selected="true"]');null==t||t.scrollIntoView({block:"nearest"})})),{config:{selector:()=>r,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"]={});