import{r as t,c as s,h as i,H as e,g as n}from"./p-2b0a6102.js";import{a}from"./p-8df57f83.js";import"./p-14616bce.js";const h=":where(bs-input-search){display:inline-block;width:100%}bs-input-search :where(bs-input-addon) :where(bs-icon-search){padding-left:0.75rem}bs-input-search :where(bs-input-addon) :where(bs-icon-close){padding-right:0.75rem}bs-input-search :where(bs-input-addon) :where(button){align-items:center;background-color:transparent;cursor:pointer;display:flex;height:100%}";const r=class{constructor(i){t(this,i);this.clear=s(this,"clear",7);this.attrs={};this.disabled=false;this.passAttrs="";this.placeholder="Search Items";this.hintId=undefined;this.inputId=undefined;this.value=""}componentWillLoad(){var t,s;this.attrs=a(this.hostEl,["autocomplete","maxlength","minlength","name",...this.passAttrs.split(",")]);if(!this.hintId){const i=(s=(t=this.hostEl.attributes.getNamedItem("aria-label"))===null||t===void 0?void 0:t.value)!==null&&s!==void 0?s:"Search Items";this.attrs["aria-label"]=i}}render(){const t=`aria-label,${this.passAttrs}`;return i(e,null,i("bs-input-addon",{disabled:this.disabled},i("bs-icon-search",null),i("bs-input",Object.assign({"data-autowidth":true,disabled:this.disabled,"hint-id":this.hintId,"input-id":this.inputId,"pass-attrs":t,placeholder:this.placeholder,value:this.value},this.attrs)),!this.disabled&&i("button",{title:"Clear",type:"button",onClick:()=>this.clear.emit()},i("bs-icon-close",{size:"sm"}))))}get hostEl(){return n(this)}};r.style=h;export{r as bs_input_search};
//# sourceMappingURL=p-76a64e36.entry.js.map