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:"Este necesar numele videoclipului.",minlength:"Numele videoclipului trebuie s\u0103 aib\u0103 cel pu\u021Bin 3 caractere.",maxlength:"Numele videoclipului nu poate avea mai mult de 120 de caractere.",spaces:"Numele videoclipului are spa\u021Bii albe la \xEEnceput sau la sf\xE2r\u0219it."}},re={VALIDATORS:[n.required],MESSAGES:{required:"Este necesar\u0103 confiden\u021Bialitatea videoclipului."}},le={VALIDATORS:[n.minLength(2),n.maxLength(100)],MESSAGES:{minlength:"O parol\u0103 trebuie s\u0103 aib\u0103 cel pu\u021Bin 2 caractere.",maxlength:"O parol\u0103 trebuie s\u0103 aib\u0103 mai pu\u021Bin de 100 de caractere.",required:"Este necesar\u0103 o parol\u0103 pentru videoclipul protejat cu parol\u0103."}},se={VALIDATORS:[],MESSAGES:{}},ce={VALIDATORS:[],MESSAGES:{}},me={VALIDATORS:[],MESSAGES:{}};var de={VALIDATORS:[n.required],MESSAGES:{required:"Este necesar canalul videoclipului."}},pe={VALIDATORS:[n.minLength(3),n.maxLength(1e4)],MESSAGES:{minlength:"Descrierea videoclipului trebuie s\u0103 aib\u0103 cel pu\u021Bin 3 caractere.",maxlength:"Descrierea videoclipului nu poate avea mai mult de 10000 de caractere."}},he={VALIDATORS:[n.maxLength(5),B()],MESSAGES:{maxlength:"Se pot folosi maximum 5 etichete pe un videoclip.",arrayTagLength:"O etichet\u0103 trebuie s\u0103 aib\u0103 \xEEntre 1 \u0219i 30 de caractere."}},ge={VALIDATORS:[n.minLength(3),n.maxLength(1e3)],MESSAGES:{minlength:"Sprijinul videoclipului trebuie s\u0103 aib\u0103 cel pu\u021Bin 3 caractere.",maxlength:"Sprijinul videoclipului nu poate avea mai mult de 1000 de caractere."}};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:"Sprijinul videoclipului trebuie s\u0103 aib\u0103 cel pu\u021Bin 3 caractere.",maxlength:"Sprijinul videoclipului nu poate avea mai mult de 250 de caractere."}},Se={VALIDATORS:[],MESSAGES:{required:"Este necesar\u0103 o dat\u0103 pentru programarea actualiz\u0103rii videoclipului."}},_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