import{L as qp,b as Pa,ah as c$,bP as D,bQ as af,g,$ as $t,J as Jn,q as qn,l as ln,as as Yl,s as sp,n as Mx,F as Fp,u as ub,t as GH,a3 as B0,N as Nx,W as WH,p as e$}from'./main-BiUBeaMj.js';var A=(()=>{class i{inputId=qp.required();scopeItems;selectedId;ngOnInit(){this.buildScopeItems();}buildScopeItems(){this.scopeItems=[{id:"local",label:"Doar videoclipuri de pe aceast\u0103 platform\u0103"},{id:"federated",label:"Videoclipuri de pe toate platformele"}];}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:[c$([{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),Mx("ngModelChange",function(n){return e$(t.selectedId,n)||(t.selectedId=n),n;}),Fp("ngModelChange",function(){return t.onModelChange();}),ub(),GH()),o&2&&(B0("inputId",t.inputId())("items",t.scopeItems),Nx("ngModel",t.selectedId),WH());},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:"Ad\u0103ugate recent"},{id:"-originallyPublishedAt",label:"Data public\u0103rii originale"},{id:"name",label:"Nume"}],this.isTrendingSortEnabled("most-viewed")&&this.sortItems.push({id:"-trending",label:"Vizualiz\u0103ri recente"}),this.isTrendingSortEnabled("hot")&&this.sortItems.push({id:"-hot",label:"Populare"}),this.isTrendingSortEnabled("most-liked")&&this.sortItems.push({id:"-likes",label:"Like-uri"}),this.sortItems.push({id:"-views",label:"Vizualiz\u0103ri globale"});}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:[c$([{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),Mx("ngModelChange",function(n){return e$(t.selectedId,n)||(t.selectedId=n),n;}),Fp("ngModelChange",function(){return t.onModelChange();}),ub(),GH()),o&2&&(B0("inputId",t.inputId())("items",t.sortItems),Nx("ngModel",t.selectedId),WH());},dependencies:[Jn,qn,ln,Yl],encapsulation:2,changeDetection:1});}return i;})();/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{A,G};//# sourceMappingURL=chunk-DmAsi_9m.js.map