import{p as e,t}from"./utils-Bs-0X7qI.js";import{r as n}from"./bundle-mjs-C4g7ASB5.js";import{t as r}from"./dist-CImBN8k_.js";import{t as i}from"./label-D4DLXoEs.js";import{t as a}from"./separator-rMQ-O2ZT.js";var o=e(),s=n();function c(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4`,r),n[3]=r,n[4]=a);let c;return n[5]!==i||n[6]!==a?(c=(0,s.jsx)(`div`,{"data-slot":`field-group`,className:a,...i}),n[5]=i,n[6]=a,n[7]=c):c=n[7],c}var l=r(`data-[invalid=true]:text-destructive gap-3 group/field flex w-full`,{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 u(e){let n=(0,o.c)(11),r,i,a;n[0]===e?(r=n[1],i=n[2],a=n[3]):({className:r,orientation:a,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a);let c=a===void 0?`vertical`:a,u;n[4]!==r||n[5]!==c?(u=t(l({orientation:c}),r),n[4]=r,n[5]=c,n[6]=u):u=n[6];let d;return n[7]!==c||n[8]!==i||n[9]!==u?(d=(0,s.jsx)(`div`,{role:`group`,"data-slot":`field`,"data-orientation":c,className:u,...i}),n[7]=c,n[8]=i,n[9]=u,n[10]=d):d=n[10],d}function d(e){let n=(0,o.c)(8),r,a;n[0]===e?(r=n[1],a=n[2]):({className:r,...a}=e,n[0]=e,n[1]=r,n[2]=a);let c;n[3]===r?c=n[4]:(c=t(`has-data-checked:bg-primary/5 has-data-checked:border-primary dark:has-data-checked:bg-primary/10 group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-3`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col`,r),n[3]=r,n[4]=c);let l;return n[5]!==a||n[6]!==c?(l=(0,s.jsx)(i,{"data-slot":`field-label`,className:c,...a}),n[5]=a,n[6]=c,n[7]=l):l=n[7],l}function f(e){let n=(0,o.c)(8),r,i;n[0]===e?(r=n[1],i=n[2]):({className:r,...i}=e,n[0]=e,n[1]=r,n[2]=i);let a;n[3]===r?a=n[4]:(a=t(`text-muted-foreground text-left text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,r),n[3]=r,n[4]=a);let c;return n[5]!==i||n[6]!==a?(c=(0,s.jsx)(`p`,{"data-slot":`field-description`,className:a,...i}),n[5]=i,n[6]=a,n[7]=c):c=n[7],c}function p(e){let n=(0,o.c)(14),r,i,c;n[0]===e?(r=n[1],i=n[2],c=n[3]):({children:r,className:i,...c}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=c);let l=!!r,u;n[4]===i?u=n[5]:(u=t(`relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2`,i),n[4]=i,n[5]=u);let d;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,s.jsx)(a,{className:`absolute inset-0 top-1/2`}),n[6]=d):d=n[6];let f;n[7]===r?f=n[8]:(f=r&&(0,s.jsx)(`span`,{className:`text-muted-foreground bg-background relative mx-auto block w-fit px-2`,"data-slot":`field-separator-content`,children:r}),n[7]=r,n[8]=f);let p;return n[9]!==c||n[10]!==l||n[11]!==u||n[12]!==f?(p=(0,s.jsxs)(`div`,{"data-slot":`field-separator`,"data-content":l,className:u,...c,children:[d,f]}),n[9]=c,n[10]=l,n[11]=u,n[12]=f,n[13]=p):p=n[13],p}export{p as a,d as i,f as n,c as r,u as t};