import{r as e,h as t,H as a,g as r}from"./p-2b0a6102.js";import{a as s}from"./p-8df57f83.js";import"./p-14616bce.js";const i=':where(bs-textarea){display:block;width:100%}bs-textarea{line-height:0;}bs-textarea :where([data-required]){color:var(--bs-ink-red);font-weight:var(--bs-font-bold, 600)}bs-textarea :where([data-disabled],[data-disabled] [data-required]){color:var(--bs-gray-400)}bs-textarea :where(.box) :is(input,textarea,select):where(:focus-visible){--offset-color:var(--bs-bg-medium)}bs-textarea :where(.box[data-invert]) :is(input,textarea,select):where(:focus-visible){--offset-color:var(--bs-bg-invert-base)}bs-textarea :is(input,select,textarea):where([data-error]){--input-border:var(--bs-ink-red)}bs-textarea :where(fieldset){border:none;margin-left:0;margin-right:0;padding:0}bs-textarea :where(fieldset legend){margin-bottom:0.25rem;padding:0}bs-textarea :where(label+input,label>input):where(:not([type="checkbox"],[type="radio"])),bs-textarea :where(label+textarea,label>textarea),bs-textarea :where(label+select,label>select){margin-top:0.25rem}bs-textarea input:where(:not([type="checkbox"],[type="radio"],[type="file"],[type="range"])),bs-textarea textarea,bs-textarea select{--input-bg:var(--bs-bg-base);--input-border:var(--bs-violet-medium);appearance:none;background-color:var(--input-bg);border-color:var(--input-border);border-radius:0.25rem;border-style:solid;border-width:var(--input-border-width, 1px);caret-color:var(--bs-blue-base);color:var(--bs-ink-base);font-size:var(--bs-text-base);font-weight:400;height:2.5rem;line-height:var(--bs-leading-base);min-height:2.5rem;padding-inline:0.75rem;width:100%}bs-textarea input:where([type="text"],[type="email"],[type="url"]),bs-textarea select{text-overflow:ellipsis}bs-textarea textarea{height:auto;padding-block:0.5rem;resize:vertical}bs-textarea :is(input,textarea,select)::placeholder{color:var(--bs-violet-lightest)}bs-textarea :is(input,textarea,select):where(:focus-visible)::placeholder{opacity:0}bs-textarea :is(input:where(:not([type="checkbox"],[type="radio"])),textarea,select):where(:focus-visible){--input-border:var(--bs-blue-base);outline-width:0px}bs-textarea :is(input:where(:not([type="checkbox"],[type="radio"])),textarea,select):where(:disabled){--input-border:var(--bs-ink-disabled);--input-bg:var(--bs-bg-disabled);color:var(--bs-ink-disabled)}bs-textarea :is(input,select,textarea):where([data-error]){--input-border:var(--bs-ink-red)}bs-textarea :has(>textarea:only-child){display:block;line-height:0}bs-textarea :where(select:disabled){opacity:1}bs-textarea :is(input,textarea,select):disabled::placeholder,bs-textarea :is(input,textarea,select)[disabled]::placeholder{color:var(--bs-ink-disabled);opacity:1}bs-textarea select{background-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 16 16\'%3E%3Cpath fill=\'%230A0B19\' d=\'M8.048 13.375a.745.745 0 0 1-.526-.217L0 5.686l1.053-1.061 6.995 6.95 6.897-6.85 1.053 1.06-7.423 7.373a.745.745 0 0 1-.527.217Z\'/%3E%3C/svg%3E");background-position:right 0.75rem center;background-repeat:no-repeat;background-size:1em 1em;padding-right:var(--bs-space-9)}bs-textarea .dark select{background-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 16 16\'%3E%3Cpath fill=\'%23ffffff\' d=\'M8.048 13.375a.745.745 0 0 1-.526-.217L0 5.686l1.053-1.061 6.995 6.95 6.897-6.85 1.053 1.06-7.423 7.373a.745.745 0 0 1-.527.217Z\'/%3E%3C/svg%3E")}bs-textarea .dark select:disabled{background-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 16 16\'%3E%3Cpath fill=\'%23555775\' d=\'M8.048 13.375a.745.745 0 0 1-.526-.217L0 5.686l1.053-1.061 6.995 6.95 6.897-6.85 1.053 1.06-7.423 7.373a.745.745 0 0 1-.527.217Z\'/%3E%3C/svg%3E")}bs-label+bs-textarea{margin-top:0.25rem}';const l=class{constructor(t){e(this,t);this.attrs={};this.disabled=false;this.error=undefined;this.inputId=undefined;this.passAttrs="";this.placeholder=undefined;this.required=undefined;this.rows=6;this.value=undefined;this.hintId=undefined}get aria(){return{[this.error?"aria-errormessage":"aria-describedby"]:this.hintId}}componentWillLoad(){this.attrs=s(this.hostEl,["autocomplete","cols","maxlength","minlength","name",...this.passAttrs.split(",")])}render(){return t(a,null,t("textarea",Object.assign({id:this.inputId,disabled:this.disabled,placeholder:this.placeholder,required:this.required,"data-error":this.error,value:this.value,rows:this.rows},Object.assign(Object.assign({},this.attrs),this.aria))))}get hostEl(){return r(this)}};l.style=i;export{l as bs_textarea};
//# sourceMappingURL=p-40bbbe4c.entry.js.map