PageSourceSearch

https://thespinoff.co.nz/_next/static/chunks/pages/profile/reading-list-719bf56c60bf7f8d.js

js thespinoff.co.nz collected 2026-09-24 08:33:32 UTC 12,899 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1269],{69119:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(19013),s=n(13882);function r(e){(0,s.Z)(1,arguments);var t=(0,i.Z)(e);return t.setHours(0,0,0,0),t}},50316:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/reading-list",function(){return n(35599)}])},49018:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var i=n(85893),s=(n(67294),function(e){var t=e.struct;return(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})})},70473:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(29815),s=n(85893),r=n(57321),o=n(41664),c=n.n(o);function a(e){var t,n=e.currentPage,o=(0,r.K)(),a=o.signOut,l=o.member,u=[{name:"My Details",link:"/profile"},{name:"My Payments",link:"/profile/payments"},{name:"My Reading List",link:"/profile/reading-list"},{name:"My Newsletters",link:"/profile/newsletters"},{name:"My Comments",link:"/profile/comments"}].concat((0,i.Z)(l&&"member"===(null===(t=l.type)||void 0===t?void 0:t.toLowerCase())?[{name:"Help",link:"/profile/help"}]:[])),d=u.find((function(e){return e.link===n}));return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("menu",{className:"members-sidebar",children:[(0,s.jsxs)("button",{onClick:function(e){var t=e.currentTarget,n=document.querySelector("menu.members-sidebar"),i=n&&n.querySelectorAll("li");t.classList.toggle("open"),i&&i.forEach((function(e){e.classList.toggle("open")}))},className:"toggleButton",children:[(0,s.jsx)("span",{})," ",d&&d.name]}),u.map((function(e){return(0,s.jsx)("li",{children:(0,s.jsx)(c(),{href:"".concat(e.link),children:e.name})},e.link)})),(0,s.jsx)("li",{className:"logout-item",children:(0,s.jsx)("button",{onClick:function(){return a()},className:"logout-button",children:"Log out"})})]})})}},80679:function(e,t,n){"use strict";n.r(t);var i=n(26042),s=n(85893),r=n(27081),o=n(13e3),c=n(23439),a=n(97204),l=n(20320),u=n(57321),d=n(42769),f=n(67294),m=n(53891);function h(){var e=(0,u.K)(),t=e.member,n=e.authenticating,i=(0,l.t)(),c=i.bookmarks,a=i.loading,h=c.map((function(e){return Number(e)})).filter((function(e){return!isNaN(e)})),p=(0,d.l)({ids:h,orderBy:!0}),g=(0,f.useState)([]),x=g[0],j=g[1];return(0,f.useEffect)((function(){p&&p.posts&&!p.loading&&!(0,m.Z)(p.posts,x)&&j(p.posts)}),[p]),t?(0,s.jsxs)("div",{id:"bookmarks-section",className:"readinglist-toggle readinglist-wrapper active",children:[!n&&(0===x.length?(0,s.jsxs)("p",{children:["You have no saved stories yet. Look for this icon \xa0 ",(0,s.jsx)("i",{className:"mini-regular mini-bookmark"})," in the other tabs or around the site to create your reading list."]}):(0,s.jsx)("p",{children:"Here are your saved stories."})),x.length>0&&(0,s.jsx)(r.Z,{isReadingList:!0,recs:x}),(a||p.loading)&&(0,s.jsx)(o.Z,{loading:!0,children:"Loading"})]}):(0,s.jsx)("p",{children:"You must be logged in to view this content."})}t.default=function(e){return(0,s.jsx)(a.M$,{defaultLocation:c.B7.PROFILE,children:(0,s.jsx)(h,(0,i.Z)({},e))})}},88293:function(e,t,n){"use strict";n.r(t),n.d(t,{FirehosePage:function(){return j}});var i=n(10253),s=n(85893),r=n(96144),o=n(48102),c=n(32681),a=n(72102),l=n(13e3),u=n(96584),d=n(57321),f=n(70024),m=n(11163),h=n(62286),p=n(67294),g=n(96714),x=n(94971),j=function(){var e=(0,d.K)(),t=e.member,n=e.authenticating,j=(0,p.useState)([]),v=j[0],b=j[1],y=(0,u.n)({types:v,pagesize:20}),k=y.firehose,N=y.loading,S=y.page,w=y.setPage,P=y.hasMore,L=(0,i.Z)((0,f.KO)(a.Pf),1)[0],Z=(0,m.useRouter)().asPath,C=(0,g.ZP)((function(e){(0,x.emitAnalyticsPageView)("","",e,"The Firehose",L)}));return(0,p.useEffect)((function(){C("https://thespinoff.co.nz".concat(Z))}),[Z]),(0,p.useEffect)((function(){var e=(0,h.parseCookies)();if(e.firehose){var t=e.firehose.split(",").map((function(e){return e}));b(t)}else b(["post"])}),[Z]),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(r.g,{className:"firehose",children:(0,s.jsx)("div",{className:"layout-column-two",children:(0,s.jsxs)("div",{className:"layout-firehose-container",children:[t&&(0,s.jsx)(p.Fragment,{children:(0,s.jsx)("div",{className:"layout-flow posts",children:(0,s.jsx)("div",{className:"items",children:k.map((function(e){return(0,s.jsx)("div",{className:"item ".concat(e.type),children:"podcast"===e.type?(e.summary=e.excerpt)&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.t,{podcast:e})}):(0,s.jsx)("div",{className:"",style:{width:"100%",position:"relative"},children:(0,s.jsx)(o.R,{post:e})})},e.id)}))})})}),(0,s.jsx)("div",{id:"load-more-container",className:"layout-list-footer",children:P&&(0,s.jsx)(l.Z,{loading:N||n,onClick:function(){w(S+1)},children:"Load more"})})]})})})})};t.default=j},7608:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var i=n(85893),s=n(88293),r=n(57321);function o(){var e=(0,r.K)().member;return e?(0,i.jsxs)("div",{id:"lite-section",className:"readinglist-toggle active",children:[(0,i.jsxs)("p",{children:["The latest stories from the Spinoff. Prefer RSS? Access your private RSS feed ",(0,i.jsx)("a",{style:{textDecoration:"underline"},href:"https://thespinoff.co.nz/api/rss/".concat(e.uid,".xml"),target:"_BLANK",children:"here"}),"."]}),(0,i.jsx)(s.FirehosePage,{})]}):(0,i.jsx)("p",{children:"You must be logged in to view this content."})}},35599:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return T}});var i=n(26042),s=n(10253),r=n(85893),o=n(70473),c=n(86234),a=n(72102),l=n(13e3),u=n(23439),d=n(97204),f=n(57321),m=n(70024),h=n(10646),p=n(9008),g=n.n(p),x=n(11163),j=n(67294),v=n(96714),b=n(94971),y=n(80679),k=n(7608),N=n(1233),S=n(96144),w=n(13487),P=n(25303),L=n(49018);function Z(e){var t,n=function(e,t){document.querySelectorAll(".reading-list-tabs button").forEach((function(e){e.classList.remove("active")})),null===t||void 0===t||t.currentTarget.classList.add("active"),E(e)},i=e.menu,u=(0,f.K)(),d=u.user,p=u.member,g=u.authenticating,L=(0,j.use
1State)(!1),Z=L[0],T=L[1],_=(0,j.useState)("reccs"),M=_[0],E=_[1],F=(0,h.Vb)().hideMembersFunctions,R=(0,s.Z)((0,m.KO)(a.Pf),1)[0],K=(0,x.useRouter)(),B=K.asPath,O=(0,v.ZP)((function(e){(0,b.emitAnalyticsPageView)("","",e,"Profile - Reading list",R)}));return(0,j.useEffect)((function(){O("https://thespinoff.co.nz".concat(B))}),[B]),(0,j.useEffect)((function(){d||p||g||K.push("/members/login")}),[d,p,g,K]),d||p?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C,{}),(0,r.jsx)(P.h,{menu:i,hideDonationBanner:!(p&&"member"===(null===(t=p.type)||void 0===t?void 0:t.toLowerCase()))}),(0,r.jsx)(S.g,{className:"misc-page profile",children:(0,r.jsxs)("div",{id:"members-profile",children:[F&&(0,r.jsx)("p",{children:"The Spinoff Members is down for scheduled maintenance. We'll be back soon!"}),!F&&g&&(0,r.jsx)(l.Z,{loading:!0,children:"Loading"}),F||g||!d?!g&&!d&&!F&&!p&&(0,r.jsx)("p",{children:(0,r.jsx)(l.Z,{loading:!0,children:"Loading"})}):(0,r.jsxs)("div",{className:"layout-profile",children:[(0,r.jsx)(o.Z,{isNew:!0,currentPage:"/profile/reading-list"}),(0,r.jsx)("section",{className:"profile-body",children:(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{children:"My reading list"}),(0,r.jsxs)("div",{className:"reading-list-tabs",children:[(0,r.jsx)("button",{className:"active",onClick:function(e){(0,b.readingListTabsEvent)("recommended"),n("reccs",e)},children:"Recommended"}),(0,r.jsx)("button",{onClick:function(e){(0,b.readingListTabsEvent)("saved"),n("bmarks",e)},children:"Saved"}),(0,r.jsx)("button",{onClick:function(e){(0,b.readingListTabsEvent)("the latest"),n("lite",e)},children:"The latest"})]}),(0,r.jsxs)(S.g,{className:"category-homepage-posts-list",children:["reccs"===M&&(0,r.jsx)(N.default,{}),"bmarks"===M&&(0,r.jsx)(y.default,{}),"lite"===M&&(0,r.jsx)(k.default,{})]})]})})]})]})}),(0,r.jsx)(w.$,{menu:i}),(0,r.jsx)(c.Z,{isVisible:Z,onClose:function(){T(!Z)}})]}):null}var C=function(){var e="https://thespinoff.co.nz/profile/recommendations",t={"@context":"http://schema.org","@type":"WebPage",mainEntityOfPage:{"@type":"WebPage","@id":e},headline:"Spinoff Members",url:e,publisher:{"@type":"Organization",name:"The Spinoff"}};return(0,r.jsxs)(g(),{children:[(0,r.jsx)("title",{children:"Spinoff Members | The Spinoff"}),(0,r.jsx)("meta",{property:"fb:pages",content:"585595504882807"}),(0,r.jsx)("meta",{name:"author",content:"The Spinoff"}),(0,r.jsx)(L.h,{struct:t}),(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:"Spinoff Members"}),(0,r.jsx)("meta",{property:"og:image",content:"https://thespinoff.co.nz/spinoff-meta.jpg"}),(0,r.jsx)("meta",{property:"og:url",content:e}),(0,r.jsx)("meta",{property:"og:type",content:"profile"}),(0,r.jsx)("meta",{property:"og:description",content:"Spinoff Members"}),(0,r.jsx)("meta",{property:"article:publisher",content:"https://www.facebook.com/thespinofftv"}),(0,r.jsx)("meta",{name:"twitter:title",content:"Spinoff Members"}),(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:"Spinoff Members"}),(0,r.jsx)("meta",{name:"apple-itunes-app",content:"app-id=1194728952, app-argument=".concat(e)})]})},T=!0;t.default=function(e){return(0,r.jsx)(d.M$,{defaultLocation:u.B7.PROFILE,children:(0,r.jsx)(Z,(0,i.Z)({},e))})}},1233:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(47568),s=n(29815),r=n(70655),o=n(85893),c=n(27081),a=n(13e3),l=n(57321),u=n(50002),d=n(42769),f=n(67294),m=n(53891);function h(){var e=function(e,t){e.preventDefault();var i=e.target;i.classList.toggle("active"),i.classList.contains("active")?h((0,s.Z)(n).concat([t])):h(n.filter((function(e){return e!==t})))},t=(0,f.useState)([]),n=t[0],h=t[1],p=(0,f.useState)([]),g=p[0],x=p[1],j=(0,f.useState)([]),v=j[0],b=j[1],y=(0,d.l)({ids:g}),k=(0,f.useState)(!1),N=k[0],S=k[1],w=(0,l.K)().member,P=(0,u.d)(),L=P.getPersonalRecommendations,Z=P.parselyUuid;function C(){return C=(0,i.Z)((function(e,t){var n;return(0,r.__generator)(this,(function(i){switch(i.label){case 0:return e&&"no-uuid"
1!==e?(S(!0),[4,L(e,t)]):[3,2];case 1:(n=i.sent())&&n.length&&n!==g&&x(n),S(!1),i.label=2;case 2:return[2]}}))})),C.apply(this,arguments)}return(0,f.useEffect)((function(){Z&&function(e,t){C.apply(this,arguments)}(Z,n)}),[Z,n]),(0,f.useEffect)((function(){!y.loading&&y.posts&&y.posts.length>0&&!(0,m.Z)(y.posts,v)&&b(y.posts)}),[y]),w?(0,o.jsxs)("div",{id:"recs-section",className:"readinglist-toggle active",children:[(0,o.jsx)("p",{children:"Here are some stories we think you'll love."}),(0,o.jsx)("b",{style:{cursor:"pointer"},onClick:function(e){var t=document.querySelector(".reccs-filter-list");if(t){t.classList.toggle("active");var n=t.classList.contains("active");e.target.textContent="Filter ".concat(n?"-":"+")}},children:"Filter +"}),(0,o.jsxs)("ul",{className:"reccs-filter-list",children:[(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:function(t){e(t,"Politics")},children:"Politics"})}),(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:function(t){e(t,"Books")},children:"Books"})}),(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:function(t){e(t,"Pop Culture")},children:"Pop Culture"})}),(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:function(t){e(t,"\u0100tea")},children:"\u0100tea"})}),(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:function(t){e(t,"Society")},children:"Society"})}),(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:function(t){e(t,"Business")},children:"Business"})}),(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:function(t){e(t,"Kai")},children:"Kai"})}),(0,o.jsx)("li",{children:(0,o.jsx)("button",{className:"reset",onClick:function(){document.querySelectorAll(".reccs-filter-list button").forEach((function(e){e.classList.remove("active")})),h([])},children:"Reset"})})]}),y.loading||N?(0,o.jsx)(a.Z,{loading:!0,children:"Loading"}):(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(c.Z,{recs:v})})]}):(0,o.jsx)("p",{children:"You must be logged in to view this content."})}},86970:function(e,t,n){"use strict";n.d(t,{JI:function(){return m},L0:function(){return d},x5:function(){return f}});var i=n(68713),s=n(53626),r=n(98147),o=n(19642),c=n(67926),a=n(70722),l=216e5,u=1296e5,d=function(e){if(!e||isNaN(new Date(e).getTime()))return"";var t=(0,s.Z)(e,{nearestTo:15}),n=new Date,a=n.getTime()-e.getTime();return a>u?(0,r.Z)(e,i.pf):a>l?(0,o.Z)(t,n,{locale:i.uW}):(0,c.Z)(e,n)+" ago"},f=function(e){return(0,a.format)(e,"yyyy-MM-dd'T'HH:mm:ssxxx",{timeZone:"Pacific/Auckland"})},m=function(e){var t=new Date(e);return(0,a.format)(t,"yyyy-MM-dd'T'HH:mm:ssxxx",{timeZone:"Pacific/Auckland"})}}},function(e){e.O(0,[3662,8045,5675,8100,5781,2454,7745,535,6151,8028,9655,9799,1800,5715,9774,2888,179],(function(){return t=50316,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.