1import{u as o,j as e,D as n,L as m,C as s,a as u,b as v,H as l,c as r}from"./index-B-8CDiEL.js";import{S as k}from"./SmartTime-index-D7lZYwc0.js";const h=l.table.withConfig({componentId:"sc-a213df65-0"})(["width:100%;margin:2em 0;"]),t=l.th.withConfig({componentId:"sc-a213df65-1"})(["text-align:left;text-align:start;"]),x={kind:"Document",definitions:[{kind:"OperationDefinition",name:{kind:"Name",value:"LivestreamOverviewPageQuery"},directives:[],variableDefinitions:[],operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"videos"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"isLivestream"},value:{kind:"BooleanValue",value:!0}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isLive"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultTrack"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:230,source:{body:` 2 query LivestreamOverviewPageQuery { 3 viewer { 4 id 5 videos(filter: { isLivestream: true }) { 6 id 7 created 8 isLive 9 defaultTrack { 10 id 11 title 12 } 13 } 14 } 15 } 16`}}},f=()=>{const{data:d,loading:c,error:a}=o(x);return c?e.jsx(n,{children:e.jsx(m,{})}):a?e.jsx(n,{children:e.jsxs(s,{children:["An error occurred: ",u.inspect(a)]})}):!d||!d.viewer?e.jsx(n,{children:e.jsx(s,{children:"No data"})}):e.jsx(n,{children:e.jsxs(s,{children:[e.jsx("h1",{children:"Livestreams"}),e.jsx("p",{children:"Broadcast your events and your activities â live and multilingual!"}),e.jsx("div",{children:e.jsx(v,{to:"/livestreams/new",children:"New livestream"})}),e.jsxs(h,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx(t,{children:"Title"}),e.jsx(t,{children:"Live"}),e.jsx(t,{children:"Created at"}),e.jsx(t,{children:"Actions"})]})}),e.jsx("tbody",{children:d.viewer.videos.map(i=>e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx(r,{to:`/videos/${i.id}`,children:i.defaultTrack.title})}),e.jsx("td",{children:i.isLive?"Yes":"No"}),e.jsx("td",{children:e.jsx(k,{time:i.created})}),e.jsx("td",{children:e.jsx(r,{to:`/livestreams/${i.id}`,children:"Edit"})})]},i.id))})]})]})})};export{f as default};
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.