|
|
|
(self.webpackChunkspotify_api_docs=self.webpackChunkspotify_api_docs||[]).push([[4195],{5896:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var o=r(814),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(2389),u=r(7392),d=r(7094),f=r(2466),h="tabList__CuJ",p="tabItem_LNqP";function g(e){var t,r,o=e.lazy,l=e.block,i=e.defaultValue,s=e.values,g=e.groupId,m=e.className,b=a.Children.map(e.children,(function(e){if((0,a.isValidElement)(e)&&"value"in e.props)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.')})),v=null!=s?s:b.map((function(e){var t=e.props;return{value:t.value,label:t.label,attributes:t.attributes}})),w=(0,u.l)(v,(function(e,t){return e.value===t.value}));if(w.length>0)throw new Error('Docusaurus error: Duplicate values "'+w.map((function(e){return e.value})).join(", ")+'" found in <Tabs>. Every value needs to be unique.');var y=null===i?i:null!=(t=null!=i?i:null==(r=b.find((function(e){return e.props.default})))?void 0:r.props.value)?t:b[0].props.value;if(null!==y&&!v.some((function(e){return e.value===y})))throw new Error('Docusaurus error: The <Tabs> has a defaultValue "'+y+'" but none of its children has the corresponding value. Available values are: '+v.map((function(e){return e.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");var k=(0,d.U)(),E=k.tabGroupChoices,x=k.setTabGroupChoices,A=(0,a.useState)(y),C=A[0],z=A[1],_=[],N=(0,f.o5)().blockElementScrollPositionUntilNextRender;if(null!=g){var S=E[g];null!=S&&S!==C&&v.some((function(e){return e.value===S}))&&z(S)}var T=function(e){var t=e.currentTarget,r=_.indexOf(t),o=v[r].value;o!==C&&(N(t),z(o),null!=g&&x(g,String(o)))},I=function(e){var t,r=null;switch(e.key){case"Enter":T(e);break;case"ArrowRight":var o,a=_.indexOf(e.currentTarget)+1;r=null!=(o=_[a])?o:_[0];break;case"ArrowLeft":var n,l=_.indexOf(e.currentTarget)-1;r=null!=(n=_[l])?n:_[_.length-1]}null==(t=r)||t.focus()};return a.createElement("div",{className:(0,n.Z)("tabs-container",h)},a.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,n.Z)("tabs",{"tabs--block":l},m)},v.map((function(e){var t=e.value,r=e.label,o=e.attributes;return a.createElement("li",(0,c.Z)({role:"tab",tabIndex:C===t?0:-1,"aria-selected":C===t,key:t,ref:function(e){return _.push(e)},onKeyDown:I,onClick:T},o,{className:(0,n.Z)("tabs__item",p,null==o?void 0:o.className,{"tabs__item--active":C===t})}),null!=r?r:t)}))),o?(0,a.cloneElement)(b.filter((function(e){return e.props.value===C}))[0],{className:"margin-top--md"}):a.createElement("div",{className:"margin-top--md"},b.map((function(e,t){return(0,a.cloneElement)(e,{key:t,hidden:e.props.value!==C})}))))}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="7.0.0" />\n\x3c!-- Optional Auth module, which includes an embedded HTTP Server for OAuth2 --\x3e\n<PackageReference Include="SpotifyAPI.Web.Auth"
|