1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="815107d3-efa8-41ee-bd51-5726c45930f1",e._sentryDebugIdIdentifier="sentry-dbid-815107d3-efa8-41ee-bd51-5726c45930f1")}catch(e){}}();"use strict";(self.webpackChunkaudioboom_web=self.webpackChunkaudioboom_web||[]).push([[9685],{59685:function(e,t,l){l.d(t,{TopMillionTableContainer:function(){return y}});var n=l(74848),a=l(96540),s=l(43657),i=l(9440),o=l(79371),r=l(87948),c=l(24694),u=l(60392),d=l(20311),m=l.n(d),p=l(15685);function b(e){let t=e.headers,l=e.data;return l.length?(t.includes("clip_id")?m()("channel_id,clip_id,listens,season,episode,title,published_at,state"===t.join(","),"data doesn't match ClipInRowT %s",t):m()("channel_id,listens,title,created_at,image_url"===t.join(","),"data doesn't match ChannelInRowT %s",t),l.map(e=>Object.fromEntries(t.map((t,l)=>[t,e[l]])))):[]}function f(e){let{from_date:t,to_date:l,day_count:n}=(0,u.$Z)(window.location);if("clip_id"in e)return(0,o.jj)(e.channel_id,e.clip_id);if("channel_id"in e)return(0,o.bA)(e.channel_id,{from_date:t,to_date:l,day_count:n});throw Error(`unexpected input row format ${JSON.stringify(e)}`)}let h={columnInfo:{colTitles:["Title","Listens"],colAriaLabels:["Title: activate to sort column","Listens: activate to sort column"],colWidths:["","9em"],colCellClasses:["text-truncate-ns","tr numeric-tabular"]},pluralEntityName:"podcasts",columnSortKeys:[{column:0,inputValue:"title"},{column:1,inputValue:"listens",default:!0}],cellContentRenderers:[e=>(0,n.jsx)(r.hI,{title:e.title,href:f(e),image:e.image_url}),e=>(0,r.Eg)(e.listens)]},_={columnInfo:{colTitles:["Title","Published","Listens"],colAriaLabels:["Title: activate to sort column","date published","Listens: activate to sort column"],colWidths:["","10em","7em"],colCellClasses:["text-truncate-ns qa-title","tl qa-date","tr numeric-tabular qa-listens"]},pluralEntityName:"episodes",columnSortKeys:[{column:0,inputValue:"title"},{column:1,inputValue:"published_at"},{column:2,inputValue:"listens",default:!0}],cellContentRenderers:[e=>(0,n.jsx)(r.Y3,{title:e.title,href:f(e),seasonNumber:e.season,episodeNumber:e.episode,icon:"deleted"===e.state?p.sjs:null}),e=>(0,r.nr)(e.published_at),e=>(0,r.Eg)(e.listens)]},g={top_podcasts:e=>(0,a.createElement)(i.A,{ariaTableName:h.pluralEntityName,...h,data:b(e),rowHref:e=>f(e),key:"top_podcasts",pageInfoAboveControls:!0}),top_posts:e=>(0,a.createElement)(i.A,{ariaTableName:_.pluralEntityName,..._,data:w(b(e)),rowHref:e=>f(e),key:"top_posts",pageInfoAboveControls:!0})};function y({stats:e}){let[t,l]=a.useState(0),i=e.map(([e,t])=>t?.title),o=e[t],r=o[1];return(0,n.jsxs)("div",{children:[(0,n.jsx)(j,{titles:i,selectedIndex:t,navClickHandler:l}),r?.truncated?(0,n.jsx)("div",{className:"mvm",children:(0,n.jsx)(c.A,{msg:c.c.MAX_ROW_LIMIT_REACHED})}):null,r?.state==="done"?r.datalength?g[o[0]](r):"no data found":(0,n.jsx)("div",{className:"pos-rel mvl text-muted",style:{minHeight:350},children:(0,n.jsx)(s.Ay,{})})]})}let w=e=>{let t=new Date().toISOString();return e.filter(e=>e.published_at<=t)};function j({titles:e,selectedIndex:t,navClickHandler:l}){return 1===e.length?(0,n.jsx)("h5",{className:"mbm",children:e[0]}):(0,n.jsx)("div",{className:"mbm",children:e.map((e,a)=>(0,n.jsx)("button",{type:"button",className:"tableHeader__uDn4F fs-5 "+(t===a?"tableHeaderSelected__cQu6D":""),onClick:()=>l(a),children:e},a))})}}}]);
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.