"use strict";var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),i=require("prop-types"),r=require("lodash"),a=require("@material-ui/core"),s=require("../../../../componentsV2/Switch/Switch.js"),n=require("react/jsx-runtime");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(e),o=u(i),l=r.debounce((function(e){e()}),500);function c(e){var i=e.initialChecked,r=e.onChange,a=e.classes,u=e["data-testid"],o=t.useState(i),c=d.default(o,2),f=c[0],h=c[1];return n.jsx(s.Switch,{testId:u,onLabel:"Exclude Sidetracks",checked:f,onChange:function(e){h(e),l((function(){r(e)}))},size:"small",className:a.formControl})}c.propTypes={initialChecked:o.default.bool.isRequired,onChange:o.default.func.isRequired,classes:o.default.shape({}).isRequired,"data-testid":o.default.string},c.defaultProps={"data-testid":"SidetrackSwitch"};var f=a.withStyles({formControl:{display:"flex",alignItems:"flex-end",height:"56px",marginLeft:"10px",paddingBottom:8}})(c);module.exports=f;
//# sourceMappingURL=SidetrackSwitch.js.map
