import o from"@babel/runtime/helpers/slicedToArray";import{useState as e,useEffect as r}from"react";import i from"prop-types";import{debounce as t}from"lodash";import{makeStyles as n}from"@material-ui/core";import{Switch as c}from"../../../../../../componentsV2/Switch/Switch.js";import{jsx as m}from"react/jsx-runtime";var s=n({formControl:{width:function(o){return o.isMobile?"200px":"150px"}}}),a=t((function(o){o()}),500);function l(i){var t=i.checked,n=i.onChange,l=i.isMobile,p=s({isMobile:l}),f=e(t),u=o(f,2),d=u[0],h=u[1];r((function(){h(t)}),[t]);return m(c,{onLabel:"Exclude Sidetracks",checked:d,onChange:function(o){h(o),a((function(){n(o)}))},size:"small",className:p.formControl})}l.propTypes={checked:i.bool.isRequired,onChange:i.func.isRequired,isMobile:i.bool.isRequired};export{l as default};
//# sourceMappingURL=SidetrackSwitch.js.map
