import{d as i,b as n,w as o,g as f,o as s,a as u,E as c,Y as d,t as m,Z as b,$ as g,h,f as k,_ as x}from"./JQJBiNWj.js";import y from"./Dm5UwSfy.js";import"./D42GNhrT.js";import B from"./Dc_YXEFz.js";const C=["for"],F=i({__name:"Field",props:{label:{},name:{},for:{}},setup(l){const e=l;return(t,N)=>{const p=x,_=y;return s(),n(f(B),{name:t.name},{default:o(a=>{var r;return[e.label?(s(),u("label",{key:0,class:"p-label",for:e.for||e.name},m(e.label),9,C)):c("",!0),d(t.$slots,"default",b(g(a))),(r=a.error)!=null&&r.message?(s(),n(_,{key:1,class:"flex gap-1"},{icon:o(()=>[k(p,{name:"material-symbols:cancel",shape:"circle"})]),default:o(()=>[h(" "+m(a.error.message),1)]),_:2},1024)):c("",!0)]}),_:3},8,["name"])}}}),S=Object.assign(F,{__name:"UiFormField"});export{S as _};
