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