1"use strict";(self.webpackChunkPeerTube=self.webpackChunkPeerTube||[]).push([[3884],{73884:(z,O,_)=>{_.r(O),_.d(O,{RegisterModule:()=>y});var f=_(12687),I=_(40445),P=_(21281),N=_(29521),e=_(94650),B=_(83353),D=_(77579),b=_(39646),a=_(68675),l=_(82722);function T(n,o){1&n&&e.Hsn(0)}const S=["*"];let M=(()=>{class n{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n})(),A=(()=>{class n{constructor(t){this.template=t}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.Rgc))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkStepLabel",""]]}),n})(),oe=0;const ie=new e.OlP("STEPPER_GLOBAL_OPTIONS");let Y=(()=>{class n{get editable(){return this._editable}set editable(t){this._editable=(0,P.Ig)(t)}get optional(){return this._optional}set optional(t){this._optional=(0,P.Ig)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=(0,P.Ig)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=(0,P.Ig)(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(t,i){this._stepper=t,this.interacted=!1,this.interactedStream=new e.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var t;return null!==(t=this._stepperOptions.showError)&&void 0!==t?t:null!=this._customError}}return n.\u0275fac=function(t){return new(t||n)(e.Y36((0,e.Gpc)(()=>x)),e.Y36(ie,8))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(t,i,r){if(1&t&&e.Suo(r,A,5),2&t){let s;e.iGM(s=e.CRH())&&(i.stepLabel=s.first)}},viewQuery:function(t,i){if(1&t&&e.Gf(e.Rgc,7),2&t){let r;e.iGM(r=e.CRH())&&(i.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[e.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(t,i){1&t&&(e.F$t(),e.YNc(0,T,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),x=(()=>{class n{get linear(){return this._linear}set linear(t){this._linear=(0,P.Ig)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const i=(0,P.su)(t);var r;this.steps&&this._steps?(this._isValidIndex(i),null===(r=this.selected)||void 0===r||r._markAsInteracted(),this._selectedIndex!==i&&!this._anyControlsInvalidOrPending(i)&&(i>=this._selectedIndex||this.steps.toArray()[i].editable)&&this._updateSelectedItemIndex(i)):this._selectedIndex=i}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=t&&this.steps?this.steps.toArray().indexOf(t):-1}get orientation(){return this._orientation}set orientation(t){this._orientation=t,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===t)}constructor(t,i,r){this._dir=t,this._changeDetectorRef=i,this._elementRef=r,this._destroyed=new D.x,this.steps=new e.n_E,this._sortedHeaders=new e.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new e.vpe,this._orientation="horizontal",this._groupId=oe++}ngAfterContentInit(){this._steps.changes.pipe((0,a.O)(this._steps),(0,l.R)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,a.O)(this._stepHeader),(0,l.R)(this._destroyed)).subscribe(t=>{this._sortedHeaders.reset(t.toArray().sort((i,r)=>i._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new f.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,b.of)()).pipe((0,a.O)(this._layoutDirection()),(0,l.R)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){var t;null===(t=this._keyManager)||void 0===t||t.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const i=t-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,i="number"){const r=this.steps.toArray()[t],s=this._isCurrentStep(t);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,s):this._getGuidelineLogic(r,s,i)}_getDefaultIndicatorLogic(t,i){return t._showError()&&t.hasError&&!i?"error":!t.completed||i?"number":t.editable?"edit":"done"}_getGuidelineLogic(t,i,r="number"){return t._showError()&&t.hasError&&!i?"error":t.completed&&!i?"done":t.completed&&i?r:t.editable&&i?"edit":r}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:i[t],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const i=(0,N.Vb)(t),r=t.keyCode,s=this._keyManager;null==s.activeItemIndex||i||r!==N.L_&&r!==N.K5?s.setFocusOrigin("keyboard").onKeydown(t):(this.selectedIndex=s.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){return!!(this._linear&&t>=0)&&this.steps.toArray().slice(0,t).some(i=>{const r=i.stepControl;return(r?r.invalid||r.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const t=this._elementRef.nativeElement,i=(0,B.ht)();return t===i||t.contains(i)}_isValidIndex(t){return t>-1&&(!this.steps||t<this.steps.length)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(I.Is,8),e.Y36(e.sBO),e.Y36(e.SBq))},n.\u0275dir=e.lG2({type:n,selectors:[["","cdkStepper",""]],contentQueries:function(t,i,r){if(1&t&&(e.Suo(r,Y,5),e.Suo(r,M,5)),2&t){let s;e.iGM(s=e.CRH())&&(i._steps=s),e.iGM(s=e.CRH())&&(i._stepHeader=s)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),n})(),re=(()=>{class n{constructor(t){this._stepper=t,this.type="submit"}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(x))},n.\u0275dir=e.lG2({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._stepper.next()}),2&t&&e.Ikx("type",i.type)},inputs:{type:"type"}}),n})(),se=(()=>{class n{constructor(t){this._stepper=t,this.type="button"}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(x))},n.\u0275dir=e.lG2({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,i){1&t&&e.NdJ("click",function(){return i._stepper.previous()}),2&t&&e.Ikx("type",i.type)},inputs:{type:"type"}}),n})(),_e=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[I.vT]}),n})();var ae=_(98651),le=_(77530),ce=_(8401),X=_(62726),Q=_(50151),ue=_(49671),H=_(44900),ge=_(35907),C=_(36895),pe=_(48449),de=_(68783),V=_(44661);function Se(n,o){1&n&&(e.ynx(0),e.TgZ(1,"strong"),e.SDv(2,3),e.qZA(),e.BQk())}
1function Te(n,o){if(1&n&&(e.ynx(0),e.tHW(1,4),e._UZ(2,"strong")(3,"div"),e.N_p(),e.BQk()),2&n){const t=e.oxw();e.xp6(3),e.pQV(t.instanceName),e.QtT(1)}}function Ee(n,o){1&n&&(e.TgZ(0,"p"),e.SDv(1,5),e.qZA())}function me(n,o){1&n&&(e.TgZ(0,"p"),e.SDv(1,6),e.qZA())}function Ce(n,o){1&n&&(e.TgZ(0,"p"),e.tHW(1,7),e._UZ(2,"strong"),e.N_p(),e.qZA())}function Fe(n,o){1&n&&(e.TgZ(0,"p"),e.tHW(1,8),e._UZ(2,"strong"),e.N_p(),e.qZA())}function fe(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Ce,3,0,"p",1),e.YNc(2,Fe,3,0,"p",1),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.requiresApproval),e.xp6(1),e.Q6J("ngIf",!t.requiresApproval)}}function Pe(n,o){1&n&&(e.TgZ(0,"p"),e.SDv(1,9),e.qZA())}function Re(n,o){1&n&&(e.TgZ(0,"p"),e.tHW(1,10),e._UZ(2,"a",11),e.N_p(),e.qZA())}function Ne(n,o){if(1&n&&(e.ynx(0),e.YNc(1,Pe,2,0,"p",1),e.YNc(2,Re,3,0,"p",1),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.requiresApproval),e.xp6(1),e.Q6J("ngIf",!t.requiresApproval)}}class ${}$.\u0275fac=function(o){return new(o||$)},$.\u0275cmp=e.Xpm({type:$,selectors:[["my-signup-success-before-email"]],inputs:{requiresApproval:"requiresApproval",requiresEmailVerification:"requiresEmailVerification",instanceName:"instanceName"},decls:8,vars:6,consts:function(){let n,o,t,i,r,s,d,u;return n="Account request sent",o="" + "\ufffd#2\ufffd" + "Welcome" + "\ufffd/#2\ufffd" + "" + "\ufffd#3\ufffd" + "on " + "\ufffd0\ufffd" + "" + "\ufffd/#3\ufffd" + "",t="Your account request has been sent!",i="Your account has been created!",r="" + "\ufffd#2\ufffd" + "Check your emails" + "\ufffd/#2\ufffd" + " to validate your account and complete your registration request. ",s="" + "\ufffd#2\ufffd" + "Check your emails" + "\ufffd/#2\ufffd" + " to validate your account and complete your registration. ",d=" A moderator will check your registration request soon and you'll receive an email when it will be accepted or rejected. ",u=" If you need help to use PeerTube, you can have a look at the " + "\ufffd#2\ufffd" + "documentation" + "\ufffd/#2\ufffd" + ". ",[["mascotImageName","success"],[4,"ngIf"],[1,"alert","pt-alert-primary"],n,o,t,i,r,s,d,u,["href","https://docs.joinpeertube.org/use/setup-account","target","_blank","rel","noopener noreferrer",1,"link-orange"]]},template:function(o,t){1&o&&(e.TgZ(0,"my-signup-step-title",0),e.YNc(1,Se,3,0,"ng-container",1),e.YNc(2,Te,4,1,"ng-container",1),e.qZA(),e.TgZ(3,"div",2),e.YNc(4,Ee,2,0,"p",1),e.YNc(5,me,2,0,"p",1),e.YNc(6,fe,3,2,"ng-container",1),e.YNc(7,Ne,3,2,"ng-container",1),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",t.requiresApproval),e.xp6(1),e.Q6J("ngIf",!t.requiresApproval),e.xp6(2),e.Q6J("ngIf",t.requiresApproval),e.xp6(1),e.Q6J("ngIf",!t.requiresApproval),e.xp6(1),e.Q6J("ngIf",t.requiresEmailVerification),e.xp6(1),e.Q6J("ngIf",!t.requiresEmailVerification))},dependencies:[C.O5,V.l],styles:[".alert[_ngcontent-%COMP%]{font-size:18px;max-width:900px;text-align:center;margin:auto}"]});var Me=_(44638),he=_(99833);function Oe(n,o){1&n&&(e.TgZ(0,"div",12),e._UZ(1,"my-global-icon",13),e.qZA())}function Ie(n,o){1&n&&e._UZ(0,"div",14)}const Ae=function(n,o,t){return{active:n,completed:o,"c-hand":t}};function ve(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",5),e.NdJ("click",function(){const s=e.CHM(t).index,d=e.oxw(2);return e.KtG(d.onClick(s))}),e.TgZ(2,"div",6)(3,"span",7),e.SDv(4,8),e.qZA(),e._uU(5),e.YNc(6,Oe,2,0,"div",9),e.qZA(),e.TgZ(7,"div",10),e._uU(8),e.qZA()(),e.YNc(9,Ie,1,0,"div",11),e.BQk()}if(2&n){const t=o.$implicit,i=o.index,r=o.last,s=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.kEZ(6,Ae,s.selectedIndex===i,s.isCompleted(t),s.isAccessible(t))),e.uIk("aria-current",s.selectedIndex===i),e.xp6(4),e.hij(" ",i+1," "),e.xp6(1),e.Q6J("ngIf",s.isCompleted(t)),e.xp6(2),e.Oqu(t.label),e.xp6(1),e.Q6J("ngIf",!r)}}function Ge(n,o){if(1&n&&(e.TgZ(0,"header")(1,"div",3),e.YNc(2,ve,10,10,"ng-container",4),e.qZA()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.steps)}}class h extends x{onClick(o){this.selectedIndex=o}isCompleted(o){return o.completed}isAccessible(o){return o.editable&&o.completed}}h.\u0275fac=function(){let n;return function(t){return(n||(n=e.n5z(h)))(t||h)}}(),h.\u0275cmp=e.Xpm({type:h,selectors:[["my-custom-stepper"]],features:[e._Bn([{provide:x,useExisting:h}]),e.qOj],decls:4,vars:4,consts:function(){let n;return n="Step",[[4,"ngIf"],[1,"margin-content"],[3,"ngTemplateOutlet"],[1,"header-steps"],[4,"ngFor","ngForOf"],[1,"step-info",3,"ngClass","click"],[1,"step-index"],[1,"visually-hidden"],n,["class","completed-icon",4,"ngIf"],[1,"step-label"],["class","connector",4,"ngIf"],[1,"completed-icon"],["iconName","tick"],[1,"connector"]]},template:function(o,t){1&o&&(e.TgZ(0,"section"),e.YNc(1,Ge,3,1,"header",0),e.TgZ(2,"div",1),e.GkF(3,2),e.qZA()()),2&o&&(e.xp6(1),e.Q6J("ngIf",t.steps.length>2),e.xp6(1),e.Udp("display",t.selected?"block":"none"),e.xp6(1),e.Q6J("ngTemplateOutlet",t.selected.content))},dependencies:[C.mk,C.sg,C.O5,C.tP,he.$],styles:["header[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:25px;width:100%;background-color:var(--mainColorVeryLight)}.header-steps[_ngcontent-%COMP%]{max-width:800px;display:flex;justify-content:space-between;margin:auto;padding:0 20px}.step-index[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:40px;height:40px;border-radius:40px;border:1px solid var(--mainColor);margin-bottom:10px;font-size:24px;position:relative}.step-index[_ngcontent-%COMP%] .completed-icon[_ngcontent-%COMP%]{width:14px;
1height:14px;border-radius:14px;background-color:var(--mainBackgroundColor);position:absolute;bottom:0;right:0;display:flex;justify-content:center;align-items:center;box-shadow:0 0 0 1px var(--mainColor);overflow:hidden}.step-index[_ngcontent-%COMP%] .completed-icon[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%]{display:flex;width:12px;height:12px}.step-index[_ngcontent-%COMP%] .completed-icon[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] .feather, .step-index[_ngcontent-%COMP%] .completed-icon[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] .material, .step-index[_ngcontent-%COMP%] .completed-icon[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] .misc{color:var(--mainColor)}.step-label[_ngcontent-%COMP%]{width:-webkit-max-content;width:max-content;font-size:18px}.step-info[_ngcontent-%COMP%]{color:var(--mainColor);display:flex;flex-direction:column;align-items:center;width:40px;opacity:.5;cursor:default}.step-info.c-hand[_ngcontent-%COMP%]{cursor:pointer}.step-info.active[_ngcontent-%COMP%] .step-index[_ngcontent-%COMP%], .step-info.completed[_ngcontent-%COMP%] .step-index[_ngcontent-%COMP%]{background-color:var(--mainColor);color:var(--mainBackgroundColor)}.step-info.active[_ngcontent-%COMP%] .step-label[_ngcontent-%COMP%], .step-info.completed[_ngcontent-%COMP%] .step-label[_ngcontent-%COMP%]{color:var(--mainColor)}.step-info.active[_ngcontent-%COMP%]{opacity:1}.connector[_ngcontent-%COMP%]{flex:auto;margin:20px 10px 0;height:2px;background-color:var(--mainColor);opacity:.3}@media screen and (min-width: 800px){.margin-content[_ngcontent-%COMP%]{max-width:1000px;margin:auto}}@media screen and (max-width: 800px){.step-label[_ngcontent-%COMP%]{width:auto;text-align:center}}"]});var K=_(97272),j=_(11520),W=_(13723),v=_(75886),g=_(24006),ye=_(53311);function De(n,o){if(1&n&&(e.TgZ(0,"p"),e.tHW(1,19),e._UZ(2,"strong"),e.ALo(3,"bytes"),e.N_p(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.pQV(t.instanceName)(e.xi3(3,2,t.videoQuota,0)),e.QtT(1)}}function be(n,o){if(1&n&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.formErrors.displayName)}}function xe(n,o){if(1&n&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.formErrors.name)}}function $e(n,o){1&n&&(e.TgZ(0,"div",20),e.SDv(1,21),e.qZA())}const ee=function(n){return{"input-error":n}};class U extends v.OI{constructor(o,t){super(),this.formReactiveService=o,this.signupService=t,this.formBuilt=new e.vpe}get instanceHost(){return window.location.host}ngOnInit(){this.buildForm({displayName:W.nP,name:W.BX}),setTimeout(()=>this.formBuilt.emit(this.form)),(0,K.z)((0,b.of)(""),this.form.get("displayName").valueChanges).pipe((0,j.G)()).subscribe(([o,t])=>this.onDisplayNameChange(o,t))}isSameThanUsername(){return this.username&&this.username===this.form.value.name}onDisplayNameChange(o,t){const r=this.signupService.getNewUsername(o,t,this.form.value.name||"");this.form.patchValue({name:r})}}U.\u0275fac=function(o){return new(o||U)(e.Y36(v.RL),e.Y36(H.O))},U.\u0275cmp=e.Xpm({type:U,selectors:[["my-register-step-channel"]],inputs:{username:"username",instanceName:"instanceName",videoQuota:"videoQuota"},outputs:{formBuilt:"formBuilt"},features:[e.qOj],decls:30,vars:13,consts:function(){let n,o,t,i,r,s,d,u,p,E;return n=" You want to " + "[\ufffd#3\ufffd|\ufffd#4\ufffd]" + "publish videos" + "[\ufffd/#3\ufffd|\ufffd/#4\ufffd]" + " on " + "\ufffd0\ufffd" + "? Then you need to create your first " + "[\ufffd#3\ufffd|\ufffd#4\ufffd]" + "channel" + "[\ufffd/#3\ufffd|\ufffd/#4\ufffd]" + ". ",n=e.Zx4(n),o=" You might want to " + "\ufffd#7\ufffd" + "create a channel by theme:" + "\ufffd/#7\ufffd" + " for example, you can create a channel named \"SweetMelodies\" to publish your piano concerts and another one \"Ecology\" in which you publish your videos talking about ecology. ",t="Channel display name",i="This is the name that will be publicly visible by other users.",r="Example: Sweet Melodies",s="Channel identifier",d="This is the name that will be displayed in your profile URL.",u="Example: sweetmelodies24",p=" " + "\ufffd0\ufffd" + " administrators allow you to publish up to " + "\ufffd#2\ufffd" + "" + "\ufffd1\ufffd" + " of videos" + "\ufffd/#2\ufffd" + " on their website. ",E=" Channel identifier cannot be the same as your account name. You can click on the first step to update your account name. ",[[1,"mb-5"],n,o,[4,"ngIf"],["role","form",3,"formGroup"],[1,"row"],[1,"col-md-12","col-xl-6","form-group"],["for","displayName"],t,[1,"form-group-description"],i,[1,"input-group"],["type","text","id","displayName","placeholder",r,"formControlName","displayName",3,"ngClass"],["class","form-error",4,"ngIf"],["for","name"],s,d,["type","text","id","name","placeholder",u,"formControlName","name",3,"ngClass"],[1,"input-group-text"],p,[1,"form-error"],E]},template:function(o,t){1&o&&(e.TgZ(0,"div",0)(1,"p"),e.tHW(2,1),e._UZ(3,"strong")(4,"strong"),e.N_p(),e.qZA(),e.TgZ(5,"p"),e.tHW(6,2),e._UZ(7,"strong"),e.N_p(),e.qZA(),e.YNc(8,De,4,5,"p",3),e.qZA(),e.TgZ(9,"form",4)(10,"div",5)(11,"div",6)(12,"label",7),e.SDv(13,8),e.qZA(),e.TgZ(14,"div",9),e.SDv(15,10),e.qZA(),e.TgZ(16,"div",11),e._UZ(17,"input",12),e.qZA(),e.YNc(18,be,2,1,"div",13),e.qZA(),e.TgZ(19,"div",6)(20,"label",14),e.SDv(21,15),e.qZA(),e.TgZ(22,"div",9),e.SDv(23,16),e.qZA(),e.TgZ(24,"div",11),e._UZ(25,"input",17),e.TgZ(26,"div",18),e._uU(27),e.qZA()(),e.YNc(28,xe,2,1,"div",13),e.YNc(29,$e,2,0,"div",13),e.qZA()()()),2&o&&(e.xp6(4),e.pQV(t.instanceName),e.QtT(2),e.xp6(4),e.Q6J("ngIf",-1!==t.videoQuota),e.xp6(1),e.Q6J("formGroup",t.form),e.xp6(8),e.Q6J("ngClass",e.VKq(9,ee,t.formErrors.displayName)),e.xp6(1),e.Q6J("ngIf",t.formErrors.displayName),e.xp6(7),e.Q6J("ngClass",e.VKq(11,ee,t.formErrors.name)),e.xp6(2),e.hij("@",t.instanceHost,""),e.xp6(1),e.Q6J("ngIf",t.formErrors.name),e.xp6(1),e.Q6J("ngIf",t.isSameThanUsername()))},dependencies:[C.mk,C.O5,g._Y,g.Fj,g.JJ,g.JL,g.sg,g.u,ye.$],styles:["input[_ngcontent-%COMP%]:not([type=submit]){line-height:23px;font-size:15px;padding:3px 15px;display:inline-block;width:100%;max-width:100%;color:var(--inputForegroundColor);
1background-color:var(--inputBackgroundColor);border:1px solid var(--inputBorderColor);border-radius:3px;display:block}input[_ngcontent-%COMP%]:not([type=submit])::placeholder{color:var(--inputPlaceholderColor)}input[_ngcontent-%COMP%]:not([type=submit])[readonly]{opacity:.7}@media screen and (max-width: calc(100% + 40px)){input[_ngcontent-%COMP%]:not([type=submit]){width:100%}}input[_ngcontent-%COMP%]:not([type=submit])#username, input[_ngcontent-%COMP%]:not([type=submit])#name{width:auto!important;flex-grow:1}input[type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%]{line-height:23px;padding:4px 13px;border:0;font-weight:600;border-radius:3px!important;text-align:center;cursor:pointer;font-size:15px}@supports (margin-inline-end: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-inline-end:.25rem}}@supports not (margin-inline-end: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-right:.25rem}}@supports (margin-inline-start: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-inline-start:.25rem}}@supports not (margin-inline-start: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:.25rem}}label[_ngcontent-%COMP%]{font-size:18px;margin-bottom:5px}.row[_ngcontent-%COMP%]{margin-bottom:30px}"]});const Ue={VALIDATORS:[g.kI.requiredTrue],MESSAGES:{required:"You must agree with the instance terms in order to register on it."}},Le={VALIDATORS:[g.kI.required,g.kI.minLength(2),g.kI.maxLength(3e3)],MESSAGES:{required:"Registration reason is required.",minlength:"Registration reason must be at least 2 characters long.",maxlength:"Registration reason cannot be more than 3000 characters long."}};var ke=_(56643),Ze=_(76118);function we(n,o){if(1&n&&(e.TgZ(0,"div",9),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.formErrors.registrationReason)}}const qe=function(n){return{"input-error":n}};function Be(n,o){if(1&n&&(e.TgZ(0,"div",2)(1,"label",6),e.SDv(2,7),e.qZA(),e._UZ(3,"textarea",8),e.YNc(4,we,2,1,"div",5),e.qZA()),2&n){const t=e.oxw();e.xp6(2),e.pQV(t.instanceName),e.QtT(2),e.xp6(1),e.Q6J("ngClass",e.VKq(3,qe,t.formErrors.registrationReason)),e.xp6(1),e.Q6J("ngIf",t.formErrors.registrationReason)}}function Xe(n,o){if(1&n){const t=e.EpF();e.tHW(0,10,1),e.ynx(1),e.TgZ(2,"a",11),e.NdJ("click",function(r){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onCodeOfConductClick(r))}),e.qZA(),e.BQk(),e.N_p()}}function Qe(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.tHW(1,10),e.TgZ(2,"a",11),e.NdJ("click",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.onTermsClick(r))}),e.qZA(),e.YNc(3,Xe,3,0,"ng-container",12),e.N_p(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngIf",t.hasCodeOfConduct),e.pQV(t.minimumAge)(t.instanceName),e.QtT(1)}}function He(n,o){if(1&n&&(e.TgZ(0,"div",9),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.formErrors.terms)}}class L extends v.OI{constructor(o){super(),this.formReactiveService=o,this.hasCodeOfConduct=!1,this.minimumAge=16,this.formBuilt=new e.vpe,this.termsClick=new e.vpe,this.codeOfConductClick=new e.vpe}get instanceHost(){return window.location.host}ngOnInit(){this.buildForm({terms:Ue,registrationReason:this.requiresApproval?Le:null}),setTimeout(()=>this.formBuilt.emit(this.form))}onTermsClick(o){o.preventDefault(),this.termsClick.emit()}onCodeOfConductClick(o){o.preventDefault(),this.codeOfConductClick.emit()}}L.\u0275fac=function(o){return new(o||L)(e.Y36(v.RL))},L.\u0275cmp=e.Xpm({type:L,selectors:[["my-register-step-terms"]],inputs:{hasCodeOfConduct:"hasCodeOfConduct",requiresApproval:"requiresApproval",minimumAge:"minimumAge",instanceName:"instanceName"},outputs:{formBuilt:"formBuilt",termsClick:"termsClick",codeOfConductClick:"codeOfConductClick"},features:[e.qOj],decls:6,vars:3,consts:function(){let n,o;return n="Why do you want to join " + "\ufffd0\ufffd" + "?",o=" I am at least " + "\ufffd0\ufffd" + " years old and agree to the " + "\ufffd#2\ufffd" + "Terms" + "[\ufffd/#2\ufffd|\ufffd/#2:1\ufffd]" + "" + "\ufffd*3:1\ufffd\ufffd#1:1\ufffd" + " and to the " + "\ufffd#2:1\ufffd" + "Code of Conduct" + "[\ufffd/#2\ufffd|\ufffd/#2:1\ufffd]" + "" + "\ufffd/#1:1\ufffd\ufffd/*3:1\ufffd" + " of " + "\ufffd1\ufffd" + " ",o=e.Zx4(o),[["role","form",3,"formGroup"],["class","form-group",4,"ngIf"],[1,"form-group"],["inputName","terms","formControlName","terms"],["ptTemplate","label"],["class","form-error",4,"ngIf"],["for","registrationReason"],n,["id","registrationReason","formControlName","registrationReason","rows","4",1,"form-control",3,"ngClass"],[1,"form-error"],o,["href","#",1,"link-orange",3,"click"],[4,"ngIf"]]},template:function(o,t){1&o&&(e.TgZ(0,"form",0),e.YNc(1,Be,5,5,"div",1),e.TgZ(2,"div",2)(3,"my-peertube-checkbox",3),e.YNc(4,Qe,4,3,"ng-template",4),e.qZA(),e.YNc(5,He,2,1,"div",5),e.qZA()()),2&o&&(e.Q6J("formGroup",t.form),e.xp6(1),e.Q6J("ngIf",t.requiresApproval),e.xp6(4),e.Q6J("ngIf",t.formErrors.terms))},dependencies:[C.mk,C.O5,g._Y,g.Fj,g.JJ,g.JL,g.sg,g.u,ke.Y,Ze.P],styles:["input[_ngcontent-%COMP%]:not([type=submit]){line-height:23px;font-size:15px;padding:3px 15px;display:inline-block;width:100%;max-width:100%;color:var(--inputForegroundColor);
1background-color:var(--inputBackgroundColor);border:1px solid var(--inputBorderColor);border-radius:3px;display:block}input[_ngcontent-%COMP%]:not([type=submit])::placeholder{color:var(--inputPlaceholderColor)}input[_ngcontent-%COMP%]:not([type=submit])[readonly]{opacity:.7}@media screen and (max-width: calc(100% + 40px)){input[_ngcontent-%COMP%]:not([type=submit]){width:100%}}input[_ngcontent-%COMP%]:not([type=submit])#username, input[_ngcontent-%COMP%]:not([type=submit])#name{width:auto!important;flex-grow:1}input[type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%]{line-height:23px;padding:4px 13px;border:0;font-weight:600;border-radius:3px!important;text-align:center;cursor:pointer;font-size:15px}@supports (margin-inline-end: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-inline-end:.25rem}}@supports not (margin-inline-end: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-right:.25rem}}@supports (margin-inline-start: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-inline-start:.25rem}}@supports not (margin-inline-start: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:.25rem}}label[_ngcontent-%COMP%]{font-size:18px;margin-bottom:5px}.row[_ngcontent-%COMP%]{margin-bottom:30px}"]});var k=_(32721),Je=_(36892);function ze(n,o){1&n&&(e.TgZ(0,"div",23),e.SDv(1,24),e.qZA())}function Ye(n,o){if(1&n&&(e.TgZ(0,"div",25),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.formErrors.displayName)}}function Ve(n,o){if(1&n&&(e.TgZ(0,"div",25),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.formErrors.username)}}function Ke(n,o){1&n&&(e.TgZ(0,"div",6),e.SDv(1,26),e.qZA())}function je(n,o){if(1&n&&(e.TgZ(0,"div",25),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.formErrors.email)}}const J=function(n){return{"input-error":n}};class Z extends v.OI{constructor(o,t){super(),this.formReactiveService=o,this.signupService=t,this.videoUploadDisabled=!1,this.requiresEmailVerification=!1,this.formBuilt=new e.vpe}get instanceHost(){return window.location.host}ngOnInit(){this.buildForm({displayName:k.bX,username:k.FC,password:k.$T,email:k.oo}),setTimeout(()=>this.formBuilt.emit(this.form)),(0,K.z)((0,b.of)(""),this.form.get("displayName").valueChanges).pipe((0,j.G)()).subscribe(([o,t])=>this.onDisplayNameChange(o,t))}getMinPasswordLengthMessage(){return k.$T.MESSAGES.minlength}onDisplayNameChange(o,t){const r=this.signupService.getNewUsername(o,t,this.form.value.username||"");this.form.patchValue({username:r})}}function We(n,o){1&n&&(e.TgZ(0,"li"),e.tHW(1,17),e._UZ(2,"strong"),e.N_p(),e.qZA())}function et(n,o){if(1&n&&(e.TgZ(0,"p"),e.SDv(1,18),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.pQV(t.instanceName),e.QtT(1)}}Z.\u0275fac=function(o){return new(o||Z)(e.Y36(v.RL),e.Y36(H.O))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["my-register-step-user"]],inputs:{videoUploadDisabled:"videoUploadDisabled",requiresEmailVerification:"requiresEmailVerification"},outputs:{formBuilt:"formBuilt"},features:[e.qOj],decls:34,vars:18,consts:function(){let n,o,t,i,r,s,d,u,p,E,c;return n="Public name",o=" This is the name that will be publicly visible by other users. ",t="Example: John Doe",i="Username",r=" This is the name that will be displayed in your profile URL. ",s="Example: john_doe58",d="Email",u="Example: [email protected]",p="Password",E=" Video uploads are disabled on this instance, hence your account won't be able to upload videos.\n",c=" This email address will be used to validate your account. ",[["class","alert pt-alert-primary",4,"ngIf"],["role","form",3,"formGroup"],[1,"row"],[1,"col-md-12","col-xl-6","form-group"],["for","displayName"],n,[1,"form-group-description"],o,[1,"input-group"],["type","text","id","displayName","placeholder",t,"formControlName","displayName",1,"form-control",3,"ngClass"],["class","form-error",4,"ngIf"],["for","username"],i,r,["type","text","id","username","placeholder",s,"formControlName","username",1,"form-control",3,"ngClass"],[1,"input-group-text"],["for","email"],d,["class","form-group-description",4,"ngIf"],["type","text","id","email","placeholder",u,"formControlName","email",1,"form-control",3,"ngClass"],["for","password"],p,["formControlName","password","inputId","password","autocomplete","new-password",3,"formError"],[1,"alert","pt-alert-primary"],E,[1,"form-error"],
1c]},template:function(o,t){1&o&&(e.YNc(0,ze,2,0,"div",0),e.TgZ(1,"form",1)(2,"div",2)(3,"div",3)(4,"label",4),e.SDv(5,5),e.qZA(),e.TgZ(6,"div",6),e.SDv(7,7),e.qZA(),e.TgZ(8,"div",8),e._UZ(9,"input",9),e.qZA(),e.YNc(10,Ye,2,1,"div",10),e.qZA(),e.TgZ(11,"div",3)(12,"label",11),e.SDv(13,12),e.qZA(),e.TgZ(14,"div",6),e.SDv(15,13),e.qZA(),e.TgZ(16,"div",8),e._UZ(17,"input",14),e.TgZ(18,"span",15),e._uU(19),e.qZA()(),e.YNc(20,Ve,2,1,"div",10),e.qZA()(),e.TgZ(21,"div",2)(22,"div",3)(23,"label",16),e.SDv(24,17),e.qZA(),e.YNc(25,Ke,2,0,"div",18),e._UZ(26,"input",19),e.YNc(27,je,2,1,"div",10),e.qZA(),e.TgZ(28,"div",3)(29,"label",20),e.SDv(30,21),e.qZA(),e.TgZ(31,"div",6),e._uU(32),e.qZA(),e._UZ(33,"my-input-text",22),e.qZA()()()),2&o&&(e.Q6J("ngIf",t.videoUploadDisabled),e.xp6(1),e.Q6J("formGroup",t.form),e.xp6(8),e.Q6J("ngClass",e.VKq(12,J,t.formErrors.displayName)),e.xp6(1),e.Q6J("ngIf",t.formErrors.displayName),e.xp6(7),e.Q6J("ngClass",e.VKq(14,J,t.formErrors.username)),e.xp6(2),e.hij("@",t.instanceHost,""),e.xp6(1),e.Q6J("ngIf",t.formErrors.username),e.xp6(5),e.Q6J("ngIf",t.requiresEmailVerification),e.xp6(1),e.Q6J("ngClass",e.VKq(16,J,t.formErrors.email)),e.xp6(1),e.Q6J("ngIf",t.formErrors.email),e.xp6(5),e.Oqu(t.getMinPasswordLengthMessage()),e.xp6(1),e.Q6J("formError",t.formErrors.password))},dependencies:[C.mk,C.O5,g._Y,g.Fj,g.JJ,g.JL,g.sg,g.u,Je.m],styles:["input[_ngcontent-%COMP%]:not([type=submit]){line-height:23px;font-size:15px;padding:3px 15px;display:inline-block;width:100%;max-width:100%;color:var(--inputForegroundColor);background-color:var(--inputBackgroundColor);border:1px solid var(--inputBorderColor);border-radius:3px;display:block}input[_ngcontent-%COMP%]:not([type=submit])::placeholder{color:var(--inputPlaceholderColor)}input[_ngcontent-%COMP%]:not([type=submit])[readonly]{opacity:.7}@media screen and (max-width: calc(100% + 40px)){input[_ngcontent-%COMP%]:not([type=submit]){width:100%}}input[_ngcontent-%COMP%]:not([type=submit])#username, input[_ngcontent-%COMP%]:not([type=submit])#name{width:auto!important;flex-grow:1}input[type=submit][_ngcontent-%COMP%], button[_ngcontent-%COMP%]{line-height:23px;padding:4px 13px;border:0;font-weight:600;border-radius:3px!important;text-align:center;cursor:pointer;font-size:15px}@supports (margin-inline-end: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-inline-end:.25rem}}@supports not (margin-inline-end: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-right:.25rem}}@supports (margin-inline-start: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-inline-start:.25rem}}@supports not (margin-inline-start: 4px){input[type=submit][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%], button[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] + *[_ngcontent-%COMP%]{margin-left:.25rem}}label[_ngcontent-%COMP%]{font-size:18px;margin-bottom:5px}.row[_ngcontent-%COMP%]{margin-bottom:30px}"]});class w{constructor(o){this.serverService=o}get instanceName(){return this.serverService.getHTMLConfig().instance.name}}w.\u0275fac=function(o){return new(o||w)(e.Y36(Q.NG))},w.\u0275cmp=e.Xpm({type:w,selectors:[["my-register-step-about"]],inputs:{requiresApproval:"requiresApproval",videoUploadDisabled:"videoUploadDisabled"},decls:33,vars:6,consts:function(){let n,o,t,i,r,s,d,u,p,E;return n="Why creating an account?",o=" As you probably noticed: creating an account is not necessary to watch video on " + "[\ufffd0\ufffd|\ufffd1\ufffd]" + ". " + "\ufffd#5\ufffd\ufffd/#5\ufffd" + " However, creating an account on " + "[\ufffd0\ufffd|\ufffd1\ufffd]" + " will allow you to: ",o=e.Zx4(o),t="" + "\ufffd#9\ufffd" + "Comment" + "\ufffd/#9\ufffd" + " videos",i="" + "\ufffd#12\ufffd" + "Subscribe" + "\ufffd/#12\ufffd" + " to channels to be notified of new videos",r="Have access to your " + "\ufffd#15\ufffd" + "watch history" + "\ufffd/#15\ufffd" + "",s="Do you use Mastodon, ActivityPub or a RSS feed aggregator?",d=" You can already follow " + "\ufffd0\ufffd" + " using your favorite tool. ",u=" " + "\ufffd0\ufffd" + " has been created using " + "\ufffd#31\ufffd" + "PeerTube" + "[\ufffd/#31\ufffd|\ufffd/#32\ufffd]" + ", a video creation platform developed by Framasoft. " + "\ufffd#32\ufffd" + "Framasoft" + "[\ufffd/#31\ufffd|\ufffd/#32\ufffd]" + " is a french non-profit organization that offers alternatives to Big Tech's digital tools ",u=e.Zx4(u),p="Create your channel to " + "\ufffd#2\ufffd" + "publish videos" + "\ufffd/#2\ufffd" + "",E=" Moderators of " + "\ufffd0\ufffd" + " will have to approve your registration request once you have finished to fill the form. ",[[1,"why"],n,o,t,i,r,[4,"ngIf"],s,d,[1,"callout","callout-orange","callout-light"],[1,"mascot-container",2,"min-width","140px"],["width","140px","height","160px","src","/client/assets/images/mascot/happy.svg","alt","mascot",1,"mascot"],[1,"callout-content"],["i18",""],u,["target","_blank","rel","noopener noreferrer","href","https://joinpeertube.org",1,"link-orange"],["target","_blank","rel","noopener noreferrer","href","https://framasoft.org",1,"link-orange"],p,E]},template:function(o,t){1&o&&(e.TgZ(0,"div",0)(1,"h3"),e.SDv(2,1),e.qZA(),e.TgZ(3,"p"),e.tHW(4,2),e._UZ(5,"br"),e.N_p(),e.qZA(),e.TgZ(6,"ul")(7,"li"),e.tHW(8,3),e._UZ(9,"strong"),e.N_p(),e.qZA(),e.TgZ(10,"li"),e.tHW(11,4),e._UZ(12,"strong"),e.N_p(),e.qZA(),e.TgZ(13,"li"),e.tHW(14,5),e._UZ(15,"strong"),e.N_p(),e.qZA(),e.YNc(16,We,3,0,"li",6),e.qZA(),e.YNc(17,et,2,1,"p",6),e.qZA(),e.TgZ(18,"div")(19,"h4"),e.SDv(20,7),e.qZA(),e.TgZ(21,"p"),e.SDv(22,8),e.qZA()(),e.TgZ(23,"div",9)(24,"div",10),e._UZ(25,"img",11),e.qZA(),e.TgZ(26,"div",12)(27,"h4",13),e._uU(28,"This website is a GAFAM alternative"),e.qZA(),e.TgZ(29,"p"),e.tHW(30,14),e._UZ(31,"a",15)(32,"a",16),e.N_p(),e.qZA()()()),2&o&&(e.xp6(5),e.pQV(t.instanceName)(t.
1instanceName),e.QtT(4),e.xp6(11),e.Q6J("ngIf",!t.videoUploadDisabled),e.xp6(1),e.Q6J("ngIf",t.requiresApproval),e.xp6(5),e.pQV(t.instanceName),e.QtT(22),e.xp6(10),e.pQV(t.instanceName),e.QtT(30))},dependencies:[C.O5],styles:["h3[_ngcontent-%COMP%]{font-weight:700;font-size:24px}h4[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.why[_ngcontent-%COMP%]{margin-bottom:30px}.callout[_ngcontent-%COMP%]{margin:75px auto 25px;border-width:2px;display:flex}.callout[_ngcontent-%COMP%] .mascot-container[_ngcontent-%COMP%]{position:relative}.callout[_ngcontent-%COMP%] .mascot-container[_ngcontent-%COMP%] .mascot[_ngcontent-%COMP%]{position:absolute;top:-65px}.callout[_ngcontent-%COMP%] .callout-content[_ngcontent-%COMP%]{margin-left:30px}.callout[_ngcontent-%COMP%] .callout-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}@media screen and (max-width: 800px){.callout[_ngcontent-%COMP%]{margin-top:20px}.callout[_ngcontent-%COMP%] .mascot-container[_ngcontent-%COMP%]{display:none}.callout[_ngcontent-%COMP%] .callout-content[_ngcontent-%COMP%]{margin-left:0}}"]});const tt=["lastStep"];function nt(n,o){1&n&&(e.TgZ(0,"div",2)(1,"div",3),e.SDv(2,4),e.qZA()())}function ot(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"cdk-step",37)(1,"my-signup-step-title",38),e.tHW(2,39),e._UZ(3,"div")(4,"strong"),e.N_p(),e.qZA(),e.TgZ(5,"my-register-step-channel",40),e.NdJ("formBuilt",function(r){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onChannelFormBuilt(r))}),e.qZA(),e.TgZ(6,"div",14)(7,"button",23),e._uU(8),e.qZA(),e.TgZ(9,"div",41)(10,"span",42),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.skipChannelCreation())}),e.TgZ(11,"strong"),e.SDv(12,43),e.qZA()(),e.TgZ(13,"div",44),e.SDv(14,45),e.qZA()(),e.TgZ(15,"button",29),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.signup())}),e._UZ(16,"my-signup-label",7),e.qZA()()()}if(2&n){const t=e.oxw(2);e.Q6J("optional",!0)("stepControl",t.formStepChannel)("editable",!t.signupSuccess),e.xp6(5),e.Q6J("videoQuota",t.videoQuota)("instanceName",t.instanceName)("username",t.getUsername()),e.xp6(3),e.Oqu(t.defaultPreviousStepButtonLabel),e.xp6(7),e.Q6J("disabled",!t.formStepChannel||!t.formStepChannel.valid||t.hasSameChannelAndAccountNames()),e.xp6(1),e.Q6J("requiresApproval",t.requiresApproval)}}function it(n,o){1&n&&(e.TgZ(0,"div",46),e._UZ(1,"my-loader",47),e.TgZ(2,"div"),e.SDv(3,48),e.qZA()()),2&n&&(e.xp6(1),e.Q6J("loading",!0))}function rt(n,o){if(1&n&&(e.TgZ(0,"div",49),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.signupError)}}function st(n,o){if(1&n&&e._UZ(0,"my-signup-success-before-email",50),2&n){const t=e.oxw(2);e.Q6J("requiresEmailVerification",t.requiresEmailVerification)("requiresApproval",t.requiresApproval)("instanceName",t.instanceName)}}function _t(n,o){if(1&n&&(e.TgZ(0,"div",51)(1,"button",23),e._uU(2),e.qZA()()),2&n){const t=e.oxw(2);e.xp6(2),e.Oqu(t.defaultPreviousStepButtonLabel)}}function at(n,o){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"h1",5)(2,"strong",6),e._uU(3),e.qZA(),e._uU(4," > "),e._UZ(5,"my-signup-label",7),e.qZA(),e.TgZ(6,"div",8)(7,"my-custom-stepper",9)(8,"cdk-step",10)(9,"my-signup-step-title",11)(10,"strong"),e._UZ(11,"my-signup-label",7),e.qZA(),e.TgZ(12,"div"),e.SDv(13,12),e.qZA()(),e._UZ(14,"my-register-step-about",13),e.TgZ(15,"div",14)(16,"a",15),e.tHW(17,16),e._UZ(18,"strong"),e.N_p(),e.qZA(),e.TgZ(19,"button",17),e._UZ(20,"my-signup-label",7),e.qZA()()(),e.TgZ(21,"cdk-step",18)(22,"my-signup-step-title",19),e.tHW(23,20),e._UZ(24,"strong")(25,"div"),e.N_p(),e.qZA(),e.TgZ(26,"my-instance-about-accordion",21),e.NdJ("init",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.onInstanceAboutAccordionInit(r))}),e.qZA(),e.TgZ(27,"my-register-step-terms",22),e.NdJ("formBuilt",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.onTermsFormBuilt(r))})("termsClick",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.onTermsClick())})("codeOfConductClick",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.onCodeOfConductClick())}),e.qZA(),e.TgZ(28,"div",14)(29,"button",23),e._uU(30),e.qZA(),e.TgZ(31,"button",24),e._uU(32),e.qZA()()(),e.TgZ(33,"cdk-step",25)(34,"my-signup-step-title",26),e.tHW(35,27),e._UZ(36,"strong")(37,"div"),e.N_p(),e.qZA(),e.TgZ(38,"my-register-step-user",28),e.NdJ("formBuilt",function(r){e.CHM(t);const s=e.oxw();return e.KtG(s.onUserFormBuilt(r))}),e.qZA(),e.TgZ(39,"div",14)(40,"button",23),e._uU(41),e.qZA(),e.TgZ(42,"button",29),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.videoUploadDisabled&&r.signup())}),e._uU(43),e.qZA()()(),e.YNc(44,ot,17,9,"cdk-step",30),e.TgZ(45,"cdk-step",31,32),e.YNc(47,it,4,1,"div",33),e.YNc(48,rt,2,1,"div",34),e.YNc(49,st,1,3,"my-signup-success-before-email",35),e.YNc(50,_t,3,1,"div",36),e.qZA()()(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(3),e.Oqu(t.instanceName),e.xp6(2),e.Q6J("requiresApproval",t.requiresApproval),e.xp6(3),e.Q6J("editable",!t.signupSuccess),e.xp6(3),e.Q6J("requiresApproval",t.requiresApproval),e.xp6(2),e.pQV(t.instanceName),e.QtT(13),e.xp6(1),e.Q6J("requiresApproval",t.requiresApproval)("videoUploadDisabled",t.videoUploadDisabled),e.xp6(6),e.Q6J("requiresApproval",t.requiresApproval),e.xp6(1),e.Q6J("stepControl",t.formStepTerms)("editable",!t.signupSuccess),e.xp6(4),e.pQV(t.instanceName),e.QtT(23),e.xp6(1),e.Q6J("displayInstanceName",!1)("panels",t.instanceInformationPanels),e.xp6(1),e.Q6J("hasCodeOfConduct",!!t.aboutHtml.codeOfConduct)("minimumAge",t.minimumAge)("instanceName",t.instanceName)("requiresApproval",t.requiresApproval),e.xp6(3),e.Oqu(t.defaultPreviousStepButtonLabel),e.xp6(1),e.Q6J("disabled",!t.formStepTerms||!t.formStepTerms.valid),e.xp6(1),e.Oqu(t.defaultNextStepButtonLabel),e.xp6(1),e.Q6J("stepControl",t.formStepUser)("editable",!t.signupSuccess),e.xp6(
15),e.Q6J("videoUploadDisabled",t.videoUploadDisabled)("requiresEmailVerification",t.requiresEmailVerification),e.xp6(3),e.Oqu(t.defaultPreviousStepButtonLabel),e.xp6(1),e.Q6J("disabled",!t.formStepUser||!t.formStepUser.valid),e.xp6(1),e.Oqu(t.stepUserButtonLabel),e.xp6(1),e.Q6J("ngIf",!t.videoUploadDisabled),e.xp6(1),e.Q6J("editable",!1),e.xp6(2),e.Q6J("ngIf",!t.requiresApproval&&!t.signupSuccess&&!t.signupError),e.xp6(1),e.Q6J("ngIf",t.signupError),e.xp6(1),e.Q6J("ngIf",t.signupSuccess),e.xp6(1),e.Q6J("ngIf",t.signupError)}}class q{constructor(o,t,i,r){this.route=o,this.authService=t,this.signupService=i,this.hooks=r,this.signupSuccess=!1,this.aboutHtml={codeOfConduct:""},this.instanceInformationPanels={codeOfConduct:!0,terms:!0,administrators:!1,features:!1,moderation:!1},this.defaultPreviousStepButtonLabel="Go to the previous step",this.defaultNextStepButtonLabel="Go to the next step",this.stepUserButtonLabel=this.defaultNextStepButtonLabel,this.signupDisabled=!1}get requiresEmailVerification(){return this.serverConfig.signup.requiresEmailVerification}get requiresApproval(){return this.serverConfig.signup.requiresApproval}get minimumAge(){return this.serverConfig.signup.minimumAge}get instanceName(){return this.serverConfig.instance.name}ngOnInit(){this.serverConfig=this.route.snapshot.data.serverConfig,!1!==this.serverConfig.signup.allowed&&!1!==this.serverConfig.signup.allowedForCurrentIP?(this.videoQuota=this.serverConfig.user.videoQuota,this.videoUploadDisabled=0===this.videoQuota,this.stepUserButtonLabel=this.videoUploadDisabled?"Signup":this.defaultNextStepButtonLabel,this.hooks.runAction("action:signup.register.init","signup")):this.signupDisabled=!0}hasSameChannelAndAccountNames(){return this.getUsername()===this.getChannelName()}getUsername(){if(this.formStepUser)return this.formStepUser.value.username}getChannelName(){if(this.formStepChannel)return this.formStepChannel.value.name}onTermsFormBuilt(o){this.formStepTerms=o}onUserFormBuilt(o){this.formStepUser=o}onChannelFormBuilt(o){this.formStepChannel=o}onTermsClick(){this.accordion&&this.accordion.toggle("terms")}onCodeOfConductClick(){this.accordion&&this.accordion.toggle("code-of-conduct")}onInstanceAboutAccordionInit(o){this.accordion=o.accordion,this.aboutHtml=o.aboutHtml}skipChannelCreation(){this.formStepChannel.reset(),this.lastStep.select(),this.signup()}signup(){var o=this;return(0,ue.Z)(function*(){var t,i,r;o.signupError=void 0;const s=o.formStepTerms.value,d=o.formStepUser.value,u=null===(t=o.formStepChannel)||void 0===t?void 0:t.value,p=null!==(i=o.formStepChannel)&&void 0!==i&&null!==(r=i.value)&&void 0!==r&&r.name?{name:null==u?void 0:u.name,displayName:null==u?void 0:u.displayName}:void 0,E=yield o.hooks.wrapObject({username:d.username,password:d.password,email:d.email,displayName:d.displayName,registrationReason:s.registrationReason,channel:p},"signup","filter:api.signup.registration.create.params");(o.requiresApproval?o.signupService.requestSignup(E):o.signupService.directSignup(E)).subscribe({next:()=>{o.requiresEmailVerification||o.requiresApproval?o.signupSuccess=!0:o.autoLogin(E)},error:m=>{o.signupError=m.message}})})()}autoLogin(o){this.authService.login({username:o.username,password:o.password}).subscribe({next:()=>{this.signupSuccess=!0},error:t=>{this.signupError=t.message}})}}q.\u0275fac=function(o){return new(o||q)(e.Y36(X.gz),e.Y36(Q.e8),e.Y36(H.O),e.Y36(ge.n))},q.\u0275cmp=e.Xpm({type:q,selectors:[["my-register"]],viewQuery:function(o,t){if(1&o&&e.Gf(tt,5),2&o){let i;e.iGM(i=e.CRH())&&(t.lastStep=i.first)}},decls:3,vars:2,consts:function(){let n,o,t,i,r,s,d,u,p,E,c,m,te,ne;return n="Signup is not enabled on this instance.",o="About",t="on " + "\ufffd0\ufffd" + "",i="" + "\ufffd#18\ufffd" + "I already have an account" + "\ufffd/#18\ufffd" + ", I log in ",r="Terms",s="" + "\ufffd#24\ufffd" + "Terms" + "\ufffd/#24\ufffd" + "" + "\ufffd#25\ufffd" + "of " + "\ufffd0\ufffd" + "" + "\ufffd/#25\ufffd" + "",d="My account",u="" + "\ufffd#36\ufffd" + "Setup" + "\ufffd/#36\ufffd" + "" + "\ufffd#37\ufffd" + "your account" + "\ufffd/#37\ufffd" + "",p="My channel",E="Done!",c="" + "\ufffd#3\ufffd" + "Create" + "\ufffd/#3\ufffd" + "" + "\ufffd#4\ufffd" + "your first channel" + "\ufffd/#4\ufffd" + "",m="I don't want to create a channel",te="You will be able to create a channel later",ne="PeerTube is creating your account...",[["class","margin-content signup-disabled",4,"ngIf"],[4,"ngIf"],[1,"margin-content","signup-disabled"],[1,"alert","alert-warning"],n,[1,"title-page-v2"],[1,"underline-orange"],[3,"requiresApproval"],[1,"register-content"],["linear",""],["label",o,3,"editable"],["mascotImageName","about"],t,[3,"requiresApproval","videoUploadDisabled"],[1,"step-buttons"],["routerLink","/login",1,"skip-step","underline-orange"],i,["cdkStepperNext",""],["label",r,3,"stepControl","editable"],["mascotImageName","terms"],s,["pluginScope","signup","pluginHook","filter:signup.instance-about-plugin-
1panels.create.result",3,"displayInstanceName","panels","init"],[3,"hasCodeOfConduct","minimumAge","instanceName","requiresApproval","formBuilt","termsClick","codeOfConductClick"],["cdkStepperPrevious",""],["cdkStepperNext","",3,"disabled"],["label",d,3,"stepControl","editable"],["mascotImageName","account"],u,[3,"videoUploadDisabled","requiresEmailVerification","formBuilt"],["cdkStepperNext","",3,"disabled","click"],["label",p,3,"optional","stepControl","editable",4,"ngIf"],["label",E,3,"editable"],["lastStep",""],["class","done-loader",4,"ngIf"],["class","alert alert-danger",4,"ngIf"],[3,"requiresEmailVerification","requiresApproval","instanceName",4,"ngIf"],["class","steps-button",4,"ngIf"],["label",p,3,"optional","stepControl","editable"],["mascotImageName","channel"],c,[3,"videoQuota","instanceName","username","formBuilt"],[1,"skip-step"],["role","button",1,"underline-orange",3,"click"],m,[1,"skip-step-description"],te,[1,"done-loader"],[3,"loading"],ne,[1,"alert","alert-danger"],[3,"requiresEmailVerification","requiresApproval","instanceName"],[1,"steps-button"]]},template:function(o,t){1&o&&(e.TgZ(0,"div"),e.YNc(1,nt,3,0,"div",0),e.YNc(2,at,51,33,"ng-container",1),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",t.signupDisabled),e.xp6(1),e.Q6J("ngIf",!t.signupDisabled))},dependencies:[C.O5,X.rH,pe.R,de.j,Y,re,se,$,V.l,Me.J,h,U,L,Z,w],styles:["my-signup-step-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:700}.signup-disabled[_ngcontent-%COMP%]{padding-top:30vh}.title-page-v2[_ngcontent-%COMP%]{background-color:var(--mainColorVeryLight);margin:0;padding-bottom:10px}my-instance-about-accordion[_ngcontent-%COMP%]{display:block;margin-bottom:30px}.step-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center}.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%]{display:inline-block}@supports (margin-inline-end: 30px){.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%]{margin-inline-end:calc(1.3125rem + .75vw)}@media (min-width: 1200px){.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%]{margin-inline-end:1.875rem}}}@supports not (margin-inline-end: 30px){.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%]{margin-right:calc(1.3125rem + .75vw)}@media (min-width: 1200px){.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%]{margin-right:1.875rem}}}.step-buttons[_ngcontent-%COMP%] .skip-step-description[_ngcontent-%COMP%]{margin-top:5px;font-size:14px}.step-buttons[_ngcontent-%COMP%] .underline-orange[_ngcontent-%COMP%]{color:var(--mainForegroundColor)}.step-buttons[_ngcontent-%COMP%] .underline-orange[_ngcontent-%COMP%]:hover{opacity:.8}.step-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}@supports (margin-inline-start: auto){.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%], .step-buttons[_ngcontent-%COMP%] button[cdkStepperNext][_ngcontent-%COMP%]{margin-inline-start:auto}}@supports not (margin-inline-start: auto){.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%], .step-buttons[_ngcontent-%COMP%] button[cdkStepperNext][_ngcontent-%COMP%]{margin-left:auto}}@supports (margin-inline-start: 0){.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%] + button[cdkStepperNext][_ngcontent-%COMP%]{margin-inline-start:0}}@supports not (margin-inline-start: 0){.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%] + button[cdkStepperNext][_ngcontent-%COMP%]{margin-left:0}}button[_ngcontent-%COMP%]{height:auto;padding:10px 25px;font-size:18px;line-height:1.2;border:0;font-weight:600;border-radius:3px!important}button[cdkStepperNext][_ngcontent-%COMP%]:focus, button[cdkStepperNext].focus-visible[_ngcontent-%COMP%]{box-shadow:0 0 0 .2rem var(--mainColorLightest)}button[cdkStepperNext][_ngcontent-%COMP%], button[cdkStepperNext][_ngcontent-%COMP%]:active, button[cdkStepperNext][_ngcontent-%COMP%]:focus{color:#fff;background-color:var(--mainColor)}button[cdkStepperNext][_ngcontent-%COMP%]:hover{color:#fff;background-color:var(--mainHoverColor)}button[cdkStepperNext][disabled][_ngcontent-%COMP%], button[cdkStepperNext].disabled[_ngcontent-%COMP%]{cursor:default;color:#fff;background-color:var(--inputBorderColor)}button[cdkStepperNext][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] .feather, button[cdkStepperNext][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] .material, button[cdkStepperNext][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] .misc{color:#fff}button[cdkStepperPrevious][_ngcontent-%COMP%]{background-color:var(--greyBackgroun
1dColor);color:var(--greyForegroundColor)}button[cdkStepperPrevious][_ngcontent-%COMP%]:focus, button[cdkStepperPrevious].focus-visible[_ngcontent-%COMP%]{box-shadow:0 0 0 .2rem #5858580d}button[cdkStepperPrevious][_ngcontent-%COMP%]:hover, button[cdkStepperPrevious][_ngcontent-%COMP%]:active, button[cdkStepperPrevious][_ngcontent-%COMP%]:focus, button[cdkStepperPrevious][disabled][_ngcontent-%COMP%], button[cdkStepperPrevious].disabled[_ngcontent-%COMP%]{color:var(--greyForegroundColor);background-color:var(--greySecondaryBackgroundColor)}button[cdkStepperPrevious][disabled][_ngcontent-%COMP%], button[cdkStepperPrevious].disabled[_ngcontent-%COMP%]{cursor:default}button[cdkStepperPrevious][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] .feather, button[cdkStepperPrevious][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] .material, button[cdkStepperPrevious][_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%] .misc{color:var(--greyForegroundColor)}.done-loader[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column;align-items:center}.done-loader[_ngcontent-%COMP%] my-loader[_ngcontent-%COMP%]{margin-bottom:20px}@media screen and (max-width: 800px){.step-buttons[_ngcontent-%COMP%]{justify-content:space-between}@supports (margin-inline-start: 0){.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%], .step-buttons[_ngcontent-%COMP%] button[cdkStepperNext][_ngcontent-%COMP%]{margin-inline-start:0}}@supports not (margin-inline-start: 0){.step-buttons[_ngcontent-%COMP%] .skip-step[_ngcontent-%COMP%], .step-buttons[_ngcontent-%COMP%] button[cdkStepperNext][_ngcontent-%COMP%]{margin-left:0}}}"]});const lt=[{path:"",component:q,canActivate:[Q.mJ],data:{meta:{title:"Register"}},resolve:{serverConfig:Q.mI}}];class G{}G.\u0275fac=function(o){return new(o||G)},G.\u0275mod=e.oAB({type:G}),G.\u0275inj=e.cJS({imports:[X.Bz.forChild(lt),X.Bz]});class y{}y.\u0275fac=function(o){return new(o||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[ce.nC,G,_e,ae.o,le.nN]})},40445:(z,O,_)=>{_.d(O,{Is:()=>D,vT:()=>a});var f=_(94650),I=_(36895);const P=new f.OlP("cdk-dir-doc",{providedIn:"root",factory:function N(){return(0,f.f3M)(I.K0)}}),e=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let D=(()=>{class l{constructor(S){this.value="ltr",this.change=new f.vpe,S&&(this.value=function B(l){var T;const S=(null==l?void 0:l.toLowerCase())||"";return"auto"===S&&typeof navigator<"u"&&null!==(T=navigator)&&void 0!==T&&T.language?e.test(navigator.language)?"rtl":"ltr":"rtl"===S?"rtl":"ltr"}((S.body?S.body.dir:null)||(S.documentElement?S.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return l.\u0275fac=function(S){return new(S||l)(f.LFG(P,8))},l.\u0275prov=f.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),a=(()=>{class l{}return l.\u0275fac=function(S){return new(S||l)},l.\u0275mod=f.oAB({type:l}),l.\u0275inj=f.cJS({}),l})()},21281:(z,O,_)=>{_.d(O,{Eq:()=>e,Ig:()=>I,fI:()=>D,su:()=>P});var f=_(94650);function I(a){return null!=a&&"false"!=`${a}`}function P(a,l=0){return function N(a){return!isNaN(parseFloat(a))&&!isNaN(Number(a))}(a)?Number(a):l}function e(a){return Array.isArray(a)?a:[a]}function D(a){return a instanceof f.SBq?a.nativeElement:a}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.