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:"\u3053\u306E\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u52D5\u753B\u306E\u307F"},{id:"federated",label:"\u5168\u3066\u306E\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u52D5\u753B\u3092\u5BFE\u8C61\u306B\u3059\u308B"}];}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\u8FFD\u52A0"},{id:"-originallyPublishedAt",label:"\u30AA\u30EA\u30B8\u30CA\u30EB\u306E\u516C\u958B\u65E5"},{id:"name",label:"\u540D\u524D"}],this.isTrendingSortEnabled("most-viewed")&&this.sortItems.push({id:"-trending",label:"\u6700\u8FD1\u8996\u8074"}),this.isTrendingSortEnabled("hot")&&this.sortItems.push({id:"-hot",label:"\u8A71\u984C"}),this.isTrendingSortEnabled("most-liked")&&this.sortItems.push({id:"-likes",label:"\u8A55\u4FA1\uFF08\u9AD8\u8A55\u4FA1\u30FB\u4F4E\u8A55\u4FA1\u306E\u5408\u7B97\uFF09"}),this.sortItems.push({id:"-views",label:"\u30B0\u30ED\u30FC\u30D0\u30EB\u306A\u8996\u8074\u56DE\u6570"});}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