1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4188],{24188:(t,e,r)=>{r.r(e),r.d(e,{EpisodeContents:()=>d});var n=r(95155),a=r(12115),c=r(89318),l=r(54043),i=r(34056),s=r(38806),o=r(28443);function d(t){let{splits:e,chapters:r,currentSec:d,onSeek:x,shareUrlFor:u,fallbackImg:m,className:h=""}=t,k=(0,a.useMemo)(()=>(0,l.c6)(e,r),[e,r]),b=(0,a.useMemo)(()=>{if(void 0===d)return -1;let t=(0,l.vL)(e,d);return t?k.findIndex(e=>"track"===e.kind&&e.split===t):k.reduce((t,e,r)=>"chapter"===e.kind&&e.startTime<=d?r:t,-1)},[k,e,d]);return k.length?(0,n.jsx)("ul",{className:"text-xs ".concat(h),children:k.map((t,e)=>{var a,l,d;let h=e===b;return(0,n.jsxs)("li",{className:"flex items-center gap-1 rounded -mx-2 transition ".concat(h?"bg-bolt/10":""),children:[(0,n.jsxs)("button",{type:"button",onClick:()=>x(t.startTime),title:"Jump to ".concat((0,c.Sc)(t.startTime)),className:"flex-1 min-w-0 flex gap-3 items-center text-left rounded transition py-1.5 px-2 ".concat(h?"text-bolt":"text-bone/80 hover:bg-bone/5"),children:[(0,n.jsx)(i.XB,{src:"track"===t.kind?t.split.image:t.chapter.img,fallback:m,className:"w-9 h-9 rounded object-cover flex-shrink-0 border border-bone/15"}),(0,n.jsx)("span",{className:"tabular-nums w-12 flex-shrink-0 ".concat(h?"text-bolt":"text-muted"),children:(0,c.Sc)(t.startTime)}),(0,n.jsx)(p,{row:t,chapters:r,index:e})]}),"chapter"===t.kind&&t.chapter.url&&(0,n.jsx)("a",{href:t.chapter.url,target:"_blank",rel:"noopener noreferrer",title:"Open chapter link","aria-label":"Open chapter link",className:"flex-shrink-0 px-2 py-1.5 text-muted hover:text-bolt transition",children:"â"}),u&&(0,n.jsx)(o.g,{url:u(t.startTime),title:"Copy link to this ".concat("chapter"===t.kind?"chapter":"track"," at ").concat((0,c.Sc)(t.startTime)),word:"",className:"flex-shrink-0 px-2 py-1.5 text-muted hover:text-bolt transition text-[10px] uppercase tracking-wider"}),"track"===t.kind&&(0,n.jsx)("div",{className:"flex-shrink-0 pr-1",children:(0,n.jsx)(s.RR,{split:t.split})})]},"track"===t.kind?"t-".concat(t.startTime,"-").concat(null!=(l=null==(a=t.split.remoteItem)?void 0:a.itemGuid)?l:e):"c-".concat(t.startTime,"-").concat(null!=(d=t.chapter.title)?d:e))})}):null}function p(t){var e,r;let{row:a,chapters:c,index:l}=t;if("track"===a.kind){let t=null!=(e=a.split.title)?e:a.absorbedTitle;return(0,n.jsx)("span",{className:"break-words min-w-0 ".concat(t?"":"text-muted italic"),children:null!=t?t:"Track not yet indexed"})}let i=c?c.indexOf(a.chapter):-1;return(0,n.jsx)("span",{className:"break-words min-w-0",children:null!=(r=a.chapter.title)?r:"Chapter ".concat((i>=0?i:l)+1)})}}}]);
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.