import{d as w,e as N}from"./chunk-IW76GIZR.js";import{h as v}from"./chunk-6B7LVSD5.js";import{a as $}from"./chunk-NPJE7ESS.js";import{b as z}from"./chunk-5FHECZHZ.js";import{E as G,a as x,d as n,g as y,o as b}from"./chunk-U7YDHGE3.js";import{Ec as h,Hb as O,Jb as C,Na as _,Ua as I,Y as g,cc as D,dc as T,ec as R,ga as A,gb as c,ha as u,hb as m,kc as f,mb as d,nb as V,ob as E,pb as p,ra as S,xc as M,zb as L}from"./chunk-DZBHF6HI.js";import{i as s}from"./chunk-IQVXR75E.js";function F(e,o){e&1&&p(0,"my-collaborator-state",2);}function P(e,o){e&1&&p(0,"my-collaborator-state",3);}function W(e,o){if(e&1&&c(0,F,1,0,"my-collaborator-state",2)(1,P,1,0,"my-collaborator-state",3),e&2){let r=C().$implicit;m(r.editor?0:r.owner?1:-1);}}function Y(e,o){if(e&1&&c(0,W,2,1),e&2){let r=o.$implicit;m(r.collaborate?0:-1);}}var ee=(()=>{let o=class o{inputId=h.required();items=h([]);channels;selectedId;ngOnChanges(){this.channels=this.items().map(t=>{let a=t.avatarFileUrl?t.avatarFileUrl:z.GET_DEFAULT_AVATAR_URL(21);return Object.assign({},t,{imageUrl:a});});}propagateChange=t=>{};writeValue(t){this.selectedId=typeof t=="string"?parseInt(t,10):t;}registerOnChange(t){this.propagateChange=t;}registerOnTouched(){}onModelChange(){this.propagateChange(this.selectedId);}getSelectedChannel(){return(this.channels||[]).find(t=>t.id+""==this.selectedId+"");}};s(o,"\u0275fac",function(a){return new(a||o)();}),s(o,"\u0275cmp",_({type:o,selectors:[["my-select-channel"]],inputs:{inputId:[1,"inputId"],items:[1,"items"]},features:[f([{provide:x,useExisting:g(()=>o),multi:!0}]),S],decls:3,vars:4,consts:[["itemExtra",""],[3,"ngModelChange","inputId","items","ngModel","filter"],["type","accepted","disableTooltip","true",1,"lh-1","ms-2"],["type","owner","disableTooltip","true",1,"lh-1","ms-2"]],template:function(a,i){if(a&1){let q=L();V(0,"my-select-options",1),R("ngModelChange",function(l){return A(q),T(i.selectedId,l)||(i.selectedId=l),u(l);}),O("ngModelChange",function(){return i.onModelChange();}),I(1,Y,1,1,"ng-template",null,0,M),E();}a&2&&(d("inputId",i.inputId())("items",i.channels),D("ngModel",i.selectedId),d("filter",i.channels&&i.channels.length>5));},dependencies:[G,y,b,v,$],encapsulation:2}));let e=o;return e;})();var ie={VALIDATORS:[n.required,n.minLength(3),n.maxLength(120)],MESSAGES:{required:"Necesas nomo de filmo.",minlength:"Nomo de filmo devas havi almena\u016D 3 signojn.",maxlength:"Nomo de filmo ne povas havi pli ol 120 signojn.",spaces:"Video name has leading or trailing whitespace."}},re={VALIDATORS:[n.required],MESSAGES:{required:"Necesas privateco de filmo."}},le={VALIDATORS:[n.minLength(2),n.maxLength(100)],MESSAGES:{minlength:"A password should be at least 2 characters long.",maxlength:"A password should be shorter than 100 characters long.",required:"A password is required for password protected video."}},se={VALIDATORS:[],MESSAGES:{}},ce={VALIDATORS:[],MESSAGES:{}},me={VALIDATORS:[],MESSAGES:{}};var de={VALIDATORS:[n.required],MESSAGES:{required:"Necesas filma kanalo."}},pe={VALIDATORS:[n.minLength(3),n.maxLength(1e4)],MESSAGES:{minlength:"Priskribo de filmo devas havi almena\u016D 3 signojn.",maxlength:"Priskribo de filmo ne povas havi pli ol 10000 signojn."}},he={VALIDATORS:[n.maxLength(5),B()],MESSAGES:{maxlength:"Filmo povas havi maksimume 5 etikedojn.",arrayTagLength:"Etikedo longu inter 1 kaj 30 signoj, neinkluzive."}},ge={VALIDATORS:[n.minLength(3),n.maxLength(1e3)],MESSAGES:{minlength:"Loka teksto pri subteno devas havi almena\u016D 3 signojn.",maxlength:"Loka teksto pri subteno ne povas havi pli ol 1000 signojn."}};function Ae(e){N(e,3,{message:"Support must be at least 3 characters long."}),w(e,1e3,{message:"Support cannot be more than 1000 characters long."});}var ue={VALIDATORS:[n.minLength(3),n.maxLength(250)],MESSAGES:{minlength:"Loka teksto pri subteno devas havi almena\u016D 3 signojn.",maxlength:"Video support cannot be more than 250 characters long."}},Se={VALIDATORS:[],MESSAGES:{required:"Necesas dato por plani \u011Disdatigon de filmo."}},_e={VALIDATORS:[],MESSAGES:{}};function B(e=2,o=30){return r=>r.value.every(a=>a.length>=e&&a.length<=o)?null:{arrayTagLength:!0};}export{ie as a,re as b,le as c,se as d,ce as e,me as f,de as g,pe as h,he as i,ge as j,Ae as k,ue as l,Se as m,_e as n,ee as o};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*///# sourceMappingURL=chunk-HWORNHYK.js.map