@solid-design-system/components 3.22.15 → 3.22.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/es/input.js +1 -1
- package/dist/components/umd/solid-components.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/package/components/input/input.js +1 -1
- package/dist/versioned-components/es/accordion-group.js +1 -1
- package/dist/versioned-components/es/accordion.js +1 -1
- package/dist/versioned-components/es/audio.js +1 -1
- package/dist/versioned-components/es/badge.js +1 -1
- package/dist/versioned-components/es/brandshape.js +1 -1
- package/dist/versioned-components/es/button.js +1 -1
- package/dist/versioned-components/es/carousel-item.js +1 -1
- package/dist/versioned-components/es/carousel.js +3 -3
- package/dist/versioned-components/es/checkbox-group.js +1 -1
- package/dist/versioned-components/es/checkbox.js +1 -1
- package/dist/versioned-components/es/dialog.js +1 -1
- package/dist/versioned-components/es/divider.js +1 -1
- package/dist/versioned-components/es/drawer.js +1 -1
- package/dist/versioned-components/es/dropdown.js +1 -1
- package/dist/versioned-components/es/expandable.js +1 -1
- package/dist/versioned-components/es/flipcard.js +1 -1
- package/dist/versioned-components/es/form.js +1 -1
- package/dist/versioned-components/es/header.js +1 -1
- package/dist/versioned-components/es/icon.js +1 -1
- package/dist/versioned-components/es/include.js +1 -1
- package/dist/versioned-components/es/input.js +1 -1
- package/dist/versioned-components/es/link.js +1 -1
- package/dist/versioned-components/es/map-marker.js +1 -1
- package/dist/versioned-components/es/navigation-item.js +1 -1
- package/dist/versioned-components/es/notification.js +1 -1
- package/dist/versioned-components/es/option.js +1 -1
- package/dist/versioned-components/es/quickfact.js +1 -1
- package/dist/versioned-components/es/radio-button.js +1 -1
- package/dist/versioned-components/es/radio-group.js +1 -1
- package/dist/versioned-components/es/radio.js +1 -1
- package/dist/versioned-components/es/scrollable.js +1 -1
- package/dist/versioned-components/es/select.js +3 -3
- package/dist/versioned-components/es/solid-components2.js +1 -1
- package/dist/versioned-components/es/spinner.js +1 -1
- package/dist/versioned-components/es/step-group.js +1 -1
- package/dist/versioned-components/es/step.js +1 -1
- package/dist/versioned-components/es/switch.js +1 -1
- package/dist/versioned-components/es/tab-group.js +1 -1
- package/dist/versioned-components/es/tab-panel.js +1 -1
- package/dist/versioned-components/es/tab.js +1 -1
- package/dist/versioned-components/es/tag.js +1 -1
- package/dist/versioned-components/es/teaser-media.js +1 -1
- package/dist/versioned-components/es/teaser.js +1 -1
- package/dist/versioned-components/es/textarea.js +1 -1
- package/dist/versioned-components/es/tooltip.js +2 -2
- package/dist/versioned-components/es/video.js +1 -1
- package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
- package/dist/versioned-package/_components/button-group/button-group.js +11 -11
- package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
- package/dist/versioned-package/components/accordion/accordion.js +2 -2
- package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
- package/dist/versioned-package/components/audio/audio.d.ts +1 -1
- package/dist/versioned-package/components/audio/audio.js +6 -6
- package/dist/versioned-package/components/badge/badge.d.ts +1 -1
- package/dist/versioned-package/components/badge/badge.js +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
- package/dist/versioned-package/components/button/button.d.ts +1 -1
- package/dist/versioned-package/components/button/button.js +4 -4
- package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
- package/dist/versioned-package/components/carousel/carousel.js +6 -6
- package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
- package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
- package/dist/versioned-package/components/checkbox/checkbox.js +3 -3
- package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
- package/dist/versioned-package/components/dialog/dialog.d.ts +1 -1
- package/dist/versioned-package/components/dialog/dialog.js +2 -2
- package/dist/versioned-package/components/divider/divider.d.ts +1 -1
- package/dist/versioned-package/components/divider/divider.js +2 -2
- package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
- package/dist/versioned-package/components/drawer/drawer.js +2 -2
- package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
- package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
- package/dist/versioned-package/components/expandable/expandable.d.ts +1 -1
- package/dist/versioned-package/components/expandable/expandable.js +2 -2
- package/dist/versioned-package/components/flipcard/flipcard.d.ts +1 -1
- package/dist/versioned-package/components/flipcard/flipcard.js +1 -1
- package/dist/versioned-package/components/header/header.d.ts +1 -1
- package/dist/versioned-package/components/header/header.js +4 -4
- package/dist/versioned-package/components/icon/icon.d.ts +1 -1
- package/dist/versioned-package/components/icon/icon.js +1 -1
- package/dist/versioned-package/components/include/include.d.ts +1 -1
- package/dist/versioned-package/components/include/include.js +1 -1
- package/dist/versioned-package/components/input/input.d.ts +1 -1
- package/dist/versioned-package/components/input/input.js +3 -3
- package/dist/versioned-package/components/link/link.d.ts +1 -1
- package/dist/versioned-package/components/link/link.js +2 -2
- package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
- package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
- package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist/versioned-package/components/navigation-item/navigation-item.js +5 -5
- package/dist/versioned-package/components/notification/notification.d.ts +1 -1
- package/dist/versioned-package/components/notification/notification.js +5 -5
- package/dist/versioned-package/components/option/option.d.ts +1 -1
- package/dist/versioned-package/components/option/option.js +2 -2
- package/dist/versioned-package/components/popup/popup.d.ts +1 -1
- package/dist/versioned-package/components/popup/popup.js +1 -1
- package/dist/versioned-package/components/quickfact/quickfact.d.ts +1 -1
- package/dist/versioned-package/components/quickfact/quickfact.js +2 -2
- package/dist/versioned-package/components/radio/radio.d.ts +1 -1
- package/dist/versioned-package/components/radio/radio.js +2 -2
- package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
- package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
- package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
- package/dist/versioned-package/components/radio-group/radio-group.js +13 -13
- package/dist/versioned-package/components/scrollable/scrollable.d.ts +1 -1
- package/dist/versioned-package/components/scrollable/scrollable.js +3 -3
- package/dist/versioned-package/components/select/select.d.ts +4 -4
- package/dist/versioned-package/components/select/select.js +25 -25
- package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
- package/dist/versioned-package/components/spinner/spinner.js +1 -1
- package/dist/versioned-package/components/step/step.d.ts +1 -1
- package/dist/versioned-package/components/step/step.js +2 -2
- package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
- package/dist/versioned-package/components/step-group/step-group.js +2 -2
- package/dist/versioned-package/components/switch/switch.d.ts +1 -1
- package/dist/versioned-package/components/switch/switch.js +1 -1
- package/dist/versioned-package/components/tab/tab.d.ts +1 -1
- package/dist/versioned-package/components/tab/tab.js +2 -2
- package/dist/versioned-package/components/tab-group/tab-group.d.ts +1 -1
- package/dist/versioned-package/components/tab-group/tab-group.js +13 -13
- package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
- package/dist/versioned-package/components/tag/tag.d.ts +1 -1
- package/dist/versioned-package/components/tag/tag.js +2 -2
- package/dist/versioned-package/components/teaser/teaser.js +1 -1
- package/dist/versioned-package/components/teaser-media/teaser-media.js +1 -1
- package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
- package/dist/versioned-package/components/textarea/textarea.js +2 -2
- package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
- package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
- package/dist/versioned-package/components/video/video.d.ts +1 -1
- package/dist/versioned-package/components/video/video.js +2 -2
- package/dist/versioned-package/internal/form.js +3 -3
- package/dist/versioned-package/styles/headline/headline.css.js +1 -1
- package/dist/versioned-package/utilities/autocomplete-config.js +4 -4
- package/dist/versioned-styles/solid-styles.css +1 -1
- package/dist/vscode.html-custom-data.json +45 -45
- package/dist/web-types.json +46 -46
- package/package.json +1 -1
@@ -3,4 +3,4 @@ import"./icon.js";import{T as t,w as e,S as s,L as i,x as l,t as a,c as o,i as n
|
|
3
3
|
* @license
|
4
4
|
* Copyright 2017 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
|
-
*/const x=(t,e)=>{var s;const i=t._$AN;if(void 0===i)return!1;for(const t of i)null==(s=t._$AO)||s.call(t,e,!1),x(t,e);return!0},C=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===(null==s?void 0:s.size))},k=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),S(e)}};function A(t){void 0!==this._$AN?(C(this),this._$AM=t,k(this)):this._$AM=t}function V(t,e=!1,s=0){const i=this._$AH,l=this._$AN;if(void 0!==l&&0!==l.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)x(i[t],!1),C(i[t]);else null!=i&&(x(i,!1),C(i));else x(this,t)}const S=t=>{t.type==f.CHILD&&(t._$AP??(t._$AP=V),t._$AQ??(t._$AQ=A))};class D extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),k(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,i;t!==this.isConnected&&(this.isConnected=t,t?null==(s=this.reconnected)||s.call(this):null==(i=this.disconnected)||i.call(this)),e&&(x(this,t),C(this))}setValue(t){if(b(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 _=$(class extends D{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)},t.type!==f.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(e){return t}update(t,[s]){return void 0===this.callbacks&&void 0===this.host&&(this.host=t.element,this.callbacks={...s},this.host.addEventListener("pointerdown",this.handlePointerDown)),e}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 P,I=Object.defineProperty,T=Object.getOwnPropertyDescriptor,U=(t,e,s,i)=>{for(var l,a=i>1?void 0:i?T(e,s):e,o=t.length-1;o>=0;o--)(l=t[o])&&(a=(i?l(e,s,a):l(a))||a);return i&&a&&I(e,s,a),a};const z=!(null==(P=navigator.userAgentData)?void 0:P.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let E=class extends s{constructor(){super(...arguments),this.formControlController=new u(this),this.hasSlotController=new c(this,"help-text","label","left","right","message","placeholder"),this.localize=new i(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,s="none"){this.input.setSelectionRange(t,e,s)}setRangeText(t,e,s,i){this.input.setRangeText(t,e,s,i),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"),s=(this.hasSlotController.test("description"),this.hasSlotController.test("left")),i=this.hasSlotController.test("right"),o=!!this.label||!!t,n=!!this.helpText||!!e,r=this.clearable&&!this.readonly&&("number"==typeof this.value||this.value.length>0),h=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",d="sm"===this.size?"text-sm":"text-base",p={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"}[h],u=this.disabled?"text-neutral-500":"text-primary",c={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return l`<div part="form-control" class="${a(this.disabled&&"pointer-events-none")}"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a(o?"inline-block":"hidden",d)}" for="input" aria-hidden="${o?"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="${a("absolute w-full h-full pointer-events-none border rounded-default",p)}"></div><div part="base" class="${a("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"===h?"text-neutral-500":"text-black")}">${s?l`<slot name="left" part="left" class="${a("inline-flex","sm"===this.size?"mr-1":"mr-2",u,b)}"></slot>`:""} <input part="input" id="input" class="${a("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700","sm"===this.size?"h-6":"h-8",d)}" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${m(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${m(this.placeholder)}" minlength="${m(this.minlength)}" maxlength="${m(this.maxlength)}" min="${m(this.min)}" max="${m(this.max)}" step="${m(this.step)}" .value="${y(this.value)}" autocapitalize="${m("password"===this.type?"off":this.autocapitalize)}" autocomplete="${m("password"===this.type?"off":this.autocomplete)}" autocorrect="${m("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${m(this.pattern)}" enterkeyhint="${m(this.enterkeyhint)}" inputmode="${m(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}"> ${r?l`<button part="clear-button" class="${a("flex justify-center ",c)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${a("icon-fill-neutral-800",b)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&"password"===this.type?l`<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?l`<slot name="show-password-icon"><sd-icon class="${a(u,c,b)}" library="system" name="eye"></sd-icon></slot>`:l`<slot name="hide-password-icon"><sd-icon class="${a(u,c,b)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||z?"":l`<sd-icon class="${a(u,c,b)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?l`<sd-icon class="${a(u,c,b)}" library="system" name="clock"></sd-icon>`:""} ${"search"===this.type?l`<button class="flex items-center" type="button" tabindex="-1"><sd-icon class="${a(u,c,b)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?l`<sd-icon part="invalid-icon" class="${a("text-error",c,b)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?l`<sd-icon class="${a("text-success flex-shrink-0",c,b)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${i?l`<slot name="right" part="right" class="${a("inline-flex",u,c,b)}"></slot>`:""} ${"number"===this.type&&this.spinButtons?l`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${_({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="${a(u,c,b)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${_({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="${a(u,c,b)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm text-neutral-700",n?"block":"hidden")}" aria-hidden="${!n}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};E.styles=[o,s.styles,n`: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))}`],U([r("#input")],E.prototype,"input",2),U([r("#invalid-message")],E.prototype,"invalidMessage",2),U([g()],E.prototype,"hasFocus",2),U([g()],E.prototype,"showValidStyle",2),U([g()],E.prototype,"showInvalidStyle",2),U([h({reflect:!0})],E.prototype,"type",2),U([h({reflect:!0})],E.prototype,"size",2),U([h()],E.prototype,"inputmode",2),U([h()],E.prototype,"value",2),U([p()],E.prototype,"defaultValue",2),U([h()],E.prototype,"placeholder",2),U([h()],E.prototype,"label",2),U([h({attribute:"help-text"})],E.prototype,"helpText",2),U([h({type:Boolean})],E.prototype,"clearable",2),U([h({type:Boolean,reflect:!0})],E.prototype,"disabled",2),U([h({type:Boolean,reflect:!0})],E.prototype,"readonly",2),U([h({attribute:"password-toggle",type:Boolean})],E.prototype,"passwordToggle",2),U([h({attribute:"password-visible",type:Boolean})],E.prototype,"passwordVisible",2),U([h({attribute:"spin-buttons",type:Boolean})],E.prototype,"spinButtons",2),U([h({type:Number})],E.prototype,"minlength",2),U([h({type:Number})],E.prototype,"maxlength",2),U([h()],E.prototype,"min",2),U([h()],E.prototype,"max",2),U([h({reflect:!0})],E.prototype,"form",2),U([h()],E.prototype,"name",2),U([h()],E.prototype,"title",2),U([h({type:Boolean,reflect:!0})],E.prototype,"required",2),U([h()],E.prototype,"pattern",2),U([h()],E.prototype,"step",2),U([h()],E.prototype,"autocapitalize",2),U([h()],E.prototype,"autocorrect",2),U([h()],E.prototype,"autocomplete",2),U([h({type:Boolean})],E.prototype,"autofocus",2),U([h()],E.prototype,"enterkeyhint",2),U([h({type:Boolean,reflect:!0,attribute:"style-on-valid"})],E.prototype,"styleOnValid",2),U([h({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],E.prototype,"spellcheck",2),U([w("disabled",{waitUntilFirstUpdate:!0})],E.prototype,"handleDisabledChange",1),U([w("step",{waitUntilFirstUpdate:!0})],E.prototype,"handleStepChange",1),U([w("value",{waitUntilFirstUpdate:!0})],E.prototype,"handleValueChange",1),E=U([d("sd-input")],E);export{E as default};
|
6
|
+
*/const x=(t,e)=>{var s;const i=t._$AN;if(void 0===i)return!1;for(const t of i)null==(s=t._$AO)||s.call(t,e,!1),x(t,e);return!0},C=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===(null==s?void 0:s.size))},k=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),S(e)}};function A(t){void 0!==this._$AN?(C(this),this._$AM=t,k(this)):this._$AM=t}function V(t,e=!1,s=0){const i=this._$AH,l=this._$AN;if(void 0!==l&&0!==l.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)x(i[t],!1),C(i[t]);else null!=i&&(x(i,!1),C(i));else x(this,t)}const S=t=>{t.type==f.CHILD&&(t._$AP??(t._$AP=V),t._$AQ??(t._$AQ=A))};class D extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),k(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,i;t!==this.isConnected&&(this.isConnected=t,t?null==(s=this.reconnected)||s.call(this):null==(i=this.disconnected)||i.call(this)),e&&(x(this,t),C(this))}setValue(t){if(b(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 _=$(class extends D{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)},t.type!==f.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(e){return t}update(t,[s]){return void 0===this.callbacks&&void 0===this.host&&(this.host=t.element,this.callbacks={...s},this.host.addEventListener("pointerdown",this.handlePointerDown)),e}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 P,I=Object.defineProperty,T=Object.getOwnPropertyDescriptor,U=(t,e,s,i)=>{for(var l,a=i>1?void 0:i?T(e,s):e,o=t.length-1;o>=0;o--)(l=t[o])&&(a=(i?l(e,s,a):l(a))||a);return i&&a&&I(e,s,a),a};const z=!(null==(P=navigator.userAgentData)?void 0:P.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let E=class extends s{constructor(){super(...arguments),this.formControlController=new u(this),this.hasSlotController=new c(this,"help-text","label","left","right","message","placeholder"),this.localize=new i(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,s="none"){this.input.setSelectionRange(t,e,s)}setRangeText(t,e,s,i){this.input.setRangeText(t,e,s,i),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"),s=(this.hasSlotController.test("description"),this.hasSlotController.test("left")),i=this.hasSlotController.test("right"),o=!!this.label||!!t,n=!!this.helpText||!!e,r=this.clearable&&!this.readonly&&("number"==typeof this.value||this.value.length>0),h=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",d="sm"===this.size?"text-sm":"text-base",p={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"}[h],u=this.disabled?"text-neutral-500":"text-primary",c={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return l`<div part="form-control" class="${a(this.disabled&&"pointer-events-none")}"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a(o?"inline-block":"hidden",d)}" for="input" aria-hidden="${o?"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="${a("absolute w-full h-full pointer-events-none border rounded-default",p)}"></div><div part="base" class="${a("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"===h?"text-neutral-500":"text-black")}">${s?l`<slot name="left" part="left" class="${a("inline-flex","sm"===this.size?"mr-1":"mr-2",u,b)}"></slot>`:""} <input part="input" id="input" class="${a("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700","sm"===this.size?"h-6":"h-8",d)}" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${m(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${m(this.placeholder)}" minlength="${m(this.minlength)}" maxlength="${m(this.maxlength)}" min="${m(this.min)}" max="${m(this.max)}" step="${m(this.step)}" .value="${y(this.value)}" autocapitalize="${m("password"===this.type?"off":this.autocapitalize)}" autocomplete="${m("password"===this.type?"off":this.autocomplete)}" autocorrect="${m("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${m(this.pattern)}" enterkeyhint="${m(this.enterkeyhint)}" inputmode="${m(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}"> ${r?l`<button part="clear-button" class="${a("flex justify-center ",c)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${a("icon-fill-neutral-800",b)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&"password"===this.type?l`<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?l`<slot name="show-password-icon"><sd-icon class="${a(u,c,b)}" library="system" name="eye"></sd-icon></slot>`:l`<slot name="hide-password-icon"><sd-icon class="${a(u,c,b)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||z?"":l`<sd-icon class="${a(u,c,b)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?l`<sd-icon class="${a(u,c,b)}" library="system" name="clock"></sd-icon>`:""} ${"search"===this.type?l`<button class="flex items-center" type="button" tabindex="-1"><sd-icon class="${a(u,c,b)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?l`<sd-icon part="invalid-icon" class="${a("text-error",c,b)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?l`<sd-icon class="${a("text-success flex-shrink-0",c,b)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${i?l`<slot name="right" part="right" class="${a("inline-flex",u,c,b)}"></slot>`:""} ${"number"===this.type&&this.spinButtons?l`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${_({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-icon name="system/minus-circle" label="Decrease value" class="${a(u,c,b)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${_({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon name="system/plus-circle" label="Decrease value" class="${a(u,c,b)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm text-neutral-700",n?"block":"hidden")}" aria-hidden="${!n}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};E.styles=[o,s.styles,n`: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))}`],U([r("#input")],E.prototype,"input",2),U([r("#invalid-message")],E.prototype,"invalidMessage",2),U([g()],E.prototype,"hasFocus",2),U([g()],E.prototype,"showValidStyle",2),U([g()],E.prototype,"showInvalidStyle",2),U([h({reflect:!0})],E.prototype,"type",2),U([h({reflect:!0})],E.prototype,"size",2),U([h()],E.prototype,"inputmode",2),U([h()],E.prototype,"value",2),U([p()],E.prototype,"defaultValue",2),U([h()],E.prototype,"placeholder",2),U([h()],E.prototype,"label",2),U([h({attribute:"help-text"})],E.prototype,"helpText",2),U([h({type:Boolean})],E.prototype,"clearable",2),U([h({type:Boolean,reflect:!0})],E.prototype,"disabled",2),U([h({type:Boolean,reflect:!0})],E.prototype,"readonly",2),U([h({attribute:"password-toggle",type:Boolean})],E.prototype,"passwordToggle",2),U([h({attribute:"password-visible",type:Boolean})],E.prototype,"passwordVisible",2),U([h({attribute:"spin-buttons",type:Boolean})],E.prototype,"spinButtons",2),U([h({type:Number})],E.prototype,"minlength",2),U([h({type:Number})],E.prototype,"maxlength",2),U([h()],E.prototype,"min",2),U([h()],E.prototype,"max",2),U([h({reflect:!0})],E.prototype,"form",2),U([h()],E.prototype,"name",2),U([h()],E.prototype,"title",2),U([h({type:Boolean,reflect:!0})],E.prototype,"required",2),U([h()],E.prototype,"pattern",2),U([h()],E.prototype,"step",2),U([h()],E.prototype,"autocapitalize",2),U([h()],E.prototype,"autocorrect",2),U([h()],E.prototype,"autocomplete",2),U([h({type:Boolean})],E.prototype,"autofocus",2),U([h()],E.prototype,"enterkeyhint",2),U([h({type:Boolean,reflect:!0,attribute:"style-on-valid"})],E.prototype,"styleOnValid",2),U([h({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],E.prototype,"spellcheck",2),U([w("disabled",{waitUntilFirstUpdate:!0})],E.prototype,"handleDisabledChange",1),U([w("step",{waitUntilFirstUpdate:!0})],E.prototype,"handleStepChange",1),U([w("value",{waitUntilFirstUpdate:!0})],E.prototype,"handleValueChange",1),E=U([d("sd-input")],E);export{E as default};
|
@@ -104,7 +104,7 @@ const Do=t=>t??Ae;var Oo=Object.defineProperty,zo=Object.getOwnPropertyDescripto
|
|
104
104
|
* @license
|
105
105
|
* Copyright 2017 Google LLC
|
106
106
|
* SPDX-License-Identifier: BSD-3-Clause
|
107
|
-
*/function ds(t){void 0!==this._$AN?(ns(this),this._$AM=t,ls(this)):this._$AM=t}function hs(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++)as(o[t],!1),ns(o[t]);else null!=o&&(as(o,!1),ns(o));else as(this,t)}const cs=t=>{2==t.type&&(t._$AP??(t._$AP=hs),t._$AQ??(t._$AQ=ds))};class ps extends ci{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),ls(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&&(as(this,t),ns(this))}setValue(t){if(or(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 us=hi(class extends ps{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 gs=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,bs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ms(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};const vs=!(null==(i=navigator.userAgentData)?void 0:i.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let ys=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new qi(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="${Ne(this.disabled&&"pointer-events-none")}"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${Ne(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="${Ne("absolute w-full h-full pointer-events-none border rounded-default",d)}"></div><div part="base" class="${Ne("px-4 flex flex-row items-center rounded-default transition-all","lg"===this.size?"py-2":"py-1",this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly?"bg-neutral-100":"bg-white","disabled"===n?"text-neutral-500":"text-black")}">${i?ye`<slot name="left" part="left" class="${Ne("inline-flex","sm"===this.size?"mr-1":"mr-2",h,p)}"></slot>`:""} <input part="input" id="input" class="${Ne("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700","sm"===this.size?"h-6":"h-8",l)}" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${Do(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Do(this.placeholder)}" minlength="${Do(this.minlength)}" maxlength="${Do(this.maxlength)}" min="${Do(this.min)}" max="${Do(this.max)}" step="${Do(this.step)}" .value="${sr(this.value)}" autocapitalize="${Do("password"===this.type?"off":this.autocapitalize)}" autocomplete="${Do("password"===this.type?"off":this.autocomplete)}" autocorrect="${Do("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${Do(this.pattern)}" enterkeyhint="${Do(this.enterkeyhint)}" inputmode="${Do(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?ye`<button part="clear-button" class="${Ne("flex justify-center ",c)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Ne("icon-fill-neutral-800",p)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&"password"===this.type?ye`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?ye`<slot name="show-password-icon"><sd-icon class="${Ne(h,c,p)}" library="system" name="eye"></sd-icon></slot>`:ye`<slot name="hide-password-icon"><sd-icon class="${Ne(h,c,p)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||vs?"":ye`<sd-icon class="${Ne(h,c,p)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?ye`<sd-icon class="${Ne(h,c,p)}" library="system" name="clock"></sd-icon>`:""} ${"search"===this.type?ye`<button class="flex items-center" type="button" tabindex="-1"><sd-icon class="${Ne(h,c,p)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${Ne("text-error",c,p)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?ye`<sd-icon class="${Ne("text-success flex-shrink-0",c,p)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${o?ye`<slot name="right" part="right" class="${Ne("inline-flex",h,c,p)}"></slot>`:""} ${"number"===this.type&&this.spinButtons?ye`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${us({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="${Ne(h,c,p)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${us({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="${Ne(h,c,p)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${Ne("text-sm text-neutral-700",s?"block":"hidden")}" aria-hidden="${!s}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};ys.styles=[$e,We.styles,Ft`:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label::after{content:' *'}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174) / var(--tw-text-opacity))}`],bs([Le("#input")],ys.prototype,"input",2),bs([Le("#invalid-message")],ys.prototype,"invalidMessage",2),bs([He()],ys.prototype,"hasFocus",2),bs([He()],ys.prototype,"showValidStyle",2),bs([He()],ys.prototype,"showInvalidStyle",2),bs([Ue({reflect:!0})],ys.prototype,"type",2),bs([Ue({reflect:!0})],ys.prototype,"size",2),bs([Ue()],ys.prototype,"inputmode",2),bs([Ue()],ys.prototype,"value",2),bs([ir()],ys.prototype,"defaultValue",2),bs([Ue()],ys.prototype,"placeholder",2),bs([Ue()],ys.prototype,"label",2),bs([Ue({attribute:"help-text"})],ys.prototype,"helpText",2),bs([Ue({type:Boolean})],ys.prototype,"clearable",2),bs([Ue({type:Boolean,reflect:!0})],ys.prototype,"disabled",2),bs([Ue({type:Boolean,reflect:!0})],ys.prototype,"readonly",2),bs([Ue({attribute:"password-toggle",type:Boolean})],ys.prototype,"passwordToggle",2),bs([Ue({attribute:"password-visible",type:Boolean})],ys.prototype,"passwordVisible",2),bs([Ue({attribute:"spin-buttons",type:Boolean})],ys.prototype,"spinButtons",2),bs([Ue({type:Number})],ys.prototype,"minlength",2),bs([Ue({type:Number})],ys.prototype,"maxlength",2),bs([Ue()],ys.prototype,"min",2),bs([Ue()],ys.prototype,"max",2),bs([Ue({reflect:!0})],ys.prototype,"form",2),bs([Ue()],ys.prototype,"name",2),bs([Ue()],ys.prototype,"title",2),bs([Ue({type:Boolean,reflect:!0})],ys.prototype,"required",2),bs([Ue()],ys.prototype,"pattern",2),bs([Ue()],ys.prototype,"step",2),bs([Ue()],ys.prototype,"autocapitalize",2),bs([Ue()],ys.prototype,"autocorrect",2),bs([Ue()],ys.prototype,"autocomplete",2),bs([Ue({type:Boolean})],ys.prototype,"autofocus",2),bs([Ue()],ys.prototype,"enterkeyhint",2),bs([Ue({type:Boolean,reflect:!0,attribute:"style-on-valid"})],ys.prototype,"styleOnValid",2),bs([Ue({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],ys.prototype,"spellcheck",2),bs([bi("disabled",{waitUntilFirstUpdate:!0})],ys.prototype,"handleDisabledChange",1),bs([bi("step",{waitUntilFirstUpdate:!0})],ys.prototype,"handleStepChange",1),bs([bi("value",{waitUntilFirstUpdate:!0})],ys.prototype,"handleValueChange",1),ys=bs([Qe("sd-input")],ys);const fs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ys}},Symbol.toStringTag,{value:"Module"}));var ws=Object.defineProperty,As=Object.getOwnPropertyDescriptor,xs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?As(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 ks=class extends We{constructor(){super(...arguments),this.hasSlotController=new qi(this,"[default]","icon-left","icon-right"),this.standalone=!1,this.size="inherit",this.inverted=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return ye`<a part="base" class="${Ne("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${Do(this.href||void 0)}" target="${Do(this.target||void 0)}" download="${Do(this.download)}" rel="${Do(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${Ne("inline",t["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${Ne("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};ks.styles=[We.styles,Ft`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],xs([Le("a")],ks.prototype,"button",2),xs([Ue({type:Boolean,reflect:!0})],ks.prototype,"standalone",2),xs([Ue({reflect:!0})],ks.prototype,"size",2),xs([Ue({type:Boolean,reflect:!0})],ks.prototype,"inverted",2),xs([Ue()],ks.prototype,"href",2),xs([Ue()],ks.prototype,"target",2),xs([Ue()],ks.prototype,"download",2),ks=xs([Qe("sd-link")],ks);const Cs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ks}},Symbol.toStringTag,{value:"Module"}));var Ss=Object.defineProperty,Es=Object.getOwnPropertyDescriptor,Is=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Es(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&&Ss(e,i,s),s};let Bs=class extends We{constructor(){super(...arguments),this.variant="main",this.state="default",this.animated=!1,this.notInteractive=!1,this.href="",this.marker={cluster:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" opacity="1" r="20"/><circle cx="25" cy="25" opacity=".3" r="25"/></svg>`,main:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z"/><circle cx="30" cy="28" r="10" fill="#fff"/></svg>`,place:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd"/></svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){const t=this.isLink(),e=this.notInteractive?Eo`div`:t?Eo`a`:Eo`button`;return Bo`<${e} part="base" class="${Ne("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${Do(t?this.href:void 0)}" target="${Do(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${Do(this.notInteractive||t?void 0:"button")}" aria-labelledby="${Do(this.notInteractive?void 0:"content")}"><div part="marker" class="${Ne("inline-flex",this.animated&&("main"===this.variant||"place"===this.variant)&&"animate-bounce-once","cluster"===this.variant&&"hover"===this.state&&"scale-110 fill-primary-500","cluster"===this.variant&&!this.notInteractive&&"transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500","main"===this.variant&&"hover"===this.state&&"fill-accent-550","main"===this.variant&&"active"===this.state&&"fill-accent-700","main"===this.variant&&!this.notInteractive&&"hover:fill-accent-550 active:fill-accent-700","place"===this.variant&&"default"===this.state&&"fill-white","place"===this.variant&&"hover"===this.state&&"fill-primary-100","place"===this.variant&&"active"===this.state&&"fill-primary-200","place"===this.variant&&!this.notInteractive&&"hover:fill-primary-100",{cluster:"fill-primary",main:"fill-accent *:drop-shadow-md",place:"*:drop-shadow-md"}[this.variant])}">${this.marker[this.variant]}</div><div id="content" part="content" class="${Ne("absolute self-center pointer-events-none","cluster"===this.variant&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Bs.styles=[$e,We.styles,Ft`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}`],Is([Ue({reflect:!0})],Bs.prototype,"variant",2),Is([Ue({reflect:!0})],Bs.prototype,"state",2),Is([Ue({type:Boolean,reflect:!0})],Bs.prototype,"animated",2),Is([Ue({type:Boolean,reflect:!0,attribute:"not-interactive"})],Bs.prototype,"notInteractive",2),Is([Ue()],Bs.prototype,"href",2),Is([Ue()],Bs.prototype,"target",2),Bs=Is([Qe("sd-map-marker")],Bs);const Ms=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Bs}},Symbol.toStringTag,{value:"Module"}));var Ds=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,zs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Os(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&&Ds(e,i,s),s};let Ts=class extends We{constructor(){super(...arguments),this.hasSlotController=new qi(this,"[default]","description","children"),this.vertical=!1,this.size="base",this.current=!1,this.disabled=!1,this.chevron=!1,this.relaxed=!1,this.divider=!1,this.indented=!1,this.open=!1,this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.isAccordion&&!this.isLink?Eo`summary`:this.separated?Eo`div`:this.isLink?Eo`a`:Eo`button`}render(){const t=this.tag,e=this.isLink,i=this.isButton,o=this.isAccordion,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="${Ne("cursor-pointer relative focus-visible:focus-outline",{base:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",o?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-all min-h-[48px] px-4")}" aria-controls="${Do(o?"navigation-item-details":void 0)}" aria-current="${Do(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${Do(i?this.disabled:void 0)}" href="${Do(e?this.href:void 0)}" target="${Do(e?this.target:void 0)}" download="${Do(e?this.download:void 0)}" rel="${Do(e&&this.target?"noreferrer noopener":void 0)}" role="${e?"link":"button"}" tabindex="${this.disabled||this.separated?"-1":"0"}" @click="${this.separated?void 0:o?this.handleClickSummary:i?this.handleClickButton:void 0}"><div part="current-indicator" class="${Ne("absolute left-0 pointer-events-none transition-all duration-150",this.vertical?"w-1 h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"h-1 w-full bottom-0",this.current?"bg-accent":"bg-transparent",this.disabled&&"bg-neutral-500")}"></div><span part="content-area" class="${Ne("relative pt-3 inline-flex justify-between items-center",o?"grow":"w-full",r||this.separated?"pb-1":a,this.calculatePaddingX)}">${this.divider&&this.vertical?Bo`<sd-divider part="divider" class="${Ne("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated?Bo`<a class="${Ne("mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",!r&&"py-4")}" href="${Do(e?this.href:void 0)}" target="${Do(e?this.target:void 0)}" download="${Do(e?this.download:void 0)}"><slot part="content" class="inline"></slot></a>`: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="${Ne("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="${Ne("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="${Ne("inline-block text-sm text-left text-black",o||this.separated?"grow":"w-full",this.separated?"px-4":this.calculatePaddingX,a)}"></slot>`:""}</${t}>`;return o?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}`}};Ts.styles=[$e,We.styles,Pt(Ni),Ft`:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"vertical",2),zs([Ue({reflect:!0})],Ts.prototype,"size",2),zs([Ue({reflect:!0})],Ts.prototype,"href",2),zs([Ue()],Ts.prototype,"target",2),zs([Ue()],Ts.prototype,"download",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"current",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"disabled",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"chevron",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"relaxed",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"divider",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"indented",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"open",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"separated",2),Ts=zs([Qe("sd-navigation-item")],Ts);const Ps=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ts}},Symbol.toStringTag,{value:"Module"}));var Fs=Object.defineProperty,js=Object.getOwnPropertyDescriptor,Qs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?js(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};const Ys=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),Rs=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let Us=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.variant="info",this.open=!1,this.closable=!1,this.duration=1/0,this.durationIndicator=!1,this.toastStack="top-right",this.remainingDuration=this.duration,this.startTime=Date.now()}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>{this.hide()}),this.remainingDuration))}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Ei(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=zi(this,"notification.show",{dir:this.localize.dir()});await ki(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Ei(this.base);const{keyframes:t,options:e}=zi(this,"notification.hide",{dir:this.localize.dir()});await ki(this.base,t,e),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,Ti(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Ti(this,"sd-after-hide")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?Rs:Ys;null===e.parentElement&&document.body.append(e),e.appendChild(this),requestAnimationFrame((()=>{this.clientWidth,this.show()})),this.addEventListener("sd-after-hide",(()=>{e.removeChild(this),t(),null===e.querySelector("sd-notification")&&e.remove()}),{once:!0})}))}render(){return ye`<div part="base" class="${Ne("w-full overflow-hidden flex items-stretch relative m-2")}" role="alert" id="notification" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}"><slot name="icon" part="icon" class="${Ne("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${Ne("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable?ye`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?ye`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${Ne("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div>`}};Us.styles=[$e,We.styles,Ft`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],Qs([Le('[part~="base"]')],Us.prototype,"base",2),Qs([Ue({reflect:!0})],Us.prototype,"variant",2),Qs([Ue({type:Boolean,reflect:!0})],Us.prototype,"open",2),Qs([Ue({type:Boolean,reflect:!0})],Us.prototype,"closable",2),Qs([Ue({type:Number})],Us.prototype,"duration",2),Qs([Ue({type:Boolean,reflect:!0,attribute:"duration-indicator"})],Us.prototype,"durationIndicator",2),Qs([Ue({reflect:!0,attribute:"toast-stack"})],Us.prototype,"toastStack",2),Qs([bi("open",{waitUntilFirstUpdate:!0})],Us.prototype,"handleOpenChange",1),Qs([bi("duration")],Us.prototype,"handleDurationChange",1),Us=Qs([Qe("sd-notification")],Us),Oi("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Oi("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});const Hs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Us}},Symbol.toStringTag,{value:"Module"}));var Gs=Object.defineProperty,Ls=Object.getOwnPropertyDescriptor,qs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ls(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 Vs=class extends We{constructor(){super(...arguments),this.hasSlotController=new qi(this,"default","left","right"),this.current=!1,this.selected=!1,this.hasHover=!1,this.size="lg",this.checkbox=!1,this.disabled=!1,this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){const t=this.getTextLabel();typeof this.cachedTextLabel>"u"?this.cachedTextLabel=t:t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){return(this.textContent??"").trim()}render(){this.hasSlotController.test("default");const t=this.hasSlotController.test("left"),e=this.hasSlotController.test("right");return ye`<div part="base" class="${Ne("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${Ne("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?ye`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${Ne("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?ye`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""}</span>`:""} ${t?ye`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${e?ye`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};Vs.styles=[$e,We.styles,Ft`:host{position:relative;display:block;width:100%;outline:2px solid transparent!important;outline-offset:2px!important}`],qs([Le('[part="base"]')],Vs.prototype,"defaultSlot",2),qs([He()],Vs.prototype,"current",2),qs([He()],Vs.prototype,"selected",2),qs([He()],Vs.prototype,"hasHover",2),qs([Ue({reflect:!0})],Vs.prototype,"size",2),qs([Ue({type:Boolean,reflect:!0})],Vs.prototype,"checkbox",2),qs([Ue({type:Boolean,reflect:!0})],Vs.prototype,"disabled",2),qs([Ue({reflect:!0})],Vs.prototype,"value",2),qs([bi("disabled")],Vs.prototype,"handleDisabledChange",1),qs([bi("selected")],Vs.prototype,"handleSelectedChange",1),qs([bi("value")],Vs.prototype,"handleValueChange",1),Vs=qs([Qe("sd-option")],Vs);const $s=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Vs}},Symbol.toStringTag,{value:"Module"}));var Ns=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Ks=(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&&Ns(e,i,s),s};let Js=class extends Qi{constructor(){super(...arguments),this.expandable=!1}render(){return ye`<div part="base" class="sm:p-6"><header part="header" id="header" class="${Ne("text-base font-bold items-center focus-visible:focus-outline text-primary relative group flex flex-row hover:bg-transparent gap-3 pb-3 pt-0 px-0 sm:flex-col sm:gap-4 sm:pb-8",this.expandable&&"cursor-pointer select-none")}" role="${Do(this.expandable?"button":void 0)}" aria-expanded="${Do(this.expandable?this.open?"true":"false":void 0)}" aria-controls="${Do(this.expandable?"content":void 0)}" tabindex="${this.expandable?"0":"-1"}" @click="${this.expandable?this.handleSummaryClick:null}" @keydown="${this.expandable?this.handleSummaryKeyDown:null}"><div part="icon" class="${Ne("flex flex-grow-0 flex-shrink-0 flex-auto items-center",!this.expandable&&"cursor-default")}"><slot name="icon"></slot></div><slot name="summary" part="summary" class="${Ne("flex flex-auto items-start text-left text-base leading-normal font-normal sm:leading-tight sm:text-3xl sm:text-center",this.expandable?"text-primary":"text-black cursor-default")}">${this.summary}</slot><span part="summary-icon" class="${Ne("flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-all ease-in-out duration-300 text-xl sm:text-4xl sm:mt-2",this.open&&"rotate-180",!this.expandable&&"hidden")}"><slot name="expand-icon" class="${Ne(this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot><slot name="collapse-icon" class="${Ne(!this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot></span></header><div part="content" id="content" class="${Ne("overflow-hidden",!this.expandable&&"hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></div>`}};Js.styles=[Qi.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)}}`],Ks([Ue({type:Boolean,reflect:!0})],Js.prototype,"expandable",2),Js=Ks([Qe("sd-quickfact")],Js),Oi("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}}),Oi("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});const Ws=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Js}},Symbol.toStringTag,{value:"Module"}));var _s=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,ta=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Xs(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 ea=class extends We{constructor(){super(...arguments),this.hasSlotController=new qi(this,"[default]","icon"),this.hasFocus=!1,this.size="lg",this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled)return t.preventDefault(),void t.stopPropagation();this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){const t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),i=`${this.size}-${t?"label":"no-label"}`;return ye`<div part="base" role="presentation" class="relative"><button part="${"button"+(this.checked?" button--checked":"")}" role="radio" aria-checked="${this.checked}" class="${Ne("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline","sm"===this.size?"text-sm":"text-base",this.checked&&!this.disabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":this.disabled&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":this.disabled&&this.checked?"bg-neutral-500 border-neutral-500 text-white hover:cursor-not-allowed":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",t&&"px-4",this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",i)}" aria-disabled="${this.disabled}" type="button" value="${Do(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${Ne(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?ye`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};ea.styles=[We.styles,$e,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}`],ta([Le(".button")],ea.prototype,"input",2),ta([Le(".hidden-input")],ea.prototype,"hiddenInput",2),ta([He()],ea.prototype,"hasFocus",2),ta([Ue({reflect:!0})],ea.prototype,"size",2),ta([Ue({type:Boolean,reflect:!0})],ea.prototype,"disabled",2),ta([Ue({type:Boolean,reflect:!0})],ea.prototype,"checked",2),ta([Ue()],ea.prototype,"value",2),ta([bi("disabled",{waitUntilFirstUpdate:!0})],ea.prototype,"handleDisabledChange",1),ea=ta([Qe("sd-radio-button")],ea);const ia=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ea}},Symbol.toStringTag,{value:"Module"})),oa=Ft`${$e}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var ra=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,aa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?sa(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&&ra(e,i,s),s};let na=class extends We{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=la(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=la(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=la(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=la(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=la(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 la(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}na.styles=oa,aa([Le("slot")],na.prototype,"defaultSlot",2),aa([He()],na.prototype,"disableRole",2),aa([Ue()],na.prototype,"label",2),na=aa([Qe("sd-button-group")],na);var da=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,ca=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ha(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&&da(e,i,s),s};let pa=class extends We{constructor(){super(...arguments),this.checked=!1,this.hasFocus=!1,this.size="lg",this.disabled=!1,this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){this.disabled||(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return ye`<span part="base" class="${Ne("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",this.disabled&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${this.checked?"control--checked":"control--unchecked"}" class="${Ne("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?ye`<span part="checked" class="${Ne("rounded-full inline-flex text-white border bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${Ne("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};pa.styles=[We.styles,Ft`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:rgb(var(--sd-color-primary,0 53 142) / 1)}`],ca([He()],pa.prototype,"checked",2),ca([He()],pa.prototype,"hasFocus",2),ca([Ue({reflect:!0})],pa.prototype,"size",2),ca([Ue({type:Boolean,reflect:!0})],pa.prototype,"disabled",2),ca([Ue()],pa.prototype,"value",2),ca([Ue({type:Boolean,reflect:!0})],pa.prototype,"invalid",2),ca([bi("checked")],pa.prototype,"handleCheckedChange",1),ca([bi("disabled",{waitUntilFirstUpdate:!0})],pa.prototype,"handleDisabledChange",1),pa=ca([Qe("sd-radio")],pa);const ua=Object.freeze(Object.defineProperty({__proto__:null,get default(){return pa}},Symbol.toStringTag,{value:"Module"}));var ga=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,ba=(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&&ga(e,i,s),s};let va=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new qi(this,"label","error-text"),this.customValidityMessage="",this.hasButtonGroup=!1,this.defaultValue="",this.showInvalidStyle=!1,this.size="lg",this.required=!1,this.orientation="vertical",this.label="",this.boldLabel=!1,this.name="option",this.value="",this.form=""}get validity(){const t=this.required&&!this.value;return""!==this.customValidityMessage?ko:t?xo:Ao}get validationMessage(){const t=this.required&&!this.value;return""!==this.customValidityMessage?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){const e=t.target.closest("sd-radio, sd-radio-button"),i=this.getAllRadios(),o=this.value;e.disabled||(this.value=e.value,i.forEach((t=>t.checked=t===e)),this.value!==o&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const e=this.getAllRadios().filter((t=>!t.disabled)),i=e.find((t=>t.checked))??e[0],o=" "===t.key?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,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 pa&&(t.invalid=this.showInvalidStyle)}))),this.hasButtonGroup=i.some((t=>"sd-radio-button"===t.tagName.toLowerCase())),!i.some((t=>t.checked)))if(this.hasButtonGroup){const e=null==(t=i[0].shadowRoot)?void 0:t.querySelector("button");e&&(e.tabIndex=0)}else i[0].tabIndex=0;if(this.hasButtonGroup){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("sd-button-group");t&&(t.disableRole=!0)}}syncRadios(){customElements.get("sd-radio")&&customElements.get("sd-radio-button")?this.syncRadioElements():(customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then((()=>this.syncRadios())),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then((()=>this.syncRadios())))}updateCheckedRadio(){this.getAllRadios().forEach((t=>t.checked=t.value===this.value)),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){const t=this.required&&!this.value,e=""!==this.customValidityMessage;return!t&&!e||(this.formControlController.emitInvalidEvent(),!1)}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout((()=>this.validationInput.hidden=!0),1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=!!this.label||!!t,i=ye`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return ye`<fieldset part="form-control" class="${Ne("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message"><div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${Ne("p-0 leading-normal text-black text-left",!e&&"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend><slot name="tooltip"></slot></div><div part="form-control-input" class="${Ne("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?ye`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${i}</sd-button-group>`:i}</div></fieldset>${this.formControlController.renderInvalidMessage()}`}};va.dependencies={"sd-button-group":na},va.styles=[$e,We.styles,Ft`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label::after{content:' *'}`],ba([Le("slot:not([name])")],va.prototype,"defaultSlot",2),ba([Le("#validation-input")],va.prototype,"validationInput",2),ba([Le("#invalid-message")],va.prototype,"invalidMessage",2),ba([He()],va.prototype,"hasButtonGroup",2),ba([He()],va.prototype,"defaultValue",2),ba([He()],va.prototype,"showInvalidStyle",2),ba([Ue({reflect:!0})],va.prototype,"size",2),ba([Ue({type:Boolean,reflect:!0})],va.prototype,"required",2),ba([Ue({reflect:!0})],va.prototype,"orientation",2),ba([Ue()],va.prototype,"label",2),ba([Ue({type:Boolean,reflect:!0})],va.prototype,"boldLabel",2),ba([Ue()],va.prototype,"name",2),ba([Ue({reflect:!0})],va.prototype,"value",2),ba([Ue({reflect:!0})],va.prototype,"form",2),ba([bi("size",{waitUntilFirstUpdate:!0})],va.prototype,"handleSizeChange",1),ba([bi("showInvalidStyle",{waitUntilFirstUpdate:!0})],va.prototype,"handleInvalidChange",1),ba([bi("value")],va.prototype,"handleValueChange",1),va=ba([Qe("sd-radio-group")],va);const ya=Object.freeze(Object.defineProperty({__proto__:null,get default(){return va}},Symbol.toStringTag,{value:"Module"}));var fa=Object.defineProperty,wa=Object.getOwnPropertyDescriptor,Aa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?wa(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&&fa(e,i,s),s};let xa=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.orientation="horizontal",this.scrollbars=!1,this.buttons=!1,this.shadows=!1,this.inset=!1,this.step=150,this.canScroll={left:!1,right:!1,up:!1,down:!1},this.isScrollHorizontalEnabled=!1,this.isScrollVerticalEnabled=!1,this.isKeyboardNavigation=!1,this.scrollContainer=null}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver((()=>{this.updateScrollIndicatorVisibility()})),this.updateComplete.then((()=>{this.scrollContainer=this.renderRoot.querySelector(".scroll-container"),this.scrollContainer&&this.resizeObserver.observe(this.scrollContainer)}))}disconnectedCallback(){super.disconnectedCallback(),this.scrollContainer&&this.resizeObserver.unobserve(this.scrollContainer)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.updateScrollIndicatorVisibility())}updateScrollEnabledFlags(){const t=this.orientation;this.isScrollHorizontalEnabled="horizontal"===t||"auto"===t,this.isScrollVerticalEnabled="vertical"===t||"auto"===t}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){const t=this.container;if(!t)return;const e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,i=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,o=this.isScrollVerticalEnabled&&t.scrollTop>0,r=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1,s=this.renderRoot.querySelector('[part="button-start"]'),a=this.renderRoot.querySelector('[part="button-end"]');this.canScroll={left:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:e,right:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:i,up:this.isKeyboardNavigation?this.isScrollVerticalEnabled:o,down:this.isKeyboardNavigation?this.isScrollVerticalEnabled:r};const n=e||o,l=i||r;n&&this.dispatchEvent(new CustomEvent("start")),l&&this.dispatchEvent(new CustomEvent("end")),this.isKeyboardNavigation&&(s&&(s.hidden=!n),s&&n&&!(r||i)&&s.focus(),a&&(a.hidden=!l),a&&l&&!o&&!e&&a.focus())}handleScroll(t,e){var i;const o="left"===t||"up"===t?-this.step:this.step,r="left"===t||"right"===t?"left":"top";this.isKeyboardNavigation="mouse"!==(null==e?void 0:e.pointerType);const s={behavior:"smooth"};s[r]=o,null==(i=this.scrollContainer)||i.scrollBy(s);const a=`button-${t}`;this.dispatchEvent(new CustomEvent(a,{bubbles:!0,composed:!0}))}render(){const t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none";return ye`<div part="base" class="${Ne("scroll-container flex overflow-hidden flex-1","horizontal"===this.orientation&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden","vertical"===this.orientation&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden","auto"===this.orientation&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?ye`${this.isScrollHorizontalEnabled?ye`${this.canScroll.left?ye`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${Ne(t)}" @click="${t=>this.handleScroll("left",t)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.right?ye`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${Ne(t)}" @click="${t=>this.handleScroll("right",t)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?ye`${this.canScroll.up?ye`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${Ne(t)}" @click="${t=>this.handleScroll("up",t)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.down?ye`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${Ne(t)}" @click="${t=>this.handleScroll("down",t)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?ye`${this.isScrollHorizontalEnabled?ye`${this.canScroll.left?ye`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?ye`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?ye`${this.canScroll.up?ye`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?ye`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};xa.styles=[We.styles,Pt(Ni),$e,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}`],Aa([Ue({type:String,reflect:!0})],xa.prototype,"orientation",2),Aa([Ue({type:Boolean,reflect:!0})],xa.prototype,"scrollbars",2),Aa([Ue({type:Boolean,reflect:!0})],xa.prototype,"buttons",2),Aa([Ue({type:Boolean,reflect:!0})],xa.prototype,"shadows",2),Aa([Ue({type:Boolean,reflect:!0})],xa.prototype,"inset",2),Aa([Ue({type:Number,reflect:!0})],xa.prototype,"step",2),Aa([He()],xa.prototype,"canScroll",2),Aa([He()],xa.prototype,"isScrollHorizontalEnabled",2),Aa([He()],xa.prototype,"isScrollVerticalEnabled",2),Aa([He()],xa.prototype,"isKeyboardNavigation",2),xa=Aa([Qe("sd-scrollable")],xa);const ka=Object.freeze(Object.defineProperty({__proto__:null,get default(){return xa}},Symbol.toStringTag,{value:"Module"}));var Ca=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,Ea=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Sa(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&&Ca(e,i,s),s};let Ia=class extends We{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?Eo`a`:Eo`button`;return Bo`<${e} part="base" type="${Do(t?void 0:"button")}" href="${Do(t?this.href:void 0)}" rel="${Do(t&&this.target?"noreferrer noopener":void 0)}" target="${Do(t?this.target:void 0)}" download="${Do(t?this.download:void 0)}" ?disabled="${Do(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${Do(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${Ne("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="${Ne({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};Ia.styles=[We.styles,Ft`:host{display:inline-block}`],Ea([Le("a, button")],Ia.prototype,"tag",2),Ea([Ue({reflect:!0})],Ia.prototype,"size",2),Ea([Ue({type:Boolean,reflect:!0})],Ia.prototype,"selected",2),Ea([Ue({type:Boolean,reflect:!0})],Ia.prototype,"toggleable",2),Ea([Ue({type:Boolean,reflect:!0})],Ia.prototype,"removable",2),Ea([Ue({type:Boolean,reflect:!0})],Ia.prototype,"disabled",2),Ea([Ue()],Ia.prototype,"href",2),Ea([Ue()],Ia.prototype,"target",2),Ea([Ue()],Ia.prototype,"download",2),Ia=Ea([Qe("sd-tag")],Ia);const Ba=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ia}},Symbol.toStringTag,{value:"Module"}));var Ma=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,Oa=(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&&Ma(e,i,s),s};let za=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new qi(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="
|
107
|
+
*/function ds(t){void 0!==this._$AN?(ns(this),this._$AM=t,ls(this)):this._$AM=t}function hs(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++)as(o[t],!1),ns(o[t]);else null!=o&&(as(o,!1),ns(o));else as(this,t)}const cs=t=>{2==t.type&&(t._$AP??(t._$AP=hs),t._$AQ??(t._$AQ=ds))};class ps extends ci{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),ls(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&&(as(this,t),ns(this))}setValue(t){if(or(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 us=hi(class extends ps{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 gs=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,bs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ms(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};const vs=!(null==(i=navigator.userAgentData)?void 0:i.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let ys=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new qi(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="${Ne(this.disabled&&"pointer-events-none")}"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${Ne(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="${Ne("absolute w-full h-full pointer-events-none border rounded-default",d)}"></div><div part="base" class="${Ne("px-4 flex flex-row items-center rounded-default transition-all","lg"===this.size?"py-2":"py-1",this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly?"bg-neutral-100":"bg-white","disabled"===n?"text-neutral-500":"text-black")}">${i?ye`<slot name="left" part="left" class="${Ne("inline-flex","sm"===this.size?"mr-1":"mr-2",h,p)}"></slot>`:""} <input part="input" id="input" class="${Ne("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700","sm"===this.size?"h-6":"h-8",l)}" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${Do(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${Do(this.placeholder)}" minlength="${Do(this.minlength)}" maxlength="${Do(this.maxlength)}" min="${Do(this.min)}" max="${Do(this.max)}" step="${Do(this.step)}" .value="${sr(this.value)}" autocapitalize="${Do("password"===this.type?"off":this.autocapitalize)}" autocomplete="${Do("password"===this.type?"off":this.autocomplete)}" autocorrect="${Do("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${Do(this.pattern)}" enterkeyhint="${Do(this.enterkeyhint)}" inputmode="${Do(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?ye`<button part="clear-button" class="${Ne("flex justify-center ",c)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${Ne("icon-fill-neutral-800",p)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&"password"===this.type?ye`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?ye`<slot name="show-password-icon"><sd-icon class="${Ne(h,c,p)}" library="system" name="eye"></sd-icon></slot>`:ye`<slot name="hide-password-icon"><sd-icon class="${Ne(h,c,p)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||vs?"":ye`<sd-icon class="${Ne(h,c,p)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?ye`<sd-icon class="${Ne(h,c,p)}" library="system" name="clock"></sd-icon>`:""} ${"search"===this.type?ye`<button class="flex items-center" type="button" tabindex="-1"><sd-icon class="${Ne(h,c,p)}" library="system" name="magnifying-glass"></sd-icon></button>`:""} ${this.showInvalidStyle?ye`<sd-icon part="invalid-icon" class="${Ne("text-error",c,p)}" library="system" name="risk"></sd-icon>`:""} ${this.showValidStyle&&this.styleOnValid?ye`<sd-icon class="${Ne("text-success flex-shrink-0",c,p)}" library="system" name="status-check" part="valid-icon"></sd-icon>`:""} ${o?ye`<slot name="right" part="right" class="${Ne("inline-flex",h,c,p)}"></slot>`:""} ${"number"===this.type&&this.spinButtons?ye`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${us({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-icon name="system/minus-circle" label="Decrease value" class="${Ne(h,c,p)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${us({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-icon name="system/plus-circle" label="Decrease value" class="${Ne(h,c,p)}"></sd-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${Ne("text-sm text-neutral-700",s?"block":"hidden")}" aria-hidden="${!s}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};ys.styles=[$e,We.styles,Ft`:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label::after{content:' *'}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174) / var(--tw-text-opacity))}`],bs([Le("#input")],ys.prototype,"input",2),bs([Le("#invalid-message")],ys.prototype,"invalidMessage",2),bs([He()],ys.prototype,"hasFocus",2),bs([He()],ys.prototype,"showValidStyle",2),bs([He()],ys.prototype,"showInvalidStyle",2),bs([Ue({reflect:!0})],ys.prototype,"type",2),bs([Ue({reflect:!0})],ys.prototype,"size",2),bs([Ue()],ys.prototype,"inputmode",2),bs([Ue()],ys.prototype,"value",2),bs([ir()],ys.prototype,"defaultValue",2),bs([Ue()],ys.prototype,"placeholder",2),bs([Ue()],ys.prototype,"label",2),bs([Ue({attribute:"help-text"})],ys.prototype,"helpText",2),bs([Ue({type:Boolean})],ys.prototype,"clearable",2),bs([Ue({type:Boolean,reflect:!0})],ys.prototype,"disabled",2),bs([Ue({type:Boolean,reflect:!0})],ys.prototype,"readonly",2),bs([Ue({attribute:"password-toggle",type:Boolean})],ys.prototype,"passwordToggle",2),bs([Ue({attribute:"password-visible",type:Boolean})],ys.prototype,"passwordVisible",2),bs([Ue({attribute:"spin-buttons",type:Boolean})],ys.prototype,"spinButtons",2),bs([Ue({type:Number})],ys.prototype,"minlength",2),bs([Ue({type:Number})],ys.prototype,"maxlength",2),bs([Ue()],ys.prototype,"min",2),bs([Ue()],ys.prototype,"max",2),bs([Ue({reflect:!0})],ys.prototype,"form",2),bs([Ue()],ys.prototype,"name",2),bs([Ue()],ys.prototype,"title",2),bs([Ue({type:Boolean,reflect:!0})],ys.prototype,"required",2),bs([Ue()],ys.prototype,"pattern",2),bs([Ue()],ys.prototype,"step",2),bs([Ue()],ys.prototype,"autocapitalize",2),bs([Ue()],ys.prototype,"autocorrect",2),bs([Ue()],ys.prototype,"autocomplete",2),bs([Ue({type:Boolean})],ys.prototype,"autofocus",2),bs([Ue()],ys.prototype,"enterkeyhint",2),bs([Ue({type:Boolean,reflect:!0,attribute:"style-on-valid"})],ys.prototype,"styleOnValid",2),bs([Ue({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],ys.prototype,"spellcheck",2),bs([bi("disabled",{waitUntilFirstUpdate:!0})],ys.prototype,"handleDisabledChange",1),bs([bi("step",{waitUntilFirstUpdate:!0})],ys.prototype,"handleStepChange",1),bs([bi("value",{waitUntilFirstUpdate:!0})],ys.prototype,"handleValueChange",1),ys=bs([Qe("sd-input")],ys);const fs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ys}},Symbol.toStringTag,{value:"Module"}));var ws=Object.defineProperty,As=Object.getOwnPropertyDescriptor,xs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?As(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 ks=class extends We{constructor(){super(...arguments),this.hasSlotController=new qi(this,"[default]","icon-left","icon-right"),this.standalone=!1,this.size="inherit",this.inverted=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return ye`<a part="base" class="${Ne("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${Do(this.href||void 0)}" target="${Do(this.target||void 0)}" download="${Do(this.download)}" rel="${Do(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${Ne("inline",t["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${Ne("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};ks.styles=[We.styles,Ft`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],xs([Le("a")],ks.prototype,"button",2),xs([Ue({type:Boolean,reflect:!0})],ks.prototype,"standalone",2),xs([Ue({reflect:!0})],ks.prototype,"size",2),xs([Ue({type:Boolean,reflect:!0})],ks.prototype,"inverted",2),xs([Ue()],ks.prototype,"href",2),xs([Ue()],ks.prototype,"target",2),xs([Ue()],ks.prototype,"download",2),ks=xs([Qe("sd-link")],ks);const Cs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ks}},Symbol.toStringTag,{value:"Module"}));var Ss=Object.defineProperty,Es=Object.getOwnPropertyDescriptor,Is=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Es(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&&Ss(e,i,s),s};let Bs=class extends We{constructor(){super(...arguments),this.variant="main",this.state="default",this.animated=!1,this.notInteractive=!1,this.href="",this.marker={cluster:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" opacity="1" r="20"/><circle cx="25" cy="25" opacity=".3" r="25"/></svg>`,main:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z"/><circle cx="30" cy="28" r="10" fill="#fff"/></svg>`,place:fe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd"/></svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){const t=this.isLink(),e=this.notInteractive?Eo`div`:t?Eo`a`:Eo`button`;return Bo`<${e} part="base" class="${Ne("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${Do(t?this.href:void 0)}" target="${Do(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${Do(this.notInteractive||t?void 0:"button")}" aria-labelledby="${Do(this.notInteractive?void 0:"content")}"><div part="marker" class="${Ne("inline-flex",this.animated&&("main"===this.variant||"place"===this.variant)&&"animate-bounce-once","cluster"===this.variant&&"hover"===this.state&&"scale-110 fill-primary-500","cluster"===this.variant&&!this.notInteractive&&"transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500","main"===this.variant&&"hover"===this.state&&"fill-accent-550","main"===this.variant&&"active"===this.state&&"fill-accent-700","main"===this.variant&&!this.notInteractive&&"hover:fill-accent-550 active:fill-accent-700","place"===this.variant&&"default"===this.state&&"fill-white","place"===this.variant&&"hover"===this.state&&"fill-primary-100","place"===this.variant&&"active"===this.state&&"fill-primary-200","place"===this.variant&&!this.notInteractive&&"hover:fill-primary-100",{cluster:"fill-primary",main:"fill-accent *:drop-shadow-md",place:"*:drop-shadow-md"}[this.variant])}">${this.marker[this.variant]}</div><div id="content" part="content" class="${Ne("absolute self-center pointer-events-none","cluster"===this.variant&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Bs.styles=[$e,We.styles,Ft`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}`],Is([Ue({reflect:!0})],Bs.prototype,"variant",2),Is([Ue({reflect:!0})],Bs.prototype,"state",2),Is([Ue({type:Boolean,reflect:!0})],Bs.prototype,"animated",2),Is([Ue({type:Boolean,reflect:!0,attribute:"not-interactive"})],Bs.prototype,"notInteractive",2),Is([Ue()],Bs.prototype,"href",2),Is([Ue()],Bs.prototype,"target",2),Bs=Is([Qe("sd-map-marker")],Bs);const Ms=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Bs}},Symbol.toStringTag,{value:"Module"}));var Ds=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,zs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Os(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&&Ds(e,i,s),s};let Ts=class extends We{constructor(){super(...arguments),this.hasSlotController=new qi(this,"[default]","description","children"),this.vertical=!1,this.size="base",this.current=!1,this.disabled=!1,this.chevron=!1,this.relaxed=!1,this.divider=!1,this.indented=!1,this.open=!1,this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.isAccordion&&!this.isLink?Eo`summary`:this.separated?Eo`div`:this.isLink?Eo`a`:Eo`button`}render(){const t=this.tag,e=this.isLink,i=this.isButton,o=this.isAccordion,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="${Ne("cursor-pointer relative focus-visible:focus-outline",{base:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",o?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-all min-h-[48px] px-4")}" aria-controls="${Do(o?"navigation-item-details":void 0)}" aria-current="${Do(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${Do(i?this.disabled:void 0)}" href="${Do(e?this.href:void 0)}" target="${Do(e?this.target:void 0)}" download="${Do(e?this.download:void 0)}" rel="${Do(e&&this.target?"noreferrer noopener":void 0)}" role="${e?"link":"button"}" tabindex="${this.disabled||this.separated?"-1":"0"}" @click="${this.separated?void 0:o?this.handleClickSummary:i?this.handleClickButton:void 0}"><div part="current-indicator" class="${Ne("absolute left-0 pointer-events-none transition-all duration-150",this.vertical?"w-1 h-[calc(100%-16px)] top-2 group-hover:h-full group-hover:top-0":"h-1 w-full bottom-0",this.current?"bg-accent":"bg-transparent",this.disabled&&"bg-neutral-500")}"></div><span part="content-area" class="${Ne("relative pt-3 inline-flex justify-between items-center",o?"grow":"w-full",r||this.separated?"pb-1":a,this.calculatePaddingX)}">${this.divider&&this.vertical?Bo`<sd-divider part="divider" class="${Ne("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated?Bo`<a class="${Ne("mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",!r&&"py-4")}" href="${Do(e?this.href:void 0)}" target="${Do(e?this.target:void 0)}" download="${Do(e?this.download:void 0)}"><slot part="content" class="inline"></slot></a>`: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="${Ne("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="${Ne("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="${Ne("inline-block text-sm text-left text-black",o||this.separated?"grow":"w-full",this.separated?"px-4":this.calculatePaddingX,a)}"></slot>`:""}</${t}>`;return o?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}`}};Ts.styles=[$e,We.styles,Pt(Ni),Ft`:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"vertical",2),zs([Ue({reflect:!0})],Ts.prototype,"size",2),zs([Ue({reflect:!0})],Ts.prototype,"href",2),zs([Ue()],Ts.prototype,"target",2),zs([Ue()],Ts.prototype,"download",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"current",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"disabled",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"chevron",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"relaxed",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"divider",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"indented",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"open",2),zs([Ue({type:Boolean,reflect:!0})],Ts.prototype,"separated",2),Ts=zs([Qe("sd-navigation-item")],Ts);const Ps=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ts}},Symbol.toStringTag,{value:"Module"}));var Fs=Object.defineProperty,js=Object.getOwnPropertyDescriptor,Qs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?js(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};const Ys=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),Rs=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let Us=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.variant="info",this.open=!1,this.closable=!1,this.duration=1/0,this.durationIndicator=!1,this.toastStack="top-right",this.remainingDuration=this.duration,this.startTime=Date.now()}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>{this.hide()}),this.remainingDuration))}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Ei(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=zi(this,"notification.show",{dir:this.localize.dir()});await ki(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Ei(this.base);const{keyframes:t,options:e}=zi(this,"notification.hide",{dir:this.localize.dir()});await ki(this.base,t,e),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,Ti(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,Ti(this,"sd-after-hide")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?Rs:Ys;null===e.parentElement&&document.body.append(e),e.appendChild(this),requestAnimationFrame((()=>{this.clientWidth,this.show()})),this.addEventListener("sd-after-hide",(()=>{e.removeChild(this),t(),null===e.querySelector("sd-notification")&&e.remove()}),{once:!0})}))}render(){return ye`<div part="base" class="${Ne("w-full overflow-hidden flex items-stretch relative m-2")}" role="alert" id="notification" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}"><slot name="icon" part="icon" class="${Ne("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${Ne("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable?ye`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?ye`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${Ne("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div>`}};Us.styles=[$e,We.styles,Ft`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],Qs([Le('[part~="base"]')],Us.prototype,"base",2),Qs([Ue({reflect:!0})],Us.prototype,"variant",2),Qs([Ue({type:Boolean,reflect:!0})],Us.prototype,"open",2),Qs([Ue({type:Boolean,reflect:!0})],Us.prototype,"closable",2),Qs([Ue({type:Number})],Us.prototype,"duration",2),Qs([Ue({type:Boolean,reflect:!0,attribute:"duration-indicator"})],Us.prototype,"durationIndicator",2),Qs([Ue({reflect:!0,attribute:"toast-stack"})],Us.prototype,"toastStack",2),Qs([bi("open",{waitUntilFirstUpdate:!0})],Us.prototype,"handleOpenChange",1),Qs([bi("duration")],Us.prototype,"handleDurationChange",1),Us=Qs([Qe("sd-notification")],Us),Oi("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),Oi("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});const Hs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Us}},Symbol.toStringTag,{value:"Module"}));var Gs=Object.defineProperty,Ls=Object.getOwnPropertyDescriptor,qs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ls(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 Vs=class extends We{constructor(){super(...arguments),this.hasSlotController=new qi(this,"default","left","right"),this.current=!1,this.selected=!1,this.hasHover=!1,this.size="lg",this.checkbox=!1,this.disabled=!1,this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){const t=this.getTextLabel();typeof this.cachedTextLabel>"u"?this.cachedTextLabel=t:t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){return(this.textContent??"").trim()}render(){this.hasSlotController.test("default");const t=this.hasSlotController.test("left"),e=this.hasSlotController.test("right");return ye`<div part="base" class="${Ne("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${Ne("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?ye`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${Ne("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?ye`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""}</span>`:""} ${t?ye`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${e?ye`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};Vs.styles=[$e,We.styles,Ft`:host{position:relative;display:block;width:100%;outline:2px solid transparent!important;outline-offset:2px!important}`],qs([Le('[part="base"]')],Vs.prototype,"defaultSlot",2),qs([He()],Vs.prototype,"current",2),qs([He()],Vs.prototype,"selected",2),qs([He()],Vs.prototype,"hasHover",2),qs([Ue({reflect:!0})],Vs.prototype,"size",2),qs([Ue({type:Boolean,reflect:!0})],Vs.prototype,"checkbox",2),qs([Ue({type:Boolean,reflect:!0})],Vs.prototype,"disabled",2),qs([Ue({reflect:!0})],Vs.prototype,"value",2),qs([bi("disabled")],Vs.prototype,"handleDisabledChange",1),qs([bi("selected")],Vs.prototype,"handleSelectedChange",1),qs([bi("value")],Vs.prototype,"handleValueChange",1),Vs=qs([Qe("sd-option")],Vs);const $s=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Vs}},Symbol.toStringTag,{value:"Module"}));var Ns=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,Ks=(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&&Ns(e,i,s),s};let Js=class extends Qi{constructor(){super(...arguments),this.expandable=!1}render(){return ye`<div part="base" class="sm:p-6"><header part="header" id="header" class="${Ne("text-base font-bold items-center focus-visible:focus-outline text-primary relative group flex flex-row hover:bg-transparent gap-3 pb-3 pt-0 px-0 sm:flex-col sm:gap-4 sm:pb-8",this.expandable&&"cursor-pointer select-none")}" role="${Do(this.expandable?"button":void 0)}" aria-expanded="${Do(this.expandable?this.open?"true":"false":void 0)}" aria-controls="${Do(this.expandable?"content":void 0)}" tabindex="${this.expandable?"0":"-1"}" @click="${this.expandable?this.handleSummaryClick:null}" @keydown="${this.expandable?this.handleSummaryKeyDown:null}"><div part="icon" class="${Ne("flex flex-grow-0 flex-shrink-0 flex-auto items-center",!this.expandable&&"cursor-default")}"><slot name="icon"></slot></div><slot name="summary" part="summary" class="${Ne("flex flex-auto items-start text-left text-base leading-normal font-normal sm:leading-tight sm:text-3xl sm:text-center",this.expandable?"text-primary":"text-black cursor-default")}">${this.summary}</slot><span part="summary-icon" class="${Ne("flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-all ease-in-out duration-300 text-xl sm:text-4xl sm:mt-2",this.open&&"rotate-180",!this.expandable&&"hidden")}"><slot name="expand-icon" class="${Ne(this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot><slot name="collapse-icon" class="${Ne(!this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot></span></header><div part="content" id="content" class="${Ne("overflow-hidden",!this.expandable&&"hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></div>`}};Js.styles=[Qi.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)}}`],Ks([Ue({type:Boolean,reflect:!0})],Js.prototype,"expandable",2),Js=Ks([Qe("sd-quickfact")],Js),Oi("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}}),Oi("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});const Ws=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Js}},Symbol.toStringTag,{value:"Module"}));var _s=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,ta=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Xs(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 ea=class extends We{constructor(){super(...arguments),this.hasSlotController=new qi(this,"[default]","icon"),this.hasFocus=!1,this.size="lg",this.disabled=!1,this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled)return t.preventDefault(),void t.stopPropagation();this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){const t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),i=`${this.size}-${t?"label":"no-label"}`;return ye`<div part="base" role="presentation" class="relative"><button part="${"button"+(this.checked?" button--checked":"")}" role="radio" aria-checked="${this.checked}" class="${Ne("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline","sm"===this.size?"text-sm":"text-base",this.checked&&!this.disabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":this.disabled&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":this.disabled&&this.checked?"bg-neutral-500 border-neutral-500 text-white hover:cursor-not-allowed":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",t&&"px-4",this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",i)}" aria-disabled="${this.disabled}" type="button" value="${Do(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${Ne(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?ye`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};ea.styles=[We.styles,$e,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}`],ta([Le(".button")],ea.prototype,"input",2),ta([Le(".hidden-input")],ea.prototype,"hiddenInput",2),ta([He()],ea.prototype,"hasFocus",2),ta([Ue({reflect:!0})],ea.prototype,"size",2),ta([Ue({type:Boolean,reflect:!0})],ea.prototype,"disabled",2),ta([Ue({type:Boolean,reflect:!0})],ea.prototype,"checked",2),ta([Ue()],ea.prototype,"value",2),ta([bi("disabled",{waitUntilFirstUpdate:!0})],ea.prototype,"handleDisabledChange",1),ea=ta([Qe("sd-radio-button")],ea);const ia=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ea}},Symbol.toStringTag,{value:"Module"})),oa=Ft`${$e}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var ra=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,aa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?sa(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&&ra(e,i,s),s};let na=class extends We{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=la(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=la(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=la(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=la(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=la(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 la(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}na.styles=oa,aa([Le("slot")],na.prototype,"defaultSlot",2),aa([He()],na.prototype,"disableRole",2),aa([Ue()],na.prototype,"label",2),na=aa([Qe("sd-button-group")],na);var da=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,ca=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ha(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&&da(e,i,s),s};let pa=class extends We{constructor(){super(...arguments),this.checked=!1,this.hasFocus=!1,this.size="lg",this.disabled=!1,this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){this.disabled||(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return ye`<span part="base" class="${Ne("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",this.disabled&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${this.checked?"control--checked":"control--unchecked"}" class="${Ne("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?ye`<span part="checked" class="${Ne("rounded-full inline-flex text-white border bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${Ne("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};pa.styles=[We.styles,Ft`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:rgb(var(--sd-color-primary,0 53 142) / 1)}`],ca([He()],pa.prototype,"checked",2),ca([He()],pa.prototype,"hasFocus",2),ca([Ue({reflect:!0})],pa.prototype,"size",2),ca([Ue({type:Boolean,reflect:!0})],pa.prototype,"disabled",2),ca([Ue()],pa.prototype,"value",2),ca([Ue({type:Boolean,reflect:!0})],pa.prototype,"invalid",2),ca([bi("checked")],pa.prototype,"handleCheckedChange",1),ca([bi("disabled",{waitUntilFirstUpdate:!0})],pa.prototype,"handleDisabledChange",1),pa=ca([Qe("sd-radio")],pa);const ua=Object.freeze(Object.defineProperty({__proto__:null,get default(){return pa}},Symbol.toStringTag,{value:"Module"}));var ga=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,ba=(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&&ga(e,i,s),s};let va=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this),this.hasSlotController=new qi(this,"label","error-text"),this.customValidityMessage="",this.hasButtonGroup=!1,this.defaultValue="",this.showInvalidStyle=!1,this.size="lg",this.required=!1,this.orientation="vertical",this.label="",this.boldLabel=!1,this.name="option",this.value="",this.form=""}get validity(){const t=this.required&&!this.value;return""!==this.customValidityMessage?ko:t?xo:Ao}get validationMessage(){const t=this.required&&!this.value;return""!==this.customValidityMessage?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){const e=t.target.closest("sd-radio, sd-radio-button"),i=this.getAllRadios(),o=this.value;e.disabled||(this.value=e.value,i.forEach((t=>t.checked=t===e)),this.value!==o&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const e=this.getAllRadios().filter((t=>!t.disabled)),i=e.find((t=>t.checked))??e[0],o=" "===t.key?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,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 pa&&(t.invalid=this.showInvalidStyle)}))),this.hasButtonGroup=i.some((t=>"sd-radio-button"===t.tagName.toLowerCase())),!i.some((t=>t.checked)))if(this.hasButtonGroup){const e=null==(t=i[0].shadowRoot)?void 0:t.querySelector("button");e&&(e.tabIndex=0)}else i[0].tabIndex=0;if(this.hasButtonGroup){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("sd-button-group");t&&(t.disableRole=!0)}}syncRadios(){customElements.get("sd-radio")&&customElements.get("sd-radio-button")?this.syncRadioElements():(customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then((()=>this.syncRadios())),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then((()=>this.syncRadios())))}updateCheckedRadio(){this.getAllRadios().forEach((t=>t.checked=t.value===this.value)),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){const t=this.required&&!this.value,e=""!==this.customValidityMessage;return!t&&!e||(this.formControlController.emitInvalidEvent(),!1)}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout((()=>this.validationInput.hidden=!0),1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=!!this.label||!!t,i=ye`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return ye`<fieldset part="form-control" class="${Ne("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message"><div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${Ne("p-0 leading-normal text-black text-left",!e&&"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend><slot name="tooltip"></slot></div><div part="form-control-input" class="${Ne("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?ye`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${i}</sd-button-group>`:i}</div></fieldset>${this.formControlController.renderInvalidMessage()}`}};va.dependencies={"sd-button-group":na},va.styles=[$e,We.styles,Ft`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label::after{content:' *'}`],ba([Le("slot:not([name])")],va.prototype,"defaultSlot",2),ba([Le("#validation-input")],va.prototype,"validationInput",2),ba([Le("#invalid-message")],va.prototype,"invalidMessage",2),ba([He()],va.prototype,"hasButtonGroup",2),ba([He()],va.prototype,"defaultValue",2),ba([He()],va.prototype,"showInvalidStyle",2),ba([Ue({reflect:!0})],va.prototype,"size",2),ba([Ue({type:Boolean,reflect:!0})],va.prototype,"required",2),ba([Ue({reflect:!0})],va.prototype,"orientation",2),ba([Ue()],va.prototype,"label",2),ba([Ue({type:Boolean,reflect:!0})],va.prototype,"boldLabel",2),ba([Ue()],va.prototype,"name",2),ba([Ue({reflect:!0})],va.prototype,"value",2),ba([Ue({reflect:!0})],va.prototype,"form",2),ba([bi("size",{waitUntilFirstUpdate:!0})],va.prototype,"handleSizeChange",1),ba([bi("showInvalidStyle",{waitUntilFirstUpdate:!0})],va.prototype,"handleInvalidChange",1),ba([bi("value")],va.prototype,"handleValueChange",1),va=ba([Qe("sd-radio-group")],va);const ya=Object.freeze(Object.defineProperty({__proto__:null,get default(){return va}},Symbol.toStringTag,{value:"Module"}));var fa=Object.defineProperty,wa=Object.getOwnPropertyDescriptor,Aa=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?wa(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&&fa(e,i,s),s};let xa=class extends We{constructor(){super(...arguments),this.localize=new S(this),this.orientation="horizontal",this.scrollbars=!1,this.buttons=!1,this.shadows=!1,this.inset=!1,this.step=150,this.canScroll={left:!1,right:!1,up:!1,down:!1},this.isScrollHorizontalEnabled=!1,this.isScrollVerticalEnabled=!1,this.isKeyboardNavigation=!1,this.scrollContainer=null}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver((()=>{this.updateScrollIndicatorVisibility()})),this.updateComplete.then((()=>{this.scrollContainer=this.renderRoot.querySelector(".scroll-container"),this.scrollContainer&&this.resizeObserver.observe(this.scrollContainer)}))}disconnectedCallback(){super.disconnectedCallback(),this.scrollContainer&&this.resizeObserver.unobserve(this.scrollContainer)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.updateScrollIndicatorVisibility())}updateScrollEnabledFlags(){const t=this.orientation;this.isScrollHorizontalEnabled="horizontal"===t||"auto"===t,this.isScrollVerticalEnabled="vertical"===t||"auto"===t}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){const t=this.container;if(!t)return;const e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,i=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,o=this.isScrollVerticalEnabled&&t.scrollTop>0,r=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1,s=this.renderRoot.querySelector('[part="button-start"]'),a=this.renderRoot.querySelector('[part="button-end"]');this.canScroll={left:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:e,right:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:i,up:this.isKeyboardNavigation?this.isScrollVerticalEnabled:o,down:this.isKeyboardNavigation?this.isScrollVerticalEnabled:r};const n=e||o,l=i||r;n&&this.dispatchEvent(new CustomEvent("start")),l&&this.dispatchEvent(new CustomEvent("end")),this.isKeyboardNavigation&&(s&&(s.hidden=!n),s&&n&&!(r||i)&&s.focus(),a&&(a.hidden=!l),a&&l&&!o&&!e&&a.focus())}handleScroll(t,e){var i;const o="left"===t||"up"===t?-this.step:this.step,r="left"===t||"right"===t?"left":"top";this.isKeyboardNavigation="mouse"!==(null==e?void 0:e.pointerType);const s={behavior:"smooth"};s[r]=o,null==(i=this.scrollContainer)||i.scrollBy(s);const a=`button-${t}`;this.dispatchEvent(new CustomEvent(a,{bubbles:!0,composed:!0}))}render(){const t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none";return ye`<div part="base" class="${Ne("scroll-container flex overflow-hidden flex-1","horizontal"===this.orientation&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden","vertical"===this.orientation&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden","auto"===this.orientation&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?ye`${this.isScrollHorizontalEnabled?ye`${this.canScroll.left?ye`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${Ne(t)}" @click="${t=>this.handleScroll("left",t)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.right?ye`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${Ne(t)}" @click="${t=>this.handleScroll("right",t)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?ye`${this.canScroll.up?ye`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${Ne(t)}" @click="${t=>this.handleScroll("up",t)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.down?ye`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${Ne(t)}" @click="${t=>this.handleScroll("down",t)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?ye`${this.isScrollHorizontalEnabled?ye`${this.canScroll.left?ye`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?ye`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?ye`${this.canScroll.up?ye`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?ye`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};xa.styles=[We.styles,Pt(Ni),$e,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}`],Aa([Ue({type:String,reflect:!0})],xa.prototype,"orientation",2),Aa([Ue({type:Boolean,reflect:!0})],xa.prototype,"scrollbars",2),Aa([Ue({type:Boolean,reflect:!0})],xa.prototype,"buttons",2),Aa([Ue({type:Boolean,reflect:!0})],xa.prototype,"shadows",2),Aa([Ue({type:Boolean,reflect:!0})],xa.prototype,"inset",2),Aa([Ue({type:Number,reflect:!0})],xa.prototype,"step",2),Aa([He()],xa.prototype,"canScroll",2),Aa([He()],xa.prototype,"isScrollHorizontalEnabled",2),Aa([He()],xa.prototype,"isScrollVerticalEnabled",2),Aa([He()],xa.prototype,"isKeyboardNavigation",2),xa=Aa([Qe("sd-scrollable")],xa);const ka=Object.freeze(Object.defineProperty({__proto__:null,get default(){return xa}},Symbol.toStringTag,{value:"Module"}));var Ca=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,Ea=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Sa(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&&Ca(e,i,s),s};let Ia=class extends We{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?Eo`a`:Eo`button`;return Bo`<${e} part="base" type="${Do(t?void 0:"button")}" href="${Do(t?this.href:void 0)}" rel="${Do(t&&this.target?"noreferrer noopener":void 0)}" target="${Do(t?this.target:void 0)}" download="${Do(t?this.download:void 0)}" ?disabled="${Do(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${Do(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${Ne("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="${Ne({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};Ia.styles=[We.styles,Ft`:host{display:inline-block}`],Ea([Le("a, button")],Ia.prototype,"tag",2),Ea([Ue({reflect:!0})],Ia.prototype,"size",2),Ea([Ue({type:Boolean,reflect:!0})],Ia.prototype,"selected",2),Ea([Ue({type:Boolean,reflect:!0})],Ia.prototype,"toggleable",2),Ea([Ue({type:Boolean,reflect:!0})],Ia.prototype,"removable",2),Ea([Ue({type:Boolean,reflect:!0})],Ia.prototype,"disabled",2),Ea([Ue()],Ia.prototype,"href",2),Ea([Ue()],Ia.prototype,"target",2),Ea([Ue()],Ia.prototype,"download",2),Ia=Ea([Qe("sd-tag")],Ia);const Ba=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ia}},Symbol.toStringTag,{value:"Module"}));var Ma=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,Oa=(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&&Ma(e,i,s),s};let za=class extends We{constructor(){super(...arguments),this.formControlController=new wo(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new qi(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="
|
108
108
|
base:tag__base,
|
109
109
|
content:tag__content,
|
110
110
|
removable-indicator:tag__removable-indicator,
|