import{j as s}from"./router.chunk.YsRm4bSN.js";import{F as r,a as e,c as n,i as o,p as a,d,e as c,B as i,b as l}from"./main.chunk.N-eZ2ybB.js";import{S as t}from"./switch.chunk.BWrU_4pe.js";import{t as u}from"./icons.chunk.BwnSC3zE.js";function f({control:f,name:g,label:w,description:h,disabled:m=!1,className:j,allowEdit:p=!1,onEdit:x,allowHoverEffect:k=!1,hideToggle:b=!1}){return s.jsx(r,{control:f,name:g,render:({field:r})=>s.jsxs(e,{className:n("growfund-w-full growfund-flex growfund-items-center growfund-justify-between growfund-gap-4 growfund-group/switch",k&&"hover:growfund-bg-background-surface-secondary growfund-rounded-lg growfund-p-2"),children:[s.jsxs("div",{className:"growfund-space-y-2",children:[o(w)&&s.jsx(a,{className:"growfund-flex-shrink-0",children:w}),o(h)&&s.jsx(d,{children:h}),s.jsx(c,{})]}),s.jsxs("div",{className:"growfund-flex growfund-items-center growfund-gap-2",children:[p&&s.jsx(i,{variant:"ghost",size:"icon",onClick:x,className:n(k&&"growfund-opacity-0 growfund-transition-opacity group-hover/switch:growfund-opacity-100"),children:s.jsx(u,{className:"growfund-text-icon-primary"})}),!b&&s.jsx(l,{children:s.jsx(t,{...r,disabled:m,className:j,checked:!!r.value,onCheckedChange:r.onChange,"aria-readonly":!0})})]})]})})}export{f as S};
