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