Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/initial-setup-wizard/main.0775ee64055413b4.js
"use strict";(self.webpackChunkinitial_setup_wizard=self.webpackChunkinitial_setup_wizard||[]).push([[792],{3668:(v,O,n)=>{n.d(O,{K:()=>l});class l{}},4805:(v,O,n)=>{n.d(O,{I:()=>D});var l=n(3953),t=n(4355),C=n(949),m=n(6802),E=n(7468),c=n(7673),h=n(6354),_=n(9437),o=n(1986);let D=(()=>{class a{constructor(){this.whmApi=(0,l.WQX)(t.gB),this.wizardStateService=(0,l.WQX)(o.IE),this.wizardState=this.wizardStateService.currentState,this.survey=()=>this.wizardState().survey}getSurveyAndUserData(){return(0,E.p)([this.getSurveyData(),this.getSurveyUserScopedData()])}updateSurveyData(e){const p=this.getRequestEntries(e),y=new C.m(C.R.JsonApi,{namespace:"UserData",method:"set_scoped_userdata",arguments:[new m.e("scope","inproductsurvey"),new m.e("json",JSON.stringify(p))]});return this.whmApi.post(y)}sendMixPanelEvent(e){const p=window?.mixpanel;if(!p?.track)return;const{userType:y,serverType:I,isNewUser:T}=this.survey();p.track(e,{user_type:y,server_type:I,new_user:T})}getSurveyUserScopedData(){const e=new C.m(C.R.JsonApi,{namespace:"UserData",method:"get_scoped_userdata",arguments:[new m.e("scope","inproductsurvey")]});return this.whmApi.get(e).pipe((0,h.T)(p=>p.data),(0,_.W)(()=>(0,c.of)({})))}getSurveyData(){const e=new C.m(C.R.JsonApi,{namespace:"InProductSurvey",method:"get_in_product_survey_url"});return this.whmApi.get(e).pipe((0,h.T)(p=>p.data),(0,_.W)(()=>(0,c.of)({})))}getRequestEntries(e){return e?{dismiss_count:0,is_submitted:1}:{last_dismissed:(new Date).toISOString(),dismiss_count:(this.survey().dismissCount||0)+1}}static{this.\u0275fac=function(p){return new(p||a)}}static{this.\u0275prov=l.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()},8933:(v,O,n)=>{n.d(O,{G:()=>l});const l="./initial_setup_wizard1_do"},1986:(v,O,n)=>{n.d(O,{nd:()=>l.n,Pf:()=>_,IE:()=>h.I});var l=n(3549),t=n(3953),C=n(3468),m=function(o){return o.Legal="legal",o.TrialActivation="trial-activation",o.AnalyticsConsent="analytics-consent",o.Survey="survey",o.ServerSetup="server-setup",o}(m||{});const E=[{route:m.Legal,shouldShow:o=>!o.hasAcceptedLegalAgreements},{route:m.TrialActivation,shouldShow:o=>o.hasAcceptedLegalAgreements&&!o.hasLicense&&o.isEligibleForTrial},{route:m.AnalyticsConsent,shouldShow:o=>o.hasAcceptedLegalAgreements&&o.hasLicense&&o.shouldPromptUserAnalyticsConsent&&o.hasAnalyticsPackage&&!o.hasCompletedAnalytics},{route:m.Survey,shouldShow:o=>o.hasAcceptedLegalAgreements&&o.hasLicense&&o.survey.shouldDisplay&&!o.isDnsOnly},{route:m.ServerSetup,shouldShow:o=>o.hasAcceptedLegalAgreements&&o.hasLicense&&!o.hasCompletedServerSetup&&!o.isDnsOnly}];var c=n(8933),h=n(9473);let _=(()=>{class o{constructor(){this.stateService=(0,t.WQX)(h.I),this.window=(0,t.WQX)(Window),this.router=(0,t.WQX)(C.Ix),this.steps=E,this.availableSteps=(0,t.EWP)(()=>{const a=this.stateService.currentState();return this.steps.filter(g=>g.shouldShow(a))}),this.nextStep=(0,t.EWP)(()=>this.availableSteps()[0]||null),this.isWizardComplete=(0,t.EWP)(()=>{const a=this.stateService.currentState(),g=this.availableSteps();return a.isDnsOnly?a.hasAcceptedLegalAgreements&&(!a.shouldPromptUserAnalyticsConsent||a.hasCompletedAnalytics)&&(!a.survey.shouldDisplay||a.survey.isSubmitted):0===g.length}),this.isLastStep=(0,t.EWP)(()=>this.availableSteps().length<=1)}initRouting(){const a=this.nextStep();if(!a)return void this.exitWizard();const g=this.buildFirstNavigationExtras();this.router.navigate([a.route],g)}navigateToNextStep(a){a&&this.stateService.updateState(a);const g=this.nextStep();g?this.router.navigate([g.route]):this.exitWizard()}canAccessRoute(a){return this.availableSteps().some(g=>g.route===a)}getTargetRoute(){return this.nextStep()?.route||null}exitWizard(){this.window.location.href=c.G}getInitialUrlParams(){const a=new URLSearchParams(window.location.search),g={};return a.forEach((e,p)=>g[p]=e),g}buildFirstNavigationExtras(){const a=this.getInitialUrlParams();return 0===Object.keys(a).length?{}:{queryParams:a}}static{this.\u0275fac=function(g){return new(g||o)}}static{this.\u0275prov=t.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})()},3549:(v,O,n)=>{n.d(O,{n:()=>T});var l=n(949),t=n(6381),C=n(8810),m=n(7468),E=n(7673),c=n(1413),h=n(8141),_=n(9437),o=n(1397),D=n(6354),a=n(4805),g=n(3953),e=n(4355),p=n(3668),y=n(3468),I=n(9473);let T=(()=>{class b{get email(){return this._email}get returnURL(){return this.window.location.protocol+"//"+this.window.location.host+this.window.location.pathname}constructor(U,x,L,B,F,j,W){this.whmapi=U,this.locale=x,this.window=L,this.page=B,this.router=F,this.surveyService=j,this.wizardStateService=W,this._verificationFailureRegex=/^X::EmailNotVerified/,this.throwWhmApiError=(0,h.M)(P=>{if(P.failed)throw P.errors[0]}),this.handleError=P=>(0,_.W)(u=>(this.errorSub.next(P),(0,C.$)(u))),this.handleVerificationError=P=>(0,h.M)(u=>{if(this._verificationFailureRegex.test(u.data.type))throw P&&P(),u.data.type}),this.getLoginURL=()=>{const P=new l.m(l.R.JsonApi,{method:"get_login_url",arguments:[{name:"provider",value:"cPStore"},{name:"url_after_login",value:this.returnURL}]});return this.whmapi.post(P)},this.validateToken=P=>{const u=this.locale.maketext("The system failed to authenticate. Please try again"),w=new l.m(l.R.JsonApi,{method:"validate_login_token",arguments:[{name:"provider",value:"cPStore"},{name:"url_after_login",value:this.returnURL},{name:"login_token",value:P}]});return this.whmapi.post(w).pipe(this.throwWhmApiError,this.handleError(u),(0,h.M)(f=>{this.access_token=f.data[0].access_token,this.refresh_token=f.data[0].refresh_token}))},this.acquireTrialLicense=(P={})=>{let u,w=this.locale.maketext("The system could not activate the trial license.");const f=new l.m(l.R.JsonApi,{method:"purchase_a_trial",arguments:[{name:"provider",value:"cPStore"},{name:"login_token",value:this.access_token},{name:"checkout_args",value:P}],config:{json:!0}});return P.verification_code?w=this.locale.maketext("The verification code was incorrect. Please try again."):u=()=>this.router.navigate(["trial-activation","email-verification"]),this.whmapi.post(f).pipe((0,h.M)(A=>this._email=A?.data?.detail?.data?.email),this.handleVerificationError(u),this.throwWhmApiError,this.handleError(w))},this.updateLicense=()=>{const u=this.locale.maketext("The system failed to update the license on your cPanel [output,amp] WHM server. [output,url,_1,Fix License File Errors]",this.window.location.protocol+this.window.location.hostname+this.page.cp_security_token+"../../scripts10/license_error"),w=new l.m(l.R.JsonApi,{method:"run_cpkeyclt",arguments:[{name:"force",value:"1"}]});return this.whmapi.post(w).pipe(this.throwWhmApiError,this.handleError(u),(0,o.Z)(f=>(0,m.p)([(0,E.of)(f),this.surveyService.getSurveyAndUserData()])),(0,h.M)(([f,[A,K]])=>{this.page.has_license=f.success,this.page.surveyData=A,this.page.userSurveyScopeData=K,this.wizardStateService.syncStateToPageData()}),(0,D.T)(([f])=>f))},this.errorSub=new c.B,this.errormsg$=this.errorSub.asObservable()}static{this.\u0275fac=function(x){return new(x||b)(g.KVO(e.gB),g.KVO(t.h),g.KVO(Window),g.KVO(p.K),g.KVO(y.Ix),g.KVO(a.I),g.KVO(I.I))}}static{this.\u0275prov=g.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}}return b})()},9473:(v,O,n)=>{n.d(O,{I:()=>C});var l=n(3953),t=n(3668);let C=(()=>{class m{constructor(){this.page=(0,l.WQX)(t.K),this.state=(0,l.vPA)({survey:{}}),this.currentState=this.state.asReadonly()}updateState(c){this.state.update(h=>({...h,...c}))}syncStateToPageData(){this.state.set({hasAcceptedLegalAgreements:!!this.page.has_accepted_legal_agreements,hasLicense:!!this.page.has_license,isEligibleForTrial:!!this.page.is_eligible_for_trial,hasCompletedAnalytics:!!this.page.has_completed_analytics,hasAnalyticsPackage:!!this.page.has_analytics_package,shouldPromptUserAnalyticsConsent:!!this.page.should_prompt_user_analytics_consent,hasCompletedServerSetup:!!this.page.has_completed_initial_setup,hasCompletedInitialSetup:!!this.page.has_completed_initial_setup&&!Number(this.page.surveyData.display),isDnsOnly:!!this.page.is_dnsonly,survey:this.formatRawSurveyData({...this.page.surveyData,...this.page.userSurveyScopeData})})}formatRawSurveyData(c){return{shouldDisplay:!!Number(c.display),dismissCount:Number(c.dismiss_count)||0,isSubmitted:!!Number(c.is_submitted),origin:this.getSurveyOrigin(c.link),isNewUser:!!c.new_user,lastDismissed:c.last_dismissed,maxDismiss:c.max_dismiss,userType:c.user_type,submitEvent:c.submit_event,serverType:c.server_type,link:c.link}}getSurveyOrigin(c){if(!c)return null;const{hostname:h}=new URL(c),_=h.split(".");return _.length>=2?_.slice(-2).join("."):h}static{this.\u0275fac=function(h){return new(h||m)}}static{this.\u0275prov=l.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}}return m})()},1493:(v,O,n)=>{var l=n(345),t=n(3953),C=n(177),m=n(728),E=n(8658),c=n(3668),h=n(3468),_=n(1986);let o=(()=>{class i{constructor(){this.flowService=(0,t.WQX)(_.Pf),this.router=(0,t.WQX)(h.Ix)}canActivate(r,s){const d=r.routeConfig?.path??"";if(this.flowService.isWizardComplete())return this.flowService.exitWizard(),!1;if(this.flowService.canAccessRoute(d))return!0;const M=this.flowService.getTargetRoute();return M?this.router.parseUrl(M):(this.flowService.exitWizard(),!1)}static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();const D=[{path:"",redirectTo:"legal",pathMatch:"full"},{path:"legal",loadChildren:()=>Promise.all([n.e(417),n.e(76),n.e(582)]).then(n.bind(n,5582)).then(i=>i.LegalModule),canActivate:[o]},{path:"server-setup",loadChildren:()=>Promise.all([n.e(417),n.e(410),n.e(76),n.e(486)]).then(n.bind(n,486)).then(i=>i.ServerSetupModule),canActivate:[o]},{path:"trial-activation",loadChildren:()=>Promise.all([n.e(417),n.e(76),n.e(106)]).then(n.bind(n,5106)).then(i=>i.TrialActivationModule),canActivate:[o]},{path:"survey",loadChildren:()=>Promise.all([n.e(417),n.e(410),n.e(390),n.e(76),n.e(109)]).then(n.bind(n,2109)).then(i=>i.SurveyModule),canActivate:[o]},{path:"analytics-consent",loadChildren:()=>Promise.all([n.e(417),n.e(410),n.e(390),n.e(588)]).then(n.bind(n,9588)).then(i=>i.AnalyticsConsentModule),canActivate:[o]}];let a=(()=>{class i{static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=t.G2t({imports:[h.iI.forRoot(D,{initialNavigation:"disabled"}),h.iI]})}}return i})();var g=n(6381),e=n(9969);const p=(0,e.hZ)("fadeInShrink",[(0,e.kY)(":enter",[(0,e.iF)({opacity:0,transform:"scale(1.3)"}),(0,e.i0)("0.5s ease-in-out",(0,e.iF)({opacity:1,transform:"scale(1)"}))])]),y=(0,e.hZ)("fadeIn",[(0,e.kY)(":enter",[(0,e.iF)({opacity:0}),(0,e.i0)("2s 0.3s ease-in-out",(0,e.iF)({opacity:1}))])]),b=((0,e.hZ)("fadeInUp",[(0,e.kY)(":enter",[(0,e.iF)({opacity:0,transform:"translate(-50%, 50%)"}),(0,e.i0)("0.3s ease-in-out",(0,e.iF)({opacity:1,transform:"translate(-50%, 0)"}))])]),(0,e.hZ)("fadeOutDown",[(0,e.kY)(":leave",[(0,e.iF)({opacity:1,transform:"translate(-50%, 0)"}),(0,e.i0)("0.3s ease-in-out",(0,e.iF)({opacity:0,transform:"translate(-50%, 50%)"}))])]),(0,e.hZ)("slideDown",[(0,e.kY)(":enter",[(0,e.iF)({transform:"translateY(-100%)",boxShadow:"0 -2px 0em gray"}),(0,e.i0)(".6s 0.3s ease-in-out",(0,e.iF)({transform:"translateY(0)",boxShadow:"0 2px 1em gray;"}))])])),G=(0,e.hZ)("slideUp",[(0,e.kY)(":enter",[(0,e.iF)({transform:"translateY(100%)",boxShadow:"0 2px 0em gray;"}),(0,e.i0)(".6s 0.3s ease-in-out",(0,e.iF)({transform:"translateY(0)",boxShadow:"0 -2px 1em gray;"}))])]),U=(0,e.hZ)("fadeOut",[(0,e.kY)(":leave",[(0,e.iF)({opacity:1}),(0,e.i0)("0.3s",(0,e.iF)({opacity:0}))])]),x=(0,e.hZ)("routeAnimations",[(0,e.kY)("Intro => Legal",[(0,e.iF)({position:"relative"}),(0,e.P)(":enter",[(0,e.iF)({opacity:0})]),(0,e.P)(":leave",[(0,e.iF)({opacity:1}),(0,e.MA)()]),(0,e.Os)([(0,e.P)(":leave",[(0,e.i0)("0.3s",(0,e.iF)({opacity:0})),(0,e.i0)("0.8s",(0,e.iF)({transform:"translate(-50%, -50%) scale(0)"}))]),(0,e.P)(":enter",[(0,e.i0)("1s 1s",(0,e.iF)({opacity:1}))])])])]);var L=n(949),B=n(3726),F=n(4572),j=n(4805),W=n(4355);const P=["text"],u=(i,S)=>({"product-logo--cpanel":i,"product-logo--wp2":S}),w=(i,S)=>({"animated-line--wp2":i,"animated-line--cpanel":S});let f=(()=>{class i{constructor(r,s,d,M,R,Q){this.page=r,this.whmapi=d,this.locale=M,this.surveyService=R,this.wizardStateService=Q,this.onDone=new t.bkB,this.logo=s.bypassSecurityTrustHtml(r.logo)}ngAfterViewInit(){const r=new L.m(L.R.JsonApi,{method:"is_eligible_for_trial"}),s=(0,B.R)(this.animated.nativeElement,"animationend");(0,F.z)([this.whmapi.post(r),this.surveyService.getSurveyAndUserData(),s]).subscribe(([d,[M,R]])=>{this.page.is_eligible_for_trial=!!d.data.is_eligible,this.page.surveyData=M,this.page.userSurveyScopeData=R,this.wizardStateService.syncStateToPageData(),this.onDone.emit(!0)})}static{this.\u0275fac=function(s){return new(s||i)(t.rXU(c.K),t.rXU(l.up),t.rXU(W.gB),t.rXU(g.h),t.rXU(j.I),t.rXU(_.IE))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["isw-intro"]],viewQuery:function(s,d){if(1&s&&t.GBs(P,5,t.aKT),2&s){let M;t.mGM(M=t.lsd())&&(d.animated=M.first)}},outputs:{onDone:"onDone"},decls:7,vars:11,consts:[["text",""],["id","intro-section"],[3,"ngClass","innerHTML"],[3,"ngClass"],[1,"platform-of-choice"]],template:function(s,d){1&s&&(t.j41(0,"div",1)(1,"div"),t.nrm(2,"div",2)(3,"div",3),t.j41(4,"p",4,0),t.EFF(6),t.k0s()()()),2&s&&(t.R7$(2),t.Y8G("@fadeInShrink",void 0)("ngClass",t.l_i(5,u,!d.page.is_wp2,d.page.is_wp2))("innerHTML",d.logo,t.npT),t.R7$(),t.Y8G("ngClass",t.l_i(8,w,d.page.is_wp2,!d.page.is_wp2)),t.R7$(3),t.SpI(" ",d.locale.maketext("The hosting platform of choice.")," "))},dependencies:[C.YU],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 _ngcontent-%COMP%_fade-in;opacity:0;position:relative;z-index:2;will-change:opacity}.animated-line[_ngcontent-%COMP%], .animated-line--wp2[_ngcontent-%COMP%], .animated-line--cpanel[_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, .animated-line--wp2[_ngcontent-%COMP%]:before, .animated-line--cpanel[_ngcontent-%COMP%]:before{content:"";width:0;height:100%;top:0;position:absolute;will-change:width;animation:.4s ease 2s 1 forwards _ngcontent-%COMP%_expand,30s linear 2.4s forwards _ngcontent-%COMP%_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, html[dir=ltr][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=ltr][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, html[dir=ltr][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, html[dir=ltr] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=ltr] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, html[dir=ltr][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=ltr][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, html[dir=ltr][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, html[dir=ltr] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=ltr] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before{left:-7%;background:linear-gradient(270deg,#ff6c2c 0% 40%,#ff6c2c00)}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, html[dir=rtl][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=rtl][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, html[dir=rtl][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, html[dir=rtl] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=rtl] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, html[dir=rtl][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=rtl][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, html[dir=rtl][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, html[dir=rtl] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=rtl] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before{right:-7%;background:linear-gradient(-270deg,#ff6c2c 0% 40%,#ff6c2c00)}.animated-line[_ngcontent-%COMP%]:after, .animated-line--wp2[_ngcontent-%COMP%]:after, .animated-line--cpanel[_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 _ngcontent-%COMP%_blink,30s linear 2.4s 1 forwards _ngcontent-%COMP%_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, html[dir=ltr][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, [dir=ltr][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, [dir=ltr][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, html[dir=ltr][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, html[dir=ltr] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, [dir=ltr][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, [dir=ltr] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, html[dir=ltr][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, [dir=ltr][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, [dir=ltr][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, html[dir=ltr][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, html[dir=ltr] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, [dir=ltr][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, [dir=ltr] [_nghost-%COMP%] .animated-line--cpanel[_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, html[dir=rtl][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, [dir=rtl][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, [dir=rtl][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, html[dir=rtl][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, html[dir=rtl] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, [dir=rtl][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, [dir=rtl] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:after, html[dir=rtl][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, [dir=rtl][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, [dir=rtl][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, html[dir=rtl][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, html[dir=rtl] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, [dir=rtl][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after, [dir=rtl] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:after{right:-7%;transform:translate(50%,-50%)}html[dir=ltr][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=ltr][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, html[dir=ltr][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, html[dir=ltr] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=ltr] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before{background:linear-gradient(270deg,#ff6c2c 0% 40%,#ff6c2c00)}html[dir=rtl][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=rtl][_ngcontent-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, html[dir=rtl][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, html[dir=rtl] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before, [dir=rtl] [_nghost-%COMP%] .animated-line--cpanel[_ngcontent-%COMP%]:before{background:linear-gradient(-270deg,#ff6c2c 0% 40%,#ff6c2c00)}.animated-line--cpanel[_ngcontent-%COMP%]:after{border:0 solid #ff6c2c}html[dir=ltr][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=ltr][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, html[dir=ltr][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, html[dir=ltr] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=ltr][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=ltr] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before{background:linear-gradient(270deg,#02607e 0% 40%,#02607e00)}html[dir=rtl][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=rtl][_ngcontent-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, html[dir=rtl][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, html[dir=rtl] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=rtl][_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before, [dir=rtl] [_nghost-%COMP%] .animated-line--wp2[_ngcontent-%COMP%]:before{background:linear-gradient(-270deg,#02607e 0% 40%,#02607e00)}.animated-line--wp2[_ngcontent-%COMP%]:after{border:0 solid #02607e}@keyframes _ngcontent-%COMP%_expand{0%{width:0}to{width:95%}}@keyframes _ngcontent-%COMP%_expand-beyond{0%{width:95%}10%{width:105%}50%{width:115%}to{width:125%}}@keyframes _ngcontent-%COMP%_track-expand-beyond{0%{left:88%}10%{left:98%}50%{left:108%}to{left:118%}}@keyframes _ngcontent-%COMP%_fade-in{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_blink{0%,30%,to{border-width:0}15%{border-width:3px}}'],data:{animation:[p]}})}}return i})();const A=i=>({spinner:i});function K(i,S){if(1&i){const r=t.RV6();t.j41(0,"button",11),t.bIt("click",function(){t.eBV(r);const d=t.XpG(2);return t.Njj(null==d.currentStep?null:d.currentStep.cancel())}),t.nrm(1,"span",12),t.k0s()}if(2&i){const r=t.XpG(2);t.Y8G("disabled",!r.currentStep.canCancel),t.R7$(),t.Y8G("innerHTML",null==r.currentStep?null:r.currentStep.cancelLabel,t.npT)}}function Y(i,S){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const r=t.XpG(2);t.R7$(),t.JRh(null==r.currentStep?null:r.currentStep.continueLabel)}}function X(i,S){if(1&i&&(t.j41(0,"span",13),t.EFF(1),t.k0s()),2&i){const r=t.XpG(2);t.R7$(),t.JRh(r.locale.maketext("Loading"))}}function z(i,S){if(1&i){const r=t.RV6();t.j41(0,"div")(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s()(),t.j41(4,"div",4)(5,"div",5)(6,"router-outlet",6),t.bIt("activate",function(d){t.eBV(r);const M=t.XpG();return t.Njj(M.setCurrentStep(d))}),t.k0s()()(),t.j41(7,"div",7)(8,"div",2),t.DNE(9,K,2,2,"button",8),t.j41(10,"button",9),t.bIt("click",function(){t.eBV(r);const d=t.XpG();return t.Njj(null==d.currentStep?null:d.currentStep.next())}),t.DNE(11,Y,2,1,"span",0)(12,X,2,1,"span",10),t.k0s()()()()}if(2&i){const r=t.XpG();t.R7$(),t.Y8G("@slideDown",void 0),t.R7$(2),t.Y8G("src",r.whm_logo,t.B4B),t.R7$(),t.Y8G("@fadeIn",void 0),t.R7$(),t.Y8G("@routeAnimations",r.getRouteAnimationData()),t.R7$(2),t.Y8G("@slideUp",void 0),t.R7$(2),t.Y8G("ngIf",null==r.currentStep?null:r.currentStep.cancel),t.R7$(),t.HbH(t.eq3(11,A,null==r.currentStep?null:r.currentStep.loading)),t.Y8G("disabled",!(null!=r.currentStep&&r.currentStep.canContinue)||(null==r.currentStep?null:r.currentStep.loading)),t.R7$(),t.Y8G("ngIf",!(null!=r.currentStep&&r.currentStep.loading)),t.R7$(),t.Y8G("ngIf",null==r.currentStep?null:r.currentStep.loading)}}function V(i,S){if(1&i){const r=t.RV6();t.j41(0,"div")(1,"isw-intro",14),t.bIt("onDone",function(d){t.eBV(r);const M=t.XpG();return t.Njj(M.setDone(d))}),t.k0s()()}2&i&&t.Y8G("@fadeOut",void 0)}let $=(()=>{class i{constructor(r,s,d,M,R){this.contexts=d,this.locale=M,this.wizardFlowService=R,this.done=!1,this.logo=s.bypassSecurityTrustHtml(r.logo),this.whm_logo=r.whm_logo.WhmDarkLg}getRouteAnimationData(){return this.contexts.getContext("primary")?.route?.snapshot?.data?.animation}setCurrentStep(r){this.currentStep=r}setDone(r){this.done=r,r&&this.wizardFlowService.initRouting()}static{this.\u0275fac=function(s){return new(s||i)(t.rXU(c.K),t.rXU(l.up),t.rXU(h.Zp),t.rXU(g.h),t.rXU(_.Pf))}}static{this.\u0275cmp=t.VBU({type:i,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,"disabled","click",4,"ngIf"],["id","continue",1,"btn","btn-primary","no-print",3,"click","disabled"],["style","visibility: hidden",4,"ngIf"],["id","cancel",1,"btn","btn-cancel","no-print",3,"click","disabled"],[3,"innerHTML"],[2,"visibility","hidden"],[3,"onDone"]],template:function(s,d){1&s&&t.DNE(0,z,13,13,"div",0)(1,V,2,1,"div",0),2&s&&(t.Y8G("ngIf",d.done),t.R7$(),t.Y8G("ngIf",!d.done))},dependencies:[f,C.bT,h.n3],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:#0000}.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 _ngcontent-%COMP%_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:_ngcontent-%COMP%_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:[x,b,G,U,y,p]}})}}return i})();var N=n(1562);let H=(()=>{class i{static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275mod=t.$C({type:i})}static{this.\u0275inj=t.G2t({providers:[W.gB],imports:[N.q1,C.MD]})}}return i})(),k=(()=>{class i{static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275mod=t.$C({type:i,bootstrap:[$]})}static{this.\u0275inj=t.G2t({providers:[{provide:c.K,useValue:window.PAGE},{provide:C.kB,deps:[c.K],useFactory:r=>r.pageURL},{provide:Window,useValue:window}],imports:[H,l.Bb,m.wb,a,E.B]})}}return i})();n.p=window.MagicRevision,(0,t.SmG)(),l.sG().bootstrapModule(k).catch(i=>console.error(i))}},v=>{v.O(0,[502],()=>v(v.s=1493)),v.O()}]);Back to Directory