import{h as o,j as e}from"./codemirror-core-DIzFijqu.js";import{u as S}from"./chunk-EN4B57RQ-CXuE6aUy.js";import{v as C,c as v}from"./react-dom-C0IJc3nR.js";var p=C((n,l)=>{const{Component:c,children:a,startContent:r,endContent:s,thumbIcon:t,getBaseProps:d,getInputProps:u,getWrapperProps:m,getThumbProps:h,getThumbIconProps:i,getLabelProps:x,getStartContentProps:f,getEndContentProps:b}=S({...n,ref:l}),g=typeof t=="function"?t(i({includeStateProps:!0})):t&&o.cloneElement(t,i()),w=r&&o.cloneElement(r,f()),j=s&&o.cloneElement(s,b());return e.jsxs(c,{...d(),children:[e.jsx("input",{...u()}),e.jsxs("span",{...m(),children:[r&&w,e.jsx("span",{...h(),children:t&&g}),s&&j]}),a&&e.jsx("span",{...x(),children:a})]})});p.displayName="HeroUI.Switch";var P=p;const y=o.forwardRef((n,l)=>{const{label:c,description:a,value:r,onValueChange:s,disabled:t}=n,d=r?"true":"false";return e.jsx(P,{classNames:{base:v("inline-flex flex-row-reverse w-full max-w-full bg-default-100/50 dark:bg-white/5 hover:bg-default-200/50 dark:hover:bg-white/10 items-center","justify-between cursor-pointer rounded-xl gap-2 p-4 border border-transparent transition-all duration-200","data-[selected=true]:border-primary/50 data-[selected=true]:bg-primary/5 backdrop-blur-md")},...n,ref:l,isDisabled:t,isSelected:r,value:d,onValueChange:s,children:e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("p",{className:"text-medium",children:c}),e.jsx("p",{className:"text-tiny text-default-400",children:a})]})})});y.displayName="SwitchCard";export{y as S,P as s};
