1"use strict";(self["webpackChunkvue_black_dashboard_pro"]=self["webpackChunkvue_black_dashboard_pro"]||[]).push([[7416],{26859:function(e,t,s){s.r(t),s.d(t,{default:function(){return m}});s(28743);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container"},[t("card",{staticClass:"card-login card-white mb-0",attrs:{headerClasses:"pb-3"}},[t("template",{slot:"header"},[t("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center"}},[t("img",{staticClass:"upright",attrs:{src:e.logoUrl,alt:""}})])]),"success"===e.status?t("div",{staticClass:"text-center"},[t("p",{staticClass:"pb-1"},[e._v("Your email has been verified successfully.")]),t("button",{staticClass:"btn btn-primary py-2 px-3",attrs:{type:"link"},on:{click:function(t){return e.$router.push({name:"Login"})}}},[t("span",[e._v("Start using portal")])])]):"loading"===e.status?t("div",[e._v(" Thank you for verifying your email. Please be patient while we provision your account. Please do not leave this page. ")]):t("div",[t("p",[e._v("An error has occurred: "),t("b",[e._v(e._s(e.errorMessage))])]),t("p",[e._v("Please try again later or contact support at "),t("a",{attrs:{href:"mailto:"+e.brandingGetter.supportEmail}},[t("b",[e._v(e._s(e.brandingGetter.supportEmail))])])])])],2)],1)},a=[],r=s(7180),o=(s(5086),s(95353)),n=s(87973),l={mixins:[n.M],data:function(){return{status:"loading",errorMessage:""}},computed:(0,r.A)((0,r.A)({},(0,o.L8)(["brandingGetter"])),{},{logoUrl:function(){if(this.brandingGetter.logoUrl)return this.brandingGetter.logoUrl}}),beforeMount:function(){this.checkHash()},mounted:function(){var e;if(16===(null===(e=this.brandingGetter)||void 0===e?void 0:e.id)){var t=document.createElement("script");t.src="https://www.googletagmanager.com/gtag/js?id=AW-16543647897",t.async=!0,document.head.appendChild(t),this.googleAnalyticsEvent()}},methods:{checkHash:function(){var e=this;this.$route.query.hash||this.$router.push({name:"Login"});var t=this.$loading.show();this.status="loading",this.$store.dispatch("O365_EMAIL_VERIFICATION",this.$route.query.hash).then((function(t){if(t.success){if(e.status="success",t.redirectToLogin)return void e.$router.push({name:"Login"});t.redirect&&e.$router.push({name:"O365Provisioning",query:{step:1,level:t.subscriptionLevel,verified:!0},params:{userId:t.referalUserId}})}t.success||(e.status="error",e.errorMessage=t.message)})).catch((function(t){if(404===t.status)return e.$notifyError("Verification link has expired"),void e.$router.push({name:"Login"});e.status="error",e.errorMessage=t.message||t})).finally((function(){return t.hide()}))},googleAnalyticsEvent:function(){function e(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],e("js",new Date),e("config","AW-16543647897")}}},c=l,u=s(81656),d=(0,u.A)(c,i,a,!1,null,null,null),m=d.exports},12236:function(e,t,s){s.r(t),s.d(t,{default:function(){return V}});s(98741),s(59581);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"container",attrs:{id:"main-container"}},[e.isLocationAvailable?t("card",{ref:"provisioningCard",staticClass:"card-login card-white mb-0",attrs:{headerClasses:"o365-provisioning-card-header"}},[t("template",{slot:"header"},[e.showMainTitle?[t("img",{attrs:{src:"img/card-info.png",alt:""}}),t("h1",{staticClass:"card-title"},[e._v("Portal")]),t("img",{staticClass:"upright",class:{zimcom:e.isZimcom},attrs:{src:e.logoUrl,alt:""}})]:[e.embedded?e._e():t("div",{staticClass:"row align-content-center"},[t("div",{staticClass:"col-6",on:{click:function(t){!e.embedded&&e.goToLogin()}}},[t("img",{staticStyle:{"margin-left":"13.5px"},style:{cursor:e.embedded?"default":"pointer"},attrs:{src:e.logoUrl,alt:""}})]),e.showServiceLvlOptions?t("div",{staticClass:"col-6 justify-content-center align-content-center d-flex flex-wrap"},[t("h1",{staticClass:"mb-0 text-dark",staticStyle:{"font-size":"30px"}},[e._v(e._s(e.planTitle))])]):e._e()])]],2),"free"!==e.formValues.company.subscriptionLevel&&e.showServiceLvlOptions?[t("div",{staticClass:"row stepper-container"},[t("div",{staticClass:"col-12 mb-4"},[t("WizarNavOnly",{attrs:{tabs:e.tabs,currentStep:e.currentStep}})],1)])]:e._e(),t("h4",{class:{"must-be-admin":e.embedded},staticStyle:{color:"red","text-align":"center"}},[e._v("You must be a Microsoft 365 Administrator to register!")]),0===e.currentStep?[e.shouldPromptForLocation&&e.formValues.company.location?t("div",{staticClass:"row my-2 align-items-center"},[t("div",{staticClass:"col-12 d-flex align-items-center"}
1,[t("span",[t("b",[e._v("Selected region:")]),e._v(" "+e._s(e.formValues.company.location))]),t("base-button",{staticClass:"ml-2",attrs:{size:"sm"},on:{click:e.openLocationModal}},[e._v("Modify")])],1)]):e._e(),t("div",{staticClass:"row"},[t("div",{class:e.formClass},[t("BaseCustomInput",{directives:[{name:"validate",rawName:"v-validate",value:e.modelValidations.fullname,expression:"modelValidations.fullname"}],attrs:{name:"fullname",label:"Full name",required:"",error:e.getError("fullname")},model:{value:e.formValues.user.fullname,callback:function(t){e.$set(e.formValues.user,"fullname",t)},expression:"formValues.user.fullname"}})],1),t("div",{class:e.formClass},[t("BaseCustomInput",{directives:[{name:"validate",rawName:"v-validate",value:e.modelValidations.company,expression:"modelValidations.company"}],attrs:{name:"company",label:"Company",required:"",error:e.getError("company")},model:{value:e.formValues.company.name,callback:function(t){e.$set(e.formValues.company,"name",t)},expression:"formValues.company.name"}})],1),t("div",{class:e.formClass},[t("BaseCustomInput",{directives:[{name:"validate",rawName:"v-validate",value:e.modelValidations.email,expression:"modelValidations.email"}],attrs:{name:"email",label:"Email (Email verification required)",required:"",error:e.getError("email")},model:{value:e.formValues.user.email,callback:function(t){e.$set(e.formValues.user,"email",t)},expression:"formValues.user.email"}})],1),e.embedded?e._e():t("div",{class:e.formClass},[t("BaseCustomInput",{directives:[{name:"validate",rawName:"v-validate",value:e.modelValidations.mobilePhone,expression:"modelValidations.mobilePhone"}],attrs:{name:"mobilePhone",label:"Phone","data-vv-as":"Mobile Phone",error:e.getError("mobilePhone")},model:{value:e.formValues.user.mobilePhone,callback:function(t){e.$set(e.formValues.user,"mobilePhone",t)},expression:"formValues.user.mobilePhone"}})],1),t("div",{class:e.formClass},[t("BaseCustomInput",{directives:[{name:"validate",rawName:"v-validate",value:e.modelValidations.password,expression:"modelValidations.password"}],ref:"password",attrs:{name:"password",label:"Password",type:"password",minlength:"5",required:"",error:e.getError("password")},model:{value:e.formValues.user.password,callback:function(t){e.$set(e.formValues.user,"password",t)},expression:"formValues.user.password"}})],1),t("div",{class:e.formClass},[t("BaseCustomInput",{directives:[{name:"validate",rawName:"v-validate",value:e.modelValidations.confirmPassword,expression:"modelValidations.confirmPassword"}],attrs:{name:"password_confirmation",type:"password",label:"Confirm Password","data-vv-as":"password",required:"",error:e.getError("password_confirmation")},model:{value:e.formValues.user.confirmPassword,callback:function(t){e.$set(e.formValues.user,"confirmPassword",t)},expression:"formValues.user.confirmPassword"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"col-lg-8 col-12",class:{"col-lg-8":e.showServiceLvlOptions,"mb-3":!e.embedded}},[e.showServiceLvlOptions?t("div",{staticClass:"col-12 p-0"},[t("label",{staticClass:"input-label"},[t("span",[t("i",{staticClass:"required-field float-left"}),t("span",[e._v("Level of Service")]),t("a",{staticClass:"ml-2",attrs:{target:"_blank",href:"https://www.vmobackup.com/pricing/",tabindex:"-1"}},[e._v(" (More Info) ")])])]),t("div",{staticClass:"btn-group btn-group-toggle service-levels",attrs:{"data-toggle":"buttons"}},e._l(e.suscriptionOptions,(function(s){return t("label",{staticClass:"btn btn-outline-light",class:{active:e.formValues.company.subscriptionLevel===s.value}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.formValues.company.subscriptionLevel,expression:"formValues.company.subscriptionLevel"}],attrs:{type:"radio",name:"options",id:"option1",autocomplete:"off"},domProps:{value:s.value,checked:e._q(e.formValues.company.subscriptionLevel,s.value)},on:{change:function(t){return e.$set(e.formValues.company,"subscriptionLevel",s.value)}}}),e._v(" "+e._s(s.label)+" ")])})),0)]):e._e(),e.showSPPartnerRequest?[t("div",{staticClass:"row",class:{"my-1":!e.embedded}},[t("div",{staticClass:"col-2",class:{"pl-0 pr-0":e.embedded}}
1,[t("base-checkbox",{staticClass:"terms-checkbox",attrs:{name:"SPPartnerRequest"},model:{value:e.formValues.user.SPPartnerRequest,callback:function(t){e.$set(e.formValues.user,"SPPartnerRequest",t)},expression:"formValues.user.SPPartnerRequest"}})],1),t("div",{staticClass:"col-10 pl-0",class:{mlemb:e.embedded},staticStyle:{"padding-top":"2px"},attrs:{id:"terms-of-service-label"}},[t("span",{staticStyle:{cursor:"pointer"},on:{click:function(t){e.formValues.user.SPPartnerRequest=!e.formValues.user.SPPartnerRequest}}},[e._v(e._s(e.requestPartnershipText)+" ")])])])]:e._e(),e.showTermsOfUse?[t("div",{staticClass:"row",class:{"my-1":!e.embedded}},[t("div",{staticClass:"col-2",class:{"pl-0 pr-0":e.embedded}},[t("base-checkbox",{directives:[{name:"validate",rawName:"v-validate",value:"required:true",expression:"'required:true'"}],staticClass:"terms-checkbox",attrs:{name:"acceptTerms"},model:{value:e.formValues.acceptTerms,callback:function(t){e.$set(e.formValues,"acceptTerms",t)},expression:"formValues.acceptTerms"}})],1),t("div",{staticClass:"col-10 pl-0",class:{mlemb:e.embedded},staticStyle:{"padding-top":"2px"},attrs:{id:"terms-of-service-label"}},[t("span",{staticStyle:{cursor:"pointer"},on:{click:function(t){e.formValues.acceptTerms=!e.formValues.acceptTerms}}},[e._v("By registering you agree to the "),t("a",{attrs:{href:"https://www.vmobackup.com/terms-of-use/",target:"_blank",rel:"noopener noreferrer"}},[e._v("terms of use")])])]),e.getError("acceptTerms")?t("div",{staticClass:"col-12 ml-3 mt-1"},[t("i",{staticClass:"error-msg"},[e._v("You must accept the terms of use")])]):e._e()])]:e._e()],2),e.showServiceLvlOptions?t("div",{staticClass:"col-lg-4 col-12",staticStyle:{"margin-top":"30px"}},[t("div",{staticClass:"border level-details mb-1"},[t("div",{staticClass:"row justify-content-center"},[t("div",{staticClass:"col-8 my-2 text-center",attrs:{id:"service-details-title"}},[t("span",[t("b",[e._v(" Service Details ")])])]),t("div",{staticClass:"col-12"},[t("ul",{staticClass:"details-list"},e._l(e.planDetails,(function(s){return t("li",[e._v(e._s(s))])})),0)])])])]):e._e()]),t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[t("base-button",{staticClass:"w-100 py-2 rounded my-2",attrs:{size:"lg",disabled:e.disableSubmit},on:{click:e.recaptcha}},[t("span",{class:{"text-dark":e.isVMOGetter||e.isAdvizexGetter},staticStyle:{"font-size":"20px","font-weight":"lighter"}},[e._v(" "+e._s(e.buttonLabel)+" ")])])],1)]),"free"!==e.formValues.company.subscriptionLevel&&e.showServiceLvlOptions?t("div",{staticClass:"row justify-content-center"},[t("div",{staticClass:"col-11 my-1 text-center"},[t("span",[e._v(" The first "+e._s(e.trialDays)+" days are "),t("b",[e._v("FREE")]),e._v(".You may "),t("b",[e._v("CANCEL")]),e._v(" your subscription at any time. Billing occurs at the end of each month based on actual usage. ")])])]):e._e()]:e._e(),1===e.currentStep?[t("div",{staticClass:"step-wrapper d-flex flex-wrap flex-row align-content-center justify-content-center",class:"step-".concat(e.currentStep)},[t("div",{staticClass:"row justify-content-center my-5"},[t("div",{staticClass:"col-3"},[e.alreadyVerified?t("img",{staticClass:"img-fluid",attrs:{src:"/img/check-icon.png",alt:"check-icon"}}):t("img",{staticClass:"img-fluid",attrs:{src:"/img/email.png",alt:"email-icon"}})])]),t("div",{staticClass:"row justify-content-center text-center mb-3",staticStyle:{flex:"1 100%"}},[t("div",{staticClass:"col-12"},[e.alreadyVerified?t("h2",[e._v("Your email has been verified!")]):t("h2",[e._v("Verification email sent")])])]),t("div",{staticClass:"row text-center mb-4"},[t("div",{staticClass:"col-12"},[e.alreadyVerified?t("span",{staticStyle:{"font-size":"15px"}},[e.stepOneValidation?e._e():[e._v(" In order to continue please complete the subscription process. ")]],2):t("span",{staticStyle:{"font-size":"15px"}},[e._v(" Please check your email for the verification link to continue. "),t("br"),e._v(" Didn't receive the email? "),t("a",{attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.resendEmail.apply(null,arguments)}}},[e._v("Resend email")])]),e.verificationURL?t("div",[t("a",{attrs:{href:e.verificationURL}}
1,[e._v("Verification link")])]):e._e()])]),t("div",{staticClass:"row",staticStyle:{flex:"1 100%"}},[t("div",{staticClass:"col-12"},[e.alreadyVerified?t("base-button",{staticClass:"w-100 py-2 rounded my-2 text-dark",attrs:{type:"primary",size:"lg"},on:{click:e.goToCheckout}},[t("span",{staticStyle:{"font-size":"20px","font-weight":"lighter"}},[e.needsStripeCheckout?[e._v(" Continue ")]:[e._v(" Click here to login ")]],2)]):e._e()],1)])])]:e._e(),2===e.currentStep?[t("div",{staticClass:"step-wrapper"},[t("div",{staticClass:"row step-content"},[t("div",{staticClass:"col-12"},[t("div",[e._v("Your email has been verified")]),t("div",[e._v("In order to continue please complete the subscription process")])])]),t("div",{staticClass:"row"},[t("div",{staticClass:"col-12"},[t("base-button",{staticClass:"w-100 py-2 rounded my-2 text-dark",attrs:{type:"primary",size:"lg"},on:{click:e.goToCheckout}},[t("span",{staticStyle:{"font-size":"20px","font-weight":"lighter"}},[e._v("Continue")])])],1)])])]:e._e(),3===e.currentStep?[t("div",{staticClass:"step-wrapper d-flex flex-wrap flex-row align-content-center justify-content-center",class:"step-".concat(e.currentStep)},[t("div",{staticClass:"row justify-content-center my-5"},[t("div",{staticClass:"col-3"},[e.paymentSuccess?t("img",{staticClass:"img-fluid",attrs:{src:"/img/check-icon.png",alt:"check-icon"}}):t("img",{staticClass:"img-fluid",attrs:{src:"/img/error.png",alt:"error-icon"}})])]),t("div",{staticClass:"row justify-content-center text-center mb-3",staticStyle:{flex:"1 100%"}},[t("div",{staticClass:"col-12"},[e.paymentSuccess?t("h2",[e._v("Thanks for starting your "+e._s(e.trialDays)+" day trial!")]):t("h2",[e._v("Something went wrong")])])]),t("div",{staticClass:"row text-center mb-4"},[t("div",{staticClass:"col-12"},[e.paymentSuccess?t("span",{staticStyle:{"font-size":"15px"}},[e._v(" No payment will be executed until the end of the "+e._s(e.trialDays)+" day trial. You may cancel the subscription at any time. ")]):t("span",{staticStyle:{"font-size":"15px"}},[e._v(" We couldn't setup your subscription sucessfully. Please try again. ")])])]),t("div",{staticClass:"row",staticStyle:{flex:"1 100%"}},[t("div",{staticClass:"col-12"},[e.paymentSuccess?t("base-button",{staticClass:"w-100 py-2 rounded my-2 text-dark",attrs:{type:"primary",size:"lg"},on:{click:e.goToLogin}},[t("span",{staticStyle:{"font-size":"20px","font-weight":"lighter"}},[e._v("Click here to login")])]):t("base-button",{staticClass:"w-100 py-2 rounded my-2 text-dark",attrs:{type:"primary",size:"lg"},on:{click:e.goToCheckout}},[t("span",{staticStyle:{"font-size":"20px","font-weight":"lighter"}},[e._v("Try again")])])],1)])])]:e._e()],2):t("card",[t("template",{slot:"header"},[t("h1",{staticClass:"not-available-title"},[e._v("Registration is not available for your country.")])])],2),t("modal",{attrs:{centered:"",staticBackdrop:"",backdropOpacity:.7,show:e.showLocationModal,showClose:!1,modalContentClasses:"modal-location",footerClasses:"justify-content-end"},on:{"update:show":function(t){e.showLocationModal=t}}},[t("template",{slot:"header"},[t("h4",{staticClass:"modal-title"},[e._v("Select Backup Location")])]),t("div",[t("p",{staticClass:"mb-3"},[e._v("Please select the region where your backup data will be stored:")]),t("BaseSelect",{staticClass:"mb-3",attrs:{options:e.supportedLocations.map((function(e){return{label:e,value:e}}))},model:{value:e.formValues.company.location,callback:function(t){e.$set(e.formValues.company,"location",t)},expression:"formValues.company.location"}})],1),t("template",{slot:"footer"},[t("base-button",{attrs:{disabled:!e.formValues.company.location},on:{click:e.onLocationConfirmed}},[e._v("Confirm")])],1)],2)],1)},a=[],r=s(47546),o=s(24634),n=s(7180),l=(s(18636),s(5086),s(47746),s(43148),s(28743),s(94009),s(87136),s(40173),s(95353)),c=s(87973),u=s(41862),d=function(){var e=this,t=e._self._c;return t("svg",{staticClass:"check-svg",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"67.637",height:"67.637",fill:"green","fill-rule":"evenodd","clip-rule":"evenodd","image-rendering":"optimizeQuality","shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision",viewBox:"0 0 1778.69 1778.68",id:"check"}},[t("path",{attrs:{"fill-rule":"nonzero",d:"M1254.85 558.21c28.97,-28.97 75.96,-28.97 104.93,0 28.97,28.98 28.97,75.97 0,104.94l-557.28 557.3c-28.98,28.97 -75.97,28.97 -104.94,0l-278.65 -278.65c-28.97,-28.97 -28.97,-75.96 0,-104.93 28.98,-28.98 75.97,-28.98 104.94,0l226.18 226.18 504.82 -504.84zm-365.51 -558.21c245.55,0 467.91,99.56 628.85,260.5 160.94,160.93 260.5,383.3 260.5,628.84 0,245.58 -99.55,467.91 -260.5,628.85 -160.94,160.94 -383.3,260.5 -628.85,260.5 -245.57,0
1-467.91,-99.55 -628.84,-260.5 -160.96,-160.94 -260.5,-383.27 -260.5,-628.85 0,-245.54 99.56,-467.91 260.5,-628.84 160.93,-160.96 383.27,-260.5 628.84,-260.5zm523.92 365.43c-134.07,-134.06 -319.31,-216.99 -523.92,-216.99 -204.62,0 -389.86,82.93 -523.91,216.99 -134.06,134.06 -216.99,319.31 -216.99,523.91 0,204.63 82.93,389.87 216.99,523.92 134.05,134.06 319.29,216.98 523.91,216.98 204.61,0 389.85,-82.92 523.92,-216.98 134.06,-134.05 216.98,-319.29 216.98,-523.92 0,-204.6 -82.92,-389.85 -216.98,-523.91z"}})])},m=[],p={name:"CheckSVG"},f=p,h=s(81656),v=(0,h.A)(f,d,m,!1,null,"593dda22",null),b=v.exports,y=s(78465),g=s.n(y),w=s(98951),C={components:{WizarNavOnly:u.PD,CheckSVG:b,Modal:u.aF},inject:["$validator"],mixins:[c.M],props:{embedded:{type:Boolean,default:!1}},data:function(){return{verificationURL:"",formValues:{user:{fullname:null,password:null,confirmPassword:null,SPPartnerRequest:!1,multiFactorAuthEnabled:!0,mobilePhone:null,email:null},company:{name:null,subscriptionLevel:"basic",referalId:null,enableImmutability:null,location:null},acceptTerms:!1,referalUserId:null},suscriptionOptions:[{label:"Free",value:"free"},{label:"Basic",value:"basic"},{label:"Advanced",value:"advanced"},{label:"Business Critical",value:"businessCritical"}],planDescriptions:{free:["Email support","Up to 10 users","1TB storage","1 year retention","Backup every 24 hours"],basic:["Email and phone support","Unlimited storage","1 year retention","Backup 3 times per day","$1.50 per user/month"],advanced:["Email and phone support","Unlimited storage","Up to 7 years retention","Backup every 4 hours","$2.50 per user/month"],businessCritical:["Email and phone support","Unlimited retention","Unlimited storage","Backup every 2 hours","$3.50 per user/month"]},currentStep:0,paymentSuccess:!0,alreadyVerified:!1,disableSubmit:!1,supportedLocations:[],showLocationModal:!1}},computed:(0,n.A)((0,n.A)({},(0,l.L8)(["brandingGetter","getO365ProvisioningCompany","getO365ProvisioningUserEmail","isVMOGetter","isHunterTechGetter","isDifferentDevGetter","isProdatixGetter","isAdvizexGetter","getIpLocation"])),{},{shouldPromptForLocation:function(){return void 0!==this.$route.query.promptForLocation},buttonLabel:function(){return this.embedded?"Get started":"Click to continue"},formClass:function(){return this.embedded?"col-md-6 col-12 f-mb-2":"col-lg-6 col-12"},hasStripe:function(){return this.brandingGetter.isStripeEnabled},showServiceLvlOptions:function(){var e,t,s,i;return(null===(e=this.brandingGetter)||void 0===e||null===(t=e.features)||void 0===t||null===(s=t.office365)||void 0===s||null===(i=s.selfRegistration)||void 0===i?void 0:i.showServiceLvlOptions)&&!this.embedded},showMainTitle:function(){return!this.isVMOGetter&&!this.isHunterTechGetter&&!this.isDifferentDevGetter&&!this.isProdatixGetter&&!this.isAdvizexGetter},stepOneValidation:function(){return this.hasStripe||"free"===this.formValues.company.subscriptionLevel},planTitle:function(){var e=this,t=this.suscriptionOptions.find((function(t){return t.value===e.formValues.company.subscriptionLevel}));return"".concat(t.label," Plan")},planDetails:function(){return this.planDescriptions[this.formValues.company.subscriptionLevel]},logoUrl:function(){if(this.brandingGetter.logoUrl)return this.brandingGetter.logoUrl},isZimcom:function(){return"Zimcom"===this.brandingGetter.sidebarTitle||"Rhesus"===this.brandingGetter.sidebarTitle||"Conflux"===this.brandingGetter.sidebarTitle},immutabilityMode:function(){var e,t,s,i;return null===(e=this.brandingGetter)||void 0===e||null===(t=e.features)||void 0===t||null===(s=t.office365)||void 0===s||null===(i=s.selfRegistration)||void 0===i?void 0:i.supportImmutability},shouldForceImmutability:function(){return null!==this.immutabilityMode},o365RegistrationEnabled:function(){var e=this.brandingGetter.features,t=void 0===e?{}:e;return t.office365&&t.office365.selfRegistration.enabled},showTermsOfUse:function(){var e=this.brandingGetter.features,t=void 0===e?{}:e;return t.office365&&t.office365.selfRegistration.termsOfUse},isReferal:function(){return this.$route.params.userId&&(this.formValues.referalUserId=this.$route.params.userId),Boolean(this.$route.params.userId)},showSPPartnerRequest:function(){var e,t=this.brandingGetter.features,s=void 0===t?{}:t;return!this.isReferal&&(null===(e=s.office365)||void 0===e?void 0:e.selfRegistration.showSPPartnerRequest)||this.embedded},modelValidations:function(){var e={fullname:{required:!0},password:{required:!0,min:8,regex:/^(?!.*(.)\1\1)(?=.{8,})((?=.*[a-z])(?=.*[A-Z])(?=.*\d)|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*(),.?":{}|<>])|(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>])|(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]))/},mobilePhone:{numeric:!0},company:{required:!0,noSpecialChar:!0,max:32},confirmPassword:{required:!0,confirmed:"password"}
1,email:{email:!0,required:!0,businessEmail:!0},subscriptionLevel:{required:!0},acceptTerms:{required:!1}};return this.showTermsOfUse&&(e.acceptTerms.required=!0),e},tabs:function(){return[{title:"Sign up form",label:"1",percentage:0,style:{label:{left:"0%"}}},{title:"Email verification",label:"2",percentage:33,style:{label:{left:"0%"}}},{title:"Payment details",label:"3",percentage:65,style:{label:{left:"28.5%"}}},{title:"Start using platform",label:"4",percentage:98,style:{label:{left:"22%"}}}]},isLocationAvailable:function(){var e=["BR","RU","JP","IR","KP","KR"];return!e.includes(this.getIpLocation)},needsStripeCheckout:function(){return this.hasStripe&&"free"!==this.formValues.company.subscriptionLevel},trialDays:function(){return this.brandingGetter.features.office365.selfRegistration.stripeIntegration.trialPeriod||30},isProdatix:function(){return 31===this.brandingGetter.id},requestPartnershipText:function(){var e="Request to be a service provider partner";return this.isProdatix&&(e="Request to be an MSP Partner"),e}}),beforeMount:function(){this.getLocation(),this.$validator.extend("businessEmail",{getMessage:function(){return"Please register with a valid company domain email address. Contact [email protected] for assistance."},validate:function(e){return"string"===typeof e&&!(e.includes("hotmail.com")||e.includes("gmail.com")||e.includes("yahoo.com")||e.includes("gmail.co")||e.includes("outlook.com"))}}),this.$validator.extend("noSpecialChar",{getMessage:function(){return"Special characters are not allowed"},validate:function(e){return"string"===typeof e&&!(e.includes("+")||e.includes("*")||e.includes("/")||e.includes("@")||e.includes(",")||e.includes("&"))}})},mounted:function(){var e,t,s,i=this;this.embedded?(document.body.classList.add("embedded-o365"),this.formValues.company.subscriptionLevel="free"):this.formValues.company.subscriptionLevel="basic";var a=function(){i.applyImmutabilityDefault(),i.o365RegistrationEnabled||i.$router.push({name:"Login"})};if(this.brandingGetter.hasOwnProperty("features")?a():this.$store.dispatch("GET_BRANDING").then(a),this.$route.query.step&&(this.currentStep=Number(this.$route.query.step)),"sp"===this.$route.query.level?this.formValues.user.SPPartnerRequest=!0:this.$route.query.level&&(this.formValues.company.subscriptionLevel=this.$route.query.level),this.$route.query.cancel_checkout&&(this.paymentSuccess=!1),this.$route.query.verified&&(this.alreadyVerified=!0),this.$route.query.session_id)try{this.$store.dispatch("GET_CHECKOUT_SESSION_RESULT",this.$route.query.session_id).then((function(e){e.success||(i.paymentSuccess=!1)})).catch((function(e){i.$notifyError(e)}))}catch(r){this.$notifyError(r)}setTimeout((function(){var e=i.$recaptchaInstance;null===e||void 0===e||e.showBadge()}),1e3),this.hasStripe?this.showServiceLvlOptions||(this.formValues.company.subscriptionLevel=null===(e=this.brandingGetter.features)||void 0===e||null===(t=e.office365)||void 0===t||null===(s=t.selfRegistration)||void 0===s?void 0:s.defaultServiceLevel):this.formValues.company.subscriptionLevel="free",this.$route.params.userId&&(this.formValues.company.referalId=this.$route.params.userId),this.$store.dispatch("GET_SUPPORTED_LO
1CATIONS").then((function(e){i.supportedLocations=e.data||[],1===i.supportedLocations.length?i.formValues.company.location=i.supportedLocations[0]:i.supportedLocations.length>1&&(i.formValues.company.location=i.supportedLocations[0],void 0!==i.$route.query.promptForLocation&&i.openLocationModal())}))},beforeDestroy:function(){document.body.classList.remove("embedded-o365");var e=this.$recaptchaInstance;null===e||void 0===e||e.hideBadge()},methods:{recaptcha:function(){var e=this;return(0,o.A)((0,r.A)().mark((function t(){return(0,r.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:try{e.$validator.validateAll().then(function(){var t=(0,o.A)((0,r.A)().mark((function t(s){var i;return(0,r.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=8;break}return e.disableSubmit=!0,t.next=4,e.$recaptchaLoaded();case 4:return t.next=6,e.$recaptcha("login");case 6:i=t.sent;try{e.$store.dispatch("VALIDATE_RECAPTCHA",{token:i}).then((function(t){t.score>=.5?e.register():(e.disableSubmit=!1,e.$notifyError("ReCAPTCHA verification failed. Please try again."))})).catch((function(t){e.$notifyError(t),e.disableSubmit=!1}))}catch(a){e.$notifyError(a),e.disableSubmit=!1}case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}catch(s){e.$notifyError(s),e.disableSubmit=!1}case 1:case"end":return t.stop()}}),t)})))()},register:function(){var e=this,t="Please be patient while we setup your account for Microsoft 365 backup!",s=this.$loading.show({container:this.$refs.provisioningCard.$el,opacity:.8},{after:this.$createElement("div",{domProps:{innerHTML:t},class:"loader-text mt-2"})});this.isProdatix&&this.isReferal&&(this.formValues.company.subscriptionLevel="free"),this.formValues.user.multiFactorAuthEnabled=!0,void 0===this.$route.query.promptForLocation&&(this.formValues.company.location=null),this.$store.dispatch("POST_PROVISIONING",this.formValues).then((function(t){t.data.verificationURL&&(e.verificationURL=t.data.verificationURL),t.data.existingUser&&(e.alreadyVerified=!0,e.$store.dispatch("SET_PROVISIONING_COMPANY_AND_EMAIL",{email:t.data.email,companyId:t.data.companyId})),e.currentStep=1})).catch((function(t){"string"===typeof t?e.$notifyError(t):t.email?(e.showAlreadyStartedModal(t.email),e.$notifyError(t.message||"Error while registering. Try again later.")):e.$notifyError(t.message||"Error while registering. Try again later.")})).finally((function(){s.hide(),e.disableSubmit=!1}))},goToLogin:function(){this.$router.push({name:"Login"})},getError:function(e){return"The password field format is invalid"===this.errors.first(e)?"Password complexity requirements are not met":this.errors.first(e)},goToCheckout:function(){var e=this;if("free"!==this.formValues.company.subscriptionLevel){var t=this.$loading.show(),s=null;this.$route.query.customerEmail&&(s=this.$route.query.customerEmail.replace(" ","+")),this.$store.dispatch("GET_CHECKOUT_SESSION",{companyId:this.$route.query.companyId||this.getO365ProvisioningCompany,userEmail:s||this.getO365ProvisioningUserEmail,isReferal:this.isReferal}).then((function(e){window.location.href=e.data.url})).catch((function(t){return e.$notifyError(t)})).finally((function(){return t.hide()}))}else this.goToLogin()},showAlreadyStartedModal:function(e){var t=this;g().fire((0,n.A)((0,n.A)({html:'\n <div> <h3 class="mb-2"> Account already exists </h3> </div>\n <div> <span> You seem to already have started the registration process. <br/> Please login with your credentials (email: '.concat(e,") </span> </div>\n ")},w.W),{},{confirmButtonText:"Go to login"})).then((function(e){e.value&&t.goToLogin()}))},resendEmail:function(){var e=this;try{var t=this.formValues.user.email;this.$route.query.email&&(t=this.$route.query.email),this.$store.dispatch("RESEND_VALIDATION_EMAIL",t).then((function(t){t.success&&e.$notifySuccess("Verification email sent successfully.")})).catch((function(t){return e.$notifyError(t)}))}catch(s){this.$notifyError(s)}},onLocationConfirmed:function(){this.showLocationModal=!1},openLocationModal:function(){this.showLocationModal=!0},getLocation:function(){this.$store.dispatch("GET_IP_LOCATION")},applyImmutabilityDefault:function(){this.shouldForceImmutability?this.formValues.company.enableImmutability=!0:this.formValues.company.enableImmutability=!1}},watch:{immutabilityConfig:{immediate:!0,handler:function(){this.applyImmutabilityDefault()}},"formValues.user.SPPartnerRequest":function(e){var t,s,i;this.isProdatix&&(this.formValues.company.subscriptionLevel=e?"free":null===(t=this.brandingGetter.features)||void 0===t||null===(s=t.office365)||void 0===s||null===(i=s.selfRegistration)||void 0===i?void 0:i.defaultServiceLevel)}}},_=C,S=(0,h.A)(_,i,a,!1,null,"517b234b",null),V=S.exports}}]); 2//# sourceMappingURL=Provisioning-legacy.c3c89540.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.