Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/initial-setup-wizard/main.096956276e3aeef1.js
"use strict";(self.webpackChunkinitial_setup_wizard=self.webpackChunkinitial_setup_wizard||[]).push([[179],{2466:(p,f,r)=>{r.d(f,{Ji:()=>g,NY:()=>t,Pd:()=>O,U6:()=>M,eu:()=>m,iM:()=>d,lM:()=>C,qw:()=>c});var o=r(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}))])]),m=(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)"}))])]),C=(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}))])]),O=(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,r)=>{r.d(f,{h:()=>t,q:()=>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}}},7293:(p,f,r)=>{var o=r(1481),t=r(6738),g=r(6895),m=r(8746),C=r(348),c=r(2777),d=r(5812);let M=(()=>{class n{constructor(e,i){this.page=e,this.router=i}canLoad(e,i){return!this.page.has_accepted_legal_agreements||this.router.parseUrl("trial-activation")}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(c.q),t.LFG(d.F0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),O=(()=>{class n{constructor(e,i,l){this.page=e,this.router=i,this.window=l}canLoad(e,i){return this.page.has_completed_initial_setup&&this.page.has_accepted_legal_agreements?(this.window.location.href="./initial_setup_wizard1_do",!1):this.page.has_accepted_legal_agreements?!this.page.is_eligible_for_trial||this.router.parseUrl("trial-activation"):this.router.parseUrl("legal")}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(c.q),t.LFG(d.F0),t.LFG(Window))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var h=r(6154),_=r(1086),x=r(1709),v=r(4850),y=r(2868),P=r(5419);const w=[{path:"",redirectTo:"legal",pathMatch:"full"},{path:"legal",loadChildren:()=>Promise.all([r.e(719),r.e(63)]).then(r.bind(r,8063)).then(n=>n.LegalModule),canLoad:[M]},{path:"server-setup",loadChildren:()=>Promise.all([r.e(719),r.e(736),r.e(566)]).then(r.bind(r,6566)).then(n=>n.ServerSetupModule),canLoad:[O]},{path:"trial-activation",loadChildren:()=>Promise.all([r.e(719),r.e(996)]).then(r.bind(r,7996)).then(n=>n.TrialActivationModule),canLoad:[(()=>{class n{constructor(e,i,l){this.page=e,this.router=i,this.whmapi=l}canLoad(e,i){const l=new h.r(h.N.JsonApi,{method:"is_eligible_for_trial"});return this.page.has_accepted_legal_agreements?(0,_.of)(this.page.is_eligible_for_trial).pipe((0,x.zg)(s=>null==s?this.whmapi.post(l).pipe((0,v.U)(Q=>!!Q.data.is_eligible)):(0,_.of)(s)),(0,v.U)(s=>s||this.router.parseUrl("server-setup")),(0,y.b)(console.log)):this.router.parseUrl("legal")}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(c.q),t.LFG(d.F0),t.LFG(P.A4))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()]}];let A=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[d.Bz.forRoot(w)],d.Bz]}),n})();var b=r(269),u=r(2466),S=r(3753),T=r(6053);const I=["text"];let L=(()=>{class n{constructor(e,i,l,s){this.page=e,this.whmapi=l,this.locale=s,this.onDone=new t.vpe,this.logo=i.bypassSecurityTrustHtml(e.logo)}ngAfterViewInit(){const e=new h.r(h.N.JsonApi,{method:"is_eligible_for_trial"}),i=(0,S.R)(this.animated.nativeElement,"animationend");(0,T.aj)([this.whmapi.get(e),i]).subscribe(([l,s])=>{this.page.is_eligible_for_trial=!!l.data.is_eligible,this.onDone.emit(!0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(c.q),t.Y36(o.H7),t.Y36(P.A4),t.Y36(b.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["isw-intro"]],viewQuery:function(e,i){if(1&e&&t.Gf(I,5,t.SBq),2&e){let l;t.iGM(l=t.CRH())&&(i.animated=l.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,i){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",i.logo,t.oJD),t.xp6(4),t.hij(" ",i.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;color:#08193e;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 J(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const l=t.oxw(2);return null==l.currentStep?null:l.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 B(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 F(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 G=function(n){return{spinner:n}};function Y(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(l){return t.CHM(e),t.oxw().setCurrentStep(l)}),t.qZA()()(),t.TgZ(7,"div",7)(8,"div",2),t.YNc(9,J,2,1,"button",8),t.TgZ(10,"button",9),t.NdJ("click",function(){t.CHM(e);const l=t.oxw();return null==l.currentStep?null:l.currentStep.next()}),t.YNc(11,B,2,1,"span",0),t.YNc(12,F,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,G,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(l){return t.CHM(e),t.oxw().setDone(l)}),t.qZA()()}2&n&&t.Q6J("@fadeOut",void 0)}let D=(()=>{class n{constructor(e,i,l,s){this.contexts=l,this.locale=s,this.done=!1,this.logo=i.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.\u0275fac=function(e){return new(e||n)(t.Y36(c.q),t.Y36(o.H7),t.Y36(d.y6),t.Y36(b.g))},n.\u0275cmp=t.Xpm({type:n,selectors:[["isw-root"]],decls:2,vars:2,consts:[[4,"ngIf"],[1,"header","no-print"],[1,"_container"],["alt","whm logo",3,"src"],[1,"_content"],[1,"animation-container"],[3,"activate"],[1,"footer","no-print"],["class","cp-btn cp-btn--cancel no-print","id","cancel",3,"click",4,"ngIf"],["id","continue",1,"cp-btn","cp-btn--primary","no-print",3,"disabled","click"],["style","visibility: hidden",4,"ngIf"],["id","cancel",1,"cp-btn","cp-btn--cancel","no-print",3,"click"],[3,"innerHTML"],[2,"visibility","hidden"],[3,"onDone"]],template:function(e,i){1&e&&(t.YNc(0,Y,13,13,"div",0),t.YNc(1,U,2,1,"div",0)),2&e&&(t.Q6J("ngIf",i.done),t.xp6(1),t.Q6J("ngIf",!i.done))},directives:[g.O5,d.lC,L],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 var(--bs-gray-400);z-index:2}.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 var(--bs-gray-400);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)}.cp-btn[_ngcontent-%COMP%]:disabled{border-color:transparent;color:var(--bs-gray-600)}.cp-btn.cp-btn--cancel[_ngcontent-%COMP%]{border:0;color:var(--bs-gray-600);background-color:transparent}@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 Z=r(529);let R=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[P.A4],imports:[[Z.JF,g.ez]]}),n})(),j=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n,bootstrap:[D]}),n.\u0275inj=t.cJS({providers:[{provide:c.q,useValue:window.PAGE},{provide:g.mr,deps:[c.q],useFactory:a=>a.pageURL},{provide:Window,useValue:window}],imports:[[R,o.b2,m.PW,A,C.m]]}),n})();r.p=window.MagicRevision,(0,t.G48)(),o.q6().bootstrapModule(j).catch(n=>console.error(n))}},p=>{p.O(0,[736],()=>p(p.s=7293)),p.O()}]);
Back to Directory
File Manager