/*! For license information please see dll.Accordion.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[23],{1295:function(e,t,r){"use strict";r.r(t);var n=r(136),a=r.n(n),c=r(205),i=r(65);t.default=function(e){return a()(e)&&e.props&&Object(i.isPrimitive)(e.props.lineNumber)&&Object(c.isPrimitive)(e.props.show)}},2289:function(e,t,r){"use strict";r.r(t);var n=r(22),a=r.n(n),c=r(2290),i={insert:"head",singleton:!1};a()(c.default,i);t.default=c.default.locals||{}},2290:function(e,t,r){"use strict";r.r(t);var n=r(23),a=r.n(n)()(!1);a.push([e.i,".Lesson > .accordion,\n.Lesson > .line-wrapper > .accordion {\n\tmax-width: 1200px;\n\tmargin: 0 auto;\n\tbackground-color: white;\n}\n",""]),t.default=a},824:function(e,t,r){"use strict";r.r(t);var n=r(14),a=r.n(n),c=r(12),i=r.n(c),o=r(10),s=r.n(o),l=r(15),u=r.n(l),p=r(16),d=r.n(p),f=r(8),h=r.n(f),v=r(7),b=r.n(v),y=r(0),m=r.n(y),O=r(1),g=r.n(O),w=r(38),j=r.n(w),P=r(39),k=r.n(P),S=r(977),C=r(390),N=r(1295);r(2289);function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){b()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h()(e);if(t){var a=h()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return d()(this,r)}}var A=j()("isle:accordion"),E=function(e){u()(r,e);var t=x(r);function r(e){var n;return a()(this,r),n=t.call(this,e),b()(s()(n),"clickFactory",(function(e,t){return n.props.canCloseAll?function(){var e=n.state.active===t?null:t;n.setState({active:e})}:function(){var r=n.state.active===t?(t+1)%e:t;A("Open accordion element at index ".concat(r,"...")),n.setState({active:r})}})),n.state={active:e.active,prevActive:e.active},n}return i()(r,[{key:"render",value:function(){if(!k()(this.props.children))return m.a.createElement(S.default,{variant:"danger"},"The accordion requires at least two child elements for it to be rendered.");for(var e=[],t=this.props.headers||[],r=0,n=0;n<this.props.children.length;n++){var a=this.props.children[n];if(!Object(N.default)(a)){var c={boxShadow:"0 0 -4px rgba(92, 92, 92, 0.5)"};1===r&&(c.borderTopLeftRadius=6,c.borderTopRightRadius=6),n===this.state.active&&(c.background="rgba(201, 93, 10, 0.2)");var i=m.a.createElement(C.default,{key:n,visible:n===this.state.active,header:t[r]||"Header ".concat(r),headerClassName:this.props.headerClassName,headerStyle:D(D({},c),this.props.headerStyle),onClick:this.clickFactory(this.props.children.length,n)},a);r+=1,e.push(i)}}return m.a.createElement("div",{className:"accordion ".concat(this.props.className),style:this.props.style},e)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.active!==t.prevActive?{active:e.active,prevActive:e.active}:null}}]),r}(y.Component);E.defaultProps={active:null,canCloseAll:!1,headers:null,headerClassName:null,headerStyle:null,className:"",style:null},E.propTypes={active:g.a.number,canCloseAll:g.a.bool,headers:g.a.arrayOf(g.a.oneOfType([g.a.string,g.a.node])),headerStyle:g.a.object,headerClassName:g.a.string,className:g.a.string,style:g.a.object},t.default=E}}]);