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

"use strict";(self.webpackChunkinitial_setup_wizard=self.webpackChunkinitial_setup_wizard||[]).push([[657],{9657:(L,O,r)=>{r.r(O),r.d(O,{LegalModule:()=>F});var s=r(177),n=r(3953),P=r(949),b=r(6381),m=r(980),a=r(8280),h=r(8278),p=r(4355),_=r(7901),f=r(345),l=r(4341);const u=["content"];function x(o,g){if(1&o){const t=n.RV6();n.j41(0,"li")(1,"a",15),n.bIt("click",function(e){n.eBV(t);const i=n.XpG();return n.Njj(i.scrollTo(e))}),n.nrm(2,"i",16),n.EFF(3),n.k0s()()}if(2&o){const t=g.$implicit;n.R7$(),n.Mz_("href","#",t.file,"",n.B4B),n.R7$(2),n.JRh(t.title)}}function v(o,g){if(1&o&&(n.j41(0,"div",17),n.nrm(1,"div",18),n.k0s()),2&o){const t=g.$implicit;n.R7$(),n.Y8G("innerHTML",t.content,n.npT)("id",t.file)}}function k(o,g){if(1&o){const t=n.RV6();n.j41(0,"button",19),n.bIt("click",function(){n.eBV(t);const e=n.XpG();return n.Njj(e.scrollDown())}),n.EFF(1),n.nrm(2,"i",20),n.k0s()}if(2&o){const t=n.XpG();n.Y8G("@fadeInUp",void 0)("@fadeOutDown",void 0),n.R7$(),n.SpI(" ",t.locale.maketext("Scroll For More")," ")}}function T(o,g){if(1&o){const t=n.RV6();n.j41(0,"button",21),n.bIt("click",function(){n.eBV(t);const e=n.XpG();return n.Njj(e.scrollTop())}),n.EFF(1),n.nrm(2,"i",22),n.k0s()}if(2&o){const t=n.XpG();n.Y8G("@fadeInUp",void 0)("@fadeOutDown",void 0),n.R7$(),n.SpI(" ",t.locale.maketext("Top")," ")}}let R=(()=>{class o extends a.pn{constructor(t,c,e,i,d,M,I){super(t),this.locale=t,this.page=c,this.whmapi=e,this.router=i,this.window=d,this.agreements=[],this.scrolled=!1,this.loading=!1,this.accepted=I.control(!1),this._subscription=this.accepted.valueChanges.subscribe(C=>this.canContinue=C),this.agreements=this.page.agreements.map(C=>({...C,content:M.bypassSecurityTrustHtml(C.content)}))}scrollTo(t){t.preventDefault();let e=t.target.getAttribute("href").replace("#","");document.getElementById(e).scrollIntoView({behavior:"smooth"})}scrollDown(){this.content.nativeElement.scrollBy({top:350,behavior:"smooth"})}scrollTop(){this.content.nativeElement.scrollTo({top:0,behavior:"smooth"})}next(){let t=new P.m(P.R.JsonApi,{method:"accept_eula"});this.loading=!0,this.whmapi.get(t).pipe((0,m.j)(()=>this.loading=!1)).subscribe(()=>{this.page.has_accepted_legal_agreements=!0,this.router.navigate(["trial-activation"])})}cancel(){this.window.location.href="/logout"}ngOnDestroy(){this._subscription.unsubscribe()}onScroll(t){this.scrolled=this.content?.nativeElement?.scrollTop>300}static#n=this.\u0275fac=function(c){return new(c||o)(n.rXU(b.h),n.rXU(a.KL),n.rXU(p.gB),n.rXU(_.Ix),n.rXU(Window),n.rXU(f.up),n.rXU(l.ze))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["isw-legal"]],viewQuery:function(c,e){if(1&c&&n.GBs(u,5,n.aKT),2&c){let i;n.mGM(i=n.lsd())&&(e.content=i.first)}},features:[n.Vt3],decls:20,vars:7,consts:[["content",""],[1,"initial-setup-content-container","inner-container"],[1,"row"],[1,"col-xs-12","col-md-2"],["id","table-of-contents"],[4,"ngFor","ngForOf"],[1,"col-xs-12","col-md-10"],[1,"scrollbox"],[1,"content",3,"scroll"],["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"],[3,"click","href"],[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(c,e){if(1&c){const i=n.RV6();n.j41(0,"div",1)(1,"h1"),n.EFF(2),n.k0s(),n.j41(3,"div",2)(4,"div",3)(5,"div",4)(6,"ul"),n.DNE(7,x,4,3,"li",5),n.k0s()()(),n.j41(8,"div",6)(9,"div",7)(10,"div",8,0),n.bIt("scroll",function(M){return n.eBV(i),n.Njj(e.onScroll(M))}),n.DNE(12,v,2,2,"div",9),n.k0s(),n.DNE(13,k,3,3,"button",10)(14,T,3,3,"button",11),n.k0s(),n.j41(15,"div",12)(16,"label",13),n.nrm(17,"input",14),n.j41(18,"span"),n.EFF(19),n.k0s()()()()()()}2&c&&(n.R7$(2),n.JRh(e.locale.maketext("Legal Documents")),n.R7$(5),n.Y8G("ngForOf",e.agreements),n.R7$(5),n.Y8G("ngForOf",e.agreements),n.R7$(),n.Y8G("ngIf",!e.scrolled),n.R7$(),n.Y8G("ngIf",e.scrolled),n.R7$(3),n.Y8G("formControl",e.accepted),n.R7$(2),n.JRh(e.locale.maketext("I have read and agree to all the legal documents listed above.")))},dependencies:[s.Sq,s.bT,l.Zm,l.BC,l.l_],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:#0000}.inner-container[_ngcontent-%COMP%]{max-width:80em}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}.inner-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{max-height:60vh}#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 85%,#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:[h.rf,h.tE]}})}return o})();var j=r(8658);const w=[{path:"",component:R,data:{animation:"Legal"}}];let F=(()=>{class o{static#n=this.\u0275fac=function(c){return new(c||o)};static#t=this.\u0275mod=n.$C({type:o});static#o=this.\u0275inj=n.G2t({imports:[s.MD,l.X1,_.iI.forChild(w),j.B,_.iI]})}return o})()}}]);
Back to Directory File Manager