Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/initial-setup-wizard/582.58efffe9c9f65495.js

"use strict";(self.webpackChunkinitial_setup_wizard=self.webpackChunkinitial_setup_wizard||[]).push([[582],{5582:(R,g,l)=>{l.r(g),l.d(g,{LegalModule:()=>b});var s=l(177),c=l(949),h=l(6381),O=l(980),P=l(9269),d=l(1986),n=l(3953),p=l(3668),m=l(4355),i=l(9417);const u=["stepHeading"];function _(t,C){if(1&t&&(n.j41(0,"li")(1,"a",11),n.nrm(2,"i",12),n.j41(3,"span",13),n.EFF(4),n.k0s()()()),2&t){const o=C.$implicit,e=n.XpG();n.R7$(),n.Y8G("href",o.url,n.B4B),n.BMQ("aria-label",e.locale.maketext("[_1] (opens in a new tab)",o.title)),n.R7$(3),n.JRh(o.title)}}function f(t,C){if(1&t&&(n.j41(0,"div",14),n.EFF(1),n.k0s()),2&t){const o=n.XpG();n.R7$(),n.JRh(o.errorMessage)}}let v=(()=>{class t extends P.p{constructor(o,e,a,r,w,F){super(o),this.locale=o,this.page=e,this.whmapi=a,this.window=r,this.wizardFlow=w,this.agreements=[],this.loading=!1,this.statusMessage="",this.errorMessage="",this.accepted=F.control(!1),this._subscription=this.accepted.valueChanges.subscribe(y=>this.canContinue=y),this.agreements=this.page.agreements}ngAfterViewInit(){this._stepHeading?.nativeElement.focus()}next(){const o=new c.m(c.R.JsonApi,{method:"accept_eula"});this.loading=!0,this.errorMessage="",this.statusMessage=this.locale.maketext("Submitting \u2026"),this.whmapi.get(o).pipe((0,O.j)(()=>this.loading=!1)).subscribe({next:e=>{this.statusMessage="",e.success?this.wizardFlow.navigateToNextStep({hasAcceptedLegalAgreements:!0}):this.errorMessage=this.submitErrorMessage()},error:()=>{this.statusMessage="",this.errorMessage=this.submitErrorMessage()}})}submitErrorMessage(){return this.locale.maketext("An error occurred while submitting your acceptance. Try again.")}cancel(){this.window.location.href="/logout"}ngOnDestroy(){this._subscription.unsubscribe()}static{this.\u0275fac=function(e){return new(e||t)(n.rXU(h.h),n.rXU(p.K),n.rXU(m.gB),n.rXU(Window),n.rXU(d.Pf),n.rXU(i.ze))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["isw-legal"]],viewQuery:function(e,a){if(1&e&&n.GBs(u,5),2&e){let r;n.mGM(r=n.lsd())&&(a._stepHeading=r.first)}},features:[n.Vt3],decls:16,vars:7,consts:[["stepHeading",""],[1,"initial-setup-content-container","legal-container"],["tabindex","-1"],[1,"legal-summary"],["role","list",1,"legal-links"],[4,"ngFor","ngForOf"],[1,"legal-acceptance"],["for","accept-agreements",1,"cp-checkbox"],["id","accept-agreements","type","checkbox",3,"formControl"],["aria-live","polite","aria-atomic","true",1,"legal-status"],["class","legal-error alert alert-danger","role","alert",4,"ngIf"],["target","_blank","rel","noopener noreferrer",3,"href"],["aria-hidden","true",1,"ri-external-link-line"],[1,"legal-link-text"],["role","alert",1,"legal-error","alert","alert-danger"]],template:function(e,a){1&e&&(n.j41(0,"div",1)(1,"h1",2,0),n.EFF(3),n.k0s(),n.j41(4,"p",3),n.EFF(5),n.k0s(),n.j41(6,"ul",4),n.DNE(7,_,5,3,"li",5),n.k0s(),n.j41(8,"div",6)(9,"label",7),n.nrm(10,"input",8),n.j41(11,"span"),n.EFF(12),n.k0s()()(),n.j41(13,"div",9),n.EFF(14),n.k0s(),n.DNE(15,f,2,1,"div",10),n.k0s()),2&e&&(n.R7$(3),n.JRh(a.locale.maketext("Legal Documents")),n.R7$(2),n.SpI(" ",a.locale.maketext("Before you continue, review and accept the following legal agreements. Select each link to view the full document.")," "),n.R7$(2),n.Y8G("ngForOf",a.agreements),n.R7$(3),n.Y8G("formControl",a.accepted),n.R7$(2),n.JRh(a.locale.maketext("I accept the legal terms, conditions, and policies.")),n.R7$(2),n.JRh(a.statusMessage),n.R7$(),n.Y8G("ngIf",a.errorMessage))},dependencies:[s.Sq,s.bT,i.Zm,i.BC,i.l_],styles:['.legal-container[_ngcontent-%COMP%]{max-width:48em}html[dir=ltr][_ngcontent-%COMP%]   .legal-container[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .legal-container[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .legal-container[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .legal-container[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .legal-container[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .legal-container[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .legal-container[_ngcontent-%COMP%]{text-align:left}html[dir=rtl][_ngcontent-%COMP%]   .legal-container[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .legal-container[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .legal-container[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .legal-container[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .legal-container[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .legal-container[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .legal-container[_ngcontent-%COMP%]{text-align:right}.legal-container[_ngcontent-%COMP%]   h1[tabindex="-1"][_ngcontent-%COMP%]:focus{outline:none}.legal-summary[_ngcontent-%COMP%]{margin-bottom:var(--cp-spacer-4);line-height:1.6}.legal-links[_ngcontent-%COMP%]{list-style:none;padding:0;margin-bottom:var(--cp-spacer-4)}.legal-links[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:var(--cp-spacer-2) 0}.legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:1em;text-decoration:none;display:inline-flex;align-items:center}html[dir=ltr][_ngcontent-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:var(--cp-spacer-1)}html[dir=rtl][_ngcontent-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-left:var(--cp-spacer-1)}.legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .legal-link-text[_ngcontent-%COMP%]{text-decoration:none}.legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover   .legal-link-text[_ngcontent-%COMP%], .legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible   .legal-link-text[_ngcontent-%COMP%]{text-decoration:underline}.legal-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--cp-focus-ring-color);outline-offset:2px}.legal-acceptance[_ngcontent-%COMP%]{margin-top:var(--cp-spacer-4);padding-top:var(--cp-spacer-3);border-top:1px solid var(--cp-border-color)}@media (forced-colors: active){.legal-acceptance[_ngcontent-%COMP%]{border-top-color:CanvasText}}.cp-checkbox[_ngcontent-%COMP%]{font-weight:400;display:flex;align-items:flex-start;gap:var(--cp-spacer-2);cursor:pointer}.cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-top:.25em;min-width:1em;min-height:1em}.cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--cp-focus-ring-color);outline-offset:2px}.legal-status[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}']})}}return t})();var M=l(3468),k=l(8658);const x=[{path:"",component:v,data:{animation:"Legal"}}];let b=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({imports:[s.MD,i.X1,M.iI.forChild(x),k.B,M.iI]})}}return t})()}}]);
Back to Directory