import{q as p,r as c,y as s,z as o,S as h,U as a,I as i,L as m,a4 as v,J as g,K as C,D as r}from"./EchoChannel-CIXLa9Py.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";const _={class:"flex flex-col"},b={class:"uppercase text-qorus-grey-dark tracking-widest text-xs mb-2 flex group relative"},w={key:0,class:"no-underline",title:"required"},x={key:1,class:"pl-2 normal-case text-sm font-light block"},y={class:"hidden group-hover:block bg-white p-4 absolute top-4 left-4 right-4 max-w-sm border-qorus-grey-light border z-10"},q=["innerHTML"],k={class:"relative"},L=["placeholder"],M={key:0,class:"text-qorus-grey-mid text-sm absolute bottom-2 right-2"},B={class:"flex flex-col gap-2 mt-2"},T={class:"text-qorus-red"},V=p({__name:"FormText",props:{focus:{type:Boolean},label:{},value:{},required:{type:Boolean},placeholder:{},errors:{},type:{},wordCount:{},tooltip:{}},emits:["change"],setup(d,{emit:F}){const n=c({hidePassword:!0,value:d.value}),u={mounted:(e,t)=>{t.value&&e.focus()}};return(e,t)=>(r(),s("div",_,[o("label",b,[h(a(e.label)+" ",1),e.required?(r(),s("abbr",w,"*")):i("",!0),e.tooltip?(r(),s("span",x,[t[2]||(t[2]=o("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M6.5015 13C2.91684 13 0 10.0862 0 6.5015C0 2.91684 2.91684 0 6.5015 0C10.0862 0 13.003 2.91684 13.003 6.5015C13.003 10.0862 10.0862 13.003 6.5015 13.003V13ZM6.5015 1.19788C3.57867 1.19788 1.19788 3.57567 1.19788 6.5015C1.19788 9.42732 3.57567 11.8051 6.5015 11.8051C9.42732 11.8051 11.8051 9.42732 11.8051 6.5015C11.8051 3.57567 9.42433 1.19788 6.5015 1.19788Z"}),o("path",{d:"M6.67217 8.01087H5.6929L5.60006 6.69021C6.3158 6.30689 7.23817 5.86667 7.23817 5.15992C7.23817 4.52504 6.72308 4.31841 6.14211 4.31841C5.60006 4.31841 4.98615 4.51606 4.68668 4.70173L4.47705 3.68054C4.99513 3.39005 5.61803 3.22534 6.27986 3.22534C7.44181 3.22534 8.52589 3.74342 8.52589 5.03714C8.52589 5.98346 7.89999 6.54048 6.77998 7.11546L6.67217 8.00788V8.01087ZM6.18703 8.3942C6.57933 8.3942 6.88479 8.69966 6.88479 9.08298C6.88479 9.4663 6.57933 9.77176 6.18703 9.77176C5.79472 9.77176 5.49525 9.47229 5.49525 9.08298C5.49525 8.69367 5.79472 8.3942 6.18703 8.3942Z"})],-1)),o("span",y,[o("span",{innerHTML:e.tooltip,class:"text-qorus-grey-dark"},null,8,q)])])):i("",!0)]),o("div",k,[m(o("textarea",{rows:"7",placeholder:e.placeholder,class:"resize-none w-full border border-qorus-grey-light border-solid py-2 px-4 outline-2 focus:outline focus:outline-qorus-purple",onInput:t[0]||(t[0]=l=>e.$emit("change",n.value)),"onUpdate:modelValue":t[1]||(t[1]=l=>n.value=l)},null,40,L),[[u,e.focus],[v,n.value]]),e.wordCount?(r(),s("div",M,a(e.value.length||0)+" / "+a(e.wordCount),1)):i("",!0)]),o("div",B,[(r(!0),s(g,null,C(e.errors,l=>(r(),s("div",T,a(l),1))),256))])]))}}),H=f(V,[["__scopeId","data-v-e1583281"]]);export{H as default};