text: (window.webpackJsonp=window.webpackJsonp||[]).push([[8],{141:function(e,t,n){"use strict";n.r(t);var o=n(0),s=n.n(o),r=n(454),a=n(266),i=n.n(a),c=(n(52),n(282),n(53),n(283),n(77),n(78),n(285),n(79),n(54),n(76),n(7)),d=n.n(c),l=n(157),u=n(453),m=(n(151),n(167)),f=n.n(m),p=u.a.SubMenu,h=function(e){function t(t){var n;(n=e.call(this,t)||this).findCurrentSection=function(){var e=2;return"docs/"===n.props.docs.edges.find(function(e){return e.node.id===n.props.id}).node.fields.slug&&(e=1),n.state.docsSections.some(function(t){return n.props.docs.edges.find(function(e){return e.node.id===n.props.id}).node.fields.slug.split("/").slice(0,e).join("/")===t.slug})?[n.state.docsSections.find(function(t){return n.props.docs.edges.find(function(e){return e.node.id===n.props.id}).node.fields.slug.split("/").slice(0,e).join("/")===t.slug}).id]:[]},n.compareSections=function(e,t){return e.frontmatter.sort>t.frontmatter.sort?1:t.frontmatter.sort>e.frontmatter.sort?-1:0},n.state={docsSections:[],currentSectionId:""};var o=[];return t.docs.edges.forEach(function(e){var t=e.node.fields.slug.split("/")[1];Object.keys(e.node.fields.slug.split("/")).length<=2?o.push(e.node):(n.state.docsSections.some(function(e){return e.name===t})||n.state.docsSections.push({name:t,slug:"docs/"+t,frontmatter:{sort:0},nodes:[]}),n.state.docsSections.find(function(e){return e.name===t}).nodes.push(e.node))}),o.forEach(function(e){n.state.docsSections.some(function(t){return t.slug===e.fields.slug})?(n.state.docsSections.find(function(t){return t.slug===e.fields.slug}).id=e.id,n.state.docsSections.find(function(t){return t.slug===e.fields.slug}).title=e.frontmatter.title,n.state.docsSections.find(function(t){return t.slug===e.fields.slug}).frontmatter.sort+=e.frontmatter.sort,n.state.docsSections.find(function(t){return t.slug===e.fields.slug}).nodes.unshift(e)):n.state.docsSections.push(e)}),n.state.docsSections=n.state.docsSections.sort(n.compareSections),n}return d()(t,e),t.prototype.render=function(){return s.a.createElement(u.a,{mode:"inline",selectedKeys:[this.props.id],defaultOpenKeys:this.findCurrentSection()},this.state.docsSections.map(function(e){return void 0!==e.nodes?s.a.createElement(p,{key:e.id,title:e.title},e.nodes.map(function(e){return s.a.createElement(u.a.Item,{key:e.id},s.a.createElement(l.Link,{to:"/"+e.fields.slug,className:f.a.navItem},e.frontmatter.title))})):s.a.createElement(u.a.Item,{key:e.id},s.a.createElement(l.Link,{to:"/"+e.fields.slug,className:f.a.navItem},e.frontmatter.title))}))},t}(s.a.Component),g=function(e){var t=e.version;return s.a.createElement("div",{className:f.a.docsVersion},s.a.createElement("span",null,"Jumbo Documentation v",t))},v=r.a.Sider,w=function(e){var t=e.id,n=e.docs,o=e.version;return s.a.createElement(v,{width:300,breakpoint:"md",collapsible:"true",collapsedWidth:0},s.a.createElement(g,{version:o}),s.a.createElement(h,{id:t,docs:n}))},E=n(189),y=n(190),S=n(451),b=n(188),k=n(455),C=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(t=e.call.apply(e,[this].concat(o))||this).state={visible:!1},t.showDrawer=function(){t.setState({visible:!0})},t.closeDrawer=function(){t.setState({visible:!1})},t}return d()(t,e),t.prototype.render=function(){return s.a.createElement("div",{className:f.a.drawerDiv},s.a.createElement(S.a,{shape:"circle",type:"ghost",onClick:this.showDrawer,className:f.a.drawerButton},s.a.createElement(b.a,{type:"menu-unfold"})),s.a.createElement(k.a,{placement:"left",closable:!1,visible:this.state.visible,onClose:this.closeDrawer,title:"Jumbo Docs v"+this.props.version},s.a.createElement(h,{id:this.props.id,docs:this.props.docs})))},t}(s.a.Component),N=n(359),x=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(t=e.call.apply(e,[this].concat(o))||this).type=function(e){switch(t.props.type){case"warning":return f.a.warning;case"tip":return f.a.tip;default:return f.a.info}}(),t.icon=function(e){switch(t.props.type){case"warning":return"warning";case"tip":return"check-circle";default:return"info-circle"}}(),t}return d()(t,e),t.prototype.render=function(){return s.a.createElement("div",{className:[f.a.box,this.type].join(" ")},s.a.createElement(b.a,{type:this.icon,theme:"filled",className:f.a.icon}),s.a.createElement("span",{className:f.a.boxContent},s.a.createElement(N,{source:this.props.text,className:this.props.type})))},t}(o.Component);x.defaultProps={type:"info",text:""};var D=x;n.d(t,"query",function(){return L}),n(436);var I=r.a.Content,j=new i.a({createElement:s.a.createElement,components:{"hint-box":D}}).Compiler,L="1639425734";t.default=function(e){var t=e.data,n=t.markdownRemark,o=t.allMarkdownRemark,a=t.site.siteMetadata.version;return s.a.createElement(r.a,{hasSider:!0},s.a.createElement(w,{id:n.id,docs:o,version:a}),s.a.createElement(C,{id:n.id,docs:o,version:a}),s.a.createElement(r.a,{className:f.a.docsLayout},s.a.createElement(E.a,null),s.a.createElement(I,null,s.a.createElement("div",{className:f.a.markdown},j(n.htmlAst))),s.a.createElement(y.a,null)))}},167:function(e,t,n){e.exports={sider:"docs-module--sider--mMVkg",docsLayout:"docs-module--docs-layout--i6yHq",drawerButton:"docs-module--drawer-button--3tSPW",navItem:"docs-module--nav-item--1CYRy",docsVersion:"docs-module--docs-version--2Ongw",markdown:"docs-module--markdown--1yFWf",drawerDiv:"docs-module--drawer-div--2VNhC",box:"docs-module--box--2eF3r",info:"docs-module--info--O4AY0",warning:"docs-module--warning--2Z4vu",tip:"docs-module--tip--2gh6C",icon:"docs-module--icon--2_N23",boxContent:"docs-module--box-content--mqjXE",antLayoutSiderZeroWidthTrigger:"docs-module--ant-layout-sider-zero-width-trigger--gD4vD"}}}]);
  //# sourceMappingURL=component---src-templates-docs-js-920954b07556c0481e7e.js.map