Spotify.NET/assets/js/c4f5d8e4.3892d64c.js

2 lines
31 KiB
JavaScript
Raw Normal View History

/*! For license information please see c4f5d8e4.3892d64c.js.LICENSE.txt */
(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[4195],{4415:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var o=r(614),a=r(7294),n=r(6010),l="tabItem_Ymn6";function i(e){var t=e.children,r=e.hidden,o=e.className;return a.createElement("div",{role:"tabpanel",className:(0,n.Z)(l,o),hidden:r},t)}var c=r(7462),s=r(2466),u=r(6550),d=r(1980),f=r(7392),h=r(12);function p(e){return function(e){var t,r;return null!=(t=null==(r=a.Children.map(e,(function(e){if(!e||(0,a.isValidElement)(e)&&(t=e.props)&&"object"==typeof t&&"value"in t)return e;var t;throw new Error("Docusaurus error: Bad <Tabs> child <"+("string"==typeof e.type?e.type:e.type.name)+'>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.')})))?void 0:r.filter(Boolean))?t:[]}(e).map((function(e){var t=e.props;return{value:t.value,label:t.label,attributes:t.attributes,default:t.default}}))}function g(e){var t=e.values,r=e.children;return(0,a.useMemo)((function(){var e=null!=t?t:p(r);return function(e){var t=(0,f.l)(e,(function(e,t){return e.value===t.value}));if(t.length>0)throw new Error('Docusaurus error: Duplicate values "'+t.map((function(e){return e.value})).join(", ")+'" found in <Tabs>. Every value needs to be unique.')}(e),e}),[t,r])}function m(e){var t=e.value;return e.tabValues.some((function(e){return e.value===t}))}function b(e){var t=e.queryString,r=void 0!==t&&t,o=e.groupId,n=(0,u.k6)(),l=function(e){var t=e.queryString,r=void 0!==t&&t,o=e.groupId;if("string"==typeof r)return r;if(!1===r)return null;if(!0===r&&!o)throw new Error('Docusaurus error: The <Tabs> component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return null!=o?o:null}({queryString:r,groupId:o});return[(0,d._X)(l),(0,a.useCallback)((function(e){if(l){var t=new URLSearchParams(n.location.search);t.set(l,e),n.replace(Object.assign({},n.location,{search:t.toString()}))}}),[l,n])]}function v(e){var t,r,o,n,l=e.defaultValue,i=e.queryString,c=void 0!==i&&i,s=e.groupId,u=g(e),d=(0,a.useState)((function(){return function(e){var t,r=e.defaultValue,o=e.tabValues;if(0===o.length)throw new Error("Docusaurus error: the <Tabs> component requires at least one <TabItem> children component");if(r){if(!m({value:r,tabValues:o}))throw new Error('Docusaurus error: The <Tabs> has a defaultValue "'+r+'" but none of its children has the corresponding value. Available values are: '+o.map((function(e){return e.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");return r}var a=null!=(t=o.find((function(e){return e.default})))?t:o[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:l,tabValues:u})})),f=d[0],p=d[1],v=b({queryString:c,groupId:s}),w=v[0],y=v[1],k=(t=function(e){return e?"docusaurus.tab."+e:null}({groupId:s}.groupId),r=(0,h.Nk)(t),o=r[0],n=r[1],[o,(0,a.useCallback)((function(e){t&&n.set(e)}),[t,n])]),E=k[0],x=k[1],A=function(){var e=null!=w?w:E;return m({value:e,tabValues:u})?e:null}();return(0,a.useLayoutEffect)((function(){A&&p(A)}),[A]),{selectedValue:f,selectValue:(0,a.useCallback)((function(e){if(!m({value:e,tabValues:u}))throw new Error("Can't select invalid tab value="+e);p(e),y(e),x(e)}),[y,x,u]),tabValues:u}}var w=r(2389),y="tabList__CuJ",k="tabItem_LNqP";function E(e){var t=e.className,r=e.block,o=e.selectedValue,l=e.selectValue,i=e.tabValues,u=[],d=(0,s.o5)().blockElementScrollPositionUntilNextRender,f=function(e){var t=e.currentTarget,r=u.indexOf(t),a=i[r].value;a!==o&&(d(t),l(a))},h=function(e){var t,r=null;switch(e.key){case"Enter":f(e);break;case"ArrowRight":var o,a=u.indexOf(e.currentTarget)+1;r=null!=(o=u[a])?o:u[0];break;case"ArrowLeft":var n,l=u.indexOf(e.currentTarget)-1;r=null!=(n=u[l])?n:u[u.length-1]}null==(t=r)||t.focus()};return a.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,n.Z)("tabs",{"tabs--block":r},t)},i.map((function(e){v