import{K as qp,b as Pa,ah as u$,bP as D,bQ as af,g,$ as $t,J as Jn,q as qn,l as ln,as as Yl,s as sp,O as Ox,e as Fp,d as lb,m as zH,a3 as H0,u as Mx,y as qH,t as t$}from'./main-DEZ5cZzu.js';var A=(()=>{class i{inputId=qp.required();scopeItems;selectedId;ngOnInit(){this.buildScopeItems();}buildScopeItems(){this.scopeItems=[{id:"local",label:"Pouze videa z t\xE9to platformy"},{id:"federated",label:"Videa ze v\u0161ech platforem"}];}propagateChange=e=>{};writeValue(e){this.selectedId=e;}registerOnChange(e){this.propagateChange=e;}registerOnTouched(){}onModelChange(){this.propagateChange(this.selectedId);}static ɵfac=function(o){return new(o||i)();};static ɵcmp=Pa({type:i,selectors:[["my-select-videos-scope"]],inputs:{inputId:[1,"inputId"]},features:[u$([{provide:D,useExisting:af(()=>i),multi:true}])],decls:1,vars:3,consts:[[3,"ngModelChange","inputId","items","ngModel"]],template:function(o,t){o&1&&(sp(0,"my-select-options",0),Ox("ngModelChange",function(n){return t$(t.selectedId,n)||(t.selectedId=n),n;}),Fp("ngModelChange",function(){return t.onModelChange();}),lb(),zH()),o&2&&(H0("inputId",t.inputId())("items",t.scopeItems),Mx("ngModel",t.selectedId),qH());},dependencies:[Jn,qn,ln,Yl],encapsulation:2,changeDetection:1});}return i;})();var G=(()=>{class i{server=g($t);inputId=qp.required();sortItems;selectedId;serverConfig;ngOnInit(){this.serverConfig=this.server.getHTMLConfig(),this.buildSortItems();}buildSortItems(){this.sortItems=[{id:"-publishedAt",label:"Ned\xE1vno p\u0159idan\xE9"},{id:"-originallyPublishedAt",label:"P\u016Fvodn\xED datum zve\u0159ejn\u011Bn\xED"},{id:"name",label:"Jm\xE9no"}],this.isTrendingSortEnabled("most-viewed")&&this.sortItems.push({id:"-trending",label:"Ned\xE1vn\xE1 zhl\xE9dnut\xED"}),this.isTrendingSortEnabled("hot")&&this.sortItems.push({id:"-hot",label:"\u017Dhav\xE1"}),this.isTrendingSortEnabled("most-liked")&&this.sortItems.push({id:"-likes",label:"L\xEDb\xED se mi"}),this.sortItems.push({id:"-views",label:"Glob\xE1ln\xED zhl\xE9dnut\xED"});}isTrendingSortEnabled(e){return this.serverConfig.trending.videos.algorithms.enabled.includes(e);}propagateChange=e=>{};writeValue(e){this.selectedId=e;}registerOnChange(e){this.propagateChange=e;}registerOnTouched(){}onModelChange(){this.propagateChange(this.selectedId);}static ɵfac=function(o){return new(o||i)();};static ɵcmp=Pa({type:i,selectors:[["my-select-videos-sort"]],inputs:{inputId:[1,"inputId"]},features:[u$([{provide:D,useExisting:af(()=>i),multi:true}])],decls:1,vars:3,consts:[[3,"ngModelChange","inputId","items","ngModel"]],template:function(o,t){o&1&&(sp(0,"my-select-options",0),Ox("ngModelChange",function(n){return t$(t.selectedId,n)||(t.selectedId=n),n;}),Fp("ngModelChange",function(){return t.onModelChange();}),lb(),zH()),o&2&&(H0("inputId",t.inputId())("items",t.sortItems),Mx("ngModel",t.selectedId),qH());},dependencies:[Jn,qn,ln,Yl],encapsulation:2,changeDetection:1});}return i;})();/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{A,G};//# sourceMappingURL=chunk-CoFxqtb1.js.map