var Unibase;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends n.Platform.Core.BaseComponent{submit(){}jsFiles(){return["tenants/themes/compact/index.anonymous.js","platform/membership/managers/accountmanager.js","platform/core/helpers/navigation/navigationhelper.js","libs/passwordrequirement/passwordrequirement.js"]}cssFiles(){return["libs/passwordrequirement/passwordrequirement.css"]}html(){if(jQuery("#external-form").length===0){var n=new t.Index_Anonymous;n.init(null)}return`

Register

We will send link to your Email to create your password.

Back to login

Password Created Successfully

Click here to Login

`}load(){var t=n.Platform.Helpers.FileCacheHelper.Instance();jQuery(".preloader-it").delay(500).fadeOut("slow");jQuery("#external-container").delay(500).fadeIn("slow");jQuery("#bizgaze_body").css("background-color","#f4f6f7");$("#div_modalbody").removeAttr("style");this._accountManager=n.Platform.Membership.Managers.AccountManager.Instance();$(".pr-password").click(function(){var n=$(".pr-password");n.passwordRequirements({numCharacters:8,useLowercase:!0,useUppercase:!0,useNumbers:!0,useSpecial:!0})});$("#PasswordHide").click(function(){var n=$("#signupPassword");n.attr("type")=="password"?n.attr("type","text"):n.attr("type","password");$("#PasswordHide").toggleClass("fa-eye-slash fa-eye")});$("#confirmPasswordHide").click(function(){var n=$("#ConfirmPassword");n.attr("type")=="password"?n.attr("type","text"):n.attr("type","password");$("#confirmPasswordHide").toggleClass("fa-eye-slash fa-eye")});$(".btn-outline-secondary").addClass("hidden")}register(n){var t=this;$("#signupEmail").val(n.email);$(document).bind("keypress",function(n){n.keyCode==13&&$("#btnSignUp").trigger("click")});$("#btnSignUp").click(function(){t.signupregister(n.userid,n.tenant,n.email,n.phonenumber)})}signupregister(n,t,i,r){var c=this,f=$(".ConfirmPassword").val().toString(),u=$(".signupPassword").val().toString(),t=t,e=n,i=i,r=r,o,s,h;if(u==""||f=="")return MessageHelper.Instance().showError("Password cannot be empty","bizgaze_SpiltErrorMessages"),!1;if($(".signupPassword").val().toString().length<8||$(".ConfirmPassword").val().toString().length<8)return MessageHelper.Instance().showError("Password must be atleast 8 characters !","bizgaze_SpiltErrorMessages"),!1;if(u!=f)return MessageHelper.Instance().showError("New and Confirm passwords does not match","bizgaze_SpiltErrorMessages"),!1;o=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s).{8,15}$/;s=u.match(o)?!0:!1;s==!0?h={ConfirmPassword:f,Password:u,UserId:e,TenantId:Number(t),UserName:e,Email:i,ContactNumber:r}:($(".pr-password").focus(),MessageHelper.Instance().showError("Please Match the Password in requested Format","bizgaze_SpiltErrorMessages"));c._accountManager.register(h).then(function(){$("#div_CreatePswd").addClass("d-none");$("#div_SuccessMsg").removeClass("d-none");MessageHelper.Instance().showSuccess("Password Created Successfully","bizgaze_SpiltErrorMessages")})}static Instance(){return new i}}t.MobilRegister=i})(i=t.Components||(t.Components={}))})(i=t.Compact||(t.Compact={}))})(t=n.Themes||(n.Themes={}))})(Unibase||(Unibase={}));