/*! For license information please see dll.Accordion.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[25],{1278:function(e,t,r){"use strict";r.r(t);var n=r(136),a=r.n(n),c=r(193),i=r(66);t.default=function(e){return a()(e)&&e.props&&Object(i.isPrimitive)(e.props.lineNumber)&&Object(c.isPrimitive)(e.props.show)}},2168:function(e,t,r){var n=r(54),a=r(2169);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var c={insert:"head",singleton:!1};n(a,c);e.exports=a.locals||{}},2169:function(e,t,r){"use strict";r.r(t);var n=r(22),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},819: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),y=r.n(v),b=r(0),m=r.n(b),g=r(1),O=r.n(g),w=r(37),j=r.n(w),P=r(38),k=r.n(P),S=r(993),C=r(378),N=r(1278);r(2168);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 x(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){y()(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 D(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"),_=function(e){u()(r,e);var t=D(r);function r(e){var n;return a()(this,r),n=t.call(this,e),y()(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:x(x({},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}(b.Component);_.defaultProps={active:null,canCloseAll:!1,headers:null,headerClassName:null,headerStyle:null,className:"",style:null},_.propTypes={active:O.a.number,canCloseAll:O.a.bool,headers:O.a.arrayOf(O.a.oneOfType([O.a.string,O.a.node])),headerStyle:O.a.object,headerClassName:O.a.string,className:O.a.string,style:O.a.object},t.default=_}}]);