Spotify.NET/1be78505.0f577e0c.js

1 line
12 KiB
JavaScript
Raw Normal View History

(window.webpackJsonp=window.webpackJsonp||[]).push([[11,8],{149:function(e,t,a){"use strict";a.r(t);a(12);var n=a(0),r=a.n(n),l=a(151),c=a(152),i=a(46),o=a(161),s=a(90),m=a(2),u=a(153),d=a.n(u),p=a(168),b=a(171),f=a(172),E=a(170),g=a(155),h=a(156),v=a(104),y=a.n(v);function N({item:e,onItemClick:t,collapsible:a,activePath:l,...c}){const{items:i,href:o,label:s,type:u}=e,[p,b]=Object(n.useState)(e.collapsed),[f,E]=Object(n.useState)(null);e.collapsed!==f&&(E(e.collapsed),b(e.collapsed));const v=Object(n.useCallback)(e=>{e.preventDefault(),e.target.blur(),b(e=>!e)});switch(u){case"category":return i.length>0&&r.a.createElement("li",{className:d()("menu__list-item",{"menu__list-item--collapsed":p}),key:s},r.a.createElement("a",Object(m.a)({className:d()("menu__link",{"menu__link--sublist":a,"menu__link--active":a&&!e.collapsed}),href:"#!",onClick:a?v:void 0},c),s),r.a.createElement("ul",{className:"menu__list"},i.map(e=>r.a.createElement(N,{tabIndex:p?"-1":"0",key:e.label,item:e,onItemClick:t,collapsible:a,activePath:l}))));case"link":default:return r.a.createElement("li",{className:"menu__list-item",key:s},r.a.createElement(g.a,Object(m.a)({className:d()("menu__link",{"menu__link--active":o===l}),to:o},Object(h.a)(o)?{isNavLink:!0,exact:!0,onClick:t}:{target:"_blank",rel:"noreferrer noopener"},c),s))}}var O=function(e){const[t,a]=Object(n.useState)(!1),{siteConfig:{themeConfig:{navbar:{title:l,hideOnScroll:i=!1}={}}}={},isClient:o}=Object(c.a)(),{logoLink:s,logoLinkProps:u,logoImageUrl:h,logoAlt:v}=Object(f.a)(),{isAnnouncementBarClosed:O}=Object(p.a)(),{scrollY:_}=Object(E.a)(),{docsSidebars:k,path:w,sidebar:j,sidebarCollapsible:C}=e;if(Object(b.a)(t),!j)return null;const x=k[j];if(!x)throw new Error(`Cannot find the sidebar "${j}" in the sidebar config!`);return C&&x.forEach(e=>function e(t,a){const{items:n,href:r,type:l}=t;switch(l){case"category":{const r=n.map(t=>e(t,a)).filter(e=>e).length>0;return t.collapsed=!r,r}case"link":default:return r===a}}(e,w)),r.a.createElement("div",{className:d()(y.a.sidebar,{[y.a.sidebarWithHideableNavbar]:i})},i&&r.a.createElement(g.a,Object(m.a)({tabIndex:"-1",className:y.a.sidebarLogo,to:s},u),null!=h&&r.a.createElement("img",{key:o,src:h,alt:v}),null!=l&&r.a.createElement("strong",null,l)),r.a.createElement("div",{className:d()("menu","menu--responsive",y.a.menu,{"menu--show":t,[y.a.menuWithAnnouncementBar]:!O&&0===_})},r.a.createElement("button",{"aria-label":t?"Close Menu":"Open Menu","aria-haspopup":"true",className:"button button--secondary button--sm menu__button",type:"button",onClick:()=>{a(!t)}},t?r.a.createElement("span",{className:d()(y.a.sidebarMenuIcon,y.a.sidebarMenuCloseIcon)},"\xd7"):r.a.createElement("svg",{"aria-label":"Menu",className:y.a.sidebarMenuIcon,xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 32 32",role:"img",focusable:"false"},r.a.createElement("title",null,"Menu"),r.a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))),r.a.createElement("ul",{className:"menu__list"},x.map(e=>r.a.createElement(N,{key:e.label,item:e,onItemClick:e=>{e.target.blur(),a(!1)},collapsible:C,activePath:w})))))},_=a(162),k=(a(106),a(107)),w=a.n(k);var j=e=>function({id:t,...a}){const{siteConfig:{themeConfig:{navbar:{hideOnScroll:n=!1}={}}={}}={}}=Object(c.a)();return t?r.a.createElement(e,a,r.a.createElement("a",{"aria-hidden":"true",tabIndex:"-1",className:d()("anchor",{[w.a.enhancedAnchor]:!n}),id:t}),a.children,r.a.createElement("a",{"aria-hidden":"true",tabIndex:"-1",className:"hash-link",href:"#"+t,title:"Direct link to heading"},"#")):r.a.createElement(e,a)},C=a(108),x=a.n(C),P={code:e=>{const{children:t}=e;return"string"==typeof t?r.a.createElement(_.a,e):t},a:e=>/\.[^./]+$/.test(e.href)?r.a.createElement("a",e):r.a.createElement(g.a,e),pre:e=>r.a.createElement("div",Object(m.a)({className:x.a.mdxCodeBlock},e)),h1:j("h1"),h2:j("h2"),h3:j("h3"),h4:j("h4"),h5:j("h5"),h6:j("h6")},I=a(166),S=a(169),M=a(109),L=a.n(M);t.default=function(e){const{route:t,docsMetadata:a,location: