import{c as d,j as r}from"./app-BiexncSX.js";import{a as c}from"./button-Cwvd_D5X.js";import{c as n}from"./utils-DvRnx1Xn.js";import{L as m}from"./label-BACPLsln.js";const p=c("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"}});function b(i){const e=d.c(11);let t,l,a;e[0]!==i?({className:t,orientation:a,...l}=i,e[0]=i,e[1]=t,e[2]=l,e[3]=a):(t=e[1],l=e[2],a=e[3]);const s=a===void 0?"vertical":a;let o;e[4]!==t||e[5]!==s?(o=n(p({orientation:s}),t),e[4]=t,e[5]=s,e[6]=o):o=e[6];let f;return e[7]!==s||e[8]!==l||e[9]!==o?(f=r.jsx("div",{role:"group","data-slot":"field","data-orientation":s,className:o,...l}),e[7]=s,e[8]=l,e[9]=o,e[10]=f):f=e[10],f}function v(i){const e=d.c(8);let t,l;e[0]!==i?({className:t,...l}=i,e[0]=i,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let a;e[3]!==t?(a=n("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",t),e[3]=t,e[4]=a):a=e[4];let s;return e[5]!==l||e[6]!==a?(s=r.jsx("div",{"data-slot":"field-content",className:a,...l}),e[5]=l,e[6]=a,e[7]=s):s=e[7],s}function w(i){const e=d.c(8);let t,l;e[0]!==i?({className:t,...l}=i,e[0]=i,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let a;e[3]!==t?(a=n("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",t),e[3]=t,e[4]=a):a=e[4];let s;return e[5]!==l||e[6]!==a?(s=r.jsx(m,{"data-slot":"field-label",className:a,...l}),e[5]=l,e[6]=a,e[7]=s):s=e[7],s}function N(i){const e=d.c(8);let t,l;e[0]!==i?({className:t,...l}=i,e[0]=i,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let a;e[3]!==t?(a=n("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let s;return e[5]!==l||e[6]!==a?(s=r.jsx("div",{"data-slot":"field-label",className:a,...l}),e[5]=l,e[6]=a,e[7]=s):s=e[7],s}function y(i){const e=d.c(8);let t,l;e[0]!==i?({className:t,...l}=i,e[0]=i,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let a;e[3]!==t?(a=n("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",t),e[3]=t,e[4]=a):a=e[4];let s;return e[5]!==l||e[6]!==a?(s=r.jsx("p",{"data-slot":"field-description",className:a,...l}),e[5]=l,e[6]=a,e[7]=s):s=e[7],s}export{w as F,y as a,b,N as c,v as d};
