1import{o as S,ay as a,bT as F}from"./index-B-8CDiEL.js";import{b as p,c as h}from"./ArticleCardContent-BVliUN3a.js";const t=S({Science:{id:"VideoSettings.categoryScience",defaultMessage:"Science & Tech"},Entertainment:{id:"VideoSettings.categoryEntertainment",defaultMessage:"Entertainment"},Travel:{id:"VideoSettings.categoryTravel",defaultMessage:"Events & Travel"},Practical:{id:"VideoSettings.categoryPractical",defaultMessage:"Tips & Styling"},News:{id:"VideoSettings.categoryNews",defaultMessage:"News & Politics"},Music:{id:"VideoSettings.categoryMusic",defaultMessage:"Music"},People:{id:"VideoSettings.categoryPeople",defaultMessage:"People & Blogs"},Photovideography:{id:"VideoSettings.categoryPhotoVideography",defaultMessage:"Photo & Videography"},Film:{id:"VideoSettings.categoryFilm",defaultMessage:"Film & Animation"},Education:{id:"VideoSettings.categoryEducation",defaultMessage:"Education"},Press:{id:"VideoSettings.categoryPress",defaultMessage:"Press"},Animals:{id:"VideoSettings.categoryAnimals",defaultMessage:"Animals"},Games:{id:"VideoSettings.categoryGaming",defaultMessage:"Games"}}),M=[{message:t.Science,id:a.SCIENCE},{message:t.Entertainment,id:a.ENTERTAINMENT},{message:t.Travel,id:a.TRAVEL},{message:t.Practical,id:a.PRACTICAL},{message:t.News,id:a.NEWS},{message:t.Music,id:a.MUSIC},{message:t.People,id:a.PEOPLE},{message:t.Film,id:a.FILM},{message:t.Education,id:a.EDUCATION},{message:t.Press,id:a.PRESS},{message:t.Animals,id:a.ANIMALS},{message:t.Games,id:a.GAMES},{message:t.Photovideography,id:a.PHOTOVIDEOGRAPHY}],V={definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProducerVideosTrackAssets"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Track"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnailAsset"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"representations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"backgroundAsset"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"representations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]}]}}]}}]}}]},y=`#import "./ProducerVideosTrackAssets.graphql" 2#import "./VideoCardVideo.graphql" 3#import "./VideoCardTrack.graphql" 4#import "@web/dubbr/graphql/fragments/VideoInfoAsset.graphql" 5 6fragment ProducerVideos on Video { 7 id 8 languages 9 created 10 published 11 duration 12 state 13 views 14 platform 15 platformId 16 asset { 17 id 18 ...VideoInfoAsset 19 duration 20 } 21 owner { 22 id 23 name 24 } 25 track(preferredLanguages: $preferredLanguages) { 26 id 27 langCode 28 title 29 state 30 description 31 thumbnailAssetId 32 ...ProducerVideosTrackAssets 33 ...VideoCardTrack 34 } 35 categories 36 youthProtection 37 thumbnailAssetId 38 backgroundAudioAsset { 39 id 40 type 41 format 42 representations { 43 href 44 } 45 } 46 viewerCanRemove 47 ...VideoCardVideo 48} 49`,d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ProducerVideos"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Video"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"languages"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"published"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"platform"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"platformId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"asset"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"VideoInfoAsset"},directives:[]},{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"owner"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"track"},arguments:[{kind:"Argument",name:{kind:"Name",value:"preferredLanguages"},value:{kind:"Variable",name:{kind:"Name",value:"preferredLanguages"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"langCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnailAssetId"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ProducerVideosTrackAssets"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"VideoCardTrack"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"categories"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"youthProtection"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnailAssetId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"backgroundAudioAsset"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"representations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"viewerCanRemove"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"VideoCardVideo"},directives:[]}]}}],loc:{start:0,end:800,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:y}}},u=m=>{const l={};return m.filter(function(s){if(s.kind!=="FragmentDefinition")return!0;const c=s.name.value;return l[c]?!1:(l[c]=!0,!0)})};d.definitions=u(d.definitions.concat(V.definitions));d.definitions=u(d.definitions.concat(p.definitions));d.definitions=u(d.definitions.concat(h.definitions));d.definitions=u(d.definitions.concat(F.definitions));const P=(m,l)=>{const s=(e,i)=>{if(e.kind==="FragmentSpread")i.add(e.name.value);else if(e.kind==="VariableDefinition"){const n=e.type;n.kind==="NamedType"&&i.add(n.name.value)}return e&&"selectionSet"in e&&e.selectionSet&&e.selectionSet.selections.forEach(n=>{s(n,i)}),e&&"variableDefinitions"in e&&e.variableDefinitions&&e.variableDefinitions.forEach(n=>{s(n,i)}),e&&"definitions"in e&&e.definitions&&e.definitions.forEach(n=>{s(n,i)}),i},c=e=>{const i={};return e.definitions.forEach(function(n){"name"in n&&n.name&&(i[n.name.value]=s(n,new Set))}),i},k=(e,i)=>{for(let n=0;n<e.definitions.length;n++){const r=e.definitions[n];if(r&&"name"in r&&r.name&&r.name.value==i)return r}},v=c(m),f=Object.assign({},m,{definitions:[k(m,l)]}),N=v[l]||new Set,g=new Set;let o=new Set;
49for(N.forEach(e=>{o.add(e)});o.size>0;){const e=o;o=new Set,e.forEach(i=>{g.has(i)||(g.add(i),(v[i]||new Set).forEach(r=>{o.add(r)}))})}return g.forEach(e=>{const i=k(m,e);i&&f.definitions.push(i)}),f};P(d,"ProducerVideos");export{d as _,t as a,V as b,M as c};
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.