"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[6266],{35978:(e,n,t)=>{t.d(n,{j:()=>s});t(7651),t(14551),t(47994);var r=t(69863),i=t(56052),a=t(87320),o=t(86070),s=function(e){var n=e.name,t=e.uri,s=e.images,l=e.isHero,c=e.testId,u=e.description,d=e.index,v=e.requestId,p=e.color,m=e.variant;return(0,o.jsx)(r.Z,{variant:m,index:d,featureIdentifier:"artist_concerts",headerText:n,uri:t,isPlayable:!1,renderCardImage:function(){return(0,o.jsx)(i.M,{isHero:l,images:s,color:p})},renderSubHeaderContent:function(){return(0,o.jsx)(a.c,{isHero:l,children:(0,o.jsx)("span",{children:u||""})})},testId:c,requestId:v})}},15660:(e,n,t)=>{t.d(n,{I:()=>O});var r=t(52542),i=(t(7651),t(30456),t(26701),t(34518),t(25550),t(47994),t(37417),t(11737),t(51691),t(702),t(5672),t(43379),t(34192),t(88856),t(51565),t(15342),t(18316),t(30758)),a=t(13534),o=t(22976),s=t(51569),l=t(67133),c=t(64171),u=t(73026),d=t(57563),v=t(13709),p=t(92107),m=t(12574),f=t(18809);const g="qFPnB4YPwJKBtmDadHJw",h="L1GB_UgpHH55rJC7bJSu",b="lwTOVx_hzbLLqRQNjpWq",x="fBzAZ8QqBJZ7jOCE9rR0",j="Cy4PWlzIF5qb7_LdHssZ";var w=t(86070);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n{t.r(n),t.d(n,{BrowsePage:()=>Me});t(25550),t(15342);var r=t(30758),i=t(97500),a=t.n(i),o=t(13856),s=t(92107),l=t(867),c=t(45625),u=t(52542),d=t(12341),v=(t(78551),t(82467),t(75234)),p=t(15305),m=t(93493),f=t(43772),g=t(15985),h=t(17067),b=t(85925),x=t(93051),j=t(85726),w=t(26298),y=t(29212),_=t(82316),A=t(6963),I=t(79916),k=t(13758);const S="VeW1uY4VBMOicrBiaZg0",N="XkaqHstcRovRFsrux1ac",O="EIeLyF5kZi61KstXcsiW",C="jwA8Axf63p61s9L8ouKX",P="pShBHEJpyqHapxGoa1dO",R="X448TFrTgJhLvjGJL8xZ",E="oE6z561GCOowoF4xd9YK",L="I7Ifs1u3PsGytdeBiOxi",B="OAupwE_S9CKJQqHZlykD",D="ppy0oeDpOgQ0VLPmesPi",T="qOq3C2XGuRp_5iY9qN2_";var M=t(86070),U=function(e){return e[e.DEFAULT=0]="DEFAULT",e[e.SMALL=1]="SMALL",e}({}),F=function(e){return e.ANDROID="https://play.google.com/store/apps/details?id=com.spotify.music",e.IOS="https://apps.apple.com/app/spotify-music/id324684580",e}(F||{}),q=[g.h.de,g.h.fi,g.h.frCA,g.h.hu,g.h.it,g.h.ms,g.h.pl],H=r.memo((function(e){return(0,M.jsx)("span",{children:(0,M.jsx)("h3",{className:E,children:e.children})})})),z=function(e){return e.split("
").map((function(e,n){return(0,M.jsxs)(r.Fragment,{children:[e," ",(0,M.jsx)("br",{})]},n)}))},W=function(e){var n,t=e.locale,r=e.isAnonymous,i=e.isEligible;!r&&i?n=z(s.Ru.get("wrapped.logged_in_and_eligible.description.2022")):r||i?n=z(s.Ru.get("wrapped.logged_out_or_eligible.description.2022")):r||i||(n=z(s.Ru.get("wrapped.ineligible.description.2022")));var o=(0,j.vh)();function l(e,n){var t={category:"wrapped_hub_2021",action:"click",label:"app_store_".concat(n),destination_url:e,os:(0,y.f)()},i=r?(0,p.Z)(t):(0,v.Q)(t);o.send(i)}return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(H,{children:n}),(0,M.jsxs)("div",{className:a()(T),"data-testid":"app-store-icons",children:[(0,M.jsx)(x.N,{to:F.IOS,target:"_blank",onClick:function(){return l(F.IOS,"apple")},children:(0,M.jsx)("img",{src:(0,f.b)((0,w.f)(t)),alt:"Apple app store icon",className:P})}),(0,M.jsx)(x.N,{to:F.ANDROID,target:"_blank",onClick:function(){return l(F.ANDROID,"android")},children:(0,M.jsx)("img",{src:(0,f.b)((0,w.A)(t)),alt:"Google play store icon",className:a()(P,R)})})]})]})},V=function(e){var n=e.isAnonymous,t=e.locale,i=(0,r.useState)(),a=(0,d.A)(i,2),o=a[0],s=a[1],l=(0,A.A9)();return(0,r.useEffect)((function(){var e;n?s(!1):(e=l,e.build().withHost(_.mm).withMethod("GET").withPath("/campaigns/wrapped/consumer/eligible").withEndpointIdentifier("/campaigns/wrapped/").withoutMarket().send()).then((function(e){s(e.body.isEligible)})).catch((function(){return s(!1)}))}),[n,l,s]),void 0===o?null:(0,M.jsx)(W,{isEligible:o,isAnonymous:n,locale:t})},Z=function(e){var n=e.title,t=void 0===n?s.Ru.get("wrapped.title.2022"):n,i=e.size,o=void 0===i?U.DEFAULT:i,l=e.isAnonymous,c=void 0===l||l,d=(0,r.useRef)(null),v=s.Ru.getLocaleForTranslation(),p=q.includes(v)?D:"";return(0,M.jsxs)("div",{ref:d,className:a()(k.A.container,(0,u.A)({},k.A.smallHeader,o===U.SMALL),S),style:{"--background-url":"url(".concat((0,f.b)("images/2022_wrapped_web_hub_banner.svg"),")"),"--background-url-rtl":"url(".concat((0,f.b)("images/2022_wrapped_web_hub_banner_rtl.svg"),")")},children:[(0,M.jsx)("div",{"data-testid":"background-color",className:a()(k.A.background,k.A.gradient)}),(0,M.jsx)("div",{className:a()(k.A.background,N)}),(0,M.jsx)("div",{className:k.A.background}),(0,M.jsx)(h.h,{children:(0,M.jsx)(b.X,{text:t})}),(0,M.jsxs)("div",{className:a()(O),children:[(0,M.jsxs)("div",{className:a()(k.A.headerText,C),children:[(0,M.jsx)("h1",{className:a()(B,p),children:z(t)}),(0,M.jsx)(V,{locale:v,isAnonymous:c})]}),(0,M.jsx)("div",{className:a()(L)})]})]})},J=t(44206),K=t(23100),G=t(13534),Y=t(9754),Q=t(33598),X=t(88420),$=t(14546);const ee="Liif5fNYkY903HPAQd1N",ne="OjUWe9nnXRVfiwFlk0WM",te="N_8iI7NKHP0iG2jp3g0R",re="xkCWPUwdmCt8oQvZqtyL";var ie=function(e){var n=e.images,t=e.color,r=void 0===t?K.vyq:t,i=e.title,a=e.subtitle,o=0===n.length?Y.K.SMALL:Y.K.DEFAULT;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(Y.z,{backgroundImages:n,backgroundColor:r,size:o,children:[(0,M.jsx)(h.h,{children:i?(0,M.jsx)(b.X,{text:i}):null}),(0,M.jsxs)(Q.Y,{children:[i?(0,M.jsx)(X.mm,{children:i}):null,a&&(0,M.jsx)(G.E,{variant:"bodySmall",className:re,children:a})]})]}),(0,M.jsx)($.f,{color:r})]})},ae=(t(30456),t(43379),t(34192),t(88856),t(36085)),oe=t(89255),se=t(14955),le=t(2378),ce=t(8763);const ue={chips:"FvuGb_9dchkiN5fJY0SI",chip:"KxlMRH95uJIcfJiNcZgg"};function de(e){var n=e.section;return(0,M.jsx)("div",{className:ue.chips,children:n.sectionItems.items.map((function(e){return function(e){var n;return"BrowseSectionContainerWrapper"===e.content.__typename&&"BrowseSectionContainer"===e.content.data.__typename&&null!==(n=e.content.data.data)&&void 0!==n&&null!==(n=n.cardRepresentation)&&void 0!==n&&null!==(n=n.title)&&void 0!==n&&n.transformedLabel?(0,M.jsx)(x.N,{to:(0,ce.K)(e.uri)||"",children:(0,M.jsxs)(oe.v,{className:ue.chip,children:[(0,M.jsx)(se.Z,{variant:"mestoBold",children:e.content.data.data.cardRepresentation.title.transformedLabel}),(0,M.jsx)(le.V,{size:"xsmall"})]},e.uri)}):null}(e)}))})}var ve=t(97887),pe=t(80366);function me(e){var n,t=(0,pe.o_)(e,{parseUnknown:!0}),r=null!==(n=null==t?void 0:t.args)&&void 0!==n?n:[],i=(0,d.A)(r,2),a=i[0],o=i[1];if(o&&"section"===a)return"/genre/section".concat(o)}var fe=t(33828),ge=t(68040),he=t(71104),be=t(82704),xe=function(e){var n,t,i,a,o,s,l,c,u,d=e.section,v=e.position,p=e.showAll,m=(0,r.useMemo)((function(){return d.sectionItems.items.map((function(e,n){return(0,ve.W)(e,n)})).filter(he.P)}),[d.sectionItems.items]);switch(null===(n=d.data)||void 0===n?void 0:n.__typename){case"BrowseGenericSectionData":return(0,M.jsx)(ae.p,{title:null!==(t=null===(i=d.data)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.transformedLabel)&&void 0!==t?t:"",subtitle:null!==(a=null===(o=d.data)||void 0===o||null===(o=o.subtitle)||void 0===o?void 0:o.transformedLabel)&&void 0!==a?a:"",total:d.sectionItems.totalCount,seeAllUri:me(d.uri),index:v,id:d.uri,showAll:p,children:m});case"BrowseGridSectionData":return(0,M.jsx)(fe.x,{config:(0,ge.s1)(ge.yV.BROWSE),children:(0,M.jsx)(ae.p,{title:null!==(s=null===(l=d.data)||void 0===l||null===(l=l.title)||void 0===l?void 0:l.transformedLabel)&&void 0!==s?s:"",subtitle:null!==(c=null===(u=d.data)||void 0===u||null===(u=u.subtitle)||void 0===u?void 0:u.transformedLabel)&&void 0!==c?c:"",total:d.sectionItems.totalCount,index:v,id:d.uri,seeAllUri:d.targetLocation?(0,ce.K)(d.targetLocation):void 0,showAll:!0,children:m})});case"BrowseRelatedSectionData":return(0,M.jsx)(de,{section:d},d.uri);case"BrowseSingleItemSectionData":case"BrowseUnsupportedSectionData":case void 0:return null;default:return(0,be.k)(d.data),null}},je=t(14063),we=t(38392),ye=function(e){var n,t,r,i=e.uri,a=e.fallback,o=(0,je.D)(i),s=o.section,l=o.error,c=o.fetchNextItems,u=null==s||null===(n=s.data)||void 0===n||null===(n=n.title)||void 0===n?void 0:n.transformedLabel,d=null==s||null===(t=s.data)||void 0===t||null===(t=t.subtitle)||void 0===t?void 0:t.transformedLabel,v=null!==(r=null==s?void 0:s.sectionItems.items)&&void 0!==r?r:[];return 0===v.length||null!==l?a():(0,M.jsx)(we._,{onReachBottom:c,children:(0,M.jsx)(fe.x,{config:(0,ge.s1)(ge.yV.BROWSE),children:(0,M.jsx)(ae.p,{title:u,subtitle:d,index:0,id:i,showAll:!0,children:v.map((function(e,n){return(0,ve.W)(e,n)}))})})})},_e=t(85093),Ae=t(62822),Ie=(t(7651),t(14551),t(9267),t(184),t(42486),t(83234),t(86746),t(45434),t(79024),t(38408),t(70750),t(68216),t(47994),t(2823),t(65594),t(78397),t(97460),t(80456),t(93577),t(93091)),ke=t.n(Ie),Se=t(70087),Ne=t(93806),Oe=t(10221),Ce=t(86295),Pe=(t(87718),new Ce.l("browsePage","query","177a4ae12a90e35d335f060216ce5df7864a228c6ca262bd5ed90b37c2419dd9",null)),Re=t(75355),Ee=t(68576);function Le(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Be(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Be(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw a}}}}function Be(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t{t.r(n),t.d(n,{BrowseSection:()=>b});t(25550),t(15342);var r=t(30758),i=t(97500),a=t.n(i),o=t(38195),s=t(13856),l=t(92107),c=t(45625),u=t(44206),d=t(36085),v=t(97887),p=t(14063),m=t(38392),f=t(12574);const g="aPpfDTG5LqJdHqdwKljP";var h=t(86070),b=function(e){var n,t,i,b=e.uri,x=(0,p.D)(b),j=x.section,w=x.error,y=x.fetchNextItems,_=(0,f.r)(s.M,{data:{identifier:b,uri:b}}),A=_.spec,I=_.UBIFragment,k=(0,r.useMemo)((function(){return A.shelvesFactory()}),[A]),S=null==j||null===(n=j.data)||void 0===n||null===(n=n.title)||void 0===n?void 0:n.transformedLabel,N=null==j||null===(t=j.data)||void 0===t||null===(t=t.subtitle)||void 0===t?void 0:t.transformedLabel,O=null!==(i=null==j?void 0:j.sectionItems.items)&&void 0!==i?i:[];return 0===O.length||null!==w?(0,h.jsx)(u.LoadingPage,{hasError:null!==w,errorMessage:l.Ru.get("error.generic")}):(0,h.jsxs)(I,{spec:A,children:[(0,h.jsx)(c.Q,{children:null!=S?S:l.Ru.get("browse")}),(0,h.jsx)(I,{spec:k,children:(0,h.jsx)("div",{className:a()("contentSpacing",g),children:(0,h.jsx)(m._,{onReachBottom:y,children:(0,h.jsx)(d.p,{title:null!=S?S:"",subtitle:null!=N?N:"",index:0,id:b,rowGap:o.lT,showAll:!0,fullPage:!0,children:O.map((function(e,n){return(0,v.W)(e,n)}))})})})})]})}},61918:(e,n,t)=>{t.d(n,{r:()=>b});var r=t(30758),i=t(23100),a=t(13534),o=t(1574),s=t(80366),l=t(93051),c=t(43980),u=t(12574);const d="CqCtb3wr4SK8AiZwxeH0",v="IGCDq9qa08JVVY3mcy7Y",p="Vn9yz8P5MjIvDT8c0U6w",m="MtV402NmdUF5mceSD0Dy",f="WDC2Yzs811n7JCYtYQzc";var g=t(86070),h=i.l0o,b=function(e){var n=e.title,t=e.imageUrl,i=e.viewId,b=e.pageId,x=e.color,j=void 0===x?h:x,w=e.href,y=e.index,_=e.ubiId,A=i&&"/genre/".concat(i)||w||"#",I=(0,u.r)(o.b,{data:{position:y,identifier:_}}),k=I.spec,S=I.logger,N=(0,r.useCallback)((function(){var e,n=null===(e=(0,s.o_)(A))||void 0===e?void 0:e.toURI();n&&S.logInteraction(k.hitUiNavigate({destination:n}))}),[S,k,A]);return(0,g.jsx)("div",{className:v,children:(0,g.jsx)(l.N,{to:A,pageId:b,className:d,onClick:N,children:(0,g.jsxs)("div",{className:p,style:{backgroundColor:j},children:[t?(0,g.jsx)(c._,{loading:"lazy",src:t,className:f}):null,(0,g.jsx)(a.E,{variant:"titleSmall",className:m,children:n})]})})})}},97887:(e,n,t)=>{t.d(n,{W:()=>U});t(7651),t(14551),t(34518),t(25550),t(47994),t(15342);var r=t(80366),i=t(92107),a=t(78808),o=t(15992),s=t(35978),l=t(83827),c=(t(30456),t(26701),t(37417),t(11737),t(51691),t(702),t(5672),t(43379),t(34192),t(88856),t(51565),t(18316),t(52542)),u=t(30758),d=t(14509),v=t(1574),p=t(69863),m=t(56052),f=t(93051),g=t(60256),h=t(12574);const b="wuuw429FZl5mL_INxPTs";var x=t(86070);function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var w=function(e){var n=e.title,t=e.uri,i=e.images,a=e.href,o=e.index,s=e.ubiId,l=e.variant,w=(0,h.r)(v.b,{data:{position:o,identifier:s}}),y=w.spec,_=w.logger,A=(0,u.useCallback)((function(){var e,n=null===(e=(0,r.o_)(a))||void 0===e?void 0:e.toURI();n&&_.logInteraction(y.hitUiNavigate({destination:n}))}),[_,y,a]),I=(0,g.t)(y);return(0,x.jsx)(f.N,{to:a,onClick:A,ref:I,children:(0,x.jsx)(p.Z,{variant:l,index:o,onClick:A,headerText:n,featureIdentifier:"unknown",isPlayable:!1,delegateNavigation:!0,uri:t,className:b,renderCardImage:function(){return(0,x.jsx)(m.M,{images:i,FallbackComponent:function(e){return(0,x.jsx)(d.e,function(e){for(var n=1;n{t.d(n,{K:()=>a});var r=t(12341),i=t(80366);function a(e){var n,t=(0,i.o_)(e,{parseUnknown:!0}),a=null!==(n=null==t?void 0:t.args)&&void 0!==n?n:[],o=(0,r.A)(a,2),s=o[0],l=o[1];if(l&&"page"===s)return"/genre/".concat(l)}},38392:(e,n,t)=>{t.d(n,{_:()=>d});var r=t(52542),i=t(30758),a=t(57574),o=t(97500),s=t.n(o);const l="eqw9lvuoZHrkWMTdyTpY",c="lb08f71wES9AQnKx6e0R";var u=t(86070),d=i.memo((function(e){var n=e.triggerOnInitialLoad,t=void 0!==n&&n,o=e.onReachBottom,d=e.showScrollbar,v=void 0===d||d,p=e.horizontalScroll,m=void 0!==p&&p,f=e.className,g=(0,a.Wx)({initialInView:t}),h=g.ref,b=g.inView;return(0,i.useEffect)((function(){b&&o&&o()}),[b,o]),(0,u.jsxs)("div",{className:s()((0,r.A)((0,r.A)({},c,!v),l,m),f),"data-testid":"infinite-scroll-list",children:[e.children,(0,u.jsx)("div",{ref:h})]})}))},93806:(e,n,t)=>{t.d(n,{PG:()=>i,f8:()=>o,oC:()=>r,s8:()=>a});var r=s(120),i=s(30),a=s(60),o=s(15);function s(e){return 60*e*1e3}},10221:(e,n,t)=>{t.d(n,{RS:()=>i,f0:()=>o,o8:()=>a});t(25550),t(15342);var r=t(82704);function i(e){return{url:e.url,width:e.width,height:e.height}}function a(e){if("Episode"===e.__typename){var n,t,r=e.podcastV2.data;return"Podcast"!==r.__typename?[]:null!==(n=null===(t=r.coverArt)||void 0===t?void 0:t.sources.map(i))&&void 0!==n?n:[]}return[]}function o(e){var n,t,a,o,s,l,c,u,d,v,p,m,f,g,h,b,x,j;switch(e.__typename){case"Artist":return null!==(n=null===(t=e.visuals.avatarImage)||void 0===t?void 0:t.sources.map(i))&&void 0!==n?n:[];case"Album":case"Audiobook":case"Podcast":case"Episode":case"Chapter":return null!==(a=null===(o=e.coverArt)||void 0===o?void 0:o.sources.map(i))&&void 0!==a?a:[];case"Track":return null!==(s=null===(l=e.albumOfTrack)||void 0===l||null===(l=l.coverArt)||void 0===l?void 0:l.sources.map(i))&&void 0!==s?s:[];case"Playlist":return null!==(c=null===(u=e.images.items[0])||void 0===u?void 0:u.sources.map(i))&&void 0!==c?c:[];case"User":return null!==(d=null===(v=e.avatar)||void 0===v?void 0:v.sources.map(i))&&void 0!==d?d:[];case"Merch":return null!==(p=null===(m=e.image)||void 0===m?void 0:m.sources.map(i))&&void 0!==p?p:[];case"ArtistConcerts":var w,y,_=e.mainArtist.data;return"Artist"!==_.__typename?[]:null!==(w=null===(y=_.visuals.avatarImage)||void 0===y?void 0:y.sources.map(i))&&void 0!==w?w:[];case"BrowseSectionContainer":return null!==(f=null===(g=e.data)||void 0===g||null===(g=g.cardRepresentation)||void 0===g||null===(g=g.artwork)||void 0===g?void 0:g.sources.map(i))&&void 0!==f?f:[];case"BrowseClientFeature":return null!==(h=null!==(b=null===(x=e.artwork)||void 0===x?void 0:x.sources.map(i))&&void 0!==b?b:null===(j=e.iconOverlay)||void 0===j?void 0:j.sources.map(i))&&void 0!==h?h:[];case"GenericError":case"NotFound":case"RestrictedContent":case"BrowseSpacesHub":case"BrowseExternalHref":return[];default:return(0,r.k)(e),[]}}},14063:(e,n,t)=>{t.d(n,{D:()=>g});var r=t(85093),i=t(62822),a=(t(83234),t(38408),t(43379),t(34192),t(80456),t(93091)),o=t.n(a),s=t(30758),l=t(70087),c=t(93806),u=t(86295),d=(t(87718),new u.l("browseSection","query","8cb45a0fea4341b810e6f16ed2832c7ef9d3099aaf0034ee2a0ce49afbe42748",null)),v=t(75355),p=t(68576),m=t(82704),f=t(52562),g=function(e){var n=(0,s.useContext)(v.j).request,t=(0,l.q)({queryKey:["browse","section",e,{numberOfItems:20}],queryFn:function(t){var r=t.pageParam;return(0,p.c)(n,d,function(e,n,t){return{pagination:{offset:n,limit:t},uri:e}}(e,r,20))},gcTime:c.s8,staleTime:c.f8,initialPageParam:0,getNextPageParam:function(e){var n;if("BrowseSection"===(null==e||null===(n=e.data)||void 0===n||null===(n=n.browseSection)||void 0===n?void 0:n.__typename))return e.data.browseSection.sectionItems.pagingInfo.nextOffset&&e.data.browseSection.sectionItems.pagingInfo.nextOffset>0?e.data.browseSection.sectionItems.pagingInfo.nextOffset:void 0}}),a=t.data,u=t.isLoading,g=t.error,h=t.fetchNextPage,b=(0,s.useCallback)((0,i.A)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:case"end":return e.stop()}}),e)}))),[h]);return{section:(0,s.useMemo)((function(){return null!=a&&a.pages?a.pages.reduce((function(e,n){var t;if(null==n||null===(t=n.data)||void 0===t||!t.browseSection)return e;switch(n.data.browseSection.__typename){case"BrowseSection":return null===e?(0,f.h)(n.data.browseSection):(e.sectionItems.items=[].concat((0,r.A)(e.sectionItems.items),(0,r.A)(n.data.browseSection.sectionItems.items)),e);case"GenericError":case"NotFound":return e;default:return(0,m.k)(n.data.browseSection),e}}),null):null}),[null==a?void 0:a.pages]),error:g,loading:u,fetchNextItems:b}}},14546:(e,n,t)=>{t.d(n,{f:()=>s,z:()=>o});var r=t(30758),i=t(23100),a=t(19424);function o(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.l0o,t=(0,a.as)();return(0,r.useEffect)((function(){return e&&t((0,a.Mo)(e)),function(){t((0,a.Hf)())}}),[e,t]),e||n}var s=function(e){return o(e.color,e.fallbackColor),null}},26298:(e,n,t)=>{t.d(n,{A:()=>o,f:()=>a});t(78551);var r=["ar","az","bg","cs_CZ","da","de","ee","el","en","es","es_mx","fi","fp","fr","fr_ca","he","hu","id","it","ja","ko","lt","lv","ms","mt","nb","nl","pl","pt","pt_br","ro","ru","sk","sl","sv","th_TH","tr","vi_VN","zh_HANS","zh_HANT"],i=["af","ar","am","az","be","bg","bn","bs","ca","cr","cs_CZ","da","de","el","en","es","es_419","et","eu","fa","fi","fp","fr","fr_ca","gl","gu","he","hi","hr","hu","hy","id","is","it","ja","ka","kk","km","kn","ko","ky","lo","lt","lv","mk","ml","mn","mr","ms","my","nb","ne","nl","pa","pl","pt","pt_br","ro","ru","si","sk","sl","sq","sr","sv","sw","ta","te","th_TH","tr","ua","ur","uz","vi_VN","zh_HANS","zh_HANT","zh_hk","zu"],a=function(e){var n=r.includes(e)?e:"int";return"images/download-badges/apple/".concat(n,".svg")},o=function(e){var n=i.includes(e)?e:"int";return"images/download-badges/google/".concat(n,".svg")}},52562:(e,n,t)=>{t.d(n,{h:()=>i});var r=t(37005);t(42486),t(79024),t(26851),t(9750),t(71425),t(5672),t(43379),t(59255),t(20031),t(44967),t(96403),t(83355),t(41214);function i(e){return"object"!==(0,r.A)(e)||null===e?e:window.structuredClone?window.structuredClone(e):JSON.parse(JSON.stringify(e))}}}]); //# sourceMappingURL=browse-v2.js.map