import{v as p,h as l,x as f,F as _,y as d,e as h,H as v,r as b,m as g,q as c,w as m,t as y,B as O}from"./index-TUFJsQwj.js";import{c as w}from"./clsx-09a06a12-BT_IL7Fz.js";import{t as r}from"./i18n-3dd5729d-B7Hl56hm.js";import{n as k}from"./dev.utils-52f8c2e9-DbX55uYj.js";import{t as x}from"./events-29e84d75-BhxFwhXP.js";import{g as I}from"./controller-c87b8bd9-CH6gReJY.js";import{I as S}from"./InternalUnderlinedBadgeText-883b4567-fWskvoND.js";import{I as V}from"./controller-icon-b3eb5a58-CWgi9-is.js";import{f as C,b as A}from"./controller-06c08e87-CGEqEA6M.js";import"./associated.controller-d302adf7-AxhsN6gf.js";import"./access-and-short-key-914780a7-C37DKB1F.js";import"./hide-label-0d754c8e-CMXznv5e.js";import"./label-7d1ce375-CT1s1cqK.js";import"./tooltip-align-6964dd71-BXzKXa0P.js";import"./align-f3101425-R_Wp7ep4.js";import"./icons-adcda9b0-CHuu4tyu.js";/*!
 * KoliBri - The accessible HTML-Standard
 */class K extends V{constructor(t,n,i){super(t,n,i),this.keyOptionMap=new Map,this.afterPatchOptions=(s,o,a,u)=>{u==="_value"&&this.setFormAssociatedValue(s)},this.beforePatchOptions=(s,o)=>{const a=o.has("_options")?o.get("_options"):this.component.state._options;Array.isArray(a)&&a.length>0&&(this.keyOptionMap.clear(),C(this.keyOptionMap,a))},this.component=t}validateOptions(t){A(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateRequired(t){c(this.component,"_required",t)}validateValue(t){m(this.component,"_value",n=>n!==void 0,new Set(["StencilUnknown"]),t)}validatePlaceholder(t){y(this.component,"_placeholder",t)}validateHideClearButton(t){c(this.component,"_hideClearButton",t)}validateRows(t){O(this.component,"_rows",t)}componentWillLoad(){super.componentWillLoad(),this.validateOptions(this.component._options),this.validateRequired(this.component._required),this.validateValue(this.component._value),this.validatePlaceholder(this.component._placeholder),this.validateHideClearButton(this.component._hideClearButton),this.validateRows(this.component._rows)}}const E=`/*
 * This file contains all rules for accessibility.
 */
@layer kol-a11y {
  :host {
    /*
     * Minimum size of interactive elements.
     */
    --a11y-min-size: calc(44rem / var(--kolibri-root-font-size, 16));
    color: black;
    /*
     * No element should be used without a background and font color whose contrast ratio has
     * not been checked. By initially setting the background color to white and the font color
     * to black, the contrast ratio is ensured and explicit adjustment is forced.
     */
    background-color: white;
    /*
     * Verdana is an accessible font that can be used without requiring additional loading time.
     */
    font-family: Verdana;
    /*
     * Letter spacing is required for all texts.
     */
    letter-spacing: inherit;
    /*
     * Word spacing is required for all texts.
     */
    word-spacing: inherit;
  }
  * {
    /*
     * This rule enables the word dividing for all texts. That is important for high zoom levels.
     */
    hyphens: auto;
    /*
     * This rule enables the word dividing for all texts. That is important for high zoom levels.
     */
    word-break: break-word;
  }
  /*
   * All interactive elements should have a minimum size of rem(44).
   */
  /* input:not([type='checkbox'], [type='radio'], [type='range']), */
  /* option, */
  /* select, */
  /* textarea, */
  button,
  .kol-input .input {
    min-width: var(--a11y-min-size);
    min-height: var(--a11y-min-size);
  }
  /*
   * Some interactive elements should not inherit the font-family and font-size.
   */
  a,
  button,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  input,
  option,
  select,
  textarea {
    /*
     * All elements should inherit the font family from his parent element.
     */
    font-family: inherit;
    /*
     * All elements should inherit the font size from his parent element.
     */
    font-size: inherit;
    /*
     * Letter spacing is required for all texts.
     */
    letter-spacing: inherit;
    /*
     * Word spacing is required for all texts.
     */
    word-spacing: inherit;
  }
  /**
  * Sometimes we need the semantic element for accessibility reasons,
  * but we don't want to show it.
  *
  * - https://www.a11yproject.com/posts/how-to-hide-content/
  */
  .visually-hidden {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }
}
@layer kol-global {
  /*
   * Dieses CSS stellt sicher, dass der Standard-Style
   * von A und Button resettet werden.
   */
  :is(a, button) {
    background-color: transparent;
    width: 100%; /* 100% needed for custom width from outside */
    margin: 0;
    padding: 0;
    border: none;
  }
  /*
   * Ensure elements with hidden attribute to be actually not visible
   * @see https://meowni.ca/hidden.is.a.lie.html
   */
  [hidden] {
    display: none !important;
  }
}
@layer kol-global {
  :host {
    /*
     * The max-width is needed to prevent the table from overflowing the
     * parent node, if the table is wider than the parent node.
     */
    max-width: 100%;
    font-size: calc(16rem / var(--kolibri-root-font-size, 16));
  }
  * {
    /*
     * We prefer to box-sizing: border-box for all elements.
     */
    box-sizing: border-box;
  }
  /* KolSpan is a layout component with icons in all directions and a label text in the middle. */
  .kol-span-wc {
    display: grid;
    place-items: center;
  }
  /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */
  .kol-span-wc > span {
    display: flex;
    place-items: center;
  }
  a,
  button {
    cursor: pointer;
  }
  /* This is the text label. */
  .hide-label > .kol-span-wc > span > span {
    display: none;
  }
  /* Reset browser agent style. */
  button:disabled {
    color: unset;
  }
  .disabled label,
  .disabled:focus-within label,
  [aria-disabled=true],
  [aria-disabled=true]:focus,
  [disabled],
  [disabled]:focus {
    opacity: 0.5;
    outline: none;
    cursor: not-allowed;
  }
  [aria-disabled=true]:focus .kol-span-wc,
  [disabled]:focus .kol-span-wc {
    outline: none !important;
  }
  .badge-text-hint {
    color: black;
    background-color: lightgray;
  }
}
@layer kol-component {
  :host {
    display: block;
  }
}
@layer kol-component {
  .kol-tooltip-wc {
    display: contents;
    contain: layout;
  }
  .kol-tooltip-wc .tooltip-floating {
    display: none;
    position: fixed;
    /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */
    top: 0;
    left: 0;
    /* Can be used to specify the tooltip-width from the outside. Unset by default.  */
    width: var(--kol-tooltip-width);
    max-width: 90vw;
    max-height: 90vh;
    visibility: hidden;
    animation-duration: 0.25s;
    animation-iteration-count: 1;
    animation-name: fadeInOpacity;
    animation-timing-function: ease-in;
  }
  /* Shared between content and arrow */
  .kol-tooltip-wc .tooltip-area {
    color: #000;
    background-color: #fff;
  }
  .kol-tooltip-wc .tooltip-arrow {
    transform: rotate(45deg);
    position: absolute;
    z-index: 999;
    width: calc(10rem / var(--kolibri-root-font-size, 16));
    height: calc(10rem / var(--kolibri-root-font-size, 16));
  }
  .kol-tooltip-wc .tooltip-content {
    position: relative;
    z-index: 1000;
  }
  @keyframes fadeInOpacity {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
}
@layer kol-component {
  .required label > span::after,
  .required legend > span::after {
    content: "*";
  }
}
@layer kol-component {
  input,
  textarea {
    cursor: text;
  }
  input[type=checkbox],
  input[type=color],
  input[type=file],
  input[type=radio],
  input[type=range],
  label,
  option,
  select {
    cursor: pointer;
  }
  /* input[type='checkbox'], */
  /* input[type='radio'], */
  /* input[type='range'], */
  input[type=color],
  input[type=date],
  input[type=datetime-local],
  input[type=email],
  input[type=file],
  input[type=month],
  input[type=number],
  input[type=password],
  input[type=search],
  input[type=tel],
  input[type=text],
  input[type=time],
  input[type=url],
  input[type=week],
  option,
  select,
  textarea {
    background-color: transparent;
    width: 100%;
  }
  /* needed hack for vertical alignment */
  input[type=file] {
    padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em;
  }
  /* needed hack for vertical alignment */
  select[multiple] option {
    padding: calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em;
  }
}
@layer kol-component {
  .kol-alert-wc {
    display: grid;
  }
  .kol-alert-wc .heading {
    display: flex;
    place-items: center;
  }
  .kol-alert-wc .heading > div {
    flex-grow: 1;
  }
  .close {
    /* Visible with forced colors */
    outline: transparent solid calc(1rem / var(--kolibri-root-font-size, 16));
  }
}
@layer kol-component {
  .kol-input {
    display: grid;
  }
  .kol-input .input-slot {
    flex-grow: 1;
  }
  input:focus,
  option:focus,
  select:focus,
  textarea:focus {
    outline: 0;
  }
  .input {
    background-color: white;
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  button:not([role=link]) {
    min-height: auto;
  }
  .input > .kol-icon {
    display: grid;
    place-items: center;
  }
  .kol-input.required .input-tooltip .span-label::after {
    content: "*";
  }
}
@layer kol-component {
  .single-select {
    position: relative;
  }
  .single-select.disabled, .single-select.disabled * {
    cursor: not-allowed !important;
  }
  .single-select__group {
    display: inline-flex;
    align-items: center;
  }
  .single-select__input {
    flex-grow: 1;
  }
  .single-select__button {
    width: var(--a11y-min-size);
    height: auto;
  }
  .single-select__listbox {
    background-color: white;
    display: block;
    position: absolute;
    z-index: 2;
    max-height: calc((40rem / var(--kolibri-root-font-size, 16)) * var(--visible-options, 5) + (2rem / var(--kolibri-root-font-size, 16))) !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    list-style-type: none;
  }
  .single-select__item.highlighted {
    background-color: #f0f0f0;
  }
  .single-select__listbox--cursor-hidden .single-select__item {
    cursor: none !important;
  }
  .single-select__no-results-message {
    display: flex;
    min-height: calc(50rem / var(--kolibri-root-font-size, 16));
    align-items: center;
    justify-content: center;
    cursor: default;
  }
}`,B=E,z=class{async getValue(){return this._value}async kolFocus(){var e;(e=this.refInput)===null||e===void 0||e.focus()}onBlur(){var e,t,n;const i=(e=this.state._options)===null||e===void 0?void 0:e.find(s=>{var o,a;return((o=s.label)===null||o===void 0?void 0:o.toLowerCase())===((a=this._inputValue)===null||a===void 0?void 0:a.toLowerCase())});i?this.selectOption(i):(this._inputValue=(n=(t=this.state._options)===null||t===void 0?void 0:t.find(s=>s.value===this._value))===null||n===void 0?void 0:n.label,this._filteredOptions=[...this.state._options]),this._isOpen=!1,this._hasOpened=!1}createEventWithTarget(e,t){const n=new CustomEvent(e,{bubbles:!0,detail:t});return this.refInput&&(Object.defineProperty(n,"target",{value:this.refInput}),Object.defineProperty(n,"currentTarget",{value:this.refInput})),n}clearSelection(){if(!this.state._disabled){this._focusedOptionIndex=-1,this._value=null,this._inputValue="",this._filteredOptions=[...this.state._options];const t=this.createEventWithTarget("input",{name:this.state._name,value:null}),n=this.createEventWithTarget("change",{name:this.state._name,value:null});this.controller.onFacade.onInput(t,!0,{value:null}),this.controller.onFacade.onChange(n,{value:null})}}selectOption(e){var t,n;if(e.value===this._value){this._inputValue=e.label,this._filteredOptions=[...this.state._options];return}this._value=e.value,this._inputValue=e.label;const i=this.createEventWithTarget("input",{name:(t=this.state._name)!==null&&t!==void 0?t:"",value:e.value}),s=this.createEventWithTarget("change",{name:(n=this.state._name)!==null&&n!==void 0?n:"",value:e.value});this.controller.onFacade.onInput(i,!1,e.value),this.controller.onFacade.onChange(s,e.value),this._filteredOptions=[...this.state._options],this.controller.setFormAssociatedValue(this._value)}onInput(e){const t=e.target;this._inputValue=t.value,this._isOpen=!0,this.setFilteredOptionsByQuery(t.value),this._focusedOptionIndex=-1}handleKeyDownDropdown(e){e.key.length===1&&/[a-z0-9]/i.test(e.key)&&(e.preventDefault(),this._isOpen=!0,this.focusSuggestionStartingWith(e.key))}setFilteredOptionsByQuery(e){e?.trim()===""?this._filteredOptions=[...this.state._options]:Array.isArray(this.state._options)&&this.state._options.length>0&&e.length>0&&(this._filteredOptions=this.state._options.filter(t=>{var n,i;return(i=(n=t.label)===null||n===void 0?void 0:n.toLowerCase())===null||i===void 0?void 0:i.includes(e?.toLowerCase())}))}moveFocus(e){if(!this._filteredOptions)return;let t=this._focusedOptionIndex+e;t>=this._filteredOptions.length&&(t=0),t<0&&(t=this._filteredOptions.length-1),this._focusedOptionIndex=t,this.focusOption(this._focusedOptionIndex)}focusOption(e){if(this.refOptions){const t=this.refOptions[e];t?.focus()}}focusSuggestionStartingWith(e){const t=e.toLowerCase(),n=Array.isArray(this._filteredOptions)&&this._filteredOptions.findIndex(i=>i.label.toLowerCase().startsWith(t));typeof n=="number"&&(this._focusedOptionIndex=n,this.focusOption(n))}render(){var e;const t=p(this.state._label),{ariaDescribedBy:n}=I(this.state);return l(v,{key:"282afbddf18c466d9ff57a69eeee01f2347b0edd",class:"kol-single-select"},l("div",{key:"ed4d8589974c5364a624d79c55bbf9f82e991895",class:`single-select ${this.state._disabled===!0?"disabled":""} `},l(f,{key:"a4439114f29704df1e021349780db796a5d91f84",_accessKey:this.state._accessKey,_alert:this.showAsAlert(),_disabled:this.state._disabled,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_msg:this.state._msg,_required:this.state._required,_shortKey:this.state._shortKey,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,role:"presentation"},l("span",{key:"db7f763555dad0c9984863153fb3f5b04b07fa0c",slot:"label"},t?l("slot",{name:"expert"}):typeof this.state._accessKey=="string"||typeof this.state._shortKey=="string"?l(_,null,l(S,{badgeText:d(this.state._accessKey||this.state._shortKey),label:this.state._label})," ",l("kbd",{class:"badge-text-hint","aria-hidden":"true"},d(this.state._accessKey||this.state._shortKey))):l("span",null,this.state._label)),l("div",{key:"f0fe71f1beafe9a7a11058d0df257e650f378cc7",slot:"input"},l("div",{key:"32e017a76ab2d68dde52f361fb250757010f83b0",class:"single-select__group"},l("input",Object.assign({key:"ec6fe2ea1d86abd79af13f071399f93b2c3d116f",ref:this.catchRef,class:"single-select__input","data-testid":"single-select-input",type:"text","aria-autocomplete":"both","aria-controls":"listbox",value:this._inputValue,accessKey:this.state._accessKey,"aria-keyshortcuts":this.state._shortKey,"aria-describedby":n.length>0?n.join(" "):void 0,"aria-label":this.state._hideLabel&&typeof this.state._label=="string"?this.state._label:void 0,"aria-activedescendant":this._isOpen&&this._focusedOptionIndex>=0?`option-${this._focusedOptionIndex}`:void 0,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",disabled:this.state._disabled,name:this.state._name,required:this.state._required},this.controller.onFacade,{onInput:this.onInput.bind(this),onChange:this.onChange.bind(this),onClick:this.toggleListbox.bind(this),onFocus:i=>{this.controller.onFacade.onFocus(i),this.inputHasFocus=!0},onBlur:i=>{this.controller.onFacade.onBlur(i),this.inputHasFocus=!1},placeholder:this.state._placeholder})),this._inputValue&&!this.state._hideClearButton&&l(h,{key:"e1732b2b161044cb3deaa5b6d0dc9037697b2bd3",_icons:"codicon codicon-close",_label:r("kol-delete-selection"),onClick:()=>{var i;this.clearSelection(),(i=this.refInput)===null||i===void 0||i.focus()},class:"single-select__delete"}),l("button",{key:"0bec77ab0fd58230427710b5f2700c555e0ab433",tabindex:"-1",class:"single-select__button",onClick:this.toggleListbox.bind(this),disabled:this.state._disabled},l(h,{key:"714b277576bd52bc07051fc0073450752cd2f994",_icons:"codicon codicon-triangle-down",_label:r("kol-dropdown")}))),this._isOpen&&this.state._disabled!==!0&&l("ul",{key:"7738666d477873fa8127e9010933164c80cd6987",role:"listbox",class:w("single-select__listbox",this.blockSuggestionMouseOver&&"single-select__listbox--cursor-hidden"),style:{"--visible-options":`${(e=this._rows)!==null&&e!==void 0?e:5}`},onKeyDown:this.handleKeyDownDropdown.bind(this)},Array.isArray(this._filteredOptions)&&this._filteredOptions.length>0?this._filteredOptions.map((i,s)=>l("li",{id:`option-${s}`,key:`-${s}`,ref:o=>{o&&(this.refOptions[s]=o)},tabIndex:-1,role:"option","aria-selected":this._value===i.value?"true":void 0,onClick:o=>{var a;this.selectOption(i),(a=this.refInput)===null||a===void 0||a.focus(),this.toggleListbox(o),this._isOpen=!1,this._hasOpened=!1},onMouseOver:()=>{this.blockSuggestionMouseOver||(this._focusedOptionIndex=s,this.focusOption(s))},onFocus:()=>{this._focusedOptionIndex=s,this.focusOption(s)},class:"single-select__item",onKeyDown:o=>{var a;(o.key==="Enter"||o.key==="NumpadEnter")&&(this.selectOption(i),(a=this.refInput)===null||a===void 0||a.focus(),this.toggleListbox(o),o.preventDefault())}},l("input",{class:"visually-hidden",type:"radio",name:"options",id:`option-radio-${s}`,value:i.value,checked:this._value===i.value||s===this._focusedOptionIndex}),l("label",{htmlFor:`option-radio-${s}`,class:"radio-label"},i.label))):l("li",{class:"single-select__no-results-message"},r("kol-no-results-message")," "))))))}handleFocusOut(){setTimeout(()=>{var e;!((e=this.host)===null||e===void 0)&&e.contains(document.activeElement)||this.onBlur()},0)}handleWindowBlur(){this.onBlur()}handleKeyDown(e){var t,n;const i=(s,o)=>{var a;e.preventDefault(),s!==void 0&&(this._isOpen=s,s||(a=this.refInput)===null||a===void 0||a.focus()),o?.()};switch(e.key){case"Down":case"ArrowDown":{this.blockSuggestionMouseOver=!0,i(!0,()=>this.moveFocus(1));break}case"Up":case"ArrowUp":{this.blockSuggestionMouseOver=!0,i(!0,()=>this.moveFocus(-1));break}case"Tab":this._isOpen&&(this._isOpen=!this._isOpen,(t=this.refInput)===null||t===void 0||t.focus());break;case"Esc":case"Escape":{this._hasOpened=!1,this._isOpen=!1,i(!1);break}case" ":{this._isOpen?Array.isArray(this._filteredOptions)&&this._filteredOptions.length>0&&(this.selectOption(this._filteredOptions[this._focusedOptionIndex]),(n=this.refInput)===null||n===void 0||n.focus(),i(!1)):this.toggleListbox(e);break}case"NumpadEnter":case"Enter":{this.toggleListbox(e),this._hasOpened=!1,this._isOpen=!1;break}case"Home":{this.blockSuggestionMouseOver=!0,i(void 0,()=>{this._isOpen&&(this._focusedOptionIndex=0,this.focusOption(this._focusedOptionIndex))});break}case"End":{this.blockSuggestionMouseOver=!0,i(void 0,()=>{this._isOpen&&(this._focusedOptionIndex=this._filteredOptions?this._filteredOptions.length-1:0,this.focusOption(this._focusedOptionIndex))});break}case"PageUp":{this.blockSuggestionMouseOver=!0,i(void 0,()=>this._isOpen&&this.moveFocus(-10));break}case"PageDown":{this.blockSuggestionMouseOver=!0,i(void 0,()=>this._isOpen&&this.moveFocus(10));break}}}constructor(e){b(this,e),this.refOptions=[],this.catchRef=t=>{this.refInput=t},this.toggleListbox=t=>{var n;if(t?.preventDefault(),!this.state._disabled&&!this._hasOpened){this._isOpen=!0,this._hasOpened=!0,(n=this.refInput)===null||n===void 0||n.focus();const i=Array.isArray(this._filteredOptions)?this._filteredOptions.findIndex(o=>o.label===this._inputValue):-1,s=this.refOptions[i];s?.scrollIntoView({block:"nearest"}),this.focusOption(this._focusedOptionIndex)}},this._focusedOptionIndex=-1,this._isOpen=!1,this._hasOpened=!1,this._filteredOptions=[],this._inputValue="",this.blockSuggestionMouseOver=!1,this._accessKey=void 0,this._placeholder=void 0,this._alert=void 0,this._disabled=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._msg=void 0,this._name=void 0,this._on=void 0,this._options=void 0,this._required=!1,this._shortKey=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this._hideClearButton=!1,this._rows=void 0,this.state={_hideError:!1,_id:`id-${k()}`,_label:"",_options:[],_hideClearButton:!1},this.inputHasFocus=!1,this.controller=new K(this,"single-select",this.host)}showAsAlert(){return this.state._alert===void 0?!!this.state._touched&&!this.inputHasFocus:this.state._alert}validatePlaceholder(e){this.controller.validatePlaceholder(e)}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAlert(e){this.controller.validateAlert(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideError(e){this.controller.validateHideError(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateOptions(e){this.controller.validateOptions(e),this._filteredOptions=e,this.updateInputValue(this._value)}validateRequired(e){this.controller.validateRequired(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTabIndex(e){this.controller.validateTabIndex(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e),this.oldValue=e,this.updateInputValue(e)}validateHideClearButton(e){this.controller.validateHideClearButton(e)}validateRows(e){this.controller.validateRows(e)}handleMouseEvent(){this.blockSuggestionMouseOver=!1}updateInputValue(e){if(Array.isArray(this._options)){const t=this._options.find(n=>n.value===e);this._inputValue=t?String(t.label):""}}componentWillLoad(){this.refOptions=[],this._touched=this._touched===!0,this.controller.componentWillLoad(),this.oldValue=this._value,this._filteredOptions=this.state._options,this.updateInputValue(this._value)}onChange(e){var t,n,i,s;this.oldValue!==((t=this.refInput)===null||t===void 0?void 0:t.value)&&(this.oldValue=(n=this.refInput)===null||n===void 0?void 0:n.value),x("change",this.host,this._value),typeof((i=this.state._on)===null||i===void 0?void 0:i.onChange)=="function"&&!this._isOpen&&this.state._on.onChange(e,this._value&&this.oldValue!==((s=this.refInput)===null||s===void 0?void 0:s.value))}static get delegatesFocus(){return!0}get host(){return g(this)}static get watchers(){return{_placeholder:["validatePlaceholder"],_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_required:["validateRequired"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"],"_hideClearButton ":["validateHideClearButton"],_rows:["validateRows"]}}};z.style={default:B};export{z as kol_single_select};
//# sourceMappingURL=kol-single-select.entry-B0cz1xHr.js.map
