(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1182:function(e,t,n){"use strict";n.r(t);n(646),n(877),n(1020),n(1070);var r=n(0),o=n.n(r),a=n(53),i=n(21),c=(n(4),n(11),n(12),n(8),n(7),n(49),n(10),n(9),n(2)),l=n.n(c);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var m=o.a.createElement("option",{key:"core",value:"core"},"Core"),s=o.a.createElement("option",{key:"cosma",value:"cosma"},"Cosma (Rebranding 2019)"),u=function(e){var t=e.active,n=e.api,a=d(Object(r.useState)("core"),2),c=a[0],l=a[1];return t&&o.a.createElement(i.Form,null,o.a.createElement(i.Form.Field,{label:"Select theme:"},o.a.createElement(i.Form.Select,{name:"is24-theme",value:c,onChange:function(e){var t=e.target.value;l(t),n.getChannel().emit("current-theme",t)},size:"flex"},m,s)))};u.propTypes={active:l.a.bool},u.__docgenInfo={description:"Storybook add-on panel for theme switcher.",methods:[],displayName:"ThemesSwitcher",props:{active:{type:{name:"bool"},required:!1,description:""}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES[".storybook/themeAddon/ThemeSwitcher.js"]={name:"ThemesSwitcher",docgenInfo:u.__docgenInfo,path:".storybook/themeAddon/ThemeSwitcher.js"});var p="".concat("themes-addon","/panel");a.addons.register("themes-addon",(function(e){a.addons.add(p,{type:a.types.PANEL,title:"Theme Switcher",render:function(t){var n=t.active,r=t.key;return o.a.createElement(i.AddonPanel,{active:n,key:r},o.a.createElement(u,{api:e,active:n}))},paramKey:"themes-addon"})}))},512:function(e,t,n){n(513),n(1182),n(1129),e.exports=n(1131)},569:function(e,t){}},[[512,1,2]]]);