PageSourceSearch

https://www.tabletmag.com/_next/static/chunks/pages/studios/video/[slug]-4e908997086a3e83.js

js tabletmag.com collected 2026-09-24 08:29:40 UTC 15,622 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4301],{99842:function(e,i,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/studios/video/[slug]",function(){return s(78631)}])},69244:function(e,i,s){"use strict";s.d(i,{Z:function(){return f}});var t=s(85893),r=s(94184),n=s.n(r),a=s(67294),o=s(10182),c=s(46672),l=s(90853),d=s(85993),u=s(47568),m=s(82670),h=s(97582),_=s(60704),v=s(21924),x=s(41664),p=s.n(x),N=s(82207),b={article:{objectName:"article",verb:"read"},video:{objectName:"video",verb:"watch"},episode:{objectName:"episode",verb:"listen to"},audio:{objectName:"audio",verb:"listen to"},"live-event":{objectName:"event",verb:"watch"}},f=function(e){var i=e.backgroundColor,s=void 0===i?l.G["off-white"]:i,r=e.textColor,x=void 0===r?l.G.black:r,f=e.slug,j=e.hasAccess,g=e.canRedeemFreeArticle,w=e.variant,V=void 0===w?"article":w,y=function(){var e=(0,d.aC)(),i=e.setFreeArticleSlug,s=e.setFreeArticleExpiration,t=e.setNextFreeArticleAt,r=function(){var e=(0,u.Z)((function(e){var r,n,a,o,c,l,d,u,x,p;return(0,h.__generator)(this,(function(h){switch(h.label){case 0:if(h.trys.push([0,6,,7]),!(r=_.I8.currentUser))throw new Error("User not authenticated");return[4,r.getIdToken()];case 1:return n=h.sent(),[4,fetch("/api/free-article/update",{method:"POST",headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"},body:JSON.stringify({freeArticleSlug:e.freeArticleSlug})})];case 2:if((a=h.sent()).ok||409===a.status)return[3,4];if(401===a.status)throw new Error("Unauthorized");return[4,a.json().catch((function(){return{}}))];case 3:throw o=h.sent(),new Error(o.error||"HTTP error! status: ".concat(a.status));case 4:return[4,a.json()];case 5:return(c=h.sent()).redeemed&&(0,v.bl)({authToken:n,event:"redeem",slug:c.freeArticleSlug}).catch((function(e){return console.error("[paywall-event] redeem sync failed:",e)})),i(null!==(l=c.freeArticleSlug)&&void 0!==l?l:null),s(null!==(d=c.freeArticleExpiration)&&void 0!==d?d:null),t(null!==(u=c.nextFreeArticleAt)&&void 0!==u?u:null),[3,7];case 6:throw x=h.sent(),p=(0,m.Z)(x,Error)?x.message:"Failed to update free article data",new Error(p);case 7:return[2]}}
1))}));return function(i){return e.apply(this,arguments)}}();return r}(),S=(0,c.X)(),k=S.onSubscribeClick,D=S.onLoginClick,C=(0,d.aC)().isLoggedIn,A=(0,a.useRef)(!1);(0,a.useEffect)((function(){if(!A.current&&C&&!j){var e=_.I8.currentUser;e&&(A.current=!0,e.getIdToken().then((function(e){return(0,v.bl)({authToken:e,event:"hit",slug:f})})).catch((function(e){return console.error("[paywall-event] hit sync failed:",e)})))}}),[C,j,f]);var P="article"!==V,T=b[V],U=T.objectName,I=T.verb,G="live-event"!==V;return(0,t.jsxs)("div",{className:n()("SubscribersOnly",{"SubscribersOnly--video-paywall":P}),style:{backgroundColor:s,color:x},children:[!P&&(0,t.jsx)("div",{className:"SubscribersOnly__gradient",style:{background:"linear-gradient(to bottom, transparent 0%, ".concat(s," 100%")}}),(0,t.jsxs)("div",{className:"SubscribersOnly__content",children:[(0,t.jsxs)("div",{className:"SubscribersOnly__premium-info-content",children:[(0,t.jsx)(o.Z,{}),(0,t.jsx)("div",{className:"SubscribersOnly__premium-text",children:"PREMIUM CONTENT"})]}),(0,t.jsxs)("div",{className:"SubscribersOnly__texts",children:[(0,t.jsxs)("div",{className:"SubscribersOnly__title",children:["This ",U," is for subscribers only"]}),(0,t.jsxs)("div",{className:"SubscribersOnly__description",children:["Unlock full access to this ",U," and thousands more with a subscription. Stay informed with expert insights, in-depth analysis, and exclusive content."]})]}),(0,t.jsx)("div",{className:"SubscribersOnly__buttons",children:C?!G||j||g?G&&!j?(0,t.jsxs)("div",{className:"SubscribersOnly__read-for-free",children:[(0,t.jsx)("span",{onClick:function(){return y({freeArticleSlug:f})},style:{cursor:"pointer",textDecoration:"underline"},children:(0,N.Z)(I)}),"\xa0this ",U," for free. Non-subscribers can enjoy one free ",U," per month."]}):G||j?null:(0,t.jsxs)("div",{className:"SubscribersOnly__used-free-article",style:{textAlign:"center"},children:[(0,t.jsx)("span",{onClick:k,style:{cursor:"pointer",textDecoration:"underline",color:x},children:"Subscribe now"})," ","to ",I," this ",U,"."]}):(0,t.jsxs)("div",{className:"SubscribersOnly__used-free-article",style:{textAlign:"center"},children:["You have read your free monthly article.",(0,t.jsx)("br",{}),(0,t.jsx)("span",{onClick:k,style:{cursor:"pointer",textDecoration:"underline",color:x},children:"Subscribe now"})," ","and never miss out!"]}):(0,t.jsxs)("div",{className:"SubscribersOnly__buttons-logged-out",children:[(0,t.jsx)(p(),{href:"/subscribe",children:"Subscribe"})," or"," ",(0,t.jsx)("span",{onClick:D,style:{cursor:"pointer",textDecoration:"underline"},children:"Sign in"})," ","to ",I," this ",U,".",G&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("br",{})," ",(0,t.jsx)("span",{onClick:D,style:{cursor:"pointer",textDecoration:"underline"},children:"Create a free account"})," ","for instant access. Non-subscribers can enjoy one free"," ",U," per month."]})]})})]})]})}},9486:function(e,i,s){"use strict";var t=s(85893),r=(s(67294),s(74201)),n=s(94184),a=s.n(n),o=s(76350),c=s(13936);i.Z=function(e){var i=e.videos,s=e.onVideoClick,n=e.studiosLayout,l=void 0!==n&&n;return(0,t.jsx)("div",{className:a()("VideoGridItems",{"VideoGridItems--studios":l}),children:i.map((function(e){var i;return(0,t.jsxs)("div",{onClick:function(){return s(e)},className:"VideoGridItems__video-container",children:[(0,t.jsx)("div",{className:"VideoGridItems__image-container",children:(null===(i=e.image)||void 0===i?void 0:i.src)?(0,t.jsx)("img",{src:(0,o.Z)(e.image,l?600:200),alt:e.image.alt||e.title,className:a()("VideoGridItems__image",{"VideoGridItems__image--grayscale-on-hover":l})}):(0,t.jsx)("div",{className:"VideoGridItems__image-placeholder",children:"Video Thumbnail"})}),(0,t.jsxs)("div",{className:"VideoGridItems__content",children:[(0,t.jsx)("h3",{className:"VideoGridItems__title",children:(0,t.jsx)("span",{className:"VideoGridItems__title-text linked-border-bottom-sm-on-hover-red",children:e.title})}),(0,t.jsxs)("div",{className:"VideoGridItems__meta",children:[(0,t.jsx)("span",{className:"VideoGridItems__date graebenbach font-400 uppercase letter-spacing-sm",children:(0,r.Z)(new Date(e.releaseDate),"MMMM d, yyyy")}),e.duration&&(0,t.jsxs)("div",{className:"VideoGridItems__duration",children:[(0,t.jsx)(c.Ei,{className:"VideoGridItems__clock-icon",src:"/assets/images/time-icon.svg",alt:""}),(0,t.jsx)("span",{className:"VideoGridItems__duration-text",children:e.duration})]})]}),(0,t.jsx)("div",{className:a()("VideoGridItems__watch-now graebenbach font-400 linked-border-bottom-sm-on-hover-red",{"VideoGridItems__watch-now--studios":l}),children:l?(0,t.jsxs)(t.Fragment,{children:["Watch Now"," ",(0,t.jsx)("span",{"aria-hidden":"true",children:"\u2192\ufe0e"})]}):"Watch Now \u2192"})]})]},e.id)}))})}},78631:function(e,i,s){"use strict";s.r(i),s.d(i,{__N_SSP:function(){return D},default:function(){return C}});var t=s(85893),r=s(67294),n=s(11163),a=s(5152),o=s.n(a),c=s(74201),l=s(85993),d=s(50319),u=s(89553),m=s(79324),h=s(94184),_=s.n(h),v=s(76350),x=s(13936),p=s(34557),N=function(e){var i=e.videos,s=e.currentSlug;return 0===i.length?null:(0,t.jsxs)("div",{className:"UpNextSection",children:[(0,t.jsx)("h2",{className:"UpNextSection__heading",children:"Up Next"}),(0,t.jsx)("ul",{className:"UpNextSection__list",children:i.map((function(e){var i,r=e.slug===s;return(0,t.jsx)("li",{className:_()("UpNextSection__item",{"UpNextSection__item--current":r}),children:(0,t.jsxs)(p.r,{to:"/studios/video/".concat(e.slug),className:"UpNextSection__button",children:[(0,t.jsx)("div",{className:"UpNextSection__thumbnail",children:(null===(i=e.image)||void 0===i?void 0:i.src)?(0,t.jsx)("img",{src:(0,v.Z)(e.image,120,{ssrSafe:!0}),alt:e.image.alt||e.title,className:"UpNextSection__image UpNextSection__image--grayscale-on-hover"}):(0,t.jsx)("div",{className:"UpNextSection__placeholder",children:"Video Thumbnail"})}),(0,t.jsxs)("div",{className:"UpNextSection__content",children:[(0,t.jsx)("h3",{className:"UpNextSection__episode-title",children:(0,t.jsx)("span",{className:"UpNextSection__episode-title-text linked-border-bottom-sm-on-hover-red",children:e.title})}),(0,t.jsxs)("div",{className:"UpNextSection__meta",children:[(0,t.jsx)("span",{className:"UpNextSection__date",children:(0,c.Z)(new Date(e.releaseDate),"MMMM d, yyyy")}),e.duration&&(0,t.jsxs)("div",{className:"UpNextSection__duration-row",children:[(0,t.jsx)(x.Ei,{className:"UpNextSection__clock-icon",src:"/assets/images/time-icon.svg",alt:""}),(0,t.jsx)("span",{className:"UpNextSection__duration-text",children:e.duration})]})]}),!r&&(0,t.jsxs)("span",{className:"UpNextSection__watch-now graebenbach font-400 linked-border-bottom-sm-on-hover-red",children:["Watch Now"," ",(0,t.jsx)("span",{"aria-hidden":"true",children:"\u2192\ufe0e"})]})]})]})},e.id)}))})]})},b=s(69244),f=s(9486),j=s(59278),g=s(46280),w=function(e){var i=e.podcasts;return i.length?(0,t.jsx)("div",{className:"StudiosPodcastTeaserRow",children:i.map((function(e){var i,s="".concat(j.c7.PODCAST.base).concat(e.slug);return(0,t.jsxs)(p.r,{to:s,className:"StudiosPodcastTeaserRow__card",children:[(0,t.jsx)("div",{className:"StudiosPodcastTeaserRow__image-wrap",children:(null===(i=e.image)||void 0===i?void 0:i.src)?(0,t.jsx)("img",{className:"StudiosPodcastTeaserRow__image StudiosPodcastTeaserRow__image--grayscale-on-hover",src:(0,v.Z)(e.image,400),alt:e.image.alt||e.title}):(0,t.jsx)("div",{className:"StudiosPodcastTeaserRow__image-placeholder",children:"Podcast art"})}),(0,t.jsxs)("div",{className:"StudiosPodcastTeaserRow__body",children:[(0,t.jsx)("h3",{className:"StudiosPodcastTeaserRow__title",children:(0,t.jsx)("span",{className:"StudiosPodcastTeaserRow__title-text linked-border-bottom-sm-on-hover-red",children:(0,g.l0)(e.title)})}),e.dek?(0,t.jsx)("p",{className:"StudiosPodcastTeaserRow__dek",children:(0,g.l0)(e.dek)}):null,(0,t.jsxs)("span",{className:"StudiosPodcastTeaserRow__cta linked-border-bottom-sm-on-hover-red",children:["Listen Now"," ",(0,t.jsx)("span",{"aria-hidden":"true",children:"\u2192\ufe0e"})]})]})]},e.id)}))}):null},V=s(90853),y=s(12417),S=o()((function(){return Promise.all([s.e(2004),s.e(7364)]).then(s.bind(s,30316))}),{loadableGenerated:{webpack:function(){return[30316]}},ssr:!1,loading:function(){return(0,t.jsx)("div",{className:"VideoPlayer",style:{position:"relative",paddingTop:"56.25%"}})}}),k=function(e){var i=e.video,s=e.upNextVideos,a=e.moreVideos,o=e.moreShows,h=(0,n.useRouter)(),_=(0,d.l8)().theme,v=(0,l.aC)(),j=v.isPremium,g=v.freeArticleSlug,k=v.freeArticleExpiration,D=v.nextFreeArticleAt,C=(0,r.useState)(i),A=C[0],P=C[1],T=(0,r.useState)(s),U=T[0],I=T[1],G=(0,r.useState)(!0),O=G[0],E=G[1],R=(0,r.useCallback)((function(e){return!e.isPremium||j||(0,y.qu)(e.slug,g,k)}),[j,g,k]),Z=(0,r.useMemo)((function(){return U.filter(R)}),[U,R]),M=!A.isPremium||j||(0,y.qu)(A.slug,g,k),L=(0,y.lS)(D),F=_===u.Q2.Black,B=F?"VideoDetailVie
1w--dark":"VideoDetailView--light",q=F?V.G.black:V.G.white,W=F?V.G.white:V.G.black,X=(0,r.useCallback)((function(){var e=U.findIndex((function(e){return R(e)}));if(!(e<0)){var i=U[e];P(i),I((function(i){return i.slice(e+1)})),E(!0),h.replace("/studios/video/".concat(i.slug),void 0,{shallow:!0})}}),[U,h,R]),z=(0,r.useCallback)((function(e){h.push("/studios/video/".concat(e.slug))}),[h]);return(0,t.jsxs)("div",{className:"VideoDetailView view content-height inner-content-max-width mxauto content-padding-x content-with-nav ".concat(B),children:[(0,t.jsx)(m.Z,{}),(0,t.jsxs)("div",{className:"VideoDetailView__main",children:[(0,t.jsxs)("div",{className:"VideoDetailView__primary",children:[(0,t.jsx)("div",{className:"VideoDetailView__player-stage",children:M?(0,t.jsx)(S,{url:A.videoUrl,playing:O,onEnded:X}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"VideoDetailView__player-locked","aria-label":"Video requires subscription"}),(0,t.jsx)(b.Z,{slug:A.slug,hasAccess:M,canRedeemFreeArticle:L,variant:"video",backgroundColor:q,textColor:W})]})}),(0,t.jsxs)("div",{className:"VideoDetailView__video-copy",children:[(0,t.jsx)("h1",{className:"VideoDetailView__video-title",children:A.title}),A.description&&(0,t.jsx)("p",{className:"VideoDetailView__video-description graebenbach font-400",children:A.description}),(0,t.jsxs)("div",{className:"VideoDetailView__video-meta",children:[(0,t.jsx)("span",{className:"VideoDetailView__video-date graebenbach font-400 uppercase letter-spacing-sm",children:(0,c.Z)(new Date(A.releaseDate),"MMMM d, yyyy")}),A.duration&&(0,t.jsxs)("div",{className:"VideoDetailView__video-duration",children:[(0,t.jsx)(x.Ei,{className:"VideoDetailView__clock-icon",src:"/assets/images/time-icon.svg",alt:""}),(0,t.jsx)("span",{className:"VideoDetailView__duration-text",children:A.duration})]})]})]})]}),(0,t.jsx)("aside",{className:"VideoDetailView__sidebar",children:(0,t.jsx)(N,{videos:Z.slice(0,4),currentSlug:A.slug})}),a.length>0&&(0,t.jsxs)("section",{className:"VideoDetailView__more-videos","aria-labelledby":"video-detail-more-videos-heading",children:[(0,t.jsxs)("div",{className:"VideoDetailView__section-row",children:[(0,t.jsx)("h2",{id:"video-detail-more-videos-heading",className:"VideoDetailView__section-heading",children:"More Videos"}),(0,t.jsxs)(p.r,{to:"/studios/all-videos",className:"VideoDetailView__section-view-all",children:["View All"," ",(0,t.jsx)("span",{"aria-hidden":"true",children:"\u2192\ufe0e"})]})]}),(0,t.jsx)("div",{className:"VideoGridItems__studios-wrapper",children:(0,t.jsx)(f.Z,{videos:a,onVideoClick:z,studiosLayout:!0})})]}),o.length>0&&(0,t.jsxs)("section",{className:"VideoDetailView__more-shows","aria-labelledby":"video-detail-more-shows-heading",children:[(0,t.jsxs)("div",{className:"VideoDetailView__section-row",children:[(0,t.jsx)("h2",{id:"video-detail-more-shows-heading",className:"VideoDetailView__section-heading",children:"More Shows"}),(0,t.jsxs)(p.r,{to:"/studios/all-podcasts",className:"VideoDetailView__section-view-all",children:["View All"," ",(0,t.jsx)("span",{"aria-hidden":"true",children:"\u2192\ufe0e"})]})]}),(0,t.jsx)(w,{podcasts:o})]})]})]})},D=!0,C=function(e){var i=e.video,s=e.upNextVideos,r=e.moreVideos,n=e.moreShows;return(0,t.jsx)(k,{video:i,upNextVideos:s,moreVideos:r,moreShows:n},i.slug)}},12417:function(e,i,s){"use strict";s.d(i,{G4:function(){return o},H9:function(){return a},lS:function(){return m},nQ:function(){return n},qu:function(){return u},wv:function(){return d},yF:function(){return c}});s(41715);var t=s(74201),r=s(41691),n=function(e){return e.reduce((function(e,i){var s=i.releaseDate,n=(0,t.Z)(new Date(s),"LLLL dd yyyy"),a=(0,r.Z)(n,"LLLL dd yyyy",new Date).toISOString();return e[a]=e[a]?e[a].concat([i]):[i],e}),{})},a=function(e){return"isPremium"in e&&e.isPremium},o=function(e){if("showBadgeCaption"in e&&e.showBadgeCaption)return e.badgeCaption},c=function(e){if("badgeRedirect"in e&&e.badgeRedirect)return e.badgeRedirect};function l(e){return e.findIndex((function(e){return"paywallBreak"===e.type}))}function d(e,i){var s=l(e),t=-1!==s;return!i&&t?{visibleContent:e.slice(0,s),isPaywallBreakActive:t}:{visibleContent:e,isPaywallBreakActive:t}}function u(e,i,s){return!(!i&&!s)&&(i===e&&!!s&&new Date(s)>new Date)}var m=function(e){return!e||new Date(e)<=new Date}},82207:function(e,i){"use strict";i.Z=function(e){return[e.charAt(0).toUpperCase(),e.slice(1)].join("")}}},function(e){e.O(0,[1354,3904,9774,2888,179],(function(){return i=99842,e(e.s=i);var i}));var i=e.O();_N_E=i}]);
2//# sourceMappingURL=[slug]-4e908997086a3e83.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.