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-ajlqprgK.js';var A=(()=>{class i{inputId=qp.required();scopeItems;selectedId;ngOnInit(){this.buildScopeItems();}buildScopeItems(){this.scopeItems=[{id:"local",label:"\u50C5\u4F86\u81EA\u6B64\u5E73\u53F0\u7684\u5F71\u7247"},{id:"federated",label:"\u4F86\u81EA\u6240\u6709\u5E73\u53F0\u7684\u5F71\u7247"}];}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:"\u6700\u8FD1\u65B0\u589E"},{id:"-originallyPublishedAt",label:"\u539F\u59CB\u767C\u4F48\u65E5\u671F"},{id:"name",label:"\u540D\u7A31"}],this.isTrendingSortEnabled("most-viewed")&&this.sortItems.push({id:"-trending",label:"\u6700\u8FD1\u6AA2\u8996"}),this.isTrendingSortEnabled("hot")&&this.sortItems.push({id:"-hot",label:"\u71B1\u9580"}),this.isTrendingSortEnabled("most-liked")&&this.sortItems.push({id:"-likes",label:"\u559C\u6B61"}),this.sortItems.push({id:"-views",label:"\u5168\u57DF\u6AA2\u8996"});}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-bytnVBgC.js.map