/*! For license information please see dll.Accordion.js.LICENSE.txt */
(window.webpackJsonp_name_hash_=window.webpackJsonp_name_hash_||[]).push([[18],{1095:function(e,t,a){"use strict";a.r(t);var n=a(4),r=a(10),i=a(11),l=a.n(i),s=a(0),c=a.n(s),o=a(278),u=a(80),d=a(32),f=a(138),h=a(16),p=a(208),v=a(288),m=a(282),b={show:!0,transition:p.default,closeLabel:"Close alert"},y={show:"onClose"},C=c.a.forwardRef((function(e,t){var a=Object(o.useUncontrolled)(e,y),i=a.bsPrefix,s=a.show,d=a.closeLabel,f=a.className,p=a.children,m=a.variant,b=a.onClose,C=a.dismissible,w=a.transition,O=Object(r.default)(a,["bsPrefix","show","closeLabel","className","children","variant","onClose","dismissible","transition"]),k=Object(h.useBootstrapPrefix)(i,"alert"),j=Object(u.default)((function(e){b(!1,e)})),g=c.a.createElement("div",Object(n.default)({role:"alert"},w?O:void 0,{ref:t,className:l()(f,k,m&&k+"-"+m,C&&k+"-dismissible")}),C&&c.a.createElement(v.default,{onClick:j,label:d}),p);return w?c.a.createElement(w,Object(n.default)({unmountOnExit:!0},O,{in:s}),g):s?g:null})),w=Object(f.default)("h4");w.displayName="DivStyledAsH4",C.displayName="Alert",C.defaultProps=b,C.Link=Object(d.default)("alert-link",{Component:m.default}),C.Heading=Object(d.default)("alert-heading",{Component:w}),t.default=C},966:function(e,t,a){"use strict";a.r(t);var n=a(13),r=a.n(n),i=a(12),l=a.n(i),s=a(7),c=a.n(s),o=a(14),u=a.n(o),d=a(15),f=a.n(d),h=a(8),p=a.n(h),v=a(5),m=a.n(v),b=a(0),y=a.n(b),C=a(1),w=a.n(C),O=a(23),k=a.n(O),j=a(20),g=a.n(j),N=a(1095),S=a(495);function P(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 a,n=p()(e);if(t){var r=p()(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return f()(this,a)}}var x=k()("isle:accordion"),E=function(e){u()(a,e);var t=P(a);function a(e){var n;return r()(this,a),n=t.call(this,e),m()(c()(n),"clickFactory",(function(e,t){return function(){var a=n.state.active===t?(t+1)%e:t;x("Open accordion element at index ".concat(a,"...")),n.setState({active:a})}})),n.state={active:e.active,prevActive:e.active},n}return l()(a,[{key:"render",value:function(){if(!g()(this.props.children))return y.a.createElement(N.default,{variant:"danger"},"The accordion requires at least two child elements for it to be rendered.");for(var e=[],t=this.props.headers||[],a=0;a<this.props.children.length;a++){var n=this.props.children[a],r=y.a.createElement(S.default,{key:a,visible:a===this.state.active,header:t[a]||"Header ".concat(a+1),headerClassName:this.props.headerClassName,headerStyle:this.props.headerStyle,onClick:this.clickFactory(this.props.children.length,a)},n);e.push(r)}return e}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.active!==t.prevActive?{active:e.active,prevActive:e.active}:null}}]),a}(b.Component);E.defaultProps={active:0,headers:null,headerClassName:null,headerStyle:null},E.propTypes={active:w.a.number,headers:w.a.arrayOf(w.a.string),headerStyle:w.a.object,headerClassName:w.a.string},t.default=E}}]);