import{j as r}from"./router.chunk.YsRm4bSN.js";import{c as s,i as e,a1 as n,B as o,b as d}from"./main.chunk.N-eZ2ybB.js";import{P as a}from"./pro-badge.chunk.PstHsVdU.js";import{S as i}from"./switch.chunk.BWrU_4pe.js";import{t as f}from"./icons.chunk.BwnSC3zE.js";function u({label:u,description:t,className:g,allowEdit:c=!1,hideToggle:l=!1,showProBadge:m=!1}){return r.jsxs("div",{className:s("growfund-w-full growfund-flex growfund-items-center growfund-justify-between growfund-gap-4 growfund-group/switch",g),children:[r.jsxs("div",{className:"growfund-space-y-2",children:[e(u)&&r.jsxs(n,{className:s("growfund-text-fg-primary growfund-typo-small growfund-font-medium growfund-min-h-4 growfund-flex growfund-items-center growfund-gap-1 growfund-flex-shrink-0",!m&&"growfund-text-fg-subdued"),children:[u,m&&r.jsx(a,{})]}),e(t)&&r.jsx("p",{className:"growfund-text-[0.8rem] growfund-text-fg-muted",children:t})]}),r.jsxs("div",{className:"growfund-flex growfund-items-center growfund-gap-2",children:[c&&r.jsx(o,{variant:"ghost",size:"icon",children:r.jsx(f,{className:"growfund-text-icon-primary"})}),!l&&r.jsx(d,{children:r.jsx(i,{disabled:!0,checked:!1,"aria-readonly":!0})})]})]})}export{u as P};
