import{t as e,p as t,H as s,c as a,h as n}from"./p-CAus4tQt.js";import{r as c}from"./p-DKrliuRO.js";const o=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.contentChange=a(this,"contentChange",7)}content;maxLength=2e3;placeholder="พิมพ์ข้อความที่นี่";contentChange;handleInput=e=>{this.content&&this.contentChange.emit({...this.content,text:e.target.value})};render(){const e=this.content,t=e?e.text:"",s=c.get("theme");return n("div",{key:"acb5b1a31d6f65502c7cc3b2fa78b74f9e1c1a3d",class:"flex justify-end","data-theme":s},n("div",{key:"156b2dcc2ff51d29f2eb5b820de25f9cb388bc71",class:"relative w-full max-w-md"},n("textarea",{key:"762a8aa2eb73428b32e7d795db6279bf6fb23c70",value:t,onInput:this.handleInput,placeholder:this.placeholder,class:"w-full p-4 pr-16 pb-8 border-[1.5px] border-primary rounded-xl focus:outline-none ring-primary text-sm bg-background",maxLength:this.maxLength,rows:3}),n("div",{key:"896f69ad39213a0e143475586283fecf994051e8",class:"absolute bottom-3 right-4 text-sm text-theme-gray"},t.length,"/",this.maxLength)))}},[512,"quick-message-text-content",{content:[16],maxLength:[2,"max-length"],placeholder:[1]}]);function r(){"undefined"!=typeof customElements&&["quick-message-text-content"].forEach((t=>{"quick-message-text-content"===t&&(customElements.get(e(t))||customElements.define(e(t),o))}))}r();export{o as Q,r as d}