import{j as e}from"./router.chunk.YsRm4bSN.js";import{F as s,a as r,c as a,i as n,p as o,d,e as l,b as c}from"./main.chunk.N-eZ2ybB.js";import{P as i}from"./pro-badge.chunk.PstHsVdU.js";import{R as u,a as f}from"./radio-group.chunk.BTBtVnZk.js";function g({control:g,name:m,label:t,description:x,options:w,disabled:j=!1,className:p,inline:h=!1,featureOptions:N}){return e.jsx(s,{control:g,name:m,render:({field:s,fieldState:g})=>e.jsxs(r,{className:a("growfund-w-full",h&&"growfund-flex growfund-flex-col growfund-gap-1"),children:[e.jsxs("div",{className:"growfund-space-y-1",children:[n(t)&&e.jsx(o,{className:"growfund-flex-shrink-0",children:t}),n(x)&&e.jsx(d,{children:x}),e.jsx(l,{})]}),e.jsx(c,{className:a("growfund-mt-2",h&&"growfund-flex growfund-items-center growfund-gap-4"),children:e.jsxs(u,{onValueChange:s.onChange,value:s.value??"",disabled:j,className:p,children:[w.map((s,n)=>e.jsxs(r,{className:"growfund-flex growfund-items-center growfund-space-x-2",children:[e.jsx(c,{children:e.jsx(f,{value:s.value,className:a(g.error&&"growfund-border-border-critical")})}),e.jsxs(o,{className:a(g.error&&"growfund-text-fg-critical"),children:[s.icon&&s.icon,s.label]})]},n)),n(N)&&N.map((s,r)=>e.jsxs("div",{className:"growfund-flex growfund-items-center growfund-space-x-2",children:[e.jsx(f,{disabled:!0,value:"",checked:!1}),e.jsxs("span",{className:"growfund-text-fg-subdued growfund-typo-small growfund-font-medium growfund-min-h-4 growfund-flex growfund-items-center growfund-gap-1",children:[s," ",e.jsx(i,{})]})]},r))]})})]})})}export{g as R};
