1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[57806],{60061:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/domains/1051thebounce.com/video/[categorySlug]/[videoId]",function(){return i(65955)}])},65955:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return r}});var a=i(67561),r=!0;t.default=a.default},67561:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return S},default:function(){return b}});var a=i(85893),r=i(90642),o=i(91557),s=i(25105),l=i(72329),n=i(43951),d=i(10568),c=i(84190),g=i(67294),u=i(11163),x=i(81873);async function p(e,t,i){try{var a;let r=new URL("https://api.jwplayer.com/v2/sites/".concat(t,"/media/"));r.searchParams.set("q",'tags:"'.concat(e,'"')),r.searchParams.set("page","1"),r.searchParams.set("page_length","10");let o=await fetch(r.toString(),{headers:{Authorization:"Bearer ".concat(i)},next:{revalidate:300}});if(!o.ok)throw Error("Failed to fetch JW Player tag videos (".concat(o.status,")"));let s=await o.json();return(null!==(a=s.media)&&void 0!==a?a:[]).map(t=>({id:t.id,title:t.title,categorySlug:e,image:t.image,description:t.description||t.title}))}catch(e){return console.error("JW Player tag videos fetch failed:",e),[]}}var h=i(31857),f=i(86802),m=i(82686),v=i(3733),y=i(2866),j=e=>{let{video:t,playlist:i,ribbons:o,categoryPlaylists:s,VIDEO_CATEGORIES:l,jwPlayerSiteId:n,jwPlayerToken:d}=e,c=(0,u.useRouter)(),[j,_]=(0,g.useState)(t),[w,S]=(0,g.useState)([]),b=(0,g.useMemo)(()=>i.videos,[i]),E=e=>{let t=s.find(t=>t.slug===e);if(!t||0===t.videos.length)return;(0,y.v)("jwt_category_select",{jwt_category_slug:e});let i=t.videos[0];c.push("/video/".concat(e,"/").concat(i.id))};return(0,g.useEffect)(()=>{_(t)},[t]),(0,g.useEffect)(()=>{(async()=>{if(!(null==j?void 0:j.categorySlug)){S([]);return}try{let e=await p(j.categorySlug,n,d);S(e)}catch(e){console.error("Failed to fetch JW tag videos:",e),S([])}})()},[j.categorySlug,n,d]),(0,a.jsxs)(r.Z,{sx:{py:4},children:[(0,a.jsx)(r.Z,{sx:{py:4,overflowX:"auto",overflowY:"hidden",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch","&::-webkit-scrollbar":{height:6}},children:(0,a.jsx)(r.Z,{sx:{display:"flex",flexWrap:"nowrap",gap:1,minWidth:"max-content"},children:l.map(e=>(0,a.jsx)(x.Z,{label:e.title,clickable:!0,onClick:()=>E(e.slug),sx:{flexShrink:0,width:116,height:31,borderRadius:"7px",border:"1px solid #999999",backgroundColor:j.categorySlug===e.slug?"#E4E4E4":"#fff","&:hover":{backgroundColor:"#E4E4E4"}}},e.slug))})}),(0,a.jsxs)(r.Z,{sx:{display:"grid",gap:{xs:2,md:"0px"},gridTemplateColumns:{xs:"1fr 252px",md:"1fr 252px",xl:"1fr 252px"},mx:"auto",alignItems:"stretch","@media (max-width: 820px)":{gap:{xs:"0px",md:"0px",boxShadow:"0px 0px 15px 0px #00000021",background:"linear-gradient(0deg, #E4E4E4, #E4E4E4), linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0))",position:"relative",zIndex:"1",borderTopRightRadius:0,borderBottomRightRadius:15,borderBottomLeftRadius:15}}},children:[(0,a.jsx)(h.Z,{video:j,playlist:b}),(0,a.jsx)(f.Z,{currentVideo:j,playlist:w.length>0?w:b,onVideoSelect:e=>{_(e),c.replace("/video/".concat(e.categorySlug,"/").concat(e.id),void 0,{shallow:!0,scroll:!1})}})]}),(0,a.jsx)(r.Z,{mt:6,children:(0,a.jsx)(v.Z,{categorySlug:j.categorySlug})}),(0,a.jsx)(r.Z,{mt:6,children:o.filter(e=>e.videos.length>0).map(e=>(0,a.jsx)(m.Z,{title:e.title,videos:e.videos},e.id))})]})},_=i(52890),w=i(64624),S=!0,b=e=>{var t,i;let{video:g,playlist:u,ribbons:x,categoryPlaylists:p,VIDEO_CATEGORIES:h,jwPlayerSiteId:f,jwPlayerToken:m,pageSEO:v,videoSchema:y}=e,{data:S}=(0,c.Z)();return(0,a.jsxs)(a.Fragment,{children:[y&&(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(y)}}),(0,a.jsxs)(s.Z,{ogTemplateInfo:{contentType:d.z.article},children:[(0,a.jsx)(l.Z,{page:v,pageType:"Webpage",robots:null!==(i=null===(t=v.seo)||void 0===t?void 0:t.metaRobotsNoindex)&&void 0!==i?i:void 0}),(null==S?void 0:S.documentHeadOrganicTagsConfig)&&(0,a.jsx)(n.Z,{pageId:g.id,...S.documentHeadOrganicTagsConfig}),(0,a.jsx)(r.Z,{children:(0,a.jsxs)(o.Z,{maxWidth:"lg",children:[(0,a.jsx)(w.Z,{}),(0,a.jsx)(_.Z,{unit:"WideBanner_Top",sx:{mt:{xs:8,lg:2},mb:{xs:8,lg:4},height:{xs:100,lg:250}}}),(0,a.jsx)(j,{video:g,playlist:u,ribbons:x,categoryPlaylists:p,VIDEO_CATEGORIES:h,jwPlayerSiteId:f,jwPlayerToken:m})]})}),(0,a.jsx)(_.Z,{unit:"WideBanner_Scroll",sx:{mt:{xs:8,lg:2}}})]})]})}}},function(e){e.O(0,[25105,72329,78242,64727,92888,49774,40179],function(){return e(e.s=60061)}),_N_E=e.O()}]); 2//# sourceMappingURL=[videoId]-cc37fd2996f45941.js.map
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.