import{d as c,n as m,w as o,b as s,o as f,l as b,f as g,e as V,L as h,h as y,Q as _}from"./Dp5WhfgA.js";const v=c({__name:"CInputText",props:{fieldName:{type:String,required:!0},label:{type:String,default:""},placeholder:{type:String,default:""},modelValue:{type:String,default:""},hideDetails:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1},customClass:{type:String,default:""},bgColor:{type:String,default:"white"}},emits:{"update:modelValue":null},setup(d,{emit:i}){const e=d,l=m(""),n=i;return o(()=>{l.value=e.modelValue}),o(()=>{n("update:modelValue",l.value)}),(x,t)=>{const r=s("VTextField"),u=s("ValidationField");return f(),b(u,{modelValue:y(l),"onUpdate:modelValue":t[0]||(t[0]=a=>_(l)?l.value=a:null),name:e.fieldName??"",type:"text"},{default:g(({field:a,errors:p})=>[V(r,h({active:e.label!=="",disabled:e.disabled},a,{"error-messages":p,density:"compact","bg-color":e.bgColor,variant:"outlined",label:e.label,placeholder:e.placeholder,"hide-details":e.hideDetails,type:"text",class:e.customClass}),null,16,["active","disabled","error-messages","bg-color","label","placeholder","hide-details","class"])]),_:1},8,["modelValue","name"])}}});export{v as _};
