Spotify.NET/assets/js/c4f5d8e4.0aba352c.js

2 lines
28 KiB
JavaScript
Raw Normal View History

/*! For license information please see c4f5d8e4.0aba352c.js.LICENSE.txt */
(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[4195],{7386:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var o=r(5710),a=r(7294),n=r(6010),l="tabItem_OmH5";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(2389),d=r(7392),u=r(7094),h=r(2466),f="tabList_uSqn",p="tabItem_LplD";function g(e){var t,r,o,l=e.lazy,i=e.block,s=e.defaultValue,g=e.values,m=e.groupId,b=e.className,v=a.Children.map(e.children,(function(e){if((0,a.isValidElement)(e)&&void 0!==e.props.value)return e;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.')})),w=null!=g?g:v.map((function(e){var t=e.props;return{value:t.value,label:t.label,attributes:t.attributes}})),y=(0,d.l)(w,(function(e,t){return e.value===t.value}));if(y.length>0)throw new Error('Docusaurus error: Duplicate values "'+y.map((function(e){return e.value})).join(", ")+'" found in <Tabs>. Every value needs to be unique.');var k=null===s?s:null!=(t=null!=s?s:null==(r=v.find((function(e){return e.props.default})))?void 0:r.props.value)?t:null==(o=v[0])?void 0:o.props.value;if(null!==k&&!w.some((function(e){return e.value===k})))throw new Error('Docusaurus error: The <Tabs> has a defaultValue "'+k+'" but none of its children has the corresponding value. Available values are: '+w.map((function(e){return e.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");var E=(0,u.U)(),x=E.tabGroupChoices,A=E.setTabGroupChoices,C=(0,a.useState)(k),z=C[0],_=C[1],N=[],S=(0,h.o5)().blockElementScrollPositionUntilNextRender;if(null!=m){var T=x[m];null!=T&&T!==z&&w.some((function(e){return e.value===T}))&&_(T)}var I=function(e){var t=e.currentTarget,r=N.indexOf(t),o=w[r].value;o!==z&&(S(t),_(o),null!=m&&A(m,o))},F=function(e){var t,r=null;switch(e.key){case"ArrowRight":var o=N.indexOf(e.currentTarget)+1;r=N[o]||N[0];break;case"ArrowLeft":var a=N.indexOf(e.currentTarget)-1;r=N[a]||N[N.length-1]}null==(t=r)||t.focus()};return a.createElement("div",{className:(0,n.Z)("tabs-container",f)},a.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,n.Z)("tabs",{"tabs--block":i},b)},w.map((function(e){var t=e.value,r=e.label,o=e.attributes;return a.createElement("li",(0,c.Z)({role:"tab",tabIndex:z===t?0:-1,"aria-selected":z===t,key:t,ref:function(e){return N.push(e)},onKeyDown:F,onFocus:I,onClick:I},o,{className:(0,n.Z)("tabs__item",p,null==o?void 0:o.className,{"tabs__item--active":z===t})}),null!=r?r:t)}))),l?(0,a.cloneElement)(v.filter((function(e){return e.props.value===z}))[0],{className:"margin-top--md"}):a.createElement("div",{className:"margin-top--md"},v.map((function(e,t){return(0,a.cloneElement)(e,{key:t,hidden:e.props.value!==z})}))))}function m(e){var t=(0,s.Z)();return a.createElement(g,(0,c.Z)({key:String(t)},e))}var b=function(){return a.createElement("div",{style:{padding:"10px"}},a.createElement(m,{defaultValue:"cli",values:[{label:".NET CLI",value:"cli"},{label:"Package Manager",value:"nuget"},{label:"Package Reference",value:"reference"}]},a.createElement(i,{value:"cli"},a.createElement(o.Z,{language:"shell",className:"shell"},"dotnet add package SpotifyAPI.Web\n# Optional Auth module, which includes an embedded HTTP Server for OAuth2\ndotnet add package SpotifyAPI.Web.Auth\n")),a.createElement(i,{value:"nuget"},a.createElement(o.Z,{language:"shell",className:"shell"},"Install-Package SpotifyAPI.Web\n# Optional Auth module, which includes an embedded HTTP Server for OAuth2\nInstall-Package SpotifyAPI.Web.Auth\n")),a.createElement(i,{value:"reference"},a.createElement(o.Z,{language:"xml",className:"xml"},'<PackageReference Include="SpotifyAPI.Web" Version="6.2.2" />\n\x3c!-- Optional Auth module, which includes an embedded HTTP Server for OAuth2 --\x3e\n<PackageReference Include="SpotifyAPI.Web.Auth" Version="6.2.2" />\n