PageSourceSearch

https://thespinoff.co.nz/_next/static/chunks/1800-e7da1874fb21bb7c.js

js thespinoff.co.nz collected 2026-10-01 08:56:16 UTC 6,994 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1800],{25395:function(e,a,s){s.d(a,{Y:function(){return c}});var t=s(85893),i=s(41664),n=s.n(i),r=s(57753),c=function(e){var a=e.author,s=e.isMatrix,i=e.orderCount,c=e.link,l=void 0!==c&&c,o=e.preText,d=e.date,u=e.index,m=e.total,h=a.position||"Guest writer",p="/authors/".concat(null===a||void 0===a?void 0:a.slug),v="";if(o&&m)switch(u){case 0:v="By ";break;case m-1:v="\xa0& ";break;default:v=", "}return(0,t.jsxs)("div",{className:"byline",children:[!s&&a.avatar&&(0,t.jsxs)("div",{className:"avatar",children:[l&&(0,t.jsx)(n(),{href:p,children:(0,t.jsx)("a",{"aria-hidden":"true",children:(0,t.jsx)(r.qE,{src:a.avatar,alt:"avatar"})})}),!l&&(0,t.jsx)(r.qE,{src:a.avatar,alt:"avatar"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{"aria-label":"written by ".concat(a.name),className:"name ".concat(i&&1==i||0==i?"b":""),children:[l&&(0,t.jsx)(n(),{href:p,children:(0,t.jsxs)("a",{"aria-label":"view all posts by ".concat(a.name,","),title:"view all posts by ".concat(a.name),rel:"author",children:[o&&(0,t.jsx)("span",{className:"pre-text",children:v}),a.name,d&&d]})}),!l&&(0,t.jsxs)(t.Fragment,{children:[o&&(0,t.jsx)("span",{className:"pre-text",children:v}),a.name,d&&d]})]}),i&&1!=i?(0,t.jsx)(t.Fragment,{}):(0,t.jsx)("div",{"aria-label":"role ".concat(h),className:"position",children:h})]})]})}},48102:function(e,a,s){s.d(a,{R:function(){return y}});var t=s(47568),i=s(70655),n=s(85893),r=s(94184),c=s.n(r),l=s(68713),o=s(20320),d=s(78420),u=s(98147),m=s(57321),h=s(10646),p=s(41664),v=s.n(p),x=s(94971),g=s(86970),j=s(25395),f=s(57753),y=function(e){var a,s,r=e.post,p=e.priorityImage,y=(0,m.K)().member,b=(0,h.Vb)().showReadingList,N=(0,o.t)(),k=N.isBookmarked,w=N.addBookmark,_=N.removeBookmark,T=String(r.id),Z=k(T),C=(0,d.Z)(r.date),E="https://thespinoff.co.nz",I="",M=r.categories&&r.categories.length&&r.categories[0].slug;switch(r.contentType.slug){case"post":I="Article",E="/".concat(M,"/").concat((0,u.Z)(C,l.xm),"/").concat(r.slug);break;case"live_updates":E="/live-updates/".concat((0,u.Z)(C,l.xm),"/").concat(r.slug),I=r.contentType.name;break;case"video":E=r.series?"/videos/".concat(r.series.slug,"/").concat(r.slug,"#video"):"/videos",I=r.contentType.name;break;default:I=r.contentType.name}var P="props.label",S=(0,d.Z)(r.date);return(0,n.jsxs)("article",{className:c()("card","post"),children:[y&&b&&(0,n.jsxs)("div",{className:c()("bookmark-postcard",Z&&"active"),onClick:(0,t.Z)((function(){var e;return(0,i.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),Z?[4,_(T)]:[3,2];case 1:return a.sent(),(0,x.removeFromBookmarksEvent)(window.location.href,"card"),[3,4];case 2:return[4,w(T)];case 3:a.sent(),(0,x.addToBookmarksEvent)(window.location.href,"card"),a.label=4;case 4:return[3,6];case 5:return e=a.sent(),console.error("Error toggling bookmark:",e),[3,6];case 6:return[2]}}
1))})),children:[Z&&(0,n.jsx)("a",{children:(0,n.jsx)("i",{className:"mini-solid mini-bookmark"})}),!Z&&(0,n.jsx)("a",{children:(0,n.jsx)("i",{className:"mini-regular mini-bookmark"})})]}),r.feature_image&&["post","video","podcast"].includes(r.contentType.slug)?(0,n.jsx)("div",{className:"image ".concat(r.type),children:(0,n.jsx)(v(),{href:E,children:(0,n.jsxs)("a",{children:["post"===r.contentType.slug&&(0,n.jsx)(f.$s,{src:r.feature_image.source,alt:r.feature_image.caption||r.title,priorityImage:p}),"video"===r.contentType.slug&&(0,n.jsx)(f.L4,{src:r.feature_image.source,alt:r.feature_image.caption||r.title})]})})}):["live_updates","liveblog-entry"].includes(r.contentType.slug)?(0,n.jsx)("div",{className:"image ".concat(r.type),children:(0,n.jsx)(v(),{href:E,children:(0,n.jsx)("a",{children:(0,n.jsxs)("div",{className:"lu-date",children:[(0,u.Z)(S,"MMM d yyyy"),","," ",(0,n.jsx)("span",{className:"time",children:(0,u.Z)(S,l.WJ)})]})})})}):(0,n.jsx)("div",{className:"image"}),(0,n.jsx)("div",{className:"body",children:(0,n.jsx)(v(),{href:E,children:(0,n.jsxs)("a",{children:[(0,n.jsx)("div",{className:"label",children:P}),(0,n.jsxs)("time",{className:"date",dateTime:r.date,children:[(0,g.L0)(new Date(r.date))," | ",I]}),(0,n.jsx)("h3",{className:"title",children:r.title}),(0,n.jsx)("div",{className:"summary",children:["live_updates","post"].includes(r.contentType.slug)?null===(a=r.summary)||void 0===a?void 0:a.replace(/(<([^>]+)>)/gi,""):null===(s=r.excerpt)||void 0===s?void 0:s.replace(/(<([^>]+)>)/gi,"")}),(0,n.jsx)(j.Y,{author:r.author})]})})})]})}},32681:function(e,a,s){s.d(a,{t:function(){return m}});var t=s(85893),i=s(53474),n=s(68713),r=s(78420),c=s(98147),l=s(41664),o=s.n(l),d=s(67294),u=s(57753),m=function(e){var a=e.podcast,s=e.podseries,l=a&&(0,r.Z)(a.date||a.pubdate?a.date?a.date:a.pubdate:null),m=a.imageFile?a.imageFile:s&&s.imageFile?s.imageFile:"",h=a.title&&a.title,p=s&&s.title?s.title:"",v=a.uid&&a.uid,x=(0,d.useState)(""),g=x[0],j=x[1];(0,d.useEffect)((function(){var e=a.subtitle?a.subtitle:a.summary?a.summary:"",s=e.length>300?e.substring(0,300)+"...":e;j(s)}),[s]);var f=s&&s.slug?"/podcasts/".concat(s.slug):"/podcasts";return(0,t.jsxs)("article",{className:"card podcast",children:[m&&(0,t.jsx)("div",{className:"image",children:(0,t.jsx)("a",{className:"podPlayNow podCardImg",onClick:function(){return(0,i.d)({uid:v,series:p,episode:h,player_location:"Podcast Card"})},"aria-hidden":!0,tabIndex:-1,children:(0,t.jsx)(u.IX,{src:m||"",alt:h})})}),(0,t.jsxs)("div",{className:"body",children:[(0,t.jsx)("div",{className:"label",children:p&&(0,t.jsx)(o(),{href:f,children:(0,t.jsx)("a",{tabIndex:-1,"aria-hidden":!0,children:p})})}),(0,t.jsx)("h3",{className:"title",children:(0,t.jsx)("a",{className:"podPlayNow",onClick:function(){return(0,i.d)({uid:v,series:p,episode:h,player_location:"Matrix category"})},"aria-label":"Podcast series: ".concat(p,", Latest episode: ").concat(h,", play now"),children:h})}),(0,t.jsx)("time",{className:"date",dateTime:l,children:l?(0,c.Z)(l,n.gn):""}),a.duration&&(0,t.jsx)("div",{className:"duration",children:a.duration}),a.subtitle&&(0,t.jsx)("span",{className:"summary",dangerouslySetInnerHTML:{__html:g}}),(0,t.jsx)("div",{className:"podcast-links",children:(0,t.jsx)("div",{className:"listen-now podPlayNow",onClick:function(){return(0,i.d)({uid:v,series:p,episode:h,player_location:"Matrix category"})},children:"Listen now \u25b6"})})]})]})}},96584:function(e,a,s){s.d(a,{n:function(){return n}});var t=s(44593),i=s(80599),n=function(e){var a=e||{},s=a.initialData,n=a.pagesize,r=void 0===n?10:n,c=a.types,l=(0,t.ZP)((function(e){var a=new URLSearchParams;a.set("offset",String(e*r)),a.set("limit",String(r));var s=null===c||void 0===c?void 0:c.map((function(e){return"&types=".concat(e)})).join("");return s||(s="&types=post"),"/api/firehose?".concat(a.toString()).concat(s)}),i._,{refreshInterval:3e4,fallbackData:s?[s]:void 0}),o=l.data,d=l.isValidating,u=l.size,m=l.setSize;return{firehose:o?o.flat():[],loading:d,page:u,hasMore:!o||o[o.length-1].length===r,setPage:m}}}}]);

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.