Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/initial-setup-wizard/main.b87944e14be8a09a.min.js
"use strict";(self.webpackChunkinitial_setup_wizard=self.webpackChunkinitial_setup_wizard||[]).push([[179],{2466:(p,f,i)=>{i.d(f,{Ji:()=>g,NY:()=>t,Pd:()=>_,U6:()=>M,eu:()=>h,iM:()=>d,lM:()=>m,qw:()=>c});var o=i(7340);const t=(0,o.X$)("fadeInShrink",[(0,o.eR)(":enter",[(0,o.oB)({opacity:0,transform:"scale(1.3)"}),(0,o.jt)("0.5s ease-in-out",(0,o.oB)({opacity:1,transform:"scale(1)"}))])]),g=(0,o.X$)("fadeIn",[(0,o.eR)(":enter",[(0,o.oB)({opacity:0}),(0,o.jt)("2s 0.3s ease-in-out",(0,o.oB)({opacity:1}))])]),h=(0,o.X$)("fadeInUp",[(0,o.eR)(":enter",[(0,o.oB)({opacity:0,transform:"translate(-50%, 50%)"}),(0,o.jt)("0.3s ease-in-out",(0,o.oB)({opacity:1,transform:"translate(-50%, 0)"}))])]),m=(0,o.X$)("fadeOutDown",[(0,o.eR)(":leave",[(0,o.oB)({opacity:1,transform:"translate(-50%, 0)"}),(0,o.jt)("0.3s ease-in-out",(0,o.oB)({opacity:0,transform:"translate(-50%, 50%)"}))])]),c=(0,o.X$)("slideDown",[(0,o.eR)(":enter",[(0,o.oB)({transform:"translateY(-100%)",boxShadow:"0 -2px 0em gray"}),(0,o.jt)(".6s 0.3s ease-in-out",(0,o.oB)({transform:"translateY(0)",boxShadow:"0 2px 1em gray;"}))])]),d=(0,o.X$)("slideUp",[(0,o.eR)(":enter",[(0,o.oB)({transform:"translateY(100%)",boxShadow:"0 2px 0em gray;"}),(0,o.jt)(".6s 0.3s ease-in-out",(0,o.oB)({transform:"translateY(0)",boxShadow:"0 -2px 1em gray;"}))])]),M=(0,o.X$)("fadeOut",[(0,o.eR)(":leave",[(0,o.oB)({opacity:1}),(0,o.jt)("0.3s",(0,o.oB)({opacity:0}))])]),_=(0,o.X$)("routeAnimations",[(0,o.eR)("Intro => Legal",[(0,o.oB)({position:"relative"}),(0,o.IO)(":enter",[(0,o.oB)({opacity:0})]),(0,o.IO)(":leave",[(0,o.oB)({opacity:1}),(0,o.pV)()]),(0,o.ru)([(0,o.IO)(":leave",[(0,o.jt)("0.3s",(0,o.oB)({opacity:0})),(0,o.jt)("0.8s",(0,o.oB)({transform:"translate(-50%, -50%) scale(0)"}))]),(0,o.IO)(":enter",[(0,o.jt)("1s 1s",(0,o.oB)({opacity:1}))])])])])},2777:(p,f,i)=>{i.d(f,{Ho:()=>g,h8:()=>t,qX:()=>o});class o{}class t{constructor(m){this.locale=m,this.continueLabel=this.locale.maketext("Continue"),this.cancelLabel=this.locale.maketext("Cancel [output,amp] Exit"),this.loading=!1}}const g="./initial_setup_wizard1_do"},7293:(p,f,i)=>{var o=i(1481),t=i(6738),g=i(6895),h=i(8746),m=i(348),c=i(2777),d=i(208);let M=(()=>{class n{constructor(e,r){this.page=e,this.router=r}canLoad(e,r){return!this.page.has_accepted_legal_agreements||this.router.parseUrl("trial-activation")}}return n.ɵfac=function(e){return new(e||n)(t.LFG(c.qX),t.LFG(d.F0))},n.ɵprov=t.Yz7({token:n,factory:n.ɵfac,providedIn:"root"}),n})(),_=(()=>{class n{constructor(e,r,s){this.page=e,this.router=r,this.window=s}canLoad(e,r){return(this.page.has_completed_initial_setup||this.page.is_dnsonly)&&this.page.has_accepted_legal_agreements?(this.window.location.href=c.Ho,!1):this.page.has_accepted_legal_agreements?!(!this.page.has_license&&this.page.is_eligible_for_trial)||this.router.parseUrl("trial-activation"):this.router.parseUrl("legal")}}return n.ɵfac=function(e){return new(e||n)(t.LFG(c.qX),t.LFG(d.F0),t.LFG(Window))},n.ɵprov=t.Yz7({token:n,factory:n.ɵfac,providedIn:"root"}),n})();var C=i(6154),P=i(1086),b=i(1709),v=i(4850),O=i(5419);const y=[{path:"",redirectTo:"legal",pathMatch:"full"},{path:"legal",loadChildren:()=>Promise.all([i.e(719),i.e(63)]).then(i.bind(i,8063)).then((n=>n.LegalModule)),canLoad:[M]},{path:"server-setup",loadChildren:()=>Promise.all([i.e(719),i.e(736),i.e(566)]).then(i.bind(i,6566)).then((n=>n.ServerSetupModule)),canLoad:[_]},{path:"trial-activation",loadChildren:()=>Promise.all([i.e(719),i.e(996)]).then(i.bind(i,7996)).then((n=>n.TrialActivationModule)),canLoad:[(()=>{class n{constructor(e,r,s,l){this.page=e,this.router=r,this.whmapi=s,this.window=l}canLoad(e,r){const s=new C.r(C.N.JsonApi,{method:"is_eligible_for_trial"});return this.page.has_accepted_legal_agreements?this.page.has_license?this.page.has_completed_initial_setup||this.page.is_dnsonly?(this.window.location.href=c.Ho,!1):this.router.parseUrl("server-setup"):(0,P.of)(this.page.is_eligible_for_trial).pipe((0,b.zg)((l=>null==l?this.whmapi.post(s).pipe((0,v.U)((X=>!!X.data.is_eligible))):(0,P.of)(l))),(0,v.U)((l=>l||this.router.parseUrl("server-setup")))):this.router.parseUrl("legal")}}return n.ɵfac=function(e){return new(e||n)(t.LFG(c.qX),t.LFG(d.F0),t.LFG(O.A4),t.LFG(Window))},n.ɵprov=t.Yz7({token:n,factory:n.ɵfac,providedIn:"root"}),n})()]}];let w=(()=>{class n{}return n.ɵfac=function(e){return new(e||n)},n.ɵmod=t.oAB({type:n}),n.ɵinj=t.cJS({imports:[[d.Bz.forRoot(y)],d.Bz]}),n})();var x=i(269),u=i(2466),A=i(3753),S=i(3426);const T=["text"];let I=(()=>{class n{constructor(e,r,s,l){this.page=e,this.whmapi=s,this.locale=l,this.onDone=new t.vpe,this.logo=r.bypassSecurityTrustHtml(e.logo)}ngAfterViewInit(){const e=new C.r(C.N.JsonApi,{method:"is_eligible_for_trial"}),r=(0,A.R)(this.animated.nativeElement,"animationend");(0,S.aj)([this.whmapi.post(e),r]).subscribe((([s,l])=>{this.page.is_eligible_for_trial=!!s.data.is_eligible,this.onDone.emit(!0)}))}}return n.ɵfac=function(e){return new(e||n)(t.Y36(c.qX),t.Y36(o.H7),t.Y36(O.A4),t.Y36(x.g))},n.ɵcmp=t.Xpm({type:n,selectors:[["isw-intro"]],viewQuery:function(e,r){if(1&e&&t.Gf(T,5,t.SBq),2&e){let s;t.iGM(s=t.CRH())&&(r.animated=s.first)}},outputs:{onDone:"onDone"},decls:7,vars:3,consts:[["id","intro-section"],[1,"product-logo",3,"innerHTML"],[1,"animated-line"],[1,"platform-of-choice"],["text",""]],template:function(e,r){1&e&&(t.TgZ(0,"div",0)(1,"div"),t._UZ(2,"div",1)(3,"div",2),t.TgZ(4,"p",3,4),t._uU(6),t.qZA()()()),2&e&&(t.xp6(2),t.Q6J("@fadeInShrink",void 0)("innerHTML",r.logo,t.oJD),t.xp6(4),t.hij(" ",r.locale.maketext("The hosting platform of choice.")," "))},styles:['#intro-section[_ngcontent-%COMP%]{position:fixed;top:50%}html[dir=ltr][_ngcontent-%COMP%] #intro-section[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%] #intro-section[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%] #intro-section[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%] #intro-section[_ngcontent-%COMP%], html[dir=ltr] [_nghost-%COMP%] #intro-section[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%] #intro-section[_ngcontent-%COMP%], [dir=ltr] [_nghost-%COMP%] #intro-section[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%)}html[dir=rtl][_ngcontent-%COMP%] #intro-section[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%] #intro-section[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%] #intro-section[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%] #intro-section[_ngcontent-%COMP%], html[dir=rtl] [_nghost-%COMP%] #intro-section[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%] #intro-section[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] #intro-section[_ngcontent-%COMP%]{right:50%;transform:translate(50%,-50%)}.product-logo[_ngcontent-%COMP%]{position:relative;margin:0 0 12px}.platform-of-choice[_ngcontent-%COMP%]{text-align:center;animation:3s ease .5s 1 forwards fade-in;opacity:0;position:relative;z-index:2;will-change:opacity}.animated-line[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;height:2px;width:100%;margin:4px auto;min-width:20em;max-width:470px}.animated-line[_ngcontent-%COMP%]:before{content:"";width:0;height:100%;top:0;position:absolute;will-change:width;animation:.4s ease 2s 1 forwards expand,30s linear 2.4s forwards expand-beyond}html[dir=ltr][_ngcontent-%COMP%] .animated-line[_ngcontent-%COMP%]:before, [dir=ltr][_ngcontent-%COMP%] .animated-line[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:before, html[dir=ltr][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:before, html[dir=ltr] [_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:before, [dir=ltr] [_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:before{left:-7%;background:linear-gradient(270deg,#ff6c2c 0%,#ff6c2c 40%,rgba(255,108,44,0) 100%)}html[dir=rtl][_ngcontent-%COMP%] .animated-line[_ngcontent-%COMP%]:before, [dir=rtl][_ngcontent-%COMP%] .animated-line[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:before, html[dir=rtl][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:before, html[dir=rtl] [_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:before, [dir=rtl] [_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:before{right:-7%;background:linear-gradient(-270deg,#ff6c2c 0%,#ff6c2c 40%,rgba(255,108,44,0) 100%)}.animated-line[_ngcontent-%COMP%]:after{content:"";position:absolute;top:1px;width:0;height:0;box-sizing:border-box;border:0 solid #ff6c2c;border-radius:50%;animation:2s infinite 2.4s forwards blink,30s linear 2.4s 1 forwards track-expand-beyond}html[dir=ltr][_ngcontent-%COMP%] .animated-line[_ngcontent-%COMP%]:after, [dir=ltr][_ngcontent-%COMP%] .animated-line[_ngcontent-%COMP%]:after, [dir=ltr][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:after, html[dir=ltr][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:after, html[dir=ltr] [_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:after, [dir=ltr][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:after, [dir=ltr] [_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:after{left:-7%;transform:translate(-50%,-50%)}html[dir=rtl][_ngcontent-%COMP%] .animated-line[_ngcontent-%COMP%]:after, [dir=rtl][_ngcontent-%COMP%] .animated-line[_ngcontent-%COMP%]:after, [dir=rtl][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:after, html[dir=rtl][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:after, html[dir=rtl] [_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:after, [dir=rtl][_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:after, [dir=rtl] [_nghost-%COMP%] .animated-line[_ngcontent-%COMP%]:after{right:-7%;transform:translate(50%,-50%)}@keyframes expand{0%{width:0}to{width:95%}}@keyframes expand-beyond{0%{width:95%}10%{width:105%}50%{width:115%}to{width:125%}}@keyframes track-expand-beyond{0%{left:88%}10%{left:98%}50%{left:108%}to{left:118%}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes blink{0%,30%,to{border-width:0}15%{border-width:3px}}'],data:{animation:[u.NY]}}),n})();function L(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",(function(){t.CHM(e);const s=t.oxw(2);return null==s.currentStep?null:s.currentStep.cancel()})),t._UZ(1,"span",12),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",null==e.currentStep?null:e.currentStep.cancelLabel,t.oJD)}}function J(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(null==e.currentStep?null:e.currentStep.continueLabel)}}function B(n,a){if(1&n&&(t.TgZ(0,"span",13),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.locale.maketext("Loading"))}}const F=function(n){return{spinner:n}};function G(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"div",2),t._UZ(3,"img",3),t.qZA()(),t.TgZ(4,"div",4)(5,"div",5)(6,"router-outlet",6),t.NdJ("activate",(function(s){return t.CHM(e),t.oxw().setCurrentStep(s)})),t.qZA()()(),t.TgZ(7,"div",7)(8,"div",2),t.YNc(9,L,2,1,"button",8),t.TgZ(10,"button",9),t.NdJ("click",(function(){t.CHM(e);const s=t.oxw();return null==s.currentStep?null:s.currentStep.next()})),t.YNc(11,J,2,1,"span",0),t.YNc(12,B,2,1,"span",10),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("@slideDown",void 0),t.xp6(2),t.Q6J("src",e.whm_logo,t.LSH),t.xp6(1),t.Q6J("@fadeIn",void 0),t.xp6(1),t.Q6J("@routeAnimations",e.getRouteAnimationData()),t.xp6(2),t.Q6J("@slideUp",void 0),t.xp6(2),t.Q6J("ngIf",null==e.currentStep?null:e.currentStep.cancel),t.xp6(1),t.Tol(t.VKq(11,F,null==e.currentStep?null:e.currentStep.loading)),t.Q6J("disabled",!(null!=e.currentStep&&e.currentStep.canContinue)||(null==e.currentStep?null:e.currentStep.loading)),t.xp6(1),t.Q6J("ngIf",!(null!=e.currentStep&&e.currentStep.loading)),t.xp6(1),t.Q6J("ngIf",null==e.currentStep?null:e.currentStep.loading)}}function U(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"isw-intro",14),t.NdJ("onDone",(function(s){return t.CHM(e),t.oxw().setDone(s)})),t.qZA()()}2&n&&t.Q6J("@fadeOut",void 0)}let Y=(()=>{class n{constructor(e,r,s,l){this.contexts=s,this.locale=l,this.done=!1,this.logo=r.bypassSecurityTrustHtml(e.logo),this.whm_logo=e.whm_logo.WhmDarkLg}getRouteAnimationData(){return this.contexts.getContext("primary")?.route?.snapshot?.data?.animation}setCurrentStep(e){this.currentStep=e}setDone(e){this.done=e}}return n.ɵfac=function(e){return new(e||n)(t.Y36(c.qX),t.Y36(o.H7),t.Y36(d.y6),t.Y36(x.g))},n.ɵcmp=t.Xpm({type:n,selectors:[["isw-root"]],decls:2,vars:2,consts:[[4,"ngIf"],[1,"header","no-print"],[1,"_container"],["alt","whm logo","height","50",3,"src"],[1,"_content"],[1,"animation-container"],[3,"activate"],[1,"footer","no-print"],["class","btn btn-cancel no-print","id","cancel",3,"click",4,"ngIf"],["id","continue",1,"btn","btn-primary","no-print",3,"disabled","click"],["style","visibility: hidden",4,"ngIf"],["id","cancel",1,"btn","btn-cancel","no-print",3,"click"],[3,"innerHTML"],[2,"visibility","hidden"],[3,"onDone"]],template:function(e,r){1&e&&(t.YNc(0,G,13,13,"div",0),t.YNc(1,U,2,1,"div",0)),2&e&&(t.Q6J("ngIf",r.done),t.xp6(1),t.Q6J("ngIf",!r.done))},directives:[g.O5,d.lC,I],styles:['.header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;height:4em;padding:var(--cp-spacer-3) 0;background-color:#fff;box-shadow:0 2px 1em #ced4da;z-index:2}.btn.btn-cancel[_ngcontent-%COMP%]{border:0;color:#6c757d;background-color:transparent}.footer[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;padding:var(--cp-spacer-3) 0;background-color:#fff;box-shadow:0 -2px 1em #ced4da;z-index:2}.footer[_ngcontent-%COMP%] ._container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}._content[_ngcontent-%COMP%]{padding-top:var(--cp-spacer-3);padding-bottom:var(--cp-spacer-4)}@keyframes spinner{to{transform:rotate(360deg)}}.spinner[_ngcontent-%COMP%]{position:relative}.spinner[_ngcontent-%COMP%]:before{content:"";box-sizing:border-box;position:absolute;top:50%;width:20px;height:20px;margin-top:-10px;border-radius:50%;border:2px solid #ccc;border-top-color:#fff;animation:spinner .6s linear infinite}html[dir=ltr][_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]:before, [dir=ltr][_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .spinner[_ngcontent-%COMP%]:before, html[dir=ltr][_nghost-%COMP%] .spinner[_ngcontent-%COMP%]:before, html[dir=ltr] [_nghost-%COMP%] .spinner[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .spinner[_ngcontent-%COMP%]:before, [dir=ltr] [_nghost-%COMP%] .spinner[_ngcontent-%COMP%]:before{left:50%;margin-left:-10px}html[dir=rtl][_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]:before, [dir=rtl][_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .spinner[_ngcontent-%COMP%]:before, html[dir=rtl][_nghost-%COMP%] .spinner[_ngcontent-%COMP%]:before, html[dir=rtl] [_nghost-%COMP%] .spinner[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .spinner[_ngcontent-%COMP%]:before, [dir=rtl] [_nghost-%COMP%] .spinner[_ngcontent-%COMP%]:before{right:50%;margin-right:-10px}'],data:{animation:[u.Pd,u.qw,u.iM,u.U6,u.Ji,u.NY]}}),n})();var D=i(529);let R=(()=>{class n{}return n.ɵfac=function(e){return new(e||n)},n.ɵmod=t.oAB({type:n}),n.ɵinj=t.cJS({providers:[O.A4],imports:[[D.JF,g.ez]]}),n})(),Z=(()=>{class n{}return n.ɵfac=function(e){return new(e||n)},n.ɵmod=t.oAB({type:n,bootstrap:[Y]}),n.ɵinj=t.cJS({providers:[{provide:c.qX,useValue:window.PAGE},{provide:g.mr,deps:[c.qX],useFactory:a=>a.pageURL},{provide:Window,useValue:window}],imports:[[R,o.b2,h.PW,w,m.m]]}),n})();i.p=window.MagicRevision,(0,t.G48)(),o.q6().bootstrapModule(Z).catch((n=>console.error(n)))}},p=>{p.O(0,[736],(()=>p(p.s=7293))),p.O()}]);
Back to Directory
File Manager