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