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-DrTNSv9U.js';import{T}from'./chunk-9IQjMgUZ.js';import{m as me}from'./chunk-nugnJKEs.js';import'./chunk-CwlPVglh.js';import{A as Ae,i as ie$1}from'./chunk-DyJt3k2H.js';import{a}from'./chunk-D1Rdmm7c.js';import'./chunk-DsZ3hjLw.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-sJAtkqeq.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="\u795D\u8D3A";let o;o="\u4F60\u7684\u5E73\u53F0\u5DF2\u7ECF\u914D\u7F6E\u597D\uFF01";let e;e="\u662F\u65F6\u5019\u6DFB\u52A0\u5173\u4E8E\u4F60\u5E73\u53F0\u7684\u4FE1\u606F\u4E86\uFF01"+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u8BBE\u7F6E\u63CF\u8FF0"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\u3001\u8BF4\u6E05 "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u4F60\u662F\u8C01"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\u3001\u4F60\u4E3A\u4F55"+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u521B\u5EFA\u8FD9\u4E2A\u5E73\u53F0"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\u4EE5\u53CA"+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u4F60\u6253\u7B97"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\u7EF4\u62A4\u8FD9\u4E2A\u5E73\u53F0 "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u591A\u4E45"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\u5BF9\u8BBF\u95EE\u8005\u7406\u89E3\u4ED6\u4EEC\u5728\u4EC0\u4E48\u7C7B\u578B\u7684\u7F51\u7AD9\u4E0A\u975E\u5E38\u91CD\u8981\u3002 ",e=EV(e);let a;a="\u5B9E\u7528\u94FE\u63A5";let d;d="PeerTube \u5B98\u7F51\uFF1A";let p;p="\u535A\u5BA2\u6587\u7AE0\u3001\u83B7\u53D6\u5E2E\u52A9\u6216\u63A2\u7D22 PeerTube";let A;A="PeerTube \u516C\u5171\u7D22\u5F15\uFF1A";let E;E="\u5C06\u5E73\u53F0\u653E\u5728\u5B98\u65B9 PeerTube \u516C\u5171\u7D22\u5F15\u4E2D";let x;x="\u6587\u6863";let k;k="\u7BA1\u7406\u5458\uFF1A";let X;X="\u7BA1\u7406\u7528\u6237\u3001\u5173\u6CE8\u5176\u4ED6\u5E73\u53F0\u3001\u5904\u7406\u5783\u573E\u4FE1\u606F\u53D1\u9001\u8005\u3001\u914D\u7F6E\u5BF9\u8C61\u5B58\u50A8\u6216\u8FDC\u7A0B\u8F6C\u7801\u2026";let O;O="\u8BBE\u7F6E\u4F60\u7684\u8D26\u6237\uFF0C\u7BA1\u7406\u89C6\u9891\u64AD\u653E\u5217\u8868\uFF0C\u641C\u7D22\u7B2C\u4E09\u65B9\u5E94\u7528\u7A0B\u5E8F\u2026\u2026";let R;R="CLI:";let Fe;Fe="\u4E0A\u4F20\u6216\u5BFC\u5165\u89C6\u9891\uFF0C\u89E3\u6790\u65E5\u5FD7\uFF0C\u5220\u9664\u5B58\u50A8\u76EE\u5F55\uFF0C\u91CD\u7F6E\u7528\u6237\u5BC6\u7801\u2026\u2026";let Pe;Pe="\u5173\u95ED";let he;return he="\u586B\u5199\u5E73\u53F0\u4FE1\u606F",[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="\u6B65\u9AA4 "+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let o;o="\u5E38\u89C4\u4FE1\u606F";let e;e="\u4F60\u53EF\u4EE5\u7A0D\u540E\u7F16\u8F91\u6B64\u4FE1\u606F";let a;a="\u5E73\u53F0\u540D";let d;d="\u7B80\u77ED\u63CF\u8FF0";let p;p="\u5E73\u53F0\u56FE\u6807";let A;A="\u5728\u7F51\u7AD9\u3001\u79FB\u52A8\u5E94\u7528\u548C\u793E\u4EA4\u5A92\u4F53\u7B49\u591A\u4E2A\u5730\u65B9\u4F7F\u7528";let E;E="\u4E3B\u8272";let x;x="\u4E0B\u4E00\u6B65";let k;k="\u6682\u65F6\u5FFD\u7565";let X;return X="\u8FD4\u56DE",[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:"\u6253\u5F00",description:"\u4EFB\u4F55\u4EBA\u5747\u53EF\u6CE8\u518C\u5E76\u4F7F\u7528\u5E73\u53F0"},{id:"approval",label:"\u9700\u8981\u6279\u51C6",description:"\u4EFB\u4F55\u4EBA\u5747\u53EF\u6CE8\u518C\u8D26\u6237\uFF0C\u4F46\u5728\u53EF\u4EE5\u4F7F\u7528\u5E73\u53F0\u524D\u9700\u8981 \u5BA1\u6838\u8005 \u6279\u51C6\u8D26\u6237"},{id:"closed",label:"\u5173\u95ED",description:"\u4EC5\u7BA1\u7406\u5458\u53EF\u5728\u8BE5\u5E73\u53F0\u4E0A\u521B\u5EFA\u7528\u6237"}];importOptions=[{id:"enabled",label:"\u5DF2\u542F\u7528",description:"Your community can import videos from remote platforms (YouTube, Vimeo...) and automatically synchronize remote channels"},{id:"disabled",label:"\u5DF2\u7981\u7528",description:"\u793E\u533A\u4E0D\u80FD\u5BFC\u5165\u6216\u540C\u6B65\u6765\u81EA\u8FDC\u7A0B\u5E73\u53F0\u7684\u5185\u5BB9"}];liveOptions=[{id:"enabled",label:"\u662F",description:"\u4F60\u7684\u793E\u533A\u53EF\u4EE5\u5728\u5E73\u53F0\u4E0A\u76F4\u64AD\uFF08\u9700\u8981\u989D\u5916\u7684\u76D1\u7BA1\u5DE5\u4F5C\uFF09"},{id:"disabled",label:"\u5426",description:"\u4E0D\u5141\u8BB8\u4F60\u7684\u793E\u533A\u5728\u5E73\u53F0\u4E0A\u76F4\u64AD"}];globalSearchOptions=[{id:"enabled",label:"\u542F\u7528\u5168\u5C40\u641C\u7D22",description:"\u5C06 https://sepiasearch.org \u7528\u4F5C\u5728\u6240\u6709\u5DF2\u77E5\u7684 PeerTube \u5E73\u53F0\u641C\u7D22\u5185\u5BB9\u7684\u641C\u7D22\u5F15\u64CE"},{id:"disabled",label:"\u505C\u7528\u5168\u5C40\u641C\u7D22",description:"\u4F7F\u7528\u53EA\u5C55\u793A\u672C\u5730\u5185\u5BB9\u7684\u5E73\u53F0\u641C\u7D22\u5F15\u64CE"}];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="\u6CE8\u518C\u653F\u7B56";let o;o="\u65B0\u7528\u6237\u89C6\u9891\u914D\u989D";let e;e="\u89C6\u9891\u5BFC\u5165\u548C\u540C\u6B65";let a;a="\u6211\u7684\u793E\u533A\u53EF\u4EE5\u4E32\u6D41\u76F4\u64AD";let d;return d="\u641C\u7D22",[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:"\u5DF2\u542F\u7528",description:"\u5BF9\u533F\u540D\u7528\u6237\u548C\u65B0\u7528\u6237\u9ED8\u8BA4\u5F00\u542F P2P \u4E32\u6D41"},{id:"disabled",label:"\u5DF2\u7981\u7528",description:"\u505C\u7528 P2P \u4E32\u6D41"}];transcriptionOptions=[{id:"enabled",label:"\u5DF2\u542F\u7528",description:"\u5F00\u542F\u89C6\u9891\u81EA\u52A8\u6587\u5B57\u8BB0\u5F55\u4EE5\u81EA\u52A8\u751F\u6210\u5B57\u5E55"},{id:"disabled",label:"\u5DF2\u7981\u7528",description:"\u505C\u7528\u89C6\u9891\u81EA\u52A8\u6587\u5B57\u8BB0\u5F55"}];keepOriginalVideoOptions=[{id:"enabled",label:"\u662F",description:"\u5728\u670D\u52A1\u5668\u4E0A\u4FDD\u7559\u539F\u59CB\u89C6\u9891\u6587\u4EF6"},{id:"disabled",label:"\u5426",description:"\u5904\u7406\u540E\u5220\u9664\u539F\u59CB\u89C6\u9891\u6587\u4EF6"}];authenticationOptions=[{id:"local",label:"\u5DF2\u7981\u7528",description:"\u5E73\u53F0\u5185\u90E8\u7BA1\u7406\u7528\u6237\u6CE8\u518C\u548C\u767B\u5F55"},{id:"ldap",label:"LDAP",description:"\u4F7F\u7528 LDAP \u8FDB\u884C\u7528\u6237\u8EAB\u4EFD\u8BA4\u8BC1"},{id:"oidc",label:"OIDC",description:"\u4F7F\u7528 OpenID Connect \u8FDB\u884C\u7528\u6237\u8EAB\u4EFD\u8BA4\u8BC1"},{id:"saml",label:"SAML",description:"\u4F7F\u7528 SAML 2.0 \u8FDB\u884C\u7528\u6237\u8EAB\u4EFD\u8BA4\u8BC1"}];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="\u4FDD\u5B58\u5DF2\u4E0A\u4F20\u89C6\u9891\u7684\u526F\u672C";let o;o="\u5BF9\u7B49\u7F51\u7EDC";let e;e="\u6709\u52A9\u4E8E\u60A8\u7684\u5E73\u53F0\u5206\u53D1\u89C6\u9891\u5185\u5BB9\uFF0C\u4F46\u4F1A"+"\uFFFD#10\uFFFD"+"\u964D\u4F4E\u7528\u6237\u9690\u79C1"+"\uFFFD#11\uFFFD"+""+"\uFFFD/#11\uFFFD"+""+"\uFFFD/#10\uFFFD"+"\u3002 ";let a;a="\u89C6\u9891\u6587\u5B57\u8BB0\u5F55";let d;return d="\u8FDC\u7A0B\u8EAB\u4EFD\u8BA4\u8BC1",[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:"\u5DF2\u542F\u7528",description:"\u7528\u6237\u53EF\u4EE5\u4ECE\u8FDC\u7A0B\u5E73\u53F0\uFF08Youtube\u3001Vimeo\u2026\uFF09\u5BFC\u5165\u89C6\u9891\u5E76\u81EA\u52A8\u540C\u6B65\u8FDC\u7A0B\u9891\u9053"},{id:"disabled",label:"\u5DF2\u7981\u7528",description:"\u505C\u7528\u89C6\u9891\u5BFC\u5165\u548C\u9891\u9053\u540C\u6B65"}];liveOptions=[{id:"enabled",label:"\u662F"},{id:"disabled",label:"\u5426"}];keepOriginalVideoOptions=[{id:"enabled",label:"\u662F",description:"\u5728\u670D\u52A1\u5668\u4E0A\u4FDD\u7559\u539F\u59CB\u89C6\u9891\u6587\u4EF6"},{id:"disabled",label:"\u5426",description:"\u5904\u7406\u540E\u5220\u9664\u539F\u59CB\u89C6\u9891\u6587\u4EF6"}];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="\u89C6\u9891\u5BFC\u5165\u548C\u540C\u6B65";let o;o="\u7528\u6237\u53EF\u4EE5\u76F4\u64AD";let e;return e="\u4FDD\u5B58\u5DF2\u4E0A\u4F20\u89C6\u9891\u7684\u526F\u672C",[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>\u5141\u8BB8</strong>\u4EFB\u4F55\u7528\u6237 <strong>\u6CE8\u518C</strong>"),this.addConfig({signup:{enabled:true,requiresApproval:false}})):this.registration==="approval"?(this.addExplanation("\u5141\u8BB8\u7528\u6237 <strong>\u7533\u8BF7\u5728\u4F60\u7684\u5E73\u53F0\u4E0A</strong>\u6CE8\u518C"),this.addConfig({signup:{enabled:true,requiresApproval:true}})):this.registration==="closed"&&(this.addExplanation("<strong>\u7981\u6B62</strong>\u7528\u6237<strong>\u6CE8\u518C</strong>"),this.addConfig({signup:{enabled:false}})),(this.registration==="approval"||this.registration==="open")&&(this.addExplanation("\u4F60\u7684\u793E\u533A\u53D1\u5E03\u7684\u89C6\u9891\u9700\u8981 <strong>\u5BA1\u6838\u8005 \u6279\u51C6</strong>"),this.addConfig({autoBlacklist:{videos:{ofUsers:{enabled:true}}}})));}computeVideoQuota(){R_e(this.videoQuota)&&(this.addConfig({user:{videoQuota:this.videoQuota}}),this.videoQuota===0?this.addExplanation("<strong>\u963B\u6B62</strong> \u65B0\u7528\u6237 <strong>\u4E0A\u4F20\u89C6\u9891</strong> \uFF08 \u5BA1\u6838\u8005 \u53EF\u4EE5\u66F4\u6539\u8BBE\u7F6E\uFF09"):this.videoQuota===-1?this.addExplanation("<strong>\u4E0D\u9650\u5236</strong> \u65B0\u7528\u6237\u53EF\u4EE5\u4E0A\u4F20\u7684\u89C6\u9891\u6570"):this.addExplanation("\u5C06\u65B0\u7528\u6237\u7684 <strong>\u89C6\u9891\u914D\u989D\u8BBE\u4E3A "+J0e(this.videoQuota,0)+"</strong>\uFF08\u5BA1\u6838\u8005 \u53EF\u4EE5\u66F4\u6539\u8BBE\u7F6E\uFF09"));}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>\u5141\u8BB8</strong> \u7528\u6237 <strong>\u4ECE\u8FDC\u7A0B\u5E73\u53F0\uFF08YouTube, Vimeo...\uFF09</strong>\u5BFC\u5165\u5E76\u540C\u6B65\u89C6\u9891"):this.addExplanation("<strong>\u963B\u6B62</strong>\u7528\u6237<strong>\u4ECE\u8FDC\u7A0B\u5E73\u53F0</strong> \u5BFC\u5165\u89C6\u9891"));}computeStreamLives(){R_e(this.live)&&(this.addConfig({live:{enabled:this.live==="enabled"}}),this.live==="enabled"?(this.plugins.push("peertube-plugin-livechat"),this.addExplanation("<strong>\u5141\u8BB8</strong> \u7528\u6237 <strong>\u76F4\u64AD</strong> \u5E76\u4F7F\u7528 <strong>Livechat</strong> \u63D2\u4EF6\u548C\u89C2\u4F17\u804A\u5929")):this.addExplanation("<strong>\u963B\u6B62</strong> \u7528\u6237\u8FDB\u884C <strong>\u76F4\u64AD</strong>"));}computeDefaultVideoPrivacy(){R_e(this.defaultPrivacy)&&(this.addConfig({defaults:{publish:{privacy:this.defaultPrivacy}}}),this.defaultPrivacy===Zt.INTERNAL?this.addExplanation("\u5C06<strong>\u89C6\u9891\u9ED8\u8BA4\u9690\u79C1\u7B49\u7EA7</strong> \u8BBE\u4E3A <strong>\u5185\u90E8</strong>"):this.defaultPrivacy===Zt.PUBLIC&&this.addExplanation("\u5C06 <strong>\u89C6\u9891\u9ED8\u8BA4\u9690\u79C1\u7B49\u7EA7</strong> \u8BBE\u4E3A <strong>\u516C\u5F00</strong>"));}computeDefaultVideoCommentPolicy(){R_e(this.defaultCommentPolicy)&&(this.addConfig({defaults:{publish:{commentsPolicy:this.defaultCommentPolicy}}}),this.addExplanation("<strong>\u65B0\u7684\u89C6\u9891\u8BC4\u8BBA</strong> \u9ED8\u8BA4\u9700\u8981\u6279\u51C6"));}computeP2P(){R_e(this.p2p)&&(this.addConfig({defaults:{p2p:{embed:{enabled:this.p2p==="enabled"},webapp:{enabled:this.p2p==="enabled"}}}}),this.p2p==="enabled"?this.addExplanation("\u5BF9\u533F\u540D\u548C\u65B0\u7528\u6237<strong>\u9ED8\u8BA4\u5141\u8BB8 P2P \u4E32\u6D41</strong>"):this.addExplanation("\u5BF9\u533F\u540D\u548C\u65B0\u7528\u6237<strong>\u9ED8\u8BA4\u7981\u7528 P2P \u4E32\u6D41</strong>"));}computeFederation(){R_e(this.federation)&&(this.addConfig({followers:{instance:{enabled:this.federation==="enabled"},channels:{enabled:this.federation==="enabled"}}}),this.federation==="enabled"?this.addExplanation("<strong>\u5141\u8BB8</strong>\u5916\u90E8\u5E73\u53F0/\u7528\u6237\u8BA2\u9605 <strong>subscribe</strong>\u4F60\u7684\u5185\u5BB9"):this.addExplanation("<strong>\u963B\u6B62</strong> \u5916\u90E8\u5E73\u53F0/\u7528\u6237 <strong>\u8BA2\u9605\u4F60\u7684\u5185\u5BB9</strong>"));}computeKeepOriginalVideo(){R_e(this.keepOriginalVideo)&&(this.addConfig({transcoding:{originalFile:{keep:this.keepOriginalVideo==="enabled"}}}),this.keepOriginalVideo==="enabled"&&this.addExplanation("<strong>\u4FDD\u5B58</strong> \u5DF2\u4E0A\u4F20\u89C6\u9891\u6587\u4EF6\u7684\u526F\u672C"));}computeReplaceVideoFile(){R_e(this.allowReplaceFile)&&(this.addConfig({videoFile:{update:{enabled:this.allowReplaceFile==="enabled"}}}),this.allowReplaceFile==="enabled"&&this.addExplanation("<strong>\u5141\u8BB8</strong>\u7528\u6237 <strong>\u66FF\u6362</strong> \u5DF2\u53D1\u5E03\u7684\u89C6\u9891"));}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("\u5C06 <a href=\"https://sepiasearch.org\" target=\"_blank\">SepiaSearch</a> \u8BBE\u4E3A <strong>\u9ED8\u8BA4\u641C\u7D22\u5F15\u64CE</strong>"));}computeTranscription(){R_e(this.transcription)&&(this.addConfig({videoTranscription:{enabled:this.transcription==="enabled"}}),this.transcription==="enabled"&&this.addExplanation("<strong>\u542F\u7528\u81EA\u52A8\u7684\u89C6\u9891\u6587\u5B57\u8BB0\u5F55</strong> \u6765\u521B\u5EFA\u5B57\u5E55\u5E76\u6539\u8FDB\u65E0\u969C\u788D\u6027"));}computeAuth(){if(!R_e(this.authType))return;let c="\u5FC5\u987B\u5728\u786E\u8BA4\u9884\u914D\u7F6E\u5411\u5BFC\u540E <strong>\u624D\u80FD\u914D\u7F6E\u6B64\u63D2\u4EF6</strong>\u3002";this.authType==="ldap"?(this.addExplanation("\u5B89\u88C5 <strong>LDAP</strong> \u8EAB\u4EFD\u8BA4\u8BC1\u63D2\u4EF6\u3002"+c),this.plugins.push("peertube-plugin-auth-ldap")):this.authType==="saml"?(this.addExplanation("\u5B89\u88C5 <strong>SAML 2.0</strong> \u8EAB\u4EFD\u8BA4\u8BC1\u63D2\u4EF6\u3002"+c),this.plugins.push("peertube-plugin-auth-saml2")):this.authType==="oidc"&&(this.addExplanation("\u5B89\u88C5 <strong>OpenID Connect</strong>\u8EAB\u4EFD\u8BA4\u8BC1\u63D2\u4EF6\u3002"+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="\u6B65\u9AA4 "+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let o;o="\u4F7F\u7528\u7C7B\u578B";let e;e="\u6211\u7684\u5E73\u53F0\u66F4\u50CF\u2026";let a;a="\u57FA\u4E8E\u793E\u533A";let d;d="\u5141\u8BB8\u793E\u533A\u4E00\u9053\u53D1\u5E03\u5185\u5BB9\u5E76\u4E92\u52A8\u3002";let p;p="\u673A\u6784";let A;A="\u516C\u5F00\u64AD\u51FA\u89C6\u9891\u3002\u63A8\u8350\u516C\u5171\u673A\u6784\u3001\u534F\u4F1A\u548C\u4F01\u4E1A\u3002";let E;E="\u79C1\u4EAB";let x;x="\u4EC5\u7279\u5B9A\u4EBA\u7FA4\u53EF\u8BBF\u95EE\u5185\u5BB9\u3002\u63A8\u8350\u5BB6\u65CF\u548C\u4E0D\u516C\u5F00\u7684\u793E\u533A\u3002";let k;k="\u8FD4\u56DE";let X;X="\u9884\u89C8\u914D\u7F6E";let O;return O="\u6682\u65F6\u5FFD\u7565",[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="\u6B65\u9AA4 "+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let o;o="\u914D\u7F6E\u9884\u89C8";let e;e="\u5982\u679C\u786E\u8BA4\uFF0CPeerTube \u4F1A\uFF1A";let a;a="\u5982\u679C\u60F3\u8981\u66F4\u7CBE\u7EC6\u7684\u8BBE\u7F6E\u63A7\u5236\uFF0C\u53EF\u4EE5\u5728\u9884\u914D\u7F6E\u5411\u5BFC\u540E\u8F7B\u677E\u66F4\u6539\u5E73\u53F0\u914D\u7F6E\uFF01";let d;d="\u8FD4\u56DE";let p;p="\u786E\u8BA4\u6B64\u914D\u7F6E";let A;return A="\u6682\u65F6\u5FFD\u7565",[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="\u6B22\u8FCE\u6765\u5230 PeerTube";let o;o="\u4EB2\u7231\u7684\u7BA1\u7406\u5458\uFF01";let e;e="\u4E4C\u8D3C Sepia \u6709\u51E0\u4E2A\u95EE\u9898\u5E2E\u52A9\u4F60 "+"\uFFFD#10\uFFFD"+"\u5FEB\u901F\u9884\u914D\u7F6E\u4F60\u7684\u5E73\u53F0"+"\uFFFD/#10\uFFFD"+"\u3002";let a;a="\u5F00\u59CB\u5427\uFF01";let d;d="\u7A0D\u540E\u518D\u63D0\u9192\u6211";let p;return p="\u4E0D\u518D\u663E\u793A",[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="\u6B22\u8FCE\u4ECB\u7ECD";let o;o="\u7F16\u8F91\u5E38\u89C4\u4FE1\u606F";let e;e="\u4F7F\u7528\u7C7B\u578B";let a;a="\u914D\u7F6E\u9884\u89C8";let d;return d="Post \u914D\u7F6E\u6587\u6863",[["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-1wVJ2edE.js.map