import{e as o,c,o as s,X as r,I as d,n as l,W as i,m as f,w as u,bz as p}from"./BoB2h2qv.js";import{a as m}from"./Bj6F-phl.js";const h=["data-orientation"],b=o({__name:"Field",props:{class:{},orientation:{}},setup(a){const e=a;return(t,n)=>(s(),c("div",{role:"group","data-slot":"field","data-orientation":a.orientation,class:d(l(i)(l(g)({orientation:a.orientation}),e.class))},[r(t.$slots,"default")],10,h))}}),w=o({__name:"FieldContent",props:{class:{}},setup(a){const e=a;return(t,n)=>(s(),c("div",{"data-slot":"field-content",class:d(l(i)("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",e.class))},[r(t.$slots,"default")],2))}}),k=o({__name:"FieldLabel",props:{class:{}},setup(a){const e=a;return(t,n)=>(s(),f(l(m),{"data-slot":"field-label",class:d(l(i)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",e.class))},{default:u(()=>[r(t.$slots,"default")]),_:3},8,["class"]))}}),g=p("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col *:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","*:data-[slot=field-label]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col *:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto","@md/field-group:*:data-[slot=field-label]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});export{b as _,k as a,w as b};
