mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
"use strict";(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[9514,4972],{9963:function(e,t,n){n.r(t),n.d(t,{default:function(){return ye}});var a=n(7294),r=n(6010),l=n(1944),i=n(5281),o=n(3320),c=n(3791),d=n(4477),s=n(1116),m=n(7961),u=n(5999),b=n(2466),p=n(5936);var v="backToTopButton_sjWU",h="backToTopButtonShow_xfvO";function f(){var e=function(e){var t=e.threshold,n=(0,a.useState)(!1),r=n[0],l=n[1],i=(0,a.useRef)(!1),o=(0,b.Ct)(),c=o.startScroll,d=o.cancelScroll;return(0,b.RF)((function(e,n){var a=e.scrollY,r=null==n?void 0:n.scrollY;r&&(i.current?i.current=!1:a>=r?(d(),l(!1)):a<t?l(!1):a+window.innerHeight<document.documentElement.scrollHeight&&l(!0))})),(0,p.S)((function(e){e.location.hash&&(i.current=!0,l(!1))})),{shown:r,scrollToTop:function(){return c(0)}}}({threshold:300}),t=e.shown,n=e.scrollToTop;return a.createElement("button",{"aria-label":(0,u.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,r.Z)("clean-btn",i.k.common.backToTopButton,v,t&&h),type:"button",onClick:n})}var E=n(1442),g=n(6550),_=n(7524),k=n(6668),C=n(1327),I=n(7462);function S(e){return a.createElement("svg",(0,I.Z)({width:"20",height:"20","aria-hidden":"true"},e),a.createElement("g",{fill:"#7a7a7a"},a.createElement("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),a.createElement("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})))}var N="collapseSidebarButton_PEFL",Z="collapseSidebarButtonIcon_kv0_";function x(e){var t=e.onClick;return a.createElement("button",{type:"button",title:(0,u.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,u.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,r.Z)("button button--secondary button--outline",N),onClick:t},a.createElement(S,{className:Z}))}var y=n(9689),T=n(3366),w=n(9688),L=Symbol("EmptyContext"),A=a.createContext(L);function M(e){var t=e.children,n=(0,a.useState)(null),r=n[0],l=n[1],i=(0,a.useMemo)((function(){return{expandedItem:r,setExpandedItem:l}}),[r]);return a.createElement(A.Provider,{value:i},t)}var B=n(6043),F=n(8596),P=n(9960),H=n(2389),D=["item","onItemClick","activePath","level","index"];function W(e){var t=e.categoryLabel,n=e.onClick;return a.createElement("button",{"aria-label":(0,u.I)({id:"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel",message:"Toggle the collapsible sidebar category '{label}'",description:"The ARIA label to toggle the collapsible sidebar category"},{label:t}),type:"button",className:"clean-btn menu__caret",onClick:n})}function R(e){var t=e.item,n=e.onItemClick,l=e.activePath,o=e.level,d=e.index,s=(0,T.Z)(e,D),m=t.items,u=t.label,b=t.collapsible,p=t.className,v=t.href,h=(0,k.L)().docs.sidebar.autoCollapseCategories,f=function(e){var t=(0,H.Z)();return(0,a.useMemo)((function(){return e.href?e.href:!t&&e.collapsible?(0,c.Wl)(e):void 0}),[e,t])}(t),E=(0,c._F)(t,l),g=(0,F.Mg)(v,l),_=(0,B.u)({initialState:function(){return!!b&&(!E&&t.collapsed)}}),C=_.collapsed,S=_.setCollapsed,N=function(){var e=(0,a.useContext)(A);if(e===L)throw new w.i6("DocSidebarItemsExpandedStateProvider");return e}(),Z=N.expandedItem,x=N.setExpandedItem,y=function(e){void 0===e&&(e=!C),x(e?null:d),S(e)};return function(e){var t=e.isActive,n=e.collapsed,r=e.updateCollapsed,l=(0,w.D9)(t);(0,a.useEffect)((function(){t&&!l&&n&&r(!1)}),[t,l,n,r])}({isActive:E,collapsed:C,updateCollapsed:y}),(0,a.useEffect)((function(){b&&null!=Z&&Z!==d&&h&&S(!0)}),[b,Z,d,S,h]),a.createElement("li",{className:(0,r.Z)(i.k.docs.docSidebarItemCategory,i.k.docs.docSidebarItemCategoryLevel(o),"menu__list-item",{"menu__list-item--collapsed":C},p)},a.createElement("div",{className:(0,r.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":g})},a.createElement(P.Z,(0,I.Z)({className:(0,r.Z)("menu__link",{"menu__link--sublist":b,"menu__link--sublist-caret":!v&&b,"menu__link--active":E}),onClick:b?function(e){null==n||n(t),v?y(!1):(e.preventDefault(),y())}:function(){null==n||n(t)},"aria-current":g?"page":void 0,"aria-expanded":b?!C:void 0,href:b?null!=f?f:"#":f},s),u),v&&b&&a.createElement(W,{categoryLabel:u,onClick:function(e){e.preventDefault(),y()}})),a.createElement(B.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:C},a.createElement(Q,{items:m,tabIndex:C?-1:0,onItemClick:n,activePath:l,level:o+1})))}var V=n(3919),z=n(9471),U="menuExternalLink_NmtK",K=["item","onItemClick","activePath","level","index"];function j(e){var t=e.item,n=e.onItemClick,l=e.activePath,o=e.level,d=(e.index,(0,T.Z)(e,K)),s=t.href,m=t.label,u=t.className,b=t.autoAddBaseUrl,p=(0,c._F)(t,l),v=(0,V.Z)(s);return a.createElement("li",{className:(0,r.Z)(i.k.docs.docSidebarItemLink,i.k.docs.docSidebarItemLinkLevel(o),"menu__list-item",u),key:m},a.createElement(P.Z,(0,I.Z)({className:(0,r.Z)("menu__link",!v&&U,{"menu__link--active":p}),autoAddBaseUrl:b,"aria-current":p?"page":void 0,to:s},v&&{onClick:n?function(){return n(t)}:void 0},d),m,!v&&a.createElement(z.Z,null)))}var q="menuHtmlItem_M9Kj";function G(e){var t=e.item,n=e.level,l=e.index,o=t.value,c=t.defaultStyle,d=t.className;return a.createElement("li",{className:(0,r.Z)(i.k.docs.docSidebarItemLink,i.k.docs.docSidebarItemLinkLevel(n),c&&[q,"menu__list-item"],d),key:l,dangerouslySetInnerHTML:{__html:o}})}var Y=["item"];function O(e){var t=e.item,n=(0,T.Z)(e,Y);switch(t.type){case"category":return a.createElement(R,(0,I.Z)({item:t},n));case"html":return a.createElement(G,(0,I.Z)({item:t},n));default:return a.createElement(j,(0,I.Z)({item:t},n))}}var X=["items"];function J(e){var t=e.items,n=(0,T.Z)(e,X);return a.createElement(M,null,t.map((function(e,t){return a.createElement(O,(0,I.Z)({key:t,item:e,index:t},n))})))}var Q=(0,a.memo)(J),$="menu_SIkG",ee="menuWithAnnouncementBar_GW3s";function te(e){var t=e.path,n=e.sidebar,l=e.className,o=function(){var e=(0,y.nT)().isActive,t=(0,a.useState)(e),n=t[0],r=t[1];return(0,b.RF)((function(t){var n=t.scrollY;e&&r(0===n)}),[e]),e&&n}();return a.createElement("nav",{"aria-label":(0,u.I)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,r.Z)("menu thin-scrollbar",$,o&&ee,l)},a.createElement("ul",{className:(0,r.Z)(i.k.docs.docSidebarMenu,"menu__list")},a.createElement(Q,{items:n,activePath:t,level:1})))}var ne="sidebar_njMd",ae="sidebarWithHideableNavbar_wUlq",re="sidebarHidden_VK0M",le="sidebarLogo_isFc";function ie(e){var t=e.path,n=e.sidebar,l=e.onCollapse,i=e.isHidden,o=(0,k.L)(),c=o.navbar.hideOnScroll,d=o.docs.sidebar.hideable;return a.createElement("div",{className:(0,r.Z)(ne,c&&ae,i&&re)},c&&a.createElement(C.Z,{tabIndex:-1,className:le}),a.createElement(te,{path:t,sidebar:n}),d&&a.createElement(x,{onClick:l}))}var oe=a.memo(ie),ce=n(3102),de=n(3163),se=function(e){var t=e.sidebar,n=e.path,l=(0,de.e)();return a.createElement("ul",{className:(0,r.Z)(i.k.docs.docSidebarMenu,"menu__list")},a.createElement(Q,{items:t,activePath:n,onItemClick:function(e){"category"===e.type&&e.href&&l.toggle(),"link"===e.type&&l.toggle()},level:1}))};function me(e){return a.createElement(ce.Zo,{component:se,props:e})}var ue=a.memo(me);function be(e){var t=(0,_.i)(),n="desktop"===t||"ssr"===t,r="mobile"===t;return a.createElement(a.Fragment,null,n&&a.createElement(oe,e),r&&a.createElement(ue,e))}var pe="expandButton_m80_",ve="expandButtonIcon_BlDH";function he(e){var t=e.toggleSidebar;return a.createElement("div",{className:pe,title:(0,u.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,u.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t},a.createElement(S,{className:ve}))}var fe={docSidebarContainer:"docSidebarContainer_b6E3",docSidebarContainerHidden:"docSidebarContainerHidden_b3ry",sidebarViewport:"sidebarViewport_Xe31"};function Ee(e){var t,n=e.children,r=(0,s.V)();return a.createElement(a.Fragment,{key:null!=(t=null==r?void 0:r.name)?t:"noSidebar"},n)}function ge(e){var t=e.sidebar,n=e.hiddenSidebarContainer,l=e.setHiddenSidebarContainer,o=(0,g.TH)().pathname,c=(0,a.useState)(!1),d=c[0],s=c[1],m=(0,a.useCallback)((function(){d&&s(!1),!d&&(0,E.n)()&&s(!0),l((function(e){return!e}))}),[l,d]);return a.createElement("aside",{className:(0,r.Z)(i.k.docs.docSidebarContainer,fe.docSidebarContainer,n&&fe.docSidebarContainerHidden),onTransitionEnd:function(e){e.currentTarget.classList.contains(fe.docSidebarContainer)&&n&&s(!0)}},a.createElement(Ee,null,a.createElement("div",{className:(0,r.Z)(fe.sidebarViewport,d&&fe.sidebarViewportHidden)},a.createElement(be,{sidebar:t,path:o,onCollapse:m,isHidden:d}),d&&a.createElement(he,{toggleSidebar:m}))))}var _e={docMainContainer:"docMainContainer_gTbr",docMainContainerEnhanced:"docMainContainerEnhanced_Uz_u",docItemWrapperEnhanced:"docItemWrapperEnhanced_czyv"};function ke(e){var t=e.hiddenSidebarContainer,n=e.children,l=(0,s.V)();return a.createElement("main",{className:(0,r.Z)(_e.docMainContainer,(t||!l)&&_e.docMainContainerEnhanced)},a.createElement("div",{className:(0,r.Z)("container padding-top--md padding-bottom--lg",_e.docItemWrapper,t&&_e.docItemWrapperEnhanced)},n))}var Ce="docPage__5DB",Ie="docsWrapper_BCFX";function Se(e){var t=e.children,n=(0,s.V)(),r=(0,a.useState)(!1),l=r[0],i=r[1];return a.createElement(m.Z,{wrapperClassName:Ie},a.createElement(f,null),a.createElement("div",{className:Ce},n&&a.createElement(ge,{sidebar:n.items,hiddenSidebarContainer:l,setHiddenSidebarContainer:i}),a.createElement(ke,{hiddenSidebarContainer:l},t)))}var Ne=n(4972),Ze=n(197);function xe(e){var t=e.versionMetadata;return a.createElement(a.Fragment,null,a.createElement(Ze.Z,{version:t.version,tag:(0,o.os)(t.pluginId,t.version)}),a.createElement(l.d,null,t.noIndex&&a.createElement("meta",{name:"robots",content:"noindex, nofollow"})))}function ye(e){var t=e.versionMetadata,n=(0,c.hI)(e);if(!n)return a.createElement(Ne.default,null);var o=n.docElement,m=n.sidebarName,u=n.sidebarItems;return a.createElement(a.Fragment,null,a.createElement(xe,e),a.createElement(l.FG,{className:(0,r.Z)(i.k.wrapper.docsPages,i.k.page.docsDocPage,e.versionMetadata.className)},a.createElement(d.q,{version:t},a.createElement(s.b,{name:m,items:u},a.createElement(Se,null,o)))))}},4972:function(e,t,n){n.r(t),n.d(t,{default:function(){return o}});var a=n(7294),r=n(5999),l=n(1944),i=n(7961);function o(){return a.createElement(a.Fragment,null,a.createElement(l.d,{title:(0,r.I)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(i.Z,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(r.Z,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(r.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(r.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}},4477:function(e,t,n){n.d(t,{E:function(){return o},q:function(){return i}});var a=n(7294),r=n(9688),l=a.createContext(null);function i(e){var t=e.children,n=e.version;return a.createElement(l.Provider,{value:n},t)}function o(){var e=(0,a.useContext)(l);if(null===e)throw new r.i6("DocsVersionProvider");return e}}}]); |