import{L as Lt$1,V as Vt,I as Ii,K as Ke,X as Xe,j as je,$ as $i,q as qi}from'./chunk-HPg4Mw6l.js';import{T}from'./chunk-yl6_b1fW.js';import{m as me}from'./chunk-D6G00JKq.js';import'./chunk-Bms7X8vH.js';import{A as Ae,i as ie$1}from'./chunk-C5Pz-QUv.js';import{a}from'./chunk-CSCyLw6V.js';import'./chunk-ChTAcsy3.js';import{g,r as rr,P as Pc,a as rc,w as wpe,C as Cpe,B as Bn,j,b as Pa,_ as _0,D as D$,f as fx,c as DV,J as Jn,Q as Qn,H as it,s as sp,e as Pp,u as ub,y as yV,i as ix,h as sx,F as Fp,$ as $t$1,I as w,K as Pk,L as qp,O as J$,R as tl,S as qS,U as cl,V as w3,Z as Zn,Y as Je,q as qn,a0 as $n,a1 as Vn,a2 as yn,t as GH,m as _2,z as zB,v as ax,x as vV,a3 as B0,a4 as l$,W as WH,A as w2,a5 as fn,l as ln,T as Tr,a6 as KV,n as Mx,p as e$,N as Nx,a7 as gg,a8 as UUe,a9 as Oe,aa as ge,ab as Qn$1,ac as Vd,ad as ti,ae as R2,af as A2,ag as N2,ah as c$,ai as EV,k as k2,d as $I,aj as IV,G as GI,o as bV,ak as wx,al as H,am as Zt,an as Qh,ao as D,ap as R_e,aq as J0e,ar as _pe,as as Yl,at as Mn,au as ow}from'./main-BiUBeaMj.js';var Mt=H((Yn,Et)=>{Et.exports=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-key-round-icon lucide-key-round">
  <path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z" />
  <circle cx="16.5" cy="7.5" r=".5" fill="currentColor" />
</svg>
`;});var ft=H((Bn,Ft)=>{Ft.exports=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-briefcase-business-icon lucide-briefcase-business">
  <path d="M12 12h.01" />
  <path d="M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2" />
  <path d="M22 13a18.15 18.15 0 0 1-20 0" />
  <rect width="20" height="14" x="2" y="6" rx="2" />
</svg>
`;});function Ee(){return"no_welcome_modal";}var dt=(()=>{class r{hide=Cpe();static ɵfac=function(o){return new(o||r)();};static ɵcmp=Pa({type:r,selectors:[["my-admin-config-wizard-documentation"]],outputs:{hide:"hide"},decls:55,vars:0,consts:()=>{let t;t="\u03A3\u03C5\u03B3\u03C7\u03B1\u03C1\u03B7\u03C4\u03AE\u03C1\u03B9\u03B1";let o;o="\u0397 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1 \u03C3\u03B1\u03C2 \u03AD\u03C7\u03B5\u03B9 \u03C1\u03C5\u03B8\u03BC\u03B9\u03C3\u03C4\u03B5\u03AF!";let e;e="\u0389\u03C1\u03B8\u03B5 \u03B7 \u03CE\u03C1\u03B1 \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B8\u03AD\u03C3\u03B5\u03C4\u03B5 \u03C0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1 \u03C3\u03B1\u03C2! "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u0397 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03BC\u03B9\u03B1\u03C2 \u03C0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE\u03C2"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+", \u03C3\u03C4\u03B7\u03BD \u03BF\u03C0\u03BF\u03AF\u03B1 \u03B8\u03B1 \u03B4\u03B9\u03B5\u03C5\u03BA\u03C1\u03B9\u03BD\u03AF\u03B6\u03B5\u03C4\u03B5 "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u03C0\u03BF\u03B9\u03BF\u03B9 \u03B5\u03AF\u03C3\u03C4\u03B5"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+", \u03B3\u03B9\u03B1\u03C4\u03AF "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03C3\u03B1\u03C4\u03B5 \u03C4\u03B7\u03BD \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1 \u03C3\u03B1\u03C2"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+" \u03BA\u03B1\u03B9 "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u03B3\u03B9\u03B1 \u03C0\u03CC\u03C3\u03BF \u03BA\u03B1\u03B9\u03C1\u03CC"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+" \u03C3\u03BA\u03BF\u03C0\u03B5\u03CD\u03B5\u03C4\u03B5 \u03BD\u03B1 "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u03C4\u03B7 \u03B4\u03B9\u03B1\u03C4\u03B7\u03C1\u03AE\u03C3\u03B5\u03C4\u03B5"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+" \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03CD \u03C3\u03B7\u03BC\u03B1\u03BD\u03C4\u03B9\u03BA\u03AE, \u03CE\u03C3\u03C4\u03B5 \u03BF\u03B9 \u03B5\u03C0\u03B9\u03C3\u03BA\u03AD\u03C0\u03C4\u03B5\u03C2 \u03BD\u03B1 \u03BA\u03B1\u03C4\u03B1\u03BD\u03BF\u03AE\u03C3\u03BF\u03C5\u03BD \u03C3\u03B5 \u03C4\u03B9 \u03B5\u03AF\u03B4\u03BF\u03C5\u03C2 \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF \u03B2\u03C1\u03AF\u03C3\u03BA\u03BF\u03BD\u03C4\u03B1\u03B9. ",e=EV(e);let a;a="\u03A7\u03C1\u03AE\u03C3\u03B9\u03BC\u03BF\u03B9 \u03C3\u03CD\u03BD\u03B4\u03B5\u03C3\u03BC\u03BF\u03B9";let d;d="\u0395\u03C0\u03AF\u03C3\u03B7\u03BC\u03BF\u03C2 \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF\u03C2 \u03C4\u03BF\u03C5 PeerTube:";let p;p="\u0394\u03B7\u03BC\u03BF\u03C3\u03AF\u03B5\u03C5\u03C3\u03B7 \u03C3\u03C4\u03BF blog, \u03B6\u03B7\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B2\u03BF\u03AE\u03B8\u03B5\u03B9\u03B1 \u03AE \u03B1\u03BD\u03B1\u03BA\u03B1\u03BB\u03CD\u03C8\u03C4\u03B5 \u03C4\u03BF PeerTube";let A;A="\u0394\u03B7\u03BC\u03CC\u03C3\u03B9\u03BF\u03C2 \u03BA\u03B1\u03C4\u03AC\u03BB\u03BF\u03B3\u03BF\u03C2 PeerTube:";let E;E="\u03A0\u03C1\u03BF\u03C3\u03B8\u03AD\u03C3\u03C4\u03B5 \u03C4\u03B7\u03BD \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1 \u03C3\u03B1\u03C2 \u03C3\u03C4\u03BF\u03BD \u03B5\u03C0\u03AF\u03C3\u03B7\u03BC\u03BF \u03B4\u03B7\u03BC\u03CC\u03C3\u03B9\u03BF \u03BA\u03B1\u03C4\u03AC\u03BB\u03BF\u03B3\u03BF \u03C4\u03BF\u03C5 PeerTube";let x;x="\u03A4\u03B5\u03BA\u03BC\u03B7\u03C1\u03AF\u03C9\u03C3\u03B7";let k;k="\u0394\u03B9\u03B1\u03C7\u03B5\u03B9\u03C1\u03B9\u03C3\u03C4\u03AE\u03C2:";let X;X="\u0394\u03B9\u03B1\u03C7\u03B5\u03AF\u03C1\u03B9\u03C3\u03B7 \u03C7\u03C1\u03B7\u03C3\u03C4\u03CE\u03BD, \u03C0\u03B1\u03C1\u03B1\u03BA\u03BF\u03BB\u03BF\u03CD\u03B8\u03B7\u03C3\u03B7 \u03AC\u03BB\u03BB\u03C9\u03BD \u03C0\u03BB\u03B1\u03C4\u03C6\u03BF\u03C1\u03BC\u03CE\u03BD, \u03B1\u03BD\u03C4\u03B9\u03BC\u03B5\u03C4\u03CE\u03C0\u03B9\u03C3\u03B7 \u03C4\u03C9\u03BD spammers, \u03C1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03B1\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7\u03C2 \u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03B9\u03BC\u03AD\u03BD\u03C9\u03BD \u03AE \u03C4\u03B7\u03C2 \u03B1\u03C0\u03BF\u03BC\u03B1\u03BA\u03C1\u03C5\u03C3\u03BC\u03AD\u03BD\u03B7\u03C2 \u03B4\u03B9\u03B1\u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7\u03C2...";let O;O="\u0394\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF\u03BD \u03BB\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03CC \u03C3\u03B1\u03C2, \u03B4\u03B9\u03B1\u03C7\u03B5\u03B9\u03C1\u03B9\u03C3\u03C4\u03B5\u03AF\u03C4\u03B5 \u03C4\u03B9\u03C2 \u03BB\u03AF\u03C3\u03C4\u03B5\u03C2 \u03B1\u03BD\u03B1\u03C0\u03B1\u03C1\u03B1\u03B3\u03C9\u03B3\u03AE\u03C2 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF, \u03B1\u03BD\u03B1\u03BA\u03B1\u03BB\u03CD\u03C8\u03C4\u03B5 \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AD\u03C2 \u03C4\u03C1\u03AF\u03C4\u03C9\u03BD...";let R;R="CLI:";let Fe;Fe="\u0391\u03BD\u03B5\u03B2\u03AC\u03C3\u03C4\u03B5 \u03AE \u03B5\u03B9\u03C3\u03B1\u03B3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF, \u03B1\u03BD\u03B1\u03BB\u03CD\u03C3\u03C4\u03B5 \u03B1\u03C1\u03C7\u03B5\u03AF\u03B1 \u03BA\u03B1\u03C4\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE\u03C2, \u03BA\u03B1\u03B8\u03B1\u03C1\u03AF\u03C3\u03C4\u03B5 \u03C4\u03BF\u03C5\u03C2 \u03BA\u03B1\u03C4\u03B1\u03BB\u03CC\u03B3\u03BF\u03C5\u03C2 \u03B1\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7\u03C2, \u03B5\u03C0\u03B1\u03BD\u03B1\u03C6\u03AD\u03C1\u03B5\u03C4\u03B5 \u03C4\u03BF\u03BD \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7...";let Pe;Pe="\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF";let he;return he="\u03A3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03C4\u03B5 \u03C4\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C4\u03B7\u03C2 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1\u03C2",[t,o,e,a,d,p,A,E,x,k,X,O,R,Fe,Pe,he,[1,"root"],[1,"one-column"],[1,"mascot-container"],["src","/client/assets/images/mascot/happy.svg","alt","mascot",1,"mascot"],[1,"title"],[1,"sub-title"],[1,"mt-4"],[1,"text-content"],["href","https://joinpeertube.org","target","_blank",1,"link-primary","me-1"],["href","https://instances.joinpeertube.org/instances","target","_blank",1,"link-primary","me-1"],["href","https://docs.joinpeertube.org/admin/following-instances","target","_blank",1,"link-primary","me-1"],["href","https://docs.joinpeertube.org/use/setup-account","target","_blank",1,"link-primary","me-1"],["href","https://docs.joinpeertube.org/maintain/tools","target","_blank",1,"link-primary","me-1"],[1,"buttons"],["theme","secondary",3,"click"],["theme","primary","ptRouterLink","/admin/settings/config",3,"click"]];},template:function(o,e){o&1&&(sp(0,"div",16)(1,"div",17)(2,"div",18),Pp(3,"img",19),ub(),sp(4,"h4")(5,"div",20),yV(6,0),ub(),sp(7,"div",21),yV(8,1),ub()()(),sp(9,"div",22)(10,"span",23),ix(11,2),Pp(12,"strong")(13,"strong")(14,"strong")(15,"strong")(16,"strong"),sx(),ub()(),sp(17,"div",22)(18,"h5"),yV(19,3),ub(),sp(20,"ul",23)(21,"li")(22,"a",24),yV(23,4),ub(),sp(24,"span"),yV(25,5),ub()(),sp(26,"li")(27,"a",25),yV(28,6),ub(),sp(29,"span"),yV(30,7),ub()()()(),sp(31,"div",22)(32,"h5"),yV(33,8),ub(),sp(34,"ul",23)(35,"li")(36,"a",26),yV(37,9),ub(),sp(38,"span"),yV(39,10),ub()(),sp(40,"li")(41,"a",27),KV(42,"User:"),ub(),sp(43,"span"),yV(44,11),ub()(),sp(45,"li")(46,"a",28),yV(47,12),ub(),sp(48,"span"),yV(49,13),ub()()()(),sp(50,"div",29)(51,"my-button",30),Fp("click",function(){return e.hide.emit();}),yV(52,14),ub(),sp(53,"my-button",31),Fp("click",function(){return e.hide.emit();}),yV(54,15),ub()()());},dependencies:[it],styles:[".steps[_ngcontent-%COMP%]{color:var(--fg-200);font-size:14px;font-weight:700}.title[_ngcontent-%COMP%]{color:var(--fg-350);font-weight:700;font-size:calc(1.3625rem + 1.35vw)}@media(min-width:1200px){.title[_ngcontent-%COMP%]{font-size:2.375rem}}.sub-title[_ngcontent-%COMP%]{color:var(--fg-300);font-weight:400;font-size:1.25rem}h4[_ngcontent-%COMP%]{margin-bottom:0}.text-content[_ngcontent-%COMP%]{color:var(--fg-200)}.buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;margin-top:calc(1.375rem + 1.5vw)}@media(min-width:1200px){.buttons[_ngcontent-%COMP%]{margin-top:2.5rem}}.buttons[_ngcontent-%COMP%]{gap:calc(1.275rem + .3vw)}@media(min-width:1200px){.buttons[_ngcontent-%COMP%]{gap:1.5rem}}form[_ngcontent-%COMP%]{max-width:512px;width:100%}.two-columns[_ngcontent-%COMP%]{display:flex;gap:1rem}.two-columns.width-50[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.one-column[_ngcontent-%COMP%]{text-align:center}.one-column[_ngcontent-%COMP%]   .mascot-container[_ngcontent-%COMP%]{position:relative;height:110px;margin:0 auto}.one-column[_ngcontent-%COMP%]   .mascot-container[_ngcontent-%COMP%], .one-column[_ngcontent-%COMP%]   .mascot[_ngcontent-%COMP%]{width:170px}.one-column[_ngcontent-%COMP%]   .mascot[_ngcontent-%COMP%]{position:absolute;top:-100px;left:0;height:190px}h5[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;color:var(--fg-300)}"],changeDetection:1});}return r;})();var mt=r=>({"input-error":r});function St(r,c){if(r&1&&(sp(0,"div",22),KV(1),ub()),r&2){let t=bV();zB(),wx(t.formErrors.platformName);}}function Tt(r,c){if(r&1&&(sp(0,"div",22),KV(1),ub()),r&2){let t=bV();zB(),wx(t.formErrors.shortDescription);}}function Dt(r,c){if(r&1){let t=k2();sp(0,"my-button",34),Fp("click",function(){$I(t);let e=bV();return GI(e.back.emit());}),yV(1,10),ub();}}var ct=(()=>{class r{server=g($t$1);formReactiveService=g(w);themeService=g(Pk);currentStep=qp.required({transform:J$});totalSteps=qp.required({transform:J$});showBack=qp.required({transform:tl});back=Cpe();next=Cpe();hide=Cpe();form;formErrors={};validationMessages={};ngOnInit(){this.buildForm();let t=qS(this.server.getHTMLConfig().instance.avatars,128);t&&fetch(t.fileUrl).then(o=>o.blob()).then(o=>this.form.patchValue({avatar:o})).catch(()=>{j.error("Could not fetch instance avatar");});}get avatarFileConstraints(){return this.server.getHTMLConfig().avatar.file;}buildForm(){let t={platformName:Vt,shortDescription:Lt$1,avatar:null,primaryColor:a},{form:o,formErrors:e,validationMessages:a$1}=this.formReactiveService.buildForm(t,this.getDefaultValues());this.form=o,this.formErrors=e,this.validationMessages=a$1;}getDefaultValues(){let t=this.server.getHTMLConfig(),o=t.theme.customization.primaryColor,e=o?this.themeService.formatColorForForm(o):this.themeService.formatColorForForm(this.themeService.getCSSConfigValue("primaryColor"));return{platformName:t.instance.name,shortDescription:t.instance.shortDescription,avatar:void 0,primaryColor:e};}static ɵfac=function(o){return new(o||r)();};static ɵcmp=Pa({type:r,selectors:[["my-admin-config-wizard-edit-info"]],inputs:{currentStep:[1,"currentStep"],totalSteps:[1,"totalSteps"],showBack:[1,"showBack"]},outputs:{back:"back",next:"next",hide:"hide"},decls:39,vars:15,consts:()=>{let t;t="\u0392\u0397\u039C\u0391 "+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let o;o="\u0393\u03B5\u03BD\u03B9\u03BA\u03AD\u03C2 \u03C0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2";let e;e="\u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03C4\u03B5\u03AF\u03C4\u03B5 \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03C0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 \u03B1\u03C1\u03B3\u03CC\u03C4\u03B5\u03C1\u03B1";let a;a="\u038C\u03BD\u03BF\u03BC\u03B1 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1\u03C2";let d;d="\u03A3\u03CD\u03BD\u03C4\u03BF\u03BC\u03B7 \u03C0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE";let p;p="\u0395\u03B9\u03BA\u03BF\u03BD\u03AF\u03B4\u03B9\u03BF \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1\u03C2";let A;A="\u03A7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B1\u03B9 \u03C3\u03B5 \u03B4\u03B9\u03AC\u03C6\u03BF\u03C1\u03B1 \u03BC\u03AD\u03C1\u03B7, \u03CC\u03C0\u03C9\u03C2 \u03C3\u03C4\u03BF\u03BD \u03B9\u03C3\u03C4\u03CC\u03C4\u03BF\u03C0\u03BF, \u03C3\u03C4\u03B7\u03BD \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE \u03B3\u03B9\u03B1 \u03BA\u03B9\u03BD\u03B7\u03C4\u03AC \u03BA\u03B1\u03B9 \u03C3\u03C4\u03B1 \u03BC\u03AD\u03C3\u03B1 \u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03B9\u03BA\u03AE\u03C2 \u03B4\u03B9\u03BA\u03C4\u03CD\u03C9\u03C3\u03B7\u03C2";let E;E="Primary color";let x;x="\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF \u03B2\u03AE\u03BC\u03B1";let k;k="\u0391\u03B3\u03BD\u03CC\u03B7\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C2 \u03C4\u03BF \u03C0\u03B1\u03C1\u03CC\u03BD";let X;return X="\u03A0\u03AF\u03C3\u03C9",[t,o,e,a,d,p,A,E,x,k,X,[1,"root"],[1,"two-columns"],["src","/client/assets/images/mascot/pointing.svg","alt","mascot",1,"mascot"],[1,"steps"],[1,"header-steps"],[1,"title"],[1,"text-content"],[3,"formGroup"],[1,"form-group"],["for","platformName"],["type","text","id","platformName","formControlName","platformName",1,"form-control",3,"ngClass"],["role","alert",1,"form-error"],["for","shortDescription"],["id","shortDescription","formControlName","shortDescription",1,"form-control","small",3,"ngClass"],["for","avatarfile"],[1,"form-group-description"],["formControlName","avatar","inputName","avatar","displayDelete","true",1,"avatar-preview",3,"fileConstraints"],["for","primaryColor"],["inputId","primaryColor","formControlName","primaryColor",3,"formError"],[1,"buttons"],["icon","arrow-left","theme","secondary"],["theme","primary",3,"click","disabled"],[1,"button-as-link",3,"click"],["icon","arrow-left","theme","secondary",3,"click"]];},template:function(o,e){o&1&&(sp(0,"div",11)(1,"div",12)(2,"div"),Pp(3,"img",13),ub(),sp(4,"div")(5,"div",14)(6,"div",15),yV(7,0),ub()(),sp(8,"h4",16),yV(9,1),ub(),sp(10,"div",17),yV(11,2),ub(),sp(12,"form",18)(13,"div",19)(14,"label",20),yV(15,3),ub(),Pp(16,"input",21),GH(),_2(17,St,2,1,"div",22),ub(),sp(18,"div",19)(19,"label",23),yV(20,4),ub(),Pp(21,"textarea",24),GH(),_2(22,Tt,2,1,"div",22),ub(),sp(23,"div",19)(24,"label",25),yV(25,5),ub(),sp(26,"div",26),yV(27,6),ub(),Pp(28,"my-image-input",27),GH(),ub(),sp(29,"div",19)(30,"label",28),yV(31,7),ub(),Pp(32,"my-peertube-color-picker",29),GH(),ub(),sp(33,"div",30),_2(34,Dt,2,0,"my-button",31),sp(35,"my-button",32),Fp("click",function(){return e.next.emit(e.form.value);}),yV(36,8),ub(),sp(37,"button",33),Fp("click",function(){return e.hide.emit();}),yV(38,9),ub()()()()()()),o&2&&(zB(7),ax(e.currentStep())(e.totalSteps()),vV(7),zB(5),B0("formGroup",e.form),zB(4),B0("ngClass",l$(11,mt,e.formErrors.platformName)),WH(),zB(),w2(e.formErrors.platformName?17:-1),zB(4),B0("ngClass",l$(13,mt,e.formErrors.shortDescription)),WH(),zB(),w2(e.formErrors.shortDescription?22:-1),zB(6),B0("fileConstraints",e.avatarFileConstraints),WH(),zB(4),B0("formError",e.formErrors.primaryColor),WH(),zB(2),w2(e.showBack()?34:-1),zB(),B0("disabled",!e.form.valid));},dependencies:[cl,w3,Jn,Zn,Je,qn,$n,Qn,Vn,yn,Ii,Ae,it,me],styles:["form[_ngcontent-%COMP%]{margin-top:calc(1.325rem + .9vw)}@media(min-width:1200px){form[_ngcontent-%COMP%]{margin-top:2rem}}.mascot[_ngcontent-%COMP%]{margin-top:-90px;width:170px;height:190px}.avatar-preview[_ngcontent-%COMP%]{width:128px;height:128px}@media screen and (max-width:800px){.mascot[_ngcontent-%COMP%]{display:none}.two-columns[_ngcontent-%COMP%]{justify-content:center}}textarea[_ngcontent-%COMP%]{min-height:150px}",".steps[_ngcontent-%COMP%]{color:var(--fg-200);font-size:14px;font-weight:700}.title[_ngcontent-%COMP%]{color:var(--fg-350);font-weight:700;font-size:calc(1.3625rem + 1.35vw)}@media(min-width:1200px){.title[_ngcontent-%COMP%]{font-size:2.375rem}}.sub-title[_ngcontent-%COMP%]{color:var(--fg-300);font-weight:400;font-size:1.25rem}h4[_ngcontent-%COMP%]{margin-bottom:0}.text-content[_ngcontent-%COMP%]{color:var(--fg-200)}.buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;margin-top:calc(1.375rem + 1.5vw)}@media(min-width:1200px){.buttons[_ngcontent-%COMP%]{margin-top:2.5rem}}.buttons[_ngcontent-%COMP%]{gap:calc(1.275rem + .3vw)}@media(min-width:1200px){.buttons[_ngcontent-%COMP%]{gap:1.5rem}}form[_ngcontent-%COMP%]{max-width:512px;width:100%}.two-columns[_ngcontent-%COMP%]{display:flex;gap:1rem}.two-columns.width-50[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.one-column[_ngcontent-%COMP%]{text-align:center}.one-column[_ngcontent-%COMP%]   .mascot-container[_ngcontent-%COMP%]{position:relative;height:110px;margin:0 auto}.one-column[_ngcontent-%COMP%]   .mascot-container[_ngcontent-%COMP%], .one-column[_ngcontent-%COMP%]   .mascot[_ngcontent-%COMP%]{width:170px}.one-column[_ngcontent-%COMP%]   .mascot[_ngcontent-%COMP%]{position:absolute;top:-100px;left:0;height:190px}h5[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;color:var(--fg-300)}"],changeDetection:1});}return r;})();var pt=(()=>{class r{el=g(Mn);unsafeHTML=qp.required();ngOnInit(){let t=this.el.nativeElement;t.innerHTML=this.unsafeHTML(),t.ariaHidden="true";}static ɵfac=function(o){return new(o||r)();};static ɵcmp=Pa({type:r,selectors:[["my-custom-icon"]],inputs:{unsafeHTML:[1,"unsafeHTML"]},decls:0,vars:0,template:function(o,e){},styles:["[_nghost-%COMP%]{display:inline-block;height:24px;width:24px}[_nghost-%COMP%]     svg{vertical-align:bottom;width:inherit;height:inherit}[_nghost-%COMP%]     .feather-flag{margin-left:-1px}"]});}return r;})();var ut=(()=>{class r{formReactiveService=g(w);usageType=_pe.required();form;formErrors={};validationMessages={};registrationOptions=[{id:"open",label:"\u0386\u03BD\u03BF\u03B9\u03B3\u03BC\u03B1",description:"\u039F\u03C0\u03BF\u03B9\u03BF\u03C3\u03B4\u03AE\u03C0\u03BF\u03C4\u03B5 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03B5\u03AF \u03BA\u03B1\u03B9 \u03BD\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9 \u03C4\u03B7\u03BD \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1"},{id:"approval",label:"\u0391\u03C0\u03B1\u03B9\u03C4\u03B5\u03AF\u03C4\u03B1\u03B9 \u03AD\u03B3\u03BA\u03C1\u03B9\u03C3\u03B7",description:"\u039F\u03C0\u03BF\u03B9\u03BF\u03C3\u03B4\u03AE\u03C0\u03BF\u03C4\u03B5 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03B5\u03AF, \u03B1\u03BB\u03BB\u03AC \u03BF \u03BB\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03CC\u03C2 \u03C4\u03BF\u03C5 \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03B3\u03BA\u03C1\u03B9\u03B8\u03B5\u03AF \u03B1\u03C0\u03CC \u03AD\u03BD\u03B1\u03BD \u03C3\u03C5\u03BD\u03C4\u03BF\u03BD\u03B9\u03C3\u03C4\u03AE \u03C0\u03C1\u03BF\u03C4\u03BF\u03CD \u03BC\u03C0\u03BF\u03C1\u03AD\u03C3\u03B5\u03B9 \u03BD\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9 \u03C4\u03B7\u03BD \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1"},{id:"closed",label:"\u039A\u03BB\u03B5\u03B9\u03C3\u03C4\u03AE",description:"\u039C\u03CC\u03BD\u03BF \u03AD\u03BD\u03B1\u03C2 \u03B4\u03B9\u03B1\u03C7\u03B5\u03B9\u03C1\u03B9\u03C3\u03C4\u03AE\u03C2 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03B5\u03AF \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03C3\u03C4\u03B7\u03BD \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1"}];importOptions=[{id:"enabled",label:"Enabled",description:"Your community can import videos from remote platforms (YouTube, Vimeo...) and automatically synchronize remote channels"},{id:"disabled",label:"Disabled",description:"Your community cannot import or synchronize content from remote platforms"}];liveOptions=[{id:"enabled",label:"Yes",description:"Your community can live stream on the platform (this requires extra moderation work)"},{id:"disabled",label:"No",description:"Your community is not permitted to run live streams on the platform"}];globalSearchOptions=[{id:"enabled",label:"Enable global search",description:"Use https://sepiasearch.org as default search engine to search for content across all known PeerTube platforms"},{id:"disabled",label:"Disable global search",description:"Use your platform search engine which only displays local content"}];videoQuotaOptions=qi();ngOnInit(){this.buildForm(),this.form.valueChanges.subscribe(t=>{this.usageType().patch(t);});}buildForm(){let t={registration:null,remoteImport:null,videoQuota:null,live:null,globalSearch:null},{form:o,formErrors:e,validationMessages:a}=this.formReactiveService.buildForm(t,this.usageType());this.form=o,this.formErrors=e,this.validationMessages=a;}static ɵfac=function(o){return new(o||r)();};static ɵcmp=Pa({type:r,selectors:[["my-community-based-config"]],inputs:{usageType:[1,"usageType"]},outputs:{usageType:"usageTypeChange"},decls:21,vars:6,consts:()=>{let t;t="\u03A0\u03BF\u03BB\u03B9\u03C4\u03B9\u03BA\u03AE \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03AE\u03C2";let o;o="\u038C\u03C1\u03B9\u03BF \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03B3\u03B9\u03B1 \u03BD\u03AD\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2";let e;e="\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BA\u03B1\u03B9 \u03C3\u03C5\u03B3\u03C7\u03C1\u03BF\u03BD\u03B9\u03C3\u03BC\u03CC\u03C2 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF";let a;a="\u0397 \u03BA\u03BF\u03B9\u03BD\u03CC\u03C4\u03B7\u03C4\u03AC \u03BC\u03BF\u03C5 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03BA\u03AC\u03BD\u03B5\u03B9 \u03B6\u03C9\u03BD\u03C4\u03B1\u03BD\u03AE \u03BC\u03B5\u03C4\u03AC\u03B4\u03BF\u03C3\u03B7";let d;return d="\u0391\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7",[t,o,e,a,d,[3,"formGroup"],[1,"form-group"],["for",""],["inputId","registration","formControlName","registration",3,"items"],["inputId","videoQuota","formControlName","videoQuota",3,"items"],["for","remoteImport"],["inputId","remoteImport","formControlName","remoteImport",3,"items"],["inputId","live","formControlName","live",3,"items"],["inputId","globalSearch","formControlName","globalSearch",3,"items"]];},template:function(o,e){o&1&&(sp(0,"form",5)(1,"div",6)(2,"label",7),yV(3,0),ub(),Pp(4,"my-select-options",8),GH(),ub(),sp(5,"div",6)(6,"label",7),yV(7,1),ub(),Pp(8,"my-select-options",9),GH(),ub(),sp(9,"div",6)(10,"label",10),yV(11,2),ub(),Pp(12,"my-select-options",11),GH(),ub(),sp(13,"div",6)(14,"label",7),yV(15,3),ub(),Pp(16,"my-select-options",12),GH(),ub(),sp(17,"div",6)(18,"label",7),yV(19,4),ub(),Pp(20,"my-select-options",13),GH(),ub()()),o&2&&(B0("formGroup",e.form),zB(4),B0("items",e.registrationOptions),WH(),zB(4),B0("items",e.videoQuotaOptions),WH(),zB(4),B0("items",e.importOptions),WH(),zB(4),B0("items",e.liveOptions),WH(),zB(4),B0("items",e.globalSearchOptions),WH());},dependencies:[Jn,Zn,qn,$n,Qn,Vn,yn,Ke,Ae,Yl],encapsulation:2,changeDetection:1});}return r;})();var gt=(()=>{class r{formReactiveService=g(w);usageType=_pe.required();form;formErrors={};validationMessages={};p2pOptions=[{id:"enabled",label:"Enabled",description:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03C1\u03BF\u03AE\u03C2 P2P \u03B1\u03C0\u03CC \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B3\u03B9\u03B1 \u03B1\u03BD\u03CE\u03BD\u03C5\u03BC\u03BF\u03C5\u03C2 \u03BA\u03B1\u03B9 \u03BD\u03AD\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2"},{id:"disabled",label:"Disabled",description:"\u0391\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03C1\u03BF\u03AE\u03C2 P2P"}];transcriptionOptions=[{id:"enabled",label:"Enabled",description:"\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE\u03C2 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B7 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03C5\u03C0\u03CC\u03C4\u03B9\u03C4\u03BB\u03C9\u03BD"},{id:"disabled",label:"Disabled",description:"\u0391\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B7\u03C2 \u03BC\u03B5\u03C4\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE\u03C2 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF"}];keepOriginalVideoOptions=[{id:"enabled",label:"Yes",description:"\u0394\u03B9\u03B1\u03C4\u03B7\u03C1\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03B1\u03C1\u03C7\u03B9\u03BA\u03CC \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03C3\u03C4\u03BF\u03BD \u03B4\u03B9\u03B1\u03BA\u03BF\u03BC\u03B9\u03C3\u03C4\u03AE"},{id:"disabled",label:"No",description:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B1\u03C1\u03C7\u03B9\u03BA\u03BF\u03CD \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03BC\u03B5\u03C4\u03AC \u03C4\u03B7\u03BD \u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"}];authenticationOptions=[{id:"local",label:"Disabled",description:"\u0397 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1 \u03C3\u03B1\u03C2 \u03B8\u03B1 \u03B4\u03B9\u03B1\u03C7\u03B5\u03B9\u03C1\u03AF\u03B6\u03B5\u03C4\u03B1\u03B9 \u03B5\u03C3\u03C9\u03C4\u03B5\u03C1\u03B9\u03BA\u03AC \u03C4\u03B7\u03BD \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03AE \u03BA\u03B1\u03B9 \u03C4\u03B7 \u03C3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7 \u03C4\u03C9\u03BD \u03C7\u03C1\u03B7\u03C3\u03C4\u03CE\u03BD"},{id:"ldap",label:"LDAP",description:"\u03A7\u03C1\u03AE\u03C3\u03B7 LDAP \u03B3\u03B9\u03B1 \u03C4\u03BF\u03BD \u03AD\u03BB\u03B5\u03B3\u03C7\u03BF \u03C4\u03B1\u03C5\u03C4\u03CC\u03C4\u03B7\u03C4\u03B1\u03C2 \u03C4\u03C9\u03BD \u03C7\u03C1\u03B7\u03C3\u03C4\u03CE\u03BD"},{id:"oidc",label:"OIDC",description:"\u03A7\u03C1\u03AE\u03C3\u03B7 OpenID Connect \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03C0\u03B9\u03C3\u03C4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03C7\u03C1\u03B7\u03C3\u03C4\u03CE\u03BD"},{id:"saml",label:"SAML",description:"\u03A7\u03C1\u03AE\u03C3\u03B7 SAML 2.0 \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03C0\u03B9\u03C3\u03C4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03C7\u03C1\u03B7\u03C3\u03C4\u03CE\u03BD"}];ngOnInit(){this.buildForm(),this.form.valueChanges.subscribe(t=>{this.usageType().patch(t);});}buildForm(){let t={keepOriginalVideo:null,p2p:null,transcription:null,authType:null},{form:o,formErrors:e,validationMessages:a}=this.formReactiveService.buildForm(t,this.usageType());this.form=o,this.formErrors=e,this.validationMessages=a;}static ɵfac=function(o){return new(o||r)();};static ɵcmp=Pa({type:r,selectors:[["my-institutional-config"]],inputs:{usageType:[1,"usageType"]},outputs:{usageType:"usageTypeChange"},decls:21,vars:5,consts:()=>{let t;t="\u0391\u03C0\u03BF\u03B8\u03B7\u03BA\u03B5\u03CD\u03C3\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03BF \u03C4\u03BF\u03C5 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03C0\u03BF\u03C5 \u03B1\u03BD\u03B5\u03B2\u03AC\u03C3\u03B1\u03C4\u03B5";let o;o="P2P";let e;e="\u0392\u03BF\u03B7\u03B8\u03AC \u03C4\u03B7\u03BD \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1 \u03C3\u03B1\u03C2 \u03BD\u03B1 \u03B4\u03B9\u03B1\u03BD\u03AD\u03BC\u03B5\u03B9 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03BF \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF, \u03B1\u03BB\u03BB\u03AC "+"\uFFFD#10\uFFFD"+"\u03BC\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03C4\u03B7\u03BD \u03B9\u03B4\u03B9\u03C9\u03C4\u03B9\u03BA\u03CC\u03C4\u03B7\u03C4\u03B1 "+"\uFFFD#11\uFFFD"+""+"\uFFFD/#11\uFFFD"+""+"\uFFFD/#10\uFFFD"+" \u03C4\u03C9\u03BD \u03C7\u03C1\u03B7\u03C3\u03C4\u03CE\u03BD \u03C3\u03B1\u03C2 ";let a;a="\u039C\u03B5\u03C4\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF";let d;return d="\u0391\u03C0\u03BF\u03BC\u03B1\u03BA\u03C1\u03C5\u03C3\u03BC\u03AD\u03BD\u03B7 \u03C4\u03B1\u03C5\u03C4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7",[t,o,e,a,d,[3,"formGroup"],[1,"form-group"],["for","keepOriginalVideo"],["inputId","keepOriginalVideo","formControlName","keepOriginalVideo",3,"items"],["for","p2p"],[1,"form-group-description"],["href","https://docs.joinpeertube.org/admin/privacy-guide#player-p2p","target","_blank"],["iconName","external-link"],["inputId","p2p","formControlName","p2p",3,"items"],["for","transcription"],["inputId","transcription","formControlName","transcription",3,"items"],["for","authType"],["inputId","authType","formControlName","authType",3,"items"]];},template:function(o,e){o&1&&(sp(0,"form",5)(1,"div",6)(2,"label",7),yV(3,0),ub(),Pp(4,"my-select-options",8),GH(),ub(),sp(5,"div",6)(6,"label",9),yV(7,1),ub(),sp(8,"div",10),ix(9,2),sp(10,"a",11),Pp(11,"my-global-icon",12),ub(),sx(),ub(),Pp(12,"my-select-options",13),GH(),ub(),sp(13,"div",6)(14,"label",14),yV(15,3),ub(),Pp(16,"my-select-options",15),GH(),ub(),sp(17,"div",6)(18,"label",16),yV(19,4),ub(),Pp(20,"my-select-options",17),GH(),ub()()),o&2&&(B0("formGroup",e.form),zB(4),B0("items",e.keepOriginalVideoOptions),WH(),zB(8),B0("items",e.p2pOptions),WH(),zB(4),B0("items",e.transcriptionOptions),WH(),zB(4),B0("items",e.authenticationOptions),WH());},dependencies:[Jn,Zn,qn,$n,Qn,Vn,yn,Ke,Ae,Yl,Tr],encapsulation:2,changeDetection:1});}return r;})();var Ct=(()=>{class r{formReactiveService=g(w);usageType=_pe.required();form;formErrors={};validationMessages={};importOptions=[{id:"enabled",label:"Enabled",description:"\u039F\u03B9 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03BC\u03C0\u03BF\u03C1\u03BF\u03CD\u03BD \u03BD\u03B1 \u03B5\u03B9\u03C3\u03AC\u03B3\u03BF\u03C5\u03BD \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03B1\u03C0\u03CC \u03B5\u03BE\u03C9\u03C4\u03B5\u03C1\u03B9\u03BA\u03AD\u03C2 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B5\u03C2 (YouTube, Vimeo...) \u03BA\u03B1\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03B3\u03C7\u03C1\u03BF\u03BD\u03AF\u03B6\u03BF\u03C5\u03BD \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B1 \u03C4\u03B1 \u03B5\u03BE\u03C9\u03C4\u03B5\u03C1\u03B9\u03BA\u03AC \u03BA\u03B1\u03BD\u03AC\u03BB\u03B9\u03B1"},{id:"disabled",label:"Disabled",description:"\u0391\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7 \u03B5\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE\u03C2 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03BA\u03B1\u03B9 \u03C3\u03C5\u03B3\u03C7\u03C1\u03BF\u03BD\u03B9\u03C3\u03BC\u03BF\u03CD \u03BA\u03B1\u03BD\u03B1\u03BB\u03B9\u03CE\u03BD"}];liveOptions=[{id:"enabled",label:"Yes"},{id:"disabled",label:"No"}];keepOriginalVideoOptions=[{id:"enabled",label:"Yes",description:"\u0394\u03B9\u03B1\u03C4\u03B7\u03C1\u03AE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03B1\u03C1\u03C7\u03B9\u03BA\u03CC \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03C3\u03C4\u03BF\u03BD \u03B4\u03B9\u03B1\u03BA\u03BF\u03BC\u03B9\u03C3\u03C4\u03AE"},{id:"disabled",label:"No",description:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B1\u03C1\u03C7\u03B9\u03BA\u03BF\u03CD \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03BC\u03B5\u03C4\u03AC \u03C4\u03B7\u03BD \u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"}];ngOnInit(){this.buildForm(),this.form.valueChanges.subscribe(t=>{this.usageType().patch(t);});}buildForm(){let t={remoteImport:null,live:null,keepOriginalVideo:null},{form:o,formErrors:e,validationMessages:a}=this.formReactiveService.buildForm(t,this.usageType());this.form=o,this.formErrors=e,this.validationMessages=a;}static ɵfac=function(o){return new(o||r)();};static ɵcmp=Pa({type:r,selectors:[["my-private-instance-config"]],inputs:{usageType:[1,"usageType"]},outputs:{usageType:"usageTypeChange"},decls:13,vars:4,consts:()=>{let t;t="\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BA\u03B1\u03B9 \u03C3\u03C5\u03B3\u03C7\u03C1\u03BF\u03BD\u03B9\u03C3\u03BC\u03CC\u03C2 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF";let o;o="\u039F\u03B9 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03BC\u03C0\u03BF\u03C1\u03BF\u03CD\u03BD \u03BD\u03B1 \u03BA\u03AC\u03BD\u03BF\u03C5\u03BD \u03B6\u03C9\u03BD\u03C4\u03B1\u03BD\u03AD\u03C2 \u03BC\u03B5\u03C4\u03B1\u03B4\u03CC\u03C3\u03B5\u03B9\u03C2";let e;return e="\u0391\u03C0\u03BF\u03B8\u03B7\u03BA\u03B5\u03CD\u03C3\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03BF \u03C4\u03BF\u03C5 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03C0\u03BF\u03C5 \u03B1\u03BD\u03B5\u03B2\u03AC\u03C3\u03B1\u03C4\u03B5",[t,o,e,[3,"formGroup"],[1,"form-group"],["for","remoteImport"],["inputId","remoteImport","formControlName","remoteImport",3,"items"],["for","live"],["inputId","live","formControlName","live",3,"items"],["for","keepOriginalVideo"],["inputId","keepOriginalVideo","formControlName","keepOriginalVideo",3,"items"]];},template:function(o,e){o&1&&(sp(0,"form",3)(1,"div",4)(2,"label",5),yV(3,0),ub(),Pp(4,"my-select-options",6),GH(),ub(),sp(5,"div",4)(6,"label",7),yV(7,1),ub(),Pp(8,"my-select-options",8),GH(),ub(),sp(9,"div",4)(10,"label",9),yV(11,2),ub(),Pp(12,"my-select-options",10),GH(),ub()()),o&2&&(B0("formGroup",e.form),zB(4),B0("items",e.importOptions),WH(),zB(4),B0("items",e.liveOptions),WH(),zB(4),B0("items",e.keepOriginalVideoOptions),WH());},dependencies:[Jn,Zn,qn,$n,Qn,Vn,yn,Ke,Ae,Yl],encapsulation:2,changeDetection:1});}return r;})();var ie=class r{registration;videoQuota;remoteImport;live;globalSearch;defaultPrivacy;defaultCommentPolicy;p2p;federation;keepOriginalVideo;allowReplaceFile;preferDisplayName;transcription;authType;unsafeExplanations=[];config={};plugins=[];constructor(c){for(let[t,o]of Object.entries(c))this[t]=o;}static initForCommunity(){let c=new r({registration:"approval",remoteImport:"disabled",live:"enabled",videoQuota:5368709120,globalSearch:"enabled",defaultPrivacy:Zt.PUBLIC,p2p:"enabled",federation:"enabled",keepOriginalVideo:"disabled",allowReplaceFile:"disabled",defaultCommentPolicy:void 0,authType:void 0,preferDisplayName:void 0,transcription:void 0});return c.compute(),c;}static initForPrivateInstance(){let c=new r({registration:"closed",remoteImport:"enabled",live:"enabled",videoQuota:-1,globalSearch:"disabled",defaultPrivacy:Zt.INTERNAL,p2p:"disabled",federation:"disabled",keepOriginalVideo:"enabled",allowReplaceFile:"enabled",preferDisplayName:"enabled",defaultCommentPolicy:void 0,authType:void 0,transcription:void 0});return c.compute(),c;}static initForInstitution(){let c=new r({registration:"closed",remoteImport:"enabled",live:"enabled",videoQuota:-1,globalSearch:"disabled",defaultPrivacy:Zt.PUBLIC,p2p:"disabled",keepOriginalVideo:"enabled",allowReplaceFile:"enabled",preferDisplayName:"enabled",authType:"local",transcription:"enabled",defaultCommentPolicy:Qh.REQUIRES_APPROVAL,federation:void 0});return c.compute(),c;}compute(){this.unsafeExplanations=[],this.plugins=[],this.config={},this.computeRegistration(),this.computeDefaultVideoPrivacy(),this.computeVideoQuota(),this.computeKeepOriginalVideo(),this.computeReplaceVideoFile(),this.computeVideoImport(),this.computeStreamLives(),this.computeP2P(),this.computeGlobalSearch(),this.computeDefaultVideoCommentPolicy(),this.computeFederation(),this.computeMiniatureSettings(),this.computeTranscription(),this.computeAuth();}getUnsafeExplanations(){return[...this.unsafeExplanations];}getConfig(){return D({},this.config);}getPlugins(){return[...this.plugins];}patch(c){for(let[t,o]of Object.entries(c))this[t]=o;this.compute();}computeRegistration(){R_e(this.registration)&&(this.registration==="open"?(this.addExplanation("<strong>\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03B5\u03B9</strong> \u03C3\u03B5 \u03BF\u03C0\u03BF\u03B9\u03BF\u03BD\u03B4\u03AE\u03C0\u03BF\u03C4\u03B5 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7 <strong>\u03BD\u03B1 \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03B5\u03AF</strong>"),this.addConfig({signup:{enabled:true,requiresApproval:false}})):this.registration==="approval"?(this.addExplanation("\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03B5\u03B9 \u03C3\u03C4\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 <strong>\u03BD\u03B1 \u03C5\u03C0\u03BF\u03B2\u03AC\u03BB\u03BF\u03C5\u03BD \u03B1\u03AF\u03C4\u03B7\u03C3\u03B7 \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03AE\u03C2</strong> \u03C3\u03C4\u03B7\u03BD \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1 \u03C3\u03B1\u03C2"),this.addConfig({signup:{enabled:true,requiresApproval:true}})):this.registration==="closed"&&(this.addExplanation("<strong>\u0391\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF</strong> \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03AE <strong>\u03C7\u03C1\u03AE\u03C3\u03C4\u03B7</strong>"),this.addConfig({signup:{enabled:false}})),(this.registration==="approval"||this.registration==="open")&&(this.addExplanation("\u0391\u03C0\u03B1\u03B9\u03C4\u03B5\u03AF <strong>\u03AD\u03B3\u03BA\u03C1\u03B9\u03C3\u03B7 \u03C3\u03C5\u03BD\u03C4\u03BF\u03BD\u03B9\u03C3\u03C4\u03AE</strong> \u03B3\u03B9\u03B1 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03C0\u03BF\u03C5 \u03B4\u03B7\u03BC\u03BF\u03C3\u03B9\u03B5\u03CD\u03BF\u03BD\u03C4\u03B1\u03B9 \u03B1\u03C0' \u03C4\u03B7\u03BD \u03BA\u03BF\u03B9\u03BD\u03CC\u03C4\u03B7\u03C4\u03AC \u03C3\u03B1\u03C2"),this.addConfig({autoBlacklist:{videos:{ofUsers:{enabled:true}}}})));}computeVideoQuota(){R_e(this.videoQuota)&&(this.addConfig({user:{videoQuota:this.videoQuota}}),this.videoQuota===0?this.addExplanation("<strong>\u0391\u03C0\u03BF\u03C4\u03C1\u03AD\u03C0\u03B5\u03B9</strong> \u03BD\u03AD\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 <strong>\u03B1\u03C0' \u03C4\u03BF \u03BD\u03B1 \u03BC\u03B5\u03C4\u03B1\u03C6\u03BF\u03C1\u03C4\u03CE\u03BD\u03BF\u03C5\u03BD \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF</strong> (\u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B1\u03BB\u03BB\u03AC\u03BE\u03B5\u03B9 \u03B1\u03C0' \u03C4\u03BF\u03C5\u03C2 \u03C3\u03C5\u03BD\u03C4\u03BF\u03BD\u03B9\u03C3\u03C4\u03AD\u03C2)"):this.videoQuota===-1?this.addExplanation("<strong>\u03A0\u03B5\u03C1\u03B9\u03BF\u03C1\u03AF\u03B6\u03B5\u03B9 \u03C4\u03BF \u03C0\u03BB\u03AE\u03B8\u03BF\u03C2 \u03C4\u03C9\u03BD \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF</strong> \u03C0\u03BF\u03C5 \u03BC\u03C0\u03BF\u03C1\u03BF\u03CD\u03BD \u03BD\u03B1 \u03BC\u03B5\u03C4\u03C6\u03BF\u03C1\u03C4\u03CE\u03C3\u03BF\u03C5\u03BD \u03BF\u03B9 \u03BD\u03AD\u03BF\u03B9 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2"):this.addExplanation("\u039F\u03C1\u03AF\u03C3\u03B5\u03B9 <strong>\u03CC\u03C1\u03B9\u03BF \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03C3\u03B5 "+J0e(this.videoQuota,0)+"</strong> \u03B3\u03B9\u03B1 \u03BD\u03AD\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 (\u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03B1\u03BB\u03BB\u03AC\u03BE\u03B5\u03B9 \u03B1\u03C0\u03CC \u03C4\u03BF\u03C5\u03C2 \u03C3\u03C5\u03BD\u03C4\u03BF\u03BD\u03B9\u03C3\u03C4\u03AD\u03C2)"));}computeVideoImport(){R_e(this.remoteImport)&&(this.addConfig({import:{videos:{http:{enabled:this.remoteImport==="enabled"}},videoChannelSynchronization:{enabled:this.remoteImport==="enabled"}}}),this.remoteImport==="enabled"?this.addExplanation("<strong>\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03B5\u03B9</strong> \u03C3\u03C4\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03C3\u03B1\u03C2 <strong>\u03BD\u03B1 \u03B5\u03B9\u03C3\u03AC\u03B3\u03BF\u03C5\u03BD \u03BA\u03B1\u03B9 \u03C3\u03C5\u03B3\u03C7\u03C1\u03BF\u03BD\u03AF\u03B6\u03BF\u03C5\u03BD</strong> \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03B1\u03C0\u03CC \u03AC\u03BB\u03BB\u03B5\u03C2 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B5\u03C2 (YouTube, Vimeo...)"):this.addExplanation("<strong>\u0391\u03C0\u03BF\u03C4\u03C1\u03AD\u03C0\u03B5\u03B9</strong> \u03C4\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03C3\u03B1\u03C2 <strong>\u03B1\u03C0' \u03C4\u03BF \u03BD\u03B1 \u03B5\u03B9\u03C3\u03B1\u03B3\u03AC\u03B3\u03BF\u03C5\u03BD \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF</strong> \u03B1\u03C0\u03CC \u03AC\u03BB\u03BB\u03B5\u03C2 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B5\u03C2"));}computeStreamLives(){R_e(this.live)&&(this.addConfig({live:{enabled:this.live==="enabled"}}),this.live==="enabled"?(this.plugins.push("peertube-plugin-livechat"),this.addExplanation("<strong>\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03B5\u03B9</strong> \u03C3\u03C4\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03C3\u03B1\u03C2 <strong>\u03BD\u03B1 \u03BC\u03B5\u03C4\u03B1\u03B4\u03AF\u03B4\u03BF\u03C5\u03BD \u03B6\u03C9\u03BD\u03C4\u03B1\u03BD\u03AC</strong> \u03BA\u03B1\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03B6\u03B7\u03C4\u03BF\u03CD\u03BD \u03BC\u03B5 \u03C4\u03BF\u03C5\u03C2 \u03B8\u03B5\u03B1\u03C4\u03AD\u03C2 \u03C4\u03BF\u03C5\u03C2 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03CE\u03BD\u03C4\u03B1\u03C2 \u03C4\u03BF \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03BF <strong>Livechat</strong>")):this.addExplanation("<strong>\u0391\u03C0\u03BF\u03C4\u03C1\u03AD\u03C0\u03B5\u03B9</strong> \u03C4\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03C3\u03B1\u03C2 \u03B1\u03C0' \u03C4\u03BF \u03BD\u03B1 \u03BC\u03B5\u03C4\u03B1\u03B4\u03AF\u03B4\u03BF\u03C5\u03BD <strong>\u03B6\u03C9\u03BD\u03C4\u03B1\u03BD\u03AC</strong>"));}computeDefaultVideoPrivacy(){R_e(this.defaultPrivacy)&&(this.addConfig({defaults:{publish:{privacy:this.defaultPrivacy}}}),this.defaultPrivacy===Zt.INTERNAL?this.addExplanation("\u039F\u03C1\u03AF\u03C3\u03B5\u03B9 \u03C4\u03B7\u03BD <strong>\u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03C1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7 \u03B1\u03C0\u03BF\u03C1\u03C1\u03AE\u03C4\u03BF\u03C5 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF</strong> \u03C3\u03B5 <strong>\u0395\u03C3\u03C9\u03C4\u03B5\u03C1\u03B9\u03BA\u03AE</strong>"):this.defaultPrivacy===Zt.PUBLIC&&this.addExplanation("\u039F\u03C1\u03AF\u03C3\u03B5\u03B9 \u03C4\u03B7\u03BD <strong>\u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03C1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7 \u03B1\u03C0\u03BF\u03C1\u03C1\u03AE\u03C4\u03BF\u03C5 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF</strong> \u03C3\u03B5 <strong>\u0394\u03B7\u03BC\u03CC\u03C3\u03B9\u03BF</strong>"));}computeDefaultVideoCommentPolicy(){R_e(this.defaultCommentPolicy)&&(this.addConfig({defaults:{publish:{commentsPolicy:this.defaultCommentPolicy}}}),this.addExplanation("<strong>\u0391\u03C0\u03B1\u03B9\u03C4\u03B5\u03AF \u03AD\u03B3\u03BA\u03C1\u03B9\u03C3\u03B7</strong> \u03B5\u03BE' \u03BF\u03C1\u03B9\u03C3\u03BC\u03BF\u03CD \u03B3\u03B9\u03B1 \u03C4\u03B1 \u03BD\u03AD\u03B1 \u03C3\u03C7\u03CC\u03BB\u03B9\u03B1 \u03C3\u03B5 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF"));}computeP2P(){R_e(this.p2p)&&(this.addConfig({defaults:{p2p:{embed:{enabled:this.p2p==="enabled"},webapp:{enabled:this.p2p==="enabled"}}}}),this.p2p==="enabled"?this.addExplanation("<strong>\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF \u03C4\u03B7 \u03C1\u03BF\u03AE P2P</strong> \u03C9\u03C2 \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B3\u03B9\u03B1 \u03B1\u03BD\u03CE\u03BD\u03C5\u03BC\u03BF\u03C5\u03C2 \u03BA\u03B1\u03B9 \u03BD\u03AD\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2"):this.addExplanation("<strong>\u0391\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF \u03C4\u03B7 \u03C1\u03BF\u03AE P2P</strong> \u03B1\u03C0\u03CC \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B3\u03B9\u03B1 \u03B1\u03BD\u03CE\u03BD\u03C5\u03BC\u03BF\u03C5\u03C2 \u03BA\u03B1\u03B9 \u03BD\u03AD\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2"));}computeFederation(){R_e(this.federation)&&(this.addConfig({followers:{instance:{enabled:this.federation==="enabled"},channels:{enabled:this.federation==="enabled"}}}),this.federation==="enabled"?this.addExplanation("<strong>\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03B5\u03B9</strong> \u03C3\u03B5 \u03B5\u03BE\u03C9\u03C4\u03B5\u03C1\u03B9\u03BA\u03AD\u03C2 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B5\u03C2/\u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03BD\u03B1 <strong>\u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03BF\u03CD\u03BD</strong> \u03C3\u03C4\u03BF \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03CC \u03C3\u03B1\u03C2"):this.addExplanation("<strong>\u0391\u03C0\u03BF\u03C4\u03C1\u03AD\u03C0\u03B5\u03B9</strong> \u03C3\u03B5 \u03B5\u03BE\u03C9\u03C4\u03B5\u03C1\u03B9\u03BA\u03AD\u03C2 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B5\u03C2/\u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03BD\u03B1 <strong>\u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03BF\u03CD\u03BD \u03C3\u03C4\u03BF \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03CC \u03C3\u03B1\u03C2</strong>"));}computeKeepOriginalVideo(){R_e(this.keepOriginalVideo)&&(this.addConfig({transcoding:{originalFile:{keep:this.keepOriginalVideo==="enabled"}}}),this.keepOriginalVideo==="enabled"&&this.addExplanation("<strong>\u0391\u03C0\u03BF\u03B8\u03B7\u03BA\u03B5\u03CD\u03C3\u03B5\u03B9 \u03B1\u03BD\u03C4\u03AF\u03B3\u03C1\u03B1\u03C6\u03BF</strong> \u03C4\u03BF\u03C5 \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03C0\u03BF\u03C5 \u03B1\u03BD\u03B5\u03B2\u03AC\u03C3\u03B1\u03C4\u03B5"));}computeReplaceVideoFile(){R_e(this.allowReplaceFile)&&(this.addConfig({videoFile:{update:{enabled:this.allowReplaceFile==="enabled"}}}),this.allowReplaceFile==="enabled"&&this.addExplanation("<strong>\u0395\u03C0\u03B9\u03C4\u03C1\u03AD\u03C0\u03B5\u03B9</strong> \u03C3\u03C4\u03BF\u03C5\u03C2 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B5\u03C2 \u03C3\u03B1\u03C2 <strong>\u03BD\u03B1 \u03B1\u03BD\u03C4\u03B9\u03BA\u03B1\u03C4\u03B1\u03C3\u03C4\u03AE\u03C3\u03BF\u03C5\u03BD \u03AD\u03BD\u03B1 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF</strong> \u03C0\u03BF\u03C5 \u03AD\u03C7\u03B5\u03B9 \u03AE\u03B4\u03B7 \u03B4\u03B7\u03BC\u03BF\u03C3\u03B9\u03B5\u03C5\u03C4\u03B5\u03AF"));}computeMiniatureSettings(){R_e(this.preferDisplayName)&&this.addConfig({client:{videos:{miniature:{preferAuthorDisplayName:this.preferDisplayName==="enabled"}}}});}computeGlobalSearch(){R_e(this.globalSearch)&&(this.addConfig({search:{searchIndex:{enabled:this.globalSearch==="enabled",isDefaultSearch:this.globalSearch==="enabled",url:"https://sepiasearch.org"}}}),this.globalSearch==="enabled"&&this.addExplanation("\u039F\u03C1\u03AF\u03C3\u03B5\u03B9 \u03C4\u03BF <a href=\"https://sepiasearch.org\" target=\"_blank\">SepiaSearch</a> \u03C9\u03C2 <strong>\u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03BC\u03B7\u03C7\u03B1\u03BD\u03AE \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7\u03C2</strong>"));}computeTranscription(){R_e(this.transcription)&&(this.addConfig({videoTranscription:{enabled:this.transcription==="enabled"}}),this.transcription==="enabled"&&this.addExplanation("<strong>\u0395\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9 \u03C4\u03B7\u03BD \u03B1\u03C5\u03C4\u03CC\u03BC\u03B1\u03C4\u03B7 \u03BC\u03B5\u03C4\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE</strong> \u03C4\u03C9\u03BD \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF \u03B3\u03B9\u03B1 \u03B4\u03B7\u03BC\u03B9\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 \u03C5\u03C0\u03CC\u03C4\u03B9\u03C4\u03BB\u03C9\u03BD \u03BA\u03B1\u03B9 \u03B2\u03B5\u03BB\u03C4\u03AF\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03C0\u03C1\u03BF\u03C3\u03B2\u03B1\u03C3\u03B9\u03BC\u03CC\u03C4\u03B7\u03C4\u03B1\u03C2"));}computeAuth(){if(!R_e(this.authType))return;let c="\u03A4\u03BF \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03BF <strong>\u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C1\u03C5\u03B8\u03BC\u03B9\u03C3\u03C4\u03B5\u03AF</strong> \u03BC\u03B5\u03C4\u03AC \u03C4\u03B7\u03BD \u03B5\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03AF\u03C9\u03C3\u03B7 \u03C4\u03BF\u03C5 \u03BF\u03B4\u03B7\u03B3\u03BF\u03CD \u03C0\u03C1\u03BF\u03C1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7\u03C2.";this.authType==="ldap"?(this.addExplanation("\u0395\u03B3\u03BA\u03B1\u03C4\u03B1\u03C3\u03C4\u03AE\u03C3\u03B5\u03B9 \u03C4\u03BF \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03BF \u03C0\u03B9\u03C3\u03C4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7\u03C2 <strong>LDAP</strong>."+c),this.plugins.push("peertube-plugin-auth-ldap")):this.authType==="saml"?(this.addExplanation("\u0395\u03B3\u03BA\u03B1\u03C4\u03B1\u03C3\u03C4\u03AE\u03C3\u03B5\u03B9 \u03C4\u03BF \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03BF \u03C0\u03B9\u03C3\u03C4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7\u03C2 <strong>SAML 2.0</strong>"+c),this.plugins.push("peertube-plugin-auth-saml2")):this.authType==="oidc"&&(this.addExplanation("\u0395\u03B3\u03BA\u03B1\u03C4\u03B1\u03C3\u03C4\u03AE\u03C3\u03B5\u03B9 \u03C4\u03BF \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03BF \u03C0\u03B9\u03C3\u03C4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7\u03C2 <strong>OpenID Connect</strong>"+c),this.plugins.push("peertube-plugin-auth-openid-connect"));}addConfig(c){return this.config=UUe(this.config,c);}addExplanation(c){this.unsafeExplanations.push(c);}};var Pt=r=>({"platform-type-selected":r});function ht(r,c){if(r&1&&Pp(0,"my-community-based-config",35),r&2){let t=bV();B0("usageType",t.usageType[t.platformType]);}}function Rt(r,c){if(r&1&&Pp(0,"my-institutional-config",35),r&2){let t=bV();B0("usageType",t.usageType[t.platformType]);}}function yt(r,c){if(r&1&&Pp(0,"my-private-instance-config",35),r&2){let t=bV();B0("usageType",t.usageType[t.platformType]);}}var It=(()=>{class r{currentStep=qp.required({transform:J$});totalSteps=qp.required({transform:J$});back=Cpe();next=Cpe();hide=Cpe();iconKey=Mt();iconInstitution=ft();platformType;usageType={community:ie.initForCommunity(),institution:ie.initForInstitution(),private:ie.initForPrivateInstance()};static ɵfac=function(o){return new(o||r)();};static ɵcmp=Pa({type:r,selectors:[["my-admin-config-wizard-form"]],inputs:{currentStep:[1,"currentStep"],totalSteps:[1,"totalSteps"]},outputs:{back:"back",next:"next",hide:"hide"},decls:58,vars:12,consts:()=>{let t;t="\u0392\u0397\u039C\u0391 "+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let o;o="\u03A4\u03CD\u03C0\u03BF\u03C2 \u03C7\u03C1\u03AE\u03C3\u03B7\u03C2";let e;e="\u0397 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1 \u03BC\u03BF\u03C5 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03BF...";let a;a="\u03BC\u03B5 \u03B2\u03AC\u03C3\u03B7 \u03C4\u03B7\u03BD \u03BA\u03BF\u03B9\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1";let d;d="\u0394\u03CE\u03C3\u03C4\u03B5 \u03C4\u03B7 \u03B4\u03C5\u03BD\u03B1\u03C4\u03CC\u03C4\u03B7\u03C4\u03B1 \u03C3\u03B5 \u03BC\u03B9\u03B1 \u03BA\u03BF\u03B9\u03BD\u03CC\u03C4\u03B7\u03C4\u03B1 \u03BD\u03B1 \u03B4\u03B7\u03BC\u03BF\u03C3\u03B9\u03B5\u03CD\u03B5\u03B9 \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03BF \u03BA\u03B1\u03B9 \u03BD\u03B1 \u03B1\u03BB\u03BB\u03B7\u03BB\u03B5\u03C0\u03B9\u03B4\u03C1\u03AC \u03BC\u03B5\u03C4\u03B1\u03BE\u03CD \u03C4\u03C9\u03BD \u03BC\u03B5\u03BB\u03CE\u03BD \u03C4\u03B7\u03C2.";let p;p="\u0398\u03B5\u03C3\u03BC\u03B9\u03BA\u03AE";let A;A="\u0393\u03B9\u03B1 \u03C4\u03B7 \u03BC\u03B5\u03C4\u03AC\u03B4\u03BF\u03C3\u03B7 \u03C4\u03C9\u03BD \u03B2\u03AF\u03BD\u03C4\u03B5\u03CC \u03C3\u03B1\u03C2. \u03A3\u03C5\u03BD\u03B9\u03C3\u03C4\u03AC\u03C4\u03B1\u03B9 \u03B3\u03B9\u03B1 \u03B4\u03B7\u03BC\u03CC\u03C3\u03B9\u03BF\u03C5\u03C2 \u03C6\u03BF\u03C1\u03B5\u03AF\u03C2, \u03B5\u03BD\u03CE\u03C3\u03B5\u03B9\u03C2 \u03BA\u03B1\u03B9 \u03B5\u03C4\u03B1\u03B9\u03C1\u03B5\u03AF\u03B5\u03C2.";let E;E="\u0399\u03B4\u03B9\u03C9\u03C4\u03B9\u03BA\u03CC";let x;x="\u039C\u03CC\u03BD\u03BF \u03C3\u03C5\u03B3\u03BA\u03B5\u03BA\u03C1\u03B9\u03BC\u03AD\u03BD\u03B1 \u03AC\u03C4\u03BF\u03BC\u03B1 \u03AD\u03C7\u03BF\u03C5\u03BD \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03BF \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03BF. \u03A3\u03C5\u03BD\u03B9\u03C3\u03C4\u03AC\u03C4\u03B1\u03B9 \u03B3\u03B9\u03B1 \u03BF\u03B9\u03BA\u03BF\u03B3\u03AD\u03BD\u03B5\u03B9\u03B5\u03C2 \u03BA\u03B1\u03B9 \u03BA\u03BB\u03B5\u03B9\u03C3\u03C4\u03AD\u03C2 \u03BA\u03BF\u03B9\u03BD\u03CC\u03C4\u03B7\u03C4\u03B5\u03C2.";let k;k="\u03A0\u03AF\u03C3\u03C9";let X;X="\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7 \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03C9\u03BD";let O;return O="\u0391\u03B3\u03BD\u03CC\u03B7\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C2 \u03C4\u03BF \u03C0\u03B1\u03C1\u03CC\u03BD",[t,o,e,a,d,p,A,E,x,k,X,O,[1,"root"],[1,"two-columns","mb-4"],["src","/client/assets/images/mascot/default.svg","alt","mascot",1,"mascot"],[1,"steps"],[1,"header-steps"],[1,"title"],[1,"text-content"],[1,"label"],[1,"two-columns","width-50"],[1,"platform-types",3,"ngClass"],[1,"ul-unstyle"],[1,"platform-type"],["type","radio","name","platformType","id","platformTypeCommunity","value","community",3,"ngModelChange","ngModel"],["for","platformTypeCommunity"],["iconName","users"],[1,"type-label"],[1,"type-description"],["type","radio","name","platformType","id","platformTypeInstitution","value","institution",3,"ngModelChange","ngModel"],["for","platformTypeInstitution"],[3,"unsafeHTML"],["type","radio","name","platformType","id","platformTypePrivate","value","private",3,"ngModelChange","ngModel"],["for","platformTypePrivate"],[1,"platform-config"],[3,"usageType"],[1,"buttons"],["icon","arrow-left","theme","secondary",3,"click"],["theme","primary",3,"click","disabled"],[1,"button-as-link",3,"click"]];},template:function(o,e){o&1&&(sp(0,"div",12)(1,"div",13)(2,"div"),Pp(3,"img",14),ub(),sp(4,"div")(5,"div",15)(6,"div",16),yV(7,0),ub()(),sp(8,"h4",17),yV(9,1),ub(),sp(10,"div",18),KV(11,"You can also edit your platform configuration at a later time"),ub()()(),sp(12,"div",19),yV(13,2),ub(),sp(14,"div",20)(15,"div",21)(16,"ul",22)(17,"li",23)(18,"input",24),Mx("ngModelChange",function(d){return e$(e.platformType,d)||(e.platformType=d),d;}),ub(),GH(),sp(19,"label",25)(20,"div"),Pp(21,"my-global-icon",26),ub(),sp(22,"div")(23,"div",27),yV(24,3),ub(),sp(25,"div",28),yV(26,4),ub()()()(),sp(27,"li",23)(28,"input",29),Mx("ngModelChange",function(d){return e$(e.platformType,d)||(e.platformType=d),d;}),ub(),GH(),sp(29,"label",30)(30,"div"),Pp(31,"my-custom-icon",31),ub(),sp(32,"div")(33,"div",27),yV(34,5),ub(),sp(35,"div",28),yV(36,6),ub()()()(),sp(37,"li",23)(38,"input",32),Mx("ngModelChange",function(d){return e$(e.platformType,d)||(e.platformType=d),d;}),ub(),GH(),sp(39,"label",33)(40,"div"),Pp(41,"my-custom-icon",31),ub(),sp(42,"div")(43,"div",27),yV(44,7),ub(),sp(45,"div",28),yV(46,8),ub()()()()()(),sp(47,"div",34),_2(48,ht,1,1,"my-community-based-config",35)(49,Rt,1,1,"my-institutional-config",35)(50,yt,1,1,"my-private-instance-config",35),ub()(),sp(51,"div",36)(52,"my-button",37),Fp("click",function(){return e.back.emit();}),yV(53,9),ub(),sp(54,"my-button",38),Fp("click",function(){return e.next.emit(e.usageType[e.platformType]);}),yV(55,10),ub(),sp(56,"button",39),Fp("click",function(){return e.hide.emit();}),yV(57,11),ub()()()),o&2&&(zB(7),ax(e.currentStep())(e.totalSteps()),vV(7),zB(8),B0("ngClass",l$(10,Pt,e.platformType)),zB(3),Nx("ngModel",e.platformType),WH(),zB(10),Nx("ngModel",e.platformType),WH(),zB(3),B0("unsafeHTML",e.iconInstitution),zB(7),Nx("ngModel",e.platformType),WH(),zB(3),B0("unsafeHTML",e.iconKey),zB(7),w2(e.platformType==="community"?48:e.platformType==="institution"?49:e.platformType==="private"?50:-1),zB(6),B0("disabled",!e.platformType));},dependencies:[cl,w3,Jn,Je,fn,qn,ln,Qn,Ke,Ae,it,Tr,ut,Ct,gt,pt],styles:[".mascot[_ngcontent-%COMP%]{margin-top:-90px;width:170px;height:190px}.two-columns.width-50[_ngcontent-%COMP%]{gap:0}.platform-types[_ngcontent-%COMP%]{display:flex}@media screen and (min-width:800px){.platform-types.platform-type-selected[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{border-inline-start:1px solid var(--bg-secondary-450)}.platform-types[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{padding-inline-start:calc(1.325rem + .9vw)}.platform-types[_ngcontent-%COMP%]{margin-inline-end:calc(1.325rem + .9vw)}}@media screen and (min-width:800px)and (min-width:1200px){.platform-types[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{padding-inline-start:2rem}}@media screen and (min-width:800px)and (min-width:1200px){.platform-types[_ngcontent-%COMP%]{margin-inline-end:2rem}}@media screen and (max-width:800px){.platform-types.platform-type-selected[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{border-block-start:1px solid var(--bg-secondary-450)}.platform-types[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{padding-top:calc(1.325rem + .9vw)}.platform-types[_ngcontent-%COMP%]{margin-bottom:calc(1.325rem + .9vw)}}@media screen and (max-width:800px)and (min-width:1200px){.platform-types[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{padding-top:2rem}}@media screen and (max-width:800px)and (min-width:1200px){.platform-types[_ngcontent-%COMP%]{margin-bottom:2rem}}.platform-types[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.platform-type[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;padding:1rem 1.5rem;gap:1rem;color:var(--fg-300);border-radius:8px;border:1px solid var(--bg-secondary-450);margin:0}.platform-type[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%], .platform-type[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   my-custom-icon[_ngcontent-%COMP%]{color:var(--secondary-icon-color);display:inline-block;width:34px;height:34px;line-height:34px}.platform-type[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:hover{background-color:var(--bg-secondary-300)}.platform-type[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{display:none}.type-label[_ngcontent-%COMP%]{color:var(--fg-400);font-weight:700;font-size:1rem}.type-description[_ngcontent-%COMP%]{font-size:14px;font-weight:400}input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{border:2px solid var(--border-primary);margin:-1px;background-color:var(--bg)}input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]   my-custom-icon[_ngcontent-%COMP%]{color:var(--border-primary)}@media screen and (max-width:800px){.mascot[_ngcontent-%COMP%]{display:none}.two-columns[_ngcontent-%COMP%]{justify-content:center}.two-columns.width-50[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.two-columns.width-50[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%!important}}",".steps[_ngcontent-%COMP%]{color:var(--fg-200);font-size:14px;font-weight:700}.title[_ngcontent-%COMP%]{color:var(--fg-350);font-weight:700;font-size:calc(1.3625rem + 1.35vw)}@media(min-width:1200px){.title[_ngcontent-%COMP%]{font-size:2.375rem}}.sub-title[_ngcontent-%COMP%]{color:var(--fg-300);font-weight:400;font-size:1.25rem}h4[_ngcontent-%COMP%]{margin-bottom:0}.text-content[_ngcontent-%COMP%]{color:var(--fg-200)}.buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;margin-top:calc(1.375rem + 1.5vw)}@media(min-width:1200px){.buttons[_ngcontent-%COMP%]{margin-top:2.5rem}}.buttons[_ngcontent-%COMP%]{gap:calc(1.275rem + .3vw)}@media(min-width:1200px){.buttons[_ngcontent-%COMP%]{gap:1.5rem}}form[_ngcontent-%COMP%]{max-width:512px;width:100%}.two-columns[_ngcontent-%COMP%]{display:flex;gap:1rem}.two-columns.width-50[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.one-column[_ngcontent-%COMP%]{text-align:center}.one-column[_ngcontent-%COMP%]   .mascot-container[_ngcontent-%COMP%]{position:relative;height:110px;margin:0 auto}.one-column[_ngcontent-%COMP%]   .mascot-container[_ngcontent-%COMP%], .one-column[_ngcontent-%COMP%]   .mascot[_ngcontent-%COMP%]{width:170px}.one-column[_ngcontent-%COMP%]   .mascot[_ngcontent-%COMP%]{position:absolute;top:-100px;left:0;height:190px}h5[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;color:var(--fg-300)}"],changeDetection:1});}return r;})();function vt(r,c){if(r&1&&Pp(0,"li",14),r&2){let t=c.$implicit;B0("innerHTML",t,ow);}}var Nt=(()=>{class r{adminConfig=g(Xe);pluginAPI=g(je);notifier=g(rc);html=g(gg);server=g($t$1);instanceLogo=g($i);currentStep=qp.required({transform:J$});totalSteps=qp.required({transform:J$});usageType=qp.required();instanceInfo=qp.required();dryRun=qp.required({transform:tl});back=Cpe();next=Cpe();hide=Cpe();safeExplanations=[];plugins=[];config={};updating=false;ngOnChanges(){this.usageType()&&(this.safeExplanations=this.usageType().getUnsafeExplanations().map(t=>this.html.toSimpleSafeHtml(t)),this.config=UUe({instance:{name:this.instanceInfo().platformName,shortDescription:this.instanceInfo().shortDescription},theme:{customization:{primaryColor:this.instanceInfo().primaryColor}}},this.usageType().getConfig()),this.plugins=this.usageType().getPlugins());}confirm(){if(this.dryRun())return this.next.emit();this.updating=true,this.adminConfig.updateCustomConfig(this.config).pipe(Oe(()=>{let t=this.instanceInfo().avatar;return t?this.instanceLogo.updateAvatar(t):this.instanceLogo.deleteAvatar();}),Oe(()=>this.server.resetConfig()),Oe(()=>ge(this.plugins).pipe(Qn$1(t=>this.pluginAPI.install(t)),Vd()))).subscribe({next:()=>{this.updating=false,this.next.emit();},error:t=>{this.notifier.handleError(t),this.updating=false;}});}static ɵfac=function(o){return new(o||r)();};static ɵcmp=Pa({type:r,selectors:[["my-admin-config-wizard-preview"]],inputs:{currentStep:[1,"currentStep"],totalSteps:[1,"totalSteps"],usageType:[1,"usageType"],instanceInfo:[1,"instanceInfo"],dryRun:[1,"dryRun"]},outputs:{back:"back",next:"next",hide:"hide"},features:[c$([Xe,je,$i]),ti],decls:25,vars:4,consts:()=>{let t;t="\u0392\u0397\u039C\u0391 "+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let o;o="\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7 \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03C9\u03BD";let e;e="\u0395\u03AC\u03BD \u03B5\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03B9\u03CE\u03C3\u03B5\u03C4\u03B5, \u03C4\u03BF PeerTube \u03B8\u03B1:";let a;a="\u0391\u03BD \u03B5\u03C0\u03B9\u03B8\u03C5\u03BC\u03B5\u03AF\u03C4\u03B5 \u03C0\u03B9\u03BF \u03BB\u03B5\u03C0\u03C4\u03BF\u03BC\u03B5\u03C1\u03AE \u03AD\u03BB\u03B5\u03B3\u03C7\u03BF \u03C4\u03C9\u03BD \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03C9\u03BD, \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03C4\u03C1\u03BF\u03C0\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B5\u03CD\u03BA\u03BF\u03BB\u03B1 \u03C4\u03B7 \u03B4\u03B9\u03B1\u03BC\u03CC\u03C1\u03C6\u03C9\u03C3\u03B7 \u03C4\u03B7\u03C2 \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1\u03C2 \u03C3\u03B1\u03C2 \u03BC\u03B5\u03C4\u03AC \u03C4\u03B7\u03BD \u03BF\u03BB\u03BF\u03BA\u03BB\u03AE\u03C1\u03C9\u03C3\u03B7 \u03C4\u03BF\u03C5 \u03BF\u03B4\u03B7\u03B3\u03BF\u03CD \u03C0\u03C1\u03BF\u03B4\u03B9\u03B1\u03BC\u03CC\u03C1\u03C6\u03C9\u03C3\u03B7\u03C2!";let d;d="\u03A0\u03AF\u03C3\u03C9";let p;p="\u0395\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03AF\u03C9\u03C3\u03B7 \u03B1\u03C5\u03C4\u03AE\u03C2 \u03C4\u03B7\u03C2 \u03C1\u03CD\u03B8\u03BC\u03B9\u03C3\u03B7\u03C2";let A;return A="\u0391\u03B3\u03BD\u03CC\u03B7\u03C3\u03B7 \u03C0\u03C1\u03BF\u03C2 \u03C4\u03BF \u03C0\u03B1\u03C1\u03CC\u03BD",[t,o,e,a,d,p,A,[1,"root"],[1,"two-columns"],["src","/client/assets/images/mascot/default.svg","alt","mascot",1,"mascot"],[1,"steps"],[1,"header-steps"],[1,"title"],[1,"text-content","mt-3"],[3,"innerHTML"],[1,"buttons"],["icon","arrow-left","theme","secondary",3,"click"],["theme","primary",3,"click","disabled","loading"],[1,"button-as-link",3,"click"]];},template:function(o,e){o&1&&(sp(0,"div",7)(1,"div",8)(2,"div"),Pp(3,"img",9),ub(),sp(4,"div")(5,"div",10)(6,"div",11),yV(7,0),ub()(),sp(8,"h4",12),yV(9,1),ub(),sp(10,"div",13)(11,"p"),yV(12,2),ub(),sp(13,"ul"),R2(14,vt,1,1,"li",14,A2),ub(),sp(16,"p"),yV(17,3),ub()()()(),sp(18,"div",15)(19,"my-button",16),Fp("click",function(){return e.back.emit();}),yV(20,4),ub(),sp(21,"my-button",17),Fp("click",function(){return e.confirm();}),yV(22,5),ub(),sp(23,"button",18),Fp("click",function(){return e.hide.emit();}),yV(24,6),ub()()()),o&2&&(zB(7),ax(e.currentStep())(e.totalSteps()),vV(7),zB(7),N2(e.safeExplanations),zB(7),B0("disabled",e.updating)("loading",e.updating));},dependencies:[Jn,Qn,Ke,Ae,it],styles:[".steps[_ngcontent-%COMP%]{color:var(--fg-200);font-size:14px;font-weight:700}.title[_ngcontent-%COMP%]{color:var(--fg-350);font-weight:700;font-size:calc(1.3625rem + 1.35vw)}@media(min-width:1200px){.title[_ngcontent-%COMP%]{font-size:2.375rem}}.sub-title[_ngcontent-%COMP%]{color:var(--fg-300);font-weight:400;font-size:1.25rem}h4[_ngcontent-%COMP%]{margin-bottom:0}.text-content[_ngcontent-%COMP%]{color:var(--fg-200)}.buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;margin-top:calc(1.375rem + 1.5vw)}@media(min-width:1200px){.buttons[_ngcontent-%COMP%]{margin-top:2.5rem}}.buttons[_ngcontent-%COMP%]{gap:calc(1.275rem + .3vw)}@media(min-width:1200px){.buttons[_ngcontent-%COMP%]{gap:1.5rem}}form[_ngcontent-%COMP%]{max-width:512px;width:100%}.two-columns[_ngcontent-%COMP%]{display:flex;gap:1rem}.two-columns.width-50[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.one-column[_ngcontent-%COMP%]{text-align:center}.one-column[_ngcontent-%COMP%]   .mascot-container[_ngcontent-%COMP%]{position:relative;height:110px;margin:0 auto}.one-column[_ngcontent-%COMP%]   .mascot-container[_ngcontent-%COMP%], .one-column[_ngcontent-%COMP%]   .mascot[_ngcontent-%COMP%]{width:170px}.one-column[_ngcontent-%COMP%]   .mascot[_ngcontent-%COMP%]{position:absolute;top:-100px;left:0;height:190px}h5[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;color:var(--fg-300)}"],changeDetection:1});}return r;})();var At=(()=>{class r{back=Cpe();next=Cpe();hide=Cpe();static ɵfac=function(o){return new(o||r)();};static ɵcmp=Pa({type:r,selectors:[["my-admin-config-wizard-welcome"]],outputs:{back:"back",next:"next",hide:"hide"},decls:18,vars:0,consts:()=>{let t;t="\u039A\u03B1\u03BB\u03CE\u03C2 \u03AE\u03C1\u03B8\u03B1\u03C4\u03B5 \u03C3\u03C4\u03BF PeerTube";let o;o="\u0391\u03B3\u03B1\u03C0\u03B7\u03C4\u03AD \u03B4\u03B9\u03B1\u03C7\u03B5\u03B9\u03C1\u03B9\u03C3\u03C4\u03AE!";let e;e="\u0397 Sepia, \u03B7 \u03C3\u03BF\u03C5\u03C0\u03B9\u03AC, \u03AD\u03C7\u03B5\u03B9 \u03BC\u03B5\u03C1\u03B9\u03BA\u03AD\u03C2 \u03B5\u03C1\u03C9\u03C4\u03AE\u03C3\u03B5\u03B9\u03C2 \u03C0\u03BF\u03C5 \u03B8\u03B1 \u03C3\u03B1\u03C2 \u03B2\u03BF\u03B7\u03B8\u03AE\u03C3\u03BF\u03C5\u03BD "+"\uFFFD#10\uFFFD"+"\u03BD\u03B1 \u03C0\u03C1\u03BF\u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03C4\u03B5 \u03B3\u03C1\u03AE\u03B3\u03BF\u03C1\u03B1 \u03C4\u03B7\u03BD \u03C0\u03BB\u03B1\u03C4\u03C6\u03CC\u03C1\u03BC\u03B1 \u03C3\u03B1\u03C2"+"\uFFFD/#10\uFFFD"+".";let a;a="\u03A0\u03AC\u03BC\u03B5!";let d;d="\u03A5\u03C0\u03B5\u03BD\u03B8\u03CD\u03BC\u03B9\u03C3\u03B5 \u03BC\u03BF\u03C5 \u03B1\u03C1\u03B3\u03CC\u03C4\u03B5\u03C1\u03B1";let p;return p="\u039D\u03B1 \u03BC\u03B7\u03BD \u03B5\u03BC\u03C6\u03B1\u03BD\u03B9\u03C3\u03C4\u03B5\u03AF \u03BE\u03B1\u03BD\u03AC",[t,o,e,a,d,p,[1,"root","one-column"],[1,"mascot-container"],["src","/client/assets/images/mascot/happy.svg","alt","mascot",1,"mascot"],[1,"title"],[1,"sub-title"],[1,"text-content","mt-3"],[1,"buttons"],["theme","primary",3,"click"],["theme","secondary",3,"click"],[1,"button-as-link",3,"click"]];},template:function(o,e){o&1&&(sp(0,"div",6)(1,"div",7),Pp(2,"img",8),ub(),sp(3,"h4")(4,"div",9),yV(5,0),ub(),sp(6,"div",10),yV(7,1),ub()(),sp(8,"div",11),ix(9,2),Pp(10,"strong"),sx(),ub(),sp(11,"div",12)(12,"my-button",13),Fp("click",function(){return e.next.emit();}),yV(13,3),ub(),sp(14,"my-button",14),Fp("click",function(){return e.hide.emit({doNotOpenAgain:false});}),yV(15,4),ub(),sp(16,"button",15),Fp("click",function(){return e.hide.emit({doNotOpenAgain:true});}),yV(17,5),ub()()());},dependencies:[Jn,Qn,Ae,it],styles:[".steps[_ngcontent-%COMP%]{color:var(--fg-200);font-size:14px;font-weight:700}.title[_ngcontent-%COMP%]{color:var(--fg-350);font-weight:700;font-size:calc(1.3625rem + 1.35vw)}@media(min-width:1200px){.title[_ngcontent-%COMP%]{font-size:2.375rem}}.sub-title[_ngcontent-%COMP%]{color:var(--fg-300);font-weight:400;font-size:1.25rem}h4[_ngcontent-%COMP%]{margin-bottom:0}.text-content[_ngcontent-%COMP%]{color:var(--fg-200)}.buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;margin-top:calc(1.375rem + 1.5vw)}@media(min-width:1200px){.buttons[_ngcontent-%COMP%]{margin-top:2.5rem}}.buttons[_ngcontent-%COMP%]{gap:calc(1.275rem + .3vw)}@media(min-width:1200px){.buttons[_ngcontent-%COMP%]{gap:1.5rem}}form[_ngcontent-%COMP%]{max-width:512px;width:100%}.two-columns[_ngcontent-%COMP%]{display:flex;gap:1rem}.two-columns.width-50[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.one-column[_ngcontent-%COMP%]{text-align:center}.one-column[_ngcontent-%COMP%]   .mascot-container[_ngcontent-%COMP%]{position:relative;height:110px;margin:0 auto}.one-column[_ngcontent-%COMP%]   .mascot-container[_ngcontent-%COMP%], .one-column[_ngcontent-%COMP%]   .mascot[_ngcontent-%COMP%]{width:170px}.one-column[_ngcontent-%COMP%]   .mascot[_ngcontent-%COMP%]{position:absolute;top:-100px;left:0;height:190px}h5[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;color:var(--fg-300)}"],changeDetection:1});}return r;})();var bt=["modal"],Gt=["stepper"];function $t(r,c){if(r&1){let t=k2();sp(0,"cdk-step",3)(1,"my-admin-config-wizard-welcome",11),Fp("back",function(){$I(t),bV();let e=IV(2);return GI(e.previous());})("next",function(){$I(t),bV();let e=IV(2);return GI(e.next());})("hide",function(e){$I(t);let a=bV(2);return GI(a.hide(e));}),ub()();}}function Lt(r,c){if(r&1){let t=k2();sp(0,"cdk-step",10)(1,"my-admin-config-wizard-documentation",12),Fp("hide",function(){$I(t);let e=bV(2);return GI(e.hide({doNotOpenAgain:true}));}),ub()();}}function wt(r,c){if(r&1){let t=k2();sp(0,"div",2)(1,"my-common-stepper",null,1),_2(3,$t,2,0,"cdk-step",3),sp(4,"cdk-step",4)(5,"my-admin-config-wizard-edit-info",5),Fp("back",function(){$I(t);let e=IV(2);return GI(e.previous());})("next",function(e){$I(t);let a=IV(2),d=bV();return d.instanceInfo=e,GI(a.next());})("hide",function(){$I(t);let e=bV();return GI(e.hide());}),ub()(),sp(6,"cdk-step",6)(7,"my-admin-config-wizard-form",7),Fp("back",function(){$I(t);let e=IV(2);return GI(e.previous());})("next",function(e){$I(t);let a=IV(2),d=bV();return d.usageType=e,GI(a.next());})("hide",function(){$I(t);let e=bV();return GI(e.hide());}),ub()(),sp(8,"cdk-step",8)(9,"my-admin-config-wizard-preview",9),Fp("back",function(){$I(t);let e=IV(2);return GI(e.previous());})("next",function(){$I(t);let e=IV(2),a=bV();return GI(a.showWelcome?e.next():a.hide());})("hide",function(){$I(t);let e=bV();return GI(e.hide());}),ub()(),_2(10,Lt,2,0,"cdk-step",10),ub()();}if(r&2){let t=bV();zB(3),w2(t.showWelcome?3:-1),zB(2),B0("currentStep",t.currentStep())("showBack",t.showWelcome),zB(2),B0("currentStep",t.currentStep()),zB(2),B0("usageType",t.usageType)("instanceInfo",t.instanceInfo)("dryRun",t.dryRun)("currentStep",t.currentStep()),zB(),w2(t.showWelcome?10:-1);}}var Bo=(()=>{class r{modalService=g(rr);userService=g(Pc);notifier=g(rc);modal=wpe("modal");stepper=wpe("stepper");created=Cpe();usageType;instanceInfo;showWelcome;dryRun;modalRef;ngOnInit(){this.created.emit();}shouldAutoOpen(t){return this.modalService.hasOpenModals()?false:this.getFragment()==="#admin-welcome-wizard"||this.getFragment()==="#admin-welcome-wizard-test"?true:!(t.noWelcomeModal===true||Bn.getItem(Ee())==="true");}show({showWelcome:t}){this.showWelcome=t,this.dryRun=this.getFragment()==="#admin-welcome-wizard-test",this.modalRef=this.modalService.open(this.modal(),{centered:true,backdrop:"static",keyboard:false,size:"lg"});}currentStep(){if(!this.stepper())return 0;let t=this.stepper().selectedIndex;return this.showWelcome?t:t+1;}totalSteps(){if(!this.stepper())return 0;let t=this.stepper().steps.length;return this.showWelcome?t-1:t;}hide(t={}){let{doNotOpenAgain:o=false}=t;o&&this.doNotOpenAgain(),this.modalRef.close();}doNotOpenAgain(){Bn.setItem(Ee(),"true"),this.userService.updateMyProfile({noWelcomeModal:true}).subscribe({next:()=>j.info("We will not open the welcome modal again."),error:t=>this.notifier.handleError(t)});}getFragment(){return window.location.hash;}static ɵfac=function(o){return new(o||r)();};static ɵcmp=Pa({type:r,selectors:[["my-admin-config-wizard-modal"]],viewQuery:function(o,e){o&1&&fx(e.modal,bt,5)(e.stepper,Gt,5),o&2&&DV(2);},outputs:{created:"created"},decls:2,vars:0,consts:()=>{let t;t="\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BA\u03B1\u03BB\u03C9\u03C3\u03BF\u03C1\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2";let o;o="\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03B3\u03B5\u03BD\u03B9\u03BA\u03CE\u03BD \u03C0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03B9\u03CE\u03BD";let e;e="\u03A4\u03CD\u03C0\u03BF\u03C2 \u03C7\u03C1\u03AE\u03C3\u03B7\u03C2";let a;a="\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7 \u03C1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03C9\u03BD";let d;return d="\u03A4\u03B5\u03BA\u03BC\u03B7\u03C1\u03AF\u03C9\u03C3\u03B7 \u03BC\u03B5\u03C4\u03AC \u03C4\u03B7 \u03B4\u03B9\u03B1\u03BC\u03CC\u03C1\u03C6\u03C9\u03C3\u03B7",[["modal",""],["stepper",""],[1,"modal-body"],["label",t],["label",o],["totalSteps","3",3,"back","next","hide","currentStep","showBack"],["label",e],["totalSteps","3",3,"back","next","hide","currentStep"],["label",a],["totalSteps","3",3,"back","next","hide","usageType","instanceInfo","dryRun","currentStep"],["label",d],[3,"back","next","hide"],[3,"hide"]];},template:function(o,e){o&1&&_0(0,wt,11,9,"ng-template",null,0,D$);},dependencies:[Ae,ie$1,T,At,ct,It,Nt,dt],styles:[".modal-body[_ngcontent-%COMP%]{padding:2rem 3rem}"],changeDetection:1});}return r;})();/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{Bo as AdminConfigWizardModalComponent};//# sourceMappingURL=chunk-sKt7usgR.js.map