-
Notifications
You must be signed in to change notification settings - Fork 1
/
1be78505.80758697.js
1 lines (1 loc) · 5.73 KB
/
1be78505.80758697.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[5,41],{108:function(e,a,t){"use strict";t.r(a);var n=t(0),l=t.n(n),c=t(111),i=t(22),r=t(26),o=t(126),s=t(3),u=t(113),m=t(114),b=t(140),d=t(166),p=t(167),h=t(165),E=t(115),v=t(127),f=t(177),k=t(68),O=t.n(k);const j=(e,a)=>"link"===e.type?Object(m.isSamePath)(e.href,a):"category"===e.type&&e.items.some((e=>j(e,a)));function C({item:e,onItemClick:a,collapsible:t,activePath:c,...i}){const{items:r,label:o}=e,m=j(e,c),b=function(e){const a=Object(n.useRef)(e);return Object(n.useEffect)((()=>{a.current=e}),[e]),a.current}(m),[d,p]=Object(n.useState)((()=>!!t&&(!m&&e.collapsed))),h=Object(n.useRef)(null),[E,v]=Object(n.useState)(void 0),f=(e=!0)=>{var a;v(e?`${null===(a=h.current)||void 0===a?void 0:a.scrollHeight}px`:void 0)};Object(n.useEffect)((()=>{m&&!b&&d&&p(!1)}),[m,b,d]);const k=Object(n.useCallback)((e=>{e.preventDefault(),E||f(),setTimeout((()=>p((e=>!e))),100)}),[E]);return 0===r.length?null:l.a.createElement("li",{className:Object(u.a)("menu__list-item",{"menu__list-item--collapsed":d}),key:o},l.a.createElement("a",Object(s.a)({className:Object(u.a)("menu__link",{"menu__link--sublist":t,"menu__link--active":t&&m,[O.a.menuLinkText]:!t}),onClick:t?k:void 0,href:t?"#!":void 0},i),o),l.a.createElement("ul",{className:"menu__list",ref:h,style:{height:E},onTransitionEnd:()=>{d||f(!1)}},r.map((e=>l.a.createElement(N,{tabIndex:d?"-1":"0",key:e.label,item:e,onItemClick:a,collapsible:t,activePath:c})))))}function g({item:e,onItemClick:a,activePath:t,collapsible:n,...c}){const{href:i,label:r}=e,o=j(e,t);return l.a.createElement("li",{className:"menu__list-item",key:r},l.a.createElement(E.a,Object(s.a)({className:Object(u.a)("menu__link",{"menu__link--active":o}),to:i},Object(v.a)(i)?{isNavLink:!0,exact:!0,onClick:a}:{target:"_blank",rel:"noreferrer noopener"},c),r))}function N(e){switch(e.item.type){case"category":return l.a.createElement(C,e);case"link":default:return l.a.createElement(g,e)}}var _=function({path:e,sidebar:a,sidebarCollapsible:t=!0,onCollapse:c,isHidden:i}){const[r,o]=Object(n.useState)(!1),{navbar:{hideOnScroll:s},hideableSidebar:E}=Object(m.useThemeConfig)(),{isAnnouncementBarClosed:v}=Object(b.a)(),{scrollY:k}=Object(h.a)();Object(d.a)(r);const j=Object(p.a)();return Object(n.useEffect)((()=>{j===p.b.desktop&&o(!1)}),[j]),l.a.createElement("div",{className:Object(u.a)(O.a.sidebar,{[O.a.sidebarWithHideableNavbar]:s,[O.a.sidebarHidden]:i})},s&&l.a.createElement(f.a,{tabIndex:-1,className:O.a.sidebarLogo}),l.a.createElement("div",{className:Object(u.a)("menu","menu--responsive","thin-scrollbar",O.a.menu,{"menu--show":r,[O.a.menuWithAnnouncementBar]:!v&&0===k})},l.a.createElement("button",{"aria-label":r?"Close Menu":"Open Menu","aria-haspopup":"true",className:"button button--secondary button--sm menu__button",type:"button",onClick:()=>{o(!r)}},r?l.a.createElement("span",{className:Object(u.a)(O.a.sidebarMenuIcon,O.a.sidebarMenuCloseIcon)},"\xd7"):l.a.createElement("svg",{"aria-label":"Menu",className:O.a.sidebarMenuIcon,xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 32 32",role:"img",focusable:"false"},l.a.createElement("title",null,"Menu"),l.a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))),l.a.createElement("ul",{className:"menu__list"},a.map((a=>l.a.createElement(N,{key:a.label,item:a,onItemClick:e=>{e.target.blur(),o(!1)},collapsible:t,activePath:e}))))),E&&l.a.createElement("button",{type:"button",title:"Collapse sidebar","aria-label":"Collapse sidebar",className:Object(u.a)("button button--secondary button--outline",O.a.collapseSidebarButton),onClick:c}))},w=t(146),y=t(162),M=t(125),S=t(74),I=t.n(S);function x({currentDocRoute:e,versionMetadata:a,children:t}){var r,s;const{siteConfig:b,isClient:d}=Object(i.default)(),{pluginId:p,permalinkToSidebar:h,docsSidebars:E,version:v}=a,f=h[e.path],k=E[f],[O,j]=Object(n.useState)(!1),[C,g]=Object(n.useState)(!1),N=Object(n.useCallback)((()=>{C&&g(!1),j(!O)}),[C]);return l.a.createElement(o.a,{key:d,searchMetadatas:{version:v,tag:Object(m.docVersionSearchTag)(p,v)}},l.a.createElement("div",{className:I.a.docPage},k&&l.a.createElement("div",{className:Object(u.a)(I.a.docSidebarContainer,{[I.a.docSidebarContainerHidden]:O}),onTransitionEnd:e=>{e.currentTarget.classList.contains(I.a.docSidebarContainer)&&O&&g(!0)},role:"complementary"},l.a.createElement(_,{key:f,sidebar:k,path:e.path,sidebarCollapsible:null===(r=null===(s=b.themeConfig)||void 0===s?void 0:s.sidebarCollapsible)||void 0===r||r,onCollapse:N,isHidden:C}),C&&l.a.createElement("div",{className:I.a.collapsedDocSidebar,title:"Expand sidebar","aria-label":"Expand sidebar",tabIndex:0,role:"button",onKeyDown:N,onClick:N})),l.a.createElement("main",{className:I.a.docMainContainer},l.a.createElement("div",{className:Object(u.a)("container padding-vert--lg",I.a.docItemWrapper,{[I.a.docItemWrapperEnhanced]:O})},l.a.createElement(c.a,{components:w.a},t)))))}a.default=function(e){const{route:{routes:a},versionMetadata:t,location:n}=e,c=a.find((e=>Object(M.matchPath)(n.pathname,e)));return c?l.a.createElement(x,{currentDocRoute:c,versionMetadata:t},Object(r.a)(a)):l.a.createElement(y.default,e)}},162:function(e,a,t){"use strict";t.r(a);var n=t(0),l=t.n(n),c=t(126);a.default=function(){return l.a.createElement(c.a,{title:"Page Not Found"},l.a.createElement("main",{className:"container margin-vert--xl"},l.a.createElement("div",{className:"row"},l.a.createElement("div",{className:"col col--6 col--offset-3"},l.a.createElement("h1",{className:"hero__title"},"Page Not Found"),l.a.createElement("p",null,"We could not find what you were looking for."),l.a.createElement("p",null,"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))}}}]);