import{a as rt,b as _t,r as $,s as at,t as st,v as Se,w as Te,x as De}from"./chunk-KF35AFLE.js";import{a as ot,e as it}from"./chunk-KYFTWIBP.js";import{a as lt}from"./chunk-5KAYKNXN.js";import"./chunk-GH7JOTEN.js";import{b as nt,f as D}from"./chunk-PEXRIOEF.js";import"./chunk-QW6WJWKH.js";import"./chunk-3FBGFV3V.js";import"./chunk-G4SSM5DN.js";import"./chunk-66W7ZDNA.js";import{h as oe}from"./chunk-6B7LVSD5.js";import"./chunk-TMELUQIT.js";import{b as j}from"./chunk-4KR5QHBK.js";import"./chunk-ADNRDCXI.js";import{c as G}from"./chunk-LQJE4VHL.js";import"./chunk-BYP5TNEI.js";import{E as y,F as v,c as pe,g as b,h as U,o as Be,p as V,r as je,w as Y,x as B}from"./chunk-U7YDHGE3.js";import{u as He}from"./chunk-TNCGHY53.js";import{a as fe}from"./chunk-MUVDKD7T.js";import{Bb as H,Bf as ue,Cb as K,D as be,Da as s,Db as a,Dc as I,E as Ge,Eb as J,Ec as P,Fb as ee,Fc as Ae,Gb as ke,Hb as M,Jb as N,Jc as te,Kf as ge,Mc as de,Mh as Je,Na as f,Nc as z,R as _e,Rb as Xe,Re as Qe,Rh as et,Sb as Ue,Sh as tt,Tb as W,Ua as We,Ug as Me,Vg as Ke,Wc as me,We as h,Yb as q,Zb as Ie,ba as C,cc as ae,dc as le,ec as se,fd as ce,ga as S,gb as L,ha as T,hb as w,j as ve,jb as ze,kb as Ze,kc as Ve,lb as xe,mb as m,mc as re,nb as r,ne as qe,ob as n,pb as c,ra as $e,ua as Le,wh as Ce,xc as Ye,ye as ne,za as we,zb as Q,zf as Oe}from"./chunk-DZBHF6HI.js";import{a as Re,e as ye,i as u}from"./chunk-IQVXR75E.js";var Ct=ye((Bn,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=ye((jn,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=(()=>{let i=class i{hide=I();};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,selectors:[["my-admin-config-wizard-documentation"]],outputs:{hide:"hide"},decls:55,vars:0,consts:()=>{let o;o="\u7D44\u614B";let t;t="\u5DF2\u8A2D\u5B9A\u597D\u60A8\u7684\u5E73\u53F0\uFF01";let e;e="\u662F\u6642\u5019\u65B0\u589E\u95DC\u65BC\u60A8\u5E73\u53F0\u7684\u8CC7\u8A0A\u4E86\uFF01"+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u8A2D\u5B9A\u63CF\u8FF0"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\uFF0C\u8AAA\u660E"+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u60A8\u662F\u8AB0"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\uFF0C\u70BA\u4EC0\u9EBC"+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u60A8\u8981\u5EFA\u7ACB\u60A8\u7684\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]"+"\u60A8"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\u6253\u7B97"+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u7DAD\u8B77\u591A\u4E45"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\uFF0C\u5C0D\u8A2A\u5BA2\u4F86\u8AAA\uFF0C\u4E86\u89E3\u7DB2\u7AD9\u7684\u985E\u578B\u662F\u975E\u5E38\u91CD\u8981\u7684\u3002 ",e=ke(e);let l;l="\u5BE6\u7528\u9023\u7D50";let p;p="\u5B98\u65B9 PeerTube \u7DB2\u7AD9\uFF1A";let g;g="\u90E8\u843D\u683C\u6587\u7AE0\uFF0C\u53D6\u5F97\u5354\u52A9\u6216\u63A2\u7D22 PeerTube";let A;A="\u516C\u958B PeerTube \u7D22\u5F15\uFF1A";let E;E="\u5C07\u60A8\u7684\u5E73\u53F0\u653E\u5728\u5B98\u65B9 PeerTube \u516C\u5171\u7D22\u5F15\u4E0A";let x;x="\u6587\u4EF6";let k;k="\u7BA1\u7406\u54E1\uFF1A";let X;X="\u7BA1\u7406\u4F7F\u7528\u8005\u3001\u8FFD\u8E64\u5176\u4ED6\u5E73\u53F0\u3001\u8655\u7406\u5783\u573E\u90F5\u4EF6\u3001\u8A2D\u5B9A\u7269\u4EF6\u5132\u5B58\u6216\u9060\u7AEF\u8F49\u78BC\u2026\u2026";let O;O="\u8A2D\u5B9A\u60A8\u7684\u5E33\u865F\u3001\u7BA1\u7406\u5F71\u7247\u64AD\u653E\u6E05\u55AE\u3001\u63A2\u7D22\u7B2C\u4E09\u65B9\u61C9\u7528\u2026\u2026";let R;R="\u547D\u4EE4\u5217\uFF1A";let Fe;Fe="\u4E0A\u50B3\u6216\u532F\u5165\u5F71\u7247\u3001\u5256\u6790\u7D00\u9304\u3001\u4FEE\u6574\u5132\u5B58\u76EE\u9304\u3001\u91CD\u8A2D\u4F7F\u7528\u8005\u5BC6\u78BC\u2026\u2026";let Pe;Pe="\u95DC\u9589";let he;return he="\u586B\u5BEB\u5E73\u53F0\u8CC7\u8A0A",[o,t,e,l,p,g,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(t,e){t&1&&(r(0,"div",16)(1,"div",17)(2,"div",18),c(3,"img",19),n(),r(4,"h4")(5,"div",20),a(6,0),n(),r(7,"div",21),a(8,1),n()()(),r(9,"div",22)(10,"span",23),H(11,2),c(12,"strong")(13,"strong")(14,"strong")(15,"strong")(16,"strong"),K(),n()(),r(17,"div",22)(18,"h5"),a(19,3),n(),r(20,"ul",23)(21,"li")(22,"a",24),a(23,4),n(),r(24,"span"),a(25,5),n()(),r(26,"li")(27,"a",25),a(28,6),n(),r(29,"span"),a(30,7),n()()()(),r(31,"div",22)(32,"h5"),a(33,8),n(),r(34,"ul",23)(35,"li")(36,"a",26),a(37,9),n(),r(38,"span"),a(39,10),n()(),r(40,"li")(41,"a",27),q(42,"User:"),n(),r(43,"span"),a(44,11),n()(),r(45,"li")(46,"a",28),a(47,12),n(),r(48,"span"),a(49,13),n()()()(),r(50,"div",29)(51,"my-button",30),M("click",function(){return e.hide.emit();}),a(52,14),n(),r(53,"my-button",31),M("click",function(){return e.hide.emit();}),a(54,15),n()()());},dependencies:[G],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)}
/*# sourceMappingURL=admin-config-wizard-modal-common-QWVLRUK2.css.map */`]}));let _=i;return _;})();var mt=_=>({"input-error":_});function St(_,i){if(_&1&&(r(0,"div",22),q(1),n()),_&2){let d=N();s(),Ie(d.formErrors.platformName);}}function Tt(_,i){if(_&1&&(r(0,"div",22),q(1),n()),_&2){let d=N();s(),Ie(d.formErrors.shortDescription);}}function Dt(_,i){if(_&1){let d=Q();r(0,"my-button",34),M("click",function(){S(d);let t=N();return T(t.back.emit());}),a(1,10),n();}}var ct=(()=>{let i=class i{server=C(Ce);formReactiveService=C(j);themeService=C(tt);currentStep=P.required({transform:z});totalSteps=P.required({transform:z});showBack=P.required({transform:de});back=I();next=I();hide=I();form;formErrors={};validationMessages={};ngOnInit(){this.buildForm();let o=Qe(this.server.getHTMLConfig().instance.avatars,128);o&&fetch(o.fileUrl).then(t=>t.blob()).then(t=>this.form.patchValue({avatar:t})).catch(()=>{ue.error("Could not fetch instance avatar");});}get avatarFileConstraints(){return this.server.getHTMLConfig().avatar.file;}buildForm(){let o={platformName:rt,shortDescription:_t,avatar:null,primaryColor:it},{form:t,formErrors:e,validationMessages:l}=this.formReactiveService.buildForm(o,this.getDefaultValues());this.form=t,this.formErrors=e,this.validationMessages=l;}getDefaultValues(){let o=this.server.getHTMLConfig(),t=o.theme.customization.primaryColor,e=t?this.themeService.formatColorForForm(t):this.themeService.formatColorForForm(this.themeService.getCSSConfigValue("primaryColor"));return{platformName:o.instance.name,shortDescription:o.instance.shortDescription,avatar:void 0,primaryColor:e};}};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,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 o;o="\u6B65\u9A5F "+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let t;t="\u4E00\u822C\u8CC7\u8A0A";let e;e="\u60A8\u7A0D\u5F8C\u53EF\u4EE5\u7DE8\u8F2F\u6B64\u8CC7\u8A0A";let l;l="\u5E73\u53F0\u540D\u7A31";let p;p="\u77ED\u63CF\u8FF0";let g;g="\u5E73\u53F0\u5716\u793A";let A;A="\u4F7F\u7528\u5728\u4E0D\u540C\u7684\u5730\u65B9\uFF0C\u4F8B\u5982\u7DB2\u7AD9\u3001\u884C\u52D5\u61C9\u7528\u7A0B\u5F0F\u8207\u793E\u7FA4\u5A92\u9AD4\u4E0A";let E;E="\u4E3B\u8981\u984F\u8272";let x;x="\u4E0B\u4E00\u6B65";let k;k="\u66AB\u6642\u5FFD\u7565";let X;return X="\u4E0A\u4E00\u6B65",[o,t,e,l,p,g,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(t,e){t&1&&(r(0,"div",11)(1,"div",12)(2,"div"),c(3,"img",13),n(),r(4,"div")(5,"div",14)(6,"div",15),a(7,0),n()(),r(8,"h4",16),a(9,1),n(),r(10,"div",17),a(11,2),n(),r(12,"form",18)(13,"div",19)(14,"label",20),a(15,3),n(),c(16,"input",21),L(17,St,2,1,"div",22),n(),r(18,"div",19)(19,"label",23),a(20,4),n(),c(21,"textarea",24),L(22,Tt,2,1,"div",22),n(),r(23,"div",19)(24,"label",25),a(25,5),n(),r(26,"div",26),a(27,6),n(),c(28,"my-image-input",27),n(),r(29,"div",19)(30,"label",28),a(31,7),n(),c(32,"my-peertube-color-picker",29),n(),r(33,"div",30),L(34,Dt,2,0,"my-button",31),r(35,"my-button",32),M("click",function(){return e.next.emit(e.form.value);}),a(36,8),n(),r(37,"button",33),M("click",function(){return e.hide.emit();}),a(38,9),n()()()()()()),t&2&&(s(7),J(e.currentStep())(e.totalSteps()),ee(7),s(5),m("formGroup",e.form),s(4),m("ngClass",re(11,mt,e.formErrors.platformName)),s(),w(e.formErrors.platformName?17:-1),s(4),m("ngClass",re(13,mt,e.formErrors.shortDescription)),s(),w(e.formErrors.shortDescription?22:-1),s(6),m("fileConstraints",e.avatarFileConstraints),s(4),m("formError",e.formErrors.primaryColor),s(2),w(e.showBack()?34:-1),s(),m("disabled",!e.form.valid));},dependencies:[ce,me,y,V,pe,b,U,v,B,Y,at,D,G,lt],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}
/*# sourceMappingURL=admin-config-wizard-edit-info.component-M7DIOZPB.css.map */`,`.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)}
/*# sourceMappingURL=admin-config-wizard-modal-common-QWVLRUK2.css.map */`]}));let _=i;return _;})();var pt=(()=>{let i=class i{el=C(Le);unsafeHTML=P.required();ngOnInit(){let o=this.el.nativeElement;o.innerHTML=this.unsafeHTML(),o.ariaHidden="true";}};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,selectors:[["my-custom-icon"]],inputs:{unsafeHTML:[1,"unsafeHTML"]},decls:0,vars:0,template:function(t,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}
/*# sourceMappingURL=common-icon.component-XANAO2SC.css.map */`],changeDetection:0}));let _=i;return _;})();var ut=(()=>{let i=class i{formReactiveService=C(j);usageType=te.required();form;formErrors={};validationMessages={};registrationOptions=[{id:"open",label:"\u958B\u653E",description:"\u4EFB\u4F55\u4EBA\u90FD\u53EF\u4EE5\u8A3B\u518A\u4E26\u4F7F\u7528\u5E73\u53F0"},{id:"approval",label:"\u9700\u8981\u6838\u51C6",description:"\u4EFB\u4F55\u4EBA\u90FD\u53EF\u4EE5\u8A3B\u518A\uFF0C\u4F46\u5728\u4F7F\u7528\u5E73\u53F0\u4E4B\u524D\uFF0C\u5FC5\u9808\u7531\u7BA1\u7406\u54E1\u6838\u51C6\u5176\u5E33\u865F"},{id:"closed",label:"\u95DC\u9589",description:"\u50C5\u7BA1\u7406\u54E1\u53EF\u4EE5\u5728\u5E73\u53F0\u4E0A\u5EFA\u7ACB\u4F7F\u7528\u8005"}];importOptions=[{id:"enabled",label:"\u5DF2\u555F\u7528",description:"Your community can import videos from remote platforms (YouTube, Vimeo...) and automatically synchronize remote channels"},{id:"disabled",label:"\u5DF2\u505C\u7528",description:"\u60A8\u7684\u793E\u7FA4\u7121\u6CD5\u5F9E\u9060\u7AEF\u5E73\u53F0\u532F\u5165\u6216\u540C\u6B65\u5167\u5BB9"}];liveOptions=[{id:"enabled",label:"\u662F",description:"\u60A8\u7684\u793E\u7FA4\u53EF\u4EE5\u5728\u5E73\u53F0\u4E0A\u9032\u884C\u76F4\u64AD\uFF08\u9019\u9700\u8981\u984D\u5916\u7684\u5BE9\u6838\u5DE5\u4F5C\uFF09"},{id:"disabled",label:"\u5426",description:"\u60A8\u7684\u793E\u7FA4\u4E0D\u5141\u8A31\u5728\u5E73\u53F0\u4E0A\u9032\u884C\u76F4\u64AD"}];globalSearchOptions=[{id:"enabled",label:"\u555F\u7528\u5168\u57DF\u641C\u5C0B",description:"\u5C07 https://sepiasearch.org \u8A2D\u70BA\u9810\u8A2D\u641C\u5C0B\u5F15\u64CE\uFF0C\u5373\u53EF\u5728\u6240\u6709\u5DF2\u77E5\u7684 PeerTube \u5E73\u53F0\u4E0A\u641C\u5C0B\u5167\u5BB9"},{id:"disabled",label:"\u505C\u7528\u5168\u57DF\u641C\u5C0B",description:"\u4F7F\u7528\u53EA\u986F\u793A\u672C\u5730\u5167\u5BB9\u7684\u5E73\u53F0\u641C\u5C0B\u5F15\u64CE"}];videoQuotaOptions=st();ngOnInit(){this.buildForm(),this.form.valueChanges.subscribe(o=>{this.usageType().patch(o);});}buildForm(){let o={registration:null,remoteImport:null,videoQuota:null,live:null,globalSearch:null},{form:t,formErrors:e,validationMessages:l}=this.formReactiveService.buildForm(o,this.usageType());this.form=t,this.formErrors=e,this.validationMessages=l;}};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,selectors:[["my-community-based-config"]],inputs:{usageType:[1,"usageType"]},outputs:{usageType:"usageTypeChange"},decls:21,vars:6,consts:()=>{let o;o="\u8A3B\u518A\u653F\u7B56";let t;t="\u65B0\u4F7F\u7528\u8005\u7684\u5F71\u7247\u914D\u984D";let e;e="\u5F71\u7247\u532F\u5165\u8207\u540C\u6B65";let l;l="\u6211\u7684\u793E\u7FA4\u53EF\u4EE5\u4E32\u6D41\u76F4\u64AD";let p;return p="\u641C\u5C0B",[o,t,e,l,p,[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(t,e){t&1&&(r(0,"form",5)(1,"div",6)(2,"label",7),a(3,0),n(),c(4,"my-select-options",8),n(),r(5,"div",6)(6,"label",7),a(7,1),n(),c(8,"my-select-options",9),n(),r(9,"div",6)(10,"label",10),a(11,2),n(),c(12,"my-select-options",11),n(),r(13,"div",6)(14,"label",7),a(15,3),n(),c(16,"my-select-options",12),n(),r(17,"div",6)(18,"label",7),a(19,4),n(),c(20,"my-select-options",13),n()()),t&2&&(m("formGroup",e.form),s(4),m("items",e.registrationOptions),s(4),m("items",e.videoQuotaOptions),s(4),m("items",e.importOptions),s(4),m("items",e.liveOptions),s(4),m("items",e.globalSearchOptions));},dependencies:[y,V,b,U,v,B,Y,$,D,oe],encapsulation:2}));let _=i;return _;})();var gt=(()=>{let i=class i{formReactiveService=C(j);usageType=te.required();form;formErrors={};validationMessages={};p2pOptions=[{id:"enabled",label:"\u5DF2\u555F\u7528",description:"\u9810\u8A2D\u555F\u7528\u533F\u540D\u4F7F\u7528\u8005\u8207\u65B0\u4F7F\u7528\u8005\u7684 P2P \u4E32\u6D41\u529F\u80FD"},{id:"disabled",label:"\u5DF2\u505C\u7528",description:"\u505C\u7528 P2P \u4E32\u6D41"}];transcriptionOptions=[{id:"enabled",label:"\u5DF2\u555F\u7528",description:"\u555F\u7528\u8996\u8A0A\u81EA\u52D5\u8F49\u9304\u529F\u80FD\u4EE5\u81EA\u52D5\u7522\u751F\u5B57\u5E55"},{id:"disabled",label:"\u5DF2\u505C\u7528",description:"\u505C\u7528\u81EA\u52D5\u8996\u8A0A\u8F49\u9304"}];keepOriginalVideoOptions=[{id:"enabled",label:"\u662F",description:"\u5728\u4F3A\u670D\u5668\u4E0A\u4FDD\u7559\u539F\u59CB\u8996\u8A0A\u6A94\u6848"},{id:"disabled",label:"\u5426",description:"\u8655\u7406\u5F8C\u522A\u9664\u539F\u59CB\u8996\u8A0A\u6A94\u6848"}];authenticationOptions=[{id:"local",label:"\u5DF2\u505C\u7528",description:"\u60A8\u7684\u5E73\u53F0\u5C07\u5728\u5167\u90E8\u7BA1\u7406\u4F7F\u7528\u8005\u8A3B\u518A\u8207\u767B\u5165"},{id:"ldap",label:"LDAP",description:"\u4F7F\u7528 LDAP \u9032\u884C\u4F7F\u7528\u8005\u9A57\u8B49"},{id:"oidc",label:"OIDC",description:"\u4F7F\u7528 OpenID Connect \u9032\u884C\u4F7F\u7528\u8005\u9A57\u8B49"},{id:"saml",label:"SAML",description:"\u4F7F\u7528 SAML 2.0 \u9032\u884C\u4F7F\u7528\u8005\u9A57\u8B49"}];ngOnInit(){this.buildForm(),this.form.valueChanges.subscribe(o=>{this.usageType().patch(o);});}buildForm(){let o={keepOriginalVideo:null,p2p:null,transcription:null,authType:null},{form:t,formErrors:e,validationMessages:l}=this.formReactiveService.buildForm(o,this.usageType());this.form=t,this.formErrors=e,this.validationMessages=l;}};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,selectors:[["my-institutional-config"]],inputs:{usageType:[1,"usageType"]},outputs:{usageType:"usageTypeChange"},decls:21,vars:5,consts:()=>{let o;o="\u5132\u5B58\u5DF2\u4E0A\u50B3\u5F71\u7247\u7684\u526F\u672C";let t;t="P2P";let e;e="\u5354\u52A9\u60A8\u7684\u5E73\u53F0\u6563\u4F48\u5F71\u7247\u5167\u5BB9\uFF0C\u4F46\u6703 "+"\uFFFD#10\uFFFD"+"\u964D\u4F4E"+"\uFFFD#11\uFFFD"+""+"\uFFFD/#11\uFFFD"+""+"\uFFFD/#10\uFFFD"+" \u60A8\u7684\u4F7F\u7528\u8005\u7684\u96B1\u79C1\u7A0B\u5EA6 ";let l;l="\u5F71\u7247\u8F49\u9304";let p;return p="\u9060\u7AEF\u9A57\u8B49",[o,t,e,l,p,[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(t,e){t&1&&(r(0,"form",5)(1,"div",6)(2,"label",7),a(3,0),n(),c(4,"my-select-options",8),n(),r(5,"div",6)(6,"label",9),a(7,1),n(),r(8,"div",10),H(9,2),r(10,"a",11),c(11,"my-global-icon",12),n(),K(),n(),c(12,"my-select-options",13),n(),r(13,"div",6)(14,"label",14),a(15,3),n(),c(16,"my-select-options",15),n(),r(17,"div",6)(18,"label",16),a(19,4),n(),c(20,"my-select-options",17),n()()),t&2&&(m("formGroup",e.form),s(4),m("items",e.keepOriginalVideoOptions),s(8),m("items",e.p2pOptions),s(4),m("items",e.transcriptionOptions),s(4),m("items",e.authenticationOptions));},dependencies:[y,V,b,U,v,B,Y,$,D,oe,fe],encapsulation:2}));let _=i;return _;})();var Mt=(()=>{let i=class i{formReactiveService=C(j);usageType=te.required();form;formErrors={};validationMessages={};importOptions=[{id:"enabled",label:"\u5DF2\u555F\u7528",description:"\u4F7F\u7528\u8005\u53EF\u4EE5\u5F9E\u9060\u7AEF\u5E73\u53F0\u532F\u5165\u5F71\u7247\uFF08YouTube\u3001Vimeo \u7B49\uFF09\u4E26\u81EA\u52D5\u540C\u6B65\u9060\u7AEF\u983B\u9053"},{id:"disabled",label:"\u5DF2\u505C\u7528",description:"\u505C\u7528\u8996\u8A0A\u532F\u5165\u8207\u983B\u9053\u540C\u6B65"}];liveOptions=[{id:"enabled",label:"\u662F"},{id:"disabled",label:"\u5426"}];keepOriginalVideoOptions=[{id:"enabled",label:"\u662F",description:"\u5728\u4F3A\u670D\u5668\u4E0A\u4FDD\u7559\u539F\u59CB\u8996\u8A0A\u6A94\u6848"},{id:"disabled",label:"\u5426",description:"\u8655\u7406\u5F8C\u522A\u9664\u539F\u59CB\u8996\u8A0A\u6A94\u6848"}];ngOnInit(){this.buildForm(),this.form.valueChanges.subscribe(o=>{this.usageType().patch(o);});}buildForm(){let o={remoteImport:null,live:null,keepOriginalVideo:null},{form:t,formErrors:e,validationMessages:l}=this.formReactiveService.buildForm(o,this.usageType());this.form=t,this.formErrors=e,this.validationMessages=l;}};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,selectors:[["my-private-instance-config"]],inputs:{usageType:[1,"usageType"]},outputs:{usageType:"usageTypeChange"},decls:13,vars:4,consts:()=>{let o;o="\u5F71\u7247\u532F\u5165\u8207\u540C\u6B65";let t;t="\u4F7F\u7528\u8005\u53EF\u4EE5\u4E32\u6D41\u76F4\u64AD";let e;return e="\u5132\u5B58\u5DF2\u4E0A\u50B3\u5F71\u7247\u7684\u526F\u672C",[o,t,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(t,e){t&1&&(r(0,"form",3)(1,"div",4)(2,"label",5),a(3,0),n(),c(4,"my-select-options",6),n(),r(5,"div",4)(6,"label",7),a(7,1),n(),c(8,"my-select-options",8),n(),r(9,"div",4)(10,"label",9),a(11,2),n(),c(12,"my-select-options",10),n()()),t&2&&(m("formGroup",e.form),s(4),m("items",e.importOptions),s(4),m("items",e.liveOptions),s(4),m("items",e.keepOriginalVideoOptions));},dependencies:[y,V,b,U,v,B,Y,$,D,oe],encapsulation:2}));let _=i;return _;})();var ie=class _{registration;videoQuota;remoteImport;live;globalSearch;defaultPrivacy;defaultCommentPolicy;p2p;federation;keepOriginalVideo;allowReplaceFile;preferDisplayName;transcription;authType;unsafeExplanations=[];config={};plugins=[];constructor(i){for(let[d,o]of Object.entries(i))this[d]=o;}static initForCommunity(){let i=new _({registration:"approval",remoteImport:"disabled",live:"enabled",videoQuota:5368709120,globalSearch:"enabled",defaultPrivacy:ne.PUBLIC,p2p:"enabled",federation:"enabled",keepOriginalVideo:"disabled",allowReplaceFile:"disabled",defaultCommentPolicy:void 0,authType:void 0,preferDisplayName:void 0,transcription:void 0});return i.compute(),i;}static initForPrivateInstance(){let i=new _({registration:"closed",remoteImport:"enabled",live:"enabled",videoQuota:-1,globalSearch:"disabled",defaultPrivacy:ne.INTERNAL,p2p:"disabled",federation:"disabled",keepOriginalVideo:"enabled",allowReplaceFile:"enabled",preferDisplayName:"enabled",defaultCommentPolicy:void 0,authType:void 0,transcription:void 0});return i.compute(),i;}static initForInstitution(){let i=new _({registration:"closed",remoteImport:"enabled",live:"enabled",videoQuota:-1,globalSearch:"disabled",defaultPrivacy:ne.PUBLIC,p2p:"disabled",keepOriginalVideo:"enabled",allowReplaceFile:"enabled",preferDisplayName:"enabled",authType:"local",transcription:"enabled",defaultCommentPolicy:qe.REQUIRES_APPROVAL,federation:void 0});return i.compute(),i;}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 Re({},this.config);}getPlugins(){return[...this.plugins];}patch(i){for(let[d,o]of Object.entries(i))this[d]=o;this.compute();}computeRegistration(){h(this.registration)&&(this.registration==="open"?(this.addExplanation("<strong>\u5141\u8A31</strong>\u4EFB\u4F55\u4F7F\u7528\u8005<strong>\u8A3B\u518A</strong>"),this.addConfig({signup:{enabled:!0,requiresApproval:!1}})):this.registration==="approval"?(this.addExplanation("\u5141\u8A31\u4F7F\u7528\u8005\u5728\u60A8\u7684\u5E73\u53F0\u4E0A<strong>\u7533\u8ACB\u8A3B\u518A</strong>"),this.addConfig({signup:{enabled:!0,requiresApproval:!0}})):this.registration==="closed"&&(this.addExplanation("<strong>\u505C\u7528</strong>\u4F7F\u7528\u8005<strong>\u8A3B\u518A</strong>"),this.addConfig({signup:{enabled:!1}})),(this.registration==="approval"||this.registration==="open")&&(this.addExplanation("\u60A8\u7684\u793E\u7FA4\u6240\u767C\u4F48\u7684\u5F71\u7247\u5FC5\u9808\u7D93\u904E<strong>\u7BA1\u7406\u54E1\u6838\u51C6</strong>"),this.addConfig({autoBlacklist:{videos:{ofUsers:{enabled:!0}}}})));}computeVideoQuota(){h(this.videoQuota)&&(this.addConfig({user:{videoQuota:this.videoQuota}}),this.videoQuota===0?this.addExplanation("<strong>\u9632\u6B62</strong>\u65B0\u4F7F\u7528\u8005<strong>\u4E0A\u50B3\u5F71\u7247</strong>\uFF08\u53EF\u88AB\u7BA1\u7406\u54E1\u8B8A\u66F4\uFF09"):this.videoQuota===-1?this.addExplanation("<strong>\u4E0D\u9650\u5236</strong>\u65B0\u4F7F\u7528\u8005\u53EF\u4EE5\u4E0A\u50B3\u7684\u5F71\u7247\u6578\u91CF"):this.addExplanation("\u8A2D\u5B9A\u65B0\u4F7F\u7528\u8005\u7684<strong>\u5F71\u7247\u914D\u984D"+Ke(this.videoQuota,0)+"</strong>\uFF08\u53EF\u88AB\u7BA1\u7406\u54E1\u8B8A\u66F4\uFF09"));}computeVideoImport(){h(this.remoteImport)&&(this.addConfig({import:{videos:{http:{enabled:this.remoteImport==="enabled"}},videoChannelSynchronization:{enabled:this.remoteImport==="enabled"}}}),this.remoteImport==="enabled"?this.addExplanation("<strong>\u5141\u8A31</strong>\u60A8\u7684\u4F7F\u7528\u8005\u5F9E\u9060\u7AEF\u5E73\u53F0\uFF08YouTube\u3001Vimeo \u7B49\uFF09<strong>\u532F\u5165\u8207\u540C\u6B65</strong>"):this.addExplanation("<strong>\u9632\u6B62</strong>\u60A8\u7684\u4F7F\u7528\u8005\u5F9E\u9060\u7AEF\u5E73\u53F0<strong>\u532F\u5165\u5F71\u7247</strong>"));}computeStreamLives(){h(this.live)&&(this.addConfig({live:{enabled:this.live==="enabled"}}),this.live==="enabled"?(this.plugins.push("peertube-plugin-livechat"),this.addExplanation("<strong>\u5141\u8A31</strong>\u60A8\u7684\u4F7F\u7528\u8005\u4F7F\u7528 <strong>Livechat</strong> \u5916\u639B\u7A0B\u5F0F<strong>\u4E32\u6D41\u76F4\u64AD</strong>\u4E26\u8207\u89C0\u773E\u804A\u5929")):this.addExplanation("<strong>\u9632\u6B62</strong>\u60A8\u7684\u4F7F\u7528\u8005\u57F7\u884C<strong>\u76F4\u64AD\u4E32\u6D41</strong>"));}computeDefaultVideoPrivacy(){h(this.defaultPrivacy)&&(this.addConfig({defaults:{publish:{privacy:this.defaultPrivacy}}}),this.defaultPrivacy===ne.INTERNAL?this.addExplanation("\u8A2D\u5B9A<strong>\u9810\u8A2D\u5F71\u7247\u96B1\u79C1</strong>\u70BA<strong>\u5167\u90E8</strong>"):this.defaultPrivacy===ne.PUBLIC&&this.addExplanation("\u8A2D\u5B9A<strong>\u9810\u8A2D\u5F71\u7247\u96B1\u79C1</strong>\u70BA<strong>\u516C\u958B</strong>"));}computeDefaultVideoCommentPolicy(){h(this.defaultCommentPolicy)&&(this.addConfig({defaults:{publish:{commentsPolicy:this.defaultCommentPolicy}}}),this.addExplanation("\u9810\u8A2D\u8981\u6C42\u65B0\u5F71\u7247\u7559\u8A00<strong>\u5FC5\u9808\u7372\u5F97\u6838\u51C6</strong>"));}computeP2P(){h(this.p2p)&&(this.addConfig({defaults:{p2p:{embed:{enabled:this.p2p==="enabled"},webapp:{enabled:this.p2p==="enabled"}}}}),this.p2p==="enabled"?this.addExplanation("\u9810\u8A2D\u70BA\u533F\u540D\u8207\u65B0\u4F7F\u7528\u8005<strong>\u555F\u7528 P2P \u4E32\u6D41</strong>"):this.addExplanation("\u9810\u8A2D\u70BA\u533F\u540D\u8207\u65B0\u4F7F\u7528\u8005<strong>\u505C\u7528 P2P \u4E32\u6D41</strong>"));}computeFederation(){h(this.federation)&&(this.addConfig({followers:{instance:{enabled:this.federation==="enabled"},channels:{enabled:this.federation==="enabled"}}}),this.federation==="enabled"?this.addExplanation("<strong>\u5141\u8A31</strong>\u5916\u90E8\u5E73\u53F0/\u4F7F\u7528\u8005<strong>\u8A02\u95B1</strong>\u60A8\u7684\u5167\u5BB9"):this.addExplanation("<strong>\u9632\u6B62</strong>\u5916\u90E8\u5E73\u53F0/\u4F7F\u7528\u8005<strong>\u8A02\u95B1\u60A8\u7684\u5167\u5BB9</strong>"));}computeKeepOriginalVideo(){h(this.keepOriginalVideo)&&(this.addConfig({transcoding:{originalFile:{keep:this.keepOriginalVideo==="enabled"}}}),this.keepOriginalVideo==="enabled"&&this.addExplanation("<strong>\u5132\u5B58</strong>\u5DF2\u4E0A\u50B3\u5F71\u7247\u6A94\u7684\u526F\u672C"));}computeReplaceVideoFile(){h(this.allowReplaceFile)&&(this.addConfig({videoFile:{update:{enabled:this.allowReplaceFile==="enabled"}}}),this.allowReplaceFile==="enabled"&&this.addExplanation("<strong>\u5141\u8A31</strong>\u60A8\u7684\u4F7F\u7528\u8005<strong>\u53D6\u4EE3</strong>\u5DF2\u767C\u4F48\u7684\u5F71\u7247"));}computeMiniatureSettings(){h(this.preferDisplayName)&&this.addConfig({client:{videos:{miniature:{preferAuthorDisplayName:this.preferDisplayName==="enabled"}}}});}computeGlobalSearch(){h(this.globalSearch)&&(this.addConfig({search:{searchIndex:{enabled:this.globalSearch==="enabled",isDefaultSearch:this.globalSearch==="enabled",url:"https://sepiasearch.org"}}}),this.globalSearch==="enabled"&&this.addExplanation("\u5C07 <a href=\"https://sepiasearch.org\" target=\"_blank\">SepiaSearch</a> \u8A2D\u5B9A\u70BA<strong>\u9810\u8A2D\u7684\u641C\u5C0B\u5F15\u64CE</strong>"));}computeTranscription(){h(this.transcription)&&(this.addConfig({videoTranscription:{enabled:this.transcription==="enabled"}}),this.transcription==="enabled"&&this.addExplanation("<strong>\u555F\u7528\u81EA\u52D5\u8F49\u9304</strong>\u4EE5\u88FD\u4F5C\u5F71\u7247\u7684\u5B57\u5E55\u4E26\u6539\u5584\u7121\u969C\u7919\u7A0B\u5EA6"));}computeAuth(){if(!h(this.authType))return;let i="\u5916\u639B\u7A0B\u5F0F<strong>\u5FC5\u9808</strong>\u5728\u9810\u5148\u8A2D\u5B9A\u7CBE\u9748\u78BA\u8A8D\u5F8C\u9032\u884C\u8A2D\u5B9A\u3002";this.authType==="ldap"?(this.addExplanation("\u5B89\u88DD <strong>LDAP</strong> \u9A57\u8B49\u5916\u639B\u7A0B\u5F0F\u3002"+i),this.plugins.push("peertube-plugin-auth-ldap")):this.authType==="saml"?(this.addExplanation("\u5B89\u88DD <strong>SAML 2.0</strong> \u9A57\u8B49\u5916\u639B\u7A0B\u5F0F\u3002"+i),this.plugins.push("peertube-plugin-auth-saml2")):this.authType==="oidc"&&(this.addExplanation("\u5B89\u88DD <strong>OpenID Connect</strong> \u9A57\u8B49\u5916\u639B\u7A0B\u5F0F\u3002"+i),this.plugins.push("peertube-plugin-auth-openid-connect"));}addConfig(i){return this.config=ge(this.config,i);}addExplanation(i){this.unsafeExplanations.push(i);}};var Pt=_=>({"platform-type-selected":_});function ht(_,i){if(_&1&&c(0,"my-community-based-config",35),_&2){let d=N();m("usageType",d.usageType[d.platformType]);}}function Rt(_,i){if(_&1&&c(0,"my-institutional-config",35),_&2){let d=N();m("usageType",d.usageType[d.platformType]);}}function yt(_,i){if(_&1&&c(0,"my-private-instance-config",35),_&2){let d=N();m("usageType",d.usageType[d.platformType]);}}var Nt=(()=>{let i=class i{currentStep=P.required({transform:z});totalSteps=P.required({transform:z});back=I();next=I();hide=I();iconKey=Ct();iconInstitution=ft();platformType;usageType={community:ie.initForCommunity(),institution:ie.initForInstitution(),private:ie.initForPrivateInstance()};};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,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 o;o="\u6B65\u9A5F "+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let t;t="\u4F7F\u7528\u985E\u578B";let e;e="\u6211\u7684\u5E73\u53F0\u6BD4\u8F03\u50CF\u2026\u2026";let l;l="\u793E\u7FA4\u70BA\u672C";let p;p="\u8B93\u793E\u7FA4\u80FD\u5920\u5171\u540C\u767C\u4F48\u5167\u5BB9\u8207\u4E92\u52D5\u3002";let g;g="\u6A5F\u69CB";let A;A="\u64AD\u653E\u60A8\u7684\u5F71\u7247\u3002\u5EFA\u8B70\u516C\u5171\u6A5F\u69CB\u3001\u5354\u6703\u8207\u516C\u53F8\u4F7F\u7528\u3002";let E;E="\u79C1\u5BC6";let x;x="\u50C5\u7279\u5B9A\u7684\u4EBA\u53EF\u4EE5\u5B58\u53D6\u5167\u5BB9\u3002\u5EFA\u8B70\u5BB6\u5EAD\u8207\u5C01\u9589\u793E\u7FA4\u4F7F\u7528\u3002";let k;k="\u4E0A\u4E00\u6B65";let X;X="\u9810\u89BD\u7D44\u614B";let O;return O="\u66AB\u6642\u5FFD\u7565",[o,t,e,l,p,g,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(t,e){t&1&&(r(0,"div",12)(1,"div",13)(2,"div"),c(3,"img",14),n(),r(4,"div")(5,"div",15)(6,"div",16),a(7,0),n()(),r(8,"h4",17),a(9,1),n(),r(10,"div",18),q(11,"You can also edit your platform configuration at a later time"),n()()(),r(12,"div",19),a(13,2),n(),r(14,"div",20)(15,"div",21)(16,"ul",22)(17,"li",23)(18,"input",24),se("ngModelChange",function(p){return le(e.platformType,p)||(e.platformType=p),p;}),n(),r(19,"label",25)(20,"div"),c(21,"my-global-icon",26),n(),r(22,"div")(23,"div",27),a(24,3),n(),r(25,"div",28),a(26,4),n()()()(),r(27,"li",23)(28,"input",29),se("ngModelChange",function(p){return le(e.platformType,p)||(e.platformType=p),p;}),n(),r(29,"label",30)(30,"div"),c(31,"my-custom-icon",31),n(),r(32,"div")(33,"div",27),a(34,5),n(),r(35,"div",28),a(36,6),n()()()(),r(37,"li",23)(38,"input",32),se("ngModelChange",function(p){return le(e.platformType,p)||(e.platformType=p),p;}),n(),r(39,"label",33)(40,"div"),c(41,"my-custom-icon",31),n(),r(42,"div")(43,"div",27),a(44,7),n(),r(45,"div",28),a(46,8),n()()()()()(),r(47,"div",34),L(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),n()(),r(51,"div",36)(52,"my-button",37),M("click",function(){return e.back.emit();}),a(53,9),n(),r(54,"my-button",38),M("click",function(){return e.next.emit(e.usageType[e.platformType]);}),a(55,10),n(),r(56,"button",39),M("click",function(){return e.hide.emit();}),a(57,11),n()()()),t&2&&(s(7),J(e.currentStep())(e.totalSteps()),ee(7),s(8),m("ngClass",re(10,Pt,e.platformType)),s(3),ae("ngModel",e.platformType),s(10),ae("ngModel",e.platformType),s(3),m("unsafeHTML",e.iconInstitution),s(7),ae("ngModel",e.platformType),s(3),m("unsafeHTML",e.iconKey),s(7),w(e.platformType==="community"?48:e.platformType==="institution"?49:e.platformType==="private"?50:-1),s(6),m("disabled",!e.platformType));},dependencies:[ce,me,y,pe,je,b,Be,v,$,D,G,fe,ut,Mt,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}}
/*# sourceMappingURL=admin-config-wizard-form.component-L5IHLCBK.css.map */`,`.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)}
/*# sourceMappingURL=admin-config-wizard-modal-common-QWVLRUK2.css.map */`]}));let _=i;return _;})();function vt(_,i){if(_&1&&c(0,"li",14),_&2){let d=i.$implicit;m("innerHTML",d,we);}}var It=(()=>{let i=class i{adminConfig=C(Se);pluginAPI=C(Te);notifier=C(Me);html=C(Je);server=C(Ce);instanceLogo=C(De);currentStep=P.required({transform:z});totalSteps=P.required({transform:z});usageType=P.required();instanceInfo=P.required();dryRun=P.required({transform:de});back=I();next=I();hide=I();safeExplanations=[];plugins=[];config={};updating=!1;ngOnChanges(){this.usageType()&&(this.safeExplanations=this.usageType().getUnsafeExplanations().map(o=>this.html.toSimpleSafeHtml(o)),this.config=ge({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=!0,this.adminConfig.updateCustomConfig(this.config).pipe(_e(()=>{let o=this.instanceInfo().avatar;return o?this.instanceLogo.updateAvatar(o):this.instanceLogo.deleteAvatar();}),_e(()=>this.server.resetConfig()),_e(()=>ve(this.plugins).pipe(Ge(o=>this.pluginAPI.install(o)),be()))).subscribe({next:()=>{this.updating=!1,this.next.emit();},error:o=>{this.notifier.handleError(o),this.updating=!1;}});}};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,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:[Ve([Se,Te,De]),$e],decls:25,vars:4,consts:()=>{let o;o="\u6B65\u9A5F "+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let t;t="\u7D44\u614B\u9810\u89BD";let e;e="\u82E5\u60A8\u78BA\u8A8D\uFF0CPeerTube \u5C07\u6703\uFF1A";let l;l="\u5982\u679C\u60A8\u60F3\u8981\u66F4\u7CBE\u7D30\u7684\u8A2D\u5B9A\u63A7\u5236\uFF0C\u60A8\u7684\u5E73\u53F0\u7D44\u614B\u53EF\u4EE5\u5728\u9810\u5148\u8A2D\u5B9A\u7CBE\u9748\u4E4B\u5F8C\u8F15\u9B06\u8B8A\u66F4\uFF01";let p;p="\u4E0A\u4E00\u6B65";let g;g="\u78BA\u8A8D\u6B64\u7D44\u614B";let A;return A="\u66AB\u6642\u5FFD\u7565",[o,t,e,l,p,g,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(t,e){t&1&&(r(0,"div",7)(1,"div",8)(2,"div"),c(3,"img",9),n(),r(4,"div")(5,"div",10)(6,"div",11),a(7,0),n()(),r(8,"h4",12),a(9,1),n(),r(10,"div",13)(11,"p"),a(12,2),n(),r(13,"ul"),Ze(14,vt,1,1,"li",14,ze),n(),r(16,"p"),a(17,3),n()()()(),r(18,"div",15)(19,"my-button",16),M("click",function(){return e.back.emit();}),a(20,4),n(),r(21,"my-button",17),M("click",function(){return e.confirm();}),a(22,5),n(),r(23,"button",18),M("click",function(){return e.hide.emit();}),a(24,6),n()()()),t&2&&(s(7),J(e.currentStep())(e.totalSteps()),ee(7),s(7),xe(e.safeExplanations),s(7),m("disabled",e.updating)("loading",e.updating));},dependencies:[y,v,$,D,G],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)}
/*# sourceMappingURL=admin-config-wizard-modal-common-QWVLRUK2.css.map */`]}));let _=i;return _;})();var At=(()=>{let i=class i{back=I();next=I();hide=I();};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,selectors:[["my-admin-config-wizard-welcome"]],outputs:{back:"back",next:"next",hide:"hide"},decls:18,vars:0,consts:()=>{let o;o="\u6B61\u8FCE\u4F7F\u7528 PeerTube";let t;t="\u89AA\u611B\u7684\u7BA1\u7406\u54E1\uFF01";let e;e="\u58A8\u9B5A Sepia \u6709\u5E7E\u500B\u554F\u984C\u53EF\u4EE5\u5354\u52A9\u60A8"+"\uFFFD#10\uFFFD"+"\u5FEB\u901F\u9810\u5148\u8A2D\u5B9A\u60A8\u7684\u5E73\u53F0"+"\uFFFD/#10\uFFFD"+"\u3002";let l;l="\u958B\u59CB\u5427\uFF01";let p;p="\u7A0D\u5F8C\u63D0\u9192\u6211";let g;return g="\u4E0D\u8981\u518D\u6B21\u986F\u793A",[o,t,e,l,p,g,[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(t,e){t&1&&(r(0,"div",6)(1,"div",7),c(2,"img",8),n(),r(3,"h4")(4,"div",9),a(5,0),n(),r(6,"div",10),a(7,1),n()(),r(8,"div",11),H(9,2),c(10,"strong"),K(),n(),r(11,"div",12)(12,"my-button",13),M("click",function(){return e.next.emit();}),a(13,3),n(),r(14,"my-button",14),M("click",function(){return e.hide.emit({doNotOpenAgain:!1});}),a(15,4),n(),r(16,"button",15),M("click",function(){return e.hide.emit({doNotOpenAgain:!0});}),a(17,5),n()()());},dependencies:[y,v,D,G],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)}
/*# sourceMappingURL=admin-config-wizard-modal-common-QWVLRUK2.css.map */`]}));let _=i;return _;})();var bt=["modal"],Gt=["stepper"];function $t(_,i){if(_&1){let d=Q();r(0,"cdk-step",3)(1,"my-admin-config-wizard-welcome",11),M("back",function(){S(d),N();let t=W(2);return T(t.previous());})("next",function(){S(d),N();let t=W(2);return T(t.next());})("hide",function(t){S(d);let e=N(2);return T(e.hide(t));}),n()();}}function Lt(_,i){if(_&1){let d=Q();r(0,"cdk-step",10)(1,"my-admin-config-wizard-documentation",12),M("hide",function(){S(d);let t=N(2);return T(t.hide({doNotOpenAgain:!0}));}),n()();}}function wt(_,i){if(_&1){let d=Q();r(0,"div",2)(1,"my-common-stepper",null,1),L(3,$t,2,0,"cdk-step",3),r(4,"cdk-step",4)(5,"my-admin-config-wizard-edit-info",5),M("back",function(){S(d);let t=W(2);return T(t.previous());})("next",function(t){S(d);let e=W(2),l=N();return l.instanceInfo=t,T(e.next());})("hide",function(){S(d);let t=N();return T(t.hide());}),n()(),r(6,"cdk-step",6)(7,"my-admin-config-wizard-form",7),M("back",function(){S(d);let t=W(2);return T(t.previous());})("next",function(t){S(d);let e=W(2),l=N();return l.usageType=t,T(e.next());})("hide",function(){S(d);let t=N();return T(t.hide());}),n()(),r(8,"cdk-step",8)(9,"my-admin-config-wizard-preview",9),M("back",function(){S(d);let t=W(2);return T(t.previous());})("next",function(){S(d);let t=W(2),e=N();return T(e.showWelcome?t.next():e.hide());})("hide",function(){S(d);let t=N();return T(t.hide());}),n()(),L(10,Lt,2,0,"cdk-step",10),n()();}if(_&2){let d=N();s(3),w(d.showWelcome?3:-1),s(2),m("currentStep",d.currentStep())("showBack",d.showWelcome),s(2),m("currentStep",d.currentStep()),s(2),m("usageType",d.usageType)("instanceInfo",d.instanceInfo)("dryRun",d.dryRun)("currentStep",d.currentStep()),s(),w(d.showWelcome?10:-1);}}var Bo=(()=>{let i=class i{modalService=C(He);userService=C(et);notifier=C(Me);modal=Ae("modal");stepper=Ae("stepper");created=I();usageType;instanceInfo;showWelcome;dryRun;modalRef;ngOnInit(){this.created.emit();}shouldAutoOpen(o){return this.modalService.hasOpenModals()?!1:this.getFragment()==="#admin-welcome-wizard"||this.getFragment()==="#admin-welcome-wizard-test"?!0:!(o.noWelcomeModal===!0||Oe.getItem(Ee())==="true");}show({showWelcome:o}){this.showWelcome=o,this.dryRun=this.getFragment()==="#admin-welcome-wizard-test",this.modalRef=this.modalService.open(this.modal(),{centered:!0,backdrop:"static",keyboard:!1,size:"lg"});}currentStep(){if(!this.stepper())return 0;let o=this.stepper().selectedIndex;return this.showWelcome?o:o+1;}totalSteps(){if(!this.stepper())return 0;let o=this.stepper().steps.length;return this.showWelcome?o-1:o;}hide(o={}){let{doNotOpenAgain:t=!1}=o;t&&this.doNotOpenAgain(),this.modalRef.close();}doNotOpenAgain(){Oe.setItem(Ee(),"true"),this.userService.updateMyProfile({noWelcomeModal:!0}).subscribe({next:()=>ue.info("We will not open the welcome modal again."),error:o=>this.notifier.handleError(o)});}getFragment(){return window.location.hash;}};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,selectors:[["my-admin-config-wizard-modal"]],viewQuery:function(t,e){t&1&&Xe(e.modal,bt,5)(e.stepper,Gt,5),t&2&&Ue(2);},outputs:{created:"created"},decls:2,vars:0,consts:()=>{let o;o="\u6B61\u8FCE\u4ECB\u7D39";let t;t="\u7DE8\u8F2F\u4E00\u822C\u8CC7\u8A0A";let e;e="\u4F7F\u7528\u985E\u578B";let l;l="\u7D44\u614B\u9810\u89BD";let p;return p="\u5F8C\u7D44\u614B\u6587\u4EF6",[["modal",""],["stepper",""],[1,"modal-body"],["label",o],["label",t],["totalSteps","3",3,"back","next","hide","currentStep","showBack"],["label",e],["totalSteps","3",3,"back","next","hide","currentStep"],["label",l],["totalSteps","3",3,"back","next","hide","usageType","instanceInfo","dryRun","currentStep"],["label",p],[3,"back","next","hide"],[3,"hide"]];},template:function(t,e){t&1&&We(0,wt,11,9,"ng-template",null,0,Ye);},dependencies:[D,nt,ot,At,ct,Nt,It,dt],styles:[`.modal-body[_ngcontent-%COMP%]{padding:2rem 3rem}
/*# sourceMappingURL=admin-config-wizard-modal.component-7M3OGGTO.css.map */`]}));let _=i;return _;})();export{Bo as AdminConfigWizardModalComponent};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*///# sourceMappingURL=chunk-TECT7A45.js.map