"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("@material-ui/core"),n=require("@material-ui/icons"),o=require("react/jsx-runtime");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=i(e),u=i(r),s=["accordionDetailsRef","children","isAccordionRequired","summary"];function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach((function(r){c.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var l=t.makeStyles((function(e){return{accordionDetails:{flexDirection:"column",paddingTop:function(e){return e.isAccordionRequired?12:0},paddingLeft:function(e){return e.isAccordionRequired?32:0}},summaryContent:{display:function(e){return e.isAccordionRequired?"block":"none"},fontSize:16,color:e.palette.primary.contrastText},expandIcon:{display:function(e){return e.isAccordionRequired?"block":"none"},"& svg":{width:24,height:24}}}}));exports.SettingsAccordion=function(e){var r=e.accordionDetailsRef,i=e.children,c=e.isAccordionRequired,a=e.summary,p=u.default(e,s),f=l({isAccordionRequired:c});return o.jsxs(t.Accordion,d(d({},p),{},{children:[o.jsx(t.AccordionSummary,{classes:{content:f.summaryContent,expandIcon:f.expandIcon},expandIcon:o.jsx(n.ExpandMore,{}),children:a}),o.jsx(t.AccordionDetails,{classes:{root:f.accordionDetails},ref:r,children:i})]}))};
