import{a as st,b as Re,e as D}from"./chunk-E2NYINBH.js";import"./chunk-EF7DPOYH.js";import{a as Oe,b as mt,r as ct,s as b,t as pt,v as ye,w as ve,x as be}from"./chunk-O4FLTMC5.js";import{a as dt}from"./chunk-4TCLFIW5.js";import"./chunk-ODMRQGW3.js";import"./chunk-LW6EJSDY.js";import"./chunk-QU7DO36U.js";import"./chunk-KPYZFN3G.js";import"./chunk-47MARKKM.js";import"./chunk-AFQOAXOF.js";import{A as re}from"./chunk-74PB44RO.js";import"./chunk-2VIKQKFK.js";import"./chunk-PPCIMEI5.js";import{b as $}from"./chunk-LCBJQMGS.js";import{c as L}from"./chunk-3BLHHGXR.js";import"./chunk-WVXLVXI4.js";import{u as rt}from"./chunk-CFJ5N37G.js";import{a as Ae}from"./chunk-XJZQBBLJ.js";import{C as y,D as v,c as ge,g as G,h as U,n as tt,o as Y,q as nt,r as B,u as j}from"./chunk-LNGYW555.js";import{$a as z,Aa as s,Bb as A,C as ze,D as Ze,Dc as te,E as xe,Fc as pe,Gc as x,Ge as it,Jb as Fe,Ka as f,Kb as Ke,Lb as Z,Le as h,Oa as Ye,Oc as ue,Q as Ee,Qa as Be,Qb as q,Qh as ie,Rb as Pe,Sc as et,Wb as se,Xb as me,Yb as de,Zc as ne,_a as W,aa as M,bb as je,cb as qe,cc as ce,db as Qe,de as ot,eb as c,ec as le,ei as at,fa as S,fb as r,ga as T,gb as o,hb as d,i as We,ji as lt,ki as Ie,mf as Me,oa as ke,oe,of as Ce,pa as Xe,ph as Ne,qc as Je,qh as _t,ra as Ve,rb as Q,tb as H,ub as K,vb as a,wa as Ue,wb as J,xb as ee,xc as N,xf as fe,yb as He,yc as P,zb as C,zc as he}from"./chunk-O5L4E6JZ.js";import{a as ae,b as De,e as we,i as u}from"./chunk-ISBQGYOJ.js";var St=we((oo,yt)=>{yt.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 Tt=we((io,vt)=>{vt.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>
`;});var gt=(()=>{let i=class i extends Re{};u(i,"\u0275fac",(()=>{let n;return function(e){return(n||(n=Xe(i)))(e||i);};})()),u(i,"\u0275cmp",f({type:i,selectors:[["my-admin-config-wizard-stepper"]],features:[ce([{provide:Re,useExisting:i}]),Ye],decls:2,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(t,e){t&1&&(r(0,"div"),d(1,"div",0),o()),t&2&&(s(),c("ngTemplateOutlet",e.selected?e.selected.content:null));},dependencies:[ne,et],encapsulation:2}));let _=i;return _;})();function Se(){return"no_welcome_modal";}var Mt=(()=>{let i=class i{hide=N();};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 n;n="\u304A\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307E\u3059";let t;t="\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u304C\u69CB\u6210\u3055\u308C\u307E\u3057\u305F\uFF01";let e;e="\u3042\u306A\u305F\u306E\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306B\u95A2\u3059\u308B\u60C5\u5831\u3092\u8FFD\u52A0\u3057\u307E\u3057\u3087\u3046\uFF01 "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u8AAC\u660E\u3092\u8A2D\u5B9A"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\u3057\u3001 "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u904B\u55B6\u8005\u306F\u8AB0\u306A\u306E\u304B"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\u3001\u306A\u305C "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3092\u4F5C\u3063\u305F\u306E\u304B"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\u3001"+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u3069\u306E\u3050\u3089\u3044\u306E\u671F\u9593\u3001"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+" \u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3092 "+"[\uFFFD#12\uFFFD|\uFFFD#13\uFFFD|\uFFFD#14\uFFFD|\uFFFD#15\uFFFD|\uFFFD#16\uFFFD]"+"\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9"+"[\uFFFD/#12\uFFFD|\uFFFD/#13\uFFFD|\uFFFD/#14\uFFFD|\uFFFD/#15\uFFFD|\uFFFD/#16\uFFFD]"+"\u3057\u3066\u3044\u304F\u3064\u3082\u308A\u306A\u306E\u304B\u306A\u3069\u3001\u8A2A\u554F\u8005\u304C\u3042\u306A\u305F\u306E\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3092\u7406\u89E3\u3059\u308B\u305F\u3081\u306B\u5FC5\u8981\u306A\u60C5\u5831\u3092\u8A2D\u5B9A\u3057\u307E\u3059\u3002 ",e=He(e);let l;l="\u4FBF\u5229\u306A\u30EA\u30F3\u30AF\u96C6";let p;p="PeerTube\u516C\u5F0FWeb\u30B5\u30A4\u30C8:";let g;g="\u30D6\u30ED\u30B0\u8A18\u4E8B\u3001PeerTube\u306B\u3064\u3044\u3066\u77E5\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059";let I;I="PeerTube\u306E\u516C\u958B\u30A4\u30F3\u30C7\u30C3\u30AF\u30B9:";let E;E="\u3053\u306E\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3092PeerTube\u306E\u516C\u5F0F\u516C\u958B\u30A4\u30F3\u30C7\u30C3\u30AF\u30B9\u306B\u767B\u9332\u3059\u308B";let k;k="\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8";let X;X="\u7BA1\u7406\u8005:";let V;V="\u30E6\u30FC\u30B6\u30FC\u306E\u7BA1\u7406\u3001\u4ED6\u306E\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3092\u30D5\u30A9\u30ED\u30FC\u3001\u30B9\u30D1\u30E0\u5BFE\u7B56\u3001\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u30B9\u30C8\u30EC\u30FC\u30B8\u3084\u30EA\u30E2\u30FC\u30C8\u30C8\u30E9\u30F3\u30B9\u30B3\u30FC\u30C7\u30A3\u30F3\u30B0\u306E\u69CB\u6210\u3092\u304A\u3053\u306A\u3044\u307E\u3059...";let O;O="\u3042\u306A\u305F\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u8A2D\u5B9A\u3059\u308B\u3001\u52D5\u753B\u306E\u30D7\u30EC\u30A4\u30EA\u30B9\u30C8\u3092\u7BA1\u7406\u3059\u308B\u3001\u30B5\u30FC\u30C9\u30D1\u30FC\u30C6\u30A3\u30FC\u306E\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u63A2\u3059...";let R;R="CLI:";let Ge;Ge="\u52D5\u753B\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u307E\u305F\u306F\u30A4\u30F3\u30DD\u30FC\u30C8\u3001\u30ED\u30B0\u89E3\u6790\u3001\u30B9\u30C8\u30EC\u30FC\u30B8\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306E\u524A\u9664\u3001\u30E6\u30FC\u30B6\u30FC\u306E\u30D1\u30B9\u30EF\u30FC\u30C9\u30EA\u30BB\u30C3\u30C8\u306A\u3069...";let $e;$e="\u9589\u3058\u308B";let Le;return Le="\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u60C5\u5831\u3092\u57CB\u3081\u3066\u304F\u3060\u3055\u3044",[n,t,e,l,p,g,I,E,k,X,V,O,R,Ge,$e,Le,[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),d(3,"img",19),o(),r(4,"h4")(5,"div",20),a(6,0),o(),r(7,"div",21),a(8,1),o()()(),r(9,"div",22)(10,"span",23),H(11,2),d(12,"strong")(13,"strong")(14,"strong")(15,"strong")(16,"strong"),K(),o()(),r(17,"div",22)(18,"h5"),a(19,3),o(),r(20,"ul",23)(21,"li")(22,"a",24),a(23,4),o(),r(24,"span"),a(25,5),o()(),r(26,"li")(27,"a",25),a(28,6),o(),r(29,"span"),a(30,7),o()()()(),r(31,"div",22)(32,"h5"),a(33,8),o(),r(34,"ul",23)(35,"li")(36,"a",26),a(37,9),o(),r(38,"span"),a(39,10),o()(),r(40,"li")(41,"a",27),q(42,"User:"),o(),r(43,"span"),a(44,11),o()(),r(45,"li")(46,"a",28),a(47,12),o(),r(48,"span"),a(49,13),o()()()(),r(50,"div",29)(51,"my-button",30),C("click",function(){return e.hide.emit();}),a(52,14),o(),r(53,"my-button",31),C("click",function(){return e.hide.emit();}),a(54,15),o()()());},dependencies:[L],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);gap:calc(1.275rem + .3vw)}@media (min-width: 1200px){.buttons[_ngcontent-%COMP%]{margin-top:2.5rem}}@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-TG2MVLVA.css.map */`]}));let _=i;return _;})();var Ct=_=>({"input-error":_});function Pt(_,i){if(_&1&&(r(0,"div",22),q(1),o()),_&2){let m=A();s(),Pe(m.formErrors.platformName);}}function ht(_,i){if(_&1&&(r(0,"div",22),q(1),o()),_&2){let m=A();s(),Pe(m.formErrors.shortDescription);}}function Rt(_,i){if(_&1){let m=Q();r(0,"my-button",34),C("click",function(){S(m);let t=A();return T(t.back.emit());}),a(1,10),o();}}var ft=(()=>{let i=class i{server=M(ie);formReactiveService=M($);themeService=M(Ie);currentStep=P.required({transform:x});totalSteps=P.required({transform:x});showBack=P.required({transform:pe});back=N();next=N();hide=N();form;formErrors={};validationMessages={};ngOnInit(){this.buildForm();let n=it(this.server.getHTMLConfig().instance.avatars,128);n&&fetch(n.fileUrl).then(t=>t.blob()).then(t=>this.form.patchValue({avatar:t})).catch(()=>{Ce.error("Could not fetch instance avatar");});}buildForm(){let n={platformName:Oe,shortDescription:mt,avatar:null,primaryColor:null},{form:t,formErrors:e,validationMessages:l}=this.formReactiveService.buildForm(n,this.getDefaultValues());this.form=t,this.formErrors=e,this.validationMessages=l;}getDefaultValues(){let n=this.server.getHTMLConfig(),t=n.theme.customization.primaryColor,e=t?this.themeService.formatColorForForm(t):this.themeService.formatColorForForm(this.themeService.getCSSConfigValue("primaryColor"));return{platformName:n.instance.name,shortDescription:n.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:13,consts:()=>{let n;n="\u30B9\u30C6\u30C3\u30D7"+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let t;t="\u4E00\u822C\u7684\u306A\u60C5\u5831";let e;e="\u3053\u306E\u60C5\u5831\u306F\u5F8C\u3067\u7DE8\u96C6\u3067\u304D\u307E\u3059";let l;l="\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u540D";let p;p="\u7C21\u5358\u306A\u8AAC\u660E";let g;g="\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u30A2\u30A4\u30B3\u30F3";let I;I="Web\u30B5\u30A4\u30C8\u3001\u30E2\u30D0\u30A4\u30EB\u30A2\u30D7\u30EA\u3001SNS\u4E0A\u306A\u3069\u3001\u69D8\u3005\u306A\u5834\u6240\u3067\u4F7F\u7528\u3055\u308C\u307E\u3059";let E;E="\u30E1\u30A4\u30F3\u8272";let k;k="\u6B21\u306B\u9032\u3080";let X;X="\u4ECA\u306F\u3057\u306A\u3044";let V;return V="\u623B\u308B",[n,t,e,l,p,g,I,E,k,X,V,[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"],["for","primaryColor"],["inputId","primaryColor","formControlName","primaryColor",1,"d-block"],[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"),d(3,"img",13),o(),r(4,"div")(5,"div",14)(6,"div",15),a(7,0),o()(),r(8,"h4",16),a(9,1),o(),r(10,"div",17),a(11,2),o(),r(12,"form",18)(13,"div",19)(14,"label",20),a(15,3),o(),d(16,"input",21),W(17,Pt,2,1,"div",22),o(),r(18,"div",19)(19,"label",23),a(20,4),o(),d(21,"textarea",24),W(22,ht,2,1,"div",22),o(),r(23,"div",19)(24,"label",25),a(25,5),o(),r(26,"div",26),a(27,6),o(),d(28,"my-preview-upload",27),o(),r(29,"div",19)(30,"label",28),a(31,7),o(),d(32,"p-colorpicker",29),o(),r(33,"div",30),W(34,Rt,2,0,"my-button",31),r(35,"my-button",32),C("click",function(){return e.next.emit(e.form.value);}),a(36,8),o(),r(37,"button",33),C("click",function(){return e.hide.emit();}),a(38,9),o()()()()()()),t&2&&(s(7),J(e.currentStep())(e.totalSteps()),ee(7),s(5),c("formGroup",e.form),s(4),c("ngClass",le(9,Ct,e.formErrors.platformName)),s(),z(e.formErrors.platformName?17:-1),s(4),c("ngClass",le(11,Ct,e.formErrors.shortDescription)),s(),z(e.formErrors.shortDescription?22:-1),s(12),z(e.showBack()?34:-1),s(),c("disabled",!e.form.valid));},dependencies:[ne,ue,y,Y,ge,G,U,v,B,j,b,ct,D,L,dt],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-4TU26BTH.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);gap:calc(1.275rem + .3vw)}@media (min-width: 1200px){.buttons[_ngcontent-%COMP%]{margin-top:2.5rem}}@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-TG2MVLVA.css.map */`]}));let _=i;return _;})();var Nt=(()=>{let i=class i{formReactiveService=M($);usageType=te.required();form;formErrors={};validationMessages={};registrationOptions=[{id:"open",label:"\u30AA\u30FC\u30D7\u30F3",description:"\u8AB0\u3067\u3082\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u767B\u9332\u3057\u3066\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3092\u5229\u7528\u3067\u304D\u307E\u3059"},{id:"approval",label:"\u627F\u8A8D\u304C\u5FC5\u8981",description:"\u8AB0\u3067\u3082\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u767B\u9332\u51FA\u6765\u307E\u3059\u304C\u3001\u5229\u7528\u306B\u306F\u30E2\u30C7\u30EC\u30FC\u30BF\u30FC\u306B\u3088\u308B\u627F\u8A8D\u304C\u5FC5\u8981\u3067\u3059"},{id:"closed",label:"\u30AF\u30ED\u30FC\u30BA\u30C9",description:"\u7BA1\u7406\u8005\u306E\u307F\u304C\u30E6\u30FC\u30B6\u30FC\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059"}];importOptions=[{id:"enabled",label:"\u6709\u52B9",description:"Your community can import videos from remote platforms (YouTube, Vimeo...) and automatically synchronize remote channels"},{id:"disabled",label:"\u7121\u52B9",description:"\u3042\u306A\u305F\u306E\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306F\u30EA\u30E2\u30FC\u30C8\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u304B\u3089\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u30A4\u30F3\u30DD\u30FC\u30C8\u3057\u305F\u308A\u540C\u671F\u3057\u305F\u308A\u3067\u304D\u307E\u305B\u3093"}];liveOptions=[{id:"enabled",label:"\u306F\u3044",description:"\u3042\u306A\u305F\u306E\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306F\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u4E0A\u3067\u30E9\u30A4\u30D6\u914D\u4FE1\u3067\u304D\u307E\u3059\uFF08\u8FFD\u52A0\u306E\u30E2\u30C7\u30EC\u30FC\u30B7\u30E7\u30F3\u3092\u53D7\u3051\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\uFF09"},{id:"disabled",label:"\u3044\u3044\u3048",description:"\u3042\u306A\u305F\u306E\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306F\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u4E0A\u3067\u30E9\u30A4\u30D6\u914D\u4FE1\u3092\u884C\u3046\u3053\u3068\u306F\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093"}];globalSearchOptions=[{id:"enabled",label:"\u30B0\u30ED\u30FC\u30D0\u30EB\u691C\u7D22\u3092\u6709\u52B9\u306B\u3059\u308B",description:"\u65E2\u77E5\u306E\u3059\u3079\u3066\u306EPeerTube\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u691C\u7D22\u3059\u308B\u305F\u3081\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u691C\u7D22\u30A8\u30F3\u30B8\u30F3\u3068\u3057\u3066 https://sepiasearch.org \u3092\u4F7F\u7528\u3059\u308B"},{id:"disabled",label:"\u30B0\u30ED\u30FC\u30D0\u30EB\u691C\u7D22\u3092\u7121\u52B9\u306B\u3059\u308B",description:"\u30ED\u30FC\u30AB\u30EB\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u307F\u3092\u8868\u793A\u3059\u308B\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u691C\u7D22\u30A8\u30F3\u30B8\u30F3\u3092\u4F7F\u7528\u3059\u308B"}];videoQuotaOptions=pt();ngOnInit(){this.buildForm(),this.form.valueChanges.subscribe(n=>{this.usageType().patch(n);});}buildForm(){let n={registration:null,remoteImport:null,videoQuota:null,live:null,globalSearch:null},{form:t,formErrors:e,validationMessages:l}=this.formReactiveService.buildForm(n,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 n;n="\u767B\u9332\u30DD\u30EA\u30B7\u30FC";let t;t="\u65B0\u898F\u30E6\u30FC\u30B6\u30FC\u5411\u3051\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u53EF\u80FD\u5BB9\u91CF";let e;e="\u52D5\u753B\u30A4\u30F3\u30DD\u30FC\u30C8\u3068\u540C\u671F";let l;l="\u3053\u306E\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u3067\u30E9\u30A4\u30D6\u914D\u4FE1\u3092\u53EF\u80FD\u306B\u3059\u308B";let p;return p="\u691C\u7D22",[n,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),o(),d(4,"my-select-options",8),o(),r(5,"div",6)(6,"label",7),a(7,1),o(),d(8,"my-select-options",9),o(),r(9,"div",6)(10,"label",10),a(11,2),o(),d(12,"my-select-options",11),o(),r(13,"div",6)(14,"label",7),a(15,3),o(),d(16,"my-select-options",12),o(),r(17,"div",6)(18,"label",7),a(19,4),o(),d(20,"my-select-options",13),o()()),t&2&&(c("formGroup",e.form),s(4),c("items",e.registrationOptions),s(4),c("items",e.videoQuotaOptions),s(4),c("items",e.importOptions),s(4),c("items",e.liveOptions),s(4),c("items",e.globalSearchOptions));},dependencies:[y,Y,G,U,v,B,j,b,D,re],encapsulation:2}));let _=i;return _;})();var It=(()=>{let i=class i{formReactiveService=M($);usageType=te.required();form;formErrors={};validationMessages={};p2pOptions=[{id:"enabled",label:"\u6709\u52B9",description:"\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u533F\u540D\u304A\u3088\u3073\u65B0\u898F\u30E6\u30FC\u30B6\u30FC\u306BP2P\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u3092\u6709\u52B9\u306B\u3059\u308B"},{id:"disabled",label:"\u7121\u52B9",description:"P2P\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u3092\u7121\u52B9\u306B\u3059\u308B"}];transcriptionOptions=[{id:"enabled",label:"\u6709\u52B9",description:"\u52D5\u753B\u306E\u81EA\u52D5\u6587\u5B57\u8D77\u3053\u3057\u3092\u6709\u52B9\u306B\u3057\u3066\u3001\u81EA\u52D5\u7684\u306B\u5B57\u5E55\u3092\u751F\u6210\u3057\u307E\u3059"},{id:"disabled",label:"\u7121\u52B9",description:"\u52D5\u753B\u306E\u81EA\u52D5\u6587\u5B57\u8D77\u3053\u3057\u3092\u7121\u52B9\u306B\u3059\u308B"}];keepOriginalVideoOptions=[{id:"enabled",label:"\u306F\u3044",description:"\u30B5\u30FC\u30D0\u30FC\u4E0A\u306B\u52D5\u753B\u306E\u30AA\u30EA\u30B8\u30CA\u30EB\u3092\u4FDD\u6301\u3059\u308B"},{id:"disabled",label:"\u3044\u3044\u3048",description:"\u52D5\u753B\u306E\u51E6\u7406\u5B8C\u4E86\u5F8C\u306B\u52D5\u753B\u306E\u30AA\u30EA\u30B8\u30CA\u30EB\u3092\u524A\u9664\u3059\u308B"}];authenticationOptions=[{id:"local",label:"\u7121\u52B9",description:"\u3042\u306A\u305F\u306E\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306F\u3001\u30E6\u30FC\u30B6\u30FC\u767B\u9332\u3068\u30ED\u30B0\u30A4\u30F3\u3092\u5185\u90E8\u3067\u7BA1\u7406\u3059\u308B\u3088\u3046\u306B\u306A\u308A\u307E\u3059"},{id:"ldap",label:"LDAP\u8A8D\u8A3C",description:"\u30E6\u30FC\u30B6\u30FC\u8A8D\u8A3C\u306BLDAP\u8A8D\u8A3C\u3092\u4F7F\u7528\u3059\u308B"},{id:"oidc",label:"OIDC\u8A8D\u8A3C",description:"\u30E6\u30FC\u30B6\u30FC\u8A8D\u8A3C\u306BOpenID Connect\u8A8D\u8A3C\u3092\u4F7F\u7528\u3059\u308B"},{id:"saml",label:"SAML\u8A8D\u8A3C",description:"\u30E6\u30FC\u30B6\u30FC\u8A8D\u8A3C\u306BSAML 2.0\u8A8D\u8A3C\u3092\u4F7F\u7528\u3059\u308B"}];ngOnInit(){this.buildForm(),this.form.valueChanges.subscribe(n=>{this.usageType().patch(n);});}buildForm(){let n={keepOriginalVideo:null,p2p:null,transcription:null,authType:null},{form:t,formErrors:e,validationMessages:l}=this.formReactiveService.buildForm(n,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 n;n="\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3055\u308C\u305F\u52D5\u753B\u306E\u30B3\u30D4\u30FC\u3092\u4FDD\u5B58\u3059\u308B";let t;t="P2P\u6A5F\u80FD";let e;e=" Helps your platform to distribute video content, but "+"\uFFFD#10\uFFFD"+"decreases privacy "+"\uFFFD#11\uFFFD"+""+"\uFFFD/#11\uFFFD"+""+"\uFFFD/#10\uFFFD"+" of your users ";let l;l="\u52D5\u753B\u306E\u6587\u5B57\u8D77\u3053\u3057";let p;return p="\u30EA\u30E2\u30FC\u30C8\u8A8D\u8A3C",[n,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),o(),d(4,"my-select-options",8),o(),r(5,"div",6)(6,"label",9),a(7,1),o(),r(8,"div",10),H(9,2),r(10,"a",11),d(11,"my-global-icon",12),o(),K(),o(),d(12,"my-select-options",13),o(),r(13,"div",6)(14,"label",14),a(15,3),o(),d(16,"my-select-options",15),o(),r(17,"div",6)(18,"label",16),a(19,4),o(),d(20,"my-select-options",17),o()()),t&2&&(c("formGroup",e.form),s(4),c("items",e.keepOriginalVideoOptions),s(8),c("items",e.p2pOptions),s(4),c("items",e.transcriptionOptions),s(4),c("items",e.authenticationOptions));},dependencies:[y,Y,G,U,v,B,j,b,D,re,Ae],encapsulation:2}));let _=i;return _;})();var At=(()=>{let i=class i{formReactiveService=M($);usageType=te.required();form;formErrors={};validationMessages={};importOptions=[{id:"enabled",label:"\u6709\u52B9",description:"\u30E6\u30FC\u30B6\u30FC\u306B\u5BFE\u3057\u3001\u5916\u90E8\u306E\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0(YouTube, Vimeo\u306A\u3069)\u304B\u3089\u52D5\u753B\u3092\u30A4\u30F3\u30DD\u30FC\u30C8\u3001\u5916\u90E8\u306E\u30C1\u30E3\u30F3\u30CD\u30EB\u304B\u3089\u81EA\u52D5\u7684\u306B\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u540C\u671F\u3092\u53EF\u80FD\u306B\u3057\u307E\u3059"},{id:"disabled",label:"\u7121\u52B9",description:"\u52D5\u753B\u306E\u30A4\u30F3\u30DD\u30FC\u30C8\u3068\u30C1\u30E3\u30F3\u30CD\u30EB\u540C\u671F\u3092\u7121\u52B9\u306B\u3059\u308B"}];liveOptions=[{id:"enabled",label:"\u306F\u3044"},{id:"disabled",label:"\u3044\u3044\u3048"}];keepOriginalVideoOptions=[{id:"enabled",label:"\u306F\u3044",description:"\u30B5\u30FC\u30D0\u30FC\u4E0A\u306B\u52D5\u753B\u306E\u30AA\u30EA\u30B8\u30CA\u30EB\u3092\u4FDD\u6301\u3059\u308B"},{id:"disabled",label:"\u3044\u3044\u3048",description:"\u52D5\u753B\u306E\u51E6\u7406\u5B8C\u4E86\u5F8C\u306B\u52D5\u753B\u306E\u30AA\u30EA\u30B8\u30CA\u30EB\u3092\u524A\u9664\u3059\u308B"}];ngOnInit(){this.buildForm(),this.form.valueChanges.subscribe(n=>{this.usageType().patch(n);});}buildForm(){let n={remoteImport:null,live:null,keepOriginalVideo:null},{form:t,formErrors:e,validationMessages:l}=this.formReactiveService.buildForm(n,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 n;n="\u52D5\u753B\u30A4\u30F3\u30DD\u30FC\u30C8\u3068\u540C\u671F";let t;t="\u30E6\u30FC\u30B6\u30FC\u306F\u30E9\u30A4\u30D6\u914D\u4FE1\u304C\u53EF\u80FD";let e;return e="\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3055\u308C\u305F\u52D5\u753B\u306E\u30B3\u30D4\u30FC\u3092\u4FDD\u5B58\u3059\u308B",[n,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),o(),d(4,"my-select-options",6),o(),r(5,"div",4)(6,"label",7),a(7,1),o(),d(8,"my-select-options",8),o(),r(9,"div",4)(10,"label",9),a(11,2),o(),d(12,"my-select-options",10),o()()),t&2&&(c("formGroup",e.form),s(4),c("items",e.importOptions),s(4),c("items",e.liveOptions),s(4),c("items",e.keepOriginalVideoOptions));},dependencies:[y,Y,G,U,v,B,j,b,D,re],encapsulation:2}));let _=i;return _;})();var _e=class _{registration;videoQuota;remoteImport;live;globalSearch;defaultPrivacy;defaultCommentPolicy;p2p;federation;keepOriginalVideo;allowReplaceFile;preferDisplayName;transcription;authType;unsafeExplanations=[];config={};plugins=[];constructor(i){for(let[m,n]of Object.entries(i))this[m]=n;}static initForCommunity(){let i=new _({registration:"approval",remoteImport:"disabled",live:"enabled",videoQuota:5368709120,globalSearch:"enabled",defaultPrivacy:oe.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:oe.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:oe.PUBLIC,p2p:"disabled",keepOriginalVideo:"enabled",allowReplaceFile:"enabled",preferDisplayName:"enabled",authType:"local",transcription:"enabled",defaultCommentPolicy:ot.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 ae({},this.config);}getPlugins(){return[...this.plugins];}patch(i){for(let[m,n]of Object.entries(i))this[m]=n;this.compute();}computeRegistration(){h(this.registration)&&(this.registration==="open"?(this.addExplanation("<strong>\u8AB0\u3067\u3082</strong> \u30E6\u30FC\u30B6\u30FC\u767B\u9332 <strong>\u53EF\u80FD</strong>"),this.addConfig({signup:{enabled:!0,requiresApproval:!1}})):this.registration==="approval"?(this.addExplanation("\u3053\u306E\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306F\u3001\u30E6\u30FC\u30B6\u30FC\u306E<strong>\u767B\u9332\u304C\u53EF\u80FD</strong>"),this.addConfig({signup:{enabled:!0,requiresApproval:!0}})):this.registration==="closed"&&(this.addExplanation("<strong>\u30E6\u30FC\u30B6\u30FC\u767B\u9332</strong> \u306F <strong>\u7121\u52B9</strong>"),this.addConfig({signup:{enabled:!1}})),(this.registration==="approval"||this.registration==="open")&&(this.addExplanation("\u52D5\u753B\u306E\u516C\u958B\u306B\u306F\u3001<strong>\u30E2\u30C7\u30EC\u30FC\u30BF\u30FC\u306E\u627F\u8A8D</strong>\u304C\u5FC5\u8981"),this.addConfig({autoBlacklist:{videos:{ofUsers:{enabled:!0}}}})));}computeVideoQuota(){h(this.videoQuota)&&(this.addConfig({user:{videoQuota:this.videoQuota}}),this.videoQuota===0?this.addExplanation("\u65B0\u898F\u30E6\u30FC\u30B6\u30FC\u306E<strong>\u52D5\u753B\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9</strong> \u306F <strong>\u7121\u52B9</strong> (\u30E2\u30C7\u30EC\u30FC\u30BF\u30FC\u306B\u3088\u308A\u5909\u66F4\u53EF\u80FD)"):this.videoQuota===-1?this.addExplanation("\u65B0\u898F\u30E6\u30FC\u30B6\u30FC\u306E<strong>\u52D5\u753B\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u6570\u306B\u5236\u9650\u306F\u3042\u308A\u307E\u305B\u3093</strong>"):this.addExplanation("\u65B0\u898F\u30E6\u30FC\u30B6\u30FC\u306E<strong>\u52D5\u753B\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u5BB9\u91CF\u306F"+_t(this.videoQuota,0)+"</strong>(\u30E2\u30C7\u30EC\u30FC\u30BF\u30FC\u306B\u3088\u308A\u5909\u66F4\u53EF\u80FD)"));}computeVideoImport(){h(this.remoteImport)&&(this.addConfig({import:{videos:{http:{enabled:this.remoteImport==="enabled"}},videoChannelSynchronization:{enabled:this.remoteImport==="enabled"}}}),this.remoteImport==="enabled"?this.addExplanation("\u65B0\u898F\u30E6\u30FC\u30B6\u30FC\u306F\u3001\u5916\u90E8\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u304B\u3089\u52D5\u753B\u3068\u30C1\u30E3\u30F3\u30CD\u30EB\u306E<strong>\u30A4\u30F3\u30DD\u30FC\u30C8\u3068\u540C\u671F</strong>\u304C <strong>\u53EF\u80FD</strong>"):this.addExplanation("\u5916\u90E8\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u304B\u3089\u52D5\u753B\u306E<strong></strong> \u30A4\u30F3\u30DD\u30FC\u30C8 <strong>\u4E0D\u53EF</strong>"));}computeStreamLives(){h(this.live)&&(this.addConfig({live:{enabled:this.live==="enabled"}}),this.live==="enabled"?(this.plugins.push("peertube-plugin-livechat"),this.addExplanation("\u30E6\u30FC\u30B6\u30FC\u306F<strong>\u30E9\u30A4\u30D6\u914D\u4FE1</strong> \u304C <strong>\u53EF\u80FD</strong> \u3067\u3001<strong>\u30E9\u30A4\u30D6\u30C1\u30E3\u30C3\u30C8</strong>\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u4F7F\u7528\u3057\u3066\u8996\u8074\u8005\u3068\u4EA4\u6D41\u53EF\u80FD")):this.addExplanation("\u30E6\u30FC\u30B6\u30FC\u306F<strong>\u30E9\u30A4\u30D6\u914D\u4FE1</strong>\u306F<strong>\u4E0D\u53EF\u80FD</strong>"));}computeDefaultVideoPrivacy(){h(this.defaultPrivacy)&&(this.addConfig({defaults:{publish:{privacy:this.defaultPrivacy}}}),this.defaultPrivacy===oe.INTERNAL?this.addExplanation("<strong>\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u52D5\u753B\u30D7\u30E9\u30A4\u30D0\u30B7\u30FC\u8A2D\u5B9A</strong> \u306F <strong>\u975E\u516C\u958B</strong>\u306B\u8A2D\u5B9A"):this.defaultPrivacy===oe.PUBLIC&&this.addExplanation("<strong>\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u52D5\u753B\u30D7\u30E9\u30A4\u30D0\u30B7\u30FC\u8A2D\u5B9A</strong> \u306F <strong>\u516C\u958B</strong>\u306B\u8A2D\u5B9A"));}computeDefaultVideoCommentPolicy(){h(this.defaultCommentPolicy)&&(this.addConfig({defaults:{publish:{commentsPolicy:this.defaultCommentPolicy}}}),this.addExplanation("\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u65B0\u898F\u52D5\u753B\u3078\u306E\u30B3\u30E1\u30F3\u30C8\u306F<strong>\u627F\u8A8D\u304C\u5FC5\u8981</strong>"));}computeP2P(){h(this.p2p)&&(this.addConfig({defaults:{p2p:{embed:{enabled:this.p2p==="enabled"},webapp:{enabled:this.p2p==="enabled"}}}}),this.p2p==="enabled"?this.addExplanation("\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u3001\u533F\u540D\u304A\u3088\u3073\u65B0\u898F\u30E6\u30FC\u30B6\u30FC\u3078\u306E<strong>P2P\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u3092\u6709\u52B9</strong>\u306B\u3059\u308B"):this.addExplanation("\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u3001\u533F\u540D\u304A\u3088\u3073\u65B0\u898F\u30E6\u30FC\u30B6\u30FC\u3078\u306E<strong>P2P\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u3092\u7121\u52B9</strong>\u306B\u3059\u308B"));}computeFederation(){h(this.federation)&&(this.addConfig({followers:{instance:{enabled:this.federation==="enabled"},channels:{enabled:this.federation==="enabled"}}}),this.federation==="enabled"?this.addExplanation("\u3042\u306A\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u306B\u5BFE\u3059\u308B\u5916\u90E8\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0/\u30E6\u30FC\u30B6\u30FC\u304B\u3089\u306E<strong>\u8CFC\u8AAD</strong> \u3092 <strong>\u8A31\u53EF</strong>"):this.addExplanation("\u3042\u306A\u305F\u30B3\u30F3\u30C6\u30F3\u30C4\u306B\u5BFE\u3059\u308B\u5916\u90E8\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0/\u30E6\u30FC\u30B6\u30FC\u304B\u3089\u306E<strong>\u8CFC\u8AAD</strong>\u306F<strong>\u8A31\u53EF\u3057\u306A\u3044</strong>"));}computeKeepOriginalVideo(){h(this.keepOriginalVideo)&&(this.addConfig({transcoding:{originalFile:{keep:this.keepOriginalVideo==="enabled"}}}),this.keepOriginalVideo==="enabled"&&this.addExplanation("\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u305F\u52D5\u753B\u30D5\u30A1\u30A4\u30EB\u306E<strong>\u30B3\u30D4\u30FC\u3092\u4FDD\u5B58</strong>"));}computeReplaceVideoFile(){h(this.allowReplaceFile)&&(this.addConfig({videoFile:{update:{enabled:this.allowReplaceFile==="enabled"}}}),this.allowReplaceFile==="enabled"&&this.addExplanation("\u30E6\u30FC\u30B6\u30FC\u306B\u65E2\u306B\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u6E08\u307F\u306E<strong>\u52D5\u753B\u306E\u7F6E\u304D\u63DB\u3048</strong>\u3092<strong>\u8A31\u53EF</strong>"));}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("<a href=\"https://sepiasearch.org\" target=\"_blank\">\u30BB\u30D4\u30A2\u691C\u7D22</a>\u3092<strong>\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u691C\u7D22\u30A8\u30F3\u30B8\u30F3</strong>\u3068\u3057\u3066\u8A2D\u5B9A"));}computeTranscription(){h(this.transcription)&&(this.addConfig({videoTranscription:{enabled:this.transcription==="enabled"}}),this.transcription==="enabled"&&this.addExplanation("\u5B57\u5E55\u3092\u4F5C\u6210\u3057\u3001\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3\u5411\u4E0A\u306E\u305F\u3081<strong>\u52D5\u753B\u306E\u81EA\u52D5\u6587\u5B57\u8D77\u3053\u3057\u3092\u6709\u52B9\u306B\u3059\u308B</strong>"));}computeAuth(){if(!h(this.authType))return;let i="\u4E8B\u524D\u69CB\u6210\u30A6\u30A3\u30B6\u30FC\u30C9\u78BA\u8A8D\u5F8C\u3001\u30D7\u30E9\u30B0\u30A4\u30F3\u304C<strong>\u69CB\u6210\u3055\u308C\u3066\u3044\u308B</strong>\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002";this.authType==="ldap"?(this.addExplanation("<strong>LDAP</strong>\u8A8D\u8A3C\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059\u3002"+i),this.plugins.push("peertube-plugin-auth-ldap")):this.authType==="saml"?(this.addExplanation("<strong>SAML 2.0</strong>\u8A8D\u8A3C\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059\u3002"+i),this.plugins.push("peertube-plugin-auth-saml2")):this.authType==="oidc"&&(this.addExplanation("<strong>OpenID Connect</strong> \u8A8D\u8A3C\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059\u3002"+i),this.plugins.push("peertube-plugin-auth-openid-connect"));}addConfig(i){return this.config=fe(this.config,i);}addExplanation(i){this.unsafeExplanations.push(i);}};var Ot=(()=>{let i=class i{el=M(Ve);html=P.required();ngOnInit(){let n=this.el.nativeElement;n.innerHTML=this.html(),n.ariaHidden="true";}};u(i,"\u0275fac",function(t){return new(t||i)();}),u(i,"\u0275cmp",f({type:i,selectors:[["my-custom-icon"]],inputs:{html:[1,"html"]},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 bt=_=>({"platform-type-selected":_});function Gt(_,i){if(_&1&&d(0,"my-community-based-config",35),_&2){let m=A();c("usageType",m.usageType[m.platformType]);}}function $t(_,i){if(_&1&&d(0,"my-institutional-config",35),_&2){let m=A();c("usageType",m.usageType[m.platformType]);}}function Lt(_,i){if(_&1&&d(0,"my-private-instance-config",35),_&2){let m=A();c("usageType",m.usageType[m.platformType]);}}var Dt=(()=>{let i=class i{server=M(ie);formReactiveService=M($);themeService=M(Ie);currentStep=P.required({transform:x});totalSteps=P.required({transform:x});back=N();next=N();hide=N();iconKey=St();iconInstitution=Tt();form;formErrors={};validationMessages={};platformType;usageType={community:_e.initForCommunity(),institution:_e.initForInstitution(),private:_e.initForPrivateInstance()};ngOnInit(){this.buildForm(),this.subscribeToColorChanges();}subscribeToColorChanges(){let n;this.form.get("primaryColor").valueChanges.pipe(xe(250)).subscribe(t=>{n&&(cancelAnimationFrame(n),n=null),n=requestAnimationFrame(()=>{let e=this.server.getHTMLConfig();this.themeService.updateColorPalette(De(ae({},e.theme),{customization:De(ae({},e.theme.customization),{primaryColor:this.themeService.formatColorForForm(t)})}));});});}buildForm(){let n={platformName:Oe,primaryColor:null},{form:t,formErrors:e,validationMessages:l}=this.formReactiveService.buildForm(n,this.getDefaultValues());this.form=t,this.formErrors=e,this.validationMessages=l;}getDefaultValues(){let n=this.server.getHTMLConfig(),t=n.theme.customization.primaryColor,e=t?this.themeService.formatColorForForm(t):this.themeService.formatColorForForm(this.themeService.getCSSConfigValue("primaryColor"));return{platformName:n.instance.name,primaryColor:e};}};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 n;n="\u30B9\u30C6\u30C3\u30D7"+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let t;t="\u5229\u7528\u30BF\u30A4\u30D7";let e;e="\u3053\u306E\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306F...";let l;l="\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u30D9\u30FC\u30B9";let p;p="\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u304C\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u516C\u958B\u3057\u3001\u4E92\u3044\u306B\u4EA4\u6D41\u3067\u304D\u308B\u3088\u3046\u306B\u3057\u307E\u3059\u3002";let g;g="\u6A5F\u95A2\u3001\u30AF\u30ED\u30FC\u30BA\u30C9";let I;I="\u3042\u306A\u305F\u306E\u52D5\u753B\u3092\u914D\u4FE1\u3059\u308B\u305F\u3081\u306B\u7279\u5316\u3055\u305B\u307E\u3059\u3002\u516C\u5171\u6A5F\u95A2\u3001\u56E3\u4F53\u3001\u4F01\u696D\u306B\u63A8\u5968\u3055\u308C\u307E\u3059\u3002";let E;E="\u975E\u516C\u958B";let k;k="\u7279\u5B9A\u306E\u4EBA\u3060\u3051\u304C\u30B3\u30F3\u30C6\u30F3\u30C4\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3059\u3002\u5BB6\u65CF\u3084\u30AF\u30ED\u30FC\u30BA\u30C9\u306A\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u63A8\u5968\u3055\u308C\u307E\u3059\u3002";let X;X="\u623B\u308B";let V;V="\u69CB\u6210\u306E\u6700\u7D42\u78BA\u8A8D";let O;return O="\u4ECA\u306F\u3057\u306A\u3044",[n,t,e,l,p,g,I,E,k,X,V,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,"html"],["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"),d(3,"img",14),o(),r(4,"div")(5,"div",15)(6,"div",16),a(7,0),o()(),r(8,"h4",17),a(9,1),o(),r(10,"div",18),q(11,"You can also edit your platform configuration at a later time"),o()()(),r(12,"div",19),a(13,2),o(),r(14,"div",20)(15,"div",21)(16,"ul",22)(17,"li",23)(18,"input",24),de("ngModelChange",function(p){return me(e.platformType,p)||(e.platformType=p),p;}),o(),r(19,"label",25)(20,"div"),d(21,"my-global-icon",26),o(),r(22,"div")(23,"div",27),a(24,3),o(),r(25,"div",28),a(26,4),o()()()(),r(27,"li",23)(28,"input",29),de("ngModelChange",function(p){return me(e.platformType,p)||(e.platformType=p),p;}),o(),r(29,"label",30)(30,"div"),d(31,"my-custom-icon",31),o(),r(32,"div")(33,"div",27),a(34,5),o(),r(35,"div",28),a(36,6),o()()()(),r(37,"li",23)(38,"input",32),de("ngModelChange",function(p){return me(e.platformType,p)||(e.platformType=p),p;}),o(),r(39,"label",33)(40,"div"),d(41,"my-custom-icon",31),o(),r(42,"div")(43,"div",27),a(44,7),o(),r(45,"div",28),a(46,8),o()()()()()(),r(47,"div",34),W(48,Gt,1,1,"my-community-based-config",35)(49,$t,1,1,"my-institutional-config",35)(50,Lt,1,1,"my-private-instance-config",35),o()(),r(51,"div",36)(52,"my-button",37),C("click",function(){return e.back.emit();}),a(53,9),o(),r(54,"my-button",38),C("click",function(){return e.next.emit(e.usageType[e.platformType]);}),a(55,10),o(),r(56,"button",39),C("click",function(){return e.hide.emit();}),a(57,11),o()()()),t&2&&(s(7),J(e.currentStep())(e.totalSteps()),ee(7),s(8),c("ngClass",le(10,bt,e.platformType)),s(3),se("ngModel",e.platformType),s(10),se("ngModel",e.platformType),s(3),c("html",e.iconInstitution),s(7),se("ngModel",e.platformType),s(3),c("html",e.iconKey),s(7),z(e.platformType==="community"?48:e.platformType==="institution"?49:e.platformType==="private"?50:-1),s(6),c("disabled",!e.platformType));},dependencies:[ne,ue,y,ge,nt,G,tt,v,b,D,L,Ae,Nt,At,It,Ot],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[_ngcontent-%COMP%]{margin-inline-end:calc(1.325rem + .9vw)}.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)}}@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[_ngcontent-%COMP%]{margin-bottom:calc(1.325rem + .9vw)}.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)}}@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-MZEYA3PY.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);gap:calc(1.275rem + .3vw)}@media (min-width: 1200px){.buttons[_ngcontent-%COMP%]{margin-top:2.5rem}}@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-TG2MVLVA.css.map */`]}));let _=i;return _;})();function wt(_,i){if(_&1&&d(0,"li",14),_&2){let m=i.$implicit;c("innerHTML",m,Ue);}}var Et=(()=>{let i=class i{adminConfig=M(ye);pluginAPI=M(ve);notifier=M(Ne);html=M(at);server=M(ie);instanceLogo=M(be);currentStep=P.required({transform:x});totalSteps=P.required({transform:x});usageType=P.required();instanceInfo=P.required();dryRun=P.required({transform:pe});back=N();next=N();hide=N();safeExplanations=[];plugins=[];config={};updating=!1;ngOnChanges(){this.usageType()&&(this.safeExplanations=this.usageType().getUnsafeExplanations().map(n=>this.html.toSimpleSafeHtml(n)),this.config=fe({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(()=>{let n=this.instanceInfo().avatar;return n?this.instanceLogo.updateAvatar(n):this.instanceLogo.deleteAvatar();}).pipe(Ee(()=>this.server.resetConfig()),Ee(()=>We(this.plugins).pipe(Ze(n=>this.pluginAPI.install(n)),ze()))).subscribe({next:()=>{this.updating=!1,this.next.emit();},error:n=>{this.notifier.error(n.message),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:[ce([ye,ve,be]),ke],decls:25,vars:4,consts:()=>{let n;n="\u30B9\u30C6\u30C3\u30D7"+"\uFFFD0\uFFFD"+"/"+"\uFFFD1\uFFFD"+"";let t;t="\u69CB\u6210\u3092\u78BA\u8A8D";let e;e="\u554F\u984C\u306A\u3044\u5834\u5408\u3001PeerTube\u306F\u6B21\u306E\u901A\u308A\u8A2D\u5B9A\u3057\u307E\u3059:";let l;l="\u3088\u308A\u7D30\u304B\u3044\u8A2D\u5B9A\u3092\u884C\u3044\u305F\u3044\u5834\u5408\u306F\u3001\u3053\u306E\u8A2D\u5B9A\u30A6\u30A3\u30B6\u30FC\u30C9\u306E\u5F8C\u3067\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u69CB\u6210\u3092\u7C21\u5358\u306B\u5909\u66F4\u3067\u304D\u307E\u3059\uFF01";let p;p="\u623B\u308B";let g;g="\u3053\u306E\u69CB\u6210\u3092\u78BA\u8A8D";let I;return I="\u4ECA\u306F\u3057\u306A\u3044",[n,t,e,l,p,g,I,[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"),d(3,"img",9),o(),r(4,"div")(5,"div",10)(6,"div",11),a(7,0),o()(),r(8,"h4",12),a(9,1),o(),r(10,"div",13)(11,"p"),a(12,2),o(),r(13,"ul"),qe(14,wt,1,1,"li",14,je),o(),r(16,"p"),a(17,3),o()()()(),r(18,"div",15)(19,"my-button",16),C("click",function(){return e.back.emit();}),a(20,4),o(),r(21,"my-button",17),C("click",function(){return e.confirm();}),a(22,5),o(),r(23,"button",18),C("click",function(){return e.hide.emit();}),a(24,6),o()()()),t&2&&(s(7),J(e.currentStep())(e.totalSteps()),ee(7),s(7),Qe(e.safeExplanations),s(7),c("disabled",e.updating)("loading",e.updating));},dependencies:[y,v,b,D,L],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);gap:calc(1.275rem + .3vw)}@media (min-width: 1200px){.buttons[_ngcontent-%COMP%]{margin-top:2.5rem}}@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-TG2MVLVA.css.map */`]}));let _=i;return _;})();var Ft=(()=>{let i=class i{userService=M(lt);notifier=M(Ne);back=N();next=N();hide=N();doNotOpenAgain(){Me.setItem(Se(),"true"),this.userService.updateMyProfile({noWelcomeModal:!0}).subscribe({next:()=>Ce.info("We will not open the welcome modal again."),error:n=>this.notifier.error(n.message)});}};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 n;n="PeerTube\u3078\u3088\u3046\u3053\u305D";let t;t="\u7BA1\u7406\u8005\u306E\u7686\u69D8\uFF01";let e;e="\u30B3\u30A6\u30A4\u30AB\u306E\u30BB\u30D4\u30A2\u304C\u3001\u3042\u306A\u305F\u304C "+"\uFFFD#10\uFFFD"+"\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u69CB\u6210\u3092\u7D20\u65E9\u304F\u8A2D\u5B9A\u3067\u304D\u308B\u3088\u3046"+"\uFFFD/#10\uFFFD"+"\u3044\u304F\u3064\u304B\u8CEA\u554F\u3055\u305B\u3066\u3044\u305F\u3060\u304D\u307E\u3059\u3002";let l;l="\u59CB\u3081\u307E\u3057\u3087\u3046\uFF01";let p;p="\u5F8C\u307B\u3069\u901A\u77E5\u3059\u308B";let g;return g="\u518D\u5EA6\u8868\u793A\u3057\u306A\u3044",[n,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),d(2,"img",8),o(),r(3,"h4")(4,"div",9),a(5,0),o(),r(6,"div",10),a(7,1),o()(),r(8,"div",11),H(9,2),d(10,"strong"),K(),o(),r(11,"div",12)(12,"my-button",13),C("click",function(){return e.next.emit();}),a(13,3),o(),r(14,"my-button",14),C("click",function(){return e.hide.emit();}),a(15,4),o(),r(16,"button",15),C("click",function(){return e.doNotOpenAgain(),e.hide.emit();}),a(17,5),o()()());},dependencies:[y,v,D,L],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);gap:calc(1.275rem + .3vw)}@media (min-width: 1200px){.buttons[_ngcontent-%COMP%]{margin-top:2.5rem}}@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-TG2MVLVA.css.map */`]}));let _=i;return _;})();var Wt=["modal"],zt=["stepper"];function Zt(_,i){if(_&1){let m=Q();r(0,"cdk-step",3)(1,"my-admin-config-wizard-welcome",11),C("back",function(){S(m),A();let t=Z(2);return T(t.previous());})("next",function(){S(m),A();let t=Z(2);return T(t.next());})("hide",function(){S(m);let t=A().close;return T(t());}),o()();}}function xt(_,i){if(_&1){let m=Q();r(0,"cdk-step",10)(1,"my-admin-config-wizard-documentation",12),C("hide",function(){S(m);let t=A().close;return T(t());}),o()();}}function kt(_,i){if(_&1){let m=Q();r(0,"div",2)(1,"my-admin-config-wizard-stepper",null,1),W(3,Zt,2,0,"cdk-step",3),r(4,"cdk-step",4)(5,"my-admin-config-wizard-edit-info",5),C("back",function(){S(m);let t=Z(2);return T(t.previous());})("next",function(t){S(m);let e=Z(2),l=A();return l.instanceInfo=t,T(e.next());})("hide",function(){let t=S(m).close;return T(t());}),o()(),r(6,"cdk-step",6)(7,"my-admin-config-wizard-form",7),C("back",function(){S(m);let t=Z(2);return T(t.previous());})("next",function(t){S(m);let e=Z(2),l=A();return l.usageType=t,T(e.next());})("hide",function(){let t=S(m).close;return T(t());}),o()(),r(8,"cdk-step",8)(9,"my-admin-config-wizard-preview",9),C("back",function(){S(m);let t=Z(2);return T(t.previous());})("next",function(){let t=S(m).close,e=Z(2),l=A();return T(l.showWelcome?e.next():t());})("hide",function(){let t=S(m).close;return T(t());}),o()(),W(10,xt,2,0,"cdk-step",10),o()();}if(_&2){let m=A();s(3),z(m.showWelcome?3:-1),s(2),c("currentStep",m.currentStep())("showBack",m.showWelcome),s(2),c("currentStep",m.currentStep()),s(2),c("usageType",m.usageType)("instanceInfo",m.instanceInfo)("dryRun",m.dryRun)("currentStep",m.currentStep()),s(),z(m.showWelcome?10:-1);}}var si=(()=>{let i=class i{modalService=M(rt);modal=he("modal");stepper=he("stepper");created=N();usageType;instanceInfo;showWelcome;dryRun;ngOnInit(){this.created.emit();}shouldAutoOpen(n){return this.modalService.hasOpenModals()?!1:this.getFragment()==="#admin-welcome-wizard"||this.getFragment()==="#admin-welcome-wizard-test"?!0:!(n.noWelcomeModal===!0||Me.getItem(Se())==="true");}show({showWelcome:n}){this.showWelcome=n,this.dryRun=this.getFragment()==="#admin-welcome-wizard-test",this.modalService.open(this.modal(),{centered:!0,backdrop:"static",keyboard:!1,size:"lg"});}currentStep(){if(!this.stepper())return 0;let n=this.stepper().selectedIndex;return this.showWelcome?n:n+1;}totalSteps(){if(!this.stepper())return 0;let n=this.stepper().steps.length;return this.showWelcome?n-1:n;}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&&(Fe(e.modal,Wt,5),Fe(e.stepper,zt,5)),t&2&&Ke(2);},outputs:{created:"created"},decls:2,vars:0,consts:()=>{let n;n="\u3088\u3046\u3053\u305D\u753B\u9762";let t;t="\u4E00\u822C\u7684\u306A\u60C5\u5831\u3092\u7DE8\u96C6";let e;e="\u5229\u7528\u30BF\u30A4\u30D7";let l;l="\u69CB\u6210\u3092\u78BA\u8A8D";let p;return p="\u69CB\u6210\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u6295\u7A3F",[["modal",""],["stepper",""],[1,"modal-body"],["label",n],["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&&Be(0,kt,11,9,"ng-template",null,0,Je);},dependencies:[D,st,gt,Ft,ft,Dt,Et,Mt],styles:[`.modal-body[_ngcontent-%COMP%]{padding:2rem 3rem}
/*# sourceMappingURL=admin-config-wizard-modal.component-7M3OGGTO.css.map */`]}));let _=i;return _;})();export{si as AdminConfigWizardModalComponent};/**i18n:4d96fbbe8a02868f1b15225bb74dfc1273beaf38b7ce36e9c53048b85eee2d05*///# sourceMappingURL=chunk-L3MRPP5S.js.map