1import{j as a}from"./jsx-runtime.u17CrQMm.js";import{r as m}from"./chunk-BV7QT456.BQ71lt_D.js";import{c as o,a as c}from"./index.Bq7B3-hS.js";import"./ExternalLinks.DYQ1kwe5.js";import{K as p}from"./KeyAccessors.CfLgbGqN.js";import{L as x}from"./label.Bw1J3VIE.js";import{S as r}from"./separator.Baq28S32.js";function g({className:e,...t}){return a.jsx("fieldset",{"data-slot":"field-set",className:o("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",e),...t})}function h({className:e,variant:t="legend",...l}){return a.jsx("legend",{"data-slot":"field-legend","data-variant":t,className:o("mb-3 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",e),...l})}function b({className:e,...t}){return a.jsx("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",e),...t})}const v=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 j({className:e,orientation:t="vertical",...l}){return a.jsx("div",{role:"group","data-slot":"field","data-orientation":t,className:o(v({orientation:t}),e),...l})}function w({className:e,...t}){return a.jsx(x,{"data-slot":"field-label",className:o("group/field-label peer/field-label flex w-fit gap-1 leading-snug","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-soft has-data-[state=checked]:border-primary text-[14px]",e),...t})}function F({className:e,...t}){return a.jsx("div",{"data-slot":"field-label",className:o("flex w-fit items-center gap-2 text-sm leading-snug font-medium",e),...t})}function N({className:e,...t}){return a.jsx("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-text [&>a]:underline [&>a]:underline-offset-4",e),...t})}function S({children:e,className:t,...l}){return a.jsxs("div",{"data-slot":"field-separator","data-content":!!e,className:o("relative -my-2 flex h-5 items-center gap-3 text-sm group-data-[variant=outline]/field-group:-mb-2",t),...l,children:[a.jsx(r,{className:"flex-1"}),e&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"text-muted-foreground block w-fit shrink-0","data-slot":"field-separator-content",children:e}),a.jsx(r,{className:"flex-1"})]})]})}function k({className:e,children:t,errors:l,...f}){const d=m.useMemo(()=>{var n;if(t)return t;if(!(l!=null&&l.length))return null;const i=[...new Map(l.map(s=>[s==null?void 0:s.message,s])).values()];return(i==null?void 0:i.length)===1?(n=i[0])==null?void 0:n.message:a.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:i.map((s,u)=>(s==null?void 0:s.message)&&a.jsx("li",{children:s.message},`${p.FIELD_ERROR}-${u}`))})},[t,l]);return d?a.jsx("div",{role:"alert","data-slot":"field-error",className:o("text-destructive text-[12px] font-normal",e),...f,children:d}):null}const M=Object.freeze(Object.defineProperty({__proto__:null,Field:j,FieldDescription:N,FieldError:k,FieldGroup:b,FieldLabel:w,FieldLegend:h,FieldSeparator:S,FieldSet:g,FieldTitle:F},Symbol.toStringTag,{value:"Module"}));
1export{j as F,M as a,k as b};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.