/*! For license information please see dll.Accordion.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[22],{1080:function(e,a,t){"use strict";t.r(a);var n=t(5),r=t(11),l=t(1),c=t.n(l),o=t(0),s=t.n(o),i=t(12),u=t.n(i),d={label:c.a.string.isRequired,onClick:c.a.func},f=s.a.forwardRef((function(e,a){var t=e.label,l=e.onClick,c=e.className,o=Object(r.default)(e,["label","onClick","className"]);return s.a.createElement("button",Object(n.default)({ref:a,type:"button",className:u()("close",c),onClick:l},o),s.a.createElement("span",{"aria-hidden":"true"},"×"),s.a.createElement("span",{className:"sr-only"},t))}));f.displayName="CloseButton",f.propTypes=d,f.defaultProps={label:"Close"},a.default=f},1384:function(e,a,t){"use strict";t.r(a);var n=t(141),r=t.n(n),l=t(207),c=t(68);a.default=function(e){return r()(e)&&e.props&&Object(c.isPrimitive)(e.props.lineNumber)&&Object(l.isPrimitive)(e.props.show)}},2301:function(e,a,t){"use strict";t.r(a);var n=t(22),r=t.n(n),l=t(2302),c={insert:"head",singleton:!1};r()(l.default,c);a.default=l.default.locals||{}},2302:function(e,a,t){"use strict";t.r(a);var n=t(23),r=t.n(n)()(!1);r.push([e.i,".Lesson > .accordion,\n.Lesson > .line-wrapper > .accordion {\n\tmax-width: 1200px;\n\tmargin: 0 auto;\n\tbackground-color: white;\n}\n",""]),a.default=r},833:function(e,a,t){"use strict";t.r(a);var n=t(7),r=t.n(n),l=t(202),c=t.n(l),o=t(0),s=t.n(o),i=t(1),u=t.n(i),d=t(36),f=t.n(d),p=t(39),b=t.n(p),h=t(1015),m=t(395),v=t(1384);t(2301);function g(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function y(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?g(Object(t),!0).forEach((function(a){r()(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}var O=f()("isle:accordion"),j=function(e){O("Rendering accordion...");var a=Object(o.useState)(e.active),t=c()(a,2),n=t[0],r=t[1],l=Object(o.useState)(e.active),i=c()(l,2),u=i[0],d=i[1];if(e.active!==u&&(r(e.active),d(e.active),e.onChange(e.active)),!b()(e.children))return s.a.createElement(h.default,{variant:"danger"},"The accordion requires at least two child elements for it to be rendered.");for(var f=function(a,t){return e.canCloseAll?function(){var a=n===t?null:t;r(a),e.onChange(a)}:function(){var l=n===t?(t+1)%a:t;r(l),e.onChange(l)}},p=[],g=e.headers||[],j=0,w=0;w<e.children.length;w++){var C=e.children[w];if(!Object(v.default)(C)){var N={boxShadow:"0 0 -4px rgba(92, 92, 92, 0.5)"};0===j&&(N.borderTopLeftRadius=6,N.borderTopRightRadius=6),w===n&&(N.background="rgba(201, 93, 10, 0.2)");var P=s.a.createElement(m.default,{key:w,visible:w===n,header:g[j]||"Header ".concat(j),headerClassName:e.headerClassName,headerStyle:y(y({},N),e.headerStyle),onClick:f(e.children.length,w)},C);j+=1,p.push(P)}}return s.a.createElement("div",{className:"accordion ".concat(e.className),style:e.style},p)};j.defaultProps={active:null,canCloseAll:!1,headers:null,headerClassName:null,headerStyle:null,onChange:function(){},className:"",style:null},j.propTypes={active:u.a.number,canCloseAll:u.a.bool,headers:u.a.arrayOf(u.a.oneOfType([u.a.string,u.a.node])),headerStyle:u.a.object,headerClassName:u.a.string,onChange:u.a.func,className:u.a.string,style:u.a.object},a.default=j}}]);