https://thespinoff.co.nz/_next/static/chunks/pages/vertical-videos/[series-slug]-38c651d4feb41db8.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5402],{20397:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/vertical-videos/[series-slug]",function(){return i(49188)}])},44776:function(e,t,i){"use strict";i.d(t,{m:function(){return f}});var n=i(85893),r=i(67294),s=i(26042),a=i(10253),o=i(98147),c=i(78420),l=i(41664),d=i.n(l),u=i(68713),m=null,h=function(e){var t=e.video,i=e.index,l=(0,r.useState)(!1),h=(l[0],l[1]),f=(0,r.useState)(!1),p=f[0],v=f[1],x=(0,r.useState)(!1),j=x[0],g=x[1],b=(0,r.useRef)(null),w=(0,r.useRef)(null),y=(0,o.Z)((0,c.Z)(t.date),u.gn),N=t.series?"/vertical-videos/".concat(t.series.slug):"/vertical-videos",S=t.series?"/vertical-videos/".concat(t.series.slug,"/").concat(t.slug):"/vertical-videos/".concat(t.slug);(0,r.useEffect)((function(){var e=function(){g(window.innerWidth<768)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var T=(0,r.useCallback)((function(e){if(!t.video_id)return"";var i=new URLSearchParams((0,s.Z)({modestbranding:"1",rel:"0",playsinline:"1",controls:"1",iv_load_policy:"3"},e&&{autoplay:"1",mute:"1"}));return"https://www.youtube.com/embed/".concat(t.video_id,"?").concat(i.toString())}),[t.video_id]);return(0,r.useEffect)((function(){var e=new IntersectionObserver((function(e){var t=(0,a.Z)(e,1)[0],n=t.isIntersecting&&t.intersectionRatio>.5;if(h(n),j?n:n&&i%3===0){if(m&&m!==w.current){var r=m.src;m.src=r.replace(/[?&]autoplay=1/,"").replace(/[?&]mute=1/,"")}v(!0),m=w.current}else v(!1)}),{threshold:.5});return b.current&&e.observe(b.current),function(){b.current&&e.unobserve(b.current)}}),[i,j]),(0,r.useEffect)((function(){w.current&&t.video_id&&(w.current.src=T(p))}),[p,T,t.video_id]),(0,n.jsxs)("article",{className:"vertical-video-grid-card",ref:b,children:[(0,n.jsxs)("div",{className:"video-container",children:[t.video_id&&(0,n.jsx)("iframe",{ref:w,src:T(!1),title:t.title||"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",loading:"lazy"}),t.time&&(0,n.jsx)("div",{className:"duration",children:t.time})]}),(0,n.jsxs)("div",{className:"video-info",children:[t.series&&(0,n.jsx)("div",{className:"series-label",children:(0,n.jsx)(d(),{href:N,children:(0,n.jsx)("a",{children:t.series.name})})}),(0,n.jsx)("h3",{className:"video-title",children:(0,n.jsx)(d(),{href:S,children:(0,n.jsx)("a",{children:t.title})})}),t.description&&(0,n.jsx)("p",{className:"video-description",children:(0,n.jsx)(d(),{href:S,children:(0,n.jsx)("a",{children:t.description})})}),(0,n.jsx)("time",{className:"video-date",dateTime:t.date,children:y})]})]})},f=function(e){var t=e.videos,i=e.className,r=void 0===i?"":i,s=1===t.length?"vertical-video-grid single-video ".concat(r):"vertical-video-grid ".concat(r);return(0,n.jsx)("div",{className:s,children:t.map((function(e,t){return(0,n.jsx)(h,{video:e,index:t},e.id)}))})}},87728:function(e,t,i){"use strict";i.d(t,{U:function(){return w}});var n=i(85893),r=i(94184),s=i.n(r),a=i(85784),o=i(67294),c=i(96144),l=i(25675),d=i.n(l),u=i(41664),m=i.n(u),h=i(23533),f=i(33687),p=i(48490),v=i(20996),x=i(25437),j=i(32485),g=i(95870);function b(e){var t,i,r,a,c,l=e.type,u=e.post,b=e.isSubscribed,w=e.matrixPairChild,y=e.visualOnly,N=(0,o.useState)(!1),S=N[0],T=N[1];switch((0,o.useEffect)((function(){T(!0)}),[]),l){case"the-bulletin":default:t="The Bulletin",r="The Spinoff's morning wrap of NZ news.",c="bulletin",a=u?u.title:"The Spinoff's morning wrap of NZ news.",i=p.Z;break;case"the-weekend":t="The Weekend",r="The best of The Spinoff each Saturday.",c="weekend",a=u?u.title:"The best of The Spinoff each Saturday.",i=j.Z;break;case"rec-room":t="Rec Room",r="Culture, books and entertainment recommendations.",c="rec",a=u?u.title:"Culture, books and entertainment recommendations.",i=x.Z;break;case"the-daily":t="The Daily",r="Everything published on the Spinoff that day",c="daily",a=u?u.title:"Everything published on the Spinoff that day",i=v.Z;break;case"the-boil-up":t="The Boil Up",r="Our best kai stories of the month",c="boilup",a=u?u.title:"Our best kai stories of the month",i=f.Z;break;case"two-ticks":t="Two Ticks",r="All the big and batshit news from the campaign trail, straight to your inbox every Friday.",c="twoticks",a=u?u.title:"All the big and batshit news from the campaign trail, straight to your inbox every Friday.",i=g.Z}if(!S||!t||!a||!i)return(0,n.jsx)("div",{className:"newsletter-sign-up-opaque"});var _=(0,n.jsxs)("div",{className:s()("newsletter-card",c),children:[(0,n.jsx)("div",{className:"newsletter-image",children:(0,n.jsx)("div",{className:"matrix-newsletter-image-container",children:(0,n.jsx)(d(),{src:i,alt:t,layout:"fill",objectFit:"contain",quality:85})})}),(0,n.jsx)("p",{className:"description",children:r}),y?null:(0,n.jsx)("div",{className:"checkbox-wrapper",children:(0,n.jsx)("div",{className:"sub-cta",children:(0,n.jsx)(h.Z,{isCateg:!0,newsletterName:t.toLowerCase(),inline:!0,isMatrix:!0,description:r,isSubscribed:b})})})]});return w?(0,n.jsx)("div",{className:"inner newsletter-matrix-pair-card",children:_}):(0,n.jsxs)("div",{className:"multimedia-surround newsletter-multimedia",children:[(0,n.jsx)(m(),{href:"/newsletters",children:(0,n.jsx)("a",{className:"multimediaTitle nl",children:"NEWSLETTERS"})}),(0,n.jsx)("div",{className:"inner",children:_})]})}var w=function(e){var t=e.type,i=e.post,r=e.matrix,l=e.isSubscribed,d=e.matrixPairChild,u=e.matrixVisualOnly,m=e.wrapNewslettersProvider,h=(0,o.useState)(!1),f=h[0],p=h[1];if((0,o.useEffect)((function(){p(!0)}),[]),!f)return null;if(r){var v=(0,n.jsx)(b,{type:t,post:i,isSubscribed:l,matrixPairChild:d,visualOnly:u}),x=!u&&!1!==m;return(0,n.jsx)(c.g,{className:s()("newsletter matrix",t),children:x?(0,n.jsx)(a.ir,{children:v}):v})}return(0,n.jsx)(n.Fragment,{})}},49188:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return g}});var n=i(10253),r=i(85893),s=i(54690),a=i(72102),o=i(70024),c=i(9008),l=i.n(c),d=i(67294),u=i(96144),m=i(87728),h=i(13487),f=i(25303),p=i(49018),v=i(44776),x=i(94971),j=function(e){var t=e.seriesSlug,i=e.seriesTitle,n="https://thespinoff.co.nz/vert
1ical-videos/".concat(t),s={"@context":"http://schema.org","@type":"WebPage",headline:"".concat(i," - Vertical Videos"),mainEntityOfPage:{"@type":"WebPage","@id":n},url:n,publisher:{"@type":"Organization",name:"The Spinoff"}};return(0,r.jsxs)(l(),{children:[(0,r.jsxs)("title",{children:[i," - Vertical Videos | The Spinoff"]}),(0,r.jsx)("meta",{property:"fb:pages",content:"585595504882807"}),(0,r.jsx)("meta",{name:"author",content:"The Spinoff"}),(0,r.jsx)("meta",{name:"article name",content:"".concat(i," - Vertical Videos")}),(0,r.jsx)(p.h,{struct:s}),(0,r.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,r.jsx)("meta",{property:"og:site_name",content:"The Spinoff"}),(0,r.jsx)("meta",{property:"og:title",content:"".concat(i," - Vertical Videos")}),(0,r.jsx)("meta",{property:"og:image",content:"https://thespinoff.co.nz/spinoff-meta.jpg"}),(0,r.jsx)("meta",{property:"og:url",content:n}),(0,r.jsx)("meta",{property:"og:type",content:"article"}),(0,r.jsx)("meta",{property:"og:description",content:"".concat(i," vertical video content from The Spinoff - short-form videos optimized for mobile viewing.")}),(0,r.jsx)("meta",{property:"article:publisher",content:"https://www.facebook.com/thespinofftv"}),(0,r.jsx)("meta",{name:"twitter:title",content:"".concat(i," - Vertical Videos")}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:site",content:"@TheSpinoffTV"}),(0,r.jsx)("meta",{name:"description",content:"".concat(i," vertical video content from The Spinoff - short-form videos optimized for mobile viewing.")}),(0,r.jsx)("meta",{name:"apple-itunes-app",content:"app-id=1194728952, app-argument=".concat(n)}),(0,r.jsx)("meta",{name:"parsely-section",content:"Vertical Video - ".concat(i)}),(0,r.jsx)("meta",{name:"parsely-type",content:"index"})]})},g=!0;t.default=function(e){var t=e.videos,i=e.featured,c=e.menu,l=e.seriesSlug,p=e.seriesTitle,g=(0,n.Z)((0,o.KO)(a.Pf),1)[0];return(0,d.useEffect)((function(){(0,x.viewCollectionEvent)("vertical-videos-".concat(l),x.CollectionType.VIDEO,g,"Vertical Videos - ".concat(p))}),[l,p]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.h,{menu:c}),(0,r.jsx)(j,{seriesSlug:l,seriesTitle:p}),(0,r.jsxs)(u.g,{className:"video-homepage-lead",children:[(0,r.jsxs)("h1",{children:[(0,r.jsx)(s.Z,{titleImg:"videos"}),p]}),i.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h2",{className:"recent-videos",children:"Featured Videos"}),(0,r.jsx)(v.m,{videos:i,className:"featured"})]}),(0,r.jsx)("h2",{children:"Latest Episodes"}),(0,r.jsx)(v.m,{videos:t,className:"latest"})]}),(0,r.jsx)(m.U,{type:"rec-room"}),(0,r.jsx)(h.$,{menu:c})]})}}},function(e){e.O(0,[3662,8045,5675,8100,5781,2454,7745,535,9655,9799,3533,425,9774,2888,179],(function(){return t=20397,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.