Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/initial-setup-wizard/63.796883f0677aa245.min.js

"use strict";(self.webpackChunkinitial_setup_wizard=self.webpackChunkinitial_setup_wizard||[]).push([[63],{8063:(A,O,r)=>{r.r(O),r.d(O,{LegalModule:()=>w});var _=r(6895),n=r(6738),P=r(6154),h=r(269),d=r(537),s=r(2777),a=r(2466),p=r(5419),M=r(208),b=r(1481),l=r(4719);const m=["content"];function f(o,i){if(1&o){const t=n.EpF();n.TgZ(0,"li")(1,"a",15),n.NdJ("click",(function(c){return n.CHM(t),n.oxw().scrollTo(c)})),n._UZ(2,"i",16),n._uU(3),n.qZA()()}if(2&o){const t=i.$implicit;n.xp6(1),n.MGl("href","#",t.file,"",n.LSH),n.xp6(2),n.Oqu(t.title)}}function u(o,i){if(1&o&&(n.TgZ(0,"div",17),n._UZ(1,"div",18),n.qZA()),2&o){const t=i.$implicit;n.xp6(1),n.Q6J("innerHTML",t.content,n.oJD)("id",t.file)}}function x(o,i){if(1&o){const t=n.EpF();n.TgZ(0,"button",19),n.NdJ("click",(function(){return n.CHM(t),n.oxw().scrollDown()})),n._uU(1),n._UZ(2,"i",20),n.qZA()}if(2&o){const t=n.oxw();n.Q6J("@fadeInUp",void 0)("@fadeOutDown",void 0),n.xp6(1),n.hij(" ",t.locale.maketext("Scroll For More")," ")}}function v(o,i){if(1&o){const t=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",(function(){return n.CHM(t),n.oxw().scrollTop()})),n._uU(1),n._UZ(2,"i",22),n.qZA()}if(2&o){const t=n.oxw();n.Q6J("@fadeInUp",void 0)("@fadeOutDown",void 0),n.xp6(1),n.hij(" ",t.locale.maketext("Top")," ")}}let T=(()=>{class o extends s.h8{constructor(t,e,c,g,L,J,y){super(t),this.locale=t,this.page=e,this.whmapi=c,this.router=g,this.window=L,this.agreements=[],this.scrolled=!1,this.loading=!1,this.accepted=y.control(!1),this._subscription=this.accepted.valueChanges.subscribe((C=>this.canContinue=C)),this.agreements=this.page.agreements.map((C=>({...C,content:J.bypassSecurityTrustHtml(C.content)})))}scrollTo(t){t.preventDefault();let c=t.target.getAttribute("href").replace("#","");document.getElementById(c).scrollIntoView({behavior:"smooth"})}scrollDown(){this.content.nativeElement.scrollBy({top:350,behavior:"smooth"})}scrollTop(){this.content.nativeElement.scrollTo({top:0,behavior:"smooth"})}print(){this.window.print()}next(){let t=new P.r(P.N.JsonApi,{method:"accept_eula"});this.loading=!0,this.whmapi.get(t).pipe((0,d.x)((()=>this.loading=!1))).subscribe((()=>{this.page.has_accepted_legal_agreements=!0,this.router.navigate(["server-setup"])}))}cancel(){this.window.location.href="/logout"}ngOnDestroy(){this._subscription.unsubscribe()}onScroll(t){this.scrolled=this.content?.nativeElement?.scrollTop>300}}return o.ɵfac=function(t){return new(t||o)(n.Y36(h.g),n.Y36(s.qX),n.Y36(p.A4),n.Y36(M.F0),n.Y36(Window),n.Y36(b.H7),n.Y36(l.qu))},o.ɵcmp=n.Xpm({type:o,selectors:[["isw-legal"]],viewQuery:function(t,e){if(1&t&&n.Gf(m,5,n.SBq),2&t){let c;n.iGM(c=n.CRH())&&(e.content=c.first)}},features:[n.qOj],decls:20,vars:8,consts:[[1,"initial-setup-content-container","inner-container"],["id","table-of-contents"],[4,"ngFor","ngForOf"],[1,"scrollbox"],[1,"content",3,"scroll"],["content",""],["class","agreement-content",4,"ngFor","ngForOf"],["id","scroll-for-more","class","btn more no-print",3,"click",4,"ngIf"],["id","top","class","btn top no-print",3,"click",4,"ngIf"],[1,"no-print"],[1,"cp-checkbox"],["id","accept-agreements","type","checkbox",3,"formControl"],["id","print-btn",1,"btn","btn-text","float-right",3,"click"],["aria-hidden","true",1,"ri-printer-line"],[3,"innerHTML"],[3,"href","click"],[1,"ri-file-text-line"],[1,"agreement-content"],[3,"innerHTML","id"],["id","scroll-for-more",1,"btn","more","no-print",3,"click"],["aria-hidden","true",1,"ri-arrow-down-line"],["id","top",1,"btn","top","no-print",3,"click"],["aria-hidden","true",1,"ri-arrow-up-line"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0)(1,"h1"),n._uU(2),n.qZA(),n.TgZ(3,"div",1)(4,"ul"),n.YNc(5,f,4,2,"li",2),n.qZA()(),n.TgZ(6,"div",3)(7,"div",4,5),n.NdJ("scroll",(function(g){return e.onScroll(g)})),n.YNc(9,u,2,2,"div",6),n.qZA(),n.YNc(10,x,3,3,"button",7),n.YNc(11,v,3,3,"button",8),n.qZA(),n.TgZ(12,"div",9)(13,"label",10),n._UZ(14,"input",11),n.TgZ(15,"span"),n._uU(16),n.qZA()(),n.TgZ(17,"button",12),n.NdJ("click",(function(){return e.print()})),n._UZ(18,"i",13)(19,"span",14),n.qZA()()()),2&t&&(n.xp6(2),n.Oqu(e.locale.maketext("Legal Documents")),n.xp6(3),n.Q6J("ngForOf",e.agreements),n.xp6(4),n.Q6J("ngForOf",e.agreements),n.xp6(1),n.Q6J("ngIf",!e.scrolled),n.xp6(1),n.Q6J("ngIf",e.scrolled),n.xp6(3),n.Q6J("formControl",e.accepted),n.xp6(2),n.Oqu(e.locale.maketext("I have read and agree to all the legal documents listed above.")),n.xp6(3),n.Q6J("innerHTML",e.locale.maketext("Print or Save"),n.oJD))},directives:[_.sg,_.O5,l.Wl,l.JJ,l.oH],styles:['.btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{vertical-align:middle;font-size:1.3em}html[dir=ltr][_ngcontent-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-left:var(--cp-spacer-2)}html[dir=rtl][_ngcontent-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .btn.icon-right[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:var(--cp-spacer-2)}html[dir=ltr][_ngcontent-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:var(--cp-spacer-2)}html[dir=rtl][_ngcontent-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .btn.icon-left[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-left:var(--cp-spacer-2)}.btn.btn-text[_ngcontent-%COMP%]{border:none;padding:0;background-color:transparent}.inner-container[_ngcontent-%COMP%]{max-width:60em}html[dir=ltr][_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .inner-container[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .inner-container[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .inner-container[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .inner-container[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .inner-container[_ngcontent-%COMP%]{text-align:left}html[dir=rtl][_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .inner-container[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .inner-container[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .inner-container[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .inner-container[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .inner-container[_ngcontent-%COMP%]{text-align:right}#table-of-contents[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{font-size:.8em;list-style:none;padding:0}#table-of-contents[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:var(--cp-spacer-1) 0}.cp-checkbox[_ngcontent-%COMP%]{font-weight:400}html[dir=ltr][_ngcontent-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-right:var(--cp-spacer-1)}html[dir=rtl][_ngcontent-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .cp-checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-left:var(--cp-spacer-1)}.scrollbox[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;bottom:0;width:100%;height:20em;background:linear-gradient(transparent,#f7f8fa);pointer-events:none}.scrollbox[_ngcontent-%COMP%]{position:relative;margin-bottom:1.5em}.scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{border-radius:25px;position:absolute;border:none;bottom:1em;box-shadow:0 3px 10px gray;background-color:#fff;z-index:1}html[dir=ltr][_ngcontent-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{transform:translate(-50%);left:50%}html[dir=rtl][_ngcontent-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{transform:translate(50%);right:50%}.scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%]{min-width:initial;transform:translate(0)}html[dir=ltr][_ngcontent-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%]{right:0;left:initial}html[dir=rtl][_ngcontent-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .scrollbox[_ngcontent-%COMP%]   .btn.top[_ngcontent-%COMP%]{left:0;right:initial}html[dir=ltr][_ngcontent-%COMP%]   .float-right[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .float-right[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .float-right[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .float-right[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .float-right[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .float-right[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .float-right[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%]   .float-right[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .float-right[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .float-right[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .float-right[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .float-right[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .float-right[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .float-right[_ngcontent-%COMP%]{float:left}'],data:{animation:[a.lM,a.eu]}}),o})();var k=r(348);const Z=[{path:"",component:T,data:{animation:"Legal"}}];let w=(()=>{class o{}return o.ɵfac=function(t){return new(t||o)},o.ɵmod=n.oAB({type:o}),o.ɵinj=n.cJS({imports:[[_.ez,l.UX,M.Bz.forChild(Z),k.m],M.Bz]}),o})()}}]);
Back to Directory File Manager