var p=Object.defineProperty;var c=(s,e,t)=>e in s?p(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var r=(s,e,t)=>c(s,typeof e!="symbol"?e+"":e,t);import{j as o}from"./client-By3tlFYA.js";import{r as m}from"./index-TEHZzOO_.js";import"./useSelectableClick-C6FBaLSu.js";import{T as d}from"./index-MzeB4jmw.js";class b extends m.PureComponent{constructor(){super(...arguments);r(this,"onChange",({target:t})=>{this.props.onChange(this.props.settingPath,t.checked)})}render(){const{prefix:t,settings:a,settingPath:n,label:g,defaultValue:l,disabled:h}=this.props,i=["setting-toggle",t,...n].filter(Boolean).join("-");return o.jsxs("div",{className:"setting-toggle",children:[o.jsx(d,{disabled:h,id:i,checked:a.getIn(n,l),onChange:this.onChange,onKeyDown:this.onKeyDown}),o.jsx("label",{htmlFor:i,className:"setting-toggle__label",children:g})]})}}export{b as S};
//# sourceMappingURL=setting_toggle-D8GPSWBx.js.map
