"use strict";var e=require("@babel/runtime/helpers/defineProperty"),s=require("react"),r=require("classnames"),o=require("@material-ui/core"),c=require("../ChartButton.js"),i=require("../../ChartWrapperContext.js");require("@babel/runtime/helpers/slicedToArray"),require("lodash"),require("../../../../utils/main.js");var n=require("../../effects/useHideAxes.js");require("../../effects/useChartModifier.js");var t=require("../../../../icons/iconParkIcons.js");require("../../../../icons/customIcons/icons/AddMessage.js"),require("../../../../icons/customIcons/icons/Attention.js"),require("../../../../icons/customIcons/icons/Collapse.js"),require("../../../../icons/customIcons/icons/Dashboard.js"),require("../../../../icons/customIcons/icons/Expand.js"),require("../../../../icons/customIcons/icons/FolderClosed.js"),require("../../../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../../../icons/customIcons/icons/FolderOpened.js"),require("../../../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../../../icons/customIcons/icons/LessOrEqual.js"),require("../../../../icons/customIcons/icons/Search.js"),require("../../../../icons/customIcons/icons/Wellhub.js"),require("../../../../icons/customIcons/icons/MultiRuler.js"),require("../../../../icons/customIcons/icons/Checkbox.js"),require("../../../../icons/customIcons/icons/CheckboxChecked.js"),require("../../../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../../../icons/customIcons/icons/Radio.js"),require("../../../../icons/customIcons/icons/RadioChecked.js"),require("../../../../icons/customIcons/icons/SimulFrac.js"),require("../../../../icons/customIcons/icons/ZipperFrac.js"),require("../../../../icons/customIcons/icons/CautionFilled.js"),require("../../../../icons/customIcons/icons/MoreApp.js");var u=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),j=a(r);function d(e,s){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);s&&(o=o.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),r.push.apply(r,o)}return r}function m(e){for(var s=1;s<arguments.length;s++){var r=null!=arguments[s]?arguments[s]:{};s%2?d(Object(r),!0).forEach((function(s){l.default(e,s,r[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))}))}return e}var p=o.makeStyles({icon:{top:0,transform:"rotate(45deg)"}}),q=function(e){var r=s.useContext(i),o=r.chart,a=r.handleChangeChartStyles,l=n.useHideAxes({chart:o,onChartStylesChange:a}),d=l.isHiddenAxes,q=l.handleAxesHide,h=p();return u.jsx(c,m(m({},e),{},{className:j.default(h.hideAxesButton,e.className),tooltipProps:m({title:d?"Show Axes":"Hide Axes"},e.tooltipProps),onClick:q,children:d?u.jsx(t.ExpandIcon,{className:h.icon,size:16}):u.jsx(t.CollapseIcon,{className:h.icon,size:16})}))};q.defaultProps={tooltipProps:{}},module.exports=q;
