1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1866,9485],{89224:(e,s,i)=>{i.d(s,{A:()=>n});var t=i(60004);function n(e){let[s,i]=t.useState(e);return t.useEffect(()=>{i(e)},[e]),[s,i]}},89485:(e,s,i)=>{i.r(s),i.d(s,{VideoSlider:()=>b,default:()=>j});var t=i(60072),n=i(60004),r=i(47706),o=i.n(r),l=i(348),a=i(62956),u=i(66388),d=i(62271),c=i(71037),h=i(96997),p=i(89224),f=i(39642),g=i(74110);let b=({baseUrl:e="",showAllLabel:s="",showAllLink:i="",sectionTitle:r="",query:o={},queryVariables:b={},initialVideos:j=[],initialVideosPageInfo:A={},handleShareClick:k=()=>{},linkComponent:v=null})=>{let y=(0,h.A)(),{settings:M}=(0,n.useContext)(f.N),[P,x]=(0,p.A)(j),[C,N]=(0,p.A)(A?.hasNextPage),[T,q]=(0,p.A)(A?.endCursor),{moreMenuProps:w,handleMoreMenuButtonClick:m}=(0,g.U)(),[I,R]=(0,l.IT)({query:o,pause:!0,variables:{...b,after:T,folders:null}}),{data:V,error:E}=I;return(0,n.useEffect)(()=>{let e,s;if(!E&&V){if(V.universalMusic.collection){let{contents:i}=V.universalMusic.collection;e=(0,c.fj)(i.edges),s=i.pageInfo}else{if(!V.universalMusic.allVideos)return void console.error(Error(`Unknown edge node structure in query response: ${V.universalMusic}`));let{allVideos:i}=V.universalMusic;e=(0,c.fj)(i.edges),s=i.pageInfo}N(s.hasNextPage),q(s.endCursor),x([...P,...e])}},[V]),(0,u.pk)({data:P,language:y,type:"video",distinguishesArtists:M.distinguishesArtists,useArtistsRoutePrefix:M.useArtistsRoutePrefix,useProjects:M.useProjects,basePath:M.basePath,hasNode:!1}),P.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.U,{showAllLabel:s,showAllLink:i,sectionTitle:r,hasMore:C,loadMore:()=>{R()},sliderName:"video",linkComponent:v,children:(0,a.u)(P,"video",{handleMoreMenu:m})}),w&&(0,t.jsx)(d.n,{id:w.id,objectType:w.objectType,positionX:w.positionX,positionY:w.positionY,htmlId:"moreMenu",baseUrl:e,path:w.path,handleShareClick:k,trackingValues:{contentType:w.objectType,contentId:w.id,contentName:w.headline}})]})};b.propTypes={baseUrl:o().string,showAllLabel:o().string,showAllLink:o().any,sectionTitle:o().string,query:o().object.isRequired,queryVariables:o().object.isRequired,initialVideos:o().arrayOf(o().object).isRequired,initialVideosPageInfo:o().shape({hasNextPage:o().bool,endCursor:o().string}).isRequired,handleShareClick:o().func};let j=b}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.