import{jsx as e,jsxs as r}from"react/jsx-runtime";import{c as o}from"./utils-CMbmcP35.js";import{Link as d}from"@inertiajs/react";import"react";import{cva as i}from"class-variance-authority";import{L as s}from"./label-DMnntKPk.js";import{S as n}from"./separator-BDLxzoJ8.js";function b({className:a="",children:t,...l}){return e(d,{className:o("text-foreground underline decoration-neutral-300 underline-offset-4 transition-colors duration-300 ease-out hover:decoration-current! dark:decoration-neutral-500",a),...l,children:t})}function v({className:a,...t}){return e("div",{"data-slot":"field-group",className:o("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",a),...t})}const f=i("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 k({className:a,orientation:t="vertical",...l}){return e("div",{role:"group","data-slot":"field","data-orientation":t,className:o(f({orientation:t}),a),...l})}function w({className:a,...t}){return e(s,{"data-slot":"field-label",className:o("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",a),...t})}function y({className:a,...t}){return e("p",{"data-slot":"field-description",className:o("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",a),...t})}function N({children:a,className:t,...l}){return r("div",{"data-slot":"field-separator","data-content":!!a,className:o("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",t),...l,children:[e(n,{className:"absolute inset-0 top-1/2"}),a&&e("span",{className:"bg-background text-muted-foreground relative mx-auto block w-fit px-2","data-slot":"field-separator-content",children:a})]})}export{v as F,b as T,k as a,w as b,y as c,N as d};
