PageSourceSearch

https://app.livestreampro.ai/chunk-42CR3HUT.js

js livestreampro.ai collected 2026-10-02 01:15:39 UTC 9,889 bytes, 1 lines download raw bytes

1import{e as F}from"./chunk-YLRD2CQK.js";import"./chunk-H6Y64HCU.js";import{a as y}from"./chunk-LBHGEV75.js";import"./chunk-RSOFTNO4.js";import{t as L,z as N}from"./chunk-FCXDAJ5A.js";import"./chunk-L5L7JCQV.js";import{$b as u,Ba as c,Ec as D,Gc as x,Hc as a,Ic as l,Jc as E,Lc as w,Wb as m,Xb as p,_b as g,ec as r,fc as i,hb as o,hd as I,jd as M,la as f,mc as C,rc as S,sa as _,sc as s,ta as b,ya as v,zb as T}from"./chunk-E725QQR6.js";import"./chunk-RKIXE2YC.js";var k=(e,n)=>n.id;function P(e,n){if(e&1){let t=C();r(0,"div",3)(1,"p",11),a(2,"The list of shows could not be loaded."),i(),r(3,"p",12),a(4),i(),r(5,"button",13),S("click",function(){_(t);let h=s();return b(h.loadList())}),a(6," Try again "),i()()}if(e&2){let t=s();o(4),l(t.listError())}}function V(e,n){e&1&&(r(0,"p",6),a(1,"Loading shows\u2026"),i())}function B(e,n){e&1&&(r(0,"div",7)(1,"p",14),a(2," No shows have been transcribed yet. "),i(),r(3,"p",2),a(4," Show transcription is off for every tenant until it is switched on, and a show only appears here once its audio starts arriving. "),i()())}function R(e,n){e&1&&(r(0,"span",21),a(1,"no speaker labels"),i())}function W(e,n){if(e&1){let t=C();r(0,"li")(1,"button",15),S("click",function(){let h=_(t).$implicit,A=s();return b(A.select(h.id))}),r(2,"div",16)(3,"span",17),a(4),i(),r(5,"span",18),a(6),i()(),r(7,"div",19)(8,"span"),a(9),I(10,"date"),i(),r(11,"span"),a(12,"\xB7"),i(),r(13,"span"),a(14),i(),r(15,"span"),a(16,"\xB7"),i(),r(17,"span"),a(18),i()(),r(19,"div",20)(20,"span"),a(21),i(),m(22,R,2,0,"span",21),i()()()}if(e&2){let t=n.$implicit,d=s();o(),D("bg-blue-50",t.id===d.selectedId())("dark:bg-gray-800",t.id===d.selectedId()),o(3),l(t.marketplaceStreamId),o(),x(d.ownershipClass(t.ownership)),o(),l(d.ownershipLabel(t.ownership)),o(3),l(M(10,15,t.startedAt,"MMM d, HH:mm")),o(5),E("",t.segmentCount," segments"),o(4),l(d.audioMinutes(t)),o(2),x(d.statusClass(t.status)),o(),l(t.status),o(),p(t.diarized?-1:22)}}function O(e,n){if(e&1&&(r(0,"div",3)(1,"p",11),a(2,"This transcript could not be loaded."),i(),r(3,"p",12),a(4),i()()),e&2){let t=s();o(4),l(t.detailError())}}function j(e,n){e&1&&(r(0,"p",10),a(1,"Loading transcript\u2026"),i())}function z(e,n){e&1&&(r(0,"p",10),a(1," Pick a show on the left to read its transcript. "),i())}function H(e,n){if(e&1&&(r(0,"div",25)(1,"span",11),a(2,"Last transcription error:"),i(),a(3),i()),e&2){let t=s(2);o(3),E(" ",t.detail().lastError," ")}}function U(e,n){e&1&&(r(0,"p",28),a(1," This show was transcribed by a provider that cannot tell voices apart, so nobody is attributed and no presenter changes were detected. The words and their timings are real; the speakers are simply not known. "),i())}function G(e,n){e&1&&(r(0,"p",29),a(1," One voice throughout \u2014 no presenter change was detected. "),i())}function q(e,n){if(e&1&&(r(0,"li",33)(1,"span",34),a(2),i(),a(3),i()),e&2){let t=n.$implicit,d=s(3);o(2),l(d.showTime(t.atMs)),o(),w(" \u2014 speaker ",t.fromSpeaker??"start"," \u2192 speaker ",t.toSpeaker,", held ",(t.heldMs/1e3).toFixed(0),"s ")}}function J(e,n){if(e&1&&(r(0,"ul",30),g(1,q,4,4,"li",33,k),i()),e&2){let t=s(2);o(),u(t.detail().speakerChanges)}}function K(e,n){e&1&&(r(0,"p",29),a(1," No speech has been transcribed for this show yet. "),i())}function Q(e,n){if(e&1&&(r(0,"span",40),a(1),i()),e&2){let t=s().$implicit,d=s(2);x(d.speakerClass(t.speakerLabel)),o(),E("Speaker ",t.speakerLabel)}}function X(e,n){e&1&&(r(0,"span",38),a(1,"\u2014"),i())}function Y(e,n){if(e&1&&(r(0,"li",32)(1,"span",35),a(2),i(),r(3,"span",36),m(4,Q,2,3,"span",37)(5,X,2,0,"span",38),i(),r(6,"span",39),a(7),i()()),e&2){let t=n.$implicit,d=s(2);o(2),l(d.showTime(t.startMs)),o(2),p(t.speakerLabel?4:5),o(3),l(t.text)}}function Z(e,n){if(e&1&&(r(0,"div",22)(1,"span",23),a(2),i(),r(3,"span"),a(4),i(),r(5,"span",24),a(6),i()(),m(7,H,4,1,"div",25),r(8,"div",26)(9,"h2",27),a(10," When the presenter changed "),i(),m(11,U,2,0,"p",28)(12,G,2,0,"p",29)(13,J,3,0,"ul",30),i(),r(14,"h2",27),a(15," Transcript "),i(),m(16,K,2,0,"p",29),r(17,"ol",31),g(18,Y,8,3,"li",32,k),i()),e&2){let t=s();o(2),l(t.detail().marketplaceStreamId),o(),x(t.statusClass(t.detail().status)),o(),l(t.detail().status),o(2),w("",t.detail().provider??"no provider yet"," \xB7 ",t.audioMinutes(t.detail())," of audio \xB7 ",t.detail().chunkCount," chunks"),o(),p(t.detail().lastError?7:-1),o(4),p(t.detail().diarized?t.detail().speakerChanges.length===0?12:13:11),o(5),p(t.detail().segments.length===0?16:-1),o(2),u(t.detail().segments)}}function tt(e){let n=Math.floor(e/6e4),t=Math.floor(e%6e4/1e3);return`${String(n).padStart(2,"0")}
1:${String(t).padStart(2,"0")}`}function et(e){return`${(e/60).toFixed(1)} min`}var $=class e{platformAi=f(F);destroyRef=f(v);transcripts=c([]);loadingList=c(!0);listError=c(null);detail=c(null);loadingDetail=c(!1);detailError=c(null);selectedId=c(null);showTime=tt;constructor(){this.loadList()}loadList(){this.loadingList.set(!0),this.listError.set(null),this.platformAi.list({limit:"50"}).pipe(y(this.destroyRef)).subscribe({next:n=>{this.transcripts.set(n),this.loadingList.set(!1);let t=n[0];t&&!this.selectedId()&&this.select(t.id)},error:n=>{this.listError.set(n instanceof Error?n.message:"Something went wrong."),this.loadingList.set(!1)}})}select(n){this.selectedId.set(n),this.loadingDetail.set(!0),this.detailError.set(null),this.platformAi.get(n).pipe(y(this.destroyRef)).subscribe({next:t=>{this.detail.set(t),this.loadingDetail.set(!1)},error:t=>{this.detailError.set(t instanceof Error?t.message:"Something went wrong."),this.detail.set(null),this.loadingDetail.set(!1)}})}audioMinutes(n){return et(n.audioSeconds)}ownershipLabel(n){return n==="OWNED"?"Own show":"Watched show"}ownershipClass(n){return n==="OWNED"?"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-300":"bg-purple-100 text-purple-800 dark:bg-purple-950 dark:text-purple-300"}statusClass(n){return n==="FAILED"?"text-red-700 dark:text-red-400":n==="CAPTURING"?"text-blue-700 dark:text-blue-400":"text-green-700 dark:text-green-500"}speakerClass(n){let t=["bg-blue-100 text-blue-800 dark:bg-blue-950 dark:text-blue-300","bg-emerald-100 text-emerald-800 dark:bg-emerald-950 dark:text-emerald-300","bg-orange-100 text-orange-800 dark:bg-orange-950 dar
1k:text-orange-300","bg-pink-100 text-pink-800 dark:bg-pink-950 dark:text-pink-300"],d=n.charCodeAt(0)%t.length;return t[d]}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=T({type:e,selectors:[["app-show-transcripts"]],decls:19,vars:3,consts:[[1,"flex","h-full","flex-col","gap-4"],[1,"text-xl","font-semibold","text-gray-900","dark:text-gray-100"],[1,"mt-1","text-sm","text-gray-600","dark:text-gray-400"],[1,"rounded-lg","border","border-red-200","bg-red-50","p-4","text-sm","text-red-800","dark:border-red-900","dark:bg-red-950","dark:text-red-200"],[1,"grid","min-h-0","flex-1","grid-cols-1","gap-4","lg:grid-cols-[22rem_1fr]"],[1,"min-h-0","overflow-y-auto","rounded-lg","border","border-gray-200","bg-white","dark:border-gray-800","dark:bg-gray-900"],[1,"p-4","text-sm","text-gray-500"],[1,"p-4"],[1,"divide-y","divide-gray-100","dark:divide-gray-800"],[1,"min-h-0","overflow-y-auto","rounded-lg","border","border-gray-200","bg-white","p-4","dark:border-gray-800","dark:bg-gray-900"],[1,"text-sm","text-gray-500"],[1,"font-medium"],[1,"mt-1"],["type","button",1,"mt-3","rounded-md","border","border-red-300","px-3","py-1.5","font-medium","hover:bg-red-100","dark:border-red-800","dark:hover:bg-red-900",3,"click"],[1,"text-sm","font-medium","text-gray-900","dark:text-gray-100"],["type","button",1,"w-full","px-4","py-3","text-left","hover:bg-gray-50","dark:hover:bg-gray-800",3,"click"],[1,"flex","items-center","justify-between","gap-2"],[1,"truncate","font-mono","text-xs","text-gray-900","dark:text-gray-100"],[1,"shrink-0","rounded","px-1.5","py-0.5","text-[11px]","font-medium"],[1,"mt-1","flex","items-center","gap-2","text-xs","text-gray-500"],[1,"mt-1","flex","items-center","gap-2","text-xs"],[1,"text-amber-700","dark:text-amber-500"],[1,"mb-4","flex","flex-wrap","items-center","gap-x-4","gap-y-1","text-sm"],[1,"font-mono","text-xs","text-gray-500"],[1,"text-gray-600","dark:text-gray-400"],[1,"mb-4","rounded-lg","border","border-red-200","bg-red-50","p-3","text-sm","text-red-800","dark:border-red-900","dark:bg-red-950","dark:text-red-200"],[1,"mb-4"],[1,"mb-2","text-sm","font-semibold","text-gray-900","dark:text-gray-100"],[1,"rounded-lg","border","border-amber-200","bg-amber-50","p-3","text-sm","text-amber-900","dark:border-amber-900","dark:bg-amber-950","dark:text-amber-200"],[1,"text-sm","text-gray-600","dark:text-gray-400"],[1,"flex","flex-wrap","gap-2"],[1,"space-y-1"],[1,"flex","gap-3","text-sm"],[1,"rounded-full","border","border-gray-200","px-3","py-1","text-xs","text-gray-800","dark:border-gray-700","dark:text-gray-200"],[1,"font-mono"],[1,"w-12","shrink-0","pt-0.5","text-right","font-mono","text-xs","text-gray-400"],[1,"w-20","shrink-0","pt-0.5"],[1,"rounded","px-1.5","py-0.5","text-xs","font-medium",3,"class"],[1,"text-xs","text-gray-400"],[1,"text-gray-800","dark:text-gray-200"],[1,"rounded","px-1.5","py-0.5","text-xs","font-medium"]],template:function(t,d){t&1&&(r(0,"div",0)(1,"header")(2,"h1",1),a(3," Show transcripts "),i(),r(4,"p",2),a(5," What was said on a show, with timestamps and \u2014 where the provider can tell voices apart \u2014 who was speaking. "),i()(),m(6,P,7,1,"div",3),r(7,"div",4)(8,"aside",5),m(9,V,2,0,"p",6)(10,B,5,0,"div",7),r(11,"ul",8),g(12,W,23,18,"li",null,k),i()(),r(14,"section",9),m(15,O,5,1,"div",3)(16,j,2,0,"p",10)(17,z,2,0,"p",10)(18,Z,20,10),i()()()),t&2&&(o(6),p(d.listError()?6:-1),o(3),p(d.loadingList()?9:d.transcripts().length===0&&!d.listError()?10:-1),o(3),u(d.transcripts()),o(3),p(d.detailError()?15:d.loadingDetail()?16:d.detail()?18:17))},dependencies:[N,L],encapsulation:2,changeDetection:0})};export{$ as ShowTranscriptsComponent};

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.