"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("classnames"),o=require("@material-ui/core"),i=require("@material-ui/icons"),n=require("../../SwitchControl/index.js"),a=require("react/jsx-runtime");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=l(e),c=l(t),p=l(r),u=["isChecked","title","className"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}var m=o.makeStyles((function(e){var t=e.palette;return{root:{marginBottom:"-2px",marginTop:"-8px",marginLeft:"-9px",width:"fit-content"},title:{display:"flex",alignItems:"center"},infoIcon:{marginLeft:4,color:t.primary.text6,"&:hover":{color:t.primary.contrastText}}}})),b=function(e){var t=e.isChecked,r=e.title,l=e.className,b=c.default(e,u),d=m();return a.jsx(n.SwitchControlComponent,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){s.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({className:p.default(d.root,l),size:"small",rightLabel:a.jsxs("span",{className:d.title,children:[r,a.jsx(o.Tooltip,{title:"A separate app will be placed on the dashboard for each asset chosen",placement:"bottom-start",children:a.jsx(i.InfoOutlined,{fontSize:"small",className:d.infoIcon})})]}),color:"primary",checked:t},b))};b.defaultProps={title:"Multiple Assets"},module.exports=b;
