{"version":3,"sources":["webpack:///./content/ncube/nav.yml","webpack:///./src/components/pagination.tsx","webpack:///./src/utils.ts","webpack:///./src/components/sidebar-section.tsx","webpack:///./src/components/sidebar-content.tsx","webpack:///./node_modules/react-feather/dist/icons/x.js","webpack:///./node_modules/react-feather/dist/icons/menu.js","webpack:///./src/components/sidebar-mobile.tsx","webpack:///./src/components/layout.tsx","webpack:///./src/templates/template.tsx","webpack:///./content/sugarcube/nav.yml"],"names":["module","exports","Pagination","prev","next","prevArticle","undefined","className","to","slug","title","nextArticle","sugarcubeSections","sugarcubeNav","map","item","directory","ncubeSections","ncubeNav","SidebarSection","sections","items","t","isCurrent","key","c","SidebarContent","root","location","pathname","startsWith","pages","useStaticQuery","allMdx","edges","entries","subSections","reduce","memo","node","find","page","path","fields","concat","frontmatter","_extends","Object","assign","target","i","arguments","length","source","prototype","hasOwnProperty","call","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","props","color","size","otherProps","createElement","xmlns","width","height","viewBox","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","x1","y1","x2","y2","defaultProps","SidebarMobile","useState","sidebarExpanded","setSidebarExpanded","clickHandler","menuButton","onClick","onKeyPress","role","tabIndex","sidebar","Layout","children","nextDoc","RegExp","test","prevDoc","hasPager","queries","small","big","matches","components","h1","style","h2","h3","pre","code","language","replace","pageQuery","PageTemplate","mdx","data","window","body"],"mappings":"6EAAAA,EAAOC,QAAU,CAAC,CAAC,MAAQ,cAAc,MAAQ,CAAC,CAAC,KAAO,SAAS,CAAC,KAAO,gBAAgB,CAAC,KAAO,cAAc,CAAC,MAAQ,SAAS,MAAQ,CAAC,CAAC,KAAO,eAAe,CAAC,KAAO,eAAe,CAAC,KAAO,gB,yPCwCnLC,EAhCI,SAAC,GAAkC,IAAjCC,EAAiC,EAAjCA,KAAMC,EAA2B,EAA3BA,KACnBC,OACKC,IAATH,EACE,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c08478.js","sourcesContent":["module.exports = [{\"title\":\"Get Started\",\"items\":[{\"slug\":\"about\"},{\"slug\":\"installation\"},{\"slug\":\"tutorial\"}]},{\"title\":\"Guides\",\"items\":[{\"slug\":\"youtube-api\"},{\"slug\":\"twitter-api\"},{\"slug\":\"glossary\"}]}]","import {Link} from \"gatsby\";\nimport React from \"react\";\n\ninterface PaginationProps {\n next?: {slug: string; title: string};\n prev?: {slug: string; title: string};\n}\n\nconst Pagination = ({prev, next}: PaginationProps) => {\n const prevArticle =\n prev === undefined ? (\n \"\"\n ) : (\n